From b135987fe81831420b15350476a01cc2e2dbe98d Mon Sep 17 00:00:00 2001 From: 237899745 <237899745@qq.com> Date: Thu, 22 Jan 2026 21:04:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=A4=9A=E9=A1=B9?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=92=8C=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 功能新增: - OSS 存储使用情况显示(文件页面) - OSS 当日流量统计(阿里云云监控API) - 分享页面路由修复(/s/xxx 格式支持) Bug修复: - 修复分享页面资源路径(相对路径改绝对路径) - 修复分享码获取逻辑(支持路径格式) - 修复OSS配额undefined显示问题 - 修复登录流程OSS配置检查 - 修复文件数为null时的显示问题 依赖更新: - 添加 @alicloud/cms20190101 云监控SDK - 添加 @alicloud/openapi-client Co-Authored-By: Claude Opus 4.5 --- backend/data/database.db-shm | Bin 32768 -> 32768 bytes backend/data/database.db-wal | Bin 424392 -> 914672 bytes backend/node_modules/.bin/nodemon | 1 + backend/node_modules/.bin/nodetouch | 1 + backend/node_modules/.package-lock.json | 667 + .../@alicloud/cms20190101/LICENSE | 13 + .../@alicloud/cms20190101/README.md | 25 + .../@alicloud/cms20190101/dist/client.d.ts | 3038 ++ .../@alicloud/cms20190101/dist/client.js | 8647 +++++ .../@alicloud/cms20190101/dist/client.js.map | 1 + .../dist/models/AddTagsRequest.d.ts | 79 + .../cms20190101/dist/models/AddTagsRequest.js | 89 + .../dist/models/AddTagsRequest.js.map | 1 + .../dist/models/AddTagsResponse.d.ts | 19 + .../dist/models/AddTagsResponse.js | 69 + .../dist/models/AddTagsResponse.js.map | 1 + .../dist/models/AddTagsResponseBody.d.ts | 50 + .../dist/models/AddTagsResponseBody.js | 64 + .../dist/models/AddTagsResponseBody.js.map | 1 + .../cms20190101/dist/models/AlertEvent.d.ts | 60 + .../cms20190101/dist/models/AlertEvent.js | 142 + .../cms20190101/dist/models/AlertEvent.js.map | 1 + .../dist/models/AlertStrategyRelation.d.ts | 15 + .../dist/models/AlertStrategyRelation.js | 60 + .../dist/models/AlertStrategyRelation.js.map | 1 + .../ApplyMetricRuleTemplateRequest.d.ts | 103 + .../models/ApplyMetricRuleTemplateRequest.js | 74 + .../ApplyMetricRuleTemplateRequest.js.map | 1 + .../ApplyMetricRuleTemplateResponse.d.ts | 19 + .../models/ApplyMetricRuleTemplateResponse.js | 69 + .../ApplyMetricRuleTemplateResponse.js.map | 1 + .../ApplyMetricRuleTemplateResponseBody.d.ts | 137 + .../ApplyMetricRuleTemplateResponseBody.js | 120 + ...ApplyMetricRuleTemplateResponseBody.js.map | 1 + .../BatchCreateInstantSiteMonitorRequest.d.ts | 89 + .../BatchCreateInstantSiteMonitorRequest.js | 90 + ...atchCreateInstantSiteMonitorRequest.js.map | 1 + ...BatchCreateInstantSiteMonitorResponse.d.ts | 19 + .../BatchCreateInstantSiteMonitorResponse.js | 69 + ...tchCreateInstantSiteMonitorResponse.js.map | 1 + ...hCreateInstantSiteMonitorResponseBody.d.ts | 86 + ...tchCreateInstantSiteMonitorResponseBody.js | 90 + ...reateInstantSiteMonitorResponseBody.js.map | 1 + .../dist/models/BatchExportRequest.d.ts | 75 + .../dist/models/BatchExportRequest.js | 69 + .../dist/models/BatchExportRequest.js.map | 1 + .../dist/models/BatchExportResponse.d.ts | 19 + .../dist/models/BatchExportResponse.js | 69 + .../dist/models/BatchExportResponse.js.map | 1 + .../dist/models/BatchExportResponseBody.d.ts | 93 + .../dist/models/BatchExportResponseBody.js | 78 + .../models/BatchExportResponseBody.js.map | 1 + .../dist/models/BatchExportShrinkRequest.d.ts | 75 + .../dist/models/BatchExportShrinkRequest.js | 66 + .../models/BatchExportShrinkRequest.js.map | 1 + .../models/CreateDynamicTagGroupRequest.d.ts | 134 + .../models/CreateDynamicTagGroupRequest.js | 106 + .../CreateDynamicTagGroupRequest.js.map | 1 + .../models/CreateDynamicTagGroupResponse.d.ts | 19 + .../models/CreateDynamicTagGroupResponse.js | 69 + .../CreateDynamicTagGroupResponse.js.map | 1 + .../CreateDynamicTagGroupResponseBody.d.ts | 58 + .../CreateDynamicTagGroupResponseBody.js | 66 + .../CreateDynamicTagGroupResponseBody.js.map | 1 + .../models/CreateGroupMetricRulesRequest.d.ts | 426 + .../models/CreateGroupMetricRulesRequest.js | 264 + .../CreateGroupMetricRulesRequest.js.map | 1 + .../CreateGroupMetricRulesResponse.d.ts | 19 + .../models/CreateGroupMetricRulesResponse.js | 69 + .../CreateGroupMetricRulesResponse.js.map | 1 + .../CreateGroupMetricRulesResponseBody.d.ts | 125 + .../CreateGroupMetricRulesResponseBody.js | 118 + .../CreateGroupMetricRulesResponseBody.js.map | 1 + ...ateGroupMonitoringAgentProcessRequest.d.ts | 322 + ...reateGroupMonitoringAgentProcessRequest.js | 162 + ...eGroupMonitoringAgentProcessRequest.js.map | 1 + ...teGroupMonitoringAgentProcessResponse.d.ts | 19 + ...eateGroupMonitoringAgentProcessResponse.js | 69 + ...GroupMonitoringAgentProcessResponse.js.map | 1 + ...oupMonitoringAgentProcessResponseBody.d.ts | 75 + ...GroupMonitoringAgentProcessResponseBody.js | 88 + ...pMonitoringAgentProcessResponseBody.js.map | 1 + .../models/CreateHostAvailabilityRequest.d.ts | 389 + .../models/CreateHostAvailabilityRequest.js | 205 + .../CreateHostAvailabilityRequest.js.map | 1 + .../CreateHostAvailabilityResponse.d.ts | 19 + .../models/CreateHostAvailabilityResponse.js | 69 + .../CreateHostAvailabilityResponse.js.map | 1 + .../CreateHostAvailabilityResponseBody.d.ts | 58 + .../CreateHostAvailabilityResponseBody.js | 66 + .../CreateHostAvailabilityResponseBody.js.map | 1 + .../CreateHybridMonitorNamespaceRequest.d.ts | 69 + .../CreateHybridMonitorNamespaceRequest.js | 68 + ...CreateHybridMonitorNamespaceRequest.js.map | 1 + .../CreateHybridMonitorNamespaceResponse.d.ts | 19 + .../CreateHybridMonitorNamespaceResponse.js | 69 + ...reateHybridMonitorNamespaceResponse.js.map | 1 + ...ateHybridMonitorNamespaceResponseBody.d.ts | 48 + ...reateHybridMonitorNamespaceResponseBody.js | 64 + ...eHybridMonitorNamespaceResponseBody.js.map | 1 + .../CreateHybridMonitorSlsgroupRequest.d.ts | 102 + .../CreateHybridMonitorSlsgroupRequest.js | 92 + .../CreateHybridMonitorSlsgroupRequest.js.map | 1 + .../CreateHybridMonitorSlsgroupResponse.d.ts | 19 + .../CreateHybridMonitorSlsgroupResponse.js | 69 + ...CreateHybridMonitorSlsgroupResponse.js.map | 1 + ...eateHybridMonitorSlsgroupResponseBody.d.ts | 50 + ...CreateHybridMonitorSlsgroupResponseBody.js | 64 + ...teHybridMonitorSlsgroupResponseBody.js.map | 1 + .../CreateHybridMonitorTaskRequest.d.ts | 423 + .../models/CreateHybridMonitorTaskRequest.js | 267 + .../CreateHybridMonitorTaskRequest.js.map | 1 + .../CreateHybridMonitorTaskResponse.d.ts | 19 + .../models/CreateHybridMonitorTaskResponse.js | 69 + .../CreateHybridMonitorTaskResponse.js.map | 1 + .../CreateHybridMonitorTaskResponseBody.d.ts | 58 + .../CreateHybridMonitorTaskResponseBody.js | 66 + ...CreateHybridMonitorTaskResponseBody.js.map | 1 + .../CreateInstantSiteMonitorRequest.d.ts | 81 + .../models/CreateInstantSiteMonitorRequest.js | 72 + .../CreateInstantSiteMonitorRequest.js.map | 1 + .../CreateInstantSiteMonitorResponse.d.ts | 19 + .../CreateInstantSiteMonitorResponse.js | 69 + .../CreateInstantSiteMonitorResponse.js.map | 1 + .../CreateInstantSiteMonitorResponseBody.d.ts | 82 + .../CreateInstantSiteMonitorResponseBody.js | 90 + ...reateInstantSiteMonitorResponseBody.js.map | 1 + .../CreateMetricRuleBlackListRequest.d.ts | 151 + .../CreateMetricRuleBlackListRequest.js | 105 + .../CreateMetricRuleBlackListRequest.js.map | 1 + .../CreateMetricRuleBlackListResponse.d.ts | 19 + .../CreateMetricRuleBlackListResponse.js | 69 + .../CreateMetricRuleBlackListResponse.js.map | 1 + ...CreateMetricRuleBlackListResponseBody.d.ts | 58 + .../CreateMetricRuleBlackListResponseBody.js | 66 + ...eateMetricRuleBlackListResponseBody.js.map | 1 + .../CreateMetricRuleResourcesRequest.d.ts | 44 + .../CreateMetricRuleResourcesRequest.js | 62 + .../CreateMetricRuleResourcesRequest.js.map | 1 + .../CreateMetricRuleResourcesResponse.d.ts | 19 + .../CreateMetricRuleResourcesResponse.js | 69 + .../CreateMetricRuleResourcesResponse.js.map | 1 + ...CreateMetricRuleResourcesResponseBody.d.ts | 47 + .../CreateMetricRuleResourcesResponseBody.js | 64 + ...eateMetricRuleResourcesResponseBody.js.map | 1 + .../CreateMetricRuleTemplateRequest.d.ts | 208 + .../models/CreateMetricRuleTemplateRequest.js | 216 + .../CreateMetricRuleTemplateRequest.js.map | 1 + .../CreateMetricRuleTemplateResponse.d.ts | 19 + .../CreateMetricRuleTemplateResponse.js | 69 + .../CreateMetricRuleTemplateResponse.js.map | 1 + .../CreateMetricRuleTemplateResponseBody.d.ts | 58 + .../CreateMetricRuleTemplateResponseBody.js | 66 + ...reateMetricRuleTemplateResponseBody.js.map | 1 + .../CreateMonitorAgentProcessRequest.d.ts | 42 + .../CreateMonitorAgentProcessRequest.js | 64 + .../CreateMonitorAgentProcessRequest.js.map | 1 + .../CreateMonitorAgentProcessResponse.d.ts | 19 + .../CreateMonitorAgentProcessResponse.js | 69 + .../CreateMonitorAgentProcessResponse.js.map | 1 + ...CreateMonitorAgentProcessResponseBody.d.ts | 58 + .../CreateMonitorAgentProcessResponseBody.js | 66 + ...eateMonitorAgentProcessResponseBody.js.map | 1 + ...eMonitorGroupByResourceGroupIdRequest.d.ts | 83 + ...ateMonitorGroupByResourceGroupIdRequest.js | 71 + ...onitorGroupByResourceGroupIdRequest.js.map | 1 + ...MonitorGroupByResourceGroupIdResponse.d.ts | 19 + ...teMonitorGroupByResourceGroupIdResponse.js | 69 + ...nitorGroupByResourceGroupIdResponse.js.map | 1 + ...torGroupByResourceGroupIdResponseBody.d.ts | 58 + ...nitorGroupByResourceGroupIdResponseBody.js | 66 + ...rGroupByResourceGroupIdResponseBody.js.map | 1 + .../CreateMonitorGroupInstancesRequest.d.ts | 85 + .../CreateMonitorGroupInstancesRequest.js | 90 + .../CreateMonitorGroupInstancesRequest.js.map | 1 + .../CreateMonitorGroupInstancesResponse.d.ts | 19 + .../CreateMonitorGroupInstancesResponse.js | 69 + ...CreateMonitorGroupInstancesResponse.js.map | 1 + ...eateMonitorGroupInstancesResponseBody.d.ts | 50 + ...CreateMonitorGroupInstancesResponseBody.js | 64 + ...teMonitorGroupInstancesResponseBody.js.map | 1 + ...CreateMonitorGroupNotifyPolicyRequest.d.ts | 58 + .../CreateMonitorGroupNotifyPolicyRequest.js | 66 + ...eateMonitorGroupNotifyPolicyRequest.js.map | 1 + ...reateMonitorGroupNotifyPolicyResponse.d.ts | 19 + .../CreateMonitorGroupNotifyPolicyResponse.js | 69 + ...ateMonitorGroupNotifyPolicyResponse.js.map | 1 + ...eMonitorGroupNotifyPolicyResponseBody.d.ts | 58 + ...ateMonitorGroupNotifyPolicyResponseBody.js | 66 + ...onitorGroupNotifyPolicyResponseBody.js.map | 1 + .../models/CreateMonitorGroupRequest.d.ts | 34 + .../dist/models/CreateMonitorGroupRequest.js | 62 + .../models/CreateMonitorGroupRequest.js.map | 1 + .../models/CreateMonitorGroupResponse.d.ts | 19 + .../dist/models/CreateMonitorGroupResponse.js | 69 + .../models/CreateMonitorGroupResponse.js.map | 1 + .../CreateMonitorGroupResponseBody.d.ts | 58 + .../models/CreateMonitorGroupResponseBody.js | 66 + .../CreateMonitorGroupResponseBody.js.map | 1 + .../CreateMonitoringAgentProcessRequest.d.ts | 40 + .../CreateMonitoringAgentProcessRequest.js | 64 + ...CreateMonitoringAgentProcessRequest.js.map | 1 + .../CreateMonitoringAgentProcessResponse.d.ts | 19 + .../CreateMonitoringAgentProcessResponse.js | 69 + ...reateMonitoringAgentProcessResponse.js.map | 1 + ...ateMonitoringAgentProcessResponseBody.d.ts | 58 + ...reateMonitoringAgentProcessResponseBody.js | 66 + ...eMonitoringAgentProcessResponseBody.js.map | 1 + .../dist/models/CreateSiteMonitorRequest.d.ts | 104 + .../dist/models/CreateSiteMonitorRequest.js | 78 + .../models/CreateSiteMonitorRequest.js.map | 1 + .../models/CreateSiteMonitorResponse.d.ts | 19 + .../dist/models/CreateSiteMonitorResponse.js | 69 + .../models/CreateSiteMonitorResponse.js.map | 1 + .../models/CreateSiteMonitorResponseBody.d.ts | 190 + .../models/CreateSiteMonitorResponseBody.js | 188 + .../CreateSiteMonitorResponseBody.js.map | 1 + .../dist/models/CursorRequest.d.ts | 88 + .../cms20190101/dist/models/CursorRequest.js | 72 + .../dist/models/CursorRequest.js.map | 1 + .../dist/models/CursorResponse.d.ts | 19 + .../cms20190101/dist/models/CursorResponse.js | 69 + .../dist/models/CursorResponse.js.map | 1 + .../dist/models/CursorResponseBody.d.ts | 58 + .../dist/models/CursorResponseBody.js | 66 + .../dist/models/CursorResponseBody.js.map | 1 + .../dist/models/CursorShrinkRequest.d.ts | 87 + .../dist/models/CursorShrinkRequest.js | 68 + .../dist/models/CursorShrinkRequest.js.map | 1 + .../models/DeleteContactGroupRequest.d.ts | 23 + .../dist/models/DeleteContactGroupRequest.js | 58 + .../models/DeleteContactGroupRequest.js.map | 1 + .../models/DeleteContactGroupResponse.d.ts | 19 + .../dist/models/DeleteContactGroupResponse.js | 69 + .../models/DeleteContactGroupResponse.js.map | 1 + .../DeleteContactGroupResponseBody.d.ts | 47 + .../models/DeleteContactGroupResponseBody.js | 64 + .../DeleteContactGroupResponseBody.js.map | 1 + .../dist/models/DeleteContactRequest.d.ts | 23 + .../dist/models/DeleteContactRequest.js | 58 + .../dist/models/DeleteContactRequest.js.map | 1 + .../dist/models/DeleteContactResponse.d.ts | 19 + .../dist/models/DeleteContactResponse.js | 69 + .../dist/models/DeleteContactResponse.js.map | 1 + .../models/DeleteContactResponseBody.d.ts | 47 + .../dist/models/DeleteContactResponseBody.js | 64 + .../models/DeleteContactResponseBody.js.map | 1 + .../models/DeleteCustomMetricRequest.d.ts | 54 + .../dist/models/DeleteCustomMetricRequest.js | 66 + .../models/DeleteCustomMetricRequest.js.map | 1 + .../models/DeleteCustomMetricResponse.d.ts | 19 + .../dist/models/DeleteCustomMetricResponse.js | 69 + .../models/DeleteCustomMetricResponse.js.map | 1 + .../DeleteCustomMetricResponseBody.d.ts | 39 + .../models/DeleteCustomMetricResponseBody.js | 62 + .../DeleteCustomMetricResponseBody.js.map | 1 + .../models/DeleteDynamicTagGroupRequest.d.ts | 26 + .../models/DeleteDynamicTagGroupRequest.js | 60 + .../DeleteDynamicTagGroupRequest.js.map | 1 + .../models/DeleteDynamicTagGroupResponse.d.ts | 19 + .../models/DeleteDynamicTagGroupResponse.js | 69 + .../DeleteDynamicTagGroupResponse.js.map | 1 + .../DeleteDynamicTagGroupResponseBody.d.ts | 50 + .../DeleteDynamicTagGroupResponseBody.js | 64 + .../DeleteDynamicTagGroupResponseBody.js.map | 1 + .../models/DeleteEventRuleTargetsRequest.d.ts | 36 + .../models/DeleteEventRuleTargetsRequest.js | 65 + .../DeleteEventRuleTargetsRequest.js.map | 1 + .../DeleteEventRuleTargetsResponse.d.ts | 19 + .../models/DeleteEventRuleTargetsResponse.js | 69 + .../DeleteEventRuleTargetsResponse.js.map | 1 + .../DeleteEventRuleTargetsResponseBody.d.ts | 50 + .../DeleteEventRuleTargetsResponseBody.js | 64 + .../DeleteEventRuleTargetsResponseBody.js.map | 1 + .../dist/models/DeleteEventRulesRequest.d.ts | 23 + .../dist/models/DeleteEventRulesRequest.js | 61 + .../models/DeleteEventRulesRequest.js.map | 1 + .../dist/models/DeleteEventRulesResponse.d.ts | 19 + .../dist/models/DeleteEventRulesResponse.js | 69 + .../models/DeleteEventRulesResponse.js.map | 1 + .../models/DeleteEventRulesResponseBody.d.ts | 47 + .../models/DeleteEventRulesResponseBody.js | 64 + .../DeleteEventRulesResponseBody.js.map | 1 + .../models/DeleteExporterOutputRequest.d.ts | 24 + .../models/DeleteExporterOutputRequest.js | 60 + .../models/DeleteExporterOutputRequest.js.map | 1 + .../models/DeleteExporterOutputResponse.d.ts | 19 + .../models/DeleteExporterOutputResponse.js | 69 + .../DeleteExporterOutputResponse.js.map | 1 + .../DeleteExporterOutputResponseBody.d.ts | 50 + .../DeleteExporterOutputResponseBody.js | 64 + .../DeleteExporterOutputResponseBody.js.map | 1 + .../models/DeleteExporterRuleRequest.d.ts | 24 + .../dist/models/DeleteExporterRuleRequest.js | 60 + .../models/DeleteExporterRuleRequest.js.map | 1 + .../models/DeleteExporterRuleResponse.d.ts | 19 + .../dist/models/DeleteExporterRuleResponse.js | 69 + .../models/DeleteExporterRuleResponse.js.map | 1 + .../DeleteExporterRuleResponseBody.d.ts | 50 + .../models/DeleteExporterRuleResponseBody.js | 64 + .../DeleteExporterRuleResponseBody.js.map | 1 + ...eteGroupMonitoringAgentProcessRequest.d.ts | 34 + ...eleteGroupMonitoringAgentProcessRequest.js | 62 + ...eGroupMonitoringAgentProcessRequest.js.map | 1 + ...teGroupMonitoringAgentProcessResponse.d.ts | 19 + ...leteGroupMonitoringAgentProcessResponse.js | 69 + ...GroupMonitoringAgentProcessResponse.js.map | 1 + ...oupMonitoringAgentProcessResponseBody.d.ts | 50 + ...GroupMonitoringAgentProcessResponseBody.js | 64 + ...pMonitoringAgentProcessResponseBody.js.map | 1 + .../models/DeleteHostAvailabilityRequest.d.ts | 24 + .../models/DeleteHostAvailabilityRequest.js | 63 + .../DeleteHostAvailabilityRequest.js.map | 1 + .../DeleteHostAvailabilityResponse.d.ts | 19 + .../models/DeleteHostAvailabilityResponse.js | 69 + .../DeleteHostAvailabilityResponse.js.map | 1 + .../DeleteHostAvailabilityResponseBody.d.ts | 47 + .../DeleteHostAvailabilityResponseBody.js | 64 + .../DeleteHostAvailabilityResponseBody.js.map | 1 + .../DeleteHybridMonitorNamespaceRequest.d.ts | 26 + .../DeleteHybridMonitorNamespaceRequest.js | 60 + ...DeleteHybridMonitorNamespaceRequest.js.map | 1 + .../DeleteHybridMonitorNamespaceResponse.d.ts | 19 + .../DeleteHybridMonitorNamespaceResponse.js | 69 + ...eleteHybridMonitorNamespaceResponse.js.map | 1 + ...eteHybridMonitorNamespaceResponseBody.d.ts | 48 + ...eleteHybridMonitorNamespaceResponseBody.js | 64 + ...eHybridMonitorNamespaceResponseBody.js.map | 1 + .../DeleteHybridMonitorSlsgroupRequest.d.ts | 26 + .../DeleteHybridMonitorSlsgroupRequest.js | 60 + .../DeleteHybridMonitorSlsgroupRequest.js.map | 1 + .../DeleteHybridMonitorSlsgroupResponse.d.ts | 19 + .../DeleteHybridMonitorSlsgroupResponse.js | 69 + ...DeleteHybridMonitorSlsgroupResponse.js.map | 1 + ...leteHybridMonitorSlsgroupResponseBody.d.ts | 50 + ...DeleteHybridMonitorSlsgroupResponseBody.js | 64 + ...teHybridMonitorSlsgroupResponseBody.js.map | 1 + .../DeleteHybridMonitorTaskRequest.d.ts | 48 + .../models/DeleteHybridMonitorTaskRequest.js | 64 + .../DeleteHybridMonitorTaskRequest.js.map | 1 + .../DeleteHybridMonitorTaskResponse.d.ts | 19 + .../models/DeleteHybridMonitorTaskResponse.js | 69 + .../DeleteHybridMonitorTaskResponse.js.map | 1 + .../DeleteHybridMonitorTaskResponseBody.d.ts | 50 + .../DeleteHybridMonitorTaskResponseBody.js | 64 + ...DeleteHybridMonitorTaskResponseBody.js.map | 1 + .../dist/models/DeleteLogMonitorRequest.d.ts | 24 + .../dist/models/DeleteLogMonitorRequest.js | 60 + .../models/DeleteLogMonitorRequest.js.map | 1 + .../dist/models/DeleteLogMonitorResponse.d.ts | 19 + .../dist/models/DeleteLogMonitorResponse.js | 69 + .../models/DeleteLogMonitorResponse.js.map | 1 + .../models/DeleteLogMonitorResponseBody.d.ts | 50 + .../models/DeleteLogMonitorResponseBody.js | 64 + .../DeleteLogMonitorResponseBody.js.map | 1 + .../DeleteMetricRuleBlackListRequest.d.ts | 28 + .../DeleteMetricRuleBlackListRequest.js | 60 + .../DeleteMetricRuleBlackListRequest.js.map | 1 + .../DeleteMetricRuleBlackListResponse.d.ts | 19 + .../DeleteMetricRuleBlackListResponse.js | 69 + .../DeleteMetricRuleBlackListResponse.js.map | 1 + ...DeleteMetricRuleBlackListResponseBody.d.ts | 58 + .../DeleteMetricRuleBlackListResponseBody.js | 66 + ...leteMetricRuleBlackListResponseBody.js.map | 1 + .../DeleteMetricRuleResourcesRequest.d.ts | 33 + .../DeleteMetricRuleResourcesRequest.js | 60 + .../DeleteMetricRuleResourcesRequest.js.map | 1 + .../DeleteMetricRuleResourcesResponse.d.ts | 19 + .../DeleteMetricRuleResourcesResponse.js | 69 + .../DeleteMetricRuleResourcesResponse.js.map | 1 + ...DeleteMetricRuleResourcesResponseBody.d.ts | 50 + .../DeleteMetricRuleResourcesResponseBody.js | 64 + ...leteMetricRuleResourcesResponseBody.js.map | 1 + .../DeleteMetricRuleTargetsRequest.d.ts | 34 + .../models/DeleteMetricRuleTargetsRequest.js | 65 + .../DeleteMetricRuleTargetsRequest.js.map | 1 + .../DeleteMetricRuleTargetsResponse.d.ts | 19 + .../models/DeleteMetricRuleTargetsResponse.js | 69 + .../DeleteMetricRuleTargetsResponse.js.map | 1 + .../DeleteMetricRuleTargetsResponseBody.d.ts | 87 + .../DeleteMetricRuleTargetsResponseBody.js | 113 + ...DeleteMetricRuleTargetsResponseBody.js.map | 1 + .../DeleteMetricRuleTemplateRequest.d.ts | 24 + .../models/DeleteMetricRuleTemplateRequest.js | 60 + .../DeleteMetricRuleTemplateRequest.js.map | 1 + .../DeleteMetricRuleTemplateResponse.d.ts | 19 + .../DeleteMetricRuleTemplateResponse.js | 69 + .../DeleteMetricRuleTemplateResponse.js.map | 1 + .../DeleteMetricRuleTemplateResponseBody.d.ts | 72 + .../DeleteMetricRuleTemplateResponseBody.js | 88 + ...eleteMetricRuleTemplateResponseBody.js.map | 1 + .../dist/models/DeleteMetricRulesRequest.d.ts | 22 + .../dist/models/DeleteMetricRulesRequest.js | 63 + .../models/DeleteMetricRulesRequest.js.map | 1 + .../models/DeleteMetricRulesResponse.d.ts | 19 + .../dist/models/DeleteMetricRulesResponse.js | 69 + .../models/DeleteMetricRulesResponse.js.map | 1 + .../models/DeleteMetricRulesResponseBody.d.ts | 50 + .../models/DeleteMetricRulesResponseBody.js | 64 + .../DeleteMetricRulesResponseBody.js.map | 1 + .../DeleteMonitorGroupDynamicRuleRequest.d.ts | 34 + .../DeleteMonitorGroupDynamicRuleRequest.js | 62 + ...eleteMonitorGroupDynamicRuleRequest.js.map | 1 + ...DeleteMonitorGroupDynamicRuleResponse.d.ts | 19 + .../DeleteMonitorGroupDynamicRuleResponse.js | 69 + ...leteMonitorGroupDynamicRuleResponse.js.map | 1 + ...teMonitorGroupDynamicRuleResponseBody.d.ts | 47 + ...leteMonitorGroupDynamicRuleResponseBody.js | 64 + ...MonitorGroupDynamicRuleResponseBody.js.map | 1 + .../DeleteMonitorGroupInstancesRequest.d.ts | 46 + .../DeleteMonitorGroupInstancesRequest.js | 64 + .../DeleteMonitorGroupInstancesRequest.js.map | 1 + .../DeleteMonitorGroupInstancesResponse.d.ts | 19 + .../DeleteMonitorGroupInstancesResponse.js | 69 + ...DeleteMonitorGroupInstancesResponse.js.map | 1 + ...leteMonitorGroupInstancesResponseBody.d.ts | 50 + ...DeleteMonitorGroupInstancesResponseBody.js | 64 + ...teMonitorGroupInstancesResponseBody.js.map | 1 + ...DeleteMonitorGroupNotifyPolicyRequest.d.ts | 34 + .../DeleteMonitorGroupNotifyPolicyRequest.js | 62 + ...leteMonitorGroupNotifyPolicyRequest.js.map | 1 + ...eleteMonitorGroupNotifyPolicyResponse.d.ts | 19 + .../DeleteMonitorGroupNotifyPolicyResponse.js | 69 + ...eteMonitorGroupNotifyPolicyResponse.js.map | 1 + ...eMonitorGroupNotifyPolicyResponseBody.d.ts | 58 + ...eteMonitorGroupNotifyPolicyResponseBody.js | 66 + ...onitorGroupNotifyPolicyResponseBody.js.map | 1 + .../models/DeleteMonitorGroupRequest.d.ts | 24 + .../dist/models/DeleteMonitorGroupRequest.js | 60 + .../models/DeleteMonitorGroupRequest.js.map | 1 + .../models/DeleteMonitorGroupResponse.d.ts | 19 + .../dist/models/DeleteMonitorGroupResponse.js | 69 + .../models/DeleteMonitorGroupResponse.js.map | 1 + .../DeleteMonitorGroupResponseBody.d.ts | 110 + .../models/DeleteMonitorGroupResponseBody.js | 134 + .../DeleteMonitorGroupResponseBody.js.map | 1 + .../DeleteMonitoringAgentProcessRequest.d.ts | 44 + .../DeleteMonitoringAgentProcessRequest.js | 64 + ...DeleteMonitoringAgentProcessRequest.js.map | 1 + .../DeleteMonitoringAgentProcessResponse.d.ts | 19 + .../DeleteMonitoringAgentProcessResponse.js | 69 + ...eleteMonitoringAgentProcessResponse.js.map | 1 + ...eteMonitoringAgentProcessResponseBody.d.ts | 50 + ...eleteMonitoringAgentProcessResponseBody.js | 64 + ...eMonitoringAgentProcessResponseBody.js.map | 1 + .../models/DeleteSiteMonitorsRequest.d.ts | 35 + .../dist/models/DeleteSiteMonitorsRequest.js | 62 + .../models/DeleteSiteMonitorsRequest.js.map | 1 + .../models/DeleteSiteMonitorsResponse.d.ts | 19 + .../dist/models/DeleteSiteMonitorsResponse.js | 69 + .../models/DeleteSiteMonitorsResponse.js.map | 1 + .../DeleteSiteMonitorsResponseBody.d.ts | 72 + .../models/DeleteSiteMonitorsResponseBody.js | 88 + .../DeleteSiteMonitorsResponseBody.js.map | 1 + .../DescribeActiveMetricRuleListRequest.d.ts | 25 + .../DescribeActiveMetricRuleListRequest.js | 58 + ...DescribeActiveMetricRuleListRequest.js.map | 1 + .../DescribeActiveMetricRuleListResponse.d.ts | 19 + .../DescribeActiveMetricRuleListResponse.js | 69 + ...escribeActiveMetricRuleListResponse.js.map | 1 + ...cribeActiveMetricRuleListResponseBody.d.ts | 591 + ...escribeActiveMetricRuleListResponseBody.js | 326 + ...ibeActiveMetricRuleListResponseBody.js.map | 1 + .../DescribeAlertHistoryListRequest.d.ts | 138 + .../models/DescribeAlertHistoryListRequest.js | 82 + .../DescribeAlertHistoryListRequest.js.map | 1 + .../DescribeAlertHistoryListResponse.d.ts | 19 + .../DescribeAlertHistoryListResponse.js | 69 + .../DescribeAlertHistoryListResponse.js.map | 1 + .../DescribeAlertHistoryListResponseBody.d.ts | 320 + .../DescribeAlertHistoryListResponseBody.js | 277 + ...escribeAlertHistoryListResponseBody.js.map | 1 + .../models/DescribeAlertLogCountRequest.d.ts | 204 + .../models/DescribeAlertLogCountRequest.js | 94 + .../DescribeAlertLogCountRequest.js.map | 1 + .../models/DescribeAlertLogCountResponse.d.ts | 19 + .../models/DescribeAlertLogCountResponse.js | 69 + .../DescribeAlertLogCountResponse.js.map | 1 + .../DescribeAlertLogCountResponseBody.d.ts | 108 + .../DescribeAlertLogCountResponseBody.js | 114 + .../DescribeAlertLogCountResponseBody.js.map | 1 + .../DescribeAlertLogHistogramRequest.d.ts | 204 + .../DescribeAlertLogHistogramRequest.js | 94 + .../DescribeAlertLogHistogramRequest.js.map | 1 + .../DescribeAlertLogHistogramResponse.d.ts | 19 + .../DescribeAlertLogHistogramResponse.js | 69 + .../DescribeAlertLogHistogramResponse.js.map | 1 + ...DescribeAlertLogHistogramResponseBody.d.ts | 95 + .../DescribeAlertLogHistogramResponseBody.js | 92 + ...scribeAlertLogHistogramResponseBody.js.map | 1 + .../models/DescribeAlertLogListRequest.d.ts | 202 + .../models/DescribeAlertLogListRequest.js | 94 + .../models/DescribeAlertLogListRequest.js.map | 1 + .../models/DescribeAlertLogListResponse.d.ts | 19 + .../models/DescribeAlertLogListResponse.js | 69 + .../DescribeAlertLogListResponse.js.map | 1 + .../DescribeAlertLogListResponseBody.d.ts | 565 + .../DescribeAlertLogListResponseBody.js | 383 + .../DescribeAlertLogListResponseBody.js.map | 1 + ...ibeAlertingMetricRuleResourcesRequest.d.ts | 76 + ...cribeAlertingMetricRuleResourcesRequest.js | 72 + ...eAlertingMetricRuleResourcesRequest.js.map | 1 + ...beAlertingMetricRuleResourcesResponse.d.ts | 19 + ...ribeAlertingMetricRuleResourcesResponse.js | 69 + ...AlertingMetricRuleResourcesResponse.js.map | 1 + ...ertingMetricRuleResourcesResponseBody.d.ts | 457 + ...AlertingMetricRuleResourcesResponseBody.js | 260 + ...tingMetricRuleResourcesResponseBody.js.map | 1 + .../DescribeContactGroupListRequest.d.ts | 30 + .../models/DescribeContactGroupListRequest.js | 62 + .../DescribeContactGroupListRequest.js.map | 1 + .../DescribeContactGroupListResponse.d.ts | 19 + .../DescribeContactGroupListResponse.js | 69 + .../DescribeContactGroupListResponse.js.map | 1 + .../DescribeContactGroupListResponseBody.d.ts | 175 + .../DescribeContactGroupListResponseBody.js | 176 + ...escribeContactGroupListResponseBody.js.map | 1 + ...cribeContactListByContactGroupRequest.d.ts | 24 + ...escribeContactListByContactGroupRequest.js | 60 + ...ibeContactListByContactGroupRequest.js.map | 1 + ...ribeContactListByContactGroupResponse.d.ts | 19 + ...scribeContactListByContactGroupResponse.js | 69 + ...beContactListByContactGroupResponse.js.map | 1 + ...ContactListByContactGroupResponseBody.d.ts | 169 + ...beContactListByContactGroupResponseBody.js | 146 + ...ntactListByContactGroupResponseBody.js.map | 1 + .../models/DescribeContactListRequest.d.ts | 63 + .../dist/models/DescribeContactListRequest.js | 68 + .../models/DescribeContactListRequest.js.map | 1 + .../models/DescribeContactListResponse.d.ts | 19 + .../models/DescribeContactListResponse.js | 69 + .../models/DescribeContactListResponse.js.map | 1 + .../DescribeContactListResponseBody.d.ts | 264 + .../models/DescribeContactListResponseBody.js | 207 + .../DescribeContactListResponseBody.js.map | 1 + .../DescribeCustomEventAttributeRequest.d.ts | 85 + .../DescribeCustomEventAttributeRequest.js | 74 + ...DescribeCustomEventAttributeRequest.js.map | 1 + .../DescribeCustomEventAttributeResponse.d.ts | 19 + .../DescribeCustomEventAttributeResponse.js | 69 + ...escribeCustomEventAttributeResponse.js.map | 1 + ...cribeCustomEventAttributeResponseBody.d.ts | 122 + ...escribeCustomEventAttributeResponseBody.js | 118 + ...ibeCustomEventAttributeResponseBody.js.map | 1 + .../DescribeCustomEventCountRequest.d.ts | 69 + .../models/DescribeCustomEventCountRequest.js | 70 + .../DescribeCustomEventCountRequest.js.map | 1 + .../DescribeCustomEventCountResponse.d.ts | 19 + .../DescribeCustomEventCountResponse.js | 69 + .../DescribeCustomEventCountResponse.js.map | 1 + .../DescribeCustomEventCountResponseBody.d.ts | 103 + .../DescribeCustomEventCountResponseBody.js | 114 + ...escribeCustomEventCountResponseBody.js.map | 1 + .../DescribeCustomEventHistogramRequest.d.ts | 81 + .../DescribeCustomEventHistogramRequest.js | 72 + ...DescribeCustomEventHistogramRequest.js.map | 1 + .../DescribeCustomEventHistogramResponse.d.ts | 19 + .../DescribeCustomEventHistogramResponse.js | 69 + ...escribeCustomEventHistogramResponse.js.map | 1 + ...cribeCustomEventHistogramResponseBody.d.ts | 105 + ...escribeCustomEventHistogramResponseBody.js | 114 + ...ibeCustomEventHistogramResponseBody.js.map | 1 + .../DescribeCustomMetricListRequest.d.ts | 68 + .../models/DescribeCustomMetricListRequest.js | 70 + .../DescribeCustomMetricListRequest.js.map | 1 + .../DescribeCustomMetricListResponse.d.ts | 19 + .../DescribeCustomMetricListResponse.js | 69 + .../DescribeCustomMetricListResponse.js.map | 1 + .../DescribeCustomMetricListResponseBody.d.ts | 47 + .../DescribeCustomMetricListResponseBody.js | 64 + ...escribeCustomMetricListResponseBody.js.map | 1 + .../DescribeDynamicTagRuleListRequest.d.ts | 69 + .../DescribeDynamicTagRuleListRequest.js | 68 + .../DescribeDynamicTagRuleListRequest.js.map | 1 + .../DescribeDynamicTagRuleListResponse.d.ts | 19 + .../DescribeDynamicTagRuleListResponse.js | 69 + .../DescribeDynamicTagRuleListResponse.js.map | 1 + ...escribeDynamicTagRuleListResponseBody.d.ts | 265 + .../DescribeDynamicTagRuleListResponseBody.js | 255 + ...cribeDynamicTagRuleListResponseBody.js.map | 1 + .../DescribeEventRuleAttributeRequest.d.ts | 38 + .../DescribeEventRuleAttributeRequest.js | 62 + .../DescribeEventRuleAttributeRequest.js.map | 1 + .../DescribeEventRuleAttributeResponse.d.ts | 19 + .../DescribeEventRuleAttributeResponse.js | 69 + .../DescribeEventRuleAttributeResponse.js.map | 1 + ...escribeEventRuleAttributeResponseBody.d.ts | 252 + .../DescribeEventRuleAttributeResponseBody.js | 281 + ...cribeEventRuleAttributeResponseBody.js.map | 1 + .../models/DescribeEventRuleListRequest.d.ts | 61 + .../models/DescribeEventRuleListRequest.js | 68 + .../DescribeEventRuleListRequest.js.map | 1 + .../models/DescribeEventRuleListResponse.d.ts | 19 + .../models/DescribeEventRuleListResponse.js | 69 + .../DescribeEventRuleListResponse.js.map | 1 + .../DescribeEventRuleListResponseBody.d.ts | 296 + .../DescribeEventRuleListResponseBody.js | 304 + .../DescribeEventRuleListResponseBody.js.map | 1 + .../DescribeEventRuleTargetListRequest.d.ts | 24 + .../DescribeEventRuleTargetListRequest.js | 60 + .../DescribeEventRuleTargetListRequest.js.map | 1 + .../DescribeEventRuleTargetListResponse.d.ts | 19 + .../DescribeEventRuleTargetListResponse.js | 69 + ...DescribeEventRuleTargetListResponse.js.map | 1 + ...scribeEventRuleTargetListResponseBody.d.ts | 477 + ...DescribeEventRuleTargetListResponseBody.js | 384 + ...ribeEventRuleTargetListResponseBody.js.map | 1 + .../DescribeExporterOutputListRequest.d.ts | 30 + .../DescribeExporterOutputListRequest.js | 62 + .../DescribeExporterOutputListRequest.js.map | 1 + .../DescribeExporterOutputListResponse.d.ts | 19 + .../DescribeExporterOutputListResponse.js | 69 + .../DescribeExporterOutputListResponse.js.map | 1 + ...escribeExporterOutputListResponseBody.d.ts | 171 + .../DescribeExporterOutputListResponseBody.js | 148 + ...cribeExporterOutputListResponseBody.js.map | 1 + .../DescribeExporterRuleListRequest.d.ts | 30 + .../models/DescribeExporterRuleListRequest.js | 62 + .../DescribeExporterRuleListRequest.js.map | 1 + .../DescribeExporterRuleListResponse.d.ts | 19 + .../DescribeExporterRuleListResponse.js | 69 + .../DescribeExporterRuleListResponse.js.map | 1 + .../DescribeExporterRuleListResponseBody.d.ts | 181 + .../DescribeExporterRuleListResponseBody.js | 155 + ...escribeExporterRuleListResponseBody.js.map | 1 + ...ibeGroupMonitoringAgentProcessRequest.d.ts | 48 + ...cribeGroupMonitoringAgentProcessRequest.js | 66 + ...eGroupMonitoringAgentProcessRequest.js.map | 1 + ...beGroupMonitoringAgentProcessResponse.d.ts | 19 + ...ribeGroupMonitoringAgentProcessResponse.js | 69 + ...GroupMonitoringAgentProcessResponse.js.map | 1 + ...oupMonitoringAgentProcessResponseBody.d.ts | 408 + ...GroupMonitoringAgentProcessResponseBody.js | 286 + ...pMonitoringAgentProcessResponseBody.js.map | 1 + .../DescribeHostAvailabilityListRequest.d.ts | 66 + .../DescribeHostAvailabilityListRequest.js | 70 + ...DescribeHostAvailabilityListRequest.js.map | 1 + .../DescribeHostAvailabilityListResponse.d.ts | 19 + .../DescribeHostAvailabilityListResponse.js | 69 + ...escribeHostAvailabilityListResponse.js.map | 1 + ...cribeHostAvailabilityListResponseBody.d.ts | 493 + ...escribeHostAvailabilityListResponseBody.js | 327 + ...ibeHostAvailabilityListResponseBody.js.map | 1 + .../DescribeHybridMonitorDataListRequest.d.ts | 72 + .../DescribeHybridMonitorDataListRequest.js | 68 + ...escribeHybridMonitorDataListRequest.js.map | 1 + ...DescribeHybridMonitorDataListResponse.d.ts | 19 + .../DescribeHybridMonitorDataListResponse.js | 69 + ...scribeHybridMonitorDataListResponse.js.map | 1 + ...ribeHybridMonitorDataListResponseBody.d.ts | 143 + ...scribeHybridMonitorDataListResponseBody.js | 140 + ...beHybridMonitorDataListResponseBody.js.map | 1 + ...ribeHybridMonitorNamespaceListRequest.d.ts | 63 + ...scribeHybridMonitorNamespaceListRequest.js | 68 + ...beHybridMonitorNamespaceListRequest.js.map | 1 + ...ibeHybridMonitorNamespaceListResponse.d.ts | 19 + ...cribeHybridMonitorNamespaceListResponse.js | 69 + ...eHybridMonitorNamespaceListResponse.js.map | 1 + ...ybridMonitorNamespaceListResponseBody.d.ts | 308 + ...eHybridMonitorNamespaceListResponseBody.js | 217 + ...ridMonitorNamespaceListResponseBody.js.map | 1 + .../DescribeHybridMonitorSlsgroupRequest.d.ts | 50 + .../DescribeHybridMonitorSlsgroupRequest.js | 66 + ...escribeHybridMonitorSlsgroupRequest.js.map | 1 + ...DescribeHybridMonitorSlsgroupResponse.d.ts | 19 + .../DescribeHybridMonitorSlsgroupResponse.js | 69 + ...scribeHybridMonitorSlsgroupResponse.js.map | 1 + ...ribeHybridMonitorSlsgroupResponseBody.d.ts | 172 + ...scribeHybridMonitorSlsgroupResponseBody.js | 130 + ...beHybridMonitorSlsgroupResponseBody.js.map | 1 + .../DescribeHybridMonitorTaskListRequest.d.ts | 102 + .../DescribeHybridMonitorTaskListRequest.js | 76 + ...escribeHybridMonitorTaskListRequest.js.map | 1 + ...DescribeHybridMonitorTaskListResponse.d.ts | 19 + .../DescribeHybridMonitorTaskListResponse.js | 69 + ...scribeHybridMonitorTaskListResponse.js.map | 1 + ...ribeHybridMonitorTaskListResponseBody.d.ts | 629 + ...scribeHybridMonitorTaskListResponseBody.js | 355 + ...beHybridMonitorTaskListResponseBody.js.map | 1 + .../DescribeLogMonitorAttributeRequest.d.ts | 26 + .../DescribeLogMonitorAttributeRequest.js | 60 + .../DescribeLogMonitorAttributeRequest.js.map | 1 + .../DescribeLogMonitorAttributeResponse.d.ts | 19 + .../DescribeLogMonitorAttributeResponse.js | 69 + ...DescribeLogMonitorAttributeResponse.js.map | 1 + ...scribeLogMonitorAttributeResponseBody.d.ts | 264 + ...DescribeLogMonitorAttributeResponseBody.js | 174 + ...ribeLogMonitorAttributeResponseBody.js.map | 1 + .../models/DescribeLogMonitorListRequest.d.ts | 46 + .../models/DescribeLogMonitorListRequest.js | 66 + .../DescribeLogMonitorListRequest.js.map | 1 + .../DescribeLogMonitorListResponse.d.ts | 19 + .../models/DescribeLogMonitorListResponse.js | 69 + .../DescribeLogMonitorListResponse.js.map | 1 + .../DescribeLogMonitorListResponseBody.d.ts | 208 + .../DescribeLogMonitorListResponseBody.js | 136 + .../DescribeLogMonitorListResponseBody.js.map | 1 + .../models/DescribeMetricDataRequest.d.ts | 140 + .../dist/models/DescribeMetricDataRequest.js | 74 + .../models/DescribeMetricDataRequest.js.map | 1 + .../models/DescribeMetricDataResponse.d.ts | 19 + .../dist/models/DescribeMetricDataResponse.js | 69 + .../models/DescribeMetricDataResponse.js.map | 1 + .../DescribeMetricDataResponseBody.d.ts | 64 + .../models/DescribeMetricDataResponseBody.js | 66 + .../DescribeMetricDataResponseBody.js.map | 1 + .../models/DescribeMetricLastRequest.d.ts | 117 + .../dist/models/DescribeMetricLastRequest.js | 76 + .../models/DescribeMetricLastRequest.js.map | 1 + .../models/DescribeMetricLastResponse.d.ts | 19 + .../dist/models/DescribeMetricLastResponse.js | 69 + .../models/DescribeMetricLastResponse.js.map | 1 + .../DescribeMetricLastResponseBody.d.ts | 76 + .../models/DescribeMetricLastResponseBody.js | 70 + .../DescribeMetricLastResponseBody.js.map | 1 + .../models/DescribeMetricListRequest.d.ts | 118 + .../dist/models/DescribeMetricListRequest.js | 76 + .../models/DescribeMetricListRequest.js.map | 1 + .../models/DescribeMetricListResponse.d.ts | 19 + .../dist/models/DescribeMetricListResponse.js | 69 + .../models/DescribeMetricListResponse.js.map | 1 + .../DescribeMetricListResponseBody.d.ts | 74 + .../models/DescribeMetricListResponseBody.js | 70 + .../DescribeMetricListResponseBody.js.map | 1 + .../models/DescribeMetricMetaListRequest.d.ts | 64 + .../models/DescribeMetricMetaListRequest.js | 66 + .../DescribeMetricMetaListRequest.js.map | 1 + .../DescribeMetricMetaListResponse.d.ts | 19 + .../models/DescribeMetricMetaListResponse.js | 69 + .../DescribeMetricMetaListResponse.js.map | 1 + .../DescribeMetricMetaListResponseBody.d.ts | 163 + .../DescribeMetricMetaListResponseBody.js | 126 + .../DescribeMetricMetaListResponseBody.js.map | 1 + .../DescribeMetricRuleBlackListRequest.d.ts | 98 + .../DescribeMetricRuleBlackListRequest.js | 84 + .../DescribeMetricRuleBlackListRequest.js.map | 1 + .../DescribeMetricRuleBlackListResponse.d.ts | 19 + .../DescribeMetricRuleBlackListResponse.js | 69 + ...DescribeMetricRuleBlackListResponse.js.map | 1 + ...scribeMetricRuleBlackListResponseBody.d.ts | 219 + ...DescribeMetricRuleBlackListResponseBody.js | 146 + ...ribeMetricRuleBlackListResponseBody.js.map | 1 + .../DescribeMetricRuleCountRequest.d.ts | 30 + .../models/DescribeMetricRuleCountRequest.js | 62 + .../DescribeMetricRuleCountRequest.js.map | 1 + .../DescribeMetricRuleCountResponse.d.ts | 19 + .../models/DescribeMetricRuleCountResponse.js | 69 + .../DescribeMetricRuleCountResponse.js.map | 1 + .../DescribeMetricRuleCountResponseBody.d.ts | 107 + .../DescribeMetricRuleCountResponseBody.js | 96 + ...DescribeMetricRuleCountResponseBody.js.map | 1 + .../models/DescribeMetricRuleListRequest.d.ts | 115 + .../models/DescribeMetricRuleListRequest.js | 78 + .../DescribeMetricRuleListRequest.js.map | 1 + .../DescribeMetricRuleListResponse.d.ts | 19 + .../models/DescribeMetricRuleListResponse.js | 69 + .../DescribeMetricRuleListResponse.js.map | 1 + .../DescribeMetricRuleListResponseBody.d.ts | 790 + .../DescribeMetricRuleListResponseBody.js | 480 + .../DescribeMetricRuleListResponseBody.js.map | 1 + .../DescribeMetricRuleTargetsRequest.d.ts | 26 + .../DescribeMetricRuleTargetsRequest.js | 60 + .../DescribeMetricRuleTargetsRequest.js.map | 1 + .../DescribeMetricRuleTargetsResponse.d.ts | 19 + .../DescribeMetricRuleTargetsResponse.js | 69 + .../DescribeMetricRuleTargetsResponse.js.map | 1 + ...DescribeMetricRuleTargetsResponseBody.d.ts | 121 + .../DescribeMetricRuleTargetsResponseBody.js | 116 + ...scribeMetricRuleTargetsResponseBody.js.map | 1 + ...ibeMetricRuleTemplateAttributeRequest.d.ts | 34 + ...cribeMetricRuleTemplateAttributeRequest.js | 62 + ...eMetricRuleTemplateAttributeRequest.js.map | 1 + ...beMetricRuleTemplateAttributeResponse.d.ts | 19 + ...ribeMetricRuleTemplateAttributeResponse.js | 69 + ...MetricRuleTemplateAttributeResponse.js.map | 1 + ...tricRuleTemplateAttributeResponseBody.d.ts | 439 + ...MetricRuleTemplateAttributeResponseBody.js | 314 + ...icRuleTemplateAttributeResponseBody.js.map | 1 + ...DescribeMetricRuleTemplateListRequest.d.ts | 89 + .../DescribeMetricRuleTemplateListRequest.js | 74 + ...scribeMetricRuleTemplateListRequest.js.map | 1 + ...escribeMetricRuleTemplateListResponse.d.ts | 19 + .../DescribeMetricRuleTemplateListResponse.js | 69 + ...cribeMetricRuleTemplateListResponse.js.map | 1 + ...ibeMetricRuleTemplateListResponseBody.d.ts | 195 + ...cribeMetricRuleTemplateListResponseBody.js | 172 + ...eMetricRuleTemplateListResponseBody.js.map | 1 + .../dist/models/DescribeMetricTopRequest.d.ts | 165 + .../dist/models/DescribeMetricTopRequest.js | 78 + .../models/DescribeMetricTopRequest.js.map | 1 + .../models/DescribeMetricTopResponse.d.ts | 19 + .../dist/models/DescribeMetricTopResponse.js | 69 + .../models/DescribeMetricTopResponse.js.map | 1 + .../models/DescribeMetricTopResponseBody.d.ts | 55 + .../models/DescribeMetricTopResponseBody.js | 66 + .../DescribeMetricTopResponseBody.js.map | 1 + ...DescribeMonitorGroupCategoriesRequest.d.ts | 24 + .../DescribeMonitorGroupCategoriesRequest.js | 60 + ...scribeMonitorGroupCategoriesRequest.js.map | 1 + ...escribeMonitorGroupCategoriesResponse.d.ts | 19 + .../DescribeMonitorGroupCategoriesResponse.js | 69 + ...cribeMonitorGroupCategoriesResponse.js.map | 1 + ...ibeMonitorGroupCategoriesResponseBody.d.ts | 123 + ...cribeMonitorGroupCategoriesResponseBody.js | 136 + ...eMonitorGroupCategoriesResponseBody.js.map | 1 + ...scribeMonitorGroupDynamicRulesRequest.d.ts | 24 + ...DescribeMonitorGroupDynamicRulesRequest.js | 60 + ...ribeMonitorGroupDynamicRulesRequest.js.map | 1 + ...cribeMonitorGroupDynamicRulesResponse.d.ts | 19 + ...escribeMonitorGroupDynamicRulesResponse.js | 69 + ...ibeMonitorGroupDynamicRulesResponse.js.map | 1 + ...eMonitorGroupDynamicRulesResponseBody.d.ts | 161 + ...ibeMonitorGroupDynamicRulesResponseBody.js | 162 + ...onitorGroupDynamicRulesResponseBody.js.map | 1 + ...eMonitorGroupInstanceAttributeRequest.d.ts | 85 + ...ibeMonitorGroupInstanceAttributeRequest.js | 72 + ...onitorGroupInstanceAttributeRequest.js.map | 1 + ...MonitorGroupInstanceAttributeResponse.d.ts | 19 + ...beMonitorGroupInstanceAttributeResponse.js | 69 + ...nitorGroupInstanceAttributeResponse.js.map | 1 + ...torGroupInstanceAttributeResponseBody.d.ts | 264 + ...nitorGroupInstanceAttributeResponseBody.js | 226 + ...rGroupInstanceAttributeResponseBody.js.map | 1 + .../DescribeMonitorGroupInstancesRequest.d.ts | 66 + .../DescribeMonitorGroupInstancesRequest.js | 70 + ...escribeMonitorGroupInstancesRequest.js.map | 1 + ...DescribeMonitorGroupInstancesResponse.d.ts | 19 + .../DescribeMonitorGroupInstancesResponse.js | 69 + ...scribeMonitorGroupInstancesResponse.js.map | 1 + ...ribeMonitorGroupInstancesResponseBody.d.ts | 141 + ...scribeMonitorGroupInstancesResponseBody.js | 124 + ...beMonitorGroupInstancesResponseBody.js.map | 1 + ...beMonitorGroupNotifyPolicyListRequest.d.ts | 50 + ...ribeMonitorGroupNotifyPolicyListRequest.js | 66 + ...MonitorGroupNotifyPolicyListRequest.js.map | 1 + ...eMonitorGroupNotifyPolicyListResponse.d.ts | 19 + ...ibeMonitorGroupNotifyPolicyListResponse.js | 69 + ...onitorGroupNotifyPolicyListResponse.js.map | 1 + ...itorGroupNotifyPolicyListResponseBody.d.ts | 132 + ...onitorGroupNotifyPolicyListResponseBody.js | 120 + ...orGroupNotifyPolicyListResponseBody.js.map | 1 + .../models/DescribeMonitorGroupsRequest.d.ts | 172 + .../models/DescribeMonitorGroupsRequest.js | 110 + .../DescribeMonitorGroupsRequest.js.map | 1 + .../models/DescribeMonitorGroupsResponse.d.ts | 19 + .../models/DescribeMonitorGroupsResponse.js | 69 + .../DescribeMonitorGroupsResponse.js.map | 1 + .../DescribeMonitorGroupsResponseBody.d.ts | 327 + .../DescribeMonitorGroupsResponseBody.js | 307 + .../DescribeMonitorGroupsResponseBody.js.map | 1 + ...eMonitorResourceQuotaAttributeRequest.d.ts | 25 + ...ibeMonitorResourceQuotaAttributeRequest.js | 60 + ...onitorResourceQuotaAttributeRequest.js.map | 1 + ...MonitorResourceQuotaAttributeResponse.d.ts | 19 + ...beMonitorResourceQuotaAttributeResponse.js | 69 + ...nitorResourceQuotaAttributeResponse.js.map | 1 + ...torResourceQuotaAttributeResponseBody.d.ts | 572 + ...nitorResourceQuotaAttributeResponseBody.js | 424 + ...rResourceQuotaAttributeResponseBody.js.map | 1 + ...scribeMonitoringAgentAccessKeyRequest.d.ts | 14 + ...DescribeMonitoringAgentAccessKeyRequest.js | 58 + ...ribeMonitoringAgentAccessKeyRequest.js.map | 1 + ...cribeMonitoringAgentAccessKeyResponse.d.ts | 19 + ...escribeMonitoringAgentAccessKeyResponse.js | 69 + ...ibeMonitoringAgentAccessKeyResponse.js.map | 1 + ...eMonitoringAgentAccessKeyResponseBody.d.ts | 66 + ...ibeMonitoringAgentAccessKeyResponseBody.js | 68 + ...onitoringAgentAccessKeyResponseBody.js.map | 1 + .../DescribeMonitoringAgentConfigRequest.d.ts | 14 + .../DescribeMonitoringAgentConfigRequest.js | 58 + ...escribeMonitoringAgentConfigRequest.js.map | 1 + ...DescribeMonitoringAgentConfigResponse.d.ts | 19 + .../DescribeMonitoringAgentConfigResponse.js | 69 + ...scribeMonitoringAgentConfigResponse.js.map | 1 + ...ribeMonitoringAgentConfigResponseBody.d.ts | 80 + ...scribeMonitoringAgentConfigResponseBody.js | 70 + ...beMonitoringAgentConfigResponseBody.js.map | 1 + .../DescribeMonitoringAgentHostsRequest.d.ts | 116 + .../DescribeMonitoringAgentHostsRequest.js | 78 + ...DescribeMonitoringAgentHostsRequest.js.map | 1 + .../DescribeMonitoringAgentHostsResponse.d.ts | 19 + .../DescribeMonitoringAgentHostsResponse.js | 69 + ...escribeMonitoringAgentHostsResponse.js.map | 1 + ...cribeMonitoringAgentHostsResponseBody.d.ts | 231 + ...escribeMonitoringAgentHostsResponseBody.js | 144 + ...ibeMonitoringAgentHostsResponseBody.js.map | 1 + ...scribeMonitoringAgentProcessesRequest.d.ts | 24 + ...DescribeMonitoringAgentProcessesRequest.js | 60 + ...ribeMonitoringAgentProcessesRequest.js.map | 1 + ...cribeMonitoringAgentProcessesResponse.d.ts | 19 + ...escribeMonitoringAgentProcessesResponse.js | 69 + ...ibeMonitoringAgentProcessesResponse.js.map | 1 + ...eMonitoringAgentProcessesResponseBody.d.ts | 130 + ...ibeMonitoringAgentProcessesResponseBody.js | 120 + ...onitoringAgentProcessesResponseBody.js.map | 1 + ...escribeMonitoringAgentStatusesRequest.d.ts | 30 + .../DescribeMonitoringAgentStatusesRequest.js | 62 + ...cribeMonitoringAgentStatusesRequest.js.map | 1 + ...scribeMonitoringAgentStatusesResponse.d.ts | 19 + ...DescribeMonitoringAgentStatusesResponse.js | 69 + ...ribeMonitoringAgentStatusesResponse.js.map | 1 + ...beMonitoringAgentStatusesResponseBody.d.ts | 189 + ...ribeMonitoringAgentStatusesResponseBody.js | 130 + ...MonitoringAgentStatusesResponseBody.js.map | 1 + .../DescribeMonitoringConfigRequest.d.ts | 14 + .../models/DescribeMonitoringConfigRequest.js | 58 + .../DescribeMonitoringConfigRequest.js.map | 1 + .../DescribeMonitoringConfigResponse.d.ts | 19 + .../DescribeMonitoringConfigResponse.js | 69 + .../DescribeMonitoringConfigResponse.js.map | 1 + .../DescribeMonitoringConfigResponseBody.d.ts | 72 + .../DescribeMonitoringConfigResponseBody.js | 68 + ...escribeMonitoringConfigResponseBody.js.map | 1 + ...cribeProductResourceTagKeyListRequest.d.ts | 22 + ...escribeProductResourceTagKeyListRequest.js | 60 + ...ibeProductResourceTagKeyListRequest.js.map | 1 + ...ribeProductResourceTagKeyListResponse.d.ts | 19 + ...scribeProductResourceTagKeyListResponse.js | 69 + ...beProductResourceTagKeyListResponse.js.map | 1 + ...ProductResourceTagKeyListResponseBody.d.ts | 71 + ...beProductResourceTagKeyListResponseBody.js | 93 + ...oductResourceTagKeyListResponseBody.js.map | 1 + ...ribeProductsOfActiveMetricRuleRequest.d.ts | 14 + ...scribeProductsOfActiveMetricRuleRequest.js | 58 + ...beProductsOfActiveMetricRuleRequest.js.map | 1 + ...ibeProductsOfActiveMetricRuleResponse.d.ts | 19 + ...cribeProductsOfActiveMetricRuleResponse.js | 69 + ...eProductsOfActiveMetricRuleResponse.js.map | 1 + ...roductsOfActiveMetricRuleResponseBody.d.ts | 252 + ...eProductsOfActiveMetricRuleResponseBody.js | 172 + ...ductsOfActiveMetricRuleResponseBody.js.map | 1 + .../models/DescribeProjectMetaRequest.d.ts | 51 + .../dist/models/DescribeProjectMetaRequest.js | 62 + .../models/DescribeProjectMetaRequest.js.map | 1 + .../models/DescribeProjectMetaResponse.d.ts | 19 + .../models/DescribeProjectMetaResponse.js | 69 + .../models/DescribeProjectMetaResponse.js.map | 1 + .../DescribeProjectMetaResponseBody.d.ts | 132 + .../models/DescribeProjectMetaResponseBody.js | 120 + .../DescribeProjectMetaResponseBody.js.map | 1 + .../DescribeSiteMonitorAttributeRequest.d.ts | 35 + .../DescribeSiteMonitorAttributeRequest.js | 62 + ...DescribeSiteMonitorAttributeRequest.js.map | 1 + .../DescribeSiteMonitorAttributeResponse.d.ts | 19 + .../DescribeSiteMonitorAttributeResponse.js | 69 + ...escribeSiteMonitorAttributeResponse.js.map | 1 + ...cribeSiteMonitorAttributeResponseBody.d.ts | 1322 + ...escribeSiteMonitorAttributeResponseBody.js | 1022 + ...ibeSiteMonitorAttributeResponseBody.js.map | 1 + .../DescribeSiteMonitorDataRequest.d.ts | 96 + .../models/DescribeSiteMonitorDataRequest.js | 74 + .../DescribeSiteMonitorDataRequest.js.map | 1 + .../DescribeSiteMonitorDataResponse.d.ts | 19 + .../models/DescribeSiteMonitorDataResponse.js | 69 + .../DescribeSiteMonitorDataResponse.js.map | 1 + .../DescribeSiteMonitorDataResponseBody.d.ts | 63 + .../DescribeSiteMonitorDataResponseBody.js | 68 + ...DescribeSiteMonitorDataResponseBody.js.map | 1 + ...DescribeSiteMonitorIspcityListRequest.d.ts | 61 + .../DescribeSiteMonitorIspcityListRequest.js | 68 + ...scribeSiteMonitorIspcityListRequest.js.map | 1 + ...escribeSiteMonitorIspcityListResponse.d.ts | 19 + .../DescribeSiteMonitorIspcityListResponse.js | 69 + ...cribeSiteMonitorIspcityListResponse.js.map | 1 + ...ibeSiteMonitorIspcityListResponseBody.d.ts | 158 + ...cribeSiteMonitorIspcityListResponseBody.js | 167 + ...eSiteMonitorIspcityListResponseBody.js.map | 1 + .../DescribeSiteMonitorListRequest.d.ts | 81 + .../models/DescribeSiteMonitorListRequest.js | 72 + .../DescribeSiteMonitorListRequest.js.map | 1 + .../DescribeSiteMonitorListResponse.d.ts | 19 + .../models/DescribeSiteMonitorListResponse.js | 69 + .../DescribeSiteMonitorListResponse.js.map | 1 + .../DescribeSiteMonitorListResponseBody.d.ts | 572 + .../DescribeSiteMonitorListResponseBody.js | 264 + ...DescribeSiteMonitorListResponseBody.js.map | 1 + .../models/DescribeSiteMonitorLogRequest.d.ts | 116 + .../models/DescribeSiteMonitorLogRequest.js | 82 + .../DescribeSiteMonitorLogRequest.js.map | 1 + .../DescribeSiteMonitorLogResponse.d.ts | 19 + .../models/DescribeSiteMonitorLogResponse.js | 69 + .../DescribeSiteMonitorLogResponse.js.map | 1 + .../DescribeSiteMonitorLogResponseBody.d.ts | 68 + .../DescribeSiteMonitorLogResponseBody.js | 68 + .../DescribeSiteMonitorLogResponseBody.js.map | 1 + .../DescribeSiteMonitorQuotaRequest.d.ts | 14 + .../models/DescribeSiteMonitorQuotaRequest.js | 58 + .../DescribeSiteMonitorQuotaRequest.js.map | 1 + .../DescribeSiteMonitorQuotaResponse.d.ts | 19 + .../DescribeSiteMonitorQuotaResponse.js | 69 + .../DescribeSiteMonitorQuotaResponse.js.map | 1 + .../DescribeSiteMonitorQuotaResponseBody.d.ts | 118 + .../DescribeSiteMonitorQuotaResponseBody.js | 98 + ...escribeSiteMonitorQuotaResponseBody.js.map | 1 + .../DescribeSiteMonitorStatisticsRequest.d.ts | 60 + .../DescribeSiteMonitorStatisticsRequest.js | 66 + ...escribeSiteMonitorStatisticsRequest.js.map | 1 + ...DescribeSiteMonitorStatisticsResponse.d.ts | 19 + .../DescribeSiteMonitorStatisticsResponse.js | 69 + ...scribeSiteMonitorStatisticsResponse.js.map | 1 + ...ribeSiteMonitorStatisticsResponseBody.d.ts | 58 + ...scribeSiteMonitorStatisticsResponseBody.js | 66 + ...beSiteMonitorStatisticsResponseBody.js.map | 1 + .../DescribeSyntheticProbeListRequest.d.ts | 46 + .../DescribeSyntheticProbeListRequest.js | 74 + .../DescribeSyntheticProbeListRequest.js.map | 1 + .../DescribeSyntheticProbeListResponse.d.ts | 19 + .../DescribeSyntheticProbeListResponse.js | 69 + .../DescribeSyntheticProbeListResponse.js.map | 1 + ...escribeSyntheticProbeListResponseBody.d.ts | 128 + .../DescribeSyntheticProbeListResponseBody.js | 127 + ...cribeSyntheticProbeListResponseBody.js.map | 1 + .../DescribeSystemEventAttributeRequest.d.ts | 129 + .../DescribeSystemEventAttributeRequest.js | 80 + ...DescribeSystemEventAttributeRequest.js.map | 1 + .../DescribeSystemEventAttributeResponse.d.ts | 19 + .../DescribeSystemEventAttributeResponse.js | 69 + ...escribeSystemEventAttributeResponse.js.map | 1 + ...cribeSystemEventAttributeResponseBody.d.ts | 171 + ...escribeSystemEventAttributeResponseBody.js | 130 + ...ibeSystemEventAttributeResponseBody.js.map | 1 + .../DescribeSystemEventCountRequest.d.ts | 103 + .../models/DescribeSystemEventCountRequest.js | 76 + .../DescribeSystemEventCountRequest.js.map | 1 + .../DescribeSystemEventCountResponse.d.ts | 19 + .../DescribeSystemEventCountResponse.js | 69 + .../DescribeSystemEventCountResponse.js.map | 1 + .../DescribeSystemEventCountResponseBody.d.ts | 171 + .../DescribeSystemEventCountResponseBody.js | 130 + ...escribeSystemEventCountResponseBody.js.map | 1 + .../DescribeSystemEventHistogramRequest.d.ts | 105 + .../DescribeSystemEventHistogramRequest.js | 76 + ...DescribeSystemEventHistogramRequest.js.map | 1 + .../DescribeSystemEventHistogramResponse.d.ts | 19 + .../DescribeSystemEventHistogramResponse.js | 69 + ...escribeSystemEventHistogramResponse.js.map | 1 + ...cribeSystemEventHistogramResponseBody.d.ts | 105 + ...escribeSystemEventHistogramResponseBody.js | 114 + ...ibeSystemEventHistogramResponseBody.js.map | 1 + .../DescribeSystemEventMetaListRequest.d.ts | 14 + .../DescribeSystemEventMetaListRequest.js | 58 + .../DescribeSystemEventMetaListRequest.js.map | 1 + .../DescribeSystemEventMetaListResponse.d.ts | 19 + .../DescribeSystemEventMetaListResponse.js | 69 + ...DescribeSystemEventMetaListResponse.js.map | 1 + ...scribeSystemEventMetaListResponseBody.d.ts | 145 + ...DescribeSystemEventMetaListResponseBody.js | 124 + ...ribeSystemEventMetaListResponseBody.js.map | 1 + .../models/DescribeTagKeyListRequest.d.ts | 34 + .../dist/models/DescribeTagKeyListRequest.js | 62 + .../models/DescribeTagKeyListRequest.js.map | 1 + .../models/DescribeTagKeyListResponse.d.ts | 19 + .../dist/models/DescribeTagKeyListResponse.js | 69 + .../models/DescribeTagKeyListResponse.js.map | 1 + .../DescribeTagKeyListResponseBody.d.ts | 64 + .../models/DescribeTagKeyListResponseBody.js | 91 + .../DescribeTagKeyListResponseBody.js.map | 1 + .../models/DescribeTagValueListRequest.d.ts | 46 + .../models/DescribeTagValueListRequest.js | 64 + .../models/DescribeTagValueListRequest.js.map | 1 + .../models/DescribeTagValueListResponse.d.ts | 19 + .../models/DescribeTagValueListResponse.js | 69 + .../DescribeTagValueListResponse.js.map | 1 + .../DescribeTagValueListResponseBody.d.ts | 64 + .../DescribeTagValueListResponseBody.js | 91 + .../DescribeTagValueListResponseBody.js.map | 1 + ...cribeUnhealthyHostAvailabilityRequest.d.ts | 24 + ...escribeUnhealthyHostAvailabilityRequest.js | 63 + ...ibeUnhealthyHostAvailabilityRequest.js.map | 1 + ...ribeUnhealthyHostAvailabilityResponse.d.ts | 19 + ...scribeUnhealthyHostAvailabilityResponse.js | 69 + ...beUnhealthyHostAvailabilityResponse.js.map | 1 + ...UnhealthyHostAvailabilityResponseBody.d.ts | 102 + ...beUnhealthyHostAvailabilityResponseBody.js | 137 + ...healthyHostAvailabilityResponseBody.js.map | 1 + .../cms20190101/dist/models/Dimension.d.ts | 15 + .../cms20190101/dist/models/Dimension.js | 60 + .../cms20190101/dist/models/Dimension.js.map | 1 + .../DisableActiveMetricRuleRequest.d.ts | 36 + .../models/DisableActiveMetricRuleRequest.js | 60 + .../DisableActiveMetricRuleRequest.js.map | 1 + .../DisableActiveMetricRuleResponse.d.ts | 19 + .../models/DisableActiveMetricRuleResponse.js | 69 + .../DisableActiveMetricRuleResponse.js.map | 1 + .../DisableActiveMetricRuleResponseBody.d.ts | 50 + .../DisableActiveMetricRuleResponseBody.js | 64 + ...DisableActiveMetricRuleResponseBody.js.map | 1 + .../dist/models/DisableEventRulesRequest.d.ts | 22 + .../dist/models/DisableEventRulesRequest.js | 63 + .../models/DisableEventRulesRequest.js.map | 1 + .../models/DisableEventRulesResponse.d.ts | 19 + .../dist/models/DisableEventRulesResponse.js | 69 + .../models/DisableEventRulesResponse.js.map | 1 + .../models/DisableEventRulesResponseBody.d.ts | 47 + .../models/DisableEventRulesResponseBody.js | 64 + .../DisableEventRulesResponseBody.js.map | 1 + .../DisableHostAvailabilityRequest.d.ts | 24 + .../models/DisableHostAvailabilityRequest.js | 63 + .../DisableHostAvailabilityRequest.js.map | 1 + .../DisableHostAvailabilityResponse.d.ts | 19 + .../models/DisableHostAvailabilityResponse.js | 69 + .../DisableHostAvailabilityResponse.js.map | 1 + .../DisableHostAvailabilityResponseBody.d.ts | 50 + .../DisableHostAvailabilityResponseBody.js | 64 + ...DisableHostAvailabilityResponseBody.js.map | 1 + .../models/DisableMetricRulesRequest.d.ts | 24 + .../dist/models/DisableMetricRulesRequest.js | 63 + .../models/DisableMetricRulesRequest.js.map | 1 + .../models/DisableMetricRulesResponse.d.ts | 19 + .../dist/models/DisableMetricRulesResponse.js | 69 + .../models/DisableMetricRulesResponse.js.map | 1 + .../DisableMetricRulesResponseBody.d.ts | 50 + .../models/DisableMetricRulesResponseBody.js | 64 + .../DisableMetricRulesResponseBody.js.map | 1 + .../models/DisableSiteMonitorsRequest.d.ts | 24 + .../dist/models/DisableSiteMonitorsRequest.js | 60 + .../models/DisableSiteMonitorsRequest.js.map | 1 + .../models/DisableSiteMonitorsResponse.d.ts | 19 + .../models/DisableSiteMonitorsResponse.js | 69 + .../models/DisableSiteMonitorsResponse.js.map | 1 + .../DisableSiteMonitorsResponseBody.d.ts | 75 + .../models/DisableSiteMonitorsResponseBody.js | 88 + .../DisableSiteMonitorsResponseBody.js.map | 1 + .../models/EnableActiveMetricRuleRequest.d.ts | 36 + .../models/EnableActiveMetricRuleRequest.js | 60 + .../EnableActiveMetricRuleRequest.js.map | 1 + .../EnableActiveMetricRuleResponse.d.ts | 19 + .../models/EnableActiveMetricRuleResponse.js | 69 + .../EnableActiveMetricRuleResponse.js.map | 1 + .../EnableActiveMetricRuleResponseBody.d.ts | 50 + .../EnableActiveMetricRuleResponseBody.js | 64 + .../EnableActiveMetricRuleResponseBody.js.map | 1 + .../dist/models/EnableEventRulesRequest.d.ts | 22 + .../dist/models/EnableEventRulesRequest.js | 63 + .../models/EnableEventRulesRequest.js.map | 1 + .../dist/models/EnableEventRulesResponse.d.ts | 19 + .../dist/models/EnableEventRulesResponse.js | 69 + .../models/EnableEventRulesResponse.js.map | 1 + .../models/EnableEventRulesResponseBody.d.ts | 47 + .../models/EnableEventRulesResponseBody.js | 64 + .../EnableEventRulesResponseBody.js.map | 1 + .../models/EnableHostAvailabilityRequest.d.ts | 24 + .../models/EnableHostAvailabilityRequest.js | 63 + .../EnableHostAvailabilityRequest.js.map | 1 + .../EnableHostAvailabilityResponse.d.ts | 19 + .../models/EnableHostAvailabilityResponse.js | 69 + .../EnableHostAvailabilityResponse.js.map | 1 + .../EnableHostAvailabilityResponseBody.d.ts | 50 + .../EnableHostAvailabilityResponseBody.js | 64 + .../EnableHostAvailabilityResponseBody.js.map | 1 + .../EnableMetricRuleBlackListRequest.d.ts | 41 + .../EnableMetricRuleBlackListRequest.js | 62 + .../EnableMetricRuleBlackListRequest.js.map | 1 + .../EnableMetricRuleBlackListResponse.d.ts | 19 + .../EnableMetricRuleBlackListResponse.js | 69 + .../EnableMetricRuleBlackListResponse.js.map | 1 + ...EnableMetricRuleBlackListResponseBody.d.ts | 58 + .../EnableMetricRuleBlackListResponseBody.js | 66 + ...ableMetricRuleBlackListResponseBody.js.map | 1 + .../dist/models/EnableMetricRulesRequest.d.ts | 28 + .../dist/models/EnableMetricRulesRequest.js | 63 + .../models/EnableMetricRulesRequest.js.map | 1 + .../models/EnableMetricRulesResponse.d.ts | 19 + .../dist/models/EnableMetricRulesResponse.js | 69 + .../models/EnableMetricRulesResponse.js.map | 1 + .../models/EnableMetricRulesResponseBody.d.ts | 50 + .../models/EnableMetricRulesResponseBody.js | 64 + .../EnableMetricRulesResponseBody.js.map | 1 + .../models/EnableSiteMonitorsRequest.d.ts | 24 + .../dist/models/EnableSiteMonitorsRequest.js | 60 + .../models/EnableSiteMonitorsRequest.js.map | 1 + .../models/EnableSiteMonitorsResponse.d.ts | 19 + .../dist/models/EnableSiteMonitorsResponse.js | 69 + .../models/EnableSiteMonitorsResponse.js.map | 1 + .../EnableSiteMonitorsResponseBody.d.ts | 75 + .../models/EnableSiteMonitorsResponseBody.js | 88 + .../EnableSiteMonitorsResponseBody.js.map | 1 + .../dist/models/EscalationRule.d.ts | 61 + .../cms20190101/dist/models/EscalationRule.js | 149 + .../dist/models/EscalationRule.js.map | 1 + .../cms20190101/dist/models/Incident.d.ts | 27 + .../cms20190101/dist/models/Incident.js | 83 + .../cms20190101/dist/models/Incident.js.map | 1 + .../models/InstallMonitoringAgentRequest.d.ts | 44 + .../models/InstallMonitoringAgentRequest.js | 67 + .../InstallMonitoringAgentRequest.js.map | 1 + .../InstallMonitoringAgentResponse.d.ts | 19 + .../models/InstallMonitoringAgentResponse.js | 69 + .../InstallMonitoringAgentResponse.js.map | 1 + .../InstallMonitoringAgentResponseBody.d.ts | 50 + .../InstallMonitoringAgentResponseBody.js | 64 + .../InstallMonitoringAgentResponseBody.js.map | 1 + .../cms20190101/dist/models/Matcher.d.ts | 16 + .../cms20190101/dist/models/Matcher.js | 62 + .../cms20190101/dist/models/Matcher.js.map | 1 + .../cms20190101/dist/models/MetricStat.d.ts | 26 + .../cms20190101/dist/models/MetricStat.js | 82 + .../cms20190101/dist/models/MetricStat.js.map | 1 + .../cms20190101/dist/models/MigrationJob.d.ts | 321 + .../cms20190101/dist/models/MigrationJob.js | 622 + .../dist/models/MigrationJob.js.map | 1 + ...ifyGroupMonitoringAgentProcessRequest.d.ts | 238 + ...odifyGroupMonitoringAgentProcessRequest.js | 134 + ...yGroupMonitoringAgentProcessRequest.js.map | 1 + ...fyGroupMonitoringAgentProcessResponse.d.ts | 19 + ...difyGroupMonitoringAgentProcessResponse.js | 69 + ...GroupMonitoringAgentProcessResponse.js.map | 1 + ...oupMonitoringAgentProcessResponseBody.d.ts | 50 + ...GroupMonitoringAgentProcessResponseBody.js | 64 + ...pMonitoringAgentProcessResponseBody.js.map | 1 + .../models/ModifyHostAvailabilityRequest.d.ts | 387 + .../models/ModifyHostAvailabilityRequest.js | 205 + .../ModifyHostAvailabilityRequest.js.map | 1 + .../ModifyHostAvailabilityResponse.d.ts | 19 + .../models/ModifyHostAvailabilityResponse.js | 69 + .../ModifyHostAvailabilityResponse.js.map | 1 + .../ModifyHostAvailabilityResponseBody.d.ts | 50 + .../ModifyHostAvailabilityResponseBody.js | 64 + .../ModifyHostAvailabilityResponseBody.js.map | 1 + .../dist/models/ModifyHostInfoRequest.d.ts | 32 + .../dist/models/ModifyHostInfoRequest.js | 62 + .../dist/models/ModifyHostInfoRequest.js.map | 1 + .../dist/models/ModifyHostInfoResponse.d.ts | 19 + .../dist/models/ModifyHostInfoResponse.js | 69 + .../dist/models/ModifyHostInfoResponse.js.map | 1 + .../models/ModifyHostInfoResponseBody.d.ts | 47 + .../dist/models/ModifyHostInfoResponseBody.js | 64 + .../models/ModifyHostInfoResponseBody.js.map | 1 + .../ModifyHybridMonitorNamespaceRequest.d.ts | 50 + .../ModifyHybridMonitorNamespaceRequest.js | 64 + ...ModifyHybridMonitorNamespaceRequest.js.map | 1 + .../ModifyHybridMonitorNamespaceResponse.d.ts | 19 + .../ModifyHybridMonitorNamespaceResponse.js | 69 + ...odifyHybridMonitorNamespaceResponse.js.map | 1 + ...ifyHybridMonitorNamespaceResponseBody.d.ts | 48 + ...odifyHybridMonitorNamespaceResponseBody.js | 64 + ...yHybridMonitorNamespaceResponseBody.js.map | 1 + .../ModifyHybridMonitorSlsgroupRequest.d.ts | 102 + .../ModifyHybridMonitorSlsgroupRequest.js | 92 + .../ModifyHybridMonitorSlsgroupRequest.js.map | 1 + .../ModifyHybridMonitorSlsgroupResponse.d.ts | 19 + .../ModifyHybridMonitorSlsgroupResponse.js | 69 + ...ModifyHybridMonitorSlsgroupResponse.js.map | 1 + ...difyHybridMonitorSlsgroupResponseBody.d.ts | 50 + ...ModifyHybridMonitorSlsgroupResponseBody.js | 64 + ...fyHybridMonitorSlsgroupResponseBody.js.map | 1 + .../ModifyHybridMonitorTaskRequest.d.ts | 322 + .../models/ModifyHybridMonitorTaskRequest.js | 250 + .../ModifyHybridMonitorTaskRequest.js.map | 1 + .../ModifyHybridMonitorTaskResponse.d.ts | 19 + .../models/ModifyHybridMonitorTaskResponse.js | 69 + .../ModifyHybridMonitorTaskResponse.js.map | 1 + .../ModifyHybridMonitorTaskResponseBody.d.ts | 50 + .../ModifyHybridMonitorTaskResponseBody.js | 64 + ...ModifyHybridMonitorTaskResponseBody.js.map | 1 + .../ModifyMetricRuleBlackListRequest.d.ts | 163 + .../ModifyMetricRuleBlackListRequest.js | 107 + .../ModifyMetricRuleBlackListRequest.js.map | 1 + .../ModifyMetricRuleBlackListResponse.d.ts | 19 + .../ModifyMetricRuleBlackListResponse.js | 69 + .../ModifyMetricRuleBlackListResponse.js.map | 1 + ...ModifyMetricRuleBlackListResponseBody.d.ts | 58 + .../ModifyMetricRuleBlackListResponseBody.js | 66 + ...difyMetricRuleBlackListResponseBody.js.map | 1 + .../ModifyMetricRuleTemplateRequest.d.ts | 224 + .../models/ModifyMetricRuleTemplateRequest.js | 220 + .../ModifyMetricRuleTemplateRequest.js.map | 1 + .../ModifyMetricRuleTemplateResponse.d.ts | 19 + .../ModifyMetricRuleTemplateResponse.js | 69 + .../ModifyMetricRuleTemplateResponse.js.map | 1 + .../ModifyMetricRuleTemplateResponseBody.d.ts | 50 + .../ModifyMetricRuleTemplateResponseBody.js | 64 + ...odifyMetricRuleTemplateResponseBody.js.map | 1 + .../ModifyMonitorGroupInstancesRequest.d.ts | 153 + .../ModifyMonitorGroupInstancesRequest.js | 90 + .../ModifyMonitorGroupInstancesRequest.js.map | 1 + .../ModifyMonitorGroupInstancesResponse.d.ts | 19 + .../ModifyMonitorGroupInstancesResponse.js | 69 + ...ModifyMonitorGroupInstancesResponse.js.map | 1 + ...difyMonitorGroupInstancesResponseBody.d.ts | 47 + ...ModifyMonitorGroupInstancesResponseBody.js | 64 + ...fyMonitorGroupInstancesResponseBody.js.map | 1 + .../models/ModifyMonitorGroupRequest.d.ts | 40 + .../dist/models/ModifyMonitorGroupRequest.js | 64 + .../models/ModifyMonitorGroupRequest.js.map | 1 + .../models/ModifyMonitorGroupResponse.d.ts | 19 + .../dist/models/ModifyMonitorGroupResponse.js | 69 + .../models/ModifyMonitorGroupResponse.js.map | 1 + .../ModifyMonitorGroupResponseBody.d.ts | 50 + .../models/ModifyMonitorGroupResponseBody.js | 64 + .../ModifyMonitorGroupResponseBody.js.map | 1 + .../dist/models/ModifySiteMonitorRequest.d.ts | 92 + .../dist/models/ModifySiteMonitorRequest.js | 76 + .../models/ModifySiteMonitorRequest.js.map | 1 + .../models/ModifySiteMonitorResponse.d.ts | 19 + .../dist/models/ModifySiteMonitorResponse.js | 69 + .../models/ModifySiteMonitorResponse.js.map | 1 + .../models/ModifySiteMonitorResponseBody.d.ts | 75 + .../models/ModifySiteMonitorResponseBody.js | 88 + .../ModifySiteMonitorResponseBody.js.map | 1 + .../dist/models/NotificationStrategy.d.ts | 223 + .../dist/models/NotificationStrategy.js | 377 + .../dist/models/NotificationStrategy.js.map | 1 + .../dist/models/NotificationTemplate.d.ts | 63 + .../dist/models/NotificationTemplate.js | 84 + .../dist/models/NotificationTemplate.js.map | 1 + .../dist/models/PushingTarget.d.ts | 61 + .../cms20190101/dist/models/PushingTarget.js | 136 + .../dist/models/PushingTarget.js.map | 1 + .../dist/models/PutContactGroupRequest.d.ts | 54 + .../dist/models/PutContactGroupRequest.js | 67 + .../dist/models/PutContactGroupRequest.js.map | 1 + .../dist/models/PutContactGroupResponse.d.ts | 19 + .../dist/models/PutContactGroupResponse.js | 69 + .../models/PutContactGroupResponse.js.map | 1 + .../models/PutContactGroupResponseBody.d.ts | 50 + .../models/PutContactGroupResponseBody.js | 64 + .../models/PutContactGroupResponseBody.js.map | 1 + .../dist/models/PutContactRequest.d.ts | 99 + .../dist/models/PutContactRequest.js | 92 + .../dist/models/PutContactRequest.js.map | 1 + .../dist/models/PutContactResponse.d.ts | 19 + .../dist/models/PutContactResponse.js | 69 + .../dist/models/PutContactResponse.js.map | 1 + .../dist/models/PutContactResponseBody.d.ts | 50 + .../dist/models/PutContactResponseBody.js | 64 + .../dist/models/PutContactResponseBody.js.map | 1 + .../dist/models/PutCustomEventRequest.d.ts | 77 + .../dist/models/PutCustomEventRequest.js | 88 + .../dist/models/PutCustomEventRequest.js.map | 1 + .../dist/models/PutCustomEventResponse.d.ts | 19 + .../dist/models/PutCustomEventResponse.js | 69 + .../dist/models/PutCustomEventResponse.js.map | 1 + .../models/PutCustomEventResponseBody.d.ts | 39 + .../dist/models/PutCustomEventResponseBody.js | 62 + .../models/PutCustomEventResponseBody.js.map | 1 + .../models/PutCustomEventRuleRequest.d.ts | 120 + .../dist/models/PutCustomEventRuleRequest.js | 78 + .../models/PutCustomEventRuleRequest.js.map | 1 + .../models/PutCustomEventRuleResponse.d.ts | 19 + .../dist/models/PutCustomEventRuleResponse.js | 69 + .../models/PutCustomEventRuleResponse.js.map | 1 + .../PutCustomEventRuleResponseBody.d.ts | 50 + .../models/PutCustomEventRuleResponseBody.js | 64 + .../PutCustomEventRuleResponseBody.js.map | 1 + .../dist/models/PutCustomMetricRequest.d.ts | 121 + .../dist/models/PutCustomMetricRequest.js | 94 + .../dist/models/PutCustomMetricRequest.js.map | 1 + .../dist/models/PutCustomMetricResponse.d.ts | 19 + .../dist/models/PutCustomMetricResponse.js | 69 + .../models/PutCustomMetricResponse.js.map | 1 + .../models/PutCustomMetricResponseBody.d.ts | 39 + .../models/PutCustomMetricResponseBody.js | 62 + .../models/PutCustomMetricResponseBody.js.map | 1 + .../models/PutCustomMetricRuleRequest.d.ts | 175 + .../dist/models/PutCustomMetricRuleRequest.js | 88 + .../models/PutCustomMetricRuleRequest.js.map | 1 + .../models/PutCustomMetricRuleResponse.d.ts | 19 + .../models/PutCustomMetricRuleResponse.js | 69 + .../models/PutCustomMetricRuleResponse.js.map | 1 + .../PutCustomMetricRuleResponseBody.d.ts | 50 + .../models/PutCustomMetricRuleResponseBody.js | 64 + .../PutCustomMetricRuleResponseBody.js.map | 1 + .../dist/models/PutEventRuleRequest.d.ts | 134 + .../dist/models/PutEventRuleRequest.js | 118 + .../dist/models/PutEventRuleRequest.js.map | 1 + .../dist/models/PutEventRuleResponse.d.ts | 19 + .../dist/models/PutEventRuleResponse.js | 69 + .../dist/models/PutEventRuleResponse.js.map | 1 + .../dist/models/PutEventRuleResponseBody.d.ts | 58 + .../dist/models/PutEventRuleResponseBody.js | 66 + .../models/PutEventRuleResponseBody.js.map | 1 + .../models/PutEventRuleTargetsRequest.d.ts | 350 + .../dist/models/PutEventRuleTargetsRequest.js | 246 + .../models/PutEventRuleTargetsRequest.js.map | 1 + .../models/PutEventRuleTargetsResponse.d.ts | 19 + .../models/PutEventRuleTargetsResponse.js | 69 + .../models/PutEventRuleTargetsResponse.js.map | 1 + .../PutEventRuleTargetsResponseBody.d.ts | 224 + .../models/PutEventRuleTargetsResponseBody.js | 218 + .../PutEventRuleTargetsResponseBody.js.map | 1 + .../dist/models/PutExporterOutputRequest.d.ts | 56 + .../dist/models/PutExporterOutputRequest.js | 66 + .../models/PutExporterOutputRequest.js.map | 1 + .../models/PutExporterOutputResponse.d.ts | 19 + .../dist/models/PutExporterOutputResponse.js | 69 + .../models/PutExporterOutputResponse.js.map | 1 + .../models/PutExporterOutputResponseBody.d.ts | 47 + .../models/PutExporterOutputResponseBody.js | 64 + .../PutExporterOutputResponseBody.js.map | 1 + .../dist/models/PutExporterRuleRequest.d.ts | 78 + .../dist/models/PutExporterRuleRequest.js | 73 + .../dist/models/PutExporterRuleRequest.js.map | 1 + .../dist/models/PutExporterRuleResponse.d.ts | 19 + .../dist/models/PutExporterRuleResponse.js | 69 + .../models/PutExporterRuleResponse.js.map | 1 + .../models/PutExporterRuleResponseBody.d.ts | 50 + .../models/PutExporterRuleResponseBody.js | 64 + .../models/PutExporterRuleResponseBody.js.map | 1 + .../models/PutGroupMetricRuleRequest.d.ts | 414 + .../dist/models/PutGroupMetricRuleRequest.js | 230 + .../models/PutGroupMetricRuleRequest.js.map | 1 + .../models/PutGroupMetricRuleResponse.d.ts | 19 + .../dist/models/PutGroupMetricRuleResponse.js | 69 + .../models/PutGroupMetricRuleResponse.js.map | 1 + .../PutGroupMetricRuleResponseBody.d.ts | 75 + .../models/PutGroupMetricRuleResponseBody.js | 88 + .../PutGroupMetricRuleResponseBody.js.map | 1 + .../PutHybridMonitorMetricDataRequest.d.ts | 135 + .../PutHybridMonitorMetricDataRequest.js | 114 + .../PutHybridMonitorMetricDataRequest.js.map | 1 + .../PutHybridMonitorMetricDataResponse.d.ts | 19 + .../PutHybridMonitorMetricDataResponse.js | 69 + .../PutHybridMonitorMetricDataResponse.js.map | 1 + ...utHybridMonitorMetricDataResponseBody.d.ts | 66 + .../PutHybridMonitorMetricDataResponseBody.js | 86 + ...HybridMonitorMetricDataResponseBody.js.map | 1 + .../dist/models/PutLogMonitorRequest.d.ts | 256 + .../dist/models/PutLogMonitorRequest.js | 160 + .../dist/models/PutLogMonitorRequest.js.map | 1 + .../dist/models/PutLogMonitorResponse.d.ts | 19 + .../dist/models/PutLogMonitorResponse.js | 69 + .../dist/models/PutLogMonitorResponse.js.map | 1 + .../models/PutLogMonitorResponseBody.d.ts | 61 + .../dist/models/PutLogMonitorResponseBody.js | 66 + .../models/PutLogMonitorResponseBody.js.map | 1 + .../models/PutMetricRuleTargetsRequest.d.ts | 117 + .../models/PutMetricRuleTargetsRequest.js | 90 + .../models/PutMetricRuleTargetsRequest.js.map | 1 + .../models/PutMetricRuleTargetsResponse.d.ts | 19 + .../models/PutMetricRuleTargetsResponse.js | 69 + .../PutMetricRuleTargetsResponse.js.map | 1 + .../PutMetricRuleTargetsResponseBody.d.ts | 141 + .../PutMetricRuleTargetsResponseBody.js | 136 + .../PutMetricRuleTargetsResponseBody.js.map | 1 + .../PutMonitorGroupDynamicRuleRequest.d.ts | 137 + .../PutMonitorGroupDynamicRuleRequest.js | 116 + .../PutMonitorGroupDynamicRuleRequest.js.map | 1 + .../PutMonitorGroupDynamicRuleResponse.d.ts | 19 + .../PutMonitorGroupDynamicRuleResponse.js | 69 + .../PutMonitorGroupDynamicRuleResponse.js.map | 1 + ...utMonitorGroupDynamicRuleResponseBody.d.ts | 50 + .../PutMonitorGroupDynamicRuleResponseBody.js | 64 + ...MonitorGroupDynamicRuleResponseBody.js.map | 1 + .../models/PutMonitoringConfigRequest.d.ts | 33 + .../dist/models/PutMonitoringConfigRequest.js | 62 + .../models/PutMonitoringConfigRequest.js.map | 1 + .../models/PutMonitoringConfigResponse.d.ts | 19 + .../models/PutMonitoringConfigResponse.js | 69 + .../models/PutMonitoringConfigResponse.js.map | 1 + .../PutMonitoringConfigResponseBody.d.ts | 50 + .../models/PutMonitoringConfigResponseBody.js | 64 + .../PutMonitoringConfigResponseBody.js.map | 1 + .../models/PutResourceMetricRuleRequest.d.ts | 637 + .../models/PutResourceMetricRuleRequest.js | 338 + .../PutResourceMetricRuleRequest.js.map | 1 + .../models/PutResourceMetricRuleResponse.d.ts | 19 + .../models/PutResourceMetricRuleResponse.js | 69 + .../PutResourceMetricRuleResponse.js.map | 1 + .../PutResourceMetricRuleResponseBody.d.ts | 50 + .../PutResourceMetricRuleResponseBody.js | 64 + .../PutResourceMetricRuleResponseBody.js.map | 1 + .../PutResourceMetricRuleShrinkRequest.d.ts | 426 + .../PutResourceMetricRuleShrinkRequest.js | 226 + .../PutResourceMetricRuleShrinkRequest.js.map | 1 + .../models/PutResourceMetricRulesRequest.d.ts | 318 + .../models/PutResourceMetricRulesRequest.js | 256 + .../PutResourceMetricRulesRequest.js.map | 1 + .../PutResourceMetricRulesResponse.d.ts | 19 + .../models/PutResourceMetricRulesResponse.js | 69 + .../PutResourceMetricRulesResponse.js.map | 1 + .../PutResourceMetricRulesResponseBody.d.ts | 132 + .../PutResourceMetricRulesResponseBody.js | 138 + .../PutResourceMetricRulesResponseBody.js.map | 1 + .../dist/models/RemoveTagsRequest.d.ts | 67 + .../dist/models/RemoveTagsRequest.js | 89 + .../dist/models/RemoveTagsRequest.js.map | 1 + .../dist/models/RemoveTagsResponse.d.ts | 19 + .../dist/models/RemoveTagsResponse.js | 69 + .../dist/models/RemoveTagsResponse.js.map | 1 + .../dist/models/RemoveTagsResponseBody.d.ts | 68 + .../dist/models/RemoveTagsResponseBody.js | 91 + .../dist/models/RemoveTagsResponseBody.js.map | 1 + .../models/SendDryRunSystemEventRequest.d.ts | 56 + .../models/SendDryRunSystemEventRequest.js | 66 + .../SendDryRunSystemEventRequest.js.map | 1 + .../models/SendDryRunSystemEventResponse.d.ts | 19 + .../models/SendDryRunSystemEventResponse.js | 69 + .../SendDryRunSystemEventResponse.js.map | 1 + .../SendDryRunSystemEventResponseBody.d.ts | 50 + .../SendDryRunSystemEventResponseBody.js | 64 + .../SendDryRunSystemEventResponseBody.js.map | 1 + .../cms20190101/dist/models/Subscription.d.ts | 42 + .../cms20190101/dist/models/Subscription.js | 102 + .../dist/models/Subscription.js.map | 1 + .../UninstallMonitoringAgentRequest.d.ts | 24 + .../models/UninstallMonitoringAgentRequest.js | 60 + .../UninstallMonitoringAgentRequest.js.map | 1 + .../UninstallMonitoringAgentResponse.d.ts | 19 + .../UninstallMonitoringAgentResponse.js | 69 + .../UninstallMonitoringAgentResponse.js.map | 1 + .../UninstallMonitoringAgentResponseBody.d.ts | 50 + .../UninstallMonitoringAgentResponseBody.js | 64 + ...ninstallMonitoringAgentResponseBody.js.map | 1 + .../cms20190101/dist/models/model.d.ts | 942 + .../cms20190101/dist/models/model.js | 1906 ++ .../cms20190101/dist/models/model.js.map | 1 + .../@alicloud/cms20190101/package.json | 29 + .../@alicloud/cms20190101/src/client.ts | 9663 ++++++ .../cms20190101/src/models/AddTagsRequest.ts | 114 + .../cms20190101/src/models/AddTagsResponse.ts | 40 + .../src/models/AddTagsResponseBody.ts | 69 + .../cms20190101/src/models/AlertEvent.ts | 142 + .../src/models/AlertStrategyRelation.ts | 30 + .../models/ApplyMetricRuleTemplateRequest.ts | 132 + .../models/ApplyMetricRuleTemplateResponse.ts | 40 + .../ApplyMetricRuleTemplateResponseBody.ts | 194 + .../BatchCreateInstantSiteMonitorRequest.ts | 125 + .../BatchCreateInstantSiteMonitorResponse.ts | 40 + ...tchCreateInstantSiteMonitorResponseBody.ts | 122 + .../src/models/BatchExportRequest.ts | 99 + .../src/models/BatchExportResponse.ts | 40 + .../src/models/BatchExportResponseBody.ts | 125 + .../src/models/BatchExportShrinkRequest.ts | 96 + .../models/CreateDynamicTagGroupRequest.ts | 186 + .../models/CreateDynamicTagGroupResponse.ts | 40 + .../CreateDynamicTagGroupResponseBody.ts | 79 + .../models/CreateGroupMetricRulesRequest.ts | 591 + .../models/CreateGroupMetricRulesResponse.ts | 40 + .../CreateGroupMetricRulesResponseBody.ts | 180 + ...reateGroupMonitoringAgentProcessRequest.ts | 412 + ...eateGroupMonitoringAgentProcessResponse.ts | 40 + ...GroupMonitoringAgentProcessResponseBody.ts | 109 + .../models/CreateHostAvailabilityRequest.ts | 513 + .../models/CreateHostAvailabilityResponse.ts | 40 + .../CreateHostAvailabilityResponseBody.ts | 79 + .../CreateHybridMonitorNamespaceRequest.ts | 92 + .../CreateHybridMonitorNamespaceResponse.ts | 40 + ...reateHybridMonitorNamespaceResponseBody.ts | 67 + .../CreateHybridMonitorSlsgroupRequest.ts | 140 + .../CreateHybridMonitorSlsgroupResponse.ts | 40 + ...CreateHybridMonitorSlsgroupResponseBody.ts | 69 + .../models/CreateHybridMonitorTaskRequest.ts | 582 + .../models/CreateHybridMonitorTaskResponse.ts | 40 + .../CreateHybridMonitorTaskResponseBody.ts | 79 + .../models/CreateInstantSiteMonitorRequest.ts | 108 + .../CreateInstantSiteMonitorResponse.ts | 40 + .../CreateInstantSiteMonitorResponseBody.ts | 118 + .../CreateMetricRuleBlackListRequest.ts | 202 + .../CreateMetricRuleBlackListResponse.ts | 40 + .../CreateMetricRuleBlackListResponseBody.ts | 79 + .../CreateMetricRuleResourcesRequest.ts | 61 + .../CreateMetricRuleResourcesResponse.ts | 40 + .../CreateMetricRuleResourcesResponseBody.ts | 66 + .../models/CreateMetricRuleTemplateRequest.ts | 334 + .../CreateMetricRuleTemplateResponse.ts | 40 + .../CreateMetricRuleTemplateResponseBody.ts | 79 + .../CreateMonitorAgentProcessRequest.ts | 61 + .../CreateMonitorAgentProcessResponse.ts | 40 + .../CreateMonitorAgentProcessResponseBody.ts | 79 + ...ateMonitorGroupByResourceGroupIdRequest.ts | 109 + ...teMonitorGroupByResourceGroupIdResponse.ts | 40 + ...nitorGroupByResourceGroupIdResponseBody.ts | 79 + .../CreateMonitorGroupInstancesRequest.ts | 121 + .../CreateMonitorGroupInstancesResponse.ts | 40 + ...CreateMonitorGroupInstancesResponseBody.ts | 69 + .../CreateMonitorGroupNotifyPolicyRequest.ts | 79 + .../CreateMonitorGroupNotifyPolicyResponse.ts | 40 + ...ateMonitorGroupNotifyPolicyResponseBody.ts | 79 + .../src/models/CreateMonitorGroupRequest.ts | 51 + .../src/models/CreateMonitorGroupResponse.ts | 40 + .../models/CreateMonitorGroupResponseBody.ts | 79 + .../CreateMonitoringAgentProcessRequest.ts | 59 + .../CreateMonitoringAgentProcessResponse.ts | 40 + ...reateMonitoringAgentProcessResponseBody.ts | 79 + .../src/models/CreateSiteMonitorRequest.ts | 137 + .../src/models/CreateSiteMonitorResponse.ts | 40 + .../models/CreateSiteMonitorResponseBody.ts | 288 + .../cms20190101/src/models/CursorRequest.ts | 114 + .../cms20190101/src/models/CursorResponse.ts | 40 + .../src/models/CursorResponseBody.ts | 79 + .../src/models/CursorShrinkRequest.ts | 110 + .../src/models/DeleteContactGroupRequest.ts | 36 + .../src/models/DeleteContactGroupResponse.ts | 40 + .../models/DeleteContactGroupResponseBody.ts | 66 + .../src/models/DeleteContactRequest.ts | 36 + .../src/models/DeleteContactResponse.ts | 40 + .../src/models/DeleteContactResponseBody.ts | 66 + .../src/models/DeleteCustomMetricRequest.ts | 75 + .../src/models/DeleteCustomMetricResponse.ts | 40 + .../models/DeleteCustomMetricResponseBody.ts | 56 + .../models/DeleteDynamicTagGroupRequest.ts | 41 + .../models/DeleteDynamicTagGroupResponse.ts | 40 + .../DeleteDynamicTagGroupResponseBody.ts | 69 + .../models/DeleteEventRuleTargetsRequest.ts | 56 + .../models/DeleteEventRuleTargetsResponse.ts | 40 + .../DeleteEventRuleTargetsResponseBody.ts | 69 + .../src/models/DeleteEventRulesRequest.ts | 39 + .../src/models/DeleteEventRulesResponse.ts | 40 + .../models/DeleteEventRulesResponseBody.ts | 66 + .../src/models/DeleteExporterOutputRequest.ts | 39 + .../models/DeleteExporterOutputResponse.ts | 40 + .../DeleteExporterOutputResponseBody.ts | 69 + .../src/models/DeleteExporterRuleRequest.ts | 39 + .../src/models/DeleteExporterRuleResponse.ts | 40 + .../models/DeleteExporterRuleResponseBody.ts | 69 + ...eleteGroupMonitoringAgentProcessRequest.ts | 51 + ...leteGroupMonitoringAgentProcessResponse.ts | 40 + ...GroupMonitoringAgentProcessResponseBody.ts | 69 + .../models/DeleteHostAvailabilityRequest.ts | 42 + .../models/DeleteHostAvailabilityResponse.ts | 40 + .../DeleteHostAvailabilityResponseBody.ts | 66 + .../DeleteHybridMonitorNamespaceRequest.ts | 41 + .../DeleteHybridMonitorNamespaceResponse.ts | 40 + ...eleteHybridMonitorNamespaceResponseBody.ts | 67 + .../DeleteHybridMonitorSlsgroupRequest.ts | 41 + .../DeleteHybridMonitorSlsgroupResponse.ts | 40 + ...DeleteHybridMonitorSlsgroupResponseBody.ts | 69 + .../models/DeleteHybridMonitorTaskRequest.ts | 67 + .../models/DeleteHybridMonitorTaskResponse.ts | 40 + .../DeleteHybridMonitorTaskResponseBody.ts | 69 + .../src/models/DeleteLogMonitorRequest.ts | 39 + .../src/models/DeleteLogMonitorResponse.ts | 40 + .../models/DeleteLogMonitorResponseBody.ts | 69 + .../DeleteMetricRuleBlackListRequest.ts | 43 + .../DeleteMetricRuleBlackListResponse.ts | 40 + .../DeleteMetricRuleBlackListResponseBody.ts | 79 + .../DeleteMetricRuleResourcesRequest.ts | 48 + .../DeleteMetricRuleResourcesResponse.ts | 40 + .../DeleteMetricRuleResourcesResponseBody.ts | 69 + .../models/DeleteMetricRuleTargetsRequest.ts | 54 + .../models/DeleteMetricRuleTargetsResponse.ts | 40 + .../DeleteMetricRuleTargetsResponseBody.ts | 137 + .../models/DeleteMetricRuleTemplateRequest.ts | 39 + .../DeleteMetricRuleTemplateResponse.ts | 40 + .../DeleteMetricRuleTemplateResponseBody.ts | 106 + .../src/models/DeleteMetricRulesRequest.ts | 40 + .../src/models/DeleteMetricRulesResponse.ts | 40 + .../models/DeleteMetricRulesResponseBody.ts | 69 + .../DeleteMonitorGroupDynamicRuleRequest.ts | 51 + .../DeleteMonitorGroupDynamicRuleResponse.ts | 40 + ...leteMonitorGroupDynamicRuleResponseBody.ts | 66 + .../DeleteMonitorGroupInstancesRequest.ts | 65 + .../DeleteMonitorGroupInstancesResponse.ts | 40 + ...DeleteMonitorGroupInstancesResponseBody.ts | 69 + .../DeleteMonitorGroupNotifyPolicyRequest.ts | 51 + .../DeleteMonitorGroupNotifyPolicyResponse.ts | 40 + ...eteMonitorGroupNotifyPolicyResponseBody.ts | 79 + .../src/models/DeleteMonitorGroupRequest.ts | 39 + .../src/models/DeleteMonitorGroupResponse.ts | 40 + .../models/DeleteMonitorGroupResponseBody.ts | 172 + .../DeleteMonitoringAgentProcessRequest.ts | 63 + .../DeleteMonitoringAgentProcessResponse.ts | 40 + ...eleteMonitoringAgentProcessResponseBody.ts | 69 + .../src/models/DeleteSiteMonitorsRequest.ts | 52 + .../src/models/DeleteSiteMonitorsResponse.ts | 40 + .../models/DeleteSiteMonitorsResponseBody.ts | 106 + .../DescribeActiveMetricRuleListRequest.ts | 38 + .../DescribeActiveMetricRuleListResponse.ts | 40 + ...escribeActiveMetricRuleListResponseBody.ts | 800 + .../models/DescribeAlertHistoryListRequest.ts | 175 + .../DescribeAlertHistoryListResponse.ts | 40 + .../DescribeAlertHistoryListResponseBody.ts | 489 + .../models/DescribeAlertLogCountRequest.ts | 253 + .../models/DescribeAlertLogCountResponse.ts | 40 + .../DescribeAlertLogCountResponseBody.ts | 159 + .../DescribeAlertLogHistogramRequest.ts | 253 + .../DescribeAlertLogHistogramResponse.ts | 40 + .../DescribeAlertLogHistogramResponseBody.ts | 133 + .../src/models/DescribeAlertLogListRequest.ts | 251 + .../models/DescribeAlertLogListResponse.ts | 40 + .../DescribeAlertLogListResponseBody.ts | 822 + ...cribeAlertingMetricRuleResourcesRequest.ts | 103 + ...ribeAlertingMetricRuleResourcesResponse.ts | 40 + ...AlertingMetricRuleResourcesResponseBody.ts | 618 + .../models/DescribeContactGroupListRequest.ts | 47 + .../DescribeContactGroupListResponse.ts | 40 + .../DescribeContactGroupListResponseBody.ts | 270 + ...escribeContactListByContactGroupRequest.ts | 39 + ...scribeContactListByContactGroupResponse.ts | 40 + ...beContactListByContactGroupResponseBody.ts | 243 + .../src/models/DescribeContactListRequest.ts | 86 + .../src/models/DescribeContactListResponse.ts | 40 + .../models/DescribeContactListResponseBody.ts | 381 + .../DescribeCustomEventAttributeRequest.ts | 114 + .../DescribeCustomEventAttributeResponse.ts | 40 + ...escribeCustomEventAttributeResponseBody.ts | 177 + .../models/DescribeCustomEventCountRequest.ts | 94 + .../DescribeCustomEventCountResponse.ts | 40 + .../DescribeCustomEventCountResponseBody.ts | 154 + .../DescribeCustomEventHistogramRequest.ts | 108 + .../DescribeCustomEventHistogramResponse.ts | 40 + ...escribeCustomEventHistogramResponseBody.ts | 156 + .../models/DescribeCustomMetricListRequest.ts | 93 + .../DescribeCustomMetricListResponse.ts | 40 + .../DescribeCustomMetricListResponseBody.ts | 66 + .../DescribeDynamicTagRuleListRequest.ts | 92 + .../DescribeDynamicTagRuleListResponse.ts | 40 + .../DescribeDynamicTagRuleListResponseBody.ts | 412 + .../DescribeEventRuleAttributeRequest.ts | 55 + .../DescribeEventRuleAttributeResponse.ts | 40 + .../DescribeEventRuleAttributeResponseBody.ts | 416 + .../models/DescribeEventRuleListRequest.ts | 84 + .../models/DescribeEventRuleListResponse.ts | 40 + .../DescribeEventRuleListResponseBody.ts | 474 + .../DescribeEventRuleTargetListRequest.ts | 39 + .../DescribeEventRuleTargetListResponse.ts | 40 + ...DescribeEventRuleTargetListResponseBody.ts | 708 + .../DescribeExporterOutputListRequest.ts | 47 + .../DescribeExporterOutputListResponse.ts | 40 + .../DescribeExporterOutputListResponseBody.ts | 247 + .../models/DescribeExporterRuleListRequest.ts | 47 + .../DescribeExporterRuleListResponse.ts | 40 + .../DescribeExporterRuleListResponseBody.ts | 264 + ...cribeGroupMonitoringAgentProcessRequest.ts | 69 + ...ribeGroupMonitoringAgentProcessResponse.ts | 40 + ...GroupMonitoringAgentProcessResponseBody.ts | 577 + .../DescribeHostAvailabilityListRequest.ts | 91 + .../DescribeHostAvailabilityListResponse.ts | 40 + ...escribeHostAvailabilityListResponseBody.ts | 694 + .../DescribeHybridMonitorDataListRequest.ts | 95 + .../DescribeHybridMonitorDataListResponse.ts | 40 + ...scribeHybridMonitorDataListResponseBody.ts | 211 + ...scribeHybridMonitorNamespaceListRequest.ts | 86 + ...cribeHybridMonitorNamespaceListResponse.ts | 40 + ...eHybridMonitorNamespaceListResponseBody.ts | 435 + .../DescribeHybridMonitorSlsgroupRequest.ts | 71 + .../DescribeHybridMonitorSlsgroupResponse.ts | 40 + ...scribeHybridMonitorSlsgroupResponseBody.ts | 239 + .../DescribeHybridMonitorTaskListRequest.ts | 133 + .../DescribeHybridMonitorTaskListResponse.ts | 40 + ...scribeHybridMonitorTaskListResponseBody.ts | 858 + .../DescribeLogMonitorAttributeRequest.ts | 41 + .../DescribeLogMonitorAttributeResponse.ts | 40 + ...DescribeLogMonitorAttributeResponseBody.ts | 366 + .../models/DescribeLogMonitorListRequest.ts | 67 + .../models/DescribeLogMonitorListResponse.ts | 40 + .../DescribeLogMonitorListResponseBody.ts | 281 + .../src/models/DescribeMetricDataRequest.ts | 169 + .../src/models/DescribeMetricDataResponse.ts | 40 + .../models/DescribeMetricDataResponseBody.ts | 85 + .../src/models/DescribeMetricLastRequest.ts | 148 + .../src/models/DescribeMetricLastResponse.ts | 40 + .../models/DescribeMetricLastResponseBody.ts | 101 + .../src/models/DescribeMetricListRequest.ts | 149 + .../src/models/DescribeMetricListResponse.ts | 40 + .../models/DescribeMetricListResponseBody.ts | 99 + .../models/DescribeMetricMetaListRequest.ts | 85 + .../models/DescribeMetricMetaListResponse.ts | 40 + .../DescribeMetricMetaListResponseBody.ts | 226 + .../DescribeMetricRuleBlackListRequest.ts | 137 + .../DescribeMetricRuleBlackListResponse.ts | 40 + ...DescribeMetricRuleBlackListResponseBody.ts | 302 + .../models/DescribeMetricRuleCountRequest.ts | 47 + .../models/DescribeMetricRuleCountResponse.ts | 40 + .../DescribeMetricRuleCountResponseBody.ts | 149 + .../models/DescribeMetricRuleListRequest.ts | 148 + .../models/DescribeMetricRuleListResponse.ts | 40 + .../DescribeMetricRuleListResponseBody.ts | 1099 + .../DescribeMetricRuleTargetsRequest.ts | 41 + .../DescribeMetricRuleTargetsResponse.ts | 40 + .../DescribeMetricRuleTargetsResponseBody.ts | 174 + ...cribeMetricRuleTemplateAttributeRequest.ts | 51 + ...ribeMetricRuleTemplateAttributeResponse.ts | 40 + ...MetricRuleTemplateAttributeResponseBody.ts | 627 + .../DescribeMetricRuleTemplateListRequest.ts | 118 + .../DescribeMetricRuleTemplateListResponse.ts | 40 + ...cribeMetricRuleTemplateListResponseBody.ts | 286 + .../src/models/DescribeMetricTopRequest.ts | 198 + .../src/models/DescribeMetricTopResponse.ts | 40 + .../models/DescribeMetricTopResponseBody.ts | 76 + .../DescribeMonitorGroupCategoriesRequest.ts | 39 + .../DescribeMonitorGroupCategoriesResponse.ts | 40 + ...cribeMonitorGroupCategoriesResponseBody.ts | 187 + ...DescribeMonitorGroupDynamicRulesRequest.ts | 39 + ...escribeMonitorGroupDynamicRulesResponse.ts | 40 + ...ibeMonitorGroupDynamicRulesResponseBody.ts | 242 + ...ibeMonitorGroupInstanceAttributeRequest.ts | 112 + ...beMonitorGroupInstanceAttributeResponse.ts | 40 + ...nitorGroupInstanceAttributeResponseBody.ts | 391 + .../DescribeMonitorGroupInstancesRequest.ts | 91 + .../DescribeMonitorGroupInstancesResponse.ts | 40 + ...scribeMonitorGroupInstancesResponseBody.ts | 202 + ...ribeMonitorGroupNotifyPolicyListRequest.ts | 71 + ...ibeMonitorGroupNotifyPolicyListResponse.ts | 40 + ...onitorGroupNotifyPolicyListResponseBody.ts | 189 + .../models/DescribeMonitorGroupsRequest.ts | 228 + .../models/DescribeMonitorGroupsResponse.ts | 40 + .../DescribeMonitorGroupsResponseBody.ts | 508 + ...ibeMonitorResourceQuotaAttributeRequest.ts | 40 + ...beMonitorResourceQuotaAttributeResponse.ts | 40 + ...nitorResourceQuotaAttributeResponseBody.ts | 834 + ...DescribeMonitoringAgentAccessKeyRequest.ts | 27 + ...escribeMonitoringAgentAccessKeyResponse.ts | 40 + ...ibeMonitoringAgentAccessKeyResponseBody.ts | 89 + .../DescribeMonitoringAgentConfigRequest.ts | 27 + .../DescribeMonitoringAgentConfigResponse.ts | 40 + ...scribeMonitoringAgentConfigResponseBody.ts | 105 + .../DescribeMonitoringAgentHostsRequest.ts | 149 + .../DescribeMonitoringAgentHostsResponse.ts | 40 + ...escribeMonitoringAgentHostsResponseBody.ts | 312 + ...DescribeMonitoringAgentProcessesRequest.ts | 39 + ...escribeMonitoringAgentProcessesResponse.ts | 40 + ...ibeMonitoringAgentProcessesResponseBody.ts | 187 + .../DescribeMonitoringAgentStatusesRequest.ts | 47 + ...DescribeMonitoringAgentStatusesResponse.ts | 40 + ...ribeMonitoringAgentStatusesResponseBody.ts | 256 + .../models/DescribeMonitoringConfigRequest.ts | 27 + .../DescribeMonitoringConfigResponse.ts | 40 + .../DescribeMonitoringConfigResponseBody.ts | 95 + ...escribeProductResourceTagKeyListRequest.ts | 37 + ...scribeProductResourceTagKeyListResponse.ts | 40 + ...beProductResourceTagKeyListResponseBody.ts | 110 + ...scribeProductsOfActiveMetricRuleRequest.ts | 27 + ...cribeProductsOfActiveMetricRuleResponse.ts | 40 + ...eProductsOfActiveMetricRuleResponseBody.ts | 343 + .../src/models/DescribeProjectMetaRequest.ts | 68 + .../src/models/DescribeProjectMetaResponse.ts | 40 + .../models/DescribeProjectMetaResponseBody.ts | 189 + .../DescribeSiteMonitorAttributeRequest.ts | 52 + .../DescribeSiteMonitorAttributeResponse.ts | 40 + ...escribeSiteMonitorAttributeResponseBody.ts | 2027 ++ .../models/DescribeSiteMonitorDataRequest.ts | 125 + .../models/DescribeSiteMonitorDataResponse.ts | 40 + .../DescribeSiteMonitorDataResponseBody.ts | 86 + .../DescribeSiteMonitorIspcityListRequest.ts | 84 + .../DescribeSiteMonitorIspcityListResponse.ts | 40 + ...cribeSiteMonitorIspcityListResponseBody.ts | 253 + .../models/DescribeSiteMonitorListRequest.ts | 108 + .../models/DescribeSiteMonitorListResponse.ts | 40 + .../DescribeSiteMonitorListResponseBody.ts | 746 + .../models/DescribeSiteMonitorLogRequest.ts | 153 + .../models/DescribeSiteMonitorLogResponse.ts | 40 + .../DescribeSiteMonitorLogResponseBody.ts | 91 + .../models/DescribeSiteMonitorQuotaRequest.ts | 27 + .../DescribeSiteMonitorQuotaResponse.ts | 40 + .../DescribeSiteMonitorQuotaResponseBody.ts | 162 + .../DescribeSiteMonitorStatisticsRequest.ts | 81 + .../DescribeSiteMonitorStatisticsResponse.ts | 40 + ...scribeSiteMonitorStatisticsResponseBody.ts | 79 + .../DescribeSyntheticProbeListRequest.ts | 75 + .../DescribeSyntheticProbeListResponse.ts | 40 + .../DescribeSyntheticProbeListResponseBody.ts | 201 + .../DescribeSystemEventAttributeRequest.ts | 164 + .../DescribeSystemEventAttributeResponse.ts | 40 + ...escribeSystemEventAttributeResponseBody.ts | 238 + .../models/DescribeSystemEventCountRequest.ts | 134 + .../DescribeSystemEventCountResponse.ts | 40 + .../DescribeSystemEventCountResponseBody.ts | 238 + .../DescribeSystemEventHistogramRequest.ts | 136 + .../DescribeSystemEventHistogramResponse.ts | 40 + ...escribeSystemEventHistogramResponseBody.ts | 156 + .../DescribeSystemEventMetaListRequest.ts | 27 + .../DescribeSystemEventMetaListResponse.ts | 40 + ...DescribeSystemEventMetaListResponseBody.ts | 206 + .../src/models/DescribeTagKeyListRequest.ts | 51 + .../src/models/DescribeTagKeyListResponse.ts | 40 + .../models/DescribeTagKeyListResponseBody.ts | 101 + .../src/models/DescribeTagValueListRequest.ts | 65 + .../models/DescribeTagValueListResponse.ts | 40 + .../DescribeTagValueListResponseBody.ts | 101 + ...escribeUnhealthyHostAvailabilityRequest.ts | 42 + ...scribeUnhealthyHostAvailabilityResponse.ts | 40 + ...beUnhealthyHostAvailabilityResponseBody.ts | 167 + .../cms20190101/src/models/Dimension.ts | 30 + .../models/DisableActiveMetricRuleRequest.ts | 51 + .../models/DisableActiveMetricRuleResponse.ts | 40 + .../DisableActiveMetricRuleResponseBody.ts | 69 + .../src/models/DisableEventRulesRequest.ts | 40 + .../src/models/DisableEventRulesResponse.ts | 40 + .../models/DisableEventRulesResponseBody.ts | 66 + .../models/DisableHostAvailabilityRequest.ts | 42 + .../models/DisableHostAvailabilityResponse.ts | 40 + .../DisableHostAvailabilityResponseBody.ts | 69 + .../src/models/DisableMetricRulesRequest.ts | 42 + .../src/models/DisableMetricRulesResponse.ts | 40 + .../models/DisableMetricRulesResponseBody.ts | 69 + .../src/models/DisableSiteMonitorsRequest.ts | 39 + .../src/models/DisableSiteMonitorsResponse.ts | 40 + .../models/DisableSiteMonitorsResponseBody.ts | 109 + .../models/EnableActiveMetricRuleRequest.ts | 51 + .../models/EnableActiveMetricRuleResponse.ts | 40 + .../EnableActiveMetricRuleResponseBody.ts | 69 + .../src/models/EnableEventRulesRequest.ts | 40 + .../src/models/EnableEventRulesResponse.ts | 40 + .../models/EnableEventRulesResponseBody.ts | 66 + .../models/EnableHostAvailabilityRequest.ts | 42 + .../models/EnableHostAvailabilityResponse.ts | 40 + .../EnableHostAvailabilityResponseBody.ts | 69 + .../EnableMetricRuleBlackListRequest.ts | 58 + .../EnableMetricRuleBlackListResponse.ts | 40 + .../EnableMetricRuleBlackListResponseBody.ts | 79 + .../src/models/EnableMetricRulesRequest.ts | 46 + .../src/models/EnableMetricRulesResponse.ts | 40 + .../models/EnableMetricRulesResponseBody.ts | 69 + .../src/models/EnableSiteMonitorsRequest.ts | 39 + .../src/models/EnableSiteMonitorsResponse.ts | 40 + .../models/EnableSiteMonitorsResponseBody.ts | 109 + .../cms20190101/src/models/EscalationRule.ts | 147 + .../cms20190101/src/models/Incident.ts | 63 + .../models/InstallMonitoringAgentRequest.ts | 66 + .../models/InstallMonitoringAgentResponse.ts | 40 + .../InstallMonitoringAgentResponseBody.ts | 69 + .../cms20190101/src/models/Matcher.ts | 33 + .../cms20190101/src/models/MetricStat.ts | 58 + .../cms20190101/src/models/MigrationJob.ts | 718 + ...odifyGroupMonitoringAgentProcessRequest.ts | 309 + ...difyGroupMonitoringAgentProcessResponse.ts | 40 + ...GroupMonitoringAgentProcessResponseBody.ts | 69 + .../models/ModifyHostAvailabilityRequest.ts | 511 + .../models/ModifyHostAvailabilityResponse.ts | 40 + .../ModifyHostAvailabilityResponseBody.ts | 69 + .../src/models/ModifyHostInfoRequest.ts | 49 + .../src/models/ModifyHostInfoResponse.ts | 40 + .../src/models/ModifyHostInfoResponseBody.ts | 66 + .../ModifyHybridMonitorNamespaceRequest.ts | 69 + .../ModifyHybridMonitorNamespaceResponse.ts | 40 + ...odifyHybridMonitorNamespaceResponseBody.ts | 67 + .../ModifyHybridMonitorSlsgroupRequest.ts | 140 + .../ModifyHybridMonitorSlsgroupResponse.ts | 40 + ...ModifyHybridMonitorSlsgroupResponseBody.ts | 69 + .../models/ModifyHybridMonitorTaskRequest.ts | 464 + .../models/ModifyHybridMonitorTaskResponse.ts | 40 + .../ModifyHybridMonitorTaskResponseBody.ts | 69 + .../ModifyMetricRuleBlackListRequest.ts | 216 + .../ModifyMetricRuleBlackListResponse.ts | 40 + .../ModifyMetricRuleBlackListResponseBody.ts | 79 + .../models/ModifyMetricRuleTemplateRequest.ts | 354 + .../ModifyMetricRuleTemplateResponse.ts | 40 + .../ModifyMetricRuleTemplateResponseBody.ts | 69 + .../ModifyMonitorGroupInstancesRequest.ts | 189 + .../ModifyMonitorGroupInstancesResponse.ts | 40 + ...ModifyMonitorGroupInstancesResponseBody.ts | 66 + .../src/models/ModifyMonitorGroupRequest.ts | 59 + .../src/models/ModifyMonitorGroupResponse.ts | 40 + .../models/ModifyMonitorGroupResponseBody.ts | 69 + .../src/models/ModifySiteMonitorRequest.ts | 123 + .../src/models/ModifySiteMonitorResponse.ts | 40 + .../models/ModifySiteMonitorResponseBody.ts | 109 + .../src/models/NotificationStrategy.ts | 456 + .../src/models/NotificationTemplate.ts | 102 + .../cms20190101/src/models/PushingTarget.ts | 134 + .../src/models/PutContactGroupRequest.ts | 76 + .../src/models/PutContactGroupResponse.ts | 40 + .../src/models/PutContactGroupResponseBody.ts | 69 + .../src/models/PutContactRequest.ts | 137 + .../src/models/PutContactResponse.ts | 40 + .../src/models/PutContactResponseBody.ts | 69 + .../src/models/PutCustomEventRequest.ts | 111 + .../src/models/PutCustomEventResponse.ts | 40 + .../src/models/PutCustomEventResponseBody.ts | 56 + .../src/models/PutCustomEventRuleRequest.ts | 153 + .../src/models/PutCustomEventRuleResponse.ts | 40 + .../models/PutCustomEventRuleResponseBody.ts | 69 + .../src/models/PutCustomMetricRequest.ts | 161 + .../src/models/PutCustomMetricResponse.ts | 40 + .../src/models/PutCustomMetricResponseBody.ts | 56 + .../src/models/PutCustomMetricRuleRequest.ts | 218 + .../src/models/PutCustomMetricRuleResponse.ts | 40 + .../models/PutCustomMetricRuleResponseBody.ts | 69 + .../src/models/PutEventRuleRequest.ts | 198 + .../src/models/PutEventRuleResponse.ts | 40 + .../src/models/PutEventRuleResponseBody.ts | 79 + .../src/models/PutEventRuleTargetsRequest.ts | 497 + .../src/models/PutEventRuleTargetsResponse.ts | 40 + .../models/PutEventRuleTargetsResponseBody.ts | 343 + .../src/models/PutExporterOutputRequest.ts | 77 + .../src/models/PutExporterOutputResponse.ts | 40 + .../models/PutExporterOutputResponseBody.ts | 66 + .../src/models/PutExporterRuleRequest.ts | 106 + .../src/models/PutExporterRuleResponse.ts | 40 + .../src/models/PutExporterRuleResponseBody.ts | 69 + .../src/models/PutGroupMetricRuleRequest.ts | 554 + .../src/models/PutGroupMetricRuleResponse.ts | 40 + .../models/PutGroupMetricRuleResponseBody.ts | 109 + .../PutHybridMonitorMetricDataRequest.ts | 186 + .../PutHybridMonitorMetricDataResponse.ts | 40 + .../PutHybridMonitorMetricDataResponseBody.ts | 98 + .../src/models/PutLogMonitorRequest.ts | 344 + .../src/models/PutLogMonitorResponse.ts | 40 + .../src/models/PutLogMonitorResponseBody.ts | 82 + .../src/models/PutMetricRuleTargetsRequest.ts | 153 + .../models/PutMetricRuleTargetsResponse.ts | 40 + .../PutMetricRuleTargetsResponseBody.ts | 205 + .../PutMonitorGroupDynamicRuleRequest.ts | 190 + .../PutMonitorGroupDynamicRuleResponse.ts | 40 + .../PutMonitorGroupDynamicRuleResponseBody.ts | 69 + .../src/models/PutMonitoringConfigRequest.ts | 50 + .../src/models/PutMonitoringConfigResponse.ts | 40 + .../models/PutMonitoringConfigResponseBody.ts | 69 + .../models/PutResourceMetricRuleRequest.ts | 849 + .../models/PutResourceMetricRuleResponse.ts | 40 + .../PutResourceMetricRuleResponseBody.ts | 69 + .../PutResourceMetricRuleShrinkRequest.ts | 562 + .../models/PutResourceMetricRulesRequest.ts | 475 + .../models/PutResourceMetricRulesResponse.ts | 40 + .../PutResourceMetricRulesResponseBody.ts | 198 + .../src/models/RemoveTagsRequest.ts | 102 + .../src/models/RemoveTagsResponse.ts | 40 + .../src/models/RemoveTagsResponseBody.ts | 105 + .../models/SendDryRunSystemEventRequest.ts | 77 + .../models/SendDryRunSystemEventResponse.ts | 40 + .../SendDryRunSystemEventResponseBody.ts | 69 + .../cms20190101/src/models/Subscription.ts | 90 + .../models/UninstallMonitoringAgentRequest.ts | 39 + .../UninstallMonitoringAgentResponse.ts | 40 + .../UninstallMonitoringAgentResponseBody.ts | 69 + .../@alicloud/cms20190101/src/models/model.ts | 942 + .../@alicloud/credentials/LICENSE | 21 + .../@alicloud/credentials/README.md | 258 + .../@alicloud/credentials/dist/package.json | 60 + .../dist/src/access_key_credential.d.ts | 5 + .../dist/src/access_key_credential.js | 25 + .../dist/src/access_key_credential.js.map | 1 + .../dist/src/bearer_token_credential.d.ts | 5 + .../dist/src/bearer_token_credential.js | 21 + .../dist/src/bearer_token_credential.js.map | 1 + .../credentials/dist/src/client.d.ts | 43 + .../@alicloud/credentials/dist/src/client.js | 229 + .../credentials/dist/src/client.js.map | 1 + .../credentials/dist/src/config.d.ts | 36 + .../@alicloud/credentials/dist/src/config.js | 93 + .../credentials/dist/src/config.js.map | 1 + .../dist/src/credential_model.d.ts | 18 + .../credentials/dist/src/credential_model.js | 53 + .../dist/src/credential_model.js.map | 1 + .../credentials/dist/src/credentials.d.ts | 19 + .../credentials/dist/src/credentials.js | 38 + .../credentials/dist/src/credentials.js.map | 1 + .../dist/src/credentials_provider.d.ts | 5 + .../dist/src/credentials_provider.js | 3 + .../dist/src/credentials_provider.js.map | 1 + .../dist/src/default_credential.d.ts | 17 + .../dist/src/default_credential.js | 41 + .../dist/src/default_credential.js.map | 1 + .../dist/src/ecs_ram_role_credential.d.ts | 24 + .../dist/src/ecs_ram_role_credential.js | 80 + .../dist/src/ecs_ram_role_credential.js.map | 1 + .../credentials/dist/src/icredential.d.ts | 9 + .../credentials/dist/src/icredential.js | 3 + .../credentials/dist/src/icredential.js.map | 1 + .../dist/src/oidc_role_arn_credential.d.ts | 19 + .../dist/src/oidc_role_arn_credential.js | 79 + .../dist/src/oidc_role_arn_credential.js.map | 1 + .../provider/credentials_uri_provider.d.ts | 5 + .../src/provider/credentials_uri_provider.js | 16 + .../provider/credentials_uri_provider.js.map | 1 + ...ronment_variable_credentials_provider.d.ts | 5 + ...vironment_variable_credentials_provider.js | 23 + ...nment_variable_credentials_provider.js.map | 1 + ...nstance_ram_role_credentials_provider.d.ts | 5 + .../instance_ram_role_credentials_provider.js | 17 + ...tance_ram_role_credentials_provider.js.map | 1 + .../oidc_role_arn_credentials_provider.d.ts | 5 + .../oidc_role_arn_credentials_provider.js | 18 + .../oidc_role_arn_credentials_provider.js.map | 1 + .../profile_credentials_provider.d.ts | 5 + .../provider/profile_credentials_provider.js | 100 + .../profile_credentials_provider.js.map | 1 + .../dist/src/provider/provider_chain.d.ts | 6 + .../dist/src/provider/provider_chain.js | 30 + .../dist/src/provider/provider_chain.js.map | 1 + .../dist/src/providers/cli_profile.d.ts | 43 + .../dist/src/providers/cli_profile.js | 157 + .../dist/src/providers/cli_profile.js.map | 1 + .../dist/src/providers/default.d.ts | 14 + .../credentials/dist/src/providers/default.js | 112 + .../dist/src/providers/default.js.map | 1 + .../dist/src/providers/ecs_ram_role.d.ts | 35 + .../dist/src/providers/ecs_ram_role.js | 187 + .../dist/src/providers/ecs_ram_role.js.map | 1 + .../credentials/dist/src/providers/env.d.ts | 12 + .../credentials/dist/src/providers/env.js | 40 + .../credentials/dist/src/providers/env.js.map | 1 + .../credentials/dist/src/providers/http.d.ts | 85 + .../credentials/dist/src/providers/http.js | 158 + .../dist/src/providers/http.js.map | 1 + .../dist/src/providers/oidc_role_arn.d.ts | 48 + .../dist/src/providers/oidc_role_arn.js | 201 + .../dist/src/providers/oidc_role_arn.js.map | 1 + .../dist/src/providers/profile.d.ts | 18 + .../credentials/dist/src/providers/profile.js | 99 + .../dist/src/providers/profile.js.map | 1 + .../dist/src/providers/ram_role_arn.d.ts | 45 + .../dist/src/providers/ram_role_arn.js | 242 + .../dist/src/providers/ram_role_arn.js.map | 1 + .../dist/src/providers/session.d.ts | 31 + .../credentials/dist/src/providers/session.js | 119 + .../dist/src/providers/session.js.map | 1 + .../dist/src/providers/static_ak.d.ts | 23 + .../dist/src/providers/static_ak.js | 61 + .../dist/src/providers/static_ak.js.map | 1 + .../dist/src/providers/static_sts.d.ts | 26 + .../dist/src/providers/static_sts.js | 72 + .../dist/src/providers/static_sts.js.map | 1 + .../credentials/dist/src/providers/time.d.ts | 7 + .../credentials/dist/src/providers/time.js | 85 + .../dist/src/providers/time.js.map | 1 + .../credentials/dist/src/providers/uri.d.ts | 27 + .../credentials/dist/src/providers/uri.js | 73 + .../credentials/dist/src/providers/uri.js.map | 1 + .../dist/src/ram_role_arn_credential.d.ts | 16 + .../dist/src/ram_role_arn_credential.js | 51 + .../dist/src/ram_role_arn_credential.js.map | 1 + .../dist/src/rsa_key_pair_credential.d.ts | 9 + .../dist/src/rsa_key_pair_credential.js | 66 + .../dist/src/rsa_key_pair_credential.js.map | 1 + .../dist/src/session_credential.d.ts | 15 + .../dist/src/session_credential.js | 88 + .../dist/src/session_credential.js.map | 1 + .../dist/src/sts_token_credential.d.ts | 5 + .../dist/src/sts_token_credential.js | 29 + .../dist/src/sts_token_credential.js.map | 1 + .../credentials/dist/src/uri_credential.d.ts | 9 + .../credentials/dist/src/uri_credential.js | 52 + .../dist/src/uri_credential.js.map | 1 + .../credentials/dist/src/util/helper.d.ts | 2 + .../credentials/dist/src/util/helper.js | 35 + .../credentials/dist/src/util/helper.js.map | 1 + .../credentials/dist/src/util/http.d.ts | 5 + .../credentials/dist/src/util/http.js | 157 + .../credentials/dist/src/util/http.js.map | 1 + .../credentials/dist/src/util/utils.d.ts | 4 + .../credentials/dist/src/util/utils.js | 78 + .../credentials/dist/src/util/utils.js.map | 1 + .../@alicloud/credentials/package.json | 60 + .../credentials/src/access_key_credential.ts | 21 + .../src/bearer_token_credential.ts | 17 + .../@alicloud/credentials/src/client.ts | 241 + .../@alicloud/credentials/src/config.ts | 94 + .../credentials/src/credential_model.ts | 35 + .../@alicloud/credentials/src/credentials.ts | 48 + .../credentials/src/credentials_provider.ts | 6 + .../credentials/src/default_credential.ts | 49 + .../src/ecs_ram_role_credential.ts | 91 + .../@alicloud/credentials/src/icredential.ts | 9 + .../src/oidc_role_arn_credential.ts | 87 + .../src/provider/credentials_uri_provider.ts | 13 + ...vironment_variable_credentials_provider.ts | 24 + .../instance_ram_role_credentials_provider.ts | 17 + .../oidc_role_arn_credentials_provider.ts | 18 + .../provider/profile_credentials_provider.ts | 77 + .../src/provider/provider_chain.ts | 31 + .../credentials/src/providers/cli_profile.ts | 193 + .../credentials/src/providers/default.ts | 114 + .../credentials/src/providers/ecs_ram_role.ts | 229 + .../credentials/src/providers/env.ts | 44 + .../credentials/src/providers/http.ts | 209 + .../src/providers/oidc_role_arn.ts | 238 + .../credentials/src/providers/profile.ts | 114 + .../credentials/src/providers/ram_role_arn.ts | 280 + .../credentials/src/providers/session.ts | 141 + .../credentials/src/providers/static_ak.ts | 71 + .../credentials/src/providers/static_sts.ts | 87 + .../credentials/src/providers/time.ts | 93 + .../credentials/src/providers/uri.ts | 92 + .../src/ram_role_arn_credential.ts | 56 + .../src/rsa_key_pair_credential.ts | 47 + .../credentials/src/session_credential.ts | 70 + .../credentials/src/sts_token_credential.ts | 26 + .../credentials/src/uri_credential.ts | 55 + .../@alicloud/credentials/src/util/helper.ts | 7 + .../@alicloud/credentials/src/util/http.ts | 147 + .../@alicloud/credentials/src/util/utils.ts | 49 + .../darabonba-array/dist/client.d.ts | 18 + .../@alicloud/darabonba-array/dist/client.js | 81 + .../darabonba-array/dist/client.js.map | 1 + .../@alicloud/darabonba-array/package.json | 39 + .../@alicloud/darabonba-array/src/client.ts | 92 + .../darabonba-encode-util/dist/client.d.ts | 46 + .../darabonba-encode-util/dist/client.js | 121 + .../darabonba-encode-util/dist/client.js.map | 1 + .../darabonba-encode-util/package.json | 38 + .../darabonba-encode-util/src/client.ts | 122 + .../@alicloud/darabonba-map/dist/client.d.ts | 8 + .../@alicloud/darabonba-map/dist/client.js | 20 + .../darabonba-map/dist/client.js.map | 1 + .../@alicloud/darabonba-map/package.json | 38 + .../@alicloud/darabonba-map/src/client.ts | 25 + .../darabonba-signature-util/dist/client.d.ts | 66 + .../darabonba-signature-util/dist/client.js | 112 + .../dist/client.js.map | 1 + .../darabonba-encode-util/dist/client.d.ts | 46 + .../darabonba-encode-util/dist/client.js | 117 + .../darabonba-encode-util/dist/client.js.map | 1 + .../darabonba-encode-util/package.json | 39 + .../darabonba-encode-util/src/client.ts | 123 + .../darabonba-signature-util/package.json | 37 + .../darabonba-signature-util/src/client.ts | 117 + .../@alicloud/darabonba-string/README.md | 26 + .../darabonba-string/dist/client.d.ts | 19 + .../@alicloud/darabonba-string/dist/client.js | 65 + .../darabonba-string/dist/client.js.map | 1 + .../@alicloud/darabonba-string/package.json | 37 + .../@alicloud/darabonba-string/src/client.ts | 78 + .../@alicloud/endpoint-util/ChangeLog.txt | 2 + .../@alicloud/endpoint-util/README.md | 29 + .../@alicloud/endpoint-util/dist/client.d.ts | 3 + .../@alicloud/endpoint-util/dist/client.js | 32 + .../endpoint-util/dist/client.js.map | 1 + .../@alicloud/endpoint-util/package.json | 30 + .../@alicloud/endpoint-util/src/client.ts | 34 + .../@alicloud/gateway-pop/dist/client.d.ts | 35 + .../@alicloud/gateway-pop/dist/client.js | 288 + .../@alicloud/gateway-pop/dist/client.js.map | 1 + .../@alicloud/gateway-pop/package.json | 40 + .../@alicloud/gateway-pop/src/client.ts | 305 + .../@alicloud/gateway-spi/dist/client.d.ts | 114 + .../@alicloud/gateway-spi/dist/client.js | 174 + .../@alicloud/gateway-spi/dist/client.js.map | 1 + .../@alicloud/gateway-spi/package.json | 29 + .../@alicloud/gateway-spi/src/client.ts | 203 + .../@alicloud/openapi-client/README.md | 19 + .../@alicloud/openapi-client/dist/client.d.ts | 531 + .../@alicloud/openapi-client/dist/client.js | 1404 + .../openapi-client/dist/client.js.map | 1 + .../@alicloud/openapi-client/package.json | 37 + .../@alicloud/openapi-client/src/client.ts | 1835 + .../@alicloud/openapi-core/README.md | 19 + .../@alicloud/openapi-core/dist/client.d.ts | 211 + .../@alicloud/openapi-core/dist/client.js | 1519 + .../@alicloud/openapi-core/dist/client.js.map | 1 + .../dist/exceptions/AlibabaCloudError.d.ts | 11 + .../dist/exceptions/AlibabaCloudError.js | 37 + .../dist/exceptions/AlibabaCloudError.js.map | 1 + .../dist/exceptions/ClientError.d.ts | 9 + .../dist/exceptions/ClientError.js | 14 + .../dist/exceptions/ClientError.js.map | 1 + .../dist/exceptions/ServerError.d.ts | 6 + .../dist/exceptions/ServerError.js | 13 + .../dist/exceptions/ServerError.js.map | 1 + .../dist/exceptions/ThrottlingError.d.ts | 7 + .../dist/exceptions/ThrottlingError.js | 14 + .../dist/exceptions/ThrottlingError.js.map | 1 + .../openapi-core/dist/exceptions/error.d.ts | 4 + .../openapi-core/dist/exceptions/error.js | 11 + .../openapi-core/dist/exceptions/error.js.map | 1 + .../openapi-core/dist/models/Sseresponse.d.ts | 26 + .../openapi-core/dist/models/Sseresponse.js | 58 + .../dist/models/Sseresponse.js.map | 1 + .../openapi-core/dist/models/model.d.ts | 1 + .../openapi-core/dist/models/model.js | 5 + .../openapi-core/dist/models/model.js.map | 1 + .../@alicloud/openapi-core/dist/utils.d.ts | 446 + .../@alicloud/openapi-core/dist/utils.js | 818 + .../@alicloud/openapi-core/dist/utils.js.map | 1 + .../@alicloud/openapi-core/package.json | 37 + .../openapi-core/scripts/ts_version.js | 33 + .../@alicloud/openapi-core/src/client.ts | 1697 + .../src/exceptions/AlibabaCloudError.ts | 22 + .../src/exceptions/ClientError.ts | 16 + .../src/exceptions/ServerError.ts | 14 + .../src/exceptions/ThrottlingError.ts | 16 + .../openapi-core/src/exceptions/error.ts | 4 + .../openapi-core/src/models/Sseresponse.ts | 47 + .../openapi-core/src/models/model.ts | 1 + .../@alicloud/openapi-core/src/utils.ts | 1089 + .../@alicloud/openapi-util/dist/client.d.ts | 108 + .../@alicloud/openapi-util/dist/client.js | 543 + .../@alicloud/openapi-util/dist/client.js.map | 1 + .../@alicloud/openapi-util/package.json | 33 + .../@alicloud/openapi-util/src/client.ts | 541 + .../@alicloud/tea-typescript/README.md | 31 + .../@alicloud/tea-typescript/dist/tea.d.ts | 57 + .../@alicloud/tea-typescript/dist/tea.js | 523 + .../@alicloud/tea-typescript/dist/tea.js.map | 1 + .../@alicloud/tea-typescript/package.json | 37 + .../@alicloud/tea-typescript/src/tea.ts | 484 + .../@alicloud/tea-util/ChangeLog.txt | 20 + .../node_modules/@alicloud/tea-util/README.md | 29 + .../@alicloud/tea-util/dist/client.d.ts | 108 + .../@alicloud/tea-util/dist/client.js | 301 + .../@alicloud/tea-util/dist/client.js.map | 1 + .../@alicloud/tea-util/package.json | 32 + .../@alicloud/tea-util/src/client.ts | 343 + .../@alicloud/tea-xml/ChangeLog.txt | 8 + .../node_modules/@alicloud/tea-xml/README.md | 29 + .../@alicloud/tea-xml/dist/client.d.ts | 12 + .../@alicloud/tea-xml/dist/client.js | 93 + .../@alicloud/tea-xml/dist/client.js.map | 1 + .../@alicloud/tea-xml/package.json | 38 + .../@alicloud/tea-xml/src/client.ts | 100 + .../@darabonba/typescript/README.md | 24 + .../@darabonba/typescript/dist/core.d.ts | 120 + .../@darabonba/typescript/dist/core.js | 680 + .../@darabonba/typescript/dist/core.js.map | 1 + .../@darabonba/typescript/dist/date.d.ts | 19 + .../@darabonba/typescript/dist/date.js | 86 + .../@darabonba/typescript/dist/date.js.map | 1 + .../@darabonba/typescript/dist/error.d.ts | 21 + .../@darabonba/typescript/dist/error.js | 92 + .../@darabonba/typescript/dist/error.js.map | 1 + .../@darabonba/typescript/dist/file.d.ts | 23 + .../@darabonba/typescript/dist/file.js | 218 + .../@darabonba/typescript/dist/file.js.map | 1 + .../@darabonba/typescript/dist/form.d.ts | 24 + .../@darabonba/typescript/dist/form.js | 88 + .../@darabonba/typescript/dist/form.js.map | 1 + .../@darabonba/typescript/dist/func.d.ts | 9 + .../@darabonba/typescript/dist/func.js | 51 + .../@darabonba/typescript/dist/func.js.map | 1 + .../@darabonba/typescript/dist/index.d.ts | 10 + .../@darabonba/typescript/dist/index.js | 39 + .../@darabonba/typescript/dist/index.js.map | 1 + .../@darabonba/typescript/dist/retry.d.ts | 42 + .../@darabonba/typescript/dist/retry.js | 210 + .../@darabonba/typescript/dist/retry.js.map | 1 + .../@darabonba/typescript/dist/stream.d.ts | 18 + .../@darabonba/typescript/dist/stream.js | 257 + .../@darabonba/typescript/dist/stream.js.map | 1 + .../@darabonba/typescript/dist/url.d.ts | 20 + .../@darabonba/typescript/dist/url.js | 94 + .../@darabonba/typescript/dist/url.js.map | 1 + .../@darabonba/typescript/dist/xml.d.ts | 12 + .../@darabonba/typescript/dist/xml.js | 98 + .../@darabonba/typescript/dist/xml.js.map | 1 + .../@darabonba/typescript/package.json | 47 + .../@darabonba/typescript/src/core.ts | 662 + .../@darabonba/typescript/src/date.ts | 95 + .../@darabonba/typescript/src/error.ts | 83 + .../@darabonba/typescript/src/file.ts | 91 + .../@darabonba/typescript/src/form.ts | 73 + .../@darabonba/typescript/src/func.ts | 27 + .../@darabonba/typescript/src/index.ts | 10 + .../@darabonba/typescript/src/retry.ts | 213 + .../@darabonba/typescript/src/stream.ts | 182 + .../@darabonba/typescript/src/url.ts | 85 + .../@darabonba/typescript/src/xml.ts | 95 + backend/node_modules/@types/node/LICENSE | 21 + backend/node_modules/@types/node/README.md | 16 + backend/node_modules/@types/node/assert.d.ts | 117 + .../node_modules/@types/node/async_hooks.d.ts | 246 + backend/node_modules/@types/node/buffer.d.ts | 22 + .../@types/node/child_process.d.ts | 507 + backend/node_modules/@types/node/cluster.d.ts | 260 + backend/node_modules/@types/node/console.d.ts | 3 + .../node_modules/@types/node/constants.d.ts | 448 + backend/node_modules/@types/node/crypto.d.ts | 1183 + backend/node_modules/@types/node/dgram.d.ts | 118 + backend/node_modules/@types/node/dns.d.ts | 372 + backend/node_modules/@types/node/domain.d.ts | 16 + backend/node_modules/@types/node/events.d.ts | 47 + backend/node_modules/@types/node/fs.d.ts | 2567 ++ backend/node_modules/@types/node/globals.d.ts | 1351 + .../@types/node/globals.global.d.ts | 1 + backend/node_modules/@types/node/http.d.ts | 456 + backend/node_modules/@types/node/http2.d.ts | 952 + backend/node_modules/@types/node/https.d.ts | 156 + backend/node_modules/@types/node/index.d.ts | 91 + .../node_modules/@types/node/inspector.d.ts | 3040 ++ backend/node_modules/@types/node/module.d.ts | 3 + backend/node_modules/@types/node/net.d.ts | 290 + backend/node_modules/@types/node/os.d.ts | 263 + backend/node_modules/@types/node/package.json | 195 + backend/node_modules/@types/node/path.d.ts | 159 + .../node_modules/@types/node/perf_hooks.d.ts | 259 + backend/node_modules/@types/node/process.d.ts | 15 + .../node_modules/@types/node/punycode.d.ts | 75 + .../node_modules/@types/node/querystring.d.ts | 29 + .../node_modules/@types/node/readline.d.ts | 158 + backend/node_modules/@types/node/repl.d.ts | 390 + backend/node_modules/@types/node/stream.d.ts | 334 + .../@types/node/string_decoder.d.ts | 7 + backend/node_modules/@types/node/timers.d.ts | 16 + backend/node_modules/@types/node/tls.d.ts | 713 + .../@types/node/trace_events.d.ts | 61 + backend/node_modules/@types/node/tty.d.ts | 66 + backend/node_modules/@types/node/url.d.ts | 147 + backend/node_modules/@types/node/util.d.ts | 200 + backend/node_modules/@types/node/v8.d.ts | 197 + backend/node_modules/@types/node/vm.d.ts | 112 + backend/node_modules/@types/node/wasi.d.ts | 55 + .../@types/node/worker_threads.d.ts | 207 + backend/node_modules/@types/node/zlib.d.ts | 356 + backend/node_modules/@types/xml2js/LICENSE | 21 + backend/node_modules/@types/xml2js/README.md | 15 + backend/node_modules/@types/xml2js/index.d.ts | 93 + .../@types/xml2js/lib/processors.d.ts | 9 + .../node_modules/@types/xml2js/package.json | 57 + backend/node_modules/anymatch/LICENSE | 15 + backend/node_modules/anymatch/README.md | 87 + backend/node_modules/anymatch/index.d.ts | 20 + backend/node_modules/anymatch/index.js | 104 + backend/node_modules/anymatch/package.json | 48 + .../binary-extensions/binary-extensions.json | 263 + .../binary-extensions.json.d.ts | 3 + .../node_modules/binary-extensions/index.d.ts | 14 + .../node_modules/binary-extensions/index.js | 1 + .../node_modules/binary-extensions/license | 10 + .../binary-extensions/package.json | 40 + .../node_modules/binary-extensions/readme.md | 25 + backend/node_modules/braces/LICENSE | 21 + backend/node_modules/braces/README.md | 586 + backend/node_modules/braces/index.js | 170 + backend/node_modules/braces/lib/compile.js | 60 + backend/node_modules/braces/lib/constants.js | 57 + backend/node_modules/braces/lib/expand.js | 113 + backend/node_modules/braces/lib/parse.js | 331 + backend/node_modules/braces/lib/stringify.js | 32 + backend/node_modules/braces/lib/utils.js | 122 + backend/node_modules/braces/package.json | 77 + backend/node_modules/chokidar/LICENSE | 21 + backend/node_modules/chokidar/README.md | 308 + backend/node_modules/chokidar/index.js | 973 + .../node_modules/chokidar/lib/constants.js | 66 + .../chokidar/lib/fsevents-handler.js | 526 + .../chokidar/lib/nodefs-handler.js | 654 + backend/node_modules/chokidar/package.json | 70 + .../node_modules/chokidar/types/index.d.ts | 192 + backend/node_modules/concat-map/.travis.yml | 4 + backend/node_modules/concat-map/LICENSE | 18 + .../node_modules/concat-map/README.markdown | 62 + .../node_modules/concat-map/example/map.js | 6 + backend/node_modules/concat-map/index.js | 13 + backend/node_modules/concat-map/package.json | 43 + backend/node_modules/concat-map/test/map.js | 39 + backend/node_modules/fill-range/LICENSE | 21 + backend/node_modules/fill-range/README.md | 237 + backend/node_modules/fill-range/index.js | 248 + backend/node_modules/fill-range/package.json | 74 + backend/node_modules/glob-parent/CHANGELOG.md | 110 + backend/node_modules/glob-parent/LICENSE | 15 + backend/node_modules/glob-parent/README.md | 137 + backend/node_modules/glob-parent/index.js | 42 + backend/node_modules/glob-parent/package.json | 48 + backend/node_modules/has-flag/index.js | 8 + backend/node_modules/has-flag/license | 9 + backend/node_modules/has-flag/package.json | 44 + backend/node_modules/has-flag/readme.md | 70 + backend/node_modules/httpx/README.md | 96 + backend/node_modules/httpx/lib/index.d.ts | 31 + backend/node_modules/httpx/lib/index.js | 396 + .../httpx/node_modules/@types/node/LICENSE | 21 + .../httpx/node_modules/@types/node/README.md | 15 + .../node_modules/@types/node/assert.d.ts | 1062 + .../@types/node/assert/strict.d.ts | 8 + .../node_modules/@types/node/async_hooks.d.ts | 605 + .../@types/node/buffer.buffer.d.ts | 471 + .../node_modules/@types/node/buffer.d.ts | 1936 ++ .../@types/node/child_process.d.ts | 1475 + .../node_modules/@types/node/cluster.d.ts | 577 + .../@types/node/compatibility/disposable.d.ts | 16 + .../@types/node/compatibility/index.d.ts | 9 + .../@types/node/compatibility/indexable.d.ts | 20 + .../@types/node/compatibility/iterators.d.ts | 21 + .../node_modules/@types/node/console.d.ts | 452 + .../node_modules/@types/node/constants.d.ts | 21 + .../node_modules/@types/node/crypto.d.ts | 4590 +++ .../httpx/node_modules/@types/node/dgram.d.ts | 597 + .../@types/node/diagnostics_channel.d.ts | 578 + .../httpx/node_modules/@types/node/dns.d.ts | 871 + .../@types/node/dns/promises.d.ts | 479 + .../node_modules/@types/node/domain.d.ts | 170 + .../node_modules/@types/node/events.d.ts | 977 + .../httpx/node_modules/@types/node/fs.d.ts | 4375 +++ .../node_modules/@types/node/fs/promises.d.ts | 1270 + .../node_modules/@types/node/globals.d.ts | 172 + .../@types/node/globals.typedarray.d.ts | 38 + .../httpx/node_modules/@types/node/http.d.ts | 2049 ++ .../httpx/node_modules/@types/node/http2.d.ts | 2631 ++ .../httpx/node_modules/@types/node/https.d.ts | 578 + .../httpx/node_modules/@types/node/index.d.ts | 93 + .../@types/node/inspector.generated.d.ts | 3966 +++ .../node_modules/@types/node/module.d.ts | 539 + .../httpx/node_modules/@types/node/net.d.ts | 1012 + .../httpx/node_modules/@types/node/os.d.ts | 506 + .../node_modules/@types/node/package.json | 140 + .../httpx/node_modules/@types/node/path.d.ts | 200 + .../node_modules/@types/node/perf_hooks.d.ts | 961 + .../node_modules/@types/node/process.d.ts | 1966 ++ .../node_modules/@types/node/punycode.d.ts | 117 + .../node_modules/@types/node/querystring.d.ts | 152 + .../node_modules/@types/node/readline.d.ts | 589 + .../@types/node/readline/promises.d.ts | 162 + .../httpx/node_modules/@types/node/repl.d.ts | 430 + .../httpx/node_modules/@types/node/sea.d.ts | 153 + .../node_modules/@types/node/stream.d.ts | 1675 + .../@types/node/stream/consumers.d.ts | 38 + .../@types/node/stream/promises.d.ts | 90 + .../node_modules/@types/node/stream/web.d.ts | 533 + .../@types/node/string_decoder.d.ts | 67 + .../httpx/node_modules/@types/node/test.d.ts | 1787 + .../node_modules/@types/node/timers.d.ts | 286 + .../@types/node/timers/promises.d.ts | 108 + .../httpx/node_modules/@types/node/tls.d.ts | 1259 + .../@types/node/trace_events.d.ts | 197 + .../@types/node/ts5.6/buffer.buffer.d.ts | 468 + .../@types/node/ts5.6/globals.typedarray.d.ts | 34 + .../node_modules/@types/node/ts5.6/index.d.ts | 93 + .../httpx/node_modules/@types/node/tty.d.ts | 208 + .../httpx/node_modules/@types/node/url.d.ts | 964 + .../httpx/node_modules/@types/node/util.d.ts | 2331 ++ .../httpx/node_modules/@types/node/v8.d.ts | 809 + .../httpx/node_modules/@types/node/vm.d.ts | 1001 + .../httpx/node_modules/@types/node/wasi.d.ts | 181 + .../node/web-globals/abortcontroller.d.ts | 34 + .../@types/node/web-globals/domexception.d.ts | 68 + .../@types/node/web-globals/events.d.ts | 97 + .../@types/node/web-globals/fetch.d.ts | 46 + .../@types/node/worker_threads.d.ts | 715 + .../httpx/node_modules/@types/node/zlib.d.ts | 540 + .../httpx/node_modules/debug/LICENSE | 20 + .../httpx/node_modules/debug/README.md | 481 + .../httpx/node_modules/debug/package.json | 64 + .../httpx/node_modules/debug/src/browser.js | 272 + .../httpx/node_modules/debug/src/common.js | 292 + .../httpx/node_modules/debug/src/index.js | 10 + .../httpx/node_modules/debug/src/node.js | 263 + .../httpx/node_modules/ms/index.js | 162 + .../httpx/node_modules/ms/license.md | 21 + .../httpx/node_modules/ms/package.json | 38 + .../httpx/node_modules/ms/readme.md | 59 + backend/node_modules/httpx/package.json | 36 + .../node_modules/ignore-by-default/LICENSE | 14 + .../node_modules/ignore-by-default/README.md | 26 + .../node_modules/ignore-by-default/index.js | 12 + .../ignore-by-default/package.json | 34 + .../node_modules/is-binary-path/index.d.ts | 17 + backend/node_modules/is-binary-path/index.js | 7 + backend/node_modules/is-binary-path/license | 9 + .../node_modules/is-binary-path/package.json | 40 + backend/node_modules/is-binary-path/readme.md | 34 + backend/node_modules/is-extglob/LICENSE | 21 + backend/node_modules/is-extglob/README.md | 107 + backend/node_modules/is-extglob/index.js | 20 + backend/node_modules/is-extglob/package.json | 69 + backend/node_modules/is-glob/LICENSE | 21 + backend/node_modules/is-glob/README.md | 206 + backend/node_modules/is-glob/index.js | 150 + backend/node_modules/is-glob/package.json | 81 + backend/node_modules/is-number/LICENSE | 21 + backend/node_modules/is-number/README.md | 187 + backend/node_modules/is-number/index.js | 18 + backend/node_modules/is-number/package.json | 82 + backend/node_modules/kitx/LICENSE | 21 + backend/node_modules/kitx/README.md | 35 + backend/node_modules/kitx/lib/index.d.ts | 45 + backend/node_modules/kitx/lib/index.js | 289 + .../kitx/node_modules/@types/node/LICENSE | 21 + .../kitx/node_modules/@types/node/README.md | 15 + .../kitx/node_modules/@types/node/assert.d.ts | 1078 + .../@types/node/assert/strict.d.ts | 111 + .../node_modules/@types/node/async_hooks.d.ts | 603 + .../@types/node/buffer.buffer.d.ts | 472 + .../kitx/node_modules/@types/node/buffer.d.ts | 1934 ++ .../@types/node/child_process.d.ts | 1476 + .../node_modules/@types/node/cluster.d.ts | 578 + .../@types/node/compatibility/disposable.d.ts | 14 + .../@types/node/compatibility/index.d.ts | 9 + .../@types/node/compatibility/indexable.d.ts | 20 + .../@types/node/compatibility/iterators.d.ts | 20 + .../node_modules/@types/node/console.d.ts | 452 + .../node_modules/@types/node/constants.d.ts | 21 + .../kitx/node_modules/@types/node/crypto.d.ts | 4545 +++ .../kitx/node_modules/@types/node/dgram.d.ts | 600 + .../@types/node/diagnostics_channel.d.ts | 578 + .../kitx/node_modules/@types/node/dns.d.ts | 923 + .../@types/node/dns/promises.d.ts | 503 + .../kitx/node_modules/@types/node/domain.d.ts | 170 + .../kitx/node_modules/@types/node/events.d.ts | 976 + .../kitx/node_modules/@types/node/fs.d.ts | 4461 +++ .../node_modules/@types/node/fs/promises.d.ts | 1295 + .../node_modules/@types/node/globals.d.ts | 172 + .../@types/node/globals.typedarray.d.ts | 38 + .../kitx/node_modules/@types/node/http.d.ts | 2089 ++ .../kitx/node_modules/@types/node/http2.d.ts | 2644 ++ .../kitx/node_modules/@types/node/https.d.ts | 579 + .../kitx/node_modules/@types/node/index.d.ts | 97 + .../node_modules/@types/node/inspector.d.ts | 253 + .../@types/node/inspector.generated.d.ts | 4052 +++ .../kitx/node_modules/@types/node/module.d.ts | 891 + .../kitx/node_modules/@types/node/net.d.ts | 1057 + .../kitx/node_modules/@types/node/os.d.ts | 506 + .../node_modules/@types/node/package.json | 145 + .../kitx/node_modules/@types/node/path.d.ts | 200 + .../node_modules/@types/node/perf_hooks.d.ts | 968 + .../node_modules/@types/node/process.d.ts | 2089 ++ .../node_modules/@types/node/punycode.d.ts | 117 + .../node_modules/@types/node/querystring.d.ts | 152 + .../node_modules/@types/node/readline.d.ts | 594 + .../@types/node/readline/promises.d.ts | 161 + .../kitx/node_modules/@types/node/repl.d.ts | 428 + .../kitx/node_modules/@types/node/sea.d.ts | 153 + .../kitx/node_modules/@types/node/sqlite.d.ts | 721 + .../kitx/node_modules/@types/node/stream.d.ts | 1664 + .../@types/node/stream/consumers.d.ts | 38 + .../@types/node/stream/promises.d.ts | 90 + .../node_modules/@types/node/stream/web.d.ts | 622 + .../@types/node/string_decoder.d.ts | 67 + .../kitx/node_modules/@types/node/test.d.ts | 2162 ++ .../kitx/node_modules/@types/node/timers.d.ts | 287 + .../@types/node/timers/promises.d.ts | 108 + .../kitx/node_modules/@types/node/tls.d.ts | 1319 + .../@types/node/trace_events.d.ts | 197 + .../@types/node/ts5.6/buffer.buffer.d.ts | 468 + .../@types/node/ts5.6/globals.typedarray.d.ts | 34 + .../node_modules/@types/node/ts5.6/index.d.ts | 97 + .../kitx/node_modules/@types/node/tty.d.ts | 208 + .../kitx/node_modules/@types/node/url.d.ts | 984 + .../kitx/node_modules/@types/node/util.d.ts | 2606 ++ .../kitx/node_modules/@types/node/v8.d.ts | 920 + .../kitx/node_modules/@types/node/vm.d.ts | 1000 + .../kitx/node_modules/@types/node/wasi.d.ts | 181 + .../node/web-globals/abortcontroller.d.ts | 34 + .../@types/node/web-globals/domexception.d.ts | 68 + .../@types/node/web-globals/events.d.ts | 97 + .../@types/node/web-globals/fetch.d.ts | 46 + .../@types/node/web-globals/navigator.d.ts | 22 + .../@types/node/web-globals/storage.d.ts | 24 + .../@types/node/worker_threads.d.ts | 784 + .../kitx/node_modules/@types/node/zlib.d.ts | 683 + backend/node_modules/kitx/package.json | 41 + .../moment-timezone/.editorconfig | 22 + backend/node_modules/moment-timezone/LICENSE | 20 + .../node_modules/moment-timezone/README.md | 64 + ...moment-timezone-with-data-10-year-range.js | 1582 + ...nt-timezone-with-data-10-year-range.min.js | 1 + .../moment-timezone-with-data-1970-2030.js | 1582 + ...moment-timezone-with-data-1970-2030.min.js | 1 + .../moment-timezone-with-data-2012-2022.js | 1594 + ...moment-timezone-with-data-2012-2022.min.js | 1 + .../builds/moment-timezone-with-data.js | 1582 + .../builds/moment-timezone-with-data.min.js | 1 + .../builds/moment-timezone.min.js | 1 + .../node_modules/moment-timezone/changelog.md | 283 + .../moment-timezone/composer.json | 43 + .../moment-timezone/data/meta/latest.json | 5891 ++++ .../moment-timezone/data/packed/latest.json | 853 + .../node_modules/moment-timezone/index.d.ts | 78 + backend/node_modules/moment-timezone/index.js | 2 + .../moment-timezone-utils.d.ts | 70 + .../moment-timezone/moment-timezone-utils.js | 339 + .../moment-timezone/moment-timezone.js | 729 + .../node_modules/moment-timezone/package.json | 55 + backend/node_modules/moment/CHANGELOG.md | 996 + backend/node_modules/moment/LICENSE | 22 + backend/node_modules/moment/README.md | 55 + backend/node_modules/moment/dist/locale/af.js | 71 + .../node_modules/moment/dist/locale/ar-dz.js | 156 + .../node_modules/moment/dist/locale/ar-kw.js | 55 + .../node_modules/moment/dist/locale/ar-ly.js | 171 + .../node_modules/moment/dist/locale/ar-ma.js | 56 + .../node_modules/moment/dist/locale/ar-ps.js | 112 + .../node_modules/moment/dist/locale/ar-sa.js | 105 + .../node_modules/moment/dist/locale/ar-tn.js | 55 + backend/node_modules/moment/dist/locale/ar.js | 189 + backend/node_modules/moment/dist/locale/az.js | 102 + backend/node_modules/moment/dist/locale/be.js | 142 + backend/node_modules/moment/dist/locale/bg.js | 87 + backend/node_modules/moment/dist/locale/bm.js | 52 + .../node_modules/moment/dist/locale/bn-bd.js | 129 + backend/node_modules/moment/dist/locale/bn.js | 119 + backend/node_modules/moment/dist/locale/bo.js | 124 + backend/node_modules/moment/dist/locale/br.js | 168 + backend/node_modules/moment/dist/locale/bs.js | 160 + backend/node_modules/moment/dist/locale/ca.js | 100 + backend/node_modules/moment/dist/locale/cs.js | 181 + backend/node_modules/moment/dist/locale/cv.js | 63 + backend/node_modules/moment/dist/locale/cy.js | 98 + backend/node_modules/moment/dist/locale/da.js | 53 + .../node_modules/moment/dist/locale/de-at.js | 79 + .../node_modules/moment/dist/locale/de-ch.js | 78 + backend/node_modules/moment/dist/locale/de.js | 78 + backend/node_modules/moment/dist/locale/dv.js | 90 + backend/node_modules/moment/dist/locale/el.js | 106 + .../node_modules/moment/dist/locale/en-au.js | 68 + .../node_modules/moment/dist/locale/en-ca.js | 64 + .../node_modules/moment/dist/locale/en-gb.js | 68 + .../node_modules/moment/dist/locale/en-ie.js | 68 + .../node_modules/moment/dist/locale/en-il.js | 64 + .../node_modules/moment/dist/locale/en-in.js | 68 + .../node_modules/moment/dist/locale/en-nz.js | 68 + .../node_modules/moment/dist/locale/en-sg.js | 68 + backend/node_modules/moment/dist/locale/eo.js | 68 + .../node_modules/moment/dist/locale/es-do.js | 108 + .../node_modules/moment/dist/locale/es-mx.js | 110 + .../node_modules/moment/dist/locale/es-us.js | 110 + backend/node_modules/moment/dist/locale/es.js | 110 + backend/node_modules/moment/dist/locale/et.js | 78 + backend/node_modules/moment/dist/locale/eu.js | 65 + backend/node_modules/moment/dist/locale/fa.js | 113 + backend/node_modules/moment/dist/locale/fi.js | 124 + .../node_modules/moment/dist/locale/fil.js | 58 + backend/node_modules/moment/dist/locale/fo.js | 57 + .../node_modules/moment/dist/locale/fr-ca.js | 70 + .../node_modules/moment/dist/locale/fr-ch.js | 74 + backend/node_modules/moment/dist/locale/fr.js | 108 + backend/node_modules/moment/dist/locale/fy.js | 75 + backend/node_modules/moment/dist/locale/ga.js | 95 + backend/node_modules/moment/dist/locale/gd.js | 95 + backend/node_modules/moment/dist/locale/gl.js | 75 + .../moment/dist/locale/gom-deva.js | 126 + .../moment/dist/locale/gom-latn.js | 124 + backend/node_modules/moment/dist/locale/gu.js | 122 + backend/node_modules/moment/dist/locale/he.js | 94 + backend/node_modules/moment/dist/locale/hi.js | 168 + backend/node_modules/moment/dist/locale/hr.js | 156 + backend/node_modules/moment/dist/locale/hu.js | 118 + .../node_modules/moment/dist/locale/hy-am.js | 94 + backend/node_modules/moment/dist/locale/id.js | 76 + backend/node_modules/moment/dist/locale/is.js | 140 + .../node_modules/moment/dist/locale/it-ch.js | 64 + backend/node_modules/moment/dist/locale/it.js | 106 + backend/node_modules/moment/dist/locale/ja.js | 148 + backend/node_modules/moment/dist/locale/jv.js | 76 + backend/node_modules/moment/dist/locale/ka.js | 92 + backend/node_modules/moment/dist/locale/kk.js | 82 + backend/node_modules/moment/dist/locale/km.js | 103 + backend/node_modules/moment/dist/locale/kn.js | 124 + backend/node_modules/moment/dist/locale/ko.js | 75 + .../node_modules/moment/dist/locale/ku-kmr.js | 121 + backend/node_modules/moment/dist/locale/ku.js | 118 + backend/node_modules/moment/dist/locale/ky.js | 84 + backend/node_modules/moment/dist/locale/lb.js | 137 + backend/node_modules/moment/dist/locale/lo.js | 66 + backend/node_modules/moment/dist/locale/lt.js | 125 + backend/node_modules/moment/dist/locale/lv.js | 94 + backend/node_modules/moment/dist/locale/me.js | 117 + backend/node_modules/moment/dist/locale/mi.js | 60 + backend/node_modules/moment/dist/locale/mk.js | 85 + backend/node_modules/moment/dist/locale/ml.js | 82 + backend/node_modules/moment/dist/locale/mn.js | 100 + backend/node_modules/moment/dist/locale/mr.js | 203 + .../node_modules/moment/dist/locale/ms-my.js | 76 + backend/node_modules/moment/dist/locale/ms.js | 75 + backend/node_modules/moment/dist/locale/mt.js | 56 + backend/node_modules/moment/dist/locale/my.js | 91 + backend/node_modules/moment/dist/locale/nb.js | 60 + backend/node_modules/moment/dist/locale/ne.js | 121 + .../node_modules/moment/dist/locale/nl-be.js | 102 + backend/node_modules/moment/dist/locale/nl.js | 104 + backend/node_modules/moment/dist/locale/nn.js | 59 + .../node_modules/moment/dist/locale/oc-lnc.js | 85 + .../node_modules/moment/dist/locale/pa-in.js | 122 + backend/node_modules/moment/dist/locale/pl.js | 140 + .../node_modules/moment/dist/locale/pt-br.js | 58 + backend/node_modules/moment/dist/locale/pt.js | 63 + backend/node_modules/moment/dist/locale/ro.js | 76 + backend/node_modules/moment/dist/locale/ru.js | 213 + backend/node_modules/moment/dist/locale/sd.js | 81 + backend/node_modules/moment/dist/locale/se.js | 57 + backend/node_modules/moment/dist/locale/si.js | 69 + backend/node_modules/moment/dist/locale/sk.js | 145 + backend/node_modules/moment/dist/locale/sl.js | 171 + backend/node_modules/moment/dist/locale/sq.js | 65 + .../moment/dist/locale/sr-cyrl.js | 127 + backend/node_modules/moment/dist/locale/sr.js | 129 + backend/node_modules/moment/dist/locale/ss.js | 84 + backend/node_modules/moment/dist/locale/sv.js | 68 + backend/node_modules/moment/dist/locale/sw.js | 55 + backend/node_modules/moment/dist/locale/ta.js | 131 + backend/node_modules/moment/dist/locale/te.js | 88 + .../node_modules/moment/dist/locale/tet.js | 68 + backend/node_modules/moment/dist/locale/tg.js | 117 + backend/node_modules/moment/dist/locale/th.js | 65 + backend/node_modules/moment/dist/locale/tk.js | 91 + .../node_modules/moment/dist/locale/tl-ph.js | 57 + .../node_modules/moment/dist/locale/tlh.js | 124 + backend/node_modules/moment/dist/locale/tr.js | 106 + .../node_modules/moment/dist/locale/tzl.js | 89 + .../moment/dist/locale/tzm-latn.js | 54 + .../node_modules/moment/dist/locale/tzm.js | 54 + .../node_modules/moment/dist/locale/ug-cn.js | 111 + backend/node_modules/moment/dist/locale/uk.js | 167 + backend/node_modules/moment/dist/locale/ur.js | 82 + .../moment/dist/locale/uz-latn.js | 54 + backend/node_modules/moment/dist/locale/uz.js | 51 + backend/node_modules/moment/dist/locale/vi.js | 80 + .../moment/dist/locale/x-pseudo.js | 73 + backend/node_modules/moment/dist/locale/yo.js | 53 + .../node_modules/moment/dist/locale/zh-cn.js | 120 + .../node_modules/moment/dist/locale/zh-hk.js | 101 + .../node_modules/moment/dist/locale/zh-mo.js | 100 + .../node_modules/moment/dist/locale/zh-tw.js | 99 + backend/node_modules/moment/dist/moment.js | 5680 ++++ backend/node_modules/moment/ender.js | 1 + backend/node_modules/moment/locale/af.js | 82 + backend/node_modules/moment/locale/ar-dz.js | 167 + backend/node_modules/moment/locale/ar-kw.js | 66 + backend/node_modules/moment/locale/ar-ly.js | 182 + backend/node_modules/moment/locale/ar-ma.js | 67 + backend/node_modules/moment/locale/ar-ps.js | 123 + backend/node_modules/moment/locale/ar-sa.js | 116 + backend/node_modules/moment/locale/ar-tn.js | 66 + backend/node_modules/moment/locale/ar.js | 200 + backend/node_modules/moment/locale/az.js | 113 + backend/node_modules/moment/locale/be.js | 153 + backend/node_modules/moment/locale/bg.js | 98 + backend/node_modules/moment/locale/bm.js | 62 + backend/node_modules/moment/locale/bn-bd.js | 140 + backend/node_modules/moment/locale/bn.js | 130 + backend/node_modules/moment/locale/bo.js | 135 + backend/node_modules/moment/locale/br.js | 179 + backend/node_modules/moment/locale/bs.js | 171 + backend/node_modules/moment/locale/ca.js | 111 + backend/node_modules/moment/locale/cs.js | 192 + backend/node_modules/moment/locale/cv.js | 74 + backend/node_modules/moment/locale/cy.js | 109 + backend/node_modules/moment/locale/da.js | 64 + backend/node_modules/moment/locale/de-at.js | 90 + backend/node_modules/moment/locale/de-ch.js | 87 + backend/node_modules/moment/locale/de.js | 89 + backend/node_modules/moment/locale/dv.js | 101 + backend/node_modules/moment/locale/el.js | 117 + backend/node_modules/moment/locale/en-au.js | 79 + backend/node_modules/moment/locale/en-ca.js | 75 + backend/node_modules/moment/locale/en-gb.js | 79 + backend/node_modules/moment/locale/en-ie.js | 79 + backend/node_modules/moment/locale/en-il.js | 75 + backend/node_modules/moment/locale/en-in.js | 79 + backend/node_modules/moment/locale/en-nz.js | 79 + backend/node_modules/moment/locale/en-sg.js | 79 + backend/node_modules/moment/locale/eo.js | 79 + backend/node_modules/moment/locale/es-do.js | 119 + backend/node_modules/moment/locale/es-mx.js | 121 + backend/node_modules/moment/locale/es-us.js | 121 + backend/node_modules/moment/locale/es.js | 121 + backend/node_modules/moment/locale/et.js | 89 + backend/node_modules/moment/locale/eu.js | 76 + backend/node_modules/moment/locale/fa.js | 124 + backend/node_modules/moment/locale/fi.js | 135 + backend/node_modules/moment/locale/fil.js | 69 + backend/node_modules/moment/locale/fo.js | 68 + backend/node_modules/moment/locale/fr-ca.js | 81 + backend/node_modules/moment/locale/fr-ch.js | 85 + backend/node_modules/moment/locale/fr.js | 119 + backend/node_modules/moment/locale/fy.js | 86 + backend/node_modules/moment/locale/ga.js | 106 + backend/node_modules/moment/locale/gd.js | 106 + backend/node_modules/moment/locale/gl.js | 86 + .../node_modules/moment/locale/gom-deva.js | 137 + .../node_modules/moment/locale/gom-latn.js | 135 + backend/node_modules/moment/locale/gu.js | 133 + backend/node_modules/moment/locale/he.js | 105 + backend/node_modules/moment/locale/hi.js | 179 + backend/node_modules/moment/locale/hr.js | 167 + backend/node_modules/moment/locale/hu.js | 129 + backend/node_modules/moment/locale/hy-am.js | 105 + backend/node_modules/moment/locale/id.js | 87 + backend/node_modules/moment/locale/is.js | 151 + backend/node_modules/moment/locale/it-ch.js | 75 + backend/node_modules/moment/locale/it.js | 117 + backend/node_modules/moment/locale/ja.js | 159 + backend/node_modules/moment/locale/jv.js | 87 + backend/node_modules/moment/locale/ka.js | 103 + backend/node_modules/moment/locale/kk.js | 93 + backend/node_modules/moment/locale/km.js | 114 + backend/node_modules/moment/locale/kn.js | 135 + backend/node_modules/moment/locale/ko.js | 86 + backend/node_modules/moment/locale/ku-kmr.js | 125 + backend/node_modules/moment/locale/ku.js | 129 + backend/node_modules/moment/locale/ky.js | 95 + backend/node_modules/moment/locale/lb.js | 148 + backend/node_modules/moment/locale/lo.js | 77 + backend/node_modules/moment/locale/lt.js | 136 + backend/node_modules/moment/locale/lv.js | 105 + backend/node_modules/moment/locale/me.js | 128 + backend/node_modules/moment/locale/mi.js | 71 + backend/node_modules/moment/locale/mk.js | 97 + backend/node_modules/moment/locale/ml.js | 93 + backend/node_modules/moment/locale/mn.js | 111 + backend/node_modules/moment/locale/mr.js | 214 + backend/node_modules/moment/locale/ms-my.js | 87 + backend/node_modules/moment/locale/ms.js | 86 + backend/node_modules/moment/locale/mt.js | 67 + backend/node_modules/moment/locale/my.js | 102 + backend/node_modules/moment/locale/nb.js | 71 + backend/node_modules/moment/locale/ne.js | 132 + backend/node_modules/moment/locale/nl-be.js | 113 + backend/node_modules/moment/locale/nl.js | 115 + backend/node_modules/moment/locale/nn.js | 70 + backend/node_modules/moment/locale/oc-lnc.js | 96 + backend/node_modules/moment/locale/pa-in.js | 133 + backend/node_modules/moment/locale/pl.js | 151 + backend/node_modules/moment/locale/pt-br.js | 69 + backend/node_modules/moment/locale/pt.js | 74 + backend/node_modules/moment/locale/ro.js | 87 + backend/node_modules/moment/locale/ru.js | 224 + backend/node_modules/moment/locale/sd.js | 92 + backend/node_modules/moment/locale/se.js | 68 + backend/node_modules/moment/locale/si.js | 80 + backend/node_modules/moment/locale/sk.js | 156 + backend/node_modules/moment/locale/sl.js | 182 + backend/node_modules/moment/locale/sq.js | 76 + backend/node_modules/moment/locale/sr-cyrl.js | 138 + backend/node_modules/moment/locale/sr.js | 140 + backend/node_modules/moment/locale/ss.js | 95 + backend/node_modules/moment/locale/sv.js | 79 + backend/node_modules/moment/locale/sw.js | 66 + backend/node_modules/moment/locale/ta.js | 142 + backend/node_modules/moment/locale/te.js | 99 + backend/node_modules/moment/locale/tet.js | 79 + backend/node_modules/moment/locale/tg.js | 128 + backend/node_modules/moment/locale/th.js | 76 + backend/node_modules/moment/locale/tk.js | 102 + backend/node_modules/moment/locale/tl-ph.js | 68 + backend/node_modules/moment/locale/tlh.js | 135 + backend/node_modules/moment/locale/tr.js | 117 + backend/node_modules/moment/locale/tzl.js | 100 + .../node_modules/moment/locale/tzm-latn.js | 65 + backend/node_modules/moment/locale/tzm.js | 65 + backend/node_modules/moment/locale/ug-cn.js | 122 + backend/node_modules/moment/locale/uk.js | 178 + backend/node_modules/moment/locale/ur.js | 93 + backend/node_modules/moment/locale/uz-latn.js | 65 + backend/node_modules/moment/locale/uz.js | 62 + backend/node_modules/moment/locale/vi.js | 91 + .../node_modules/moment/locale/x-pseudo.js | 84 + backend/node_modules/moment/locale/yo.js | 64 + backend/node_modules/moment/locale/zh-cn.js | 131 + backend/node_modules/moment/locale/zh-hk.js | 112 + backend/node_modules/moment/locale/zh-mo.js | 111 + backend/node_modules/moment/locale/zh-tw.js | 110 + backend/node_modules/moment/min/locales.js | 12800 +++++++ .../node_modules/moment/min/locales.min.js | 2 + .../moment/min/locales.min.js.map | 1 + .../moment/min/moment-with-locales.js | 18472 ++++++++++ .../moment/min/moment-with-locales.min.js | 2 + .../moment/min/moment-with-locales.min.js.map | 1 + backend/node_modules/moment/min/moment.min.js | 2 + .../node_modules/moment/min/moment.min.js.map | 1 + backend/node_modules/moment/moment.d.ts | 796 + backend/node_modules/moment/moment.js | 5688 ++++ backend/node_modules/moment/package.js | 11 + backend/node_modules/moment/package.json | 116 + .../moment/src/lib/create/check-overflow.js | 57 + .../moment/src/lib/create/date-from-array.js | 35 + .../moment/src/lib/create/from-anything.js | 117 + .../moment/src/lib/create/from-array.js | 187 + .../moment/src/lib/create/from-object.js | 20 + .../src/lib/create/from-string-and-array.js | 67 + .../src/lib/create/from-string-and-format.js | 135 + .../moment/src/lib/create/from-string.js | 258 + .../moment/src/lib/create/local.js | 5 + .../moment/src/lib/create/parsing-flags.js | 28 + .../node_modules/moment/src/lib/create/utc.js | 5 + .../moment/src/lib/create/valid.js | 51 + .../moment/src/lib/duration/abs.js | 18 + .../moment/src/lib/duration/add-subtract.js | 21 + .../moment/src/lib/duration/as.js | 76 + .../moment/src/lib/duration/bubble.js | 68 + .../moment/src/lib/duration/clone.js | 5 + .../moment/src/lib/duration/constructor.js | 42 + .../moment/src/lib/duration/create.js | 133 + .../moment/src/lib/duration/duration.js | 16 + .../moment/src/lib/duration/get.js | 27 + .../moment/src/lib/duration/humanize.js | 114 + .../moment/src/lib/duration/iso-string.js | 68 + .../moment/src/lib/duration/prototype.js | 78 + .../moment/src/lib/duration/valid.js | 55 + .../moment/src/lib/format/format.js | 104 + .../moment/src/lib/locale/base-config.js | 41 + .../moment/src/lib/locale/calendar.js | 15 + .../moment/src/lib/locale/constructor.js | 5 + .../node_modules/moment/src/lib/locale/en.js | 39 + .../moment/src/lib/locale/formats.js | 36 + .../moment/src/lib/locale/invalid.js | 5 + .../moment/src/lib/locale/lists.js | 93 + .../moment/src/lib/locale/locale.js | 45 + .../moment/src/lib/locale/locales.js | 249 + .../moment/src/lib/locale/ordinal.js | 8 + .../moment/src/lib/locale/pre-post-format.js | 3 + .../moment/src/lib/locale/prototype.js | 88 + .../moment/src/lib/locale/relative.js | 32 + .../node_modules/moment/src/lib/locale/set.js | 56 + .../moment/src/lib/moment/add-subtract.js | 61 + .../moment/src/lib/moment/calendar.js | 53 + .../moment/src/lib/moment/clone.js | 5 + .../moment/src/lib/moment/compare.js | 72 + .../moment/src/lib/moment/constructor.js | 80 + .../moment/src/lib/moment/creation-data.js | 9 + .../moment/src/lib/moment/diff.js | 79 + .../moment/src/lib/moment/format.js | 78 + .../moment/src/lib/moment/from.js | 20 + .../moment/src/lib/moment/get-set.js | 117 + .../moment/src/lib/moment/locale.js | 34 + .../moment/src/lib/moment/min-max.js | 62 + .../moment/src/lib/moment/moment.js | 28 + .../node_modules/moment/src/lib/moment/now.js | 3 + .../moment/src/lib/moment/prototype.js | 197 + .../moment/src/lib/moment/start-end-of.js | 164 + .../moment/src/lib/moment/to-type.js | 42 + .../node_modules/moment/src/lib/moment/to.js | 20 + .../moment/src/lib/moment/valid.js | 15 + .../moment/src/lib/parse/regex.js | 84 + .../moment/src/lib/parse/token.js | 36 + .../moment/src/lib/units/aliases.js | 75 + .../moment/src/lib/units/constants.js | 9 + .../moment/src/lib/units/day-of-month.js | 35 + .../moment/src/lib/units/day-of-week.js | 432 + .../moment/src/lib/units/day-of-year.js | 28 + .../node_modules/moment/src/lib/units/era.js | 293 + .../node_modules/moment/src/lib/units/hour.js | 152 + .../moment/src/lib/units/millisecond.js | 66 + .../moment/src/lib/units/minute.js | 24 + .../moment/src/lib/units/month.js | 340 + .../moment/src/lib/units/offset.js | 249 + .../moment/src/lib/units/priorities.js | 34 + .../moment/src/lib/units/quarter.js | 24 + .../moment/src/lib/units/second.js | 24 + .../moment/src/lib/units/timestamp.js | 20 + .../moment/src/lib/units/timezone.js | 16 + .../moment/src/lib/units/units.js | 20 + .../src/lib/units/week-calendar-utils.js | 66 + .../moment/src/lib/units/week-year.js | 128 + .../node_modules/moment/src/lib/units/week.js | 62 + .../node_modules/moment/src/lib/units/year.js | 75 + .../moment/src/lib/utils/abs-ceil.js | 7 + .../moment/src/lib/utils/abs-floor.js | 8 + .../moment/src/lib/utils/abs-round.js | 7 + .../moment/src/lib/utils/compare-arrays.js | 18 + .../moment/src/lib/utils/defaults.js | 10 + .../moment/src/lib/utils/deprecate.js | 69 + .../moment/src/lib/utils/extend.js | 19 + .../moment/src/lib/utils/has-own-prop.js | 3 + .../moment/src/lib/utils/hooks.js | 13 + .../moment/src/lib/utils/index-of.js | 18 + .../moment/src/lib/utils/is-array.js | 6 + .../moment/src/lib/utils/is-calendar-spec.js | 25 + .../moment/src/lib/utils/is-date.js | 6 + .../moment/src/lib/utils/is-function.js | 6 + .../moment/src/lib/utils/is-leap-year.js | 3 + .../moment/src/lib/utils/is-moment-input.js | 75 + .../moment/src/lib/utils/is-number.js | 6 + .../moment/src/lib/utils/is-object-empty.js | 15 + .../moment/src/lib/utils/is-object.js | 8 + .../moment/src/lib/utils/is-string.js | 3 + .../moment/src/lib/utils/is-undefined.js | 3 + .../node_modules/moment/src/lib/utils/keys.js | 20 + .../node_modules/moment/src/lib/utils/map.js | 9 + .../node_modules/moment/src/lib/utils/mod.js | 3 + .../node_modules/moment/src/lib/utils/some.js | 20 + .../moment/src/lib/utils/to-int.js | 12 + .../moment/src/lib/utils/zero-fill.js | 10 + backend/node_modules/moment/src/locale/af.js | 71 + .../node_modules/moment/src/locale/ar-dz.js | 156 + .../node_modules/moment/src/locale/ar-kw.js | 55 + .../node_modules/moment/src/locale/ar-ly.js | 171 + .../node_modules/moment/src/locale/ar-ma.js | 56 + .../node_modules/moment/src/locale/ar-ps.js | 112 + .../node_modules/moment/src/locale/ar-sa.js | 105 + .../node_modules/moment/src/locale/ar-tn.js | 55 + backend/node_modules/moment/src/locale/ar.js | 189 + backend/node_modules/moment/src/locale/az.js | 102 + backend/node_modules/moment/src/locale/be.js | 142 + backend/node_modules/moment/src/locale/bg.js | 87 + backend/node_modules/moment/src/locale/bm.js | 52 + .../node_modules/moment/src/locale/bn-bd.js | 129 + backend/node_modules/moment/src/locale/bn.js | 119 + backend/node_modules/moment/src/locale/bo.js | 124 + backend/node_modules/moment/src/locale/br.js | 168 + backend/node_modules/moment/src/locale/bs.js | 160 + backend/node_modules/moment/src/locale/ca.js | 100 + backend/node_modules/moment/src/locale/cs.js | 181 + backend/node_modules/moment/src/locale/cv.js | 63 + backend/node_modules/moment/src/locale/cy.js | 98 + backend/node_modules/moment/src/locale/da.js | 53 + .../node_modules/moment/src/locale/de-at.js | 79 + .../node_modules/moment/src/locale/de-ch.js | 78 + backend/node_modules/moment/src/locale/de.js | 78 + backend/node_modules/moment/src/locale/dv.js | 90 + backend/node_modules/moment/src/locale/el.js | 106 + .../node_modules/moment/src/locale/en-au.js | 68 + .../node_modules/moment/src/locale/en-ca.js | 64 + .../node_modules/moment/src/locale/en-gb.js | 68 + .../node_modules/moment/src/locale/en-ie.js | 68 + .../node_modules/moment/src/locale/en-il.js | 64 + .../node_modules/moment/src/locale/en-in.js | 68 + .../node_modules/moment/src/locale/en-nz.js | 68 + .../node_modules/moment/src/locale/en-sg.js | 68 + backend/node_modules/moment/src/locale/eo.js | 68 + .../node_modules/moment/src/locale/es-do.js | 108 + .../node_modules/moment/src/locale/es-mx.js | 110 + .../node_modules/moment/src/locale/es-us.js | 110 + backend/node_modules/moment/src/locale/es.js | 110 + backend/node_modules/moment/src/locale/et.js | 78 + backend/node_modules/moment/src/locale/eu.js | 65 + backend/node_modules/moment/src/locale/fa.js | 113 + backend/node_modules/moment/src/locale/fi.js | 124 + backend/node_modules/moment/src/locale/fil.js | 58 + backend/node_modules/moment/src/locale/fo.js | 57 + .../node_modules/moment/src/locale/fr-ca.js | 70 + .../node_modules/moment/src/locale/fr-ch.js | 74 + backend/node_modules/moment/src/locale/fr.js | 108 + backend/node_modules/moment/src/locale/fy.js | 75 + backend/node_modules/moment/src/locale/ga.js | 95 + backend/node_modules/moment/src/locale/gd.js | 95 + backend/node_modules/moment/src/locale/gl.js | 75 + .../moment/src/locale/gom-deva.js | 126 + .../moment/src/locale/gom-latn.js | 124 + backend/node_modules/moment/src/locale/gu.js | 122 + backend/node_modules/moment/src/locale/he.js | 94 + backend/node_modules/moment/src/locale/hi.js | 168 + backend/node_modules/moment/src/locale/hr.js | 156 + backend/node_modules/moment/src/locale/hu.js | 118 + .../node_modules/moment/src/locale/hy-am.js | 94 + backend/node_modules/moment/src/locale/id.js | 76 + backend/node_modules/moment/src/locale/is.js | 140 + .../node_modules/moment/src/locale/it-ch.js | 64 + backend/node_modules/moment/src/locale/it.js | 106 + backend/node_modules/moment/src/locale/ja.js | 148 + backend/node_modules/moment/src/locale/jv.js | 76 + backend/node_modules/moment/src/locale/ka.js | 92 + backend/node_modules/moment/src/locale/kk.js | 82 + backend/node_modules/moment/src/locale/km.js | 103 + backend/node_modules/moment/src/locale/kn.js | 124 + backend/node_modules/moment/src/locale/ko.js | 75 + .../node_modules/moment/src/locale/ku-kmr.js | 121 + backend/node_modules/moment/src/locale/ku.js | 118 + backend/node_modules/moment/src/locale/ky.js | 84 + backend/node_modules/moment/src/locale/lb.js | 137 + backend/node_modules/moment/src/locale/lo.js | 66 + backend/node_modules/moment/src/locale/lt.js | 125 + backend/node_modules/moment/src/locale/lv.js | 94 + backend/node_modules/moment/src/locale/me.js | 117 + backend/node_modules/moment/src/locale/mi.js | 60 + backend/node_modules/moment/src/locale/mk.js | 85 + backend/node_modules/moment/src/locale/ml.js | 82 + backend/node_modules/moment/src/locale/mn.js | 100 + backend/node_modules/moment/src/locale/mr.js | 203 + .../node_modules/moment/src/locale/ms-my.js | 76 + backend/node_modules/moment/src/locale/ms.js | 75 + backend/node_modules/moment/src/locale/mt.js | 56 + backend/node_modules/moment/src/locale/my.js | 91 + backend/node_modules/moment/src/locale/nb.js | 60 + backend/node_modules/moment/src/locale/ne.js | 121 + .../node_modules/moment/src/locale/nl-be.js | 102 + backend/node_modules/moment/src/locale/nl.js | 104 + backend/node_modules/moment/src/locale/nn.js | 59 + .../node_modules/moment/src/locale/oc-lnc.js | 85 + .../node_modules/moment/src/locale/pa-in.js | 122 + backend/node_modules/moment/src/locale/pl.js | 140 + .../node_modules/moment/src/locale/pt-br.js | 58 + backend/node_modules/moment/src/locale/pt.js | 63 + backend/node_modules/moment/src/locale/ro.js | 76 + backend/node_modules/moment/src/locale/ru.js | 213 + backend/node_modules/moment/src/locale/sd.js | 81 + backend/node_modules/moment/src/locale/se.js | 57 + backend/node_modules/moment/src/locale/si.js | 69 + backend/node_modules/moment/src/locale/sk.js | 145 + backend/node_modules/moment/src/locale/sl.js | 171 + backend/node_modules/moment/src/locale/sq.js | 65 + .../node_modules/moment/src/locale/sr-cyrl.js | 127 + backend/node_modules/moment/src/locale/sr.js | 129 + backend/node_modules/moment/src/locale/ss.js | 84 + backend/node_modules/moment/src/locale/sv.js | 68 + backend/node_modules/moment/src/locale/sw.js | 55 + backend/node_modules/moment/src/locale/ta.js | 131 + backend/node_modules/moment/src/locale/te.js | 88 + backend/node_modules/moment/src/locale/tet.js | 68 + backend/node_modules/moment/src/locale/tg.js | 117 + backend/node_modules/moment/src/locale/th.js | 65 + backend/node_modules/moment/src/locale/tk.js | 91 + .../node_modules/moment/src/locale/tl-ph.js | 57 + backend/node_modules/moment/src/locale/tlh.js | 124 + backend/node_modules/moment/src/locale/tr.js | 106 + backend/node_modules/moment/src/locale/tzl.js | 89 + .../moment/src/locale/tzm-latn.js | 54 + backend/node_modules/moment/src/locale/tzm.js | 54 + .../node_modules/moment/src/locale/ug-cn.js | 111 + backend/node_modules/moment/src/locale/uk.js | 167 + backend/node_modules/moment/src/locale/ur.js | 82 + .../node_modules/moment/src/locale/uz-latn.js | 54 + backend/node_modules/moment/src/locale/uz.js | 51 + backend/node_modules/moment/src/locale/vi.js | 80 + .../moment/src/locale/x-pseudo.js | 73 + backend/node_modules/moment/src/locale/yo.js | 53 + .../node_modules/moment/src/locale/zh-cn.js | 120 + .../node_modules/moment/src/locale/zh-hk.js | 101 + .../node_modules/moment/src/locale/zh-mo.js | 100 + .../node_modules/moment/src/locale/zh-tw.js | 99 + backend/node_modules/moment/src/moment.js | 93 + .../moment/ts3.1-typings/moment.d.ts | 785 + backend/node_modules/nodemon/.prettierrc.json | 3 + backend/node_modules/nodemon/LICENSE | 21 + backend/node_modules/nodemon/README.md | 436 + backend/node_modules/nodemon/bin/nodemon.js | 16 + .../node_modules/nodemon/bin/windows-kill.exe | Bin 0 -> 80384 bytes .../node_modules/nodemon/doc/cli/authors.txt | 8 + .../node_modules/nodemon/doc/cli/config.txt | 44 + backend/node_modules/nodemon/doc/cli/help.txt | 29 + backend/node_modules/nodemon/doc/cli/logo.txt | 20 + .../node_modules/nodemon/doc/cli/options.txt | 36 + .../node_modules/nodemon/doc/cli/topics.txt | 8 + .../node_modules/nodemon/doc/cli/usage.txt | 3 + .../node_modules/nodemon/doc/cli/whoami.txt | 9 + backend/node_modules/nodemon/index.d.ts | 125 + backend/node_modules/nodemon/jsconfig.json | 7 + backend/node_modules/nodemon/lib/cli/index.js | 49 + backend/node_modules/nodemon/lib/cli/parse.js | 230 + .../nodemon/lib/config/command.js | 43 + .../nodemon/lib/config/defaults.js | 34 + .../node_modules/nodemon/lib/config/exec.js | 240 + .../node_modules/nodemon/lib/config/index.js | 93 + .../node_modules/nodemon/lib/config/load.js | 225 + .../node_modules/nodemon/lib/help/index.js | 27 + backend/node_modules/nodemon/lib/index.js | 1 + .../node_modules/nodemon/lib/monitor/index.js | 4 + .../node_modules/nodemon/lib/monitor/match.js | 287 + .../node_modules/nodemon/lib/monitor/run.js | 562 + .../nodemon/lib/monitor/signals.js | 34 + .../node_modules/nodemon/lib/monitor/watch.js | 244 + backend/node_modules/nodemon/lib/nodemon.js | 317 + backend/node_modules/nodemon/lib/rules/add.js | 89 + .../node_modules/nodemon/lib/rules/index.js | 53 + .../node_modules/nodemon/lib/rules/parse.js | 43 + backend/node_modules/nodemon/lib/spawn.js | 74 + backend/node_modules/nodemon/lib/utils/bus.js | 44 + .../node_modules/nodemon/lib/utils/clone.js | 40 + .../node_modules/nodemon/lib/utils/colour.js | 26 + .../node_modules/nodemon/lib/utils/index.js | 103 + backend/node_modules/nodemon/lib/utils/log.js | 82 + .../node_modules/nodemon/lib/utils/merge.js | 47 + backend/node_modules/nodemon/lib/version.js | 100 + .../node_modules/brace-expansion/LICENSE | 21 + .../node_modules/brace-expansion/README.md | 129 + .../node_modules/brace-expansion/index.js | 201 + .../node_modules/brace-expansion/package.json | 50 + .../nodemon/node_modules/debug/LICENSE | 20 + .../nodemon/node_modules/debug/README.md | 481 + .../nodemon/node_modules/debug/package.json | 64 + .../nodemon/node_modules/debug/src/browser.js | 272 + .../nodemon/node_modules/debug/src/common.js | 292 + .../nodemon/node_modules/debug/src/index.js | 10 + .../nodemon/node_modules/debug/src/node.js | 263 + .../nodemon/node_modules/minimatch/LICENSE | 15 + .../nodemon/node_modules/minimatch/README.md | 230 + .../node_modules/minimatch/minimatch.js | 947 + .../node_modules/minimatch/package.json | 33 + .../nodemon/node_modules/ms/index.js | 162 + .../nodemon/node_modules/ms/license.md | 21 + .../nodemon/node_modules/ms/package.json | 38 + .../nodemon/node_modules/ms/readme.md | 59 + backend/node_modules/nodemon/package.json | 75 + backend/node_modules/picomatch/CHANGELOG.md | 136 + backend/node_modules/picomatch/LICENSE | 21 + backend/node_modules/picomatch/README.md | 708 + backend/node_modules/picomatch/index.js | 3 + .../node_modules/picomatch/lib/constants.js | 179 + backend/node_modules/picomatch/lib/parse.js | 1091 + .../node_modules/picomatch/lib/picomatch.js | 342 + backend/node_modules/picomatch/lib/scan.js | 391 + backend/node_modules/picomatch/lib/utils.js | 64 + backend/node_modules/picomatch/package.json | 81 + backend/node_modules/pstree.remy/.travis.yml | 8 + backend/node_modules/pstree.remy/LICENSE | 7 + backend/node_modules/pstree.remy/README.md | 26 + backend/node_modules/pstree.remy/lib/index.js | 37 + backend/node_modules/pstree.remy/lib/tree.js | 37 + backend/node_modules/pstree.remy/lib/utils.js | 53 + backend/node_modules/pstree.remy/package.json | 33 + .../pstree.remy/tests/fixtures/index.js | 13 + .../pstree.remy/tests/fixtures/out1 | 10 + .../pstree.remy/tests/fixtures/out2 | 29 + .../pstree.remy/tests/index.test.js | 51 + backend/node_modules/readdirp/LICENSE | 21 + backend/node_modules/readdirp/README.md | 122 + backend/node_modules/readdirp/index.d.ts | 43 + backend/node_modules/readdirp/index.js | 287 + backend/node_modules/readdirp/package.json | 122 + backend/node_modules/sax/LICENSE.md | 55 + backend/node_modules/sax/README.md | 227 + backend/node_modules/sax/lib/sax.js | 1704 + backend/node_modules/sax/package.json | 31 + .../simple-update-notifier/LICENSE | 21 + .../simple-update-notifier/README.md | 82 + .../simple-update-notifier/build/index.d.ts | 13 + .../simple-update-notifier/build/index.js | 210 + .../simple-update-notifier/package.json | 100 + .../src/borderedText.ts | 12 + .../simple-update-notifier/src/cache.spec.ts | 17 + .../simple-update-notifier/src/cache.ts | 44 + .../src/getDistVersion.spec.ts | 35 + .../src/getDistVersion.ts | 29 + .../src/hasNewVersion.spec.ts | 82 + .../src/hasNewVersion.ts | 40 + .../simple-update-notifier/src/index.spec.ts | 27 + .../simple-update-notifier/src/index.ts | 34 + .../simple-update-notifier/src/isNpmOrYarn.ts | 12 + .../simple-update-notifier/src/types.ts | 8 + backend/node_modules/sm3/README.md | 35 + backend/node_modules/sm3/package.json | 33 + backend/node_modules/sm3/sm3-babel.js | 310 + backend/node_modules/sm3/sm3.js | 254 + backend/node_modules/sm3/test.js | 35 + .../node_modules/supports-color/browser.js | 5 + backend/node_modules/supports-color/index.js | 131 + backend/node_modules/supports-color/license | 9 + .../node_modules/supports-color/package.json | 53 + backend/node_modules/supports-color/readme.md | 66 + backend/node_modules/to-regex-range/LICENSE | 21 + backend/node_modules/to-regex-range/README.md | 305 + backend/node_modules/to-regex-range/index.js | 288 + .../node_modules/to-regex-range/package.json | 88 + backend/node_modules/touch/LICENSE | 15 + backend/node_modules/touch/README.md | 52 + backend/node_modules/touch/bin/nodetouch.js | 112 + backend/node_modules/touch/index.js | 224 + backend/node_modules/touch/package.json | 25 + .../undefsafe/.github/workflows/release.yml | 25 + backend/node_modules/undefsafe/.jscsrc | 13 + backend/node_modules/undefsafe/.jshintrc | 16 + backend/node_modules/undefsafe/.travis.yml | 18 + backend/node_modules/undefsafe/LICENSE | 22 + backend/node_modules/undefsafe/README.md | 63 + backend/node_modules/undefsafe/example.js | 14 + .../node_modules/undefsafe/lib/undefsafe.js | 125 + backend/node_modules/undefsafe/package.json | 34 + backend/node_modules/undici-types/LICENSE | 21 + backend/node_modules/undici-types/README.md | 6 + backend/node_modules/undici-types/agent.d.ts | 31 + backend/node_modules/undici-types/api.d.ts | 43 + .../undici-types/balanced-pool.d.ts | 29 + backend/node_modules/undici-types/cache.d.ts | 36 + backend/node_modules/undici-types/client.d.ts | 108 + .../node_modules/undici-types/connector.d.ts | 34 + .../undici-types/content-type.d.ts | 21 + .../node_modules/undici-types/cookies.d.ts | 28 + .../undici-types/diagnostics-channel.d.ts | 66 + .../node_modules/undici-types/dispatcher.d.ts | 256 + .../undici-types/env-http-proxy-agent.d.ts | 21 + backend/node_modules/undici-types/errors.d.ts | 149 + .../undici-types/eventsource.d.ts | 61 + backend/node_modules/undici-types/fetch.d.ts | 209 + backend/node_modules/undici-types/file.d.ts | 39 + .../node_modules/undici-types/filereader.d.ts | 54 + .../node_modules/undici-types/formdata.d.ts | 108 + .../undici-types/global-dispatcher.d.ts | 9 + .../undici-types/global-origin.d.ts | 7 + .../node_modules/undici-types/handlers.d.ts | 15 + backend/node_modules/undici-types/header.d.ts | 4 + backend/node_modules/undici-types/index.d.ts | 71 + .../undici-types/interceptors.d.ts | 17 + .../node_modules/undici-types/mock-agent.d.ts | 50 + .../undici-types/mock-client.d.ts | 25 + .../undici-types/mock-errors.d.ts | 12 + .../undici-types/mock-interceptor.d.ts | 93 + .../node_modules/undici-types/mock-pool.d.ts | 25 + .../node_modules/undici-types/package.json | 55 + backend/node_modules/undici-types/patch.d.ts | 33 + .../node_modules/undici-types/pool-stats.d.ts | 19 + backend/node_modules/undici-types/pool.d.ts | 39 + .../undici-types/proxy-agent.d.ts | 28 + .../node_modules/undici-types/readable.d.ts | 65 + .../undici-types/retry-agent.d.ts | 8 + .../undici-types/retry-handler.d.ts | 116 + backend/node_modules/undici-types/util.d.ts | 18 + backend/node_modules/undici-types/webidl.d.ts | 228 + .../node_modules/undici-types/websocket.d.ts | 150 + backend/node_modules/xml2js/LICENSE | 19 + backend/node_modules/xml2js/README.md | 507 + backend/node_modules/xml2js/lib/bom.js | 12 + backend/node_modules/xml2js/lib/builder.js | 127 + backend/node_modules/xml2js/lib/defaults.js | 72 + backend/node_modules/xml2js/lib/parser.js | 395 + backend/node_modules/xml2js/lib/processors.js | 34 + backend/node_modules/xml2js/lib/xml2js.bc.js | 28337 ++++++++++++++++ backend/node_modules/xml2js/lib/xml2js.js | 39 + backend/node_modules/xml2js/package.json | 93 + backend/node_modules/xmlbuilder/CHANGELOG.md | 470 + backend/node_modules/xmlbuilder/LICENSE | 21 + backend/node_modules/xmlbuilder/README.md | 86 + backend/node_modules/xmlbuilder/appveyor.yml | 20 + .../node_modules/xmlbuilder/lib/Derivation.js | 10 + .../xmlbuilder/lib/DocumentPosition.js | 12 + .../node_modules/xmlbuilder/lib/NodeType.js | 23 + .../xmlbuilder/lib/OperationType.js | 11 + .../node_modules/xmlbuilder/lib/Utility.js | 83 + .../xmlbuilder/lib/WriterState.js | 10 + .../xmlbuilder/lib/XMLAttribute.js | 108 + .../node_modules/xmlbuilder/lib/XMLCData.js | 36 + .../xmlbuilder/lib/XMLCharacterData.js | 79 + .../node_modules/xmlbuilder/lib/XMLComment.js | 36 + .../xmlbuilder/lib/XMLDOMConfiguration.js | 64 + .../xmlbuilder/lib/XMLDOMErrorHandler.js | 16 + .../xmlbuilder/lib/XMLDOMImplementation.js | 32 + .../xmlbuilder/lib/XMLDOMStringList.js | 28 + .../xmlbuilder/lib/XMLDTDAttList.js | 55 + .../xmlbuilder/lib/XMLDTDElement.js | 38 + .../xmlbuilder/lib/XMLDTDEntity.js | 97 + .../xmlbuilder/lib/XMLDTDNotation.js | 52 + .../xmlbuilder/lib/XMLDeclaration.js | 43 + .../node_modules/xmlbuilder/lib/XMLDocType.js | 186 + .../xmlbuilder/lib/XMLDocument.js | 242 + .../xmlbuilder/lib/XMLDocumentCB.js | 528 + .../xmlbuilder/lib/XMLDocumentFragment.js | 24 + .../node_modules/xmlbuilder/lib/XMLDummy.js | 31 + .../node_modules/xmlbuilder/lib/XMLElement.js | 298 + .../xmlbuilder/lib/XMLNamedNodeMap.js | 58 + .../node_modules/xmlbuilder/lib/XMLNode.js | 785 + .../xmlbuilder/lib/XMLNodeFilter.js | 48 + .../xmlbuilder/lib/XMLNodeList.js | 28 + .../lib/XMLProcessingInstruction.js | 49 + backend/node_modules/xmlbuilder/lib/XMLRaw.js | 35 + .../xmlbuilder/lib/XMLStreamWriter.js | 176 + .../xmlbuilder/lib/XMLStringWriter.js | 35 + .../xmlbuilder/lib/XMLStringifier.js | 240 + .../node_modules/xmlbuilder/lib/XMLText.js | 69 + .../xmlbuilder/lib/XMLTypeInfo.js | 21 + .../xmlbuilder/lib/XMLUserDataHandler.js | 16 + .../xmlbuilder/lib/XMLWriterBase.js | 428 + backend/node_modules/xmlbuilder/lib/index.js | 65 + backend/node_modules/xmlbuilder/package.json | 39 + .../xmlbuilder/typings/index.d.ts | 153 + backend/package-lock.json | 341 + backend/package.json | 6 +- backend/server.js | 104 + frontend/app.html | 21 +- frontend/app.js | 39 +- frontend/share.html | 16 +- 3410 files changed, 494007 insertions(+), 11 deletions(-) create mode 120000 backend/node_modules/.bin/nodemon create mode 120000 backend/node_modules/.bin/nodetouch create mode 100644 backend/node_modules/@alicloud/cms20190101/LICENSE create mode 100644 backend/node_modules/@alicloud/cms20190101/README.md create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/client.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/client.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/client.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/AlertEvent.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/AlertEvent.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/AlertEvent.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/AlertStrategyRelation.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/AlertStrategyRelation.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/AlertStrategyRelation.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportShrinkRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportShrinkRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportShrinkRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CursorRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CursorRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CursorRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CursorResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CursorResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CursorResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CursorResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CursorResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CursorResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CursorShrinkRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CursorShrinkRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/CursorShrinkRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/Dimension.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/Dimension.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/Dimension.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EscalationRule.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EscalationRule.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/EscalationRule.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/Incident.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/Incident.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/Incident.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/Matcher.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/Matcher.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/Matcher.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/MetricStat.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/MetricStat.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/MetricStat.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/MigrationJob.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/MigrationJob.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/MigrationJob.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/NotificationStrategy.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/NotificationStrategy.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/NotificationStrategy.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/NotificationTemplate.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/NotificationTemplate.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/NotificationTemplate.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PushingTarget.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PushingTarget.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PushingTarget.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutContactRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutContactRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutContactRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutContactResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutContactResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutContactResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutContactResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutContactResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutContactResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleShrinkRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleShrinkRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleShrinkRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/Subscription.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/Subscription.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/Subscription.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentRequest.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentRequest.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentRequest.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentResponse.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentResponse.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentResponse.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentResponseBody.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentResponseBody.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentResponseBody.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/model.d.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/model.js create mode 100644 backend/node_modules/@alicloud/cms20190101/dist/models/model.js.map create mode 100644 backend/node_modules/@alicloud/cms20190101/package.json create mode 100644 backend/node_modules/@alicloud/cms20190101/src/client.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/AddTagsRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/AddTagsResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/AddTagsResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/AlertEvent.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/AlertStrategyRelation.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ApplyMetricRuleTemplateRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ApplyMetricRuleTemplateResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ApplyMetricRuleTemplateResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/BatchCreateInstantSiteMonitorRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/BatchCreateInstantSiteMonitorResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/BatchCreateInstantSiteMonitorResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/BatchExportRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/BatchExportResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/BatchExportResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/BatchExportShrinkRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateDynamicTagGroupRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateDynamicTagGroupResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateDynamicTagGroupResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateGroupMetricRulesRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateGroupMetricRulesResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateGroupMetricRulesResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateGroupMonitoringAgentProcessRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateGroupMonitoringAgentProcessResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateGroupMonitoringAgentProcessResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateHostAvailabilityRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateHostAvailabilityResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateHostAvailabilityResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorNamespaceRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorNamespaceResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorNamespaceResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorSlsgroupRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorSlsgroupResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorSlsgroupResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorTaskRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorTaskResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorTaskResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateInstantSiteMonitorRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateInstantSiteMonitorResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateInstantSiteMonitorResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleBlackListRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleBlackListResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleBlackListResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleResourcesRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleResourcesResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleResourcesResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleTemplateRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleTemplateResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleTemplateResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorAgentProcessRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorAgentProcessResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorAgentProcessResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupByResourceGroupIdRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupByResourceGroupIdResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupByResourceGroupIdResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupInstancesRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupInstancesResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupInstancesResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupNotifyPolicyRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupNotifyPolicyResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupNotifyPolicyResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitoringAgentProcessRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitoringAgentProcessResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitoringAgentProcessResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateSiteMonitorRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateSiteMonitorResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CreateSiteMonitorResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CursorRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CursorResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CursorResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/CursorShrinkRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteContactGroupRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteContactGroupResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteContactGroupResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteContactRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteContactResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteContactResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteCustomMetricRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteCustomMetricResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteCustomMetricResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteDynamicTagGroupRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteDynamicTagGroupResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteDynamicTagGroupResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteEventRuleTargetsRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteEventRuleTargetsResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteEventRuleTargetsResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteEventRulesRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteEventRulesResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteEventRulesResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteExporterOutputRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteExporterOutputResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteExporterOutputResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteExporterRuleRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteExporterRuleResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteExporterRuleResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteGroupMonitoringAgentProcessRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteGroupMonitoringAgentProcessResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteGroupMonitoringAgentProcessResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteHostAvailabilityRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteHostAvailabilityResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteHostAvailabilityResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorNamespaceRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorNamespaceResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorNamespaceResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorSlsgroupRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorSlsgroupResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorSlsgroupResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorTaskRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorTaskResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorTaskResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteLogMonitorRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteLogMonitorResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteLogMonitorResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleBlackListRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleBlackListResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleBlackListResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleResourcesRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleResourcesResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleResourcesResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleTargetsRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleTargetsResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleTargetsResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleTemplateRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleTemplateResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleTemplateResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRulesRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRulesResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRulesResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupDynamicRuleRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupDynamicRuleResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupDynamicRuleResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupInstancesRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupInstancesResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupInstancesResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupNotifyPolicyRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupNotifyPolicyResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupNotifyPolicyResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitoringAgentProcessRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitoringAgentProcessResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitoringAgentProcessResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteSiteMonitorsRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteSiteMonitorsResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DeleteSiteMonitorsResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeActiveMetricRuleListRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeActiveMetricRuleListResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeActiveMetricRuleListResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertHistoryListRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertHistoryListResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertHistoryListResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogCountRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogCountResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogCountResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogHistogramRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogHistogramResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogHistogramResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogListRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogListResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogListResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertingMetricRuleResourcesRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertingMetricRuleResourcesResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertingMetricRuleResourcesResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactGroupListRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactGroupListResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactGroupListResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactListByContactGroupRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactListByContactGroupResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactListByContactGroupResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactListRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactListResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactListResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventAttributeRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventAttributeResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventAttributeResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventCountRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventCountResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventCountResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventHistogramRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventHistogramResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventHistogramResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomMetricListRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomMetricListResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomMetricListResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeDynamicTagRuleListRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeDynamicTagRuleListResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeDynamicTagRuleListResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleAttributeRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleAttributeResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleAttributeResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleListRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleListResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleListResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleTargetListRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleTargetListResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleTargetListResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeExporterOutputListRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeExporterOutputListResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeExporterOutputListResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeExporterRuleListRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeExporterRuleListResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeExporterRuleListResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeGroupMonitoringAgentProcessRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeGroupMonitoringAgentProcessResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeGroupMonitoringAgentProcessResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeHostAvailabilityListRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeHostAvailabilityListResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeHostAvailabilityListResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorDataListRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorDataListResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorDataListResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorNamespaceListRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorNamespaceListResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorNamespaceListResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorSlsgroupRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorSlsgroupResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorSlsgroupResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorTaskListRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorTaskListResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorTaskListResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeLogMonitorAttributeRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeLogMonitorAttributeResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeLogMonitorAttributeResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeLogMonitorListRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeLogMonitorListResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeLogMonitorListResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricDataRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricDataResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricDataResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricLastRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricLastResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricLastResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricListRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricListResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricListResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricMetaListRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricMetaListResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricMetaListResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleBlackListRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleBlackListResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleBlackListResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleCountRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleCountResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleCountResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleListRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleListResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleListResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTargetsRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTargetsResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTargetsResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTemplateAttributeRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTemplateAttributeResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTemplateAttributeResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTemplateListRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTemplateListResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTemplateListResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricTopRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricTopResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricTopResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupCategoriesRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupCategoriesResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupCategoriesResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupDynamicRulesRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupDynamicRulesResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupDynamicRulesResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupInstanceAttributeRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupInstanceAttributeResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupInstanceAttributeResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupInstancesRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupInstancesResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupInstancesResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupNotifyPolicyListRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupNotifyPolicyListResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupNotifyPolicyListResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupsRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupsResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupsResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorResourceQuotaAttributeRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorResourceQuotaAttributeResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorResourceQuotaAttributeResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentAccessKeyRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentAccessKeyResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentAccessKeyResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentConfigRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentConfigResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentConfigResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentHostsRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentHostsResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentHostsResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentProcessesRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentProcessesResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentProcessesResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentStatusesRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentStatusesResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentStatusesResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringConfigRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringConfigResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringConfigResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeProductResourceTagKeyListRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeProductResourceTagKeyListResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeProductResourceTagKeyListResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeProductsOfActiveMetricRuleRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeProductsOfActiveMetricRuleResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeProductsOfActiveMetricRuleResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeProjectMetaRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeProjectMetaResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeProjectMetaResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorAttributeRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorAttributeResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorAttributeResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorDataRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorDataResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorDataResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorIspcityListRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorIspcityListResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorIspcityListResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorListRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorListResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorListResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorLogRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorLogResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorLogResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorQuotaRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorQuotaResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorQuotaResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorStatisticsRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorStatisticsResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorStatisticsResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSyntheticProbeListRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSyntheticProbeListResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSyntheticProbeListResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventAttributeRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventAttributeResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventAttributeResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventCountRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventCountResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventCountResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventHistogramRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventHistogramResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventHistogramResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventMetaListRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventMetaListResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventMetaListResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeTagKeyListRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeTagKeyListResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeTagKeyListResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeTagValueListRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeTagValueListResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeTagValueListResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeUnhealthyHostAvailabilityRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeUnhealthyHostAvailabilityResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DescribeUnhealthyHostAvailabilityResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/Dimension.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DisableActiveMetricRuleRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DisableActiveMetricRuleResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DisableActiveMetricRuleResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DisableEventRulesRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DisableEventRulesResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DisableEventRulesResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DisableHostAvailabilityRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DisableHostAvailabilityResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DisableHostAvailabilityResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DisableMetricRulesRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DisableMetricRulesResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DisableMetricRulesResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DisableSiteMonitorsRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DisableSiteMonitorsResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/DisableSiteMonitorsResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/EnableActiveMetricRuleRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/EnableActiveMetricRuleResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/EnableActiveMetricRuleResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/EnableEventRulesRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/EnableEventRulesResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/EnableEventRulesResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/EnableHostAvailabilityRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/EnableHostAvailabilityResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/EnableHostAvailabilityResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/EnableMetricRuleBlackListRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/EnableMetricRuleBlackListResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/EnableMetricRuleBlackListResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/EnableMetricRulesRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/EnableMetricRulesResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/EnableMetricRulesResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/EnableSiteMonitorsRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/EnableSiteMonitorsResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/EnableSiteMonitorsResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/EscalationRule.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/Incident.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/InstallMonitoringAgentRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/InstallMonitoringAgentResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/InstallMonitoringAgentResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/Matcher.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/MetricStat.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/MigrationJob.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ModifyGroupMonitoringAgentProcessRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ModifyGroupMonitoringAgentProcessResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ModifyGroupMonitoringAgentProcessResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ModifyHostAvailabilityRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ModifyHostAvailabilityResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ModifyHostAvailabilityResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ModifyHostInfoRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ModifyHostInfoResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ModifyHostInfoResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorNamespaceRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorNamespaceResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorNamespaceResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorSlsgroupRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorSlsgroupResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorSlsgroupResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorTaskRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorTaskResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorTaskResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ModifyMetricRuleBlackListRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ModifyMetricRuleBlackListResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ModifyMetricRuleBlackListResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ModifyMetricRuleTemplateRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ModifyMetricRuleTemplateResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ModifyMetricRuleTemplateResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ModifyMonitorGroupInstancesRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ModifyMonitorGroupInstancesResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ModifyMonitorGroupInstancesResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ModifyMonitorGroupRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ModifyMonitorGroupResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ModifyMonitorGroupResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ModifySiteMonitorRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ModifySiteMonitorResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/ModifySiteMonitorResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/NotificationStrategy.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/NotificationTemplate.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PushingTarget.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutContactGroupRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutContactGroupResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutContactGroupResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutContactRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutContactResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutContactResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutCustomEventRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutCustomEventResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutCustomEventResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutCustomEventRuleRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutCustomEventRuleResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutCustomEventRuleResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutCustomMetricRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutCustomMetricResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutCustomMetricResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutCustomMetricRuleRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutCustomMetricRuleResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutCustomMetricRuleResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutEventRuleRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutEventRuleResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutEventRuleResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutEventRuleTargetsRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutEventRuleTargetsResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutEventRuleTargetsResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutExporterOutputRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutExporterOutputResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutExporterOutputResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutExporterRuleRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutExporterRuleResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutExporterRuleResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutGroupMetricRuleRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutGroupMetricRuleResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutGroupMetricRuleResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutHybridMonitorMetricDataRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutHybridMonitorMetricDataResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutHybridMonitorMetricDataResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutLogMonitorRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutLogMonitorResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutLogMonitorResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutMetricRuleTargetsRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutMetricRuleTargetsResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutMetricRuleTargetsResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutMonitorGroupDynamicRuleRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutMonitorGroupDynamicRuleResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutMonitorGroupDynamicRuleResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutMonitoringConfigRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutMonitoringConfigResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutMonitoringConfigResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutResourceMetricRuleRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutResourceMetricRuleResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutResourceMetricRuleResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutResourceMetricRuleShrinkRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutResourceMetricRulesRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutResourceMetricRulesResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/PutResourceMetricRulesResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/RemoveTagsRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/RemoveTagsResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/RemoveTagsResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/SendDryRunSystemEventRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/SendDryRunSystemEventResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/SendDryRunSystemEventResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/Subscription.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/UninstallMonitoringAgentRequest.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/UninstallMonitoringAgentResponse.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/UninstallMonitoringAgentResponseBody.ts create mode 100644 backend/node_modules/@alicloud/cms20190101/src/models/model.ts create mode 100644 backend/node_modules/@alicloud/credentials/LICENSE create mode 100644 backend/node_modules/@alicloud/credentials/README.md create mode 100644 backend/node_modules/@alicloud/credentials/dist/package.json create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/access_key_credential.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/access_key_credential.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/access_key_credential.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/bearer_token_credential.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/bearer_token_credential.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/bearer_token_credential.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/client.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/client.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/client.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/config.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/config.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/config.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/credential_model.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/credential_model.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/credential_model.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/credentials.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/credentials.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/credentials.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/credentials_provider.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/credentials_provider.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/credentials_provider.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/default_credential.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/default_credential.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/default_credential.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/ecs_ram_role_credential.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/ecs_ram_role_credential.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/ecs_ram_role_credential.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/icredential.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/icredential.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/icredential.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/oidc_role_arn_credential.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/oidc_role_arn_credential.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/oidc_role_arn_credential.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/provider/credentials_uri_provider.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/provider/credentials_uri_provider.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/provider/credentials_uri_provider.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/provider/environment_variable_credentials_provider.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/provider/environment_variable_credentials_provider.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/provider/environment_variable_credentials_provider.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/provider/instance_ram_role_credentials_provider.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/provider/instance_ram_role_credentials_provider.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/provider/instance_ram_role_credentials_provider.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/provider/oidc_role_arn_credentials_provider.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/provider/oidc_role_arn_credentials_provider.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/provider/oidc_role_arn_credentials_provider.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/provider/profile_credentials_provider.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/provider/profile_credentials_provider.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/provider/profile_credentials_provider.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/provider/provider_chain.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/provider/provider_chain.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/provider/provider_chain.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/cli_profile.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/cli_profile.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/cli_profile.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/default.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/default.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/default.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/ecs_ram_role.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/ecs_ram_role.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/ecs_ram_role.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/env.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/env.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/env.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/http.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/http.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/http.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/oidc_role_arn.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/oidc_role_arn.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/oidc_role_arn.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/profile.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/profile.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/profile.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/ram_role_arn.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/ram_role_arn.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/ram_role_arn.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/session.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/session.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/session.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/static_ak.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/static_ak.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/static_ak.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/static_sts.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/static_sts.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/static_sts.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/time.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/time.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/time.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/uri.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/uri.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/providers/uri.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/ram_role_arn_credential.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/ram_role_arn_credential.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/ram_role_arn_credential.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/rsa_key_pair_credential.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/rsa_key_pair_credential.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/rsa_key_pair_credential.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/session_credential.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/session_credential.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/session_credential.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/sts_token_credential.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/sts_token_credential.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/sts_token_credential.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/uri_credential.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/uri_credential.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/uri_credential.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/util/helper.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/util/helper.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/util/helper.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/util/http.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/util/http.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/util/http.js.map create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/util/utils.d.ts create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/util/utils.js create mode 100644 backend/node_modules/@alicloud/credentials/dist/src/util/utils.js.map create mode 100644 backend/node_modules/@alicloud/credentials/package.json create mode 100644 backend/node_modules/@alicloud/credentials/src/access_key_credential.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/bearer_token_credential.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/client.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/config.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/credential_model.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/credentials.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/credentials_provider.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/default_credential.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/ecs_ram_role_credential.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/icredential.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/oidc_role_arn_credential.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/provider/credentials_uri_provider.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/provider/environment_variable_credentials_provider.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/provider/instance_ram_role_credentials_provider.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/provider/oidc_role_arn_credentials_provider.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/provider/profile_credentials_provider.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/provider/provider_chain.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/providers/cli_profile.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/providers/default.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/providers/ecs_ram_role.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/providers/env.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/providers/http.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/providers/oidc_role_arn.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/providers/profile.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/providers/ram_role_arn.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/providers/session.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/providers/static_ak.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/providers/static_sts.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/providers/time.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/providers/uri.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/ram_role_arn_credential.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/rsa_key_pair_credential.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/session_credential.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/sts_token_credential.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/uri_credential.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/util/helper.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/util/http.ts create mode 100644 backend/node_modules/@alicloud/credentials/src/util/utils.ts create mode 100644 backend/node_modules/@alicloud/darabonba-array/dist/client.d.ts create mode 100644 backend/node_modules/@alicloud/darabonba-array/dist/client.js create mode 100644 backend/node_modules/@alicloud/darabonba-array/dist/client.js.map create mode 100644 backend/node_modules/@alicloud/darabonba-array/package.json create mode 100644 backend/node_modules/@alicloud/darabonba-array/src/client.ts create mode 100644 backend/node_modules/@alicloud/darabonba-encode-util/dist/client.d.ts create mode 100644 backend/node_modules/@alicloud/darabonba-encode-util/dist/client.js create mode 100644 backend/node_modules/@alicloud/darabonba-encode-util/dist/client.js.map create mode 100644 backend/node_modules/@alicloud/darabonba-encode-util/package.json create mode 100644 backend/node_modules/@alicloud/darabonba-encode-util/src/client.ts create mode 100644 backend/node_modules/@alicloud/darabonba-map/dist/client.d.ts create mode 100644 backend/node_modules/@alicloud/darabonba-map/dist/client.js create mode 100644 backend/node_modules/@alicloud/darabonba-map/dist/client.js.map create mode 100644 backend/node_modules/@alicloud/darabonba-map/package.json create mode 100644 backend/node_modules/@alicloud/darabonba-map/src/client.ts create mode 100644 backend/node_modules/@alicloud/darabonba-signature-util/dist/client.d.ts create mode 100644 backend/node_modules/@alicloud/darabonba-signature-util/dist/client.js create mode 100644 backend/node_modules/@alicloud/darabonba-signature-util/dist/client.js.map create mode 100644 backend/node_modules/@alicloud/darabonba-signature-util/node_modules/@alicloud/darabonba-encode-util/dist/client.d.ts create mode 100644 backend/node_modules/@alicloud/darabonba-signature-util/node_modules/@alicloud/darabonba-encode-util/dist/client.js create mode 100644 backend/node_modules/@alicloud/darabonba-signature-util/node_modules/@alicloud/darabonba-encode-util/dist/client.js.map create mode 100644 backend/node_modules/@alicloud/darabonba-signature-util/node_modules/@alicloud/darabonba-encode-util/package.json create mode 100644 backend/node_modules/@alicloud/darabonba-signature-util/node_modules/@alicloud/darabonba-encode-util/src/client.ts create mode 100644 backend/node_modules/@alicloud/darabonba-signature-util/package.json create mode 100644 backend/node_modules/@alicloud/darabonba-signature-util/src/client.ts create mode 100644 backend/node_modules/@alicloud/darabonba-string/README.md create mode 100644 backend/node_modules/@alicloud/darabonba-string/dist/client.d.ts create mode 100644 backend/node_modules/@alicloud/darabonba-string/dist/client.js create mode 100644 backend/node_modules/@alicloud/darabonba-string/dist/client.js.map create mode 100644 backend/node_modules/@alicloud/darabonba-string/package.json create mode 100644 backend/node_modules/@alicloud/darabonba-string/src/client.ts create mode 100644 backend/node_modules/@alicloud/endpoint-util/ChangeLog.txt create mode 100644 backend/node_modules/@alicloud/endpoint-util/README.md create mode 100644 backend/node_modules/@alicloud/endpoint-util/dist/client.d.ts create mode 100644 backend/node_modules/@alicloud/endpoint-util/dist/client.js create mode 100644 backend/node_modules/@alicloud/endpoint-util/dist/client.js.map create mode 100644 backend/node_modules/@alicloud/endpoint-util/package.json create mode 100644 backend/node_modules/@alicloud/endpoint-util/src/client.ts create mode 100644 backend/node_modules/@alicloud/gateway-pop/dist/client.d.ts create mode 100644 backend/node_modules/@alicloud/gateway-pop/dist/client.js create mode 100644 backend/node_modules/@alicloud/gateway-pop/dist/client.js.map create mode 100644 backend/node_modules/@alicloud/gateway-pop/package.json create mode 100644 backend/node_modules/@alicloud/gateway-pop/src/client.ts create mode 100644 backend/node_modules/@alicloud/gateway-spi/dist/client.d.ts create mode 100644 backend/node_modules/@alicloud/gateway-spi/dist/client.js create mode 100644 backend/node_modules/@alicloud/gateway-spi/dist/client.js.map create mode 100644 backend/node_modules/@alicloud/gateway-spi/package.json create mode 100644 backend/node_modules/@alicloud/gateway-spi/src/client.ts create mode 100644 backend/node_modules/@alicloud/openapi-client/README.md create mode 100644 backend/node_modules/@alicloud/openapi-client/dist/client.d.ts create mode 100644 backend/node_modules/@alicloud/openapi-client/dist/client.js create mode 100644 backend/node_modules/@alicloud/openapi-client/dist/client.js.map create mode 100644 backend/node_modules/@alicloud/openapi-client/package.json create mode 100644 backend/node_modules/@alicloud/openapi-client/src/client.ts create mode 100644 backend/node_modules/@alicloud/openapi-core/README.md create mode 100644 backend/node_modules/@alicloud/openapi-core/dist/client.d.ts create mode 100644 backend/node_modules/@alicloud/openapi-core/dist/client.js create mode 100644 backend/node_modules/@alicloud/openapi-core/dist/client.js.map create mode 100644 backend/node_modules/@alicloud/openapi-core/dist/exceptions/AlibabaCloudError.d.ts create mode 100644 backend/node_modules/@alicloud/openapi-core/dist/exceptions/AlibabaCloudError.js create mode 100644 backend/node_modules/@alicloud/openapi-core/dist/exceptions/AlibabaCloudError.js.map create mode 100644 backend/node_modules/@alicloud/openapi-core/dist/exceptions/ClientError.d.ts create mode 100644 backend/node_modules/@alicloud/openapi-core/dist/exceptions/ClientError.js create mode 100644 backend/node_modules/@alicloud/openapi-core/dist/exceptions/ClientError.js.map create mode 100644 backend/node_modules/@alicloud/openapi-core/dist/exceptions/ServerError.d.ts create mode 100644 backend/node_modules/@alicloud/openapi-core/dist/exceptions/ServerError.js create mode 100644 backend/node_modules/@alicloud/openapi-core/dist/exceptions/ServerError.js.map create mode 100644 backend/node_modules/@alicloud/openapi-core/dist/exceptions/ThrottlingError.d.ts create mode 100644 backend/node_modules/@alicloud/openapi-core/dist/exceptions/ThrottlingError.js create mode 100644 backend/node_modules/@alicloud/openapi-core/dist/exceptions/ThrottlingError.js.map create mode 100644 backend/node_modules/@alicloud/openapi-core/dist/exceptions/error.d.ts create mode 100644 backend/node_modules/@alicloud/openapi-core/dist/exceptions/error.js create mode 100644 backend/node_modules/@alicloud/openapi-core/dist/exceptions/error.js.map create mode 100644 backend/node_modules/@alicloud/openapi-core/dist/models/Sseresponse.d.ts create mode 100644 backend/node_modules/@alicloud/openapi-core/dist/models/Sseresponse.js create mode 100644 backend/node_modules/@alicloud/openapi-core/dist/models/Sseresponse.js.map create mode 100644 backend/node_modules/@alicloud/openapi-core/dist/models/model.d.ts create mode 100644 backend/node_modules/@alicloud/openapi-core/dist/models/model.js create mode 100644 backend/node_modules/@alicloud/openapi-core/dist/models/model.js.map create mode 100644 backend/node_modules/@alicloud/openapi-core/dist/utils.d.ts create mode 100644 backend/node_modules/@alicloud/openapi-core/dist/utils.js create mode 100644 backend/node_modules/@alicloud/openapi-core/dist/utils.js.map create mode 100644 backend/node_modules/@alicloud/openapi-core/package.json create mode 100644 backend/node_modules/@alicloud/openapi-core/scripts/ts_version.js create mode 100644 backend/node_modules/@alicloud/openapi-core/src/client.ts create mode 100644 backend/node_modules/@alicloud/openapi-core/src/exceptions/AlibabaCloudError.ts create mode 100644 backend/node_modules/@alicloud/openapi-core/src/exceptions/ClientError.ts create mode 100644 backend/node_modules/@alicloud/openapi-core/src/exceptions/ServerError.ts create mode 100644 backend/node_modules/@alicloud/openapi-core/src/exceptions/ThrottlingError.ts create mode 100644 backend/node_modules/@alicloud/openapi-core/src/exceptions/error.ts create mode 100644 backend/node_modules/@alicloud/openapi-core/src/models/Sseresponse.ts create mode 100644 backend/node_modules/@alicloud/openapi-core/src/models/model.ts create mode 100644 backend/node_modules/@alicloud/openapi-core/src/utils.ts create mode 100644 backend/node_modules/@alicloud/openapi-util/dist/client.d.ts create mode 100644 backend/node_modules/@alicloud/openapi-util/dist/client.js create mode 100644 backend/node_modules/@alicloud/openapi-util/dist/client.js.map create mode 100644 backend/node_modules/@alicloud/openapi-util/package.json create mode 100644 backend/node_modules/@alicloud/openapi-util/src/client.ts create mode 100644 backend/node_modules/@alicloud/tea-typescript/README.md create mode 100644 backend/node_modules/@alicloud/tea-typescript/dist/tea.d.ts create mode 100644 backend/node_modules/@alicloud/tea-typescript/dist/tea.js create mode 100644 backend/node_modules/@alicloud/tea-typescript/dist/tea.js.map create mode 100644 backend/node_modules/@alicloud/tea-typescript/package.json create mode 100644 backend/node_modules/@alicloud/tea-typescript/src/tea.ts create mode 100644 backend/node_modules/@alicloud/tea-util/ChangeLog.txt create mode 100644 backend/node_modules/@alicloud/tea-util/README.md create mode 100644 backend/node_modules/@alicloud/tea-util/dist/client.d.ts create mode 100644 backend/node_modules/@alicloud/tea-util/dist/client.js create mode 100644 backend/node_modules/@alicloud/tea-util/dist/client.js.map create mode 100644 backend/node_modules/@alicloud/tea-util/package.json create mode 100644 backend/node_modules/@alicloud/tea-util/src/client.ts create mode 100644 backend/node_modules/@alicloud/tea-xml/ChangeLog.txt create mode 100644 backend/node_modules/@alicloud/tea-xml/README.md create mode 100644 backend/node_modules/@alicloud/tea-xml/dist/client.d.ts create mode 100644 backend/node_modules/@alicloud/tea-xml/dist/client.js create mode 100644 backend/node_modules/@alicloud/tea-xml/dist/client.js.map create mode 100644 backend/node_modules/@alicloud/tea-xml/package.json create mode 100644 backend/node_modules/@alicloud/tea-xml/src/client.ts create mode 100644 backend/node_modules/@darabonba/typescript/README.md create mode 100644 backend/node_modules/@darabonba/typescript/dist/core.d.ts create mode 100644 backend/node_modules/@darabonba/typescript/dist/core.js create mode 100644 backend/node_modules/@darabonba/typescript/dist/core.js.map create mode 100644 backend/node_modules/@darabonba/typescript/dist/date.d.ts create mode 100644 backend/node_modules/@darabonba/typescript/dist/date.js create mode 100644 backend/node_modules/@darabonba/typescript/dist/date.js.map create mode 100644 backend/node_modules/@darabonba/typescript/dist/error.d.ts create mode 100644 backend/node_modules/@darabonba/typescript/dist/error.js create mode 100644 backend/node_modules/@darabonba/typescript/dist/error.js.map create mode 100644 backend/node_modules/@darabonba/typescript/dist/file.d.ts create mode 100644 backend/node_modules/@darabonba/typescript/dist/file.js create mode 100644 backend/node_modules/@darabonba/typescript/dist/file.js.map create mode 100644 backend/node_modules/@darabonba/typescript/dist/form.d.ts create mode 100644 backend/node_modules/@darabonba/typescript/dist/form.js create mode 100644 backend/node_modules/@darabonba/typescript/dist/form.js.map create mode 100644 backend/node_modules/@darabonba/typescript/dist/func.d.ts create mode 100644 backend/node_modules/@darabonba/typescript/dist/func.js create mode 100644 backend/node_modules/@darabonba/typescript/dist/func.js.map create mode 100644 backend/node_modules/@darabonba/typescript/dist/index.d.ts create mode 100644 backend/node_modules/@darabonba/typescript/dist/index.js create mode 100644 backend/node_modules/@darabonba/typescript/dist/index.js.map create mode 100644 backend/node_modules/@darabonba/typescript/dist/retry.d.ts create mode 100644 backend/node_modules/@darabonba/typescript/dist/retry.js create mode 100644 backend/node_modules/@darabonba/typescript/dist/retry.js.map create mode 100644 backend/node_modules/@darabonba/typescript/dist/stream.d.ts create mode 100644 backend/node_modules/@darabonba/typescript/dist/stream.js create mode 100644 backend/node_modules/@darabonba/typescript/dist/stream.js.map create mode 100644 backend/node_modules/@darabonba/typescript/dist/url.d.ts create mode 100644 backend/node_modules/@darabonba/typescript/dist/url.js create mode 100644 backend/node_modules/@darabonba/typescript/dist/url.js.map create mode 100644 backend/node_modules/@darabonba/typescript/dist/xml.d.ts create mode 100644 backend/node_modules/@darabonba/typescript/dist/xml.js create mode 100644 backend/node_modules/@darabonba/typescript/dist/xml.js.map create mode 100644 backend/node_modules/@darabonba/typescript/package.json create mode 100644 backend/node_modules/@darabonba/typescript/src/core.ts create mode 100644 backend/node_modules/@darabonba/typescript/src/date.ts create mode 100644 backend/node_modules/@darabonba/typescript/src/error.ts create mode 100644 backend/node_modules/@darabonba/typescript/src/file.ts create mode 100644 backend/node_modules/@darabonba/typescript/src/form.ts create mode 100644 backend/node_modules/@darabonba/typescript/src/func.ts create mode 100644 backend/node_modules/@darabonba/typescript/src/index.ts create mode 100644 backend/node_modules/@darabonba/typescript/src/retry.ts create mode 100644 backend/node_modules/@darabonba/typescript/src/stream.ts create mode 100644 backend/node_modules/@darabonba/typescript/src/url.ts create mode 100644 backend/node_modules/@darabonba/typescript/src/xml.ts create mode 100755 backend/node_modules/@types/node/LICENSE create mode 100755 backend/node_modules/@types/node/README.md create mode 100755 backend/node_modules/@types/node/assert.d.ts create mode 100755 backend/node_modules/@types/node/async_hooks.d.ts create mode 100755 backend/node_modules/@types/node/buffer.d.ts create mode 100755 backend/node_modules/@types/node/child_process.d.ts create mode 100755 backend/node_modules/@types/node/cluster.d.ts create mode 100755 backend/node_modules/@types/node/console.d.ts create mode 100755 backend/node_modules/@types/node/constants.d.ts create mode 100755 backend/node_modules/@types/node/crypto.d.ts create mode 100755 backend/node_modules/@types/node/dgram.d.ts create mode 100755 backend/node_modules/@types/node/dns.d.ts create mode 100755 backend/node_modules/@types/node/domain.d.ts create mode 100755 backend/node_modules/@types/node/events.d.ts create mode 100755 backend/node_modules/@types/node/fs.d.ts create mode 100755 backend/node_modules/@types/node/globals.d.ts create mode 100755 backend/node_modules/@types/node/globals.global.d.ts create mode 100755 backend/node_modules/@types/node/http.d.ts create mode 100755 backend/node_modules/@types/node/http2.d.ts create mode 100755 backend/node_modules/@types/node/https.d.ts create mode 100755 backend/node_modules/@types/node/index.d.ts create mode 100755 backend/node_modules/@types/node/inspector.d.ts create mode 100755 backend/node_modules/@types/node/module.d.ts create mode 100755 backend/node_modules/@types/node/net.d.ts create mode 100755 backend/node_modules/@types/node/os.d.ts create mode 100755 backend/node_modules/@types/node/package.json create mode 100755 backend/node_modules/@types/node/path.d.ts create mode 100755 backend/node_modules/@types/node/perf_hooks.d.ts create mode 100755 backend/node_modules/@types/node/process.d.ts create mode 100755 backend/node_modules/@types/node/punycode.d.ts create mode 100755 backend/node_modules/@types/node/querystring.d.ts create mode 100755 backend/node_modules/@types/node/readline.d.ts create mode 100755 backend/node_modules/@types/node/repl.d.ts create mode 100755 backend/node_modules/@types/node/stream.d.ts create mode 100755 backend/node_modules/@types/node/string_decoder.d.ts create mode 100755 backend/node_modules/@types/node/timers.d.ts create mode 100755 backend/node_modules/@types/node/tls.d.ts create mode 100755 backend/node_modules/@types/node/trace_events.d.ts create mode 100755 backend/node_modules/@types/node/tty.d.ts create mode 100755 backend/node_modules/@types/node/url.d.ts create mode 100755 backend/node_modules/@types/node/util.d.ts create mode 100755 backend/node_modules/@types/node/v8.d.ts create mode 100755 backend/node_modules/@types/node/vm.d.ts create mode 100755 backend/node_modules/@types/node/wasi.d.ts create mode 100755 backend/node_modules/@types/node/worker_threads.d.ts create mode 100755 backend/node_modules/@types/node/zlib.d.ts create mode 100644 backend/node_modules/@types/xml2js/LICENSE create mode 100644 backend/node_modules/@types/xml2js/README.md create mode 100644 backend/node_modules/@types/xml2js/index.d.ts create mode 100644 backend/node_modules/@types/xml2js/lib/processors.d.ts create mode 100644 backend/node_modules/@types/xml2js/package.json create mode 100644 backend/node_modules/anymatch/LICENSE create mode 100644 backend/node_modules/anymatch/README.md create mode 100644 backend/node_modules/anymatch/index.d.ts create mode 100644 backend/node_modules/anymatch/index.js create mode 100644 backend/node_modules/anymatch/package.json create mode 100644 backend/node_modules/binary-extensions/binary-extensions.json create mode 100644 backend/node_modules/binary-extensions/binary-extensions.json.d.ts create mode 100644 backend/node_modules/binary-extensions/index.d.ts create mode 100644 backend/node_modules/binary-extensions/index.js create mode 100644 backend/node_modules/binary-extensions/license create mode 100644 backend/node_modules/binary-extensions/package.json create mode 100644 backend/node_modules/binary-extensions/readme.md create mode 100644 backend/node_modules/braces/LICENSE create mode 100644 backend/node_modules/braces/README.md create mode 100644 backend/node_modules/braces/index.js create mode 100644 backend/node_modules/braces/lib/compile.js create mode 100644 backend/node_modules/braces/lib/constants.js create mode 100644 backend/node_modules/braces/lib/expand.js create mode 100644 backend/node_modules/braces/lib/parse.js create mode 100644 backend/node_modules/braces/lib/stringify.js create mode 100644 backend/node_modules/braces/lib/utils.js create mode 100644 backend/node_modules/braces/package.json create mode 100644 backend/node_modules/chokidar/LICENSE create mode 100644 backend/node_modules/chokidar/README.md create mode 100644 backend/node_modules/chokidar/index.js create mode 100644 backend/node_modules/chokidar/lib/constants.js create mode 100644 backend/node_modules/chokidar/lib/fsevents-handler.js create mode 100644 backend/node_modules/chokidar/lib/nodefs-handler.js create mode 100644 backend/node_modules/chokidar/package.json create mode 100644 backend/node_modules/chokidar/types/index.d.ts create mode 100644 backend/node_modules/concat-map/.travis.yml create mode 100644 backend/node_modules/concat-map/LICENSE create mode 100644 backend/node_modules/concat-map/README.markdown create mode 100644 backend/node_modules/concat-map/example/map.js create mode 100644 backend/node_modules/concat-map/index.js create mode 100644 backend/node_modules/concat-map/package.json create mode 100644 backend/node_modules/concat-map/test/map.js create mode 100644 backend/node_modules/fill-range/LICENSE create mode 100644 backend/node_modules/fill-range/README.md create mode 100644 backend/node_modules/fill-range/index.js create mode 100644 backend/node_modules/fill-range/package.json create mode 100644 backend/node_modules/glob-parent/CHANGELOG.md create mode 100644 backend/node_modules/glob-parent/LICENSE create mode 100644 backend/node_modules/glob-parent/README.md create mode 100644 backend/node_modules/glob-parent/index.js create mode 100644 backend/node_modules/glob-parent/package.json create mode 100644 backend/node_modules/has-flag/index.js create mode 100644 backend/node_modules/has-flag/license create mode 100644 backend/node_modules/has-flag/package.json create mode 100644 backend/node_modules/has-flag/readme.md create mode 100644 backend/node_modules/httpx/README.md create mode 100644 backend/node_modules/httpx/lib/index.d.ts create mode 100644 backend/node_modules/httpx/lib/index.js create mode 100644 backend/node_modules/httpx/node_modules/@types/node/LICENSE create mode 100644 backend/node_modules/httpx/node_modules/@types/node/README.md create mode 100644 backend/node_modules/httpx/node_modules/@types/node/assert.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/assert/strict.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/async_hooks.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/buffer.buffer.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/buffer.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/child_process.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/cluster.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/compatibility/disposable.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/compatibility/index.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/compatibility/indexable.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/compatibility/iterators.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/console.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/constants.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/crypto.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/dgram.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/diagnostics_channel.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/dns.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/dns/promises.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/domain.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/events.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/fs.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/fs/promises.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/globals.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/globals.typedarray.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/http.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/http2.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/https.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/index.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/inspector.generated.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/module.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/net.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/os.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/package.json create mode 100644 backend/node_modules/httpx/node_modules/@types/node/path.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/perf_hooks.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/process.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/punycode.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/querystring.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/readline.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/readline/promises.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/repl.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/sea.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/stream.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/stream/consumers.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/stream/promises.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/stream/web.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/string_decoder.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/test.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/timers.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/timers/promises.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/tls.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/trace_events.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/ts5.6/buffer.buffer.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/ts5.6/globals.typedarray.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/ts5.6/index.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/tty.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/url.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/util.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/v8.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/vm.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/wasi.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/web-globals/abortcontroller.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/web-globals/domexception.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/web-globals/events.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/web-globals/fetch.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/worker_threads.d.ts create mode 100644 backend/node_modules/httpx/node_modules/@types/node/zlib.d.ts create mode 100644 backend/node_modules/httpx/node_modules/debug/LICENSE create mode 100644 backend/node_modules/httpx/node_modules/debug/README.md create mode 100644 backend/node_modules/httpx/node_modules/debug/package.json create mode 100644 backend/node_modules/httpx/node_modules/debug/src/browser.js create mode 100644 backend/node_modules/httpx/node_modules/debug/src/common.js create mode 100644 backend/node_modules/httpx/node_modules/debug/src/index.js create mode 100644 backend/node_modules/httpx/node_modules/debug/src/node.js create mode 100644 backend/node_modules/httpx/node_modules/ms/index.js create mode 100644 backend/node_modules/httpx/node_modules/ms/license.md create mode 100644 backend/node_modules/httpx/node_modules/ms/package.json create mode 100644 backend/node_modules/httpx/node_modules/ms/readme.md create mode 100644 backend/node_modules/httpx/package.json create mode 100644 backend/node_modules/ignore-by-default/LICENSE create mode 100644 backend/node_modules/ignore-by-default/README.md create mode 100644 backend/node_modules/ignore-by-default/index.js create mode 100644 backend/node_modules/ignore-by-default/package.json create mode 100644 backend/node_modules/is-binary-path/index.d.ts create mode 100644 backend/node_modules/is-binary-path/index.js create mode 100644 backend/node_modules/is-binary-path/license create mode 100644 backend/node_modules/is-binary-path/package.json create mode 100644 backend/node_modules/is-binary-path/readme.md create mode 100644 backend/node_modules/is-extglob/LICENSE create mode 100644 backend/node_modules/is-extglob/README.md create mode 100644 backend/node_modules/is-extglob/index.js create mode 100644 backend/node_modules/is-extglob/package.json create mode 100644 backend/node_modules/is-glob/LICENSE create mode 100644 backend/node_modules/is-glob/README.md create mode 100644 backend/node_modules/is-glob/index.js create mode 100644 backend/node_modules/is-glob/package.json create mode 100644 backend/node_modules/is-number/LICENSE create mode 100644 backend/node_modules/is-number/README.md create mode 100644 backend/node_modules/is-number/index.js create mode 100644 backend/node_modules/is-number/package.json create mode 100644 backend/node_modules/kitx/LICENSE create mode 100644 backend/node_modules/kitx/README.md create mode 100644 backend/node_modules/kitx/lib/index.d.ts create mode 100644 backend/node_modules/kitx/lib/index.js create mode 100644 backend/node_modules/kitx/node_modules/@types/node/LICENSE create mode 100644 backend/node_modules/kitx/node_modules/@types/node/README.md create mode 100644 backend/node_modules/kitx/node_modules/@types/node/assert.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/assert/strict.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/async_hooks.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/buffer.buffer.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/buffer.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/child_process.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/cluster.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/compatibility/disposable.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/compatibility/index.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/compatibility/indexable.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/compatibility/iterators.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/console.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/constants.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/crypto.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/dgram.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/diagnostics_channel.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/dns.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/dns/promises.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/domain.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/events.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/fs.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/fs/promises.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/globals.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/globals.typedarray.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/http.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/http2.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/https.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/index.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/inspector.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/inspector.generated.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/module.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/net.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/os.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/package.json create mode 100644 backend/node_modules/kitx/node_modules/@types/node/path.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/perf_hooks.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/process.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/punycode.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/querystring.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/readline.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/readline/promises.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/repl.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/sea.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/sqlite.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/stream.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/stream/consumers.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/stream/promises.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/stream/web.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/string_decoder.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/test.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/timers.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/timers/promises.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/tls.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/trace_events.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/ts5.6/buffer.buffer.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/ts5.6/globals.typedarray.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/ts5.6/index.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/tty.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/url.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/util.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/v8.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/vm.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/wasi.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/web-globals/abortcontroller.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/web-globals/domexception.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/web-globals/events.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/web-globals/fetch.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/web-globals/navigator.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/web-globals/storage.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/worker_threads.d.ts create mode 100644 backend/node_modules/kitx/node_modules/@types/node/zlib.d.ts create mode 100644 backend/node_modules/kitx/package.json create mode 100644 backend/node_modules/moment-timezone/.editorconfig create mode 100644 backend/node_modules/moment-timezone/LICENSE create mode 100644 backend/node_modules/moment-timezone/README.md create mode 100644 backend/node_modules/moment-timezone/builds/moment-timezone-with-data-10-year-range.js create mode 100644 backend/node_modules/moment-timezone/builds/moment-timezone-with-data-10-year-range.min.js create mode 100644 backend/node_modules/moment-timezone/builds/moment-timezone-with-data-1970-2030.js create mode 100644 backend/node_modules/moment-timezone/builds/moment-timezone-with-data-1970-2030.min.js create mode 100644 backend/node_modules/moment-timezone/builds/moment-timezone-with-data-2012-2022.js create mode 100644 backend/node_modules/moment-timezone/builds/moment-timezone-with-data-2012-2022.min.js create mode 100644 backend/node_modules/moment-timezone/builds/moment-timezone-with-data.js create mode 100644 backend/node_modules/moment-timezone/builds/moment-timezone-with-data.min.js create mode 100644 backend/node_modules/moment-timezone/builds/moment-timezone.min.js create mode 100644 backend/node_modules/moment-timezone/changelog.md create mode 100644 backend/node_modules/moment-timezone/composer.json create mode 100644 backend/node_modules/moment-timezone/data/meta/latest.json create mode 100644 backend/node_modules/moment-timezone/data/packed/latest.json create mode 100644 backend/node_modules/moment-timezone/index.d.ts create mode 100644 backend/node_modules/moment-timezone/index.js create mode 100644 backend/node_modules/moment-timezone/moment-timezone-utils.d.ts create mode 100644 backend/node_modules/moment-timezone/moment-timezone-utils.js create mode 100644 backend/node_modules/moment-timezone/moment-timezone.js create mode 100644 backend/node_modules/moment-timezone/package.json create mode 100644 backend/node_modules/moment/CHANGELOG.md create mode 100644 backend/node_modules/moment/LICENSE create mode 100644 backend/node_modules/moment/README.md create mode 100644 backend/node_modules/moment/dist/locale/af.js create mode 100644 backend/node_modules/moment/dist/locale/ar-dz.js create mode 100644 backend/node_modules/moment/dist/locale/ar-kw.js create mode 100644 backend/node_modules/moment/dist/locale/ar-ly.js create mode 100644 backend/node_modules/moment/dist/locale/ar-ma.js create mode 100644 backend/node_modules/moment/dist/locale/ar-ps.js create mode 100644 backend/node_modules/moment/dist/locale/ar-sa.js create mode 100644 backend/node_modules/moment/dist/locale/ar-tn.js create mode 100644 backend/node_modules/moment/dist/locale/ar.js create mode 100644 backend/node_modules/moment/dist/locale/az.js create mode 100644 backend/node_modules/moment/dist/locale/be.js create mode 100644 backend/node_modules/moment/dist/locale/bg.js create mode 100644 backend/node_modules/moment/dist/locale/bm.js create mode 100644 backend/node_modules/moment/dist/locale/bn-bd.js create mode 100644 backend/node_modules/moment/dist/locale/bn.js create mode 100644 backend/node_modules/moment/dist/locale/bo.js create mode 100644 backend/node_modules/moment/dist/locale/br.js create mode 100644 backend/node_modules/moment/dist/locale/bs.js create mode 100644 backend/node_modules/moment/dist/locale/ca.js create mode 100644 backend/node_modules/moment/dist/locale/cs.js create mode 100644 backend/node_modules/moment/dist/locale/cv.js create mode 100644 backend/node_modules/moment/dist/locale/cy.js create mode 100644 backend/node_modules/moment/dist/locale/da.js create mode 100644 backend/node_modules/moment/dist/locale/de-at.js create mode 100644 backend/node_modules/moment/dist/locale/de-ch.js create mode 100644 backend/node_modules/moment/dist/locale/de.js create mode 100644 backend/node_modules/moment/dist/locale/dv.js create mode 100644 backend/node_modules/moment/dist/locale/el.js create mode 100644 backend/node_modules/moment/dist/locale/en-au.js create mode 100644 backend/node_modules/moment/dist/locale/en-ca.js create mode 100644 backend/node_modules/moment/dist/locale/en-gb.js create mode 100644 backend/node_modules/moment/dist/locale/en-ie.js create mode 100644 backend/node_modules/moment/dist/locale/en-il.js create mode 100644 backend/node_modules/moment/dist/locale/en-in.js create mode 100644 backend/node_modules/moment/dist/locale/en-nz.js create mode 100644 backend/node_modules/moment/dist/locale/en-sg.js create mode 100644 backend/node_modules/moment/dist/locale/eo.js create mode 100644 backend/node_modules/moment/dist/locale/es-do.js create mode 100644 backend/node_modules/moment/dist/locale/es-mx.js create mode 100644 backend/node_modules/moment/dist/locale/es-us.js create mode 100644 backend/node_modules/moment/dist/locale/es.js create mode 100644 backend/node_modules/moment/dist/locale/et.js create mode 100644 backend/node_modules/moment/dist/locale/eu.js create mode 100644 backend/node_modules/moment/dist/locale/fa.js create mode 100644 backend/node_modules/moment/dist/locale/fi.js create mode 100644 backend/node_modules/moment/dist/locale/fil.js create mode 100644 backend/node_modules/moment/dist/locale/fo.js create mode 100644 backend/node_modules/moment/dist/locale/fr-ca.js create mode 100644 backend/node_modules/moment/dist/locale/fr-ch.js create mode 100644 backend/node_modules/moment/dist/locale/fr.js create mode 100644 backend/node_modules/moment/dist/locale/fy.js create mode 100644 backend/node_modules/moment/dist/locale/ga.js create mode 100644 backend/node_modules/moment/dist/locale/gd.js create mode 100644 backend/node_modules/moment/dist/locale/gl.js create mode 100644 backend/node_modules/moment/dist/locale/gom-deva.js create mode 100644 backend/node_modules/moment/dist/locale/gom-latn.js create mode 100644 backend/node_modules/moment/dist/locale/gu.js create mode 100644 backend/node_modules/moment/dist/locale/he.js create mode 100644 backend/node_modules/moment/dist/locale/hi.js create mode 100644 backend/node_modules/moment/dist/locale/hr.js create mode 100644 backend/node_modules/moment/dist/locale/hu.js create mode 100644 backend/node_modules/moment/dist/locale/hy-am.js create mode 100644 backend/node_modules/moment/dist/locale/id.js create mode 100644 backend/node_modules/moment/dist/locale/is.js create mode 100644 backend/node_modules/moment/dist/locale/it-ch.js create mode 100644 backend/node_modules/moment/dist/locale/it.js create mode 100644 backend/node_modules/moment/dist/locale/ja.js create mode 100644 backend/node_modules/moment/dist/locale/jv.js create mode 100644 backend/node_modules/moment/dist/locale/ka.js create mode 100644 backend/node_modules/moment/dist/locale/kk.js create mode 100644 backend/node_modules/moment/dist/locale/km.js create mode 100644 backend/node_modules/moment/dist/locale/kn.js create mode 100644 backend/node_modules/moment/dist/locale/ko.js create mode 100644 backend/node_modules/moment/dist/locale/ku-kmr.js create mode 100644 backend/node_modules/moment/dist/locale/ku.js create mode 100644 backend/node_modules/moment/dist/locale/ky.js create mode 100644 backend/node_modules/moment/dist/locale/lb.js create mode 100644 backend/node_modules/moment/dist/locale/lo.js create mode 100644 backend/node_modules/moment/dist/locale/lt.js create mode 100644 backend/node_modules/moment/dist/locale/lv.js create mode 100644 backend/node_modules/moment/dist/locale/me.js create mode 100644 backend/node_modules/moment/dist/locale/mi.js create mode 100644 backend/node_modules/moment/dist/locale/mk.js create mode 100644 backend/node_modules/moment/dist/locale/ml.js create mode 100644 backend/node_modules/moment/dist/locale/mn.js create mode 100644 backend/node_modules/moment/dist/locale/mr.js create mode 100644 backend/node_modules/moment/dist/locale/ms-my.js create mode 100644 backend/node_modules/moment/dist/locale/ms.js create mode 100644 backend/node_modules/moment/dist/locale/mt.js create mode 100644 backend/node_modules/moment/dist/locale/my.js create mode 100644 backend/node_modules/moment/dist/locale/nb.js create mode 100644 backend/node_modules/moment/dist/locale/ne.js create mode 100644 backend/node_modules/moment/dist/locale/nl-be.js create mode 100644 backend/node_modules/moment/dist/locale/nl.js create mode 100644 backend/node_modules/moment/dist/locale/nn.js create mode 100644 backend/node_modules/moment/dist/locale/oc-lnc.js create mode 100644 backend/node_modules/moment/dist/locale/pa-in.js create mode 100644 backend/node_modules/moment/dist/locale/pl.js create mode 100644 backend/node_modules/moment/dist/locale/pt-br.js create mode 100644 backend/node_modules/moment/dist/locale/pt.js create mode 100644 backend/node_modules/moment/dist/locale/ro.js create mode 100644 backend/node_modules/moment/dist/locale/ru.js create mode 100644 backend/node_modules/moment/dist/locale/sd.js create mode 100644 backend/node_modules/moment/dist/locale/se.js create mode 100644 backend/node_modules/moment/dist/locale/si.js create mode 100644 backend/node_modules/moment/dist/locale/sk.js create mode 100644 backend/node_modules/moment/dist/locale/sl.js create mode 100644 backend/node_modules/moment/dist/locale/sq.js create mode 100644 backend/node_modules/moment/dist/locale/sr-cyrl.js create mode 100644 backend/node_modules/moment/dist/locale/sr.js create mode 100644 backend/node_modules/moment/dist/locale/ss.js create mode 100644 backend/node_modules/moment/dist/locale/sv.js create mode 100644 backend/node_modules/moment/dist/locale/sw.js create mode 100644 backend/node_modules/moment/dist/locale/ta.js create mode 100644 backend/node_modules/moment/dist/locale/te.js create mode 100644 backend/node_modules/moment/dist/locale/tet.js create mode 100644 backend/node_modules/moment/dist/locale/tg.js create mode 100644 backend/node_modules/moment/dist/locale/th.js create mode 100644 backend/node_modules/moment/dist/locale/tk.js create mode 100644 backend/node_modules/moment/dist/locale/tl-ph.js create mode 100644 backend/node_modules/moment/dist/locale/tlh.js create mode 100644 backend/node_modules/moment/dist/locale/tr.js create mode 100644 backend/node_modules/moment/dist/locale/tzl.js create mode 100644 backend/node_modules/moment/dist/locale/tzm-latn.js create mode 100644 backend/node_modules/moment/dist/locale/tzm.js create mode 100644 backend/node_modules/moment/dist/locale/ug-cn.js create mode 100644 backend/node_modules/moment/dist/locale/uk.js create mode 100644 backend/node_modules/moment/dist/locale/ur.js create mode 100644 backend/node_modules/moment/dist/locale/uz-latn.js create mode 100644 backend/node_modules/moment/dist/locale/uz.js create mode 100644 backend/node_modules/moment/dist/locale/vi.js create mode 100644 backend/node_modules/moment/dist/locale/x-pseudo.js create mode 100644 backend/node_modules/moment/dist/locale/yo.js create mode 100644 backend/node_modules/moment/dist/locale/zh-cn.js create mode 100644 backend/node_modules/moment/dist/locale/zh-hk.js create mode 100644 backend/node_modules/moment/dist/locale/zh-mo.js create mode 100644 backend/node_modules/moment/dist/locale/zh-tw.js create mode 100644 backend/node_modules/moment/dist/moment.js create mode 100644 backend/node_modules/moment/ender.js create mode 100644 backend/node_modules/moment/locale/af.js create mode 100644 backend/node_modules/moment/locale/ar-dz.js create mode 100644 backend/node_modules/moment/locale/ar-kw.js create mode 100644 backend/node_modules/moment/locale/ar-ly.js create mode 100644 backend/node_modules/moment/locale/ar-ma.js create mode 100644 backend/node_modules/moment/locale/ar-ps.js create mode 100644 backend/node_modules/moment/locale/ar-sa.js create mode 100644 backend/node_modules/moment/locale/ar-tn.js create mode 100644 backend/node_modules/moment/locale/ar.js create mode 100644 backend/node_modules/moment/locale/az.js create mode 100644 backend/node_modules/moment/locale/be.js create mode 100644 backend/node_modules/moment/locale/bg.js create mode 100644 backend/node_modules/moment/locale/bm.js create mode 100644 backend/node_modules/moment/locale/bn-bd.js create mode 100644 backend/node_modules/moment/locale/bn.js create mode 100644 backend/node_modules/moment/locale/bo.js create mode 100644 backend/node_modules/moment/locale/br.js create mode 100644 backend/node_modules/moment/locale/bs.js create mode 100644 backend/node_modules/moment/locale/ca.js create mode 100644 backend/node_modules/moment/locale/cs.js create mode 100644 backend/node_modules/moment/locale/cv.js create mode 100644 backend/node_modules/moment/locale/cy.js create mode 100644 backend/node_modules/moment/locale/da.js create mode 100644 backend/node_modules/moment/locale/de-at.js create mode 100644 backend/node_modules/moment/locale/de-ch.js create mode 100644 backend/node_modules/moment/locale/de.js create mode 100644 backend/node_modules/moment/locale/dv.js create mode 100644 backend/node_modules/moment/locale/el.js create mode 100644 backend/node_modules/moment/locale/en-au.js create mode 100644 backend/node_modules/moment/locale/en-ca.js create mode 100644 backend/node_modules/moment/locale/en-gb.js create mode 100644 backend/node_modules/moment/locale/en-ie.js create mode 100644 backend/node_modules/moment/locale/en-il.js create mode 100644 backend/node_modules/moment/locale/en-in.js create mode 100644 backend/node_modules/moment/locale/en-nz.js create mode 100644 backend/node_modules/moment/locale/en-sg.js create mode 100644 backend/node_modules/moment/locale/eo.js create mode 100644 backend/node_modules/moment/locale/es-do.js create mode 100644 backend/node_modules/moment/locale/es-mx.js create mode 100644 backend/node_modules/moment/locale/es-us.js create mode 100644 backend/node_modules/moment/locale/es.js create mode 100644 backend/node_modules/moment/locale/et.js create mode 100644 backend/node_modules/moment/locale/eu.js create mode 100644 backend/node_modules/moment/locale/fa.js create mode 100644 backend/node_modules/moment/locale/fi.js create mode 100644 backend/node_modules/moment/locale/fil.js create mode 100644 backend/node_modules/moment/locale/fo.js create mode 100644 backend/node_modules/moment/locale/fr-ca.js create mode 100644 backend/node_modules/moment/locale/fr-ch.js create mode 100644 backend/node_modules/moment/locale/fr.js create mode 100644 backend/node_modules/moment/locale/fy.js create mode 100644 backend/node_modules/moment/locale/ga.js create mode 100644 backend/node_modules/moment/locale/gd.js create mode 100644 backend/node_modules/moment/locale/gl.js create mode 100644 backend/node_modules/moment/locale/gom-deva.js create mode 100644 backend/node_modules/moment/locale/gom-latn.js create mode 100644 backend/node_modules/moment/locale/gu.js create mode 100644 backend/node_modules/moment/locale/he.js create mode 100644 backend/node_modules/moment/locale/hi.js create mode 100644 backend/node_modules/moment/locale/hr.js create mode 100644 backend/node_modules/moment/locale/hu.js create mode 100644 backend/node_modules/moment/locale/hy-am.js create mode 100644 backend/node_modules/moment/locale/id.js create mode 100644 backend/node_modules/moment/locale/is.js create mode 100644 backend/node_modules/moment/locale/it-ch.js create mode 100644 backend/node_modules/moment/locale/it.js create mode 100644 backend/node_modules/moment/locale/ja.js create mode 100644 backend/node_modules/moment/locale/jv.js create mode 100644 backend/node_modules/moment/locale/ka.js create mode 100644 backend/node_modules/moment/locale/kk.js create mode 100644 backend/node_modules/moment/locale/km.js create mode 100644 backend/node_modules/moment/locale/kn.js create mode 100644 backend/node_modules/moment/locale/ko.js create mode 100644 backend/node_modules/moment/locale/ku-kmr.js create mode 100644 backend/node_modules/moment/locale/ku.js create mode 100644 backend/node_modules/moment/locale/ky.js create mode 100644 backend/node_modules/moment/locale/lb.js create mode 100644 backend/node_modules/moment/locale/lo.js create mode 100644 backend/node_modules/moment/locale/lt.js create mode 100644 backend/node_modules/moment/locale/lv.js create mode 100644 backend/node_modules/moment/locale/me.js create mode 100644 backend/node_modules/moment/locale/mi.js create mode 100644 backend/node_modules/moment/locale/mk.js create mode 100644 backend/node_modules/moment/locale/ml.js create mode 100644 backend/node_modules/moment/locale/mn.js create mode 100644 backend/node_modules/moment/locale/mr.js create mode 100644 backend/node_modules/moment/locale/ms-my.js create mode 100644 backend/node_modules/moment/locale/ms.js create mode 100644 backend/node_modules/moment/locale/mt.js create mode 100644 backend/node_modules/moment/locale/my.js create mode 100644 backend/node_modules/moment/locale/nb.js create mode 100644 backend/node_modules/moment/locale/ne.js create mode 100644 backend/node_modules/moment/locale/nl-be.js create mode 100644 backend/node_modules/moment/locale/nl.js create mode 100644 backend/node_modules/moment/locale/nn.js create mode 100644 backend/node_modules/moment/locale/oc-lnc.js create mode 100644 backend/node_modules/moment/locale/pa-in.js create mode 100644 backend/node_modules/moment/locale/pl.js create mode 100644 backend/node_modules/moment/locale/pt-br.js create mode 100644 backend/node_modules/moment/locale/pt.js create mode 100644 backend/node_modules/moment/locale/ro.js create mode 100644 backend/node_modules/moment/locale/ru.js create mode 100644 backend/node_modules/moment/locale/sd.js create mode 100644 backend/node_modules/moment/locale/se.js create mode 100644 backend/node_modules/moment/locale/si.js create mode 100644 backend/node_modules/moment/locale/sk.js create mode 100644 backend/node_modules/moment/locale/sl.js create mode 100644 backend/node_modules/moment/locale/sq.js create mode 100644 backend/node_modules/moment/locale/sr-cyrl.js create mode 100644 backend/node_modules/moment/locale/sr.js create mode 100644 backend/node_modules/moment/locale/ss.js create mode 100644 backend/node_modules/moment/locale/sv.js create mode 100644 backend/node_modules/moment/locale/sw.js create mode 100644 backend/node_modules/moment/locale/ta.js create mode 100644 backend/node_modules/moment/locale/te.js create mode 100644 backend/node_modules/moment/locale/tet.js create mode 100644 backend/node_modules/moment/locale/tg.js create mode 100644 backend/node_modules/moment/locale/th.js create mode 100644 backend/node_modules/moment/locale/tk.js create mode 100644 backend/node_modules/moment/locale/tl-ph.js create mode 100644 backend/node_modules/moment/locale/tlh.js create mode 100644 backend/node_modules/moment/locale/tr.js create mode 100644 backend/node_modules/moment/locale/tzl.js create mode 100644 backend/node_modules/moment/locale/tzm-latn.js create mode 100644 backend/node_modules/moment/locale/tzm.js create mode 100644 backend/node_modules/moment/locale/ug-cn.js create mode 100644 backend/node_modules/moment/locale/uk.js create mode 100644 backend/node_modules/moment/locale/ur.js create mode 100644 backend/node_modules/moment/locale/uz-latn.js create mode 100644 backend/node_modules/moment/locale/uz.js create mode 100644 backend/node_modules/moment/locale/vi.js create mode 100644 backend/node_modules/moment/locale/x-pseudo.js create mode 100644 backend/node_modules/moment/locale/yo.js create mode 100644 backend/node_modules/moment/locale/zh-cn.js create mode 100644 backend/node_modules/moment/locale/zh-hk.js create mode 100644 backend/node_modules/moment/locale/zh-mo.js create mode 100644 backend/node_modules/moment/locale/zh-tw.js create mode 100644 backend/node_modules/moment/min/locales.js create mode 100644 backend/node_modules/moment/min/locales.min.js create mode 100644 backend/node_modules/moment/min/locales.min.js.map create mode 100644 backend/node_modules/moment/min/moment-with-locales.js create mode 100644 backend/node_modules/moment/min/moment-with-locales.min.js create mode 100644 backend/node_modules/moment/min/moment-with-locales.min.js.map create mode 100644 backend/node_modules/moment/min/moment.min.js create mode 100644 backend/node_modules/moment/min/moment.min.js.map create mode 100644 backend/node_modules/moment/moment.d.ts create mode 100644 backend/node_modules/moment/moment.js create mode 100644 backend/node_modules/moment/package.js create mode 100644 backend/node_modules/moment/package.json create mode 100644 backend/node_modules/moment/src/lib/create/check-overflow.js create mode 100644 backend/node_modules/moment/src/lib/create/date-from-array.js create mode 100644 backend/node_modules/moment/src/lib/create/from-anything.js create mode 100644 backend/node_modules/moment/src/lib/create/from-array.js create mode 100644 backend/node_modules/moment/src/lib/create/from-object.js create mode 100644 backend/node_modules/moment/src/lib/create/from-string-and-array.js create mode 100644 backend/node_modules/moment/src/lib/create/from-string-and-format.js create mode 100644 backend/node_modules/moment/src/lib/create/from-string.js create mode 100644 backend/node_modules/moment/src/lib/create/local.js create mode 100644 backend/node_modules/moment/src/lib/create/parsing-flags.js create mode 100644 backend/node_modules/moment/src/lib/create/utc.js create mode 100644 backend/node_modules/moment/src/lib/create/valid.js create mode 100644 backend/node_modules/moment/src/lib/duration/abs.js create mode 100644 backend/node_modules/moment/src/lib/duration/add-subtract.js create mode 100644 backend/node_modules/moment/src/lib/duration/as.js create mode 100644 backend/node_modules/moment/src/lib/duration/bubble.js create mode 100644 backend/node_modules/moment/src/lib/duration/clone.js create mode 100644 backend/node_modules/moment/src/lib/duration/constructor.js create mode 100644 backend/node_modules/moment/src/lib/duration/create.js create mode 100644 backend/node_modules/moment/src/lib/duration/duration.js create mode 100644 backend/node_modules/moment/src/lib/duration/get.js create mode 100644 backend/node_modules/moment/src/lib/duration/humanize.js create mode 100644 backend/node_modules/moment/src/lib/duration/iso-string.js create mode 100644 backend/node_modules/moment/src/lib/duration/prototype.js create mode 100644 backend/node_modules/moment/src/lib/duration/valid.js create mode 100644 backend/node_modules/moment/src/lib/format/format.js create mode 100644 backend/node_modules/moment/src/lib/locale/base-config.js create mode 100644 backend/node_modules/moment/src/lib/locale/calendar.js create mode 100644 backend/node_modules/moment/src/lib/locale/constructor.js create mode 100644 backend/node_modules/moment/src/lib/locale/en.js create mode 100644 backend/node_modules/moment/src/lib/locale/formats.js create mode 100644 backend/node_modules/moment/src/lib/locale/invalid.js create mode 100644 backend/node_modules/moment/src/lib/locale/lists.js create mode 100644 backend/node_modules/moment/src/lib/locale/locale.js create mode 100644 backend/node_modules/moment/src/lib/locale/locales.js create mode 100644 backend/node_modules/moment/src/lib/locale/ordinal.js create mode 100644 backend/node_modules/moment/src/lib/locale/pre-post-format.js create mode 100644 backend/node_modules/moment/src/lib/locale/prototype.js create mode 100644 backend/node_modules/moment/src/lib/locale/relative.js create mode 100644 backend/node_modules/moment/src/lib/locale/set.js create mode 100644 backend/node_modules/moment/src/lib/moment/add-subtract.js create mode 100644 backend/node_modules/moment/src/lib/moment/calendar.js create mode 100644 backend/node_modules/moment/src/lib/moment/clone.js create mode 100644 backend/node_modules/moment/src/lib/moment/compare.js create mode 100644 backend/node_modules/moment/src/lib/moment/constructor.js create mode 100644 backend/node_modules/moment/src/lib/moment/creation-data.js create mode 100644 backend/node_modules/moment/src/lib/moment/diff.js create mode 100644 backend/node_modules/moment/src/lib/moment/format.js create mode 100644 backend/node_modules/moment/src/lib/moment/from.js create mode 100644 backend/node_modules/moment/src/lib/moment/get-set.js create mode 100644 backend/node_modules/moment/src/lib/moment/locale.js create mode 100644 backend/node_modules/moment/src/lib/moment/min-max.js create mode 100644 backend/node_modules/moment/src/lib/moment/moment.js create mode 100644 backend/node_modules/moment/src/lib/moment/now.js create mode 100644 backend/node_modules/moment/src/lib/moment/prototype.js create mode 100644 backend/node_modules/moment/src/lib/moment/start-end-of.js create mode 100644 backend/node_modules/moment/src/lib/moment/to-type.js create mode 100644 backend/node_modules/moment/src/lib/moment/to.js create mode 100644 backend/node_modules/moment/src/lib/moment/valid.js create mode 100644 backend/node_modules/moment/src/lib/parse/regex.js create mode 100644 backend/node_modules/moment/src/lib/parse/token.js create mode 100644 backend/node_modules/moment/src/lib/units/aliases.js create mode 100644 backend/node_modules/moment/src/lib/units/constants.js create mode 100644 backend/node_modules/moment/src/lib/units/day-of-month.js create mode 100644 backend/node_modules/moment/src/lib/units/day-of-week.js create mode 100644 backend/node_modules/moment/src/lib/units/day-of-year.js create mode 100644 backend/node_modules/moment/src/lib/units/era.js create mode 100644 backend/node_modules/moment/src/lib/units/hour.js create mode 100644 backend/node_modules/moment/src/lib/units/millisecond.js create mode 100644 backend/node_modules/moment/src/lib/units/minute.js create mode 100644 backend/node_modules/moment/src/lib/units/month.js create mode 100644 backend/node_modules/moment/src/lib/units/offset.js create mode 100644 backend/node_modules/moment/src/lib/units/priorities.js create mode 100644 backend/node_modules/moment/src/lib/units/quarter.js create mode 100644 backend/node_modules/moment/src/lib/units/second.js create mode 100644 backend/node_modules/moment/src/lib/units/timestamp.js create mode 100644 backend/node_modules/moment/src/lib/units/timezone.js create mode 100644 backend/node_modules/moment/src/lib/units/units.js create mode 100644 backend/node_modules/moment/src/lib/units/week-calendar-utils.js create mode 100644 backend/node_modules/moment/src/lib/units/week-year.js create mode 100644 backend/node_modules/moment/src/lib/units/week.js create mode 100644 backend/node_modules/moment/src/lib/units/year.js create mode 100644 backend/node_modules/moment/src/lib/utils/abs-ceil.js create mode 100644 backend/node_modules/moment/src/lib/utils/abs-floor.js create mode 100644 backend/node_modules/moment/src/lib/utils/abs-round.js create mode 100644 backend/node_modules/moment/src/lib/utils/compare-arrays.js create mode 100644 backend/node_modules/moment/src/lib/utils/defaults.js create mode 100644 backend/node_modules/moment/src/lib/utils/deprecate.js create mode 100644 backend/node_modules/moment/src/lib/utils/extend.js create mode 100644 backend/node_modules/moment/src/lib/utils/has-own-prop.js create mode 100644 backend/node_modules/moment/src/lib/utils/hooks.js create mode 100644 backend/node_modules/moment/src/lib/utils/index-of.js create mode 100644 backend/node_modules/moment/src/lib/utils/is-array.js create mode 100644 backend/node_modules/moment/src/lib/utils/is-calendar-spec.js create mode 100644 backend/node_modules/moment/src/lib/utils/is-date.js create mode 100644 backend/node_modules/moment/src/lib/utils/is-function.js create mode 100644 backend/node_modules/moment/src/lib/utils/is-leap-year.js create mode 100644 backend/node_modules/moment/src/lib/utils/is-moment-input.js create mode 100644 backend/node_modules/moment/src/lib/utils/is-number.js create mode 100644 backend/node_modules/moment/src/lib/utils/is-object-empty.js create mode 100644 backend/node_modules/moment/src/lib/utils/is-object.js create mode 100644 backend/node_modules/moment/src/lib/utils/is-string.js create mode 100644 backend/node_modules/moment/src/lib/utils/is-undefined.js create mode 100644 backend/node_modules/moment/src/lib/utils/keys.js create mode 100644 backend/node_modules/moment/src/lib/utils/map.js create mode 100644 backend/node_modules/moment/src/lib/utils/mod.js create mode 100644 backend/node_modules/moment/src/lib/utils/some.js create mode 100644 backend/node_modules/moment/src/lib/utils/to-int.js create mode 100644 backend/node_modules/moment/src/lib/utils/zero-fill.js create mode 100644 backend/node_modules/moment/src/locale/af.js create mode 100644 backend/node_modules/moment/src/locale/ar-dz.js create mode 100644 backend/node_modules/moment/src/locale/ar-kw.js create mode 100644 backend/node_modules/moment/src/locale/ar-ly.js create mode 100644 backend/node_modules/moment/src/locale/ar-ma.js create mode 100644 backend/node_modules/moment/src/locale/ar-ps.js create mode 100644 backend/node_modules/moment/src/locale/ar-sa.js create mode 100644 backend/node_modules/moment/src/locale/ar-tn.js create mode 100644 backend/node_modules/moment/src/locale/ar.js create mode 100644 backend/node_modules/moment/src/locale/az.js create mode 100644 backend/node_modules/moment/src/locale/be.js create mode 100644 backend/node_modules/moment/src/locale/bg.js create mode 100644 backend/node_modules/moment/src/locale/bm.js create mode 100644 backend/node_modules/moment/src/locale/bn-bd.js create mode 100644 backend/node_modules/moment/src/locale/bn.js create mode 100644 backend/node_modules/moment/src/locale/bo.js create mode 100644 backend/node_modules/moment/src/locale/br.js create mode 100644 backend/node_modules/moment/src/locale/bs.js create mode 100644 backend/node_modules/moment/src/locale/ca.js create mode 100644 backend/node_modules/moment/src/locale/cs.js create mode 100644 backend/node_modules/moment/src/locale/cv.js create mode 100644 backend/node_modules/moment/src/locale/cy.js create mode 100644 backend/node_modules/moment/src/locale/da.js create mode 100644 backend/node_modules/moment/src/locale/de-at.js create mode 100644 backend/node_modules/moment/src/locale/de-ch.js create mode 100644 backend/node_modules/moment/src/locale/de.js create mode 100644 backend/node_modules/moment/src/locale/dv.js create mode 100644 backend/node_modules/moment/src/locale/el.js create mode 100644 backend/node_modules/moment/src/locale/en-au.js create mode 100644 backend/node_modules/moment/src/locale/en-ca.js create mode 100644 backend/node_modules/moment/src/locale/en-gb.js create mode 100644 backend/node_modules/moment/src/locale/en-ie.js create mode 100644 backend/node_modules/moment/src/locale/en-il.js create mode 100644 backend/node_modules/moment/src/locale/en-in.js create mode 100644 backend/node_modules/moment/src/locale/en-nz.js create mode 100644 backend/node_modules/moment/src/locale/en-sg.js create mode 100644 backend/node_modules/moment/src/locale/eo.js create mode 100644 backend/node_modules/moment/src/locale/es-do.js create mode 100644 backend/node_modules/moment/src/locale/es-mx.js create mode 100644 backend/node_modules/moment/src/locale/es-us.js create mode 100644 backend/node_modules/moment/src/locale/es.js create mode 100644 backend/node_modules/moment/src/locale/et.js create mode 100644 backend/node_modules/moment/src/locale/eu.js create mode 100644 backend/node_modules/moment/src/locale/fa.js create mode 100644 backend/node_modules/moment/src/locale/fi.js create mode 100644 backend/node_modules/moment/src/locale/fil.js create mode 100644 backend/node_modules/moment/src/locale/fo.js create mode 100644 backend/node_modules/moment/src/locale/fr-ca.js create mode 100644 backend/node_modules/moment/src/locale/fr-ch.js create mode 100644 backend/node_modules/moment/src/locale/fr.js create mode 100644 backend/node_modules/moment/src/locale/fy.js create mode 100644 backend/node_modules/moment/src/locale/ga.js create mode 100644 backend/node_modules/moment/src/locale/gd.js create mode 100644 backend/node_modules/moment/src/locale/gl.js create mode 100644 backend/node_modules/moment/src/locale/gom-deva.js create mode 100644 backend/node_modules/moment/src/locale/gom-latn.js create mode 100644 backend/node_modules/moment/src/locale/gu.js create mode 100644 backend/node_modules/moment/src/locale/he.js create mode 100644 backend/node_modules/moment/src/locale/hi.js create mode 100644 backend/node_modules/moment/src/locale/hr.js create mode 100644 backend/node_modules/moment/src/locale/hu.js create mode 100644 backend/node_modules/moment/src/locale/hy-am.js create mode 100644 backend/node_modules/moment/src/locale/id.js create mode 100644 backend/node_modules/moment/src/locale/is.js create mode 100644 backend/node_modules/moment/src/locale/it-ch.js create mode 100644 backend/node_modules/moment/src/locale/it.js create mode 100644 backend/node_modules/moment/src/locale/ja.js create mode 100644 backend/node_modules/moment/src/locale/jv.js create mode 100644 backend/node_modules/moment/src/locale/ka.js create mode 100644 backend/node_modules/moment/src/locale/kk.js create mode 100644 backend/node_modules/moment/src/locale/km.js create mode 100644 backend/node_modules/moment/src/locale/kn.js create mode 100644 backend/node_modules/moment/src/locale/ko.js create mode 100644 backend/node_modules/moment/src/locale/ku-kmr.js create mode 100644 backend/node_modules/moment/src/locale/ku.js create mode 100644 backend/node_modules/moment/src/locale/ky.js create mode 100644 backend/node_modules/moment/src/locale/lb.js create mode 100644 backend/node_modules/moment/src/locale/lo.js create mode 100644 backend/node_modules/moment/src/locale/lt.js create mode 100644 backend/node_modules/moment/src/locale/lv.js create mode 100644 backend/node_modules/moment/src/locale/me.js create mode 100644 backend/node_modules/moment/src/locale/mi.js create mode 100644 backend/node_modules/moment/src/locale/mk.js create mode 100644 backend/node_modules/moment/src/locale/ml.js create mode 100644 backend/node_modules/moment/src/locale/mn.js create mode 100644 backend/node_modules/moment/src/locale/mr.js create mode 100644 backend/node_modules/moment/src/locale/ms-my.js create mode 100644 backend/node_modules/moment/src/locale/ms.js create mode 100644 backend/node_modules/moment/src/locale/mt.js create mode 100644 backend/node_modules/moment/src/locale/my.js create mode 100644 backend/node_modules/moment/src/locale/nb.js create mode 100644 backend/node_modules/moment/src/locale/ne.js create mode 100644 backend/node_modules/moment/src/locale/nl-be.js create mode 100644 backend/node_modules/moment/src/locale/nl.js create mode 100644 backend/node_modules/moment/src/locale/nn.js create mode 100644 backend/node_modules/moment/src/locale/oc-lnc.js create mode 100644 backend/node_modules/moment/src/locale/pa-in.js create mode 100644 backend/node_modules/moment/src/locale/pl.js create mode 100644 backend/node_modules/moment/src/locale/pt-br.js create mode 100644 backend/node_modules/moment/src/locale/pt.js create mode 100644 backend/node_modules/moment/src/locale/ro.js create mode 100644 backend/node_modules/moment/src/locale/ru.js create mode 100644 backend/node_modules/moment/src/locale/sd.js create mode 100644 backend/node_modules/moment/src/locale/se.js create mode 100644 backend/node_modules/moment/src/locale/si.js create mode 100644 backend/node_modules/moment/src/locale/sk.js create mode 100644 backend/node_modules/moment/src/locale/sl.js create mode 100644 backend/node_modules/moment/src/locale/sq.js create mode 100644 backend/node_modules/moment/src/locale/sr-cyrl.js create mode 100644 backend/node_modules/moment/src/locale/sr.js create mode 100644 backend/node_modules/moment/src/locale/ss.js create mode 100644 backend/node_modules/moment/src/locale/sv.js create mode 100644 backend/node_modules/moment/src/locale/sw.js create mode 100644 backend/node_modules/moment/src/locale/ta.js create mode 100644 backend/node_modules/moment/src/locale/te.js create mode 100644 backend/node_modules/moment/src/locale/tet.js create mode 100644 backend/node_modules/moment/src/locale/tg.js create mode 100644 backend/node_modules/moment/src/locale/th.js create mode 100644 backend/node_modules/moment/src/locale/tk.js create mode 100644 backend/node_modules/moment/src/locale/tl-ph.js create mode 100644 backend/node_modules/moment/src/locale/tlh.js create mode 100644 backend/node_modules/moment/src/locale/tr.js create mode 100644 backend/node_modules/moment/src/locale/tzl.js create mode 100644 backend/node_modules/moment/src/locale/tzm-latn.js create mode 100644 backend/node_modules/moment/src/locale/tzm.js create mode 100644 backend/node_modules/moment/src/locale/ug-cn.js create mode 100644 backend/node_modules/moment/src/locale/uk.js create mode 100644 backend/node_modules/moment/src/locale/ur.js create mode 100644 backend/node_modules/moment/src/locale/uz-latn.js create mode 100644 backend/node_modules/moment/src/locale/uz.js create mode 100644 backend/node_modules/moment/src/locale/vi.js create mode 100644 backend/node_modules/moment/src/locale/x-pseudo.js create mode 100644 backend/node_modules/moment/src/locale/yo.js create mode 100644 backend/node_modules/moment/src/locale/zh-cn.js create mode 100644 backend/node_modules/moment/src/locale/zh-hk.js create mode 100644 backend/node_modules/moment/src/locale/zh-mo.js create mode 100644 backend/node_modules/moment/src/locale/zh-tw.js create mode 100644 backend/node_modules/moment/src/moment.js create mode 100644 backend/node_modules/moment/ts3.1-typings/moment.d.ts create mode 100644 backend/node_modules/nodemon/.prettierrc.json create mode 100644 backend/node_modules/nodemon/LICENSE create mode 100644 backend/node_modules/nodemon/README.md create mode 100755 backend/node_modules/nodemon/bin/nodemon.js create mode 100644 backend/node_modules/nodemon/bin/windows-kill.exe create mode 100644 backend/node_modules/nodemon/doc/cli/authors.txt create mode 100644 backend/node_modules/nodemon/doc/cli/config.txt create mode 100644 backend/node_modules/nodemon/doc/cli/help.txt create mode 100644 backend/node_modules/nodemon/doc/cli/logo.txt create mode 100644 backend/node_modules/nodemon/doc/cli/options.txt create mode 100644 backend/node_modules/nodemon/doc/cli/topics.txt create mode 100644 backend/node_modules/nodemon/doc/cli/usage.txt create mode 100644 backend/node_modules/nodemon/doc/cli/whoami.txt create mode 100644 backend/node_modules/nodemon/index.d.ts create mode 100644 backend/node_modules/nodemon/jsconfig.json create mode 100644 backend/node_modules/nodemon/lib/cli/index.js create mode 100644 backend/node_modules/nodemon/lib/cli/parse.js create mode 100644 backend/node_modules/nodemon/lib/config/command.js create mode 100644 backend/node_modules/nodemon/lib/config/defaults.js create mode 100644 backend/node_modules/nodemon/lib/config/exec.js create mode 100644 backend/node_modules/nodemon/lib/config/index.js create mode 100644 backend/node_modules/nodemon/lib/config/load.js create mode 100644 backend/node_modules/nodemon/lib/help/index.js create mode 100644 backend/node_modules/nodemon/lib/index.js create mode 100644 backend/node_modules/nodemon/lib/monitor/index.js create mode 100644 backend/node_modules/nodemon/lib/monitor/match.js create mode 100644 backend/node_modules/nodemon/lib/monitor/run.js create mode 100644 backend/node_modules/nodemon/lib/monitor/signals.js create mode 100644 backend/node_modules/nodemon/lib/monitor/watch.js create mode 100644 backend/node_modules/nodemon/lib/nodemon.js create mode 100644 backend/node_modules/nodemon/lib/rules/add.js create mode 100644 backend/node_modules/nodemon/lib/rules/index.js create mode 100644 backend/node_modules/nodemon/lib/rules/parse.js create mode 100644 backend/node_modules/nodemon/lib/spawn.js create mode 100644 backend/node_modules/nodemon/lib/utils/bus.js create mode 100644 backend/node_modules/nodemon/lib/utils/clone.js create mode 100644 backend/node_modules/nodemon/lib/utils/colour.js create mode 100644 backend/node_modules/nodemon/lib/utils/index.js create mode 100644 backend/node_modules/nodemon/lib/utils/log.js create mode 100644 backend/node_modules/nodemon/lib/utils/merge.js create mode 100644 backend/node_modules/nodemon/lib/version.js create mode 100644 backend/node_modules/nodemon/node_modules/brace-expansion/LICENSE create mode 100644 backend/node_modules/nodemon/node_modules/brace-expansion/README.md create mode 100644 backend/node_modules/nodemon/node_modules/brace-expansion/index.js create mode 100644 backend/node_modules/nodemon/node_modules/brace-expansion/package.json create mode 100644 backend/node_modules/nodemon/node_modules/debug/LICENSE create mode 100644 backend/node_modules/nodemon/node_modules/debug/README.md create mode 100644 backend/node_modules/nodemon/node_modules/debug/package.json create mode 100644 backend/node_modules/nodemon/node_modules/debug/src/browser.js create mode 100644 backend/node_modules/nodemon/node_modules/debug/src/common.js create mode 100644 backend/node_modules/nodemon/node_modules/debug/src/index.js create mode 100644 backend/node_modules/nodemon/node_modules/debug/src/node.js create mode 100644 backend/node_modules/nodemon/node_modules/minimatch/LICENSE create mode 100644 backend/node_modules/nodemon/node_modules/minimatch/README.md create mode 100644 backend/node_modules/nodemon/node_modules/minimatch/minimatch.js create mode 100644 backend/node_modules/nodemon/node_modules/minimatch/package.json create mode 100644 backend/node_modules/nodemon/node_modules/ms/index.js create mode 100644 backend/node_modules/nodemon/node_modules/ms/license.md create mode 100644 backend/node_modules/nodemon/node_modules/ms/package.json create mode 100644 backend/node_modules/nodemon/node_modules/ms/readme.md create mode 100644 backend/node_modules/nodemon/package.json create mode 100644 backend/node_modules/picomatch/CHANGELOG.md create mode 100644 backend/node_modules/picomatch/LICENSE create mode 100644 backend/node_modules/picomatch/README.md create mode 100644 backend/node_modules/picomatch/index.js create mode 100644 backend/node_modules/picomatch/lib/constants.js create mode 100644 backend/node_modules/picomatch/lib/parse.js create mode 100644 backend/node_modules/picomatch/lib/picomatch.js create mode 100644 backend/node_modules/picomatch/lib/scan.js create mode 100644 backend/node_modules/picomatch/lib/utils.js create mode 100644 backend/node_modules/picomatch/package.json create mode 100644 backend/node_modules/pstree.remy/.travis.yml create mode 100644 backend/node_modules/pstree.remy/LICENSE create mode 100644 backend/node_modules/pstree.remy/README.md create mode 100644 backend/node_modules/pstree.remy/lib/index.js create mode 100644 backend/node_modules/pstree.remy/lib/tree.js create mode 100644 backend/node_modules/pstree.remy/lib/utils.js create mode 100644 backend/node_modules/pstree.remy/package.json create mode 100644 backend/node_modules/pstree.remy/tests/fixtures/index.js create mode 100644 backend/node_modules/pstree.remy/tests/fixtures/out1 create mode 100644 backend/node_modules/pstree.remy/tests/fixtures/out2 create mode 100644 backend/node_modules/pstree.remy/tests/index.test.js create mode 100644 backend/node_modules/readdirp/LICENSE create mode 100644 backend/node_modules/readdirp/README.md create mode 100644 backend/node_modules/readdirp/index.d.ts create mode 100644 backend/node_modules/readdirp/index.js create mode 100644 backend/node_modules/readdirp/package.json create mode 100644 backend/node_modules/sax/LICENSE.md create mode 100644 backend/node_modules/sax/README.md create mode 100644 backend/node_modules/sax/lib/sax.js create mode 100644 backend/node_modules/sax/package.json create mode 100644 backend/node_modules/simple-update-notifier/LICENSE create mode 100644 backend/node_modules/simple-update-notifier/README.md create mode 100644 backend/node_modules/simple-update-notifier/build/index.d.ts create mode 100644 backend/node_modules/simple-update-notifier/build/index.js create mode 100644 backend/node_modules/simple-update-notifier/package.json create mode 100644 backend/node_modules/simple-update-notifier/src/borderedText.ts create mode 100644 backend/node_modules/simple-update-notifier/src/cache.spec.ts create mode 100644 backend/node_modules/simple-update-notifier/src/cache.ts create mode 100644 backend/node_modules/simple-update-notifier/src/getDistVersion.spec.ts create mode 100644 backend/node_modules/simple-update-notifier/src/getDistVersion.ts create mode 100644 backend/node_modules/simple-update-notifier/src/hasNewVersion.spec.ts create mode 100644 backend/node_modules/simple-update-notifier/src/hasNewVersion.ts create mode 100644 backend/node_modules/simple-update-notifier/src/index.spec.ts create mode 100644 backend/node_modules/simple-update-notifier/src/index.ts create mode 100644 backend/node_modules/simple-update-notifier/src/isNpmOrYarn.ts create mode 100644 backend/node_modules/simple-update-notifier/src/types.ts create mode 100644 backend/node_modules/sm3/README.md create mode 100644 backend/node_modules/sm3/package.json create mode 100644 backend/node_modules/sm3/sm3-babel.js create mode 100644 backend/node_modules/sm3/sm3.js create mode 100644 backend/node_modules/sm3/test.js create mode 100644 backend/node_modules/supports-color/browser.js create mode 100644 backend/node_modules/supports-color/index.js create mode 100644 backend/node_modules/supports-color/license create mode 100644 backend/node_modules/supports-color/package.json create mode 100644 backend/node_modules/supports-color/readme.md create mode 100644 backend/node_modules/to-regex-range/LICENSE create mode 100644 backend/node_modules/to-regex-range/README.md create mode 100644 backend/node_modules/to-regex-range/index.js create mode 100644 backend/node_modules/to-regex-range/package.json create mode 100644 backend/node_modules/touch/LICENSE create mode 100644 backend/node_modules/touch/README.md create mode 100755 backend/node_modules/touch/bin/nodetouch.js create mode 100644 backend/node_modules/touch/index.js create mode 100644 backend/node_modules/touch/package.json create mode 100644 backend/node_modules/undefsafe/.github/workflows/release.yml create mode 100644 backend/node_modules/undefsafe/.jscsrc create mode 100644 backend/node_modules/undefsafe/.jshintrc create mode 100644 backend/node_modules/undefsafe/.travis.yml create mode 100644 backend/node_modules/undefsafe/LICENSE create mode 100644 backend/node_modules/undefsafe/README.md create mode 100644 backend/node_modules/undefsafe/example.js create mode 100644 backend/node_modules/undefsafe/lib/undefsafe.js create mode 100644 backend/node_modules/undefsafe/package.json create mode 100644 backend/node_modules/undici-types/LICENSE create mode 100644 backend/node_modules/undici-types/README.md create mode 100644 backend/node_modules/undici-types/agent.d.ts create mode 100644 backend/node_modules/undici-types/api.d.ts create mode 100644 backend/node_modules/undici-types/balanced-pool.d.ts create mode 100644 backend/node_modules/undici-types/cache.d.ts create mode 100644 backend/node_modules/undici-types/client.d.ts create mode 100644 backend/node_modules/undici-types/connector.d.ts create mode 100644 backend/node_modules/undici-types/content-type.d.ts create mode 100644 backend/node_modules/undici-types/cookies.d.ts create mode 100644 backend/node_modules/undici-types/diagnostics-channel.d.ts create mode 100644 backend/node_modules/undici-types/dispatcher.d.ts create mode 100644 backend/node_modules/undici-types/env-http-proxy-agent.d.ts create mode 100644 backend/node_modules/undici-types/errors.d.ts create mode 100644 backend/node_modules/undici-types/eventsource.d.ts create mode 100644 backend/node_modules/undici-types/fetch.d.ts create mode 100644 backend/node_modules/undici-types/file.d.ts create mode 100644 backend/node_modules/undici-types/filereader.d.ts create mode 100644 backend/node_modules/undici-types/formdata.d.ts create mode 100644 backend/node_modules/undici-types/global-dispatcher.d.ts create mode 100644 backend/node_modules/undici-types/global-origin.d.ts create mode 100644 backend/node_modules/undici-types/handlers.d.ts create mode 100644 backend/node_modules/undici-types/header.d.ts create mode 100644 backend/node_modules/undici-types/index.d.ts create mode 100644 backend/node_modules/undici-types/interceptors.d.ts create mode 100644 backend/node_modules/undici-types/mock-agent.d.ts create mode 100644 backend/node_modules/undici-types/mock-client.d.ts create mode 100644 backend/node_modules/undici-types/mock-errors.d.ts create mode 100644 backend/node_modules/undici-types/mock-interceptor.d.ts create mode 100644 backend/node_modules/undici-types/mock-pool.d.ts create mode 100644 backend/node_modules/undici-types/package.json create mode 100644 backend/node_modules/undici-types/patch.d.ts create mode 100644 backend/node_modules/undici-types/pool-stats.d.ts create mode 100644 backend/node_modules/undici-types/pool.d.ts create mode 100644 backend/node_modules/undici-types/proxy-agent.d.ts create mode 100644 backend/node_modules/undici-types/readable.d.ts create mode 100644 backend/node_modules/undici-types/retry-agent.d.ts create mode 100644 backend/node_modules/undici-types/retry-handler.d.ts create mode 100644 backend/node_modules/undici-types/util.d.ts create mode 100644 backend/node_modules/undici-types/webidl.d.ts create mode 100644 backend/node_modules/undici-types/websocket.d.ts create mode 100644 backend/node_modules/xml2js/LICENSE create mode 100644 backend/node_modules/xml2js/README.md create mode 100644 backend/node_modules/xml2js/lib/bom.js create mode 100644 backend/node_modules/xml2js/lib/builder.js create mode 100644 backend/node_modules/xml2js/lib/defaults.js create mode 100644 backend/node_modules/xml2js/lib/parser.js create mode 100644 backend/node_modules/xml2js/lib/processors.js create mode 100644 backend/node_modules/xml2js/lib/xml2js.bc.js create mode 100644 backend/node_modules/xml2js/lib/xml2js.js create mode 100644 backend/node_modules/xml2js/package.json create mode 100644 backend/node_modules/xmlbuilder/CHANGELOG.md create mode 100644 backend/node_modules/xmlbuilder/LICENSE create mode 100644 backend/node_modules/xmlbuilder/README.md create mode 100644 backend/node_modules/xmlbuilder/appveyor.yml create mode 100644 backend/node_modules/xmlbuilder/lib/Derivation.js create mode 100644 backend/node_modules/xmlbuilder/lib/DocumentPosition.js create mode 100644 backend/node_modules/xmlbuilder/lib/NodeType.js create mode 100644 backend/node_modules/xmlbuilder/lib/OperationType.js create mode 100644 backend/node_modules/xmlbuilder/lib/Utility.js create mode 100644 backend/node_modules/xmlbuilder/lib/WriterState.js create mode 100644 backend/node_modules/xmlbuilder/lib/XMLAttribute.js create mode 100644 backend/node_modules/xmlbuilder/lib/XMLCData.js create mode 100644 backend/node_modules/xmlbuilder/lib/XMLCharacterData.js create mode 100644 backend/node_modules/xmlbuilder/lib/XMLComment.js create mode 100644 backend/node_modules/xmlbuilder/lib/XMLDOMConfiguration.js create mode 100644 backend/node_modules/xmlbuilder/lib/XMLDOMErrorHandler.js create mode 100644 backend/node_modules/xmlbuilder/lib/XMLDOMImplementation.js create mode 100644 backend/node_modules/xmlbuilder/lib/XMLDOMStringList.js create mode 100644 backend/node_modules/xmlbuilder/lib/XMLDTDAttList.js create mode 100644 backend/node_modules/xmlbuilder/lib/XMLDTDElement.js create mode 100644 backend/node_modules/xmlbuilder/lib/XMLDTDEntity.js create mode 100644 backend/node_modules/xmlbuilder/lib/XMLDTDNotation.js create mode 100644 backend/node_modules/xmlbuilder/lib/XMLDeclaration.js create mode 100644 backend/node_modules/xmlbuilder/lib/XMLDocType.js create mode 100644 backend/node_modules/xmlbuilder/lib/XMLDocument.js create mode 100644 backend/node_modules/xmlbuilder/lib/XMLDocumentCB.js create mode 100644 backend/node_modules/xmlbuilder/lib/XMLDocumentFragment.js create mode 100644 backend/node_modules/xmlbuilder/lib/XMLDummy.js create mode 100644 backend/node_modules/xmlbuilder/lib/XMLElement.js create mode 100644 backend/node_modules/xmlbuilder/lib/XMLNamedNodeMap.js create mode 100644 backend/node_modules/xmlbuilder/lib/XMLNode.js create mode 100644 backend/node_modules/xmlbuilder/lib/XMLNodeFilter.js create mode 100644 backend/node_modules/xmlbuilder/lib/XMLNodeList.js create mode 100644 backend/node_modules/xmlbuilder/lib/XMLProcessingInstruction.js create mode 100644 backend/node_modules/xmlbuilder/lib/XMLRaw.js create mode 100644 backend/node_modules/xmlbuilder/lib/XMLStreamWriter.js create mode 100644 backend/node_modules/xmlbuilder/lib/XMLStringWriter.js create mode 100644 backend/node_modules/xmlbuilder/lib/XMLStringifier.js create mode 100644 backend/node_modules/xmlbuilder/lib/XMLText.js create mode 100644 backend/node_modules/xmlbuilder/lib/XMLTypeInfo.js create mode 100644 backend/node_modules/xmlbuilder/lib/XMLUserDataHandler.js create mode 100644 backend/node_modules/xmlbuilder/lib/XMLWriterBase.js create mode 100644 backend/node_modules/xmlbuilder/lib/index.js create mode 100644 backend/node_modules/xmlbuilder/package.json create mode 100644 backend/node_modules/xmlbuilder/typings/index.d.ts diff --git a/backend/data/database.db-shm b/backend/data/database.db-shm index d565af4dc527fa473d650b101f4c3eda3141780c..7e3468b5951fef0bdc7035feb27c6d20e7323ce3 100644 GIT binary patch delta 740 zcmb7;No-AV6vlt&*5wJWp7dQs^feY1BHc^GLPA&xv5-jYEQ~eQtoKqw&7Qw`o@y@I zr=Gc0Lu+ic^=ho73pOHH5RHU$@1txaoaD>-&Ue1^<#?Xud6wI=H4ndX6#|hK?J-4B zs@1I?^!n2%*NWsj<&G(+EbgB7Wy1gZH7Y1S_xm69Q!aB$#0-=^B4)JY+Bqu6;-v%P zRUxsBNVe_&60oq(LJI4b(l6NQ)KSq%5msa>x+x+GUk`3`eCOX>f#ct^fz%QMdL5Et>W4?2sm!66jqKnU=efxPns^a-6Kx~jba19oz-l(JljBry zi-$bnWjgEg$R52WGJ_SYV=H?&LKzpS;x3PQs+Kw{yqCkA;u4kAP^(gnnA$N>C!e{j zAcxynsb4!DT5$7?qQfHJ`O?W;Z8Ea)&ya zY0*WtnD^tlc3H?`3h`LRauwfNiFf1MLiT=2xuWw|%RayvuBPch&T=hH4{?s`NX`)cL^p|wr#P?T`NzOT zs(PSNU;r}rKN5fnZ>(R+xS56Jg6(DjmIsWJuQ-ZqW@358H2IPXh#|%}`H!m2;DEw?F zH_-(Zafz(DD#}G%Wg|#YKo-zlbX63={e@rg!bNahMbK4X@jvHGW-`-Gpa{i%o~6%| zHkot(<~`s0e&3vQ|2f?^r?VC;CKd}9ix!I)OSVe)cX~&^CJd98{Gs(L=iar;yB~ar z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aN zdx-;?+-Lo#6rMJXWlozyE2P8IrnmG$f1g>qr5EV0EkjX?Q*Qq)dV&A3PV8N!ozEUO z^o`lk_nU(-d*ue=gQrH!$EV=p$U@BQk$lWf7QzGgG`Abkw@cD8<9NBf-#Oot-p|Jb zf}aw=3-*4HB~|(VYhluo-+O-Q0LKuq#i@S4#INNLzv>4z^}m9t-xfzxe}8I#ZDqC3 zCq4b?AZl)xum*_a(*UYVJ}aIWr2_88vqLJNzvRH?*Jmq!a!;RzX9iqY4#f191FnD| zNCEjs3&h<}RbYE+Y~H^PjCdPQgM=sN;XiuR^-u-muz)W3LW%zUW0=Q8H0b(a%~vpM9|C+hZg5BEb+Mjp7ju(kOUlUIH@;asDqr Y`7L)#L;Ru#{chzP{<}1U1m_(79|@H%fdBvi delta 21 ccmezH()`3{$%Yoj7N!>F7M2#)Eo>($0dRK-0{{R3 diff --git a/backend/node_modules/.bin/nodemon b/backend/node_modules/.bin/nodemon new file mode 120000 index 0000000..1056ddc --- /dev/null +++ b/backend/node_modules/.bin/nodemon @@ -0,0 +1 @@ +../nodemon/bin/nodemon.js \ No newline at end of file diff --git a/backend/node_modules/.bin/nodetouch b/backend/node_modules/.bin/nodetouch new file mode 120000 index 0000000..3409fdb --- /dev/null +++ b/backend/node_modules/.bin/nodetouch @@ -0,0 +1 @@ +../touch/bin/nodetouch.js \ No newline at end of file diff --git a/backend/node_modules/.package-lock.json b/backend/node_modules/.package-lock.json index bf1163c..ee51fdd 100644 --- a/backend/node_modules/.package-lock.json +++ b/backend/node_modules/.package-lock.json @@ -4,6 +4,192 @@ "lockfileVersion": 3, "requires": true, "packages": { + "node_modules/@alicloud/cms20190101": { + "version": "4.0.7", + "resolved": "https://registry.npmmirror.com/@alicloud/cms20190101/-/cms20190101-4.0.7.tgz", + "integrity": "sha512-86JPU+vKT/ZDv9RVBpgsZX1cb/NKJ2YyZ69/cyEfck21W0efrSfVuglpSe3zPaFuiqcR4yVmQ3Kc+oijV0XTwA==", + "license": "Apache-2.0", + "dependencies": { + "@alicloud/openapi-core": "^1.0.0", + "@darabonba/typescript": "^1.0.0" + } + }, + "node_modules/@alicloud/credentials": { + "version": "2.4.4", + "resolved": "https://registry.npmmirror.com/@alicloud/credentials/-/credentials-2.4.4.tgz", + "integrity": "sha512-/eRAGSKcniLIFQ1UCpDhB/IrHUZisQ1sc65ws/c2avxUMpXwH1rWAohb76SVAUJhiF4mwvLzLJM1Mn1XL4Xe/Q==", + "license": "MIT", + "dependencies": { + "@alicloud/tea-typescript": "^1.8.0", + "httpx": "^2.3.3", + "ini": "^1.3.5", + "kitx": "^2.0.0" + } + }, + "node_modules/@alicloud/darabonba-array": { + "version": "0.1.2", + "resolved": "https://registry.npmmirror.com/@alicloud/darabonba-array/-/darabonba-array-0.1.2.tgz", + "integrity": "sha512-ZPuQ+bJyjrd8XVVm55kl+ypk7OQoi1ZH/DiToaAEQaGvgEjrTcvQkg71//vUX/6cvbLIF5piQDvhrLb+lUEIPQ==", + "license": "ISC", + "dependencies": { + "@alicloud/tea-typescript": "^1.7.1" + } + }, + "node_modules/@alicloud/darabonba-encode-util": { + "version": "0.0.2", + "resolved": "https://registry.npmmirror.com/@alicloud/darabonba-encode-util/-/darabonba-encode-util-0.0.2.tgz", + "integrity": "sha512-mlsNctkeqmR0RtgE1Rngyeadi5snLOAHBCWEtYf68d7tyKskosXDTNeZ6VCD/UfrUu4N51ItO8zlpfXiOgeg3A==", + "license": "ISC", + "dependencies": { + "moment": "^2.29.1" + } + }, + "node_modules/@alicloud/darabonba-map": { + "version": "0.0.1", + "resolved": "https://registry.npmmirror.com/@alicloud/darabonba-map/-/darabonba-map-0.0.1.tgz", + "integrity": "sha512-2ep+G3YDvuI+dRYVlmER1LVUQDhf9kEItmVB/bbEu1pgKzelcocCwAc79XZQjTcQGFgjDycf3vH87WLDGLFMlw==", + "license": "ISC", + "dependencies": { + "@alicloud/tea-typescript": "^1.7.1" + } + }, + "node_modules/@alicloud/darabonba-signature-util": { + "version": "0.0.4", + "resolved": "https://registry.npmmirror.com/@alicloud/darabonba-signature-util/-/darabonba-signature-util-0.0.4.tgz", + "integrity": "sha512-I1TtwtAnzLamgqnAaOkN0IGjwkiti//0a7/auyVThdqiC/3kyafSAn6znysWOmzub4mrzac2WiqblZKFcN5NWg==", + "license": "ISC", + "dependencies": { + "@alicloud/darabonba-encode-util": "^0.0.1" + } + }, + "node_modules/@alicloud/darabonba-signature-util/node_modules/@alicloud/darabonba-encode-util": { + "version": "0.0.1", + "resolved": "https://registry.npmmirror.com/@alicloud/darabonba-encode-util/-/darabonba-encode-util-0.0.1.tgz", + "integrity": "sha512-Sl5vCRVAYMqwmvXpJLM9hYoCHOMsQlGxaWSGhGWulpKk/NaUBArtoO1B0yHruJf1C5uHhEJIaylYcM48icFHgw==", + "license": "ISC", + "dependencies": { + "@alicloud/tea-typescript": "^1.7.1", + "moment": "^2.29.1" + } + }, + "node_modules/@alicloud/darabonba-string": { + "version": "1.0.3", + "resolved": "https://registry.npmmirror.com/@alicloud/darabonba-string/-/darabonba-string-1.0.3.tgz", + "integrity": "sha512-NyWwrU8cAIesWk3uHL1Q7pTDTqLkCI/0PmJXC4/4A0MFNAZ9Ouq0iFBsRqvfyUujSSM+WhYLuTfakQXiVLkTMA==", + "license": "Apache-2.0", + "dependencies": { + "@alicloud/tea-typescript": "^1.5.1" + } + }, + "node_modules/@alicloud/endpoint-util": { + "version": "0.0.1", + "resolved": "https://registry.npmmirror.com/@alicloud/endpoint-util/-/endpoint-util-0.0.1.tgz", + "integrity": "sha512-+pH7/KEXup84cHzIL6UJAaPqETvln4yXlD9JzlrqioyCSaWxbug5FUobsiI6fuUOpw5WwoB3fWAtGbFnJ1K3Yg==", + "license": "Apache-2.0", + "dependencies": { + "@alicloud/tea-typescript": "^1.5.1", + "kitx": "^2.0.0" + } + }, + "node_modules/@alicloud/gateway-pop": { + "version": "0.0.6", + "resolved": "https://registry.npmmirror.com/@alicloud/gateway-pop/-/gateway-pop-0.0.6.tgz", + "integrity": "sha512-KF4I+JvfYuLKc3fWeWYIZ7lOVJ9jRW0sQXdXidZn1DKZ978ncfGf7i0LBfONGk4OxvNb/HD3/0yYhkgZgPbKtA==", + "license": "ISC", + "dependencies": { + "@alicloud/credentials": "^2", + "@alicloud/darabonba-array": "^0.1.0", + "@alicloud/darabonba-encode-util": "^0.0.2", + "@alicloud/darabonba-map": "^0.0.1", + "@alicloud/darabonba-signature-util": "^0.0.4", + "@alicloud/darabonba-string": "^1.0.2", + "@alicloud/endpoint-util": "^0.0.1", + "@alicloud/gateway-spi": "^0.0.8", + "@alicloud/openapi-util": "^0.3.2", + "@alicloud/tea-typescript": "^1.7.1", + "@alicloud/tea-util": "^1.4.8" + } + }, + "node_modules/@alicloud/gateway-spi": { + "version": "0.0.8", + "resolved": "https://registry.npmmirror.com/@alicloud/gateway-spi/-/gateway-spi-0.0.8.tgz", + "integrity": "sha512-KM7fu5asjxZPmrz9sJGHJeSU+cNQNOxW+SFmgmAIrITui5hXL2LB+KNRuzWmlwPjnuA2X3/keq9h6++S9jcV5g==", + "license": "ISC", + "dependencies": { + "@alicloud/credentials": "^2", + "@alicloud/tea-typescript": "^1.7.1" + } + }, + "node_modules/@alicloud/openapi-client": { + "version": "0.4.15", + "resolved": "https://registry.npmmirror.com/@alicloud/openapi-client/-/openapi-client-0.4.15.tgz", + "integrity": "sha512-4VE0/k5ZdQbAhOSTqniVhuX1k5DUeUMZv74degn3wIWjLY6Bq+hxjaGsaHYlLZ2gA5wUrs8NcI5TE+lIQS3iiA==", + "license": "ISC", + "dependencies": { + "@alicloud/credentials": "^2.4.2", + "@alicloud/gateway-spi": "^0.0.8", + "@alicloud/openapi-util": "^0.3.2", + "@alicloud/tea-typescript": "^1.7.1", + "@alicloud/tea-util": "1.4.9", + "@alicloud/tea-xml": "0.0.3" + } + }, + "node_modules/@alicloud/openapi-core": { + "version": "1.0.7", + "resolved": "https://registry.npmmirror.com/@alicloud/openapi-core/-/openapi-core-1.0.7.tgz", + "integrity": "sha512-I80PQVfmlzRiXGHwutMp2zTpiqUVv8ts30nWAfksfHUSTIapk3nj9IXaPbULMPGNV6xqEyshO2bj2a+pmwc2tQ==", + "hasInstallScript": true, + "license": "ISC", + "dependencies": { + "@alicloud/credentials": "^2.4.2", + "@alicloud/gateway-pop": "0.0.6", + "@alicloud/gateway-spi": "^0.0.8", + "@darabonba/typescript": "^1.0.2" + } + }, + "node_modules/@alicloud/openapi-util": { + "version": "0.3.3", + "resolved": "https://registry.npmmirror.com/@alicloud/openapi-util/-/openapi-util-0.3.3.tgz", + "integrity": "sha512-vf0cQ/q8R2U7ZO88X5hDiu1yV3t/WexRj+YycWxRutkH/xVXfkmpRgps8lmNEk7Ar+0xnY8+daN2T+2OyB9F4A==", + "license": "ISC", + "dependencies": { + "@alicloud/tea-typescript": "^1.7.1", + "@alicloud/tea-util": "^1.3.0", + "kitx": "^2.1.0", + "sm3": "^1.0.3" + } + }, + "node_modules/@alicloud/tea-typescript": { + "version": "1.8.0", + "resolved": "https://registry.npmmirror.com/@alicloud/tea-typescript/-/tea-typescript-1.8.0.tgz", + "integrity": "sha512-CWXWaquauJf0sW30mgJRVu9aaXyBth5uMBCUc+5vKTK1zlgf3hIqRUjJZbjlwHwQ5y9anwcu18r48nOZb7l2QQ==", + "license": "ISC", + "dependencies": { + "@types/node": "^12.0.2", + "httpx": "^2.2.6" + } + }, + "node_modules/@alicloud/tea-util": { + "version": "1.4.9", + "resolved": "https://registry.npmmirror.com/@alicloud/tea-util/-/tea-util-1.4.9.tgz", + "integrity": "sha512-S0wz76rGtoPKskQtRTGqeuqBHFj8BqUn0Vh+glXKun2/9UpaaaWmuJwcmtImk6bJZfLYEShDF/kxDmDJoNYiTw==", + "license": "Apache-2.0", + "dependencies": { + "@alicloud/tea-typescript": "^1.5.1", + "kitx": "^2.0.0" + } + }, + "node_modules/@alicloud/tea-xml": { + "version": "0.0.3", + "resolved": "https://registry.npmmirror.com/@alicloud/tea-xml/-/tea-xml-0.0.3.tgz", + "integrity": "sha512-+/9GliugjrLglsXVrd1D80EqqKgGpyA0eQ6+1ZdUOYCaRguaSwz44trX3PaxPu/HhIPJg9PsGQQ3cSLXWZjbAA==", + "license": "Apache-2.0", + "dependencies": { + "@alicloud/tea-typescript": "^1", + "@types/xml2js": "^0.4.5", + "xml2js": "^0.6.0" + } + }, "node_modules/@aws-crypto/crc32": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/@aws-crypto/crc32/-/crc32-5.2.0.tgz", @@ -936,6 +1122,20 @@ "node": ">=18.0.0" } }, + "node_modules/@darabonba/typescript": { + "version": "1.0.3", + "resolved": "https://registry.npmmirror.com/@darabonba/typescript/-/typescript-1.0.3.tgz", + "integrity": "sha512-/y2y6wf5TsxD7pCPIm0OvTC+5qV0Tk7HQYxwpIuWRLXQLB0CRDvr6qk4bR6rTLO/JglJa8z2uCGZsaLYpQNqFQ==", + "license": "Apache License 2.0", + "dependencies": { + "@alicloud/tea-typescript": "^1.5.1", + "httpx": "^2.3.2", + "lodash": "^4.17.21", + "moment": "^2.30.1", + "moment-timezone": "^0.5.45", + "xml2js": "^0.6.2" + } + }, "node_modules/@isaacs/cliui": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", @@ -1695,6 +1895,21 @@ "node": ">=18.0.0" } }, + "node_modules/@types/node": { + "version": "12.20.55", + "resolved": "https://registry.npmmirror.com/@types/node/-/node-12.20.55.tgz", + "integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==", + "license": "MIT" + }, + "node_modules/@types/xml2js": { + "version": "0.4.14", + "resolved": "https://registry.npmmirror.com/@types/xml2js/-/xml2js-0.4.14.tgz", + "integrity": "sha512-4YnrRemBShWRO2QjvUin8ESA41rH+9nQGLUGZV/1IDhi3SL9OhdpNC/MrulTWuptXKwhx/aDxE7toV0f/ypIXQ==", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, "node_modules/abort-controller": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", @@ -1744,6 +1959,20 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "license": "ISC", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/append-field": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/append-field/-/append-field-1.0.0.tgz", @@ -1872,6 +2101,19 @@ "prebuild-install": "^7.1.1" } }, + "node_modules/binary-extensions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/bindings": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", @@ -1945,6 +2187,19 @@ "balanced-match": "^1.0.0" } }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/buffer": { "version": "5.6.0", "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.6.0.tgz", @@ -2025,6 +2280,31 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/chokidar": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, "node_modules/chownr": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", @@ -2065,6 +2345,13 @@ "node": ">= 14" } }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true, + "license": "MIT" + }, "node_modules/concat-stream": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-2.0.0.tgz", @@ -2528,6 +2815,19 @@ "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==", "license": "MIT" }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/finalhandler": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.2.tgz", @@ -2658,6 +2958,19 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/gopd": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", @@ -2676,6 +2989,16 @@ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", "license": "ISC" }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, "node_modules/has-symbols": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", @@ -2720,6 +3043,48 @@ "url": "https://opencollective.com/express" } }, + "node_modules/httpx": { + "version": "2.3.3", + "resolved": "https://registry.npmmirror.com/httpx/-/httpx-2.3.3.tgz", + "integrity": "sha512-k1qv94u1b6e+XKCxVbLgYlOypVP9MPGpnN5G/vxFf6tDO4V3xpz3d6FUOY/s8NtPgaq5RBVVgSB+7IHpVxMYzw==", + "license": "MIT", + "dependencies": { + "@types/node": "^20", + "debug": "^4.1.1" + } + }, + "node_modules/httpx/node_modules/@types/node": { + "version": "20.19.30", + "resolved": "https://registry.npmmirror.com/@types/node/-/node-20.19.30.tgz", + "integrity": "sha512-WJtwWJu7UdlvzEAUm484QNg5eAoq5QR08KDNx7g45Usrs2NtOPiX8ugDqmKdXkyL03rBqU5dYNYVQetEpBHq2g==", + "license": "MIT", + "dependencies": { + "undici-types": "~6.21.0" + } + }, + "node_modules/httpx/node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmmirror.com/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/httpx/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, "node_modules/iconv-lite": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", @@ -2752,6 +3117,13 @@ ], "license": "BSD-3-Clause" }, + "node_modules/ignore-by-default": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", + "integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==", + "dev": true, + "license": "ISC" + }, "node_modules/inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", @@ -2773,6 +3145,29 @@ "node": ">= 0.10" } }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "license": "MIT", + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", @@ -2782,6 +3177,29 @@ "node": ">=8" } }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, "node_modules/is-stream": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", @@ -2870,6 +3288,24 @@ "safe-buffer": "^5.0.1" } }, + "node_modules/kitx": { + "version": "2.2.0", + "resolved": "https://registry.npmmirror.com/kitx/-/kitx-2.2.0.tgz", + "integrity": "sha512-tBMwe6AALTBQJb0woQDD40734NKzb0Kzi3k7wQj9ar3AbP9oqhoVrdXPh7rk2r00/glIgd0YbToIUJsnxWMiIg==", + "license": "MIT", + "dependencies": { + "@types/node": "^22.5.4" + } + }, + "node_modules/kitx/node_modules/@types/node": { + "version": "22.19.7", + "resolved": "https://registry.npmmirror.com/@types/node/-/node-22.19.7.tgz", + "integrity": "sha512-MciR4AKGHWl7xwxkBa6xUGxQJ4VBOmPTF7sL+iGzuahOFaO0jHCsuEfS80pan1ef4gWId1oWOweIhrDEYLuaOw==", + "license": "MIT", + "dependencies": { + "undici-types": "~6.21.0" + } + }, "node_modules/lazystream": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/lazystream/-/lazystream-1.0.1.tgz", @@ -3098,6 +3534,27 @@ "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==", "license": "MIT" }, + "node_modules/moment": { + "version": "2.30.1", + "resolved": "https://registry.npmmirror.com/moment/-/moment-2.30.1.tgz", + "integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==", + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/moment-timezone": { + "version": "0.5.48", + "resolved": "https://registry.npmmirror.com/moment-timezone/-/moment-timezone-0.5.48.tgz", + "integrity": "sha512-f22b8LV1gbTO2ms2j2z13MuPogNoh5UzxL3nzNAYKGraILnbGc9NEE6dyiiiLv46DGRb8A4kg8UKWLjPthxBHw==", + "license": "MIT", + "dependencies": { + "moment": "^2.29.4" + }, + "engines": { + "node": "*" + } + }, "node_modules/ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", @@ -3158,6 +3615,84 @@ "node": ">=6.0.0" } }, + "node_modules/nodemon": { + "version": "3.1.11", + "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-3.1.11.tgz", + "integrity": "sha512-is96t8F/1//UHAjNPHpbsNY46ELPpftGUoSVNXwUfMk/qdjSylYrWSu1XavVTBOn526kFiOR733ATgNBCQyH0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "chokidar": "^3.5.2", + "debug": "^4", + "ignore-by-default": "^1.0.1", + "minimatch": "^3.1.2", + "pstree.remy": "^1.1.8", + "semver": "^7.5.3", + "simple-update-notifier": "^2.0.0", + "supports-color": "^5.5.0", + "touch": "^3.1.0", + "undefsafe": "^2.0.5" + }, + "bin": { + "nodemon": "bin/nodemon.js" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/nodemon" + } + }, + "node_modules/nodemon/node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/nodemon/node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/nodemon/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/nodemon/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, "node_modules/normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", @@ -3276,6 +3811,19 @@ "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==", "license": "MIT" }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, "node_modules/prebuild-install": { "version": "7.1.3", "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.3.tgz", @@ -3330,6 +3878,13 @@ "node": ">= 0.10" } }, + "node_modules/pstree.remy": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", + "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==", + "dev": true, + "license": "MIT" + }, "node_modules/pump": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.3.tgz", @@ -3464,6 +4019,19 @@ "node": ">=10" } }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, "node_modules/safe-buffer": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", @@ -3490,6 +4058,15 @@ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", "license": "MIT" }, + "node_modules/sax": { + "version": "1.4.4", + "resolved": "https://registry.npmmirror.com/sax/-/sax-1.4.4.tgz", + "integrity": "sha512-1n3r/tGXO6b6VXMdFT54SHzT9ytu9yr7TaELowdYpMqY/Ao7EnlQGmAQ1+RatX7Tkkdm6hONI2owqNx2aZj5Sw==", + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=11.0.0" + } + }, "node_modules/semver": { "version": "7.7.3", "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", @@ -3703,6 +4280,25 @@ "simple-concat": "^1.0.0" } }, + "node_modules/simple-update-notifier": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz", + "integrity": "sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/sm3": { + "version": "1.0.3", + "resolved": "https://registry.npmmirror.com/sm3/-/sm3-1.0.3.tgz", + "integrity": "sha512-KyFkIfr8QBlFG3uc3NaljaXdYcsbRy1KrSfc4tsQV8jW68jAktGeOcifu530Vx/5LC+PULHT0Rv8LiI8Gw+c1g==", + "license": "MIT" + }, "node_modules/statuses": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz", @@ -3857,6 +4453,19 @@ ], "license": "MIT" }, + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/svg-captcha": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/svg-captcha/-/svg-captcha-1.4.0.tgz", @@ -3937,6 +4546,19 @@ "integrity": "sha512-pkY1fj1cKHb2seWDy0B16HeWyczlJA9/WW3u3c4z/NiWDsO3DOU5D7nhTLE9CF0yXv/QZFY7sEJmj24dK+Rrqw==", "license": "MIT" }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, "node_modules/toidentifier": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", @@ -3946,6 +4568,16 @@ "node": ">=0.6" } }, + "node_modules/touch": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.1.tgz", + "integrity": "sha512-r0eojU4bI8MnHr8c5bNo7lJDdI2qXlWWJk6a9EAFG7vbhTjElYhBVS3/miuE0uOuoLdb8Mc/rVfsmm6eo5o9GA==", + "dev": true, + "license": "ISC", + "bin": { + "nodetouch": "bin/nodetouch.js" + } + }, "node_modules/tslib": { "version": "2.8.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", @@ -3995,6 +4627,19 @@ "node": ">= 0.8" } }, + "node_modules/undefsafe": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz", + "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==", + "dev": true, + "license": "MIT" + }, + "node_modules/undici-types": { + "version": "6.21.0", + "resolved": "https://registry.npmmirror.com/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "license": "MIT" + }, "node_modules/unpipe": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", @@ -4149,6 +4794,28 @@ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", "license": "ISC" }, + "node_modules/xml2js": { + "version": "0.6.2", + "resolved": "https://registry.npmmirror.com/xml2js/-/xml2js-0.6.2.tgz", + "integrity": "sha512-T4rieHaC1EXcES0Kxxj4JWgaUQHDk+qwHcYOCFHfiwKz7tOVPLq7Hjq9dM1WCMhylqMEfP7hMcOIChvotiZegA==", + "license": "MIT", + "dependencies": { + "sax": ">=0.6.0", + "xmlbuilder": "~11.0.0" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/xmlbuilder": { + "version": "11.0.1", + "resolved": "https://registry.npmmirror.com/xmlbuilder/-/xmlbuilder-11.0.1.tgz", + "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", + "license": "MIT", + "engines": { + "node": ">=4.0" + } + }, "node_modules/xtend": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", diff --git a/backend/node_modules/@alicloud/cms20190101/LICENSE b/backend/node_modules/@alicloud/cms20190101/LICENSE new file mode 100644 index 0000000..654233d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/LICENSE @@ -0,0 +1,13 @@ +Copyright (c) 2009-present, Alibaba Cloud All rights reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/README.md b/backend/node_modules/@alicloud/cms20190101/README.md new file mode 100644 index 0000000..57159ef --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/README.md @@ -0,0 +1,25 @@ +English | [简体中文](README-CN.md) +![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg) + +# Alibaba Cloud Cms SDK for NodeJS + +## Installation +If you use `npm` to manage your dependence, you can use the following command: + +```sh + npm install @alicloud/cms20190101 -S +``` + +## Issues +[Opening an Issue](https://github.com/aliyun/alibabacloud-typescript-sdk/issues/new), Issues not conforming to the guidelines may be closed immediately. + +## Usage +[Usage Document](https://github.com/aliyun/alibabacloud-typescript-sdk/blob/master/docs/Usage-EN.md#quick-examples) + +## References +* [Latest Release](https://github.com/aliyun/alibabacloud-typescript-sdk/) + +## License +[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0) + +Copyright (c) 2009-present, Alibaba Cloud All rights reserved. diff --git a/backend/node_modules/@alicloud/cms20190101/dist/client.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/client.d.ts new file mode 100644 index 0000000..fc77c88 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/client.d.ts @@ -0,0 +1,3038 @@ +import * as $dara from '@darabonba/typescript'; +import OpenApi from '@alicloud/openapi-core'; +import { $OpenApiUtil } from '@alicloud/openapi-core'; +import * as $_model from './models/model'; +export * from './models/model'; +export default class Client extends OpenApi { + constructor(config: $OpenApiUtil.Config); + getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: { + [key: string]: string; + }, endpoint: string): string; + /** + * Adds tags to an application group. + * + * @remarks + * This topic provides an example on how to add a tag to an application group whose ID is `7301****`. In this example, the key of the tag is `key1` and the value of the tag is `value1`. + * + * @param request - AddTagsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns AddTagsResponse + */ + addTagsWithOptions(request: $_model.AddTagsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.AddTagsResponse>; + /** + * Adds tags to an application group. + * + * @remarks + * This topic provides an example on how to add a tag to an application group whose ID is `7301****`. In this example, the key of the tag is `key1` and the value of the tag is `value1`. + * + * @param request - AddTagsRequest + * @returns AddTagsResponse + */ + addTags(request: $_model.AddTagsRequest): Promise<$_model.AddTagsResponse>; + /** + * Applies an alert template to an application group to generate an alert rule. + * + * @remarks + * In this example, the `700****` alert template is applied to the `123456` application group. For the generated alert rule, the ID is `applyTemplate8ab74c6b-9f27-47ab-8841-de01dc08****`, and the name is `test123`. + * + * @param request - ApplyMetricRuleTemplateRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ApplyMetricRuleTemplateResponse + */ + applyMetricRuleTemplateWithOptions(request: $_model.ApplyMetricRuleTemplateRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ApplyMetricRuleTemplateResponse>; + /** + * Applies an alert template to an application group to generate an alert rule. + * + * @remarks + * In this example, the `700****` alert template is applied to the `123456` application group. For the generated alert rule, the ID is `applyTemplate8ab74c6b-9f27-47ab-8841-de01dc08****`, and the name is `test123`. + * + * @param request - ApplyMetricRuleTemplateRequest + * @returns ApplyMetricRuleTemplateResponse + */ + applyMetricRuleTemplate(request: $_model.ApplyMetricRuleTemplateRequest): Promise<$_model.ApplyMetricRuleTemplateResponse>; + /** + * Creates site monitoring tasks. + * + * @remarks + * This topic provides an example on how to create a site monitoring task named `HangZhou_ECS1`. The URL that is monitored by the task is `https://www.aliyun.com` and the type of the task is `HTTP`. The returned result shows that the site monitoring task is created. The name of the site monitoring task is `HangZhou_ECS1` and the task ID is `679fbe4f-b80b-4706-91b2-5427b43e****`. + * + * @param request - BatchCreateInstantSiteMonitorRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns BatchCreateInstantSiteMonitorResponse + */ + batchCreateInstantSiteMonitorWithOptions(request: $_model.BatchCreateInstantSiteMonitorRequest, runtime: $dara.RuntimeOptions): Promise<$_model.BatchCreateInstantSiteMonitorResponse>; + /** + * Creates site monitoring tasks. + * + * @remarks + * This topic provides an example on how to create a site monitoring task named `HangZhou_ECS1`. The URL that is monitored by the task is `https://www.aliyun.com` and the type of the task is `HTTP`. The returned result shows that the site monitoring task is created. The name of the site monitoring task is `HangZhou_ECS1` and the task ID is `679fbe4f-b80b-4706-91b2-5427b43e****`. + * + * @param request - BatchCreateInstantSiteMonitorRequest + * @returns BatchCreateInstantSiteMonitorResponse + */ + batchCreateInstantSiteMonitor(request: $_model.BatchCreateInstantSiteMonitorRequest): Promise<$_model.BatchCreateInstantSiteMonitorResponse>; + /** + * Exports the monitoring data that is defined in the Cursor operation. + * + * @remarks + * ### [](#)Prerequisites + * The `Cursor` information is returned by calling the [Cursor](https://help.aliyun.com/document_detail/2330730.html) operation. + * ### [](#)Description + * This topic provides an example on how to export the monitoring data of the `cpu_idle` metric for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. The `Cursor` information is specified. A maximum of 1,000 data entries can be returned in each response. + * + * @param tmpReq - BatchExportRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns BatchExportResponse + */ + batchExportWithOptions(tmpReq: $_model.BatchExportRequest, runtime: $dara.RuntimeOptions): Promise<$_model.BatchExportResponse>; + /** + * Exports the monitoring data that is defined in the Cursor operation. + * + * @remarks + * ### [](#)Prerequisites + * The `Cursor` information is returned by calling the [Cursor](https://help.aliyun.com/document_detail/2330730.html) operation. + * ### [](#)Description + * This topic provides an example on how to export the monitoring data of the `cpu_idle` metric for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. The `Cursor` information is specified. A maximum of 1,000 data entries can be returned in each response. + * + * @param request - BatchExportRequest + * @returns BatchExportResponse + */ + batchExport(request: $_model.BatchExportRequest): Promise<$_model.BatchExportResponse>; + /** + * Creates an application group based on the tags of cloud resources. + * + * @remarks + * This operation is available for Elastic Compute Service (ECS), ApsaraDB RDS, and Server Load Balancer (SLB). + * This topic provides an example to show how to create an application group for resources whose tag key is `ecs_instance`. In this example, the alert contact group of the application group is `ECS_Group`. + * + * @param request - CreateDynamicTagGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateDynamicTagGroupResponse + */ + createDynamicTagGroupWithOptions(request: $_model.CreateDynamicTagGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateDynamicTagGroupResponse>; + /** + * Creates an application group based on the tags of cloud resources. + * + * @remarks + * This operation is available for Elastic Compute Service (ECS), ApsaraDB RDS, and Server Load Balancer (SLB). + * This topic provides an example to show how to create an application group for resources whose tag key is `ecs_instance`. In this example, the alert contact group of the application group is `ECS_Group`. + * + * @param request - CreateDynamicTagGroupRequest + * @returns CreateDynamicTagGroupResponse + */ + createDynamicTagGroup(request: $_model.CreateDynamicTagGroupRequest): Promise<$_model.CreateDynamicTagGroupResponse>; + /** + * Creates one or more alert rules for a specified application group. + * + * @remarks + * This topic provides an example to show how to create an alert rule for the `cpu_total` metric of Elastic Compute Service (ECS) in the `123456` application group. The ID of the alert rule is `456789`. The name of the alert rule is `ECS_Rule1`. The alert level is `Critical`. The statistical method is `Average`. The comparison operator is `GreaterThanOrEqualToThreshold`. The alert threshold is `90`. The number of alert retries is `3`. The response shows that the alert rule named `ECS_Rule1` is created. + * + * @param request - CreateGroupMetricRulesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateGroupMetricRulesResponse + */ + createGroupMetricRulesWithOptions(request: $_model.CreateGroupMetricRulesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateGroupMetricRulesResponse>; + /** + * Creates one or more alert rules for a specified application group. + * + * @remarks + * This topic provides an example to show how to create an alert rule for the `cpu_total` metric of Elastic Compute Service (ECS) in the `123456` application group. The ID of the alert rule is `456789`. The name of the alert rule is `ECS_Rule1`. The alert level is `Critical`. The statistical method is `Average`. The comparison operator is `GreaterThanOrEqualToThreshold`. The alert threshold is `90`. The number of alert retries is `3`. The response shows that the alert rule named `ECS_Rule1` is created. + * + * @param request - CreateGroupMetricRulesRequest + * @returns CreateGroupMetricRulesResponse + */ + createGroupMetricRules(request: $_model.CreateGroupMetricRulesRequest): Promise<$_model.CreateGroupMetricRulesResponse>; + /** + * Creates a process monitoring task for an application group. + * + * @param request - CreateGroupMonitoringAgentProcessRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateGroupMonitoringAgentProcessResponse + */ + createGroupMonitoringAgentProcessWithOptions(request: $_model.CreateGroupMonitoringAgentProcessRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateGroupMonitoringAgentProcessResponse>; + /** + * Creates a process monitoring task for an application group. + * + * @param request - CreateGroupMonitoringAgentProcessRequest + * @returns CreateGroupMonitoringAgentProcessResponse + */ + createGroupMonitoringAgentProcess(request: $_model.CreateGroupMonitoringAgentProcessRequest): Promise<$_model.CreateGroupMonitoringAgentProcessResponse>; + /** + * Creates an availability monitoring task. + * + * @remarks + * This topic provides an example on how to create an availability monitoring task named `task1` in an application group named `123456`. The TaskType parameter of the task is set to `HTTP`. After you start the task, the system sends alerts by using the specified email address and DingTalk chatbot. + * + * @param request - CreateHostAvailabilityRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateHostAvailabilityResponse + */ + createHostAvailabilityWithOptions(request: $_model.CreateHostAvailabilityRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateHostAvailabilityResponse>; + /** + * Creates an availability monitoring task. + * + * @remarks + * This topic provides an example on how to create an availability monitoring task named `task1` in an application group named `123456`. The TaskType parameter of the task is set to `HTTP`. After you start the task, the system sends alerts by using the specified email address and DingTalk chatbot. + * + * @param request - CreateHostAvailabilityRequest + * @returns CreateHostAvailabilityResponse + */ + createHostAvailability(request: $_model.CreateHostAvailabilityRequest): Promise<$_model.CreateHostAvailabilityResponse>; + /** + * Creates a namespace. + * + * @remarks + * ## [](#)Prerequisites + * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](https://help.aliyun.com/document_detail/250773.html). + * ## [](#)Operation description + * This topic provides an example on how to create a namespace named `aliyun`. In this example, the data retention period of the namespace is set to `cms.s1.3xlarge`. The returned result indicates that the namespace is created. + * + * @param request - CreateHybridMonitorNamespaceRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateHybridMonitorNamespaceResponse + */ + createHybridMonitorNamespaceWithOptions(request: $_model.CreateHybridMonitorNamespaceRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateHybridMonitorNamespaceResponse>; + /** + * Creates a namespace. + * + * @remarks + * ## [](#)Prerequisites + * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](https://help.aliyun.com/document_detail/250773.html). + * ## [](#)Operation description + * This topic provides an example on how to create a namespace named `aliyun`. In this example, the data retention period of the namespace is set to `cms.s1.3xlarge`. The returned result indicates that the namespace is created. + * + * @param request - CreateHybridMonitorNamespaceRequest + * @returns CreateHybridMonitorNamespaceResponse + */ + createHybridMonitorNamespace(request: $_model.CreateHybridMonitorNamespaceRequest): Promise<$_model.CreateHybridMonitorNamespaceResponse>; + /** + * Creates a Logstore group of Hybrid Cloud Monitoring. + * + * @remarks + * ### [](#)Prerequisites + * Simple Log Service is activated. A project and a Logstore are created in Simple Log Service. For more information, see [Getting Started](https://help.aliyun.com/document_detail/54604.html). + * ### [](#)Operation description + * This topic provides an example on how to create a Logstore group named `Logstore_test`. The region ID is `cn-hangzhou`. The project is `aliyun-project`. The Logstore is `Logstore-ECS`. The response shows that the Logstore group is created. + * + * @param request - CreateHybridMonitorSLSGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateHybridMonitorSLSGroupResponse + */ + createHybridMonitorSLSGroupWithOptions(request: $_model.CreateHybridMonitorSLSGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateHybridMonitorSLSGroupResponse>; + /** + * Creates a Logstore group of Hybrid Cloud Monitoring. + * + * @remarks + * ### [](#)Prerequisites + * Simple Log Service is activated. A project and a Logstore are created in Simple Log Service. For more information, see [Getting Started](https://help.aliyun.com/document_detail/54604.html). + * ### [](#)Operation description + * This topic provides an example on how to create a Logstore group named `Logstore_test`. The region ID is `cn-hangzhou`. The project is `aliyun-project`. The Logstore is `Logstore-ECS`. The response shows that the Logstore group is created. + * + * @param request - CreateHybridMonitorSLSGroupRequest + * @returns CreateHybridMonitorSLSGroupResponse + */ + createHybridMonitorSLSGroup(request: $_model.CreateHybridMonitorSLSGroupRequest): Promise<$_model.CreateHybridMonitorSLSGroupResponse>; + /** + * Creates a metric import task for an Alibaba Cloud service or creates a metric for logs imported from Simple Log Service. + * + * @remarks + * # [](#)Prerequisites + * * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](https://help.aliyun.com/document_detail/250773.html). + * * If you want to create a metric for logs imported from Simple Log Service, make sure that you have activated Simple Log Service and created a project and a Logstore. For more information, see [Getting Started](https://help.aliyun.com/document_detail/54604.html). + * # [](#)Description + * This topic provides an example on how to create a metric import task named `aliyun_task` for Elastic Compute Service (ECS). The task imports the `cpu_total` metric to the `aliyun` namespace. The response shows that the metric import task is created. + * + * @param request - CreateHybridMonitorTaskRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateHybridMonitorTaskResponse + */ + createHybridMonitorTaskWithOptions(request: $_model.CreateHybridMonitorTaskRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateHybridMonitorTaskResponse>; + /** + * Creates a metric import task for an Alibaba Cloud service or creates a metric for logs imported from Simple Log Service. + * + * @remarks + * # [](#)Prerequisites + * * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](https://help.aliyun.com/document_detail/250773.html). + * * If you want to create a metric for logs imported from Simple Log Service, make sure that you have activated Simple Log Service and created a project and a Logstore. For more information, see [Getting Started](https://help.aliyun.com/document_detail/54604.html). + * # [](#)Description + * This topic provides an example on how to create a metric import task named `aliyun_task` for Elastic Compute Service (ECS). The task imports the `cpu_total` metric to the `aliyun` namespace. The response shows that the metric import task is created. + * + * @param request - CreateHybridMonitorTaskRequest + * @returns CreateHybridMonitorTaskResponse + */ + createHybridMonitorTask(request: $_model.CreateHybridMonitorTaskRequest): Promise<$_model.CreateHybridMonitorTaskResponse>; + /** + * Creates an instant test task. + * + * @remarks + * You can create an instant test task only by using the Alibaba Cloud account that you used to enable Network Analysis and Monitoring. + * This topic provides an example to show how to create an instant test task. The name of the task is `task1`. The tested address is `http://www.aliyun.com`. The test type is `HTTP`. The number of detection points is `1`. + * + * @param request - CreateInstantSiteMonitorRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateInstantSiteMonitorResponse + */ + createInstantSiteMonitorWithOptions(request: $_model.CreateInstantSiteMonitorRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateInstantSiteMonitorResponse>; + /** + * Creates an instant test task. + * + * @remarks + * You can create an instant test task only by using the Alibaba Cloud account that you used to enable Network Analysis and Monitoring. + * This topic provides an example to show how to create an instant test task. The name of the task is `task1`. The tested address is `http://www.aliyun.com`. The test type is `HTTP`. The number of detection points is `1`. + * + * @param request - CreateInstantSiteMonitorRequest + * @returns CreateInstantSiteMonitorResponse + */ + createInstantSiteMonitor(request: $_model.CreateInstantSiteMonitorRequest): Promise<$_model.CreateInstantSiteMonitorResponse>; + /** + * Creates a blacklist policy. + * + * @remarks + * ### Background information + * * CloudMonitor blocks alert notifications based on the blacklist policies that take effect. To block alert notifications when the value of a metric that belongs to a cloud service reaches the threshold that you specified, add the metric to a blacklist policy. + * * CloudMonitor allows you to create blacklist policies only based on threshold metrics. You cannot create blacklist policies based on system events. For more information about the cloud services and the thresholds of the metrics that are supported by CloudMonitor, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @param request - CreateMetricRuleBlackListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateMetricRuleBlackListResponse + */ + createMetricRuleBlackListWithOptions(request: $_model.CreateMetricRuleBlackListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateMetricRuleBlackListResponse>; + /** + * Creates a blacklist policy. + * + * @remarks + * ### Background information + * * CloudMonitor blocks alert notifications based on the blacklist policies that take effect. To block alert notifications when the value of a metric that belongs to a cloud service reaches the threshold that you specified, add the metric to a blacklist policy. + * * CloudMonitor allows you to create blacklist policies only based on threshold metrics. You cannot create blacklist policies based on system events. For more information about the cloud services and the thresholds of the metrics that are supported by CloudMonitor, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @param request - CreateMetricRuleBlackListRequest + * @returns CreateMetricRuleBlackListResponse + */ + createMetricRuleBlackList(request: $_model.CreateMetricRuleBlackListRequest): Promise<$_model.CreateMetricRuleBlackListResponse>; + /** + * Associates resources with an alert rule. + * + * @param request - CreateMetricRuleResourcesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateMetricRuleResourcesResponse + */ + createMetricRuleResourcesWithOptions(request: $_model.CreateMetricRuleResourcesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateMetricRuleResourcesResponse>; + /** + * Associates resources with an alert rule. + * + * @param request - CreateMetricRuleResourcesRequest + * @returns CreateMetricRuleResourcesResponse + */ + createMetricRuleResources(request: $_model.CreateMetricRuleResourcesRequest): Promise<$_model.CreateMetricRuleResourcesResponse>; + /** + * Creates an alert template. + * + * @param request - CreateMetricRuleTemplateRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateMetricRuleTemplateResponse + */ + createMetricRuleTemplateWithOptions(request: $_model.CreateMetricRuleTemplateRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateMetricRuleTemplateResponse>; + /** + * Creates an alert template. + * + * @param request - CreateMetricRuleTemplateRequest + * @returns CreateMetricRuleTemplateResponse + */ + createMetricRuleTemplate(request: $_model.CreateMetricRuleTemplateRequest): Promise<$_model.CreateMetricRuleTemplateResponse>; + /** + * Creates a task to monitor a process. + * + * @param request - CreateMonitorAgentProcessRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateMonitorAgentProcessResponse + */ + createMonitorAgentProcessWithOptions(request: $_model.CreateMonitorAgentProcessRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateMonitorAgentProcessResponse>; + /** + * Creates a task to monitor a process. + * + * @param request - CreateMonitorAgentProcessRequest + * @returns CreateMonitorAgentProcessResponse + */ + createMonitorAgentProcess(request: $_model.CreateMonitorAgentProcessRequest): Promise<$_model.CreateMonitorAgentProcessResponse>; + /** + * Creates an application group. + * + * @remarks + * In this example, an application group named `ECS_Group` is created. + * + * @param request - CreateMonitorGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateMonitorGroupResponse + */ + createMonitorGroupWithOptions(request: $_model.CreateMonitorGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateMonitorGroupResponse>; + /** + * Creates an application group. + * + * @remarks + * In this example, an application group named `ECS_Group` is created. + * + * @param request - CreateMonitorGroupRequest + * @returns CreateMonitorGroupResponse + */ + createMonitorGroup(request: $_model.CreateMonitorGroupRequest): Promise<$_model.CreateMonitorGroupResponse>; + /** + * Creates an application group by using a resource group. + * + * @remarks + * This topic provides an example on how to create an application group by using the resource group `CloudMonitor` and the alert contact group `ECS_Group`. The region ID of the resource group is `cn-hangzhou`. + * + * @param request - CreateMonitorGroupByResourceGroupIdRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateMonitorGroupByResourceGroupIdResponse + */ + createMonitorGroupByResourceGroupIdWithOptions(request: $_model.CreateMonitorGroupByResourceGroupIdRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateMonitorGroupByResourceGroupIdResponse>; + /** + * Creates an application group by using a resource group. + * + * @remarks + * This topic provides an example on how to create an application group by using the resource group `CloudMonitor` and the alert contact group `ECS_Group`. The region ID of the resource group is `cn-hangzhou`. + * + * @param request - CreateMonitorGroupByResourceGroupIdRequest + * @returns CreateMonitorGroupByResourceGroupIdResponse + */ + createMonitorGroupByResourceGroupId(request: $_model.CreateMonitorGroupByResourceGroupIdRequest): Promise<$_model.CreateMonitorGroupByResourceGroupIdResponse>; + /** + * Adds resources to an application group. + * + * @remarks + * You can add a maximum of 1,000 instances to an application group at a time. You can add a maximum of 3,000 instances of an Alibaba Cloud service to an application group. The total number of instances that you can add to an application group is unlimited. + * In this example, an Elastic Compute Service (ECS) instance in the `China (Hangzhou)` region is added to the `3607****` application group. The instance ID is `i-2ze26xj5wwy12****` and the instance name is `test-instance-ecs`. + * + * @param request - CreateMonitorGroupInstancesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateMonitorGroupInstancesResponse + */ + createMonitorGroupInstancesWithOptions(request: $_model.CreateMonitorGroupInstancesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateMonitorGroupInstancesResponse>; + /** + * Adds resources to an application group. + * + * @remarks + * You can add a maximum of 1,000 instances to an application group at a time. You can add a maximum of 3,000 instances of an Alibaba Cloud service to an application group. The total number of instances that you can add to an application group is unlimited. + * In this example, an Elastic Compute Service (ECS) instance in the `China (Hangzhou)` region is added to the `3607****` application group. The instance ID is `i-2ze26xj5wwy12****` and the instance name is `test-instance-ecs`. + * + * @param request - CreateMonitorGroupInstancesRequest + * @returns CreateMonitorGroupInstancesResponse + */ + createMonitorGroupInstances(request: $_model.CreateMonitorGroupInstancesRequest): Promise<$_model.CreateMonitorGroupInstancesResponse>; + /** + * Creates a policy to pause alert notifications for an application group. + * + * @remarks + * If the policy is valid, no alert notifications are sent for the application group. + * This topic describes how to create a `PauseNotify` policy to pause alert notifications for the `7301****` application group. The StartTime parameter is set to `1622949300000` and the EndTime parameter is set to `1623208500000`. This indicates that the policy is valid from `2021-06-06 11:15:00 UTC+8` to `2021-06-09 11:15:00 UTC+8`. + * + * @param request - CreateMonitorGroupNotifyPolicyRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateMonitorGroupNotifyPolicyResponse + */ + createMonitorGroupNotifyPolicyWithOptions(request: $_model.CreateMonitorGroupNotifyPolicyRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateMonitorGroupNotifyPolicyResponse>; + /** + * Creates a policy to pause alert notifications for an application group. + * + * @remarks + * If the policy is valid, no alert notifications are sent for the application group. + * This topic describes how to create a `PauseNotify` policy to pause alert notifications for the `7301****` application group. The StartTime parameter is set to `1622949300000` and the EndTime parameter is set to `1623208500000`. This indicates that the policy is valid from `2021-06-06 11:15:00 UTC+8` to `2021-06-09 11:15:00 UTC+8`. + * + * @param request - CreateMonitorGroupNotifyPolicyRequest + * @returns CreateMonitorGroupNotifyPolicyResponse + */ + createMonitorGroupNotifyPolicy(request: $_model.CreateMonitorGroupNotifyPolicyRequest): Promise<$_model.CreateMonitorGroupNotifyPolicyResponse>; + /** + * Creates a task to monitor a process. + * + * @param request - CreateMonitoringAgentProcessRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateMonitoringAgentProcessResponse + */ + createMonitoringAgentProcessWithOptions(request: $_model.CreateMonitoringAgentProcessRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateMonitoringAgentProcessResponse>; + /** + * Creates a task to monitor a process. + * + * @param request - CreateMonitoringAgentProcessRequest + * @returns CreateMonitoringAgentProcessResponse + */ + createMonitoringAgentProcess(request: $_model.CreateMonitoringAgentProcessRequest): Promise<$_model.CreateMonitoringAgentProcessResponse>; + /** + * Creates a site monitoring task. + * + * @remarks + * This topic provides an example on how to create a site monitoring task named `HanZhou_ECS1`. The URL that is monitored by the task is `https://www.aliyun.com` and the type of the task is `HTTPS`. + * + * @param request - CreateSiteMonitorRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateSiteMonitorResponse + */ + createSiteMonitorWithOptions(request: $_model.CreateSiteMonitorRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateSiteMonitorResponse>; + /** + * Creates a site monitoring task. + * + * @remarks + * This topic provides an example on how to create a site monitoring task named `HanZhou_ECS1`. The URL that is monitored by the task is `https://www.aliyun.com` and the type of the task is `HTTPS`. + * + * @param request - CreateSiteMonitorRequest + * @returns CreateSiteMonitorResponse + */ + createSiteMonitor(request: $_model.CreateSiteMonitorRequest): Promise<$_model.CreateSiteMonitorResponse>; + /** + * Defines the range of monitoring data that you want to export. The Cursor information is returned. When you call the BatchExport operation for the first time, you must specify the Cursor information. + * + * @remarks + * ### [](#)Prerequisites + * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](https://help.aliyun.com/document_detail/250773.html). + * ### [](#)Background information + * You can call this operation to obtain the Cursor information and then call the [BatchExport](https://help.aliyun.com/document_detail/2329847.html) operation to export the monitoring data. + * ### [](#)Description + * This topic provides an example on how to define the monitoring data of a specified metric for a specified cloud service. In this example, the namespace of the cloud service is set to `acs_ecs_dashboard`, the metric is set to `cpu_idle`, the start time is set to `1641627000000`, and the end time is set to `1641645000000`. The number of idle CPU cores on your Elastic Compute Service (ECS) instances is measured every 60 seconds from 15:30:00, January 8, 2022 to 20:30:00, January 8, 2022. The `Cursor` information is returned. + * + * @param tmpReq - CursorRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CursorResponse + */ + cursorWithOptions(tmpReq: $_model.CursorRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CursorResponse>; + /** + * Defines the range of monitoring data that you want to export. The Cursor information is returned. When you call the BatchExport operation for the first time, you must specify the Cursor information. + * + * @remarks + * ### [](#)Prerequisites + * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](https://help.aliyun.com/document_detail/250773.html). + * ### [](#)Background information + * You can call this operation to obtain the Cursor information and then call the [BatchExport](https://help.aliyun.com/document_detail/2329847.html) operation to export the monitoring data. + * ### [](#)Description + * This topic provides an example on how to define the monitoring data of a specified metric for a specified cloud service. In this example, the namespace of the cloud service is set to `acs_ecs_dashboard`, the metric is set to `cpu_idle`, the start time is set to `1641627000000`, and the end time is set to `1641645000000`. The number of idle CPU cores on your Elastic Compute Service (ECS) instances is measured every 60 seconds from 15:30:00, January 8, 2022 to 20:30:00, January 8, 2022. The `Cursor` information is returned. + * + * @param request - CursorRequest + * @returns CursorResponse + */ + cursor(request: $_model.CursorRequest): Promise<$_model.CursorResponse>; + /** + * Deletes an alert contact. + * + * @param request - DeleteContactRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteContactResponse + */ + deleteContactWithOptions(request: $_model.DeleteContactRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteContactResponse>; + /** + * Deletes an alert contact. + * + * @param request - DeleteContactRequest + * @returns DeleteContactResponse + */ + deleteContact(request: $_model.DeleteContactRequest): Promise<$_model.DeleteContactResponse>; + /** + * Deletes an alert contact group. + * + * @param request - DeleteContactGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteContactGroupResponse + */ + deleteContactGroupWithOptions(request: $_model.DeleteContactGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteContactGroupResponse>; + /** + * Deletes an alert contact group. + * + * @param request - DeleteContactGroupRequest + * @returns DeleteContactGroupResponse + */ + deleteContactGroup(request: $_model.DeleteContactGroupRequest): Promise<$_model.DeleteContactGroupResponse>; + /** + * Deletes the reported monitoring data of a metric. + * + * @param request - DeleteCustomMetricRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteCustomMetricResponse + */ + deleteCustomMetricWithOptions(request: $_model.DeleteCustomMetricRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteCustomMetricResponse>; + /** + * Deletes the reported monitoring data of a metric. + * + * @param request - DeleteCustomMetricRequest + * @returns DeleteCustomMetricResponse + */ + deleteCustomMetric(request: $_model.DeleteCustomMetricRequest): Promise<$_model.DeleteCustomMetricResponse>; + /** + * Deletes a tag rule. + * + * @param request - DeleteDynamicTagGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteDynamicTagGroupResponse + */ + deleteDynamicTagGroupWithOptions(request: $_model.DeleteDynamicTagGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteDynamicTagGroupResponse>; + /** + * Deletes a tag rule. + * + * @param request - DeleteDynamicTagGroupRequest + * @returns DeleteDynamicTagGroupResponse + */ + deleteDynamicTagGroup(request: $_model.DeleteDynamicTagGroupRequest): Promise<$_model.DeleteDynamicTagGroupResponse>; + /** + * Deletes the push channels of an event-triggered alert rule. + * + * @param request - DeleteEventRuleTargetsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteEventRuleTargetsResponse + */ + deleteEventRuleTargetsWithOptions(request: $_model.DeleteEventRuleTargetsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteEventRuleTargetsResponse>; + /** + * Deletes the push channels of an event-triggered alert rule. + * + * @param request - DeleteEventRuleTargetsRequest + * @returns DeleteEventRuleTargetsResponse + */ + deleteEventRuleTargets(request: $_model.DeleteEventRuleTargetsRequest): Promise<$_model.DeleteEventRuleTargetsResponse>; + /** + * Deletes event-triggered alert rules. + * + * @param request - DeleteEventRulesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteEventRulesResponse + */ + deleteEventRulesWithOptions(request: $_model.DeleteEventRulesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteEventRulesResponse>; + /** + * Deletes event-triggered alert rules. + * + * @param request - DeleteEventRulesRequest + * @returns DeleteEventRulesResponse + */ + deleteEventRules(request: $_model.DeleteEventRulesRequest): Promise<$_model.DeleteEventRulesResponse>; + /** + * Deletes a configuration set that is used to export monitoring data. + * + * @param request - DeleteExporterOutputRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteExporterOutputResponse + */ + deleteExporterOutputWithOptions(request: $_model.DeleteExporterOutputRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteExporterOutputResponse>; + /** + * Deletes a configuration set that is used to export monitoring data. + * + * @param request - DeleteExporterOutputRequest + * @returns DeleteExporterOutputResponse + */ + deleteExporterOutput(request: $_model.DeleteExporterOutputRequest): Promise<$_model.DeleteExporterOutputResponse>; + /** + * Deletes a data export rule. + * + * @param request - DeleteExporterRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteExporterRuleResponse + */ + deleteExporterRuleWithOptions(request: $_model.DeleteExporterRuleRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteExporterRuleResponse>; + /** + * Deletes a data export rule. + * + * @param request - DeleteExporterRuleRequest + * @returns DeleteExporterRuleResponse + */ + deleteExporterRule(request: $_model.DeleteExporterRuleRequest): Promise<$_model.DeleteExporterRuleResponse>; + /** + * Deletes a process monitoring task for an application group. + * + * @param request - DeleteGroupMonitoringAgentProcessRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteGroupMonitoringAgentProcessResponse + */ + deleteGroupMonitoringAgentProcessWithOptions(request: $_model.DeleteGroupMonitoringAgentProcessRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteGroupMonitoringAgentProcessResponse>; + /** + * Deletes a process monitoring task for an application group. + * + * @param request - DeleteGroupMonitoringAgentProcessRequest + * @returns DeleteGroupMonitoringAgentProcessResponse + */ + deleteGroupMonitoringAgentProcess(request: $_model.DeleteGroupMonitoringAgentProcessRequest): Promise<$_model.DeleteGroupMonitoringAgentProcessResponse>; + /** + * Deletes availability monitoring tasks. + * + * @param request - DeleteHostAvailabilityRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteHostAvailabilityResponse + */ + deleteHostAvailabilityWithOptions(request: $_model.DeleteHostAvailabilityRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteHostAvailabilityResponse>; + /** + * Deletes availability monitoring tasks. + * + * @param request - DeleteHostAvailabilityRequest + * @returns DeleteHostAvailabilityResponse + */ + deleteHostAvailability(request: $_model.DeleteHostAvailabilityRequest): Promise<$_model.DeleteHostAvailabilityResponse>; + /** + * Deletes a namespace. + * + * @remarks + * > If a metric import task is created for metrics in a namespace, you cannot delete the namespace unless you delete the task first. + * This topic provides an example on how to delete a namespace named `aliyun`. The response shows that the namespace is deleted. + * + * @param request - DeleteHybridMonitorNamespaceRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteHybridMonitorNamespaceResponse + */ + deleteHybridMonitorNamespaceWithOptions(request: $_model.DeleteHybridMonitorNamespaceRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteHybridMonitorNamespaceResponse>; + /** + * Deletes a namespace. + * + * @remarks + * > If a metric import task is created for metrics in a namespace, you cannot delete the namespace unless you delete the task first. + * This topic provides an example on how to delete a namespace named `aliyun`. The response shows that the namespace is deleted. + * + * @param request - DeleteHybridMonitorNamespaceRequest + * @returns DeleteHybridMonitorNamespaceResponse + */ + deleteHybridMonitorNamespace(request: $_model.DeleteHybridMonitorNamespaceRequest): Promise<$_model.DeleteHybridMonitorNamespaceResponse>; + /** + * Deletes a Logstore group. + * + * @remarks + * This topic provides an example on how to delete a Logstore group named `Logstore_test`. The response shows that the Logstore group is deleted. + * + * @param request - DeleteHybridMonitorSLSGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteHybridMonitorSLSGroupResponse + */ + deleteHybridMonitorSLSGroupWithOptions(request: $_model.DeleteHybridMonitorSLSGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteHybridMonitorSLSGroupResponse>; + /** + * Deletes a Logstore group. + * + * @remarks + * This topic provides an example on how to delete a Logstore group named `Logstore_test`. The response shows that the Logstore group is deleted. + * + * @param request - DeleteHybridMonitorSLSGroupRequest + * @returns DeleteHybridMonitorSLSGroupResponse + */ + deleteHybridMonitorSLSGroup(request: $_model.DeleteHybridMonitorSLSGroupRequest): Promise<$_model.DeleteHybridMonitorSLSGroupResponse>; + /** + * Deletes a metric import task for Alibaba Cloud services or a metric for the logs that are imported from Log Service. + * + * @remarks + * This topic provides an example on how to delete a metric import task whose ID is `36****`. The returned result indicates that the metric import task is deleted. + * + * @param request - DeleteHybridMonitorTaskRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteHybridMonitorTaskResponse + */ + deleteHybridMonitorTaskWithOptions(request: $_model.DeleteHybridMonitorTaskRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteHybridMonitorTaskResponse>; + /** + * Deletes a metric import task for Alibaba Cloud services or a metric for the logs that are imported from Log Service. + * + * @remarks + * This topic provides an example on how to delete a metric import task whose ID is `36****`. The returned result indicates that the metric import task is deleted. + * + * @param request - DeleteHybridMonitorTaskRequest + * @returns DeleteHybridMonitorTaskResponse + */ + deleteHybridMonitorTask(request: $_model.DeleteHybridMonitorTaskRequest): Promise<$_model.DeleteHybridMonitorTaskResponse>; + /** + * Deletes a log monitoring metric. + * + * @param request - DeleteLogMonitorRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteLogMonitorResponse + */ + deleteLogMonitorWithOptions(request: $_model.DeleteLogMonitorRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteLogMonitorResponse>; + /** + * Deletes a log monitoring metric. + * + * @param request - DeleteLogMonitorRequest + * @returns DeleteLogMonitorResponse + */ + deleteLogMonitor(request: $_model.DeleteLogMonitorRequest): Promise<$_model.DeleteLogMonitorResponse>; + /** + * Deletes multiple blacklist policies at a time. + * + * @param request - DeleteMetricRuleBlackListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteMetricRuleBlackListResponse + */ + deleteMetricRuleBlackListWithOptions(request: $_model.DeleteMetricRuleBlackListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteMetricRuleBlackListResponse>; + /** + * Deletes multiple blacklist policies at a time. + * + * @param request - DeleteMetricRuleBlackListRequest + * @returns DeleteMetricRuleBlackListResponse + */ + deleteMetricRuleBlackList(request: $_model.DeleteMetricRuleBlackListRequest): Promise<$_model.DeleteMetricRuleBlackListResponse>; + /** + * Disassociates resources from an alert rule. + * + * @param request - DeleteMetricRuleResourcesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteMetricRuleResourcesResponse + */ + deleteMetricRuleResourcesWithOptions(request: $_model.DeleteMetricRuleResourcesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteMetricRuleResourcesResponse>; + /** + * Disassociates resources from an alert rule. + * + * @param request - DeleteMetricRuleResourcesRequest + * @returns DeleteMetricRuleResourcesResponse + */ + deleteMetricRuleResources(request: $_model.DeleteMetricRuleResourcesRequest): Promise<$_model.DeleteMetricRuleResourcesResponse>; + /** + * Delete the push channels of an alert rule. + * + * @param request - DeleteMetricRuleTargetsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteMetricRuleTargetsResponse + */ + deleteMetricRuleTargetsWithOptions(request: $_model.DeleteMetricRuleTargetsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteMetricRuleTargetsResponse>; + /** + * Delete the push channels of an alert rule. + * + * @param request - DeleteMetricRuleTargetsRequest + * @returns DeleteMetricRuleTargetsResponse + */ + deleteMetricRuleTargets(request: $_model.DeleteMetricRuleTargetsRequest): Promise<$_model.DeleteMetricRuleTargetsResponse>; + /** + * Deletes an alert template. + * + * @param request - DeleteMetricRuleTemplateRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteMetricRuleTemplateResponse + */ + deleteMetricRuleTemplateWithOptions(request: $_model.DeleteMetricRuleTemplateRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteMetricRuleTemplateResponse>; + /** + * Deletes an alert template. + * + * @param request - DeleteMetricRuleTemplateRequest + * @returns DeleteMetricRuleTemplateResponse + */ + deleteMetricRuleTemplate(request: $_model.DeleteMetricRuleTemplateRequest): Promise<$_model.DeleteMetricRuleTemplateResponse>; + /** + * Deletes one or more alert rules. + * + * @param request - DeleteMetricRulesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteMetricRulesResponse + */ + deleteMetricRulesWithOptions(request: $_model.DeleteMetricRulesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteMetricRulesResponse>; + /** + * Deletes one or more alert rules. + * + * @param request - DeleteMetricRulesRequest + * @returns DeleteMetricRulesResponse + */ + deleteMetricRules(request: $_model.DeleteMetricRulesRequest): Promise<$_model.DeleteMetricRulesResponse>; + /** + * Deletes an application group. + * + * @param request - DeleteMonitorGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteMonitorGroupResponse + */ + deleteMonitorGroupWithOptions(request: $_model.DeleteMonitorGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteMonitorGroupResponse>; + /** + * Deletes an application group. + * + * @param request - DeleteMonitorGroupRequest + * @returns DeleteMonitorGroupResponse + */ + deleteMonitorGroup(request: $_model.DeleteMonitorGroupRequest): Promise<$_model.DeleteMonitorGroupResponse>; + /** + * Deletes a rule that is used to dynamically add the instances of a service to an application group. + * + * @param request - DeleteMonitorGroupDynamicRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteMonitorGroupDynamicRuleResponse + */ + deleteMonitorGroupDynamicRuleWithOptions(request: $_model.DeleteMonitorGroupDynamicRuleRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteMonitorGroupDynamicRuleResponse>; + /** + * Deletes a rule that is used to dynamically add the instances of a service to an application group. + * + * @param request - DeleteMonitorGroupDynamicRuleRequest + * @returns DeleteMonitorGroupDynamicRuleResponse + */ + deleteMonitorGroupDynamicRule(request: $_model.DeleteMonitorGroupDynamicRuleRequest): Promise<$_model.DeleteMonitorGroupDynamicRuleResponse>; + /** + * Removes instances from an application group. + * + * @param request - DeleteMonitorGroupInstancesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteMonitorGroupInstancesResponse + */ + deleteMonitorGroupInstancesWithOptions(request: $_model.DeleteMonitorGroupInstancesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteMonitorGroupInstancesResponse>; + /** + * Removes instances from an application group. + * + * @param request - DeleteMonitorGroupInstancesRequest + * @returns DeleteMonitorGroupInstancesResponse + */ + deleteMonitorGroupInstances(request: $_model.DeleteMonitorGroupInstancesRequest): Promise<$_model.DeleteMonitorGroupInstancesResponse>; + /** + * Deletes a policy that is used to pause alert notifications for an application group. + * + * @param request - DeleteMonitorGroupNotifyPolicyRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteMonitorGroupNotifyPolicyResponse + */ + deleteMonitorGroupNotifyPolicyWithOptions(request: $_model.DeleteMonitorGroupNotifyPolicyRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteMonitorGroupNotifyPolicyResponse>; + /** + * Deletes a policy that is used to pause alert notifications for an application group. + * + * @param request - DeleteMonitorGroupNotifyPolicyRequest + * @returns DeleteMonitorGroupNotifyPolicyResponse + */ + deleteMonitorGroupNotifyPolicy(request: $_model.DeleteMonitorGroupNotifyPolicyRequest): Promise<$_model.DeleteMonitorGroupNotifyPolicyResponse>; + /** + * Disables monitoring on a process. + * + * @param request - DeleteMonitoringAgentProcessRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteMonitoringAgentProcessResponse + */ + deleteMonitoringAgentProcessWithOptions(request: $_model.DeleteMonitoringAgentProcessRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteMonitoringAgentProcessResponse>; + /** + * Disables monitoring on a process. + * + * @param request - DeleteMonitoringAgentProcessRequest + * @returns DeleteMonitoringAgentProcessResponse + */ + deleteMonitoringAgentProcess(request: $_model.DeleteMonitoringAgentProcessRequest): Promise<$_model.DeleteMonitoringAgentProcessResponse>; + /** + * Deletes one or more site monitoring tasks. + * + * @param request - DeleteSiteMonitorsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteSiteMonitorsResponse + */ + deleteSiteMonitorsWithOptions(request: $_model.DeleteSiteMonitorsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteSiteMonitorsResponse>; + /** + * Deletes one or more site monitoring tasks. + * + * @param request - DeleteSiteMonitorsRequest + * @returns DeleteSiteMonitorsResponse + */ + deleteSiteMonitors(request: $_model.DeleteSiteMonitorsRequest): Promise<$_model.DeleteSiteMonitorsResponse>; + /** + * Queries the details of initiative alert rules. + * + * @param request - DescribeActiveMetricRuleListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeActiveMetricRuleListResponse + */ + describeActiveMetricRuleListWithOptions(request: $_model.DescribeActiveMetricRuleListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeActiveMetricRuleListResponse>; + /** + * Queries the details of initiative alert rules. + * + * @param request - DescribeActiveMetricRuleListRequest + * @returns DescribeActiveMetricRuleListResponse + */ + describeActiveMetricRuleList(request: $_model.DescribeActiveMetricRuleListRequest): Promise<$_model.DescribeActiveMetricRuleListResponse>; + /** + * Queries historical alerts. + * + * @remarks + * This API operation is no longer maintained. We recommend that you call the [DescribeAlertLogList](https://help.aliyun.com/document_detail/201087.html) operation. + * + * @deprecated OpenAPI DescribeAlertHistoryList is deprecated, please use Cms::2019-01-01::DescribeAlertLogList instead. + * + * @param request - DescribeAlertHistoryListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeAlertHistoryListResponse + */ + describeAlertHistoryListWithOptions(request: $_model.DescribeAlertHistoryListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeAlertHistoryListResponse>; + /** + * Queries historical alerts. + * + * @remarks + * This API operation is no longer maintained. We recommend that you call the [DescribeAlertLogList](https://help.aliyun.com/document_detail/201087.html) operation. + * + * @deprecated OpenAPI DescribeAlertHistoryList is deprecated, please use Cms::2019-01-01::DescribeAlertLogList instead. + * + * @param request - DescribeAlertHistoryListRequest + * @returns DescribeAlertHistoryListResponse + */ + describeAlertHistoryList(request: $_model.DescribeAlertHistoryListRequest): Promise<$_model.DescribeAlertHistoryListResponse>; + /** + * Queries the statistics of alert logs. + * + * @remarks + * Queries the statistics of alert logs. + * This topic provides an example on how to query the statistics of alert logs for Elastic Compute Service (ECS) based on the `product` dimension. + * + * @param request - DescribeAlertLogCountRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeAlertLogCountResponse + */ + describeAlertLogCountWithOptions(request: $_model.DescribeAlertLogCountRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeAlertLogCountResponse>; + /** + * Queries the statistics of alert logs. + * + * @remarks + * Queries the statistics of alert logs. + * This topic provides an example on how to query the statistics of alert logs for Elastic Compute Service (ECS) based on the `product` dimension. + * + * @param request - DescribeAlertLogCountRequest + * @returns DescribeAlertLogCountResponse + */ + describeAlertLogCount(request: $_model.DescribeAlertLogCountRequest): Promise<$_model.DescribeAlertLogCountResponse>; + /** + * Queries the number of alert logs that are generated during each interval within a period of time. + * + * @remarks + * This topic provides an example on how to query the number of alert logs for Elastic Compute Service (ECS) based on the `product` dimension. + * + * @param request - DescribeAlertLogHistogramRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeAlertLogHistogramResponse + */ + describeAlertLogHistogramWithOptions(request: $_model.DescribeAlertLogHistogramRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeAlertLogHistogramResponse>; + /** + * Queries the number of alert logs that are generated during each interval within a period of time. + * + * @remarks + * This topic provides an example on how to query the number of alert logs for Elastic Compute Service (ECS) based on the `product` dimension. + * + * @param request - DescribeAlertLogHistogramRequest + * @returns DescribeAlertLogHistogramResponse + */ + describeAlertLogHistogram(request: $_model.DescribeAlertLogHistogramRequest): Promise<$_model.DescribeAlertLogHistogramResponse>; + /** + * Queries alert logs. + * + * @remarks + * You can call the operation to query only the alert logs within the last year. + * This topic provides an example to show how to query the alert logs of Elastic Compute Service (ECS) based on the `product` dimension. + * + * @param request - DescribeAlertLogListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeAlertLogListResponse + */ + describeAlertLogListWithOptions(request: $_model.DescribeAlertLogListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeAlertLogListResponse>; + /** + * Queries alert logs. + * + * @remarks + * You can call the operation to query only the alert logs within the last year. + * This topic provides an example to show how to query the alert logs of Elastic Compute Service (ECS) based on the `product` dimension. + * + * @param request - DescribeAlertLogListRequest + * @returns DescribeAlertLogListResponse + */ + describeAlertLogList(request: $_model.DescribeAlertLogListRequest): Promise<$_model.DescribeAlertLogListResponse>; + /** + * Queries the resources for which active alerts are triggered based on an alert rule. + * + * @param request - DescribeAlertingMetricRuleResourcesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeAlertingMetricRuleResourcesResponse + */ + describeAlertingMetricRuleResourcesWithOptions(request: $_model.DescribeAlertingMetricRuleResourcesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeAlertingMetricRuleResourcesResponse>; + /** + * Queries the resources for which active alerts are triggered based on an alert rule. + * + * @param request - DescribeAlertingMetricRuleResourcesRequest + * @returns DescribeAlertingMetricRuleResourcesResponse + */ + describeAlertingMetricRuleResources(request: $_model.DescribeAlertingMetricRuleResourcesRequest): Promise<$_model.DescribeAlertingMetricRuleResourcesResponse>; + /** + * Call the DescribeContactGroupList interface to query the list of alarm contact groups. + * + * @param request - DescribeContactGroupListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeContactGroupListResponse + */ + describeContactGroupListWithOptions(request: $_model.DescribeContactGroupListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeContactGroupListResponse>; + /** + * Call the DescribeContactGroupList interface to query the list of alarm contact groups. + * + * @param request - DescribeContactGroupListRequest + * @returns DescribeContactGroupListResponse + */ + describeContactGroupList(request: $_model.DescribeContactGroupListRequest): Promise<$_model.DescribeContactGroupListResponse>; + /** + * Queries alert contacts. + * + * @param request - DescribeContactListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeContactListResponse + */ + describeContactListWithOptions(request: $_model.DescribeContactListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeContactListResponse>; + /** + * Queries alert contacts. + * + * @param request - DescribeContactListRequest + * @returns DescribeContactListResponse + */ + describeContactList(request: $_model.DescribeContactListRequest): Promise<$_model.DescribeContactListResponse>; + /** + * Queries the alert contacts in an alert contact group. + * + * @param request - DescribeContactListByContactGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeContactListByContactGroupResponse + */ + describeContactListByContactGroupWithOptions(request: $_model.DescribeContactListByContactGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeContactListByContactGroupResponse>; + /** + * Queries the alert contacts in an alert contact group. + * + * @param request - DescribeContactListByContactGroupRequest + * @returns DescribeContactListByContactGroupResponse + */ + describeContactListByContactGroup(request: $_model.DescribeContactListByContactGroupRequest): Promise<$_model.DescribeContactListByContactGroupResponse>; + /** + * Queries the details of a custom event. + * + * @param request - DescribeCustomEventAttributeRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeCustomEventAttributeResponse + */ + describeCustomEventAttributeWithOptions(request: $_model.DescribeCustomEventAttributeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeCustomEventAttributeResponse>; + /** + * Queries the details of a custom event. + * + * @param request - DescribeCustomEventAttributeRequest + * @returns DescribeCustomEventAttributeResponse + */ + describeCustomEventAttribute(request: $_model.DescribeCustomEventAttributeRequest): Promise<$_model.DescribeCustomEventAttributeResponse>; + /** + * Queries the number of times that a custom event occurred within a period of time. + * + * @remarks + * > This operation queries the number of times that a custom event occurred for each service. + * + * @param request - DescribeCustomEventCountRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeCustomEventCountResponse + */ + describeCustomEventCountWithOptions(request: $_model.DescribeCustomEventCountRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeCustomEventCountResponse>; + /** + * Queries the number of times that a custom event occurred within a period of time. + * + * @remarks + * > This operation queries the number of times that a custom event occurred for each service. + * + * @param request - DescribeCustomEventCountRequest + * @returns DescribeCustomEventCountResponse + */ + describeCustomEventCount(request: $_model.DescribeCustomEventCountRequest): Promise<$_model.DescribeCustomEventCountResponse>; + /** + * Queries the number of times that a custom event occurred during each interval within a period of time. + * + * @param request - DescribeCustomEventHistogramRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeCustomEventHistogramResponse + */ + describeCustomEventHistogramWithOptions(request: $_model.DescribeCustomEventHistogramRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeCustomEventHistogramResponse>; + /** + * Queries the number of times that a custom event occurred during each interval within a period of time. + * + * @param request - DescribeCustomEventHistogramRequest + * @returns DescribeCustomEventHistogramResponse + */ + describeCustomEventHistogram(request: $_model.DescribeCustomEventHistogramRequest): Promise<$_model.DescribeCustomEventHistogramResponse>; + /** + * Queries the reported monitoring data. + * + * @remarks + * > You can call the DescribeMetricList operation to query the metrics of cloud services. For more information, see [DescribeMetricList](https://help.aliyun.com/document_detail/51936.html). + * + * @param request - DescribeCustomMetricListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeCustomMetricListResponse + */ + describeCustomMetricListWithOptions(request: $_model.DescribeCustomMetricListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeCustomMetricListResponse>; + /** + * Queries the reported monitoring data. + * + * @remarks + * > You can call the DescribeMetricList operation to query the metrics of cloud services. For more information, see [DescribeMetricList](https://help.aliyun.com/document_detail/51936.html). + * + * @param request - DescribeCustomMetricListRequest + * @returns DescribeCustomMetricListResponse + */ + describeCustomMetricList(request: $_model.DescribeCustomMetricListRequest): Promise<$_model.DescribeCustomMetricListResponse>; + /** + * Queries tag rules. + * + * @remarks + * This topic provides an example to show how to query tag rules that are related to `tagkey1`. The sample responses indicate that two tag rules are found. The rule IDs are `1536df65-a719-429d-8813-73cc40d7****` and `56e8cebb-b3d7-4a91-9880-78a8c84f****`. + * + * @param request - DescribeDynamicTagRuleListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeDynamicTagRuleListResponse + */ + describeDynamicTagRuleListWithOptions(request: $_model.DescribeDynamicTagRuleListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeDynamicTagRuleListResponse>; + /** + * Queries tag rules. + * + * @remarks + * This topic provides an example to show how to query tag rules that are related to `tagkey1`. The sample responses indicate that two tag rules are found. The rule IDs are `1536df65-a719-429d-8813-73cc40d7****` and `56e8cebb-b3d7-4a91-9880-78a8c84f****`. + * + * @param request - DescribeDynamicTagRuleListRequest + * @returns DescribeDynamicTagRuleListResponse + */ + describeDynamicTagRuleList(request: $_model.DescribeDynamicTagRuleListRequest): Promise<$_model.DescribeDynamicTagRuleListResponse>; + /** + * Queries the details of an event-triggered alert rule. + * + * @remarks + * This topic provides an example to show how to query the details of an event-triggered alert rule named `testRule`. + * + * @param request - DescribeEventRuleAttributeRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeEventRuleAttributeResponse + */ + describeEventRuleAttributeWithOptions(request: $_model.DescribeEventRuleAttributeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeEventRuleAttributeResponse>; + /** + * Queries the details of an event-triggered alert rule. + * + * @remarks + * This topic provides an example to show how to query the details of an event-triggered alert rule named `testRule`. + * + * @param request - DescribeEventRuleAttributeRequest + * @returns DescribeEventRuleAttributeResponse + */ + describeEventRuleAttribute(request: $_model.DescribeEventRuleAttributeRequest): Promise<$_model.DescribeEventRuleAttributeResponse>; + /** + * Queries event-triggered alert rules. + * + * @param request - DescribeEventRuleListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeEventRuleListResponse + */ + describeEventRuleListWithOptions(request: $_model.DescribeEventRuleListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeEventRuleListResponse>; + /** + * Queries event-triggered alert rules. + * + * @param request - DescribeEventRuleListRequest + * @returns DescribeEventRuleListResponse + */ + describeEventRuleList(request: $_model.DescribeEventRuleListRequest): Promise<$_model.DescribeEventRuleListResponse>; + /** + * Queries event-triggered alert rules. + * + * @remarks + * This topic provides an example to show how to query the details of an event-triggered alert rule named `testRule`. + * + * @param request - DescribeEventRuleTargetListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeEventRuleTargetListResponse + */ + describeEventRuleTargetListWithOptions(request: $_model.DescribeEventRuleTargetListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeEventRuleTargetListResponse>; + /** + * Queries event-triggered alert rules. + * + * @remarks + * This topic provides an example to show how to query the details of an event-triggered alert rule named `testRule`. + * + * @param request - DescribeEventRuleTargetListRequest + * @returns DescribeEventRuleTargetListResponse + */ + describeEventRuleTargetList(request: $_model.DescribeEventRuleTargetListRequest): Promise<$_model.DescribeEventRuleTargetListResponse>; + /** + * Queries configuration sets that are used to export monitoring data. + * + * @param request - DescribeExporterOutputListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeExporterOutputListResponse + */ + describeExporterOutputListWithOptions(request: $_model.DescribeExporterOutputListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeExporterOutputListResponse>; + /** + * Queries configuration sets that are used to export monitoring data. + * + * @param request - DescribeExporterOutputListRequest + * @returns DescribeExporterOutputListResponse + */ + describeExporterOutputList(request: $_model.DescribeExporterOutputListRequest): Promise<$_model.DescribeExporterOutputListResponse>; + /** + * Queries data export rules. + * + * @param request - DescribeExporterRuleListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeExporterRuleListResponse + */ + describeExporterRuleListWithOptions(request: $_model.DescribeExporterRuleListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeExporterRuleListResponse>; + /** + * Queries data export rules. + * + * @param request - DescribeExporterRuleListRequest + * @returns DescribeExporterRuleListResponse + */ + describeExporterRuleList(request: $_model.DescribeExporterRuleListRequest): Promise<$_model.DescribeExporterRuleListResponse>; + /** + * Queries the process monitoring tasks for an application group. + * + * @remarks + * You can create a process monitoring task to monitor all or the specified Elastic Compute Service (ECS) instances in an application group and configure alert rules for the process monitoring task. + * + * @param request - DescribeGroupMonitoringAgentProcessRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeGroupMonitoringAgentProcessResponse + */ + describeGroupMonitoringAgentProcessWithOptions(request: $_model.DescribeGroupMonitoringAgentProcessRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeGroupMonitoringAgentProcessResponse>; + /** + * Queries the process monitoring tasks for an application group. + * + * @remarks + * You can create a process monitoring task to monitor all or the specified Elastic Compute Service (ECS) instances in an application group and configure alert rules for the process monitoring task. + * + * @param request - DescribeGroupMonitoringAgentProcessRequest + * @returns DescribeGroupMonitoringAgentProcessResponse + */ + describeGroupMonitoringAgentProcess(request: $_model.DescribeGroupMonitoringAgentProcessRequest): Promise<$_model.DescribeGroupMonitoringAgentProcessResponse>; + /** + * Queries availability monitoring tasks. + * + * @remarks + * This topic provides an example to show how to query all the availability monitoring tasks of your Alibaba Cloud account. The sample responses indicate that the account has one availability monitoring task named `ecs_instance`. + * + * @param request - DescribeHostAvailabilityListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeHostAvailabilityListResponse + */ + describeHostAvailabilityListWithOptions(request: $_model.DescribeHostAvailabilityListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeHostAvailabilityListResponse>; + /** + * Queries availability monitoring tasks. + * + * @remarks + * This topic provides an example to show how to query all the availability monitoring tasks of your Alibaba Cloud account. The sample responses indicate that the account has one availability monitoring task named `ecs_instance`. + * + * @param request - DescribeHostAvailabilityListRequest + * @returns DescribeHostAvailabilityListResponse + */ + describeHostAvailabilityList(request: $_model.DescribeHostAvailabilityListRequest): Promise<$_model.DescribeHostAvailabilityListResponse>; + /** + * Queries the monitoring data in a namespace. + * + * @remarks + * ## [](#)Prerequisites + * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](https://help.aliyun.com/document_detail/250773.html). + * ## [](#)Limits + * The size of monitoring data that is returned in each call cannot exceed 1.5 MB. If the returned data reaches the upper limit, the query fails. You must reset the query conditions. + * ## [](#)Operation description + * This topic provides an example to show how to query the monitoring data of the `AliyunEcs_cpu_total` metric in the `default-aliyun` namespace from `1653804865` (14:14:25 on May 29, 2022) to `1653805225` (14:20:25 on May 29, 2022). + * + * @param request - DescribeHybridMonitorDataListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeHybridMonitorDataListResponse + */ + describeHybridMonitorDataListWithOptions(request: $_model.DescribeHybridMonitorDataListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeHybridMonitorDataListResponse>; + /** + * Queries the monitoring data in a namespace. + * + * @remarks + * ## [](#)Prerequisites + * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](https://help.aliyun.com/document_detail/250773.html). + * ## [](#)Limits + * The size of monitoring data that is returned in each call cannot exceed 1.5 MB. If the returned data reaches the upper limit, the query fails. You must reset the query conditions. + * ## [](#)Operation description + * This topic provides an example to show how to query the monitoring data of the `AliyunEcs_cpu_total` metric in the `default-aliyun` namespace from `1653804865` (14:14:25 on May 29, 2022) to `1653805225` (14:20:25 on May 29, 2022). + * + * @param request - DescribeHybridMonitorDataListRequest + * @returns DescribeHybridMonitorDataListResponse + */ + describeHybridMonitorDataList(request: $_model.DescribeHybridMonitorDataListRequest): Promise<$_model.DescribeHybridMonitorDataListResponse>; + /** + * Queries namespaces and the details of the related metric import tasks. + * + * @remarks + * In this example, all namespaces within the current account are queried. The response shows that the current account has only one namespace named `aliyun-test`. + * + * @param request - DescribeHybridMonitorNamespaceListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeHybridMonitorNamespaceListResponse + */ + describeHybridMonitorNamespaceListWithOptions(request: $_model.DescribeHybridMonitorNamespaceListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeHybridMonitorNamespaceListResponse>; + /** + * Queries namespaces and the details of the related metric import tasks. + * + * @remarks + * In this example, all namespaces within the current account are queried. The response shows that the current account has only one namespace named `aliyun-test`. + * + * @param request - DescribeHybridMonitorNamespaceListRequest + * @returns DescribeHybridMonitorNamespaceListResponse + */ + describeHybridMonitorNamespaceList(request: $_model.DescribeHybridMonitorNamespaceListRequest): Promise<$_model.DescribeHybridMonitorNamespaceListResponse>; + /** + * Queries Logstore groups. + * + * @remarks + * In this example, all Logstore groups within the current account are queried. The response shows that the current account has two Logstore groups: `Logstore_test` and `Logstore_aliyun`. + * + * @param request - DescribeHybridMonitorSLSGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeHybridMonitorSLSGroupResponse + */ + describeHybridMonitorSLSGroupWithOptions(request: $_model.DescribeHybridMonitorSLSGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeHybridMonitorSLSGroupResponse>; + /** + * Queries Logstore groups. + * + * @remarks + * In this example, all Logstore groups within the current account are queried. The response shows that the current account has two Logstore groups: `Logstore_test` and `Logstore_aliyun`. + * + * @param request - DescribeHybridMonitorSLSGroupRequest + * @returns DescribeHybridMonitorSLSGroupResponse + */ + describeHybridMonitorSLSGroup(request: $_model.DescribeHybridMonitorSLSGroupRequest): Promise<$_model.DescribeHybridMonitorSLSGroupResponse>; + /** + * Queries metric import tasks. + * + * @remarks + * This topic provides an example on how to query all metric import tasks that belong to the current Alibaba Cloud account. The returned result indicates that the current account has only one metric import task. The metric import task is named `aliyun_task`. + * + * @param request - DescribeHybridMonitorTaskListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeHybridMonitorTaskListResponse + */ + describeHybridMonitorTaskListWithOptions(request: $_model.DescribeHybridMonitorTaskListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeHybridMonitorTaskListResponse>; + /** + * Queries metric import tasks. + * + * @remarks + * This topic provides an example on how to query all metric import tasks that belong to the current Alibaba Cloud account. The returned result indicates that the current account has only one metric import task. The metric import task is named `aliyun_task`. + * + * @param request - DescribeHybridMonitorTaskListRequest + * @returns DescribeHybridMonitorTaskListResponse + */ + describeHybridMonitorTaskList(request: $_model.DescribeHybridMonitorTaskListRequest): Promise<$_model.DescribeHybridMonitorTaskListResponse>; + /** + * Queries the details of a log monitoring metric. + * + * @param request - DescribeLogMonitorAttributeRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeLogMonitorAttributeResponse + */ + describeLogMonitorAttributeWithOptions(request: $_model.DescribeLogMonitorAttributeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeLogMonitorAttributeResponse>; + /** + * Queries the details of a log monitoring metric. + * + * @param request - DescribeLogMonitorAttributeRequest + * @returns DescribeLogMonitorAttributeResponse + */ + describeLogMonitorAttribute(request: $_model.DescribeLogMonitorAttributeRequest): Promise<$_model.DescribeLogMonitorAttributeResponse>; + /** + * Queries log monitoring metrics. + * + * @param request - DescribeLogMonitorListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeLogMonitorListResponse + */ + describeLogMonitorListWithOptions(request: $_model.DescribeLogMonitorListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeLogMonitorListResponse>; + /** + * Queries log monitoring metrics. + * + * @param request - DescribeLogMonitorListRequest + * @returns DescribeLogMonitorListResponse + */ + describeLogMonitorList(request: $_model.DescribeLogMonitorListRequest): Promise<$_model.DescribeLogMonitorListResponse>; + /** + * Queries the monitoring data of a metric for a cloud service. + * + * @remarks + * ### [](#)Limits + * * The total free quota is 1 million calls per month for the DescribeMetricLast, DescribeMetricList, DescribeMetricData, and DescribeMetricTop operations. If the free quota is used up and CloudMonitor Basic (pay-as-you-go) is not activated, these API operations can no longer be called as expected. If you have activated CloudMonitor Basic (pay-as-you-go), these API operations can still be called even if the free quota is used up. If the free quota is used up, you are automatically charged for the excess usage based on the pay-as-you-go billing method. For more information about how to activate CloudMonitor Basic (pay-as-you-go), see [Enable the pay-as-you-go billing method](https://common-buy.aliyun.com/?spm=a2c4g.11186623.0.0.6c8f3481IbSHgG\\&commodityCode=cms_basic_public_cn\\&from_biz_channel=help_bill). + * * Each API operation can be called up to 10 times per second. An Alibaba Cloud account and the Resource Access Management (RAM) users within the account share the quota. + * ### [](#)Description + * > Different from [DescribeMetricList](https://help.aliyun.com/document_detail/51936.html), the DescribeMetricData operation provides statistical features. You can set the Dimension parameter to `{"instanceId": "i-abcdefgh12****"}` to aggregate all data of your Alibaba Cloud account. + * This topic provides an example on how to query the monitoring data of the `cpu_idle` metric for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. + * + * @param request - DescribeMetricDataRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMetricDataResponse + */ + describeMetricDataWithOptions(request: $_model.DescribeMetricDataRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMetricDataResponse>; + /** + * Queries the monitoring data of a metric for a cloud service. + * + * @remarks + * ### [](#)Limits + * * The total free quota is 1 million calls per month for the DescribeMetricLast, DescribeMetricList, DescribeMetricData, and DescribeMetricTop operations. If the free quota is used up and CloudMonitor Basic (pay-as-you-go) is not activated, these API operations can no longer be called as expected. If you have activated CloudMonitor Basic (pay-as-you-go), these API operations can still be called even if the free quota is used up. If the free quota is used up, you are automatically charged for the excess usage based on the pay-as-you-go billing method. For more information about how to activate CloudMonitor Basic (pay-as-you-go), see [Enable the pay-as-you-go billing method](https://common-buy.aliyun.com/?spm=a2c4g.11186623.0.0.6c8f3481IbSHgG\\&commodityCode=cms_basic_public_cn\\&from_biz_channel=help_bill). + * * Each API operation can be called up to 10 times per second. An Alibaba Cloud account and the Resource Access Management (RAM) users within the account share the quota. + * ### [](#)Description + * > Different from [DescribeMetricList](https://help.aliyun.com/document_detail/51936.html), the DescribeMetricData operation provides statistical features. You can set the Dimension parameter to `{"instanceId": "i-abcdefgh12****"}` to aggregate all data of your Alibaba Cloud account. + * This topic provides an example on how to query the monitoring data of the `cpu_idle` metric for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. + * + * @param request - DescribeMetricDataRequest + * @returns DescribeMetricDataResponse + */ + describeMetricData(request: $_model.DescribeMetricDataRequest): Promise<$_model.DescribeMetricDataResponse>; + /** + * Queries the latest monitoring data of a metric. + * + * @remarks + * ### [](#)Limits + * * The total free quota is 1 million calls per month for the DescribeMetricLast, DescribeMetricList, DescribeMetricData, and DescribeMetricTop operations. If the free quota is used up and CloudMonitor Basic (pay-as-you-go) is not activated, these API operations can no longer be called as expected. If you have activated CloudMonitor Basic (pay-as-you-go), these API operations can still be called even if the free quota is used up. After the free quota is used up, you are charged for the excess usage based on the pay-as-you-go billing method. For more information about how to activate CloudMonitor Basic (pay-as-you-go), see [Enable the pay-as-you-go billing method](https://common-buy.aliyun.com/?spm=a2c4g.11186623.0.0.6c8f3481IbSHgG\\&commodityCode=cms_basic_public_cn\\&from_biz_channel=help_bill). + * * Each API operation can be called up to 50 times per second. An Alibaba Cloud account and the Resource Access Management (RAM) users within the account share the quota. + * > If `Throttling.User` or `Request was denied due to user flow control` is returned when you call an API operation, the API operation is throttled. For more information about how to handle the issue, see [How do I handle the throttling of a query API?](https://help.aliyun.com/document_detail/2615031.html) + * ### [](#)Precautions + * The storage duration of the monitoring data of each cloud service is related to the `Period` parameter (statistical period). A larger value of the `Period` parameter indicates that the monitoring data is distributed in a larger time range and the storage duration of the monitoring data is longer. The following list describes the specific relationships: + * * The storage duration is 7 days if the value of the `Period` parameter is less than 60 seconds. + * * The storage duration is 31 days if the value of the `Period` parameter is 60 seconds. + * * The storage duration is 91 days if the value of the `Period` parameter is greater than or equal to 300 seconds. + * ### [](#)Operation description + * This topic provides an example on how to query the latest monitoring data of the `CPUUtilization` metric for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. The returned result indicates that the monitoring data for the instance `i-abcdefgh12****` of the account `123456789876****` is queried at an interval of 60 seconds. The maximum, minimum, and average values of the metric are 100, 93.1, and 99.52. + * + * @param request - DescribeMetricLastRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMetricLastResponse + */ + describeMetricLastWithOptions(request: $_model.DescribeMetricLastRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMetricLastResponse>; + /** + * Queries the latest monitoring data of a metric. + * + * @remarks + * ### [](#)Limits + * * The total free quota is 1 million calls per month for the DescribeMetricLast, DescribeMetricList, DescribeMetricData, and DescribeMetricTop operations. If the free quota is used up and CloudMonitor Basic (pay-as-you-go) is not activated, these API operations can no longer be called as expected. If you have activated CloudMonitor Basic (pay-as-you-go), these API operations can still be called even if the free quota is used up. After the free quota is used up, you are charged for the excess usage based on the pay-as-you-go billing method. For more information about how to activate CloudMonitor Basic (pay-as-you-go), see [Enable the pay-as-you-go billing method](https://common-buy.aliyun.com/?spm=a2c4g.11186623.0.0.6c8f3481IbSHgG\\&commodityCode=cms_basic_public_cn\\&from_biz_channel=help_bill). + * * Each API operation can be called up to 50 times per second. An Alibaba Cloud account and the Resource Access Management (RAM) users within the account share the quota. + * > If `Throttling.User` or `Request was denied due to user flow control` is returned when you call an API operation, the API operation is throttled. For more information about how to handle the issue, see [How do I handle the throttling of a query API?](https://help.aliyun.com/document_detail/2615031.html) + * ### [](#)Precautions + * The storage duration of the monitoring data of each cloud service is related to the `Period` parameter (statistical period). A larger value of the `Period` parameter indicates that the monitoring data is distributed in a larger time range and the storage duration of the monitoring data is longer. The following list describes the specific relationships: + * * The storage duration is 7 days if the value of the `Period` parameter is less than 60 seconds. + * * The storage duration is 31 days if the value of the `Period` parameter is 60 seconds. + * * The storage duration is 91 days if the value of the `Period` parameter is greater than or equal to 300 seconds. + * ### [](#)Operation description + * This topic provides an example on how to query the latest monitoring data of the `CPUUtilization` metric for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. The returned result indicates that the monitoring data for the instance `i-abcdefgh12****` of the account `123456789876****` is queried at an interval of 60 seconds. The maximum, minimum, and average values of the metric are 100, 93.1, and 99.52. + * + * @param request - DescribeMetricLastRequest + * @returns DescribeMetricLastResponse + */ + describeMetricLast(request: $_model.DescribeMetricLastRequest): Promise<$_model.DescribeMetricLastResponse>; + /** + * Queries the monitoring data of a metric for a specified cloud service. + * + * @remarks + * ## Limits + * Each API operation can be called up to 50 times per second. An Alibaba Cloud account and the RAM users within the account share the quota. + * >This topic provides an example to show how to query the monitoring data of the `cpu_idle` metric for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. The returned result indicates that the monitoring data for the instance `i-abcdefgh12****` of the account `120886317861****` is queried at an interval of 60 seconds. The maximum, minimum, and average values of the metric are 100, 93.1, and 99.52. + * + * @param request - DescribeMetricListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMetricListResponse + */ + describeMetricListWithOptions(request: $_model.DescribeMetricListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMetricListResponse>; + /** + * Queries the monitoring data of a metric for a specified cloud service. + * + * @remarks + * ## Limits + * Each API operation can be called up to 50 times per second. An Alibaba Cloud account and the RAM users within the account share the quota. + * >This topic provides an example to show how to query the monitoring data of the `cpu_idle` metric for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. The returned result indicates that the monitoring data for the instance `i-abcdefgh12****` of the account `120886317861****` is queried at an interval of 60 seconds. The maximum, minimum, and average values of the metric are 100, 93.1, and 99.52. + * + * @param request - DescribeMetricListRequest + * @returns DescribeMetricListResponse + */ + describeMetricList(request: $_model.DescribeMetricListRequest): Promise<$_model.DescribeMetricListResponse>; + /** + * Queries the details of metrics that are supported in CloudMonitor. + * + * @remarks + * This operation is used together with DescribeMetricList and DescribeMetricLast. For more information, see [DescribeMetricList](https://help.aliyun.com/document_detail/51936.html) and [DescribeMetricLast](https://help.aliyun.com/document_detail/51939.html). + * + * @param request - DescribeMetricMetaListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMetricMetaListResponse + */ + describeMetricMetaListWithOptions(request: $_model.DescribeMetricMetaListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMetricMetaListResponse>; + /** + * Queries the details of metrics that are supported in CloudMonitor. + * + * @remarks + * This operation is used together with DescribeMetricList and DescribeMetricLast. For more information, see [DescribeMetricList](https://help.aliyun.com/document_detail/51936.html) and [DescribeMetricLast](https://help.aliyun.com/document_detail/51939.html). + * + * @param request - DescribeMetricMetaListRequest + * @returns DescribeMetricMetaListResponse + */ + describeMetricMetaList(request: $_model.DescribeMetricMetaListRequest): Promise<$_model.DescribeMetricMetaListResponse>; + /** + * @param request - DescribeMetricRuleBlackListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMetricRuleBlackListResponse + */ + describeMetricRuleBlackListWithOptions(request: $_model.DescribeMetricRuleBlackListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMetricRuleBlackListResponse>; + /** + * @param request - DescribeMetricRuleBlackListRequest + * @returns DescribeMetricRuleBlackListResponse + */ + describeMetricRuleBlackList(request: $_model.DescribeMetricRuleBlackListRequest): Promise<$_model.DescribeMetricRuleBlackListResponse>; + /** + * Queries the number of alert rules in each state. + * + * @param request - DescribeMetricRuleCountRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMetricRuleCountResponse + */ + describeMetricRuleCountWithOptions(request: $_model.DescribeMetricRuleCountRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMetricRuleCountResponse>; + /** + * Queries the number of alert rules in each state. + * + * @param request - DescribeMetricRuleCountRequest + * @returns DescribeMetricRuleCountResponse + */ + describeMetricRuleCount(request: $_model.DescribeMetricRuleCountRequest): Promise<$_model.DescribeMetricRuleCountResponse>; + /** + * Queries alert rules. + * + * @remarks + * This topic provides an example on how to query all alert rules within your Alibaba Cloud account. The returned result shows that only one alert rule is found. The name of the alert rule is `Rule_01` and the ID is `applyTemplate344cfd42-0f32-4fd6-805a-88d7908a****`. + * + * @param request - DescribeMetricRuleListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMetricRuleListResponse + */ + describeMetricRuleListWithOptions(request: $_model.DescribeMetricRuleListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMetricRuleListResponse>; + /** + * Queries alert rules. + * + * @remarks + * This topic provides an example on how to query all alert rules within your Alibaba Cloud account. The returned result shows that only one alert rule is found. The name of the alert rule is `Rule_01` and the ID is `applyTemplate344cfd42-0f32-4fd6-805a-88d7908a****`. + * + * @param request - DescribeMetricRuleListRequest + * @returns DescribeMetricRuleListResponse + */ + describeMetricRuleList(request: $_model.DescribeMetricRuleListRequest): Promise<$_model.DescribeMetricRuleListResponse>; + /** + * Queries the resources that are associated with a specified alert rule. + * + * @remarks + * ## Limit + * This operation supports only Message Service (MNS) resources. + * >This topic provides an example on how to query the resources that are associated with an alert rule whose ID is `ae06917_75a8c43178ab66****`. + * + * @param request - DescribeMetricRuleTargetsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMetricRuleTargetsResponse + */ + describeMetricRuleTargetsWithOptions(request: $_model.DescribeMetricRuleTargetsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMetricRuleTargetsResponse>; + /** + * Queries the resources that are associated with a specified alert rule. + * + * @remarks + * ## Limit + * This operation supports only Message Service (MNS) resources. + * >This topic provides an example on how to query the resources that are associated with an alert rule whose ID is `ae06917_75a8c43178ab66****`. + * + * @param request - DescribeMetricRuleTargetsRequest + * @returns DescribeMetricRuleTargetsResponse + */ + describeMetricRuleTargets(request: $_model.DescribeMetricRuleTargetsRequest): Promise<$_model.DescribeMetricRuleTargetsResponse>; + /** + * Queries the details of an alert template. + * + * @remarks + * This topic provides an example on how to query the details of an alert template whose ID is `70****`. + * + * @param request - DescribeMetricRuleTemplateAttributeRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMetricRuleTemplateAttributeResponse + */ + describeMetricRuleTemplateAttributeWithOptions(request: $_model.DescribeMetricRuleTemplateAttributeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMetricRuleTemplateAttributeResponse>; + /** + * Queries the details of an alert template. + * + * @remarks + * This topic provides an example on how to query the details of an alert template whose ID is `70****`. + * + * @param request - DescribeMetricRuleTemplateAttributeRequest + * @returns DescribeMetricRuleTemplateAttributeResponse + */ + describeMetricRuleTemplateAttribute(request: $_model.DescribeMetricRuleTemplateAttributeRequest): Promise<$_model.DescribeMetricRuleTemplateAttributeResponse>; + /** + * Queries alert templates. + * + * @remarks + * This topic provides an example on how to query alert templates. In this example, the following alert templates are returned in the response: `ECS_Template1` and `ECS_Template2`. + * + * @param request - DescribeMetricRuleTemplateListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMetricRuleTemplateListResponse + */ + describeMetricRuleTemplateListWithOptions(request: $_model.DescribeMetricRuleTemplateListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMetricRuleTemplateListResponse>; + /** + * Queries alert templates. + * + * @remarks + * This topic provides an example on how to query alert templates. In this example, the following alert templates are returned in the response: `ECS_Template1` and `ECS_Template2`. + * + * @param request - DescribeMetricRuleTemplateListRequest + * @returns DescribeMetricRuleTemplateListResponse + */ + describeMetricRuleTemplateList(request: $_model.DescribeMetricRuleTemplateListRequest): Promise<$_model.DescribeMetricRuleTemplateListResponse>; + /** + * Queries the latest monitoring data of a metric for a cloud service. The data can be sorted by a specified order. + * + * @remarks + * ### [](#)Limits + * * The total free quota is 1 million calls per month for the DescribeMetricLast, DescribeMetricList, DescribeMetricData, and DescribeMetricTop operations. If the free quota is used up and CloudMonitor Basic (pay-as-you-go) is not activated, these API operations can no longer be called as expected. If you have activated CloudMonitor Basic (pay-as-you-go), these API operations can still be called even if the free quota is used up. After the free quota is used up, you are charged for the excess usage based on the pay-as-you-go billing method. For more information about how to activate CloudMonitor Basic (pay-as-you-go), see [Enable the pay-as-you-go billing method](https://common-buy.aliyun.com/?spm=a2c4g.11186623.0.0.6c8f3481IbSHgG\\&commodityCode=cms_basic_public_cn\\&from_biz_channel=help_bill). + * * Each API operation can be called up to 10 times per second. An Alibaba Cloud account and the Resource Access Management (RAM) users within the account share the quota. + * ### [](#)Precautions + * The storage duration of the monitoring data of each cloud service is related to the `Period` parameter (statistical period). A larger value of the `Period` parameter indicates that the monitoring data is distributed in a larger time range and the storage duration of the monitoring data is longer. The following list describes the specific relationships: + * * The storage duration is 7 days if the value of the `Period` parameter is less than 60 seconds. + * * The storage duration is 31 days if the value of the `Period` parameter is 60 seconds. + * * The storage duration is 91 days if the value of the `Period` is greater than or equal to 300 seconds. + * ### [](#)Operation description + * This topic provides an example on how to query the monitoring data of the `cpu_idle` metric in the last 60 seconds for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. The monitoring data is sorted in descending order based on the `Average` field. + * + * @param request - DescribeMetricTopRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMetricTopResponse + */ + describeMetricTopWithOptions(request: $_model.DescribeMetricTopRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMetricTopResponse>; + /** + * Queries the latest monitoring data of a metric for a cloud service. The data can be sorted by a specified order. + * + * @remarks + * ### [](#)Limits + * * The total free quota is 1 million calls per month for the DescribeMetricLast, DescribeMetricList, DescribeMetricData, and DescribeMetricTop operations. If the free quota is used up and CloudMonitor Basic (pay-as-you-go) is not activated, these API operations can no longer be called as expected. If you have activated CloudMonitor Basic (pay-as-you-go), these API operations can still be called even if the free quota is used up. After the free quota is used up, you are charged for the excess usage based on the pay-as-you-go billing method. For more information about how to activate CloudMonitor Basic (pay-as-you-go), see [Enable the pay-as-you-go billing method](https://common-buy.aliyun.com/?spm=a2c4g.11186623.0.0.6c8f3481IbSHgG\\&commodityCode=cms_basic_public_cn\\&from_biz_channel=help_bill). + * * Each API operation can be called up to 10 times per second. An Alibaba Cloud account and the Resource Access Management (RAM) users within the account share the quota. + * ### [](#)Precautions + * The storage duration of the monitoring data of each cloud service is related to the `Period` parameter (statistical period). A larger value of the `Period` parameter indicates that the monitoring data is distributed in a larger time range and the storage duration of the monitoring data is longer. The following list describes the specific relationships: + * * The storage duration is 7 days if the value of the `Period` parameter is less than 60 seconds. + * * The storage duration is 31 days if the value of the `Period` parameter is 60 seconds. + * * The storage duration is 91 days if the value of the `Period` is greater than or equal to 300 seconds. + * ### [](#)Operation description + * This topic provides an example on how to query the monitoring data of the `cpu_idle` metric in the last 60 seconds for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. The monitoring data is sorted in descending order based on the `Average` field. + * + * @param request - DescribeMetricTopRequest + * @returns DescribeMetricTopResponse + */ + describeMetricTop(request: $_model.DescribeMetricTopRequest): Promise<$_model.DescribeMetricTopResponse>; + /** + * Queries the cloud services to which the resources in an application group belong and the number of resources that belong to each cloud service in the application group. + * + * @param request - DescribeMonitorGroupCategoriesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitorGroupCategoriesResponse + */ + describeMonitorGroupCategoriesWithOptions(request: $_model.DescribeMonitorGroupCategoriesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMonitorGroupCategoriesResponse>; + /** + * Queries the cloud services to which the resources in an application group belong and the number of resources that belong to each cloud service in the application group. + * + * @param request - DescribeMonitorGroupCategoriesRequest + * @returns DescribeMonitorGroupCategoriesResponse + */ + describeMonitorGroupCategories(request: $_model.DescribeMonitorGroupCategoriesRequest): Promise<$_model.DescribeMonitorGroupCategoriesResponse>; + /** + * Queries the dynamic rules of an application group. + * + * @param request - DescribeMonitorGroupDynamicRulesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitorGroupDynamicRulesResponse + */ + describeMonitorGroupDynamicRulesWithOptions(request: $_model.DescribeMonitorGroupDynamicRulesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMonitorGroupDynamicRulesResponse>; + /** + * Queries the dynamic rules of an application group. + * + * @param request - DescribeMonitorGroupDynamicRulesRequest + * @returns DescribeMonitorGroupDynamicRulesResponse + */ + describeMonitorGroupDynamicRules(request: $_model.DescribeMonitorGroupDynamicRulesRequest): Promise<$_model.DescribeMonitorGroupDynamicRulesResponse>; + /** + * Queries the details of the resources in an application group. + * + * @param request - DescribeMonitorGroupInstanceAttributeRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitorGroupInstanceAttributeResponse + */ + describeMonitorGroupInstanceAttributeWithOptions(request: $_model.DescribeMonitorGroupInstanceAttributeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMonitorGroupInstanceAttributeResponse>; + /** + * Queries the details of the resources in an application group. + * + * @param request - DescribeMonitorGroupInstanceAttributeRequest + * @returns DescribeMonitorGroupInstanceAttributeResponse + */ + describeMonitorGroupInstanceAttribute(request: $_model.DescribeMonitorGroupInstanceAttributeRequest): Promise<$_model.DescribeMonitorGroupInstanceAttributeResponse>; + /** + * Queries the resources in an application group. + * + * @param request - DescribeMonitorGroupInstancesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitorGroupInstancesResponse + */ + describeMonitorGroupInstancesWithOptions(request: $_model.DescribeMonitorGroupInstancesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMonitorGroupInstancesResponse>; + /** + * Queries the resources in an application group. + * + * @param request - DescribeMonitorGroupInstancesRequest + * @returns DescribeMonitorGroupInstancesResponse + */ + describeMonitorGroupInstances(request: $_model.DescribeMonitorGroupInstancesRequest): Promise<$_model.DescribeMonitorGroupInstancesResponse>; + /** + * Queries the policies that are used to pause alert notifications for an application group. + * + * @param request - DescribeMonitorGroupNotifyPolicyListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitorGroupNotifyPolicyListResponse + */ + describeMonitorGroupNotifyPolicyListWithOptions(request: $_model.DescribeMonitorGroupNotifyPolicyListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMonitorGroupNotifyPolicyListResponse>; + /** + * Queries the policies that are used to pause alert notifications for an application group. + * + * @param request - DescribeMonitorGroupNotifyPolicyListRequest + * @returns DescribeMonitorGroupNotifyPolicyListResponse + */ + describeMonitorGroupNotifyPolicyList(request: $_model.DescribeMonitorGroupNotifyPolicyListRequest): Promise<$_model.DescribeMonitorGroupNotifyPolicyListResponse>; + /** + * Queries application groups. + * + * @remarks + * This topic provides an example of how to query the application groups of the current account. The response shows that the current account has two application groups: `testGroup124` and `test123`. + * + * @param request - DescribeMonitorGroupsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitorGroupsResponse + */ + describeMonitorGroupsWithOptions(request: $_model.DescribeMonitorGroupsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMonitorGroupsResponse>; + /** + * Queries application groups. + * + * @remarks + * This topic provides an example of how to query the application groups of the current account. The response shows that the current account has two application groups: `testGroup124` and `test123`. + * + * @param request - DescribeMonitorGroupsRequest + * @returns DescribeMonitorGroupsResponse + */ + describeMonitorGroups(request: $_model.DescribeMonitorGroupsRequest): Promise<$_model.DescribeMonitorGroupsResponse>; + /** + * Queries the resource quotas of CloudMonitor. + * + * @param request - DescribeMonitorResourceQuotaAttributeRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitorResourceQuotaAttributeResponse + */ + describeMonitorResourceQuotaAttributeWithOptions(request: $_model.DescribeMonitorResourceQuotaAttributeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMonitorResourceQuotaAttributeResponse>; + /** + * Queries the resource quotas of CloudMonitor. + * + * @param request - DescribeMonitorResourceQuotaAttributeRequest + * @returns DescribeMonitorResourceQuotaAttributeResponse + */ + describeMonitorResourceQuotaAttribute(request: $_model.DescribeMonitorResourceQuotaAttributeRequest): Promise<$_model.DescribeMonitorResourceQuotaAttributeResponse>; + /** + * Queries the AccessKey ID and AccessKey secret that are required to install the CloudMonitor agent on a third-party host. + * + * @param request - DescribeMonitoringAgentAccessKeyRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitoringAgentAccessKeyResponse + */ + describeMonitoringAgentAccessKeyWithOptions(request: $_model.DescribeMonitoringAgentAccessKeyRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMonitoringAgentAccessKeyResponse>; + /** + * Queries the AccessKey ID and AccessKey secret that are required to install the CloudMonitor agent on a third-party host. + * + * @param request - DescribeMonitoringAgentAccessKeyRequest + * @returns DescribeMonitoringAgentAccessKeyResponse + */ + describeMonitoringAgentAccessKey(request: $_model.DescribeMonitoringAgentAccessKeyRequest): Promise<$_model.DescribeMonitoringAgentAccessKeyResponse>; + /** + * Queries the configurations of the CloudMonitor agent. + * + * @param request - DescribeMonitoringAgentConfigRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitoringAgentConfigResponse + */ + describeMonitoringAgentConfigWithOptions(request: $_model.DescribeMonitoringAgentConfigRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMonitoringAgentConfigResponse>; + /** + * Queries the configurations of the CloudMonitor agent. + * + * @param request - DescribeMonitoringAgentConfigRequest + * @returns DescribeMonitoringAgentConfigResponse + */ + describeMonitoringAgentConfig(request: $_model.DescribeMonitoringAgentConfigRequest): Promise<$_model.DescribeMonitoringAgentConfigResponse>; + /** + * Queries all hosts within the current Alibaba Cloud account, including hosts on which the CloudMonitor agent is installed and uninstalled. + * + * @param request - DescribeMonitoringAgentHostsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitoringAgentHostsResponse + */ + describeMonitoringAgentHostsWithOptions(request: $_model.DescribeMonitoringAgentHostsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMonitoringAgentHostsResponse>; + /** + * Queries all hosts within the current Alibaba Cloud account, including hosts on which the CloudMonitor agent is installed and uninstalled. + * + * @param request - DescribeMonitoringAgentHostsRequest + * @returns DescribeMonitoringAgentHostsResponse + */ + describeMonitoringAgentHosts(request: $_model.DescribeMonitoringAgentHostsRequest): Promise<$_model.DescribeMonitoringAgentHostsResponse>; + /** + * 查询指定资源的进程数列表 + * + * @remarks + * > Before you call this operation, call the CreateMonitoringAgentProcess operation to create processes. For more information, see [CreateMonitoringAgentProcess](https://help.aliyun.com/document_detail/114951.html~). + * This topic provides an example of how to query the processes of the `i-hp3hl3cx1pbahzy8****` instance. The response indicates the details of the `NGINX` and `HTTP` processes. + * + * @param request - DescribeMonitoringAgentProcessesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitoringAgentProcessesResponse + */ + describeMonitoringAgentProcessesWithOptions(request: $_model.DescribeMonitoringAgentProcessesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMonitoringAgentProcessesResponse>; + /** + * 查询指定资源的进程数列表 + * + * @remarks + * > Before you call this operation, call the CreateMonitoringAgentProcess operation to create processes. For more information, see [CreateMonitoringAgentProcess](https://help.aliyun.com/document_detail/114951.html~). + * This topic provides an example of how to query the processes of the `i-hp3hl3cx1pbahzy8****` instance. The response indicates the details of the `NGINX` and `HTTP` processes. + * + * @param request - DescribeMonitoringAgentProcessesRequest + * @returns DescribeMonitoringAgentProcessesResponse + */ + describeMonitoringAgentProcesses(request: $_model.DescribeMonitoringAgentProcessesRequest): Promise<$_model.DescribeMonitoringAgentProcessesResponse>; + /** + * Queries the status of the CloudMonitor agent. + * + * @remarks + * This topic describes how to query the status of the CloudMonitor agent that is installed on the `i-hp3dunahluwajv6f****` instance. The result indicates that the CloudMonitor agent is in the `running` state. + * + * @param request - DescribeMonitoringAgentStatusesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitoringAgentStatusesResponse + */ + describeMonitoringAgentStatusesWithOptions(request: $_model.DescribeMonitoringAgentStatusesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMonitoringAgentStatusesResponse>; + /** + * Queries the status of the CloudMonitor agent. + * + * @remarks + * This topic describes how to query the status of the CloudMonitor agent that is installed on the `i-hp3dunahluwajv6f****` instance. The result indicates that the CloudMonitor agent is in the `running` state. + * + * @param request - DescribeMonitoringAgentStatusesRequest + * @returns DescribeMonitoringAgentStatusesResponse + */ + describeMonitoringAgentStatuses(request: $_model.DescribeMonitoringAgentStatusesRequest): Promise<$_model.DescribeMonitoringAgentStatusesResponse>; + /** + * Queries the global configurations of the CloudMonitor agent. + * + * @param request - DescribeMonitoringConfigRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitoringConfigResponse + */ + describeMonitoringConfigWithOptions(request: $_model.DescribeMonitoringConfigRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMonitoringConfigResponse>; + /** + * Queries the global configurations of the CloudMonitor agent. + * + * @param request - DescribeMonitoringConfigRequest + * @returns DescribeMonitoringConfigResponse + */ + describeMonitoringConfig(request: $_model.DescribeMonitoringConfigRequest): Promise<$_model.DescribeMonitoringConfigResponse>; + /** + * Queries the keys of all tags that are attached to cloud resources in a region. + * + * @remarks + * > If a tag is attached to multiple cloud resources in the region, the key of the tag is returned only once. + * + * @param request - DescribeProductResourceTagKeyListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeProductResourceTagKeyListResponse + */ + describeProductResourceTagKeyListWithOptions(request: $_model.DescribeProductResourceTagKeyListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeProductResourceTagKeyListResponse>; + /** + * Queries the keys of all tags that are attached to cloud resources in a region. + * + * @remarks + * > If a tag is attached to multiple cloud resources in the region, the key of the tag is returned only once. + * + * @param request - DescribeProductResourceTagKeyListRequest + * @returns DescribeProductResourceTagKeyListResponse + */ + describeProductResourceTagKeyList(request: $_model.DescribeProductResourceTagKeyListRequest): Promise<$_model.DescribeProductResourceTagKeyListResponse>; + /** + * Queries the cloud services for which the initiative alert feature is enabled. + * + * @param request - DescribeProductsOfActiveMetricRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeProductsOfActiveMetricRuleResponse + */ + describeProductsOfActiveMetricRuleWithOptions(request: $_model.DescribeProductsOfActiveMetricRuleRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeProductsOfActiveMetricRuleResponse>; + /** + * Queries the cloud services for which the initiative alert feature is enabled. + * + * @param request - DescribeProductsOfActiveMetricRuleRequest + * @returns DescribeProductsOfActiveMetricRuleResponse + */ + describeProductsOfActiveMetricRule(request: $_model.DescribeProductsOfActiveMetricRuleRequest): Promise<$_model.DescribeProductsOfActiveMetricRuleResponse>; + /** + * Queries the information about monitored services in CloudMonitor. + * + * @remarks + * The information obtained by this operation includes the service description, namespace, and tags. + * + * @param request - DescribeProjectMetaRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeProjectMetaResponse + */ + describeProjectMetaWithOptions(request: $_model.DescribeProjectMetaRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeProjectMetaResponse>; + /** + * Queries the information about monitored services in CloudMonitor. + * + * @remarks + * The information obtained by this operation includes the service description, namespace, and tags. + * + * @param request - DescribeProjectMetaRequest + * @returns DescribeProjectMetaResponse + */ + describeProjectMeta(request: $_model.DescribeProjectMetaRequest): Promise<$_model.DescribeProjectMetaResponse>; + /** + * Queries the details of a site monitoring task. + * + * @remarks + * This topic provides an example on how to query the details of a site monitoring task whose ID is `cc641dff-c19d-45f3-ad0a-818a0c4f****`. The returned result indicates that the task name is `test123`, the URL that is monitored by the task is `https://aliyun.com`, and the name of the carrier is `Alibaba`. + * + * @param request - DescribeSiteMonitorAttributeRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSiteMonitorAttributeResponse + */ + describeSiteMonitorAttributeWithOptions(request: $_model.DescribeSiteMonitorAttributeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeSiteMonitorAttributeResponse>; + /** + * Queries the details of a site monitoring task. + * + * @remarks + * This topic provides an example on how to query the details of a site monitoring task whose ID is `cc641dff-c19d-45f3-ad0a-818a0c4f****`. The returned result indicates that the task name is `test123`, the URL that is monitored by the task is `https://aliyun.com`, and the name of the carrier is `Alibaba`. + * + * @param request - DescribeSiteMonitorAttributeRequest + * @returns DescribeSiteMonitorAttributeResponse + */ + describeSiteMonitorAttribute(request: $_model.DescribeSiteMonitorAttributeRequest): Promise<$_model.DescribeSiteMonitorAttributeResponse>; + /** + * Queries the fine-grained monitoring data of a site monitoring task. + * + * @param request - DescribeSiteMonitorDataRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSiteMonitorDataResponse + */ + describeSiteMonitorDataWithOptions(request: $_model.DescribeSiteMonitorDataRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeSiteMonitorDataResponse>; + /** + * Queries the fine-grained monitoring data of a site monitoring task. + * + * @param request - DescribeSiteMonitorDataRequest + * @returns DescribeSiteMonitorDataResponse + */ + describeSiteMonitorData(request: $_model.DescribeSiteMonitorDataRequest): Promise<$_model.DescribeSiteMonitorDataResponse>; + /** + * Queries the detection points that are provided by carriers. + * + * @remarks + * This topic provides an example on how to query the detection points that are provided by China Unicom in Guiyang. + * + * @param request - DescribeSiteMonitorISPCityListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSiteMonitorISPCityListResponse + */ + describeSiteMonitorISPCityListWithOptions(request: $_model.DescribeSiteMonitorISPCityListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeSiteMonitorISPCityListResponse>; + /** + * Queries the detection points that are provided by carriers. + * + * @remarks + * This topic provides an example on how to query the detection points that are provided by China Unicom in Guiyang. + * + * @param request - DescribeSiteMonitorISPCityListRequest + * @returns DescribeSiteMonitorISPCityListResponse + */ + describeSiteMonitorISPCityList(request: $_model.DescribeSiteMonitorISPCityListRequest): Promise<$_model.DescribeSiteMonitorISPCityListResponse>; + /** + * Queries site monitoring tasks. + * + * @remarks + * This topic provides an example on how to query all the site monitoring tasks of your Alibaba Cloud account. In this example, the returned result indicates that the Alibaba Cloud account has one site monitoring task named `HanZhou_ECS2`. + * + * @param request - DescribeSiteMonitorListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSiteMonitorListResponse + */ + describeSiteMonitorListWithOptions(request: $_model.DescribeSiteMonitorListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeSiteMonitorListResponse>; + /** + * Queries site monitoring tasks. + * + * @remarks + * This topic provides an example on how to query all the site monitoring tasks of your Alibaba Cloud account. In this example, the returned result indicates that the Alibaba Cloud account has one site monitoring task named `HanZhou_ECS2`. + * + * @param request - DescribeSiteMonitorListRequest + * @returns DescribeSiteMonitorListResponse + */ + describeSiteMonitorList(request: $_model.DescribeSiteMonitorListRequest): Promise<$_model.DescribeSiteMonitorListResponse>; + /** + * Queries the logs of one or more instant test tasks. + * + * @remarks + * You can create an instant test task only by using the Alibaba Cloud account that you used to enable Network Analysis and Monitoring. + * This topic provides an example to show how to query the logs of an instant test task whose ID is `afa5c3ce-f944-4363-9edb-ce919a29****`. + * + * @param request - DescribeSiteMonitorLogRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSiteMonitorLogResponse + */ + describeSiteMonitorLogWithOptions(request: $_model.DescribeSiteMonitorLogRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeSiteMonitorLogResponse>; + /** + * Queries the logs of one or more instant test tasks. + * + * @remarks + * You can create an instant test task only by using the Alibaba Cloud account that you used to enable Network Analysis and Monitoring. + * This topic provides an example to show how to query the logs of an instant test task whose ID is `afa5c3ce-f944-4363-9edb-ce919a29****`. + * + * @param request - DescribeSiteMonitorLogRequest + * @returns DescribeSiteMonitorLogResponse + */ + describeSiteMonitorLog(request: $_model.DescribeSiteMonitorLogRequest): Promise<$_model.DescribeSiteMonitorLogResponse>; + /** + * Queries the quotas and version of site monitoring. + * + * @param request - DescribeSiteMonitorQuotaRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSiteMonitorQuotaResponse + */ + describeSiteMonitorQuotaWithOptions(request: $_model.DescribeSiteMonitorQuotaRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeSiteMonitorQuotaResponse>; + /** + * Queries the quotas and version of site monitoring. + * + * @param request - DescribeSiteMonitorQuotaRequest + * @returns DescribeSiteMonitorQuotaResponse + */ + describeSiteMonitorQuota(request: $_model.DescribeSiteMonitorQuotaRequest): Promise<$_model.DescribeSiteMonitorQuotaResponse>; + /** + * Queries the statistics of a specified metric for a specified site monitoring task. + * + * @remarks + * This topic provides an example on how to query the statistics of the `Availability` metric for a site monitoring task whose ID is `ef4cdc8b-9dc7-43e7-810e-f950e56c****`. The result indicates that the availability rate of the site is `100%`. + * + * @param request - DescribeSiteMonitorStatisticsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSiteMonitorStatisticsResponse + */ + describeSiteMonitorStatisticsWithOptions(request: $_model.DescribeSiteMonitorStatisticsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeSiteMonitorStatisticsResponse>; + /** + * Queries the statistics of a specified metric for a specified site monitoring task. + * + * @remarks + * This topic provides an example on how to query the statistics of the `Availability` metric for a site monitoring task whose ID is `ef4cdc8b-9dc7-43e7-810e-f950e56c****`. The result indicates that the availability rate of the site is `100%`. + * + * @param request - DescribeSiteMonitorStatisticsRequest + * @returns DescribeSiteMonitorStatisticsResponse + */ + describeSiteMonitorStatistics(request: $_model.DescribeSiteMonitorStatisticsRequest): Promise<$_model.DescribeSiteMonitorStatisticsResponse>; + /** + * 查询拨测探测节点列表 + * + * @param request - DescribeSyntheticProbeListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSyntheticProbeListResponse + */ + describeSyntheticProbeListWithOptions(request: $_model.DescribeSyntheticProbeListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeSyntheticProbeListResponse>; + /** + * 查询拨测探测节点列表 + * + * @param request - DescribeSyntheticProbeListRequest + * @returns DescribeSyntheticProbeListResponse + */ + describeSyntheticProbeList(request: $_model.DescribeSyntheticProbeListRequest): Promise<$_model.DescribeSyntheticProbeListResponse>; + /** + * Queries the details of a system event. + * + * @param request - DescribeSystemEventAttributeRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSystemEventAttributeResponse + */ + describeSystemEventAttributeWithOptions(request: $_model.DescribeSystemEventAttributeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeSystemEventAttributeResponse>; + /** + * Queries the details of a system event. + * + * @param request - DescribeSystemEventAttributeRequest + * @returns DescribeSystemEventAttributeResponse + */ + describeSystemEventAttribute(request: $_model.DescribeSystemEventAttributeRequest): Promise<$_model.DescribeSystemEventAttributeResponse>; + /** + * Queries the number of times that a system event of a cloud service has occurred. + * + * @remarks + * ### [](#)Background information + * You can call the [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html) operation to query the cloud services supported by CloudMonitor and their system events. + * ### [](#)Description + * This topic provides an example on how to query the number of times that a system event of `Elastic Compute Service (ECS)` has occurred. The returned result shows that the specified system event has occurred three times. + * + * @param request - DescribeSystemEventCountRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSystemEventCountResponse + */ + describeSystemEventCountWithOptions(request: $_model.DescribeSystemEventCountRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeSystemEventCountResponse>; + /** + * Queries the number of times that a system event of a cloud service has occurred. + * + * @remarks + * ### [](#)Background information + * You can call the [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html) operation to query the cloud services supported by CloudMonitor and their system events. + * ### [](#)Description + * This topic provides an example on how to query the number of times that a system event of `Elastic Compute Service (ECS)` has occurred. The returned result shows that the specified system event has occurred three times. + * + * @param request - DescribeSystemEventCountRequest + * @returns DescribeSystemEventCountResponse + */ + describeSystemEventCount(request: $_model.DescribeSystemEventCountRequest): Promise<$_model.DescribeSystemEventCountResponse>; + /** + * Queries the number of times a system event occurred during each interval within a period of time. + * + * @param request - DescribeSystemEventHistogramRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSystemEventHistogramResponse + */ + describeSystemEventHistogramWithOptions(request: $_model.DescribeSystemEventHistogramRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeSystemEventHistogramResponse>; + /** + * Queries the number of times a system event occurred during each interval within a period of time. + * + * @param request - DescribeSystemEventHistogramRequest + * @returns DescribeSystemEventHistogramResponse + */ + describeSystemEventHistogram(request: $_model.DescribeSystemEventHistogramRequest): Promise<$_model.DescribeSystemEventHistogramResponse>; + /** + * Queries the meta information about system events. + * + * @param request - DescribeSystemEventMetaListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSystemEventMetaListResponse + */ + describeSystemEventMetaListWithOptions(request: $_model.DescribeSystemEventMetaListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeSystemEventMetaListResponse>; + /** + * Queries the meta information about system events. + * + * @param request - DescribeSystemEventMetaListRequest + * @returns DescribeSystemEventMetaListResponse + */ + describeSystemEventMetaList(request: $_model.DescribeSystemEventMetaListRequest): Promise<$_model.DescribeSystemEventMetaListResponse>; + /** + * Queries tag keys. + * + * @param request - DescribeTagKeyListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeTagKeyListResponse + */ + describeTagKeyListWithOptions(request: $_model.DescribeTagKeyListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeTagKeyListResponse>; + /** + * Queries tag keys. + * + * @param request - DescribeTagKeyListRequest + * @returns DescribeTagKeyListResponse + */ + describeTagKeyList(request: $_model.DescribeTagKeyListRequest): Promise<$_model.DescribeTagKeyListResponse>; + /** + * Queries the tag values corresponding to a specified tag key. + * + * @remarks + * This topic provides an example of how to query the tag values corresponding to `tagKey1`. The return results are `tagValue1` and `tagValue2`. + * + * @param request - DescribeTagValueListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeTagValueListResponse + */ + describeTagValueListWithOptions(request: $_model.DescribeTagValueListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeTagValueListResponse>; + /** + * Queries the tag values corresponding to a specified tag key. + * + * @remarks + * This topic provides an example of how to query the tag values corresponding to `tagKey1`. The return results are `tagValue1` and `tagValue2`. + * + * @param request - DescribeTagValueListRequest + * @returns DescribeTagValueListResponse + */ + describeTagValueList(request: $_model.DescribeTagValueListRequest): Promise<$_model.DescribeTagValueListResponse>; + /** + * Queries unhealthy instances detected by availability monitoring tasks. + * + * @param request - DescribeUnhealthyHostAvailabilityRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeUnhealthyHostAvailabilityResponse + */ + describeUnhealthyHostAvailabilityWithOptions(request: $_model.DescribeUnhealthyHostAvailabilityRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeUnhealthyHostAvailabilityResponse>; + /** + * Queries unhealthy instances detected by availability monitoring tasks. + * + * @param request - DescribeUnhealthyHostAvailabilityRequest + * @returns DescribeUnhealthyHostAvailabilityResponse + */ + describeUnhealthyHostAvailability(request: $_model.DescribeUnhealthyHostAvailabilityRequest): Promise<$_model.DescribeUnhealthyHostAvailabilityResponse>; + /** + * Disables the initiative alert feature for a cloud service. + * + * @param request - DisableActiveMetricRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DisableActiveMetricRuleResponse + */ + disableActiveMetricRuleWithOptions(request: $_model.DisableActiveMetricRuleRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DisableActiveMetricRuleResponse>; + /** + * Disables the initiative alert feature for a cloud service. + * + * @param request - DisableActiveMetricRuleRequest + * @returns DisableActiveMetricRuleResponse + */ + disableActiveMetricRule(request: $_model.DisableActiveMetricRuleRequest): Promise<$_model.DisableActiveMetricRuleResponse>; + /** + * @param request - DisableEventRulesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DisableEventRulesResponse + */ + disableEventRulesWithOptions(request: $_model.DisableEventRulesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DisableEventRulesResponse>; + /** + * @param request - DisableEventRulesRequest + * @returns DisableEventRulesResponse + */ + disableEventRules(request: $_model.DisableEventRulesRequest): Promise<$_model.DisableEventRulesResponse>; + /** + * Disables availability monitoring tasks. + * + * @param request - DisableHostAvailabilityRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DisableHostAvailabilityResponse + */ + disableHostAvailabilityWithOptions(request: $_model.DisableHostAvailabilityRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DisableHostAvailabilityResponse>; + /** + * Disables availability monitoring tasks. + * + * @param request - DisableHostAvailabilityRequest + * @returns DisableHostAvailabilityResponse + */ + disableHostAvailability(request: $_model.DisableHostAvailabilityRequest): Promise<$_model.DisableHostAvailabilityResponse>; + /** + * Disables alert rules. + * + * @param request - DisableMetricRulesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DisableMetricRulesResponse + */ + disableMetricRulesWithOptions(request: $_model.DisableMetricRulesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DisableMetricRulesResponse>; + /** + * Disables alert rules. + * + * @param request - DisableMetricRulesRequest + * @returns DisableMetricRulesResponse + */ + disableMetricRules(request: $_model.DisableMetricRulesRequest): Promise<$_model.DisableMetricRulesResponse>; + /** + * Disables site monitoring tasks. + * + * @param request - DisableSiteMonitorsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DisableSiteMonitorsResponse + */ + disableSiteMonitorsWithOptions(request: $_model.DisableSiteMonitorsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DisableSiteMonitorsResponse>; + /** + * Disables site monitoring tasks. + * + * @param request - DisableSiteMonitorsRequest + * @returns DisableSiteMonitorsResponse + */ + disableSiteMonitors(request: $_model.DisableSiteMonitorsRequest): Promise<$_model.DisableSiteMonitorsResponse>; + /** + * Enables the initiative alert feature for a cloud service. + * + * @param request - EnableActiveMetricRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns EnableActiveMetricRuleResponse + */ + enableActiveMetricRuleWithOptions(request: $_model.EnableActiveMetricRuleRequest, runtime: $dara.RuntimeOptions): Promise<$_model.EnableActiveMetricRuleResponse>; + /** + * Enables the initiative alert feature for a cloud service. + * + * @param request - EnableActiveMetricRuleRequest + * @returns EnableActiveMetricRuleResponse + */ + enableActiveMetricRule(request: $_model.EnableActiveMetricRuleRequest): Promise<$_model.EnableActiveMetricRuleResponse>; + /** + * @param request - EnableEventRulesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns EnableEventRulesResponse + */ + enableEventRulesWithOptions(request: $_model.EnableEventRulesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.EnableEventRulesResponse>; + /** + * @param request - EnableEventRulesRequest + * @returns EnableEventRulesResponse + */ + enableEventRules(request: $_model.EnableEventRulesRequest): Promise<$_model.EnableEventRulesResponse>; + /** + * Enables availability monitoring tasks. + * + * @param request - EnableHostAvailabilityRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns EnableHostAvailabilityResponse + */ + enableHostAvailabilityWithOptions(request: $_model.EnableHostAvailabilityRequest, runtime: $dara.RuntimeOptions): Promise<$_model.EnableHostAvailabilityResponse>; + /** + * Enables availability monitoring tasks. + * + * @param request - EnableHostAvailabilityRequest + * @returns EnableHostAvailabilityResponse + */ + enableHostAvailability(request: $_model.EnableHostAvailabilityRequest): Promise<$_model.EnableHostAvailabilityResponse>; + /** + * Enables or disables multiple blacklist policies at a time. + * + * @param request - EnableMetricRuleBlackListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns EnableMetricRuleBlackListResponse + */ + enableMetricRuleBlackListWithOptions(request: $_model.EnableMetricRuleBlackListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.EnableMetricRuleBlackListResponse>; + /** + * Enables or disables multiple blacklist policies at a time. + * + * @param request - EnableMetricRuleBlackListRequest + * @returns EnableMetricRuleBlackListResponse + */ + enableMetricRuleBlackList(request: $_model.EnableMetricRuleBlackListRequest): Promise<$_model.EnableMetricRuleBlackListResponse>; + /** + * Enables alert rules. + * + * @param request - EnableMetricRulesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns EnableMetricRulesResponse + */ + enableMetricRulesWithOptions(request: $_model.EnableMetricRulesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.EnableMetricRulesResponse>; + /** + * Enables alert rules. + * + * @param request - EnableMetricRulesRequest + * @returns EnableMetricRulesResponse + */ + enableMetricRules(request: $_model.EnableMetricRulesRequest): Promise<$_model.EnableMetricRulesResponse>; + /** + * Enables site monitoring tasks. + * + * @param request - EnableSiteMonitorsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns EnableSiteMonitorsResponse + */ + enableSiteMonitorsWithOptions(request: $_model.EnableSiteMonitorsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.EnableSiteMonitorsResponse>; + /** + * Enables site monitoring tasks. + * + * @param request - EnableSiteMonitorsRequest + * @returns EnableSiteMonitorsResponse + */ + enableSiteMonitors(request: $_model.EnableSiteMonitorsRequest): Promise<$_model.EnableSiteMonitorsResponse>; + /** + * InstallMonitoringAgent + * + * @remarks + * ## Prerequisites + * The Cloud Assistant client is installed on an ECS instance. For more information about how to install the Cloud Assistant client, see [Overview](https://help.aliyun.com/document_detail/64601.html). + * + * @param request - InstallMonitoringAgentRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns InstallMonitoringAgentResponse + */ + installMonitoringAgentWithOptions(request: $_model.InstallMonitoringAgentRequest, runtime: $dara.RuntimeOptions): Promise<$_model.InstallMonitoringAgentResponse>; + /** + * InstallMonitoringAgent + * + * @remarks + * ## Prerequisites + * The Cloud Assistant client is installed on an ECS instance. For more information about how to install the Cloud Assistant client, see [Overview](https://help.aliyun.com/document_detail/64601.html). + * + * @param request - InstallMonitoringAgentRequest + * @returns InstallMonitoringAgentResponse + */ + installMonitoringAgent(request: $_model.InstallMonitoringAgentRequest): Promise<$_model.InstallMonitoringAgentResponse>; + /** + * 修改应用分组内的进程监控 + * + * @param request - ModifyGroupMonitoringAgentProcessRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ModifyGroupMonitoringAgentProcessResponse + */ + modifyGroupMonitoringAgentProcessWithOptions(request: $_model.ModifyGroupMonitoringAgentProcessRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyGroupMonitoringAgentProcessResponse>; + /** + * 修改应用分组内的进程监控 + * + * @param request - ModifyGroupMonitoringAgentProcessRequest + * @returns ModifyGroupMonitoringAgentProcessResponse + */ + modifyGroupMonitoringAgentProcess(request: $_model.ModifyGroupMonitoringAgentProcessRequest): Promise<$_model.ModifyGroupMonitoringAgentProcessResponse>; + /** + * Modifies an availability monitoring task. + * + * @remarks + * This topic provides an example on how to change the name of an availability monitoring task named `12345` in an application group named `123456` to `task2`. + * + * @param request - ModifyHostAvailabilityRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ModifyHostAvailabilityResponse + */ + modifyHostAvailabilityWithOptions(request: $_model.ModifyHostAvailabilityRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyHostAvailabilityResponse>; + /** + * Modifies an availability monitoring task. + * + * @remarks + * This topic provides an example on how to change the name of an availability monitoring task named `12345` in an application group named `123456` to `task2`. + * + * @param request - ModifyHostAvailabilityRequest + * @returns ModifyHostAvailabilityResponse + */ + modifyHostAvailability(request: $_model.ModifyHostAvailabilityRequest): Promise<$_model.ModifyHostAvailabilityResponse>; + /** + * 修改非阿里云的主机显示信息 + * + * @remarks + * *** + * + * @param request - ModifyHostInfoRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ModifyHostInfoResponse + */ + modifyHostInfoWithOptions(request: $_model.ModifyHostInfoRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyHostInfoResponse>; + /** + * 修改非阿里云的主机显示信息 + * + * @remarks + * *** + * + * @param request - ModifyHostInfoRequest + * @returns ModifyHostInfoResponse + */ + modifyHostInfo(request: $_model.ModifyHostInfoRequest): Promise<$_model.ModifyHostInfoResponse>; + /** + * Modifies a namespace. + * + * @remarks + * This topic provides an example on how to change the data retention period of the `aliyun` namespace to `cms.s1.2xlarge`. The response shows that the namespace is modified. + * + * @param request - ModifyHybridMonitorNamespaceRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ModifyHybridMonitorNamespaceResponse + */ + modifyHybridMonitorNamespaceWithOptions(request: $_model.ModifyHybridMonitorNamespaceRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyHybridMonitorNamespaceResponse>; + /** + * Modifies a namespace. + * + * @remarks + * This topic provides an example on how to change the data retention period of the `aliyun` namespace to `cms.s1.2xlarge`. The response shows that the namespace is modified. + * + * @param request - ModifyHybridMonitorNamespaceRequest + * @returns ModifyHybridMonitorNamespaceResponse + */ + modifyHybridMonitorNamespace(request: $_model.ModifyHybridMonitorNamespaceRequest): Promise<$_model.ModifyHybridMonitorNamespaceResponse>; + /** + * Modifies a Logstore group. + * + * @remarks + * In this example, a Logstore group named `Logstore_test` is modified. The Logstore of the `aliyun-project` project in the `cn-hangzhou` region is changed to `Logstore-aliyun-all`. The response shows that the Logstore group is modified. + * + * @param request - ModifyHybridMonitorSLSGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ModifyHybridMonitorSLSGroupResponse + */ + modifyHybridMonitorSLSGroupWithOptions(request: $_model.ModifyHybridMonitorSLSGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyHybridMonitorSLSGroupResponse>; + /** + * Modifies a Logstore group. + * + * @remarks + * In this example, a Logstore group named `Logstore_test` is modified. The Logstore of the `aliyun-project` project in the `cn-hangzhou` region is changed to `Logstore-aliyun-all`. The response shows that the Logstore group is modified. + * + * @param request - ModifyHybridMonitorSLSGroupRequest + * @returns ModifyHybridMonitorSLSGroupResponse + */ + modifyHybridMonitorSLSGroup(request: $_model.ModifyHybridMonitorSLSGroupRequest): Promise<$_model.ModifyHybridMonitorSLSGroupResponse>; + /** + * Modifies a metric for the logs that are imported from Log Service. + * + * @remarks + * This topic provides an example on how to change the collection period of a metric import task whose ID is `36****` to `15` seconds. The task is used to monitor the logs that are imported from Log Service. The returned result indicates that the metric is modified. + * + * @param request - ModifyHybridMonitorTaskRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ModifyHybridMonitorTaskResponse + */ + modifyHybridMonitorTaskWithOptions(request: $_model.ModifyHybridMonitorTaskRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyHybridMonitorTaskResponse>; + /** + * Modifies a metric for the logs that are imported from Log Service. + * + * @remarks + * This topic provides an example on how to change the collection period of a metric import task whose ID is `36****` to `15` seconds. The task is used to monitor the logs that are imported from Log Service. The returned result indicates that the metric is modified. + * + * @param request - ModifyHybridMonitorTaskRequest + * @returns ModifyHybridMonitorTaskResponse + */ + modifyHybridMonitorTask(request: $_model.ModifyHybridMonitorTaskRequest): Promise<$_model.ModifyHybridMonitorTaskResponse>; + /** + * Modifies a blacklist policy. + * + * @param request - ModifyMetricRuleBlackListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ModifyMetricRuleBlackListResponse + */ + modifyMetricRuleBlackListWithOptions(request: $_model.ModifyMetricRuleBlackListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyMetricRuleBlackListResponse>; + /** + * Modifies a blacklist policy. + * + * @param request - ModifyMetricRuleBlackListRequest + * @returns ModifyMetricRuleBlackListResponse + */ + modifyMetricRuleBlackList(request: $_model.ModifyMetricRuleBlackListRequest): Promise<$_model.ModifyMetricRuleBlackListResponse>; + /** + * Modifies an alert template. + * + * @remarks + * This topic provides an example on how to modify an alert template whose version is `1` and ID is `123456`. The alert level is changed to `Critical`. The statistical method is changed to `Average`. The alert threshold comparator is changed to `GreaterThanOrEqualToThreshold`. The alert threshold is changed to `90`. The number of alert retries is changed to `3`. The response shows that the alert template is modified. + * + * @param request - ModifyMetricRuleTemplateRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ModifyMetricRuleTemplateResponse + */ + modifyMetricRuleTemplateWithOptions(request: $_model.ModifyMetricRuleTemplateRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyMetricRuleTemplateResponse>; + /** + * Modifies an alert template. + * + * @remarks + * This topic provides an example on how to modify an alert template whose version is `1` and ID is `123456`. The alert level is changed to `Critical`. The statistical method is changed to `Average`. The alert threshold comparator is changed to `GreaterThanOrEqualToThreshold`. The alert threshold is changed to `90`. The number of alert retries is changed to `3`. The response shows that the alert template is modified. + * + * @param request - ModifyMetricRuleTemplateRequest + * @returns ModifyMetricRuleTemplateResponse + */ + modifyMetricRuleTemplate(request: $_model.ModifyMetricRuleTemplateRequest): Promise<$_model.ModifyMetricRuleTemplateResponse>; + /** + * 修改应用分组 + * + * @param request - ModifyMonitorGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ModifyMonitorGroupResponse + */ + modifyMonitorGroupWithOptions(request: $_model.ModifyMonitorGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyMonitorGroupResponse>; + /** + * 修改应用分组 + * + * @param request - ModifyMonitorGroupRequest + * @returns ModifyMonitorGroupResponse + */ + modifyMonitorGroup(request: $_model.ModifyMonitorGroupRequest): Promise<$_model.ModifyMonitorGroupResponse>; + /** + * 修改应用分组中的资源 + * + * @param request - ModifyMonitorGroupInstancesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ModifyMonitorGroupInstancesResponse + */ + modifyMonitorGroupInstancesWithOptions(request: $_model.ModifyMonitorGroupInstancesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyMonitorGroupInstancesResponse>; + /** + * 修改应用分组中的资源 + * + * @param request - ModifyMonitorGroupInstancesRequest + * @returns ModifyMonitorGroupInstancesResponse + */ + modifyMonitorGroupInstances(request: $_model.ModifyMonitorGroupInstancesRequest): Promise<$_model.ModifyMonitorGroupInstancesResponse>; + /** + * Modifies a site monitoring task. + * + * @remarks + * The number of site monitoring tasks. + * + * @param request - ModifySiteMonitorRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ModifySiteMonitorResponse + */ + modifySiteMonitorWithOptions(request: $_model.ModifySiteMonitorRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifySiteMonitorResponse>; + /** + * Modifies a site monitoring task. + * + * @remarks + * The number of site monitoring tasks. + * + * @param request - ModifySiteMonitorRequest + * @returns ModifySiteMonitorResponse + */ + modifySiteMonitor(request: $_model.ModifySiteMonitorRequest): Promise<$_model.ModifySiteMonitorResponse>; + /** + * Creates or modifies an alert contact. + * + * @param request - PutContactRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutContactResponse + */ + putContactWithOptions(request: $_model.PutContactRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutContactResponse>; + /** + * Creates or modifies an alert contact. + * + * @param request - PutContactRequest + * @returns PutContactResponse + */ + putContact(request: $_model.PutContactRequest): Promise<$_model.PutContactResponse>; + /** + * Creates or modifies an alert contact group. + * + * @remarks + * This topic provides an example on how to create an alert contact group named `ECS_Group`. + * + * @param request - PutContactGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutContactGroupResponse + */ + putContactGroupWithOptions(request: $_model.PutContactGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutContactGroupResponse>; + /** + * Creates or modifies an alert contact group. + * + * @remarks + * This topic provides an example on how to create an alert contact group named `ECS_Group`. + * + * @param request - PutContactGroupRequest + * @returns PutContactGroupResponse + */ + putContactGroup(request: $_model.PutContactGroupRequest): Promise<$_model.PutContactGroupResponse>; + /** + * Reports custom events. + * + * @param request - PutCustomEventRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutCustomEventResponse + */ + putCustomEventWithOptions(request: $_model.PutCustomEventRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutCustomEventResponse>; + /** + * Reports custom events. + * + * @param request - PutCustomEventRequest + * @returns PutCustomEventResponse + */ + putCustomEvent(request: $_model.PutCustomEventRequest): Promise<$_model.PutCustomEventResponse>; + /** + * @remarks + * Before you call this operation, call the PutCustomEvent operation to report the monitoring data of the custom event. For more information, see [PutCustomEvent](https://help.aliyun.com/document_detail/115012.html). + * + * @param request - PutCustomEventRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutCustomEventRuleResponse + */ + putCustomEventRuleWithOptions(request: $_model.PutCustomEventRuleRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutCustomEventRuleResponse>; + /** + * @remarks + * Before you call this operation, call the PutCustomEvent operation to report the monitoring data of the custom event. For more information, see [PutCustomEvent](https://help.aliyun.com/document_detail/115012.html). + * + * @param request - PutCustomEventRuleRequest + * @returns PutCustomEventRuleResponse + */ + putCustomEventRule(request: $_model.PutCustomEventRuleRequest): Promise<$_model.PutCustomEventRuleResponse>; + /** + * Reports monitoring data. + * + * @remarks + * > We recommend that you call the [PutHybridMonitorMetricData](https://help.aliyun.com/document_detail/383455.html) operation of Hybrid Cloud Monitoring to report monitoring data. + * + * @param request - PutCustomMetricRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutCustomMetricResponse + */ + putCustomMetricWithOptions(request: $_model.PutCustomMetricRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutCustomMetricResponse>; + /** + * Reports monitoring data. + * + * @remarks + * > We recommend that you call the [PutHybridMonitorMetricData](https://help.aliyun.com/document_detail/383455.html) operation of Hybrid Cloud Monitoring to report monitoring data. + * + * @param request - PutCustomMetricRequest + * @returns PutCustomMetricResponse + */ + putCustomMetric(request: $_model.PutCustomMetricRequest): Promise<$_model.PutCustomMetricResponse>; + /** + * Creates a custom alert rule. + * + * @remarks + * Before you call this operation, call the PutCustomMetric operation to report custom monitoring data. For more information, see [PutCustomMetric](https://help.aliyun.com/document_detail/115004.html). + * + * @param request - PutCustomMetricRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutCustomMetricRuleResponse + */ + putCustomMetricRuleWithOptions(request: $_model.PutCustomMetricRuleRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutCustomMetricRuleResponse>; + /** + * Creates a custom alert rule. + * + * @remarks + * Before you call this operation, call the PutCustomMetric operation to report custom monitoring data. For more information, see [PutCustomMetric](https://help.aliyun.com/document_detail/115004.html). + * + * @param request - PutCustomMetricRuleRequest + * @returns PutCustomMetricRuleResponse + */ + putCustomMetricRule(request: $_model.PutCustomMetricRuleRequest): Promise<$_model.PutCustomMetricRuleResponse>; + /** + * 创建或者修改事件监控 + * + * @remarks + * If the specified rule name does not exist, an event-triggered alert rule is created. If the specified rule name exists, the specified event-triggered alert rule is modified. + * In this example, the `myRuleName` alert rule is created for the `ecs` cloud service. + * + * @param request - PutEventRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutEventRuleResponse + */ + putEventRuleWithOptions(request: $_model.PutEventRuleRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutEventRuleResponse>; + /** + * 创建或者修改事件监控 + * + * @remarks + * If the specified rule name does not exist, an event-triggered alert rule is created. If the specified rule name exists, the specified event-triggered alert rule is modified. + * In this example, the `myRuleName` alert rule is created for the `ecs` cloud service. + * + * @param request - PutEventRuleRequest + * @returns PutEventRuleResponse + */ + putEventRule(request: $_model.PutEventRuleRequest): Promise<$_model.PutEventRuleResponse>; + /** + * Adds or modifies the push channels of an event-triggered alert rule. + * + * @param request - PutEventRuleTargetsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutEventRuleTargetsResponse + */ + putEventRuleTargetsWithOptions(request: $_model.PutEventRuleTargetsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutEventRuleTargetsResponse>; + /** + * Adds or modifies the push channels of an event-triggered alert rule. + * + * @param request - PutEventRuleTargetsRequest + * @returns PutEventRuleTargetsResponse + */ + putEventRuleTargets(request: $_model.PutEventRuleTargetsRequest): Promise<$_model.PutEventRuleTargetsResponse>; + /** + * Creates or modifies a configuration set for exporting monitoring data. + * + * @remarks + * > The monitoring data can be exported only to Log Service. More services will be supported in the future. + * + * @param request - PutExporterOutputRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutExporterOutputResponse + */ + putExporterOutputWithOptions(request: $_model.PutExporterOutputRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutExporterOutputResponse>; + /** + * Creates or modifies a configuration set for exporting monitoring data. + * + * @remarks + * > The monitoring data can be exported only to Log Service. More services will be supported in the future. + * + * @param request - PutExporterOutputRequest + * @returns PutExporterOutputResponse + */ + putExporterOutput(request: $_model.PutExporterOutputRequest): Promise<$_model.PutExporterOutputResponse>; + /** + * Creates or modifies a data export rule. + * + * @param request - PutExporterRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutExporterRuleResponse + */ + putExporterRuleWithOptions(request: $_model.PutExporterRuleRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutExporterRuleResponse>; + /** + * Creates or modifies a data export rule. + * + * @param request - PutExporterRuleRequest + * @returns PutExporterRuleResponse + */ + putExporterRule(request: $_model.PutExporterRuleRequest): Promise<$_model.PutExporterRuleResponse>; + /** + * Creates or modifies an alert rule for an application group. + * + * @remarks + * This topic provides an example on how to create an alert rule for the `cpu_total` metric of Elastic Compute Service (ECS) in the `17285****` application group. The ID of the alert rule is `123456`. The name of the alert rule is `Rule_test`. The alert level is `Critical`. The statistical method is `Average`. The alert threshold comparator is `GreaterThanOrEqualToThreshold`. The alert threshold is `90`. The number of alert retries is `3`. The returned result shows that the alert rule is created and the alert rule ID is `123456`. + * + * @param request - PutGroupMetricRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutGroupMetricRuleResponse + */ + putGroupMetricRuleWithOptions(request: $_model.PutGroupMetricRuleRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutGroupMetricRuleResponse>; + /** + * Creates or modifies an alert rule for an application group. + * + * @remarks + * This topic provides an example on how to create an alert rule for the `cpu_total` metric of Elastic Compute Service (ECS) in the `17285****` application group. The ID of the alert rule is `123456`. The name of the alert rule is `Rule_test`. The alert level is `Critical`. The statistical method is `Average`. The alert threshold comparator is `GreaterThanOrEqualToThreshold`. The alert threshold is `90`. The number of alert retries is `3`. The returned result shows that the alert rule is created and the alert rule ID is `123456`. + * + * @param request - PutGroupMetricRuleRequest + * @returns PutGroupMetricRuleResponse + */ + putGroupMetricRule(request: $_model.PutGroupMetricRuleRequest): Promise<$_model.PutGroupMetricRuleResponse>; + /** + * Imports the monitoring data of a metric to a namespace of Hybrid Cloud Monitoring. + * + * @remarks + * ## [](#)Prerequisites + * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](https://help.aliyun.com/document_detail/250773.html). + * ## [](#)Limits + * The size of the monitoring data that you import at a time must be less than or equal to 1 MB. + * ## [](#)Operation description + * This topic provides an example on how to import the monitoring data of the `CPU_Usage` metric to the `default-aliyun` namespace of Hybrid Cloud Monitoring. + * + * @param request - PutHybridMonitorMetricDataRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutHybridMonitorMetricDataResponse + */ + putHybridMonitorMetricDataWithOptions(request: $_model.PutHybridMonitorMetricDataRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutHybridMonitorMetricDataResponse>; + /** + * Imports the monitoring data of a metric to a namespace of Hybrid Cloud Monitoring. + * + * @remarks + * ## [](#)Prerequisites + * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](https://help.aliyun.com/document_detail/250773.html). + * ## [](#)Limits + * The size of the monitoring data that you import at a time must be less than or equal to 1 MB. + * ## [](#)Operation description + * This topic provides an example on how to import the monitoring data of the `CPU_Usage` metric to the `default-aliyun` namespace of Hybrid Cloud Monitoring. + * + * @param request - PutHybridMonitorMetricDataRequest + * @returns PutHybridMonitorMetricDataResponse + */ + putHybridMonitorMetricData(request: $_model.PutHybridMonitorMetricDataRequest): Promise<$_model.PutHybridMonitorMetricDataResponse>; + /** + * Creates or modifies a log monitoring metric. + * + * @remarks + * In the example of this topic, the `cpu_total` log monitoring metric is created. The response shows that the log monitoring metric is created and the metric ID is `16****`. + * + * @param request - PutLogMonitorRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutLogMonitorResponse + */ + putLogMonitorWithOptions(request: $_model.PutLogMonitorRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutLogMonitorResponse>; + /** + * Creates or modifies a log monitoring metric. + * + * @remarks + * In the example of this topic, the `cpu_total` log monitoring metric is created. The response shows that the log monitoring metric is created and the metric ID is `16****`. + * + * @param request - PutLogMonitorRequest + * @returns PutLogMonitorResponse + */ + putLogMonitor(request: $_model.PutLogMonitorRequest): Promise<$_model.PutLogMonitorResponse>; + /** + * Adds or modifies the push channels of an alert rule. + * + * @remarks + * # [](#) + * This topic provides an example on how to associate an alert rule with a resource. In this example, the alert rule is `ae06917_75a8c43178ab66****`, the resource is `acs:mns:cn-hangzhou:120886317861****:/queues/test/message`, and the ID of the resource for which alerts are triggered is `1`. The response indicates that the resource is associated with the specified alert rule. + * + * @param request - PutMetricRuleTargetsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutMetricRuleTargetsResponse + */ + putMetricRuleTargetsWithOptions(request: $_model.PutMetricRuleTargetsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutMetricRuleTargetsResponse>; + /** + * Adds or modifies the push channels of an alert rule. + * + * @remarks + * # [](#) + * This topic provides an example on how to associate an alert rule with a resource. In this example, the alert rule is `ae06917_75a8c43178ab66****`, the resource is `acs:mns:cn-hangzhou:120886317861****:/queues/test/message`, and the ID of the resource for which alerts are triggered is `1`. The response indicates that the resource is associated with the specified alert rule. + * + * @param request - PutMetricRuleTargetsRequest + * @returns PutMetricRuleTargetsResponse + */ + putMetricRuleTargets(request: $_model.PutMetricRuleTargetsRequest): Promise<$_model.PutMetricRuleTargetsResponse>; + /** + * Creates or modifies an alert rule to dynamically add instances that meet the rule to an application group. + * + * @param request - PutMonitorGroupDynamicRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutMonitorGroupDynamicRuleResponse + */ + putMonitorGroupDynamicRuleWithOptions(request: $_model.PutMonitorGroupDynamicRuleRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutMonitorGroupDynamicRuleResponse>; + /** + * Creates or modifies an alert rule to dynamically add instances that meet the rule to an application group. + * + * @param request - PutMonitorGroupDynamicRuleRequest + * @returns PutMonitorGroupDynamicRuleResponse + */ + putMonitorGroupDynamicRule(request: $_model.PutMonitorGroupDynamicRuleRequest): Promise<$_model.PutMonitorGroupDynamicRuleResponse>; + /** + * Configures global settings for the CloudMonitor agent. + * + * @param request - PutMonitoringConfigRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutMonitoringConfigResponse + */ + putMonitoringConfigWithOptions(request: $_model.PutMonitoringConfigRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutMonitoringConfigResponse>; + /** + * Configures global settings for the CloudMonitor agent. + * + * @param request - PutMonitoringConfigRequest + * @returns PutMonitoringConfigResponse + */ + putMonitoringConfig(request: $_model.PutMonitoringConfigRequest): Promise<$_model.PutMonitoringConfigResponse>; + /** + * Configures an alert rule. + * + * @remarks + * This topic provides an example on how to create a threshold-triggered alert rule for the `cpu_total` metric of an Elastic Compute Service (ECS) instance whose ID is `i-uf6j91r34rnwawoo****`. The namespace of ECS metrics is `acs_ecs_dashboard`. The alert contact group of the alert rule is `ECS_Group`. The name of the alert rule is `test123`. The ID of the alert rule is `a151cd6023eacee2f0978e03863cc1697c89508****`. The statistical method for Critical-level alerts is `Average`. The comparison operator for Critical-level alerts is `GreaterThanOrEqualToThreshold`. The threshold for Critical-level alerts is `90`. The consecutive number of times for which the metric value meets the trigger condition before a Critical-level alert is triggered is `3`. + * > Statistics verification was added on August 15, 2024. Only the statistical value of the corresponding metric can be set for the Statistics parameter. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://www.alibabacloud.com/help/en/cms/support/appendix-1-metrics). + * + * @param tmpReq - PutResourceMetricRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutResourceMetricRuleResponse + */ + putResourceMetricRuleWithOptions(tmpReq: $_model.PutResourceMetricRuleRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutResourceMetricRuleResponse>; + /** + * Configures an alert rule. + * + * @remarks + * This topic provides an example on how to create a threshold-triggered alert rule for the `cpu_total` metric of an Elastic Compute Service (ECS) instance whose ID is `i-uf6j91r34rnwawoo****`. The namespace of ECS metrics is `acs_ecs_dashboard`. The alert contact group of the alert rule is `ECS_Group`. The name of the alert rule is `test123`. The ID of the alert rule is `a151cd6023eacee2f0978e03863cc1697c89508****`. The statistical method for Critical-level alerts is `Average`. The comparison operator for Critical-level alerts is `GreaterThanOrEqualToThreshold`. The threshold for Critical-level alerts is `90`. The consecutive number of times for which the metric value meets the trigger condition before a Critical-level alert is triggered is `3`. + * > Statistics verification was added on August 15, 2024. Only the statistical value of the corresponding metric can be set for the Statistics parameter. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://www.alibabacloud.com/help/en/cms/support/appendix-1-metrics). + * + * @param request - PutResourceMetricRuleRequest + * @returns PutResourceMetricRuleResponse + */ + putResourceMetricRule(request: $_model.PutResourceMetricRuleRequest): Promise<$_model.PutResourceMetricRuleResponse>; + /** + * Creates multiple alert rules for the specified metric of a specified resource. + * + * @remarks + * This topic provides an example on how to create a threshold-triggered alert rule for the `cpu_total` metric of an Elastic Compute Service (ECS) instance whose ID is `i-uf6j91r34rnwawoo****`. The namespace of ECS metrics is `acs_ecs_dashboard`. The alert contact group of the alert rule is `ECS_Group`. The name of the alert rule is `test123`. The ID of the alert rule is `a151cd6023eacee2f0978e03863cc1697c89508****`. The statistical method for Critical-level alerts is `Average`. The comparison operator for Critical-level alerts is `GreaterThanOrEqualToThreshold`. The threshold for Critical-level alerts is `90`. The consecutive number of times for which the metric value meets the trigger condition before a Critical-level alert is triggered is `3`. + * > Statistics verification was added on August 15, 2024. Only the statistical value of the corresponding metric can be set for the Statistics parameter. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://www.alibabacloud.com/help/en/cms/support/appendix-1-metrics). + * + * @param request - PutResourceMetricRulesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutResourceMetricRulesResponse + */ + putResourceMetricRulesWithOptions(request: $_model.PutResourceMetricRulesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutResourceMetricRulesResponse>; + /** + * Creates multiple alert rules for the specified metric of a specified resource. + * + * @remarks + * This topic provides an example on how to create a threshold-triggered alert rule for the `cpu_total` metric of an Elastic Compute Service (ECS) instance whose ID is `i-uf6j91r34rnwawoo****`. The namespace of ECS metrics is `acs_ecs_dashboard`. The alert contact group of the alert rule is `ECS_Group`. The name of the alert rule is `test123`. The ID of the alert rule is `a151cd6023eacee2f0978e03863cc1697c89508****`. The statistical method for Critical-level alerts is `Average`. The comparison operator for Critical-level alerts is `GreaterThanOrEqualToThreshold`. The threshold for Critical-level alerts is `90`. The consecutive number of times for which the metric value meets the trigger condition before a Critical-level alert is triggered is `3`. + * > Statistics verification was added on August 15, 2024. Only the statistical value of the corresponding metric can be set for the Statistics parameter. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://www.alibabacloud.com/help/en/cms/support/appendix-1-metrics). + * + * @param request - PutResourceMetricRulesRequest + * @returns PutResourceMetricRulesResponse + */ + putResourceMetricRules(request: $_model.PutResourceMetricRulesRequest): Promise<$_model.PutResourceMetricRulesResponse>; + /** + * Deletes tags. + * + * @param request - RemoveTagsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns RemoveTagsResponse + */ + removeTagsWithOptions(request: $_model.RemoveTagsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.RemoveTagsResponse>; + /** + * Deletes tags. + * + * @param request - RemoveTagsRequest + * @returns RemoveTagsResponse + */ + removeTags(request: $_model.RemoveTagsRequest): Promise<$_model.RemoveTagsResponse>; + /** + * Debugs a system event of an Alibaba Cloud service. + * + * @remarks + * This operation is used to test whether a system event can be triggered as expected. You can call this operation to simulate a system event and check whether an expected response is returned after the system event triggers an alert. + * + * @param request - SendDryRunSystemEventRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns SendDryRunSystemEventResponse + */ + sendDryRunSystemEventWithOptions(request: $_model.SendDryRunSystemEventRequest, runtime: $dara.RuntimeOptions): Promise<$_model.SendDryRunSystemEventResponse>; + /** + * Debugs a system event of an Alibaba Cloud service. + * + * @remarks + * This operation is used to test whether a system event can be triggered as expected. You can call this operation to simulate a system event and check whether an expected response is returned after the system event triggers an alert. + * + * @param request - SendDryRunSystemEventRequest + * @returns SendDryRunSystemEventResponse + */ + sendDryRunSystemEvent(request: $_model.SendDryRunSystemEventRequest): Promise<$_model.SendDryRunSystemEventResponse>; + /** + * Uninstalls the CloudMonitor agent from a third-party host. + * + * @remarks + * > This API operation is not applicable to Elastic Compute Service (ECS) instances. To uninstall the agent from an ECS instance, see [Install and uninstall the CloudMonitor agent](https://help.aliyun.com/document_detail/183482.html). + * + * @param request - UninstallMonitoringAgentRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns UninstallMonitoringAgentResponse + */ + uninstallMonitoringAgentWithOptions(request: $_model.UninstallMonitoringAgentRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UninstallMonitoringAgentResponse>; + /** + * Uninstalls the CloudMonitor agent from a third-party host. + * + * @remarks + * > This API operation is not applicable to Elastic Compute Service (ECS) instances. To uninstall the agent from an ECS instance, see [Install and uninstall the CloudMonitor agent](https://help.aliyun.com/document_detail/183482.html). + * + * @param request - UninstallMonitoringAgentRequest + * @returns UninstallMonitoringAgentResponse + */ + uninstallMonitoringAgent(request: $_model.UninstallMonitoringAgentRequest): Promise<$_model.UninstallMonitoringAgentResponse>; +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/client.js b/backend/node_modules/@alicloud/cms20190101/dist/client.js new file mode 100644 index 0000000..6be3d78 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/client.js @@ -0,0 +1,8647 @@ +"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; + }; +})(); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const openapi_core_1 = __importDefault(require("@alicloud/openapi-core")); +const openapi_core_2 = require("@alicloud/openapi-core"); +const $_model = __importStar(require("./models/model")); +__exportStar(require("./models/model"), exports); +class Client extends openapi_core_1.default { + constructor(config) { + super(config); + this._endpointRule = ""; + this.checkConfig(config); + this._endpoint = this.getEndpoint("cms", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint); + } + getEndpoint(productId, regionId, endpointRule, network, suffix, endpointMap, endpoint) { + if (!$dara.isNull(endpoint)) { + return endpoint; + } + if (!$dara.isNull(endpointMap) && !$dara.isNull(endpointMap[regionId])) { + return endpointMap[regionId]; + } + return openapi_core_2.OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix); + } + /** + * Adds tags to an application group. + * + * @remarks + * This topic provides an example on how to add a tag to an application group whose ID is `7301****`. In this example, the key of the tag is `key1` and the value of the tag is `value1`. + * + * @param request - AddTagsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns AddTagsResponse + */ + async addTagsWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.groupIds)) { + query["GroupIds"] = request.groupIds; + } + if (!$dara.isNull(request.tag)) { + query["Tag"] = request.tag; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "AddTags", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.AddTagsResponse({})); + } + /** + * Adds tags to an application group. + * + * @remarks + * This topic provides an example on how to add a tag to an application group whose ID is `7301****`. In this example, the key of the tag is `key1` and the value of the tag is `value1`. + * + * @param request - AddTagsRequest + * @returns AddTagsResponse + */ + async addTags(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.addTagsWithOptions(request, runtime); + } + /** + * Applies an alert template to an application group to generate an alert rule. + * + * @remarks + * In this example, the `700****` alert template is applied to the `123456` application group. For the generated alert rule, the ID is `applyTemplate8ab74c6b-9f27-47ab-8841-de01dc08****`, and the name is `test123`. + * + * @param request - ApplyMetricRuleTemplateRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ApplyMetricRuleTemplateResponse + */ + async applyMetricRuleTemplateWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.appendMode)) { + query["AppendMode"] = request.appendMode; + } + if (!$dara.isNull(request.applyMode)) { + query["ApplyMode"] = request.applyMode; + } + if (!$dara.isNull(request.enableEndTime)) { + query["EnableEndTime"] = request.enableEndTime; + } + if (!$dara.isNull(request.enableStartTime)) { + query["EnableStartTime"] = request.enableStartTime; + } + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.notifyLevel)) { + query["NotifyLevel"] = request.notifyLevel; + } + if (!$dara.isNull(request.silenceTime)) { + query["SilenceTime"] = request.silenceTime; + } + if (!$dara.isNull(request.templateIds)) { + query["TemplateIds"] = request.templateIds; + } + if (!$dara.isNull(request.webhook)) { + query["Webhook"] = request.webhook; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "ApplyMetricRuleTemplate", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.ApplyMetricRuleTemplateResponse({})); + } + /** + * Applies an alert template to an application group to generate an alert rule. + * + * @remarks + * In this example, the `700****` alert template is applied to the `123456` application group. For the generated alert rule, the ID is `applyTemplate8ab74c6b-9f27-47ab-8841-de01dc08****`, and the name is `test123`. + * + * @param request - ApplyMetricRuleTemplateRequest + * @returns ApplyMetricRuleTemplateResponse + */ + async applyMetricRuleTemplate(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.applyMetricRuleTemplateWithOptions(request, runtime); + } + /** + * Creates site monitoring tasks. + * + * @remarks + * This topic provides an example on how to create a site monitoring task named `HangZhou_ECS1`. The URL that is monitored by the task is `https://www.aliyun.com` and the type of the task is `HTTP`. The returned result shows that the site monitoring task is created. The name of the site monitoring task is `HangZhou_ECS1` and the task ID is `679fbe4f-b80b-4706-91b2-5427b43e****`. + * + * @param request - BatchCreateInstantSiteMonitorRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns BatchCreateInstantSiteMonitorResponse + */ + async batchCreateInstantSiteMonitorWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.taskList)) { + query["TaskList"] = request.taskList; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "BatchCreateInstantSiteMonitor", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.BatchCreateInstantSiteMonitorResponse({})); + } + /** + * Creates site monitoring tasks. + * + * @remarks + * This topic provides an example on how to create a site monitoring task named `HangZhou_ECS1`. The URL that is monitored by the task is `https://www.aliyun.com` and the type of the task is `HTTP`. The returned result shows that the site monitoring task is created. The name of the site monitoring task is `HangZhou_ECS1` and the task ID is `679fbe4f-b80b-4706-91b2-5427b43e****`. + * + * @param request - BatchCreateInstantSiteMonitorRequest + * @returns BatchCreateInstantSiteMonitorResponse + */ + async batchCreateInstantSiteMonitor(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.batchCreateInstantSiteMonitorWithOptions(request, runtime); + } + /** + * Exports the monitoring data that is defined in the Cursor operation. + * + * @remarks + * ### [](#)Prerequisites + * The `Cursor` information is returned by calling the [Cursor](https://help.aliyun.com/document_detail/2330730.html) operation. + * ### [](#)Description + * This topic provides an example on how to export the monitoring data of the `cpu_idle` metric for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. The `Cursor` information is specified. A maximum of 1,000 data entries can be returned in each response. + * + * @param tmpReq - BatchExportRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns BatchExportResponse + */ + async batchExportWithOptions(tmpReq, runtime) { + tmpReq.validate(); + let request = new $_model.BatchExportShrinkRequest({}); + openapi_core_2.OpenApiUtil.convert(tmpReq, request); + if (!$dara.isNull(tmpReq.measurements)) { + request.measurementsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.measurements, "Measurements", "json"); + } + let body = {}; + if (!$dara.isNull(request.cursor)) { + body["Cursor"] = request.cursor; + } + if (!$dara.isNull(request.length)) { + body["Length"] = request.length; + } + if (!$dara.isNull(request.measurementsShrink)) { + body["Measurements"] = request.measurementsShrink; + } + if (!$dara.isNull(request.metric)) { + body["Metric"] = request.metric; + } + if (!$dara.isNull(request.namespace)) { + body["Namespace"] = request.namespace; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + body: openapi_core_2.OpenApiUtil.parseToMap(body), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "BatchExport", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.BatchExportResponse({})); + } + /** + * Exports the monitoring data that is defined in the Cursor operation. + * + * @remarks + * ### [](#)Prerequisites + * The `Cursor` information is returned by calling the [Cursor](https://help.aliyun.com/document_detail/2330730.html) operation. + * ### [](#)Description + * This topic provides an example on how to export the monitoring data of the `cpu_idle` metric for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. The `Cursor` information is specified. A maximum of 1,000 data entries can be returned in each response. + * + * @param request - BatchExportRequest + * @returns BatchExportResponse + */ + async batchExport(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.batchExportWithOptions(request, runtime); + } + /** + * Creates an application group based on the tags of cloud resources. + * + * @remarks + * This operation is available for Elastic Compute Service (ECS), ApsaraDB RDS, and Server Load Balancer (SLB). + * This topic provides an example to show how to create an application group for resources whose tag key is `ecs_instance`. In this example, the alert contact group of the application group is `ECS_Group`. + * + * @param request - CreateDynamicTagGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateDynamicTagGroupResponse + */ + async createDynamicTagGroupWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.contactGroupList)) { + query["ContactGroupList"] = request.contactGroupList; + } + if (!$dara.isNull(request.enableInstallAgent)) { + query["EnableInstallAgent"] = request.enableInstallAgent; + } + if (!$dara.isNull(request.enableSubscribeEvent)) { + query["EnableSubscribeEvent"] = request.enableSubscribeEvent; + } + if (!$dara.isNull(request.matchExpress)) { + query["MatchExpress"] = request.matchExpress; + } + if (!$dara.isNull(request.matchExpressFilterRelation)) { + query["MatchExpressFilterRelation"] = request.matchExpressFilterRelation; + } + if (!$dara.isNull(request.tagKey)) { + query["TagKey"] = request.tagKey; + } + if (!$dara.isNull(request.tagRegionId)) { + query["TagRegionId"] = request.tagRegionId; + } + if (!$dara.isNull(request.templateIdList)) { + query["TemplateIdList"] = request.templateIdList; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "CreateDynamicTagGroup", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateDynamicTagGroupResponse({})); + } + /** + * Creates an application group based on the tags of cloud resources. + * + * @remarks + * This operation is available for Elastic Compute Service (ECS), ApsaraDB RDS, and Server Load Balancer (SLB). + * This topic provides an example to show how to create an application group for resources whose tag key is `ecs_instance`. In this example, the alert contact group of the application group is `ECS_Group`. + * + * @param request - CreateDynamicTagGroupRequest + * @returns CreateDynamicTagGroupResponse + */ + async createDynamicTagGroup(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.createDynamicTagGroupWithOptions(request, runtime); + } + /** + * Creates one or more alert rules for a specified application group. + * + * @remarks + * This topic provides an example to show how to create an alert rule for the `cpu_total` metric of Elastic Compute Service (ECS) in the `123456` application group. The ID of the alert rule is `456789`. The name of the alert rule is `ECS_Rule1`. The alert level is `Critical`. The statistical method is `Average`. The comparison operator is `GreaterThanOrEqualToThreshold`. The alert threshold is `90`. The number of alert retries is `3`. The response shows that the alert rule named `ECS_Rule1` is created. + * + * @param request - CreateGroupMetricRulesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateGroupMetricRulesResponse + */ + async createGroupMetricRulesWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.groupMetricRules)) { + query["GroupMetricRules"] = request.groupMetricRules; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "CreateGroupMetricRules", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateGroupMetricRulesResponse({})); + } + /** + * Creates one or more alert rules for a specified application group. + * + * @remarks + * This topic provides an example to show how to create an alert rule for the `cpu_total` metric of Elastic Compute Service (ECS) in the `123456` application group. The ID of the alert rule is `456789`. The name of the alert rule is `ECS_Rule1`. The alert level is `Critical`. The statistical method is `Average`. The comparison operator is `GreaterThanOrEqualToThreshold`. The alert threshold is `90`. The number of alert retries is `3`. The response shows that the alert rule named `ECS_Rule1` is created. + * + * @param request - CreateGroupMetricRulesRequest + * @returns CreateGroupMetricRulesResponse + */ + async createGroupMetricRules(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.createGroupMetricRulesWithOptions(request, runtime); + } + /** + * Creates a process monitoring task for an application group. + * + * @param request - CreateGroupMonitoringAgentProcessRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateGroupMonitoringAgentProcessResponse + */ + async createGroupMonitoringAgentProcessWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.alertConfig)) { + query["AlertConfig"] = request.alertConfig; + } + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.matchExpress)) { + query["MatchExpress"] = request.matchExpress; + } + if (!$dara.isNull(request.matchExpressFilterRelation)) { + query["MatchExpressFilterRelation"] = request.matchExpressFilterRelation; + } + if (!$dara.isNull(request.processName)) { + query["ProcessName"] = request.processName; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "CreateGroupMonitoringAgentProcess", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateGroupMonitoringAgentProcessResponse({})); + } + /** + * Creates a process monitoring task for an application group. + * + * @param request - CreateGroupMonitoringAgentProcessRequest + * @returns CreateGroupMonitoringAgentProcessResponse + */ + async createGroupMonitoringAgentProcess(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.createGroupMonitoringAgentProcessWithOptions(request, runtime); + } + /** + * Creates an availability monitoring task. + * + * @remarks + * This topic provides an example on how to create an availability monitoring task named `task1` in an application group named `123456`. The TaskType parameter of the task is set to `HTTP`. After you start the task, the system sends alerts by using the specified email address and DingTalk chatbot. + * + * @param request - CreateHostAvailabilityRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateHostAvailabilityResponse + */ + async createHostAvailabilityWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.alertConfigEscalationList)) { + query["AlertConfigEscalationList"] = request.alertConfigEscalationList; + } + if (!$dara.isNull(request.alertConfigTargetList)) { + query["AlertConfigTargetList"] = request.alertConfigTargetList; + } + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.instanceList)) { + query["InstanceList"] = request.instanceList; + } + if (!$dara.isNull(request.taskName)) { + query["TaskName"] = request.taskName; + } + if (!$dara.isNull(request.taskScope)) { + query["TaskScope"] = request.taskScope; + } + if (!$dara.isNull(request.taskType)) { + query["TaskType"] = request.taskType; + } + if (!$dara.isNull(request.alertConfig)) { + query["AlertConfig"] = request.alertConfig; + } + if (!$dara.isNull(request.taskOption)) { + query["TaskOption"] = request.taskOption; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "CreateHostAvailability", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateHostAvailabilityResponse({})); + } + /** + * Creates an availability monitoring task. + * + * @remarks + * This topic provides an example on how to create an availability monitoring task named `task1` in an application group named `123456`. The TaskType parameter of the task is set to `HTTP`. After you start the task, the system sends alerts by using the specified email address and DingTalk chatbot. + * + * @param request - CreateHostAvailabilityRequest + * @returns CreateHostAvailabilityResponse + */ + async createHostAvailability(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.createHostAvailabilityWithOptions(request, runtime); + } + /** + * Creates a namespace. + * + * @remarks + * ## [](#)Prerequisites + * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](https://help.aliyun.com/document_detail/250773.html). + * ## [](#)Operation description + * This topic provides an example on how to create a namespace named `aliyun`. In this example, the data retention period of the namespace is set to `cms.s1.3xlarge`. The returned result indicates that the namespace is created. + * + * @param request - CreateHybridMonitorNamespaceRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateHybridMonitorNamespaceResponse + */ + async createHybridMonitorNamespaceWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.description)) { + query["Description"] = request.description; + } + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + if (!$dara.isNull(request.namespaceRegion)) { + query["NamespaceRegion"] = request.namespaceRegion; + } + if (!$dara.isNull(request.namespaceType)) { + query["NamespaceType"] = request.namespaceType; + } + if (!$dara.isNull(request.spec)) { + query["Spec"] = request.spec; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "CreateHybridMonitorNamespace", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateHybridMonitorNamespaceResponse({})); + } + /** + * Creates a namespace. + * + * @remarks + * ## [](#)Prerequisites + * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](https://help.aliyun.com/document_detail/250773.html). + * ## [](#)Operation description + * This topic provides an example on how to create a namespace named `aliyun`. In this example, the data retention period of the namespace is set to `cms.s1.3xlarge`. The returned result indicates that the namespace is created. + * + * @param request - CreateHybridMonitorNamespaceRequest + * @returns CreateHybridMonitorNamespaceResponse + */ + async createHybridMonitorNamespace(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.createHybridMonitorNamespaceWithOptions(request, runtime); + } + /** + * Creates a Logstore group of Hybrid Cloud Monitoring. + * + * @remarks + * ### [](#)Prerequisites + * Simple Log Service is activated. A project and a Logstore are created in Simple Log Service. For more information, see [Getting Started](https://help.aliyun.com/document_detail/54604.html). + * ### [](#)Operation description + * This topic provides an example on how to create a Logstore group named `Logstore_test`. The region ID is `cn-hangzhou`. The project is `aliyun-project`. The Logstore is `Logstore-ECS`. The response shows that the Logstore group is created. + * + * @param request - CreateHybridMonitorSLSGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateHybridMonitorSLSGroupResponse + */ + async createHybridMonitorSLSGroupWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.SLSGroupConfig)) { + query["SLSGroupConfig"] = request.SLSGroupConfig; + } + if (!$dara.isNull(request.SLSGroupDescription)) { + query["SLSGroupDescription"] = request.SLSGroupDescription; + } + if (!$dara.isNull(request.SLSGroupName)) { + query["SLSGroupName"] = request.SLSGroupName; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "CreateHybridMonitorSLSGroup", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateHybridMonitorSLSGroupResponse({})); + } + /** + * Creates a Logstore group of Hybrid Cloud Monitoring. + * + * @remarks + * ### [](#)Prerequisites + * Simple Log Service is activated. A project and a Logstore are created in Simple Log Service. For more information, see [Getting Started](https://help.aliyun.com/document_detail/54604.html). + * ### [](#)Operation description + * This topic provides an example on how to create a Logstore group named `Logstore_test`. The region ID is `cn-hangzhou`. The project is `aliyun-project`. The Logstore is `Logstore-ECS`. The response shows that the Logstore group is created. + * + * @param request - CreateHybridMonitorSLSGroupRequest + * @returns CreateHybridMonitorSLSGroupResponse + */ + async createHybridMonitorSLSGroup(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.createHybridMonitorSLSGroupWithOptions(request, runtime); + } + /** + * Creates a metric import task for an Alibaba Cloud service or creates a metric for logs imported from Simple Log Service. + * + * @remarks + * # [](#)Prerequisites + * * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](https://help.aliyun.com/document_detail/250773.html). + * * If you want to create a metric for logs imported from Simple Log Service, make sure that you have activated Simple Log Service and created a project and a Logstore. For more information, see [Getting Started](https://help.aliyun.com/document_detail/54604.html). + * # [](#)Description + * This topic provides an example on how to create a metric import task named `aliyun_task` for Elastic Compute Service (ECS). The task imports the `cpu_total` metric to the `aliyun` namespace. The response shows that the metric import task is created. + * + * @param request - CreateHybridMonitorTaskRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateHybridMonitorTaskResponse + */ + async createHybridMonitorTaskWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.attachLabels)) { + query["AttachLabels"] = request.attachLabels; + } + if (!$dara.isNull(request.cloudAccessId)) { + query["CloudAccessId"] = request.cloudAccessId; + } + if (!$dara.isNull(request.collectInterval)) { + query["CollectInterval"] = request.collectInterval; + } + if (!$dara.isNull(request.collectTargetType)) { + query["CollectTargetType"] = request.collectTargetType; + } + if (!$dara.isNull(request.description)) { + query["Description"] = request.description; + } + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + if (!$dara.isNull(request.SLSProcessConfig)) { + query["SLSProcessConfig"] = request.SLSProcessConfig; + } + if (!$dara.isNull(request.targetUserId)) { + query["TargetUserId"] = request.targetUserId; + } + if (!$dara.isNull(request.targetUserIdList)) { + query["TargetUserIdList"] = request.targetUserIdList; + } + if (!$dara.isNull(request.taskName)) { + query["TaskName"] = request.taskName; + } + if (!$dara.isNull(request.taskType)) { + query["TaskType"] = request.taskType; + } + if (!$dara.isNull(request.YARMConfig)) { + query["YARMConfig"] = request.YARMConfig; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "CreateHybridMonitorTask", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateHybridMonitorTaskResponse({})); + } + /** + * Creates a metric import task for an Alibaba Cloud service or creates a metric for logs imported from Simple Log Service. + * + * @remarks + * # [](#)Prerequisites + * * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](https://help.aliyun.com/document_detail/250773.html). + * * If you want to create a metric for logs imported from Simple Log Service, make sure that you have activated Simple Log Service and created a project and a Logstore. For more information, see [Getting Started](https://help.aliyun.com/document_detail/54604.html). + * # [](#)Description + * This topic provides an example on how to create a metric import task named `aliyun_task` for Elastic Compute Service (ECS). The task imports the `cpu_total` metric to the `aliyun` namespace. The response shows that the metric import task is created. + * + * @param request - CreateHybridMonitorTaskRequest + * @returns CreateHybridMonitorTaskResponse + */ + async createHybridMonitorTask(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.createHybridMonitorTaskWithOptions(request, runtime); + } + /** + * Creates an instant test task. + * + * @remarks + * You can create an instant test task only by using the Alibaba Cloud account that you used to enable Network Analysis and Monitoring. + * This topic provides an example to show how to create an instant test task. The name of the task is `task1`. The tested address is `http://www.aliyun.com`. The test type is `HTTP`. The number of detection points is `1`. + * + * @param request - CreateInstantSiteMonitorRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateInstantSiteMonitorResponse + */ + async createInstantSiteMonitorWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.address)) { + query["Address"] = request.address; + } + if (!$dara.isNull(request.agentGroup)) { + query["AgentGroup"] = request.agentGroup; + } + if (!$dara.isNull(request.ispCities)) { + query["IspCities"] = request.ispCities; + } + if (!$dara.isNull(request.optionsJson)) { + query["OptionsJson"] = request.optionsJson; + } + if (!$dara.isNull(request.randomIspCity)) { + query["RandomIspCity"] = request.randomIspCity; + } + if (!$dara.isNull(request.taskName)) { + query["TaskName"] = request.taskName; + } + if (!$dara.isNull(request.taskType)) { + query["TaskType"] = request.taskType; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "CreateInstantSiteMonitor", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateInstantSiteMonitorResponse({})); + } + /** + * Creates an instant test task. + * + * @remarks + * You can create an instant test task only by using the Alibaba Cloud account that you used to enable Network Analysis and Monitoring. + * This topic provides an example to show how to create an instant test task. The name of the task is `task1`. The tested address is `http://www.aliyun.com`. The test type is `HTTP`. The number of detection points is `1`. + * + * @param request - CreateInstantSiteMonitorRequest + * @returns CreateInstantSiteMonitorResponse + */ + async createInstantSiteMonitor(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.createInstantSiteMonitorWithOptions(request, runtime); + } + /** + * Creates a blacklist policy. + * + * @remarks + * ### Background information + * * CloudMonitor blocks alert notifications based on the blacklist policies that take effect. To block alert notifications when the value of a metric that belongs to a cloud service reaches the threshold that you specified, add the metric to a blacklist policy. + * * CloudMonitor allows you to create blacklist policies only based on threshold metrics. You cannot create blacklist policies based on system events. For more information about the cloud services and the thresholds of the metrics that are supported by CloudMonitor, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @param request - CreateMetricRuleBlackListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateMetricRuleBlackListResponse + */ + async createMetricRuleBlackListWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.category)) { + query["Category"] = request.category; + } + if (!$dara.isNull(request.effectiveTime)) { + query["EffectiveTime"] = request.effectiveTime; + } + if (!$dara.isNull(request.enableEndTime)) { + query["EnableEndTime"] = request.enableEndTime; + } + if (!$dara.isNull(request.enableStartTime)) { + query["EnableStartTime"] = request.enableStartTime; + } + if (!$dara.isNull(request.instances)) { + query["Instances"] = request.instances; + } + if (!$dara.isNull(request.metrics)) { + query["Metrics"] = request.metrics; + } + if (!$dara.isNull(request.name)) { + query["Name"] = request.name; + } + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + if (!$dara.isNull(request.scopeType)) { + query["ScopeType"] = request.scopeType; + } + if (!$dara.isNull(request.scopeValue)) { + query["ScopeValue"] = request.scopeValue; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "CreateMetricRuleBlackList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateMetricRuleBlackListResponse({})); + } + /** + * Creates a blacklist policy. + * + * @remarks + * ### Background information + * * CloudMonitor blocks alert notifications based on the blacklist policies that take effect. To block alert notifications when the value of a metric that belongs to a cloud service reaches the threshold that you specified, add the metric to a blacklist policy. + * * CloudMonitor allows you to create blacklist policies only based on threshold metrics. You cannot create blacklist policies based on system events. For more information about the cloud services and the thresholds of the metrics that are supported by CloudMonitor, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @param request - CreateMetricRuleBlackListRequest + * @returns CreateMetricRuleBlackListResponse + */ + async createMetricRuleBlackList(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.createMetricRuleBlackListWithOptions(request, runtime); + } + /** + * Associates resources with an alert rule. + * + * @param request - CreateMetricRuleResourcesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateMetricRuleResourcesResponse + */ + async createMetricRuleResourcesWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.overwrite)) { + query["Overwrite"] = request.overwrite; + } + if (!$dara.isNull(request.resources)) { + query["Resources"] = request.resources; + } + if (!$dara.isNull(request.ruleId)) { + query["RuleId"] = request.ruleId; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "CreateMetricRuleResources", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateMetricRuleResourcesResponse({})); + } + /** + * Associates resources with an alert rule. + * + * @param request - CreateMetricRuleResourcesRequest + * @returns CreateMetricRuleResourcesResponse + */ + async createMetricRuleResources(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.createMetricRuleResourcesWithOptions(request, runtime); + } + /** + * Creates an alert template. + * + * @param request - CreateMetricRuleTemplateRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateMetricRuleTemplateResponse + */ + async createMetricRuleTemplateWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.alertTemplates)) { + query["AlertTemplates"] = request.alertTemplates; + } + if (!$dara.isNull(request.description)) { + query["Description"] = request.description; + } + if (!$dara.isNull(request.name)) { + query["Name"] = request.name; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "CreateMetricRuleTemplate", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateMetricRuleTemplateResponse({})); + } + /** + * Creates an alert template. + * + * @param request - CreateMetricRuleTemplateRequest + * @returns CreateMetricRuleTemplateResponse + */ + async createMetricRuleTemplate(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.createMetricRuleTemplateWithOptions(request, runtime); + } + /** + * Creates a task to monitor a process. + * + * @param request - CreateMonitorAgentProcessRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateMonitorAgentProcessResponse + */ + async createMonitorAgentProcessWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.instanceId)) { + query["InstanceId"] = request.instanceId; + } + if (!$dara.isNull(request.processName)) { + query["ProcessName"] = request.processName; + } + if (!$dara.isNull(request.processUser)) { + query["ProcessUser"] = request.processUser; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "CreateMonitorAgentProcess", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateMonitorAgentProcessResponse({})); + } + /** + * Creates a task to monitor a process. + * + * @param request - CreateMonitorAgentProcessRequest + * @returns CreateMonitorAgentProcessResponse + */ + async createMonitorAgentProcess(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.createMonitorAgentProcessWithOptions(request, runtime); + } + /** + * Creates an application group. + * + * @remarks + * In this example, an application group named `ECS_Group` is created. + * + * @param request - CreateMonitorGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateMonitorGroupResponse + */ + async createMonitorGroupWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.contactGroups)) { + query["ContactGroups"] = request.contactGroups; + } + if (!$dara.isNull(request.groupName)) { + query["GroupName"] = request.groupName; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "CreateMonitorGroup", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateMonitorGroupResponse({})); + } + /** + * Creates an application group. + * + * @remarks + * In this example, an application group named `ECS_Group` is created. + * + * @param request - CreateMonitorGroupRequest + * @returns CreateMonitorGroupResponse + */ + async createMonitorGroup(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.createMonitorGroupWithOptions(request, runtime); + } + /** + * Creates an application group by using a resource group. + * + * @remarks + * This topic provides an example on how to create an application group by using the resource group `CloudMonitor` and the alert contact group `ECS_Group`. The region ID of the resource group is `cn-hangzhou`. + * + * @param request - CreateMonitorGroupByResourceGroupIdRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateMonitorGroupByResourceGroupIdResponse + */ + async createMonitorGroupByResourceGroupIdWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.contactGroupList)) { + query["ContactGroupList"] = request.contactGroupList; + } + if (!$dara.isNull(request.enableInstallAgent)) { + query["EnableInstallAgent"] = request.enableInstallAgent; + } + if (!$dara.isNull(request.enableSubscribeEvent)) { + query["EnableSubscribeEvent"] = request.enableSubscribeEvent; + } + if (!$dara.isNull(request.regionId)) { + query["RegionId"] = request.regionId; + } + if (!$dara.isNull(request.resourceGroupId)) { + query["ResourceGroupId"] = request.resourceGroupId; + } + if (!$dara.isNull(request.resourceGroupName)) { + query["ResourceGroupName"] = request.resourceGroupName; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "CreateMonitorGroupByResourceGroupId", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateMonitorGroupByResourceGroupIdResponse({})); + } + /** + * Creates an application group by using a resource group. + * + * @remarks + * This topic provides an example on how to create an application group by using the resource group `CloudMonitor` and the alert contact group `ECS_Group`. The region ID of the resource group is `cn-hangzhou`. + * + * @param request - CreateMonitorGroupByResourceGroupIdRequest + * @returns CreateMonitorGroupByResourceGroupIdResponse + */ + async createMonitorGroupByResourceGroupId(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.createMonitorGroupByResourceGroupIdWithOptions(request, runtime); + } + /** + * Adds resources to an application group. + * + * @remarks + * You can add a maximum of 1,000 instances to an application group at a time. You can add a maximum of 3,000 instances of an Alibaba Cloud service to an application group. The total number of instances that you can add to an application group is unlimited. + * In this example, an Elastic Compute Service (ECS) instance in the `China (Hangzhou)` region is added to the `3607****` application group. The instance ID is `i-2ze26xj5wwy12****` and the instance name is `test-instance-ecs`. + * + * @param request - CreateMonitorGroupInstancesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateMonitorGroupInstancesResponse + */ + async createMonitorGroupInstancesWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.instances)) { + query["Instances"] = request.instances; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "CreateMonitorGroupInstances", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateMonitorGroupInstancesResponse({})); + } + /** + * Adds resources to an application group. + * + * @remarks + * You can add a maximum of 1,000 instances to an application group at a time. You can add a maximum of 3,000 instances of an Alibaba Cloud service to an application group. The total number of instances that you can add to an application group is unlimited. + * In this example, an Elastic Compute Service (ECS) instance in the `China (Hangzhou)` region is added to the `3607****` application group. The instance ID is `i-2ze26xj5wwy12****` and the instance name is `test-instance-ecs`. + * + * @param request - CreateMonitorGroupInstancesRequest + * @returns CreateMonitorGroupInstancesResponse + */ + async createMonitorGroupInstances(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.createMonitorGroupInstancesWithOptions(request, runtime); + } + /** + * Creates a policy to pause alert notifications for an application group. + * + * @remarks + * If the policy is valid, no alert notifications are sent for the application group. + * This topic describes how to create a `PauseNotify` policy to pause alert notifications for the `7301****` application group. The StartTime parameter is set to `1622949300000` and the EndTime parameter is set to `1623208500000`. This indicates that the policy is valid from `2021-06-06 11:15:00 UTC+8` to `2021-06-09 11:15:00 UTC+8`. + * + * @param request - CreateMonitorGroupNotifyPolicyRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateMonitorGroupNotifyPolicyResponse + */ + async createMonitorGroupNotifyPolicyWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.endTime)) { + query["EndTime"] = request.endTime; + } + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.policyType)) { + query["PolicyType"] = request.policyType; + } + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "CreateMonitorGroupNotifyPolicy", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateMonitorGroupNotifyPolicyResponse({})); + } + /** + * Creates a policy to pause alert notifications for an application group. + * + * @remarks + * If the policy is valid, no alert notifications are sent for the application group. + * This topic describes how to create a `PauseNotify` policy to pause alert notifications for the `7301****` application group. The StartTime parameter is set to `1622949300000` and the EndTime parameter is set to `1623208500000`. This indicates that the policy is valid from `2021-06-06 11:15:00 UTC+8` to `2021-06-09 11:15:00 UTC+8`. + * + * @param request - CreateMonitorGroupNotifyPolicyRequest + * @returns CreateMonitorGroupNotifyPolicyResponse + */ + async createMonitorGroupNotifyPolicy(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.createMonitorGroupNotifyPolicyWithOptions(request, runtime); + } + /** + * Creates a task to monitor a process. + * + * @param request - CreateMonitoringAgentProcessRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateMonitoringAgentProcessResponse + */ + async createMonitoringAgentProcessWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.instanceId)) { + query["InstanceId"] = request.instanceId; + } + if (!$dara.isNull(request.processName)) { + query["ProcessName"] = request.processName; + } + if (!$dara.isNull(request.processUser)) { + query["ProcessUser"] = request.processUser; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "CreateMonitoringAgentProcess", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateMonitoringAgentProcessResponse({})); + } + /** + * Creates a task to monitor a process. + * + * @param request - CreateMonitoringAgentProcessRequest + * @returns CreateMonitoringAgentProcessResponse + */ + async createMonitoringAgentProcess(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.createMonitoringAgentProcessWithOptions(request, runtime); + } + /** + * Creates a site monitoring task. + * + * @remarks + * This topic provides an example on how to create a site monitoring task named `HanZhou_ECS1`. The URL that is monitored by the task is `https://www.aliyun.com` and the type of the task is `HTTPS`. + * + * @param request - CreateSiteMonitorRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateSiteMonitorResponse + */ + async createSiteMonitorWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.address)) { + query["Address"] = request.address; + } + if (!$dara.isNull(request.agentGroup)) { + query["AgentGroup"] = request.agentGroup; + } + if (!$dara.isNull(request.alertIds)) { + query["AlertIds"] = request.alertIds; + } + if (!$dara.isNull(request.customSchedule)) { + query["CustomSchedule"] = request.customSchedule; + } + if (!$dara.isNull(request.interval)) { + query["Interval"] = request.interval; + } + if (!$dara.isNull(request.ispCities)) { + query["IspCities"] = request.ispCities; + } + if (!$dara.isNull(request.optionsJson)) { + query["OptionsJson"] = request.optionsJson; + } + if (!$dara.isNull(request.taskName)) { + query["TaskName"] = request.taskName; + } + if (!$dara.isNull(request.taskType)) { + query["TaskType"] = request.taskType; + } + if (!$dara.isNull(request.vpcConfig)) { + query["VpcConfig"] = request.vpcConfig; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "CreateSiteMonitor", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateSiteMonitorResponse({})); + } + /** + * Creates a site monitoring task. + * + * @remarks + * This topic provides an example on how to create a site monitoring task named `HanZhou_ECS1`. The URL that is monitored by the task is `https://www.aliyun.com` and the type of the task is `HTTPS`. + * + * @param request - CreateSiteMonitorRequest + * @returns CreateSiteMonitorResponse + */ + async createSiteMonitor(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.createSiteMonitorWithOptions(request, runtime); + } + /** + * Defines the range of monitoring data that you want to export. The Cursor information is returned. When you call the BatchExport operation for the first time, you must specify the Cursor information. + * + * @remarks + * ### [](#)Prerequisites + * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](https://help.aliyun.com/document_detail/250773.html). + * ### [](#)Background information + * You can call this operation to obtain the Cursor information and then call the [BatchExport](https://help.aliyun.com/document_detail/2329847.html) operation to export the monitoring data. + * ### [](#)Description + * This topic provides an example on how to define the monitoring data of a specified metric for a specified cloud service. In this example, the namespace of the cloud service is set to `acs_ecs_dashboard`, the metric is set to `cpu_idle`, the start time is set to `1641627000000`, and the end time is set to `1641645000000`. The number of idle CPU cores on your Elastic Compute Service (ECS) instances is measured every 60 seconds from 15:30:00, January 8, 2022 to 20:30:00, January 8, 2022. The `Cursor` information is returned. + * + * @param tmpReq - CursorRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CursorResponse + */ + async cursorWithOptions(tmpReq, runtime) { + tmpReq.validate(); + let request = new $_model.CursorShrinkRequest({}); + openapi_core_2.OpenApiUtil.convert(tmpReq, request); + if (!$dara.isNull(tmpReq.matchers)) { + request.matchersShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.matchers, "Matchers", "json"); + } + let body = {}; + if (!$dara.isNull(request.endTime)) { + body["EndTime"] = request.endTime; + } + if (!$dara.isNull(request.matchersShrink)) { + body["Matchers"] = request.matchersShrink; + } + if (!$dara.isNull(request.metric)) { + body["Metric"] = request.metric; + } + if (!$dara.isNull(request.namespace)) { + body["Namespace"] = request.namespace; + } + if (!$dara.isNull(request.period)) { + body["Period"] = request.period; + } + if (!$dara.isNull(request.startTime)) { + body["StartTime"] = request.startTime; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + body: openapi_core_2.OpenApiUtil.parseToMap(body), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "Cursor", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.CursorResponse({})); + } + /** + * Defines the range of monitoring data that you want to export. The Cursor information is returned. When you call the BatchExport operation for the first time, you must specify the Cursor information. + * + * @remarks + * ### [](#)Prerequisites + * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](https://help.aliyun.com/document_detail/250773.html). + * ### [](#)Background information + * You can call this operation to obtain the Cursor information and then call the [BatchExport](https://help.aliyun.com/document_detail/2329847.html) operation to export the monitoring data. + * ### [](#)Description + * This topic provides an example on how to define the monitoring data of a specified metric for a specified cloud service. In this example, the namespace of the cloud service is set to `acs_ecs_dashboard`, the metric is set to `cpu_idle`, the start time is set to `1641627000000`, and the end time is set to `1641645000000`. The number of idle CPU cores on your Elastic Compute Service (ECS) instances is measured every 60 seconds from 15:30:00, January 8, 2022 to 20:30:00, January 8, 2022. The `Cursor` information is returned. + * + * @param request - CursorRequest + * @returns CursorResponse + */ + async cursor(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.cursorWithOptions(request, runtime); + } + /** + * Deletes an alert contact. + * + * @param request - DeleteContactRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteContactResponse + */ + async deleteContactWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.contactName)) { + query["ContactName"] = request.contactName; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DeleteContact", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteContactResponse({})); + } + /** + * Deletes an alert contact. + * + * @param request - DeleteContactRequest + * @returns DeleteContactResponse + */ + async deleteContact(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.deleteContactWithOptions(request, runtime); + } + /** + * Deletes an alert contact group. + * + * @param request - DeleteContactGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteContactGroupResponse + */ + async deleteContactGroupWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.contactGroupName)) { + query["ContactGroupName"] = request.contactGroupName; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DeleteContactGroup", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteContactGroupResponse({})); + } + /** + * Deletes an alert contact group. + * + * @param request - DeleteContactGroupRequest + * @returns DeleteContactGroupResponse + */ + async deleteContactGroup(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.deleteContactGroupWithOptions(request, runtime); + } + /** + * Deletes the reported monitoring data of a metric. + * + * @param request - DeleteCustomMetricRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteCustomMetricResponse + */ + async deleteCustomMetricWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.md5)) { + query["Md5"] = request.md5; + } + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + if (!$dara.isNull(request.UUID)) { + query["UUID"] = request.UUID; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DeleteCustomMetric", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteCustomMetricResponse({})); + } + /** + * Deletes the reported monitoring data of a metric. + * + * @param request - DeleteCustomMetricRequest + * @returns DeleteCustomMetricResponse + */ + async deleteCustomMetric(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.deleteCustomMetricWithOptions(request, runtime); + } + /** + * Deletes a tag rule. + * + * @param request - DeleteDynamicTagGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteDynamicTagGroupResponse + */ + async deleteDynamicTagGroupWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.dynamicTagRuleId)) { + query["DynamicTagRuleId"] = request.dynamicTagRuleId; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DeleteDynamicTagGroup", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteDynamicTagGroupResponse({})); + } + /** + * Deletes a tag rule. + * + * @param request - DeleteDynamicTagGroupRequest + * @returns DeleteDynamicTagGroupResponse + */ + async deleteDynamicTagGroup(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.deleteDynamicTagGroupWithOptions(request, runtime); + } + /** + * Deletes the push channels of an event-triggered alert rule. + * + * @param request - DeleteEventRuleTargetsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteEventRuleTargetsResponse + */ + async deleteEventRuleTargetsWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.ids)) { + query["Ids"] = request.ids; + } + if (!$dara.isNull(request.ruleName)) { + query["RuleName"] = request.ruleName; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DeleteEventRuleTargets", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteEventRuleTargetsResponse({})); + } + /** + * Deletes the push channels of an event-triggered alert rule. + * + * @param request - DeleteEventRuleTargetsRequest + * @returns DeleteEventRuleTargetsResponse + */ + async deleteEventRuleTargets(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.deleteEventRuleTargetsWithOptions(request, runtime); + } + /** + * Deletes event-triggered alert rules. + * + * @param request - DeleteEventRulesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteEventRulesResponse + */ + async deleteEventRulesWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.ruleNames)) { + query["RuleNames"] = request.ruleNames; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DeleteEventRules", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteEventRulesResponse({})); + } + /** + * Deletes event-triggered alert rules. + * + * @param request - DeleteEventRulesRequest + * @returns DeleteEventRulesResponse + */ + async deleteEventRules(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.deleteEventRulesWithOptions(request, runtime); + } + /** + * Deletes a configuration set that is used to export monitoring data. + * + * @param request - DeleteExporterOutputRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteExporterOutputResponse + */ + async deleteExporterOutputWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.destName)) { + query["DestName"] = request.destName; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DeleteExporterOutput", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteExporterOutputResponse({})); + } + /** + * Deletes a configuration set that is used to export monitoring data. + * + * @param request - DeleteExporterOutputRequest + * @returns DeleteExporterOutputResponse + */ + async deleteExporterOutput(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.deleteExporterOutputWithOptions(request, runtime); + } + /** + * Deletes a data export rule. + * + * @param request - DeleteExporterRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteExporterRuleResponse + */ + async deleteExporterRuleWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.ruleName)) { + query["RuleName"] = request.ruleName; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DeleteExporterRule", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteExporterRuleResponse({})); + } + /** + * Deletes a data export rule. + * + * @param request - DeleteExporterRuleRequest + * @returns DeleteExporterRuleResponse + */ + async deleteExporterRule(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.deleteExporterRuleWithOptions(request, runtime); + } + /** + * Deletes a process monitoring task for an application group. + * + * @param request - DeleteGroupMonitoringAgentProcessRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteGroupMonitoringAgentProcessResponse + */ + async deleteGroupMonitoringAgentProcessWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.id)) { + query["Id"] = request.id; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DeleteGroupMonitoringAgentProcess", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteGroupMonitoringAgentProcessResponse({})); + } + /** + * Deletes a process monitoring task for an application group. + * + * @param request - DeleteGroupMonitoringAgentProcessRequest + * @returns DeleteGroupMonitoringAgentProcessResponse + */ + async deleteGroupMonitoringAgentProcess(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.deleteGroupMonitoringAgentProcessWithOptions(request, runtime); + } + /** + * Deletes availability monitoring tasks. + * + * @param request - DeleteHostAvailabilityRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteHostAvailabilityResponse + */ + async deleteHostAvailabilityWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.id)) { + query["Id"] = request.id; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DeleteHostAvailability", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteHostAvailabilityResponse({})); + } + /** + * Deletes availability monitoring tasks. + * + * @param request - DeleteHostAvailabilityRequest + * @returns DeleteHostAvailabilityResponse + */ + async deleteHostAvailability(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.deleteHostAvailabilityWithOptions(request, runtime); + } + /** + * Deletes a namespace. + * + * @remarks + * > If a metric import task is created for metrics in a namespace, you cannot delete the namespace unless you delete the task first. + * This topic provides an example on how to delete a namespace named `aliyun`. The response shows that the namespace is deleted. + * + * @param request - DeleteHybridMonitorNamespaceRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteHybridMonitorNamespaceResponse + */ + async deleteHybridMonitorNamespaceWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DeleteHybridMonitorNamespace", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteHybridMonitorNamespaceResponse({})); + } + /** + * Deletes a namespace. + * + * @remarks + * > If a metric import task is created for metrics in a namespace, you cannot delete the namespace unless you delete the task first. + * This topic provides an example on how to delete a namespace named `aliyun`. The response shows that the namespace is deleted. + * + * @param request - DeleteHybridMonitorNamespaceRequest + * @returns DeleteHybridMonitorNamespaceResponse + */ + async deleteHybridMonitorNamespace(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.deleteHybridMonitorNamespaceWithOptions(request, runtime); + } + /** + * Deletes a Logstore group. + * + * @remarks + * This topic provides an example on how to delete a Logstore group named `Logstore_test`. The response shows that the Logstore group is deleted. + * + * @param request - DeleteHybridMonitorSLSGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteHybridMonitorSLSGroupResponse + */ + async deleteHybridMonitorSLSGroupWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.SLSGroupName)) { + query["SLSGroupName"] = request.SLSGroupName; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DeleteHybridMonitorSLSGroup", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteHybridMonitorSLSGroupResponse({})); + } + /** + * Deletes a Logstore group. + * + * @remarks + * This topic provides an example on how to delete a Logstore group named `Logstore_test`. The response shows that the Logstore group is deleted. + * + * @param request - DeleteHybridMonitorSLSGroupRequest + * @returns DeleteHybridMonitorSLSGroupResponse + */ + async deleteHybridMonitorSLSGroup(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.deleteHybridMonitorSLSGroupWithOptions(request, runtime); + } + /** + * Deletes a metric import task for Alibaba Cloud services or a metric for the logs that are imported from Log Service. + * + * @remarks + * This topic provides an example on how to delete a metric import task whose ID is `36****`. The returned result indicates that the metric import task is deleted. + * + * @param request - DeleteHybridMonitorTaskRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteHybridMonitorTaskResponse + */ + async deleteHybridMonitorTaskWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + if (!$dara.isNull(request.targetUserId)) { + query["TargetUserId"] = request.targetUserId; + } + if (!$dara.isNull(request.taskId)) { + query["TaskId"] = request.taskId; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DeleteHybridMonitorTask", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteHybridMonitorTaskResponse({})); + } + /** + * Deletes a metric import task for Alibaba Cloud services or a metric for the logs that are imported from Log Service. + * + * @remarks + * This topic provides an example on how to delete a metric import task whose ID is `36****`. The returned result indicates that the metric import task is deleted. + * + * @param request - DeleteHybridMonitorTaskRequest + * @returns DeleteHybridMonitorTaskResponse + */ + async deleteHybridMonitorTask(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.deleteHybridMonitorTaskWithOptions(request, runtime); + } + /** + * Deletes a log monitoring metric. + * + * @param request - DeleteLogMonitorRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteLogMonitorResponse + */ + async deleteLogMonitorWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.logId)) { + query["LogId"] = request.logId; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DeleteLogMonitor", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteLogMonitorResponse({})); + } + /** + * Deletes a log monitoring metric. + * + * @param request - DeleteLogMonitorRequest + * @returns DeleteLogMonitorResponse + */ + async deleteLogMonitor(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.deleteLogMonitorWithOptions(request, runtime); + } + /** + * Deletes multiple blacklist policies at a time. + * + * @param request - DeleteMetricRuleBlackListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteMetricRuleBlackListResponse + */ + async deleteMetricRuleBlackListWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.id)) { + query["Id"] = request.id; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DeleteMetricRuleBlackList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteMetricRuleBlackListResponse({})); + } + /** + * Deletes multiple blacklist policies at a time. + * + * @param request - DeleteMetricRuleBlackListRequest + * @returns DeleteMetricRuleBlackListResponse + */ + async deleteMetricRuleBlackList(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.deleteMetricRuleBlackListWithOptions(request, runtime); + } + /** + * Disassociates resources from an alert rule. + * + * @param request - DeleteMetricRuleResourcesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteMetricRuleResourcesResponse + */ + async deleteMetricRuleResourcesWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.resources)) { + query["Resources"] = request.resources; + } + if (!$dara.isNull(request.ruleId)) { + query["RuleId"] = request.ruleId; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DeleteMetricRuleResources", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteMetricRuleResourcesResponse({})); + } + /** + * Disassociates resources from an alert rule. + * + * @param request - DeleteMetricRuleResourcesRequest + * @returns DeleteMetricRuleResourcesResponse + */ + async deleteMetricRuleResources(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.deleteMetricRuleResourcesWithOptions(request, runtime); + } + /** + * Delete the push channels of an alert rule. + * + * @param request - DeleteMetricRuleTargetsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteMetricRuleTargetsResponse + */ + async deleteMetricRuleTargetsWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.ruleId)) { + query["RuleId"] = request.ruleId; + } + if (!$dara.isNull(request.targetIds)) { + query["TargetIds"] = request.targetIds; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DeleteMetricRuleTargets", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteMetricRuleTargetsResponse({})); + } + /** + * Delete the push channels of an alert rule. + * + * @param request - DeleteMetricRuleTargetsRequest + * @returns DeleteMetricRuleTargetsResponse + */ + async deleteMetricRuleTargets(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.deleteMetricRuleTargetsWithOptions(request, runtime); + } + /** + * Deletes an alert template. + * + * @param request - DeleteMetricRuleTemplateRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteMetricRuleTemplateResponse + */ + async deleteMetricRuleTemplateWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.templateId)) { + query["TemplateId"] = request.templateId; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DeleteMetricRuleTemplate", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteMetricRuleTemplateResponse({})); + } + /** + * Deletes an alert template. + * + * @param request - DeleteMetricRuleTemplateRequest + * @returns DeleteMetricRuleTemplateResponse + */ + async deleteMetricRuleTemplate(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.deleteMetricRuleTemplateWithOptions(request, runtime); + } + /** + * Deletes one or more alert rules. + * + * @param request - DeleteMetricRulesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteMetricRulesResponse + */ + async deleteMetricRulesWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.id)) { + query["Id"] = request.id; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DeleteMetricRules", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteMetricRulesResponse({})); + } + /** + * Deletes one or more alert rules. + * + * @param request - DeleteMetricRulesRequest + * @returns DeleteMetricRulesResponse + */ + async deleteMetricRules(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.deleteMetricRulesWithOptions(request, runtime); + } + /** + * Deletes an application group. + * + * @param request - DeleteMonitorGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteMonitorGroupResponse + */ + async deleteMonitorGroupWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DeleteMonitorGroup", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteMonitorGroupResponse({})); + } + /** + * Deletes an application group. + * + * @param request - DeleteMonitorGroupRequest + * @returns DeleteMonitorGroupResponse + */ + async deleteMonitorGroup(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.deleteMonitorGroupWithOptions(request, runtime); + } + /** + * Deletes a rule that is used to dynamically add the instances of a service to an application group. + * + * @param request - DeleteMonitorGroupDynamicRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteMonitorGroupDynamicRuleResponse + */ + async deleteMonitorGroupDynamicRuleWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.category)) { + query["Category"] = request.category; + } + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DeleteMonitorGroupDynamicRule", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteMonitorGroupDynamicRuleResponse({})); + } + /** + * Deletes a rule that is used to dynamically add the instances of a service to an application group. + * + * @param request - DeleteMonitorGroupDynamicRuleRequest + * @returns DeleteMonitorGroupDynamicRuleResponse + */ + async deleteMonitorGroupDynamicRule(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.deleteMonitorGroupDynamicRuleWithOptions(request, runtime); + } + /** + * Removes instances from an application group. + * + * @param request - DeleteMonitorGroupInstancesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteMonitorGroupInstancesResponse + */ + async deleteMonitorGroupInstancesWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.category)) { + query["Category"] = request.category; + } + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.instanceIdList)) { + query["InstanceIdList"] = request.instanceIdList; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DeleteMonitorGroupInstances", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteMonitorGroupInstancesResponse({})); + } + /** + * Removes instances from an application group. + * + * @param request - DeleteMonitorGroupInstancesRequest + * @returns DeleteMonitorGroupInstancesResponse + */ + async deleteMonitorGroupInstances(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.deleteMonitorGroupInstancesWithOptions(request, runtime); + } + /** + * Deletes a policy that is used to pause alert notifications for an application group. + * + * @param request - DeleteMonitorGroupNotifyPolicyRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteMonitorGroupNotifyPolicyResponse + */ + async deleteMonitorGroupNotifyPolicyWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.policyType)) { + query["PolicyType"] = request.policyType; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DeleteMonitorGroupNotifyPolicy", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteMonitorGroupNotifyPolicyResponse({})); + } + /** + * Deletes a policy that is used to pause alert notifications for an application group. + * + * @param request - DeleteMonitorGroupNotifyPolicyRequest + * @returns DeleteMonitorGroupNotifyPolicyResponse + */ + async deleteMonitorGroupNotifyPolicy(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.deleteMonitorGroupNotifyPolicyWithOptions(request, runtime); + } + /** + * Disables monitoring on a process. + * + * @param request - DeleteMonitoringAgentProcessRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteMonitoringAgentProcessResponse + */ + async deleteMonitoringAgentProcessWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.instanceId)) { + query["InstanceId"] = request.instanceId; + } + if (!$dara.isNull(request.processId)) { + query["ProcessId"] = request.processId; + } + if (!$dara.isNull(request.processName)) { + query["ProcessName"] = request.processName; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DeleteMonitoringAgentProcess", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteMonitoringAgentProcessResponse({})); + } + /** + * Disables monitoring on a process. + * + * @param request - DeleteMonitoringAgentProcessRequest + * @returns DeleteMonitoringAgentProcessResponse + */ + async deleteMonitoringAgentProcess(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.deleteMonitoringAgentProcessWithOptions(request, runtime); + } + /** + * Deletes one or more site monitoring tasks. + * + * @param request - DeleteSiteMonitorsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteSiteMonitorsResponse + */ + async deleteSiteMonitorsWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.isDeleteAlarms)) { + query["IsDeleteAlarms"] = request.isDeleteAlarms; + } + if (!$dara.isNull(request.taskIds)) { + query["TaskIds"] = request.taskIds; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DeleteSiteMonitors", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteSiteMonitorsResponse({})); + } + /** + * Deletes one or more site monitoring tasks. + * + * @param request - DeleteSiteMonitorsRequest + * @returns DeleteSiteMonitorsResponse + */ + async deleteSiteMonitors(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.deleteSiteMonitorsWithOptions(request, runtime); + } + /** + * Queries the details of initiative alert rules. + * + * @param request - DescribeActiveMetricRuleListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeActiveMetricRuleListResponse + */ + async describeActiveMetricRuleListWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.product)) { + query["Product"] = request.product; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeActiveMetricRuleList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeActiveMetricRuleListResponse({})); + } + /** + * Queries the details of initiative alert rules. + * + * @param request - DescribeActiveMetricRuleListRequest + * @returns DescribeActiveMetricRuleListResponse + */ + async describeActiveMetricRuleList(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeActiveMetricRuleListWithOptions(request, runtime); + } + /** + * Queries historical alerts. + * + * @remarks + * This API operation is no longer maintained. We recommend that you call the [DescribeAlertLogList](https://help.aliyun.com/document_detail/201087.html) operation. + * + * @deprecated OpenAPI DescribeAlertHistoryList is deprecated, please use Cms::2019-01-01::DescribeAlertLogList instead. + * + * @param request - DescribeAlertHistoryListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeAlertHistoryListResponse + */ + async describeAlertHistoryListWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.ascending)) { + query["Ascending"] = request.ascending; + } + if (!$dara.isNull(request.endTime)) { + query["EndTime"] = request.endTime; + } + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + if (!$dara.isNull(request.page)) { + query["Page"] = request.page; + } + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + if (!$dara.isNull(request.ruleId)) { + query["RuleId"] = request.ruleId; + } + if (!$dara.isNull(request.ruleName)) { + query["RuleName"] = request.ruleName; + } + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + if (!$dara.isNull(request.state)) { + query["State"] = request.state; + } + if (!$dara.isNull(request.status)) { + query["Status"] = request.status; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeAlertHistoryList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeAlertHistoryListResponse({})); + } + /** + * Queries historical alerts. + * + * @remarks + * This API operation is no longer maintained. We recommend that you call the [DescribeAlertLogList](https://help.aliyun.com/document_detail/201087.html) operation. + * + * @deprecated OpenAPI DescribeAlertHistoryList is deprecated, please use Cms::2019-01-01::DescribeAlertLogList instead. + * + * @param request - DescribeAlertHistoryListRequest + * @returns DescribeAlertHistoryListResponse + */ + // Deprecated + async describeAlertHistoryList(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeAlertHistoryListWithOptions(request, runtime); + } + /** + * Queries the statistics of alert logs. + * + * @remarks + * Queries the statistics of alert logs. + * This topic provides an example on how to query the statistics of alert logs for Elastic Compute Service (ECS) based on the `product` dimension. + * + * @param request - DescribeAlertLogCountRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeAlertLogCountResponse + */ + async describeAlertLogCountWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.contactGroup)) { + query["ContactGroup"] = request.contactGroup; + } + if (!$dara.isNull(request.endTime)) { + query["EndTime"] = request.endTime; + } + if (!$dara.isNull(request.eventType)) { + query["EventType"] = request.eventType; + } + if (!$dara.isNull(request.groupBy)) { + query["GroupBy"] = request.groupBy; + } + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.lastMin)) { + query["LastMin"] = request.lastMin; + } + if (!$dara.isNull(request.level)) { + query["Level"] = request.level; + } + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + if (!$dara.isNull(request.product)) { + query["Product"] = request.product; + } + if (!$dara.isNull(request.ruleId)) { + query["RuleId"] = request.ruleId; + } + if (!$dara.isNull(request.ruleName)) { + query["RuleName"] = request.ruleName; + } + if (!$dara.isNull(request.searchKey)) { + query["SearchKey"] = request.searchKey; + } + if (!$dara.isNull(request.sendStatus)) { + query["SendStatus"] = request.sendStatus; + } + if (!$dara.isNull(request.sourceType)) { + query["SourceType"] = request.sourceType; + } + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeAlertLogCount", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeAlertLogCountResponse({})); + } + /** + * Queries the statistics of alert logs. + * + * @remarks + * Queries the statistics of alert logs. + * This topic provides an example on how to query the statistics of alert logs for Elastic Compute Service (ECS) based on the `product` dimension. + * + * @param request - DescribeAlertLogCountRequest + * @returns DescribeAlertLogCountResponse + */ + async describeAlertLogCount(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeAlertLogCountWithOptions(request, runtime); + } + /** + * Queries the number of alert logs that are generated during each interval within a period of time. + * + * @remarks + * This topic provides an example on how to query the number of alert logs for Elastic Compute Service (ECS) based on the `product` dimension. + * + * @param request - DescribeAlertLogHistogramRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeAlertLogHistogramResponse + */ + async describeAlertLogHistogramWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.contactGroup)) { + query["ContactGroup"] = request.contactGroup; + } + if (!$dara.isNull(request.endTime)) { + query["EndTime"] = request.endTime; + } + if (!$dara.isNull(request.eventType)) { + query["EventType"] = request.eventType; + } + if (!$dara.isNull(request.groupBy)) { + query["GroupBy"] = request.groupBy; + } + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.lastMin)) { + query["LastMin"] = request.lastMin; + } + if (!$dara.isNull(request.level)) { + query["Level"] = request.level; + } + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + if (!$dara.isNull(request.product)) { + query["Product"] = request.product; + } + if (!$dara.isNull(request.ruleId)) { + query["RuleId"] = request.ruleId; + } + if (!$dara.isNull(request.ruleName)) { + query["RuleName"] = request.ruleName; + } + if (!$dara.isNull(request.searchKey)) { + query["SearchKey"] = request.searchKey; + } + if (!$dara.isNull(request.sendStatus)) { + query["SendStatus"] = request.sendStatus; + } + if (!$dara.isNull(request.sourceType)) { + query["SourceType"] = request.sourceType; + } + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeAlertLogHistogram", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeAlertLogHistogramResponse({})); + } + /** + * Queries the number of alert logs that are generated during each interval within a period of time. + * + * @remarks + * This topic provides an example on how to query the number of alert logs for Elastic Compute Service (ECS) based on the `product` dimension. + * + * @param request - DescribeAlertLogHistogramRequest + * @returns DescribeAlertLogHistogramResponse + */ + async describeAlertLogHistogram(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeAlertLogHistogramWithOptions(request, runtime); + } + /** + * Queries alert logs. + * + * @remarks + * You can call the operation to query only the alert logs within the last year. + * This topic provides an example to show how to query the alert logs of Elastic Compute Service (ECS) based on the `product` dimension. + * + * @param request - DescribeAlertLogListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeAlertLogListResponse + */ + async describeAlertLogListWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.contactGroup)) { + query["ContactGroup"] = request.contactGroup; + } + if (!$dara.isNull(request.endTime)) { + query["EndTime"] = request.endTime; + } + if (!$dara.isNull(request.eventType)) { + query["EventType"] = request.eventType; + } + if (!$dara.isNull(request.groupBy)) { + query["GroupBy"] = request.groupBy; + } + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.lastMin)) { + query["LastMin"] = request.lastMin; + } + if (!$dara.isNull(request.level)) { + query["Level"] = request.level; + } + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + if (!$dara.isNull(request.product)) { + query["Product"] = request.product; + } + if (!$dara.isNull(request.ruleId)) { + query["RuleId"] = request.ruleId; + } + if (!$dara.isNull(request.ruleName)) { + query["RuleName"] = request.ruleName; + } + if (!$dara.isNull(request.searchKey)) { + query["SearchKey"] = request.searchKey; + } + if (!$dara.isNull(request.sendStatus)) { + query["SendStatus"] = request.sendStatus; + } + if (!$dara.isNull(request.sourceType)) { + query["SourceType"] = request.sourceType; + } + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeAlertLogList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeAlertLogListResponse({})); + } + /** + * Queries alert logs. + * + * @remarks + * You can call the operation to query only the alert logs within the last year. + * This topic provides an example to show how to query the alert logs of Elastic Compute Service (ECS) based on the `product` dimension. + * + * @param request - DescribeAlertLogListRequest + * @returns DescribeAlertLogListResponse + */ + async describeAlertLogList(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeAlertLogListWithOptions(request, runtime); + } + /** + * Queries the resources for which active alerts are triggered based on an alert rule. + * + * @param request - DescribeAlertingMetricRuleResourcesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeAlertingMetricRuleResourcesResponse + */ + async describeAlertingMetricRuleResourcesWithOptions(request, runtime) { + request.validate(); + let query = openapi_core_2.OpenApiUtil.query(request.toMap()); + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeAlertingMetricRuleResources", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "GET", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeAlertingMetricRuleResourcesResponse({})); + } + /** + * Queries the resources for which active alerts are triggered based on an alert rule. + * + * @param request - DescribeAlertingMetricRuleResourcesRequest + * @returns DescribeAlertingMetricRuleResourcesResponse + */ + async describeAlertingMetricRuleResources(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeAlertingMetricRuleResourcesWithOptions(request, runtime); + } + /** + * Call the DescribeContactGroupList interface to query the list of alarm contact groups. + * + * @param request - DescribeContactGroupListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeContactGroupListResponse + */ + async describeContactGroupListWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeContactGroupList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeContactGroupListResponse({})); + } + /** + * Call the DescribeContactGroupList interface to query the list of alarm contact groups. + * + * @param request - DescribeContactGroupListRequest + * @returns DescribeContactGroupListResponse + */ + async describeContactGroupList(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeContactGroupListWithOptions(request, runtime); + } + /** + * Queries alert contacts. + * + * @param request - DescribeContactListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeContactListResponse + */ + async describeContactListWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.chanelType)) { + query["ChanelType"] = request.chanelType; + } + if (!$dara.isNull(request.chanelValue)) { + query["ChanelValue"] = request.chanelValue; + } + if (!$dara.isNull(request.contactName)) { + query["ContactName"] = request.contactName; + } + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeContactList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeContactListResponse({})); + } + /** + * Queries alert contacts. + * + * @param request - DescribeContactListRequest + * @returns DescribeContactListResponse + */ + async describeContactList(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeContactListWithOptions(request, runtime); + } + /** + * Queries the alert contacts in an alert contact group. + * + * @param request - DescribeContactListByContactGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeContactListByContactGroupResponse + */ + async describeContactListByContactGroupWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.contactGroupName)) { + query["ContactGroupName"] = request.contactGroupName; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeContactListByContactGroup", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeContactListByContactGroupResponse({})); + } + /** + * Queries the alert contacts in an alert contact group. + * + * @param request - DescribeContactListByContactGroupRequest + * @returns DescribeContactListByContactGroupResponse + */ + async describeContactListByContactGroup(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeContactListByContactGroupWithOptions(request, runtime); + } + /** + * Queries the details of a custom event. + * + * @param request - DescribeCustomEventAttributeRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeCustomEventAttributeResponse + */ + async describeCustomEventAttributeWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.endTime)) { + query["EndTime"] = request.endTime; + } + if (!$dara.isNull(request.eventId)) { + query["EventId"] = request.eventId; + } + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.name)) { + query["Name"] = request.name; + } + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + if (!$dara.isNull(request.searchKeywords)) { + query["SearchKeywords"] = request.searchKeywords; + } + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeCustomEventAttribute", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeCustomEventAttributeResponse({})); + } + /** + * Queries the details of a custom event. + * + * @param request - DescribeCustomEventAttributeRequest + * @returns DescribeCustomEventAttributeResponse + */ + async describeCustomEventAttribute(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeCustomEventAttributeWithOptions(request, runtime); + } + /** + * Queries the number of times that a custom event occurred within a period of time. + * + * @remarks + * > This operation queries the number of times that a custom event occurred for each service. + * + * @param request - DescribeCustomEventCountRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeCustomEventCountResponse + */ + async describeCustomEventCountWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.endTime)) { + query["EndTime"] = request.endTime; + } + if (!$dara.isNull(request.eventId)) { + query["EventId"] = request.eventId; + } + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.name)) { + query["Name"] = request.name; + } + if (!$dara.isNull(request.searchKeywords)) { + query["SearchKeywords"] = request.searchKeywords; + } + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeCustomEventCount", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeCustomEventCountResponse({})); + } + /** + * Queries the number of times that a custom event occurred within a period of time. + * + * @remarks + * > This operation queries the number of times that a custom event occurred for each service. + * + * @param request - DescribeCustomEventCountRequest + * @returns DescribeCustomEventCountResponse + */ + async describeCustomEventCount(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeCustomEventCountWithOptions(request, runtime); + } + /** + * Queries the number of times that a custom event occurred during each interval within a period of time. + * + * @param request - DescribeCustomEventHistogramRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeCustomEventHistogramResponse + */ + async describeCustomEventHistogramWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.endTime)) { + query["EndTime"] = request.endTime; + } + if (!$dara.isNull(request.eventId)) { + query["EventId"] = request.eventId; + } + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.level)) { + query["Level"] = request.level; + } + if (!$dara.isNull(request.name)) { + query["Name"] = request.name; + } + if (!$dara.isNull(request.searchKeywords)) { + query["SearchKeywords"] = request.searchKeywords; + } + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeCustomEventHistogram", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeCustomEventHistogramResponse({})); + } + /** + * Queries the number of times that a custom event occurred during each interval within a period of time. + * + * @param request - DescribeCustomEventHistogramRequest + * @returns DescribeCustomEventHistogramResponse + */ + async describeCustomEventHistogram(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeCustomEventHistogramWithOptions(request, runtime); + } + /** + * Queries the reported monitoring data. + * + * @remarks + * > You can call the DescribeMetricList operation to query the metrics of cloud services. For more information, see [DescribeMetricList](https://help.aliyun.com/document_detail/51936.html). + * + * @param request - DescribeCustomMetricListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeCustomMetricListResponse + */ + async describeCustomMetricListWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.dimension)) { + query["Dimension"] = request.dimension; + } + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.md5)) { + query["Md5"] = request.md5; + } + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeCustomMetricList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeCustomMetricListResponse({})); + } + /** + * Queries the reported monitoring data. + * + * @remarks + * > You can call the DescribeMetricList operation to query the metrics of cloud services. For more information, see [DescribeMetricList](https://help.aliyun.com/document_detail/51936.html). + * + * @param request - DescribeCustomMetricListRequest + * @returns DescribeCustomMetricListResponse + */ + async describeCustomMetricList(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeCustomMetricListWithOptions(request, runtime); + } + /** + * Queries tag rules. + * + * @remarks + * This topic provides an example to show how to query tag rules that are related to `tagkey1`. The sample responses indicate that two tag rules are found. The rule IDs are `1536df65-a719-429d-8813-73cc40d7****` and `56e8cebb-b3d7-4a91-9880-78a8c84f****`. + * + * @param request - DescribeDynamicTagRuleListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeDynamicTagRuleListResponse + */ + async describeDynamicTagRuleListWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.dynamicTagRuleId)) { + query["DynamicTagRuleId"] = request.dynamicTagRuleId; + } + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + if (!$dara.isNull(request.tagKey)) { + query["TagKey"] = request.tagKey; + } + if (!$dara.isNull(request.tagRegionId)) { + query["TagRegionId"] = request.tagRegionId; + } + if (!$dara.isNull(request.tagValue)) { + query["TagValue"] = request.tagValue; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeDynamicTagRuleList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeDynamicTagRuleListResponse({})); + } + /** + * Queries tag rules. + * + * @remarks + * This topic provides an example to show how to query tag rules that are related to `tagkey1`. The sample responses indicate that two tag rules are found. The rule IDs are `1536df65-a719-429d-8813-73cc40d7****` and `56e8cebb-b3d7-4a91-9880-78a8c84f****`. + * + * @param request - DescribeDynamicTagRuleListRequest + * @returns DescribeDynamicTagRuleListResponse + */ + async describeDynamicTagRuleList(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeDynamicTagRuleListWithOptions(request, runtime); + } + /** + * Queries the details of an event-triggered alert rule. + * + * @remarks + * This topic provides an example to show how to query the details of an event-triggered alert rule named `testRule`. + * + * @param request - DescribeEventRuleAttributeRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeEventRuleAttributeResponse + */ + async describeEventRuleAttributeWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.ruleName)) { + query["RuleName"] = request.ruleName; + } + if (!$dara.isNull(request.silenceTime)) { + query["SilenceTime"] = request.silenceTime; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeEventRuleAttribute", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeEventRuleAttributeResponse({})); + } + /** + * Queries the details of an event-triggered alert rule. + * + * @remarks + * This topic provides an example to show how to query the details of an event-triggered alert rule named `testRule`. + * + * @param request - DescribeEventRuleAttributeRequest + * @returns DescribeEventRuleAttributeResponse + */ + async describeEventRuleAttribute(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeEventRuleAttributeWithOptions(request, runtime); + } + /** + * Queries event-triggered alert rules. + * + * @param request - DescribeEventRuleListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeEventRuleListResponse + */ + async describeEventRuleListWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.isEnable)) { + query["IsEnable"] = request.isEnable; + } + if (!$dara.isNull(request.namePrefix)) { + query["NamePrefix"] = request.namePrefix; + } + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeEventRuleList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeEventRuleListResponse({})); + } + /** + * Queries event-triggered alert rules. + * + * @param request - DescribeEventRuleListRequest + * @returns DescribeEventRuleListResponse + */ + async describeEventRuleList(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeEventRuleListWithOptions(request, runtime); + } + /** + * Queries event-triggered alert rules. + * + * @remarks + * This topic provides an example to show how to query the details of an event-triggered alert rule named `testRule`. + * + * @param request - DescribeEventRuleTargetListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeEventRuleTargetListResponse + */ + async describeEventRuleTargetListWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.ruleName)) { + query["RuleName"] = request.ruleName; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeEventRuleTargetList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeEventRuleTargetListResponse({})); + } + /** + * Queries event-triggered alert rules. + * + * @remarks + * This topic provides an example to show how to query the details of an event-triggered alert rule named `testRule`. + * + * @param request - DescribeEventRuleTargetListRequest + * @returns DescribeEventRuleTargetListResponse + */ + async describeEventRuleTargetList(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeEventRuleTargetListWithOptions(request, runtime); + } + /** + * Queries configuration sets that are used to export monitoring data. + * + * @param request - DescribeExporterOutputListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeExporterOutputListResponse + */ + async describeExporterOutputListWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeExporterOutputList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeExporterOutputListResponse({})); + } + /** + * Queries configuration sets that are used to export monitoring data. + * + * @param request - DescribeExporterOutputListRequest + * @returns DescribeExporterOutputListResponse + */ + async describeExporterOutputList(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeExporterOutputListWithOptions(request, runtime); + } + /** + * Queries data export rules. + * + * @param request - DescribeExporterRuleListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeExporterRuleListResponse + */ + async describeExporterRuleListWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeExporterRuleList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeExporterRuleListResponse({})); + } + /** + * Queries data export rules. + * + * @param request - DescribeExporterRuleListRequest + * @returns DescribeExporterRuleListResponse + */ + async describeExporterRuleList(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeExporterRuleListWithOptions(request, runtime); + } + /** + * Queries the process monitoring tasks for an application group. + * + * @remarks + * You can create a process monitoring task to monitor all or the specified Elastic Compute Service (ECS) instances in an application group and configure alert rules for the process monitoring task. + * + * @param request - DescribeGroupMonitoringAgentProcessRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeGroupMonitoringAgentProcessResponse + */ + async describeGroupMonitoringAgentProcessWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + if (!$dara.isNull(request.processName)) { + query["ProcessName"] = request.processName; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeGroupMonitoringAgentProcess", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeGroupMonitoringAgentProcessResponse({})); + } + /** + * Queries the process monitoring tasks for an application group. + * + * @remarks + * You can create a process monitoring task to monitor all or the specified Elastic Compute Service (ECS) instances in an application group and configure alert rules for the process monitoring task. + * + * @param request - DescribeGroupMonitoringAgentProcessRequest + * @returns DescribeGroupMonitoringAgentProcessResponse + */ + async describeGroupMonitoringAgentProcess(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeGroupMonitoringAgentProcessWithOptions(request, runtime); + } + /** + * Queries availability monitoring tasks. + * + * @remarks + * This topic provides an example to show how to query all the availability monitoring tasks of your Alibaba Cloud account. The sample responses indicate that the account has one availability monitoring task named `ecs_instance`. + * + * @param request - DescribeHostAvailabilityListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeHostAvailabilityListResponse + */ + async describeHostAvailabilityListWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.id)) { + query["Id"] = request.id; + } + if (!$dara.isNull(request.ids)) { + query["Ids"] = request.ids; + } + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + if (!$dara.isNull(request.taskName)) { + query["TaskName"] = request.taskName; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeHostAvailabilityList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeHostAvailabilityListResponse({})); + } + /** + * Queries availability monitoring tasks. + * + * @remarks + * This topic provides an example to show how to query all the availability monitoring tasks of your Alibaba Cloud account. The sample responses indicate that the account has one availability monitoring task named `ecs_instance`. + * + * @param request - DescribeHostAvailabilityListRequest + * @returns DescribeHostAvailabilityListResponse + */ + async describeHostAvailabilityList(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeHostAvailabilityListWithOptions(request, runtime); + } + /** + * Queries the monitoring data in a namespace. + * + * @remarks + * ## [](#)Prerequisites + * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](https://help.aliyun.com/document_detail/250773.html). + * ## [](#)Limits + * The size of monitoring data that is returned in each call cannot exceed 1.5 MB. If the returned data reaches the upper limit, the query fails. You must reset the query conditions. + * ## [](#)Operation description + * This topic provides an example to show how to query the monitoring data of the `AliyunEcs_cpu_total` metric in the `default-aliyun` namespace from `1653804865` (14:14:25 on May 29, 2022) to `1653805225` (14:20:25 on May 29, 2022). + * + * @param request - DescribeHybridMonitorDataListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeHybridMonitorDataListResponse + */ + async describeHybridMonitorDataListWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.end)) { + query["End"] = request.end; + } + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + if (!$dara.isNull(request.period)) { + query["Period"] = request.period; + } + if (!$dara.isNull(request.promSQL)) { + query["PromSQL"] = request.promSQL; + } + if (!$dara.isNull(request.start)) { + query["Start"] = request.start; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeHybridMonitorDataList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeHybridMonitorDataListResponse({})); + } + /** + * Queries the monitoring data in a namespace. + * + * @remarks + * ## [](#)Prerequisites + * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](https://help.aliyun.com/document_detail/250773.html). + * ## [](#)Limits + * The size of monitoring data that is returned in each call cannot exceed 1.5 MB. If the returned data reaches the upper limit, the query fails. You must reset the query conditions. + * ## [](#)Operation description + * This topic provides an example to show how to query the monitoring data of the `AliyunEcs_cpu_total` metric in the `default-aliyun` namespace from `1653804865` (14:14:25 on May 29, 2022) to `1653805225` (14:20:25 on May 29, 2022). + * + * @param request - DescribeHybridMonitorDataListRequest + * @returns DescribeHybridMonitorDataListResponse + */ + async describeHybridMonitorDataList(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeHybridMonitorDataListWithOptions(request, runtime); + } + /** + * Queries namespaces and the details of the related metric import tasks. + * + * @remarks + * In this example, all namespaces within the current account are queried. The response shows that the current account has only one namespace named `aliyun-test`. + * + * @param request - DescribeHybridMonitorNamespaceListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeHybridMonitorNamespaceListResponse + */ + async describeHybridMonitorNamespaceListWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.keyword)) { + query["Keyword"] = request.keyword; + } + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + if (!$dara.isNull(request.showTaskStatistic)) { + query["ShowTaskStatistic"] = request.showTaskStatistic; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeHybridMonitorNamespaceList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeHybridMonitorNamespaceListResponse({})); + } + /** + * Queries namespaces and the details of the related metric import tasks. + * + * @remarks + * In this example, all namespaces within the current account are queried. The response shows that the current account has only one namespace named `aliyun-test`. + * + * @param request - DescribeHybridMonitorNamespaceListRequest + * @returns DescribeHybridMonitorNamespaceListResponse + */ + async describeHybridMonitorNamespaceList(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeHybridMonitorNamespaceListWithOptions(request, runtime); + } + /** + * Queries Logstore groups. + * + * @remarks + * In this example, all Logstore groups within the current account are queried. The response shows that the current account has two Logstore groups: `Logstore_test` and `Logstore_aliyun`. + * + * @param request - DescribeHybridMonitorSLSGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeHybridMonitorSLSGroupResponse + */ + async describeHybridMonitorSLSGroupWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.keyword)) { + query["Keyword"] = request.keyword; + } + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + if (!$dara.isNull(request.SLSGroupName)) { + query["SLSGroupName"] = request.SLSGroupName; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeHybridMonitorSLSGroup", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeHybridMonitorSLSGroupResponse({})); + } + /** + * Queries Logstore groups. + * + * @remarks + * In this example, all Logstore groups within the current account are queried. The response shows that the current account has two Logstore groups: `Logstore_test` and `Logstore_aliyun`. + * + * @param request - DescribeHybridMonitorSLSGroupRequest + * @returns DescribeHybridMonitorSLSGroupResponse + */ + async describeHybridMonitorSLSGroup(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeHybridMonitorSLSGroupWithOptions(request, runtime); + } + /** + * Queries metric import tasks. + * + * @remarks + * This topic provides an example on how to query all metric import tasks that belong to the current Alibaba Cloud account. The returned result indicates that the current account has only one metric import task. The metric import task is named `aliyun_task`. + * + * @param request - DescribeHybridMonitorTaskListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeHybridMonitorTaskListResponse + */ + async describeHybridMonitorTaskListWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.includeAliyunTask)) { + query["IncludeAliyunTask"] = request.includeAliyunTask; + } + if (!$dara.isNull(request.keyword)) { + query["Keyword"] = request.keyword; + } + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + if (!$dara.isNull(request.targetUserId)) { + query["TargetUserId"] = request.targetUserId; + } + if (!$dara.isNull(request.taskId)) { + query["TaskId"] = request.taskId; + } + if (!$dara.isNull(request.taskType)) { + query["TaskType"] = request.taskType; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeHybridMonitorTaskList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeHybridMonitorTaskListResponse({})); + } + /** + * Queries metric import tasks. + * + * @remarks + * This topic provides an example on how to query all metric import tasks that belong to the current Alibaba Cloud account. The returned result indicates that the current account has only one metric import task. The metric import task is named `aliyun_task`. + * + * @param request - DescribeHybridMonitorTaskListRequest + * @returns DescribeHybridMonitorTaskListResponse + */ + async describeHybridMonitorTaskList(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeHybridMonitorTaskListWithOptions(request, runtime); + } + /** + * Queries the details of a log monitoring metric. + * + * @param request - DescribeLogMonitorAttributeRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeLogMonitorAttributeResponse + */ + async describeLogMonitorAttributeWithOptions(request, runtime) { + request.validate(); + let query = openapi_core_2.OpenApiUtil.query(request.toMap()); + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeLogMonitorAttribute", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "GET", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeLogMonitorAttributeResponse({})); + } + /** + * Queries the details of a log monitoring metric. + * + * @param request - DescribeLogMonitorAttributeRequest + * @returns DescribeLogMonitorAttributeResponse + */ + async describeLogMonitorAttribute(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeLogMonitorAttributeWithOptions(request, runtime); + } + /** + * Queries log monitoring metrics. + * + * @param request - DescribeLogMonitorListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeLogMonitorListResponse + */ + async describeLogMonitorListWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + if (!$dara.isNull(request.searchValue)) { + query["SearchValue"] = request.searchValue; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeLogMonitorList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeLogMonitorListResponse({})); + } + /** + * Queries log monitoring metrics. + * + * @param request - DescribeLogMonitorListRequest + * @returns DescribeLogMonitorListResponse + */ + async describeLogMonitorList(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeLogMonitorListWithOptions(request, runtime); + } + /** + * Queries the monitoring data of a metric for a cloud service. + * + * @remarks + * ### [](#)Limits + * * The total free quota is 1 million calls per month for the DescribeMetricLast, DescribeMetricList, DescribeMetricData, and DescribeMetricTop operations. If the free quota is used up and CloudMonitor Basic (pay-as-you-go) is not activated, these API operations can no longer be called as expected. If you have activated CloudMonitor Basic (pay-as-you-go), these API operations can still be called even if the free quota is used up. If the free quota is used up, you are automatically charged for the excess usage based on the pay-as-you-go billing method. For more information about how to activate CloudMonitor Basic (pay-as-you-go), see [Enable the pay-as-you-go billing method](https://common-buy.aliyun.com/?spm=a2c4g.11186623.0.0.6c8f3481IbSHgG\\&commodityCode=cms_basic_public_cn\\&from_biz_channel=help_bill). + * * Each API operation can be called up to 10 times per second. An Alibaba Cloud account and the Resource Access Management (RAM) users within the account share the quota. + * ### [](#)Description + * > Different from [DescribeMetricList](https://help.aliyun.com/document_detail/51936.html), the DescribeMetricData operation provides statistical features. You can set the Dimension parameter to `{"instanceId": "i-abcdefgh12****"}` to aggregate all data of your Alibaba Cloud account. + * This topic provides an example on how to query the monitoring data of the `cpu_idle` metric for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. + * + * @param request - DescribeMetricDataRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMetricDataResponse + */ + async describeMetricDataWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.dimensions)) { + query["Dimensions"] = request.dimensions; + } + if (!$dara.isNull(request.endTime)) { + query["EndTime"] = request.endTime; + } + if (!$dara.isNull(request.express)) { + query["Express"] = request.express; + } + if (!$dara.isNull(request.length)) { + query["Length"] = request.length; + } + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + if (!$dara.isNull(request.period)) { + query["Period"] = request.period; + } + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeMetricData", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeMetricDataResponse({})); + } + /** + * Queries the monitoring data of a metric for a cloud service. + * + * @remarks + * ### [](#)Limits + * * The total free quota is 1 million calls per month for the DescribeMetricLast, DescribeMetricList, DescribeMetricData, and DescribeMetricTop operations. If the free quota is used up and CloudMonitor Basic (pay-as-you-go) is not activated, these API operations can no longer be called as expected. If you have activated CloudMonitor Basic (pay-as-you-go), these API operations can still be called even if the free quota is used up. If the free quota is used up, you are automatically charged for the excess usage based on the pay-as-you-go billing method. For more information about how to activate CloudMonitor Basic (pay-as-you-go), see [Enable the pay-as-you-go billing method](https://common-buy.aliyun.com/?spm=a2c4g.11186623.0.0.6c8f3481IbSHgG\\&commodityCode=cms_basic_public_cn\\&from_biz_channel=help_bill). + * * Each API operation can be called up to 10 times per second. An Alibaba Cloud account and the Resource Access Management (RAM) users within the account share the quota. + * ### [](#)Description + * > Different from [DescribeMetricList](https://help.aliyun.com/document_detail/51936.html), the DescribeMetricData operation provides statistical features. You can set the Dimension parameter to `{"instanceId": "i-abcdefgh12****"}` to aggregate all data of your Alibaba Cloud account. + * This topic provides an example on how to query the monitoring data of the `cpu_idle` metric for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. + * + * @param request - DescribeMetricDataRequest + * @returns DescribeMetricDataResponse + */ + async describeMetricData(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeMetricDataWithOptions(request, runtime); + } + /** + * Queries the latest monitoring data of a metric. + * + * @remarks + * ### [](#)Limits + * * The total free quota is 1 million calls per month for the DescribeMetricLast, DescribeMetricList, DescribeMetricData, and DescribeMetricTop operations. If the free quota is used up and CloudMonitor Basic (pay-as-you-go) is not activated, these API operations can no longer be called as expected. If you have activated CloudMonitor Basic (pay-as-you-go), these API operations can still be called even if the free quota is used up. After the free quota is used up, you are charged for the excess usage based on the pay-as-you-go billing method. For more information about how to activate CloudMonitor Basic (pay-as-you-go), see [Enable the pay-as-you-go billing method](https://common-buy.aliyun.com/?spm=a2c4g.11186623.0.0.6c8f3481IbSHgG\\&commodityCode=cms_basic_public_cn\\&from_biz_channel=help_bill). + * * Each API operation can be called up to 50 times per second. An Alibaba Cloud account and the Resource Access Management (RAM) users within the account share the quota. + * > If `Throttling.User` or `Request was denied due to user flow control` is returned when you call an API operation, the API operation is throttled. For more information about how to handle the issue, see [How do I handle the throttling of a query API?](https://help.aliyun.com/document_detail/2615031.html) + * ### [](#)Precautions + * The storage duration of the monitoring data of each cloud service is related to the `Period` parameter (statistical period). A larger value of the `Period` parameter indicates that the monitoring data is distributed in a larger time range and the storage duration of the monitoring data is longer. The following list describes the specific relationships: + * * The storage duration is 7 days if the value of the `Period` parameter is less than 60 seconds. + * * The storage duration is 31 days if the value of the `Period` parameter is 60 seconds. + * * The storage duration is 91 days if the value of the `Period` parameter is greater than or equal to 300 seconds. + * ### [](#)Operation description + * This topic provides an example on how to query the latest monitoring data of the `CPUUtilization` metric for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. The returned result indicates that the monitoring data for the instance `i-abcdefgh12****` of the account `123456789876****` is queried at an interval of 60 seconds. The maximum, minimum, and average values of the metric are 100, 93.1, and 99.52. + * + * @param request - DescribeMetricLastRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMetricLastResponse + */ + async describeMetricLastWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.dimensions)) { + query["Dimensions"] = request.dimensions; + } + if (!$dara.isNull(request.endTime)) { + query["EndTime"] = request.endTime; + } + if (!$dara.isNull(request.express)) { + query["Express"] = request.express; + } + if (!$dara.isNull(request.length)) { + query["Length"] = request.length; + } + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + if (!$dara.isNull(request.nextToken)) { + query["NextToken"] = request.nextToken; + } + if (!$dara.isNull(request.period)) { + query["Period"] = request.period; + } + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeMetricLast", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeMetricLastResponse({})); + } + /** + * Queries the latest monitoring data of a metric. + * + * @remarks + * ### [](#)Limits + * * The total free quota is 1 million calls per month for the DescribeMetricLast, DescribeMetricList, DescribeMetricData, and DescribeMetricTop operations. If the free quota is used up and CloudMonitor Basic (pay-as-you-go) is not activated, these API operations can no longer be called as expected. If you have activated CloudMonitor Basic (pay-as-you-go), these API operations can still be called even if the free quota is used up. After the free quota is used up, you are charged for the excess usage based on the pay-as-you-go billing method. For more information about how to activate CloudMonitor Basic (pay-as-you-go), see [Enable the pay-as-you-go billing method](https://common-buy.aliyun.com/?spm=a2c4g.11186623.0.0.6c8f3481IbSHgG\\&commodityCode=cms_basic_public_cn\\&from_biz_channel=help_bill). + * * Each API operation can be called up to 50 times per second. An Alibaba Cloud account and the Resource Access Management (RAM) users within the account share the quota. + * > If `Throttling.User` or `Request was denied due to user flow control` is returned when you call an API operation, the API operation is throttled. For more information about how to handle the issue, see [How do I handle the throttling of a query API?](https://help.aliyun.com/document_detail/2615031.html) + * ### [](#)Precautions + * The storage duration of the monitoring data of each cloud service is related to the `Period` parameter (statistical period). A larger value of the `Period` parameter indicates that the monitoring data is distributed in a larger time range and the storage duration of the monitoring data is longer. The following list describes the specific relationships: + * * The storage duration is 7 days if the value of the `Period` parameter is less than 60 seconds. + * * The storage duration is 31 days if the value of the `Period` parameter is 60 seconds. + * * The storage duration is 91 days if the value of the `Period` parameter is greater than or equal to 300 seconds. + * ### [](#)Operation description + * This topic provides an example on how to query the latest monitoring data of the `CPUUtilization` metric for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. The returned result indicates that the monitoring data for the instance `i-abcdefgh12****` of the account `123456789876****` is queried at an interval of 60 seconds. The maximum, minimum, and average values of the metric are 100, 93.1, and 99.52. + * + * @param request - DescribeMetricLastRequest + * @returns DescribeMetricLastResponse + */ + async describeMetricLast(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeMetricLastWithOptions(request, runtime); + } + /** + * Queries the monitoring data of a metric for a specified cloud service. + * + * @remarks + * ## Limits + * Each API operation can be called up to 50 times per second. An Alibaba Cloud account and the RAM users within the account share the quota. + * >This topic provides an example to show how to query the monitoring data of the `cpu_idle` metric for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. The returned result indicates that the monitoring data for the instance `i-abcdefgh12****` of the account `120886317861****` is queried at an interval of 60 seconds. The maximum, minimum, and average values of the metric are 100, 93.1, and 99.52. + * + * @param request - DescribeMetricListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMetricListResponse + */ + async describeMetricListWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.dimensions)) { + query["Dimensions"] = request.dimensions; + } + if (!$dara.isNull(request.endTime)) { + query["EndTime"] = request.endTime; + } + if (!$dara.isNull(request.express)) { + query["Express"] = request.express; + } + if (!$dara.isNull(request.length)) { + query["Length"] = request.length; + } + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + if (!$dara.isNull(request.nextToken)) { + query["NextToken"] = request.nextToken; + } + if (!$dara.isNull(request.period)) { + query["Period"] = request.period; + } + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeMetricList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeMetricListResponse({})); + } + /** + * Queries the monitoring data of a metric for a specified cloud service. + * + * @remarks + * ## Limits + * Each API operation can be called up to 50 times per second. An Alibaba Cloud account and the RAM users within the account share the quota. + * >This topic provides an example to show how to query the monitoring data of the `cpu_idle` metric for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. The returned result indicates that the monitoring data for the instance `i-abcdefgh12****` of the account `120886317861****` is queried at an interval of 60 seconds. The maximum, minimum, and average values of the metric are 100, 93.1, and 99.52. + * + * @param request - DescribeMetricListRequest + * @returns DescribeMetricListResponse + */ + async describeMetricList(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeMetricListWithOptions(request, runtime); + } + /** + * Queries the details of metrics that are supported in CloudMonitor. + * + * @remarks + * This operation is used together with DescribeMetricList and DescribeMetricLast. For more information, see [DescribeMetricList](https://help.aliyun.com/document_detail/51936.html) and [DescribeMetricLast](https://help.aliyun.com/document_detail/51939.html). + * + * @param request - DescribeMetricMetaListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMetricMetaListResponse + */ + async describeMetricMetaListWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.labels)) { + query["Labels"] = request.labels; + } + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeMetricMetaList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeMetricMetaListResponse({})); + } + /** + * Queries the details of metrics that are supported in CloudMonitor. + * + * @remarks + * This operation is used together with DescribeMetricList and DescribeMetricLast. For more information, see [DescribeMetricList](https://help.aliyun.com/document_detail/51936.html) and [DescribeMetricLast](https://help.aliyun.com/document_detail/51939.html). + * + * @param request - DescribeMetricMetaListRequest + * @returns DescribeMetricMetaListResponse + */ + async describeMetricMetaList(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeMetricMetaListWithOptions(request, runtime); + } + /** + * @param request - DescribeMetricRuleBlackListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMetricRuleBlackListResponse + */ + async describeMetricRuleBlackListWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.category)) { + query["Category"] = request.category; + } + if (!$dara.isNull(request.ids)) { + query["Ids"] = request.ids; + } + if (!$dara.isNull(request.instanceIds)) { + query["InstanceIds"] = request.instanceIds; + } + if (!$dara.isNull(request.isEnable)) { + query["IsEnable"] = request.isEnable; + } + if (!$dara.isNull(request.name)) { + query["Name"] = request.name; + } + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + if (!$dara.isNull(request.order)) { + query["Order"] = request.order; + } + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + if (!$dara.isNull(request.scopeType)) { + query["ScopeType"] = request.scopeType; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeMetricRuleBlackList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeMetricRuleBlackListResponse({})); + } + /** + * @param request - DescribeMetricRuleBlackListRequest + * @returns DescribeMetricRuleBlackListResponse + */ + async describeMetricRuleBlackList(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeMetricRuleBlackListWithOptions(request, runtime); + } + /** + * Queries the number of alert rules in each state. + * + * @param request - DescribeMetricRuleCountRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMetricRuleCountResponse + */ + async describeMetricRuleCountWithOptions(request, runtime) { + request.validate(); + let query = openapi_core_2.OpenApiUtil.query(request.toMap()); + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeMetricRuleCount", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "GET", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeMetricRuleCountResponse({})); + } + /** + * Queries the number of alert rules in each state. + * + * @param request - DescribeMetricRuleCountRequest + * @returns DescribeMetricRuleCountResponse + */ + async describeMetricRuleCount(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeMetricRuleCountWithOptions(request, runtime); + } + /** + * Queries alert rules. + * + * @remarks + * This topic provides an example on how to query all alert rules within your Alibaba Cloud account. The returned result shows that only one alert rule is found. The name of the alert rule is `Rule_01` and the ID is `applyTemplate344cfd42-0f32-4fd6-805a-88d7908a****`. + * + * @param request - DescribeMetricRuleListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMetricRuleListResponse + */ + async describeMetricRuleListWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.alertState)) { + query["AlertState"] = request.alertState; + } + if (!$dara.isNull(request.dimensions)) { + query["Dimensions"] = request.dimensions; + } + if (!$dara.isNull(request.enableState)) { + query["EnableState"] = request.enableState; + } + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + if (!$dara.isNull(request.page)) { + query["Page"] = request.page; + } + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + if (!$dara.isNull(request.ruleIds)) { + query["RuleIds"] = request.ruleIds; + } + if (!$dara.isNull(request.ruleName)) { + query["RuleName"] = request.ruleName; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeMetricRuleList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeMetricRuleListResponse({})); + } + /** + * Queries alert rules. + * + * @remarks + * This topic provides an example on how to query all alert rules within your Alibaba Cloud account. The returned result shows that only one alert rule is found. The name of the alert rule is `Rule_01` and the ID is `applyTemplate344cfd42-0f32-4fd6-805a-88d7908a****`. + * + * @param request - DescribeMetricRuleListRequest + * @returns DescribeMetricRuleListResponse + */ + async describeMetricRuleList(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeMetricRuleListWithOptions(request, runtime); + } + /** + * Queries the resources that are associated with a specified alert rule. + * + * @remarks + * ## Limit + * This operation supports only Message Service (MNS) resources. + * >This topic provides an example on how to query the resources that are associated with an alert rule whose ID is `ae06917_75a8c43178ab66****`. + * + * @param request - DescribeMetricRuleTargetsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMetricRuleTargetsResponse + */ + async describeMetricRuleTargetsWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.ruleId)) { + query["RuleId"] = request.ruleId; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeMetricRuleTargets", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeMetricRuleTargetsResponse({})); + } + /** + * Queries the resources that are associated with a specified alert rule. + * + * @remarks + * ## Limit + * This operation supports only Message Service (MNS) resources. + * >This topic provides an example on how to query the resources that are associated with an alert rule whose ID is `ae06917_75a8c43178ab66****`. + * + * @param request - DescribeMetricRuleTargetsRequest + * @returns DescribeMetricRuleTargetsResponse + */ + async describeMetricRuleTargets(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeMetricRuleTargetsWithOptions(request, runtime); + } + /** + * Queries the details of an alert template. + * + * @remarks + * This topic provides an example on how to query the details of an alert template whose ID is `70****`. + * + * @param request - DescribeMetricRuleTemplateAttributeRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMetricRuleTemplateAttributeResponse + */ + async describeMetricRuleTemplateAttributeWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.name)) { + query["Name"] = request.name; + } + if (!$dara.isNull(request.templateId)) { + query["TemplateId"] = request.templateId; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeMetricRuleTemplateAttribute", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeMetricRuleTemplateAttributeResponse({})); + } + /** + * Queries the details of an alert template. + * + * @remarks + * This topic provides an example on how to query the details of an alert template whose ID is `70****`. + * + * @param request - DescribeMetricRuleTemplateAttributeRequest + * @returns DescribeMetricRuleTemplateAttributeResponse + */ + async describeMetricRuleTemplateAttribute(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeMetricRuleTemplateAttributeWithOptions(request, runtime); + } + /** + * Queries alert templates. + * + * @remarks + * This topic provides an example on how to query alert templates. In this example, the following alert templates are returned in the response: `ECS_Template1` and `ECS_Template2`. + * + * @param request - DescribeMetricRuleTemplateListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMetricRuleTemplateListResponse + */ + async describeMetricRuleTemplateListWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.history)) { + query["History"] = request.history; + } + if (!$dara.isNull(request.keyword)) { + query["Keyword"] = request.keyword; + } + if (!$dara.isNull(request.name)) { + query["Name"] = request.name; + } + if (!$dara.isNull(request.order)) { + query["Order"] = request.order; + } + if (!$dara.isNull(request.orderBy)) { + query["OrderBy"] = request.orderBy; + } + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + if (!$dara.isNull(request.templateId)) { + query["TemplateId"] = request.templateId; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeMetricRuleTemplateList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeMetricRuleTemplateListResponse({})); + } + /** + * Queries alert templates. + * + * @remarks + * This topic provides an example on how to query alert templates. In this example, the following alert templates are returned in the response: `ECS_Template1` and `ECS_Template2`. + * + * @param request - DescribeMetricRuleTemplateListRequest + * @returns DescribeMetricRuleTemplateListResponse + */ + async describeMetricRuleTemplateList(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeMetricRuleTemplateListWithOptions(request, runtime); + } + /** + * Queries the latest monitoring data of a metric for a cloud service. The data can be sorted by a specified order. + * + * @remarks + * ### [](#)Limits + * * The total free quota is 1 million calls per month for the DescribeMetricLast, DescribeMetricList, DescribeMetricData, and DescribeMetricTop operations. If the free quota is used up and CloudMonitor Basic (pay-as-you-go) is not activated, these API operations can no longer be called as expected. If you have activated CloudMonitor Basic (pay-as-you-go), these API operations can still be called even if the free quota is used up. After the free quota is used up, you are charged for the excess usage based on the pay-as-you-go billing method. For more information about how to activate CloudMonitor Basic (pay-as-you-go), see [Enable the pay-as-you-go billing method](https://common-buy.aliyun.com/?spm=a2c4g.11186623.0.0.6c8f3481IbSHgG\\&commodityCode=cms_basic_public_cn\\&from_biz_channel=help_bill). + * * Each API operation can be called up to 10 times per second. An Alibaba Cloud account and the Resource Access Management (RAM) users within the account share the quota. + * ### [](#)Precautions + * The storage duration of the monitoring data of each cloud service is related to the `Period` parameter (statistical period). A larger value of the `Period` parameter indicates that the monitoring data is distributed in a larger time range and the storage duration of the monitoring data is longer. The following list describes the specific relationships: + * * The storage duration is 7 days if the value of the `Period` parameter is less than 60 seconds. + * * The storage duration is 31 days if the value of the `Period` parameter is 60 seconds. + * * The storage duration is 91 days if the value of the `Period` is greater than or equal to 300 seconds. + * ### [](#)Operation description + * This topic provides an example on how to query the monitoring data of the `cpu_idle` metric in the last 60 seconds for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. The monitoring data is sorted in descending order based on the `Average` field. + * + * @param request - DescribeMetricTopRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMetricTopResponse + */ + async describeMetricTopWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.dimensions)) { + query["Dimensions"] = request.dimensions; + } + if (!$dara.isNull(request.endTime)) { + query["EndTime"] = request.endTime; + } + if (!$dara.isNull(request.express)) { + query["Express"] = request.express; + } + if (!$dara.isNull(request.length)) { + query["Length"] = request.length; + } + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + if (!$dara.isNull(request.orderDesc)) { + query["OrderDesc"] = request.orderDesc; + } + if (!$dara.isNull(request.orderby)) { + query["Orderby"] = request.orderby; + } + if (!$dara.isNull(request.period)) { + query["Period"] = request.period; + } + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeMetricTop", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeMetricTopResponse({})); + } + /** + * Queries the latest monitoring data of a metric for a cloud service. The data can be sorted by a specified order. + * + * @remarks + * ### [](#)Limits + * * The total free quota is 1 million calls per month for the DescribeMetricLast, DescribeMetricList, DescribeMetricData, and DescribeMetricTop operations. If the free quota is used up and CloudMonitor Basic (pay-as-you-go) is not activated, these API operations can no longer be called as expected. If you have activated CloudMonitor Basic (pay-as-you-go), these API operations can still be called even if the free quota is used up. After the free quota is used up, you are charged for the excess usage based on the pay-as-you-go billing method. For more information about how to activate CloudMonitor Basic (pay-as-you-go), see [Enable the pay-as-you-go billing method](https://common-buy.aliyun.com/?spm=a2c4g.11186623.0.0.6c8f3481IbSHgG\\&commodityCode=cms_basic_public_cn\\&from_biz_channel=help_bill). + * * Each API operation can be called up to 10 times per second. An Alibaba Cloud account and the Resource Access Management (RAM) users within the account share the quota. + * ### [](#)Precautions + * The storage duration of the monitoring data of each cloud service is related to the `Period` parameter (statistical period). A larger value of the `Period` parameter indicates that the monitoring data is distributed in a larger time range and the storage duration of the monitoring data is longer. The following list describes the specific relationships: + * * The storage duration is 7 days if the value of the `Period` parameter is less than 60 seconds. + * * The storage duration is 31 days if the value of the `Period` parameter is 60 seconds. + * * The storage duration is 91 days if the value of the `Period` is greater than or equal to 300 seconds. + * ### [](#)Operation description + * This topic provides an example on how to query the monitoring data of the `cpu_idle` metric in the last 60 seconds for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. The monitoring data is sorted in descending order based on the `Average` field. + * + * @param request - DescribeMetricTopRequest + * @returns DescribeMetricTopResponse + */ + async describeMetricTop(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeMetricTopWithOptions(request, runtime); + } + /** + * Queries the cloud services to which the resources in an application group belong and the number of resources that belong to each cloud service in the application group. + * + * @param request - DescribeMonitorGroupCategoriesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitorGroupCategoriesResponse + */ + async describeMonitorGroupCategoriesWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeMonitorGroupCategories", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeMonitorGroupCategoriesResponse({})); + } + /** + * Queries the cloud services to which the resources in an application group belong and the number of resources that belong to each cloud service in the application group. + * + * @param request - DescribeMonitorGroupCategoriesRequest + * @returns DescribeMonitorGroupCategoriesResponse + */ + async describeMonitorGroupCategories(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeMonitorGroupCategoriesWithOptions(request, runtime); + } + /** + * Queries the dynamic rules of an application group. + * + * @param request - DescribeMonitorGroupDynamicRulesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitorGroupDynamicRulesResponse + */ + async describeMonitorGroupDynamicRulesWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeMonitorGroupDynamicRules", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeMonitorGroupDynamicRulesResponse({})); + } + /** + * Queries the dynamic rules of an application group. + * + * @param request - DescribeMonitorGroupDynamicRulesRequest + * @returns DescribeMonitorGroupDynamicRulesResponse + */ + async describeMonitorGroupDynamicRules(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeMonitorGroupDynamicRulesWithOptions(request, runtime); + } + /** + * Queries the details of the resources in an application group. + * + * @param request - DescribeMonitorGroupInstanceAttributeRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitorGroupInstanceAttributeResponse + */ + async describeMonitorGroupInstanceAttributeWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.category)) { + query["Category"] = request.category; + } + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.instanceIds)) { + query["InstanceIds"] = request.instanceIds; + } + if (!$dara.isNull(request.keyword)) { + query["Keyword"] = request.keyword; + } + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + if (!$dara.isNull(request.total)) { + query["Total"] = request.total; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeMonitorGroupInstanceAttribute", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeMonitorGroupInstanceAttributeResponse({})); + } + /** + * Queries the details of the resources in an application group. + * + * @param request - DescribeMonitorGroupInstanceAttributeRequest + * @returns DescribeMonitorGroupInstanceAttributeResponse + */ + async describeMonitorGroupInstanceAttribute(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeMonitorGroupInstanceAttributeWithOptions(request, runtime); + } + /** + * Queries the resources in an application group. + * + * @param request - DescribeMonitorGroupInstancesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitorGroupInstancesResponse + */ + async describeMonitorGroupInstancesWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.category)) { + query["Category"] = request.category; + } + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.instanceIds)) { + query["InstanceIds"] = request.instanceIds; + } + if (!$dara.isNull(request.keyword)) { + query["Keyword"] = request.keyword; + } + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeMonitorGroupInstances", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeMonitorGroupInstancesResponse({})); + } + /** + * Queries the resources in an application group. + * + * @param request - DescribeMonitorGroupInstancesRequest + * @returns DescribeMonitorGroupInstancesResponse + */ + async describeMonitorGroupInstances(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeMonitorGroupInstancesWithOptions(request, runtime); + } + /** + * Queries the policies that are used to pause alert notifications for an application group. + * + * @param request - DescribeMonitorGroupNotifyPolicyListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitorGroupNotifyPolicyListResponse + */ + async describeMonitorGroupNotifyPolicyListWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + if (!$dara.isNull(request.policyType)) { + query["PolicyType"] = request.policyType; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeMonitorGroupNotifyPolicyList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeMonitorGroupNotifyPolicyListResponse({})); + } + /** + * Queries the policies that are used to pause alert notifications for an application group. + * + * @param request - DescribeMonitorGroupNotifyPolicyListRequest + * @returns DescribeMonitorGroupNotifyPolicyListResponse + */ + async describeMonitorGroupNotifyPolicyList(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeMonitorGroupNotifyPolicyListWithOptions(request, runtime); + } + /** + * Queries application groups. + * + * @remarks + * This topic provides an example of how to query the application groups of the current account. The response shows that the current account has two application groups: `testGroup124` and `test123`. + * + * @param request - DescribeMonitorGroupsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitorGroupsResponse + */ + async describeMonitorGroupsWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.dynamicTagRuleId)) { + query["DynamicTagRuleId"] = request.dynamicTagRuleId; + } + if (!$dara.isNull(request.groupFounderTagKey)) { + query["GroupFounderTagKey"] = request.groupFounderTagKey; + } + if (!$dara.isNull(request.groupFounderTagValue)) { + query["GroupFounderTagValue"] = request.groupFounderTagValue; + } + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.groupName)) { + query["GroupName"] = request.groupName; + } + if (!$dara.isNull(request.includeTemplateHistory)) { + query["IncludeTemplateHistory"] = request.includeTemplateHistory; + } + if (!$dara.isNull(request.instanceId)) { + query["InstanceId"] = request.instanceId; + } + if (!$dara.isNull(request.keyword)) { + query["Keyword"] = request.keyword; + } + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + if (!$dara.isNull(request.selectContactGroups)) { + query["SelectContactGroups"] = request.selectContactGroups; + } + if (!$dara.isNull(request.tag)) { + query["Tag"] = request.tag; + } + if (!$dara.isNull(request.type)) { + query["Type"] = request.type; + } + if (!$dara.isNull(request.types)) { + query["Types"] = request.types; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeMonitorGroups", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeMonitorGroupsResponse({})); + } + /** + * Queries application groups. + * + * @remarks + * This topic provides an example of how to query the application groups of the current account. The response shows that the current account has two application groups: `testGroup124` and `test123`. + * + * @param request - DescribeMonitorGroupsRequest + * @returns DescribeMonitorGroupsResponse + */ + async describeMonitorGroups(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeMonitorGroupsWithOptions(request, runtime); + } + /** + * Queries the resource quotas of CloudMonitor. + * + * @param request - DescribeMonitorResourceQuotaAttributeRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitorResourceQuotaAttributeResponse + */ + async describeMonitorResourceQuotaAttributeWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.showUsed)) { + query["ShowUsed"] = request.showUsed; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeMonitorResourceQuotaAttribute", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeMonitorResourceQuotaAttributeResponse({})); + } + /** + * Queries the resource quotas of CloudMonitor. + * + * @param request - DescribeMonitorResourceQuotaAttributeRequest + * @returns DescribeMonitorResourceQuotaAttributeResponse + */ + async describeMonitorResourceQuotaAttribute(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeMonitorResourceQuotaAttributeWithOptions(request, runtime); + } + /** + * Queries the AccessKey ID and AccessKey secret that are required to install the CloudMonitor agent on a third-party host. + * + * @param request - DescribeMonitoringAgentAccessKeyRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitoringAgentAccessKeyResponse + */ + async describeMonitoringAgentAccessKeyWithOptions(request, runtime) { + request.validate(); + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({}); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeMonitoringAgentAccessKey", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeMonitoringAgentAccessKeyResponse({})); + } + /** + * Queries the AccessKey ID and AccessKey secret that are required to install the CloudMonitor agent on a third-party host. + * + * @param request - DescribeMonitoringAgentAccessKeyRequest + * @returns DescribeMonitoringAgentAccessKeyResponse + */ + async describeMonitoringAgentAccessKey(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeMonitoringAgentAccessKeyWithOptions(request, runtime); + } + /** + * Queries the configurations of the CloudMonitor agent. + * + * @param request - DescribeMonitoringAgentConfigRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitoringAgentConfigResponse + */ + async describeMonitoringAgentConfigWithOptions(request, runtime) { + request.validate(); + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({}); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeMonitoringAgentConfig", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeMonitoringAgentConfigResponse({})); + } + /** + * Queries the configurations of the CloudMonitor agent. + * + * @param request - DescribeMonitoringAgentConfigRequest + * @returns DescribeMonitoringAgentConfigResponse + */ + async describeMonitoringAgentConfig(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeMonitoringAgentConfigWithOptions(request, runtime); + } + /** + * Queries all hosts within the current Alibaba Cloud account, including hosts on which the CloudMonitor agent is installed and uninstalled. + * + * @param request - DescribeMonitoringAgentHostsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitoringAgentHostsResponse + */ + async describeMonitoringAgentHostsWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.aliyunHost)) { + query["AliyunHost"] = request.aliyunHost; + } + if (!$dara.isNull(request.hostName)) { + query["HostName"] = request.hostName; + } + if (!$dara.isNull(request.instanceIds)) { + query["InstanceIds"] = request.instanceIds; + } + if (!$dara.isNull(request.instanceRegionId)) { + query["InstanceRegionId"] = request.instanceRegionId; + } + if (!$dara.isNull(request.keyWord)) { + query["KeyWord"] = request.keyWord; + } + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + if (!$dara.isNull(request.serialNumbers)) { + query["SerialNumbers"] = request.serialNumbers; + } + if (!$dara.isNull(request.status)) { + query["Status"] = request.status; + } + if (!$dara.isNull(request.sysomStatus)) { + query["SysomStatus"] = request.sysomStatus; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeMonitoringAgentHosts", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeMonitoringAgentHostsResponse({})); + } + /** + * Queries all hosts within the current Alibaba Cloud account, including hosts on which the CloudMonitor agent is installed and uninstalled. + * + * @param request - DescribeMonitoringAgentHostsRequest + * @returns DescribeMonitoringAgentHostsResponse + */ + async describeMonitoringAgentHosts(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeMonitoringAgentHostsWithOptions(request, runtime); + } + /** + * 查询指定资源的进程数列表 + * + * @remarks + * > Before you call this operation, call the CreateMonitoringAgentProcess operation to create processes. For more information, see [CreateMonitoringAgentProcess](https://help.aliyun.com/document_detail/114951.html~). + * This topic provides an example of how to query the processes of the `i-hp3hl3cx1pbahzy8****` instance. The response indicates the details of the `NGINX` and `HTTP` processes. + * + * @param request - DescribeMonitoringAgentProcessesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitoringAgentProcessesResponse + */ + async describeMonitoringAgentProcessesWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.instanceId)) { + query["InstanceId"] = request.instanceId; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeMonitoringAgentProcesses", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeMonitoringAgentProcessesResponse({})); + } + /** + * 查询指定资源的进程数列表 + * + * @remarks + * > Before you call this operation, call the CreateMonitoringAgentProcess operation to create processes. For more information, see [CreateMonitoringAgentProcess](https://help.aliyun.com/document_detail/114951.html~). + * This topic provides an example of how to query the processes of the `i-hp3hl3cx1pbahzy8****` instance. The response indicates the details of the `NGINX` and `HTTP` processes. + * + * @param request - DescribeMonitoringAgentProcessesRequest + * @returns DescribeMonitoringAgentProcessesResponse + */ + async describeMonitoringAgentProcesses(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeMonitoringAgentProcessesWithOptions(request, runtime); + } + /** + * Queries the status of the CloudMonitor agent. + * + * @remarks + * This topic describes how to query the status of the CloudMonitor agent that is installed on the `i-hp3dunahluwajv6f****` instance. The result indicates that the CloudMonitor agent is in the `running` state. + * + * @param request - DescribeMonitoringAgentStatusesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitoringAgentStatusesResponse + */ + async describeMonitoringAgentStatusesWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.hostAvailabilityTaskId)) { + query["HostAvailabilityTaskId"] = request.hostAvailabilityTaskId; + } + if (!$dara.isNull(request.instanceIds)) { + query["InstanceIds"] = request.instanceIds; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeMonitoringAgentStatuses", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeMonitoringAgentStatusesResponse({})); + } + /** + * Queries the status of the CloudMonitor agent. + * + * @remarks + * This topic describes how to query the status of the CloudMonitor agent that is installed on the `i-hp3dunahluwajv6f****` instance. The result indicates that the CloudMonitor agent is in the `running` state. + * + * @param request - DescribeMonitoringAgentStatusesRequest + * @returns DescribeMonitoringAgentStatusesResponse + */ + async describeMonitoringAgentStatuses(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeMonitoringAgentStatusesWithOptions(request, runtime); + } + /** + * Queries the global configurations of the CloudMonitor agent. + * + * @param request - DescribeMonitoringConfigRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitoringConfigResponse + */ + async describeMonitoringConfigWithOptions(request, runtime) { + request.validate(); + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({}); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeMonitoringConfig", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeMonitoringConfigResponse({})); + } + /** + * Queries the global configurations of the CloudMonitor agent. + * + * @param request - DescribeMonitoringConfigRequest + * @returns DescribeMonitoringConfigResponse + */ + async describeMonitoringConfig(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeMonitoringConfigWithOptions(request, runtime); + } + /** + * Queries the keys of all tags that are attached to cloud resources in a region. + * + * @remarks + * > If a tag is attached to multiple cloud resources in the region, the key of the tag is returned only once. + * + * @param request - DescribeProductResourceTagKeyListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeProductResourceTagKeyListResponse + */ + async describeProductResourceTagKeyListWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.nextToken)) { + query["NextToken"] = request.nextToken; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeProductResourceTagKeyList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeProductResourceTagKeyListResponse({})); + } + /** + * Queries the keys of all tags that are attached to cloud resources in a region. + * + * @remarks + * > If a tag is attached to multiple cloud resources in the region, the key of the tag is returned only once. + * + * @param request - DescribeProductResourceTagKeyListRequest + * @returns DescribeProductResourceTagKeyListResponse + */ + async describeProductResourceTagKeyList(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeProductResourceTagKeyListWithOptions(request, runtime); + } + /** + * Queries the cloud services for which the initiative alert feature is enabled. + * + * @param request - DescribeProductsOfActiveMetricRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeProductsOfActiveMetricRuleResponse + */ + async describeProductsOfActiveMetricRuleWithOptions(request, runtime) { + request.validate(); + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({}); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeProductsOfActiveMetricRule", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeProductsOfActiveMetricRuleResponse({})); + } + /** + * Queries the cloud services for which the initiative alert feature is enabled. + * + * @param request - DescribeProductsOfActiveMetricRuleRequest + * @returns DescribeProductsOfActiveMetricRuleResponse + */ + async describeProductsOfActiveMetricRule(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeProductsOfActiveMetricRuleWithOptions(request, runtime); + } + /** + * Queries the information about monitored services in CloudMonitor. + * + * @remarks + * The information obtained by this operation includes the service description, namespace, and tags. + * + * @param request - DescribeProjectMetaRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeProjectMetaResponse + */ + async describeProjectMetaWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.labels)) { + query["Labels"] = request.labels; + } + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeProjectMeta", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeProjectMetaResponse({})); + } + /** + * Queries the information about monitored services in CloudMonitor. + * + * @remarks + * The information obtained by this operation includes the service description, namespace, and tags. + * + * @param request - DescribeProjectMetaRequest + * @returns DescribeProjectMetaResponse + */ + async describeProjectMeta(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeProjectMetaWithOptions(request, runtime); + } + /** + * Queries the details of a site monitoring task. + * + * @remarks + * This topic provides an example on how to query the details of a site monitoring task whose ID is `cc641dff-c19d-45f3-ad0a-818a0c4f****`. The returned result indicates that the task name is `test123`, the URL that is monitored by the task is `https://aliyun.com`, and the name of the carrier is `Alibaba`. + * + * @param request - DescribeSiteMonitorAttributeRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSiteMonitorAttributeResponse + */ + async describeSiteMonitorAttributeWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.includeAlert)) { + query["IncludeAlert"] = request.includeAlert; + } + if (!$dara.isNull(request.taskId)) { + query["TaskId"] = request.taskId; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeSiteMonitorAttribute", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeSiteMonitorAttributeResponse({})); + } + /** + * Queries the details of a site monitoring task. + * + * @remarks + * This topic provides an example on how to query the details of a site monitoring task whose ID is `cc641dff-c19d-45f3-ad0a-818a0c4f****`. The returned result indicates that the task name is `test123`, the URL that is monitored by the task is `https://aliyun.com`, and the name of the carrier is `Alibaba`. + * + * @param request - DescribeSiteMonitorAttributeRequest + * @returns DescribeSiteMonitorAttributeResponse + */ + async describeSiteMonitorAttribute(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeSiteMonitorAttributeWithOptions(request, runtime); + } + /** + * Queries the fine-grained monitoring data of a site monitoring task. + * + * @param request - DescribeSiteMonitorDataRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSiteMonitorDataResponse + */ + async describeSiteMonitorDataWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.endTime)) { + query["EndTime"] = request.endTime; + } + if (!$dara.isNull(request.length)) { + query["Length"] = request.length; + } + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + if (!$dara.isNull(request.nextToken)) { + query["NextToken"] = request.nextToken; + } + if (!$dara.isNull(request.period)) { + query["Period"] = request.period; + } + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + if (!$dara.isNull(request.taskId)) { + query["TaskId"] = request.taskId; + } + if (!$dara.isNull(request.type)) { + query["Type"] = request.type; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeSiteMonitorData", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeSiteMonitorDataResponse({})); + } + /** + * Queries the fine-grained monitoring data of a site monitoring task. + * + * @param request - DescribeSiteMonitorDataRequest + * @returns DescribeSiteMonitorDataResponse + */ + async describeSiteMonitorData(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeSiteMonitorDataWithOptions(request, runtime); + } + /** + * Queries the detection points that are provided by carriers. + * + * @remarks + * This topic provides an example on how to query the detection points that are provided by China Unicom in Guiyang. + * + * @param request - DescribeSiteMonitorISPCityListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSiteMonitorISPCityListResponse + */ + async describeSiteMonitorISPCityListWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.city)) { + query["City"] = request.city; + } + if (!$dara.isNull(request.IPV4)) { + query["IPV4"] = request.IPV4; + } + if (!$dara.isNull(request.IPV6)) { + query["IPV6"] = request.IPV6; + } + if (!$dara.isNull(request.isp)) { + query["Isp"] = request.isp; + } + if (!$dara.isNull(request.viewAll)) { + query["ViewAll"] = request.viewAll; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeSiteMonitorISPCityList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeSiteMonitorISPCityListResponse({})); + } + /** + * Queries the detection points that are provided by carriers. + * + * @remarks + * This topic provides an example on how to query the detection points that are provided by China Unicom in Guiyang. + * + * @param request - DescribeSiteMonitorISPCityListRequest + * @returns DescribeSiteMonitorISPCityListResponse + */ + async describeSiteMonitorISPCityList(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeSiteMonitorISPCityListWithOptions(request, runtime); + } + /** + * Queries site monitoring tasks. + * + * @remarks + * This topic provides an example on how to query all the site monitoring tasks of your Alibaba Cloud account. In this example, the returned result indicates that the Alibaba Cloud account has one site monitoring task named `HanZhou_ECS2`. + * + * @param request - DescribeSiteMonitorListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSiteMonitorListResponse + */ + async describeSiteMonitorListWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.agentGroup)) { + query["AgentGroup"] = request.agentGroup; + } + if (!$dara.isNull(request.keyword)) { + query["Keyword"] = request.keyword; + } + if (!$dara.isNull(request.page)) { + query["Page"] = request.page; + } + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + if (!$dara.isNull(request.taskId)) { + query["TaskId"] = request.taskId; + } + if (!$dara.isNull(request.taskState)) { + query["TaskState"] = request.taskState; + } + if (!$dara.isNull(request.taskType)) { + query["TaskType"] = request.taskType; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeSiteMonitorList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeSiteMonitorListResponse({})); + } + /** + * Queries site monitoring tasks. + * + * @remarks + * This topic provides an example on how to query all the site monitoring tasks of your Alibaba Cloud account. In this example, the returned result indicates that the Alibaba Cloud account has one site monitoring task named `HanZhou_ECS2`. + * + * @param request - DescribeSiteMonitorListRequest + * @returns DescribeSiteMonitorListResponse + */ + async describeSiteMonitorList(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeSiteMonitorListWithOptions(request, runtime); + } + /** + * Queries the logs of one or more instant test tasks. + * + * @remarks + * You can create an instant test task only by using the Alibaba Cloud account that you used to enable Network Analysis and Monitoring. + * This topic provides an example to show how to query the logs of an instant test task whose ID is `afa5c3ce-f944-4363-9edb-ce919a29****`. + * + * @param request - DescribeSiteMonitorLogRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSiteMonitorLogResponse + */ + async describeSiteMonitorLogWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.browser)) { + query["Browser"] = request.browser; + } + if (!$dara.isNull(request.browserInfo)) { + query["BrowserInfo"] = request.browserInfo; + } + if (!$dara.isNull(request.city)) { + query["City"] = request.city; + } + if (!$dara.isNull(request.device)) { + query["Device"] = request.device; + } + if (!$dara.isNull(request.endTime)) { + query["EndTime"] = request.endTime; + } + if (!$dara.isNull(request.filter)) { + query["Filter"] = request.filter; + } + if (!$dara.isNull(request.isp)) { + query["Isp"] = request.isp; + } + if (!$dara.isNull(request.length)) { + query["Length"] = request.length; + } + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + if (!$dara.isNull(request.nextToken)) { + query["NextToken"] = request.nextToken; + } + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + if (!$dara.isNull(request.taskIds)) { + query["TaskIds"] = request.taskIds; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeSiteMonitorLog", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeSiteMonitorLogResponse({})); + } + /** + * Queries the logs of one or more instant test tasks. + * + * @remarks + * You can create an instant test task only by using the Alibaba Cloud account that you used to enable Network Analysis and Monitoring. + * This topic provides an example to show how to query the logs of an instant test task whose ID is `afa5c3ce-f944-4363-9edb-ce919a29****`. + * + * @param request - DescribeSiteMonitorLogRequest + * @returns DescribeSiteMonitorLogResponse + */ + async describeSiteMonitorLog(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeSiteMonitorLogWithOptions(request, runtime); + } + /** + * Queries the quotas and version of site monitoring. + * + * @param request - DescribeSiteMonitorQuotaRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSiteMonitorQuotaResponse + */ + async describeSiteMonitorQuotaWithOptions(request, runtime) { + request.validate(); + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({}); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeSiteMonitorQuota", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeSiteMonitorQuotaResponse({})); + } + /** + * Queries the quotas and version of site monitoring. + * + * @param request - DescribeSiteMonitorQuotaRequest + * @returns DescribeSiteMonitorQuotaResponse + */ + async describeSiteMonitorQuota(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeSiteMonitorQuotaWithOptions(request, runtime); + } + /** + * Queries the statistics of a specified metric for a specified site monitoring task. + * + * @remarks + * This topic provides an example on how to query the statistics of the `Availability` metric for a site monitoring task whose ID is `ef4cdc8b-9dc7-43e7-810e-f950e56c****`. The result indicates that the availability rate of the site is `100%`. + * + * @param request - DescribeSiteMonitorStatisticsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSiteMonitorStatisticsResponse + */ + async describeSiteMonitorStatisticsWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + if (!$dara.isNull(request.taskId)) { + query["TaskId"] = request.taskId; + } + if (!$dara.isNull(request.timeRange)) { + query["TimeRange"] = request.timeRange; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeSiteMonitorStatistics", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeSiteMonitorStatisticsResponse({})); + } + /** + * Queries the statistics of a specified metric for a specified site monitoring task. + * + * @remarks + * This topic provides an example on how to query the statistics of the `Availability` metric for a site monitoring task whose ID is `ef4cdc8b-9dc7-43e7-810e-f950e56c****`. The result indicates that the availability rate of the site is `100%`. + * + * @param request - DescribeSiteMonitorStatisticsRequest + * @returns DescribeSiteMonitorStatisticsResponse + */ + async describeSiteMonitorStatistics(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeSiteMonitorStatisticsWithOptions(request, runtime); + } + /** + * 查询拨测探测节点列表 + * + * @param request - DescribeSyntheticProbeListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSyntheticProbeListResponse + */ + async describeSyntheticProbeListWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.city)) { + query["City"] = request.city; + } + if (!$dara.isNull(request.idcProbe)) { + query["IdcProbe"] = request.idcProbe; + } + if (!$dara.isNull(request.ipv4)) { + query["Ipv4"] = request.ipv4; + } + if (!$dara.isNull(request.ipv6)) { + query["Ipv6"] = request.ipv6; + } + if (!$dara.isNull(request.isp)) { + query["Isp"] = request.isp; + } + if (!$dara.isNull(request.lmProbe)) { + query["LmProbe"] = request.lmProbe; + } + if (!$dara.isNull(request.mbProbe)) { + query["MbProbe"] = request.mbProbe; + } + if (!$dara.isNull(request.viewAll)) { + query["ViewAll"] = request.viewAll; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeSyntheticProbeList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeSyntheticProbeListResponse({})); + } + /** + * 查询拨测探测节点列表 + * + * @param request - DescribeSyntheticProbeListRequest + * @returns DescribeSyntheticProbeListResponse + */ + async describeSyntheticProbeList(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeSyntheticProbeListWithOptions(request, runtime); + } + /** + * Queries the details of a system event. + * + * @param request - DescribeSystemEventAttributeRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSystemEventAttributeResponse + */ + async describeSystemEventAttributeWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.endTime)) { + query["EndTime"] = request.endTime; + } + if (!$dara.isNull(request.eventType)) { + query["EventType"] = request.eventType; + } + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.level)) { + query["Level"] = request.level; + } + if (!$dara.isNull(request.name)) { + query["Name"] = request.name; + } + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + if (!$dara.isNull(request.product)) { + query["Product"] = request.product; + } + if (!$dara.isNull(request.searchKeywords)) { + query["SearchKeywords"] = request.searchKeywords; + } + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + if (!$dara.isNull(request.status)) { + query["Status"] = request.status; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeSystemEventAttribute", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeSystemEventAttributeResponse({})); + } + /** + * Queries the details of a system event. + * + * @param request - DescribeSystemEventAttributeRequest + * @returns DescribeSystemEventAttributeResponse + */ + async describeSystemEventAttribute(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeSystemEventAttributeWithOptions(request, runtime); + } + /** + * Queries the number of times that a system event of a cloud service has occurred. + * + * @remarks + * ### [](#)Background information + * You can call the [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html) operation to query the cloud services supported by CloudMonitor and their system events. + * ### [](#)Description + * This topic provides an example on how to query the number of times that a system event of `Elastic Compute Service (ECS)` has occurred. The returned result shows that the specified system event has occurred three times. + * + * @param request - DescribeSystemEventCountRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSystemEventCountResponse + */ + async describeSystemEventCountWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.endTime)) { + query["EndTime"] = request.endTime; + } + if (!$dara.isNull(request.eventType)) { + query["EventType"] = request.eventType; + } + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.level)) { + query["Level"] = request.level; + } + if (!$dara.isNull(request.name)) { + query["Name"] = request.name; + } + if (!$dara.isNull(request.product)) { + query["Product"] = request.product; + } + if (!$dara.isNull(request.searchKeywords)) { + query["SearchKeywords"] = request.searchKeywords; + } + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + if (!$dara.isNull(request.status)) { + query["Status"] = request.status; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeSystemEventCount", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeSystemEventCountResponse({})); + } + /** + * Queries the number of times that a system event of a cloud service has occurred. + * + * @remarks + * ### [](#)Background information + * You can call the [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html) operation to query the cloud services supported by CloudMonitor and their system events. + * ### [](#)Description + * This topic provides an example on how to query the number of times that a system event of `Elastic Compute Service (ECS)` has occurred. The returned result shows that the specified system event has occurred three times. + * + * @param request - DescribeSystemEventCountRequest + * @returns DescribeSystemEventCountResponse + */ + async describeSystemEventCount(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeSystemEventCountWithOptions(request, runtime); + } + /** + * Queries the number of times a system event occurred during each interval within a period of time. + * + * @param request - DescribeSystemEventHistogramRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSystemEventHistogramResponse + */ + async describeSystemEventHistogramWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.endTime)) { + query["EndTime"] = request.endTime; + } + if (!$dara.isNull(request.eventType)) { + query["EventType"] = request.eventType; + } + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.level)) { + query["Level"] = request.level; + } + if (!$dara.isNull(request.name)) { + query["Name"] = request.name; + } + if (!$dara.isNull(request.product)) { + query["Product"] = request.product; + } + if (!$dara.isNull(request.searchKeywords)) { + query["SearchKeywords"] = request.searchKeywords; + } + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + if (!$dara.isNull(request.status)) { + query["Status"] = request.status; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeSystemEventHistogram", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeSystemEventHistogramResponse({})); + } + /** + * Queries the number of times a system event occurred during each interval within a period of time. + * + * @param request - DescribeSystemEventHistogramRequest + * @returns DescribeSystemEventHistogramResponse + */ + async describeSystemEventHistogram(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeSystemEventHistogramWithOptions(request, runtime); + } + /** + * Queries the meta information about system events. + * + * @param request - DescribeSystemEventMetaListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSystemEventMetaListResponse + */ + async describeSystemEventMetaListWithOptions(request, runtime) { + request.validate(); + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({}); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeSystemEventMetaList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeSystemEventMetaListResponse({})); + } + /** + * Queries the meta information about system events. + * + * @param request - DescribeSystemEventMetaListRequest + * @returns DescribeSystemEventMetaListResponse + */ + async describeSystemEventMetaList(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeSystemEventMetaListWithOptions(request, runtime); + } + /** + * Queries tag keys. + * + * @param request - DescribeTagKeyListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeTagKeyListResponse + */ + async describeTagKeyListWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeTagKeyList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeTagKeyListResponse({})); + } + /** + * Queries tag keys. + * + * @param request - DescribeTagKeyListRequest + * @returns DescribeTagKeyListResponse + */ + async describeTagKeyList(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeTagKeyListWithOptions(request, runtime); + } + /** + * Queries the tag values corresponding to a specified tag key. + * + * @remarks + * This topic provides an example of how to query the tag values corresponding to `tagKey1`. The return results are `tagValue1` and `tagValue2`. + * + * @param request - DescribeTagValueListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeTagValueListResponse + */ + async describeTagValueListWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + if (!$dara.isNull(request.tagKey)) { + query["TagKey"] = request.tagKey; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeTagValueList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeTagValueListResponse({})); + } + /** + * Queries the tag values corresponding to a specified tag key. + * + * @remarks + * This topic provides an example of how to query the tag values corresponding to `tagKey1`. The return results are `tagValue1` and `tagValue2`. + * + * @param request - DescribeTagValueListRequest + * @returns DescribeTagValueListResponse + */ + async describeTagValueList(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeTagValueListWithOptions(request, runtime); + } + /** + * Queries unhealthy instances detected by availability monitoring tasks. + * + * @param request - DescribeUnhealthyHostAvailabilityRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeUnhealthyHostAvailabilityResponse + */ + async describeUnhealthyHostAvailabilityWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.id)) { + query["Id"] = request.id; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DescribeUnhealthyHostAvailability", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeUnhealthyHostAvailabilityResponse({})); + } + /** + * Queries unhealthy instances detected by availability monitoring tasks. + * + * @param request - DescribeUnhealthyHostAvailabilityRequest + * @returns DescribeUnhealthyHostAvailabilityResponse + */ + async describeUnhealthyHostAvailability(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.describeUnhealthyHostAvailabilityWithOptions(request, runtime); + } + /** + * Disables the initiative alert feature for a cloud service. + * + * @param request - DisableActiveMetricRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DisableActiveMetricRuleResponse + */ + async disableActiveMetricRuleWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.product)) { + query["Product"] = request.product; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DisableActiveMetricRule", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DisableActiveMetricRuleResponse({})); + } + /** + * Disables the initiative alert feature for a cloud service. + * + * @param request - DisableActiveMetricRuleRequest + * @returns DisableActiveMetricRuleResponse + */ + async disableActiveMetricRule(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.disableActiveMetricRuleWithOptions(request, runtime); + } + /** + * @param request - DisableEventRulesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DisableEventRulesResponse + */ + async disableEventRulesWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.ruleNames)) { + query["RuleNames"] = request.ruleNames; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DisableEventRules", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DisableEventRulesResponse({})); + } + /** + * @param request - DisableEventRulesRequest + * @returns DisableEventRulesResponse + */ + async disableEventRules(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.disableEventRulesWithOptions(request, runtime); + } + /** + * Disables availability monitoring tasks. + * + * @param request - DisableHostAvailabilityRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DisableHostAvailabilityResponse + */ + async disableHostAvailabilityWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.id)) { + query["Id"] = request.id; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DisableHostAvailability", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DisableHostAvailabilityResponse({})); + } + /** + * Disables availability monitoring tasks. + * + * @param request - DisableHostAvailabilityRequest + * @returns DisableHostAvailabilityResponse + */ + async disableHostAvailability(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.disableHostAvailabilityWithOptions(request, runtime); + } + /** + * Disables alert rules. + * + * @param request - DisableMetricRulesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DisableMetricRulesResponse + */ + async disableMetricRulesWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.ruleId)) { + query["RuleId"] = request.ruleId; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DisableMetricRules", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DisableMetricRulesResponse({})); + } + /** + * Disables alert rules. + * + * @param request - DisableMetricRulesRequest + * @returns DisableMetricRulesResponse + */ + async disableMetricRules(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.disableMetricRulesWithOptions(request, runtime); + } + /** + * Disables site monitoring tasks. + * + * @param request - DisableSiteMonitorsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DisableSiteMonitorsResponse + */ + async disableSiteMonitorsWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.taskIds)) { + query["TaskIds"] = request.taskIds; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "DisableSiteMonitors", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.DisableSiteMonitorsResponse({})); + } + /** + * Disables site monitoring tasks. + * + * @param request - DisableSiteMonitorsRequest + * @returns DisableSiteMonitorsResponse + */ + async disableSiteMonitors(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.disableSiteMonitorsWithOptions(request, runtime); + } + /** + * Enables the initiative alert feature for a cloud service. + * + * @param request - EnableActiveMetricRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns EnableActiveMetricRuleResponse + */ + async enableActiveMetricRuleWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.product)) { + query["Product"] = request.product; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "EnableActiveMetricRule", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.EnableActiveMetricRuleResponse({})); + } + /** + * Enables the initiative alert feature for a cloud service. + * + * @param request - EnableActiveMetricRuleRequest + * @returns EnableActiveMetricRuleResponse + */ + async enableActiveMetricRule(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.enableActiveMetricRuleWithOptions(request, runtime); + } + /** + * @param request - EnableEventRulesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns EnableEventRulesResponse + */ + async enableEventRulesWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.ruleNames)) { + query["RuleNames"] = request.ruleNames; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "EnableEventRules", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.EnableEventRulesResponse({})); + } + /** + * @param request - EnableEventRulesRequest + * @returns EnableEventRulesResponse + */ + async enableEventRules(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.enableEventRulesWithOptions(request, runtime); + } + /** + * Enables availability monitoring tasks. + * + * @param request - EnableHostAvailabilityRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns EnableHostAvailabilityResponse + */ + async enableHostAvailabilityWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.id)) { + query["Id"] = request.id; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "EnableHostAvailability", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.EnableHostAvailabilityResponse({})); + } + /** + * Enables availability monitoring tasks. + * + * @param request - EnableHostAvailabilityRequest + * @returns EnableHostAvailabilityResponse + */ + async enableHostAvailability(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.enableHostAvailabilityWithOptions(request, runtime); + } + /** + * Enables or disables multiple blacklist policies at a time. + * + * @param request - EnableMetricRuleBlackListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns EnableMetricRuleBlackListResponse + */ + async enableMetricRuleBlackListWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.id)) { + query["Id"] = request.id; + } + if (!$dara.isNull(request.isEnable)) { + query["IsEnable"] = request.isEnable; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "EnableMetricRuleBlackList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.EnableMetricRuleBlackListResponse({})); + } + /** + * Enables or disables multiple blacklist policies at a time. + * + * @param request - EnableMetricRuleBlackListRequest + * @returns EnableMetricRuleBlackListResponse + */ + async enableMetricRuleBlackList(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.enableMetricRuleBlackListWithOptions(request, runtime); + } + /** + * Enables alert rules. + * + * @param request - EnableMetricRulesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns EnableMetricRulesResponse + */ + async enableMetricRulesWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.ruleId)) { + query["RuleId"] = request.ruleId; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "EnableMetricRules", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.EnableMetricRulesResponse({})); + } + /** + * Enables alert rules. + * + * @param request - EnableMetricRulesRequest + * @returns EnableMetricRulesResponse + */ + async enableMetricRules(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.enableMetricRulesWithOptions(request, runtime); + } + /** + * Enables site monitoring tasks. + * + * @param request - EnableSiteMonitorsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns EnableSiteMonitorsResponse + */ + async enableSiteMonitorsWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.taskIds)) { + query["TaskIds"] = request.taskIds; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "EnableSiteMonitors", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.EnableSiteMonitorsResponse({})); + } + /** + * Enables site monitoring tasks. + * + * @param request - EnableSiteMonitorsRequest + * @returns EnableSiteMonitorsResponse + */ + async enableSiteMonitors(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.enableSiteMonitorsWithOptions(request, runtime); + } + /** + * InstallMonitoringAgent + * + * @remarks + * ## Prerequisites + * The Cloud Assistant client is installed on an ECS instance. For more information about how to install the Cloud Assistant client, see [Overview](https://help.aliyun.com/document_detail/64601.html). + * + * @param request - InstallMonitoringAgentRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns InstallMonitoringAgentResponse + */ + async installMonitoringAgentWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.force)) { + query["Force"] = request.force; + } + if (!$dara.isNull(request.installCommand)) { + query["InstallCommand"] = request.installCommand; + } + if (!$dara.isNull(request.instanceIds)) { + query["InstanceIds"] = request.instanceIds; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "InstallMonitoringAgent", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.InstallMonitoringAgentResponse({})); + } + /** + * InstallMonitoringAgent + * + * @remarks + * ## Prerequisites + * The Cloud Assistant client is installed on an ECS instance. For more information about how to install the Cloud Assistant client, see [Overview](https://help.aliyun.com/document_detail/64601.html). + * + * @param request - InstallMonitoringAgentRequest + * @returns InstallMonitoringAgentResponse + */ + async installMonitoringAgent(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.installMonitoringAgentWithOptions(request, runtime); + } + /** + * 修改应用分组内的进程监控 + * + * @param request - ModifyGroupMonitoringAgentProcessRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ModifyGroupMonitoringAgentProcessResponse + */ + async modifyGroupMonitoringAgentProcessWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.alertConfig)) { + query["AlertConfig"] = request.alertConfig; + } + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.id)) { + query["Id"] = request.id; + } + if (!$dara.isNull(request.matchExpressFilterRelation)) { + query["MatchExpressFilterRelation"] = request.matchExpressFilterRelation; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "ModifyGroupMonitoringAgentProcess", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyGroupMonitoringAgentProcessResponse({})); + } + /** + * 修改应用分组内的进程监控 + * + * @param request - ModifyGroupMonitoringAgentProcessRequest + * @returns ModifyGroupMonitoringAgentProcessResponse + */ + async modifyGroupMonitoringAgentProcess(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.modifyGroupMonitoringAgentProcessWithOptions(request, runtime); + } + /** + * Modifies an availability monitoring task. + * + * @remarks + * This topic provides an example on how to change the name of an availability monitoring task named `12345` in an application group named `123456` to `task2`. + * + * @param request - ModifyHostAvailabilityRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ModifyHostAvailabilityResponse + */ + async modifyHostAvailabilityWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.alertConfigEscalationList)) { + query["AlertConfigEscalationList"] = request.alertConfigEscalationList; + } + if (!$dara.isNull(request.alertConfigTargetList)) { + query["AlertConfigTargetList"] = request.alertConfigTargetList; + } + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.id)) { + query["Id"] = request.id; + } + if (!$dara.isNull(request.instanceList)) { + query["InstanceList"] = request.instanceList; + } + if (!$dara.isNull(request.taskName)) { + query["TaskName"] = request.taskName; + } + if (!$dara.isNull(request.taskScope)) { + query["TaskScope"] = request.taskScope; + } + if (!$dara.isNull(request.alertConfig)) { + query["AlertConfig"] = request.alertConfig; + } + if (!$dara.isNull(request.taskOption)) { + query["TaskOption"] = request.taskOption; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "ModifyHostAvailability", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyHostAvailabilityResponse({})); + } + /** + * Modifies an availability monitoring task. + * + * @remarks + * This topic provides an example on how to change the name of an availability monitoring task named `12345` in an application group named `123456` to `task2`. + * + * @param request - ModifyHostAvailabilityRequest + * @returns ModifyHostAvailabilityResponse + */ + async modifyHostAvailability(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.modifyHostAvailabilityWithOptions(request, runtime); + } + /** + * 修改非阿里云的主机显示信息 + * + * @remarks + * *** + * + * @param request - ModifyHostInfoRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ModifyHostInfoResponse + */ + async modifyHostInfoWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.hostName)) { + query["HostName"] = request.hostName; + } + if (!$dara.isNull(request.instanceId)) { + query["InstanceId"] = request.instanceId; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "ModifyHostInfo", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyHostInfoResponse({})); + } + /** + * 修改非阿里云的主机显示信息 + * + * @remarks + * *** + * + * @param request - ModifyHostInfoRequest + * @returns ModifyHostInfoResponse + */ + async modifyHostInfo(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.modifyHostInfoWithOptions(request, runtime); + } + /** + * Modifies a namespace. + * + * @remarks + * This topic provides an example on how to change the data retention period of the `aliyun` namespace to `cms.s1.2xlarge`. The response shows that the namespace is modified. + * + * @param request - ModifyHybridMonitorNamespaceRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ModifyHybridMonitorNamespaceResponse + */ + async modifyHybridMonitorNamespaceWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.description)) { + query["Description"] = request.description; + } + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + if (!$dara.isNull(request.spec)) { + query["Spec"] = request.spec; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "ModifyHybridMonitorNamespace", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyHybridMonitorNamespaceResponse({})); + } + /** + * Modifies a namespace. + * + * @remarks + * This topic provides an example on how to change the data retention period of the `aliyun` namespace to `cms.s1.2xlarge`. The response shows that the namespace is modified. + * + * @param request - ModifyHybridMonitorNamespaceRequest + * @returns ModifyHybridMonitorNamespaceResponse + */ + async modifyHybridMonitorNamespace(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.modifyHybridMonitorNamespaceWithOptions(request, runtime); + } + /** + * Modifies a Logstore group. + * + * @remarks + * In this example, a Logstore group named `Logstore_test` is modified. The Logstore of the `aliyun-project` project in the `cn-hangzhou` region is changed to `Logstore-aliyun-all`. The response shows that the Logstore group is modified. + * + * @param request - ModifyHybridMonitorSLSGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ModifyHybridMonitorSLSGroupResponse + */ + async modifyHybridMonitorSLSGroupWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.SLSGroupConfig)) { + query["SLSGroupConfig"] = request.SLSGroupConfig; + } + if (!$dara.isNull(request.SLSGroupDescription)) { + query["SLSGroupDescription"] = request.SLSGroupDescription; + } + if (!$dara.isNull(request.SLSGroupName)) { + query["SLSGroupName"] = request.SLSGroupName; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "ModifyHybridMonitorSLSGroup", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyHybridMonitorSLSGroupResponse({})); + } + /** + * Modifies a Logstore group. + * + * @remarks + * In this example, a Logstore group named `Logstore_test` is modified. The Logstore of the `aliyun-project` project in the `cn-hangzhou` region is changed to `Logstore-aliyun-all`. The response shows that the Logstore group is modified. + * + * @param request - ModifyHybridMonitorSLSGroupRequest + * @returns ModifyHybridMonitorSLSGroupResponse + */ + async modifyHybridMonitorSLSGroup(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.modifyHybridMonitorSLSGroupWithOptions(request, runtime); + } + /** + * Modifies a metric for the logs that are imported from Log Service. + * + * @remarks + * This topic provides an example on how to change the collection period of a metric import task whose ID is `36****` to `15` seconds. The task is used to monitor the logs that are imported from Log Service. The returned result indicates that the metric is modified. + * + * @param request - ModifyHybridMonitorTaskRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ModifyHybridMonitorTaskResponse + */ + async modifyHybridMonitorTaskWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.attachLabels)) { + query["AttachLabels"] = request.attachLabels; + } + if (!$dara.isNull(request.collectInterval)) { + query["CollectInterval"] = request.collectInterval; + } + if (!$dara.isNull(request.description)) { + query["Description"] = request.description; + } + if (!$dara.isNull(request.SLSProcessConfig)) { + query["SLSProcessConfig"] = request.SLSProcessConfig; + } + if (!$dara.isNull(request.taskId)) { + query["TaskId"] = request.taskId; + } + if (!$dara.isNull(request.taskName)) { + query["TaskName"] = request.taskName; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "ModifyHybridMonitorTask", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyHybridMonitorTaskResponse({})); + } + /** + * Modifies a metric for the logs that are imported from Log Service. + * + * @remarks + * This topic provides an example on how to change the collection period of a metric import task whose ID is `36****` to `15` seconds. The task is used to monitor the logs that are imported from Log Service. The returned result indicates that the metric is modified. + * + * @param request - ModifyHybridMonitorTaskRequest + * @returns ModifyHybridMonitorTaskResponse + */ + async modifyHybridMonitorTask(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.modifyHybridMonitorTaskWithOptions(request, runtime); + } + /** + * Modifies a blacklist policy. + * + * @param request - ModifyMetricRuleBlackListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ModifyMetricRuleBlackListResponse + */ + async modifyMetricRuleBlackListWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.category)) { + query["Category"] = request.category; + } + if (!$dara.isNull(request.effectiveTime)) { + query["EffectiveTime"] = request.effectiveTime; + } + if (!$dara.isNull(request.enableEndTime)) { + query["EnableEndTime"] = request.enableEndTime; + } + if (!$dara.isNull(request.enableStartTime)) { + query["EnableStartTime"] = request.enableStartTime; + } + if (!$dara.isNull(request.id)) { + query["Id"] = request.id; + } + if (!$dara.isNull(request.instances)) { + query["Instances"] = request.instances; + } + if (!$dara.isNull(request.metrics)) { + query["Metrics"] = request.metrics; + } + if (!$dara.isNull(request.name)) { + query["Name"] = request.name; + } + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + if (!$dara.isNull(request.scopeType)) { + query["ScopeType"] = request.scopeType; + } + if (!$dara.isNull(request.scopeValue)) { + query["ScopeValue"] = request.scopeValue; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "ModifyMetricRuleBlackList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyMetricRuleBlackListResponse({})); + } + /** + * Modifies a blacklist policy. + * + * @param request - ModifyMetricRuleBlackListRequest + * @returns ModifyMetricRuleBlackListResponse + */ + async modifyMetricRuleBlackList(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.modifyMetricRuleBlackListWithOptions(request, runtime); + } + /** + * Modifies an alert template. + * + * @remarks + * This topic provides an example on how to modify an alert template whose version is `1` and ID is `123456`. The alert level is changed to `Critical`. The statistical method is changed to `Average`. The alert threshold comparator is changed to `GreaterThanOrEqualToThreshold`. The alert threshold is changed to `90`. The number of alert retries is changed to `3`. The response shows that the alert template is modified. + * + * @param request - ModifyMetricRuleTemplateRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ModifyMetricRuleTemplateResponse + */ + async modifyMetricRuleTemplateWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.alertTemplates)) { + query["AlertTemplates"] = request.alertTemplates; + } + if (!$dara.isNull(request.description)) { + query["Description"] = request.description; + } + if (!$dara.isNull(request.name)) { + query["Name"] = request.name; + } + if (!$dara.isNull(request.restVersion)) { + query["RestVersion"] = request.restVersion; + } + if (!$dara.isNull(request.templateId)) { + query["TemplateId"] = request.templateId; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "ModifyMetricRuleTemplate", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyMetricRuleTemplateResponse({})); + } + /** + * Modifies an alert template. + * + * @remarks + * This topic provides an example on how to modify an alert template whose version is `1` and ID is `123456`. The alert level is changed to `Critical`. The statistical method is changed to `Average`. The alert threshold comparator is changed to `GreaterThanOrEqualToThreshold`. The alert threshold is changed to `90`. The number of alert retries is changed to `3`. The response shows that the alert template is modified. + * + * @param request - ModifyMetricRuleTemplateRequest + * @returns ModifyMetricRuleTemplateResponse + */ + async modifyMetricRuleTemplate(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.modifyMetricRuleTemplateWithOptions(request, runtime); + } + /** + * 修改应用分组 + * + * @param request - ModifyMonitorGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ModifyMonitorGroupResponse + */ + async modifyMonitorGroupWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.contactGroups)) { + query["ContactGroups"] = request.contactGroups; + } + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.groupName)) { + query["GroupName"] = request.groupName; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "ModifyMonitorGroup", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyMonitorGroupResponse({})); + } + /** + * 修改应用分组 + * + * @param request - ModifyMonitorGroupRequest + * @returns ModifyMonitorGroupResponse + */ + async modifyMonitorGroup(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.modifyMonitorGroupWithOptions(request, runtime); + } + /** + * 修改应用分组中的资源 + * + * @param request - ModifyMonitorGroupInstancesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ModifyMonitorGroupInstancesResponse + */ + async modifyMonitorGroupInstancesWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.instances)) { + query["Instances"] = request.instances; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "ModifyMonitorGroupInstances", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyMonitorGroupInstancesResponse({})); + } + /** + * 修改应用分组中的资源 + * + * @param request - ModifyMonitorGroupInstancesRequest + * @returns ModifyMonitorGroupInstancesResponse + */ + async modifyMonitorGroupInstances(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.modifyMonitorGroupInstancesWithOptions(request, runtime); + } + /** + * Modifies a site monitoring task. + * + * @remarks + * The number of site monitoring tasks. + * + * @param request - ModifySiteMonitorRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ModifySiteMonitorResponse + */ + async modifySiteMonitorWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.address)) { + query["Address"] = request.address; + } + if (!$dara.isNull(request.alertIds)) { + query["AlertIds"] = request.alertIds; + } + if (!$dara.isNull(request.customSchedule)) { + query["CustomSchedule"] = request.customSchedule; + } + if (!$dara.isNull(request.interval)) { + query["Interval"] = request.interval; + } + if (!$dara.isNull(request.intervalUnit)) { + query["IntervalUnit"] = request.intervalUnit; + } + if (!$dara.isNull(request.ispCities)) { + query["IspCities"] = request.ispCities; + } + if (!$dara.isNull(request.optionsJson)) { + query["OptionsJson"] = request.optionsJson; + } + if (!$dara.isNull(request.taskId)) { + query["TaskId"] = request.taskId; + } + if (!$dara.isNull(request.taskName)) { + query["TaskName"] = request.taskName; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "ModifySiteMonitor", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifySiteMonitorResponse({})); + } + /** + * Modifies a site monitoring task. + * + * @remarks + * The number of site monitoring tasks. + * + * @param request - ModifySiteMonitorRequest + * @returns ModifySiteMonitorResponse + */ + async modifySiteMonitor(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.modifySiteMonitorWithOptions(request, runtime); + } + /** + * Creates or modifies an alert contact. + * + * @param request - PutContactRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutContactResponse + */ + async putContactWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.contactName)) { + query["ContactName"] = request.contactName; + } + if (!$dara.isNull(request.describe)) { + query["Describe"] = request.describe; + } + if (!$dara.isNull(request.lang)) { + query["Lang"] = request.lang; + } + if (!$dara.isNull(request.channels)) { + query["Channels"] = request.channels; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "PutContact", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.PutContactResponse({})); + } + /** + * Creates or modifies an alert contact. + * + * @param request - PutContactRequest + * @returns PutContactResponse + */ + async putContact(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.putContactWithOptions(request, runtime); + } + /** + * Creates or modifies an alert contact group. + * + * @remarks + * This topic provides an example on how to create an alert contact group named `ECS_Group`. + * + * @param request - PutContactGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutContactGroupResponse + */ + async putContactGroupWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.contactGroupName)) { + query["ContactGroupName"] = request.contactGroupName; + } + if (!$dara.isNull(request.contactNames)) { + query["ContactNames"] = request.contactNames; + } + if (!$dara.isNull(request.describe)) { + query["Describe"] = request.describe; + } + if (!$dara.isNull(request.enableSubscribed)) { + query["EnableSubscribed"] = request.enableSubscribed; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "PutContactGroup", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.PutContactGroupResponse({})); + } + /** + * Creates or modifies an alert contact group. + * + * @remarks + * This topic provides an example on how to create an alert contact group named `ECS_Group`. + * + * @param request - PutContactGroupRequest + * @returns PutContactGroupResponse + */ + async putContactGroup(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.putContactGroupWithOptions(request, runtime); + } + /** + * Reports custom events. + * + * @param request - PutCustomEventRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutCustomEventResponse + */ + async putCustomEventWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.eventInfo)) { + query["EventInfo"] = request.eventInfo; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "PutCustomEvent", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.PutCustomEventResponse({})); + } + /** + * Reports custom events. + * + * @param request - PutCustomEventRequest + * @returns PutCustomEventResponse + */ + async putCustomEvent(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.putCustomEventWithOptions(request, runtime); + } + /** + * @remarks + * Before you call this operation, call the PutCustomEvent operation to report the monitoring data of the custom event. For more information, see [PutCustomEvent](https://help.aliyun.com/document_detail/115012.html). + * + * @param request - PutCustomEventRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutCustomEventRuleResponse + */ + async putCustomEventRuleWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.contactGroups)) { + query["ContactGroups"] = request.contactGroups; + } + if (!$dara.isNull(request.effectiveInterval)) { + query["EffectiveInterval"] = request.effectiveInterval; + } + if (!$dara.isNull(request.emailSubject)) { + query["EmailSubject"] = request.emailSubject; + } + if (!$dara.isNull(request.eventName)) { + query["EventName"] = request.eventName; + } + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.level)) { + query["Level"] = request.level; + } + if (!$dara.isNull(request.period)) { + query["Period"] = request.period; + } + if (!$dara.isNull(request.ruleId)) { + query["RuleId"] = request.ruleId; + } + if (!$dara.isNull(request.ruleName)) { + query["RuleName"] = request.ruleName; + } + if (!$dara.isNull(request.threshold)) { + query["Threshold"] = request.threshold; + } + if (!$dara.isNull(request.webhook)) { + query["Webhook"] = request.webhook; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "PutCustomEventRule", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.PutCustomEventRuleResponse({})); + } + /** + * @remarks + * Before you call this operation, call the PutCustomEvent operation to report the monitoring data of the custom event. For more information, see [PutCustomEvent](https://help.aliyun.com/document_detail/115012.html). + * + * @param request - PutCustomEventRuleRequest + * @returns PutCustomEventRuleResponse + */ + async putCustomEventRule(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.putCustomEventRuleWithOptions(request, runtime); + } + /** + * Reports monitoring data. + * + * @remarks + * > We recommend that you call the [PutHybridMonitorMetricData](https://help.aliyun.com/document_detail/383455.html) operation of Hybrid Cloud Monitoring to report monitoring data. + * + * @param request - PutCustomMetricRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutCustomMetricResponse + */ + async putCustomMetricWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.metricList)) { + query["MetricList"] = request.metricList; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "PutCustomMetric", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.PutCustomMetricResponse({})); + } + /** + * Reports monitoring data. + * + * @remarks + * > We recommend that you call the [PutHybridMonitorMetricData](https://help.aliyun.com/document_detail/383455.html) operation of Hybrid Cloud Monitoring to report monitoring data. + * + * @param request - PutCustomMetricRequest + * @returns PutCustomMetricResponse + */ + async putCustomMetric(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.putCustomMetricWithOptions(request, runtime); + } + /** + * Creates a custom alert rule. + * + * @remarks + * Before you call this operation, call the PutCustomMetric operation to report custom monitoring data. For more information, see [PutCustomMetric](https://help.aliyun.com/document_detail/115004.html). + * + * @param request - PutCustomMetricRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutCustomMetricRuleResponse + */ + async putCustomMetricRuleWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.comparisonOperator)) { + query["ComparisonOperator"] = request.comparisonOperator; + } + if (!$dara.isNull(request.contactGroups)) { + query["ContactGroups"] = request.contactGroups; + } + if (!$dara.isNull(request.effectiveInterval)) { + query["EffectiveInterval"] = request.effectiveInterval; + } + if (!$dara.isNull(request.emailSubject)) { + query["EmailSubject"] = request.emailSubject; + } + if (!$dara.isNull(request.evaluationCount)) { + query["EvaluationCount"] = request.evaluationCount; + } + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.level)) { + query["Level"] = request.level; + } + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + if (!$dara.isNull(request.period)) { + query["Period"] = request.period; + } + if (!$dara.isNull(request.resources)) { + query["Resources"] = request.resources; + } + if (!$dara.isNull(request.ruleId)) { + query["RuleId"] = request.ruleId; + } + if (!$dara.isNull(request.ruleName)) { + query["RuleName"] = request.ruleName; + } + if (!$dara.isNull(request.silenceTime)) { + query["SilenceTime"] = request.silenceTime; + } + if (!$dara.isNull(request.statistics)) { + query["Statistics"] = request.statistics; + } + if (!$dara.isNull(request.threshold)) { + query["Threshold"] = request.threshold; + } + if (!$dara.isNull(request.webhook)) { + query["Webhook"] = request.webhook; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "PutCustomMetricRule", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.PutCustomMetricRuleResponse({})); + } + /** + * Creates a custom alert rule. + * + * @remarks + * Before you call this operation, call the PutCustomMetric operation to report custom monitoring data. For more information, see [PutCustomMetric](https://help.aliyun.com/document_detail/115004.html). + * + * @param request - PutCustomMetricRuleRequest + * @returns PutCustomMetricRuleResponse + */ + async putCustomMetricRule(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.putCustomMetricRuleWithOptions(request, runtime); + } + /** + * 创建或者修改事件监控 + * + * @remarks + * If the specified rule name does not exist, an event-triggered alert rule is created. If the specified rule name exists, the specified event-triggered alert rule is modified. + * In this example, the `myRuleName` alert rule is created for the `ecs` cloud service. + * + * @param request - PutEventRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutEventRuleResponse + */ + async putEventRuleWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.description)) { + query["Description"] = request.description; + } + if (!$dara.isNull(request.eventPattern)) { + query["EventPattern"] = request.eventPattern; + } + if (!$dara.isNull(request.eventType)) { + query["EventType"] = request.eventType; + } + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.ruleName)) { + query["RuleName"] = request.ruleName; + } + if (!$dara.isNull(request.silenceTime)) { + query["SilenceTime"] = request.silenceTime; + } + if (!$dara.isNull(request.state)) { + query["State"] = request.state; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "PutEventRule", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.PutEventRuleResponse({})); + } + /** + * 创建或者修改事件监控 + * + * @remarks + * If the specified rule name does not exist, an event-triggered alert rule is created. If the specified rule name exists, the specified event-triggered alert rule is modified. + * In this example, the `myRuleName` alert rule is created for the `ecs` cloud service. + * + * @param request - PutEventRuleRequest + * @returns PutEventRuleResponse + */ + async putEventRule(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.putEventRuleWithOptions(request, runtime); + } + /** + * Adds or modifies the push channels of an event-triggered alert rule. + * + * @param request - PutEventRuleTargetsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutEventRuleTargetsResponse + */ + async putEventRuleTargetsWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.contactParameters)) { + query["ContactParameters"] = request.contactParameters; + } + if (!$dara.isNull(request.fcParameters)) { + query["FcParameters"] = request.fcParameters; + } + if (!$dara.isNull(request.mnsParameters)) { + query["MnsParameters"] = request.mnsParameters; + } + if (!$dara.isNull(request.openApiParameters)) { + query["OpenApiParameters"] = request.openApiParameters; + } + if (!$dara.isNull(request.ruleName)) { + query["RuleName"] = request.ruleName; + } + if (!$dara.isNull(request.slsParameters)) { + query["SlsParameters"] = request.slsParameters; + } + if (!$dara.isNull(request.webhookParameters)) { + query["WebhookParameters"] = request.webhookParameters; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "PutEventRuleTargets", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.PutEventRuleTargetsResponse({})); + } + /** + * Adds or modifies the push channels of an event-triggered alert rule. + * + * @param request - PutEventRuleTargetsRequest + * @returns PutEventRuleTargetsResponse + */ + async putEventRuleTargets(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.putEventRuleTargetsWithOptions(request, runtime); + } + /** + * Creates or modifies a configuration set for exporting monitoring data. + * + * @remarks + * > The monitoring data can be exported only to Log Service. More services will be supported in the future. + * + * @param request - PutExporterOutputRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutExporterOutputResponse + */ + async putExporterOutputWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.configJson)) { + query["ConfigJson"] = request.configJson; + } + if (!$dara.isNull(request.desc)) { + query["Desc"] = request.desc; + } + if (!$dara.isNull(request.destName)) { + query["DestName"] = request.destName; + } + if (!$dara.isNull(request.destType)) { + query["DestType"] = request.destType; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "PutExporterOutput", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.PutExporterOutputResponse({})); + } + /** + * Creates or modifies a configuration set for exporting monitoring data. + * + * @remarks + * > The monitoring data can be exported only to Log Service. More services will be supported in the future. + * + * @param request - PutExporterOutputRequest + * @returns PutExporterOutputResponse + */ + async putExporterOutput(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.putExporterOutputWithOptions(request, runtime); + } + /** + * Creates or modifies a data export rule. + * + * @param request - PutExporterRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutExporterRuleResponse + */ + async putExporterRuleWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.describe)) { + query["Describe"] = request.describe; + } + if (!$dara.isNull(request.dstNames)) { + query["DstNames"] = request.dstNames; + } + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + if (!$dara.isNull(request.ruleName)) { + query["RuleName"] = request.ruleName; + } + if (!$dara.isNull(request.targetWindows)) { + query["TargetWindows"] = request.targetWindows; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "PutExporterRule", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.PutExporterRuleResponse({})); + } + /** + * Creates or modifies a data export rule. + * + * @param request - PutExporterRuleRequest + * @returns PutExporterRuleResponse + */ + async putExporterRule(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.putExporterRuleWithOptions(request, runtime); + } + /** + * Creates or modifies an alert rule for an application group. + * + * @remarks + * This topic provides an example on how to create an alert rule for the `cpu_total` metric of Elastic Compute Service (ECS) in the `17285****` application group. The ID of the alert rule is `123456`. The name of the alert rule is `Rule_test`. The alert level is `Critical`. The statistical method is `Average`. The alert threshold comparator is `GreaterThanOrEqualToThreshold`. The alert threshold is `90`. The number of alert retries is `3`. The returned result shows that the alert rule is created and the alert rule ID is `123456`. + * + * @param request - PutGroupMetricRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutGroupMetricRuleResponse + */ + async putGroupMetricRuleWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.category)) { + query["Category"] = request.category; + } + if (!$dara.isNull(request.contactGroups)) { + query["ContactGroups"] = request.contactGroups; + } + if (!$dara.isNull(request.dimensions)) { + query["Dimensions"] = request.dimensions; + } + if (!$dara.isNull(request.effectiveInterval)) { + query["EffectiveInterval"] = request.effectiveInterval; + } + if (!$dara.isNull(request.emailSubject)) { + query["EmailSubject"] = request.emailSubject; + } + if (!$dara.isNull(request.extraDimensionJson)) { + query["ExtraDimensionJson"] = request.extraDimensionJson; + } + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.interval)) { + query["Interval"] = request.interval; + } + if (!$dara.isNull(request.labels)) { + query["Labels"] = request.labels; + } + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + if (!$dara.isNull(request.noDataPolicy)) { + query["NoDataPolicy"] = request.noDataPolicy; + } + if (!$dara.isNull(request.noEffectiveInterval)) { + query["NoEffectiveInterval"] = request.noEffectiveInterval; + } + if (!$dara.isNull(request.options)) { + query["Options"] = request.options; + } + if (!$dara.isNull(request.period)) { + query["Period"] = request.period; + } + if (!$dara.isNull(request.ruleId)) { + query["RuleId"] = request.ruleId; + } + if (!$dara.isNull(request.ruleName)) { + query["RuleName"] = request.ruleName; + } + if (!$dara.isNull(request.silenceTime)) { + query["SilenceTime"] = request.silenceTime; + } + if (!$dara.isNull(request.webhook)) { + query["Webhook"] = request.webhook; + } + if (!$dara.isNull(request.escalations)) { + query["Escalations"] = request.escalations; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "PutGroupMetricRule", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.PutGroupMetricRuleResponse({})); + } + /** + * Creates or modifies an alert rule for an application group. + * + * @remarks + * This topic provides an example on how to create an alert rule for the `cpu_total` metric of Elastic Compute Service (ECS) in the `17285****` application group. The ID of the alert rule is `123456`. The name of the alert rule is `Rule_test`. The alert level is `Critical`. The statistical method is `Average`. The alert threshold comparator is `GreaterThanOrEqualToThreshold`. The alert threshold is `90`. The number of alert retries is `3`. The returned result shows that the alert rule is created and the alert rule ID is `123456`. + * + * @param request - PutGroupMetricRuleRequest + * @returns PutGroupMetricRuleResponse + */ + async putGroupMetricRule(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.putGroupMetricRuleWithOptions(request, runtime); + } + /** + * Imports the monitoring data of a metric to a namespace of Hybrid Cloud Monitoring. + * + * @remarks + * ## [](#)Prerequisites + * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](https://help.aliyun.com/document_detail/250773.html). + * ## [](#)Limits + * The size of the monitoring data that you import at a time must be less than or equal to 1 MB. + * ## [](#)Operation description + * This topic provides an example on how to import the monitoring data of the `CPU_Usage` metric to the `default-aliyun` namespace of Hybrid Cloud Monitoring. + * + * @param request - PutHybridMonitorMetricDataRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutHybridMonitorMetricDataResponse + */ + async putHybridMonitorMetricDataWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.metricList)) { + query["MetricList"] = request.metricList; + } + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "PutHybridMonitorMetricData", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.PutHybridMonitorMetricDataResponse({})); + } + /** + * Imports the monitoring data of a metric to a namespace of Hybrid Cloud Monitoring. + * + * @remarks + * ## [](#)Prerequisites + * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](https://help.aliyun.com/document_detail/250773.html). + * ## [](#)Limits + * The size of the monitoring data that you import at a time must be less than or equal to 1 MB. + * ## [](#)Operation description + * This topic provides an example on how to import the monitoring data of the `CPU_Usage` metric to the `default-aliyun` namespace of Hybrid Cloud Monitoring. + * + * @param request - PutHybridMonitorMetricDataRequest + * @returns PutHybridMonitorMetricDataResponse + */ + async putHybridMonitorMetricData(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.putHybridMonitorMetricDataWithOptions(request, runtime); + } + /** + * Creates or modifies a log monitoring metric. + * + * @remarks + * In the example of this topic, the `cpu_total` log monitoring metric is created. The response shows that the log monitoring metric is created and the metric ID is `16****`. + * + * @param request - PutLogMonitorRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutLogMonitorResponse + */ + async putLogMonitorWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.aggregates)) { + query["Aggregates"] = request.aggregates; + } + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.groupbys)) { + query["Groupbys"] = request.groupbys; + } + if (!$dara.isNull(request.logId)) { + query["LogId"] = request.logId; + } + if (!$dara.isNull(request.metricExpress)) { + query["MetricExpress"] = request.metricExpress; + } + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + if (!$dara.isNull(request.slsLogstore)) { + query["SlsLogstore"] = request.slsLogstore; + } + if (!$dara.isNull(request.slsProject)) { + query["SlsProject"] = request.slsProject; + } + if (!$dara.isNull(request.slsRegionId)) { + query["SlsRegionId"] = request.slsRegionId; + } + if (!$dara.isNull(request.tumblingwindows)) { + query["Tumblingwindows"] = request.tumblingwindows; + } + if (!$dara.isNull(request.unit)) { + query["Unit"] = request.unit; + } + if (!$dara.isNull(request.valueFilter)) { + query["ValueFilter"] = request.valueFilter; + } + if (!$dara.isNull(request.valueFilterRelation)) { + query["ValueFilterRelation"] = request.valueFilterRelation; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "PutLogMonitor", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.PutLogMonitorResponse({})); + } + /** + * Creates or modifies a log monitoring metric. + * + * @remarks + * In the example of this topic, the `cpu_total` log monitoring metric is created. The response shows that the log monitoring metric is created and the metric ID is `16****`. + * + * @param request - PutLogMonitorRequest + * @returns PutLogMonitorResponse + */ + async putLogMonitor(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.putLogMonitorWithOptions(request, runtime); + } + /** + * Adds or modifies the push channels of an alert rule. + * + * @remarks + * # [](#) + * This topic provides an example on how to associate an alert rule with a resource. In this example, the alert rule is `ae06917_75a8c43178ab66****`, the resource is `acs:mns:cn-hangzhou:120886317861****:/queues/test/message`, and the ID of the resource for which alerts are triggered is `1`. The response indicates that the resource is associated with the specified alert rule. + * + * @param request - PutMetricRuleTargetsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutMetricRuleTargetsResponse + */ + async putMetricRuleTargetsWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.ruleId)) { + query["RuleId"] = request.ruleId; + } + if (!$dara.isNull(request.targets)) { + query["Targets"] = request.targets; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "PutMetricRuleTargets", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.PutMetricRuleTargetsResponse({})); + } + /** + * Adds or modifies the push channels of an alert rule. + * + * @remarks + * # [](#) + * This topic provides an example on how to associate an alert rule with a resource. In this example, the alert rule is `ae06917_75a8c43178ab66****`, the resource is `acs:mns:cn-hangzhou:120886317861****:/queues/test/message`, and the ID of the resource for which alerts are triggered is `1`. The response indicates that the resource is associated with the specified alert rule. + * + * @param request - PutMetricRuleTargetsRequest + * @returns PutMetricRuleTargetsResponse + */ + async putMetricRuleTargets(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.putMetricRuleTargetsWithOptions(request, runtime); + } + /** + * Creates or modifies an alert rule to dynamically add instances that meet the rule to an application group. + * + * @param request - PutMonitorGroupDynamicRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutMonitorGroupDynamicRuleResponse + */ + async putMonitorGroupDynamicRuleWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.groupRules)) { + query["GroupRules"] = request.groupRules; + } + if (!$dara.isNull(request.isAsync)) { + query["IsAsync"] = request.isAsync; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "PutMonitorGroupDynamicRule", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.PutMonitorGroupDynamicRuleResponse({})); + } + /** + * Creates or modifies an alert rule to dynamically add instances that meet the rule to an application group. + * + * @param request - PutMonitorGroupDynamicRuleRequest + * @returns PutMonitorGroupDynamicRuleResponse + */ + async putMonitorGroupDynamicRule(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.putMonitorGroupDynamicRuleWithOptions(request, runtime); + } + /** + * Configures global settings for the CloudMonitor agent. + * + * @param request - PutMonitoringConfigRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutMonitoringConfigResponse + */ + async putMonitoringConfigWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.autoInstall)) { + query["AutoInstall"] = request.autoInstall; + } + if (!$dara.isNull(request.enableInstallAgentNewECS)) { + query["EnableInstallAgentNewECS"] = request.enableInstallAgentNewECS; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "PutMonitoringConfig", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.PutMonitoringConfigResponse({})); + } + /** + * Configures global settings for the CloudMonitor agent. + * + * @param request - PutMonitoringConfigRequest + * @returns PutMonitoringConfigResponse + */ + async putMonitoringConfig(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.putMonitoringConfigWithOptions(request, runtime); + } + /** + * Configures an alert rule. + * + * @remarks + * This topic provides an example on how to create a threshold-triggered alert rule for the `cpu_total` metric of an Elastic Compute Service (ECS) instance whose ID is `i-uf6j91r34rnwawoo****`. The namespace of ECS metrics is `acs_ecs_dashboard`. The alert contact group of the alert rule is `ECS_Group`. The name of the alert rule is `test123`. The ID of the alert rule is `a151cd6023eacee2f0978e03863cc1697c89508****`. The statistical method for Critical-level alerts is `Average`. The comparison operator for Critical-level alerts is `GreaterThanOrEqualToThreshold`. The threshold for Critical-level alerts is `90`. The consecutive number of times for which the metric value meets the trigger condition before a Critical-level alert is triggered is `3`. + * > Statistics verification was added on August 15, 2024. Only the statistical value of the corresponding metric can be set for the Statistics parameter. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://www.alibabacloud.com/help/en/cms/support/appendix-1-metrics). + * + * @param tmpReq - PutResourceMetricRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutResourceMetricRuleResponse + */ + async putResourceMetricRuleWithOptions(tmpReq, runtime) { + tmpReq.validate(); + let request = new $_model.PutResourceMetricRuleShrinkRequest({}); + openapi_core_2.OpenApiUtil.convert(tmpReq, request); + if (!$dara.isNull(tmpReq.compositeExpression)) { + request.compositeExpressionShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.compositeExpression, "CompositeExpression", "json"); + } + if (!$dara.isNull(tmpReq.prometheus)) { + request.prometheusShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.prometheus, "Prometheus", "json"); + } + let query = {}; + if (!$dara.isNull(request.compositeExpressionShrink)) { + query["CompositeExpression"] = request.compositeExpressionShrink; + } + if (!$dara.isNull(request.contactGroups)) { + query["ContactGroups"] = request.contactGroups; + } + if (!$dara.isNull(request.effectiveInterval)) { + query["EffectiveInterval"] = request.effectiveInterval; + } + if (!$dara.isNull(request.emailSubject)) { + query["EmailSubject"] = request.emailSubject; + } + if (!$dara.isNull(request.interval)) { + query["Interval"] = request.interval; + } + if (!$dara.isNull(request.labels)) { + query["Labels"] = request.labels; + } + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + if (!$dara.isNull(request.noDataPolicy)) { + query["NoDataPolicy"] = request.noDataPolicy; + } + if (!$dara.isNull(request.noEffectiveInterval)) { + query["NoEffectiveInterval"] = request.noEffectiveInterval; + } + if (!$dara.isNull(request.period)) { + query["Period"] = request.period; + } + if (!$dara.isNull(request.prometheusShrink)) { + query["Prometheus"] = request.prometheusShrink; + } + if (!$dara.isNull(request.resources)) { + query["Resources"] = request.resources; + } + if (!$dara.isNull(request.ruleId)) { + query["RuleId"] = request.ruleId; + } + if (!$dara.isNull(request.ruleName)) { + query["RuleName"] = request.ruleName; + } + if (!$dara.isNull(request.silenceTime)) { + query["SilenceTime"] = request.silenceTime; + } + if (!$dara.isNull(request.webhook)) { + query["Webhook"] = request.webhook; + } + if (!$dara.isNull(request.escalations)) { + query["Escalations"] = request.escalations; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "PutResourceMetricRule", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.PutResourceMetricRuleResponse({})); + } + /** + * Configures an alert rule. + * + * @remarks + * This topic provides an example on how to create a threshold-triggered alert rule for the `cpu_total` metric of an Elastic Compute Service (ECS) instance whose ID is `i-uf6j91r34rnwawoo****`. The namespace of ECS metrics is `acs_ecs_dashboard`. The alert contact group of the alert rule is `ECS_Group`. The name of the alert rule is `test123`. The ID of the alert rule is `a151cd6023eacee2f0978e03863cc1697c89508****`. The statistical method for Critical-level alerts is `Average`. The comparison operator for Critical-level alerts is `GreaterThanOrEqualToThreshold`. The threshold for Critical-level alerts is `90`. The consecutive number of times for which the metric value meets the trigger condition before a Critical-level alert is triggered is `3`. + * > Statistics verification was added on August 15, 2024. Only the statistical value of the corresponding metric can be set for the Statistics parameter. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://www.alibabacloud.com/help/en/cms/support/appendix-1-metrics). + * + * @param request - PutResourceMetricRuleRequest + * @returns PutResourceMetricRuleResponse + */ + async putResourceMetricRule(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.putResourceMetricRuleWithOptions(request, runtime); + } + /** + * Creates multiple alert rules for the specified metric of a specified resource. + * + * @remarks + * This topic provides an example on how to create a threshold-triggered alert rule for the `cpu_total` metric of an Elastic Compute Service (ECS) instance whose ID is `i-uf6j91r34rnwawoo****`. The namespace of ECS metrics is `acs_ecs_dashboard`. The alert contact group of the alert rule is `ECS_Group`. The name of the alert rule is `test123`. The ID of the alert rule is `a151cd6023eacee2f0978e03863cc1697c89508****`. The statistical method for Critical-level alerts is `Average`. The comparison operator for Critical-level alerts is `GreaterThanOrEqualToThreshold`. The threshold for Critical-level alerts is `90`. The consecutive number of times for which the metric value meets the trigger condition before a Critical-level alert is triggered is `3`. + * > Statistics verification was added on August 15, 2024. Only the statistical value of the corresponding metric can be set for the Statistics parameter. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://www.alibabacloud.com/help/en/cms/support/appendix-1-metrics). + * + * @param request - PutResourceMetricRulesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutResourceMetricRulesResponse + */ + async putResourceMetricRulesWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.rules)) { + query["Rules"] = request.rules; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "PutResourceMetricRules", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.PutResourceMetricRulesResponse({})); + } + /** + * Creates multiple alert rules for the specified metric of a specified resource. + * + * @remarks + * This topic provides an example on how to create a threshold-triggered alert rule for the `cpu_total` metric of an Elastic Compute Service (ECS) instance whose ID is `i-uf6j91r34rnwawoo****`. The namespace of ECS metrics is `acs_ecs_dashboard`. The alert contact group of the alert rule is `ECS_Group`. The name of the alert rule is `test123`. The ID of the alert rule is `a151cd6023eacee2f0978e03863cc1697c89508****`. The statistical method for Critical-level alerts is `Average`. The comparison operator for Critical-level alerts is `GreaterThanOrEqualToThreshold`. The threshold for Critical-level alerts is `90`. The consecutive number of times for which the metric value meets the trigger condition before a Critical-level alert is triggered is `3`. + * > Statistics verification was added on August 15, 2024. Only the statistical value of the corresponding metric can be set for the Statistics parameter. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://www.alibabacloud.com/help/en/cms/support/appendix-1-metrics). + * + * @param request - PutResourceMetricRulesRequest + * @returns PutResourceMetricRulesResponse + */ + async putResourceMetricRules(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.putResourceMetricRulesWithOptions(request, runtime); + } + /** + * Deletes tags. + * + * @param request - RemoveTagsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns RemoveTagsResponse + */ + async removeTagsWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.groupIds)) { + query["GroupIds"] = request.groupIds; + } + if (!$dara.isNull(request.tag)) { + query["Tag"] = request.tag; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "RemoveTags", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.RemoveTagsResponse({})); + } + /** + * Deletes tags. + * + * @param request - RemoveTagsRequest + * @returns RemoveTagsResponse + */ + async removeTags(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.removeTagsWithOptions(request, runtime); + } + /** + * Debugs a system event of an Alibaba Cloud service. + * + * @remarks + * This operation is used to test whether a system event can be triggered as expected. You can call this operation to simulate a system event and check whether an expected response is returned after the system event triggers an alert. + * + * @param request - SendDryRunSystemEventRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns SendDryRunSystemEventResponse + */ + async sendDryRunSystemEventWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.eventContent)) { + query["EventContent"] = request.eventContent; + } + if (!$dara.isNull(request.eventName)) { + query["EventName"] = request.eventName; + } + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + if (!$dara.isNull(request.product)) { + query["Product"] = request.product; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "SendDryRunSystemEvent", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.SendDryRunSystemEventResponse({})); + } + /** + * Debugs a system event of an Alibaba Cloud service. + * + * @remarks + * This operation is used to test whether a system event can be triggered as expected. You can call this operation to simulate a system event and check whether an expected response is returned after the system event triggers an alert. + * + * @param request - SendDryRunSystemEventRequest + * @returns SendDryRunSystemEventResponse + */ + async sendDryRunSystemEvent(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.sendDryRunSystemEventWithOptions(request, runtime); + } + /** + * Uninstalls the CloudMonitor agent from a third-party host. + * + * @remarks + * > This API operation is not applicable to Elastic Compute Service (ECS) instances. To uninstall the agent from an ECS instance, see [Install and uninstall the CloudMonitor agent](https://help.aliyun.com/document_detail/183482.html). + * + * @param request - UninstallMonitoringAgentRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns UninstallMonitoringAgentResponse + */ + async uninstallMonitoringAgentWithOptions(request, runtime) { + request.validate(); + let query = {}; + if (!$dara.isNull(request.instanceId)) { + query["InstanceId"] = request.instanceId; + } + let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({ + query: openapi_core_2.OpenApiUtil.query(query), + }); + let params = new openapi_core_2.$OpenApiUtil.Params({ + action: "UninstallMonitoringAgent", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast(await this.callApi(params, req, runtime), new $_model.UninstallMonitoringAgentResponse({})); + } + /** + * Uninstalls the CloudMonitor agent from a third-party host. + * + * @remarks + * > This API operation is not applicable to Elastic Compute Service (ECS) instances. To uninstall the agent from an ECS instance, see [Install and uninstall the CloudMonitor agent](https://help.aliyun.com/document_detail/183482.html). + * + * @param request - UninstallMonitoringAgentRequest + * @returns UninstallMonitoringAgentResponse + */ + async uninstallMonitoringAgent(request) { + let runtime = new $dara.RuntimeOptions({}); + return await this.uninstallMonitoringAgentWithOptions(request, runtime); + } +} +exports.default = Client; +//# sourceMappingURL=client.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/client.js.map b/backend/node_modules/@alicloud/cms20190101/dist/client.js.map new file mode 100644 index 0000000..5a01b98 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/client.js.map @@ -0,0 +1 @@ +{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,0EAA6C;AAC7C,yDAAkE;AAGlE,wDAA0C;AAC1C,iDAA+B;AAE/B,MAAqB,MAAO,SAAQ,sBAAO;IAE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AAI,2BAAY,CAAC,MAAM,CAAC;YACnC,MAAM,EAAE,0BAA0B;YAClC,OAAO,EAAE,YAAY;YACrB,QAAQ,EAAE,OAAO;YACjB,QAAQ,EAAE,GAAG;YACb,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,KAAK;YACZ,WAAW,EAAE,UAAU;YACvB,QAAQ,EAAE,MAAM;SACjB,CAAC,CAAC;QACH,OAAO,KAAK,CAAC,IAAI,CAA2C,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,IAAI,OAAO,CAAC,gCAAgC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC1J,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,wBAAwB,CAAC,OAAgD;QAC7E,IAAI,OAAO,GAAG,IAAI,KAAK,CAAC,cAAc,CAAC,EAAG,CAAC,CAAC;QAC5C,OAAO,MAAM,IAAI,CAAC,mCAAmC,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;CAEF;AAr7SD,yBAq7SC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsRequest.d.ts new file mode 100644 index 0000000..fde96e0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsRequest.d.ts @@ -0,0 +1,79 @@ +import * as $dara from '@darabonba/typescript'; +export declare class AddTagsRequestTag extends $dara.Model { + /** + * @remarks + * The tag key. + * + * Valid values of N: 1 to 3. A tag key can be 1 to 64 characters in length. + * + * You can create a tag key or specify an existing tag key. For more information about how to obtain a tag key, see [DescribeTagKeyList](https://help.aliyun.com/document_detail/2513189.html). + * + * > The tag key cannot start with `aliyun` or `acs:`. The tag key (`Tag.N.Key`) and tag value (`Tag.N.Value`) must be specified at the same time. + * + * This parameter is required. + * + * @example + * key1 + */ + key?: string; + /** + * @remarks + * The tag value. + * + * Valid values of N: 1 to 3. A tag value can be 1 to 64 characters in length. + * + * You can create a tag value or specify an existing tag value. For more information about how to obtain a tag value, see [DescribeTagValueList](https://help.aliyun.com/document_detail/2513188.html). + * + * > The tag value cannot start with `aliyun` or `acs:`. The tag key (`Tag.N.Key`) and tag value (`Tag.N.Value`) must be specified at the same time. + * + * This parameter is required. + * + * @example + * value1 + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class AddTagsRequest extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * Valid values of N: 1 to 20. + * + * For information about how to query the IDs of application groups, see [DescribeMonitorGroups](https://help.aliyun.com/document_detail/2513168.html). + * + * This parameter is required. + * + * @example + * 7301**** + */ + groupIds?: string[]; + regionId?: string; + /** + * @remarks + * The tags. + * + * This parameter is required. + */ + tag?: AddTagsRequestTag[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsRequest.js new file mode 100644 index 0000000..620598d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsRequest.js @@ -0,0 +1,89 @@ +"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.AddTagsRequest = exports.AddTagsRequestTag = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class AddTagsRequestTag 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.AddTagsRequestTag = AddTagsRequestTag; +class AddTagsRequest extends $dara.Model { + static names() { + return { + groupIds: 'GroupIds', + regionId: 'RegionId', + tag: 'Tag', + }; + } + static types() { + return { + groupIds: { 'type': 'array', 'itemType': 'string' }, + regionId: 'string', + tag: { 'type': 'array', 'itemType': AddTagsRequestTag }, + }; + } + validate() { + if (Array.isArray(this.groupIds)) { + $dara.Model.validateArray(this.groupIds); + } + if (Array.isArray(this.tag)) { + $dara.Model.validateArray(this.tag); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.AddTagsRequest = AddTagsRequest; +//# sourceMappingURL=AddTagsRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsRequest.js.map new file mode 100644 index 0000000..e75ef06 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AddTagsRequest.js","sourceRoot":"","sources":["../../src/models/AddTagsRequest.ts"],"names":[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AC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApDD,wCAoDC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsResponse.d.ts new file mode 100644 index 0000000..16739f2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { AddTagsResponseBody } from "./AddTagsResponseBody"; +export declare class AddTagsResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: AddTagsResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsResponse.js new file mode 100644 index 0000000..24f6709 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsResponse.js @@ -0,0 +1,69 @@ +"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.AddTagsResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const AddTagsResponseBody_1 = require("./AddTagsResponseBody"); +class AddTagsResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: AddTagsResponseBody_1.AddTagsResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.AddTagsResponse = AddTagsResponse; +//# sourceMappingURL=AddTagsResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsResponse.js.map new file mode 100644 index 0000000..9709e4d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AddTagsResponse.js","sourceRoot":"","sources":["../../src/models/AddTagsResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,+DAA4D;AAG5D,MAAa,eAAgB,SAAQ,KAAK,CAAC,KAAK;IAI9C,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,yCAAmB;SAC1B,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,0CAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsResponseBody.d.ts new file mode 100644 index 0000000..684dae0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class AddTagsResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * DAE4B115-3847-5438-8709-423627F0A3A3 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsResponseBody.js new file mode 100644 index 0000000..2e0a3b9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsResponseBody.js @@ -0,0 +1,64 @@ +"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.AddTagsResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class AddTagsResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.AddTagsResponseBody = AddTagsResponseBody; +//# sourceMappingURL=AddTagsResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsResponseBody.js.map new file mode 100644 index 0000000..ed4924b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/AddTagsResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AddTagsResponseBody.js","sourceRoot":"","sources":["../../src/models/AddTagsResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mBAAoB,SAAQ,KAAK,CAAC,KAAK;IAsClD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,kDA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/AlertEvent.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/AlertEvent.d.ts new file mode 100644 index 0000000..81fa3f9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/AlertEvent.d.ts @@ -0,0 +1,60 @@ +import * as $dara from '@darabonba/typescript'; +/** + */ +export declare class AlertEventMetrics extends $dara.Model { + curValue?: string; + metricName?: string; + metricNameEn?: string; + metricNameZh?: string; + operator?: string; + statistics?: string; + threshold?: string; + unit?: string; + unitFactor?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class AlertEvent extends $dara.Model { + alertName?: string; + alertStatus?: string; + arn?: string; + content?: string; + customLabels?: { + [key: string]: any; + }; + deDupId?: string; + details?: string; + eventName?: string; + eventType?: string; + expression?: string; + metrics?: AlertEventMetrics[]; + product?: string; + resourceInfo?: { + [key: string]: any; + }; + ruleName?: string; + severity?: string; + source?: string; + summary?: string; + timestamp?: number; + traceId?: string; + userId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/AlertEvent.js b/backend/node_modules/@alicloud/cms20190101/dist/models/AlertEvent.js new file mode 100644 index 0000000..c7c832f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/AlertEvent.js @@ -0,0 +1,142 @@ +"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.AlertEvent = exports.AlertEventMetrics = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +/** + */ +class AlertEventMetrics extends $dara.Model { + static names() { + return { + curValue: 'CurValue', + metricName: 'MetricName', + metricNameEn: 'MetricNameEn', + metricNameZh: 'MetricNameZh', + operator: 'Operator', + statistics: 'Statistics', + threshold: 'Threshold', + unit: 'Unit', + unitFactor: 'UnitFactor', + }; + } + static types() { + return { + curValue: 'string', + metricName: 'string', + metricNameEn: 'string', + metricNameZh: 'string', + operator: 'string', + statistics: 'string', + threshold: 'string', + unit: 'string', + unitFactor: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.AlertEventMetrics = AlertEventMetrics; +class AlertEvent extends $dara.Model { + static names() { + return { + alertName: 'AlertName', + alertStatus: 'AlertStatus', + arn: 'Arn', + content: 'Content', + customLabels: 'CustomLabels', + deDupId: 'DeDupId', + details: 'Details', + eventName: 'EventName', + eventType: 'EventType', + expression: 'Expression', + metrics: 'Metrics', + product: 'Product', + resourceInfo: 'ResourceInfo', + ruleName: 'RuleName', + severity: 'Severity', + source: 'Source', + summary: 'Summary', + timestamp: 'Timestamp', + traceId: 'TraceId', + userId: 'UserId', + }; + } + static types() { + return { + alertName: 'string', + alertStatus: 'string', + arn: 'string', + content: 'string', + customLabels: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' }, + deDupId: 'string', + details: 'string', + eventName: 'string', + eventType: 'string', + expression: 'string', + metrics: { 'type': 'array', 'itemType': AlertEventMetrics }, + product: 'string', + resourceInfo: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' }, + ruleName: 'string', + severity: 'string', + source: 'string', + summary: 'string', + timestamp: 'number', + traceId: 'string', + userId: 'string', + }; + } + validate() { + if (this.customLabels) { + $dara.Model.validateMap(this.customLabels); + } + if (Array.isArray(this.metrics)) { + $dara.Model.validateArray(this.metrics); + } + if (this.resourceInfo) { + $dara.Model.validateMap(this.resourceInfo); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.AlertEvent = AlertEvent; +//# sourceMappingURL=AlertEvent.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/AlertEvent.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/AlertEvent.js.map new file mode 100644 index 0000000..91fc9a4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/AlertEvent.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AlertEvent.js","sourceRoot":"","sources":["../../src/models/AlertEvent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C;GACG;AACH,MAAa,iBAAkB,SAAQ,KAAK,CAAC,KAAK;IAUhD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,UAAU,EAAE,YAAY;YACxB,YAAY,EAAE,cAAc;YAC5B,YAAY,EAAE,cAAc;YAC5B,QAAQ,EAAE,UAAU;YACpB,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,IAAI,EAAE,MAAM;YACZ,UAAU,EAAE,YAAY;SACzB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,UAAU,EAAE,QAAQ;YACpB,YAAY,EAAE,QAAQ;YACtB,YAAY,EAAE,QAAQ;YACtB,QAAQ,EAAE,QAAQ;YAClB,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;YACnB,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,QAAQ;SACrB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,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,QAAQ,EAAE,QAAQ;YAClB,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;YACjB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,YAAY,EAAE,CAAC;YACrB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC7C,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;YAC/B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1C,CAAC;QACD,IAAG,IAAI,CAAC,YAAY,EAAE,CAAC;YACrB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC7C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAvFD,gCAuFC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/AlertStrategyRelation.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/AlertStrategyRelation.d.ts new file mode 100644 index 0000000..acd578a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/AlertStrategyRelation.d.ts @@ -0,0 +1,15 @@ +import * as $dara from '@darabonba/typescript'; +export declare class AlertStrategyRelation extends $dara.Model { + alertName?: string; + strategyUuid?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/AlertStrategyRelation.js b/backend/node_modules/@alicloud/cms20190101/dist/models/AlertStrategyRelation.js new file mode 100644 index 0000000..3098d64 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/AlertStrategyRelation.js @@ -0,0 +1,60 @@ +"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.AlertStrategyRelation = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class AlertStrategyRelation extends $dara.Model { + static names() { + return { + alertName: 'AlertName', + strategyUuid: 'StrategyUuid', + }; + } + static types() { + return { + alertName: 'string', + strategyUuid: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.AlertStrategyRelation = AlertStrategyRelation; +//# sourceMappingURL=AlertStrategyRelation.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/AlertStrategyRelation.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/AlertStrategyRelation.js.map new file mode 100644 index 0000000..08c9a8f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/AlertStrategyRelation.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AlertStrategyRelation.js","sourceRoot":"","sources":["../../src/models/AlertStrategyRelation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qBAAsB,SAAQ,KAAK,CAAC,KAAK;IAGpD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;YACtB,YAAY,EAAE,cAAc;SAC7B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,QAAQ;YACnB,YAAY,EAAE,QAAQ;SACvB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxBD,sDAwBC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateRequest.d.ts new file mode 100644 index 0000000..603c88f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateRequest.d.ts @@ -0,0 +1,103 @@ +import * as $dara from '@darabonba/typescript'; +export declare class ApplyMetricRuleTemplateRequest extends $dara.Model { + /** + * @remarks + * The template application policy. Valid values: + * + * * all (default): deletes all the rules that are created by using the alert template from the selected application group, and then creates alert rules based on the template. + * * append: deletes the rules that are created by using the alert template from the selected application group, and then creates alert rules based on the existing template. + * + * @example + * all + */ + appendMode?: string; + /** + * @remarks + * The mode in which the alert template is applied. Valid values: + * + * * GROUP_INSTANCE_FIRST: The metrics in the application group take precedence. If a metric specified in the alert template does not exist in the application group, the system does not generate an alert rule for the metric based on the alert template. + * * ALARM_TEMPLATE_FIRST: The metrics specified in the alert template take precedence. If a metric specified in the alert template does not exist in the application group, the system still generates an alert rule for the metric based on the alert template. + * + * @example + * GROUP_INSTANCE_FIRST + */ + applyMode?: string; + /** + * @remarks + * The end of the time period during which the alert rule is effective. Valid values: 00 to 23. A value of 00 indicates 00:59 and a value of 23 indicates 23:59. + * + * @example + * 23 + */ + enableEndTime?: number; + /** + * @remarks + * The beginning of the time period during which the alert rule is effective. Valid values: 00 to 23. A value of 00 indicates 00:00 and a value of 23 indicates 23:00. + * + * @example + * 00 + */ + enableStartTime?: number; + /** + * @remarks + * The ID of the application group to which the alert template is applied. + * + * For more information about how to query the ID of an application group, see [DescribeMonitorGroups](https://help.aliyun.com/document_detail/115032.html). + * + * This parameter is required. + * + * @example + * 123456 + */ + groupId?: number; + /** + * @remarks + * The alert notification method. Valid values: + * + * Set the value to 4. A value of 4 indicates that alert notifications are sent by using TradeManager and DingTalk chatbots. + * + * @example + * 4 + */ + notifyLevel?: number; + /** + * @remarks + * The mute period during which notifications are not repeatedly sent for an alert. Unit: seconds. Default value: 86400. + * + * > Only one alert notification is sent during each mute period even if the metric value exceeds the alert threshold several times. + * + * @example + * 86400 + */ + silenceTime?: number; + /** + * @remarks + * The ID of the alert template. + * + * For more information about how to query the IDs of alert templates, see [DescribeMetricRuleTemplateList](https://help.aliyun.com/document_detail/114982.html). + * + * This parameter is required. + * + * @example + * 700**** + */ + templateIds?: string; + /** + * @remarks + * The callback URL to which a POST request is sent when an alert is triggered based on the alert rule. + * + * @example + * https://www.aliyun.com + */ + webhook?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateRequest.js new file mode 100644 index 0000000..aba50b8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateRequest.js @@ -0,0 +1,74 @@ +"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.ApplyMetricRuleTemplateRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class ApplyMetricRuleTemplateRequest extends $dara.Model { + static names() { + return { + appendMode: 'AppendMode', + applyMode: 'ApplyMode', + enableEndTime: 'EnableEndTime', + enableStartTime: 'EnableStartTime', + groupId: 'GroupId', + notifyLevel: 'NotifyLevel', + silenceTime: 'SilenceTime', + templateIds: 'TemplateIds', + webhook: 'Webhook', + }; + } + static types() { + return { + appendMode: 'string', + applyMode: 'string', + enableEndTime: 'number', + enableStartTime: 'number', + groupId: 'number', + notifyLevel: 'number', + silenceTime: 'number', + templateIds: 'string', + webhook: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ApplyMetricRuleTemplateRequest = ApplyMetricRuleTemplateRequest; +//# sourceMappingURL=ApplyMetricRuleTemplateRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateRequest.js.map new file mode 100644 index 0000000..8a27faf --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ApplyMetricRuleTemplateRequest.js","sourceRoot":"","sources":["../../src/models/ApplyMetricRuleTemplateRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IA2F7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,aAAa,EAAE,eAAe;YAC9B,eAAe,EAAE,iBAAiB;YAClC,OAAO,EAAE,SAAS;YAClB,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,aAAa;YAC1B,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;YACnB,aAAa,EAAE,QAAQ;YACvB,eAAe,EAAE,QAAQ;YACzB,OAAO,EAAE,QAAQ;YACjB,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,QAAQ;YACrB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA9HD,wEA8HC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateResponse.d.ts new file mode 100644 index 0000000..c9dc6b1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { ApplyMetricRuleTemplateResponseBody } from "./ApplyMetricRuleTemplateResponseBody"; +export declare class ApplyMetricRuleTemplateResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: ApplyMetricRuleTemplateResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateResponse.js new file mode 100644 index 0000000..79f8455 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateResponse.js @@ -0,0 +1,69 @@ +"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.ApplyMetricRuleTemplateResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const ApplyMetricRuleTemplateResponseBody_1 = require("./ApplyMetricRuleTemplateResponseBody"); +class ApplyMetricRuleTemplateResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: ApplyMetricRuleTemplateResponseBody_1.ApplyMetricRuleTemplateResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ApplyMetricRuleTemplateResponse = ApplyMetricRuleTemplateResponse; +//# sourceMappingURL=ApplyMetricRuleTemplateResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateResponse.js.map new file mode 100644 index 0000000..6b69dbe --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ApplyMetricRuleTemplateResponse.js","sourceRoot":"","sources":["../../src/models/ApplyMetricRuleTemplateResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,+FAA4F;AAG5F,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAI9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,yEAAmC;SAC1C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,0EAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateResponseBody.d.ts new file mode 100644 index 0000000..90b9c8d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateResponseBody.d.ts @@ -0,0 +1,137 @@ +import * as $dara from '@darabonba/typescript'; +export declare class ApplyMetricRuleTemplateResponseBodyResourceAlertResults extends $dara.Model { + /** + * @remarks + * The responses code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * alert rule is creating, please wait a few minutes. + */ + message?: string; + /** + * @remarks + * The ID of the alert rule. + * + * @example + * applyTemplate8ab74c6b-9f27-47ab-8841-de01dc08**** + */ + ruleId?: string; + /** + * @remarks + * The name of the alert rule. + * + * @example + * test123 + */ + ruleName?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class ApplyMetricRuleTemplateResponseBodyResource extends $dara.Model { + /** + * @remarks + * The details of the generated alert rule. + */ + alertResults?: ApplyMetricRuleTemplateResponseBodyResourceAlertResults[]; + /** + * @remarks + * The ID of the application group. + * + * @example + * 123456 + */ + groupId?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class ApplyMetricRuleTemplateResponseBody extends $dara.Model { + /** + * @remarks + * The responses code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The returned message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 3F897F3C-020A-4993-95B4-63ABB84F83E6 + */ + requestId?: string; + /** + * @remarks + * The resources that are affected by the alert rule. + */ + resource?: ApplyMetricRuleTemplateResponseBodyResource; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateResponseBody.js new file mode 100644 index 0000000..69a1d0d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateResponseBody.js @@ -0,0 +1,120 @@ +"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.ApplyMetricRuleTemplateResponseBody = exports.ApplyMetricRuleTemplateResponseBodyResource = exports.ApplyMetricRuleTemplateResponseBodyResourceAlertResults = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class ApplyMetricRuleTemplateResponseBodyResourceAlertResults extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + ruleId: 'RuleId', + ruleName: 'RuleName', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + ruleId: 'string', + ruleName: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ApplyMetricRuleTemplateResponseBodyResourceAlertResults = ApplyMetricRuleTemplateResponseBodyResourceAlertResults; +class ApplyMetricRuleTemplateResponseBodyResource extends $dara.Model { + static names() { + return { + alertResults: 'AlertResults', + groupId: 'GroupId', + }; + } + static types() { + return { + alertResults: { 'type': 'array', 'itemType': ApplyMetricRuleTemplateResponseBodyResourceAlertResults }, + groupId: 'number', + }; + } + validate() { + if (Array.isArray(this.alertResults)) { + $dara.Model.validateArray(this.alertResults); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ApplyMetricRuleTemplateResponseBodyResource = ApplyMetricRuleTemplateResponseBodyResource; +class ApplyMetricRuleTemplateResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + resource: 'Resource', + success: 'Success', + }; + } + static types() { + return { + code: 'number', + message: 'string', + requestId: 'string', + resource: ApplyMetricRuleTemplateResponseBodyResource, + success: 'boolean', + }; + } + validate() { + if (this.resource && typeof this.resource.validate === 'function') { + this.resource.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ApplyMetricRuleTemplateResponseBody = ApplyMetricRuleTemplateResponseBody; +//# sourceMappingURL=ApplyMetricRuleTemplateResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateResponseBody.js.map new file mode 100644 index 0000000..2c1358b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ApplyMetricRuleTemplateResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ApplyMetricRuleTemplateResponseBody.js","sourceRoot":"","sources":["../../src/models/ApplyMetricRuleTemplateResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,uDAAwD,SAAQ,KAAK,CAAC,KAAK;IA8CtF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,QAAQ;YAChB,QAA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MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,QAAQ,EAAE,2CAA2C;YACrD,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,QAAQ,IAAI,OAAQ,IAAI,CAAC,QAAgB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACzE,IAAI,CAAC,QAAgB,CAAC,QAAQ,EAAE,CAAC;QACpC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,kFAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorRequest.d.ts new file mode 100644 index 0000000..ded75df --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorRequest.d.ts @@ -0,0 +1,89 @@ +import * as $dara from '@darabonba/typescript'; +export declare class BatchCreateInstantSiteMonitorRequestTaskList extends $dara.Model { + /** + * @remarks + * The URL or IP address that is monitored by the task. + * + * > You must create at least one site monitoring task. You must specify all of the `Address`, `TaskName`, and `TaskType` parameters in each request. + * + * @example + * https://www.aliyun.com + */ + address?: string; + /** + * @remarks + * The detection points. If you leave this parameter empty, the system randomly selects three detection points. + * + * The value is a `JSON array`. Example: `{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}`. The values of the city field indicate Beijing, Hangzhou, and Qingdao. + * + * For information about how to obtain detection points, see [DescribeSiteMonitorISPCityList](https://help.aliyun.com/document_detail/115045.html). + * + * @example + * [{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}] + */ + ispCities?: string; + /** + * @remarks + * The extended options of the protocol that is used by the site monitoring task. The options vary based on the protocol. + * + * @example + * {"time_out":5000} + */ + optionsJson?: string; + /** + * @remarks + * The name of the site monitoring task. + * + * The name must be 4 to 100 characters in length, and can contain letters, digits, and underscores (_). + * + * > You must create at least one site monitoring task. You must specify all of the `Address`, `TaskName`, and `TaskType` parameters in each request. + * + * @example + * HangZhou_ECS1 + */ + taskName?: string; + /** + * @remarks + * The type of the site monitoring task. + * + * Valid values: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP. + * + * > You must create at least one site monitoring task. You must specify all of the `Address`, `TaskName`, and `TaskType` parameters in each request. + * + * @example + * HTTP + */ + taskType?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class BatchCreateInstantSiteMonitorRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * The site monitoring tasks. + * + * > You must create at least one site monitoring task. You must specify all of the `Address`, `TaskName`, and `TaskType` parameters in each request. + * + * This parameter is required. + */ + taskList?: BatchCreateInstantSiteMonitorRequestTaskList[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorRequest.js new file mode 100644 index 0000000..165c5d9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorRequest.js @@ -0,0 +1,90 @@ +"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.BatchCreateInstantSiteMonitorRequest = exports.BatchCreateInstantSiteMonitorRequestTaskList = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class BatchCreateInstantSiteMonitorRequestTaskList extends $dara.Model { + static names() { + return { + address: 'Address', + ispCities: 'IspCities', + optionsJson: 'OptionsJson', + taskName: 'TaskName', + taskType: 'TaskType', + }; + } + static types() { + return { + address: 'string', + ispCities: 'string', + optionsJson: 'string', + taskName: 'string', + taskType: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.BatchCreateInstantSiteMonitorRequestTaskList = BatchCreateInstantSiteMonitorRequestTaskList; +class BatchCreateInstantSiteMonitorRequest extends $dara.Model { + static names() { + return { + regionId: 'RegionId', + taskList: 'TaskList', + }; + } + static types() { + return { + regionId: 'string', + taskList: { 'type': 'array', 'itemType': BatchCreateInstantSiteMonitorRequestTaskList }, + }; + } + validate() { + if (Array.isArray(this.taskList)) { + $dara.Model.validateArray(this.taskList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.BatchCreateInstantSiteMonitorRequest = BatchCreateInstantSiteMonitorRequest; +//# sourceMappingURL=BatchCreateInstantSiteMonitorRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorRequest.js.map new file mode 100644 index 0000000..136ab6b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"BatchCreateInstantSiteMonitorRequest.js","sourceRoot":"","sources":["../../src/models/BatchCreateInstantSiteMonitorRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,4CAA6C,SAAQ,KAAK,CAAC,KAAK;IAuD3E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,WAAW,EAAE,QAAQ;YACrB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAlFD,oGAkFC;AAED,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IAWnE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,4CAA4C,EAAE;SACxF,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;YAChC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC3C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnCD,oFAmCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorResponse.d.ts new file mode 100644 index 0000000..a5cc148 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { BatchCreateInstantSiteMonitorResponseBody } from "./BatchCreateInstantSiteMonitorResponseBody"; +export declare class BatchCreateInstantSiteMonitorResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: BatchCreateInstantSiteMonitorResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorResponse.js new file mode 100644 index 0000000..7067c46 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorResponse.js @@ -0,0 +1,69 @@ +"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.BatchCreateInstantSiteMonitorResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const BatchCreateInstantSiteMonitorResponseBody_1 = require("./BatchCreateInstantSiteMonitorResponseBody"); +class BatchCreateInstantSiteMonitorResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: BatchCreateInstantSiteMonitorResponseBody_1.BatchCreateInstantSiteMonitorResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.BatchCreateInstantSiteMonitorResponse = BatchCreateInstantSiteMonitorResponse; +//# sourceMappingURL=BatchCreateInstantSiteMonitorResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorResponse.js.map new file mode 100644 index 0000000..3f906fc --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"BatchCreateInstantSiteMonitorResponse.js","sourceRoot":"","sources":["../../src/models/BatchCreateInstantSiteMonitorResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,2GAAwG;AAGxG,MAAa,qCAAsC,SAAQ,KAAK,CAAC,KAAK;IAIpE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,qFAAyC;SAChD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,sFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorResponseBody.d.ts new file mode 100644 index 0000000..762df0a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorResponseBody.d.ts @@ -0,0 +1,86 @@ +import * as $dara from '@darabonba/typescript'; +export declare class BatchCreateInstantSiteMonitorResponseBodyData extends $dara.Model { + /** + * @remarks + * The ID of the site monitoring task. + * + * @example + * 679fbe4f-b80b-4706-91b2-5427b43e**** + */ + taskId?: string; + /** + * @remarks + * The name of the site monitoring task. + * + * @example + * HangZhou_ECS1 + */ + taskName?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class BatchCreateInstantSiteMonitorResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The information about the site monitoring task. + * + * @example + * [{"taskName": "HangZhou_ECS1", "taskId": "679fbe4f-b80b-4706-91b2-5427b43e****"}] + */ + data?: BatchCreateInstantSiteMonitorResponseBodyData[]; + /** + * @remarks + * The returned message. + * + * @example + * successful + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 7AE72720-2C96-5446-9F2B-308C7CEDFF1A + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorResponseBody.js new file mode 100644 index 0000000..2f09fb0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorResponseBody.js @@ -0,0 +1,90 @@ +"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.BatchCreateInstantSiteMonitorResponseBody = exports.BatchCreateInstantSiteMonitorResponseBodyData = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class BatchCreateInstantSiteMonitorResponseBodyData extends $dara.Model { + static names() { + return { + taskId: 'TaskId', + taskName: 'TaskName', + }; + } + static types() { + return { + taskId: 'string', + taskName: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.BatchCreateInstantSiteMonitorResponseBodyData = BatchCreateInstantSiteMonitorResponseBodyData; +class BatchCreateInstantSiteMonitorResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + data: 'Data', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + data: { 'type': 'array', 'itemType': BatchCreateInstantSiteMonitorResponseBodyData }, + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + if (Array.isArray(this.data)) { + $dara.Model.validateArray(this.data); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.BatchCreateInstantSiteMonitorResponseBody = BatchCreateInstantSiteMonitorResponseBody; +//# sourceMappingURL=BatchCreateInstantSiteMonitorResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorResponseBody.js.map new file mode 100644 index 0000000..68e8862 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchCreateInstantSiteMonitorResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"BatchCreateInstantSiteMonitorResponseBody.js","sourceRoot":"","sources":["../../src/models/BatchCreateInstantSiteMonitorResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6CAA8C,SAAQ,KAAK,CAAC,KAAK;IAiB5E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtCD,sGAsCC;AAED,MAAa,yCAA0C,SAAQ,KAAK,CAAC,KAAK;IA8CxE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,6CAA6C,EAAE;YACpF,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;YAC5B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACvC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5ED,8FA4EC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportRequest.d.ts new file mode 100644 index 0000000..6dad559 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportRequest.d.ts @@ -0,0 +1,75 @@ +import * as $dara from '@darabonba/typescript'; +export declare class BatchExportRequest extends $dara.Model { + /** + * @remarks + * When you call this operation to export data, you must specify the `Cursor` parameter. You can obtain the value of the `Cursor` parameter by using one of the following methods: + * + * * When you call this operation for the first time, you must call the Cursor operation to obtain the `Cursor` value. For more information, see [Cursor](https://help.aliyun.com/document_detail/2330730.html). + * * When you call this operation again, you can obtain the `Cursor` value from the returned data of the last call. + * + * This parameter is required. + * + * @example + * eyJidWNrZXRzIjo0LCJjdXJzb3IiOiIxNjQxNDU0MzIwMDAwMWUxY2YxNWY0NTU0MTliZjllYTY4OWQ2ODI1OTU1Yzc1NmZjMDQ2OTMxMzczMzM2MzUzMTMxMzEzMzM0MzMzODM5MzEzMTMwMjQyYzY5MmQ3NTY2MzYzMjY3NmI2ZjM5MzU2YjY4MzAzMTYyNzg3MTcwNjkzMTM3MjQyYyIsImN1cnNvclZlcnNpb24iOiJxdWVyeSIsImVuZFRpbWUiOjE2NDE0NTQ3OTU4MjMsImV4cG9ydEVuZFRpbWUiOjE2NDE0NTQ3OTU4MjMsImV4cG9ydFN0YXJ0VGltZSI6MTY0MTQ1NDE5NTgyMywiZXhwcmVzc1JhbmdlIjpmYWxzZSwiaGFzTmV4dCI6dHJ1ZSwiaW5wdXRNZXRyaWMiOiJDUFVVdGlsaXphdGlvbiIsImlucHV0TmFtZXNwYWNlIjoiYWNzX2Vjc19kYXNoYm9hcmQiLCJsaW1pdCI6MTAwMCwibG9nVGltZU1vZGUiOnRydWUsIm1hdGNoZXJzIjp7ImNoYWluIjpbeyJsYWJlbCI6InVzZXJJZCIsIm9wZXJhdG9yIjoiRVFVQUxTIiwidmFsdWUiOiIxNzM2NTExMTM0Mzg5MTEwIn1dfSwibWV0cmljIjoiQ1BVVXRpbGl6YXRpb24iLCJtZXRyaWNUeXBlIjoiTUVUUklDIiwibmFtZXNwYWNlIjoiYWNzX2Vjc19kYXNoYm9hcmQiLCJuZXh0UGtBZGFwdGVyIjp7fSwib2Zmc2V0IjowLCJwYXJlbnRVaWQiOjEyNzA2NzY2Nzk1NDY3MDQsInN0YXJ0VGltZSI6MTY0MTQ1NDE5NTgyMywic3RlcCI6LTEsInRpbWVvdXQiOjEyMCwid2luZG93Ijo2**** + */ + cursor?: string; + /** + * @remarks + * The maximum number of data entries that can be returned in each response. + * + * Valid values: 1 to 10000. + * + * This parameter is required. + * + * @example + * 1000 + */ + length?: number; + /** + * @remarks + * The statistical methods used to customize the returned data. By default, the measurements based on all statistical methods are returned. + * + * For example, the `cpu_idle` metric of ECS (`acs_ecs_dashboard`) has three statistical methods: `Average`, `Maximum`, and `Minimum`. If you want to return only the measurements based on the `Average` and `Maximum` statistical methods, set this parameter to `["Average", "Maximum"]`. + * + * The statistical methods of metrics are displayed in the `Statistics` column on the Metrics page of each cloud service. For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + */ + measurements?: string[]; + /** + * @remarks + * The metric that is used to monitor the cloud service. + * + * For more information about the metrics of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * > The value of this parameter must be the same as the value of the request parameter `Metric` in the Cursor operation. + * + * This parameter is required. + * + * @example + * cpu_idle + */ + metric?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * For more information about the namespaces of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * > The value of this parameter must be the same as the value of the request parameter `Namespace` in the Cursor operation. + * + * This parameter is required. + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportRequest.js new file mode 100644 index 0000000..c500854 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportRequest.js @@ -0,0 +1,69 @@ +"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.BatchExportRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class BatchExportRequest extends $dara.Model { + static names() { + return { + cursor: 'Cursor', + length: 'Length', + measurements: 'Measurements', + metric: 'Metric', + namespace: 'Namespace', + }; + } + static types() { + return { + cursor: 'string', + length: 'number', + measurements: { 'type': 'array', 'itemType': 'string' }, + metric: 'string', + namespace: 'string', + }; + } + validate() { + if (Array.isArray(this.measurements)) { + $dara.Model.validateArray(this.measurements); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.BatchExportRequest = BatchExportRequest; +//# sourceMappingURL=BatchExportRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportRequest.js.map new file mode 100644 index 0000000..a9ff256 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"BatchExportRequest.js","sourceRoot":"","sources":["../../src/models/BatchExportRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kBAAmB,SAAQ,KAAK,CAAC,KAAK;IA+DjD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;YAChB,YAAY,EAAE,cAAc;YAC5B,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;YAChB,YAAY,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YACvD,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;YACpC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC/C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA7FD,gDA6FC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportResponse.d.ts new file mode 100644 index 0000000..9d5705e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { BatchExportResponseBody } from "./BatchExportResponseBody"; +export declare class BatchExportResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: BatchExportResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportResponse.js new file mode 100644 index 0000000..4b2883d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportResponse.js @@ -0,0 +1,69 @@ +"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.BatchExportResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const BatchExportResponseBody_1 = require("./BatchExportResponseBody"); +class BatchExportResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: BatchExportResponseBody_1.BatchExportResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.BatchExportResponse = BatchExportResponse; +//# sourceMappingURL=BatchExportResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportResponse.js.map new file mode 100644 index 0000000..d0f2db2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"BatchExportResponse.js","sourceRoot":"","sources":["../../src/models/BatchExportResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,uEAAoE;AAGpE,MAAa,mBAAoB,SAAQ,KAAK,CAAC,KAAK;IAIlD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,iDAAuB;SAC9B,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,kDAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportResponseBody.d.ts new file mode 100644 index 0000000..0f5f4f5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportResponseBody.d.ts @@ -0,0 +1,93 @@ +import * as $dara from '@darabonba/typescript'; +import { MetricStat } from "./MetricStat"; +export declare class BatchExportResponseBody extends $dara.Model { + /** + * @remarks + * The timestamp of the data requested by the backend. A larger timestamp indicates that the data export time is closer to the current time. + * + * @example + * 1678781819000 + */ + anchor?: number; + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The Cursor information that is used to call this operation again. + * + * > If `null` is returned, the monitoring data is exported. + * + * @example + * v2.5eyJidWNrZXRzIjo0LCJjdXJzb3IiOiIxNjQxNDU0ODAwMDAwMWUxY2YxNWY0NTU0MTliZjllYTY4OWQ2ODI1OTU1Yzc1NmZjMDQ2OTMxMzczMzM2MzUzMTMxMzEzMzM0MzMzODM5MzEzMTMwMjQyYzY5MmQzMjdhNjU2MjY3N2E2NjZhNzczOTY2NmM3Mjc0NjM3MzY5Njg3NDcyMjQyYyIsImN1cnNvclZlcnNpb24iOiJxdWVyeSIsImVuZFRpbWUiOjE2NDE0NTUyMzYxMTIsImV4cG9ydEVuZFRpbWUiOjE2NDE0NTUyMzYxMTIsImV4cG9ydFN0YXJ0VGltZSI6MTY0MTQ1NDYzNjExMiwiZXhwcmVzc1JhbmdlIjpmYWxzZSwiaGFzTmV4dCI6dHJ1ZSwiaW5wdXRNZXRyaWMiOiJDUFVVdGlsaXphdGlvbiIsImlucHV0TmFtZXNwYWNlIjoiYWNzX2Vjc19kYXNoYm9hcmQiLCJsaW1pdCI6MTAwMCwibG9nVGltZU1vZGUiOnRydWUsIm1hdGNoZXJzIjp7ImNoYWluIjpbeyJsYWJlbCI6InVzZXJJZCIsIm9wZXJhdG9yIjoiRVFVQUxTIiwidmFsdWUiOiIxNzM2NTExMTM0Mzg5MTEwIn1dfSwibWV0cmljIjoiQ1BVVXRpbGl6YXRpb24iLCJtZXRyaWNUeXBlIjoiTUVUUklDIiwibmFtZXNwYWNlIjoiYWNzX2Vjc19kYXNoYm9hcmQiLCJuZXh0UGtBZGFwdGVyIjp7fSwib2Zmc2V0IjowLCJwYXJlbnRVaWQiOjEyNzA2NzY2Nzk1NDY3MDQsInN0YXJ0VGltZSI6MTY0MTQ1NDYzNjExMiwic3RlcCI6LTEsInRpbWVvdXQiOjEyMCwid2luZG93Ijo2MH0*** + */ + cursor?: string; + /** + * @remarks + * The data returned in this call. + */ + dataResults?: MetricStat[]; + /** + * @remarks + * Indicates whether the data has been exported. Valid values: + * + * * true: Some data is not exported. + * * false: All the data is exported. + * + * @example + * true + */ + hasNext?: boolean; + /** + * @remarks + * The number of data entries returned in this call. + * + * @example + * 1000 + */ + length?: number; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 251402CD-305C-1617-808E-D8C11FC8138D + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportResponseBody.js new file mode 100644 index 0000000..2fd6b80 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportResponseBody.js @@ -0,0 +1,78 @@ +"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.BatchExportResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const MetricStat_1 = require("./MetricStat"); +class BatchExportResponseBody extends $dara.Model { + static names() { + return { + anchor: 'Anchor', + code: 'Code', + cursor: 'Cursor', + dataResults: 'DataResults', + hasNext: 'HasNext', + length: 'Length', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + anchor: 'number', + code: 'number', + cursor: 'string', + dataResults: { 'type': 'array', 'itemType': MetricStat_1.MetricStat }, + hasNext: 'boolean', + length: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + if (Array.isArray(this.dataResults)) { + $dara.Model.validateArray(this.dataResults); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.BatchExportResponseBody = BatchExportResponseBody; +//# sourceMappingURL=BatchExportResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportResponseBody.js.map new file mode 100644 index 0000000..0401133 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"BatchExportResponseBody.js","sourceRoot":"","sources":["../../src/models/BatchExportResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,6CAA0C;AAG1C,MAAa,uBAAwB,SAAQ,KAAK,CAAC,KAAK;IAgFtD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,MAAM;YACZ,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,aAAa;YAC1B,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,uBAAU,EAAE;YACxD,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;YACnC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC9C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtHD,0DAsHC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportShrinkRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportShrinkRequest.d.ts new file mode 100644 index 0000000..963e151 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportShrinkRequest.d.ts @@ -0,0 +1,75 @@ +import * as $dara from '@darabonba/typescript'; +export declare class BatchExportShrinkRequest extends $dara.Model { + /** + * @remarks + * When you call this operation to export data, you must specify the `Cursor` parameter. You can obtain the value of the `Cursor` parameter by using one of the following methods: + * + * * When you call this operation for the first time, you must call the Cursor operation to obtain the `Cursor` value. For more information, see [Cursor](https://help.aliyun.com/document_detail/2330730.html). + * * When you call this operation again, you can obtain the `Cursor` value from the returned data of the last call. + * + * This parameter is required. + * + * @example + * eyJidWNrZXRzIjo0LCJjdXJzb3IiOiIxNjQxNDU0MzIwMDAwMWUxY2YxNWY0NTU0MTliZjllYTY4OWQ2ODI1OTU1Yzc1NmZjMDQ2OTMxMzczMzM2MzUzMTMxMzEzMzM0MzMzODM5MzEzMTMwMjQyYzY5MmQ3NTY2MzYzMjY3NmI2ZjM5MzU2YjY4MzAzMTYyNzg3MTcwNjkzMTM3MjQyYyIsImN1cnNvclZlcnNpb24iOiJxdWVyeSIsImVuZFRpbWUiOjE2NDE0NTQ3OTU4MjMsImV4cG9ydEVuZFRpbWUiOjE2NDE0NTQ3OTU4MjMsImV4cG9ydFN0YXJ0VGltZSI6MTY0MTQ1NDE5NTgyMywiZXhwcmVzc1JhbmdlIjpmYWxzZSwiaGFzTmV4dCI6dHJ1ZSwiaW5wdXRNZXRyaWMiOiJDUFVVdGlsaXphdGlvbiIsImlucHV0TmFtZXNwYWNlIjoiYWNzX2Vjc19kYXNoYm9hcmQiLCJsaW1pdCI6MTAwMCwibG9nVGltZU1vZGUiOnRydWUsIm1hdGNoZXJzIjp7ImNoYWluIjpbeyJsYWJlbCI6InVzZXJJZCIsIm9wZXJhdG9yIjoiRVFVQUxTIiwidmFsdWUiOiIxNzM2NTExMTM0Mzg5MTEwIn1dfSwibWV0cmljIjoiQ1BVVXRpbGl6YXRpb24iLCJtZXRyaWNUeXBlIjoiTUVUUklDIiwibmFtZXNwYWNlIjoiYWNzX2Vjc19kYXNoYm9hcmQiLCJuZXh0UGtBZGFwdGVyIjp7fSwib2Zmc2V0IjowLCJwYXJlbnRVaWQiOjEyNzA2NzY2Nzk1NDY3MDQsInN0YXJ0VGltZSI6MTY0MTQ1NDE5NTgyMywic3RlcCI6LTEsInRpbWVvdXQiOjEyMCwid2luZG93Ijo2**** + */ + cursor?: string; + /** + * @remarks + * The maximum number of data entries that can be returned in each response. + * + * Valid values: 1 to 10000. + * + * This parameter is required. + * + * @example + * 1000 + */ + length?: number; + /** + * @remarks + * The statistical methods used to customize the returned data. By default, the measurements based on all statistical methods are returned. + * + * For example, the `cpu_idle` metric of ECS (`acs_ecs_dashboard`) has three statistical methods: `Average`, `Maximum`, and `Minimum`. If you want to return only the measurements based on the `Average` and `Maximum` statistical methods, set this parameter to `["Average", "Maximum"]`. + * + * The statistical methods of metrics are displayed in the `Statistics` column on the Metrics page of each cloud service. For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + */ + measurementsShrink?: string; + /** + * @remarks + * The metric that is used to monitor the cloud service. + * + * For more information about the metrics of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * > The value of this parameter must be the same as the value of the request parameter `Metric` in the Cursor operation. + * + * This parameter is required. + * + * @example + * cpu_idle + */ + metric?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * For more information about the namespaces of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * > The value of this parameter must be the same as the value of the request parameter `Namespace` in the Cursor operation. + * + * This parameter is required. + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportShrinkRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportShrinkRequest.js new file mode 100644 index 0000000..3a1734a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportShrinkRequest.js @@ -0,0 +1,66 @@ +"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.BatchExportShrinkRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class BatchExportShrinkRequest extends $dara.Model { + static names() { + return { + cursor: 'Cursor', + length: 'Length', + measurementsShrink: 'Measurements', + metric: 'Metric', + namespace: 'Namespace', + }; + } + static types() { + return { + cursor: 'string', + length: 'number', + measurementsShrink: 'string', + metric: 'string', + namespace: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.BatchExportShrinkRequest = BatchExportShrinkRequest; +//# sourceMappingURL=BatchExportShrinkRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportShrinkRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportShrinkRequest.js.map new file mode 100644 index 0000000..9a74a98 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/BatchExportShrinkRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"BatchExportShrinkRequest.js","sourceRoot":"","sources":["../../src/models/BatchExportShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wBAAyB,SAAQ,KAAK,CAAC,KAAK;IA+DvD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;YAChB,kBAAkB,EAAE,cAAc;YAClC,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;YAChB,kBAAkB,EAAE,QAAQ;YAC5B,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA1FD,4DA0FC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupRequest.d.ts new file mode 100644 index 0000000..92f6331 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupRequest.d.ts @@ -0,0 +1,134 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateDynamicTagGroupRequestMatchExpress extends $dara.Model { + /** + * @remarks + * The keys of the tags that are used to create the application group. If a specified key is attached to multiple resources, the resources that have the same key-value pair are added to the same group. + * + * @example + * appname + */ + tagName?: string; + /** + * @remarks + * The tag values of the cloud resources. Set the value of N to 1. + * + * > If you set the `MatchExpress.N.TagValueMatchFunction` parameter, you must also set the `MatchExpress.N.TagValue` parameter. + * + * @example + * instance + */ + tagValue?: string; + /** + * @remarks + * The method that is used to match the tag values of the cloud resources. Set the value of N to 1. Valid values: + * + * * contains: contains + * * startWith: starts with a prefix + * * endWith: ends with a suffix + * * notContains: does not contain + * * equals: equals + * * all: matches all + * + * > If you set the `MatchExpress.N.TagValueMatchFunction` parameter, you must also set the `MatchExpress.N.TagValue` parameter. + * + * @example + * contains + */ + tagValueMatchFunction?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class CreateDynamicTagGroupRequest extends $dara.Model { + /** + * @remarks + * This parameter is required. + * + * @example + * ECS_Group + */ + contactGroupList?: string[]; + /** + * @remarks + * Specifies whether the CloudMonitor agent is automatically installed for the application group. CloudMonitor determines whether to automatically install the CloudMonitor agent for the hosts in an application group based on the value of this parameter. Valid values: + * + * * true: The CloudMonitor agent is automatically installed. + * * false (default value): The CloudMonitor agent is not automatically installed. + * + * @example + * true + */ + enableInstallAgent?: boolean; + /** + * @remarks + * Specifies whether the application group automatically subscribes to event notifications. If events whose severity level is critical or warning occur on resources in an application group, CloudMonitor sends alert notifications. Valid values: + * + * * true: The application group automatically subscribes to event notifications. + * * false (default value): The application group does not automatically subscribe to event notifications. + * + * @example + * true + */ + enableSubscribeEvent?: boolean; + /** + * @remarks + * The conditional expressions used to create an application group based on the tag. + * + * This parameter is required. + */ + matchExpress?: CreateDynamicTagGroupRequestMatchExpress[]; + /** + * @remarks + * The relationship between the conditional expressions for the tag values of the cloud resources. Valid values: + * + * * and (default) + * * or + * + * @example + * and + */ + matchExpressFilterRelation?: string; + regionId?: string; + /** + * @remarks + * The tag keys of the cloud resources. + * + * For more information about how to obtain tag keys, see [DescribeTagKeyList](https://help.aliyun.com/document_detail/145558.html). + * + * This parameter is required. + * + * @example + * ecs_instance + */ + tagKey?: string; + /** + * @remarks + * The ID of the region to which the tags belong. + * + * @example + * cn-hangzhou + */ + tagRegionId?: string; + /** + * @example + * 85**** + */ + templateIdList?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupRequest.js new file mode 100644 index 0000000..c7105fe --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupRequest.js @@ -0,0 +1,106 @@ +"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.CreateDynamicTagGroupRequest = exports.CreateDynamicTagGroupRequestMatchExpress = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateDynamicTagGroupRequestMatchExpress extends $dara.Model { + static names() { + return { + tagName: 'TagName', + tagValue: 'TagValue', + tagValueMatchFunction: 'TagValueMatchFunction', + }; + } + static types() { + return { + tagName: 'string', + tagValue: 'string', + tagValueMatchFunction: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateDynamicTagGroupRequestMatchExpress = CreateDynamicTagGroupRequestMatchExpress; +class CreateDynamicTagGroupRequest extends $dara.Model { + static names() { + return { + contactGroupList: 'ContactGroupList', + enableInstallAgent: 'EnableInstallAgent', + enableSubscribeEvent: 'EnableSubscribeEvent', + matchExpress: 'MatchExpress', + matchExpressFilterRelation: 'MatchExpressFilterRelation', + regionId: 'RegionId', + tagKey: 'TagKey', + tagRegionId: 'TagRegionId', + templateIdList: 'TemplateIdList', + }; + } + static types() { + return { + contactGroupList: { 'type': 'array', 'itemType': 'string' }, + enableInstallAgent: 'boolean', + enableSubscribeEvent: 'boolean', + matchExpress: { 'type': 'array', 'itemType': CreateDynamicTagGroupRequestMatchExpress }, + matchExpressFilterRelation: 'string', + regionId: 'string', + tagKey: 'string', + tagRegionId: 'string', + templateIdList: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.contactGroupList)) { + $dara.Model.validateArray(this.contactGroupList); + } + if (Array.isArray(this.matchExpress)) { + $dara.Model.validateArray(this.matchExpress); + } + if (Array.isArray(this.templateIdList)) { + $dara.Model.validateArray(this.templateIdList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateDynamicTagGroupRequest = CreateDynamicTagGroupRequest; +//# sourceMappingURL=CreateDynamicTagGroupRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupRequest.js.map new file mode 100644 index 0000000..178b35d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateDynamicTagGroupRequest.js","sourceRoot":"","sources":["../../src/models/CreateDynamicTagGroupRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wCAAyC,SAAQ,KAAK,CAAC,KAAK;IAoCvE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,UAAU;YACpB,qBAAqB,EAAE,uBAAuB;SAC/C,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,QAAQ,EAAE,QAAQ;YAClB,qBAAqB,EAAE,QAAQ;SAChC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA3DD,4FA2DC;AAED,MAAa,4BAA6B,SAAQ,KAAK,CAAC,KAAK;IA2E3D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,gBAAgB,EAAE,kBAAkB;YACpC,kBAAkB,EAAE,oBAAoB;YACxC,oBAAoB,EAAE,sBAAsB;YAC5C,YAAY,EAAE,cAAc;YAC5B,0BAA0B,EAAE,4BAA4B;YACxD,QAAQ,EAAE,UAAU;YACpB,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,aAAa;YAC1B,cAAc,EAAE,gBAAgB;SACjC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,gBAAgB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YAC3D,kBAAkB,EAAE,SAAS;YAC7B,oBAAoB,EAAE,SAAS;YAC/B,YAAY,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,wCAAwC,EAAE;YACvF,0BAA0B,EAAE,QAAQ;YACpC,QAAQ,EAAE,QAAQ;YAClB,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,QAAQ;YACrB,cAAc,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;SAC1D,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAAE,CAAC;YACxC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QACnD,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;YACpC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC/C,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC;YACtC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACjD,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAvHD,oEAuHC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupResponse.d.ts new file mode 100644 index 0000000..13bfb64 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { CreateDynamicTagGroupResponseBody } from "./CreateDynamicTagGroupResponseBody"; +export declare class CreateDynamicTagGroupResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: CreateDynamicTagGroupResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupResponse.js new file mode 100644 index 0000000..b94223d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupResponse.js @@ -0,0 +1,69 @@ +"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.CreateDynamicTagGroupResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const CreateDynamicTagGroupResponseBody_1 = require("./CreateDynamicTagGroupResponseBody"); +class CreateDynamicTagGroupResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateDynamicTagGroupResponseBody_1.CreateDynamicTagGroupResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateDynamicTagGroupResponse = CreateDynamicTagGroupResponse; +//# sourceMappingURL=CreateDynamicTagGroupResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupResponse.js.map new file mode 100644 index 0000000..6a0a076 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateDynamicTagGroupResponse.js","sourceRoot":"","sources":["../../src/models/CreateDynamicTagGroupResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,2FAAwF;AAGxF,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IAI5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,qEAAiC;SACxC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,sEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupResponseBody.d.ts new file mode 100644 index 0000000..4aa8b4f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupResponseBody.d.ts @@ -0,0 +1,58 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateDynamicTagGroupResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call is successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The ID of the tag matching rule. + * + * @example + * 2534dc0a-e3e5-4ae1-a2fc-75ef166c**** + */ + id?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * 84AC6F0B-7945-466A-AA44-99BB5A561F86 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call is successful. Valid values: + * + * * true: The call is successful. + * * false: The call fails. + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupResponseBody.js new file mode 100644 index 0000000..ac2c5e1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupResponseBody.js @@ -0,0 +1,66 @@ +"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.CreateDynamicTagGroupResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateDynamicTagGroupResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + id: 'Id', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + id: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateDynamicTagGroupResponseBody = CreateDynamicTagGroupResponseBody; +//# sourceMappingURL=CreateDynamicTagGroupResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupResponseBody.js.map new file mode 100644 index 0000000..46fe79e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateDynamicTagGroupResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateDynamicTagGroupResponseBody.js","sourceRoot":"","sources":["../../src/models/CreateDynamicTagGroupResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,iCAAkC,SAAQ,KAAK,CAAC,KAAK;IA8ChE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,EAAE,EAAE,IAAI;YACR,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,EAAE,EAAE,QAAQ;YACZ,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,8EAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesRequest.d.ts new file mode 100644 index 0000000..04efa34 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesRequest.d.ts @@ -0,0 +1,426 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateGroupMetricRulesRequestGroupMetricRulesEscalationsCritical extends $dara.Model { + comparisonOperator?: string; + n?: string; + 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 CreateGroupMetricRulesRequestGroupMetricRulesEscalationsInfo extends $dara.Model { + comparisonOperator?: string; + n?: string; + 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 CreateGroupMetricRulesRequestGroupMetricRulesEscalationsWarn extends $dara.Model { + comparisonOperator?: string; + n?: string; + 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 CreateGroupMetricRulesRequestGroupMetricRulesEscalations extends $dara.Model { + critical?: CreateGroupMetricRulesRequestGroupMetricRulesEscalationsCritical; + info?: CreateGroupMetricRulesRequestGroupMetricRulesEscalationsInfo; + warn?: CreateGroupMetricRulesRequestGroupMetricRulesEscalationsWarn; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class CreateGroupMetricRulesRequestGroupMetricRulesLabels extends $dara.Model { + /** + * @remarks + * The tag key of the alert rule. The specified tag is contained in alert notifications. + * + * Valid values of N: 1 to 200. + * + * @example + * key1 + */ + key?: string; + /** + * @remarks + * The tag value of the alert rule. The specified tag is contained in alert notifications. + * + * Valid values of N: 1 to 200. + * + * @example + * value1 + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class CreateGroupMetricRulesRequestGroupMetricRules extends $dara.Model { + escalations?: CreateGroupMetricRulesRequestGroupMetricRulesEscalations; + /** + * @remarks + * The name of the cloud service. Valid values of N: 1 to 200. Valid value: + * + * * PolarDB: PolarDB + * * NewBGPDDoS: Anti-DDoS Pro + * * IoTDevice: IoT Platform + * * DRDS: Distributed Relational Database Service (DRDS) + * * VS: Video Surveillance System + * * AMQP: Alibaba Cloud Message Queue for AMQP + * * ADS: AnalyticDB + * * APIGateway: API Gateway + * * InternetSharedBandwidth: EIP Bandwidth Plan + * * CDN: Alibaba Cloud Content Delivery Network (CDN) + * * CEN: Cloud Enterprise Network (CEN) + * * DCDN: Dynamic Route for CDN (DCDN) + * * DDoS: Anti-DDoS + * * ECS: Elastic Compute Service (ECS) + * * DirectMail: Direct Mail + * * Elasticsearch: Elasticsearch + * * EMR: E-MapReduce (EMR) + * * ESS: Auto Scaling + * * FunctionCompute: Function Compute + * * RealtimeCompute: Realtime Compute for Apache Flink + * * GlobalAcceleration: Global Accelerator (GA) + * * Hbase: ApsaraDB for HBase + * * TSDB: Time Series Database (TSDB) + * * IPv6trans: IPv6 Translation Service + * * Kafka: Message Queue for Apache Kafka + * * Kubernetes: Container Service for Kubernetes (ACK) + * * KVstore: ApsaraDB for Redis + * * MNS: Message Service (MNS) + * * MongoDB: ApsaraDB for MongoDB + * * MQ: Message Queue + * * NAT: NAT Gateway + * * OpenAd: Open Ad + * * OpenSearch: Open Search + * * OSS: Object Storage Service (OSS) + * * PCDN: P2P CDN + * * petadata: HybridDB for MySQL + * * RDS: ApsaraDB RDS + * * SCDN: Secure CDN + * * SLB: Server Load Balancer (SLB) + * * SLS: Log Service + * * VideoLive: ApsaraVideo Live + * * VOD: ApsaraVideo VOD + * * EIP: Elastic IP Address (EIP) + * * VPN: VPN Gateway + * * AIRec: Artificial Intelligence Recommendation + * * GPDB: AnalyticDB for PostgreSQL + * * DBS: Database Backup (DBS) + * * SAG: Smart Access Gateway (SAG) + * * Memcache: ApsaraDB for Memcache + * * IOT_EDGE: Link IoT Edge + * * OCS: ApsaraDB for Memcache (previous version) + * * VPC: Express Connect + * * EHPC: Elastic High Performance Computing (E-HPC) + * * MPS: ApsaraVideo Media Processing + * * ENS: Edge Node Service (ENS) + * * MaxCompute_Prepay: MaxCompute + * * IoT_Kubernetes: Edge Application Hosting + * * CMS: CloudMonitor + * * batchcomputenew: Batch Compute + * * HBaseUE: ApsaraDB for HBase Performance-enhanced Edition + * * UIS: Ultimate Internet Service (UIS) + * * nls: Intelligent Speech Interaction + * * ots: Tablestore + * * NAS: File Storage NAS + * * ECI: Elastic Container Instance (ECI) + * * OpenAPI: OpenAPI Explorer + * * pvtzpost: Alibaba Cloud DNS PrivateZone + * * blinkonk8s: Flink on Kubernetes + * * FunctionFlow: Serverless Workflow (SWF) + * * SMC: Server Migration Center (SMC) + * * ddosbgp: Anti-DDoS Origin + * * baas: Blockchain as a Service + * * privatelink: PrivateLink + * * cds: ApsaraDB for Cassandra + * * DDH: Dedicated Host + * * RocketMQ: Message Queue for Apache RocketMQ + * * ECC: Express Cloud Connect + * * hbaseserverless: ApsaraDB for HBase Serverless Edition + * * mns_tmp: Message Service + * * hdr: Hybrid Disaster Recovery (HDR) + * * hbr: Hybrid Backup Recovery (HBR) + * * ADB: AnalyticDB for MySQL V3.0 + * * tag: Tag Service + * * GDB: Graph Database + * * WAF: Web Application Firewall (WAF) + * * hcs_sgw: Cloud Storage Gateway (CSG) + * * ipv6gateway: IPv6 Gateway + * * RDS_SAR: ApsaraDB Exclusive Host Group + * * learn: Machine Learning Platform for AI + * * ROS: Resource Orchestration Service (ROS) + * * OOS: Operation Orchestration Service (OOS) + * * bds: Data Synchronization for HBase + * * cfw: Cloud Firewall + * * ddosDip: Anti-DDoS Premium + * * datahub: DataHub + * * hologres: Hologres + * * ExpressConnect: Express Connect + * * dbfs: Database File System (DBFS) + * * clickhouse: ApsaraDB for ClickHouse + * * k8s: Container Service for Kubernetes (ACK) + * * DTS: Data Transmission Service (DTS) + * * AnycastEIP: Anycast Elastic IP Address + * * Lindorm: ApsaraDB for Lindorm + * * config: Cloud Config + * * spark: Databricks DataInsight (DDI) + * * serverless: Serverless App Engine (SAE) + * * alb: Application Load Balancer (ALB) + * * oceanbase: ApsaraDB for OceanBase + * * KMS: Key Management Service (KMS) + * * lvwang: Content Moderation + * * LinkVisual: LinkVisual + * * tair: ApsaraDB for Redis Enhanced Edition (Tair) + * * dlf: Data Lake Formation (DLF) + * * networkmonitor: Site Monitoring + * * pnc: Physical Network Change + * * AIS: Alibaba Cloud Infrastructure + * * cloudgame: Cloud Gaming Platform + * * RTC: Real-Time Communication + * * cloudbox: CloudBox + * * actiontrail: ActionTrail + * * cc: Cloud Connector + * * disk: Elastic Block Storage (EBS) + * * easygene: Genomics Computing Platform + * * cloudphone: Elastic Cloud Phone + * * BMS: Bare Metal Management Service + * * swas: Simple Application Server + * * AvailabilityMonitoring: Availability Monitoring of CloudMonitor + * + * This parameter is required. + * + * @example + * ECS + */ + category?: string; + /** + * @remarks + * The alert contact groups. Valid values of N: 1 to 200. + * + * For information about how to obtain alert contact groups, see [DescribeContactGroupList](https://help.aliyun.com/document_detail/114922.html). + * + * @example + * ECS_Group + */ + contactGroups?: string; + /** + * @remarks + * The dimension of the alert rule. Valid values of N: 1 to 200. + * + * Set the value to a set of key-value pairs, for example, `userId:120886317861****` or `instanceId:i-m5e1qg6uo38rztr4****`. + * + * @example + * [{"instanceId":"i-m5e1qg6uo38rztr4****"}] + */ + dimensions?: string; + /** + * @remarks + * The time period during which the alert rule is effective. Valid values of N: 1 to 200. + * + * @example + * 05:31-23:59 + */ + effectiveInterval?: string; + /** + * @remarks + * The subject of the alert notification email. Valid values of N: 1 to 200. + */ + emailSubject?: string; + /** + * @remarks + * The interval at which CloudMonitor checks whether the alert rule is triggered. Valid values of N: 1 to 200. + * + * Unit: seconds. The default value is the lowest frequency at which the metric is polled. + * + * > We recommend that you set the interval to the data aggregation period. If the interval is shorter than the data aggregation period, alerts cannot be triggered due to insufficient data. + * + * @example + * 60 + */ + interval?: string; + labels?: CreateGroupMetricRulesRequestGroupMetricRulesLabels[]; + /** + * @remarks + * The name of the metric. 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 [Appendix 1: 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 method that is used to handle alerts when no monitoring data is found. Valid values of N: 1 to 200. Valid value: + * + * * KEEP_LAST_STATE (default value): No operation is performed. + * * INSUFFICIENT_DATA: An alert whose content is "Insufficient data" is triggered. + * * OK: The alert rule has no active alerts. + * + * @example + * KEEP_LAST_STATE + */ + noDataPolicy?: string; + /** + * @remarks + * The time period during which the alert rule is ineffective. Valid values of N: 1 to 200. + * + * @example + * 00:00-05:30 + */ + noEffectiveInterval?: string; + /** + * @example + * { + * "NotSendOK": true + * } + */ + options?: string; + /** + * @remarks + * The aggregation period of the metric data. Valid values of N: 1 to 200. + * + * Set the `Period` parameter to an integral multiple of 60. Unit: seconds. Default value: 300. + * + * @example + * 60 + */ + period?: string; + /** + * @remarks + * The ID of the alert rule. Valid values of N: 1 to 200. + * + * This parameter is required. + * + * @example + * 456789 + */ + ruleId?: string; + /** + * @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 mute period during which new alerts are not sent even if the trigger conditions are met. Valid values of N: 1 to 200. + * + * Unit: seconds. Default value: 86400. Minimum value: 3600. + * + * @example + * 86400 + */ + silenceTime?: number; + /** + * @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 + * https://www.aliyun.com + */ + webhook?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class CreateGroupMetricRulesRequest extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * For information about how to obtain the ID of an application group, see [DescribeMonitorGroups](https://help.aliyun.com/document_detail/115032.html). + * + * This parameter is required. + * + * @example + * 123456 + */ + groupId?: number; + groupMetricRules?: CreateGroupMetricRulesRequestGroupMetricRules[]; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesRequest.js new file mode 100644 index 0000000..1c2b2d6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesRequest.js @@ -0,0 +1,264 @@ +"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.CreateGroupMetricRulesRequest = exports.CreateGroupMetricRulesRequestGroupMetricRules = exports.CreateGroupMetricRulesRequestGroupMetricRulesLabels = exports.CreateGroupMetricRulesRequestGroupMetricRulesEscalations = exports.CreateGroupMetricRulesRequestGroupMetricRulesEscalationsWarn = exports.CreateGroupMetricRulesRequestGroupMetricRulesEscalationsInfo = exports.CreateGroupMetricRulesRequestGroupMetricRulesEscalationsCritical = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateGroupMetricRulesRequestGroupMetricRulesEscalationsCritical extends $dara.Model { + static names() { + return { + comparisonOperator: 'ComparisonOperator', + n: 'N', + preCondition: 'PreCondition', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + static types() { + return { + comparisonOperator: 'string', + n: 'string', + preCondition: 'string', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateGroupMetricRulesRequestGroupMetricRulesEscalationsCritical = CreateGroupMetricRulesRequestGroupMetricRulesEscalationsCritical; +class CreateGroupMetricRulesRequestGroupMetricRulesEscalationsInfo extends $dara.Model { + static names() { + return { + comparisonOperator: 'ComparisonOperator', + n: 'N', + preCondition: 'PreCondition', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + static types() { + return { + comparisonOperator: 'string', + n: 'string', + preCondition: 'string', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateGroupMetricRulesRequestGroupMetricRulesEscalationsInfo = CreateGroupMetricRulesRequestGroupMetricRulesEscalationsInfo; +class CreateGroupMetricRulesRequestGroupMetricRulesEscalationsWarn extends $dara.Model { + static names() { + return { + comparisonOperator: 'ComparisonOperator', + n: 'N', + preCondition: 'PreCondition', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + static types() { + return { + comparisonOperator: 'string', + n: 'string', + preCondition: 'string', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateGroupMetricRulesRequestGroupMetricRulesEscalationsWarn = CreateGroupMetricRulesRequestGroupMetricRulesEscalationsWarn; +class CreateGroupMetricRulesRequestGroupMetricRulesEscalations extends $dara.Model { + static names() { + return { + critical: 'Critical', + info: 'Info', + warn: 'Warn', + }; + } + static types() { + return { + critical: CreateGroupMetricRulesRequestGroupMetricRulesEscalationsCritical, + info: CreateGroupMetricRulesRequestGroupMetricRulesEscalationsInfo, + warn: CreateGroupMetricRulesRequestGroupMetricRulesEscalationsWarn, + }; + } + 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.CreateGroupMetricRulesRequestGroupMetricRulesEscalations = CreateGroupMetricRulesRequestGroupMetricRulesEscalations; +class CreateGroupMetricRulesRequestGroupMetricRulesLabels 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.CreateGroupMetricRulesRequestGroupMetricRulesLabels = CreateGroupMetricRulesRequestGroupMetricRulesLabels; +class CreateGroupMetricRulesRequestGroupMetricRules extends $dara.Model { + static names() { + return { + escalations: 'Escalations', + category: 'Category', + contactGroups: 'ContactGroups', + dimensions: 'Dimensions', + effectiveInterval: 'EffectiveInterval', + emailSubject: 'EmailSubject', + interval: 'Interval', + labels: 'Labels', + metricName: 'MetricName', + namespace: 'Namespace', + noDataPolicy: 'NoDataPolicy', + noEffectiveInterval: 'NoEffectiveInterval', + options: 'Options', + period: 'Period', + ruleId: 'RuleId', + ruleName: 'RuleName', + silenceTime: 'SilenceTime', + webhook: 'Webhook', + }; + } + static types() { + return { + escalations: CreateGroupMetricRulesRequestGroupMetricRulesEscalations, + category: 'string', + contactGroups: 'string', + dimensions: 'string', + effectiveInterval: 'string', + emailSubject: 'string', + interval: 'string', + labels: { 'type': 'array', 'itemType': CreateGroupMetricRulesRequestGroupMetricRulesLabels }, + metricName: 'string', + namespace: 'string', + noDataPolicy: 'string', + noEffectiveInterval: 'string', + options: 'string', + period: '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.CreateGroupMetricRulesRequestGroupMetricRules = CreateGroupMetricRulesRequestGroupMetricRules; +class CreateGroupMetricRulesRequest extends $dara.Model { + static names() { + return { + groupId: 'GroupId', + groupMetricRules: 'GroupMetricRules', + regionId: 'RegionId', + }; + } + static types() { + return { + groupId: 'number', + groupMetricRules: { 'type': 'array', 'itemType': CreateGroupMetricRulesRequestGroupMetricRules }, + regionId: 'string', + }; + } + validate() { + if (Array.isArray(this.groupMetricRules)) { + $dara.Model.validateArray(this.groupMetricRules); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateGroupMetricRulesRequest = CreateGroupMetricRulesRequest; +//# sourceMappingURL=CreateGroupMetricRulesRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesRequest.js.map new file mode 100644 index 0000000..fe4db22 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateGroupMetricRulesRequest.js","sourceRoot":"","sources":["../../src/models/CreateGroupMetricRulesRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,gEAAiE,SAAQ,KAAK,CAAC,KAAK;IAO/F,MAAM,CAAC,KAAK;QACV,OAAO;YACL,kBAAkB,EAAE,oBAAoB;YACxC,CAAC,EAAE,GAAG;YACN,YAAY,EAAE,cAAc;YAC5B,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,kBAAkB,EAAE,QAAQ;YAC5B,CAAC,EAAE,QAAQ;YACX,YAAY,EAAE,QAAQ;YACtB,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;YACnB,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApCD,4IAoCC;AAED,MAAa,4DAA6D,SAAQ,KAAK,CAAC,KAAK;IAO3F,MAAM,CAAC,KAAK;QACV,OAAO;YACL,kBAAkB,EAAE,oBAAoB;YACxC,CAAC,EAAE,GAAG;YACN,YAAY,EAAE,cAAc;YAC5B,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,kBAAkB,EAAE,QAAQ;YAC5B,CAAC,EAAE,QAAQ;YACX,YAAY,EAAE,QAAQ;YACtB,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;YACnB,KA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AAC;IACb,CAAC;CACF;AA1VD,sGA0VC;AAED,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IAe5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,gBAAgB,EAAE,kBAAkB;YACpC,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,gBAAgB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,6CAA6C,EAAE;YAChG,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAAE,CAAC;YACxC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QACnD,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzCD,sEAyCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesResponse.d.ts new file mode 100644 index 0000000..9870019 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { CreateGroupMetricRulesResponseBody } from "./CreateGroupMetricRulesResponseBody"; +export declare class CreateGroupMetricRulesResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: CreateGroupMetricRulesResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesResponse.js new file mode 100644 index 0000000..f1a0de9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesResponse.js @@ -0,0 +1,69 @@ +"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.CreateGroupMetricRulesResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const CreateGroupMetricRulesResponseBody_1 = require("./CreateGroupMetricRulesResponseBody"); +class CreateGroupMetricRulesResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateGroupMetricRulesResponseBody_1.CreateGroupMetricRulesResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateGroupMetricRulesResponse = CreateGroupMetricRulesResponse; +//# sourceMappingURL=CreateGroupMetricRulesResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesResponse.js.map new file mode 100644 index 0000000..50f515d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateGroupMetricRulesResponse.js","sourceRoot":"","sources":["../../src/models/CreateGroupMetricRulesResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,6FAA0F;AAG1F,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAI7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,uEAAkC;SACzC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,wEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesResponseBody.d.ts new file mode 100644 index 0000000..aed8165 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesResponseBody.d.ts @@ -0,0 +1,125 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateGroupMetricRulesResponseBodyResourcesAlertResult extends $dara.Model { + /** + * @remarks + * The status code that is returned for the alert rule. + * + * > The status code 200 indicates that the call is successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The error message that is returned for the alert rule. + * + * @example + * Metric not found. + */ + message?: string; + /** + * @remarks + * The ID of the alert rule. + * + * @example + * 456789 + */ + ruleId?: string; + /** + * @remarks + * The name of the alert rule. + * + * @example + * ECS_Rule1 + */ + ruleName?: string; + /** + * @remarks + * Indicates whether the alert rule was created. Valid value: + * + * - true: The alert rule was created. + * - false: The alert rule failed to be created. + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class CreateGroupMetricRulesResponseBodyResources extends $dara.Model { + alertResult?: CreateGroupMetricRulesResponseBodyResourcesAlertResult[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class CreateGroupMetricRulesResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call is successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * 461CF2CD-2FC3-4B26-8645-7BD27E7D0F1D + */ + requestId?: string; + /** + * @remarks + * The details of the alert rules. + */ + resources?: CreateGroupMetricRulesResponseBodyResources; + /** + * @remarks + * Indicates whether the call is successful. Valid value: + * + * - true: The call is successful. + * - false: The call fails. + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesResponseBody.js new file mode 100644 index 0000000..e8dcf1a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesResponseBody.js @@ -0,0 +1,118 @@ +"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.CreateGroupMetricRulesResponseBody = exports.CreateGroupMetricRulesResponseBodyResources = exports.CreateGroupMetricRulesResponseBodyResourcesAlertResult = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateGroupMetricRulesResponseBodyResourcesAlertResult extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + ruleId: 'RuleId', + ruleName: 'RuleName', + success: 'Success', + }; + } + static types() { + return { + code: 'number', + message: 'string', + ruleId: 'string', + ruleName: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateGroupMetricRulesResponseBodyResourcesAlertResult = CreateGroupMetricRulesResponseBodyResourcesAlertResult; +class CreateGroupMetricRulesResponseBodyResources extends $dara.Model { + static names() { + return { + alertResult: 'AlertResult', + }; + } + static types() { + return { + alertResult: { 'type': 'array', 'itemType': CreateGroupMetricRulesResponseBodyResourcesAlertResult }, + }; + } + validate() { + if (Array.isArray(this.alertResult)) { + $dara.Model.validateArray(this.alertResult); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateGroupMetricRulesResponseBodyResources = CreateGroupMetricRulesResponseBodyResources; +class CreateGroupMetricRulesResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + resources: 'Resources', + success: 'Success', + }; + } + static types() { + return { + code: 'number', + message: 'string', + requestId: 'string', + resources: CreateGroupMetricRulesResponseBodyResources, + success: 'boolean', + }; + } + validate() { + if (this.resources && typeof this.resources.validate === 'function') { + this.resources.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateGroupMetricRulesResponseBody = CreateGroupMetricRulesResponseBody; +//# sourceMappingURL=CreateGroupMetricRulesResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesResponseBody.js.map new file mode 100644 index 0000000..0321719 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMetricRulesResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateGroupMetricRulesResponseBody.js","sourceRoot":"","sources":["../../src/models/CreateGroupMetricRulesResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,sDAAuD,SAAQ,KAAK,CAAC,KAAK;IA8CrF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,UAAU;YACpB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,QAAQ;YAClB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,wHAyEC;AAED,MAAa,2CAA4C,SAAQ,KAAK,CAAC,KAAK;IAE1E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;SAC3B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,sDAAsD,EAAE;SACrG,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;YACnC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC9C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxBD,kGAwBC;AAED,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;IA2CjE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,SAAS,EAAE,2CAA2C;YACtD,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,SAAS,IAAI,OAAQ,IAAI,CAAC,SAAiB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YAC3E,IAAI,CAAC,SAAiB,CAAC,QAAQ,EAAE,CAAC;QACrC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,gFAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessRequest.d.ts new file mode 100644 index 0000000..25371bb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessRequest.d.ts @@ -0,0 +1,322 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateGroupMonitoringAgentProcessRequestAlertConfigTargetList extends $dara.Model { + /** + * @remarks + * The Alibaba Cloud Resource Name (ARN) of the resource. + * + * For more information about how to query the ARN of a resource, see [DescribeMetricRuleTargets](https://help.aliyun.com/document_detail/121592.html). + * + * Format: `acs:{Service name abbreviation}:{regionId}:{userId}:/{Resource type}/{Resource name}/message`. Example: `acs:mns:cn-hangzhou:120886317861****:/queues/test123/message`. Fields: + * + * * {Service name abbreviation}: the abbreviation of the service name. Set the value to Simple Message Queue (formerly MNS) (SMQ). + * + * * {userId}: the ID of the Alibaba Cloud account. + * + * * {regionId}: the region ID of the SMQ queue or topic. + * + * * {Resource type}: the type of the resource that triggers the alert. Valid values: + * + * * **queues** + * * **topics** + * + * * {Resource name}: the resource name. + * + * * If the resource type is **queues**, the resource name is the queue name. + * * If the resource type is **topics**, the resource name is the topic name. + * + * @example + * acs:mns:cn-hangzhou:120886317861****:/queues/test/message + */ + arn?: string; + /** + * @remarks + * The ID of the resource for which alerts are triggered. + * + * For more information about how to obtain the ID of a resource for which alerts are triggered, see [DescribeMetricRuleTargets](https://help.aliyun.com/document_detail/121592.html). + * + * @example + * 1 + */ + id?: string; + /** + * @remarks + * The parameters of the alert callback. The parameters are in the JSON format. + * + * @example + * {"customField1":"value1","customField2":"$.name"} + */ + jsonParams?: string; + /** + * @remarks + * The alert level. Valid values: + * + * * INFO + * * WARN + * * CRITICAL + * + * @example + * ["INFO", "WARN", "CRITICAL"] + */ + level?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class CreateGroupMonitoringAgentProcessRequestAlertConfig extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the previous monitoring cycle + * + * Valid values of N: 1 to 3. + * + * This parameter is required. + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The period of time during which the alert rule is effective. + * + * Valid values of N: 1 to 3. + * + * @example + * 00:00-23:59 + */ + effectiveInterval?: string; + /** + * @remarks + * The alert level. Valid values: + * + * * critical (default) + * * warn + * * info + * + * Valid values of N: 1 to 3. + * + * This parameter is required. + * + * @example + * warn + */ + escalationsLevel?: string; + /** + * @remarks + * This parameter is deprecated. + * + * @example + * 00:00-23:59 + */ + noEffectiveInterval?: string; + /** + * @remarks + * The mute period during which new alert notifications are not sent even if the trigger conditions are met. Unit: seconds. Minimum value: 3600, which is equivalent to one hour. Default value: 86400, which is equivalent to one day. + * + * Valid values of N: 1 to 3. + * + * > Only one alert notification is sent during a mute period even if the metric value exceeds the alert threshold during consecutive checks. + * + * @example + * 86400 + */ + silenceTime?: string; + /** + * @remarks + * The statistical aggregation method that is used to calculate the metric values. + * + * Valid values of N: 1 to 3. + * + * > Set the value to Average. + * + * This parameter is required. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The alert triggers. + */ + targetList?: CreateGroupMonitoringAgentProcessRequestAlertConfigTargetList[]; + /** + * @remarks + * The alert threshold. + * + * Valid values of N: 1 to 3. + * + * This parameter is required. + * + * @example + * 5 + */ + threshold?: string; + /** + * @remarks + * The number of times for which the threshold can be consecutively exceeded. Default value: 3. + * + * Valid values of N: 1 to 3. + * + * > A metric triggers an alert only after the metric value reaches the threshold consecutively for the specified times. + * + * This parameter is required. + * + * @example + * 3 + */ + times?: string; + /** + * @remarks + * The callback URL. + * + * Valid values of N: 1 to 3. + * + * @example + * http://www.aliyun.com + */ + webhook?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class CreateGroupMonitoringAgentProcessRequestMatchExpress extends $dara.Model { + /** + * @remarks + * The matching condition. Valid values: + * + * * all (default value): matches all + * * startWith: starts with a prefix + * * endWith: ends with a suffix + * * contains: contains + * * notContains: does not contain + * * equals: equals + * + * Valid values of N: 1 to 3. + * + * @example + * startWith + */ + function?: string; + /** + * @remarks + * The criteria based on which the instances are matched. + * + * Valid values of N: 1 to 3. + * + * > Set the value to name. The value name indicates that the instances are matched based on the instance name. + * + * @example + * name1 + */ + name?: string; + /** + * @remarks + * The keyword used to match the instance name. + * + * Valid values of N: 1 to 3. + * + * @example + * portalHost + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class CreateGroupMonitoringAgentProcessRequest extends $dara.Model { + /** + * @remarks + * The alert rule configurations. + * + * Valid values of N: 1 to 3. + * + * This parameter is required. + */ + alertConfig?: CreateGroupMonitoringAgentProcessRequestAlertConfig[]; + /** + * @remarks + * The ID of the application group. + * + * For more information about how to obtain the ID of an application group, see [DescribeMonitorGroups](https://help.aliyun.com/document_detail/115032.html). + * + * This parameter is required. + * + * @example + * 123456 + */ + groupId?: string; + /** + * @remarks + * The expressions used to match instances. + * + * Valid values of N: 1 to 3. + */ + matchExpress?: CreateGroupMonitoringAgentProcessRequestMatchExpress[]; + /** + * @remarks + * The logical operator used between conditional expressions that are used to match instances. Valid values: + * + * * all + * * and + * * or + * + * @example + * and + */ + matchExpressFilterRelation?: string; + /** + * @remarks + * The process name. + * + * This parameter is required. + * + * @example + * test1 + */ + processName?: string; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessRequest.js new file mode 100644 index 0000000..ce2f6dc --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessRequest.js @@ -0,0 +1,162 @@ +"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.CreateGroupMonitoringAgentProcessRequest = exports.CreateGroupMonitoringAgentProcessRequestMatchExpress = exports.CreateGroupMonitoringAgentProcessRequestAlertConfig = exports.CreateGroupMonitoringAgentProcessRequestAlertConfigTargetList = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateGroupMonitoringAgentProcessRequestAlertConfigTargetList extends $dara.Model { + static names() { + return { + arn: 'Arn', + id: 'Id', + jsonParams: 'JsonParams', + level: 'Level', + }; + } + static types() { + return { + arn: 'string', + id: 'string', + jsonParams: 'string', + level: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateGroupMonitoringAgentProcessRequestAlertConfigTargetList = CreateGroupMonitoringAgentProcessRequestAlertConfigTargetList; +class CreateGroupMonitoringAgentProcessRequestAlertConfig extends $dara.Model { + static names() { + return { + comparisonOperator: 'ComparisonOperator', + effectiveInterval: 'EffectiveInterval', + escalationsLevel: 'EscalationsLevel', + noEffectiveInterval: 'NoEffectiveInterval', + silenceTime: 'SilenceTime', + statistics: 'Statistics', + targetList: 'TargetList', + threshold: 'Threshold', + times: 'Times', + webhook: 'Webhook', + }; + } + static types() { + return { + comparisonOperator: 'string', + effectiveInterval: 'string', + escalationsLevel: 'string', + noEffectiveInterval: 'string', + silenceTime: 'string', + statistics: 'string', + targetList: { 'type': 'array', 'itemType': CreateGroupMonitoringAgentProcessRequestAlertConfigTargetList }, + threshold: 'string', + times: 'string', + webhook: 'string', + }; + } + validate() { + if (Array.isArray(this.targetList)) { + $dara.Model.validateArray(this.targetList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateGroupMonitoringAgentProcessRequestAlertConfig = CreateGroupMonitoringAgentProcessRequestAlertConfig; +class CreateGroupMonitoringAgentProcessRequestMatchExpress extends $dara.Model { + static names() { + return { + function: 'Function', + name: 'Name', + value: 'Value', + }; + } + static types() { + return { + function: 'string', + name: 'string', + value: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateGroupMonitoringAgentProcessRequestMatchExpress = CreateGroupMonitoringAgentProcessRequestMatchExpress; +class CreateGroupMonitoringAgentProcessRequest extends $dara.Model { + static names() { + return { + alertConfig: 'AlertConfig', + groupId: 'GroupId', + matchExpress: 'MatchExpress', + matchExpressFilterRelation: 'MatchExpressFilterRelation', + processName: 'ProcessName', + regionId: 'RegionId', + }; + } + static types() { + return { + alertConfig: { 'type': 'array', 'itemType': CreateGroupMonitoringAgentProcessRequestAlertConfig }, + groupId: 'string', + matchExpress: { 'type': 'array', 'itemType': CreateGroupMonitoringAgentProcessRequestMatchExpress }, + matchExpressFilterRelation: 'string', + processName: 'string', + regionId: 'string', + }; + } + validate() { + if (Array.isArray(this.alertConfig)) { + $dara.Model.validateArray(this.alertConfig); + } + if (Array.isArray(this.matchExpress)) { + $dara.Model.validateArray(this.matchExpress); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateGroupMonitoringAgentProcessRequest = CreateGroupMonitoringAgentProcessRequest; +//# sourceMappingURL=CreateGroupMonitoringAgentProcessRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessRequest.js.map new file mode 100644 index 0000000..f375ee9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateGroupMonitoringAgentProcessRequest.js","sourceRoot":"","sources":["../../src/models/CreateGroupMonitoringAgentProcessRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6DAA8D,SAAQ,KAAK,CAAC,KAAK;IA2D5F,MAAM,CAAC,KAAK;QACV,OAAO;YACL,GAAG,EAAE,KAAK;YACV,EAAE,EAAE,IAAI;YACR,UAAU,EAAE,YAAY;YACxB,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,GAAG,EAAE,QAAQ;YACb,EAAE,EAAE,QAAQ;YACZ,UAAU,EAAE,QAAQ;YACpB,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,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AC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAvFD,4FAuFC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessResponse.d.ts new file mode 100644 index 0000000..c69a82d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { CreateGroupMonitoringAgentProcessResponseBody } from "./CreateGroupMonitoringAgentProcessResponseBody"; +export declare class CreateGroupMonitoringAgentProcessResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: CreateGroupMonitoringAgentProcessResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessResponse.js new file mode 100644 index 0000000..e877433 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessResponse.js @@ -0,0 +1,69 @@ +"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.CreateGroupMonitoringAgentProcessResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const CreateGroupMonitoringAgentProcessResponseBody_1 = require("./CreateGroupMonitoringAgentProcessResponseBody"); +class CreateGroupMonitoringAgentProcessResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateGroupMonitoringAgentProcessResponseBody_1.CreateGroupMonitoringAgentProcessResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateGroupMonitoringAgentProcessResponse = CreateGroupMonitoringAgentProcessResponse; +//# sourceMappingURL=CreateGroupMonitoringAgentProcessResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessResponse.js.map new file mode 100644 index 0000000..3d07d9f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateGroupMonitoringAgentProcessResponse.js","sourceRoot":"","sources":["../../src/models/CreateGroupMonitoringAgentProcessResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,mHAAgH;AAGhH,MAAa,yCAA0C,SAAQ,KAAK,CAAC,KAAK;IAIxE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,6FAA6C;SACpD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,8FAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessResponseBody.d.ts new file mode 100644 index 0000000..270ae9f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessResponseBody.d.ts @@ -0,0 +1,75 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateGroupMonitoringAgentProcessResponseBodyResource extends $dara.Model { + /** + * @remarks + * The ID of the group process. + * + * @example + * 7F2B0024-4F21-48B9-A764-211CEC48**** + */ + groupProcessId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class CreateGroupMonitoringAgentProcessResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the call is successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 3F6150F9-45C7-43F9-9578-A58B2E726C90 + */ + requestId?: string; + /** + * @remarks + * The group process information. + */ + resource?: CreateGroupMonitoringAgentProcessResponseBodyResource; + /** + * @remarks + * Indicates whether the call is successful. Valid values: + * + * * true: The call is successful. + * * false: The call fails. + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessResponseBody.js new file mode 100644 index 0000000..dc04fb1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessResponseBody.js @@ -0,0 +1,88 @@ +"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.CreateGroupMonitoringAgentProcessResponseBody = exports.CreateGroupMonitoringAgentProcessResponseBodyResource = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateGroupMonitoringAgentProcessResponseBodyResource extends $dara.Model { + static names() { + return { + groupProcessId: 'GroupProcessId', + }; + } + static types() { + return { + groupProcessId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateGroupMonitoringAgentProcessResponseBodyResource = CreateGroupMonitoringAgentProcessResponseBodyResource; +class CreateGroupMonitoringAgentProcessResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + resource: 'Resource', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + resource: CreateGroupMonitoringAgentProcessResponseBodyResource, + success: 'boolean', + }; + } + validate() { + if (this.resource && typeof this.resource.validate === 'function') { + this.resource.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateGroupMonitoringAgentProcessResponseBody = CreateGroupMonitoringAgentProcessResponseBody; +//# sourceMappingURL=CreateGroupMonitoringAgentProcessResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessResponseBody.js.map new file mode 100644 index 0000000..d14bc79 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateGroupMonitoringAgentProcessResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateGroupMonitoringAgentProcessResponseBody.js","sourceRoot":"","sources":["../../src/models/CreateGroupMonitoringAgentProcessResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qDAAsD,SAAQ,KAAK,CAAC,KAAK;IASpF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,cAAc,EAAE,gBAAgB;SACjC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,cAAc,EAAE,QAAQ;SACzB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5BD,sHA4BC;AAED,MAAa,6CAA8C,SAAQ,KAAK,CAAC,KAAK;IA2C5E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,QAAQ,EAAE,UAAU;YACpB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,QAAQ,EAAE,qDAAqD;YAC/D,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,QAAQ,IAAI,OAAQ,IAAI,CAAC,QAAgB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACzE,IAAI,CAAC,QAAgB,CAAC,QAAQ,EAAE,CAAC;QACpC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,sGAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityRequest.d.ts new file mode 100644 index 0000000..f2a70ea --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityRequest.d.ts @@ -0,0 +1,389 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateHostAvailabilityRequestAlertConfig extends $dara.Model { + /** + * @remarks + * The end of the time range during which the alert rule is effective. Valid values: 0 to 23. + * + * For example, if the `AlertConfig.StartTime` parameter is set to 0 and the `AlertConfig.EndTime` parameter is set to 22, the alert rule is effective from 00:00:00 to 22:00:00. + * + * > Alert notifications are sent based on the specified threshold only if the alert rule is effective. + * + * @example + * 22 + */ + endTime?: number; + /** + * @remarks + * The alert notification methods. Valid values: + * + * 0: Alert notifications are sent by using emails and DingTalk chatbots. + * + * This parameter is required. + * + * @example + * 0 + */ + notifyType?: number; + /** + * @remarks + * The mute period during which new alerts are not sent even if the trigger conditions are met. Unit: seconds. Default value: 86400. The default value indicates one day. + * + * @example + * 86400 + */ + silenceTime?: number; + /** + * @remarks + * The beginning of the time range during which the alert rule is effective. Valid values: 0 to 23. + * + * For example, if the `AlertConfig.StartTime` parameter is set to 0 and the `AlertConfig.EndTime` parameter is set to 22, the alert rule is effective from 00:00:00 to 22:00:00. + * + * > Alert notifications are sent based on the specified threshold only if the alert rule is effective. + * + * @example + * 0 + */ + startTime?: number; + /** + * @remarks + * The callback URL. + * + * @example + * https://www.aliyun.com/webhook.json + */ + webHook?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class CreateHostAvailabilityRequestTaskOption extends $dara.Model { + /** + * @remarks + * The header of the HTTP request. Format: `Parameter name:Parameter value`. Separate multiple parameters with carriage return characters. Example: + * + * params1:value1 + * params2:value2 + * + * @example + * token:testTokenValue + */ + httpHeader?: string; + /** + * @remarks + * The HTTP request method. Valid values: + * + * * GET + * * POST + * * HEAD + * + * > This parameter must be specified when TaskType is set to HTTP. + * + * @example + * GET + */ + httpMethod?: string; + /** + * @remarks + * The method to trigger an alert. The alert can be triggered based on whether the specified alert rule is included in the response body. Valid values: + * + * * true: If the HTTP response body includes the alert rule, an alert is triggered. + * * false: If the HTTP response does not include the alert rule, an alert is triggered. + * + * > This parameter must be specified when TaskType is set to HTTP. + * + * @example + * true + */ + httpNegative?: boolean; + /** + * @remarks + * The content of the HTTP POST request. + * + * @example + * params1=paramsValue1 + */ + httpPostContent?: string; + /** + * @remarks + * The character set that is used in the HTTP response. + * + * > Only UTF-8 is supported. + * + * @example + * UTF-8 + */ + httpResponseCharset?: string; + /** + * @remarks + * The response to the HTTP request. + * + * @example + * ok + */ + httpResponseMatchContent?: string; + /** + * @remarks + * The URI that you want to monitor. This parameter is required if the TaskType parameter is set to HTTP or Telnet. + * + * @example + * https://www.aliyun.com + */ + httpURI?: string; + /** + * @remarks + * The interval at which detection requests are sent. Unit: seconds. Valid values: 15, 30, 60, 120, 300, 900, 1800, and 3600. + * + * > This parameter is available only for the CloudMonitor agent V3.5.1 or later. + * + * @example + * 60 + */ + interval?: number; + /** + * @remarks + * The domain name or IP address that you want to monitor. + * + * > This parameter is required if the TaskType parameter is set to PING. + * + * @example + * www.aliyun.com + */ + telnetOrPingHost?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class CreateHostAvailabilityRequestAlertConfigEscalationList extends $dara.Model { + /** + * @remarks + * The method used to calculate the metric values that trigger alerts. Valid values of N: 1 to 21. Valid values: + * + * * HttpStatus: Value + * * HttpLatency: Average + * * TelnetStatus: Value + * * TelnetLatency: Average + * * PingLostRate: Average + * + * > The value Value indicates the original value and is used for metrics such as status codes. The value Average indicates the average value and is used for metrics such as the latency and packet loss rate. + * + * @example + * Value + */ + aggregate?: string; + /** + * @remarks + * The metric for which the alert feature is enabled. Valid values of N: 1 to 21. Valid values: + * + * * HttpStatus: HTTP status code + * * HttpLatency: HTTP response time + * * TelnetStatus: Telnet status code + * * TelnetLatency: Telnet response time + * * PingLostRate: Ping packet loss rate + * + * This parameter is required. + * + * @example + * HttpStatus + */ + metricName?: string; + /** + * @remarks + * The comparison operator that is used in the alert rule. Valid values of N: 1 to 21. Valid values: + * + * * `>` + * * `>=` + * * `<` + * * `<=` + * * `=` + * + * @example + * > + */ + operator?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before an alert is triggered. Valid values of N: 1 to 21. + * + * @example + * 3 + */ + times?: number; + /** + * @remarks + * The alert threshold. Valid values of N: 1 to 21. + * + * @example + * 90 + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class CreateHostAvailabilityRequestAlertConfigTargetList extends $dara.Model { + /** + * @remarks + * The Alibaba Cloud Resource Name (ARN) of the resource. Format: `acs:{Service name abbreviation}:{regionId}:{userId}:/{Resource type}/{Resource name}/message`. Example: `acs:mns:cn-hangzhou:120886317861****:/queues/test123/message`. Fields: + * + * * {Service name abbreviation}: the abbreviation of the service name. Set the value to Simple Message Queue (formerly MNS) (SMQ). + * + * * {userId}: the ID of the Alibaba Cloud account. + * + * * {regionId}: the region ID of the SMQ queue or topic. + * + * * {Resource type}: the type of the resource for which alerts are triggered. Valid values: + * + * * **queues** + * * **topics** + * + * * {Resource name}: the resource name. + * + * * If the resource type is **queues**, the resource name is the queue name. + * * If the resource type is **topics**, the resource name is the topic name. + * + * @example + * acs:mns:cn-hangzhou:120886317861****:/queues/test/message + */ + arn?: string; + /** + * @remarks + * The ID of the resource for which alerts are triggered. + * + * @example + * 1 + */ + id?: string; + /** + * @remarks + * The parameters of the alert callback. The parameters are in the JSON format. + * + * @example + * {"customField1":"value1","customField2":"$.name"} + */ + jsonParams?: string; + /** + * @remarks + * The alert level. Valid values: + * + * * INFO + * * WARN + * * CRITICAL + * + * @example + * ["INFO", "WARN", "CRITICAL"] + */ + level?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class CreateHostAvailabilityRequest extends $dara.Model { + alertConfig?: CreateHostAvailabilityRequestAlertConfig; + taskOption?: CreateHostAvailabilityRequestTaskOption; + /** + * @remarks + * None + * + * This parameter is required. + */ + alertConfigEscalationList?: CreateHostAvailabilityRequestAlertConfigEscalationList[]; + /** + * @remarks + * The resources for which alerts are triggered. + */ + alertConfigTargetList?: CreateHostAvailabilityRequestAlertConfigTargetList[]; + /** + * @remarks + * The ID of the application group. + * + * This parameter is required. + * + * @example + * 123456 + */ + groupId?: number; + /** + * @remarks + * The ECS instances that are monitored. Valid values of N: 1 to 21. + * + * > This parameter must be specified when `TaskScope` is set to `GROUP_SPEC_INSTANCE`. + * + * @example + * i-absdfkwl321**** + */ + instanceList?: string[]; + regionId?: string; + /** + * @remarks + * The name of the availability monitoring task. The name must be 4 to 100 characters in length, and can contain letters, digits, and underscores (_). + * + * This parameter is required. + * + * @example + * task1 + */ + taskName?: string; + /** + * @remarks + * The range of instances that are monitored by the availability monitoring task. Valid values: + * + * * GROUP: All ECS instances in the application group are monitored. + * * GROUP_SPEC_INSTANCE: Specified ECS instances in the application group are monitored. The TaskScope parameter must be used in combination with the InstanceList parameter. The InstanceList parameter specifies the ECS instances to be monitored. + * + * @example + * GROUP + */ + taskScope?: string; + /** + * @remarks + * The monitoring type of the availability monitoring task. Valid values: + * + * * PING + * * TELNET + * * HTTP + * + * This parameter is required. + * + * @example + * HTTP + */ + taskType?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityRequest.js new file mode 100644 index 0000000..799b266 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityRequest.js @@ -0,0 +1,205 @@ +"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.CreateHostAvailabilityRequest = exports.CreateHostAvailabilityRequestAlertConfigTargetList = exports.CreateHostAvailabilityRequestAlertConfigEscalationList = exports.CreateHostAvailabilityRequestTaskOption = exports.CreateHostAvailabilityRequestAlertConfig = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateHostAvailabilityRequestAlertConfig extends $dara.Model { + static names() { + return { + endTime: 'EndTime', + notifyType: 'NotifyType', + silenceTime: 'SilenceTime', + startTime: 'StartTime', + webHook: 'WebHook', + }; + } + static types() { + return { + endTime: 'number', + notifyType: 'number', + silenceTime: 'number', + startTime: 'number', + webHook: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateHostAvailabilityRequestAlertConfig = CreateHostAvailabilityRequestAlertConfig; +class CreateHostAvailabilityRequestTaskOption extends $dara.Model { + static names() { + return { + httpHeader: 'HttpHeader', + httpMethod: 'HttpMethod', + httpNegative: 'HttpNegative', + httpPostContent: 'HttpPostContent', + httpResponseCharset: 'HttpResponseCharset', + httpResponseMatchContent: 'HttpResponseMatchContent', + httpURI: 'HttpURI', + interval: 'Interval', + telnetOrPingHost: 'TelnetOrPingHost', + }; + } + static types() { + return { + httpHeader: 'string', + httpMethod: 'string', + httpNegative: 'boolean', + httpPostContent: 'string', + httpResponseCharset: 'string', + httpResponseMatchContent: 'string', + httpURI: 'string', + interval: 'number', + telnetOrPingHost: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateHostAvailabilityRequestTaskOption = CreateHostAvailabilityRequestTaskOption; +class CreateHostAvailabilityRequestAlertConfigEscalationList extends $dara.Model { + static names() { + return { + aggregate: 'Aggregate', + metricName: 'MetricName', + operator: 'Operator', + times: 'Times', + value: 'Value', + }; + } + static types() { + return { + aggregate: 'string', + metricName: 'string', + operator: 'string', + times: 'number', + value: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateHostAvailabilityRequestAlertConfigEscalationList = CreateHostAvailabilityRequestAlertConfigEscalationList; +class CreateHostAvailabilityRequestAlertConfigTargetList extends $dara.Model { + static names() { + return { + arn: 'Arn', + id: 'Id', + jsonParams: 'JsonParams', + level: 'Level', + }; + } + static types() { + return { + arn: 'string', + id: 'string', + jsonParams: 'string', + level: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateHostAvailabilityRequestAlertConfigTargetList = CreateHostAvailabilityRequestAlertConfigTargetList; +class CreateHostAvailabilityRequest extends $dara.Model { + static names() { + return { + alertConfig: 'AlertConfig', + taskOption: 'TaskOption', + alertConfigEscalationList: 'AlertConfigEscalationList', + alertConfigTargetList: 'AlertConfigTargetList', + groupId: 'GroupId', + instanceList: 'InstanceList', + regionId: 'RegionId', + taskName: 'TaskName', + taskScope: 'TaskScope', + taskType: 'TaskType', + }; + } + static types() { + return { + alertConfig: CreateHostAvailabilityRequestAlertConfig, + taskOption: CreateHostAvailabilityRequestTaskOption, + alertConfigEscalationList: { 'type': 'array', 'itemType': CreateHostAvailabilityRequestAlertConfigEscalationList }, + alertConfigTargetList: { 'type': 'array', 'itemType': CreateHostAvailabilityRequestAlertConfigTargetList }, + groupId: 'number', + instanceList: { 'type': 'array', 'itemType': 'string' }, + regionId: 'string', + taskName: 'string', + taskScope: 'string', + taskType: 'string', + }; + } + validate() { + if (this.alertConfig && typeof this.alertConfig.validate === 'function') { + this.alertConfig.validate(); + } + if (this.taskOption && typeof this.taskOption.validate === 'function') { + this.taskOption.validate(); + } + if (Array.isArray(this.alertConfigEscalationList)) { + $dara.Model.validateArray(this.alertConfigEscalationList); + } + if (Array.isArray(this.alertConfigTargetList)) { + $dara.Model.validateArray(this.alertConfigTargetList); + } + if (Array.isArray(this.instanceList)) { + $dara.Model.validateArray(this.instanceList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateHostAvailabilityRequest = CreateHostAvailabilityRequest; +//# sourceMappingURL=CreateHostAvailabilityRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityRequest.js.map new file mode 100644 index 0000000..5391056 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateHostAvailabilityRequest.js","sourceRoot":"","sources":["../../src/models/CreateHostAvailabilityRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wCAAyC,SAAQ,KAAK,CAAC,KAAK;IAqDvE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,WAAW,EAAE,aAAa;YAC1B,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;YACpB,WAAW,EAAE,QAAQ;YACrB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAhFD,4FAgFC;AAED,MAAa,uCAAwC,SAAQ,KAAK,CAAC,KAAK;IA6FtE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,UAAU,EAAE,YAAY;YACxB,YAAY,EAAE,cAAc;YAC5B,eAAe,EAAE,iBAAiB;YAClC,mBAAmB,EAAE,qBAAqB;YAC1C,wBAAwB,EAAE,0BAA0B;YACpD,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,UAAU;YACpB,gBAAgB,EAAE,kBAAkB;SACrC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,UAAU,EAAE,QAAQ;YACpB,YAAY,EAAE,SAAS;YACvB,eAAe,EAAE,QAAQ;YACzB,mBAAmB,EAAE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kB,CAAC,QAAQ,EAAE,CAAC;QACtC,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,CAAC,EAAE,CAAC;YACjD,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;QAC5D,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,CAAC,EAAE,CAAC;YAC7C,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;QACxD,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;YACpC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC/C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA3HD,sEA2HC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityResponse.d.ts new file mode 100644 index 0000000..adc5cfb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { CreateHostAvailabilityResponseBody } from "./CreateHostAvailabilityResponseBody"; +export declare class CreateHostAvailabilityResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: CreateHostAvailabilityResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityResponse.js new file mode 100644 index 0000000..0be7ac6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityResponse.js @@ -0,0 +1,69 @@ +"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.CreateHostAvailabilityResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const CreateHostAvailabilityResponseBody_1 = require("./CreateHostAvailabilityResponseBody"); +class CreateHostAvailabilityResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateHostAvailabilityResponseBody_1.CreateHostAvailabilityResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateHostAvailabilityResponse = CreateHostAvailabilityResponse; +//# sourceMappingURL=CreateHostAvailabilityResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityResponse.js.map new file mode 100644 index 0000000..a36b9df --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateHostAvailabilityResponse.js","sourceRoot":"","sources":["../../src/models/CreateHostAvailabilityResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,6FAA0F;AAG1F,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAI7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,uEAAkC;SACzC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,wEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityResponseBody.d.ts new file mode 100644 index 0000000..ac95adc --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityResponseBody.d.ts @@ -0,0 +1,58 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateHostAvailabilityResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * ACBDBB40-DFB6-4F4C-8957-51FFB233969C + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The ID of the availability monitoring task. + * + * @example + * 12345 + */ + taskId?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityResponseBody.js new file mode 100644 index 0000000..33c8ee0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityResponseBody.js @@ -0,0 +1,66 @@ +"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.CreateHostAvailabilityResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateHostAvailabilityResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + taskId: 'TaskId', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + taskId: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateHostAvailabilityResponseBody = CreateHostAvailabilityResponseBody; +//# sourceMappingURL=CreateHostAvailabilityResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityResponseBody.js.map new file mode 100644 index 0000000..4b813aa --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHostAvailabilityResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateHostAvailabilityResponseBody.js","sourceRoot":"","sources":["../../src/models/CreateHostAvailabilityResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;IA8CjE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,gFAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceRequest.d.ts new file mode 100644 index 0000000..700822f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceRequest.d.ts @@ -0,0 +1,69 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateHybridMonitorNamespaceRequest extends $dara.Model { + /** + * @remarks + * The description of the namespace. + */ + description?: string; + /** + * @remarks + * The name of the namespace. + * + * The name can contain lowercase letters, digits, and hyphens (-). + * + * This parameter is required. + * + * @example + * aliyun + */ + namespace?: string; + /** + * @remarks + * The region where the metric data is stored. + * + * @example + * cn-hangzhou + */ + namespaceRegion?: string; + /** + * @remarks + * The storage scheme of metric data. Valid values: + * + * * m_prom_user: The metric data is stored in Simple Log Service. + * * m_prom_pool: The metric data is stored in the private storage space provided by CloudMonitor. + * + * > For more information about the storage schemes of metric data, see [Data storage schemes for Hybrid Cloud Monitoring](https://help.aliyun.com/document_detail/2594921.html). + * + * @example + * m_prometheus + */ + namespaceType?: string; + regionId?: string; + /** + * @remarks + * The data retention period. Valid values: + * + * * cms.s1.large (Retention Period 15 Days) + * * cms.s1.xlarge (Retention Period 32 Days) + * * cms.s1.2xlarge (Retention Period 63 Days) + * * cms.s1.3xlarge (Retention Period 93 Days) (default) + * * cms.s1.6xlarge (Retention Period 185 Days) + * * cms.s1.12xlarge (Retention Period 367 Days) + * + * For information about the pricing for different retention periods, see the **Pricing** section in [Billing of the dashboard feature](https://help.aliyun.com/document_detail/223532.html). + * + * @example + * cms.s1.3xlarge + */ + spec?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceRequest.js new file mode 100644 index 0000000..f621c45 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceRequest.js @@ -0,0 +1,68 @@ +"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.CreateHybridMonitorNamespaceRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateHybridMonitorNamespaceRequest extends $dara.Model { + static names() { + return { + description: 'Description', + namespace: 'Namespace', + namespaceRegion: 'NamespaceRegion', + namespaceType: 'NamespaceType', + regionId: 'RegionId', + spec: 'Spec', + }; + } + static types() { + return { + description: 'string', + namespace: 'string', + namespaceRegion: 'string', + namespaceType: 'string', + regionId: 'string', + spec: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateHybridMonitorNamespaceRequest = CreateHybridMonitorNamespaceRequest; +//# sourceMappingURL=CreateHybridMonitorNamespaceRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceRequest.js.map new file mode 100644 index 0000000..e9b59d6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateHybridMonitorNamespaceRequest.js","sourceRoot":"","sources":["../../src/models/CreateHybridMonitorNamespaceRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IAyDlE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;YAC1B,SAAS,EAAE,WAAW;YACtB,eAAe,EAAE,iBAAiB;YAClC,aAAa,EAAE,eAAe;YAC9B,QAAQ,EAAE,UAAU;YACpB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,SAAS,EAAE,QAAQ;YACnB,eAAe,EAAE,QAAQ;YACzB,aAAa,EAAE,QAAQ;YACvB,QAAQ,EAAE,QAAQ;YAClB,IAAI,EAAE,QAAQ;SACf,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtFD,kFAsFC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceResponse.d.ts new file mode 100644 index 0000000..4f59802 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { CreateHybridMonitorNamespaceResponseBody } from "./CreateHybridMonitorNamespaceResponseBody"; +export declare class CreateHybridMonitorNamespaceResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: CreateHybridMonitorNamespaceResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceResponse.js new file mode 100644 index 0000000..4621f34 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceResponse.js @@ -0,0 +1,69 @@ +"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.CreateHybridMonitorNamespaceResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const CreateHybridMonitorNamespaceResponseBody_1 = require("./CreateHybridMonitorNamespaceResponseBody"); +class CreateHybridMonitorNamespaceResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateHybridMonitorNamespaceResponseBody_1.CreateHybridMonitorNamespaceResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateHybridMonitorNamespaceResponse = CreateHybridMonitorNamespaceResponse; +//# sourceMappingURL=CreateHybridMonitorNamespaceResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceResponse.js.map new file mode 100644 index 0000000..2b0a40e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateHybridMonitorNamespaceResponse.js","sourceRoot":"","sources":["../../src/models/CreateHybridMonitorNamespaceResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,yGAAsG;AAGtG,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IAInE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,mFAAwC;SAC/C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,oFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceResponseBody.d.ts new file mode 100644 index 0000000..afc81a5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceResponseBody.d.ts @@ -0,0 +1,48 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateHybridMonitorNamespaceResponseBody extends $dara.Model { + /** + * @remarks + * The response code. + * + * @example + * Success + */ + code?: string; + /** + * @remarks + * The error message returned. + * + * @example + * Namespace.Existed + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 3843D23A-FB9E-5DC8-BCCC-458768B79296 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceResponseBody.js new file mode 100644 index 0000000..356a69e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceResponseBody.js @@ -0,0 +1,64 @@ +"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.CreateHybridMonitorNamespaceResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateHybridMonitorNamespaceResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateHybridMonitorNamespaceResponseBody = CreateHybridMonitorNamespaceResponseBody; +//# sourceMappingURL=CreateHybridMonitorNamespaceResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceResponseBody.js.map new file mode 100644 index 0000000..054fab6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorNamespaceResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateHybridMonitorNamespaceResponseBody.js","sourceRoot":"","sources":["../../src/models/CreateHybridMonitorNamespaceResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wCAAyC,SAAQ,KAAK,CAAC,KAAK;IAoCvE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA7DD,4FA6DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupRequest.d.ts new file mode 100644 index 0000000..694eb89 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupRequest.d.ts @@ -0,0 +1,102 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateHybridMonitorSLSGroupRequestSLSGroupConfig extends $dara.Model { + /** + * @remarks + * The Logstore. + * + * Valid values of N: 1 to 25. + * + * This parameter is required. + * + * @example + * Logstore-ECS + */ + SLSLogstore?: string; + /** + * @remarks + * The Simple Log Service project. + * + * Valid values of N: 1 to 25. + * + * This parameter is required. + * + * @example + * aliyun-project + */ + SLSProject?: string; + /** + * @remarks + * The region ID. + * + * Valid values of N: 1 to 25. + * + * This parameter is required. + * + * @example + * cn-hangzhou + */ + SLSRegion?: string; + /** + * @remarks + * The member ID. + * + * Valid values of N: 1 to 25. + * + * If you call this operation by using the management account of a resource directory, you can connect the Alibaba Cloud services that are activated for all members in the resource directory to Hybrid Cloud Monitoring. You can use the resource directory to monitor Alibaba Cloud services across enterprise accounts. + * + * > If a member uses CloudMonitor for the first time, you must make sure that the service-linked role AliyunServiceRoleForCloudMonitor is attached to the member. For more information, see [Manage the service-linked role for CloudMonitor](https://help.aliyun.com/document_detail/170423.html). + * + * @example + * 120886317861**** + */ + SLSUserId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class CreateHybridMonitorSLSGroupRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * The configurations of the Logstore group. + * + * Valid values of N: 1 to 25. + * + * This parameter is required. + */ + SLSGroupConfig?: CreateHybridMonitorSLSGroupRequestSLSGroupConfig[]; + /** + * @remarks + * The description of the Logstore group. + */ + SLSGroupDescription?: string; + /** + * @remarks + * The name of the Logstore group. + * + * The name must be 2 to 32 characters in length and can contain uppercase letters, lowercase letters, digits, and underscores (_). The name must start with a letter. + * + * This parameter is required. + * + * @example + * Logstore_test + */ + SLSGroupName?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupRequest.js new file mode 100644 index 0000000..8b02cf6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupRequest.js @@ -0,0 +1,92 @@ +"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.CreateHybridMonitorSLSGroupRequest = exports.CreateHybridMonitorSLSGroupRequestSLSGroupConfig = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateHybridMonitorSLSGroupRequestSLSGroupConfig extends $dara.Model { + static names() { + return { + SLSLogstore: 'SLSLogstore', + SLSProject: 'SLSProject', + SLSRegion: 'SLSRegion', + SLSUserId: 'SLSUserId', + }; + } + static types() { + return { + SLSLogstore: 'string', + SLSProject: 'string', + SLSRegion: 'string', + SLSUserId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateHybridMonitorSLSGroupRequestSLSGroupConfig = CreateHybridMonitorSLSGroupRequestSLSGroupConfig; +class CreateHybridMonitorSLSGroupRequest extends $dara.Model { + static names() { + return { + regionId: 'RegionId', + SLSGroupConfig: 'SLSGroupConfig', + SLSGroupDescription: 'SLSGroupDescription', + SLSGroupName: 'SLSGroupName', + }; + } + static types() { + return { + regionId: 'string', + SLSGroupConfig: { 'type': 'array', 'itemType': CreateHybridMonitorSLSGroupRequestSLSGroupConfig }, + SLSGroupDescription: 'string', + SLSGroupName: 'string', + }; + } + validate() { + if (Array.isArray(this.SLSGroupConfig)) { + $dara.Model.validateArray(this.SLSGroupConfig); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateHybridMonitorSLSGroupRequest = CreateHybridMonitorSLSGroupRequest; +//# sourceMappingURL=CreateHybridMonitorSlsgroupRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupRequest.js.map new file mode 100644 index 0000000..51f4ac8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateHybridMonitorSlsgroupRequest.js","sourceRoot":"","sources":["../../src/models/CreateHybridMonitorSlsgroupRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,gDAAiD,SAAQ,KAAK,CAAC,KAAK;IAmD/E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;YAC1B,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;YACnB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5ED,4GA4EC;AAED,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;IA4BjE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,cAAc,EAAE,gBAAgB;YAChC,mBAAmB,EAAE,qBAAqB;YAC1C,YAAY,EAAE,cAAc;SAC7B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,cAAc,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,gDAAgD,EAAE;YACjG,mBAAmB,EAAE,QAAQ;YAC7B,YAAY,EAAE,QAAQ;SACvB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC;YACtC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACjD,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxDD,gFAwDC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupResponse.d.ts new file mode 100644 index 0000000..0045050 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { CreateHybridMonitorSLSGroupResponseBody } from "./CreateHybridMonitorSlsgroupResponseBody"; +export declare class CreateHybridMonitorSLSGroupResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: CreateHybridMonitorSLSGroupResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupResponse.js new file mode 100644 index 0000000..0561724 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupResponse.js @@ -0,0 +1,69 @@ +"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.CreateHybridMonitorSLSGroupResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const CreateHybridMonitorSlsgroupResponseBody_1 = require("./CreateHybridMonitorSlsgroupResponseBody"); +class CreateHybridMonitorSLSGroupResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateHybridMonitorSlsgroupResponseBody_1.CreateHybridMonitorSLSGroupResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateHybridMonitorSLSGroupResponse = CreateHybridMonitorSLSGroupResponse; +//# sourceMappingURL=CreateHybridMonitorSlsgroupResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupResponse.js.map new file mode 100644 index 0000000..d575dfb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateHybridMonitorSlsgroupResponse.js","sourceRoot":"","sources":["../../src/models/CreateHybridMonitorSlsgroupResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,uGAAoG;AAGpG,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IAIlE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,iFAAuC;SAC9C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,kFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupResponseBody.d.ts new file mode 100644 index 0000000..52cfdbd --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateHybridMonitorSLSGroupResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * Duplicate.SLSGroup + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 66683237-7126-50F8-BBF8-D67ACC919A17 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupResponseBody.js new file mode 100644 index 0000000..170d2a9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupResponseBody.js @@ -0,0 +1,64 @@ +"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.CreateHybridMonitorSLSGroupResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateHybridMonitorSLSGroupResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateHybridMonitorSLSGroupResponseBody = CreateHybridMonitorSLSGroupResponseBody; +//# sourceMappingURL=CreateHybridMonitorSlsgroupResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupResponseBody.js.map new file mode 100644 index 0000000..4e6546c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorSlsgroupResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateHybridMonitorSlsgroupResponseBody.js","sourceRoot":"","sources":["../../src/models/CreateHybridMonitorSlsgroupResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,uCAAwC,SAAQ,KAAK,CAAC,KAAK;IAsCtE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,0FA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskRequest.d.ts new file mode 100644 index 0000000..ee7a5b7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskRequest.d.ts @@ -0,0 +1,423 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateHybridMonitorTaskRequestAttachLabels extends $dara.Model { + /** + * @remarks + * The tag key of the metric. + * + * @example + * app_service + */ + name?: string; + /** + * @remarks + * The tag value of the metric. + * + * @example + * testValue + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class CreateHybridMonitorTaskRequestSLSProcessConfigExpress extends $dara.Model { + /** + * @remarks + * The alias of the extended field that specifies the result of basic operations performed on aggregation results. + * + * @example + * SuccRate + */ + alias?: string; + /** + * @remarks + * The extended field that specifies the result of basic operations performed on aggregation results. + * + * @example + * success_count + */ + express?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class CreateHybridMonitorTaskRequestSLSProcessConfigFilterFilters extends $dara.Model { + /** + * @remarks + * The method that is used to filter logs imported from Simple Log Service. Valid values: + * + * * `contain`: contains + * * `notContain`: does not contain + * * `>`: greater than + * * `<`: less than + * * `=`: equal to + * * `! =`: not equal to + * * `>=`: greater than or equal to + * * `<=`: less than or equal to + * + * @example + * = + */ + operator?: string; + /** + * @remarks + * The name of the key that is used to filter logs imported from Simple Log Service. + * + * @example + * code + */ + SLSKeyName?: string; + /** + * @remarks + * The value of the key that is used to filter logs imported from Simple Log Service. + * + * @example + * 200 + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class CreateHybridMonitorTaskRequestSLSProcessConfigFilter extends $dara.Model { + /** + * @remarks + * The conditions that are used to filter logs imported from Simple Log Service. + */ + filters?: CreateHybridMonitorTaskRequestSLSProcessConfigFilterFilters[]; + /** + * @remarks + * The relationship between multiple filter conditions. Valid values: + * + * * and (default): Logs are processed only if all filter conditions are met. + * * or: Logs are processed if one of the filter conditions is met. + * + * @example + * and + */ + relation?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class CreateHybridMonitorTaskRequestSLSProcessConfigGroupBy extends $dara.Model { + /** + * @remarks + * The alias of the aggregation result. + * + * @example + * ApiResult + */ + alias?: string; + /** + * @remarks + * The name of the key that is used to aggregate logs imported from Simple Log Service. + * + * @example + * code + */ + SLSKeyName?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class CreateHybridMonitorTaskRequestSLSProcessConfigStatistics extends $dara.Model { + /** + * @remarks + * The alias of the aggregation result. + * + * @example + * level_count + */ + alias?: string; + /** + * @remarks + * The function that is used to aggregate the log data of a statistical period. Valid values: + * + * * count: counts the number. + * * sum: calculates the total value. + * * avg: calculates the average value. + * * max: calculates the maximum value. + * * min: calculates the minimum value. + * * value: collects samples within the statistical period. + * * countps: calculates the number of values of the specified field divided by the total number of seconds within a statistical period. + * * sumps: calculates the sum of the values of the specified field divided by the total number of seconds within a statistical period. + * * distinct: calculates the number of unique values of the specified field within a statistical period. + * * distribution: calculates the number of logs that meet a specified condition within the statistical period. + * * percentile: sorts the values of the specified field in ascending order, and then returns the value that is at the specified percentile within the statistical period. Example: P50. + * + * @example + * count + */ + function?: string; + /** + * @remarks + * The value of the function that is used to aggregate logs imported from Simple Log Service. + * + * * If the `Function` parameter is set to `distribution`, this parameter specifies the lower limit of the statistical interval. For example, if you want to calculate the number of HTTP requests whose status code is 2XX, set this parameter to 200. + * * If the `Function` parameter is set to `percentile`, this parameter specifies the percentile at which the expected value is. For example, 0.5 specifies P50. + * + * @example + * 200 + */ + parameter1?: string; + /** + * @remarks + * The value of the function that is used to aggregate logs imported from Simple Log Service. + * + * > This parameter is required only if the `Function` parameter is set to `distribution`. This parameter specifies the upper limit of the statistical interval. For example, if you want to calculate the number of HTTP requests whose status code is 2XX, set this parameter to 299. + * + * @example + * 299 + */ + parameter2?: string; + /** + * @remarks + * The name of the key that is used to aggregate logs imported from Simple Log Service. + * + * @example + * name + */ + SLSKeyName?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class CreateHybridMonitorTaskRequestSLSProcessConfig extends $dara.Model { + /** + * @remarks + * The extended fields that specify the results of basic operations performed on aggregation results. + */ + express?: CreateHybridMonitorTaskRequestSLSProcessConfigExpress[]; + /** + * @remarks + * The conditions that are used to filter logs imported from Simple Log Service. + */ + filter?: CreateHybridMonitorTaskRequestSLSProcessConfigFilter; + /** + * @remarks + * The dimension based on which data is aggregated. This parameter is equivalent to the GROUP BY clause in SQL. + */ + groupBy?: CreateHybridMonitorTaskRequestSLSProcessConfigGroupBy[]; + /** + * @remarks + * The method that is used to aggregate logs imported from Simple Log Service. + */ + statistics?: CreateHybridMonitorTaskRequestSLSProcessConfigStatistics[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class CreateHybridMonitorTaskRequest extends $dara.Model { + /** + * @remarks + * The tags of the metric. + * + * > This parameter is required only if the `TaskType` parameter is set to `aliyun_sls`. + */ + attachLabels?: CreateHybridMonitorTaskRequestAttachLabels[]; + cloudAccessId?: string[]; + /** + * @remarks + * The collection period of the metric. Valid values: + * + * * 15 + * * 60 (default) + * + * Unit: seconds. + * + * > This parameter is required only if the `TaskType` parameter is set to `aliyun_sls`. + * + * @example + * 60 + */ + collectInterval?: string; + /** + * @remarks + * The type of the collection target. + * + * * If the `TaskType` parameter is set to `aliyun_fc`, enter `aliyun_fc`. + * * If the `TaskType` parameter is set to `aliyun_sls`, enter the name of the Logstore group. + * + * This parameter is required. + * + * @example + * aliyun_fc + */ + collectTargetType?: string; + /** + * @remarks + * The description of the metric import task. + */ + description?: string; + /** + * @remarks + * The ID of the application group. + * + * For information about how to obtain the ID of an application group, see [DescribeMonitorGroups](https://help.aliyun.com/document_detail/115032.html). + * + * > This parameter is required only if the `TaskType` parameter is set to `aliyun_sls`. + * + * @example + * 3607**** + */ + groupId?: string; + /** + * @remarks + * The name of the namespace. + * + * For information about how to obtain the name of a namespace, see [DescribeHybridMonitorNamespaceList](https://help.aliyun.com/document_detail/428880.html). + * + * This parameter is required. + * + * @example + * aliyun + */ + namespace?: string; + regionId?: string; + /** + * @remarks + * The configurations of the logs that are imported from Simple Log Service. + * + * > This parameter is required only if the `TaskType` parameter is set to `aliyun_sls`. + */ + SLSProcessConfig?: CreateHybridMonitorTaskRequestSLSProcessConfig; + /** + * @remarks + * The ID of the member account. + * + * If you call this operation by using the management account of a resource directory, you can connect the Alibaba Cloud services that are activated for all members in the resource directory to Hybrid Cloud Monitoring. You can use the resource directory to monitor Alibaba Cloud services across enterprise accounts. + * + * > This parameter is required only if the `TaskType` parameter is set to `aliyun_fc`. + * + * @example + * 120886317861**** + */ + targetUserId?: string; + /** + * @remarks + * The IDs of the member accounts. Separate multiple member account IDs with commas (,). + * + * > This parameter is required only if you call this operation by using the management account. + * + * @example + * 120886317861**** + */ + targetUserIdList?: string; + /** + * @remarks + * The name of the metric import task. + * + * * If the `TaskType` parameter is set to `aliyun_fc`, enter the name of the metric import task. + * * If the `TaskType` parameter is set to `aliyun_sls`, enter the name of the metric for logs imported from Simple Log Service. + * + * @example + * aliyun_task + */ + taskName?: string; + /** + * @remarks + * The type of the metric import task. Valid values: + * + * * aliyun_fc: metric import tasks for Alibaba Cloud services. + * * aliyun_sls: metrics for logs imported from Simple Log Service. + * + * This parameter is required. + * + * @example + * aliyun_fc + */ + taskType?: string; + /** + * @remarks + * The configuration file of the Alibaba Cloud service that you want to monitor by using Hybrid Cloud Monitoring. + * + * * namespace: the namespace of the Alibaba Cloud service. For information about how to query the namespace of an Alibaba Cloud service, see [DescribeMetricMetaList](https://help.aliyun.com/document_detail/98846.html). + * * metric_list: the metrics of the Alibaba Cloud service. For information about how to query the metrics of an Alibaba Cloud service, see [DescribeMetricMetaList](https://help.aliyun.com/document_detail/98846.html). + * + * The following code shows a sample configuration file: + * + * products: + * - namespace: acs_ecs_dashboard + * metric_info: + * - metric_list: + * - cpu_total + * - cpu_idle + * - diskusage_utilization + * - CPUUtilization + * - DiskReadBPS + * - InternetOut + * - IntranetOut + * - cpu_system + * - namespace: acs_rds_dashboard + * metric_info: + * - metric_list: + * - MySQL_QPS + * - MySQL_TPS + * + * > This parameter is required only if the `TaskType` parameter is set to `aliyun_fc`. + * + * @example + * products:- namespace: acs_ecs_dashboard metric_info: - metric_list: - cpu_total + */ + YARMConfig?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskRequest.js new file mode 100644 index 0000000..39f968d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskRequest.js @@ -0,0 +1,267 @@ +"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.CreateHybridMonitorTaskRequest = exports.CreateHybridMonitorTaskRequestSLSProcessConfig = exports.CreateHybridMonitorTaskRequestSLSProcessConfigStatistics = exports.CreateHybridMonitorTaskRequestSLSProcessConfigGroupBy = exports.CreateHybridMonitorTaskRequestSLSProcessConfigFilter = exports.CreateHybridMonitorTaskRequestSLSProcessConfigFilterFilters = exports.CreateHybridMonitorTaskRequestSLSProcessConfigExpress = exports.CreateHybridMonitorTaskRequestAttachLabels = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateHybridMonitorTaskRequestAttachLabels extends $dara.Model { + static names() { + return { + name: 'Name', + value: 'Value', + }; + } + static types() { + return { + name: 'string', + value: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateHybridMonitorTaskRequestAttachLabels = CreateHybridMonitorTaskRequestAttachLabels; +class CreateHybridMonitorTaskRequestSLSProcessConfigExpress extends $dara.Model { + static names() { + return { + alias: 'Alias', + express: 'Express', + }; + } + static types() { + return { + alias: 'string', + express: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateHybridMonitorTaskRequestSLSProcessConfigExpress = CreateHybridMonitorTaskRequestSLSProcessConfigExpress; +class CreateHybridMonitorTaskRequestSLSProcessConfigFilterFilters extends $dara.Model { + static names() { + return { + operator: 'Operator', + SLSKeyName: 'SLSKeyName', + value: 'Value', + }; + } + static types() { + return { + operator: 'string', + SLSKeyName: 'string', + value: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateHybridMonitorTaskRequestSLSProcessConfigFilterFilters = CreateHybridMonitorTaskRequestSLSProcessConfigFilterFilters; +class CreateHybridMonitorTaskRequestSLSProcessConfigFilter extends $dara.Model { + static names() { + return { + filters: 'Filters', + relation: 'Relation', + }; + } + static types() { + return { + filters: { 'type': 'array', 'itemType': CreateHybridMonitorTaskRequestSLSProcessConfigFilterFilters }, + relation: 'string', + }; + } + validate() { + if (Array.isArray(this.filters)) { + $dara.Model.validateArray(this.filters); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateHybridMonitorTaskRequestSLSProcessConfigFilter = CreateHybridMonitorTaskRequestSLSProcessConfigFilter; +class CreateHybridMonitorTaskRequestSLSProcessConfigGroupBy extends $dara.Model { + static names() { + return { + alias: 'Alias', + SLSKeyName: 'SLSKeyName', + }; + } + static types() { + return { + alias: 'string', + SLSKeyName: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateHybridMonitorTaskRequestSLSProcessConfigGroupBy = CreateHybridMonitorTaskRequestSLSProcessConfigGroupBy; +class CreateHybridMonitorTaskRequestSLSProcessConfigStatistics extends $dara.Model { + static names() { + return { + alias: 'Alias', + function: 'Function', + parameter1: 'Parameter1', + parameter2: 'Parameter2', + SLSKeyName: 'SLSKeyName', + }; + } + static types() { + return { + alias: 'string', + function: 'string', + parameter1: 'string', + parameter2: 'string', + SLSKeyName: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateHybridMonitorTaskRequestSLSProcessConfigStatistics = CreateHybridMonitorTaskRequestSLSProcessConfigStatistics; +class CreateHybridMonitorTaskRequestSLSProcessConfig extends $dara.Model { + static names() { + return { + express: 'Express', + filter: 'Filter', + groupBy: 'GroupBy', + statistics: 'Statistics', + }; + } + static types() { + return { + express: { 'type': 'array', 'itemType': CreateHybridMonitorTaskRequestSLSProcessConfigExpress }, + filter: CreateHybridMonitorTaskRequestSLSProcessConfigFilter, + groupBy: { 'type': 'array', 'itemType': CreateHybridMonitorTaskRequestSLSProcessConfigGroupBy }, + statistics: { 'type': 'array', 'itemType': CreateHybridMonitorTaskRequestSLSProcessConfigStatistics }, + }; + } + validate() { + if (Array.isArray(this.express)) { + $dara.Model.validateArray(this.express); + } + if (this.filter && typeof this.filter.validate === 'function') { + this.filter.validate(); + } + if (Array.isArray(this.groupBy)) { + $dara.Model.validateArray(this.groupBy); + } + if (Array.isArray(this.statistics)) { + $dara.Model.validateArray(this.statistics); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateHybridMonitorTaskRequestSLSProcessConfig = CreateHybridMonitorTaskRequestSLSProcessConfig; +class CreateHybridMonitorTaskRequest extends $dara.Model { + static names() { + return { + attachLabels: 'AttachLabels', + cloudAccessId: 'CloudAccessId', + collectInterval: 'CollectInterval', + collectTargetType: 'CollectTargetType', + description: 'Description', + groupId: 'GroupId', + namespace: 'Namespace', + regionId: 'RegionId', + SLSProcessConfig: 'SLSProcessConfig', + targetUserId: 'TargetUserId', + targetUserIdList: 'TargetUserIdList', + taskName: 'TaskName', + taskType: 'TaskType', + YARMConfig: 'YARMConfig', + }; + } + static types() { + return { + attachLabels: { 'type': 'array', 'itemType': CreateHybridMonitorTaskRequestAttachLabels }, + cloudAccessId: { 'type': 'array', 'itemType': 'string' }, + collectInterval: 'string', + collectTargetType: 'string', + description: 'string', + groupId: 'string', + namespace: 'string', + regionId: 'string', + SLSProcessConfig: CreateHybridMonitorTaskRequestSLSProcessConfig, + targetUserId: 'string', + targetUserIdList: 'string', + taskName: 'string', + taskType: 'string', + YARMConfig: 'string', + }; + } + validate() { + if (Array.isArray(this.attachLabels)) { + $dara.Model.validateArray(this.attachLabels); + } + if (Array.isArray(this.cloudAccessId)) { + $dara.Model.validateArray(this.cloudAccessId); + } + if (this.SLSProcessConfig && typeof this.SLSProcessConfig.validate === 'function') { + this.SLSProcessConfig.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateHybridMonitorTaskRequest = CreateHybridMonitorTaskRequest; +//# sourceMappingURL=CreateHybridMonitorTaskRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskRequest.js.map new file mode 100644 index 0000000..4eb0ed7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateHybridMonitorTaskRequest.js","sourceRoot":"","sources":["../../src/models/CreateHybridMonitorTaskRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0CAA2C,SAAQ,K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AChE,YAAY,EAAE,QAAQ;YACtB,gBAAgB,EAAE,QAAQ;YAC1B,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,UAAU,EAAE,QAAQ;SACrB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;YACpC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC/C,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,CAAC;YACrC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAChD,CAAC;QACD,IAAG,IAAI,CAAC,gBAAgB,IAAI,OAAQ,IAAI,CAAC,gBAAwB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACzF,IAAI,CAAC,gBAAwB,CAAC,QAAQ,EAAE,CAAC;QAC5C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/MD,wEA+MC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskResponse.d.ts new file mode 100644 index 0000000..8f3dd09 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { CreateHybridMonitorTaskResponseBody } from "./CreateHybridMonitorTaskResponseBody"; +export declare class CreateHybridMonitorTaskResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: CreateHybridMonitorTaskResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskResponse.js new file mode 100644 index 0000000..cfff9c0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskResponse.js @@ -0,0 +1,69 @@ +"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.CreateHybridMonitorTaskResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const CreateHybridMonitorTaskResponseBody_1 = require("./CreateHybridMonitorTaskResponseBody"); +class CreateHybridMonitorTaskResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateHybridMonitorTaskResponseBody_1.CreateHybridMonitorTaskResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateHybridMonitorTaskResponse = CreateHybridMonitorTaskResponse; +//# sourceMappingURL=CreateHybridMonitorTaskResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskResponse.js.map new file mode 100644 index 0000000..ae251df --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateHybridMonitorTaskResponse.js","sourceRoot":"","sources":["../../src/models/CreateHybridMonitorTaskResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,+FAA4F;AAG5F,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAI9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,yEAAmC;SAC1C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,0EAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskResponseBody.d.ts new file mode 100644 index 0000000..a4415aa --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskResponseBody.d.ts @@ -0,0 +1,58 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateHybridMonitorTaskResponseBody extends $dara.Model { + /** + * @remarks + * The response code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message returned. + * + * @example + * yamlConfigFail + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 28CEA2E0-3E90-51B2-A7E8-B1ED75534E49 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + /** + * @remarks + * The ID of the monitoring task. + * + * @example + * 36**** + */ + taskId?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskResponseBody.js new file mode 100644 index 0000000..1747b4e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskResponseBody.js @@ -0,0 +1,66 @@ +"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.CreateHybridMonitorTaskResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateHybridMonitorTaskResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + taskId: 'TaskId', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'string', + taskId: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateHybridMonitorTaskResponseBody = CreateHybridMonitorTaskResponseBody; +//# sourceMappingURL=CreateHybridMonitorTaskResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskResponseBody.js.map new file mode 100644 index 0000000..2bf6f1d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateHybridMonitorTaskResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateHybridMonitorTaskResponseBody.js","sourceRoot":"","sources":["../../src/models/CreateHybridMonitorTaskResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IA8ClE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;YACjB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,kFAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorRequest.d.ts new file mode 100644 index 0000000..c77f103 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorRequest.d.ts @@ -0,0 +1,81 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateInstantSiteMonitorRequest extends $dara.Model { + /** + * @remarks + * The URL or IP address that you want to test. + * + * This parameter is required. + * + * @example + * http://www.aliyun.com + */ + address?: string; + agentGroup?: string; + /** + * @remarks + * The detection points. If you leave this parameter empty, the system randomly selects three detection points. + * + * The value is a `JSON array`. Example: {"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}. The values of the city field indicate Beijing, Hangzhou, and Qingdao. + * + * For information about how to obtain detection points, see [DescribeSiteMonitorISPCityList](https://help.aliyun.com/document_detail/115045.html). + * + * > You must specify one of the `IspCities` and `RandomIspCity` parameters. + * + * @example + * [{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}] + */ + ispCities?: string; + /** + * @remarks + * The extended options of the protocol that is used by the instant test task. The options vary based on the protocol. + * + * @example + * {"time_out":5000} + */ + optionsJson?: string; + /** + * @remarks + * The number of detection points. + * + * > + * + * * You must specify one of the `IspCities` and `RandomIspCity` parameters. If you specify the `RandomIspCity` parameter, the `IspCities` parameter automatically becomes invalid. + * + * @example + * 1 + */ + randomIspCity?: number; + regionId?: string; + /** + * @remarks + * The name of the instant test task. + * + * The name must be 4 to 100 characters in length, and can contain letters, digits, and underscores (_). + * + * This parameter is required. + * + * @example + * task1 + */ + taskName?: string; + /** + * @remarks + * The type of the instant test task. Valid values: HTTP, PING, TCP, UDP, and DNS. + * + * This parameter is required. + * + * @example + * HTTP + */ + taskType?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorRequest.js new file mode 100644 index 0000000..dac38a7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorRequest.js @@ -0,0 +1,72 @@ +"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.CreateInstantSiteMonitorRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateInstantSiteMonitorRequest extends $dara.Model { + static names() { + return { + address: 'Address', + agentGroup: 'AgentGroup', + ispCities: 'IspCities', + optionsJson: 'OptionsJson', + randomIspCity: 'RandomIspCity', + regionId: 'RegionId', + taskName: 'TaskName', + taskType: 'TaskType', + }; + } + static types() { + return { + address: 'string', + agentGroup: 'string', + ispCities: 'string', + optionsJson: 'string', + randomIspCity: 'number', + regionId: 'string', + taskName: 'string', + taskType: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateInstantSiteMonitorRequest = CreateInstantSiteMonitorRequest; +//# sourceMappingURL=CreateInstantSiteMonitorRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorRequest.js.map new file mode 100644 index 0000000..b7a4b42 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateInstantSiteMonitorRequest.js","sourceRoot":"","sources":["../../src/models/CreateInstantSiteMonitorRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAqE9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,WAAW,EAAE,aAAa;YAC1B,aAAa,EAAE,eAAe;YAC9B,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;YACnB,WAAW,EAAE,QAAQ;YACrB,aAAa,EAAE,QAAQ;YACvB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtGD,0EAsGC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorResponse.d.ts new file mode 100644 index 0000000..8bcf7f0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { CreateInstantSiteMonitorResponseBody } from "./CreateInstantSiteMonitorResponseBody"; +export declare class CreateInstantSiteMonitorResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: CreateInstantSiteMonitorResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorResponse.js new file mode 100644 index 0000000..6fa83ef --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorResponse.js @@ -0,0 +1,69 @@ +"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.CreateInstantSiteMonitorResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const CreateInstantSiteMonitorResponseBody_1 = require("./CreateInstantSiteMonitorResponseBody"); +class CreateInstantSiteMonitorResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateInstantSiteMonitorResponseBody_1.CreateInstantSiteMonitorResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateInstantSiteMonitorResponse = CreateInstantSiteMonitorResponse; +//# sourceMappingURL=CreateInstantSiteMonitorResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorResponse.js.map new file mode 100644 index 0000000..d99c97f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateInstantSiteMonitorResponse.js","sourceRoot":"","sources":["../../src/models/CreateInstantSiteMonitorResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,iGAA8F;AAG9F,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAI/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,2EAAoC;SAC3C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,4EAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorResponseBody.d.ts new file mode 100644 index 0000000..1bf8567 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorResponseBody.d.ts @@ -0,0 +1,82 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateInstantSiteMonitorResponseBodyCreateResultList extends $dara.Model { + /** + * @remarks + * The ID of the instant test task. + * + * @example + * 2c8dbdf9-a3ab-46a1-85a4-f094965e**** + */ + taskId?: string; + /** + * @remarks + * The name of the instant test task. + * + * @example + * task1 + */ + taskName?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class CreateInstantSiteMonitorResponseBody extends $dara.Model { + /** + * @remarks + * The error code. + * + * > The status code 200 indicates that the call was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The results for creating the instant test task. + */ + createResultList?: CreateInstantSiteMonitorResponseBodyCreateResultList[]; + /** + * @remarks + * The returned message. + * + * @example + * successful + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * 68192f5d-0d45-4b98-9724-892813f86c71 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * * true: The request was successful. + * * false: The request failed. + * + * @example + * true + */ + success?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorResponseBody.js new file mode 100644 index 0000000..67cd994 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorResponseBody.js @@ -0,0 +1,90 @@ +"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.CreateInstantSiteMonitorResponseBody = exports.CreateInstantSiteMonitorResponseBodyCreateResultList = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateInstantSiteMonitorResponseBodyCreateResultList extends $dara.Model { + static names() { + return { + taskId: 'TaskId', + taskName: 'TaskName', + }; + } + static types() { + return { + taskId: 'string', + taskName: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateInstantSiteMonitorResponseBodyCreateResultList = CreateInstantSiteMonitorResponseBodyCreateResultList; +class CreateInstantSiteMonitorResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + createResultList: 'CreateResultList', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + createResultList: { 'type': 'array', 'itemType': CreateInstantSiteMonitorResponseBodyCreateResultList }, + message: 'string', + requestId: 'string', + success: 'string', + }; + } + validate() { + if (Array.isArray(this.createResultList)) { + $dara.Model.validateArray(this.createResultList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateInstantSiteMonitorResponseBody = CreateInstantSiteMonitorResponseBody; +//# sourceMappingURL=CreateInstantSiteMonitorResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorResponseBody.js.map new file mode 100644 index 0000000..ed70ffa --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateInstantSiteMonitorResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateInstantSiteMonitorResponseBody.js","sourceRoot":"","sources":["../../src/models/CreateInstantSiteMonitorResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oDAAqD,SAAQ,KAAK,CAAC,KAAK;IAiBnF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtCD,oHAsCC;AAED,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IA0CnE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,gBAAgB,EAAE,kBAAkB;YACpC,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,gBAAgB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,oDAAoD,EAAE;YACvG,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAAE,CAAC;YACxC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QACnD,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxED,oFAwEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListRequest.d.ts new file mode 100644 index 0000000..4b641b3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListRequest.d.ts @@ -0,0 +1,151 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateMetricRuleBlackListRequestMetrics extends $dara.Model { + /** + * @remarks + * The metric name. + * + * Valid values of N: 1 to 10. + * + * This parameter is required. + * + * @example + * disk_utilization + */ + metricName?: string; + /** + * @remarks + * The extended dimension of the instance. For example, `{"device":"C:"}` specifies that the blacklist policy is applied to all C disks of the specified Elastic Compute Service (ECS) instance. + * + * Valid values of N: 1 to 10. + * + * @example + * {"device":"C:"} + */ + resource?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class CreateMetricRuleBlackListRequest extends $dara.Model { + /** + * @remarks + * The category of the cloud service. For example, ApsaraDB for Redis includes the following categories: ApsaraDB for Redis (standard architecture), ApsaraDB for Redis (cluster architecture), and ApsaraDB for Redis (read/write splitting architecture). In this case, the valid values of this parameter for ApsaraDB for Redis include `kvstore_standard`, `kvstore_sharding`, and `kvstore_splitrw`. + * + * This parameter is required. + * + * @example + * ecs + */ + category?: string; + /** + * @remarks + * The time range within which the blacklist policy is effective. + * + * * If you do not configure this parameter, the blacklist policy is permanently effective. + * + * * If you configure this parameter, the blacklist policy is effective only within the specified time range. Examples: + * + * * `03:00-04:59`: The blacklist policy is effective from 03:00 to 05:00 local time. 05:00 local time is excluded. + * * `03:00-04:59 UTC+0700`: The blacklist policy is effective from 03:00 to 05:00 (UTC+7). 05:00 (UTC+7) is excluded. + * + * @example + * 03:00-04:59 + */ + effectiveTime?: string; + /** + * @remarks + * The timestamp when the blacklist policy expires. + * + * Unit: milliseconds. + * + * @example + * 1640608200000 + */ + enableEndTime?: string; + /** + * @remarks + * The timestamp when the blacklist policy starts to take effect. + * + * Unit: milliseconds. + * + * @example + * 1640237400000 + */ + enableStartTime?: string; + /** + * @remarks + * The IDs of the instances that belong to the specified cloud service. + * + * This parameter is required. + */ + instances?: string[]; + /** + * @remarks + * The metrics of the instance. + * + * * If you do not configure this parameter, the blacklist policy applies to all metrics of the specified cloud service. + * * If you configure this parameter, the blacklist policy applies only to the current metric. + */ + metrics?: CreateMetricRuleBlackListRequestMetrics[]; + /** + * @remarks + * The name of the blacklist policy. + * + * This parameter is required. + * + * @example + * Blacklist-01 + */ + name?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * For more information about the namespaces of different cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + regionId?: string; + /** + * @remarks + * The effective scope of the blacklist policy. Valid values: + * + * * USER (default): The blacklist policy takes effect only for the current Alibaba Cloud account. + * * GROUP: The blacklist policy takes effect only for the specified application group. For information about how to query the IDs of application groups, see [DescribeMonitorGroups](https://help.aliyun.com/document_detail/115032.html). + * + * @example + * USER + */ + scopeType?: string; + /** + * @remarks + * The ID of the application group. The value of this parameter is a JSON array. + * + * > This parameter must be specified when `ScopeType` is set to `GROUP`. + * + * @example + * ["67****","78****"] + */ + scopeValue?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListRequest.js new file mode 100644 index 0000000..ac237ef --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListRequest.js @@ -0,0 +1,105 @@ +"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.CreateMetricRuleBlackListRequest = exports.CreateMetricRuleBlackListRequestMetrics = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateMetricRuleBlackListRequestMetrics extends $dara.Model { + static names() { + return { + metricName: 'MetricName', + resource: 'Resource', + }; + } + static types() { + return { + metricName: 'string', + resource: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateMetricRuleBlackListRequestMetrics = CreateMetricRuleBlackListRequestMetrics; +class CreateMetricRuleBlackListRequest extends $dara.Model { + static names() { + return { + category: 'Category', + effectiveTime: 'EffectiveTime', + enableEndTime: 'EnableEndTime', + enableStartTime: 'EnableStartTime', + instances: 'Instances', + metrics: 'Metrics', + name: 'Name', + namespace: 'Namespace', + regionId: 'RegionId', + scopeType: 'ScopeType', + scopeValue: 'ScopeValue', + }; + } + static types() { + return { + category: 'string', + effectiveTime: 'string', + enableEndTime: 'string', + enableStartTime: 'string', + instances: { 'type': 'array', 'itemType': 'string' }, + metrics: { 'type': 'array', 'itemType': CreateMetricRuleBlackListRequestMetrics }, + name: 'string', + namespace: 'string', + regionId: 'string', + scopeType: 'string', + scopeValue: 'string', + }; + } + validate() { + if (Array.isArray(this.instances)) { + $dara.Model.validateArray(this.instances); + } + if (Array.isArray(this.metrics)) { + $dara.Model.validateArray(this.metrics); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateMetricRuleBlackListRequest = CreateMetricRuleBlackListRequest; +//# sourceMappingURL=CreateMetricRuleBlackListRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListRequest.js.map new file mode 100644 index 0000000..6c29d4d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateMetricRuleBlackListRequest.js","sourceRoot":"","sources":["../../src/models/CreateMetricRuleBlackListRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,uCAAwC,SAAQ,KAAK,CAAC,KAAK;IAuBtE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5CD,0FA4CC;AAED,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAyG/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,aAAa,EAAE,eAAe;YAC9B,aAAa,EAAE,eAAe;YAC9B,eAAe,EAAE,iBAAiB;YAClC,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,IAAI,EAAE,MAAM;YACZ,SAAS,EAAE,WAAW;YACtB,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;YACtB,UAAU,EAAE,YAAY;SACzB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,aAAa,EAAE,QAAQ;YACvB,aAAa,EAAE,QAAQ;YACvB,eAAe,EAAE,QAAQ;YACzB,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YACpD,OAAO,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,uCAAuC,EAAE;YACjF,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,QAAQ;YACnB,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,QAAQ;YACnB,UAAU,EAAE,QAAQ;SACrB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;YACjC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC5C,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;YAC/B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtJD,4EAsJC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListResponse.d.ts new file mode 100644 index 0000000..73b7174 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { CreateMetricRuleBlackListResponseBody } from "./CreateMetricRuleBlackListResponseBody"; +export declare class CreateMetricRuleBlackListResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: CreateMetricRuleBlackListResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListResponse.js new file mode 100644 index 0000000..07bbb08 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListResponse.js @@ -0,0 +1,69 @@ +"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.CreateMetricRuleBlackListResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const CreateMetricRuleBlackListResponseBody_1 = require("./CreateMetricRuleBlackListResponseBody"); +class CreateMetricRuleBlackListResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateMetricRuleBlackListResponseBody_1.CreateMetricRuleBlackListResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateMetricRuleBlackListResponse = CreateMetricRuleBlackListResponse; +//# sourceMappingURL=CreateMetricRuleBlackListResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListResponse.js.map new file mode 100644 index 0000000..9912651 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateMetricRuleBlackListResponse.js","sourceRoot":"","sources":["../../src/models/CreateMetricRuleBlackListResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,mGAAgG;AAGhG,MAAa,iCAAkC,SAAQ,KAAK,CAAC,KAAK;IAIhE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,6EAAqC;SAC5C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,8EAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListResponseBody.d.ts new file mode 100644 index 0000000..5ca0b54 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListResponseBody.d.ts @@ -0,0 +1,58 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateMetricRuleBlackListResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The ID of the blacklist policy. + * + * @example + * 93514c96-ceb8-47d8-8ee3-93b6d98b**** + */ + id?: string; + /** + * @remarks + * The error message. + * + * @example + * The request has failed due to a temporary failure of the server. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 5C637FA3-3959-3352-8BE6-78CE2ED2D33D + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListResponseBody.js new file mode 100644 index 0000000..09a1608 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListResponseBody.js @@ -0,0 +1,66 @@ +"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.CreateMetricRuleBlackListResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateMetricRuleBlackListResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + id: 'Id', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + id: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateMetricRuleBlackListResponseBody = CreateMetricRuleBlackListResponseBody; +//# sourceMappingURL=CreateMetricRuleBlackListResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListResponseBody.js.map new file mode 100644 index 0000000..773b869 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleBlackListResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateMetricRuleBlackListResponseBody.js","sourceRoot":"","sources":["../../src/models/CreateMetricRuleBlackListResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qCAAsC,SAAQ,KAAK,CAAC,KAAK;IA8CpE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,EAAE,EAAE,IAAI;YACR,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,EAAE,EAAE,QAAQ;YACZ,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,sFAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesRequest.d.ts new file mode 100644 index 0000000..5abbf13 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesRequest.d.ts @@ -0,0 +1,44 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateMetricRuleResourcesRequest extends $dara.Model { + /** + * @remarks + * Specifies whether to overwrite existing resources. Valid values: + * + * * true: The resources submitted this time overwrite the previously associated resources. + * * false: The resources submitted this time do not overwrite the previously associated resources. The associated resources after submission include the previously associated resources and the resources submitted this time. + * + * @example + * false + */ + overwrite?: string; + /** + * @remarks + * The resources that are associated with the alert rule. Set the value to a JSON array. + * + * > You can add up to 100 resources each time. An alert rule can be associated with up to 3,000 resources. + * + * This parameter is required. + * + * @example + * [{"instanceId":"i-a2d5q7pm3f9yr29e****"}] + */ + resources?: string; + /** + * @remarks + * The ID of the alert rule. + * + * @example + * i-2ze3w55tr2rcpejpcfap_59c96b85-0339-4f35-ba66-ae4e34d3**** + */ + ruleId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesRequest.js new file mode 100644 index 0000000..4b2b32b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesRequest.js @@ -0,0 +1,62 @@ +"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.CreateMetricRuleResourcesRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateMetricRuleResourcesRequest extends $dara.Model { + static names() { + return { + overwrite: 'Overwrite', + resources: 'Resources', + ruleId: 'RuleId', + }; + } + static types() { + return { + overwrite: 'string', + resources: 'string', + ruleId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateMetricRuleResourcesRequest = CreateMetricRuleResourcesRequest; +//# sourceMappingURL=CreateMetricRuleResourcesRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesRequest.js.map new file mode 100644 index 0000000..1f2c4a2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateMetricRuleResourcesRequest.js","sourceRoot":"","sources":["../../src/models/CreateMetricRuleResourcesRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAgC/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;YACtB,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,QAAQ;YACnB,SAAS,EAAE,QAAQ;YACnB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAvDD,4EAuDC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesResponse.d.ts new file mode 100644 index 0000000..4108d67 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { CreateMetricRuleResourcesResponseBody } from "./CreateMetricRuleResourcesResponseBody"; +export declare class CreateMetricRuleResourcesResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: CreateMetricRuleResourcesResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesResponse.js new file mode 100644 index 0000000..44c446f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesResponse.js @@ -0,0 +1,69 @@ +"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.CreateMetricRuleResourcesResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const CreateMetricRuleResourcesResponseBody_1 = require("./CreateMetricRuleResourcesResponseBody"); +class CreateMetricRuleResourcesResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateMetricRuleResourcesResponseBody_1.CreateMetricRuleResourcesResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateMetricRuleResourcesResponse = CreateMetricRuleResourcesResponse; +//# sourceMappingURL=CreateMetricRuleResourcesResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesResponse.js.map new file mode 100644 index 0000000..46adb87 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateMetricRuleResourcesResponse.js","sourceRoot":"","sources":["../../src/models/CreateMetricRuleResourcesResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,mGAAgG;AAGhG,MAAa,iCAAkC,SAAQ,KAAK,CAAC,KAAK;IAIhE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,6EAAqC;SAC5C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,8EAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesResponseBody.d.ts new file mode 100644 index 0000000..e28123e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesResponseBody.d.ts @@ -0,0 +1,47 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateMetricRuleResourcesResponseBody extends $dara.Model { + /** + * @remarks + * The response code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 0671A721-0D7A-4F11-BB77-2416325D65AB + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: true: The request was successful. false: The request failed. + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesResponseBody.js new file mode 100644 index 0000000..e921f71 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesResponseBody.js @@ -0,0 +1,64 @@ +"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.CreateMetricRuleResourcesResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateMetricRuleResourcesResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateMetricRuleResourcesResponseBody = CreateMetricRuleResourcesResponseBody; +//# sourceMappingURL=CreateMetricRuleResourcesResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesResponseBody.js.map new file mode 100644 index 0000000..2596a18 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleResourcesResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateMetricRuleResourcesResponseBody.js","sourceRoot":"","sources":["../../src/models/CreateMetricRuleResourcesResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qCAAsC,SAAQ,KAAK,CAAC,KAAK;IAmCpE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5DD,sFA4DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateRequest.d.ts new file mode 100644 index 0000000..164973a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateRequest.d.ts @@ -0,0 +1,208 @@ +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; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateRequest.js new file mode 100644 index 0000000..04a26e3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateRequest.js @@ -0,0 +1,216 @@ +"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.CreateMetricRuleTemplateRequest = exports.CreateMetricRuleTemplateRequestAlertTemplates = exports.CreateMetricRuleTemplateRequestAlertTemplatesEscalations = exports.CreateMetricRuleTemplateRequestAlertTemplatesEscalationsWarn = exports.CreateMetricRuleTemplateRequestAlertTemplatesEscalationsInfo = exports.CreateMetricRuleTemplateRequestAlertTemplatesEscalationsCritical = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateMetricRuleTemplateRequestAlertTemplatesEscalationsCritical extends $dara.Model { + static names() { + return { + comparisonOperator: 'ComparisonOperator', + n: 'N', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + static types() { + return { + comparisonOperator: 'string', + n: 'number', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateMetricRuleTemplateRequestAlertTemplatesEscalationsCritical = CreateMetricRuleTemplateRequestAlertTemplatesEscalationsCritical; +class CreateMetricRuleTemplateRequestAlertTemplatesEscalationsInfo extends $dara.Model { + static names() { + return { + comparisonOperator: 'ComparisonOperator', + n: 'N', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + static types() { + return { + comparisonOperator: 'string', + n: 'number', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateMetricRuleTemplateRequestAlertTemplatesEscalationsInfo = CreateMetricRuleTemplateRequestAlertTemplatesEscalationsInfo; +class CreateMetricRuleTemplateRequestAlertTemplatesEscalationsWarn extends $dara.Model { + static names() { + return { + comparisonOperator: 'ComparisonOperator', + n: 'N', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + static types() { + return { + comparisonOperator: 'string', + n: 'number', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateMetricRuleTemplateRequestAlertTemplatesEscalationsWarn = CreateMetricRuleTemplateRequestAlertTemplatesEscalationsWarn; +class CreateMetricRuleTemplateRequestAlertTemplatesEscalations extends $dara.Model { + static names() { + return { + critical: 'Critical', + info: 'Info', + warn: 'Warn', + }; + } + static types() { + return { + critical: CreateMetricRuleTemplateRequestAlertTemplatesEscalationsCritical, + info: CreateMetricRuleTemplateRequestAlertTemplatesEscalationsInfo, + warn: CreateMetricRuleTemplateRequestAlertTemplatesEscalationsWarn, + }; + } + 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.CreateMetricRuleTemplateRequestAlertTemplatesEscalations = CreateMetricRuleTemplateRequestAlertTemplatesEscalations; +class CreateMetricRuleTemplateRequestAlertTemplates extends $dara.Model { + static names() { + return { + escalations: 'Escalations', + category: 'Category', + metricName: 'MetricName', + namespace: 'Namespace', + period: 'Period', + ruleName: 'RuleName', + selector: 'Selector', + webhook: 'Webhook', + }; + } + static types() { + return { + escalations: CreateMetricRuleTemplateRequestAlertTemplatesEscalations, + category: 'string', + metricName: 'string', + namespace: 'string', + period: 'number', + ruleName: 'string', + selector: 'string', + webhook: 'string', + }; + } + validate() { + if (this.escalations && typeof this.escalations.validate === 'function') { + this.escalations.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateMetricRuleTemplateRequestAlertTemplates = CreateMetricRuleTemplateRequestAlertTemplates; +class CreateMetricRuleTemplateRequest extends $dara.Model { + static names() { + return { + alertTemplates: 'AlertTemplates', + description: 'Description', + name: 'Name', + regionId: 'RegionId', + }; + } + static types() { + return { + alertTemplates: { 'type': 'array', 'itemType': CreateMetricRuleTemplateRequestAlertTemplates }, + description: 'string', + name: 'string', + regionId: 'string', + }; + } + validate() { + if (Array.isArray(this.alertTemplates)) { + $dara.Model.validateArray(this.alertTemplates); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateMetricRuleTemplateRequest = CreateMetricRuleTemplateRequest; +//# sourceMappingURL=CreateMetricRuleTemplateRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateRequest.js.map new file mode 100644 index 0000000..c5e5060 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateMetricRuleTemplateRequest.js","sourceRoot":"","sources":["../../src/models/CreateMetricRuleTemplateRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,gEAAiE,SAAQ,KAAK,CAAC,KAAK;IAM/F,MAAM,CAAC,KAAK;QACV,OAAO;YACL,kBAAkB,EAAE,oBAAoB;YACxC,CAAC,EAAE,GAAG;YACN,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,kBAAkB,EAAE,QAAQ;YAC5B,CAAC,EAAE,QAAQ;YACX,UAAU,EAAE,QAAQ;YACpB,SAAS,EA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AAC;QACjD,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AArDD,0EAqDC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateResponse.d.ts new file mode 100644 index 0000000..5c428ae --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { CreateMetricRuleTemplateResponseBody } from "./CreateMetricRuleTemplateResponseBody"; +export declare class CreateMetricRuleTemplateResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: CreateMetricRuleTemplateResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateResponse.js new file mode 100644 index 0000000..6fba68c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateResponse.js @@ -0,0 +1,69 @@ +"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.CreateMetricRuleTemplateResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const CreateMetricRuleTemplateResponseBody_1 = require("./CreateMetricRuleTemplateResponseBody"); +class CreateMetricRuleTemplateResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateMetricRuleTemplateResponseBody_1.CreateMetricRuleTemplateResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateMetricRuleTemplateResponse = CreateMetricRuleTemplateResponse; +//# sourceMappingURL=CreateMetricRuleTemplateResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateResponse.js.map new file mode 100644 index 0000000..8a21e21 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateMetricRuleTemplateResponse.js","sourceRoot":"","sources":["../../src/models/CreateMetricRuleTemplateResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,iGAA8F;AAG9F,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAI/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,2EAAoC;SAC3C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,4EAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateResponseBody.d.ts new file mode 100644 index 0000000..43042ac --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateResponseBody.d.ts @@ -0,0 +1,58 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateMetricRuleTemplateResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The ID of the alert template. + * + * @example + * 12345 + */ + id?: number; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 9763ED1A-4D09-41BF-851E-310421750204 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateResponseBody.js new file mode 100644 index 0000000..dc77b15 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateResponseBody.js @@ -0,0 +1,66 @@ +"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.CreateMetricRuleTemplateResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateMetricRuleTemplateResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + id: 'Id', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'number', + id: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateMetricRuleTemplateResponseBody = CreateMetricRuleTemplateResponseBody; +//# sourceMappingURL=CreateMetricRuleTemplateResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateResponseBody.js.map new file mode 100644 index 0000000..a853fd0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMetricRuleTemplateResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateMetricRuleTemplateResponseBody.js","sourceRoot":"","sources":["../../src/models/CreateMetricRuleTemplateResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IA8CnE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,EAAE,EAAE,IAAI;YACR,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,EAAE,EAAE,QAAQ;YACZ,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,oFAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessRequest.d.ts new file mode 100644 index 0000000..77637b5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessRequest.d.ts @@ -0,0 +1,42 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateMonitorAgentProcessRequest extends $dara.Model { + /** + * @remarks + * The instance ID. + * + * This parameter is required. + * + * @example + * i-2ze2d6j5uhg20x47**** + */ + instanceId?: string; + /** + * @remarks + * The process name. + * + * This parameter is required. + * + * @example + * AliYunDun + */ + processName?: string; + /** + * @remarks + * The user who launches the process. + * + * @example + * admin + */ + processUser?: string; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessRequest.js new file mode 100644 index 0000000..059da89 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessRequest.js @@ -0,0 +1,64 @@ +"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.CreateMonitorAgentProcessRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateMonitorAgentProcessRequest extends $dara.Model { + static names() { + return { + instanceId: 'InstanceId', + processName: 'ProcessName', + processUser: 'ProcessUser', + regionId: 'RegionId', + }; + } + static types() { + return { + instanceId: 'string', + processName: 'string', + processUser: 'string', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateMonitorAgentProcessRequest = CreateMonitorAgentProcessRequest; +//# sourceMappingURL=CreateMonitorAgentProcessRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessRequest.js.map new file mode 100644 index 0000000..5fc7041 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateMonitorAgentProcessRequest.js","sourceRoot":"","sources":["../../src/models/CreateMonitorAgentProcessRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IA8B/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,QAAQ;YACrB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAvDD,4EAuDC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessResponse.d.ts new file mode 100644 index 0000000..c1b4b36 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { CreateMonitorAgentProcessResponseBody } from "./CreateMonitorAgentProcessResponseBody"; +export declare class CreateMonitorAgentProcessResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: CreateMonitorAgentProcessResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessResponse.js new file mode 100644 index 0000000..b37dfe5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessResponse.js @@ -0,0 +1,69 @@ +"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.CreateMonitorAgentProcessResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const CreateMonitorAgentProcessResponseBody_1 = require("./CreateMonitorAgentProcessResponseBody"); +class CreateMonitorAgentProcessResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateMonitorAgentProcessResponseBody_1.CreateMonitorAgentProcessResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateMonitorAgentProcessResponse = CreateMonitorAgentProcessResponse; +//# sourceMappingURL=CreateMonitorAgentProcessResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessResponse.js.map new file mode 100644 index 0000000..1707884 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateMonitorAgentProcessResponse.js","sourceRoot":"","sources":["../../src/models/CreateMonitorAgentProcessResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,mGAAgG;AAGhG,MAAa,iCAAkC,SAAQ,KAAK,CAAC,KAAK;IAIhE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,6EAAqC;SAC5C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,8EAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessResponseBody.d.ts new file mode 100644 index 0000000..d5219c8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessResponseBody.d.ts @@ -0,0 +1,58 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateMonitorAgentProcessResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The process ID. + * + * @example + * 123456 + */ + id?: number; + /** + * @remarks + * The error message. + * + * @example + * User not authorized to operate on the specified resource. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 971CC023-5A96-452A-BB7C-2483F948BCFD + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessResponseBody.js new file mode 100644 index 0000000..57aea58 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessResponseBody.js @@ -0,0 +1,66 @@ +"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.CreateMonitorAgentProcessResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateMonitorAgentProcessResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + id: 'Id', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + id: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateMonitorAgentProcessResponseBody = CreateMonitorAgentProcessResponseBody; +//# sourceMappingURL=CreateMonitorAgentProcessResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessResponseBody.js.map new file mode 100644 index 0000000..b192a40 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorAgentProcessResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateMonitorAgentProcessResponseBody.js","sourceRoot":"","sources":["../../src/models/CreateMonitorAgentProcessResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qCAAsC,SAAQ,KAAK,CAAC,KAAK;IA8CpE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,EAAE,EAAE,IAAI;YACR,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,EAAE,EAAE,QAAQ;YACZ,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,sFAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdRequest.d.ts new file mode 100644 index 0000000..7e9cec7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdRequest.d.ts @@ -0,0 +1,83 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateMonitorGroupByResourceGroupIdRequest extends $dara.Model { + /** + * @remarks + * The alert contact groups. The alert notifications of the application group are sent to the alert contacts that belong to the specified alert contact groups. + * + * 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). For information about how to obtain alert contact groups, see [DescribeContactGroupList](https://help.aliyun.com/document_detail/114922.html). + * + * This parameter is required. + * + * @example + * ECS_Group + */ + contactGroupList?: string[]; + /** + * @remarks + * Specifies whether the CloudMonitor agent is automatically installed for the application group. CloudMonitor determines whether to automatically install the CloudMonitor agent for the hosts in an application group based on the value of this parameter. Valid values: + * + * * true: The CloudMonitor agent is automatically installed. + * * false (default): The CloudMonitor agent is not automatically installed. + * + * @example + * true + */ + enableInstallAgent?: boolean; + /** + * @remarks + * Specifies whether the application group automatically subscribes to event notifications. If events whose severity level is critical or warning occur on resources in an application group, CloudMonitor sends alert notifications. Valid values: + * + * * true: The application group automatically subscribes to event notifications. + * * false (default): The application group does not automatically subscribe to event notifications. + * + * @example + * true + */ + enableSubscribeEvent?: boolean; + /** + * @remarks + * The ID of the region where the resource group resides. + * + * For information about how to obtain the ID of the region where a resource group resides, see [GetResourceGroup](https://help.aliyun.com/document_detail/158866.html). + * + * This parameter is required. + * + * @example + * cn-hangzhou + */ + regionId?: string; + /** + * @remarks + * The ID of the resource group. + * + * For information about how to obtain the ID of a resource group, see [ListResourceGroups](https://help.aliyun.com/document_detail/158855.html). + * + * This parameter is required. + * + * @example + * rg-acfmw3ty5y7**** + */ + resourceGroupId?: string; + /** + * @remarks + * The name of the resource group. + * + * For information about how to obtain the name of a resource group, see [ListResourceGroups](https://help.aliyun.com/document_detail/158855.html). + * + * This parameter is required. + * + * @example + * CloudMonitor + */ + resourceGroupName?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdRequest.js new file mode 100644 index 0000000..0b83d84 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdRequest.js @@ -0,0 +1,71 @@ +"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.CreateMonitorGroupByResourceGroupIdRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateMonitorGroupByResourceGroupIdRequest extends $dara.Model { + static names() { + return { + contactGroupList: 'ContactGroupList', + enableInstallAgent: 'EnableInstallAgent', + enableSubscribeEvent: 'EnableSubscribeEvent', + regionId: 'RegionId', + resourceGroupId: 'ResourceGroupId', + resourceGroupName: 'ResourceGroupName', + }; + } + static types() { + return { + contactGroupList: { 'type': 'array', 'itemType': 'string' }, + enableInstallAgent: 'boolean', + enableSubscribeEvent: 'boolean', + regionId: 'string', + resourceGroupId: 'string', + resourceGroupName: 'string', + }; + } + validate() { + if (Array.isArray(this.contactGroupList)) { + $dara.Model.validateArray(this.contactGroupList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateMonitorGroupByResourceGroupIdRequest = CreateMonitorGroupByResourceGroupIdRequest; +//# sourceMappingURL=CreateMonitorGroupByResourceGroupIdRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdRequest.js.map new file mode 100644 index 0000000..017cfa1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateMonitorGroupByResourceGroupIdRequest.js","sourceRoot":"","sources":["../../src/models/CreateMonitorGroupByResourceGroupIdRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0CAA2C,SAAQ,KAAK,CAAC,KAAK;IAuEzE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,gBAAgB,EAAE,kBAAkB;YACpC,kBAAkB,EAAE,oBAAoB;YACxC,oBAAoB,EAAE,sBAAsB;YAC5C,QAAQ,EAAE,UAAU;YACpB,eAAe,EAAE,iBAAiB;YAClC,iBAAiB,EAAE,mBAAmB;SACvC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,gBAAgB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YAC3D,kBAAkB,EAAE,SAAS;YAC7B,oBAAoB,EAAE,SAAS;YAC/B,QAAQ,EAAE,QAAQ;YAClB,eAAe,EAAE,QAAQ;YACzB,iBAAiB,EAAE,QAAQ;SAC5B,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAAE,CAAC;YACxC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QACnD,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAvGD,gGAuGC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdResponse.d.ts new file mode 100644 index 0000000..aa5b3bb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { CreateMonitorGroupByResourceGroupIdResponseBody } from "./CreateMonitorGroupByResourceGroupIdResponseBody"; +export declare class CreateMonitorGroupByResourceGroupIdResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: CreateMonitorGroupByResourceGroupIdResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdResponse.js new file mode 100644 index 0000000..f2c50c0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdResponse.js @@ -0,0 +1,69 @@ +"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.CreateMonitorGroupByResourceGroupIdResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const CreateMonitorGroupByResourceGroupIdResponseBody_1 = require("./CreateMonitorGroupByResourceGroupIdResponseBody"); +class CreateMonitorGroupByResourceGroupIdResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateMonitorGroupByResourceGroupIdResponseBody_1.CreateMonitorGroupByResourceGroupIdResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateMonitorGroupByResourceGroupIdResponse = CreateMonitorGroupByResourceGroupIdResponse; +//# sourceMappingURL=CreateMonitorGroupByResourceGroupIdResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdResponse.js.map new file mode 100644 index 0000000..9af09c8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateMonitorGroupByResourceGroupIdResponse.js","sourceRoot":"","sources":["../../src/models/CreateMonitorGroupByResourceGroupIdResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,uHAAoH;AAGpH,MAAa,2CAA4C,SAAQ,KAAK,CAAC,KAAK;IAI1E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,iGAA+C;SACtD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,kGAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdResponseBody.d.ts new file mode 100644 index 0000000..607a775 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdResponseBody.d.ts @@ -0,0 +1,58 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateMonitorGroupByResourceGroupIdResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 3607**** + */ + id?: number; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 784CAB3C-F613-5BCE-8469-6DCB29B18A20 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdResponseBody.js new file mode 100644 index 0000000..2097b3b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdResponseBody.js @@ -0,0 +1,66 @@ +"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.CreateMonitorGroupByResourceGroupIdResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateMonitorGroupByResourceGroupIdResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + id: 'Id', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + id: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateMonitorGroupByResourceGroupIdResponseBody = CreateMonitorGroupByResourceGroupIdResponseBody; +//# sourceMappingURL=CreateMonitorGroupByResourceGroupIdResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdResponseBody.js.map new file mode 100644 index 0000000..ed5aaf3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupByResourceGroupIdResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateMonitorGroupByResourceGroupIdResponseBody.js","sourceRoot":"","sources":["../../src/models/CreateMonitorGroupByResourceGroupIdResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,+CAAgD,SAAQ,KAAK,CAAC,KAAK;IA8C9E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,EAAE,EAAE,IAAI;YACR,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,EAAE,EAAE,QAAQ;YACZ,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,0GAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesRequest.d.ts new file mode 100644 index 0000000..389ff45 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesRequest.d.ts @@ -0,0 +1,85 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateMonitorGroupInstancesRequestInstances extends $dara.Model { + /** + * @remarks + * The abbreviation of the Alibaba Cloud service name. + * + * To obtain the abbreviation of an Alibaba Cloud service name, call the [DescribeProjectMeta](https://help.aliyun.com/document_detail/114916.html) operation. The `metricCategory` tag in the `Labels` response parameter indicates the abbreviation of the Alibaba Cloud service name. + * + * This parameter is required. + * + * @example + * ecs + */ + category?: string; + /** + * @remarks + * The instance ID. + * + * This parameter is required. + * + * @example + * i-2ze26xj5wwy12**** + */ + instanceId?: string; + /** + * @remarks + * The instance name. + * + * This parameter is required. + * + * @example + * test-instance-ecs + */ + instanceName?: string; + /** + * @remarks + * The region ID of the instance. + * + * This parameter is required. + * + * @example + * cn-hangzhou + */ + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class CreateMonitorGroupInstancesRequest extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * This parameter is required. + * + * @example + * 3607**** + */ + groupId?: string; + /** + * @remarks + * The instances that you want to add to the application group. + * + * This parameter is required. + */ + instances?: CreateMonitorGroupInstancesRequestInstances[]; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesRequest.js new file mode 100644 index 0000000..33f9565 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesRequest.js @@ -0,0 +1,90 @@ +"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.CreateMonitorGroupInstancesRequest = exports.CreateMonitorGroupInstancesRequestInstances = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateMonitorGroupInstancesRequestInstances extends $dara.Model { + static names() { + return { + category: 'Category', + instanceId: 'InstanceId', + instanceName: 'InstanceName', + regionId: 'RegionId', + }; + } + static types() { + return { + category: 'string', + instanceId: 'string', + instanceName: 'string', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateMonitorGroupInstancesRequestInstances = CreateMonitorGroupInstancesRequestInstances; +class CreateMonitorGroupInstancesRequest extends $dara.Model { + static names() { + return { + groupId: 'GroupId', + instances: 'Instances', + regionId: 'RegionId', + }; + } + static types() { + return { + groupId: 'string', + instances: { 'type': 'array', 'itemType': CreateMonitorGroupInstancesRequestInstances }, + regionId: 'string', + }; + } + validate() { + if (Array.isArray(this.instances)) { + $dara.Model.validateArray(this.instances); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateMonitorGroupInstancesRequest = CreateMonitorGroupInstancesRequest; +//# sourceMappingURL=CreateMonitorGroupInstancesRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesRequest.js.map new file mode 100644 index 0000000..5ab126e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateMonitorGroupInstancesRequest.js","sourceRoot":"","sources":["../../src/models/CreateMonitorGroupInstancesRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,2CAA4C,SAAQ,KAAK,CAAC,KAAK;IA2C1E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,UAAU,EAAE,YAAY;YACxB,YAAY,EAAE,cAAc;YAC5B,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,UAAU,EAAE,QAAQ;YACpB,YAAY,EAAE,QAAQ;YACtB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApED,kGAoEC;AAED,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;IAmBjE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,2CAA2C,EAAE;YACvF,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;YACjC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC5C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA7CD,gFA6CC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesResponse.d.ts new file mode 100644 index 0000000..aebba2d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { CreateMonitorGroupInstancesResponseBody } from "./CreateMonitorGroupInstancesResponseBody"; +export declare class CreateMonitorGroupInstancesResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: CreateMonitorGroupInstancesResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesResponse.js new file mode 100644 index 0000000..1ae6313 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesResponse.js @@ -0,0 +1,69 @@ +"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.CreateMonitorGroupInstancesResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const CreateMonitorGroupInstancesResponseBody_1 = require("./CreateMonitorGroupInstancesResponseBody"); +class CreateMonitorGroupInstancesResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateMonitorGroupInstancesResponseBody_1.CreateMonitorGroupInstancesResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateMonitorGroupInstancesResponse = CreateMonitorGroupInstancesResponse; +//# sourceMappingURL=CreateMonitorGroupInstancesResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesResponse.js.map new file mode 100644 index 0000000..7512936 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateMonitorGroupInstancesResponse.js","sourceRoot":"","sources":["../../src/models/CreateMonitorGroupInstancesResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,uGAAoG;AAGpG,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IAIlE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,iFAAuC;SAC9C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,kFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesResponseBody.d.ts new file mode 100644 index 0000000..10996d3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateMonitorGroupInstancesResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 1BC69FEB-56CD-4555-A0E2-02536A24A946 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesResponseBody.js new file mode 100644 index 0000000..81430f9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesResponseBody.js @@ -0,0 +1,64 @@ +"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.CreateMonitorGroupInstancesResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateMonitorGroupInstancesResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateMonitorGroupInstancesResponseBody = CreateMonitorGroupInstancesResponseBody; +//# sourceMappingURL=CreateMonitorGroupInstancesResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesResponseBody.js.map new file mode 100644 index 0000000..3ccfae0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupInstancesResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateMonitorGroupInstancesResponseBody.js","sourceRoot":"","sources":["../../src/models/CreateMonitorGroupInstancesResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,uCAAwC,SAAQ,KAAK,CAAC,KAAK;IAsCtE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,0FA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyRequest.d.ts new file mode 100644 index 0000000..9dc3c13 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyRequest.d.ts @@ -0,0 +1,58 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateMonitorGroupNotifyPolicyRequest extends $dara.Model { + /** + * @remarks + * The end time of the validity period for the policy. + * + * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * This parameter is required. + * + * @example + * 1623208500000 + */ + endTime?: number; + /** + * @remarks + * The ID of the application group. + * + * This parameter is required. + * + * @example + * 7301**** + */ + groupId?: string; + /** + * @remarks + * The policy type. Valid value: PauseNotify. + * + * This parameter is required. + * + * @example + * PauseNotify + */ + policyType?: string; + regionId?: string; + /** + * @remarks + * The start time of the validity period for the policy. + * + * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * This parameter is required. + * + * @example + * 1622949300000 + */ + startTime?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyRequest.js new file mode 100644 index 0000000..26365d3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyRequest.js @@ -0,0 +1,66 @@ +"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.CreateMonitorGroupNotifyPolicyRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateMonitorGroupNotifyPolicyRequest extends $dara.Model { + static names() { + return { + endTime: 'EndTime', + groupId: 'GroupId', + policyType: 'PolicyType', + regionId: 'RegionId', + startTime: 'StartTime', + }; + } + static types() { + return { + endTime: 'number', + groupId: 'string', + policyType: 'string', + regionId: 'string', + startTime: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateMonitorGroupNotifyPolicyRequest = CreateMonitorGroupNotifyPolicyRequest; +//# sourceMappingURL=CreateMonitorGroupNotifyPolicyRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyRequest.js.map new file mode 100644 index 0000000..d7a0aee --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateMonitorGroupNotifyPolicyRequest.js","sourceRoot":"","sources":["../../src/models/CreateMonitorGroupNotifyPolicyRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qCAAsC,SAAQ,KAAK,CAAC,KAAK;IA8CpE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,sFAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyResponse.d.ts new file mode 100644 index 0000000..b20590b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { CreateMonitorGroupNotifyPolicyResponseBody } from "./CreateMonitorGroupNotifyPolicyResponseBody"; +export declare class CreateMonitorGroupNotifyPolicyResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: CreateMonitorGroupNotifyPolicyResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyResponse.js new file mode 100644 index 0000000..7b01b6d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyResponse.js @@ -0,0 +1,69 @@ +"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.CreateMonitorGroupNotifyPolicyResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const CreateMonitorGroupNotifyPolicyResponseBody_1 = require("./CreateMonitorGroupNotifyPolicyResponseBody"); +class CreateMonitorGroupNotifyPolicyResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateMonitorGroupNotifyPolicyResponseBody_1.CreateMonitorGroupNotifyPolicyResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateMonitorGroupNotifyPolicyResponse = CreateMonitorGroupNotifyPolicyResponse; +//# sourceMappingURL=CreateMonitorGroupNotifyPolicyResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyResponse.js.map new file mode 100644 index 0000000..cfb4e9e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateMonitorGroupNotifyPolicyResponse.js","sourceRoot":"","sources":["../../src/models/CreateMonitorGroupNotifyPolicyResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,6GAA0G;AAG1G,MAAa,sCAAuC,SAAQ,KAAK,CAAC,KAAK;IAIrE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,uFAA0C;SACjD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,wFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyResponseBody.d.ts new file mode 100644 index 0000000..1866cb0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyResponseBody.d.ts @@ -0,0 +1,58 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateMonitorGroupNotifyPolicyResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 13356BCA-3EC3-4748-A771-2064DA69AEF1 + */ + requestId?: string; + /** + * @remarks + * The total number of entries returned. + * + * @example + * 1 + */ + result?: number; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyResponseBody.js new file mode 100644 index 0000000..e924601 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyResponseBody.js @@ -0,0 +1,66 @@ +"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.CreateMonitorGroupNotifyPolicyResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateMonitorGroupNotifyPolicyResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + result: 'Result', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + result: 'number', + success: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateMonitorGroupNotifyPolicyResponseBody = CreateMonitorGroupNotifyPolicyResponseBody; +//# sourceMappingURL=CreateMonitorGroupNotifyPolicyResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyResponseBody.js.map new file mode 100644 index 0000000..12f2b5c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupNotifyPolicyResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateMonitorGroupNotifyPolicyResponseBody.js","sourceRoot":"","sources":["../../src/models/CreateMonitorGroupNotifyPolicyResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0CAA2C,SAAQ,KAAK,CAAC,KAAK;IA8CzE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,gGAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupRequest.d.ts new file mode 100644 index 0000000..85c057c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupRequest.d.ts @@ -0,0 +1,34 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateMonitorGroupRequest extends $dara.Model { + /** + * @remarks + * The alert contact group. The alert notifications of the application group are sent to the alert contacts that belong to the alert contact group. + * + * > 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](~~PutContact~~) and [PutContactGroup](~~PutContactGroup~~). + * + * @example + * ECS_Alert_Group + */ + contactGroups?: string; + /** + * @remarks + * The name of the application group. + * + * This parameter is required. + * + * @example + * ECS_Group + */ + groupName?: string; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupRequest.js new file mode 100644 index 0000000..dc2a9c1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupRequest.js @@ -0,0 +1,62 @@ +"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.CreateMonitorGroupRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateMonitorGroupRequest extends $dara.Model { + static names() { + return { + contactGroups: 'ContactGroups', + groupName: 'GroupName', + regionId: 'RegionId', + }; + } + static types() { + return { + contactGroups: 'string', + groupName: 'string', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateMonitorGroupRequest = CreateMonitorGroupRequest; +//# sourceMappingURL=CreateMonitorGroupRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupRequest.js.map new file mode 100644 index 0000000..a7646da --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateMonitorGroupRequest.js","sourceRoot":"","sources":["../../src/models/CreateMonitorGroupRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IAsBxD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,aAAa,EAAE,eAAe;YAC9B,SAAS,EAAE,WAAW;YACtB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,aAAa,EAAE,QAAQ;YACvB,SAAS,EAAE,QAAQ;YACnB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA7CD,8DA6CC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupResponse.d.ts new file mode 100644 index 0000000..1ef787b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { CreateMonitorGroupResponseBody } from "./CreateMonitorGroupResponseBody"; +export declare class CreateMonitorGroupResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: CreateMonitorGroupResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupResponse.js new file mode 100644 index 0000000..c7fa02c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupResponse.js @@ -0,0 +1,69 @@ +"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.CreateMonitorGroupResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const CreateMonitorGroupResponseBody_1 = require("./CreateMonitorGroupResponseBody"); +class CreateMonitorGroupResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateMonitorGroupResponseBody_1.CreateMonitorGroupResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateMonitorGroupResponse = CreateMonitorGroupResponse; +//# sourceMappingURL=CreateMonitorGroupResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupResponse.js.map new file mode 100644 index 0000000..19a391e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateMonitorGroupResponse.js","sourceRoot":"","sources":["../../src/models/CreateMonitorGroupResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,qFAAkF;AAGlF,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IAIzD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,+DAA8B;SACrC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,gEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupResponseBody.d.ts new file mode 100644 index 0000000..52ff5eb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupResponseBody.d.ts @@ -0,0 +1,58 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateMonitorGroupResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The ID of the application group. + * + * @example + * 1234567 + */ + groupId?: number; + /** + * @remarks + * The returned message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 83C89BA6-ABD4-4398-A175-83E86C47A001 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupResponseBody.js new file mode 100644 index 0000000..a869409 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupResponseBody.js @@ -0,0 +1,66 @@ +"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.CreateMonitorGroupResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateMonitorGroupResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + groupId: 'GroupId', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'number', + groupId: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateMonitorGroupResponseBody = CreateMonitorGroupResponseBody; +//# sourceMappingURL=CreateMonitorGroupResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupResponseBody.js.map new file mode 100644 index 0000000..1cf314b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitorGroupResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateMonitorGroupResponseBody.js","sourceRoot":"","sources":["../../src/models/CreateMonitorGroupResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IA8C7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,wEAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessRequest.d.ts new file mode 100644 index 0000000..9990903 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessRequest.d.ts @@ -0,0 +1,40 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateMonitoringAgentProcessRequest extends $dara.Model { + /** + * @remarks + * The instance ID. + * + * This parameter is required. + * + * @example + * i-2ze51wjtwox01r8g**** + */ + instanceId?: string; + /** + * @remarks + * The name of the process. + * + * @example + * java + */ + processName?: string; + /** + * @remarks + * The user who launches the process. + * + * @example + * admin + */ + processUser?: string; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessRequest.js new file mode 100644 index 0000000..f77619e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessRequest.js @@ -0,0 +1,64 @@ +"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.CreateMonitoringAgentProcessRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateMonitoringAgentProcessRequest extends $dara.Model { + static names() { + return { + instanceId: 'InstanceId', + processName: 'ProcessName', + processUser: 'ProcessUser', + regionId: 'RegionId', + }; + } + static types() { + return { + instanceId: 'string', + processName: 'string', + processUser: 'string', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateMonitoringAgentProcessRequest = CreateMonitoringAgentProcessRequest; +//# sourceMappingURL=CreateMonitoringAgentProcessRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessRequest.js.map new file mode 100644 index 0000000..0055ccf --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateMonitoringAgentProcessRequest.js","sourceRoot":"","sources":["../../src/models/CreateMonitoringAgentProcessRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IA4BlE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,QAAQ;YACrB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AArDD,kFAqDC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessResponse.d.ts new file mode 100644 index 0000000..a58ae0b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { CreateMonitoringAgentProcessResponseBody } from "./CreateMonitoringAgentProcessResponseBody"; +export declare class CreateMonitoringAgentProcessResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: CreateMonitoringAgentProcessResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessResponse.js new file mode 100644 index 0000000..bbca3e1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessResponse.js @@ -0,0 +1,69 @@ +"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.CreateMonitoringAgentProcessResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const CreateMonitoringAgentProcessResponseBody_1 = require("./CreateMonitoringAgentProcessResponseBody"); +class CreateMonitoringAgentProcessResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateMonitoringAgentProcessResponseBody_1.CreateMonitoringAgentProcessResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateMonitoringAgentProcessResponse = CreateMonitoringAgentProcessResponse; +//# sourceMappingURL=CreateMonitoringAgentProcessResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessResponse.js.map new file mode 100644 index 0000000..85047f2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateMonitoringAgentProcessResponse.js","sourceRoot":"","sources":["../../src/models/CreateMonitoringAgentProcessResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,yGAAsG;AAGtG,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IAInE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,mFAAwC;SAC/C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,oFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessResponseBody.d.ts new file mode 100644 index 0000000..437bb32 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessResponseBody.d.ts @@ -0,0 +1,58 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateMonitoringAgentProcessResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The process ID. + * + * @example + * 12345 + */ + id?: number; + /** + * @remarks + * The error message. + * + * @example + * User not authorized to operate on the specified resource. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 0DFCB47D-E7E1-4CBE-A381-8339F7B300EF + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessResponseBody.js new file mode 100644 index 0000000..9c4ea7a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessResponseBody.js @@ -0,0 +1,66 @@ +"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.CreateMonitoringAgentProcessResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateMonitoringAgentProcessResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + id: 'Id', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + id: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateMonitoringAgentProcessResponseBody = CreateMonitoringAgentProcessResponseBody; +//# sourceMappingURL=CreateMonitoringAgentProcessResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessResponseBody.js.map new file mode 100644 index 0000000..e156b0e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateMonitoringAgentProcessResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateMonitoringAgentProcessResponseBody.js","sourceRoot":"","sources":["../../src/models/CreateMonitoringAgentProcessResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wCAAyC,SAAQ,KAAK,CAAC,KAAK;IA8CvE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,EAAE,EAAE,IAAI;YACR,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,EAAE,EAAE,QAAQ;YACZ,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,4FAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorRequest.d.ts new file mode 100644 index 0000000..510fa06 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorRequest.d.ts @@ -0,0 +1,104 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateSiteMonitorRequest extends $dara.Model { + /** + * @remarks + * The URL or IP address that is monitored by the task. + * + * This parameter is required. + * + * @example + * https://www.aliyun.com + */ + address?: string; + agentGroup?: string; + /** + * @remarks + * The ID of the alert rule. + * + * For more information about how to obtain the ID of an alert rule, see [DescribeMetricRuleList](https://help.aliyun.com/document_detail/114941.html). + * + * @example + * SystemDefault_acs_ecs_dashboard_InternetOutRate_Percent + */ + alertIds?: string; + /** + * @remarks + * The custom detection period. You can only select a time period from Monday to Sunday for detection. + * + * @example + * {"start_hour":0,"end_hour":24, "days":[0], "time_zone":"Local"} + */ + customSchedule?: string; + /** + * @remarks + * The interval at which detection requests are sent. + * + * Valid values: 1, 5, 15, 30, and 60. Unit: minutes. + * + * Default value: 1. + * + * @example + * 1 + */ + interval?: string; + /** + * @remarks + * The information of the detection points. If you leave this parameter empty, the system randomly selects three detection points. + * + * The value is a JSON array. Example: `[{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}]`. The values of the city field indicate Beijing, Hangzhou, and Qingdao. + * + * For information about how to obtain detection points, see [DescribeSiteMonitorISPCityList](https://help.aliyun.com/document_detail/115045.html). + * + * @example + * [{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}] + */ + ispCities?: string; + /** + * @remarks + * The extended options of the protocol that is used by the site monitoring task. The options vary based on the protocol. + * + * @example + * {"time_out":5000} + */ + optionsJson?: string; + regionId?: string; + /** + * @remarks + * The name of the site monitoring task. + * + * The name must be 4 to 100 characters in length, and can contain letters, digits, and underscores (_). + * + * This parameter is required. + * + * @example + * HanZhou_ECS1 + */ + taskName?: string; + /** + * @remarks + * The protocol that is used by the site monitoring task. + * + * Valid values: HTTP, HTTPS, PING, TCP, UDP, DNS, SMTP, POP3, FTP, and WEBSOCKET. + * + * This parameter is required. + * + * @example + * HTTPS + */ + taskType?: string; + /** + * @example + * {"vpcId": "vpc-xxxxxx", "vswitchId": "vsw-xxxxxx", "securityGroupId": "sg-xxxxxx", "region": "cn-beijing"} + */ + vpcConfig?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorRequest.js new file mode 100644 index 0000000..d86f426 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorRequest.js @@ -0,0 +1,78 @@ +"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.CreateSiteMonitorRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateSiteMonitorRequest extends $dara.Model { + static names() { + return { + address: 'Address', + agentGroup: 'AgentGroup', + alertIds: 'AlertIds', + customSchedule: 'CustomSchedule', + interval: 'Interval', + ispCities: 'IspCities', + optionsJson: 'OptionsJson', + regionId: 'RegionId', + taskName: 'TaskName', + taskType: 'TaskType', + vpcConfig: 'VpcConfig', + }; + } + static types() { + return { + address: 'string', + agentGroup: 'string', + alertIds: 'string', + customSchedule: 'string', + interval: 'string', + ispCities: 'string', + optionsJson: 'string', + regionId: 'string', + taskName: 'string', + taskType: 'string', + vpcConfig: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateSiteMonitorRequest = CreateSiteMonitorRequest; +//# sourceMappingURL=CreateSiteMonitorRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorRequest.js.map new file mode 100644 index 0000000..48fa7ea --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateSiteMonitorRequest.js","sourceRoot":"","sources":["../../src/models/CreateSiteMonitorRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wBAAyB,SAAQ,KAAK,CAAC,KAAK;IA4FvD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,cAAc,EAAE,gBAAgB;YAChC,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;YACtB,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,cAAc,EAAE,QAAQ;YACxB,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,QAAQ;YACnB,WAAW,EAAE,QAAQ;YACrB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnID,4DAmIC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorResponse.d.ts new file mode 100644 index 0000000..321a116 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { CreateSiteMonitorResponseBody } from "./CreateSiteMonitorResponseBody"; +export declare class CreateSiteMonitorResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: CreateSiteMonitorResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorResponse.js new file mode 100644 index 0000000..1cbe11e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorResponse.js @@ -0,0 +1,69 @@ +"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.CreateSiteMonitorResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const CreateSiteMonitorResponseBody_1 = require("./CreateSiteMonitorResponseBody"); +class CreateSiteMonitorResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateSiteMonitorResponseBody_1.CreateSiteMonitorResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateSiteMonitorResponse = CreateSiteMonitorResponse; +//# sourceMappingURL=CreateSiteMonitorResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorResponse.js.map new file mode 100644 index 0000000..f754953 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateSiteMonitorResponse.js","sourceRoot":"","sources":["../../src/models/CreateSiteMonitorResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,mFAAgF;AAGhF,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IAIxD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,6DAA6B;SACpC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,8DAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorResponseBody.d.ts new file mode 100644 index 0000000..2064c11 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorResponseBody.d.ts @@ -0,0 +1,190 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CreateSiteMonitorResponseBodyCreateResultListCreateResultList extends $dara.Model { + /** + * @remarks + * The ID of the site monitoring task. + * + * @example + * 2c8dbdf9-a3ab-46a1-85a4-f094965e**** + */ + taskId?: string; + /** + * @remarks + * The name of the site monitoring task. + * + * @example + * HanZhou_ECS1 + */ + taskName?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class CreateSiteMonitorResponseBodyCreateResultList extends $dara.Model { + createResultList?: CreateSiteMonitorResponseBodyCreateResultListCreateResultList[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class CreateSiteMonitorResponseBodyDataAttachAlertResultContact extends $dara.Model { + /** + * @remarks + * The status code that is returned after you associate the existing alert rule with the site monitoring task. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The message that is returned after you associate the existing alert rule with the site monitoring task. + * + * @example + * successful + */ + message?: string; + /** + * @remarks + * The ID of the request that was sent to associate the existing alert rule with the site monitoring task. + * + * @example + * 5dd33455-4f65-4b0c-9200-33d66f3f340b + */ + requestId?: string; + /** + * @remarks + * The ID of the alert rule. + * + * @example + * SystemDefault_acs_ecs_dashboard_InternetOutRate_Percent + */ + ruleId?: string; + /** + * @remarks + * Indicates whether the existing alert rule was associated with the site monitoring task. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class CreateSiteMonitorResponseBodyDataAttachAlertResult extends $dara.Model { + contact?: CreateSiteMonitorResponseBodyDataAttachAlertResultContact[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class CreateSiteMonitorResponseBodyData extends $dara.Model { + /** + * @remarks + * The result that is returned after you associate the existing alert rule with the site monitoring task. + */ + attachAlertResult?: CreateSiteMonitorResponseBodyDataAttachAlertResult; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class CreateSiteMonitorResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned result. + * + * If a site monitoring task is created, the result is returned. If a site monitoring task fails to be created, no result is returned. + */ + createResultList?: CreateSiteMonitorResponseBodyCreateResultList; + /** + * @remarks + * The result of the site monitoring task. + */ + data?: CreateSiteMonitorResponseBodyData; + /** + * @remarks + * The returned message. + * + * @example + * Successful + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 68192f5d-0d45-4b98-9724-892813f86c71 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorResponseBody.js new file mode 100644 index 0000000..cdf126b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorResponseBody.js @@ -0,0 +1,188 @@ +"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.CreateSiteMonitorResponseBody = exports.CreateSiteMonitorResponseBodyData = exports.CreateSiteMonitorResponseBodyDataAttachAlertResult = exports.CreateSiteMonitorResponseBodyDataAttachAlertResultContact = exports.CreateSiteMonitorResponseBodyCreateResultList = exports.CreateSiteMonitorResponseBodyCreateResultListCreateResultList = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CreateSiteMonitorResponseBodyCreateResultListCreateResultList extends $dara.Model { + static names() { + return { + taskId: 'TaskId', + taskName: 'TaskName', + }; + } + static types() { + return { + taskId: 'string', + taskName: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateSiteMonitorResponseBodyCreateResultListCreateResultList = CreateSiteMonitorResponseBodyCreateResultListCreateResultList; +class CreateSiteMonitorResponseBodyCreateResultList extends $dara.Model { + static names() { + return { + createResultList: 'CreateResultList', + }; + } + static types() { + return { + createResultList: { 'type': 'array', 'itemType': CreateSiteMonitorResponseBodyCreateResultListCreateResultList }, + }; + } + validate() { + if (Array.isArray(this.createResultList)) { + $dara.Model.validateArray(this.createResultList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateSiteMonitorResponseBodyCreateResultList = CreateSiteMonitorResponseBodyCreateResultList; +class CreateSiteMonitorResponseBodyDataAttachAlertResultContact extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + ruleId: 'RuleId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + ruleId: 'string', + success: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateSiteMonitorResponseBodyDataAttachAlertResultContact = CreateSiteMonitorResponseBodyDataAttachAlertResultContact; +class CreateSiteMonitorResponseBodyDataAttachAlertResult extends $dara.Model { + static names() { + return { + contact: 'Contact', + }; + } + static types() { + return { + contact: { 'type': 'array', 'itemType': CreateSiteMonitorResponseBodyDataAttachAlertResultContact }, + }; + } + validate() { + if (Array.isArray(this.contact)) { + $dara.Model.validateArray(this.contact); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateSiteMonitorResponseBodyDataAttachAlertResult = CreateSiteMonitorResponseBodyDataAttachAlertResult; +class CreateSiteMonitorResponseBodyData extends $dara.Model { + static names() { + return { + attachAlertResult: 'AttachAlertResult', + }; + } + static types() { + return { + attachAlertResult: CreateSiteMonitorResponseBodyDataAttachAlertResult, + }; + } + validate() { + if (this.attachAlertResult && typeof this.attachAlertResult.validate === 'function') { + this.attachAlertResult.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateSiteMonitorResponseBodyData = CreateSiteMonitorResponseBodyData; +class CreateSiteMonitorResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + createResultList: 'CreateResultList', + data: 'Data', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + createResultList: CreateSiteMonitorResponseBodyCreateResultList, + data: CreateSiteMonitorResponseBodyData, + message: 'string', + requestId: 'string', + success: 'string', + }; + } + validate() { + if (this.createResultList && typeof this.createResultList.validate === 'function') { + this.createResultList.validate(); + } + if (this.data && typeof this.data.validate === 'function') { + this.data.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CreateSiteMonitorResponseBody = CreateSiteMonitorResponseBody; +//# sourceMappingURL=CreateSiteMonitorResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorResponseBody.js.map new file mode 100644 index 0000000..4c4c260 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CreateSiteMonitorResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateSiteMonitorResponseBody.js","sourceRoot":"","sources":["../../src/models/CreateSiteMonitorResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6DAA8D,SAAQ,KAAK,CAAC,KAAK;IAiB5F,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IAC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,EAAE,MAAM;YACZ,gBAAgB,EAAE,kBAAkB;YACpC,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,gBAAgB,EAAE,6CAA6C;YAC/D,IAAI,EAAE,iCAAiC;YACvC,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,gBAAgB,IAAI,OAAQ,IAAI,CAAC,gBAAwB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACzF,IAAI,CAAC,gBAAwB,CAAC,QAAQ,EAAE,CAAC;QAC5C,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AArFD,sEAqFC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CursorRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CursorRequest.d.ts new file mode 100644 index 0000000..cd64cf8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CursorRequest.d.ts @@ -0,0 +1,88 @@ +import * as $dara from '@darabonba/typescript'; +import { Matcher } from "./Matcher"; +export declare class CursorRequest extends $dara.Model { + /** + * @remarks + * The end of the time range to query. + * + * Unit: milliseconds. + * + * > + * + * * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. For example, 2023-01-01T00:00:00Z indicates January 1, 2023, 00:00:00 UTC. + * + * * If you do not set the end time, the end time is infinite. You can leave this parameter empty in real-time export scenarios. + * * In CloudMonitor, the TTL of monitoring data varies with the time granularity. Specify a proper time interval based on the TTL corresponding to the value of the `Period` parameter. + * + * @example + * 1641645000000 + */ + endTime?: string; + /** + * @remarks + * The dimension information of the metric. + */ + matchers?: Matcher[]; + /** + * @remarks + * The metric that is used to monitor the cloud service. + * + * For more information about the metrics of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * cpu_idle + */ + metric?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * For more information about the namespaces of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The time interval based on which the metric value is measured. + * + * Unit: seconds. + * + * > Generally, the time interval is 60 seconds. For more information about specific values, see the `Period` parameter in [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * 60 + */ + period?: number; + /** + * @remarks + * The beginning of the time range to query. + * + * Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. For example, 2023-01-01T00:00:00Z indicates January 1, 2023, 00:00:00 UTC. + * + * > In CloudMonitor, the TTL of monitoring data varies with the time granularity. Specify a proper time interval based on the TTL corresponding to the value of the `Period` parameter. + * + * This parameter is required. + * + * @example + * 1641627000000 + */ + startTime?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CursorRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CursorRequest.js new file mode 100644 index 0000000..c5bd501 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CursorRequest.js @@ -0,0 +1,72 @@ +"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.CursorRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const Matcher_1 = require("./Matcher"); +class CursorRequest extends $dara.Model { + static names() { + return { + endTime: 'EndTime', + matchers: 'Matchers', + metric: 'Metric', + namespace: 'Namespace', + period: 'Period', + startTime: 'StartTime', + }; + } + static types() { + return { + endTime: 'string', + matchers: { 'type': 'array', 'itemType': Matcher_1.Matcher }, + metric: 'string', + namespace: 'string', + period: 'number', + startTime: 'string', + }; + } + validate() { + if (Array.isArray(this.matchers)) { + $dara.Model.validateArray(this.matchers); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CursorRequest = CursorRequest; +//# sourceMappingURL=CursorRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CursorRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CursorRequest.js.map new file mode 100644 index 0000000..157a409 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CursorRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CursorRequest.js","sourceRoot":"","sources":["../../src/models/CursorRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,uCAAoC;AAGpC,MAAa,aAAc,SAAQ,KAAK,CAAC,KAAK;IA2E5C,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,UAAU;YACpB,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,iBAAO,EAAE;YAClD,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,QAAQ;YACnB,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;YAChC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC3C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA3GD,sCA2GC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CursorResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CursorResponse.d.ts new file mode 100644 index 0000000..ebed875 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CursorResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { CursorResponseBody } from "./CursorResponseBody"; +export declare class CursorResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: CursorResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CursorResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CursorResponse.js new file mode 100644 index 0000000..3bac254 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CursorResponse.js @@ -0,0 +1,69 @@ +"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.CursorResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const CursorResponseBody_1 = require("./CursorResponseBody"); +class CursorResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CursorResponseBody_1.CursorResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CursorResponse = CursorResponse; +//# sourceMappingURL=CursorResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CursorResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CursorResponse.js.map new file mode 100644 index 0000000..9738fa7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CursorResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CursorResponse.js","sourceRoot":"","sources":["../../src/models/CursorResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,6DAA0D;AAG1D,MAAa,cAAe,SAAQ,KAAK,CAAC,KAAK;IAI7C,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,uCAAkB;SACzB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,wCAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CursorResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CursorResponseBody.d.ts new file mode 100644 index 0000000..8fb6f09 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CursorResponseBody.d.ts @@ -0,0 +1,58 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CursorResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * Cursor is used as an input parameter for data export in the [BatchExport](https://help.aliyun.com/document_detail/2329847.html) operation. + * + * @example + * v2.5eyJiYXRjaGVzIjoxLCJidWNrZXRCeXRlcyI6IndBPT0iLCJidWNrZXRzIjo0LCJjdXJyZW50QnVja2V0IjotNjQsImN1cnJlbnRUYXJnZXRUaW1lU2xvdCI6MTY3ODc1MjAwMCwiZW5kVGltZSI6MTY3ODc4MjQxOTAwMCwiZXhwb3J0RW5kVGltZSI6MTY3ODc4MjQxOTAwMCwiZXhwb3J0U3RhcnRUaW1lIjoxNjc4NzgxODE5MDAwLCJleHByZXNzUmFuZ2UiOmZhbHNlLCJoYXNOZXh0Ijp0cnVlLCJpbmRleCI6MCwibGF0ZXN0TG9nVGltZSI6MCwibWF0Y2hlcnMiOnsiY2hhaW4iOlt7ImxhYmVsIjoidXNlcklkIiwib3BlcmF0b3IiOiJFUVVBTFMiLCJ2YWx1ZSI6IjEyNzA2NzY2Nzk1NDY3MDQifV0sImxvY2tlZCI6dHJ1ZX0sIm1ldHJpYyI6IlNwbGl0cndQcm94eU1heFJlc3BvbnNlU2l6ZSIsIm1ldHJpY1R5cGUiOiJNRVRSSUMiLCJuYW1lc3BhY2UiOiJhY3Nfa3ZzdG9yZV9leCIsIm5leHRQa0FkYXB0ZXIiOnsiZGltIjoiVjowXG5EOmB1c2VySWRgPTEyNzA2NzY2Nzk1NDY3MDQsYGluc3RhbmNlSWRgPXItcmo5ZjlzMTlsc3V1MXd1bnVyLGBub2RlSWRgPXItcmo5ZjlzMTlsc3V1MXd1bnVyLXByb3h5LTIsXG4iLCJtZXRhIjoiXG5WOjBcbk06YWNzX2t2c3RvcmVfZXgvU3BsaXRyd1Byb3h5TWF4UmVzcG9uc2VTaXplXG5XOjYwXG5COjRcbkk6LTFcblQ6MFxuQzpgQXZlcmFnZWAsYE1heGltdW1gLGBfX2NvdW50X19gLGBfX3RzX19gXG4iLCJyZCI6InN1YkFMU0RwWXY2K0t6aENQQUFBWkErNUFKMEpjbGErRGd2V0hFNWxDSHMvbGtqR2FXYTFJTkVwdFE9PSIsInRhZyI6IiJ9LCJvZmZzZXQiOjAsIm9mZnNldERpZ2l0Ijo0NTU0NTczNDQyMTc4NDIxMjIsInN0YXJ0VGltZSI6MTY3ODc4MTgxOTAwMCwic3RlcCI6LTEsInRhZ01hdGNoZXJzIjp7ImNoYWluIjpbXSwibG9ja2VkIjp0cnVlfSwidGFyZ2V0VGltZVNsb3RzIjpbMTY3ODY2NTYwMCwxNjc4NzUyMDAwXSwidXVpZCI6ImQwMmFhZmY1LWU3ZGQtNDUyYy0*********** + */ + cursor?: string; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 915C2D7A-E6A4-17C3-8E13-4DBDD61E7919 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CursorResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CursorResponseBody.js new file mode 100644 index 0000000..61d0c39 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CursorResponseBody.js @@ -0,0 +1,66 @@ +"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.CursorResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CursorResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + cursor: 'Cursor', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'number', + cursor: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CursorResponseBody = CursorResponseBody; +//# sourceMappingURL=CursorResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CursorResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CursorResponseBody.js.map new file mode 100644 index 0000000..2b7556c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CursorResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CursorResponseBody.js","sourceRoot":"","sources":["../../src/models/CursorResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kBAAmB,SAAQ,KAAK,CAAC,KAAK;IA8CjD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,gDAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CursorShrinkRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/CursorShrinkRequest.d.ts new file mode 100644 index 0000000..471f0a5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CursorShrinkRequest.d.ts @@ -0,0 +1,87 @@ +import * as $dara from '@darabonba/typescript'; +export declare class CursorShrinkRequest extends $dara.Model { + /** + * @remarks + * The end of the time range to query. + * + * Unit: milliseconds. + * + * > + * + * * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. For example, 2023-01-01T00:00:00Z indicates January 1, 2023, 00:00:00 UTC. + * + * * If you do not set the end time, the end time is infinite. You can leave this parameter empty in real-time export scenarios. + * * In CloudMonitor, the TTL of monitoring data varies with the time granularity. Specify a proper time interval based on the TTL corresponding to the value of the `Period` parameter. + * + * @example + * 1641645000000 + */ + endTime?: string; + /** + * @remarks + * The dimension information of the metric. + */ + matchersShrink?: string; + /** + * @remarks + * The metric that is used to monitor the cloud service. + * + * For more information about the metrics of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * cpu_idle + */ + metric?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * For more information about the namespaces of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The time interval based on which the metric value is measured. + * + * Unit: seconds. + * + * > Generally, the time interval is 60 seconds. For more information about specific values, see the `Period` parameter in [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * 60 + */ + period?: number; + /** + * @remarks + * The beginning of the time range to query. + * + * Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. For example, 2023-01-01T00:00:00Z indicates January 1, 2023, 00:00:00 UTC. + * + * > In CloudMonitor, the TTL of monitoring data varies with the time granularity. Specify a proper time interval based on the TTL corresponding to the value of the `Period` parameter. + * + * This parameter is required. + * + * @example + * 1641627000000 + */ + startTime?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CursorShrinkRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/CursorShrinkRequest.js new file mode 100644 index 0000000..79f5fdb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CursorShrinkRequest.js @@ -0,0 +1,68 @@ +"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.CursorShrinkRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class CursorShrinkRequest extends $dara.Model { + static names() { + return { + endTime: 'EndTime', + matchersShrink: 'Matchers', + metric: 'Metric', + namespace: 'Namespace', + period: 'Period', + startTime: 'StartTime', + }; + } + static types() { + return { + endTime: 'string', + matchersShrink: 'string', + metric: 'string', + namespace: 'string', + period: 'number', + startTime: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.CursorShrinkRequest = CursorShrinkRequest; +//# sourceMappingURL=CursorShrinkRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/CursorShrinkRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/CursorShrinkRequest.js.map new file mode 100644 index 0000000..302f27d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/CursorShrinkRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CursorShrinkRequest.js","sourceRoot":"","sources":["../../src/models/CursorShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mBAAoB,SAAQ,KAAK,CAAC,KAAK;IA2ElD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,cAAc,EAAE,UAAU;YAC1B,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,cAAc,EAAE,QAAQ;YACxB,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,QAAQ;YACnB,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxGD,kDAwGC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupRequest.d.ts new file mode 100644 index 0000000..f6e01bf --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupRequest.d.ts @@ -0,0 +1,23 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteContactGroupRequest extends $dara.Model { + /** + * @remarks + * The name of the alert contact group. + * + * This parameter is required. + * + * @example + * contact_group_2019_templatedfkXQ + */ + contactGroupName?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupRequest.js new file mode 100644 index 0000000..cbc7d3f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupRequest.js @@ -0,0 +1,58 @@ +"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.DeleteContactGroupRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteContactGroupRequest extends $dara.Model { + static names() { + return { + contactGroupName: 'ContactGroupName', + }; + } + static types() { + return { + contactGroupName: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteContactGroupRequest = DeleteContactGroupRequest; +//# sourceMappingURL=DeleteContactGroupRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupRequest.js.map new file mode 100644 index 0000000..e9c8fb3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteContactGroupRequest.js","sourceRoot":"","sources":["../../src/models/DeleteContactGroupRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IAWxD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,gBAAgB,EAAE,kBAAkB;SACrC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,gBAAgB,EAAE,QAAQ;SAC3B,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA9BD,8DA8BC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupResponse.d.ts new file mode 100644 index 0000000..c614dc3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DeleteContactGroupResponseBody } from "./DeleteContactGroupResponseBody"; +export declare class DeleteContactGroupResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DeleteContactGroupResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupResponse.js new file mode 100644 index 0000000..70d064c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupResponse.js @@ -0,0 +1,69 @@ +"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.DeleteContactGroupResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DeleteContactGroupResponseBody_1 = require("./DeleteContactGroupResponseBody"); +class DeleteContactGroupResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteContactGroupResponseBody_1.DeleteContactGroupResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteContactGroupResponse = DeleteContactGroupResponse; +//# sourceMappingURL=DeleteContactGroupResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupResponse.js.map new file mode 100644 index 0000000..bc17a3f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteContactGroupResponse.js","sourceRoot":"","sources":["../../src/models/DeleteContactGroupResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,qFAAkF;AAGlF,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IAIzD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,+DAA8B;SACrC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,gEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupResponseBody.d.ts new file mode 100644 index 0000000..a43958d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupResponseBody.d.ts @@ -0,0 +1,47 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteContactGroupResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * F722BE59-2400-4A64-9C1A-AD886AED9A69 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: true and false. + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupResponseBody.js new file mode 100644 index 0000000..8e566ef --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupResponseBody.js @@ -0,0 +1,64 @@ +"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.DeleteContactGroupResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteContactGroupResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteContactGroupResponseBody = DeleteContactGroupResponseBody; +//# sourceMappingURL=DeleteContactGroupResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupResponseBody.js.map new file mode 100644 index 0000000..bd11338 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactGroupResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteContactGroupResponseBody.js","sourceRoot":"","sources":["../../src/models/DeleteContactGroupResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAmC7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5DD,wEA4DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactRequest.d.ts new file mode 100644 index 0000000..7868776 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactRequest.d.ts @@ -0,0 +1,23 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteContactRequest extends $dara.Model { + /** + * @remarks + * The name of the alert contact. + * + * This parameter is required. + * + * @example + * test-01 + */ + contactName?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactRequest.js new file mode 100644 index 0000000..7bbdc5d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactRequest.js @@ -0,0 +1,58 @@ +"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.DeleteContactRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteContactRequest extends $dara.Model { + static names() { + return { + contactName: 'ContactName', + }; + } + static types() { + return { + contactName: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteContactRequest = DeleteContactRequest; +//# sourceMappingURL=DeleteContactRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactRequest.js.map new file mode 100644 index 0000000..34d39a2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteContactRequest.js","sourceRoot":"","sources":["../../src/models/DeleteContactRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oBAAqB,SAAQ,KAAK,CAAC,KAAK;IAWnD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;SAC3B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,QAAQ;SACtB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA9BD,oDA8BC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactResponse.d.ts new file mode 100644 index 0000000..b0467dc --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DeleteContactResponseBody } from "./DeleteContactResponseBody"; +export declare class DeleteContactResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DeleteContactResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactResponse.js new file mode 100644 index 0000000..613e753 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactResponse.js @@ -0,0 +1,69 @@ +"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.DeleteContactResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DeleteContactResponseBody_1 = require("./DeleteContactResponseBody"); +class DeleteContactResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteContactResponseBody_1.DeleteContactResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteContactResponse = DeleteContactResponse; +//# sourceMappingURL=DeleteContactResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactResponse.js.map new file mode 100644 index 0000000..31beb06 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteContactResponse.js","sourceRoot":"","sources":["../../src/models/DeleteContactResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,2EAAwE;AAGxE,MAAa,qBAAsB,SAAQ,KAAK,CAAC,KAAK;IAIpD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,qDAAyB;SAChC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,sDAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactResponseBody.d.ts new file mode 100644 index 0000000..30517a6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactResponseBody.d.ts @@ -0,0 +1,47 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteContactResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 50D4CFE1-01E5-4543-939C-18BC01E3EC1C + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: true and false. + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactResponseBody.js new file mode 100644 index 0000000..3b8cd42 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactResponseBody.js @@ -0,0 +1,64 @@ +"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.DeleteContactResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteContactResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteContactResponseBody = DeleteContactResponseBody; +//# sourceMappingURL=DeleteContactResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactResponseBody.js.map new file mode 100644 index 0000000..aaebb3c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteContactResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteContactResponseBody.js","sourceRoot":"","sources":["../../src/models/DeleteContactResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IAmCxD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5DD,8DA4DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricRequest.d.ts new file mode 100644 index 0000000..36341ab --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricRequest.d.ts @@ -0,0 +1,54 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteCustomMetricRequest extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * This parameter is required. + * + * @example + * 3607**** + */ + groupId?: string; + /** + * @remarks + * The MD5 value of the HTTP request body. The MD5 value is a 128-bit hash value used to verify the uniqueness of the reported monitoring data. + * + * > `Md5` is returned when you query the reported monitoring data of a metric. + * + * @example + * 38796C8CFFEB8F89BB2A626C7BD7**** + */ + md5?: string; + /** + * @remarks + * The name of the metric. + * + * This parameter is required. + * + * @example + * AdvanceCredit + */ + metricName?: string; + regionId?: string; + /** + * @remarks + * The ID of the request for reporting monitoring data. + * + * > `UUID` is returned when you query the reported monitoring data of a metric. We recommend that you specify the `Md5` parameter. + * + * @example + * 5497633c-66c5-4eae-abaa-89db5adb**** + */ + UUID?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricRequest.js new file mode 100644 index 0000000..86db107 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricRequest.js @@ -0,0 +1,66 @@ +"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.DeleteCustomMetricRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteCustomMetricRequest extends $dara.Model { + static names() { + return { + groupId: 'GroupId', + md5: 'Md5', + metricName: 'MetricName', + regionId: 'RegionId', + UUID: 'UUID', + }; + } + static types() { + return { + groupId: 'string', + md5: 'string', + metricName: 'string', + regionId: 'string', + UUID: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteCustomMetricRequest = DeleteCustomMetricRequest; +//# sourceMappingURL=DeleteCustomMetricRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricRequest.js.map new file mode 100644 index 0000000..5d40741 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteCustomMetricRequest.js","sourceRoot":"","sources":["../../src/models/DeleteCustomMetricRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IA0CxD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,GAAG,EAAE,KAAK;YACV,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,GAAG,EAAE,QAAQ;YACb,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,IAAI,EAAE,QAAQ;SACf,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AArED,8DAqEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricResponse.d.ts new file mode 100644 index 0000000..30e0b8f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DeleteCustomMetricResponseBody } from "./DeleteCustomMetricResponseBody"; +export declare class DeleteCustomMetricResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DeleteCustomMetricResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricResponse.js new file mode 100644 index 0000000..c58cde9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricResponse.js @@ -0,0 +1,69 @@ +"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.DeleteCustomMetricResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DeleteCustomMetricResponseBody_1 = require("./DeleteCustomMetricResponseBody"); +class DeleteCustomMetricResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteCustomMetricResponseBody_1.DeleteCustomMetricResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteCustomMetricResponse = DeleteCustomMetricResponse; +//# sourceMappingURL=DeleteCustomMetricResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricResponse.js.map new file mode 100644 index 0000000..f9d91b5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteCustomMetricResponse.js","sourceRoot":"","sources":["../../src/models/DeleteCustomMetricResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,qFAAkF;AAGlF,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IAIzD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,+DAA8B;SACrC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,gEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricResponseBody.d.ts new file mode 100644 index 0000000..4492518 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricResponseBody.d.ts @@ -0,0 +1,39 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteCustomMetricResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call is successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * 05B36C2C-5F6E-48D5-8B41-CE36DD7EE8E0 + */ + requestId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricResponseBody.js new file mode 100644 index 0000000..67ddc38 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricResponseBody.js @@ -0,0 +1,62 @@ +"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.DeleteCustomMetricResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteCustomMetricResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteCustomMetricResponseBody = DeleteCustomMetricResponseBody; +//# sourceMappingURL=DeleteCustomMetricResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricResponseBody.js.map new file mode 100644 index 0000000..1e67c80 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteCustomMetricResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteCustomMetricResponseBody.js","sourceRoot":"","sources":["../../src/models/DeleteCustomMetricResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IA2B7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAlDD,wEAkDC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupRequest.d.ts new file mode 100644 index 0000000..a736b2f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupRequest.d.ts @@ -0,0 +1,26 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteDynamicTagGroupRequest extends $dara.Model { + /** + * @remarks + * The ID of the tag rule. + * + * For information about how to obtain the ID of a tag rule, see [DescribeDynamicTagRuleList](https://help.aliyun.com/document_detail/150126.html). + * + * This parameter is required. + * + * @example + * 6b882d9a-5117-42e2-9d0c-4749a0c6**** + */ + dynamicTagRuleId?: string; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupRequest.js new file mode 100644 index 0000000..ae01b80 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupRequest.js @@ -0,0 +1,60 @@ +"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.DeleteDynamicTagGroupRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteDynamicTagGroupRequest extends $dara.Model { + static names() { + return { + dynamicTagRuleId: 'DynamicTagRuleId', + regionId: 'RegionId', + }; + } + static types() { + return { + dynamicTagRuleId: 'string', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteDynamicTagGroupRequest = DeleteDynamicTagGroupRequest; +//# sourceMappingURL=DeleteDynamicTagGroupRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupRequest.js.map new file mode 100644 index 0000000..dec6e50 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteDynamicTagGroupRequest.js","sourceRoot":"","sources":["../../src/models/DeleteDynamicTagGroupRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,4BAA6B,SAAQ,KAAK,CAAC,KAAK;IAc3D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,gBAAgB,EAAE,kBAAkB;YACpC,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,gBAAgB,EAAE,QAAQ;YAC1B,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnCD,oEAmCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupResponse.d.ts new file mode 100644 index 0000000..58ab870 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DeleteDynamicTagGroupResponseBody } from "./DeleteDynamicTagGroupResponseBody"; +export declare class DeleteDynamicTagGroupResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DeleteDynamicTagGroupResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupResponse.js new file mode 100644 index 0000000..78e0801 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupResponse.js @@ -0,0 +1,69 @@ +"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.DeleteDynamicTagGroupResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DeleteDynamicTagGroupResponseBody_1 = require("./DeleteDynamicTagGroupResponseBody"); +class DeleteDynamicTagGroupResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteDynamicTagGroupResponseBody_1.DeleteDynamicTagGroupResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteDynamicTagGroupResponse = DeleteDynamicTagGroupResponse; +//# sourceMappingURL=DeleteDynamicTagGroupResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupResponse.js.map new file mode 100644 index 0000000..080b2d3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteDynamicTagGroupResponse.js","sourceRoot":"","sources":["../../src/models/DeleteDynamicTagGroupResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,2FAAwF;AAGxF,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IAI5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,qEAAiC;SACxC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,sEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupResponseBody.d.ts new file mode 100644 index 0000000..2fb0d60 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteDynamicTagGroupResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 08AAE67E-77B5-485B-9C79-D7C8C059150A + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupResponseBody.js new file mode 100644 index 0000000..d50773e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupResponseBody.js @@ -0,0 +1,64 @@ +"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.DeleteDynamicTagGroupResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteDynamicTagGroupResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteDynamicTagGroupResponseBody = DeleteDynamicTagGroupResponseBody; +//# sourceMappingURL=DeleteDynamicTagGroupResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupResponseBody.js.map new file mode 100644 index 0000000..3b22763 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteDynamicTagGroupResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteDynamicTagGroupResponseBody.js","sourceRoot":"","sources":["../../src/models/DeleteDynamicTagGroupResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,iCAAkC,SAAQ,KAAK,CAAC,KAAK;IAsChE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,8EA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsRequest.d.ts new file mode 100644 index 0000000..dd76c0c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsRequest.d.ts @@ -0,0 +1,36 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteEventRuleTargetsRequest extends $dara.Model { + /** + * @remarks + * The IDs of event-triggered alert rules. + * + * This parameter is required. + * + * @example + * 1 + */ + ids?: string[]; + regionId?: string; + /** + * @remarks + * The name of the event-triggered alert rule. + * + * For information about how to obtain the name of an event-triggered alert rule, see [DescribeEventRuleList](https://help.aliyun.com/document_detail/114996.html). + * + * This parameter is required. + * + * @example + * testRule + */ + ruleName?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsRequest.js new file mode 100644 index 0000000..3b471f7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsRequest.js @@ -0,0 +1,65 @@ +"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.DeleteEventRuleTargetsRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteEventRuleTargetsRequest extends $dara.Model { + static names() { + return { + ids: 'Ids', + regionId: 'RegionId', + ruleName: 'RuleName', + }; + } + static types() { + return { + ids: { 'type': 'array', 'itemType': 'string' }, + regionId: 'string', + ruleName: 'string', + }; + } + validate() { + if (Array.isArray(this.ids)) { + $dara.Model.validateArray(this.ids); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteEventRuleTargetsRequest = DeleteEventRuleTargetsRequest; +//# sourceMappingURL=DeleteEventRuleTargetsRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsRequest.js.map new file mode 100644 index 0000000..bd50043 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteEventRuleTargetsRequest.js","sourceRoot":"","sources":["../../src/models/DeleteEventRuleTargetsRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IAwB5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,GAAG,EAAE,KAAK;YACV,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,GAAG,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YAC9C,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;YAC3B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACtC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAlDD,sEAkDC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsResponse.d.ts new file mode 100644 index 0000000..884b0e1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DeleteEventRuleTargetsResponseBody } from "./DeleteEventRuleTargetsResponseBody"; +export declare class DeleteEventRuleTargetsResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DeleteEventRuleTargetsResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsResponse.js new file mode 100644 index 0000000..eab064c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsResponse.js @@ -0,0 +1,69 @@ +"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.DeleteEventRuleTargetsResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DeleteEventRuleTargetsResponseBody_1 = require("./DeleteEventRuleTargetsResponseBody"); +class DeleteEventRuleTargetsResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteEventRuleTargetsResponseBody_1.DeleteEventRuleTargetsResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteEventRuleTargetsResponse = DeleteEventRuleTargetsResponse; +//# sourceMappingURL=DeleteEventRuleTargetsResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsResponse.js.map new file mode 100644 index 0000000..65b58e4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteEventRuleTargetsResponse.js","sourceRoot":"","sources":["../../src/models/DeleteEventRuleTargetsResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,6FAA0F;AAG1F,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAI7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,uEAAkC;SACzC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,wEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsResponseBody.d.ts new file mode 100644 index 0000000..a48fe51 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteEventRuleTargetsResponseBody extends $dara.Model { + /** + * @remarks + * The response code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * Success + */ + message?: string; + /** + * @remarks + * The request ID. You can use the request ID to query logs and troubleshoot issues. + * + * @example + * 7ADD7EFB-7555-4EC1-A3D9-F9955C189CCF + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * `true` + * * `false` + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsResponseBody.js new file mode 100644 index 0000000..f9b8e37 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsResponseBody.js @@ -0,0 +1,64 @@ +"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.DeleteEventRuleTargetsResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteEventRuleTargetsResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteEventRuleTargetsResponseBody = DeleteEventRuleTargetsResponseBody; +//# sourceMappingURL=DeleteEventRuleTargetsResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsResponseBody.js.map new file mode 100644 index 0000000..4254601 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRuleTargetsResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteEventRuleTargetsResponseBody.js","sourceRoot":"","sources":["../../src/models/DeleteEventRuleTargetsResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;IAsCjE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,gFA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesRequest.d.ts new file mode 100644 index 0000000..c700cb9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesRequest.d.ts @@ -0,0 +1,23 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteEventRulesRequest extends $dara.Model { + /** + * @remarks + * The name of the alert rule. Valid values of N: 1 to 20. + * + * This parameter is required. + * + * @example + * rule1 + */ + ruleNames?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesRequest.js new file mode 100644 index 0000000..14bd83b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesRequest.js @@ -0,0 +1,61 @@ +"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.DeleteEventRulesRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteEventRulesRequest extends $dara.Model { + static names() { + return { + ruleNames: 'RuleNames', + }; + } + static types() { + return { + ruleNames: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.ruleNames)) { + $dara.Model.validateArray(this.ruleNames); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteEventRulesRequest = DeleteEventRulesRequest; +//# sourceMappingURL=DeleteEventRulesRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesRequest.js.map new file mode 100644 index 0000000..72352d7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteEventRulesRequest.js","sourceRoot":"","sources":["../../src/models/DeleteEventRulesRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,uBAAwB,SAAQ,KAAK,CAAC,KAAK;IAWtD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;SACrD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;YACjC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC5C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,0DAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesResponse.d.ts new file mode 100644 index 0000000..2a0af78 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DeleteEventRulesResponseBody } from "./DeleteEventRulesResponseBody"; +export declare class DeleteEventRulesResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DeleteEventRulesResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesResponse.js new file mode 100644 index 0000000..374f190 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesResponse.js @@ -0,0 +1,69 @@ +"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.DeleteEventRulesResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DeleteEventRulesResponseBody_1 = require("./DeleteEventRulesResponseBody"); +class DeleteEventRulesResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteEventRulesResponseBody_1.DeleteEventRulesResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteEventRulesResponse = DeleteEventRulesResponse; +//# sourceMappingURL=DeleteEventRulesResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesResponse.js.map new file mode 100644 index 0000000..c425be7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteEventRulesResponse.js","sourceRoot":"","sources":["../../src/models/DeleteEventRulesResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,iFAA8E;AAG9E,MAAa,wBAAyB,SAAQ,KAAK,CAAC,KAAK;IAIvD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,2DAA4B;SACnC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,4DAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesResponseBody.d.ts new file mode 100644 index 0000000..0a78bb0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesResponseBody.d.ts @@ -0,0 +1,47 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteEventRulesResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * E5A72B5B-4F44-438C-B68A-147FD5DC53A8 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: true and false. + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesResponseBody.js new file mode 100644 index 0000000..e20b027 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesResponseBody.js @@ -0,0 +1,64 @@ +"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.DeleteEventRulesResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteEventRulesResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteEventRulesResponseBody = DeleteEventRulesResponseBody; +//# sourceMappingURL=DeleteEventRulesResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesResponseBody.js.map new file mode 100644 index 0000000..93cbf60 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteEventRulesResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteEventRulesResponseBody.js","sourceRoot":"","sources":["../../src/models/DeleteEventRulesResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,4BAA6B,SAAQ,KAAK,CAAC,KAAK;IAmC3D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5DD,oEA4DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputRequest.d.ts new file mode 100644 index 0000000..60017b7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputRequest.d.ts @@ -0,0 +1,24 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteExporterOutputRequest extends $dara.Model { + /** + * @remarks + * The name of the configuration set. + * + * This parameter is required. + * + * @example + * testName + */ + destName?: string; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputRequest.js new file mode 100644 index 0000000..25f1c11 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputRequest.js @@ -0,0 +1,60 @@ +"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.DeleteExporterOutputRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteExporterOutputRequest extends $dara.Model { + static names() { + return { + destName: 'DestName', + regionId: 'RegionId', + }; + } + static types() { + return { + destName: 'string', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteExporterOutputRequest = DeleteExporterOutputRequest; +//# sourceMappingURL=DeleteExporterOutputRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputRequest.js.map new file mode 100644 index 0000000..69b9c6e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteExporterOutputRequest.js","sourceRoot":"","sources":["../../src/models/DeleteExporterOutputRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,2BAA4B,SAAQ,KAAK,CAAC,KAAK;IAY1D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,kEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputResponse.d.ts new file mode 100644 index 0000000..a874e38 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DeleteExporterOutputResponseBody } from "./DeleteExporterOutputResponseBody"; +export declare class DeleteExporterOutputResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DeleteExporterOutputResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputResponse.js new file mode 100644 index 0000000..25d49d2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputResponse.js @@ -0,0 +1,69 @@ +"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.DeleteExporterOutputResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DeleteExporterOutputResponseBody_1 = require("./DeleteExporterOutputResponseBody"); +class DeleteExporterOutputResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteExporterOutputResponseBody_1.DeleteExporterOutputResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteExporterOutputResponse = DeleteExporterOutputResponse; +//# sourceMappingURL=DeleteExporterOutputResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputResponse.js.map new file mode 100644 index 0000000..924a18d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteExporterOutputResponse.js","sourceRoot":"","sources":["../../src/models/DeleteExporterOutputResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,yFAAsF;AAGtF,MAAa,4BAA6B,SAAQ,KAAK,CAAC,KAAK;IAI3D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,mEAAgC;SACvC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,oEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputResponseBody.d.ts new file mode 100644 index 0000000..ed4f33a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteExporterOutputResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. Other status codes indicate that the request failed. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * Success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 2DECF751-7AFA-43BB-8C63-2B6B07E51AE1 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * `true` + * * `false` + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputResponseBody.js new file mode 100644 index 0000000..14147a5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputResponseBody.js @@ -0,0 +1,64 @@ +"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.DeleteExporterOutputResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteExporterOutputResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteExporterOutputResponseBody = DeleteExporterOutputResponseBody; +//# sourceMappingURL=DeleteExporterOutputResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputResponseBody.js.map new file mode 100644 index 0000000..55076e1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterOutputResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteExporterOutputResponseBody.js","sourceRoot":"","sources":["../../src/models/DeleteExporterOutputResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAsC/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,4EA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleRequest.d.ts new file mode 100644 index 0000000..f26bbc5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleRequest.d.ts @@ -0,0 +1,24 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteExporterRuleRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * The name of the data export rule. + * + * This parameter is required. + * + * @example + * myRuleName + */ + ruleName?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleRequest.js new file mode 100644 index 0000000..eda58dd --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleRequest.js @@ -0,0 +1,60 @@ +"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.DeleteExporterRuleRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteExporterRuleRequest extends $dara.Model { + static names() { + return { + regionId: 'RegionId', + ruleName: 'RuleName', + }; + } + static types() { + return { + regionId: 'string', + ruleName: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteExporterRuleRequest = DeleteExporterRuleRequest; +//# sourceMappingURL=DeleteExporterRuleRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleRequest.js.map new file mode 100644 index 0000000..cd1e89e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteExporterRuleRequest.js","sourceRoot":"","sources":["../../src/models/DeleteExporterRuleRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IAYxD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,8DAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleResponse.d.ts new file mode 100644 index 0000000..8f80625 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DeleteExporterRuleResponseBody } from "./DeleteExporterRuleResponseBody"; +export declare class DeleteExporterRuleResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DeleteExporterRuleResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleResponse.js new file mode 100644 index 0000000..9764678 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleResponse.js @@ -0,0 +1,69 @@ +"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.DeleteExporterRuleResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DeleteExporterRuleResponseBody_1 = require("./DeleteExporterRuleResponseBody"); +class DeleteExporterRuleResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteExporterRuleResponseBody_1.DeleteExporterRuleResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteExporterRuleResponse = DeleteExporterRuleResponse; +//# sourceMappingURL=DeleteExporterRuleResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleResponse.js.map new file mode 100644 index 0000000..517ed82 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteExporterRuleResponse.js","sourceRoot":"","sources":["../../src/models/DeleteExporterRuleResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,qFAAkF;AAGlF,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IAIzD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,+DAA8B;SACrC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,gEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleResponseBody.d.ts new file mode 100644 index 0000000..87a2ca7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteExporterRuleResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. Other status codes indicate that the request failed. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 6A5F022D-AC7C-460E-94AE-B9E75083D023 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * `true` + * * `false` + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleResponseBody.js new file mode 100644 index 0000000..8ab1267 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleResponseBody.js @@ -0,0 +1,64 @@ +"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.DeleteExporterRuleResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteExporterRuleResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteExporterRuleResponseBody = DeleteExporterRuleResponseBody; +//# sourceMappingURL=DeleteExporterRuleResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleResponseBody.js.map new file mode 100644 index 0000000..a3a7521 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteExporterRuleResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteExporterRuleResponseBody.js","sourceRoot":"","sources":["../../src/models/DeleteExporterRuleResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAsC7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,wEA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessRequest.d.ts new file mode 100644 index 0000000..4a29384 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessRequest.d.ts @@ -0,0 +1,34 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteGroupMonitoringAgentProcessRequest extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * This parameter is required. + * + * @example + * 123456 + */ + groupId?: string; + /** + * @remarks + * The ID of the process monitoring task. + * + * This parameter is required. + * + * @example + * 48F83746-C817-478C-9B06-7158F56B**** + */ + id?: string; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessRequest.js new file mode 100644 index 0000000..3955f22 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessRequest.js @@ -0,0 +1,62 @@ +"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.DeleteGroupMonitoringAgentProcessRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteGroupMonitoringAgentProcessRequest extends $dara.Model { + static names() { + return { + groupId: 'GroupId', + id: 'Id', + regionId: 'RegionId', + }; + } + static types() { + return { + groupId: 'string', + id: 'string', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteGroupMonitoringAgentProcessRequest = DeleteGroupMonitoringAgentProcessRequest; +//# sourceMappingURL=DeleteGroupMonitoringAgentProcessRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessRequest.js.map new file mode 100644 index 0000000..567a0df --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteGroupMonitoringAgentProcessRequest.js","sourceRoot":"","sources":["../../src/models/DeleteGroupMonitoringAgentProcessRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wCAAyC,SAAQ,KAAK,CAAC,KAAK;IAsBvE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,EAAE,EAAE,IAAI;YACR,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,EAAE,EAAE,QAAQ;YACZ,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA7CD,4FA6CC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessResponse.d.ts new file mode 100644 index 0000000..9860055 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DeleteGroupMonitoringAgentProcessResponseBody } from "./DeleteGroupMonitoringAgentProcessResponseBody"; +export declare class DeleteGroupMonitoringAgentProcessResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DeleteGroupMonitoringAgentProcessResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessResponse.js new file mode 100644 index 0000000..651da22 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessResponse.js @@ -0,0 +1,69 @@ +"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.DeleteGroupMonitoringAgentProcessResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DeleteGroupMonitoringAgentProcessResponseBody_1 = require("./DeleteGroupMonitoringAgentProcessResponseBody"); +class DeleteGroupMonitoringAgentProcessResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteGroupMonitoringAgentProcessResponseBody_1.DeleteGroupMonitoringAgentProcessResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteGroupMonitoringAgentProcessResponse = DeleteGroupMonitoringAgentProcessResponse; +//# sourceMappingURL=DeleteGroupMonitoringAgentProcessResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessResponse.js.map new file mode 100644 index 0000000..cbb8415 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteGroupMonitoringAgentProcessResponse.js","sourceRoot":"","sources":["../../src/models/DeleteGroupMonitoringAgentProcessResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,mHAAgH;AAGhH,MAAa,yCAA0C,SAAQ,KAAK,CAAC,KAAK;IAIxE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,6FAA6C;SACpD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,8FAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessResponseBody.d.ts new file mode 100644 index 0000000..f3bbb7d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteGroupMonitoringAgentProcessResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 3F6150F9-45C7-43F9-9578-A58B2E726C90 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessResponseBody.js new file mode 100644 index 0000000..8476aba --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessResponseBody.js @@ -0,0 +1,64 @@ +"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.DeleteGroupMonitoringAgentProcessResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteGroupMonitoringAgentProcessResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteGroupMonitoringAgentProcessResponseBody = DeleteGroupMonitoringAgentProcessResponseBody; +//# sourceMappingURL=DeleteGroupMonitoringAgentProcessResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessResponseBody.js.map new file mode 100644 index 0000000..7693454 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteGroupMonitoringAgentProcessResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteGroupMonitoringAgentProcessResponseBody.js","sourceRoot":"","sources":["../../src/models/DeleteGroupMonitoringAgentProcessResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6CAA8C,SAAQ,KAAK,CAAC,KAAK;IAsC5E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,sGA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityRequest.d.ts new file mode 100644 index 0000000..654b80a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityRequest.d.ts @@ -0,0 +1,24 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteHostAvailabilityRequest extends $dara.Model { + /** + * @remarks + * The task ID. Valid values of N: 1 to 20. + * + * This parameter is required. + * + * @example + * 12456 + */ + id?: number[]; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityRequest.js new file mode 100644 index 0000000..eccebed --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityRequest.js @@ -0,0 +1,63 @@ +"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.DeleteHostAvailabilityRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteHostAvailabilityRequest extends $dara.Model { + static names() { + return { + id: 'Id', + regionId: 'RegionId', + }; + } + static types() { + return { + id: { 'type': 'array', 'itemType': 'number' }, + regionId: 'string', + }; + } + validate() { + if (Array.isArray(this.id)) { + $dara.Model.validateArray(this.id); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteHostAvailabilityRequest = DeleteHostAvailabilityRequest; +//# sourceMappingURL=DeleteHostAvailabilityRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityRequest.js.map new file mode 100644 index 0000000..477a8b4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteHostAvailabilityRequest.js","sourceRoot":"","sources":["../../src/models/DeleteHostAvailabilityRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IAY5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,EAAE,EAAE,IAAI;YACR,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YAC7C,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;YAC1B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACrC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApCD,sEAoCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityResponse.d.ts new file mode 100644 index 0000000..5e0562d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DeleteHostAvailabilityResponseBody } from "./DeleteHostAvailabilityResponseBody"; +export declare class DeleteHostAvailabilityResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DeleteHostAvailabilityResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityResponse.js new file mode 100644 index 0000000..1270404 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityResponse.js @@ -0,0 +1,69 @@ +"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.DeleteHostAvailabilityResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DeleteHostAvailabilityResponseBody_1 = require("./DeleteHostAvailabilityResponseBody"); +class DeleteHostAvailabilityResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteHostAvailabilityResponseBody_1.DeleteHostAvailabilityResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteHostAvailabilityResponse = DeleteHostAvailabilityResponse; +//# sourceMappingURL=DeleteHostAvailabilityResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityResponse.js.map new file mode 100644 index 0000000..84eee62 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteHostAvailabilityResponse.js","sourceRoot":"","sources":["../../src/models/DeleteHostAvailabilityResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,6FAA0F;AAG1F,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAI7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,uEAAkC;SACzC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,wEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityResponseBody.d.ts new file mode 100644 index 0000000..5dbb6be --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityResponseBody.d.ts @@ -0,0 +1,47 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteHostAvailabilityResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 57C782E6-B235-4842-AD2B-DB94961761EB + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: true and false. + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityResponseBody.js new file mode 100644 index 0000000..788b3a4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityResponseBody.js @@ -0,0 +1,64 @@ +"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.DeleteHostAvailabilityResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteHostAvailabilityResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteHostAvailabilityResponseBody = DeleteHostAvailabilityResponseBody; +//# sourceMappingURL=DeleteHostAvailabilityResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityResponseBody.js.map new file mode 100644 index 0000000..94a093e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHostAvailabilityResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteHostAvailabilityResponseBody.js","sourceRoot":"","sources":["../../src/models/DeleteHostAvailabilityResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;IAmCjE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5DD,gFA4DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceRequest.d.ts new file mode 100644 index 0000000..4552855 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceRequest.d.ts @@ -0,0 +1,26 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteHybridMonitorNamespaceRequest extends $dara.Model { + /** + * @remarks + * The name of the namespace. + * + * For information about how to obtain the name of a namespace, see [DescribeHybridMonitorNamespaceList](https://help.aliyun.com/document_detail/428880.html). + * + * This parameter is required. + * + * @example + * aliyun + */ + namespace?: string; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceRequest.js new file mode 100644 index 0000000..41b09d1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceRequest.js @@ -0,0 +1,60 @@ +"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.DeleteHybridMonitorNamespaceRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteHybridMonitorNamespaceRequest extends $dara.Model { + static names() { + return { + namespace: 'Namespace', + regionId: 'RegionId', + }; + } + static types() { + return { + namespace: 'string', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteHybridMonitorNamespaceRequest = DeleteHybridMonitorNamespaceRequest; +//# sourceMappingURL=DeleteHybridMonitorNamespaceRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceRequest.js.map new file mode 100644 index 0000000..a9dedd8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteHybridMonitorNamespaceRequest.js","sourceRoot":"","sources":["../../src/models/DeleteHybridMonitorNamespaceRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IAclE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;YACtB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,QAAQ;YACnB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnCD,kFAmCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceResponse.d.ts new file mode 100644 index 0000000..a08f4d5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DeleteHybridMonitorNamespaceResponseBody } from "./DeleteHybridMonitorNamespaceResponseBody"; +export declare class DeleteHybridMonitorNamespaceResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DeleteHybridMonitorNamespaceResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceResponse.js new file mode 100644 index 0000000..fc1d3b9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceResponse.js @@ -0,0 +1,69 @@ +"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.DeleteHybridMonitorNamespaceResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DeleteHybridMonitorNamespaceResponseBody_1 = require("./DeleteHybridMonitorNamespaceResponseBody"); +class DeleteHybridMonitorNamespaceResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteHybridMonitorNamespaceResponseBody_1.DeleteHybridMonitorNamespaceResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteHybridMonitorNamespaceResponse = DeleteHybridMonitorNamespaceResponse; +//# sourceMappingURL=DeleteHybridMonitorNamespaceResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceResponse.js.map new file mode 100644 index 0000000..6500c2e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteHybridMonitorNamespaceResponse.js","sourceRoot":"","sources":["../../src/models/DeleteHybridMonitorNamespaceResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,yGAAsG;AAGtG,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IAInE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,mFAAwC;SAC/C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,oFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceResponseBody.d.ts new file mode 100644 index 0000000..2c9587d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceResponseBody.d.ts @@ -0,0 +1,48 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteHybridMonitorNamespaceResponseBody extends $dara.Model { + /** + * @remarks + * The returned message. + * + * @example + * Success + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * Namespace.NotFound + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 3843D23A-FB9E-5DC8-BCCC-458768B79296 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceResponseBody.js new file mode 100644 index 0000000..e7c0b4d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceResponseBody.js @@ -0,0 +1,64 @@ +"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.DeleteHybridMonitorNamespaceResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteHybridMonitorNamespaceResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteHybridMonitorNamespaceResponseBody = DeleteHybridMonitorNamespaceResponseBody; +//# sourceMappingURL=DeleteHybridMonitorNamespaceResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceResponseBody.js.map new file mode 100644 index 0000000..d1bf4f3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorNamespaceResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteHybridMonitorNamespaceResponseBody.js","sourceRoot":"","sources":["../../src/models/DeleteHybridMonitorNamespaceResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wCAAyC,SAAQ,KAAK,CAAC,KAAK;IAoCvE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA7DD,4FA6DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupRequest.d.ts new file mode 100644 index 0000000..4573586 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupRequest.d.ts @@ -0,0 +1,26 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteHybridMonitorSLSGroupRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * The name of the Logstore group. + * + * For information about how to obtain the name of a Logstore group, see [DescribeHybridMonitorSLSGroup](https://help.aliyun.com/document_detail/429526.html). + * + * This parameter is required. + * + * @example + * Logstore_test + */ + SLSGroupName?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupRequest.js new file mode 100644 index 0000000..bca22c8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupRequest.js @@ -0,0 +1,60 @@ +"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.DeleteHybridMonitorSLSGroupRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteHybridMonitorSLSGroupRequest extends $dara.Model { + static names() { + return { + regionId: 'RegionId', + SLSGroupName: 'SLSGroupName', + }; + } + static types() { + return { + regionId: 'string', + SLSGroupName: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteHybridMonitorSLSGroupRequest = DeleteHybridMonitorSLSGroupRequest; +//# sourceMappingURL=DeleteHybridMonitorSlsgroupRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupRequest.js.map new file mode 100644 index 0000000..1c049ab --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteHybridMonitorSlsgroupRequest.js","sourceRoot":"","sources":["../../src/models/DeleteHybridMonitorSlsgroupRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;IAcjE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,YAAY,EAAE,cAAc;SAC7B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,YAAY,EAAE,QAAQ;SACvB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnCD,gFAmCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupResponse.d.ts new file mode 100644 index 0000000..0f8fe8c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DeleteHybridMonitorSLSGroupResponseBody } from "./DeleteHybridMonitorSlsgroupResponseBody"; +export declare class DeleteHybridMonitorSLSGroupResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DeleteHybridMonitorSLSGroupResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupResponse.js new file mode 100644 index 0000000..1916eb6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupResponse.js @@ -0,0 +1,69 @@ +"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.DeleteHybridMonitorSLSGroupResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DeleteHybridMonitorSlsgroupResponseBody_1 = require("./DeleteHybridMonitorSlsgroupResponseBody"); +class DeleteHybridMonitorSLSGroupResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteHybridMonitorSlsgroupResponseBody_1.DeleteHybridMonitorSLSGroupResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteHybridMonitorSLSGroupResponse = DeleteHybridMonitorSLSGroupResponse; +//# sourceMappingURL=DeleteHybridMonitorSlsgroupResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupResponse.js.map new file mode 100644 index 0000000..3d256e3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteHybridMonitorSlsgroupResponse.js","sourceRoot":"","sources":["../../src/models/DeleteHybridMonitorSlsgroupResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,uGAAoG;AAGpG,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IAIlE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,iFAAuC;SAC9C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,kFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupResponseBody.d.ts new file mode 100644 index 0000000..1a1b119 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteHybridMonitorSLSGroupResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * RESOURCE_NOT_FOUND + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 85198BFF-1DE6-556E-B6A4-C77C51C62B8D + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupResponseBody.js new file mode 100644 index 0000000..1482593 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupResponseBody.js @@ -0,0 +1,64 @@ +"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.DeleteHybridMonitorSLSGroupResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteHybridMonitorSLSGroupResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteHybridMonitorSLSGroupResponseBody = DeleteHybridMonitorSLSGroupResponseBody; +//# sourceMappingURL=DeleteHybridMonitorSlsgroupResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupResponseBody.js.map new file mode 100644 index 0000000..2557759 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorSlsgroupResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteHybridMonitorSlsgroupResponseBody.js","sourceRoot":"","sources":["../../src/models/DeleteHybridMonitorSlsgroupResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,uCAAwC,SAAQ,KAAK,CAAC,KAAK;IAsCtE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,0FA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskRequest.d.ts new file mode 100644 index 0000000..b7d6750 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskRequest.d.ts @@ -0,0 +1,48 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteHybridMonitorTaskRequest extends $dara.Model { + /** + * @remarks + * The name of the namespace. + * + * The name can contain uppercase letters, lowercase letters, digits, and hyphens (-). + * + * > This parameter is required only if you call this operation to delete metric import tasks for Alibaba Cloud services. In this case, the `TaskType` parameter is set to `aliyun_fc`. + * + * @example + * aliyun + */ + namespace?: string; + regionId?: string; + /** + * @remarks + * The ID of the member account. + * + * > This parameter is required only if you use a management account to call this operation to query metric import tasks that belong to a member in a resource directory. In this case, the `TaskType` parameter is set to `aliyun_fc`. + * + * @example + * 120886317861**** + */ + targetUserId?: string; + /** + * @remarks + * The ID of the metric import task. + * + * For information about how to obtain the ID of a metric import task, see [DescribeHybridMonitorTaskList](https://help.aliyun.com/document_detail/428624.html). + * + * > This parameter is required only if you call this operation to delete metrics for the logs that are imported from Log Service. In this case, the `TaskType` parameter is set to `aliyun_sls`. + * + * @example + * 36**** + */ + taskId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskRequest.js new file mode 100644 index 0000000..afa27d0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskRequest.js @@ -0,0 +1,64 @@ +"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.DeleteHybridMonitorTaskRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteHybridMonitorTaskRequest extends $dara.Model { + static names() { + return { + namespace: 'Namespace', + regionId: 'RegionId', + targetUserId: 'TargetUserId', + taskId: 'TaskId', + }; + } + static types() { + return { + namespace: 'string', + regionId: 'string', + targetUserId: 'string', + taskId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteHybridMonitorTaskRequest = DeleteHybridMonitorTaskRequest; +//# sourceMappingURL=DeleteHybridMonitorTaskRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskRequest.js.map new file mode 100644 index 0000000..5d7efd9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteHybridMonitorTaskRequest.js","sourceRoot":"","sources":["../../src/models/DeleteHybridMonitorTaskRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAoC7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;YACtB,QAAQ,EAAE,UAAU;YACpB,YAAY,EAAE,cAAc;YAC5B,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,QAAQ;YACnB,QAAQ,EAAE,QAAQ;YAClB,YAAY,EAAE,QAAQ;YACtB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA7DD,wEA6DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskResponse.d.ts new file mode 100644 index 0000000..522ce93 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DeleteHybridMonitorTaskResponseBody } from "./DeleteHybridMonitorTaskResponseBody"; +export declare class DeleteHybridMonitorTaskResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DeleteHybridMonitorTaskResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskResponse.js new file mode 100644 index 0000000..63e5ded --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskResponse.js @@ -0,0 +1,69 @@ +"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.DeleteHybridMonitorTaskResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DeleteHybridMonitorTaskResponseBody_1 = require("./DeleteHybridMonitorTaskResponseBody"); +class DeleteHybridMonitorTaskResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteHybridMonitorTaskResponseBody_1.DeleteHybridMonitorTaskResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteHybridMonitorTaskResponse = DeleteHybridMonitorTaskResponse; +//# sourceMappingURL=DeleteHybridMonitorTaskResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskResponse.js.map new file mode 100644 index 0000000..a30b00c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteHybridMonitorTaskResponse.js","sourceRoot":"","sources":["../../src/models/DeleteHybridMonitorTaskResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,+FAA4F;AAG5F,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAI9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,yEAAmC;SAC1C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,0EAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskResponseBody.d.ts new file mode 100644 index 0000000..a96f0b3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteHybridMonitorTaskResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * null + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * D6B8103F-7BAD-5FEB-945F-71D991AB8834 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskResponseBody.js new file mode 100644 index 0000000..ff67794 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskResponseBody.js @@ -0,0 +1,64 @@ +"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.DeleteHybridMonitorTaskResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteHybridMonitorTaskResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteHybridMonitorTaskResponseBody = DeleteHybridMonitorTaskResponseBody; +//# sourceMappingURL=DeleteHybridMonitorTaskResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskResponseBody.js.map new file mode 100644 index 0000000..2b3a2e1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteHybridMonitorTaskResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteHybridMonitorTaskResponseBody.js","sourceRoot":"","sources":["../../src/models/DeleteHybridMonitorTaskResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IAsClE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,kFA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorRequest.d.ts new file mode 100644 index 0000000..f4fde4e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorRequest.d.ts @@ -0,0 +1,24 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteLogMonitorRequest extends $dara.Model { + /** + * @remarks + * The ID of the log monitoring metric. + * + * This parameter is required. + * + * @example + * 12345 + */ + logId?: number; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorRequest.js new file mode 100644 index 0000000..3111893 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorRequest.js @@ -0,0 +1,60 @@ +"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.DeleteLogMonitorRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteLogMonitorRequest extends $dara.Model { + static names() { + return { + logId: 'LogId', + regionId: 'RegionId', + }; + } + static types() { + return { + logId: 'number', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteLogMonitorRequest = DeleteLogMonitorRequest; +//# sourceMappingURL=DeleteLogMonitorRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorRequest.js.map new file mode 100644 index 0000000..b2a88e2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteLogMonitorRequest.js","sourceRoot":"","sources":["../../src/models/DeleteLogMonitorRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,uBAAwB,SAAQ,KAAK,CAAC,KAAK;IAYtD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,QAAQ;YACf,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,0DAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorResponse.d.ts new file mode 100644 index 0000000..e1f3a67 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DeleteLogMonitorResponseBody } from "./DeleteLogMonitorResponseBody"; +export declare class DeleteLogMonitorResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DeleteLogMonitorResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorResponse.js new file mode 100644 index 0000000..3e34661 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorResponse.js @@ -0,0 +1,69 @@ +"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.DeleteLogMonitorResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DeleteLogMonitorResponseBody_1 = require("./DeleteLogMonitorResponseBody"); +class DeleteLogMonitorResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteLogMonitorResponseBody_1.DeleteLogMonitorResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteLogMonitorResponse = DeleteLogMonitorResponse; +//# sourceMappingURL=DeleteLogMonitorResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorResponse.js.map new file mode 100644 index 0000000..5f57073 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteLogMonitorResponse.js","sourceRoot":"","sources":["../../src/models/DeleteLogMonitorResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,iFAA8E;AAG9E,MAAa,wBAAyB,SAAQ,KAAK,CAAC,KAAK;IAIvD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,2DAA4B;SACnC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,4DAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorResponseBody.d.ts new file mode 100644 index 0000000..f302af1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteLogMonitorResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * metric not exist. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 42BFFC2B-5E4D-4FDE-BCC6-E91EE33C5967 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorResponseBody.js new file mode 100644 index 0000000..d2870c1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorResponseBody.js @@ -0,0 +1,64 @@ +"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.DeleteLogMonitorResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteLogMonitorResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteLogMonitorResponseBody = DeleteLogMonitorResponseBody; +//# sourceMappingURL=DeleteLogMonitorResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorResponseBody.js.map new file mode 100644 index 0000000..bd485aa --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteLogMonitorResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteLogMonitorResponseBody.js","sourceRoot":"","sources":["../../src/models/DeleteLogMonitorResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,4BAA6B,SAAQ,KAAK,CAAC,KAAK;IAsC3D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,oEA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListRequest.d.ts new file mode 100644 index 0000000..35516df --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListRequest.d.ts @@ -0,0 +1,28 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteMetricRuleBlackListRequest extends $dara.Model { + /** + * @remarks + * The IDs of the blacklist policies. Separate multiple IDs with commas (,). You can specify up to 50 IDs. + * + * For more information about how to obtain the ID of a blacklist policy, see [DescribeMetricRuleBlackList](https://help.aliyun.com/document_detail/457257.html). + * + * > You can also set this parameter to a JSON array. Example: `["a9ad2ac2-3ed9-11ed-b878-0242ac12****","5cb8a9a4-198f-4651-a353-f8b28788****"]`. + * + * This parameter is required. + * + * @example + * a9ad2ac2-3ed9-11ed-b878-0242ac12**** + */ + id?: string; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListRequest.js new file mode 100644 index 0000000..4fc1d1d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListRequest.js @@ -0,0 +1,60 @@ +"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.DeleteMetricRuleBlackListRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteMetricRuleBlackListRequest extends $dara.Model { + static names() { + return { + id: 'Id', + regionId: 'RegionId', + }; + } + static types() { + return { + id: 'string', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMetricRuleBlackListRequest = DeleteMetricRuleBlackListRequest; +//# sourceMappingURL=DeleteMetricRuleBlackListRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListRequest.js.map new file mode 100644 index 0000000..dae3339 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteMetricRuleBlackListRequest.js","sourceRoot":"","sources":["../../src/models/DeleteMetricRuleBlackListRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAgB/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,EAAE,EAAE,IAAI;YACR,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,EAAE,EAAE,QAAQ;YACZ,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AArCD,4EAqCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListResponse.d.ts new file mode 100644 index 0000000..850d41d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DeleteMetricRuleBlackListResponseBody } from "./DeleteMetricRuleBlackListResponseBody"; +export declare class DeleteMetricRuleBlackListResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DeleteMetricRuleBlackListResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListResponse.js new file mode 100644 index 0000000..a3f1e73 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListResponse.js @@ -0,0 +1,69 @@ +"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.DeleteMetricRuleBlackListResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DeleteMetricRuleBlackListResponseBody_1 = require("./DeleteMetricRuleBlackListResponseBody"); +class DeleteMetricRuleBlackListResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteMetricRuleBlackListResponseBody_1.DeleteMetricRuleBlackListResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMetricRuleBlackListResponse = DeleteMetricRuleBlackListResponse; +//# sourceMappingURL=DeleteMetricRuleBlackListResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListResponse.js.map new file mode 100644 index 0000000..5df9400 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteMetricRuleBlackListResponse.js","sourceRoot":"","sources":["../../src/models/DeleteMetricRuleBlackListResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,mGAAgG;AAGhG,MAAa,iCAAkC,SAAQ,KAAK,CAAC,KAAK;IAIhE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,6EAAqC;SAC5C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,8EAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListResponseBody.d.ts new file mode 100644 index 0000000..654e93d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListResponseBody.d.ts @@ -0,0 +1,58 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteMetricRuleBlackListResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The number of blacklist policies that are deleted. + * + * @example + * 1 + */ + count?: number; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * B88D233C-A004-3AB8-AD9C-30CBDD4440C5 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListResponseBody.js new file mode 100644 index 0000000..e9b0ea9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListResponseBody.js @@ -0,0 +1,66 @@ +"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.DeleteMetricRuleBlackListResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteMetricRuleBlackListResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + count: 'Count', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + count: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMetricRuleBlackListResponseBody = DeleteMetricRuleBlackListResponseBody; +//# sourceMappingURL=DeleteMetricRuleBlackListResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListResponseBody.js.map new file mode 100644 index 0000000..1f271c4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleBlackListResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteMetricRuleBlackListResponseBody.js","sourceRoot":"","sources":["../../src/models/DeleteMetricRuleBlackListResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qCAAsC,SAAQ,KAAK,CAAC,KAAK;IA8CpE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,OAAO;YACd,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,sFAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesRequest.d.ts new file mode 100644 index 0000000..7a94cdc --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesRequest.d.ts @@ -0,0 +1,33 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteMetricRuleResourcesRequest extends $dara.Model { + /** + * @remarks + * The resources that are associated with the alert rule. + * + * This parameter is required. + * + * @example + * [{"instanceId":"i-uf6hm9lnlzsarrc7****"}] + */ + resources?: string; + /** + * @remarks + * The ID of the alert rule. + * + * This parameter is required. + * + * @example + * rr-bp18017n6iolv**** + */ + ruleId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesRequest.js new file mode 100644 index 0000000..c2eb543 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesRequest.js @@ -0,0 +1,60 @@ +"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.DeleteMetricRuleResourcesRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteMetricRuleResourcesRequest extends $dara.Model { + static names() { + return { + resources: 'Resources', + ruleId: 'RuleId', + }; + } + static types() { + return { + resources: 'string', + ruleId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMetricRuleResourcesRequest = DeleteMetricRuleResourcesRequest; +//# sourceMappingURL=DeleteMetricRuleResourcesRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesRequest.js.map new file mode 100644 index 0000000..51c6102 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteMetricRuleResourcesRequest.js","sourceRoot":"","sources":["../../src/models/DeleteMetricRuleResourcesRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAqB/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,QAAQ;YACnB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA1CD,4EA0CC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesResponse.d.ts new file mode 100644 index 0000000..1763d5b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DeleteMetricRuleResourcesResponseBody } from "./DeleteMetricRuleResourcesResponseBody"; +export declare class DeleteMetricRuleResourcesResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DeleteMetricRuleResourcesResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesResponse.js new file mode 100644 index 0000000..d2e1a8f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesResponse.js @@ -0,0 +1,69 @@ +"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.DeleteMetricRuleResourcesResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DeleteMetricRuleResourcesResponseBody_1 = require("./DeleteMetricRuleResourcesResponseBody"); +class DeleteMetricRuleResourcesResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteMetricRuleResourcesResponseBody_1.DeleteMetricRuleResourcesResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMetricRuleResourcesResponse = DeleteMetricRuleResourcesResponse; +//# sourceMappingURL=DeleteMetricRuleResourcesResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesResponse.js.map new file mode 100644 index 0000000..99ecab9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteMetricRuleResourcesResponse.js","sourceRoot":"","sources":["../../src/models/DeleteMetricRuleResourcesResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,mGAAgG;AAGhG,MAAa,iCAAkC,SAAQ,KAAK,CAAC,KAAK;IAIhE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,6EAAqC;SAC5C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,8EAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesResponseBody.d.ts new file mode 100644 index 0000000..915d0ea --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteMetricRuleResourcesResponseBody extends $dara.Model { + /** + * @remarks + * The responses code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The alert does not exist. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * D8A35882-90C6-4F03-BBEB-153C180398EA + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesResponseBody.js new file mode 100644 index 0000000..9533ca9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesResponseBody.js @@ -0,0 +1,64 @@ +"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.DeleteMetricRuleResourcesResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteMetricRuleResourcesResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMetricRuleResourcesResponseBody = DeleteMetricRuleResourcesResponseBody; +//# sourceMappingURL=DeleteMetricRuleResourcesResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesResponseBody.js.map new file mode 100644 index 0000000..08a0013 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleResourcesResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteMetricRuleResourcesResponseBody.js","sourceRoot":"","sources":["../../src/models/DeleteMetricRuleResourcesResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qCAAsC,SAAQ,KAAK,CAAC,KAAK;IAsCpE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,sFA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsRequest.d.ts new file mode 100644 index 0000000..8f1e4cc --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsRequest.d.ts @@ -0,0 +1,34 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteMetricRuleTargetsRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * The ID of the alert rule. + * + * This parameter is required. + * + * @example + * ruleId-xxxxxx + */ + ruleId?: string; + /** + * @remarks + * The resource IDs. + * + * This parameter is required. + * + * @example + * 12345 + */ + targetIds?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsRequest.js new file mode 100644 index 0000000..f264eeb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsRequest.js @@ -0,0 +1,65 @@ +"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.DeleteMetricRuleTargetsRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteMetricRuleTargetsRequest extends $dara.Model { + static names() { + return { + regionId: 'RegionId', + ruleId: 'RuleId', + targetIds: 'TargetIds', + }; + } + static types() { + return { + regionId: 'string', + ruleId: 'string', + targetIds: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.targetIds)) { + $dara.Model.validateArray(this.targetIds); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMetricRuleTargetsRequest = DeleteMetricRuleTargetsRequest; +//# sourceMappingURL=DeleteMetricRuleTargetsRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsRequest.js.map new file mode 100644 index 0000000..a3e150f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteMetricRuleTargetsRequest.js","sourceRoot":"","sources":["../../src/models/DeleteMetricRuleTargetsRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAsB7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;SACrD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;YACjC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC5C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAhDD,wEAgDC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsResponse.d.ts new file mode 100644 index 0000000..fa1331a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DeleteMetricRuleTargetsResponseBody } from "./DeleteMetricRuleTargetsResponseBody"; +export declare class DeleteMetricRuleTargetsResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DeleteMetricRuleTargetsResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsResponse.js new file mode 100644 index 0000000..dbb49f1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsResponse.js @@ -0,0 +1,69 @@ +"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.DeleteMetricRuleTargetsResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DeleteMetricRuleTargetsResponseBody_1 = require("./DeleteMetricRuleTargetsResponseBody"); +class DeleteMetricRuleTargetsResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteMetricRuleTargetsResponseBody_1.DeleteMetricRuleTargetsResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMetricRuleTargetsResponse = DeleteMetricRuleTargetsResponse; +//# sourceMappingURL=DeleteMetricRuleTargetsResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsResponse.js.map new file mode 100644 index 0000000..5d4486e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteMetricRuleTargetsResponse.js","sourceRoot":"","sources":["../../src/models/DeleteMetricRuleTargetsResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,+FAA4F;AAG5F,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAI9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,yEAAmC;SAC1C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,0EAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsResponseBody.d.ts new file mode 100644 index 0000000..2f6f36c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsResponseBody.d.ts @@ -0,0 +1,87 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteMetricRuleTargetsResponseBodyFailIdsTargetIds extends $dara.Model { + targetId?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DeleteMetricRuleTargetsResponseBodyFailIds extends $dara.Model { + /** + * @remarks + * The IDs of the resources that failed to be deleted. + */ + targetIds?: DeleteMetricRuleTargetsResponseBodyFailIdsTargetIds; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DeleteMetricRuleTargetsResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * ** + * + * **Description** The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The IDs of the resources that failed to be deleted. + */ + failIds?: DeleteMetricRuleTargetsResponseBodyFailIds; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 786E92D2-AC66-4250-B76F-F1E2FCDDBA1C + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsResponseBody.js new file mode 100644 index 0000000..a72f8ee --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsResponseBody.js @@ -0,0 +1,113 @@ +"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.DeleteMetricRuleTargetsResponseBody = exports.DeleteMetricRuleTargetsResponseBodyFailIds = exports.DeleteMetricRuleTargetsResponseBodyFailIdsTargetIds = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteMetricRuleTargetsResponseBodyFailIdsTargetIds extends $dara.Model { + static names() { + return { + targetId: 'TargetId', + }; + } + static types() { + return { + targetId: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.targetId)) { + $dara.Model.validateArray(this.targetId); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMetricRuleTargetsResponseBodyFailIdsTargetIds = DeleteMetricRuleTargetsResponseBodyFailIdsTargetIds; +class DeleteMetricRuleTargetsResponseBodyFailIds extends $dara.Model { + static names() { + return { + targetIds: 'TargetIds', + }; + } + static types() { + return { + targetIds: DeleteMetricRuleTargetsResponseBodyFailIdsTargetIds, + }; + } + validate() { + if (this.targetIds && typeof this.targetIds.validate === 'function') { + this.targetIds.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMetricRuleTargetsResponseBodyFailIds = DeleteMetricRuleTargetsResponseBodyFailIds; +class DeleteMetricRuleTargetsResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + failIds: 'FailIds', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + failIds: DeleteMetricRuleTargetsResponseBodyFailIds, + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + if (this.failIds && typeof this.failIds.validate === 'function') { + this.failIds.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMetricRuleTargetsResponseBody = DeleteMetricRuleTargetsResponseBody; +//# sourceMappingURL=DeleteMetricRuleTargetsResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsResponseBody.js.map new file mode 100644 index 0000000..f865fb2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTargetsResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteMetricRuleTargetsResponseBody.js","sourceRoot":"","sources":["../../src/models/DeleteMetricRuleTargetsResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mDAAoD,SAAQ,KAAK,CAAC,KAAK;IAElF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;SACpD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;YAChC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC3C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxBD,kHAwBC;AAED,MAAa,0CAA2C,SAAQ,KAAK,CAAC,KAAK;IAMzE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,mDAAmD;SAC/D,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,SAAS,IAAI,OAAQ,IAAI,CAAC,SAAiB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YAC3E,IAAI,CAAC,SAAiB,CAAC,QAAQ,EAAE,CAAC;QACrC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5BD,gGA4BC;AAED,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IA6ClE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,0CAA0C;YACnD,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,IAAI,OAAQ,IAAI,CAAC,OAAe,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACvE,IAAI,CAAC,OAAe,CAAC,QAAQ,EAAE,CAAC;QACnC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA3ED,kFA2EC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateRequest.d.ts new file mode 100644 index 0000000..83b3dd2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateRequest.d.ts @@ -0,0 +1,24 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteMetricRuleTemplateRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * The ID of the alert template. + * + * This parameter is required. + * + * @example + * 123**** + */ + templateId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateRequest.js new file mode 100644 index 0000000..05d9222 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateRequest.js @@ -0,0 +1,60 @@ +"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.DeleteMetricRuleTemplateRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteMetricRuleTemplateRequest extends $dara.Model { + static names() { + return { + regionId: 'RegionId', + templateId: 'TemplateId', + }; + } + static types() { + return { + regionId: 'string', + templateId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMetricRuleTemplateRequest = DeleteMetricRuleTemplateRequest; +//# sourceMappingURL=DeleteMetricRuleTemplateRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateRequest.js.map new file mode 100644 index 0000000..376ad51 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteMetricRuleTemplateRequest.js","sourceRoot":"","sources":["../../src/models/DeleteMetricRuleTemplateRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAY9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,UAAU,EAAE,YAAY;SACzB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,UAAU,EAAE,QAAQ;SACrB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,0EAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateResponse.d.ts new file mode 100644 index 0000000..8422d28 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DeleteMetricRuleTemplateResponseBody } from "./DeleteMetricRuleTemplateResponseBody"; +export declare class DeleteMetricRuleTemplateResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DeleteMetricRuleTemplateResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateResponse.js new file mode 100644 index 0000000..d4e1910 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateResponse.js @@ -0,0 +1,69 @@ +"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.DeleteMetricRuleTemplateResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DeleteMetricRuleTemplateResponseBody_1 = require("./DeleteMetricRuleTemplateResponseBody"); +class DeleteMetricRuleTemplateResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteMetricRuleTemplateResponseBody_1.DeleteMetricRuleTemplateResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMetricRuleTemplateResponse = DeleteMetricRuleTemplateResponse; +//# sourceMappingURL=DeleteMetricRuleTemplateResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateResponse.js.map new file mode 100644 index 0000000..04b23ac --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteMetricRuleTemplateResponse.js","sourceRoot":"","sources":["../../src/models/DeleteMetricRuleTemplateResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,iGAA8F;AAG9F,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAI/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,2EAAoC;SAC3C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,4EAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateResponseBody.d.ts new file mode 100644 index 0000000..61bf5e0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateResponseBody.d.ts @@ -0,0 +1,72 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteMetricRuleTemplateResponseBodyResource extends $dara.Model { + /** + * @remarks + * The ID of the template. + * + * @example + * 123**** + */ + templateId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DeleteMetricRuleTemplateResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 7B63F8CF-D48D-4608-A402-04FB5B2B4B6A + */ + requestId?: string; + /** + * @remarks + * The template information. + */ + resource?: DeleteMetricRuleTemplateResponseBodyResource; + /** + * @remarks + * Indicates whether the request was successful. Valid values: true and false. + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateResponseBody.js new file mode 100644 index 0000000..25bf812 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateResponseBody.js @@ -0,0 +1,88 @@ +"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.DeleteMetricRuleTemplateResponseBody = exports.DeleteMetricRuleTemplateResponseBodyResource = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteMetricRuleTemplateResponseBodyResource extends $dara.Model { + static names() { + return { + templateId: 'TemplateId', + }; + } + static types() { + return { + templateId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMetricRuleTemplateResponseBodyResource = DeleteMetricRuleTemplateResponseBodyResource; +class DeleteMetricRuleTemplateResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + resource: 'Resource', + success: 'Success', + }; + } + static types() { + return { + code: 'number', + message: 'string', + requestId: 'string', + resource: DeleteMetricRuleTemplateResponseBodyResource, + success: 'boolean', + }; + } + validate() { + if (this.resource && typeof this.resource.validate === 'function') { + this.resource.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMetricRuleTemplateResponseBody = DeleteMetricRuleTemplateResponseBody; +//# sourceMappingURL=DeleteMetricRuleTemplateResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateResponseBody.js.map new file mode 100644 index 0000000..321a9d9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRuleTemplateResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteMetricRuleTemplateResponseBody.js","sourceRoot":"","sources":["../../src/models/DeleteMetricRuleTemplateResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,4CAA6C,SAAQ,KAAK,CAAC,KAAK;IAS3E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;SACzB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;SACrB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5BD,oGA4BC;AAED,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IAwCnE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,QAAQ,EAAE,UAAU;YACpB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,QAAQ,EAAE,4CAA4C;YACtD,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,QAAQ,IAAI,OAAQ,IAAI,CAAC,QAAgB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACzE,IAAI,CAAC,QAAgB,CAAC,QAAQ,EAAE,CAAC;QACpC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtED,oFAsEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesRequest.d.ts new file mode 100644 index 0000000..c0a6d99 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesRequest.d.ts @@ -0,0 +1,22 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteMetricRulesRequest extends $dara.Model { + /** + * @remarks + * This parameter is required. + * + * @example + * ab05733c97b7ce239fb1b53393dc1697c7e12**** + */ + id?: string[]; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesRequest.js new file mode 100644 index 0000000..d632670 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesRequest.js @@ -0,0 +1,63 @@ +"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.DeleteMetricRulesRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteMetricRulesRequest extends $dara.Model { + static names() { + return { + id: 'Id', + regionId: 'RegionId', + }; + } + static types() { + return { + id: { 'type': 'array', 'itemType': 'string' }, + regionId: 'string', + }; + } + validate() { + if (Array.isArray(this.id)) { + $dara.Model.validateArray(this.id); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMetricRulesRequest = DeleteMetricRulesRequest; +//# sourceMappingURL=DeleteMetricRulesRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesRequest.js.map new file mode 100644 index 0000000..a33e88e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteMetricRulesRequest.js","sourceRoot":"","sources":["../../src/models/DeleteMetricRulesRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wBAAyB,SAAQ,KAAK,CAAC,KAAK;IAUvD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,EAAE,EAAE,IAAI;YACR,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YAC7C,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;YAC1B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACrC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAlCD,4DAkCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesResponse.d.ts new file mode 100644 index 0000000..d6d80ae --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DeleteMetricRulesResponseBody } from "./DeleteMetricRulesResponseBody"; +export declare class DeleteMetricRulesResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DeleteMetricRulesResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesResponse.js new file mode 100644 index 0000000..a2286d8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesResponse.js @@ -0,0 +1,69 @@ +"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.DeleteMetricRulesResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DeleteMetricRulesResponseBody_1 = require("./DeleteMetricRulesResponseBody"); +class DeleteMetricRulesResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteMetricRulesResponseBody_1.DeleteMetricRulesResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMetricRulesResponse = DeleteMetricRulesResponse; +//# sourceMappingURL=DeleteMetricRulesResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesResponse.js.map new file mode 100644 index 0000000..f89bbea --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteMetricRulesResponse.js","sourceRoot":"","sources":["../../src/models/DeleteMetricRulesResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,mFAAgF;AAGhF,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IAIxD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,6DAA6B;SACpC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,8DAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesResponseBody.d.ts new file mode 100644 index 0000000..2a3b20b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteMetricRulesResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates a success. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * E5599964-8D0D-40DC-8E90-27A619384B81 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the operation was successful. Valid values: + * + * * true: successful. + * * false: failed. + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesResponseBody.js new file mode 100644 index 0000000..a063603 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesResponseBody.js @@ -0,0 +1,64 @@ +"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.DeleteMetricRulesResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteMetricRulesResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMetricRulesResponseBody = DeleteMetricRulesResponseBody; +//# sourceMappingURL=DeleteMetricRulesResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesResponseBody.js.map new file mode 100644 index 0000000..15eeb01 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMetricRulesResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteMetricRulesResponseBody.js","sourceRoot":"","sources":["../../src/models/DeleteMetricRulesResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IAsC5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,sEA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleRequest.d.ts new file mode 100644 index 0000000..7a9cea2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleRequest.d.ts @@ -0,0 +1,34 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteMonitorGroupDynamicRuleRequest extends $dara.Model { + /** + * @remarks + * The service to which the rule applies. Valid values: ecs, rds, and slb. + * + * This parameter is required. + * + * @example + * ecs + */ + category?: string; + /** + * @remarks + * The ID of the application group. + * + * This parameter is required. + * + * @example + * 123456 + */ + groupId?: number; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleRequest.js new file mode 100644 index 0000000..ca11ee2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleRequest.js @@ -0,0 +1,62 @@ +"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.DeleteMonitorGroupDynamicRuleRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteMonitorGroupDynamicRuleRequest extends $dara.Model { + static names() { + return { + category: 'Category', + groupId: 'GroupId', + regionId: 'RegionId', + }; + } + static types() { + return { + category: 'string', + groupId: 'number', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMonitorGroupDynamicRuleRequest = DeleteMonitorGroupDynamicRuleRequest; +//# sourceMappingURL=DeleteMonitorGroupDynamicRuleRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleRequest.js.map new file mode 100644 index 0000000..1aa02af --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteMonitorGroupDynamicRuleRequest.js","sourceRoot":"","sources":["../../src/models/DeleteMonitorGroupDynamicRuleRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IAsBnE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,OAAO,EAAE,QAAQ;YACjB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA7CD,oFA6CC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleResponse.d.ts new file mode 100644 index 0000000..3006490 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DeleteMonitorGroupDynamicRuleResponseBody } from "./DeleteMonitorGroupDynamicRuleResponseBody"; +export declare class DeleteMonitorGroupDynamicRuleResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DeleteMonitorGroupDynamicRuleResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleResponse.js new file mode 100644 index 0000000..47fb427 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleResponse.js @@ -0,0 +1,69 @@ +"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.DeleteMonitorGroupDynamicRuleResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DeleteMonitorGroupDynamicRuleResponseBody_1 = require("./DeleteMonitorGroupDynamicRuleResponseBody"); +class DeleteMonitorGroupDynamicRuleResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteMonitorGroupDynamicRuleResponseBody_1.DeleteMonitorGroupDynamicRuleResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMonitorGroupDynamicRuleResponse = DeleteMonitorGroupDynamicRuleResponse; +//# sourceMappingURL=DeleteMonitorGroupDynamicRuleResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleResponse.js.map new file mode 100644 index 0000000..6a60fbc --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteMonitorGroupDynamicRuleResponse.js","sourceRoot":"","sources":["../../src/models/DeleteMonitorGroupDynamicRuleResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,2GAAwG;AAGxG,MAAa,qCAAsC,SAAQ,KAAK,CAAC,KAAK;IAIpE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,qFAAyC;SAChD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,sFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleResponseBody.d.ts new file mode 100644 index 0000000..334910e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleResponseBody.d.ts @@ -0,0 +1,47 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteMonitorGroupDynamicRuleResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 56B4516A-EB44-4C66-8854-0393B35F636B + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: true and false. + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleResponseBody.js new file mode 100644 index 0000000..5177ca5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleResponseBody.js @@ -0,0 +1,64 @@ +"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.DeleteMonitorGroupDynamicRuleResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteMonitorGroupDynamicRuleResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMonitorGroupDynamicRuleResponseBody = DeleteMonitorGroupDynamicRuleResponseBody; +//# sourceMappingURL=DeleteMonitorGroupDynamicRuleResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleResponseBody.js.map new file mode 100644 index 0000000..ece3f01 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupDynamicRuleResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteMonitorGroupDynamicRuleResponseBody.js","sourceRoot":"","sources":["../../src/models/DeleteMonitorGroupDynamicRuleResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yCAA0C,SAAQ,KAAK,CAAC,KAAK;IAmCxE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5DD,8FA4DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesRequest.d.ts new file mode 100644 index 0000000..a182ad8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesRequest.d.ts @@ -0,0 +1,46 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteMonitorGroupInstancesRequest extends $dara.Model { + /** + * @remarks + * The abbreviation of the cloud service name. + * + * > 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 ID of the application group. + * + * This parameter is required. + * + * @example + * 123456 + */ + groupId?: number; + /** + * @remarks + * The instances to be removed from the application group. Separate multiple instances with commas (,). You can remove a maximum of 20 instances from an application group at a time. + * + * This parameter is required. + * + * @example + * i-a2d5q7pm3f912****,i-a2d5q7pm3f222**** + */ + instanceIdList?: string; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesRequest.js new file mode 100644 index 0000000..6cff029 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesRequest.js @@ -0,0 +1,64 @@ +"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.DeleteMonitorGroupInstancesRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteMonitorGroupInstancesRequest extends $dara.Model { + static names() { + return { + category: 'Category', + groupId: 'GroupId', + instanceIdList: 'InstanceIdList', + regionId: 'RegionId', + }; + } + static types() { + return { + category: 'string', + groupId: 'number', + instanceIdList: 'string', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMonitorGroupInstancesRequest = DeleteMonitorGroupInstancesRequest; +//# sourceMappingURL=DeleteMonitorGroupInstancesRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesRequest.js.map new file mode 100644 index 0000000..150e7a0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteMonitorGroupInstancesRequest.js","sourceRoot":"","sources":["../../src/models/DeleteMonitorGroupInstancesRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;IAkCjE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,OAAO,EAAE,SAAS;YAClB,cAAc,EAAE,gBAAgB;YAChC,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,OAAO,EAAE,QAAQ;YACjB,cAAc,EAAE,QAAQ;YACxB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA3DD,gFA2DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesResponse.d.ts new file mode 100644 index 0000000..412006c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DeleteMonitorGroupInstancesResponseBody } from "./DeleteMonitorGroupInstancesResponseBody"; +export declare class DeleteMonitorGroupInstancesResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DeleteMonitorGroupInstancesResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesResponse.js new file mode 100644 index 0000000..914f960 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesResponse.js @@ -0,0 +1,69 @@ +"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.DeleteMonitorGroupInstancesResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DeleteMonitorGroupInstancesResponseBody_1 = require("./DeleteMonitorGroupInstancesResponseBody"); +class DeleteMonitorGroupInstancesResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteMonitorGroupInstancesResponseBody_1.DeleteMonitorGroupInstancesResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMonitorGroupInstancesResponse = DeleteMonitorGroupInstancesResponse; +//# sourceMappingURL=DeleteMonitorGroupInstancesResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesResponse.js.map new file mode 100644 index 0000000..0dbfeae --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteMonitorGroupInstancesResponse.js","sourceRoot":"","sources":["../../src/models/DeleteMonitorGroupInstancesResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,uGAAoG;AAGpG,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IAIlE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,iFAAuC;SAC9C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,kFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesResponseBody.d.ts new file mode 100644 index 0000000..31cb9a2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteMonitorGroupInstancesResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 5351B0F2-26A9-4BC9-87FF-1B74034D12C3 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesResponseBody.js new file mode 100644 index 0000000..6cfa771 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesResponseBody.js @@ -0,0 +1,64 @@ +"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.DeleteMonitorGroupInstancesResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteMonitorGroupInstancesResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMonitorGroupInstancesResponseBody = DeleteMonitorGroupInstancesResponseBody; +//# sourceMappingURL=DeleteMonitorGroupInstancesResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesResponseBody.js.map new file mode 100644 index 0000000..8d10ff9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupInstancesResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteMonitorGroupInstancesResponseBody.js","sourceRoot":"","sources":["../../src/models/DeleteMonitorGroupInstancesResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,uCAAwC,SAAQ,KAAK,CAAC,KAAK;IAsCtE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,0FA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyRequest.d.ts new file mode 100644 index 0000000..b69213f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyRequest.d.ts @@ -0,0 +1,34 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteMonitorGroupNotifyPolicyRequest extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * @example + * 6780**** + */ + groupId?: string; + /** + * @remarks + * The type of the policy. + * + * Valid value: PauseNotify. + * + * This parameter is required. + * + * @example + * PauseNotify + */ + policyType?: string; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyRequest.js new file mode 100644 index 0000000..cc6d216 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyRequest.js @@ -0,0 +1,62 @@ +"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.DeleteMonitorGroupNotifyPolicyRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteMonitorGroupNotifyPolicyRequest extends $dara.Model { + static names() { + return { + groupId: 'GroupId', + policyType: 'PolicyType', + regionId: 'RegionId', + }; + } + static types() { + return { + groupId: 'string', + policyType: 'string', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMonitorGroupNotifyPolicyRequest = DeleteMonitorGroupNotifyPolicyRequest; +//# sourceMappingURL=DeleteMonitorGroupNotifyPolicyRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyRequest.js.map new file mode 100644 index 0000000..75eff4d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteMonitorGroupNotifyPolicyRequest.js","sourceRoot":"","sources":["../../src/models/DeleteMonitorGroupNotifyPolicyRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qCAAsC,SAAQ,KAAK,CAAC,KAAK;IAsBpE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA7CD,sFA6CC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyResponse.d.ts new file mode 100644 index 0000000..1ded53c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DeleteMonitorGroupNotifyPolicyResponseBody } from "./DeleteMonitorGroupNotifyPolicyResponseBody"; +export declare class DeleteMonitorGroupNotifyPolicyResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DeleteMonitorGroupNotifyPolicyResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyResponse.js new file mode 100644 index 0000000..3e1f43e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyResponse.js @@ -0,0 +1,69 @@ +"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.DeleteMonitorGroupNotifyPolicyResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DeleteMonitorGroupNotifyPolicyResponseBody_1 = require("./DeleteMonitorGroupNotifyPolicyResponseBody"); +class DeleteMonitorGroupNotifyPolicyResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteMonitorGroupNotifyPolicyResponseBody_1.DeleteMonitorGroupNotifyPolicyResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMonitorGroupNotifyPolicyResponse = DeleteMonitorGroupNotifyPolicyResponse; +//# sourceMappingURL=DeleteMonitorGroupNotifyPolicyResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyResponse.js.map new file mode 100644 index 0000000..d797d71 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteMonitorGroupNotifyPolicyResponse.js","sourceRoot":"","sources":["../../src/models/DeleteMonitorGroupNotifyPolicyResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,6GAA0G;AAG1G,MAAa,sCAAuC,SAAQ,KAAK,CAAC,KAAK;IAIrE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,uFAA0C;SACjD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,wFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyResponseBody.d.ts new file mode 100644 index 0000000..9565218 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyResponseBody.d.ts @@ -0,0 +1,58 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteMonitorGroupNotifyPolicyResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * B7AF834D-D38B-4A46-920B-FE974EB7E135 + */ + requestId?: string; + /** + * @remarks + * The number of affected rows. + * + * @example + * 1 + */ + result?: number; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyResponseBody.js new file mode 100644 index 0000000..d7ef235 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyResponseBody.js @@ -0,0 +1,66 @@ +"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.DeleteMonitorGroupNotifyPolicyResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteMonitorGroupNotifyPolicyResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + result: 'Result', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + result: 'number', + success: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMonitorGroupNotifyPolicyResponseBody = DeleteMonitorGroupNotifyPolicyResponseBody; +//# sourceMappingURL=DeleteMonitorGroupNotifyPolicyResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyResponseBody.js.map new file mode 100644 index 0000000..2ee1f97 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupNotifyPolicyResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteMonitorGroupNotifyPolicyResponseBody.js","sourceRoot":"","sources":["../../src/models/DeleteMonitorGroupNotifyPolicyResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0CAA2C,SAAQ,KAAK,CAAC,KAAK;IA8CzE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,gGAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupRequest.d.ts new file mode 100644 index 0000000..b7474b1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupRequest.d.ts @@ -0,0 +1,24 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteMonitorGroupRequest extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * This parameter is required. + * + * @example + * 123456 + */ + groupId?: number; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupRequest.js new file mode 100644 index 0000000..c80ea21 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupRequest.js @@ -0,0 +1,60 @@ +"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.DeleteMonitorGroupRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteMonitorGroupRequest extends $dara.Model { + static names() { + return { + groupId: 'GroupId', + regionId: 'RegionId', + }; + } + static types() { + return { + groupId: 'number', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMonitorGroupRequest = DeleteMonitorGroupRequest; +//# sourceMappingURL=DeleteMonitorGroupRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupRequest.js.map new file mode 100644 index 0000000..b26fb0e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteMonitorGroupRequest.js","sourceRoot":"","sources":["../../src/models/DeleteMonitorGroupRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IAYxD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,8DAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupResponse.d.ts new file mode 100644 index 0000000..74c8929 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DeleteMonitorGroupResponseBody } from "./DeleteMonitorGroupResponseBody"; +export declare class DeleteMonitorGroupResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DeleteMonitorGroupResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupResponse.js new file mode 100644 index 0000000..f93d5ea --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupResponse.js @@ -0,0 +1,69 @@ +"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.DeleteMonitorGroupResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DeleteMonitorGroupResponseBody_1 = require("./DeleteMonitorGroupResponseBody"); +class DeleteMonitorGroupResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteMonitorGroupResponseBody_1.DeleteMonitorGroupResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMonitorGroupResponse = DeleteMonitorGroupResponse; +//# sourceMappingURL=DeleteMonitorGroupResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupResponse.js.map new file mode 100644 index 0000000..e467f92 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteMonitorGroupResponse.js","sourceRoot":"","sources":["../../src/models/DeleteMonitorGroupResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,qFAAkF;AAGlF,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IAIzD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,+DAA8B;SACrC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,gEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupResponseBody.d.ts new file mode 100644 index 0000000..a041629 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupResponseBody.d.ts @@ -0,0 +1,110 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteMonitorGroupResponseBodyGroupContactGroupsContactGroup extends $dara.Model { + /** + * @remarks + * The name of the alert group. + * + * @example + * ECS_Group + */ + name?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DeleteMonitorGroupResponseBodyGroupContactGroups extends $dara.Model { + contactGroup?: DeleteMonitorGroupResponseBodyGroupContactGroupsContactGroup[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DeleteMonitorGroupResponseBodyGroup extends $dara.Model { + /** + * @remarks + * The alert groups that receive alert notifications for the application group. + */ + contactGroups?: DeleteMonitorGroupResponseBodyGroupContactGroups; + /** + * @remarks + * The name of the application group. + * + * @example + * ECS_test + */ + groupName?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DeleteMonitorGroupResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The deleted application group. + */ + group?: DeleteMonitorGroupResponseBodyGroup; + /** + * @remarks + * The returned message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * CA35B3AE-4FFD-4A33-AE67-67EF68711EFA + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call was successful. The value true indicates a success. The value false indicates a failure. + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupResponseBody.js new file mode 100644 index 0000000..967c37e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupResponseBody.js @@ -0,0 +1,134 @@ +"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.DeleteMonitorGroupResponseBody = exports.DeleteMonitorGroupResponseBodyGroup = exports.DeleteMonitorGroupResponseBodyGroupContactGroups = exports.DeleteMonitorGroupResponseBodyGroupContactGroupsContactGroup = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteMonitorGroupResponseBodyGroupContactGroupsContactGroup extends $dara.Model { + static names() { + return { + name: 'Name', + }; + } + static types() { + return { + name: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMonitorGroupResponseBodyGroupContactGroupsContactGroup = DeleteMonitorGroupResponseBodyGroupContactGroupsContactGroup; +class DeleteMonitorGroupResponseBodyGroupContactGroups extends $dara.Model { + static names() { + return { + contactGroup: 'ContactGroup', + }; + } + static types() { + return { + contactGroup: { 'type': 'array', 'itemType': DeleteMonitorGroupResponseBodyGroupContactGroupsContactGroup }, + }; + } + validate() { + if (Array.isArray(this.contactGroup)) { + $dara.Model.validateArray(this.contactGroup); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMonitorGroupResponseBodyGroupContactGroups = DeleteMonitorGroupResponseBodyGroupContactGroups; +class DeleteMonitorGroupResponseBodyGroup extends $dara.Model { + static names() { + return { + contactGroups: 'ContactGroups', + groupName: 'GroupName', + }; + } + static types() { + return { + contactGroups: DeleteMonitorGroupResponseBodyGroupContactGroups, + groupName: 'string', + }; + } + validate() { + if (this.contactGroups && typeof this.contactGroups.validate === 'function') { + this.contactGroups.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMonitorGroupResponseBodyGroup = DeleteMonitorGroupResponseBodyGroup; +class DeleteMonitorGroupResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + group: 'Group', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'number', + group: DeleteMonitorGroupResponseBodyGroup, + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + if (this.group && typeof this.group.validate === 'function') { + this.group.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMonitorGroupResponseBody = DeleteMonitorGroupResponseBody; +//# sourceMappingURL=DeleteMonitorGroupResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupResponseBody.js.map new file mode 100644 index 0000000..ae9da9f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitorGroupResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file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,MAAM,CAAC,KAAK;QACV,OAAO;YACL,aAAa,EAAE,gDAAgD;YAC/D,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,aAAa,IAAI,OAAQ,IAAI,CAAC,aAAqB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACnF,IAAI,CAAC,aAAqB,CAAC,QAAQ,EAAE,CAAC;QACzC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtCD,kFAsCC;AAED,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAwC7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,OAAO;YACd,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,mCAAmC;YAC1C,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,KAAK,IAAI,OAAQ,IAAI,CAAC,KAAa,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACnE,IAAI,CAAC,KAAa,CAAC,QAAQ,EAAE,CAAC;QACjC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtED,wEAsEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessRequest.d.ts new file mode 100644 index 0000000..7eaf6e0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessRequest.d.ts @@ -0,0 +1,44 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteMonitoringAgentProcessRequest extends $dara.Model { + /** + * @remarks + * The instance ID. + * + * This parameter is required. + * + * @example + * i-KpVny6l**** + */ + instanceId?: string; + /** + * @remarks + * The process ID. + * + * > You must configure either `ProcessId` or `ProcessName`. + * + * @example + * 123**** + */ + processId?: string; + /** + * @remarks + * The process name. + * + * > You must configure either `ProcessId` or `ProcessName`. + * + * @example + * http + */ + processName?: string; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessRequest.js new file mode 100644 index 0000000..f4d4e00 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessRequest.js @@ -0,0 +1,64 @@ +"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.DeleteMonitoringAgentProcessRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteMonitoringAgentProcessRequest extends $dara.Model { + static names() { + return { + instanceId: 'InstanceId', + processId: 'ProcessId', + processName: 'ProcessName', + regionId: 'RegionId', + }; + } + static types() { + return { + instanceId: 'string', + processId: 'string', + processName: 'string', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMonitoringAgentProcessRequest = DeleteMonitoringAgentProcessRequest; +//# sourceMappingURL=DeleteMonitoringAgentProcessRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessRequest.js.map new file mode 100644 index 0000000..9e0779a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteMonitoringAgentProcessRequest.js","sourceRoot":"","sources":["../../src/models/DeleteMonitoringAgentProcessRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IAgClE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;YACnB,WAAW,EAAE,QAAQ;YACrB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzDD,kFAyDC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessResponse.d.ts new file mode 100644 index 0000000..35d096d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DeleteMonitoringAgentProcessResponseBody } from "./DeleteMonitoringAgentProcessResponseBody"; +export declare class DeleteMonitoringAgentProcessResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DeleteMonitoringAgentProcessResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessResponse.js new file mode 100644 index 0000000..17563bc --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessResponse.js @@ -0,0 +1,69 @@ +"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.DeleteMonitoringAgentProcessResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DeleteMonitoringAgentProcessResponseBody_1 = require("./DeleteMonitoringAgentProcessResponseBody"); +class DeleteMonitoringAgentProcessResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteMonitoringAgentProcessResponseBody_1.DeleteMonitoringAgentProcessResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMonitoringAgentProcessResponse = DeleteMonitoringAgentProcessResponse; +//# sourceMappingURL=DeleteMonitoringAgentProcessResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessResponse.js.map new file mode 100644 index 0000000..0149f56 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteMonitoringAgentProcessResponse.js","sourceRoot":"","sources":["../../src/models/DeleteMonitoringAgentProcessResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,yGAAsG;AAGtG,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IAInE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,mFAAwC;SAC/C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,oFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessResponseBody.d.ts new file mode 100644 index 0000000..098194f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteMonitoringAgentProcessResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 971CC023-5A96-452A-BB7C-2483F948BCFD + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessResponseBody.js new file mode 100644 index 0000000..b92e606 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessResponseBody.js @@ -0,0 +1,64 @@ +"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.DeleteMonitoringAgentProcessResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteMonitoringAgentProcessResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteMonitoringAgentProcessResponseBody = DeleteMonitoringAgentProcessResponseBody; +//# sourceMappingURL=DeleteMonitoringAgentProcessResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessResponseBody.js.map new file mode 100644 index 0000000..cee489e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteMonitoringAgentProcessResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteMonitoringAgentProcessResponseBody.js","sourceRoot":"","sources":["../../src/models/DeleteMonitoringAgentProcessResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wCAAyC,SAAQ,KAAK,CAAC,KAAK;IAsCvE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,4FA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsRequest.d.ts new file mode 100644 index 0000000..505aa81 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsRequest.d.ts @@ -0,0 +1,35 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteSiteMonitorsRequest extends $dara.Model { + /** + * @remarks + * Specifies whether to delete the alert rules configured for the site monitoring tasks. Valid values: + * + * * true (default value) + * * false + * + * @example + * true + */ + isDeleteAlarms?: boolean; + regionId?: string; + /** + * @remarks + * The IDs of the site monitoring tasks that you want to delete. Separate multiple task IDs with commas (,). + * + * This parameter is required. + * + * @example + * 01adacc2-ece5-41b6-afa2-3143ab5d****,43bd1ead-514f-4524-813e-228ce091**** + */ + taskIds?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsRequest.js new file mode 100644 index 0000000..694ec8b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsRequest.js @@ -0,0 +1,62 @@ +"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.DeleteSiteMonitorsRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteSiteMonitorsRequest extends $dara.Model { + static names() { + return { + isDeleteAlarms: 'IsDeleteAlarms', + regionId: 'RegionId', + taskIds: 'TaskIds', + }; + } + static types() { + return { + isDeleteAlarms: 'boolean', + regionId: 'string', + taskIds: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteSiteMonitorsRequest = DeleteSiteMonitorsRequest; +//# sourceMappingURL=DeleteSiteMonitorsRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsRequest.js.map new file mode 100644 index 0000000..e1438f2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteSiteMonitorsRequest.js","sourceRoot":"","sources":["../../src/models/DeleteSiteMonitorsRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IAuBxD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,cAAc,EAAE,gBAAgB;YAChC,QAAQ,EAAE,UAAU;YACpB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,cAAc,EAAE,SAAS;YACzB,QAAQ,EAAE,QAAQ;YAClB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA9CD,8DA8CC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsResponse.d.ts new file mode 100644 index 0000000..26127a1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DeleteSiteMonitorsResponseBody } from "./DeleteSiteMonitorsResponseBody"; +export declare class DeleteSiteMonitorsResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DeleteSiteMonitorsResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsResponse.js new file mode 100644 index 0000000..2a928a0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsResponse.js @@ -0,0 +1,69 @@ +"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.DeleteSiteMonitorsResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DeleteSiteMonitorsResponseBody_1 = require("./DeleteSiteMonitorsResponseBody"); +class DeleteSiteMonitorsResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteSiteMonitorsResponseBody_1.DeleteSiteMonitorsResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteSiteMonitorsResponse = DeleteSiteMonitorsResponse; +//# sourceMappingURL=DeleteSiteMonitorsResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsResponse.js.map new file mode 100644 index 0000000..09ac346 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteSiteMonitorsResponse.js","sourceRoot":"","sources":["../../src/models/DeleteSiteMonitorsResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,qFAAkF;AAGlF,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IAIzD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,+DAA8B;SACrC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,gEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsResponseBody.d.ts new file mode 100644 index 0000000..05492f2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsResponseBody.d.ts @@ -0,0 +1,72 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DeleteSiteMonitorsResponseBodyData extends $dara.Model { + /** + * @remarks + * The number of the site monitoring tasks that were deleted. + * + * @example + * 0 + */ + count?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DeleteSiteMonitorsResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The information about the site monitoring tasks that were deleted. + */ + data?: DeleteSiteMonitorsResponseBodyData; + /** + * @remarks + * The returned message. If the call was successful, the value success is returned. If the call failed, an error message such as `TaskId not found` is returned. + * + * @example + * successful + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * 123BCC5D-8B63-48EA-B747-9A8995BE7AA6 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call was successful. The value true indicates success. The value false indicates failure. + * + * @example + * true + */ + success?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsResponseBody.js new file mode 100644 index 0000000..5bd9da1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsResponseBody.js @@ -0,0 +1,88 @@ +"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.DeleteSiteMonitorsResponseBody = exports.DeleteSiteMonitorsResponseBodyData = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DeleteSiteMonitorsResponseBodyData extends $dara.Model { + static names() { + return { + count: 'count', + }; + } + static types() { + return { + count: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteSiteMonitorsResponseBodyData = DeleteSiteMonitorsResponseBodyData; +class DeleteSiteMonitorsResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + data: 'Data', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + data: DeleteSiteMonitorsResponseBodyData, + message: 'string', + requestId: 'string', + success: 'string', + }; + } + validate() { + if (this.data && typeof this.data.validate === 'function') { + this.data.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DeleteSiteMonitorsResponseBody = DeleteSiteMonitorsResponseBody; +//# sourceMappingURL=DeleteSiteMonitorsResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsResponseBody.js.map new file mode 100644 index 0000000..3f494d5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DeleteSiteMonitorsResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteSiteMonitorsResponseBody.js","sourceRoot":"","sources":["../../src/models/DeleteSiteMonitorsResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;IASjE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5BD,gFA4BC;AAED,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAwC7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,kCAAkC;YACxC,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtED,wEAsEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListRequest.d.ts new file mode 100644 index 0000000..7377efd --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListRequest.d.ts @@ -0,0 +1,25 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeActiveMetricRuleListRequest extends $dara.Model { + /** + * @remarks + * The abbreviation of the cloud service that supports initiative alert rules. + * + * For more information about how to obtain the name of a cloud service, see [DescribeProductsOfActiveMetricRule](https://help.aliyun.com/document_detail/114930.html). + * + * This parameter is required. + * + * @example + * ecs + */ + product?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListRequest.js new file mode 100644 index 0000000..b044f11 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListRequest.js @@ -0,0 +1,58 @@ +"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.DescribeActiveMetricRuleListRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeActiveMetricRuleListRequest extends $dara.Model { + static names() { + return { + product: 'Product', + }; + } + static types() { + return { + product: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeActiveMetricRuleListRequest = DescribeActiveMetricRuleListRequest; +//# sourceMappingURL=DescribeActiveMetricRuleListRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListRequest.js.map new file mode 100644 index 0000000..7956813 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeActiveMetricRuleListRequest.js","sourceRoot":"","sources":["../../src/models/DescribeActiveMetricRuleListRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IAalE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAhCD,kFAgCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListResponse.d.ts new file mode 100644 index 0000000..177ceef --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeActiveMetricRuleListResponseBody } from "./DescribeActiveMetricRuleListResponseBody"; +export declare class DescribeActiveMetricRuleListResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeActiveMetricRuleListResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListResponse.js new file mode 100644 index 0000000..d43a712 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListResponse.js @@ -0,0 +1,69 @@ +"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.DescribeActiveMetricRuleListResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeActiveMetricRuleListResponseBody_1 = require("./DescribeActiveMetricRuleListResponseBody"); +class DescribeActiveMetricRuleListResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeActiveMetricRuleListResponseBody_1.DescribeActiveMetricRuleListResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeActiveMetricRuleListResponse = DescribeActiveMetricRuleListResponse; +//# sourceMappingURL=DescribeActiveMetricRuleListResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListResponse.js.map new file mode 100644 index 0000000..f8c11fe --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeActiveMetricRuleListResponse.js","sourceRoot":"","sources":["../../src/models/DescribeActiveMetricRuleListResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,yGAAsG;AAGtG,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IAInE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,mFAAwC;SAC/C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,oFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListResponseBody.d.ts new file mode 100644 index 0000000..f0c4dcf --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListResponseBody.d.ts @@ -0,0 +1,591 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsCritical extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold for Critical-level alerts. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The statistical methods for Critical-level alerts. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Critical-level alerts. + * + * @example + * 99 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before a Critical-level alert is triggered. + * + * @example + * 3 + */ + times?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsInfo extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold for Info-level alerts. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The statistical methods for Info-level alerts. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Info-level alerts. + * + * @example + * 95 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times + * + * for which the metric value meets the alert condition before an Info-level alert is triggered. + * + * @example + * 3 + */ + times?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsWarn extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold for Warn-level alerts. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The statistical methods for Warn-level alerts. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Warn-level alerts. + * + * @example + * 80 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times + * + * for which the metric value meets the alert condition before a Warn-level alert is triggered. + * + * @example + * 3 + */ + times?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalations extends $dara.Model { + /** + * @remarks + * The trigger condition for Critical-level alerts. + */ + critical?: DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsCritical; + /** + * @remarks + * The conditions for triggering Info-level alerts. + */ + info?: DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsInfo; + /** + * @remarks + * The conditions for triggering Warn-level alerts. + */ + warn?: DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsWarn; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeActiveMetricRuleListResponseBodyAlertListAlert extends $dara.Model { + /** + * @remarks + * The status of the alert rule. Valid values: + * + * * OK: The alert rule has no active alerts. + * * ALARM: The alert rule has active alerts. + * * INSUFFICIENT_DATA: No data is found. + * + * @example + * OK + */ + alertState?: string; + /** + * @remarks + * The alert contact group. + * + * @example + * ECS_Group + */ + contactGroups?: string; + /** + * @remarks + * The monitoring data of the specified resource. + * + * @example + * "" + */ + dimensions?: string; + /** + * @remarks + * The time period during which the alert rule is effective. + * + * @example + * 00:00-23:59 + */ + effectiveInterval?: string; + /** + * @remarks + * Indicates whether the alert rule is enabled. Valid values: + * + * * true: The alert rule is enabled. + * * false: The alert rule is disabled. + * + * @example + * true + */ + enableState?: boolean; + /** + * @remarks + * The conditions for triggering different levels of alerts. + */ + escalations?: DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalations; + /** + * @remarks + * The subject of the alert notification email. + * + * @example + * ECS_Bucket + */ + mailSubject?: string; + /** + * @remarks + * The name of the metric. + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The namespace of the Alibaba Cloud service. + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The time period during which the alert rule is ineffective. + * + * @example + * 00:00-06:00 + */ + noEffectiveInterval?: string; + /** + * @remarks + * The aggregation period of monitoring data. + * + * Unit: seconds. + * + * @example + * 60 + */ + period?: string; + /** + * @remarks + * The resources that are associated with the alert rule. + * + * @example + * [{"resource":"_ALL"}] + */ + resources?: string; + /** + * @remarks + * The ID of the alert rule. + * + * @example + * ruleIdxxxx + */ + ruleId?: string; + /** + * @remarks + * The name of the alert rule. + * + * @example + * myAlert + */ + ruleName?: string; + /** + * @remarks + * The mute period during which new alerts are not sent even if the trigger conditions are met. + * + * Unit: seconds. + * + * @example + * 86400 + */ + silenceTime?: string; + /** + * @remarks + * The callback URL. + * + * @example + * http://www.aliyun.com + */ + webhook?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeActiveMetricRuleListResponseBodyAlertList extends $dara.Model { + alert?: DescribeActiveMetricRuleListResponseBodyAlertListAlert[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeActiveMetricRuleListResponseBodyDatapointsAlarm extends $dara.Model { + /** + * @remarks + * The comparison operator that is used in the alert rule. Valid values: + * + * * `>` + * * `<` + * * `>=` + * * `<=` + * * `=` + * * `=` + * + * @example + * > + */ + comparisonOperator?: string; + /** + * @remarks + * The alert contact group. + * + * @example + * ECS_Group + */ + contactGroups?: string; + /** + * @remarks + * Indicates whether the alert rule is enabled. Valid values: + * + * * true: The alert rule is enabled. + * * false: The alert rule is disabled. + * + * @example + * true + */ + enable?: string; + /** + * @remarks + * The end of the time period during which the alert rule is effective. + * + * Unit: hours. For example, the value 23 indicates `23:59:59`. + * + * @example + * 24 + */ + endTime?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before an alert is triggered. + * + * @example + * 3 + */ + evaluationCount?: string; + /** + * @remarks + * The metric name. + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The aggregation period of monitoring data. + * + * Unit: seconds. + * + * @example + * 60 + */ + period?: string; + /** + * @remarks + * The ID of the alert rule. + * + * @example + * a151cd6023eacee2f0978e03863cc1697c89508**** + */ + ruleId?: string; + /** + * @remarks + * The name of the alert rule. + * + * @example + * SystemDefault_acs_rds_dashboard_CpuUsage + */ + ruleName?: string; + /** + * @remarks + * The mute period during which new alerts are not sent even if the trigger conditions are met. + * + * Unit: seconds. + * + * @example + * 86400 + */ + silenceTime?: string; + /** + * @remarks + * The beginning of the time period during which the alert rule is effective. + * + * Unit: hours. For example, the value 00 indicates `00:00:00`. + * + * @example + * 00 + */ + startTime?: string; + /** + * @remarks + * Indicates whether the alert rule is enabled. + * + * @example + * Enable + */ + state?: string; + /** + * @remarks + * The statistical method. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The alert threshold. + * + * @example + * 90 + */ + threshold?: string; + /** + * @remarks + * The callback URL. + * + * @example + * http://www.aliyun.com + */ + webhook?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeActiveMetricRuleListResponseBodyDatapoints extends $dara.Model { + alarm?: DescribeActiveMetricRuleListResponseBodyDatapointsAlarm[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeActiveMetricRuleListResponseBody extends $dara.Model { + /** + * @remarks + * The details of the alert rules. The result is in the same structure as that returned by the DescribeMetricRuleList operation. + */ + alertList?: DescribeActiveMetricRuleListResponseBodyAlertList; + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The details of the alert rules. + */ + datapoints?: DescribeActiveMetricRuleListResponseBodyDatapoints; + /** + * @remarks + * The returned message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * F82E6667-7811-4BA0-842F-5B2DC42BBAAD + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListResponseBody.js new file mode 100644 index 0000000..71873de --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListResponseBody.js @@ -0,0 +1,326 @@ +"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.DescribeActiveMetricRuleListResponseBody = exports.DescribeActiveMetricRuleListResponseBodyDatapoints = exports.DescribeActiveMetricRuleListResponseBodyDatapointsAlarm = exports.DescribeActiveMetricRuleListResponseBodyAlertList = exports.DescribeActiveMetricRuleListResponseBodyAlertListAlert = exports.DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalations = exports.DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsWarn = exports.DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsInfo = exports.DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsCritical = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsCritical extends $dara.Model { + static names() { + return { + comparisonOperator: 'ComparisonOperator', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + static types() { + return { + comparisonOperator: 'string', + statistics: 'string', + threshold: 'string', + times: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsCritical = DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsCritical; +class DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsInfo extends $dara.Model { + static names() { + return { + comparisonOperator: 'ComparisonOperator', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + static types() { + return { + comparisonOperator: 'string', + statistics: 'string', + threshold: 'string', + times: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsInfo = DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsInfo; +class DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsWarn extends $dara.Model { + static names() { + return { + comparisonOperator: 'ComparisonOperator', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + static types() { + return { + comparisonOperator: 'string', + statistics: 'string', + threshold: 'string', + times: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsWarn = DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsWarn; +class DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalations extends $dara.Model { + static names() { + return { + critical: 'Critical', + info: 'Info', + warn: 'Warn', + }; + } + static types() { + return { + critical: DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsCritical, + info: DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsInfo, + warn: DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsWarn, + }; + } + 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.DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalations = DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalations; +class DescribeActiveMetricRuleListResponseBodyAlertListAlert extends $dara.Model { + static names() { + return { + alertState: 'AlertState', + contactGroups: 'ContactGroups', + dimensions: 'Dimensions', + effectiveInterval: 'EffectiveInterval', + enableState: 'EnableState', + escalations: 'Escalations', + mailSubject: 'MailSubject', + metricName: 'MetricName', + namespace: 'Namespace', + noEffectiveInterval: 'NoEffectiveInterval', + period: 'Period', + resources: 'Resources', + ruleId: 'RuleId', + ruleName: 'RuleName', + silenceTime: 'SilenceTime', + webhook: 'Webhook', + }; + } + static types() { + return { + alertState: 'string', + contactGroups: 'string', + dimensions: 'string', + effectiveInterval: 'string', + enableState: 'boolean', + escalations: DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalations, + mailSubject: 'string', + metricName: 'string', + namespace: 'string', + noEffectiveInterval: 'string', + period: 'string', + resources: 'string', + ruleId: 'string', + ruleName: 'string', + silenceTime: 'string', + webhook: 'string', + }; + } + validate() { + if (this.escalations && typeof this.escalations.validate === 'function') { + this.escalations.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeActiveMetricRuleListResponseBodyAlertListAlert = DescribeActiveMetricRuleListResponseBodyAlertListAlert; +class DescribeActiveMetricRuleListResponseBodyAlertList extends $dara.Model { + static names() { + return { + alert: 'Alert', + }; + } + static types() { + return { + alert: { 'type': 'array', 'itemType': DescribeActiveMetricRuleListResponseBodyAlertListAlert }, + }; + } + validate() { + if (Array.isArray(this.alert)) { + $dara.Model.validateArray(this.alert); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeActiveMetricRuleListResponseBodyAlertList = DescribeActiveMetricRuleListResponseBodyAlertList; +class DescribeActiveMetricRuleListResponseBodyDatapointsAlarm extends $dara.Model { + static names() { + return { + comparisonOperator: 'ComparisonOperator', + contactGroups: 'ContactGroups', + enable: 'Enable', + endTime: 'EndTime', + evaluationCount: 'EvaluationCount', + metricName: 'MetricName', + namespace: 'Namespace', + period: 'Period', + ruleId: 'RuleId', + ruleName: 'RuleName', + silenceTime: 'SilenceTime', + startTime: 'StartTime', + state: 'State', + statistics: 'Statistics', + threshold: 'Threshold', + webhook: 'Webhook', + }; + } + static types() { + return { + comparisonOperator: 'string', + contactGroups: 'string', + enable: 'string', + endTime: 'string', + evaluationCount: 'string', + metricName: 'string', + namespace: 'string', + period: 'string', + ruleId: 'string', + ruleName: 'string', + silenceTime: 'string', + startTime: 'string', + state: 'string', + statistics: 'string', + threshold: 'string', + webhook: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeActiveMetricRuleListResponseBodyDatapointsAlarm = DescribeActiveMetricRuleListResponseBodyDatapointsAlarm; +class DescribeActiveMetricRuleListResponseBodyDatapoints extends $dara.Model { + static names() { + return { + alarm: 'Alarm', + }; + } + static types() { + return { + alarm: { 'type': 'array', 'itemType': DescribeActiveMetricRuleListResponseBodyDatapointsAlarm }, + }; + } + validate() { + if (Array.isArray(this.alarm)) { + $dara.Model.validateArray(this.alarm); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeActiveMetricRuleListResponseBodyDatapoints = DescribeActiveMetricRuleListResponseBodyDatapoints; +class DescribeActiveMetricRuleListResponseBody extends $dara.Model { + static names() { + return { + alertList: 'AlertList', + code: 'Code', + datapoints: 'Datapoints', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + alertList: DescribeActiveMetricRuleListResponseBodyAlertList, + code: 'string', + datapoints: DescribeActiveMetricRuleListResponseBodyDatapoints, + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + if (this.alertList && typeof this.alertList.validate === 'function') { + this.alertList.validate(); + } + if (this.datapoints && typeof this.datapoints.validate === 'function') { + this.datapoints.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeActiveMetricRuleListResponseBody = DescribeActiveMetricRuleListResponseBody; +//# sourceMappingURL=DescribeActiveMetricRuleListResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListResponseBody.js.map new file mode 100644 index 0000000..a97cfe8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeActiveMetricRuleListResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeActiveMetricRuleListResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeActiveMetricRuleListResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yEAA0E,SAAQ,KAAK,CAAC,KAAK;IA6CxG,MAAM,CAAC,KAAK;QACV,OAAO;YACL,kBAAkB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AAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,iDAAiD;YAC5D,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,kDAAkD;YAC9D,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,SAAS,IAAI,OAAQ,IAAI,CAAC,SAAiB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YAC3E,IAAI,CAAC,SAAiB,CAAC,QAAQ,EAAE,CAAC;QACrC,CAAC;QACD,IAAG,IAAI,CAAC,UAAU,IAAI,OAAQ,IAAI,CAAC,UAAkB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YAC7E,IAAI,CAAC,UAAkB,CAAC,QAAQ,EAAE,CAAC;QACtC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnFD,4FAmFC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListRequest.d.ts new file mode 100644 index 0000000..2bb9cba --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListRequest.d.ts @@ -0,0 +1,138 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeAlertHistoryListRequest extends $dara.Model { + /** + * @remarks + * The order of alerts. Valid values: + * + * * true (default value): reverse chronological order + * * false: chronological order + * + * @example + * true + */ + ascending?: boolean; + /** + * @remarks + * The end timestamp of the historical alerts that you want to query. + * + * Unit: milliseconds. + * + * @example + * 1640608200000 + */ + endTime?: string; + /** + * @remarks + * The ID of the application group. + * + * For information about how to obtain the ID of an application group, see [DescribeMonitorGroups](https://help.aliyun.com/document_detail/115032.html). + * + * @example + * 7671**** + */ + groupId?: string; + /** + * @remarks + * The metric that is used to monitor the cloud service. + * + * 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. + * + * For information about how to query the namespace of a cloud service, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The number of the page to return. + * + * Default value: 1. + * + * @example + * 1 + */ + page?: number; + /** + * @remarks + * The number of entries to return on each page. + * + * Default value: 10. + * + * @example + * 10 + */ + pageSize?: number; + regionId?: string; + /** + * @remarks + * The ID of the alert rule. + * + * For information about how to obtain the ID of an alert rule, see [DescribeMetricRuleList](https://help.aliyun.com/document_detail/114941.html). + * + * @example + * applyTemplate61dc81b5-d357-4cf6-a9b7-9f83c1d5**** + */ + ruleId?: string; + /** + * @remarks + * The name of the alert rule. + * + * For information about how to query the name of an alert rule, see [DescribeMetricRuleList](https://help.aliyun.com/document_detail/114941.html). + * + * @example + * ECS_Rule + */ + ruleName?: string; + /** + * @remarks + * The start timestamp of the historical alerts that you want to query. + * + * Unit: milliseconds. + * + * @example + * 1640237400000 + */ + startTime?: string; + /** + * @remarks + * The status of the alert. Valid values: + * + * * ALARM (default value): Alerts are triggered. + * * OK: No alerts are triggered. + * + * @example + * ALARM + */ + state?: string; + /** + * @remarks + * Specifies whether alerts are muted. Valid values: + * + * * 2 (default value): Alerts are muted and are not triggered within the mute period, even if the condition specified in the alert rule is met. + * * 0: Alerts are triggered or cleared. + * * 1: The alert rule is ineffective. + * + * @example + * 2 + */ + status?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListRequest.js new file mode 100644 index 0000000..347d9c4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListRequest.js @@ -0,0 +1,82 @@ +"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.DescribeAlertHistoryListRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeAlertHistoryListRequest extends $dara.Model { + static names() { + return { + ascending: 'Ascending', + endTime: 'EndTime', + groupId: 'GroupId', + metricName: 'MetricName', + namespace: 'Namespace', + page: 'Page', + pageSize: 'PageSize', + regionId: 'RegionId', + ruleId: 'RuleId', + ruleName: 'RuleName', + startTime: 'StartTime', + state: 'State', + status: 'Status', + }; + } + static types() { + return { + ascending: 'boolean', + endTime: 'string', + groupId: 'string', + metricName: 'string', + namespace: 'string', + page: 'number', + pageSize: 'number', + regionId: 'string', + ruleId: 'string', + ruleName: 'string', + startTime: 'string', + state: 'string', + status: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertHistoryListRequest = DescribeAlertHistoryListRequest; +//# sourceMappingURL=DescribeAlertHistoryListRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListRequest.js.map new file mode 100644 index 0000000..413adc0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeAlertHistoryListRequest.js","sourceRoot":"","sources":["../../src/models/DescribeAlertHistoryListRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IA8H9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;YACtB,KAAK,EAAE,OAAO;YACd,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,SAAS;YACpB,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;YACnB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,QAAQ;YACnB,KAAK,EAAE,QAAQ;YACf,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzKD,0EAyKC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListResponse.d.ts new file mode 100644 index 0000000..45868b1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeAlertHistoryListResponseBody } from "./DescribeAlertHistoryListResponseBody"; +export declare class DescribeAlertHistoryListResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeAlertHistoryListResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListResponse.js new file mode 100644 index 0000000..c100b31 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListResponse.js @@ -0,0 +1,69 @@ +"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.DescribeAlertHistoryListResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeAlertHistoryListResponseBody_1 = require("./DescribeAlertHistoryListResponseBody"); +class DescribeAlertHistoryListResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeAlertHistoryListResponseBody_1.DescribeAlertHistoryListResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertHistoryListResponse = DescribeAlertHistoryListResponse; +//# sourceMappingURL=DescribeAlertHistoryListResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListResponse.js.map new file mode 100644 index 0000000..cd3d72c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeAlertHistoryListResponse.js","sourceRoot":"","sources":["../../src/models/DescribeAlertHistoryListResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,iGAA8F;AAG9F,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAI/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,2EAAoC;SAC3C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,4EAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListResponseBody.d.ts new file mode 100644 index 0000000..d844b20 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListResponseBody.d.ts @@ -0,0 +1,320 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactALIIMs extends $dara.Model { + contactALIIM?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactGroups extends $dara.Model { + contactGroup?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactMails extends $dara.Model { + contactMail?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactSmses extends $dara.Model { + contactSms?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContacts extends $dara.Model { + contact?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistory extends $dara.Model { + /** + * @remarks + * The timestamp when the alert was triggered. Unit: milliseconds. + * + * @example + * 1640586600000 + */ + alertTime?: number; + /** + * @remarks + * The TradeManager IDs of the alert contacts. + * + * > This parameter is valid only on the China site (aliyun.com). + */ + contactALIIMs?: DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactALIIMs; + /** + * @remarks + * The alert contact groups. + */ + contactGroups?: DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactGroups; + /** + * @remarks + * The email addresses of the alert contacts. + */ + contactMails?: DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactMails; + /** + * @remarks + * The mobile numbers of the alert contacts. + * + * > This parameter is valid only on the China site (aliyun.com). + */ + contactSmses?: DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactSmses; + /** + * @remarks + * The alert contacts that receive alert notifications. + */ + contacts?: DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContacts; + /** + * @remarks + * The resources that are monitored. + * + * @example + * {\\"instanceId\\":\\"i-bp1cqhiw1za2****\\"} + */ + dimensions?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before an alert is triggered. + * + * @example + * 3 + */ + evaluationCount?: number; + /** + * @remarks + * The expression that is used to trigger alerts. + * + * @example + * $Average>=10 + */ + expression?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 7671**** + */ + groupId?: string; + /** + * @remarks + * The instance name. + * + * @example + * i-bp1cqhiw1za2**** + */ + instanceName?: string; + /** + * @remarks + * The duration of the alert. Unit: milliseconds. + * + * @example + * 360133 + */ + lastTime?: number; + /** + * @remarks + * The severity level and notification methods of the alert. Valid values: + * + * * P4: Alert notifications are sent by using emails and DingTalk chatbots. + * * OK: No alert is generated. + * + * @example + * P4 + */ + level?: string; + /** + * @remarks + * The metric name. + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The ID of the alert rule. + * + * @example + * applyTemplate61dc81b5-d357-4cf6-a9b7-9f83c1d5**** + */ + ruleId?: string; + /** + * @remarks + * The name of the alert rule. + * + * @example + * ECS_Rule + */ + ruleName?: string; + /** + * @remarks + * The alert status. Valid values: + * + * * ALARM: Alerts are triggered. + * * OK: No alerts are triggered. + * + * @example + * ALARM + */ + state?: string; + /** + * @remarks + * Indicates whether alerts are muted. Valid values: + * + * * 2 (default): Alerts are muted and are not triggered within the mute period, even if the condition specified in the alert rule is met. + * * 0: Alerts are triggered or cleared. + * * 1: The alert rule is ineffective. + * + * @example + * 2 + */ + status?: number; + /** + * @remarks + * The threshold of the metric value to trigger or clear an alert. + * + * @example + * 10.58 + */ + value?: string; + /** + * @remarks + * The callback URL. + * + * @example + * https://www.aliyun.com + */ + webhooks?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeAlertHistoryListResponseBodyAlarmHistoryList extends $dara.Model { + alarmHistory?: DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistory[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeAlertHistoryListResponseBody extends $dara.Model { + /** + * @remarks + * The details of historical alerts. + */ + alarmHistoryList?: DescribeAlertHistoryListResponseBodyAlarmHistoryList; + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * C3C69FBE-2262-541F-A409-C52F380BAE63 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The total number of entries returned. + * + * @example + * 2 + */ + total?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListResponseBody.js new file mode 100644 index 0000000..7a081e9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListResponseBody.js @@ -0,0 +1,277 @@ +"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.DescribeAlertHistoryListResponseBody = exports.DescribeAlertHistoryListResponseBodyAlarmHistoryList = exports.DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistory = exports.DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContacts = exports.DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactSmses = exports.DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactMails = exports.DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactGroups = exports.DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactALIIMs = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactALIIMs extends $dara.Model { + static names() { + return { + contactALIIM: 'ContactALIIM', + }; + } + static types() { + return { + contactALIIM: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.contactALIIM)) { + $dara.Model.validateArray(this.contactALIIM); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactALIIMs = DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactALIIMs; +class DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactGroups extends $dara.Model { + static names() { + return { + contactGroup: 'ContactGroup', + }; + } + static types() { + return { + contactGroup: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.contactGroup)) { + $dara.Model.validateArray(this.contactGroup); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactGroups = DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactGroups; +class DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactMails extends $dara.Model { + static names() { + return { + contactMail: 'ContactMail', + }; + } + static types() { + return { + contactMail: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.contactMail)) { + $dara.Model.validateArray(this.contactMail); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactMails = DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactMails; +class DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactSmses extends $dara.Model { + static names() { + return { + contactSms: 'ContactSms', + }; + } + static types() { + return { + contactSms: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.contactSms)) { + $dara.Model.validateArray(this.contactSms); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactSmses = DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactSmses; +class DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContacts extends $dara.Model { + static names() { + return { + contact: 'Contact', + }; + } + static types() { + return { + contact: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.contact)) { + $dara.Model.validateArray(this.contact); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContacts = DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContacts; +class DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistory extends $dara.Model { + static names() { + return { + alertTime: 'AlertTime', + contactALIIMs: 'ContactALIIMs', + contactGroups: 'ContactGroups', + contactMails: 'ContactMails', + contactSmses: 'ContactSmses', + contacts: 'Contacts', + dimensions: 'Dimensions', + evaluationCount: 'EvaluationCount', + expression: 'Expression', + groupId: 'GroupId', + instanceName: 'InstanceName', + lastTime: 'LastTime', + level: 'Level', + metricName: 'MetricName', + namespace: 'Namespace', + ruleId: 'RuleId', + ruleName: 'RuleName', + state: 'State', + status: 'Status', + value: 'Value', + webhooks: 'Webhooks', + }; + } + static types() { + return { + alertTime: 'number', + contactALIIMs: DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactALIIMs, + contactGroups: DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactGroups, + contactMails: DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactMails, + contactSmses: DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactSmses, + contacts: DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContacts, + dimensions: 'string', + evaluationCount: 'number', + expression: 'string', + groupId: 'string', + instanceName: 'string', + lastTime: 'number', + level: 'string', + metricName: 'string', + namespace: 'string', + ruleId: 'string', + ruleName: 'string', + state: 'string', + status: 'number', + value: 'string', + webhooks: 'string', + }; + } + validate() { + if (this.contactALIIMs && typeof this.contactALIIMs.validate === 'function') { + this.contactALIIMs.validate(); + } + if (this.contactGroups && typeof this.contactGroups.validate === 'function') { + this.contactGroups.validate(); + } + if (this.contactMails && typeof this.contactMails.validate === 'function') { + this.contactMails.validate(); + } + if (this.contactSmses && typeof this.contactSmses.validate === 'function') { + this.contactSmses.validate(); + } + if (this.contacts && typeof this.contacts.validate === 'function') { + this.contacts.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistory = DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistory; +class DescribeAlertHistoryListResponseBodyAlarmHistoryList extends $dara.Model { + static names() { + return { + alarmHistory: 'AlarmHistory', + }; + } + static types() { + return { + alarmHistory: { 'type': 'array', 'itemType': DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistory }, + }; + } + validate() { + if (Array.isArray(this.alarmHistory)) { + $dara.Model.validateArray(this.alarmHistory); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertHistoryListResponseBodyAlarmHistoryList = DescribeAlertHistoryListResponseBodyAlarmHistoryList; +class DescribeAlertHistoryListResponseBody extends $dara.Model { + static names() { + return { + alarmHistoryList: 'AlarmHistoryList', + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + total: 'Total', + }; + } + static types() { + return { + alarmHistoryList: DescribeAlertHistoryListResponseBodyAlarmHistoryList, + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + total: 'string', + }; + } + validate() { + if (this.alarmHistoryList && typeof this.alarmHistoryList.validate === 'function') { + this.alarmHistoryList.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertHistoryListResponseBody = DescribeAlertHistoryListResponseBody; +//# sourceMappingURL=DescribeAlertHistoryListResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListResponseBody.js.map new file mode 100644 index 0000000..a21c460 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertHistoryListResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeAlertHistoryListResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeAlertHistoryListResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6EAA8E,SAAQ,KAAK,CAAC,KAAK;IAE5G,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,cAAc;SAC7B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;SACxD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;YACpC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC/C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxBD,sKAwBC;AAED,MAAa,6EAA8E,SAAQ,KAAK,CAAC,KAAK;IAE5G,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,cAAc;SAC7B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;SACxD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;YACpC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC/C,CAAC;QACD,KAA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;YACnB,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,gBAAgB,IAAI,OAAQ,IAAI,CAAC,gBAAwB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACzF,IAAI,CAAC,gBAAwB,CAAC,QAAQ,EAAE,CAAC;QAC5C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnFD,oFAmFC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountRequest.d.ts new file mode 100644 index 0000000..7e9337e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountRequest.d.ts @@ -0,0 +1,204 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeAlertLogCountRequest extends $dara.Model { + /** + * @remarks + * The alert group. + * + * @example + * ECS_Group + */ + contactGroup?: string; + /** + * @remarks + * The end timestamp of the alert logs to be queried. + * + * Unit: milliseconds. + * + * You can query only the alert logs within the last year. If the query time is longer than one year, the return value of the `AlertLogCount` parameter is empty. + * + * > The interval between the start time (StartTime) and end time (EndTime) must be less than or equal to 15 days. The start time and end time must be specified or left empty at the same time. If you do not specify the start time and end time, the alert logs within the last 15 minutes are queried by default. + * + * @example + * 1610074409694 + */ + endTime?: number; + /** + * @remarks + * The type of the alert event. Valid values: + * + * * TRIGGERED: The alert is triggered. + * * RESOLVED: The alert is resolved. + * + * @example + * TRIGGERED + */ + eventType?: string; + /** + * @remarks + * The dimension based on which data is aggregated. This parameter is similar to the Group By clause of SQL statements. Valid values: + * + * * `product`: aggregates data by cloud service. + * * `level`: aggregates data by alert level. + * * `groupId`: aggregates data by application group. + * * `contactGroup`: aggregates data by alert group. + * * `product,metricName`: aggregates data both by cloud service and by metric. + * + * This parameter is required. + * + * @example + * product + */ + groupBy?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 7301**** + */ + groupId?: string; + /** + * @remarks + * The statistical period of alert logs. Unit: minutes. + * + * @example + * 360 + */ + lastMin?: string; + /** + * @remarks + * The level and notification method of the alert. Valid values: + * + * * P4: Alert notifications are sent by using emails and DingTalk chatbots. + * * OK: No alert is generated. + * + * @example + * P4 + */ + level?: string; + /** + * @remarks + * The name of the metric. + * + * > For more information about the metrics of different cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * > For more information about the namespaces of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The dimension based on which data is aggregated. This parameter is equivalent to the GROUP BY clause in SQL. Valid values: + * + * * `product`: aggregates data by cloud service. + * * `level`: aggregates data by alert level. + * * `groupId`: aggregates data by application group. + * * `contactGroup`: aggregates data by alert contact group. + * * `product,metricName`: aggregates data both by cloud service and by metric. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries to return on each page. Default value: 10. + * + * @example + * 10 + */ + pageSize?: number; + /** + * @remarks + * The abbreviation of the service name. + * + * @example + * ECS + */ + product?: string; + regionId?: string; + /** + * @remarks + * The ID of the alert rule. + * + * For more information about how to obtain the ID of an alert rule, see [DescribeMetricRuleList](https://help.aliyun.com/document_detail/114941.html). + * + * @example + * bfae2ca5b4e07d2c7278772e*********** + */ + ruleId?: string; + /** + * @remarks + * The name of the alert rule. + * + * @example + * test123 + */ + ruleName?: string; + /** + * @remarks + * The keyword based on which the alert logs to be counted are searched. + * + * @example + * test + */ + searchKey?: string; + /** + * @remarks + * The status of the alert. Valid values: + * + * * 0: The alert is triggered or cleared. + * * 1: The alert is generated not during the effective period. + * * 2: The alert is muted and not triggered in a specified period. + * * 3: The host is restarting. + * * 4: Notifications are not sent for the alert. + * + * When the value of the SendStatus parameter is 0, the value P4 of the Level parameter indicates a triggered alert and the value OK indicates a cleared alert. + * + * @example + * 0 + */ + sendStatus?: string; + /** + * @remarks + * This parameter is deprecated. + * + * @example + * None + */ + sourceType?: string; + /** + * @remarks + * The start timestamp of the alert logs to be queried. + * + * Unit: milliseconds. + * + * You can query only the alert logs within the last year. If the query time is longer than one year, the return value of the `AlertLogCount` parameter is empty. + * + * > The interval between the start time (StartTime) and end time (EndTime) must be less than or equal to 15 days. The start time and end time must be specified or left empty at the same time. If you do not specify the start time and end time, the alert logs within the last 15 minutes are queried by default. + * + * @example + * 1609988009694 + */ + startTime?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountRequest.js new file mode 100644 index 0000000..58a87ff --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountRequest.js @@ -0,0 +1,94 @@ +"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.DescribeAlertLogCountRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeAlertLogCountRequest extends $dara.Model { + static names() { + return { + contactGroup: 'ContactGroup', + endTime: 'EndTime', + eventType: 'EventType', + groupBy: 'GroupBy', + groupId: 'GroupId', + lastMin: 'LastMin', + level: 'Level', + metricName: 'MetricName', + namespace: 'Namespace', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + product: 'Product', + regionId: 'RegionId', + ruleId: 'RuleId', + ruleName: 'RuleName', + searchKey: 'SearchKey', + sendStatus: 'SendStatus', + sourceType: 'SourceType', + startTime: 'StartTime', + }; + } + static types() { + return { + contactGroup: 'string', + endTime: 'number', + eventType: 'string', + groupBy: 'string', + groupId: 'string', + lastMin: 'string', + level: 'string', + metricName: 'string', + namespace: 'string', + pageNumber: 'number', + pageSize: 'number', + product: 'string', + regionId: 'string', + ruleId: 'string', + ruleName: 'string', + searchKey: 'string', + sendStatus: 'string', + sourceType: 'string', + startTime: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertLogCountRequest = DescribeAlertLogCountRequest; +//# sourceMappingURL=DescribeAlertLogCountRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountRequest.js.map new file mode 100644 index 0000000..c7baf23 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountRequest.js.map @@ -0,0 +1 @@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AAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAvPD,oEAuPC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountResponse.d.ts new file mode 100644 index 0000000..6d3b6a4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeAlertLogCountResponseBody } from "./DescribeAlertLogCountResponseBody"; +export declare class DescribeAlertLogCountResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeAlertLogCountResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountResponse.js new file mode 100644 index 0000000..3bfd9f4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountResponse.js @@ -0,0 +1,69 @@ +"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.DescribeAlertLogCountResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeAlertLogCountResponseBody_1 = require("./DescribeAlertLogCountResponseBody"); +class DescribeAlertLogCountResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeAlertLogCountResponseBody_1.DescribeAlertLogCountResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertLogCountResponse = DescribeAlertLogCountResponse; +//# sourceMappingURL=DescribeAlertLogCountResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountResponse.js.map new file mode 100644 index 0000000..af0007d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeAlertLogCountResponse.js","sourceRoot":"","sources":["../../src/models/DescribeAlertLogCountResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,2FAAwF;AAGxF,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IAI5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,qEAAiC;SACxC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,sEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountResponseBody.d.ts new file mode 100644 index 0000000..9aad3b6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountResponseBody.d.ts @@ -0,0 +1,108 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeAlertLogCountResponseBodyAlertLogCountLogs extends $dara.Model { + /** + * @remarks + * The name of the dimension field based on which alert logs are aggregated. + * + * @example + * product + */ + name?: string; + /** + * @remarks + * The value of the dimension field based on which alert logs are aggregated. + * + * @example + * ECS + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeAlertLogCountResponseBodyAlertLogCount extends $dara.Model { + /** + * @remarks + * The number of alert logs. + * + * @example + * 1 + */ + count?: number; + /** + * @remarks + * The details about alert logs. + */ + logs?: DescribeAlertLogCountResponseBodyAlertLogCountLogs[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeAlertLogCountResponseBody extends $dara.Model { + /** + * @remarks + * The statistics of alert logs. + */ + alertLogCount?: DescribeAlertLogCountResponseBodyAlertLogCount[]; + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 1C4A3709-BF52-42EE-87B5-7435F0929585 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountResponseBody.js new file mode 100644 index 0000000..e42ee23 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountResponseBody.js @@ -0,0 +1,114 @@ +"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.DescribeAlertLogCountResponseBody = exports.DescribeAlertLogCountResponseBodyAlertLogCount = exports.DescribeAlertLogCountResponseBodyAlertLogCountLogs = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeAlertLogCountResponseBodyAlertLogCountLogs extends $dara.Model { + static names() { + return { + name: 'Name', + value: 'Value', + }; + } + static types() { + return { + name: 'string', + value: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertLogCountResponseBodyAlertLogCountLogs = DescribeAlertLogCountResponseBodyAlertLogCountLogs; +class DescribeAlertLogCountResponseBodyAlertLogCount extends $dara.Model { + static names() { + return { + count: 'Count', + logs: 'Logs', + }; + } + static types() { + return { + count: 'number', + logs: { 'type': 'array', 'itemType': DescribeAlertLogCountResponseBodyAlertLogCountLogs }, + }; + } + validate() { + if (Array.isArray(this.logs)) { + $dara.Model.validateArray(this.logs); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertLogCountResponseBodyAlertLogCount = DescribeAlertLogCountResponseBodyAlertLogCount; +class DescribeAlertLogCountResponseBody extends $dara.Model { + static names() { + return { + alertLogCount: 'AlertLogCount', + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + alertLogCount: { 'type': 'array', 'itemType': DescribeAlertLogCountResponseBodyAlertLogCount }, + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + if (Array.isArray(this.alertLogCount)) { + $dara.Model.validateArray(this.alertLogCount); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertLogCountResponseBody = DescribeAlertLogCountResponseBody; +//# sourceMappingURL=DescribeAlertLogCountResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountResponseBody.js.map new file mode 100644 index 0000000..9971251 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogCountResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeAlertLogCountResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeAlertLogCountResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kDAAmD,SAAQ,KAAK,CAAC,KAAK;IAiBjF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtCD,gHAsCC;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QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,8EAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramRequest.d.ts new file mode 100644 index 0000000..df1d11d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramRequest.d.ts @@ -0,0 +1,204 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeAlertLogHistogramRequest extends $dara.Model { + /** + * @remarks + * The alert contact group. + * + * @example + * ECS_Group + */ + contactGroup?: string; + /** + * @remarks + * The end timestamp of the alert logs to be queried. + * + * Unit: milliseconds. + * + * > + * + * * You can query only the alert logs within the last year. + * + * * The interval between the start time (`StartTime`) and end time (`EndTime`) must be less than or equal to 15 days. + * + * @example + * 1609989009694 + */ + endTime?: number; + /** + * @remarks + * The type of the alert event. Valid values: + * + * * TRIGGERED: The alert is triggered. + * * RESOLVED: The alert is resolved. + * + * @example + * RESOLVED + */ + eventType?: string; + /** + * @remarks + * The dimensions based on which data is aggregated. This parameter is equivalent to the GROUP BY clause in SQL. Valid values: + * + * * `product`: aggregates data by cloud service. + * * `level`: aggregates data by alert level. + * * `groupId`: aggregates data by application group. + * * `contactGroup`: aggregates data by alert contact group. + * * `product,metricName`: aggregates data both by cloud service and by metric. + * + * @example + * product + */ + groupBy?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 7301**** + */ + groupId?: string; + /** + * @remarks + * The statistical period of alert logs. Unit: minutes. + * + * @example + * 360 + */ + lastMin?: string; + /** + * @remarks + * The severity level and notification methods of the alert. Valid values: + * + * * P4: Alert notifications are sent by using emails and DingTalk chatbots. + * * OK: No alert is generated. + * + * @example + * P4 + */ + level?: string; + /** + * @remarks + * The metric name. + * + * > For more information about the metrics of different cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The namespace of the Alibaba Cloud service. + * + * > For more information about the namespaces of different cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The page number. + * + * Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * Default value: 10. + * + * @example + * 10 + */ + pageSize?: number; + /** + * @remarks + * The abbreviation of the Alibaba Cloud service name. + * + * @example + * ECS + */ + product?: string; + regionId?: string; + /** + * @remarks + * The ID of the alert rule. + * + * For more information about how to obtain the ID of an alert rule, see [DescribeMetricRuleList](https://help.aliyun.com/document_detail/114941.html). + * + * @example + * ae06917_75a8c43178ab66**** + */ + ruleId?: string; + /** + * @remarks + * The name of the alert rule. + * + * @example + * test123 + */ + ruleName?: string; + /** + * @remarks + * The keyword that is used to query alert logs. + * + * @example + * alert + */ + searchKey?: string; + /** + * @remarks + * The alert status. Valid values: + * + * * 0: The alert is triggered or cleared. + * * 1: The alert is ineffective. + * * 2: The alert is muted and not triggered in a specified period. + * * 3: The host is restarting. + * * 4: No alert notification is sent. + * + * If the value of the SendStatus parameter is 0, the value P4 of the Level parameter indicates a triggered alert and the value OK indicates a cleared alert. + * + * @example + * 0 + */ + sendStatus?: string; + /** + * @remarks + * This parameter is deprecated. + * + * @example + * None + */ + sourceType?: string; + /** + * @remarks + * The start timestamp of the alert logs to be queried. + * + * Unit: milliseconds. + * + * > + * + * * You can query only the alert logs within the last year. + * + * * The interval between the start time (`StartTime`) and end time (`EndTime`) must be less than or equal to 15 days. + * + * @example + * 1609988009694 + */ + startTime?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramRequest.js new file mode 100644 index 0000000..d73c35f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramRequest.js @@ -0,0 +1,94 @@ +"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.DescribeAlertLogHistogramRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeAlertLogHistogramRequest extends $dara.Model { + static names() { + return { + contactGroup: 'ContactGroup', + endTime: 'EndTime', + eventType: 'EventType', + groupBy: 'GroupBy', + groupId: 'GroupId', + lastMin: 'LastMin', + level: 'Level', + metricName: 'MetricName', + namespace: 'Namespace', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + product: 'Product', + regionId: 'RegionId', + ruleId: 'RuleId', + ruleName: 'RuleName', + searchKey: 'SearchKey', + sendStatus: 'SendStatus', + sourceType: 'SourceType', + startTime: 'StartTime', + }; + } + static types() { + return { + contactGroup: 'string', + endTime: 'number', + eventType: 'string', + groupBy: 'string', + groupId: 'string', + lastMin: 'string', + level: 'string', + metricName: 'string', + namespace: 'string', + pageNumber: 'number', + pageSize: 'number', + product: 'string', + regionId: 'string', + ruleId: 'string', + ruleName: 'string', + searchKey: 'string', + sendStatus: 'string', + sourceType: 'string', + startTime: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertLogHistogramRequest = DescribeAlertLogHistogramRequest; +//# sourceMappingURL=DescribeAlertLogHistogramRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramRequest.js.map new file mode 100644 index 0000000..b9acbee --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeAlertLogHistogramRequest.js","sourceRoot":"","sources":["../../src/models/DescribeAlertLogHistogramRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAgM/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,cAAc;YAC5B,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,OAAO;YACd,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,UAAU;YACpB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;YACtB,UAAU,EAAE,YAAY;YACxB,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,QAAQ;YACtB,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,QAAQ;YACjB,KAAK,EAAE,QAAQ;YACf,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;YACnB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,OAAO,EAAE,QAAQ;YACjB,QAAQ,EAAE,QAAQ;YAClB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,QAAQ;YACnB,UAAU,EAAE,QAAQ;YACpB,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAvPD,4EAuPC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramResponse.d.ts new file mode 100644 index 0000000..e669ec9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeAlertLogHistogramResponseBody } from "./DescribeAlertLogHistogramResponseBody"; +export declare class DescribeAlertLogHistogramResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeAlertLogHistogramResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramResponse.js new file mode 100644 index 0000000..f6c2408 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramResponse.js @@ -0,0 +1,69 @@ +"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.DescribeAlertLogHistogramResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeAlertLogHistogramResponseBody_1 = require("./DescribeAlertLogHistogramResponseBody"); +class DescribeAlertLogHistogramResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeAlertLogHistogramResponseBody_1.DescribeAlertLogHistogramResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertLogHistogramResponse = DescribeAlertLogHistogramResponse; +//# sourceMappingURL=DescribeAlertLogHistogramResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramResponse.js.map new file mode 100644 index 0000000..22fa350 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeAlertLogHistogramResponse.js","sourceRoot":"","sources":["../../src/models/DescribeAlertLogHistogramResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,mGAAgG;AAGhG,MAAa,iCAAkC,SAAQ,KAAK,CAAC,KAAK;IAIhE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,6EAAqC;SAC5C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,8EAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramResponseBody.d.ts new file mode 100644 index 0000000..5ea52be --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramResponseBody.d.ts @@ -0,0 +1,95 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeAlertLogHistogramResponseBodyAlertLogHistogramList extends $dara.Model { + /** + * @remarks + * The number of alert logs. + * + * @example + * 20 + */ + count?: number; + /** + * @remarks + * The start timestamp of the queried alert logs. + * + * Unit: seconds. + * + * @example + * 1610074791 + */ + from?: number; + /** + * @remarks + * The end timestamp of the queried alert logs. + * + * Unit: seconds. + * + * @example + * 1610074800 + */ + to?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeAlertLogHistogramResponseBody extends $dara.Model { + /** + * @remarks + * The number of alert logs that were generated during each interval of a time period. + */ + alertLogHistogramList?: DescribeAlertLogHistogramResponseBodyAlertLogHistogramList[]; + /** + * @remarks + * The response code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 1C4A3709-BF52-42EE-87B5-7435F0929585 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramResponseBody.js new file mode 100644 index 0000000..496a19a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramResponseBody.js @@ -0,0 +1,92 @@ +"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.DescribeAlertLogHistogramResponseBody = exports.DescribeAlertLogHistogramResponseBodyAlertLogHistogramList = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeAlertLogHistogramResponseBodyAlertLogHistogramList extends $dara.Model { + static names() { + return { + count: 'Count', + from: 'From', + to: 'To', + }; + } + static types() { + return { + count: 'number', + from: 'number', + to: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertLogHistogramResponseBodyAlertLogHistogramList = DescribeAlertLogHistogramResponseBodyAlertLogHistogramList; +class DescribeAlertLogHistogramResponseBody extends $dara.Model { + static names() { + return { + alertLogHistogramList: 'AlertLogHistogramList', + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + alertLogHistogramList: { 'type': 'array', 'itemType': DescribeAlertLogHistogramResponseBodyAlertLogHistogramList }, + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + if (Array.isArray(this.alertLogHistogramList)) { + $dara.Model.validateArray(this.alertLogHistogramList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertLogHistogramResponseBody = DescribeAlertLogHistogramResponseBody; +//# sourceMappingURL=DescribeAlertLogHistogramResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramResponseBody.js.map new file mode 100644 index 0000000..b249a2e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogHistogramResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeAlertLogHistogramResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeAlertLogHistogramResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0DAA2D,SAAQ,KAAK,CAAC,KAAK;IA6BzF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,MAAM;YACZ,EAAE,EAAE,IAAI;SACT,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,QAAQ;YACf,IAAI,EAAE,QAAQ;YACd,EAAE,EAAE,QAAQ;SACb,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApDD,gIAoDC;AAED,MAAa,qCAAsC,SAAQ,KAAK,CAAC,KAAK;IA2CpE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,qBAAqB,EAAE,uBAAuB;YAC9C,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,qBAAqB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,0DAA0D,EAAE;YAClH,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,CAAC,EAAE,CAAC;YAC7C,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;QACxD,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,sFAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListRequest.d.ts new file mode 100644 index 0000000..455832e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListRequest.d.ts @@ -0,0 +1,202 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeAlertLogListRequest extends $dara.Model { + /** + * @remarks + * The alert contact group. + * + * @example + * ECS_Group + */ + contactGroup?: string; + /** + * @remarks + * The end timestamp of the alert logs to be queried. + * + * Unit: milliseconds. + * + * You can query only the alert logs within the last year. If the query time is longer than one year, the return value of the `AlertLogList` parameter is empty. + * + * > The time period between the start time specified by `StartTime` and end time specified by `EndTime` must be less than or equal to 15 days. You must specify StartTime and EndTime at the same time, or leave StartTime and EndTime empty at the same time. If you do not specify this parameter, the alert logs within the last 15 minutes are queried by default. + * + * @example + * 1610074409694 + */ + endTime?: number; + /** + * @remarks + * The type of the alert event. Valid values: + * + * * TRIGGERED: The alert is triggered. + * * RESOLVED: The alert is resolved. + * + * @example + * TRIGGERED + */ + eventType?: string; + /** + * @remarks + * The dimensions based on which data is aggregated. This parameter is equivalent to the GROUP BY clause in SQL. Valid values: + * + * * `product`: aggregates data by cloud service. + * * `level`: aggregates data by alert level. + * * `groupId`: aggregates data by application group. + * * `contactGroup`: aggregates data by alert contact group. + * * `product,metricName`: aggregates data both by cloud service and by metric. + * + * @example + * product + */ + groupBy?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 7301**** + */ + groupId?: string; + /** + * @remarks + * The statistical period of alert logs. Unit: minutes. + * + * @example + * 360 + */ + lastMin?: string; + /** + * @remarks + * The severity level and notification methods of the alert. Valid values: + * + * * P4: Alert notifications are sent by using emails and DingTalk chatbots. + * * OK: No alert is generated. + * + * @example + * P4 + */ + level?: string; + /** + * @remarks + * The metric name. + * + * > For more information about the metrics of different cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * IntranetInRate + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * > For information about how to query the namespace of a cloud service, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The page number. + * + * Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * Default value: 10. + * + * @example + * 10 + */ + pageSize?: number; + /** + * @remarks + * The abbreviation of the service name. + * + * For information about how to obtain the abbreviation of a cloud service name, see [DescribeProductsOfActiveMetricRule](https://help.aliyun.com/document_detail/114930.html). + * + * @example + * ECS + */ + product?: string; + regionId?: string; + /** + * @remarks + * The ID of the alert rule. + * + * For information about how to obtain the ID of an alert rule, see [DescribeMetricRuleList](https://help.aliyun.com/document_detail/114941.html). + * + * @example + * bc369e8_30f87e517ed2fc**** + */ + ruleId?: string; + /** + * @remarks + * The name of the alert rule. + * + * @example + * test123 + */ + ruleName?: string; + /** + * @remarks + * The search keyword that is used to query alert logs. + * + * @example + * alert + */ + searchKey?: string; + /** + * @remarks + * The status of the alert. Valid values: + * + * * 0: The alert is triggered or cleared. + * * 1: The alert is ineffective. + * * 2: The alert is muted. + * * 3: The host is restarting. + * * 4: No alert notification is sent. + * + * If the value of the SendStatus parameter is 0, the value P4 of the Level parameter indicates a triggered alert and the value OK indicates a cleared alert. + * + * @example + * 0 + */ + sendStatus?: string; + /** + * @remarks + * The type of the alert rule. Valid value: METRIC. This value indicates an alert rule for time series metrics. + * + * @example + * METRIC + */ + sourceType?: string; + /** + * @remarks + * The start timestamp of the alert logs to be queried. + * + * Unit: milliseconds. + * + * You can query only the alert logs within the last year. If the query time is longer than one year, the return value of the `AlertLogList` parameter is empty. + * + * > The time period between the start time specified by `StartTime` and the end time specified by `EndTime` must be less than or equal to 15 days. You must specify StartTime and EndTime at the same time, or leave StartTime and EndTime empty at the same time. If you do not specify this parameter, the alert logs within the last 15 minutes are queried by default. + * + * @example + * 1609988009694 + */ + startTime?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListRequest.js new file mode 100644 index 0000000..83fb6b9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListRequest.js @@ -0,0 +1,94 @@ +"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.DescribeAlertLogListRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeAlertLogListRequest extends $dara.Model { + static names() { + return { + contactGroup: 'ContactGroup', + endTime: 'EndTime', + eventType: 'EventType', + groupBy: 'GroupBy', + groupId: 'GroupId', + lastMin: 'LastMin', + level: 'Level', + metricName: 'MetricName', + namespace: 'Namespace', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + product: 'Product', + regionId: 'RegionId', + ruleId: 'RuleId', + ruleName: 'RuleName', + searchKey: 'SearchKey', + sendStatus: 'SendStatus', + sourceType: 'SourceType', + startTime: 'StartTime', + }; + } + static types() { + return { + contactGroup: 'string', + endTime: 'number', + eventType: 'string', + groupBy: 'string', + groupId: 'string', + lastMin: 'string', + level: 'string', + metricName: 'string', + namespace: 'string', + pageNumber: 'number', + pageSize: 'number', + product: 'string', + regionId: 'string', + ruleId: 'string', + ruleName: 'string', + searchKey: 'string', + sendStatus: 'string', + sourceType: 'string', + startTime: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertLogListRequest = DescribeAlertLogListRequest; +//# sourceMappingURL=DescribeAlertLogListRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListRequest.js.map new file mode 100644 index 0000000..6fab63a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeAlertLogListRequest.js","sourceRoot":"","sources":["../../src/models/DescribeAlertLogListRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,2BAA4B,SAAQ,KAAK,CAAC,KAAK;IA8L1D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,cAAc;YAC5B,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,OAAO;YACd,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,UAAU;YACpB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;YACtB,UAAU,EAAE,YAAY;YACxB,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,QAAQ;YACtB,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,QAAQ;YACjB,KAAK,EAAE,QAAQ;YACf,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;YACnB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,OAAO,EAAE,QAAQ;YACjB,QAAQ,EAAE,QAAQ;YAClB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,QAAQ;YACnB,UAAU,EAAE,QAAQ;YACpB,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AArPD,kEAqPC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListResponse.d.ts new file mode 100644 index 0000000..c23e52e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeAlertLogListResponseBody } from "./DescribeAlertLogListResponseBody"; +export declare class DescribeAlertLogListResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeAlertLogListResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListResponse.js new file mode 100644 index 0000000..b64f24b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListResponse.js @@ -0,0 +1,69 @@ +"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.DescribeAlertLogListResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeAlertLogListResponseBody_1 = require("./DescribeAlertLogListResponseBody"); +class DescribeAlertLogListResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeAlertLogListResponseBody_1.DescribeAlertLogListResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertLogListResponse = DescribeAlertLogListResponse; +//# sourceMappingURL=DescribeAlertLogListResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListResponse.js.map new file mode 100644 index 0000000..a413399 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeAlertLogListResponse.js","sourceRoot":"","sources":["../../src/models/DescribeAlertLogListResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,yFAAsF;AAGtF,MAAa,4BAA6B,SAAQ,KAAK,CAAC,KAAK;IAI3D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,mEAAgC;SACvC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,oEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListResponseBody.d.ts new file mode 100644 index 0000000..fb030c6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListResponseBody.d.ts @@ -0,0 +1,565 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeAlertLogListResponseBodyAlertLogListDimensions extends $dara.Model { + /** + * @remarks + * The key of the dimension. + * + * @example + * instanceId + */ + key?: string; + /** + * @remarks + * The value of the dimension. + * + * @example + * i-m5e1qg6uo38rztr4**** + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeAlertLogListResponseBodyAlertLogListEscalation extends $dara.Model { + /** + * @remarks + * The description of the alert rule. + * + * > The content of the alert rule. This parameter indicates the conditions that trigger an alert. + * + * @example + * $Average<90 + */ + expression?: string; + /** + * @remarks + * The alert level and the methods that are used to send alert notifications. Valid values: + * + * * P4: Alert notifications are sent by using emails and DingTalk chatbots. + * * OK: No alert is generated. + * + * @example + * P4 + */ + level?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before an alert is triggered. + * + * @example + * 1 + */ + times?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeAlertLogListResponseBodyAlertLogListExtendedInfo extends $dara.Model { + /** + * @remarks + * The name of the extended field. + * + * @example + * userId + */ + name?: string; + /** + * @remarks + * The value of the extended field. + * + * @example + * 120886317861**** + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeAlertLogListResponseBodyAlertLogListSendDetailChannelResultListResultList extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * * If the value of the `Channel` parameter is `WEBHOOK`, the status code is 200 or 500. + * * If the value of the `Channel` parameter is `MAIL`, `SMS`, `SLS`, `ONCALL`, `FC`, or `MNS`, this parameter is empty or not returned. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The details of the returned results. + * + * @example + * { } + */ + detail?: string; + /** + * @remarks + * The request ID returned when CloudMonitor calls another cloud service. + * + * @example + * 0BDAF8A8-04DC-5F0C-90E4-724D42C4**** + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + notifyTargetList?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeAlertLogListResponseBodyAlertLogListSendDetailChannelResultList extends $dara.Model { + /** + * @remarks + * The method that is used to send alert notifications. Valid values: + * + * * MAIL: email + * * SMS: text message + * * WEBHOOK: alert callback + * * SLS: Simple Log Service + * * ONCALL: phone call + * * FC: Function Compute + * * MNS: Message Service queue + * + * @example + * MAIL + */ + channel?: string; + /** + * @remarks + * The sending results of alert notifications. + */ + resultList?: DescribeAlertLogListResponseBodyAlertLogListSendDetailChannelResultListResultList[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeAlertLogListResponseBodyAlertLogListSendDetail extends $dara.Model { + /** + * @remarks + * The list of sending results that are categorized by notification method. + */ + channelResultList?: DescribeAlertLogListResponseBodyAlertLogListSendDetailChannelResultList[]; + /** + * @remarks + * Indicates whether the alert notifications are sent. + * + * * If the alert notifications are sent, the value "success" is returned. + * * If the configuration is invalid, no alert notification is sent and an error code is returned. + * + * @example + * success + */ + resultCode?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeAlertLogListResponseBodyAlertLogListSendResultList extends $dara.Model { + /** + * @remarks + * The category of the alert notification method. Valid values: + * + * * MAIL: email + * * ALIIM: TradeManager + * * SMS: text message + * * CALL: phone call + * * DING: DingTalk chatbot + * * Merged: alert merging + * + * @example + * Mail + */ + key?: string; + /** + * @remarks + * The notification object corresponding to the alert notification method. + */ + value?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeAlertLogListResponseBodyAlertLogListWebhookList extends $dara.Model { + /** + * @remarks + * The status code of the alert callback. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The message returned for the alert callback. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The callback URL. + * + * @example + * https://www.aliyun.com/webhook.html + */ + url?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeAlertLogListResponseBodyAlertLogList extends $dara.Model { + /** + * @remarks + * The timestamp that was generated when the alert was triggered. + * + * Unit: milliseconds. + * + * @example + * 1610043776621 + */ + alertTime?: string; + /** + * @remarks + * The details of the blacklist policy. + * + * @example + * BlackListDetail + */ + blackListDetail?: string; + /** + * @remarks + * The name of the blacklist policy. + * + * @example + * {"id":123,"metricProject":"acs_ecs_dashboard","userId":1736511134389110,"uuid":"8410dbbd-7d30-41c5-94cb-***","name":"alert-***","productCategory":"ecs","instances":[{"instanceId":"host-***"}],"metrics":null,"scopeType":"USER","scopeValue":"","startTime":"0001-01-01T00:00:00Z","endTime":"9999-12-31T23:59:59.999999999+08:00","effectiveTime":null,"isEnable":true,"status":1,"gmtCreate":"2021-11-02T16:35:59+08:00","gmtModified":"2021-11-02T16:35:59+08:00","loadTime":"2021-11-02T16:36:15.213072177+08:00"} + */ + blackListName?: string; + /** + * @remarks + * The ID of the blacklist policy. + * + * @example + * 8410dbbd-7d30-41c5-94cb-***** + */ + blackListUUID?: string; + contactALIIWWList?: string[]; + contactDingList?: string[]; + contactGroups?: string[]; + contactMailList?: string[]; + contactOnCallList?: string[]; + contactSMSList?: string[]; + /** + * @remarks + * The dimensions of the resource that triggered alerts. + */ + dimensions?: DescribeAlertLogListResponseBodyAlertLogListDimensions[]; + dingdingWebhookList?: string[]; + /** + * @remarks + * The alert rule based on which the alert is triggered. + */ + escalation?: DescribeAlertLogListResponseBodyAlertLogListEscalation; + /** + * @remarks + * The event name. + * + * @example + * IOHang + */ + eventName?: string; + /** + * @remarks + * The extended fields. + */ + extendedInfo?: DescribeAlertLogListResponseBodyAlertLogListExtendedInfo[]; + /** + * @remarks + * The ID of the application group. + * + * @example + * 7301**** + */ + groupId?: string; + /** + * @remarks + * The name of the application group. + * + * @example + * ECS_Instances + */ + groupName?: string; + /** + * @remarks + * The resource ID. + * + * @example + * i-m5e1qg6uo38rztr4**** + */ + instanceId?: string; + /** + * @remarks + * The resource name. + * + * @example + * portalHost + */ + instanceName?: string; + /** + * @remarks + * The alert level and the methods that are used to send alert notifications. Valid values: + * + * * P4: Alert notifications are sent by using emails and DingTalk chatbots. + * * OK: No alert is generated. + * + * @example + * P4 + */ + level?: string; + /** + * @remarks + * Indicates whether the alert level was changed. Valid values: + * + * * `P4->OK`: The alert level was changed from P4 to OK. + * * `P4->P4`: The alert level was still P4. + * + * @example + * P4->OK + */ + levelChange?: string; + /** + * @remarks + * The log ID. + * + * @example + * 7818361[1523]@1671593992[1] + */ + logId?: string; + /** + * @remarks + * The alert information in a JSON string. + * + * @example + * {"alertName":"e47aa0ac-4076-44db-a47d-d1083968****_Availability"} + */ + message?: string; + /** + * @remarks + * The metric name. + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The identifier of the cloud service. Valid values: + * + * * If the cloud service is provided by Alibaba Cloud, the abbreviation of the service name is returned. Example: ECS. + * * If the cloud service is not provided by Alibaba Cloud, a value in the `acs_Service keyword` format is returned. Example: acs_networkmonitor. + * + * @example + * ECS + */ + product?: string; + /** + * @remarks + * The ID of the alert rule. + * + * @example + * d582b9e9-b1c1-4f17-9279-0fe7333a****_ResponseTime + */ + ruleId?: string; + /** + * @remarks + * The name of the alert rule. + */ + ruleName?: string; + /** + * @remarks + * The details about the sending results of alert notifications. + */ + sendDetail?: DescribeAlertLogListResponseBodyAlertLogListSendDetail; + /** + * @remarks + * The sending results of alert notifications. + */ + sendResultList?: DescribeAlertLogListResponseBodyAlertLogListSendResultList[]; + /** + * @remarks + * The status of the alert. Valid values: + * + * * 0: The alert is triggered or cleared. + * * 1: The alert is ineffective. + * * 2: The alert is muted. + * * 3: The host is restarting. + * * 4: No alert notification is sent. + * + * If the value of the SendStatus parameter is 0, the value P4 of the Level parameter indicates a triggered alert and the value OK indicates a cleared alert. + * + * @example + * 0 + */ + sendStatus?: string; + /** + * @remarks + * The callback URLs. + */ + webhookList?: DescribeAlertLogListResponseBodyAlertLogListWebhookList[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeAlertLogListResponseBody extends $dara.Model { + /** + * @remarks + * The queried alert logs. + */ + alertLogList?: DescribeAlertLogListResponseBodyAlertLogList[]; + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The page number. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * @example + * 10 + */ + pageSize?: number; + /** + * @remarks + * The request ID. + * + * @example + * 1C4A3709-BF52-42EE-87B5-7435F0929585 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListResponseBody.js new file mode 100644 index 0000000..c058b85 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListResponseBody.js @@ -0,0 +1,383 @@ +"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.DescribeAlertLogListResponseBody = exports.DescribeAlertLogListResponseBodyAlertLogList = exports.DescribeAlertLogListResponseBodyAlertLogListWebhookList = exports.DescribeAlertLogListResponseBodyAlertLogListSendResultList = exports.DescribeAlertLogListResponseBodyAlertLogListSendDetail = exports.DescribeAlertLogListResponseBodyAlertLogListSendDetailChannelResultList = exports.DescribeAlertLogListResponseBodyAlertLogListSendDetailChannelResultListResultList = exports.DescribeAlertLogListResponseBodyAlertLogListExtendedInfo = exports.DescribeAlertLogListResponseBodyAlertLogListEscalation = exports.DescribeAlertLogListResponseBodyAlertLogListDimensions = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeAlertLogListResponseBodyAlertLogListDimensions 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.DescribeAlertLogListResponseBodyAlertLogListDimensions = DescribeAlertLogListResponseBodyAlertLogListDimensions; +class DescribeAlertLogListResponseBodyAlertLogListEscalation extends $dara.Model { + static names() { + return { + expression: 'Expression', + level: 'Level', + times: 'Times', + }; + } + static types() { + return { + expression: 'string', + level: 'string', + times: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertLogListResponseBodyAlertLogListEscalation = DescribeAlertLogListResponseBodyAlertLogListEscalation; +class DescribeAlertLogListResponseBodyAlertLogListExtendedInfo extends $dara.Model { + static names() { + return { + name: 'Name', + value: 'Value', + }; + } + static types() { + return { + name: 'string', + value: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertLogListResponseBodyAlertLogListExtendedInfo = DescribeAlertLogListResponseBodyAlertLogListExtendedInfo; +class DescribeAlertLogListResponseBodyAlertLogListSendDetailChannelResultListResultList extends $dara.Model { + static names() { + return { + code: 'Code', + detail: 'Detail', + requestId: 'RequestId', + success: 'Success', + notifyTargetList: 'notifyTargetList', + }; + } + static types() { + return { + code: 'string', + detail: 'string', + requestId: 'string', + success: 'boolean', + notifyTargetList: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.notifyTargetList)) { + $dara.Model.validateArray(this.notifyTargetList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertLogListResponseBodyAlertLogListSendDetailChannelResultListResultList = DescribeAlertLogListResponseBodyAlertLogListSendDetailChannelResultListResultList; +class DescribeAlertLogListResponseBodyAlertLogListSendDetailChannelResultList extends $dara.Model { + static names() { + return { + channel: 'Channel', + resultList: 'ResultList', + }; + } + static types() { + return { + channel: 'string', + resultList: { 'type': 'array', 'itemType': DescribeAlertLogListResponseBodyAlertLogListSendDetailChannelResultListResultList }, + }; + } + validate() { + if (Array.isArray(this.resultList)) { + $dara.Model.validateArray(this.resultList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertLogListResponseBodyAlertLogListSendDetailChannelResultList = DescribeAlertLogListResponseBodyAlertLogListSendDetailChannelResultList; +class DescribeAlertLogListResponseBodyAlertLogListSendDetail extends $dara.Model { + static names() { + return { + channelResultList: 'ChannelResultList', + resultCode: 'ResultCode', + }; + } + static types() { + return { + channelResultList: { 'type': 'array', 'itemType': DescribeAlertLogListResponseBodyAlertLogListSendDetailChannelResultList }, + resultCode: 'string', + }; + } + validate() { + if (Array.isArray(this.channelResultList)) { + $dara.Model.validateArray(this.channelResultList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertLogListResponseBodyAlertLogListSendDetail = DescribeAlertLogListResponseBodyAlertLogListSendDetail; +class DescribeAlertLogListResponseBodyAlertLogListSendResultList extends $dara.Model { + static names() { + return { + key: 'Key', + value: 'Value', + }; + } + static types() { + return { + key: 'string', + value: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.value)) { + $dara.Model.validateArray(this.value); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertLogListResponseBodyAlertLogListSendResultList = DescribeAlertLogListResponseBodyAlertLogListSendResultList; +class DescribeAlertLogListResponseBodyAlertLogListWebhookList extends $dara.Model { + static names() { + return { + code: 'code', + message: 'message', + url: 'url', + }; + } + static types() { + return { + code: 'string', + message: 'string', + url: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertLogListResponseBodyAlertLogListWebhookList = DescribeAlertLogListResponseBodyAlertLogListWebhookList; +class DescribeAlertLogListResponseBodyAlertLogList extends $dara.Model { + static names() { + return { + alertTime: 'AlertTime', + blackListDetail: 'BlackListDetail', + blackListName: 'BlackListName', + blackListUUID: 'BlackListUUID', + contactALIIWWList: 'ContactALIIWWList', + contactDingList: 'ContactDingList', + contactGroups: 'ContactGroups', + contactMailList: 'ContactMailList', + contactOnCallList: 'ContactOnCallList', + contactSMSList: 'ContactSMSList', + dimensions: 'Dimensions', + dingdingWebhookList: 'DingdingWebhookList', + escalation: 'Escalation', + eventName: 'EventName', + extendedInfo: 'ExtendedInfo', + groupId: 'GroupId', + groupName: 'GroupName', + instanceId: 'InstanceId', + instanceName: 'InstanceName', + level: 'Level', + levelChange: 'LevelChange', + logId: 'LogId', + message: 'Message', + metricName: 'MetricName', + namespace: 'Namespace', + product: 'Product', + ruleId: 'RuleId', + ruleName: 'RuleName', + sendDetail: 'SendDetail', + sendResultList: 'SendResultList', + sendStatus: 'SendStatus', + webhookList: 'WebhookList', + }; + } + static types() { + return { + alertTime: 'string', + blackListDetail: 'string', + blackListName: 'string', + blackListUUID: 'string', + contactALIIWWList: { 'type': 'array', 'itemType': 'string' }, + contactDingList: { 'type': 'array', 'itemType': 'string' }, + contactGroups: { 'type': 'array', 'itemType': 'string' }, + contactMailList: { 'type': 'array', 'itemType': 'string' }, + contactOnCallList: { 'type': 'array', 'itemType': 'string' }, + contactSMSList: { 'type': 'array', 'itemType': 'string' }, + dimensions: { 'type': 'array', 'itemType': DescribeAlertLogListResponseBodyAlertLogListDimensions }, + dingdingWebhookList: { 'type': 'array', 'itemType': 'string' }, + escalation: DescribeAlertLogListResponseBodyAlertLogListEscalation, + eventName: 'string', + extendedInfo: { 'type': 'array', 'itemType': DescribeAlertLogListResponseBodyAlertLogListExtendedInfo }, + groupId: 'string', + groupName: 'string', + instanceId: 'string', + instanceName: 'string', + level: 'string', + levelChange: 'string', + logId: 'string', + message: 'string', + metricName: 'string', + namespace: 'string', + product: 'string', + ruleId: 'string', + ruleName: 'string', + sendDetail: DescribeAlertLogListResponseBodyAlertLogListSendDetail, + sendResultList: { 'type': 'array', 'itemType': DescribeAlertLogListResponseBodyAlertLogListSendResultList }, + sendStatus: 'string', + webhookList: { 'type': 'array', 'itemType': DescribeAlertLogListResponseBodyAlertLogListWebhookList }, + }; + } + validate() { + if (Array.isArray(this.contactALIIWWList)) { + $dara.Model.validateArray(this.contactALIIWWList); + } + if (Array.isArray(this.contactDingList)) { + $dara.Model.validateArray(this.contactDingList); + } + if (Array.isArray(this.contactGroups)) { + $dara.Model.validateArray(this.contactGroups); + } + if (Array.isArray(this.contactMailList)) { + $dara.Model.validateArray(this.contactMailList); + } + if (Array.isArray(this.contactOnCallList)) { + $dara.Model.validateArray(this.contactOnCallList); + } + if (Array.isArray(this.contactSMSList)) { + $dara.Model.validateArray(this.contactSMSList); + } + if (Array.isArray(this.dimensions)) { + $dara.Model.validateArray(this.dimensions); + } + if (Array.isArray(this.dingdingWebhookList)) { + $dara.Model.validateArray(this.dingdingWebhookList); + } + if (this.escalation && typeof this.escalation.validate === 'function') { + this.escalation.validate(); + } + if (Array.isArray(this.extendedInfo)) { + $dara.Model.validateArray(this.extendedInfo); + } + if (this.sendDetail && typeof this.sendDetail.validate === 'function') { + this.sendDetail.validate(); + } + if (Array.isArray(this.sendResultList)) { + $dara.Model.validateArray(this.sendResultList); + } + if (Array.isArray(this.webhookList)) { + $dara.Model.validateArray(this.webhookList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertLogListResponseBodyAlertLogList = DescribeAlertLogListResponseBodyAlertLogList; +class DescribeAlertLogListResponseBody extends $dara.Model { + static names() { + return { + alertLogList: 'AlertLogList', + code: 'Code', + message: 'Message', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + alertLogList: { 'type': 'array', 'itemType': DescribeAlertLogListResponseBodyAlertLogList }, + code: 'string', + message: 'string', + pageNumber: 'number', + pageSize: 'number', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + if (Array.isArray(this.alertLogList)) { + $dara.Model.validateArray(this.alertLogList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertLogListResponseBody = DescribeAlertLogListResponseBody; +//# sourceMappingURL=DescribeAlertLogListResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListResponseBody.js.map new file mode 100644 index 0000000..4eb674a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertLogListResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeAlertLogListResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeAlertLogListResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,sDAAuD,SAAQ,KAAK,CAAC,KAAK;IAiBrF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,GAAG,EAAE,KAAK;YACV,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,GAAG,EAAE,QAAQ;YACb,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GA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,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,4CAA4C,EAAE;YAC3F,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;YACpC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC/C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA7FD,4EA6FC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesRequest.d.ts new file mode 100644 index 0000000..71919ce --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesRequest.d.ts @@ -0,0 +1,76 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeAlertingMetricRuleResourcesRequest extends $dara.Model { + /** + * @remarks + * Queries the alerts that were triggered before the specified time. Timestamps in milliseconds are supported. + * + * @example + * 1698827400000 + */ + alertBeforeTime?: string; + /** + * @remarks + * The dimensions that specify the resources whose monitoring data you want to query. + * + * @example + * {\\"userId\\":\\"120886317861****\\",\\"region\\":\\"cn-huhehaote\\",\\"queue\\":\\"test-0128\\"} + */ + dimensions?: string; + /** + * @remarks + * The ID of the application group. For information about how to obtain the ID of an application group, see [DescribeMonitorGroups](https://help.aliyun.com/document_detail/115032.html). + * + * @example + * 7671**** + */ + groupId?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * For more information about the namespaces of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * acs_mns_new + */ + namespace?: string; + /** + * @remarks + * The page number. + * + * Default value: 1. + * + * @example + * 1 + */ + page?: number; + /** + * @remarks + * The number of entries per page. + * + * Default value: 10. + * + * @example + * 10 + */ + pageSize?: number; + regionId?: string; + /** + * @remarks + * The ID of the alert rule. For information about how to obtain the ID of an alert rule, see [DescribeMetricRuleList](https://help.aliyun.com/document_detail/114941.html). + * + * @example + * putNewAlarm_user_7e78d765-0e3e-4671-ba6d-7ce39108**** + */ + ruleId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesRequest.js new file mode 100644 index 0000000..b22f841 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesRequest.js @@ -0,0 +1,72 @@ +"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.DescribeAlertingMetricRuleResourcesRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeAlertingMetricRuleResourcesRequest extends $dara.Model { + static names() { + return { + alertBeforeTime: 'AlertBeforeTime', + dimensions: 'Dimensions', + groupId: 'GroupId', + namespace: 'Namespace', + page: 'Page', + pageSize: 'PageSize', + regionId: 'RegionId', + ruleId: 'RuleId', + }; + } + static types() { + return { + alertBeforeTime: 'string', + dimensions: 'string', + groupId: 'string', + namespace: 'string', + page: 'number', + pageSize: 'number', + regionId: 'string', + ruleId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertingMetricRuleResourcesRequest = DescribeAlertingMetricRuleResourcesRequest; +//# sourceMappingURL=DescribeAlertingMetricRuleResourcesRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesRequest.js.map new file mode 100644 index 0000000..19b83f0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeAlertingMetricRuleResourcesRequest.js","sourceRoot":"","sources":["../../src/models/DescribeAlertingMetricRuleResourcesRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0CAA2C,SAAQ,KAAK,CAAC,KAAK;IAgEzE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,eAAe,EAAE,iBAAiB;YAClC,UAAU,EAAE,YAAY;YACxB,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,eAAe,EAAE,QAAQ;YACzB,UAAU,EAAE,QAAQ;YACpB,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjGD,gGAiGC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesResponse.d.ts new file mode 100644 index 0000000..91110cd --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeAlertingMetricRuleResourcesResponseBody } from "./DescribeAlertingMetricRuleResourcesResponseBody"; +export declare class DescribeAlertingMetricRuleResourcesResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeAlertingMetricRuleResourcesResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesResponse.js new file mode 100644 index 0000000..efa3106 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesResponse.js @@ -0,0 +1,69 @@ +"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.DescribeAlertingMetricRuleResourcesResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeAlertingMetricRuleResourcesResponseBody_1 = require("./DescribeAlertingMetricRuleResourcesResponseBody"); +class DescribeAlertingMetricRuleResourcesResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeAlertingMetricRuleResourcesResponseBody_1.DescribeAlertingMetricRuleResourcesResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertingMetricRuleResourcesResponse = DescribeAlertingMetricRuleResourcesResponse; +//# sourceMappingURL=DescribeAlertingMetricRuleResourcesResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesResponse.js.map new file mode 100644 index 0000000..e92f653 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeAlertingMetricRuleResourcesResponse.js","sourceRoot":"","sources":["../../src/models/DescribeAlertingMetricRuleResourcesResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,uHAAoH;AAGpH,MAAa,2CAA4C,SAAQ,KAAK,CAAC,KAAK;IAI1E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,iGAA+C;SACtD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,kGAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesResponseBody.d.ts new file mode 100644 index 0000000..a3e915b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesResponseBody.d.ts @@ -0,0 +1,457 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResourceExpressionListExpressionList extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The metric name. + * + * @example + * cpu_total + */ + metricName?: 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. + * + * @example + * 60 + */ + period?: string; + /** + * @remarks + * The statistical method of the alert level. Valid values: + * + * * Maximum + * * Minimum + * * Average + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The alert threshold. + * + * @example + * 90 + */ + threshold?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResourceExpressionList extends $dara.Model { + expressionList?: DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResourceExpressionListExpressionList[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResource extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The description of the alert rule. + * + * > This parameter indicates the content of the alert rule. If the metric value meets the alert condition, an alert is triggered. + * + * @example + * $Average>=10 + */ + expression?: string; + /** + * @remarks + * The description of the multi-metric alert rule. + */ + expressionList?: DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResourceExpressionList; + /** + * @remarks + * The relationship between multiple metrics. Valid values: + * + * * &&: If all metrics meet the alert conditions, CloudMonitor sends alert notifications. + * * ||: If one of the metrics meets the alert conditions, CloudMonitor sends alert notifications. + * + * @example + * && + */ + expressionListJoin?: string; + /** + * @remarks + * The trigger conditions that are created by using expressions. You can use expressions to create trigger conditions in the following scenarios: + * + * * Set an alert blacklist for specific resources. For example, if you specify `$instanceId != \\"i-io8kfvcpp7x5****\\" ``&&`` $Average > 50`, no alert is triggered when the `average metric value` of the `i-io8kfvcpp7x5****` instance exceeds 50. + * * Set a special alert threshold for a specified instance in the rule. For example, if you specify `$Average > ($instanceId == \\"i-io8kfvcpp7x5****\\"? 80: 50)`, an alert is triggered when the `average metric value` of the `i-io8kfvcpp7x5****` instance exceeds 80 or the `average metric value` of other instances exceeds 50. + * * Limit the number of instances whose metric values exceed the threshold. For example, if you specify `count($Average > 20) > 3`, an alert is triggered only when the `average metric value` of more than three instances exceeds 20. + * + * @example + * $Average > ($instanceId == \\"i-io8kfvcpp7x5****\\"? 80: 50) + */ + expressionRaw?: string; + /** + * @remarks + * The severity level and notification methods of the alert. Valid values: + * + * * 4: Alert notifications are sent by using emails and DingTalk chatbots. + * * OK: No alert is generated. + * + * @example + * 3 + */ + level?: number; + /** + * @remarks + * The operator that is used to compare the metric value with the threshold. Valid values: + * + * * `>=` + * * `=` + * * `<=` + * * `>` + * * `<` + * * `!=` + * + * @example + * >= + */ + preCondition?: string; + /** + * @remarks + * This parameter is deprecated. + * + * @example + * mns + */ + tag?: string; + /** + * @remarks + * The alert threshold. + * + * @example + * 10 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before an alert is triggered. + * + * @example + * 1 + */ + times?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalation extends $dara.Model { + resource?: DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResource[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeAlertingMetricRuleResourcesResponseBodyResourcesResource extends $dara.Model { + /** + * @remarks + * The dimensions based on which the resources are queried. + * + * @example + * {\\"region\\":\\"cn-huhehaote\\",\\"queue\\":\\"test-0128\\",\\"userId\\":\\"120886317861****\\"} + */ + dimensions?: string; + /** + * @remarks + * Indicates whether the alert rule is enabled. Valid values: + * + * * true: The alert rule is enabled. + * * false: The alert rule is disabled. + * + * @example + * true + */ + enable?: string; + /** + * @remarks + * The alert rule based on which the alert is triggered. + */ + escalation?: DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalation; + /** + * @remarks + * The ID of the application group. + * + * > If the alert rule is associated with an application group, the ID of the application group is returned in this parameter. + * + * @example + * 7671**** + */ + groupId?: string; + /** + * @remarks + * The time when the last alert was triggered for the resource based on the alert rule. The value is a timestamp. + * + * Unit: milliseconds. + * + * @example + * 1622427900000 + */ + lastAlertTime?: string; + /** + * @remarks + * The time when the alert rule was last modified. The value is a timestamp. + * + * Unit: milliseconds. + * + * @example + * 1622827900000 + */ + lastModifyTime?: string; + /** + * @remarks + * The severity level and notification methods of the alert. Valid values: + * + * * 4: Alert notifications are sent by using emails and DingTalk chatbots. + * * OK: No alert is generated. + * + * @example + * 3 + */ + level?: number; + /** + * @remarks + * The metric name. + * + * @example + * ActiveMessages + */ + metricName?: string; + /** + * @remarks + * The metric value that triggered the alert based on the alert rule. The value is a JSON string. + * + * @example + * {\\"timestamp\\":1623727500000,\\"Sum\\":926,\\"value\\":463,\\"Maximum\\":463,\\"Minimum\\":463,\\"Average\\":463,\\"SampleCount\\":2,\\"userId\\":\\"120886317861****\\",\\"region\\":\\"cn-huhehaote\\",\\"queue\\":\\"test-0128\\"} + */ + metricValues?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * @example + * acs_mns_new + */ + namespace?: string; + /** + * @remarks + * The type of the cloud service. + * + * @example + * mns + */ + productCategory?: string; + /** + * @remarks + * The resources that are monitored. + * + * @example + * userId=120886317861****,region=cn-huhehaote,queue=test-0128 + */ + resource?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before an alert is triggered. + * + * @example + * 3 + */ + retryTimes?: string; + /** + * @remarks + * The ID of the alert rule. + * + * @example + * putNewAlarm_user_7e78d765-0e3e-4671-ba6d-7ce39108**** + */ + ruleId?: string; + /** + * @remarks + * The name of the alert rule. + * + * @example + * test123456789 + */ + ruleName?: string; + /** + * @remarks + * The time when the resource was associated with the alert rule. The value is a timestamp. + * + * Unit: milliseconds. + * + * @example + * 1622427900000 + */ + startTime?: string; + /** + * @remarks + * The method used to calculate the metric values that trigger alerts. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The alert threshold. + * + * @example + * 10 + */ + threshold?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeAlertingMetricRuleResourcesResponseBodyResources extends $dara.Model { + resource?: DescribeAlertingMetricRuleResourcesResponseBodyResourcesResource[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeAlertingMetricRuleResourcesResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The error message. + * + * @example + * The request processing has failed due to some unknown error. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 0724011B-D9E0-4B2F-8C51-F17A894CC42C + */ + requestId?: string; + /** + * @remarks + * The resources that are associated with the alert rule. + */ + resources?: DescribeAlertingMetricRuleResourcesResponseBodyResources; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The total number of entries returned. + * + * @example + * 2 + */ + total?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesResponseBody.js new file mode 100644 index 0000000..3bd8819 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesResponseBody.js @@ -0,0 +1,260 @@ +"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.DescribeAlertingMetricRuleResourcesResponseBody = exports.DescribeAlertingMetricRuleResourcesResponseBodyResources = exports.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResource = exports.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalation = exports.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResource = exports.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResourceExpressionList = exports.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResourceExpressionListExpressionList = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResourceExpressionListExpressionList extends $dara.Model { + static names() { + return { + comparisonOperator: 'ComparisonOperator', + metricName: 'MetricName', + period: 'Period', + statistics: 'Statistics', + threshold: 'Threshold', + }; + } + static types() { + return { + comparisonOperator: 'string', + metricName: 'string', + period: 'string', + statistics: 'string', + threshold: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResourceExpressionListExpressionList = DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResourceExpressionListExpressionList; +class DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResourceExpressionList extends $dara.Model { + static names() { + return { + expressionList: 'ExpressionList', + }; + } + static types() { + return { + expressionList: { 'type': 'array', 'itemType': DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResourceExpressionListExpressionList }, + }; + } + validate() { + if (Array.isArray(this.expressionList)) { + $dara.Model.validateArray(this.expressionList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResourceExpressionList = DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResourceExpressionList; +class DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResource extends $dara.Model { + static names() { + return { + comparisonOperator: 'ComparisonOperator', + expression: 'Expression', + expressionList: 'ExpressionList', + expressionListJoin: 'ExpressionListJoin', + expressionRaw: 'ExpressionRaw', + level: 'Level', + preCondition: 'PreCondition', + tag: 'Tag', + threshold: 'Threshold', + times: 'Times', + }; + } + static types() { + return { + comparisonOperator: 'string', + expression: 'string', + expressionList: DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResourceExpressionList, + expressionListJoin: 'string', + expressionRaw: 'string', + level: 'number', + preCondition: 'string', + tag: 'string', + threshold: 'string', + times: 'number', + }; + } + validate() { + if (this.expressionList && typeof this.expressionList.validate === 'function') { + this.expressionList.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResource = DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResource; +class DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalation extends $dara.Model { + static names() { + return { + resource: 'Resource', + }; + } + static types() { + return { + resource: { 'type': 'array', 'itemType': DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResource }, + }; + } + validate() { + if (Array.isArray(this.resource)) { + $dara.Model.validateArray(this.resource); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalation = DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalation; +class DescribeAlertingMetricRuleResourcesResponseBodyResourcesResource extends $dara.Model { + static names() { + return { + dimensions: 'Dimensions', + enable: 'Enable', + escalation: 'Escalation', + groupId: 'GroupId', + lastAlertTime: 'LastAlertTime', + lastModifyTime: 'LastModifyTime', + level: 'Level', + metricName: 'MetricName', + metricValues: 'MetricValues', + namespace: 'Namespace', + productCategory: 'ProductCategory', + resource: 'Resource', + retryTimes: 'RetryTimes', + ruleId: 'RuleId', + ruleName: 'RuleName', + startTime: 'StartTime', + statistics: 'Statistics', + threshold: 'Threshold', + }; + } + static types() { + return { + dimensions: 'string', + enable: 'string', + escalation: DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalation, + groupId: 'string', + lastAlertTime: 'string', + lastModifyTime: 'string', + level: 'number', + metricName: 'string', + metricValues: 'string', + namespace: 'string', + productCategory: 'string', + resource: 'string', + retryTimes: 'string', + ruleId: 'string', + ruleName: 'string', + startTime: 'string', + statistics: 'string', + threshold: 'string', + }; + } + validate() { + if (this.escalation && typeof this.escalation.validate === 'function') { + this.escalation.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResource = DescribeAlertingMetricRuleResourcesResponseBodyResourcesResource; +class DescribeAlertingMetricRuleResourcesResponseBodyResources extends $dara.Model { + static names() { + return { + resource: 'Resource', + }; + } + static types() { + return { + resource: { 'type': 'array', 'itemType': DescribeAlertingMetricRuleResourcesResponseBodyResourcesResource }, + }; + } + validate() { + if (Array.isArray(this.resource)) { + $dara.Model.validateArray(this.resource); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertingMetricRuleResourcesResponseBodyResources = DescribeAlertingMetricRuleResourcesResponseBodyResources; +class DescribeAlertingMetricRuleResourcesResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + resources: 'Resources', + success: 'Success', + total: 'Total', + }; + } + static types() { + return { + code: 'number', + message: 'string', + requestId: 'string', + resources: DescribeAlertingMetricRuleResourcesResponseBodyResources, + success: 'boolean', + total: 'number', + }; + } + validate() { + if (this.resources && typeof this.resources.validate === 'function') { + this.resources.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeAlertingMetricRuleResourcesResponseBody = DescribeAlertingMetricRuleResourcesResponseBody; +//# sourceMappingURL=DescribeAlertingMetricRuleResourcesResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesResponseBody.js.map new file mode 100644 index 0000000..184dbee --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeAlertingMetricRuleResourcesResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeAlertingMetricRuleResourcesResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeAlertingMetricRuleResourcesResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,8GAA+G,SAAQ,KAAK,CAAC,KAAK;IAyD7I,MAAM,CAAC,KAAK;QACV,OAAO;YACL,kBAAkB,EAAE,oBAAoB;YACxC,UAAU,EAAE,YAAY;YACxB,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,kBAAkB,EAAE,QAAQ;YAC5B,UAAU,EAAE,QAAQ;YACpB,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApFD,wOAoFC;AAED,MAAa,gGAAiG,SAAQ,KAAK,CAAC,KAAK;IAE/H,MAAM,CAAC,KAAK;QACV,OAAO;YACL,cAAc,EAAE,gBAAgB;SACjC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,cAAc,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,8GAA8G,EAAE;SAChK,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC;YACtC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,cAAc,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CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,SAAS,EAAE,wDAAwD;YACnE,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,SAAS,IAAI,OAAQ,IAAI,CAAC,SAAiB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YAC3E,IAAI,CAAC,SAAiB,CAAC,QAAQ,EAAE,CAAC;QACrC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnFD,0GAmFC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListRequest.d.ts new file mode 100644 index 0000000..238b08d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListRequest.d.ts @@ -0,0 +1,30 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeContactGroupListRequest extends $dara.Model { + /** + * @remarks + * Page number. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * Number of records per page. + * + * @example + * 10 + */ + pageSize?: number; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListRequest.js new file mode 100644 index 0000000..a70cbf9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListRequest.js @@ -0,0 +1,62 @@ +"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.DescribeContactGroupListRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeContactGroupListRequest extends $dara.Model { + static names() { + return { + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + }; + } + static types() { + return { + pageNumber: 'number', + pageSize: 'number', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeContactGroupListRequest = DescribeContactGroupListRequest; +//# sourceMappingURL=DescribeContactGroupListRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListRequest.js.map new file mode 100644 index 0000000..8fa0d20 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeContactGroupListRequest.js","sourceRoot":"","sources":["../../src/models/DescribeContactGroupListRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAkB9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzCD,0EAyCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListResponse.d.ts new file mode 100644 index 0000000..18c0d20 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeContactGroupListResponseBody } from "./DescribeContactGroupListResponseBody"; +export declare class DescribeContactGroupListResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeContactGroupListResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListResponse.js new file mode 100644 index 0000000..47c9d6b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListResponse.js @@ -0,0 +1,69 @@ +"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.DescribeContactGroupListResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeContactGroupListResponseBody_1 = require("./DescribeContactGroupListResponseBody"); +class DescribeContactGroupListResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeContactGroupListResponseBody_1.DescribeContactGroupListResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeContactGroupListResponse = DescribeContactGroupListResponse; +//# sourceMappingURL=DescribeContactGroupListResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListResponse.js.map new file mode 100644 index 0000000..606c1c8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeContactGroupListResponse.js","sourceRoot":"","sources":["../../src/models/DescribeContactGroupListResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,iGAA8F;AAG9F,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAI/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,2EAAoC;SAC3C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,4EAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListResponseBody.d.ts new file mode 100644 index 0000000..b5dd505 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListResponseBody.d.ts @@ -0,0 +1,175 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeContactGroupListResponseBodyContactGroupListContactGroupContacts extends $dara.Model { + contact?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeContactGroupListResponseBodyContactGroupListContactGroup extends $dara.Model { + /** + * @remarks + * List of contacts. + */ + contacts?: DescribeContactGroupListResponseBodyContactGroupListContactGroupContacts; + /** + * @remarks + * Creation time. + * + * @example + * 2023-06-07T03:52:30Z + */ + createTime?: number; + /** + * @remarks + * Description information of the alarm contact group. + * + * @example + * Devops-运维组 + */ + describe?: string; + /** + * @remarks + * Indicates whether the weekly report subscription function is enabled. Values: + * + * - true: Yes. + * + * - false: No. + * + * @example + * false + */ + enableSubscribed?: boolean; + /** + * @remarks + * Indicates whether the weekly report function is enabled. + * + * @example + * false + */ + enabledWeeklyReport?: boolean; + /** + * @remarks + * Name. + * + * @example + * name + */ + name?: string; + /** + * @remarks + * Update time. + * + * @example + * 2025-03-04T02:12:06Z + */ + updateTime?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeContactGroupListResponseBodyContactGroupList extends $dara.Model { + contactGroup?: DescribeContactGroupListResponseBodyContactGroupListContactGroup[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeContactGroupListResponseBodyContactGroups extends $dara.Model { + contactGroup?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeContactGroupListResponseBody extends $dara.Model { + /** + * @remarks + * Status code. Note that 200 indicates success. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * List of alarm contact groups. + */ + contactGroupList?: DescribeContactGroupListResponseBodyContactGroupList; + /** + * @remarks + * List of alarm contact groups. + */ + contactGroups?: DescribeContactGroupListResponseBodyContactGroups; + /** + * @remarks + * Return message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The ID of this call request, which is a unique identifier generated by Alibaba Cloud for the request and can be used for troubleshooting and problem localization. + * + * @example + * 916EE694-03C2-47B6-85EE-5054E3C168D3 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the operation was successful. Values: + * + * - true: Success. + * + * - false: Failure. + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * Total number of records. + * + * @example + * 22 + */ + total?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListResponseBody.js new file mode 100644 index 0000000..bc32c15 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListResponseBody.js @@ -0,0 +1,176 @@ +"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.DescribeContactGroupListResponseBody = exports.DescribeContactGroupListResponseBodyContactGroups = exports.DescribeContactGroupListResponseBodyContactGroupList = exports.DescribeContactGroupListResponseBodyContactGroupListContactGroup = exports.DescribeContactGroupListResponseBodyContactGroupListContactGroupContacts = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeContactGroupListResponseBodyContactGroupListContactGroupContacts extends $dara.Model { + static names() { + return { + contact: 'Contact', + }; + } + static types() { + return { + contact: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.contact)) { + $dara.Model.validateArray(this.contact); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeContactGroupListResponseBodyContactGroupListContactGroupContacts = DescribeContactGroupListResponseBodyContactGroupListContactGroupContacts; +class DescribeContactGroupListResponseBodyContactGroupListContactGroup extends $dara.Model { + static names() { + return { + contacts: 'Contacts', + createTime: 'CreateTime', + describe: 'Describe', + enableSubscribed: 'EnableSubscribed', + enabledWeeklyReport: 'EnabledWeeklyReport', + name: 'Name', + updateTime: 'UpdateTime', + }; + } + static types() { + return { + contacts: DescribeContactGroupListResponseBodyContactGroupListContactGroupContacts, + createTime: 'number', + describe: 'string', + enableSubscribed: 'boolean', + enabledWeeklyReport: 'boolean', + name: 'string', + updateTime: 'number', + }; + } + validate() { + if (this.contacts && typeof this.contacts.validate === 'function') { + this.contacts.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeContactGroupListResponseBodyContactGroupListContactGroup = DescribeContactGroupListResponseBodyContactGroupListContactGroup; +class DescribeContactGroupListResponseBodyContactGroupList extends $dara.Model { + static names() { + return { + contactGroup: 'ContactGroup', + }; + } + static types() { + return { + contactGroup: { 'type': 'array', 'itemType': DescribeContactGroupListResponseBodyContactGroupListContactGroup }, + }; + } + validate() { + if (Array.isArray(this.contactGroup)) { + $dara.Model.validateArray(this.contactGroup); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeContactGroupListResponseBodyContactGroupList = DescribeContactGroupListResponseBodyContactGroupList; +class DescribeContactGroupListResponseBodyContactGroups extends $dara.Model { + static names() { + return { + contactGroup: 'ContactGroup', + }; + } + static types() { + return { + contactGroup: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.contactGroup)) { + $dara.Model.validateArray(this.contactGroup); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeContactGroupListResponseBodyContactGroups = DescribeContactGroupListResponseBodyContactGroups; +class DescribeContactGroupListResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + contactGroupList: 'ContactGroupList', + contactGroups: 'ContactGroups', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + total: 'Total', + }; + } + static types() { + return { + code: 'string', + contactGroupList: DescribeContactGroupListResponseBodyContactGroupList, + contactGroups: DescribeContactGroupListResponseBodyContactGroups, + message: 'string', + requestId: 'string', + success: 'boolean', + total: 'number', + }; + } + validate() { + if (this.contactGroupList && typeof this.contactGroupList.validate === 'function') { + this.contactGroupList.validate(); + } + if (this.contactGroups && typeof this.contactGroups.validate === 'function') { + this.contactGroups.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeContactGroupListResponseBody = DescribeContactGroupListResponseBody; +//# sourceMappingURL=DescribeContactGroupListResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListResponseBody.js.map new file mode 100644 index 0000000..854df06 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactGroupListResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeContactGroupListResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeContactGroupListResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wEAAyE,SAAQ,KAAK,CAAC,KAAK;IAEvG,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;SACnD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;YAC/B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxBD,4JAwBC;AAED,MAAa,gEAAiE,SAAQ,KAAK,CAAC,KAAK;IA0D/F,MAAM,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AQ,IAAI,CAAC,gBAAwB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACzF,IAAI,CAAC,gBAAwB,CAAC,QAAQ,EAAE,CAAC;QAC5C,CAAC;QACD,IAAG,IAAI,CAAC,aAAa,IAAI,OAAQ,IAAI,CAAC,aAAqB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACnF,IAAI,CAAC,aAAqB,CAAC,QAAQ,EAAE,CAAC;QACzC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5FD,oFA4FC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupRequest.d.ts new file mode 100644 index 0000000..47f9c93 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupRequest.d.ts @@ -0,0 +1,24 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeContactListByContactGroupRequest extends $dara.Model { + /** + * @remarks + * The name of the alert contact group. + * + * This parameter is required. + * + * @example + * CloudMonitor + */ + contactGroupName?: string; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupRequest.js new file mode 100644 index 0000000..32e1175 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupRequest.js @@ -0,0 +1,60 @@ +"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.DescribeContactListByContactGroupRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeContactListByContactGroupRequest extends $dara.Model { + static names() { + return { + contactGroupName: 'ContactGroupName', + regionId: 'RegionId', + }; + } + static types() { + return { + contactGroupName: 'string', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeContactListByContactGroupRequest = DescribeContactListByContactGroupRequest; +//# sourceMappingURL=DescribeContactListByContactGroupRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupRequest.js.map new file mode 100644 index 0000000..d28e9a9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeContactListByContactGroupRequest.js","sourceRoot":"","sources":["../../src/models/DescribeContactListByContactGroupRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wCAAyC,SAAQ,KAAK,CAAC,KAAK;IAYvE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,gBAAgB,EAAE,kBAAkB;YACpC,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,gBAAgB,EAAE,QAAQ;YAC1B,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,4FAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupResponse.d.ts new file mode 100644 index 0000000..40c8428 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeContactListByContactGroupResponseBody } from "./DescribeContactListByContactGroupResponseBody"; +export declare class DescribeContactListByContactGroupResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeContactListByContactGroupResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupResponse.js new file mode 100644 index 0000000..16d0c18 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupResponse.js @@ -0,0 +1,69 @@ +"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.DescribeContactListByContactGroupResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeContactListByContactGroupResponseBody_1 = require("./DescribeContactListByContactGroupResponseBody"); +class DescribeContactListByContactGroupResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeContactListByContactGroupResponseBody_1.DescribeContactListByContactGroupResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeContactListByContactGroupResponse = DescribeContactListByContactGroupResponse; +//# sourceMappingURL=DescribeContactListByContactGroupResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupResponse.js.map new file mode 100644 index 0000000..735ef11 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeContactListByContactGroupResponse.js","sourceRoot":"","sources":["../../src/models/DescribeContactListByContactGroupResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,mHAAgH;AAGhH,MAAa,yCAA0C,SAAQ,KAAK,CAAC,KAAK;IAIxE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,6FAA6C;SACpD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,8FAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupResponseBody.d.ts new file mode 100644 index 0000000..f134019 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupResponseBody.d.ts @@ -0,0 +1,169 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeContactListByContactGroupResponseBodyContactsContactChannels extends $dara.Model { + /** + * @remarks + * The TradeManager ID of the alert contact. + * + * > This parameter can be returned only on the China site (aliyun.com). + * + * @example + * Alice + */ + aliIM?: string; + /** + * @remarks + * The webhook URL of the DingTalk chatbot. + * + * @example + * https://oapi.dingtalk.com/robot/send?access_token=9bf44f8189597d07dfdd7a123455ffc112**** + */ + dingWebHook?: string; + /** + * @remarks + * The email address of the alert contact. + * + * @example + * alice@example.com + */ + mail?: string; + /** + * @remarks + * The mobile number of the alert contact. + * + * > This parameter can be returned only on the China site (aliyun.com). + * + * @example + * 1333333**** + */ + SMS?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeContactListByContactGroupResponseBodyContactsContact extends $dara.Model { + /** + * @remarks + * The alert notification methods. + */ + channels?: DescribeContactListByContactGroupResponseBodyContactsContactChannels; + /** + * @remarks + * The time when the alert contact was created. + * + * Unit: milliseconds. + * + * @example + * 1552314252000 + */ + createTime?: number; + /** + * @remarks + * The description of the alert contact. + * + * @example + * ECS + */ + desc?: string; + /** + * @remarks + * The name of the alert contact. + * + * @example + * Alice + */ + name?: string; + /** + * @remarks + * The time when the alert contact was modified. + * + * Unit: milliseconds. + * + * @example + * 1552314252000 + */ + updateTime?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeContactListByContactGroupResponseBodyContacts extends $dara.Model { + contact?: DescribeContactListByContactGroupResponseBodyContactsContact[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeContactListByContactGroupResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The alert contacts that receive alert notifications. + */ + contacts?: DescribeContactListByContactGroupResponseBodyContacts; + /** + * @remarks + * The returned message. + * + * @example + * The group is not exists. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 06D5ECC2-B9BE-42A4-8FA3-1A610FB08B83 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupResponseBody.js new file mode 100644 index 0000000..9a8ac16 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupResponseBody.js @@ -0,0 +1,146 @@ +"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.DescribeContactListByContactGroupResponseBody = exports.DescribeContactListByContactGroupResponseBodyContacts = exports.DescribeContactListByContactGroupResponseBodyContactsContact = exports.DescribeContactListByContactGroupResponseBodyContactsContactChannels = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeContactListByContactGroupResponseBodyContactsContactChannels extends $dara.Model { + static names() { + return { + aliIM: 'AliIM', + dingWebHook: 'DingWebHook', + mail: 'Mail', + SMS: 'SMS', + }; + } + static types() { + return { + aliIM: 'string', + dingWebHook: 'string', + mail: 'string', + SMS: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeContactListByContactGroupResponseBodyContactsContactChannels = DescribeContactListByContactGroupResponseBodyContactsContactChannels; +class DescribeContactListByContactGroupResponseBodyContactsContact extends $dara.Model { + static names() { + return { + channels: 'Channels', + createTime: 'CreateTime', + desc: 'Desc', + name: 'Name', + updateTime: 'UpdateTime', + }; + } + static types() { + return { + channels: DescribeContactListByContactGroupResponseBodyContactsContactChannels, + createTime: 'number', + desc: 'string', + name: 'string', + updateTime: 'number', + }; + } + validate() { + if (this.channels && typeof this.channels.validate === 'function') { + this.channels.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeContactListByContactGroupResponseBodyContactsContact = DescribeContactListByContactGroupResponseBodyContactsContact; +class DescribeContactListByContactGroupResponseBodyContacts extends $dara.Model { + static names() { + return { + contact: 'Contact', + }; + } + static types() { + return { + contact: { 'type': 'array', 'itemType': DescribeContactListByContactGroupResponseBodyContactsContact }, + }; + } + validate() { + if (Array.isArray(this.contact)) { + $dara.Model.validateArray(this.contact); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeContactListByContactGroupResponseBodyContacts = DescribeContactListByContactGroupResponseBodyContacts; +class DescribeContactListByContactGroupResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + contacts: 'Contacts', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + contacts: DescribeContactListByContactGroupResponseBodyContacts, + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + if (this.contacts && typeof this.contacts.validate === 'function') { + this.contacts.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeContactListByContactGroupResponseBody = DescribeContactListByContactGroupResponseBody; +//# sourceMappingURL=DescribeContactListByContactGroupResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupResponseBody.js.map new file mode 100644 index 0000000..516e867 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListByContactGroupResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeContactListByContactGroupResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeContactListByContactGroupResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oEAAqE,SAAQ,KAAK,CAAC,KAAK;IAqCnG,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,aAAa;YAC1B,IAAI,EAAE,MAAM;YACZ,GAAG,EAAE,KAAK;SACX,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;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G,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;YAC/B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxBD,sHAwBC;AAED,MAAa,6CAA8C,SAAQ,KAAK,CAAC,KAAK;IA2C5E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,UAAU;YACpB,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,qDAAqD;YAC/D,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,QAAQ,IAAI,OAAQ,IAAI,CAAC,QAAgB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACzE,IAAI,CAAC,QAAgB,CAAC,QAAQ,EAAE,CAAC;QACpC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,sGAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListRequest.d.ts new file mode 100644 index 0000000..c39f5b8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListRequest.d.ts @@ -0,0 +1,63 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeContactListRequest extends $dara.Model { + /** + * @remarks + * The alert notification method. Valid values: + * + * * Mail: emails + * * DingWebHook: DingTalk chatbots + * + * @example + * Mail + */ + chanelType?: string; + /** + * @remarks + * The value specified for the alert notification method. + * + * > This parameter is required only if you set the `ChanelType` parameter to `Mail`. + * + * @example + * Alice@example.com + */ + chanelValue?: string; + /** + * @remarks + * The name of the alert contact. + * + * @example + * Alice + */ + contactName?: string; + /** + * @remarks + * The page number. + * + * Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * Default value: 100. + * + * @example + * 10 + */ + pageSize?: number; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListRequest.js new file mode 100644 index 0000000..daa9b45 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListRequest.js @@ -0,0 +1,68 @@ +"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.DescribeContactListRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeContactListRequest extends $dara.Model { + static names() { + return { + chanelType: 'ChanelType', + chanelValue: 'ChanelValue', + contactName: 'ContactName', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + }; + } + static types() { + return { + chanelType: 'string', + chanelValue: 'string', + contactName: 'string', + pageNumber: 'number', + pageSize: 'number', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeContactListRequest = DescribeContactListRequest; +//# sourceMappingURL=DescribeContactListRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListRequest.js.map new file mode 100644 index 0000000..63a5d48 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeContactListRequest.js","sourceRoot":"","sources":["../../src/models/DescribeContactListRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IAmDzD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,aAAa;YAC1B,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,QAAQ;YACrB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAhFD,gEAgFC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListResponse.d.ts new file mode 100644 index 0000000..5068709 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeContactListResponseBody } from "./DescribeContactListResponseBody"; +export declare class DescribeContactListResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeContactListResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListResponse.js new file mode 100644 index 0000000..2ba1902 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListResponse.js @@ -0,0 +1,69 @@ +"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.DescribeContactListResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeContactListResponseBody_1 = require("./DescribeContactListResponseBody"); +class DescribeContactListResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeContactListResponseBody_1.DescribeContactListResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeContactListResponse = DescribeContactListResponse; +//# sourceMappingURL=DescribeContactListResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListResponse.js.map new file mode 100644 index 0000000..9215dd9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeContactListResponse.js","sourceRoot":"","sources":["../../src/models/DescribeContactListResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,uFAAoF;AAGpF,MAAa,2BAA4B,SAAQ,KAAK,CAAC,KAAK;IAI1D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,iEAA+B;SACtC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,kEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListResponseBody.d.ts new file mode 100644 index 0000000..6401ad2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListResponseBody.d.ts @@ -0,0 +1,264 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeContactListResponseBodyContactsContactChannels extends $dara.Model { + /** + * @remarks + * The TradeManager ID of the alert contact. + * + * @example + * Alice + */ + aliIM?: string; + /** + * @remarks + * The webhook URL of the DingTalk chatbot. + * + * @example + * https://oapi.dingtalk.com/robot/send?access_token=9bf44f8189597d07dfdd7a123455ffc112**** + */ + dingWebHook?: string; + /** + * @remarks + * The email address of the alert contact. + * + * @example + * Alice@example.com + */ + mail?: string; + /** + * @remarks + * The phone number of the alert contac. + * + * @example + * 1333333**** + */ + SMS?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeContactListResponseBodyContactsContactChannelsState extends $dara.Model { + /** + * @remarks + * The status of the TradeManager ID. + * + * Valid value: OK. The value OK indicates that the TradeManager ID is valid and can receive alert notifications. + * + * > This parameter applies only to the Alibaba Cloud China site (aliyun.com). + * + * @example + * OK + */ + aliIM?: string; + /** + * @remarks + * The status of the DingTalk chatbot. + * + * Valid value: OK. The value OK indicates that the DingTalk chatbot is normal and alert notifications can be received in a DingTalk group. + * + * @example + * OK + */ + dingWebHook?: string; + /** + * @remarks + * The status of the email address. Valid values: + * + * * PENDING: The phone number is not activated. Alert notifications can be sent to the phone number by using text messages only after the phone number is activated. + * * OK: The phone number is activated and can receive alert notifications. + * + * @example + * PENDING + */ + mail?: string; + /** + * @remarks + * The status of the phone number. Valid values: + * + * * PENDING: The phone number is not activated. Alert notifications can be sent to the phone number by using text messages only after the phone number is activated. + * * OK: The phone number is activated and can receive alert notifications. + * + * > This parameter applies only to the Alibaba Cloud China site (aliyun.com). + * + * @example + * OK + */ + SMS?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeContactListResponseBodyContactsContactContactGroups extends $dara.Model { + contactGroup?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeContactListResponseBodyContactsContact extends $dara.Model { + /** + * @remarks + * The alert notification method. + */ + channels?: DescribeContactListResponseBodyContactsContactChannels; + /** + * @remarks + * The status of the alert notification method. Valid values: PENDING and OK. + * + * The email address must be activated after it is added as the value specified for the alert notification method. The value PENDING indicates that the email address is not activated. The value OK indicates that the email address is activated. + */ + channelsState?: DescribeContactListResponseBodyContactsContactChannelsState; + /** + * @remarks + * None. + */ + contactGroups?: DescribeContactListResponseBodyContactsContactContactGroups; + /** + * @remarks + * The timestamp when the alert contact was created. + * + * Unit: milliseconds. + * + * @example + * 1552356159000 + */ + createTime?: number; + /** + * @remarks + * The description. + */ + desc?: string; + /** + * @remarks + * The language in which the alert information is displayed. Valid values: + * + * * zh-cn: simplified Chinese + * * en: English + * + * @example + * zh-cn + */ + lang?: string; + /** + * @remarks + * The name of the alert contact. + * + * @example + * Alice + */ + name?: string; + /** + * @remarks + * The timestamp when the alert contact was updated. + * + * Unit: milliseconds. + * + * @example + * 1552356159000 + */ + updateTime?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeContactListResponseBodyContacts extends $dara.Model { + contact?: DescribeContactListResponseBodyContactsContact[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeContactListResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The alert contacts. + */ + contacts?: DescribeContactListResponseBodyContacts; + /** + * @remarks + * The error message returned. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 06D5ECC2-B9BE-42A4-8FA3-1A610FB08B83 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true: The request was successful. + * * false: The request failed. + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The total number of entries returned. + * + * @example + * 15 + */ + total?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListResponseBody.js new file mode 100644 index 0000000..6c23d3c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListResponseBody.js @@ -0,0 +1,207 @@ +"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.DescribeContactListResponseBody = exports.DescribeContactListResponseBodyContacts = exports.DescribeContactListResponseBodyContactsContact = exports.DescribeContactListResponseBodyContactsContactContactGroups = exports.DescribeContactListResponseBodyContactsContactChannelsState = exports.DescribeContactListResponseBodyContactsContactChannels = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeContactListResponseBodyContactsContactChannels extends $dara.Model { + static names() { + return { + aliIM: 'AliIM', + dingWebHook: 'DingWebHook', + mail: 'Mail', + SMS: 'SMS', + }; + } + static types() { + return { + aliIM: 'string', + dingWebHook: 'string', + mail: 'string', + SMS: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeContactListResponseBodyContactsContactChannels = DescribeContactListResponseBodyContactsContactChannels; +class DescribeContactListResponseBodyContactsContactChannelsState extends $dara.Model { + static names() { + return { + aliIM: 'AliIM', + dingWebHook: 'DingWebHook', + mail: 'Mail', + SMS: 'SMS', + }; + } + static types() { + return { + aliIM: 'string', + dingWebHook: 'string', + mail: 'string', + SMS: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeContactListResponseBodyContactsContactChannelsState = DescribeContactListResponseBodyContactsContactChannelsState; +class DescribeContactListResponseBodyContactsContactContactGroups extends $dara.Model { + static names() { + return { + contactGroup: 'ContactGroup', + }; + } + static types() { + return { + contactGroup: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.contactGroup)) { + $dara.Model.validateArray(this.contactGroup); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeContactListResponseBodyContactsContactContactGroups = DescribeContactListResponseBodyContactsContactContactGroups; +class DescribeContactListResponseBodyContactsContact extends $dara.Model { + static names() { + return { + channels: 'Channels', + channelsState: 'ChannelsState', + contactGroups: 'ContactGroups', + createTime: 'CreateTime', + desc: 'Desc', + lang: 'Lang', + name: 'Name', + updateTime: 'UpdateTime', + }; + } + static types() { + return { + channels: DescribeContactListResponseBodyContactsContactChannels, + channelsState: DescribeContactListResponseBodyContactsContactChannelsState, + contactGroups: DescribeContactListResponseBodyContactsContactContactGroups, + createTime: 'number', + desc: 'string', + lang: 'string', + name: 'string', + updateTime: 'number', + }; + } + validate() { + if (this.channels && typeof this.channels.validate === 'function') { + this.channels.validate(); + } + if (this.channelsState && typeof this.channelsState.validate === 'function') { + this.channelsState.validate(); + } + if (this.contactGroups && typeof this.contactGroups.validate === 'function') { + this.contactGroups.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeContactListResponseBodyContactsContact = DescribeContactListResponseBodyContactsContact; +class DescribeContactListResponseBodyContacts extends $dara.Model { + static names() { + return { + contact: 'Contact', + }; + } + static types() { + return { + contact: { 'type': 'array', 'itemType': DescribeContactListResponseBodyContactsContact }, + }; + } + validate() { + if (Array.isArray(this.contact)) { + $dara.Model.validateArray(this.contact); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeContactListResponseBodyContacts = DescribeContactListResponseBodyContacts; +class DescribeContactListResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + contacts: 'Contacts', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + total: 'Total', + }; + } + static types() { + return { + code: 'string', + contacts: DescribeContactListResponseBodyContacts, + message: 'string', + requestId: 'string', + success: 'boolean', + total: 'number', + }; + } + validate() { + if (this.contacts && typeof this.contacts.validate === 'function') { + this.contacts.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeContactListResponseBody = DescribeContactListResponseBody; +//# sourceMappingURL=DescribeContactListResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListResponseBody.js.map new file mode 100644 index 0000000..0b79a4b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeContactListResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeContactListResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeContactListResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,sDAAuD,SAAQ,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AClB,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,QAAQ,IAAI,OAAQ,IAAI,CAAC,QAAgB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACzE,IAAI,CAAC,QAAgB,CAAC,QAAQ,EAAE,CAAC;QACpC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnFD,0EAmFC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeRequest.d.ts new file mode 100644 index 0000000..b6f2a4f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeRequest.d.ts @@ -0,0 +1,85 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeCustomEventAttributeRequest extends $dara.Model { + /** + * @remarks + * The end of the time range to query. + * + * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * @example + * 1552227965971 + */ + endTime?: string; + /** + * @remarks + * The event ID. + * + * @example + * 123**** + */ + eventId?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 123**** + */ + groupId?: string; + /** + * @remarks + * The event name. + * + * @example + * test123 + */ + name?: string; + /** + * @remarks + * The page number. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * @example + * 50 + */ + pageSize?: number; + regionId?: string; + /** + * @remarks + * The keywords that are used to search for the event. + * + * * If you need to query the custom event whose content contains a and b, set the value to a and b. + * * If you need to query the custom event whose content contains a or b, set the value to a or b. + * + * @example + * cms + */ + searchKeywords?: string; + /** + * @remarks + * The beginning of the time range to query. + * + * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * @example + * 1552224365971 + */ + startTime?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeRequest.js new file mode 100644 index 0000000..497e552 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeRequest.js @@ -0,0 +1,74 @@ +"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.DescribeCustomEventAttributeRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeCustomEventAttributeRequest extends $dara.Model { + static names() { + return { + endTime: 'EndTime', + eventId: 'EventId', + groupId: 'GroupId', + name: 'Name', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + searchKeywords: 'SearchKeywords', + startTime: 'StartTime', + }; + } + static types() { + return { + endTime: 'string', + eventId: 'string', + groupId: 'string', + name: 'string', + pageNumber: 'number', + pageSize: 'number', + regionId: 'string', + searchKeywords: 'string', + startTime: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeCustomEventAttributeRequest = DescribeCustomEventAttributeRequest; +//# sourceMappingURL=DescribeCustomEventAttributeRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeRequest.js.map new file mode 100644 index 0000000..d366c1d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeCustomEventAttributeRequest.js","sourceRoot":"","sources":["../../src/models/DescribeCustomEventAttributeRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IAyElE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;YAClB,IAAI,EAAE,MAAM;YACZ,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,cAAc,EAAE,gBAAgB;YAChC,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,QAAQ;YACjB,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,cAAc,EAAE,QAAQ;YACxB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5GD,kFA4GC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeResponse.d.ts new file mode 100644 index 0000000..34efb2c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeCustomEventAttributeResponseBody } from "./DescribeCustomEventAttributeResponseBody"; +export declare class DescribeCustomEventAttributeResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeCustomEventAttributeResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeResponse.js new file mode 100644 index 0000000..1b92064 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeResponse.js @@ -0,0 +1,69 @@ +"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.DescribeCustomEventAttributeResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeCustomEventAttributeResponseBody_1 = require("./DescribeCustomEventAttributeResponseBody"); +class DescribeCustomEventAttributeResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeCustomEventAttributeResponseBody_1.DescribeCustomEventAttributeResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeCustomEventAttributeResponse = DescribeCustomEventAttributeResponse; +//# sourceMappingURL=DescribeCustomEventAttributeResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeResponse.js.map new file mode 100644 index 0000000..b59bd22 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeCustomEventAttributeResponse.js","sourceRoot":"","sources":["../../src/models/DescribeCustomEventAttributeResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,yGAAsG;AAGtG,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IAInE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,mFAAwC;SAC/C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,oFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeResponseBody.d.ts new file mode 100644 index 0000000..ef16e06 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeResponseBody.d.ts @@ -0,0 +1,122 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeCustomEventAttributeResponseBodyCustomEventsCustomEvent extends $dara.Model { + /** + * @remarks + * The content of the event. + * + * @example + * requestId:4975A6F3-19AC-4C01-BAD2-034DA07FEBB5, info:{"autoPay":false,"autoUseCoupon":false,"bid":"26842","buyerId":118935342242****,"commodities":[{"aliyunProduceCode":"cms","chargeType":"PREPAY","commodityCode":"cms_call_num","components":[{"componentCode":"phone_count","instanceProperty":[{"code":"phone_count","value":"500"}],"moduleAttrStatus":1}],"duration":6,"free":false,"orderParams":{"aliyunProduceCode":"cms"},"orderType":"BUY","prePayPostCharge":false,"pricingCycle":"Month","quantity":1,"refundSpecCode":"","renewChange":false,"specCode":"cms_call_num","specUpdate":false,"syncToSubscription":false,"upgradeInquireFinancialValue":true}],"fromApp":"commonbuy","orderParams":{"priceCheck":"true"},"payerId":118935342242****,"requestId":"ade3ad32-f58b-45d7-add4-ac542be3d8ec","skipChannel":false,"userId":118935342242****} + */ + content?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 12345 + */ + groupId?: string; + /** + * @remarks + * The event ID. + * + * @example + * 123 + */ + id?: string; + /** + * @remarks + * The event name. + * + * @example + * BABEL_CHECK + */ + name?: string; + /** + * @remarks + * The time when the event occurred. + * + * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * @example + * 1552199984000 + */ + time?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeCustomEventAttributeResponseBodyCustomEvents extends $dara.Model { + customEvent?: DescribeCustomEventAttributeResponseBodyCustomEventsCustomEvent[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeCustomEventAttributeResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The event details. + */ + customEvents?: DescribeCustomEventAttributeResponseBodyCustomEvents; + /** + * @remarks + * The returned message. + * + * @example + * userId:173651113438**** and name:"BABEL_CHECK" + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 60912C8D-B340-4253-ADE7-61ACDFD25CFC + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeResponseBody.js new file mode 100644 index 0000000..a9b18bf --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeResponseBody.js @@ -0,0 +1,118 @@ +"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.DescribeCustomEventAttributeResponseBody = exports.DescribeCustomEventAttributeResponseBodyCustomEvents = exports.DescribeCustomEventAttributeResponseBodyCustomEventsCustomEvent = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeCustomEventAttributeResponseBodyCustomEventsCustomEvent extends $dara.Model { + static names() { + return { + content: 'Content', + groupId: 'GroupId', + id: 'Id', + name: 'Name', + time: 'Time', + }; + } + static types() { + return { + content: 'string', + groupId: 'string', + id: 'string', + name: 'string', + time: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeCustomEventAttributeResponseBodyCustomEventsCustomEvent = DescribeCustomEventAttributeResponseBodyCustomEventsCustomEvent; +class DescribeCustomEventAttributeResponseBodyCustomEvents extends $dara.Model { + static names() { + return { + customEvent: 'CustomEvent', + }; + } + static types() { + return { + customEvent: { 'type': 'array', 'itemType': DescribeCustomEventAttributeResponseBodyCustomEventsCustomEvent }, + }; + } + validate() { + if (Array.isArray(this.customEvent)) { + $dara.Model.validateArray(this.customEvent); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeCustomEventAttributeResponseBodyCustomEvents = DescribeCustomEventAttributeResponseBodyCustomEvents; +class DescribeCustomEventAttributeResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + customEvents: 'CustomEvents', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + customEvents: DescribeCustomEventAttributeResponseBodyCustomEvents, + message: 'string', + requestId: 'string', + success: 'string', + }; + } + validate() { + if (this.customEvents && typeof this.customEvents.validate === 'function') { + this.customEvents.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeCustomEventAttributeResponseBody = DescribeCustomEventAttributeResponseBody; +//# sourceMappingURL=DescribeCustomEventAttributeResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeResponseBody.js.map new file mode 100644 index 0000000..5058c59 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventAttributeResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeCustomEventAttributeResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeCustomEventAttributeResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,+DAAgE,SAAQ,KAAK,CAAC,KAAK;IA2C9F,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;YAClB,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,QAAQ;YACjB,EAAE,EAAE,QAAQ;YACZ,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,QAAQ;SACf,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtED,0IAsEC;AAED,MAAa,oDAAqD,SAAQ,KAAK,CAAC,KAAK;IAEnF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;SAC3B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,+DAA+D,EAAE;SAC9G,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;YACnC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC9C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxBD,oHAwBC;AAED,MAAa,wCAAyC,SAAQ,KAAK,CAAC,KAAK;IA2CvE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,YAAY,EAAE,cAAc;YAC5B,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,YAAY,EAAE,oDAAoD;YAClE,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,YAAY,IAAI,OAAQ,IAAI,CAAC,YAAoB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjF,IAAI,CAAC,YAAoB,CAAC,QAAQ,EAAE,CAAC;QACxC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,4FAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountRequest.d.ts new file mode 100644 index 0000000..6652835 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountRequest.d.ts @@ -0,0 +1,69 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeCustomEventCountRequest extends $dara.Model { + /** + * @remarks + * The end of the time range to query. + * + * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * @example + * 1552220485596 + */ + endTime?: string; + /** + * @remarks + * The event ID. + * + * @example + * 123 + */ + eventId?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 12345 + */ + groupId?: string; + /** + * @remarks + * The event name. + * + * @example + * BABEL_BUY + */ + name?: string; + regionId?: string; + /** + * @remarks + * The keywords that are used to search for the event. + * + * * If you need to query the custom event whose content contains a and b, set the value to a and b. + * * If you need to query the custom event whose content contains a or b, set the value to a or b. + * + * @example + * cms + */ + searchKeywords?: string; + /** + * @remarks + * The beginning of the time range to query. + * + * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * @example + * 1552209685596 + */ + startTime?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountRequest.js new file mode 100644 index 0000000..cd3a265 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountRequest.js @@ -0,0 +1,70 @@ +"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.DescribeCustomEventCountRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeCustomEventCountRequest extends $dara.Model { + static names() { + return { + endTime: 'EndTime', + eventId: 'EventId', + groupId: 'GroupId', + name: 'Name', + regionId: 'RegionId', + searchKeywords: 'SearchKeywords', + startTime: 'StartTime', + }; + } + static types() { + return { + endTime: 'string', + eventId: 'string', + groupId: 'string', + name: 'string', + regionId: 'string', + searchKeywords: 'string', + startTime: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeCustomEventCountRequest = DescribeCustomEventCountRequest; +//# sourceMappingURL=DescribeCustomEventCountRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountRequest.js.map new file mode 100644 index 0000000..3993860 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeCustomEventCountRequest.js","sourceRoot":"","sources":["../../src/models/DescribeCustomEventCountRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAyD9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;YAClB,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,UAAU;YACpB,cAAc,EAAE,gBAAgB;YAChC,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,QAAQ;YACjB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,QAAQ;YAClB,cAAc,EAAE,QAAQ;YACxB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxFD,0EAwFC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountResponse.d.ts new file mode 100644 index 0000000..27a4af8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeCustomEventCountResponseBody } from "./DescribeCustomEventCountResponseBody"; +export declare class DescribeCustomEventCountResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeCustomEventCountResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountResponse.js new file mode 100644 index 0000000..8befa59 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountResponse.js @@ -0,0 +1,69 @@ +"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.DescribeCustomEventCountResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeCustomEventCountResponseBody_1 = require("./DescribeCustomEventCountResponseBody"); +class DescribeCustomEventCountResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeCustomEventCountResponseBody_1.DescribeCustomEventCountResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeCustomEventCountResponse = DescribeCustomEventCountResponse; +//# sourceMappingURL=DescribeCustomEventCountResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountResponse.js.map new file mode 100644 index 0000000..61117e1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeCustomEventCountResponse.js","sourceRoot":"","sources":["../../src/models/DescribeCustomEventCountResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,iGAA8F;AAG9F,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAI/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,2EAAoC;SAC3C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,4EAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountResponseBody.d.ts new file mode 100644 index 0000000..1b65702 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountResponseBody.d.ts @@ -0,0 +1,103 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeCustomEventCountResponseBodyCustomEventCountsCustomEventCount extends $dara.Model { + /** + * @remarks + * The event name. + * + * @example + * BABEL_BUY + */ + name?: string; + /** + * @remarks + * The number of times that the custom event occurred. + * + * @example + * 20 + */ + num?: number; + /** + * @remarks + * The time when the event occurred. + * + * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * @example + * 1552267615000 + */ + time?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeCustomEventCountResponseBodyCustomEventCounts extends $dara.Model { + customEventCount?: DescribeCustomEventCountResponseBodyCustomEventCountsCustomEventCount[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeCustomEventCountResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The details of the custom event. + */ + customEventCounts?: DescribeCustomEventCountResponseBodyCustomEventCounts; + /** + * @remarks + * The returned message. If the request was successful, a success message is returned. If the request failed, an error message is returned. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 60912C8D-B340-4253-ADE7-61ACDFD25CFC + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: true and false. + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountResponseBody.js new file mode 100644 index 0000000..5d60e28 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountResponseBody.js @@ -0,0 +1,114 @@ +"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.DescribeCustomEventCountResponseBody = exports.DescribeCustomEventCountResponseBodyCustomEventCounts = exports.DescribeCustomEventCountResponseBodyCustomEventCountsCustomEventCount = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeCustomEventCountResponseBodyCustomEventCountsCustomEventCount extends $dara.Model { + static names() { + return { + name: 'Name', + num: 'Num', + time: 'Time', + }; + } + static types() { + return { + name: 'string', + num: 'number', + time: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeCustomEventCountResponseBodyCustomEventCountsCustomEventCount = DescribeCustomEventCountResponseBodyCustomEventCountsCustomEventCount; +class DescribeCustomEventCountResponseBodyCustomEventCounts extends $dara.Model { + static names() { + return { + customEventCount: 'CustomEventCount', + }; + } + static types() { + return { + customEventCount: { 'type': 'array', 'itemType': DescribeCustomEventCountResponseBodyCustomEventCountsCustomEventCount }, + }; + } + validate() { + if (Array.isArray(this.customEventCount)) { + $dara.Model.validateArray(this.customEventCount); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeCustomEventCountResponseBodyCustomEventCounts = DescribeCustomEventCountResponseBodyCustomEventCounts; +class DescribeCustomEventCountResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + customEventCounts: 'CustomEventCounts', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + customEventCounts: DescribeCustomEventCountResponseBodyCustomEventCounts, + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + if (this.customEventCounts && typeof this.customEventCounts.validate === 'function') { + this.customEventCounts.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeCustomEventCountResponseBody = DescribeCustomEventCountResponseBody; +//# sourceMappingURL=DescribeCustomEventCountResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountResponseBody.js.map new file mode 100644 index 0000000..7ae887e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventCountResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeCustomEventCountRespon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K;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,iBAAiB,EAAE,mBAAmB;YACtC,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,iBAAiB,EAAE,qDAAqD;YACxE,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,iBAAiB,IAAI,OAAQ,IAAI,CAAC,iBAAyB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YAC3F,IAAI,CAAC,iBAAyB,CAAC,QAAQ,EAAE,CAAC;QAC7C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtED,oFAsEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramRequest.d.ts new file mode 100644 index 0000000..85d549d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramRequest.d.ts @@ -0,0 +1,81 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeCustomEventHistogramRequest extends $dara.Model { + /** + * @remarks + * The end of the time range to query. + * + * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * @example + * 1552220485596 + */ + endTime?: string; + /** + * @remarks + * The event ID. + * + * @example + * 123 + */ + eventId?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 12345 + */ + groupId?: string; + /** + * @remarks + * The severity level of the event. Valid values: + * + * * CRITICAL + * * WARN + * * INFO + * + * @example + * CRITICAL + */ + level?: string; + /** + * @remarks + * The event name. + * + * @example + * BucketIngressBandwidth + */ + name?: string; + regionId?: string; + /** + * @remarks + * The keywords that are used to search for the event. + * + * * If you need to query the custom event whose content contains a and b, set the value to "a and b". + * * If you need to query the custom event whose content contains a or b, set the value to "a or b". + * + * @example + * cms + */ + searchKeywords?: string; + /** + * @remarks + * The beginning of the time range to query. + * + * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * @example + * 1552209685596 + */ + startTime?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramRequest.js new file mode 100644 index 0000000..ba13441 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramRequest.js @@ -0,0 +1,72 @@ +"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.DescribeCustomEventHistogramRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeCustomEventHistogramRequest extends $dara.Model { + static names() { + return { + endTime: 'EndTime', + eventId: 'EventId', + groupId: 'GroupId', + level: 'Level', + name: 'Name', + regionId: 'RegionId', + searchKeywords: 'SearchKeywords', + startTime: 'StartTime', + }; + } + static types() { + return { + endTime: 'string', + eventId: 'string', + groupId: 'string', + level: 'string', + name: 'string', + regionId: 'string', + searchKeywords: 'string', + startTime: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeCustomEventHistogramRequest = DescribeCustomEventHistogramRequest; +//# sourceMappingURL=DescribeCustomEventHistogramRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramRequest.js.map new file mode 100644 index 0000000..d9909cb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeCustomEventHistogramRequest.js","sourceRoot":"","sources":["../../src/models/DescribeCustomEventHistogramRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IAqElE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,UAAU;YACpB,cAAc,EAAE,gBAAgB;YAChC,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,QAAQ;YACjB,KAAK,EAAE,QAAQ;YACf,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,QAAQ;YAClB,cAAc,EAAE,QAAQ;YACxB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtGD,kFAsGC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramResponse.d.ts new file mode 100644 index 0000000..5e4f086 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeCustomEventHistogramResponseBody } from "./DescribeCustomEventHistogramResponseBody"; +export declare class DescribeCustomEventHistogramResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeCustomEventHistogramResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramResponse.js new file mode 100644 index 0000000..0959827 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramResponse.js @@ -0,0 +1,69 @@ +"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.DescribeCustomEventHistogramResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeCustomEventHistogramResponseBody_1 = require("./DescribeCustomEventHistogramResponseBody"); +class DescribeCustomEventHistogramResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeCustomEventHistogramResponseBody_1.DescribeCustomEventHistogramResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeCustomEventHistogramResponse = DescribeCustomEventHistogramResponse; +//# sourceMappingURL=DescribeCustomEventHistogramResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramResponse.js.map new file mode 100644 index 0000000..36d8748 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeCustomEventHistogramResponse.js","sourceRoot":"","sources":["../../src/models/DescribeCustomEventHistogramResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,yGAAsG;AAGtG,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IAInE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,mFAAwC;SAC/C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,oFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramResponseBody.d.ts new file mode 100644 index 0000000..5cd556c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramResponseBody.d.ts @@ -0,0 +1,105 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeCustomEventHistogramResponseBodyEventHistogramsEventHistogram extends $dara.Model { + /** + * @remarks + * The information about the number of times that the custom event occurred during an interval of the specified time period. + * + * @example + * 3 + */ + count?: number; + /** + * @remarks + * The end time. + * + * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * @example + * 1552226750000 + */ + endTime?: number; + /** + * @remarks + * The start time. + * + * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * @example + * 1552226740000 + */ + startTime?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeCustomEventHistogramResponseBodyEventHistograms extends $dara.Model { + eventHistogram?: DescribeCustomEventHistogramResponseBodyEventHistogramsEventHistogram[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeCustomEventHistogramResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The information about the number of times that the custom event occurred during each interval of the specified time period. + */ + eventHistograms?: DescribeCustomEventHistogramResponseBodyEventHistograms; + /** + * @remarks + * The returned message. If the request was successful, a success message is returned. If the request failed, an error message is returned. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 486029C9-53E1-44B4-85A8-16A571A043FD + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: true and false. + * + * @example + * true + */ + success?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramResponseBody.js new file mode 100644 index 0000000..f4bfc39 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramResponseBody.js @@ -0,0 +1,114 @@ +"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.DescribeCustomEventHistogramResponseBody = exports.DescribeCustomEventHistogramResponseBodyEventHistograms = exports.DescribeCustomEventHistogramResponseBodyEventHistogramsEventHistogram = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeCustomEventHistogramResponseBodyEventHistogramsEventHistogram extends $dara.Model { + static names() { + return { + count: 'Count', + endTime: 'EndTime', + startTime: 'StartTime', + }; + } + static types() { + return { + count: 'number', + endTime: 'number', + startTime: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeCustomEventHistogramResponseBodyEventHistogramsEventHistogram = DescribeCustomEventHistogramResponseBodyEventHistogramsEventHistogram; +class DescribeCustomEventHistogramResponseBodyEventHistograms extends $dara.Model { + static names() { + return { + eventHistogram: 'EventHistogram', + }; + } + static types() { + return { + eventHistogram: { 'type': 'array', 'itemType': DescribeCustomEventHistogramResponseBodyEventHistogramsEventHistogram }, + }; + } + validate() { + if (Array.isArray(this.eventHistogram)) { + $dara.Model.validateArray(this.eventHistogram); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeCustomEventHistogramResponseBodyEventHistograms = DescribeCustomEventHistogramResponseBodyEventHistograms; +class DescribeCustomEventHistogramResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + eventHistograms: 'EventHistograms', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + eventHistograms: DescribeCustomEventHistogramResponseBodyEventHistograms, + message: 'string', + requestId: 'string', + success: 'string', + }; + } + validate() { + if (this.eventHistograms && typeof this.eventHistograms.validate === 'function') { + this.eventHistograms.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeCustomEventHistogramResponseBody = DescribeCustomEventHistogramResponseBody; +//# sourceMappingURL=DescribeCustomEventHistogramResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramResponseBody.js.map new file mode 100644 index 0000000..4127a8d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomEventHistogramResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeCustomEventHistogramResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeCustomEventHistogramResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qEAAsE,SAAQ,KAAK,CAAC,KAAK;IA6BpG,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,QAAQ;YACf,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApDD,sJAoDC;AAED,MAAa,uDAAwD,SAAQ,KAAK,CAAC,KAAK;IAEtF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,cAAc,EAAE,gBAAgB;SACjC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,cAAc,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,qEAAqE,EAAE;SACvH,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC;YACtC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACjD,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxBD,0HAwBC;AAED,MAAa,wCAAyC,SAAQ,KAAK,CAAC,KAAK;IAwCvE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,eAAe,EAAE,iBAAiB;YAClC,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,eAAe,EAAE,uDAAuD;YACxE,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,eAAe,IAAI,OAAQ,IAAI,CAAC,eAAuB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACvF,IAAI,CAAC,eAAuB,CAAC,QAAQ,EAAE,CAAC;QAC3C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtED,4FAsEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListRequest.d.ts new file mode 100644 index 0000000..73a5b22 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListRequest.d.ts @@ -0,0 +1,68 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeCustomMetricListRequest extends $dara.Model { + /** + * @remarks + * The dimensions based on which the resources are queried. + * + * @example + * {sampleName1=value1&sampleName2=value2} + */ + dimension?: string; + /** + * @remarks + * The ID of the application group. + * + * For information about how to query the IDs of application groups, see [DescribeMonitorGroups](https://help.aliyun.com/document_detail/115032.html). + * + * @example + * 7378**** + */ + groupId?: string; + /** + * @remarks + * The MD5 value of the HTTP request body. The MD5 value is a 128-bit hash value used to verify the uniqueness of the reported monitoring data. + * + * @example + * 97c25982d9745a231276bff27469**** + */ + md5?: string; + /** + * @remarks + * The name of the custom metric. + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The page number. + * + * Pages start from page 1. Default value: 1. + * + * @example + * 1 + */ + pageNumber?: string; + /** + * @remarks + * The number of entries per page. + * + * Pages start from page 1. Default value: 10. + * + * @example + * 10 + */ + pageSize?: string; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListRequest.js new file mode 100644 index 0000000..da8885d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListRequest.js @@ -0,0 +1,70 @@ +"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.DescribeCustomMetricListRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeCustomMetricListRequest extends $dara.Model { + static names() { + return { + dimension: 'Dimension', + groupId: 'GroupId', + md5: 'Md5', + metricName: 'MetricName', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + }; + } + static types() { + return { + dimension: 'string', + groupId: 'string', + md5: 'string', + metricName: 'string', + pageNumber: 'string', + pageSize: 'string', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeCustomMetricListRequest = DescribeCustomMetricListRequest; +//# sourceMappingURL=DescribeCustomMetricListRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListRequest.js.map new file mode 100644 index 0000000..b404c64 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeCustomMetricListRequest.js","sourceRoot":"","sources":["../../src/models/DescribeCustomMetricListRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAwD9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,GAAG,EAAE,KAAK;YACV,UAAU,EAAE,YAAY;YACxB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;YACjB,GAAG,EAAE,QAAQ;YACb,UAAU,EAAE,QAAQ;YACpB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAvFD,0EAuFC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListResponse.d.ts new file mode 100644 index 0000000..99dd2d0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeCustomMetricListResponseBody } from "./DescribeCustomMetricListResponseBody"; +export declare class DescribeCustomMetricListResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeCustomMetricListResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListResponse.js new file mode 100644 index 0000000..646fd4e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListResponse.js @@ -0,0 +1,69 @@ +"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.DescribeCustomMetricListResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeCustomMetricListResponseBody_1 = require("./DescribeCustomMetricListResponseBody"); +class DescribeCustomMetricListResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeCustomMetricListResponseBody_1.DescribeCustomMetricListResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeCustomMetricListResponse = DescribeCustomMetricListResponse; +//# sourceMappingURL=DescribeCustomMetricListResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListResponse.js.map new file mode 100644 index 0000000..d4d3350 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeCustomMetricListResponse.js","sourceRoot":"","sources":["../../src/models/DescribeCustomMetricListResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,iGAA8F;AAG9F,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAI/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,2EAAoC;SAC3C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,4EAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListResponseBody.d.ts new file mode 100644 index 0000000..068b0dc --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListResponseBody.d.ts @@ -0,0 +1,47 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeCustomMetricListResponseBody extends $dara.Model { + /** + * @remarks + * The responses code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 1AF425E4-1DEA-54F2-910A-8117C9686140 + */ + requestId?: string; + /** + * @remarks + * The reported custom metrics that are found in the query. + * + * @example + * {\\"all\\":0,\\"size\\":10,\\"param\\":{\\"metric\\":\\"{\\\\\\"metricName\\\\\\":\\\\\\"cpu_total\\\\\\",\\\\\\"groupId\\\\\\":7378****,\\\\\\"project\\\\\\":\\\\\\"acs_customMetric_120886317861****\\\\\\",\\\\\\"dimension\\\\\\":\\\\\\"sampleName1=value1&sampleName2=value2\\\\\\",\\\\\\"status\\\\\\":1}\\",\\"service\\":\\"metric-center.aliyun-inc.com\\"},\\"page\\":1,\\"list\\":[]} + */ + result?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListResponseBody.js new file mode 100644 index 0000000..8d3d74c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListResponseBody.js @@ -0,0 +1,64 @@ +"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.DescribeCustomMetricListResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeCustomMetricListResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + result: 'Result', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + result: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeCustomMetricListResponseBody = DescribeCustomMetricListResponseBody; +//# sourceMappingURL=DescribeCustomMetricListResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListResponseBody.js.map new file mode 100644 index 0000000..9c93df5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeCustomMetricListResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeCustomMetricListResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeCustomMetricListResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IAmCnE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5DD,oFA4DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListRequest.d.ts new file mode 100644 index 0000000..d56b529 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListRequest.d.ts @@ -0,0 +1,69 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeDynamicTagRuleListRequest extends $dara.Model { + /** + * @remarks + * The ID of the tag rule. + * + * @example + * 004155fa-15ba-466d-b61a-*********** + */ + dynamicTagRuleId?: string; + /** + * @remarks + * The number of the page to return. + * + * Pages start from page 1. Default value: 1. + * + * @example + * 1 + */ + pageNumber?: string; + /** + * @remarks + * The number of entries to return on each page. + * + * Minimum value: 1. Default value: 30. + * + * @example + * 30 + */ + pageSize?: string; + /** + * @remarks + * The tag key. + * + * For more information about how to obtain a tag key, see [DescribeTagKeyList](https://help.aliyun.com/document_detail/145558.html). + * + * @example + * tagkey1 + */ + tagKey?: string; + /** + * @remarks + * The ID of the region to which the tags belong. + * + * @example + * cn-hangzhou + */ + tagRegionId?: string; + /** + * @remarks + * The tag value. + * + * For more information about how to obtain a tag value, see [DescribeTagKeyList](https://help.aliyun.com/document_detail/145557.html). + * + * @example + * * + */ + tagValue?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListRequest.js new file mode 100644 index 0000000..82da742 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListRequest.js @@ -0,0 +1,68 @@ +"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.DescribeDynamicTagRuleListRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeDynamicTagRuleListRequest extends $dara.Model { + static names() { + return { + dynamicTagRuleId: 'DynamicTagRuleId', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + tagKey: 'TagKey', + tagRegionId: 'TagRegionId', + tagValue: 'TagValue', + }; + } + static types() { + return { + dynamicTagRuleId: 'string', + pageNumber: 'string', + pageSize: 'string', + tagKey: 'string', + tagRegionId: 'string', + tagValue: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeDynamicTagRuleListRequest = DescribeDynamicTagRuleListRequest; +//# sourceMappingURL=DescribeDynamicTagRuleListRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListRequest.js.map new file mode 100644 index 0000000..c3416f3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeDynamicTagRuleListRequest.js","sourceRoot":"","sources":["../../src/models/DescribeDynamicTagRuleListRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,iCAAkC,SAAQ,KAAK,CAAC,KAAK;IAyDhE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,gBAAgB,EAAE,kBAAkB;YACpC,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,gBAAgB,EAAE,QAAQ;YAC1B,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,QAAQ;YACrB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtFD,8EAsFC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListResponse.d.ts new file mode 100644 index 0000000..cf9e6b4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeDynamicTagRuleListResponseBody } from "./DescribeDynamicTagRuleListResponseBody"; +export declare class DescribeDynamicTagRuleListResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeDynamicTagRuleListResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListResponse.js new file mode 100644 index 0000000..fba4a96 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListResponse.js @@ -0,0 +1,69 @@ +"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.DescribeDynamicTagRuleListResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeDynamicTagRuleListResponseBody_1 = require("./DescribeDynamicTagRuleListResponseBody"); +class DescribeDynamicTagRuleListResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeDynamicTagRuleListResponseBody_1.DescribeDynamicTagRuleListResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeDynamicTagRuleListResponse = DescribeDynamicTagRuleListResponse; +//# sourceMappingURL=DescribeDynamicTagRuleListResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListResponse.js.map new file mode 100644 index 0000000..8a0112a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeDynamicTagRuleListResponse.js","sourceRoot":"","sources":["../../src/models/DescribeDynamicTagRuleListResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,qGAAkG;AAGlG,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;IAIjE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,+EAAsC;SAC7C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,gFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListResponseBody.d.ts new file mode 100644 index 0000000..9eec55c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListResponseBody.d.ts @@ -0,0 +1,265 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupContactGroupList extends $dara.Model { + contactGroupList?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupMatchExpressMatchExpress extends $dara.Model { + /** + * @remarks + * The tag key. + * + * @example + * azone-version + */ + tagKey?: string; + /** + * @remarks + * The tag value. + * + * The `TagValue` and `TagValueMatchFunction` parameters must be used in pairs. + * + * @example + * * + */ + tagValue?: string; + /** + * @remarks + * The method that is used to match tag values. Valid values: + * + * * all: includes all + * * startWith: starts with a prefix + * * endWith: ends with a suffix + * * contains: contains + * * notContains: does not contain + * * equals: equals + * + * @example + * all + */ + tagValueMatchFunction?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupMatchExpress extends $dara.Model { + matchExpress?: DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupMatchExpressMatchExpress[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupTagValueBlacklist extends $dara.Model { + tagValueBlacklist?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupTemplateIdList extends $dara.Model { + templateIdList?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroup extends $dara.Model { + /** + * @remarks + * The alert contact group. + */ + contactGroupList?: DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupContactGroupList; + /** + * @remarks + * The ID of the tag rule. + * + * @example + * 1536df65-a719-429d-8813-73cc40d7**** + */ + dynamicTagRuleId?: string; + /** + * @remarks + * The conditional expressions used to create an application group based on the tag. + */ + matchExpress?: DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupMatchExpress; + /** + * @remarks + * The logical operator that is used between conditional expressions. Valid values: + * + * * `and` + * * `or` + * + * > Only one logical operator can be used in a request. + * + * @example + * or + */ + matchExpressFilterRelation?: string; + /** + * @remarks + * The ID of the region to which the tags belong. + * + * @example + * cn-hangzhou + */ + regionId?: string; + /** + * @remarks + * The status of adding instances that meet the tag rule to the application group. Valid values: + * + * * `RUNNING` + * * `FINISH` + * + * @example + * FINISH + */ + status?: string; + /** + * @remarks + * The tag key. + * + * @example + * tagkey1 + */ + tagKey?: string; + tagValueBlacklist?: DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupTagValueBlacklist; + /** + * @remarks + * The IDs of the alert templates. + */ + templateIdList?: DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupTemplateIdList; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeDynamicTagRuleListResponseBodyTagGroupList extends $dara.Model { + tagGroup?: DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroup[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeDynamicTagRuleListResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The page number of the returned page. + * + * @example + * 1 + */ + pageNumber?: string; + /** + * @remarks + * The number of entries returned per page. + * + * @example + * 30 + */ + pageSize?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * 0D50523D-8D59-4A61-B58E-E2286ECFB3A9 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call was successful. Valid values: + * + * * true: The call was successful. + * * false: The call failed. + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The tag rules of application groups. + */ + tagGroupList?: DescribeDynamicTagRuleListResponseBodyTagGroupList; + /** + * @remarks + * The total number of returned entries. + * + * @example + * 2 + */ + total?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListResponseBody.js new file mode 100644 index 0000000..3a04d4b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListResponseBody.js @@ -0,0 +1,255 @@ +"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.DescribeDynamicTagRuleListResponseBody = exports.DescribeDynamicTagRuleListResponseBodyTagGroupList = exports.DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroup = exports.DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupTemplateIdList = exports.DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupTagValueBlacklist = exports.DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupMatchExpress = exports.DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupMatchExpressMatchExpress = exports.DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupContactGroupList = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupContactGroupList extends $dara.Model { + static names() { + return { + contactGroupList: 'ContactGroupList', + }; + } + static types() { + return { + contactGroupList: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.contactGroupList)) { + $dara.Model.validateArray(this.contactGroupList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupContactGroupList = DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupContactGroupList; +class DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupMatchExpressMatchExpress extends $dara.Model { + static names() { + return { + tagKey: 'TagKey', + tagValue: 'TagValue', + tagValueMatchFunction: 'TagValueMatchFunction', + }; + } + static types() { + return { + tagKey: 'string', + tagValue: 'string', + tagValueMatchFunction: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupMatchExpressMatchExpress = DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupMatchExpressMatchExpress; +class DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupMatchExpress extends $dara.Model { + static names() { + return { + matchExpress: 'MatchExpress', + }; + } + static types() { + return { + matchExpress: { 'type': 'array', 'itemType': DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupMatchExpressMatchExpress }, + }; + } + validate() { + if (Array.isArray(this.matchExpress)) { + $dara.Model.validateArray(this.matchExpress); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupMatchExpress = DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupMatchExpress; +class DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupTagValueBlacklist extends $dara.Model { + static names() { + return { + tagValueBlacklist: 'TagValueBlacklist', + }; + } + static types() { + return { + tagValueBlacklist: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.tagValueBlacklist)) { + $dara.Model.validateArray(this.tagValueBlacklist); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupTagValueBlacklist = DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupTagValueBlacklist; +class DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupTemplateIdList extends $dara.Model { + static names() { + return { + templateIdList: 'TemplateIdList', + }; + } + static types() { + return { + templateIdList: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.templateIdList)) { + $dara.Model.validateArray(this.templateIdList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupTemplateIdList = DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupTemplateIdList; +class DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroup extends $dara.Model { + static names() { + return { + contactGroupList: 'ContactGroupList', + dynamicTagRuleId: 'DynamicTagRuleId', + matchExpress: 'MatchExpress', + matchExpressFilterRelation: 'MatchExpressFilterRelation', + regionId: 'RegionId', + status: 'Status', + tagKey: 'TagKey', + tagValueBlacklist: 'TagValueBlacklist', + templateIdList: 'TemplateIdList', + }; + } + static types() { + return { + contactGroupList: DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupContactGroupList, + dynamicTagRuleId: 'string', + matchExpress: DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupMatchExpress, + matchExpressFilterRelation: 'string', + regionId: 'string', + status: 'string', + tagKey: 'string', + tagValueBlacklist: DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupTagValueBlacklist, + templateIdList: DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupTemplateIdList, + }; + } + validate() { + if (this.contactGroupList && typeof this.contactGroupList.validate === 'function') { + this.contactGroupList.validate(); + } + if (this.matchExpress && typeof this.matchExpress.validate === 'function') { + this.matchExpress.validate(); + } + if (this.tagValueBlacklist && typeof this.tagValueBlacklist.validate === 'function') { + this.tagValueBlacklist.validate(); + } + if (this.templateIdList && typeof this.templateIdList.validate === 'function') { + this.templateIdList.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroup = DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroup; +class DescribeDynamicTagRuleListResponseBodyTagGroupList extends $dara.Model { + static names() { + return { + tagGroup: 'TagGroup', + }; + } + static types() { + return { + tagGroup: { 'type': 'array', 'itemType': DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroup }, + }; + } + validate() { + if (Array.isArray(this.tagGroup)) { + $dara.Model.validateArray(this.tagGroup); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeDynamicTagRuleListResponseBodyTagGroupList = DescribeDynamicTagRuleListResponseBodyTagGroupList; +class DescribeDynamicTagRuleListResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + requestId: 'RequestId', + success: 'Success', + tagGroupList: 'TagGroupList', + total: 'Total', + }; + } + static types() { + return { + code: 'string', + message: 'string', + pageNumber: 'string', + pageSize: 'string', + requestId: 'string', + success: 'boolean', + tagGroupList: DescribeDynamicTagRuleListResponseBodyTagGroupList, + total: 'number', + }; + } + validate() { + if (this.tagGroupList && typeof this.tagGroupList.validate === 'function') { + this.tagGroupList.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeDynamicTagRuleListResponseBody = DescribeDynamicTagRuleListResponseBody; +//# sourceMappingURL=DescribeDynamicTagRuleListResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListResponseBody.js.map new file mode 100644 index 0000000..449c7b7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeDynamicTagRuleListResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeDynamicTagRuleListResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeDynamicTagRuleListResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0EAA2E,SAAQ,KAAK,CAAC,KAAK;IAEzG,MAAM,CAAC,KAAK;QACV,OAAO;YACL,gBAAgB,EAAE,kBAAkB;SACrC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,gBAAgB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;SAC5D,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAAE,CAAC;YACxC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QACnD,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxBD,gKAwBC;AAED,MAAa,kFAAmF,SAAQ,KAAK,CAAC,KAAK;IAkCjH,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,UA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file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeRequest.d.ts new file mode 100644 index 0000000..0e0da76 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeRequest.d.ts @@ -0,0 +1,38 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeEventRuleAttributeRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * The name of the event-triggered alert rule. + * + * For information about how to obtain the name of an event-triggered alert rule, see [DescribeEventRuleList](https://help.aliyun.com/document_detail/114996.html). + * + * This parameter is required. + * + * @example + * testRule + */ + 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, which indicates one day. + * + * > Only one alert notification is sent during each mute period even if the metric value exceeds the alert threshold several times. + * + * @example + * 86400 + */ + silenceTime?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeRequest.js new file mode 100644 index 0000000..32a87b0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeRequest.js @@ -0,0 +1,62 @@ +"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.DescribeEventRuleAttributeRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeEventRuleAttributeRequest extends $dara.Model { + static names() { + return { + regionId: 'RegionId', + ruleName: 'RuleName', + silenceTime: 'SilenceTime', + }; + } + static types() { + return { + regionId: 'string', + ruleName: 'string', + silenceTime: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleAttributeRequest = DescribeEventRuleAttributeRequest; +//# sourceMappingURL=DescribeEventRuleAttributeRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeRequest.js.map new file mode 100644 index 0000000..190dd86 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeEventRuleAttributeRequest.js","sourceRoot":"","sources":["../../src/models/DescribeEventRuleAttributeRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,iCAAkC,SAAQ,KAAK,CAAC,KAAK;IA0BhE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,WAAW,EAAE,aAAa;SAC3B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,WAAW,EAAE,QAAQ;SACtB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjDD,8EAiDC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeResponse.d.ts new file mode 100644 index 0000000..a72cdd8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeEventRuleAttributeResponseBody } from "./DescribeEventRuleAttributeResponseBody"; +export declare class DescribeEventRuleAttributeResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeEventRuleAttributeResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeResponse.js new file mode 100644 index 0000000..705ab11 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeResponse.js @@ -0,0 +1,69 @@ +"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.DescribeEventRuleAttributeResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeEventRuleAttributeResponseBody_1 = require("./DescribeEventRuleAttributeResponseBody"); +class DescribeEventRuleAttributeResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeEventRuleAttributeResponseBody_1.DescribeEventRuleAttributeResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleAttributeResponse = DescribeEventRuleAttributeResponse; +//# sourceMappingURL=DescribeEventRuleAttributeResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeResponse.js.map new file mode 100644 index 0000000..1f8a703 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeEventRuleAttributeResponse.js","sourceRoot":"","sources":["../../src/models/DescribeEventRuleAttributeResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,qGAAkG;AAGlG,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;IAIjE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,+EAAsC;SAC7C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,gFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeResponseBody.d.ts new file mode 100644 index 0000000..d422791 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeResponseBody.d.ts @@ -0,0 +1,252 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeEventRuleAttributeResponseBodyResultEventPatternEventTypeList extends $dara.Model { + eventTypeList?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeEventRuleAttributeResponseBodyResultEventPatternKeywordFilterObjKeywords extends $dara.Model { + keyword?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeEventRuleAttributeResponseBodyResultEventPatternKeywordFilterObj extends $dara.Model { + /** + * @remarks + * The keywords that are used to match events. + */ + keywords?: DescribeEventRuleAttributeResponseBodyResultEventPatternKeywordFilterObjKeywords; + /** + * @remarks + * The relationship between multiple keywords in a condition. Valid values: + * + * * OR: The relationship between keywords is OR. + * * NOT: The keyword is excluded. The value NOT indicates that all events that do not contain the keywords are matched. + * + * @example + * OR + */ + relation?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeEventRuleAttributeResponseBodyResultEventPatternLevelList extends $dara.Model { + levelList?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeEventRuleAttributeResponseBodyResultEventPatternNameList extends $dara.Model { + nameList?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeEventRuleAttributeResponseBodyResultEventPatternStatusList extends $dara.Model { + statusList?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeEventRuleAttributeResponseBodyResultEventPattern extends $dara.Model { + /** + * @remarks + * The types of the event-triggered alert rules. + */ + eventTypeList?: DescribeEventRuleAttributeResponseBodyResultEventPatternEventTypeList; + /** + * @remarks + * The keyword for filtering. + */ + keywordFilterObj?: DescribeEventRuleAttributeResponseBodyResultEventPatternKeywordFilterObj; + levelList?: DescribeEventRuleAttributeResponseBodyResultEventPatternLevelList; + nameList?: DescribeEventRuleAttributeResponseBodyResultEventPatternNameList; + /** + * @remarks + * The name of the cloud service. + * + * @example + * CloudMonitor + */ + product?: string; + /** + * @remarks + * Indicates that logs are filtered based on the specified SQL statement. If the specified conditions are met, an alert is triggered. + * + * @example + * ycccluster1 and (i-23ij0o82612 or Executed1) or Asimulated not 222 + */ + SQLFilter?: string; + statusList?: DescribeEventRuleAttributeResponseBodyResultEventPatternStatusList; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeEventRuleAttributeResponseBodyResult extends $dara.Model { + /** + * @remarks + * The description of the event-triggered alert rule. + * + * @example + * Default group event rule. + */ + description?: string; + /** + * @remarks + * The event pattern. This parameter describes the trigger conditions of an event. + */ + eventPattern?: DescribeEventRuleAttributeResponseBodyResultEventPattern; + /** + * @remarks + * The event type. Valid values: + * + * * SYSTEM: system event + * * CUSTOM: custom event + * + * @example + * SYSTEM + */ + eventType?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 3607**** + */ + groupId?: string; + /** + * @remarks + * The name of the event-triggered alert rule. + * + * @example + * test_DefaultEventRule_7378**** + */ + name?: string; + /** + * @remarks + * The status of the event-triggered alert rule. Valid values: + * + * * ENABLED + * * DISABLED + * + * @example + * ENABLED + */ + state?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeEventRuleAttributeResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The alert does not exist. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 9AA3F210-C03D-4C86-8DB6-21C84FF692A1 + */ + requestId?: string; + /** + * @remarks + * The details of the event-triggered alert rule. + */ + result?: DescribeEventRuleAttributeResponseBodyResult; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeResponseBody.js new file mode 100644 index 0000000..65af7b1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeResponseBody.js @@ -0,0 +1,281 @@ +"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.DescribeEventRuleAttributeResponseBody = exports.DescribeEventRuleAttributeResponseBodyResult = exports.DescribeEventRuleAttributeResponseBodyResultEventPattern = exports.DescribeEventRuleAttributeResponseBodyResultEventPatternStatusList = exports.DescribeEventRuleAttributeResponseBodyResultEventPatternNameList = exports.DescribeEventRuleAttributeResponseBodyResultEventPatternLevelList = exports.DescribeEventRuleAttributeResponseBodyResultEventPatternKeywordFilterObj = exports.DescribeEventRuleAttributeResponseBodyResultEventPatternKeywordFilterObjKeywords = exports.DescribeEventRuleAttributeResponseBodyResultEventPatternEventTypeList = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeEventRuleAttributeResponseBodyResultEventPatternEventTypeList extends $dara.Model { + static names() { + return { + eventTypeList: 'EventTypeList', + }; + } + static types() { + return { + eventTypeList: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.eventTypeList)) { + $dara.Model.validateArray(this.eventTypeList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleAttributeResponseBodyResultEventPatternEventTypeList = DescribeEventRuleAttributeResponseBodyResultEventPatternEventTypeList; +class DescribeEventRuleAttributeResponseBodyResultEventPatternKeywordFilterObjKeywords extends $dara.Model { + static names() { + return { + keyword: 'keyword', + }; + } + static types() { + return { + keyword: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.keyword)) { + $dara.Model.validateArray(this.keyword); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleAttributeResponseBodyResultEventPatternKeywordFilterObjKeywords = DescribeEventRuleAttributeResponseBodyResultEventPatternKeywordFilterObjKeywords; +class DescribeEventRuleAttributeResponseBodyResultEventPatternKeywordFilterObj extends $dara.Model { + static names() { + return { + keywords: 'Keywords', + relation: 'Relation', + }; + } + static types() { + return { + keywords: DescribeEventRuleAttributeResponseBodyResultEventPatternKeywordFilterObjKeywords, + relation: 'string', + }; + } + validate() { + if (this.keywords && typeof this.keywords.validate === 'function') { + this.keywords.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleAttributeResponseBodyResultEventPatternKeywordFilterObj = DescribeEventRuleAttributeResponseBodyResultEventPatternKeywordFilterObj; +class DescribeEventRuleAttributeResponseBodyResultEventPatternLevelList extends $dara.Model { + static names() { + return { + levelList: 'LevelList', + }; + } + static types() { + return { + levelList: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.levelList)) { + $dara.Model.validateArray(this.levelList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleAttributeResponseBodyResultEventPatternLevelList = DescribeEventRuleAttributeResponseBodyResultEventPatternLevelList; +class DescribeEventRuleAttributeResponseBodyResultEventPatternNameList extends $dara.Model { + static names() { + return { + nameList: 'NameList', + }; + } + static types() { + return { + nameList: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.nameList)) { + $dara.Model.validateArray(this.nameList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleAttributeResponseBodyResultEventPatternNameList = DescribeEventRuleAttributeResponseBodyResultEventPatternNameList; +class DescribeEventRuleAttributeResponseBodyResultEventPatternStatusList extends $dara.Model { + static names() { + return { + statusList: 'StatusList', + }; + } + static types() { + return { + statusList: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.statusList)) { + $dara.Model.validateArray(this.statusList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleAttributeResponseBodyResultEventPatternStatusList = DescribeEventRuleAttributeResponseBodyResultEventPatternStatusList; +class DescribeEventRuleAttributeResponseBodyResultEventPattern extends $dara.Model { + static names() { + return { + eventTypeList: 'EventTypeList', + keywordFilterObj: 'KeywordFilterObj', + levelList: 'LevelList', + nameList: 'NameList', + product: 'Product', + SQLFilter: 'SQLFilter', + statusList: 'StatusList', + }; + } + static types() { + return { + eventTypeList: DescribeEventRuleAttributeResponseBodyResultEventPatternEventTypeList, + keywordFilterObj: DescribeEventRuleAttributeResponseBodyResultEventPatternKeywordFilterObj, + levelList: DescribeEventRuleAttributeResponseBodyResultEventPatternLevelList, + nameList: DescribeEventRuleAttributeResponseBodyResultEventPatternNameList, + product: 'string', + SQLFilter: 'string', + statusList: DescribeEventRuleAttributeResponseBodyResultEventPatternStatusList, + }; + } + validate() { + if (this.eventTypeList && typeof this.eventTypeList.validate === 'function') { + this.eventTypeList.validate(); + } + if (this.keywordFilterObj && typeof this.keywordFilterObj.validate === 'function') { + this.keywordFilterObj.validate(); + } + if (this.levelList && typeof this.levelList.validate === 'function') { + this.levelList.validate(); + } + if (this.nameList && typeof this.nameList.validate === 'function') { + this.nameList.validate(); + } + if (this.statusList && typeof this.statusList.validate === 'function') { + this.statusList.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleAttributeResponseBodyResultEventPattern = DescribeEventRuleAttributeResponseBodyResultEventPattern; +class DescribeEventRuleAttributeResponseBodyResult extends $dara.Model { + static names() { + return { + description: 'Description', + eventPattern: 'EventPattern', + eventType: 'EventType', + groupId: 'GroupId', + name: 'Name', + state: 'State', + }; + } + static types() { + return { + description: 'string', + eventPattern: DescribeEventRuleAttributeResponseBodyResultEventPattern, + eventType: 'string', + groupId: 'string', + name: 'string', + state: 'string', + }; + } + validate() { + if (this.eventPattern && typeof this.eventPattern.validate === 'function') { + this.eventPattern.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleAttributeResponseBodyResult = DescribeEventRuleAttributeResponseBodyResult; +class DescribeEventRuleAttributeResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + result: 'Result', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + result: DescribeEventRuleAttributeResponseBodyResult, + success: 'boolean', + }; + } + validate() { + if (this.result && typeof this.result.validate === 'function') { + this.result.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleAttributeResponseBody = DescribeEventRuleAttributeResponseBody; +//# sourceMappingURL=DescribeEventRuleAttributeResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeResponseBody.js.map new file mode 100644 index 0000000..abd4a92 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleAttributeResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeEventRuleAttributeResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeEventRuleAttributeResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qEAAsE,SAAQ,KAAK,CAAC,KAAK;IAEpG,MAAM,CAAC,KAAK;QACV,OAAO;YACL,aAAa,EAAE,eAAe;SAC/B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,aAAa,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;SACzD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,CAAC;YACrC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAChD,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxB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AAE,CAAC;QACxC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApFD,oGAoFC;AAED,MAAa,sCAAuC,SAAQ,KAAK,CAAC,KAAK;IA2CrE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,MAAM,EAAE,4CAA4C;YACpD,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,MAAM,IAAI,OAAQ,IAAI,CAAC,MAAc,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACrE,IAAI,CAAC,MAAc,CAAC,QAAQ,EAAE,CAAC;QAClC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,wFAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListRequest.d.ts new file mode 100644 index 0000000..dd5420c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListRequest.d.ts @@ -0,0 +1,61 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeEventRuleListRequest extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * @example + * 7378**** + */ + groupId?: string; + /** + * @remarks + * Specifies whether to enable the event-triggered alert rule. Valid values: + * + * - true (default) + * - false + * + * @example + * true + */ + isEnable?: boolean; + /** + * @remarks + * The prefix in the name of the event-triggered alert rule. + * + * @example + * test + */ + namePrefix?: string; + /** + * @remarks + * The page number. + * + * Pages start from page 1. Default value: 1. + * + * @example + * 1 + */ + pageNumber?: string; + /** + * @remarks + * The number of entries per page. + * + * Pages start from page 1. Default value: 10. + * + * @example + * 10 + */ + pageSize?: string; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListRequest.js new file mode 100644 index 0000000..9f0a24b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListRequest.js @@ -0,0 +1,68 @@ +"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.DescribeEventRuleListRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeEventRuleListRequest extends $dara.Model { + static names() { + return { + groupId: 'GroupId', + isEnable: 'IsEnable', + namePrefix: 'NamePrefix', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + }; + } + static types() { + return { + groupId: 'string', + isEnable: 'boolean', + namePrefix: 'string', + pageNumber: 'string', + pageSize: 'string', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleListRequest = DescribeEventRuleListRequest; +//# sourceMappingURL=DescribeEventRuleListRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListRequest.js.map new file mode 100644 index 0000000..3526dae --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeEventRuleListRequest.js","sourceRoot":"","sources":["../../src/models/DescribeEventRuleListRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,4BAA6B,SAAQ,KAAK,CAAC,KAAK;IAiD3D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,UAAU;YACpB,UAAU,EAAE,YAAY;YACxB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,QAAQ,EAAE,SAAS;YACnB,UAAU,EAAE,QAAQ;YACpB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA9ED,oEA8EC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListResponse.d.ts new file mode 100644 index 0000000..08f0d73 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeEventRuleListResponseBody } from "./DescribeEventRuleListResponseBody"; +export declare class DescribeEventRuleListResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeEventRuleListResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListResponse.js new file mode 100644 index 0000000..09846eb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListResponse.js @@ -0,0 +1,69 @@ +"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.DescribeEventRuleListResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeEventRuleListResponseBody_1 = require("./DescribeEventRuleListResponseBody"); +class DescribeEventRuleListResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeEventRuleListResponseBody_1.DescribeEventRuleListResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleListResponse = DescribeEventRuleListResponse; +//# sourceMappingURL=DescribeEventRuleListResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListResponse.js.map new file mode 100644 index 0000000..7cbece5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeEventRuleListResponse.js","sourceRoot":"","sources":["../../src/models/DescribeEventRuleListResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,2FAAwF;AAGxF,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IAI5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,qEAAiC;SACxC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,sEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListResponseBody.d.ts new file mode 100644 index 0000000..992acc4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListResponseBody.d.ts @@ -0,0 +1,296 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternEventTypeList extends $dara.Model { + eventTypeList?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternKeywordFilterKeywords extends $dara.Model { + keywords?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternKeywordFilter extends $dara.Model { + /** + * @remarks + * The keywords that are used to match events. + */ + keywords?: DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternKeywordFilterKeywords; + /** + * @remarks + * The relationship between multiple keywords in a condition. Valid values: + * + * * OR: The relationship between keywords is OR. + * * NOT: The keyword is excluded. The value NOT indicates that all events that do not contain the keywords are matched. + * + * @example + * OR + */ + relation?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternLevelList extends $dara.Model { + levelList?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternNameList extends $dara.Model { + nameList?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPattern extends $dara.Model { + /** + * @remarks + * The custom filter conditions. + * + * @example + * ECS123 + */ + customFilters?: string; + /** + * @remarks + * The types of the event-triggered alert rules. + */ + eventTypeList?: DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternEventTypeList; + /** + * @remarks + * The keyword for filtering. + */ + keywordFilter?: DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternKeywordFilter; + /** + * @remarks + * The levels of the event-triggered alerts. + */ + levelList?: DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternLevelList; + /** + * @remarks + * The event names. + */ + nameList?: DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternNameList; + /** + * @remarks + * The abbreviation of the Alibaba Cloud service name. + * + * @example + * CloudMonitor + */ + product?: string; + /** + * @remarks + * Indicates that logs are filtered based on the specified SQL statement. If the specified conditions are met, an alert is triggered. + * + * @example + * ycccluster1 and (i-23ij0o82612 or Executed1) or Asimulated not 222 + */ + SQLFilter?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeEventRuleListResponseBodyEventRulesEventRuleEventPattern extends $dara.Model { + eventPattern?: DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPattern[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeEventRuleListResponseBodyEventRulesEventRule extends $dara.Model { + /** + * @remarks + * The description of the event-triggered alert rule. + * + * @example + * Default group event rule. + */ + description?: string; + /** + * @remarks + * The mode of the event-triggered alert rule. + */ + eventPattern?: DescribeEventRuleListResponseBodyEventRulesEventRuleEventPattern; + /** + * @remarks + * The type of the event-triggered alert rule. Valid values: + * + * * SYSTEM: system event-triggered alert rule + * * CUSTOM: custom event-triggered alert rule + * + * @example + * SYSTEM + */ + eventType?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 7378**** + */ + groupId?: string; + /** + * @remarks + * The name of the event-triggered alert rule. + * + * @example + * test_DefaultEventRule_7378**** + */ + name?: string; + /** + * @remarks + * The mute period during which new alert notifications are not sent even if the trigger conditions are met. + * + * @example + * 86400 + */ + silenceTime?: number; + /** + * @remarks + * The status of the event-triggered alert rule. Valid values: + * + * * ENABLED + * * DISABLED + * + * @example + * ENABLED + */ + state?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeEventRuleListResponseBodyEventRules extends $dara.Model { + eventRule?: DescribeEventRuleListResponseBodyEventRulesEventRule[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeEventRuleListResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The event-triggered alert rule. + */ + eventRules?: DescribeEventRuleListResponseBodyEventRules; + /** + * @remarks + * The error message returned. + * + * @example + * User not authorized to operate on the specified resource. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * D0E6D82B-16B5-422A-8136-EE5BDC01E415 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The total number of entries returned. + * + * @example + * 21 + */ + total?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListResponseBody.js new file mode 100644 index 0000000..0fe4326 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListResponseBody.js @@ -0,0 +1,304 @@ +"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.DescribeEventRuleListResponseBody = exports.DescribeEventRuleListResponseBodyEventRules = exports.DescribeEventRuleListResponseBodyEventRulesEventRule = exports.DescribeEventRuleListResponseBodyEventRulesEventRuleEventPattern = exports.DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPattern = exports.DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternNameList = exports.DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternLevelList = exports.DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternKeywordFilter = exports.DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternKeywordFilterKeywords = exports.DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternEventTypeList = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternEventTypeList extends $dara.Model { + static names() { + return { + eventTypeList: 'EventTypeList', + }; + } + static types() { + return { + eventTypeList: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.eventTypeList)) { + $dara.Model.validateArray(this.eventTypeList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternEventTypeList = DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternEventTypeList; +class DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternKeywordFilterKeywords extends $dara.Model { + static names() { + return { + keywords: 'Keywords', + }; + } + static types() { + return { + keywords: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.keywords)) { + $dara.Model.validateArray(this.keywords); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternKeywordFilterKeywords = DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternKeywordFilterKeywords; +class DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternKeywordFilter extends $dara.Model { + static names() { + return { + keywords: 'Keywords', + relation: 'Relation', + }; + } + static types() { + return { + keywords: DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternKeywordFilterKeywords, + relation: 'string', + }; + } + validate() { + if (this.keywords && typeof this.keywords.validate === 'function') { + this.keywords.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternKeywordFilter = DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternKeywordFilter; +class DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternLevelList extends $dara.Model { + static names() { + return { + levelList: 'LevelList', + }; + } + static types() { + return { + levelList: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.levelList)) { + $dara.Model.validateArray(this.levelList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternLevelList = DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternLevelList; +class DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternNameList extends $dara.Model { + static names() { + return { + nameList: 'NameList', + }; + } + static types() { + return { + nameList: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.nameList)) { + $dara.Model.validateArray(this.nameList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternNameList = DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternNameList; +class DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPattern extends $dara.Model { + static names() { + return { + customFilters: 'CustomFilters', + eventTypeList: 'EventTypeList', + keywordFilter: 'KeywordFilter', + levelList: 'LevelList', + nameList: 'NameList', + product: 'Product', + SQLFilter: 'SQLFilter', + }; + } + static types() { + return { + customFilters: 'string', + eventTypeList: DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternEventTypeList, + keywordFilter: DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternKeywordFilter, + levelList: DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternLevelList, + nameList: DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternNameList, + product: 'string', + SQLFilter: 'string', + }; + } + validate() { + if (this.eventTypeList && typeof this.eventTypeList.validate === 'function') { + this.eventTypeList.validate(); + } + if (this.keywordFilter && typeof this.keywordFilter.validate === 'function') { + this.keywordFilter.validate(); + } + if (this.levelList && typeof this.levelList.validate === 'function') { + this.levelList.validate(); + } + if (this.nameList && typeof this.nameList.validate === 'function') { + this.nameList.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPattern = DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPattern; +class DescribeEventRuleListResponseBodyEventRulesEventRuleEventPattern extends $dara.Model { + static names() { + return { + eventPattern: 'EventPattern', + }; + } + static types() { + return { + eventPattern: { 'type': 'array', 'itemType': DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPattern }, + }; + } + validate() { + if (Array.isArray(this.eventPattern)) { + $dara.Model.validateArray(this.eventPattern); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleListResponseBodyEventRulesEventRuleEventPattern = DescribeEventRuleListResponseBodyEventRulesEventRuleEventPattern; +class DescribeEventRuleListResponseBodyEventRulesEventRule extends $dara.Model { + static names() { + return { + description: 'Description', + eventPattern: 'EventPattern', + eventType: 'EventType', + groupId: 'GroupId', + name: 'Name', + silenceTime: 'SilenceTime', + state: 'State', + }; + } + static types() { + return { + description: 'string', + eventPattern: DescribeEventRuleListResponseBodyEventRulesEventRuleEventPattern, + eventType: 'string', + groupId: 'string', + name: 'string', + silenceTime: 'number', + state: 'string', + }; + } + validate() { + if (this.eventPattern && typeof this.eventPattern.validate === 'function') { + this.eventPattern.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleListResponseBodyEventRulesEventRule = DescribeEventRuleListResponseBodyEventRulesEventRule; +class DescribeEventRuleListResponseBodyEventRules extends $dara.Model { + static names() { + return { + eventRule: 'EventRule', + }; + } + static types() { + return { + eventRule: { 'type': 'array', 'itemType': DescribeEventRuleListResponseBodyEventRulesEventRule }, + }; + } + validate() { + if (Array.isArray(this.eventRule)) { + $dara.Model.validateArray(this.eventRule); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleListResponseBodyEventRules = DescribeEventRuleListResponseBodyEventRules; +class DescribeEventRuleListResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + eventRules: 'EventRules', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + total: 'Total', + }; + } + static types() { + return { + code: 'string', + eventRules: DescribeEventRuleListResponseBodyEventRules, + message: 'string', + requestId: 'string', + success: 'boolean', + total: 'number', + }; + } + validate() { + if (this.eventRules && typeof this.eventRules.validate === 'function') { + this.eventRules.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleListResponseBody = DescribeEventRuleListResponseBody; +//# sourceMappingURL=DescribeEventRuleListResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListResponseBody.js.map new file mode 100644 index 0000000..566126a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleListResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeEventRuleListResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeEventRuleListResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yFAA0F,SAAQ,KAAK,CAAC,KAAK;IAExH,MAAM,CAAC,KAAK;QACV,OAAO;YACL,aAAa,EAAE,eAAe;SAC/B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,aAAa,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;SACzD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,CAAC;YACrC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAChD,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxBD,8LAwBC;AAED,MAAa,iGAAkG,SAAQ,KAAK,CAAC,KAAK;IAEhI,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;SACpD,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AAE,oDAAoD,EAAE;SACjG,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;YACjC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC5C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxBD,kGAwBC;AAED,MAAa,iCAAkC,SAAQ,KAAK,CAAC,KAAK;IAmDhE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,UAAU,EAAE,YAAY;YACxB,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,2CAA2C;YACvD,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,UAAU,IAAI,OAAQ,IAAI,CAAC,UAAkB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YAC7E,IAAI,CAAC,UAAkB,CAAC,QAAQ,EAAE,CAAC;QACtC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnFD,8EAmFC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListRequest.d.ts new file mode 100644 index 0000000..8329758 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListRequest.d.ts @@ -0,0 +1,24 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeEventRuleTargetListRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * The name of the event-triggered alert rule. + * + * This parameter is required. + * + * @example + * testRule + */ + ruleName?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListRequest.js new file mode 100644 index 0000000..10842c6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListRequest.js @@ -0,0 +1,60 @@ +"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.DescribeEventRuleTargetListRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeEventRuleTargetListRequest extends $dara.Model { + static names() { + return { + regionId: 'RegionId', + ruleName: 'RuleName', + }; + } + static types() { + return { + regionId: 'string', + ruleName: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleTargetListRequest = DescribeEventRuleTargetListRequest; +//# sourceMappingURL=DescribeEventRuleTargetListRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListRequest.js.map new file mode 100644 index 0000000..c0b032b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeEventRuleTargetListRequest.js","sourceRoot":"","sources":["../../src/models/DescribeEventRuleTargetListRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;IAYjE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,gFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListResponse.d.ts new file mode 100644 index 0000000..f772b54 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeEventRuleTargetListResponseBody } from "./DescribeEventRuleTargetListResponseBody"; +export declare class DescribeEventRuleTargetListResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeEventRuleTargetListResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListResponse.js new file mode 100644 index 0000000..a4785ce --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListResponse.js @@ -0,0 +1,69 @@ +"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.DescribeEventRuleTargetListResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeEventRuleTargetListResponseBody_1 = require("./DescribeEventRuleTargetListResponseBody"); +class DescribeEventRuleTargetListResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeEventRuleTargetListResponseBody_1.DescribeEventRuleTargetListResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleTargetListResponse = DescribeEventRuleTargetListResponse; +//# sourceMappingURL=DescribeEventRuleTargetListResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListResponse.js.map new file mode 100644 index 0000000..306facc --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeEventRuleTargetListResponse.js","sourceRoot":"","sources":["../../src/models/DescribeEventRuleTargetListResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,uGAAoG;AAGpG,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IAIlE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,iFAAuC;SAC9C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,kFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListResponseBody.d.ts new file mode 100644 index 0000000..9fc8c61 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListResponseBody.d.ts @@ -0,0 +1,477 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeEventRuleTargetListResponseBodyContactParametersContactParameter extends $dara.Model { + /** + * @remarks + * The name of the alert group. + */ + contactGroupName?: string; + /** + * @remarks + * The ID of the recipient. + * + * @example + * 1 + */ + id?: string; + /** + * @remarks + * The alert notification methods. Valid values: + * + * 4: Alert notifications are sent by using DingTalk chatbots and emails. + * + * @example + * 3 + */ + level?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeEventRuleTargetListResponseBodyContactParameters extends $dara.Model { + contactParameter?: DescribeEventRuleTargetListResponseBodyContactParametersContactParameter[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeEventRuleTargetListResponseBodyFcParametersFCParameter extends $dara.Model { + /** + * @remarks + * The Alibaba Cloud Resource Name (ARN) of the function. + * + * Format: `arn:acs:${Service}:${Region}:${Account}:${ResourceType}/${ResourceId}`. Fields: + * + * - Service: the code of an Alibaba Cloud service + * - Region: the region ID + * - Account: the ID of an Alibaba Cloud account + * - ResourceType: the resource type + * - ResourceId: the resource ID + */ + arn?: string; + /** + * @remarks + * The name of the function. + * + * @example + * fcTest1 + */ + functionName?: string; + /** + * @remarks + * The ID of the recipient. + * + * @example + * 3 + */ + id?: string; + /** + * @remarks + * The region where Function Compute is deployed. + * + * @example + * cn-qingdao + */ + region?: string; + /** + * @remarks + * The name of the Function Compute service. + * + * @example + * service1 + */ + serviceName?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeEventRuleTargetListResponseBodyFcParameters extends $dara.Model { + FCParameter?: DescribeEventRuleTargetListResponseBodyFcParametersFCParameter[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeEventRuleTargetListResponseBodyMnsParametersMnsParameter extends $dara.Model { + /** + * @remarks + * The ARN of the MNS queue. + * + * Format: `arn:acs:${Service}:${Region}:${Account}:${ResourceType}/${ResourceId}`. Fields: + * + * - Service: the code of an Alibaba Cloud service + * - Region: the region ID + * - Account: the ID of an Alibaba Cloud account + * - ResourceType: the resource type + * - ResourceId: the resource ID + */ + arn?: string; + /** + * @remarks + * The ID of the recipient. + * + * @example + * 2 + */ + id?: string; + /** + * @remarks + * The name of the SMQ queue. + * + * @example + * testQueue + */ + queue?: string; + /** + * @remarks + * The region for SMQ. + * + * @example + * cn-hangzhou + */ + region?: string; + /** + * @remarks + * The SMQ topic. + * + * @example + * topic_sample + */ + topic?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeEventRuleTargetListResponseBodyMnsParameters extends $dara.Model { + mnsParameter?: DescribeEventRuleTargetListResponseBodyMnsParametersMnsParameter[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeEventRuleTargetListResponseBodyOpenApiParametersOpenApiParameters extends $dara.Model { + /** + * @remarks + * The name of the API operation. + * + * @example + * PutLogs + */ + action?: string; + /** + * @remarks + * The ARN of the API operation. + * + * Format: `arn:acs:${Service}:${Region}:${Account}:${ResourceType}/${ResourceId}`. Fields: + * + * - Service: the code of an Alibaba Cloud service + * - Region: the region ID + * - Account: the ID of an Alibaba Cloud account + * - ResourceType: the resource type + * - ResourceId: the resource ID The ARN of the Log Service Logstore. + * + * Format: `arn:acs:${Service}:${Region}:${Account}:${ResourceType}/${ResourceId}`. Fields: + * - Service: the code of an Alibaba Cloud service + * - Region: the region ID + * - Account: the ID of an Alibaba Cloud account + * - ResourceType: the resource type + * - ResourceId: the resource ID + */ + arn?: string; + /** + * @remarks + * The ID of the recipient. + * + * @example + * 3 + */ + id?: string; + /** + * @remarks + * The ID of the cloud service to which the API operation belongs. + * + * @example + * log + */ + product?: string; + /** + * @remarks + * The region where the resource resides. + * + * @example + * cn-hangzhou + */ + region?: string; + /** + * @remarks + * The name of the role. + * + * @example + * MyRole + */ + role?: string; + /** + * @remarks + * The version of the API. + * + * @example + * 2019-01-01 + */ + version?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeEventRuleTargetListResponseBodyOpenApiParameters extends $dara.Model { + openApiParameters?: DescribeEventRuleTargetListResponseBodyOpenApiParametersOpenApiParameters[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeEventRuleTargetListResponseBodySlsParametersSlsParameter extends $dara.Model { + /** + * @remarks + * The ARN of the Log Service Logstore. + * + * Format: `arn:acs:${Service}:${Region}:${Account}:${ResourceType}/${ResourceId}`. Fields: + * + * - Service: the code of an Alibaba Cloud service + * - Region: the region ID + * - Account: the ID of an Alibaba Cloud account + * - ResourceType: the resource type + * - ResourceId: the resource ID + */ + arn?: string; + /** + * @remarks + * The ID of the recipient. + * + * @example + * 4 + */ + id?: string; + /** + * @remarks + * The name of the Logstore. + * + * @example + * logstore_test + */ + logStore?: string; + /** + * @remarks + * The name of the project. + * + * @example + * project_test + */ + project?: string; + /** + * @remarks + * The ID of the region where the Log Service project resides. + * + * @example + * cn-hangzhou + */ + region?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeEventRuleTargetListResponseBodySlsParameters extends $dara.Model { + slsParameter?: DescribeEventRuleTargetListResponseBodySlsParametersSlsParameter[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeEventRuleTargetListResponseBodyWebhookParametersWebhookParameter extends $dara.Model { + /** + * @remarks + * The ID of the recipient. + * + * @example + * 5 + */ + id?: string; + /** + * @remarks + * The HTTP request method. Valid values: GET and POST. + * + * @example + * GET + */ + method?: string; + /** + * @remarks + * The protocol type. + * + * @example + * HTTP + */ + protocol?: string; + /** + * @remarks + * The callback URL. + * + * @example + * http://www.aliyun.com + */ + url?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeEventRuleTargetListResponseBodyWebhookParameters extends $dara.Model { + webhookParameter?: DescribeEventRuleTargetListResponseBodyWebhookParametersWebhookParameter[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeEventRuleTargetListResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The information about the recipients if alert notifications are sent to the alert contacts of an alert contact group. + */ + contactParameters?: DescribeEventRuleTargetListResponseBodyContactParameters; + /** + * @remarks + * The information about the recipients in Function Compute. + */ + fcParameters?: DescribeEventRuleTargetListResponseBodyFcParameters; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The notifications of Simple Message Queue (formerly MNS) (SMQ). + */ + mnsParameters?: DescribeEventRuleTargetListResponseBodyMnsParameters; + /** + * @remarks + * The information about the recipients in OpenAPI Explorer. + */ + openApiParameters?: DescribeEventRuleTargetListResponseBodyOpenApiParameters; + /** + * @remarks + * The ID of the request. + * + * @example + * 87170bc7-e28a-4c93-b9bf-90a1dbe84736 + */ + requestId?: string; + /** + * @remarks + * The information about the recipients in Log Service. + */ + slsParameters?: DescribeEventRuleTargetListResponseBodySlsParameters; + /** + * @remarks + * The information about the recipients if alert notifications are sent by sending a request to a callback URL. + */ + webhookParameters?: DescribeEventRuleTargetListResponseBodyWebhookParameters; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListResponseBody.js new file mode 100644 index 0000000..0b58a48 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListResponseBody.js @@ -0,0 +1,384 @@ +"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.DescribeEventRuleTargetListResponseBody = exports.DescribeEventRuleTargetListResponseBodyWebhookParameters = exports.DescribeEventRuleTargetListResponseBodyWebhookParametersWebhookParameter = exports.DescribeEventRuleTargetListResponseBodySlsParameters = exports.DescribeEventRuleTargetListResponseBodySlsParametersSlsParameter = exports.DescribeEventRuleTargetListResponseBodyOpenApiParameters = exports.DescribeEventRuleTargetListResponseBodyOpenApiParametersOpenApiParameters = exports.DescribeEventRuleTargetListResponseBodyMnsParameters = exports.DescribeEventRuleTargetListResponseBodyMnsParametersMnsParameter = exports.DescribeEventRuleTargetListResponseBodyFcParameters = exports.DescribeEventRuleTargetListResponseBodyFcParametersFCParameter = exports.DescribeEventRuleTargetListResponseBodyContactParameters = exports.DescribeEventRuleTargetListResponseBodyContactParametersContactParameter = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeEventRuleTargetListResponseBodyContactParametersContactParameter extends $dara.Model { + static names() { + return { + contactGroupName: 'ContactGroupName', + id: 'Id', + level: 'Level', + }; + } + static types() { + return { + contactGroupName: 'string', + id: 'string', + level: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleTargetListResponseBodyContactParametersContactParameter = DescribeEventRuleTargetListResponseBodyContactParametersContactParameter; +class DescribeEventRuleTargetListResponseBodyContactParameters extends $dara.Model { + static names() { + return { + contactParameter: 'ContactParameter', + }; + } + static types() { + return { + contactParameter: { 'type': 'array', 'itemType': DescribeEventRuleTargetListResponseBodyContactParametersContactParameter }, + }; + } + validate() { + if (Array.isArray(this.contactParameter)) { + $dara.Model.validateArray(this.contactParameter); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleTargetListResponseBodyContactParameters = DescribeEventRuleTargetListResponseBodyContactParameters; +class DescribeEventRuleTargetListResponseBodyFcParametersFCParameter extends $dara.Model { + static names() { + return { + arn: 'Arn', + functionName: 'FunctionName', + id: 'Id', + region: 'Region', + serviceName: 'ServiceName', + }; + } + static types() { + return { + arn: 'string', + functionName: 'string', + id: 'string', + region: 'string', + serviceName: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleTargetListResponseBodyFcParametersFCParameter = DescribeEventRuleTargetListResponseBodyFcParametersFCParameter; +class DescribeEventRuleTargetListResponseBodyFcParameters extends $dara.Model { + static names() { + return { + FCParameter: 'FCParameter', + }; + } + static types() { + return { + FCParameter: { 'type': 'array', 'itemType': DescribeEventRuleTargetListResponseBodyFcParametersFCParameter }, + }; + } + validate() { + if (Array.isArray(this.FCParameter)) { + $dara.Model.validateArray(this.FCParameter); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleTargetListResponseBodyFcParameters = DescribeEventRuleTargetListResponseBodyFcParameters; +class DescribeEventRuleTargetListResponseBodyMnsParametersMnsParameter extends $dara.Model { + static names() { + return { + arn: 'Arn', + id: 'Id', + queue: 'Queue', + region: 'Region', + topic: 'Topic', + }; + } + static types() { + return { + arn: 'string', + id: 'string', + queue: 'string', + region: 'string', + topic: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleTargetListResponseBodyMnsParametersMnsParameter = DescribeEventRuleTargetListResponseBodyMnsParametersMnsParameter; +class DescribeEventRuleTargetListResponseBodyMnsParameters extends $dara.Model { + static names() { + return { + mnsParameter: 'MnsParameter', + }; + } + static types() { + return { + mnsParameter: { 'type': 'array', 'itemType': DescribeEventRuleTargetListResponseBodyMnsParametersMnsParameter }, + }; + } + validate() { + if (Array.isArray(this.mnsParameter)) { + $dara.Model.validateArray(this.mnsParameter); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleTargetListResponseBodyMnsParameters = DescribeEventRuleTargetListResponseBodyMnsParameters; +class DescribeEventRuleTargetListResponseBodyOpenApiParametersOpenApiParameters extends $dara.Model { + static names() { + return { + action: 'Action', + arn: 'Arn', + id: 'Id', + product: 'Product', + region: 'Region', + role: 'Role', + version: 'Version', + }; + } + static types() { + return { + action: 'string', + arn: 'string', + id: 'string', + product: 'string', + region: 'string', + role: 'string', + version: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleTargetListResponseBodyOpenApiParametersOpenApiParameters = DescribeEventRuleTargetListResponseBodyOpenApiParametersOpenApiParameters; +class DescribeEventRuleTargetListResponseBodyOpenApiParameters extends $dara.Model { + static names() { + return { + openApiParameters: 'OpenApiParameters', + }; + } + static types() { + return { + openApiParameters: { 'type': 'array', 'itemType': DescribeEventRuleTargetListResponseBodyOpenApiParametersOpenApiParameters }, + }; + } + validate() { + if (Array.isArray(this.openApiParameters)) { + $dara.Model.validateArray(this.openApiParameters); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleTargetListResponseBodyOpenApiParameters = DescribeEventRuleTargetListResponseBodyOpenApiParameters; +class DescribeEventRuleTargetListResponseBodySlsParametersSlsParameter extends $dara.Model { + static names() { + return { + arn: 'Arn', + id: 'Id', + logStore: 'LogStore', + project: 'Project', + region: 'Region', + }; + } + static types() { + return { + arn: 'string', + id: 'string', + logStore: 'string', + project: 'string', + region: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleTargetListResponseBodySlsParametersSlsParameter = DescribeEventRuleTargetListResponseBodySlsParametersSlsParameter; +class DescribeEventRuleTargetListResponseBodySlsParameters extends $dara.Model { + static names() { + return { + slsParameter: 'SlsParameter', + }; + } + static types() { + return { + slsParameter: { 'type': 'array', 'itemType': DescribeEventRuleTargetListResponseBodySlsParametersSlsParameter }, + }; + } + validate() { + if (Array.isArray(this.slsParameter)) { + $dara.Model.validateArray(this.slsParameter); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleTargetListResponseBodySlsParameters = DescribeEventRuleTargetListResponseBodySlsParameters; +class DescribeEventRuleTargetListResponseBodyWebhookParametersWebhookParameter extends $dara.Model { + static names() { + return { + id: 'Id', + method: 'Method', + protocol: 'Protocol', + url: 'Url', + }; + } + static types() { + return { + id: 'string', + method: 'string', + protocol: 'string', + url: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleTargetListResponseBodyWebhookParametersWebhookParameter = DescribeEventRuleTargetListResponseBodyWebhookParametersWebhookParameter; +class DescribeEventRuleTargetListResponseBodyWebhookParameters extends $dara.Model { + static names() { + return { + webhookParameter: 'WebhookParameter', + }; + } + static types() { + return { + webhookParameter: { 'type': 'array', 'itemType': DescribeEventRuleTargetListResponseBodyWebhookParametersWebhookParameter }, + }; + } + validate() { + if (Array.isArray(this.webhookParameter)) { + $dara.Model.validateArray(this.webhookParameter); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleTargetListResponseBodyWebhookParameters = DescribeEventRuleTargetListResponseBodyWebhookParameters; +class DescribeEventRuleTargetListResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + contactParameters: 'ContactParameters', + fcParameters: 'FcParameters', + message: 'Message', + mnsParameters: 'MnsParameters', + openApiParameters: 'OpenApiParameters', + requestId: 'RequestId', + slsParameters: 'SlsParameters', + webhookParameters: 'WebhookParameters', + }; + } + static types() { + return { + code: 'string', + contactParameters: DescribeEventRuleTargetListResponseBodyContactParameters, + fcParameters: DescribeEventRuleTargetListResponseBodyFcParameters, + message: 'string', + mnsParameters: DescribeEventRuleTargetListResponseBodyMnsParameters, + openApiParameters: DescribeEventRuleTargetListResponseBodyOpenApiParameters, + requestId: 'string', + slsParameters: DescribeEventRuleTargetListResponseBodySlsParameters, + webhookParameters: DescribeEventRuleTargetListResponseBodyWebhookParameters, + }; + } + validate() { + if (this.contactParameters && typeof this.contactParameters.validate === 'function') { + this.contactParameters.validate(); + } + if (this.fcParameters && typeof this.fcParameters.validate === 'function') { + this.fcParameters.validate(); + } + if (this.mnsParameters && typeof this.mnsParameters.validate === 'function') { + this.mnsParameters.validate(); + } + if (this.openApiParameters && typeof this.openApiParameters.validate === 'function') { + this.openApiParameters.validate(); + } + if (this.slsParameters && typeof this.slsParameters.validate === 'function') { + this.slsParameters.validate(); + } + if (this.webhookParameters && typeof this.webhookParameters.validate === 'function') { + this.webhookParameters.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeEventRuleTargetListResponseBody = DescribeEventRuleTargetListResponseBody; +//# sourceMappingURL=DescribeEventRuleTargetListResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListResponseBody.js.map new file mode 100644 index 0000000..7ca2028 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeEventRuleTargetListResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeEventRuleTargetListResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeEventRuleTargetListResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wEAAyE,SAAQ,KAAK,CAAC,KAAK;IAwBvG,MAAM,CAAC,KAAK;QACV,OAAO;YACL,gBAAgB,EAAE,kBAAkB;YACpC,EAAE,EAAE,IAAI;YACR,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,gBAAgB,EAAE,QAAQ;YAC1B,EAAE,EAAE,QAAQ;YACZ,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/CD,4JA+CC;AAED,MAAa,wDAAyD,SAAQ,KAAK,CAAC,KAAK;IAEvF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,gBAAgB,EAAE,kBAAkB;SACrC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,gBAAgB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,wEAAwE,EAAE;SAC5H,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAAE,CAAC;YACxC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QACnD,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CA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C,CAAC;IACb,CAAC;CACF;AA9GD,0FA8GC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListRequest.d.ts new file mode 100644 index 0000000..4ef6e9f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListRequest.d.ts @@ -0,0 +1,30 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeExporterOutputListRequest extends $dara.Model { + /** + * @remarks + * The page number. Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. Default value: 10. + * + * @example + * 10 + */ + pageSize?: number; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListRequest.js new file mode 100644 index 0000000..0128744 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListRequest.js @@ -0,0 +1,62 @@ +"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.DescribeExporterOutputListRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeExporterOutputListRequest extends $dara.Model { + static names() { + return { + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + }; + } + static types() { + return { + pageNumber: 'number', + pageSize: 'number', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeExporterOutputListRequest = DescribeExporterOutputListRequest; +//# sourceMappingURL=DescribeExporterOutputListRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListRequest.js.map new file mode 100644 index 0000000..054e3af --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeExporterOutputListRequest.js","sourceRoot":"","sources":["../../src/models/DescribeExporterOutputListRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,iCAAkC,SAAQ,KAAK,CAAC,KAAK;IAkBhE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzCD,8EAyCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListResponse.d.ts new file mode 100644 index 0000000..91fea13 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeExporterOutputListResponseBody } from "./DescribeExporterOutputListResponseBody"; +export declare class DescribeExporterOutputListResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeExporterOutputListResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListResponse.js new file mode 100644 index 0000000..03efe84 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListResponse.js @@ -0,0 +1,69 @@ +"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.DescribeExporterOutputListResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeExporterOutputListResponseBody_1 = require("./DescribeExporterOutputListResponseBody"); +class DescribeExporterOutputListResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeExporterOutputListResponseBody_1.DescribeExporterOutputListResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeExporterOutputListResponse = DescribeExporterOutputListResponse; +//# sourceMappingURL=DescribeExporterOutputListResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListResponse.js.map new file mode 100644 index 0000000..dfaab4e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeExporterOutputListResponse.js","sourceRoot":"","sources":["../../src/models/DescribeExporterOutputListResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,qGAAkG;AAGlG,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;IAIjE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,+EAAsC;SAC7C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,gFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListResponseBody.d.ts new file mode 100644 index 0000000..d8f2036 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListResponseBody.d.ts @@ -0,0 +1,171 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeExporterOutputListResponseBodyDatapointsDatapointConfigJson extends $dara.Model { + /** + * @remarks + * The AccessKey ID. + * + * @example + * LTAIpY33******** + */ + ak?: string; + /** + * @remarks + * The Log Service endpoint to which the monitoring data is exported. + * + * @example + * http://cn-qingdao-share.log.aliyuncs.com + */ + endpoint?: string; + /** + * @remarks + * The Logstore. + * + * @example + * monitorlogstore + */ + logstore?: string; + /** + * @remarks + * The Log Service project to which the monitoring data is exported. + * + * @example + * exporter + */ + project?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeExporterOutputListResponseBodyDatapointsDatapoint extends $dara.Model { + /** + * @remarks + * The JSON object that contains the details about the destination to which the monitoring data is exported. + */ + configJson?: DescribeExporterOutputListResponseBodyDatapointsDatapointConfigJson; + /** + * @remarks + * The time when the configuration set was created. The value is a UNIX timestamp. + * + * @example + * 1584016495498 + */ + createTime?: number; + /** + * @remarks + * The name of the configuration set. + * + * @example + * exporterOut + */ + destName?: string; + /** + * @remarks + * The service to which the monitoring data is exported. + * + * > Only Log Service is supported. More services will be supported in the future. + * + * @example + * SLS + */ + destType?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeExporterOutputListResponseBodyDatapoints extends $dara.Model { + datapoint?: DescribeExporterOutputListResponseBodyDatapointsDatapoint[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeExporterOutputListResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. Other status codes indicate that the request failed. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The configuration sets for exporting monitoring data. + */ + datapoints?: DescribeExporterOutputListResponseBodyDatapoints; + /** + * @remarks + * The returned message. + * + * @example + * sucess + */ + message?: string; + /** + * @remarks + * The page number of the returned page. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The request ID. + * + * @example + * 0E657631-CD6C-4C24-9637-98D000B9272C + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * `true` + * * `false` + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The total number of returned entries. + * + * @example + * 25 + */ + total?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListResponseBody.js new file mode 100644 index 0000000..503a3b5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListResponseBody.js @@ -0,0 +1,148 @@ +"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.DescribeExporterOutputListResponseBody = exports.DescribeExporterOutputListResponseBodyDatapoints = exports.DescribeExporterOutputListResponseBodyDatapointsDatapoint = exports.DescribeExporterOutputListResponseBodyDatapointsDatapointConfigJson = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeExporterOutputListResponseBodyDatapointsDatapointConfigJson extends $dara.Model { + static names() { + return { + ak: 'ak', + endpoint: 'endpoint', + logstore: 'logstore', + project: 'project', + }; + } + static types() { + return { + ak: 'string', + endpoint: 'string', + logstore: 'string', + project: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeExporterOutputListResponseBodyDatapointsDatapointConfigJson = DescribeExporterOutputListResponseBodyDatapointsDatapointConfigJson; +class DescribeExporterOutputListResponseBodyDatapointsDatapoint extends $dara.Model { + static names() { + return { + configJson: 'ConfigJson', + createTime: 'CreateTime', + destName: 'DestName', + destType: 'DestType', + }; + } + static types() { + return { + configJson: DescribeExporterOutputListResponseBodyDatapointsDatapointConfigJson, + createTime: 'number', + destName: 'string', + destType: 'string', + }; + } + validate() { + if (this.configJson && typeof this.configJson.validate === 'function') { + this.configJson.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeExporterOutputListResponseBodyDatapointsDatapoint = DescribeExporterOutputListResponseBodyDatapointsDatapoint; +class DescribeExporterOutputListResponseBodyDatapoints extends $dara.Model { + static names() { + return { + datapoint: 'Datapoint', + }; + } + static types() { + return { + datapoint: { 'type': 'array', 'itemType': DescribeExporterOutputListResponseBodyDatapointsDatapoint }, + }; + } + validate() { + if (Array.isArray(this.datapoint)) { + $dara.Model.validateArray(this.datapoint); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeExporterOutputListResponseBodyDatapoints = DescribeExporterOutputListResponseBodyDatapoints; +class DescribeExporterOutputListResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + datapoints: 'Datapoints', + message: 'Message', + pageNumber: 'PageNumber', + requestId: 'RequestId', + success: 'Success', + total: 'Total', + }; + } + static types() { + return { + code: 'string', + datapoints: DescribeExporterOutputListResponseBodyDatapoints, + message: 'string', + pageNumber: 'number', + requestId: 'string', + success: 'boolean', + total: 'number', + }; + } + validate() { + if (this.datapoints && typeof this.datapoints.validate === 'function') { + this.datapoints.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeExporterOutputListResponseBody = DescribeExporterOutputListResponseBody; +//# sourceMappingURL=DescribeExporterOutputListResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListResponseBody.js.map new file mode 100644 index 0000000..ed507ba --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterOutputListResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeExporterOutputListResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeExporterOutputListResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mEAAoE,SAAQ,KAAK,CAAC,KAAK;IAiClG,MAAM,CAAC,KAAK;QACV,OAAO;YACL,EAAE,EAAE,IAAI;YACR,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,EAAE,EAAE,QAAQ;YACZ,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA1DD,kJA0DC;AAED,MAAa,yDAA0D,SAAQ,KAAK,CA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CAAC,KAAK;IA2DrE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,UAAU,EAAE,YAAY;YACxB,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,gDAAgD;YAC5D,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,UAAU,IAAI,OAAQ,IAAI,CAAC,UAAkB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YAC7E,IAAI,CAAC,UAAkB,CAAC,QAAQ,EAAE,CAAC;QACtC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA7FD,wFA6FC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListRequest.d.ts new file mode 100644 index 0000000..19acce9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListRequest.d.ts @@ -0,0 +1,30 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeExporterRuleListRequest extends $dara.Model { + /** + * @remarks + * The page number. Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. Default value: 1000. + * + * @example + * 1000 + */ + pageSize?: number; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListRequest.js new file mode 100644 index 0000000..0dc4eff --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListRequest.js @@ -0,0 +1,62 @@ +"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.DescribeExporterRuleListRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeExporterRuleListRequest extends $dara.Model { + static names() { + return { + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + }; + } + static types() { + return { + pageNumber: 'number', + pageSize: 'number', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeExporterRuleListRequest = DescribeExporterRuleListRequest; +//# sourceMappingURL=DescribeExporterRuleListRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListRequest.js.map new file mode 100644 index 0000000..8d1fb2b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeExporterRuleListRequest.js","sourceRoot":"","sources":["../../src/models/DescribeExporterRuleListRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAkB9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzCD,0EAyCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListResponse.d.ts new file mode 100644 index 0000000..7e2ee58 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeExporterRuleListResponseBody } from "./DescribeExporterRuleListResponseBody"; +export declare class DescribeExporterRuleListResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeExporterRuleListResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListResponse.js new file mode 100644 index 0000000..9ed3995 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListResponse.js @@ -0,0 +1,69 @@ +"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.DescribeExporterRuleListResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeExporterRuleListResponseBody_1 = require("./DescribeExporterRuleListResponseBody"); +class DescribeExporterRuleListResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeExporterRuleListResponseBody_1.DescribeExporterRuleListResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeExporterRuleListResponse = DescribeExporterRuleListResponse; +//# sourceMappingURL=DescribeExporterRuleListResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListResponse.js.map new file mode 100644 index 0000000..4567455 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeExporterRuleListResponse.js","sourceRoot":"","sources":["../../src/models/DescribeExporterRuleListResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,iGAA8F;AAG9F,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAI/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,2EAAoC;SAC3C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,4EAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListResponseBody.d.ts new file mode 100644 index 0000000..48fe625 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListResponseBody.d.ts @@ -0,0 +1,181 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeExporterRuleListResponseBodyDatapointsDatapointDstName extends $dara.Model { + dstName?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeExporterRuleListResponseBodyDatapointsDatapoint extends $dara.Model { + /** + * @remarks + * The time when the rule was created. The value is a UNIX timestamp. + * + * @example + * 1584024616228 + */ + createTime?: number; + /** + * @remarks + * The description of the rule. + * + * @example + * Export monitoring data + */ + describe?: string; + /** + * @remarks + * The associated dimensions. + * + * @example + * {"instanceId":"xxxxx"} + */ + dimension?: string; + dstName?: DescribeExporterRuleListResponseBodyDatapointsDatapointDstName; + /** + * @remarks + * Indicates whether the rule is enabled. + * + * @example + * true + */ + enabled?: boolean; + /** + * @remarks + * The name of the metric. + * + * > For more information, see [DescribeMetricMetaList](https://help.aliyun.com/document_detail/98846.html) or [Appendix 1: Metrics](https://help.aliyun.com/document_detail/28619.html). + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The namespace of the service. + * + * > For more information, see [DescribeMetricMetaList](https://help.aliyun.com/document_detail/98846.html) or [Appendix 1: Metrics](https://help.aliyun.com/document_detail/28619.html). + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The name of the data export rule. + * + * @example + * myRuleName + */ + ruleName?: string; + /** + * @remarks + * The time window of the exported data.\\ + * Multiple windows are separated with commas (,). + * + * > Data in a time window of less than 60 seconds cannot be exported. + * + * @example + * 60,300 + */ + targetWindows?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeExporterRuleListResponseBodyDatapoints extends $dara.Model { + datapoint?: DescribeExporterRuleListResponseBodyDatapointsDatapoint[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeExporterRuleListResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. Other status codes indicate that the request failed. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The details of the data export rules. + */ + datapoints?: DescribeExporterRuleListResponseBodyDatapoints; + /** + * @remarks + * The returned message. + * + * @example + * susscess + */ + message?: string; + /** + * @remarks + * The page number of the returned page. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The request ID. + * + * @example + * 6BA047CA-8BC6-40BC-BC8F-FBECF35F1993 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * `true` + * * `false` + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The total number of returned entries. + * + * @example + * 1000 + */ + total?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListResponseBody.js new file mode 100644 index 0000000..dd74a14 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListResponseBody.js @@ -0,0 +1,155 @@ +"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.DescribeExporterRuleListResponseBody = exports.DescribeExporterRuleListResponseBodyDatapoints = exports.DescribeExporterRuleListResponseBodyDatapointsDatapoint = exports.DescribeExporterRuleListResponseBodyDatapointsDatapointDstName = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeExporterRuleListResponseBodyDatapointsDatapointDstName extends $dara.Model { + static names() { + return { + dstName: 'DstName', + }; + } + static types() { + return { + dstName: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.dstName)) { + $dara.Model.validateArray(this.dstName); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeExporterRuleListResponseBodyDatapointsDatapointDstName = DescribeExporterRuleListResponseBodyDatapointsDatapointDstName; +class DescribeExporterRuleListResponseBodyDatapointsDatapoint extends $dara.Model { + static names() { + return { + createTime: 'CreateTime', + describe: 'Describe', + dimension: 'Dimension', + dstName: 'DstName', + enabled: 'Enabled', + metricName: 'MetricName', + namespace: 'Namespace', + ruleName: 'RuleName', + targetWindows: 'TargetWindows', + }; + } + static types() { + return { + createTime: 'number', + describe: 'string', + dimension: 'string', + dstName: DescribeExporterRuleListResponseBodyDatapointsDatapointDstName, + enabled: 'boolean', + metricName: 'string', + namespace: 'string', + ruleName: 'string', + targetWindows: 'string', + }; + } + validate() { + if (this.dstName && typeof this.dstName.validate === 'function') { + this.dstName.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeExporterRuleListResponseBodyDatapointsDatapoint = DescribeExporterRuleListResponseBodyDatapointsDatapoint; +class DescribeExporterRuleListResponseBodyDatapoints extends $dara.Model { + static names() { + return { + datapoint: 'Datapoint', + }; + } + static types() { + return { + datapoint: { 'type': 'array', 'itemType': DescribeExporterRuleListResponseBodyDatapointsDatapoint }, + }; + } + validate() { + if (Array.isArray(this.datapoint)) { + $dara.Model.validateArray(this.datapoint); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeExporterRuleListResponseBodyDatapoints = DescribeExporterRuleListResponseBodyDatapoints; +class DescribeExporterRuleListResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + datapoints: 'Datapoints', + message: 'Message', + pageNumber: 'PageNumber', + requestId: 'RequestId', + success: 'Success', + total: 'Total', + }; + } + static types() { + return { + code: 'string', + datapoints: DescribeExporterRuleListResponseBodyDatapoints, + message: 'string', + pageNumber: 'number', + requestId: 'string', + success: 'boolean', + total: 'number', + }; + } + validate() { + if (this.datapoints && typeof this.datapoints.validate === 'function') { + this.datapoints.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeExporterRuleListResponseBody = DescribeExporterRuleListResponseBody; +//# sourceMappingURL=DescribeExporterRuleListResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListResponseBody.js.map new file mode 100644 index 0000000..53de563 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeExporterRuleListResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeExporterRuleListResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeExporterRuleListResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,8DAA+D,SAAQ,KAAK,CAAC,KAAK;IAE7F,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;SACnD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;YAC/B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxBD,wIAwBC;AAED,MAAa,uDAAwD,SAAQ,KAAK,CAAC,KAAK;IAyEtF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,S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AE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxBD,wGAwBC;AAED,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IA2DnE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,UAAU,EAAE,YAAY;YACxB,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,8CAA8C;YAC1D,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,UAAU,IAAI,OAAQ,IAAI,CAAC,UAAkB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YAC7E,IAAI,CAAC,UAAkB,CAAC,QAAQ,EAAE,CAAC;QACtC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA7FD,oFA6FC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessRequest.d.ts new file mode 100644 index 0000000..4b91d5a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessRequest.d.ts @@ -0,0 +1,48 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeGroupMonitoringAgentProcessRequest extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * This parameter is required. + * + * @example + * 12345 + */ + groupId?: string; + /** + * @remarks + * The page number. Default value: 1 + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. Default value: 10. + * + * @example + * 10 + */ + pageSize?: number; + /** + * @remarks + * The process name. + * + * @example + * sshd + */ + processName?: string; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessRequest.js new file mode 100644 index 0000000..9a100dc --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessRequest.js @@ -0,0 +1,66 @@ +"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.DescribeGroupMonitoringAgentProcessRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeGroupMonitoringAgentProcessRequest extends $dara.Model { + static names() { + return { + groupId: 'GroupId', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + processName: 'ProcessName', + regionId: 'RegionId', + }; + } + static types() { + return { + groupId: 'string', + pageNumber: 'number', + pageSize: 'number', + processName: 'string', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeGroupMonitoringAgentProcessRequest = DescribeGroupMonitoringAgentProcessRequest; +//# sourceMappingURL=DescribeGroupMonitoringAgentProcessRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessRequest.js.map new file mode 100644 index 0000000..98cd46f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeGroupMonitoringAgentProcessRequest.js","sourceRoot":"","sources":["../../src/models/DescribeGroupMonitoringAgentProcessRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0CAA2C,SAAQ,KAAK,CAAC,KAAK;IAoCzE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,WAAW,EAAE,QAAQ;YACrB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,gGA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessResponse.d.ts new file mode 100644 index 0000000..9dfe9a4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeGroupMonitoringAgentProcessResponseBody } from "./DescribeGroupMonitoringAgentProcessResponseBody"; +export declare class DescribeGroupMonitoringAgentProcessResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeGroupMonitoringAgentProcessResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessResponse.js new file mode 100644 index 0000000..60ea634 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessResponse.js @@ -0,0 +1,69 @@ +"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.DescribeGroupMonitoringAgentProcessResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeGroupMonitoringAgentProcessResponseBody_1 = require("./DescribeGroupMonitoringAgentProcessResponseBody"); +class DescribeGroupMonitoringAgentProcessResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeGroupMonitoringAgentProcessResponseBody_1.DescribeGroupMonitoringAgentProcessResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeGroupMonitoringAgentProcessResponse = DescribeGroupMonitoringAgentProcessResponse; +//# sourceMappingURL=DescribeGroupMonitoringAgentProcessResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessResponse.js.map new file mode 100644 index 0000000..c6f7860 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeGroupMonitoringAgentProcessResponse.js","sourceRoot":"","sources":["../../src/models/DescribeGroupMonitoringAgentProcessResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,uHAAoH;AAGpH,MAAa,2CAA4C,SAAQ,KAAK,CAAC,KAAK;IAI1E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,iGAA+C;SACtD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,kGAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessResponseBody.d.ts new file mode 100644 index 0000000..04eb231 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessResponseBody.d.ts @@ -0,0 +1,408 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfigTargetListTarget extends $dara.Model { + /** + * @remarks + * The Alibaba Cloud Resource Name (ARN) of the resource. Format: acs:{Service name abbreviation}:{regionId}:{userId}:/{Resource type}/{Resource name}/message. Example: acs:mns:cn-hangzhou:120886317861\\*\\*\\*\\*:/queues/test123/message. Fields: + * + * * {Service name abbreviation}: the abbreviation of the service name. Set the value to Simple Message Queue (formerly MNS) (SMQ). + * + * * {userId}: the ID of the Alibaba Cloud account. + * + * * {regionId}: the region ID of the SMQ queue or topic. + * + * * {Resource type}: the type of the resource for which alerts are triggered. Valid values: + * + * * **queues** + * * **topics** + * + * * {Resource name}: the resource name. + * + * * If the resource type is **queues**, the resource name is the queue name. + * * If the resource type is **topics**, the resource name is the topic name. + * + * @example + * acs:mns:cn-hangzhou:120886317861****:/queues/test/message + */ + arn?: string; + /** + * @remarks + * The ID of the resource for which alerts are triggered. + * + * @example + * 123 + */ + id?: string; + /** + * @remarks + * The parameters of the alert callback. The parameters are in the JSON format. + * + * @example + * {"customField1":"value1","customField2":"$.name"} + */ + jsonParmas?: string; + /** + * @remarks + * The alert level. Valid values: + * + * * INFO + * * WARN + * * CRITICAL + * + * @example + * CRITICAL + */ + level?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfigTargetList extends $dara.Model { + target?: DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfigTargetListTarget[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfig extends $dara.Model { + /** + * @remarks + * The comparison operator that is used to compare the metric value with the threshold. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday. + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The time period during which the alert rule is effective. + * + * @example + * 00:00-23:59 + */ + effectiveInterval?: string; + /** + * @remarks + * The level of the alert. Valid values: + * + * * critical + * * warn + * * Info + * + * @example + * warn + */ + escalationsLevel?: string; + /** + * @remarks + * The time period during which the alert rule is ineffective. + * + * @example + * 00:00-23:59 + */ + noEffectiveInterval?: string; + /** + * @remarks + * The mute period during which new alert notifications are not sent even if the trigger conditions are met. Unit: seconds. Minimum value: 3600, which is equivalent to one hour. Default value: 86400, which is equivalent to one day. + * + * > Only one alert notification is sent during each mute period even if the metric value exceeds the alert threshold several times. + * + * @example + * 86400 + */ + silenceTime?: string; + /** + * @remarks + * The method used to calculate metric values that trigger alerts. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The resources for which alerts are triggered. + */ + targetList?: DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfigTargetList; + /** + * @remarks + * The alert threshold. + * + * @example + * 5 + */ + threshold?: string; + /** + * @remarks + * The number of times for which the threshold can be consecutively exceeded. + * + * > A metric triggers an alert only after the metric value reaches the threshold consecutively for the specified times. + * + * @example + * 3 + */ + times?: string; + /** + * @remarks + * The callback URL to which a POST request is sent when an alert is triggered based on the alert rule. + * + * @example + * http://www.aliyun.com + */ + webhook?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfig extends $dara.Model { + alertConfig?: DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfig[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessMatchExpressMatchExpress extends $dara.Model { + /** + * @remarks + * The matching condition. Valid values: + * + * * all (default): matches all + * * startWith: starts with a prefix + * * endWith: ends with a suffix + * * contains: contains + * * notContains: excludes + * * equals: equals + * + * > The matched instances are monitored by the process monitoring task. + * + * @example + * all + */ + function?: string; + /** + * @remarks + * The criteria based on which the instances are matched. + * + * > Set the value to `name`. The value name indicates that the instances are matched based on the instance name. + * + * @example + * name + */ + name?: string; + /** + * @remarks + * The keyword used to match the instance name. + * + * @example + * portalHost + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessMatchExpress extends $dara.Model { + matchExpress?: DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessMatchExpressMatchExpress[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcess extends $dara.Model { + /** + * @remarks + * The alert rule configurations. + */ + alertConfig?: DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfig; + /** + * @remarks + * The ID of the application group. + * + * @example + * 12345 + */ + groupId?: string; + /** + * @remarks + * The ID of the process monitoring task. + * + * @example + * 3F6150F9-45C7-43F9-9578-A58B2E72**** + */ + id?: string; + /** + * @remarks + * The matching conditions. + * + * > Only the instances that meet the conditional expressions are monitored by the process monitoring task. + */ + matchExpress?: DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessMatchExpress; + /** + * @remarks + * The logical operator used between conditional expressions that are used to match instances. Valid values: + * + * * all + * * and + * * or + * + * @example + * and + */ + matchExpressFilterRelation?: string; + /** + * @remarks + * The process name. + * + * @example + * sshd + */ + processName?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeGroupMonitoringAgentProcessResponseBodyProcesses extends $dara.Model { + process?: DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcess[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeGroupMonitoringAgentProcessResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status codes. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The page number. Default value: 1 + * + * @example + * 1 + */ + pageNumber?: string; + /** + * @remarks + * The number of entries per page. Default value: 10. + * + * @example + * 10 + */ + pageSize?: string; + /** + * @remarks + * The process monitoring tasks. + */ + processes?: DescribeGroupMonitoringAgentProcessResponseBodyProcesses; + /** + * @remarks + * The request ID. + * + * @example + * 7985D471-3FA8-4EE9-8F4B-45C19DF3D36F + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: Valid values: true and false. + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The total number of returned entries. + * + * @example + * 28 + */ + total?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessResponseBody.js new file mode 100644 index 0000000..1f1ce24 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessResponseBody.js @@ -0,0 +1,286 @@ +"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.DescribeGroupMonitoringAgentProcessResponseBody = exports.DescribeGroupMonitoringAgentProcessResponseBodyProcesses = exports.DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcess = exports.DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessMatchExpress = exports.DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessMatchExpressMatchExpress = exports.DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfig = exports.DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfig = exports.DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfigTargetList = exports.DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfigTargetListTarget = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfigTargetListTarget extends $dara.Model { + static names() { + return { + arn: 'Arn', + id: 'Id', + jsonParmas: 'JsonParmas', + level: 'Level', + }; + } + static types() { + return { + arn: 'string', + id: 'string', + jsonParmas: 'string', + level: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfigTargetListTarget = DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfigTargetListTarget; +class DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfigTargetList extends $dara.Model { + static names() { + return { + target: 'Target', + }; + } + static types() { + return { + target: { 'type': 'array', 'itemType': DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfigTargetListTarget }, + }; + } + validate() { + if (Array.isArray(this.target)) { + $dara.Model.validateArray(this.target); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfigTargetList = DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfigTargetList; +class DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfig extends $dara.Model { + static names() { + return { + comparisonOperator: 'ComparisonOperator', + effectiveInterval: 'EffectiveInterval', + escalationsLevel: 'EscalationsLevel', + noEffectiveInterval: 'NoEffectiveInterval', + silenceTime: 'SilenceTime', + statistics: 'Statistics', + targetList: 'TargetList', + threshold: 'Threshold', + times: 'Times', + webhook: 'Webhook', + }; + } + static types() { + return { + comparisonOperator: 'string', + effectiveInterval: 'string', + escalationsLevel: 'string', + noEffectiveInterval: 'string', + silenceTime: 'string', + statistics: 'string', + targetList: DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfigTargetList, + threshold: 'string', + times: 'string', + webhook: 'string', + }; + } + validate() { + if (this.targetList && typeof this.targetList.validate === 'function') { + this.targetList.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfig = DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfig; +class DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfig extends $dara.Model { + static names() { + return { + alertConfig: 'AlertConfig', + }; + } + static types() { + return { + alertConfig: { 'type': 'array', 'itemType': DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfig }, + }; + } + validate() { + if (Array.isArray(this.alertConfig)) { + $dara.Model.validateArray(this.alertConfig); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfig = DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfig; +class DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessMatchExpressMatchExpress extends $dara.Model { + static names() { + return { + function: 'Function', + name: 'Name', + value: 'Value', + }; + } + static types() { + return { + function: 'string', + name: 'string', + value: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessMatchExpressMatchExpress = DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessMatchExpressMatchExpress; +class DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessMatchExpress extends $dara.Model { + static names() { + return { + matchExpress: 'MatchExpress', + }; + } + static types() { + return { + matchExpress: { 'type': 'array', 'itemType': DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessMatchExpressMatchExpress }, + }; + } + validate() { + if (Array.isArray(this.matchExpress)) { + $dara.Model.validateArray(this.matchExpress); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessMatchExpress = DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessMatchExpress; +class DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcess extends $dara.Model { + static names() { + return { + alertConfig: 'AlertConfig', + groupId: 'GroupId', + id: 'Id', + matchExpress: 'MatchExpress', + matchExpressFilterRelation: 'MatchExpressFilterRelation', + processName: 'ProcessName', + }; + } + static types() { + return { + alertConfig: DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfig, + groupId: 'string', + id: 'string', + matchExpress: DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessMatchExpress, + matchExpressFilterRelation: 'string', + processName: 'string', + }; + } + validate() { + if (this.alertConfig && typeof this.alertConfig.validate === 'function') { + this.alertConfig.validate(); + } + if (this.matchExpress && typeof this.matchExpress.validate === 'function') { + this.matchExpress.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcess = DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcess; +class DescribeGroupMonitoringAgentProcessResponseBodyProcesses extends $dara.Model { + static names() { + return { + process: 'Process', + }; + } + static types() { + return { + process: { 'type': 'array', 'itemType': DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcess }, + }; + } + validate() { + if (Array.isArray(this.process)) { + $dara.Model.validateArray(this.process); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeGroupMonitoringAgentProcessResponseBodyProcesses = DescribeGroupMonitoringAgentProcessResponseBodyProcesses; +class DescribeGroupMonitoringAgentProcessResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + processes: 'Processes', + requestId: 'RequestId', + success: 'Success', + total: 'Total', + }; + } + static types() { + return { + code: 'string', + message: 'string', + pageNumber: 'string', + pageSize: 'string', + processes: DescribeGroupMonitoringAgentProcessResponseBodyProcesses, + requestId: 'string', + success: 'boolean', + total: 'string', + }; + } + validate() { + if (this.processes && typeof this.processes.validate === 'function') { + this.processes.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeGroupMonitoringAgentProcessResponseBody = DescribeGroupMonitoringAgentProcessResponseBody; +//# sourceMappingURL=DescribeGroupMonitoringAgentProcessResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessResponseBody.js.map new file mode 100644 index 0000000..3c65f27 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeGroupMonitoringAgentProcessResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeGroupMonitoringAgentProcessResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeGroupMonitoringAgentProcessResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qGAAsG,SAAQ,KAAK,CAAC,KAAK;IAqDpI,MAAM,CAAC,KAAK;QACV,OAAO;YACL,GAAG,EAAE,KAAK;YACV,EAAE,EAAE,IAAI;YACR,UAAU,EAAE,YAAY;YACxB,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,GAAG,EAAE,QAAQ;YACb,EAAE,EAAE,QAAQ;YACZ,UAAU,EAAE,QAAQ;YACpB,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CA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AS,EAAE,WAAW;YACtB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,wDAAwD;YACnE,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,SAAS,IAAI,OAAQ,IAAI,CAAC,SAAiB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YAC3E,IAAI,CAAC,SAAiB,CAAC,QAAQ,EAAE,CAAC;QACrC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApGD,0GAoGC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListRequest.d.ts new file mode 100644 index 0000000..0491360 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListRequest.d.ts @@ -0,0 +1,66 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeHostAvailabilityListRequest extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * @example + * 12345 + */ + groupId?: number; + /** + * @remarks + * The ID of the availability monitoring task. + * + * @example + * 123456 + */ + id?: number; + /** + * @remarks + * The IDs of the availability monitoring tasks. Separate multiple IDs with commas (,). + * + * @example + * 123456,345678 + */ + ids?: string; + /** + * @remarks + * The page number. + * + * Pages start from page 1. Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * Minimum value: 1. Default value: 10 + * + * @example + * 10 + */ + pageSize?: number; + regionId?: string; + /** + * @remarks + * The name of the availability monitoring task. + * + * @example + * ecs_instance + */ + taskName?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListRequest.js new file mode 100644 index 0000000..f2bf5d6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListRequest.js @@ -0,0 +1,70 @@ +"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.DescribeHostAvailabilityListRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeHostAvailabilityListRequest extends $dara.Model { + static names() { + return { + groupId: 'GroupId', + id: 'Id', + ids: 'Ids', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + taskName: 'TaskName', + }; + } + static types() { + return { + groupId: 'number', + id: 'number', + ids: 'string', + pageNumber: 'number', + pageSize: 'number', + regionId: 'string', + taskName: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHostAvailabilityListRequest = DescribeHostAvailabilityListRequest; +//# sourceMappingURL=DescribeHostAvailabilityListRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListRequest.js.map new file mode 100644 index 0000000..3ad424e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeHostAvailabilityListRequest.js","sourceRoot":"","sources":["../../src/models/DescribeHostAvailabilityListRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IAsDlE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,EAAE,EAAE,IAAI;YACR,GAAG,EAAE,KAAK;YACV,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,EAAE,EAAE,QAAQ;YACZ,GAAG,EAAE,QAAQ;YACb,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AArFD,kFAqFC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListResponse.d.ts new file mode 100644 index 0000000..8184b6f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeHostAvailabilityListResponseBody } from "./DescribeHostAvailabilityListResponseBody"; +export declare class DescribeHostAvailabilityListResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeHostAvailabilityListResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListResponse.js new file mode 100644 index 0000000..5fa980c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListResponse.js @@ -0,0 +1,69 @@ +"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.DescribeHostAvailabilityListResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeHostAvailabilityListResponseBody_1 = require("./DescribeHostAvailabilityListResponseBody"); +class DescribeHostAvailabilityListResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeHostAvailabilityListResponseBody_1.DescribeHostAvailabilityListResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHostAvailabilityListResponse = DescribeHostAvailabilityListResponse; +//# sourceMappingURL=DescribeHostAvailabilityListResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListResponse.js.map new file mode 100644 index 0000000..c494be5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeHostAvailabilityListResponse.js","sourceRoot":"","sources":["../../src/models/DescribeHostAvailabilityListResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,yGAAsG;AAGtG,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IAInE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,mFAAwC;SAC/C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,oFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListResponseBody.d.ts new file mode 100644 index 0000000..d593fed --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListResponseBody.d.ts @@ -0,0 +1,493 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigEscalationListEscalationList extends $dara.Model { + /** + * @remarks + * The method used to calculate metric values that trigger alerts. Valid values: + * + * * Value: the value of the HTTP status code + * * Average: the average HTTP response time + * * Value: the value of the Telnet status code + * * TelnetLatency: the average Telnet response time + * * Average: the average Ping packet loss rate + * + * @example + * Value + */ + aggregate?: string; + /** + * @remarks + * The name of the metric. Valid values: + * + * * HttpStatus + * * HttpLatency + * * TelnetStatus + * * TelnetLatency + * * PingLostRate + * + * @example + * HttpStatus + */ + metricName?: string; + /** + * @remarks + * The comparison operator that is used in the alert rule. Valid values: + * + * * `>` + * * `>=` + * * `<` + * * `<=` + * * `=` + * + * @example + * = + */ + operator?: string; + /** + * @remarks + * The consecutive number of times for which the metric value is measured before an alert is triggered. + * + * @example + * 3 + */ + times?: string; + /** + * @remarks + * The alert threshold. + * + * @example + * 400 + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigEscalationList extends $dara.Model { + escalationList?: DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigEscalationListEscalationList[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigTargetListTarget extends $dara.Model { + /** + * @remarks + * The Alibaba Cloud Resource Name (ARN) of the function. + * + * Format: `arn:acs:${Service}:${Region}:${Account}:${ResourceType}/${ResourceId}`. Fields: + * + * * Service: the service code + * * Region: the region ID + * * Account: the ID of the Alibaba Cloud account + * * ResourceType: the resource type + * * ResourceId: the resource ID. + * + * @example + * acs:mns:cn-hangzhou:17754132319*****:/queues/test/messages + */ + arn?: string; + /** + * @remarks + * The ID of the resource that triggers the alert. + * + * @example + * 1 + */ + id?: string; + /** + * @remarks + * The JSON-formatted parameters of the alert callback. + * + * @example + * {"key1":"value1"} + */ + jsonParams?: string; + /** + * @remarks + * The alert level. Valid values: + * + * * INFO + * * WARN + * * CRITICAL + * + * @example + * INFO + */ + level?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigTargetList extends $dara.Model { + target?: DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigTargetListTarget[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfig extends $dara.Model { + /** + * @remarks + * The end of the time period during which the alert rule is effective. Valid values: 0 to 23. + * + * For example, if the `AlertConfig.StartTime` parameter is set to 0 and the `AlertConfig.EndTime` parameter is set to 22, the alert rule is effective from 00:00:00 to 22:00:00. + * + * > Alert notifications are sent based on the specified threshold only if the alert rule is effective. + * + * @example + * 22 + */ + endTime?: number; + /** + * @remarks + * The trigger conditions of the alert rule. + */ + escalationList?: DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigEscalationList; + /** + * @remarks + * The alert notification methods. Valid values: + * + * * 2: Alert notifications are sent by using emails and DingTalk chatbots. + * * 1: Alert notifications are sent by using emails and DingTalk chatbots. + * * 0: Alert notifications are sent by using emails and DingTalk chatbots. + * + * @example + * 0 + */ + notifyType?: number; + /** + * @remarks + * The mute period during which new alerts are not sent even if the trigger conditions are met. Unit: seconds. Default value: 86400. + * + * @example + * 86400 + */ + silenceTime?: number; + /** + * @remarks + * The beginning of the time period during which the alert rule is effective. Valid values: 0 to 23. + * + * For example, if the `AlertConfig.StartTime` parameter is set to 0 and the `AlertConfig.EndTime` parameter is set to 22, the alert rule is effective from 00:00:00 to 22:00:00. + * + * > Alert notifications are sent based on the specified threshold only if the alert rule is effective. + * + * @example + * 0 + */ + startTime?: number; + /** + * @remarks + * The monitored resources. + */ + targetList?: DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigTargetList; + /** + * @remarks + * The callback URL. + * + * CloudMonitor pushes an alert notification to the specified callback URL by sending an HTTP POST request. Only the HTTP protocol is supported. + * + * @example + * https://www.aliyun.com + */ + webHook?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigInstances extends $dara.Model { + instance?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigTaskOption extends $dara.Model { + /** + * @remarks + * The response to the HTTP request. + * + * @example + * OK + */ + httpKeyword?: string; + /** + * @remarks + * The HTTP request method. Valid values: + * + * * GET + * * POST + * * HEAD + * + * @example + * GET + */ + httpMethod?: string; + /** + * @remarks + * The method to trigger an alert. The alert can be triggered based on whether the specified alert rule is included in the response body. Valid values: + * + * * true: If the HTTP response body includes the alert rule, an alert is triggered. + * * false: If the HTTP response does not include the alert rule, an alert is triggered. + * + * @example + * true + */ + httpNegative?: boolean; + /** + * @remarks + * The content of the HTTP POST request. + * + * @example + * params1=paramsValue1 + */ + httpPostContent?: string; + /** + * @remarks + * The character set that is used in the HTTP response. + * + * @example + * UTF-8 + */ + httpResponseCharset?: string; + /** + * @remarks + * The URI that you want to monitor. If the TaskType parameter is set to HTTP, this parameter is required. + * + * @example + * https://www.aliyun.com + */ + httpURI?: string; + /** + * @remarks + * The interval at which detection requests are sent. Unit: seconds. + * + * @example + * 60 + */ + interval?: number; + /** + * @remarks + * The domain name or IP address that you want to monitor. + * + * @example + * ssh.aliyun.com + */ + telnetOrPingHost?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfig extends $dara.Model { + /** + * @remarks + * The configurations of the alert rule. + */ + alertConfig?: DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfig; + /** + * @remarks + * Indicates whether the availability monitoring task is disabled. Valid values: + * + * * true: The availability monitoring task is disabled. + * * false: The availability monitoring task is enabled. + * + * @example + * false + */ + disabled?: boolean; + /** + * @remarks + * The ID of the application group. + * + * @example + * 12345 + */ + groupId?: number; + /** + * @remarks + * The name of the application group. + * + * @example + * Group_ECS + */ + groupName?: string; + /** + * @remarks + * The ID of the availability monitoring task. + * + * @example + * 123456 + */ + id?: number; + /** + * @remarks + * The ECS instances that are monitored. + */ + instances?: DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigInstances; + /** + * @remarks + * The name of the availability monitoring task. + * + * @example + * ecs_instance + */ + taskName?: string; + /** + * @remarks + * The optional parameters of the availability monitoring task. + */ + taskOption?: DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigTaskOption; + /** + * @remarks + * The range of instances that are monitored by the availability monitoring task. Valid values: + * + * * GROUP: All ECS instances in the application group are monitored. + * * GROUP_SPEC_INSTANCE: Specified ECS instances in the application group are monitored. + * + * @example + * GROUP + */ + taskScope?: string; + /** + * @remarks + * The task type. Valid values: + * + * * PING + * * TELNET + * * HTTP + * + * @example + * HTTP + */ + taskType?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeHostAvailabilityListResponseBodyTaskList extends $dara.Model { + nodeTaskConfig?: DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfig[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeHostAvailabilityListResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 4A288E86-45C3-4858-9DB0-6D85B10BD92A + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The details of the availability monitoring tasks. + */ + taskList?: DescribeHostAvailabilityListResponseBodyTaskList; + /** + * @remarks + * The total number of returned entries. + * + * @example + * 1 + */ + total?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListResponseBody.js new file mode 100644 index 0000000..ef484dd --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListResponseBody.js @@ -0,0 +1,327 @@ +"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.DescribeHostAvailabilityListResponseBody = exports.DescribeHostAvailabilityListResponseBodyTaskList = exports.DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfig = exports.DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigTaskOption = exports.DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigInstances = exports.DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfig = exports.DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigTargetList = exports.DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigTargetListTarget = exports.DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigEscalationList = exports.DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigEscalationListEscalationList = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigEscalationListEscalationList extends $dara.Model { + static names() { + return { + aggregate: 'Aggregate', + metricName: 'MetricName', + operator: 'Operator', + times: 'Times', + value: 'Value', + }; + } + static types() { + return { + aggregate: 'string', + metricName: 'string', + operator: 'string', + times: 'string', + value: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigEscalationListEscalationList = DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigEscalationListEscalationList; +class DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigEscalationList extends $dara.Model { + static names() { + return { + escalationList: 'escalationList', + }; + } + static types() { + return { + escalationList: { 'type': 'array', 'itemType': DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigEscalationListEscalationList }, + }; + } + validate() { + if (Array.isArray(this.escalationList)) { + $dara.Model.validateArray(this.escalationList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigEscalationList = DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigEscalationList; +class DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigTargetListTarget extends $dara.Model { + static names() { + return { + arn: 'Arn', + id: 'Id', + jsonParams: 'JsonParams', + level: 'Level', + }; + } + static types() { + return { + arn: 'string', + id: 'string', + jsonParams: 'string', + level: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigTargetListTarget = DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigTargetListTarget; +class DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigTargetList extends $dara.Model { + static names() { + return { + target: 'Target', + }; + } + static types() { + return { + target: { 'type': 'array', 'itemType': DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigTargetListTarget }, + }; + } + validate() { + if (Array.isArray(this.target)) { + $dara.Model.validateArray(this.target); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigTargetList = DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigTargetList; +class DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfig extends $dara.Model { + static names() { + return { + endTime: 'EndTime', + escalationList: 'EscalationList', + notifyType: 'NotifyType', + silenceTime: 'SilenceTime', + startTime: 'StartTime', + targetList: 'TargetList', + webHook: 'WebHook', + }; + } + static types() { + return { + endTime: 'number', + escalationList: DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigEscalationList, + notifyType: 'number', + silenceTime: 'number', + startTime: 'number', + targetList: DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigTargetList, + webHook: 'string', + }; + } + validate() { + if (this.escalationList && typeof this.escalationList.validate === 'function') { + this.escalationList.validate(); + } + if (this.targetList && typeof this.targetList.validate === 'function') { + this.targetList.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfig = DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfig; +class DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigInstances extends $dara.Model { + static names() { + return { + instance: 'Instance', + }; + } + static types() { + return { + instance: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.instance)) { + $dara.Model.validateArray(this.instance); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigInstances = DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigInstances; +class DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigTaskOption extends $dara.Model { + static names() { + return { + httpKeyword: 'HttpKeyword', + httpMethod: 'HttpMethod', + httpNegative: 'HttpNegative', + httpPostContent: 'HttpPostContent', + httpResponseCharset: 'HttpResponseCharset', + httpURI: 'HttpURI', + interval: 'Interval', + telnetOrPingHost: 'TelnetOrPingHost', + }; + } + static types() { + return { + httpKeyword: 'string', + httpMethod: 'string', + httpNegative: 'boolean', + httpPostContent: 'string', + httpResponseCharset: 'string', + httpURI: 'string', + interval: 'number', + telnetOrPingHost: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigTaskOption = DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigTaskOption; +class DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfig extends $dara.Model { + static names() { + return { + alertConfig: 'AlertConfig', + disabled: 'Disabled', + groupId: 'GroupId', + groupName: 'GroupName', + id: 'Id', + instances: 'Instances', + taskName: 'TaskName', + taskOption: 'TaskOption', + taskScope: 'TaskScope', + taskType: 'TaskType', + }; + } + static types() { + return { + alertConfig: DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfig, + disabled: 'boolean', + groupId: 'number', + groupName: 'string', + id: 'number', + instances: DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigInstances, + taskName: 'string', + taskOption: DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigTaskOption, + taskScope: 'string', + taskType: 'string', + }; + } + validate() { + if (this.alertConfig && typeof this.alertConfig.validate === 'function') { + this.alertConfig.validate(); + } + if (this.instances && typeof this.instances.validate === 'function') { + this.instances.validate(); + } + if (this.taskOption && typeof this.taskOption.validate === 'function') { + this.taskOption.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfig = DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfig; +class DescribeHostAvailabilityListResponseBodyTaskList extends $dara.Model { + static names() { + return { + nodeTaskConfig: 'NodeTaskConfig', + }; + } + static types() { + return { + nodeTaskConfig: { 'type': 'array', 'itemType': DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfig }, + }; + } + validate() { + if (Array.isArray(this.nodeTaskConfig)) { + $dara.Model.validateArray(this.nodeTaskConfig); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHostAvailabilityListResponseBodyTaskList = DescribeHostAvailabilityListResponseBodyTaskList; +class DescribeHostAvailabilityListResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + taskList: 'TaskList', + total: 'Total', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + taskList: DescribeHostAvailabilityListResponseBodyTaskList, + total: 'number', + }; + } + validate() { + if (this.taskList && typeof this.taskList.validate === 'function') { + this.taskList.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHostAvailabilityListResponseBody = DescribeHostAvailabilityListResponseBody; +//# sourceMappingURL=DescribeHostAvailabilityListResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListResponseBody.js.map new file mode 100644 index 0000000..9e4617d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHostAvailabilityListResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeHostAvailabilityListResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeHostAvailabilityListResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qGAAsG,SAAQ,KAAK,CAAC,KAAK;IA2DpI,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;YACtB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,OAAO;YACd,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,QAAQ;YACnB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,KAAK,EAAE,QAAQ;YACf,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtFD,sNAsFC;AAED,MAAa,uFAAwF,SAAQ,KAAK,CAAC,KAAK;IAEtH,MAAM,CAAC,KAAK;QACV,OAAO;YACL,cAAc,EAAE,gBAAgB;SACjC,CAAC;IACJ,CAAC;IAED,MAAM,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AK,UAAU,EAAE,CAAC;YACzE,IAAI,CAAC,QAAgB,CAAC,QAAQ,EAAE,CAAC;QACpC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnFD,4FAmFC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListRequest.d.ts new file mode 100644 index 0000000..e4dc490 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListRequest.d.ts @@ -0,0 +1,72 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeHybridMonitorDataListRequest extends $dara.Model { + /** + * @remarks + * The end of the time range to query. + * + * Unit: seconds. + * + * This parameter is required. + * + * @example + * 1653805225 + */ + end?: number; + /** + * @remarks + * The name of the namespace. + * + * For more information about how to query the names of namespaces, see [DescribeHybridMonitorNamespaceList](https://help.aliyun.com/document_detail/428880.html). + * + * This parameter is required. + * + * @example + * default-aliyun + */ + namespace?: string; + /** + * @remarks + * The statistical period of the monitoring data. + * + * Unit: seconds. + * + * @example + * 60 + */ + period?: string; + /** + * @remarks + * The metric name. + * + * > PromQL statements are supported. + * + * This parameter is required. + * + * @example + * AliyunEcs_cpu_total + */ + promSQL?: string; + regionId?: string; + /** + * @remarks + * The start of the time range to query. + * + * Unit: seconds. + * + * This parameter is required. + * + * @example + * 1653804865 + */ + start?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListRequest.js new file mode 100644 index 0000000..66a6db5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListRequest.js @@ -0,0 +1,68 @@ +"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.DescribeHybridMonitorDataListRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeHybridMonitorDataListRequest extends $dara.Model { + static names() { + return { + end: 'End', + namespace: 'Namespace', + period: 'Period', + promSQL: 'PromSQL', + regionId: 'RegionId', + start: 'Start', + }; + } + static types() { + return { + end: 'number', + namespace: 'string', + period: 'string', + promSQL: 'string', + regionId: 'string', + start: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHybridMonitorDataListRequest = DescribeHybridMonitorDataListRequest; +//# sourceMappingURL=DescribeHybridMonitorDataListRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListRequest.js.map new file mode 100644 index 0000000..9e72b89 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeHybridMonitorDataListRequest.js","sourceRoot":"","sources":["../../src/models/DescribeHybridMonitorDataListRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IA4DnE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,GAAG,EAAE,KAAK;YACV,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,GAAG,EAAE,QAAQ;YACb,SAAS,EAAE,QAAQ;YACnB,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE,QAAQ;YACjB,QAAQ,EAAE,QAAQ;YAClB,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzFD,oFAyFC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListResponse.d.ts new file mode 100644 index 0000000..226dd4a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeHybridMonitorDataListResponseBody } from "./DescribeHybridMonitorDataListResponseBody"; +export declare class DescribeHybridMonitorDataListResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeHybridMonitorDataListResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListResponse.js new file mode 100644 index 0000000..97fc23f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListResponse.js @@ -0,0 +1,69 @@ +"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.DescribeHybridMonitorDataListResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeHybridMonitorDataListResponseBody_1 = require("./DescribeHybridMonitorDataListResponseBody"); +class DescribeHybridMonitorDataListResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeHybridMonitorDataListResponseBody_1.DescribeHybridMonitorDataListResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHybridMonitorDataListResponse = DescribeHybridMonitorDataListResponse; +//# sourceMappingURL=DescribeHybridMonitorDataListResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListResponse.js.map new file mode 100644 index 0000000..b817b6f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeHybridMonitorDataListResponse.js","sourceRoot":"","sources":["../../src/models/DescribeHybridMonitorDataListResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,2GAAwG;AAGxG,MAAa,qCAAsC,SAAQ,KAAK,CAAC,KAAK;IAIpE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,qFAAyC;SAChD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,sFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListResponseBody.d.ts new file mode 100644 index 0000000..397d353 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListResponseBody.d.ts @@ -0,0 +1,143 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeHybridMonitorDataListResponseBodyTimeSeriesLabels extends $dara.Model { + /** + * @remarks + * The tag key. + * + * @example + * instanceId + */ + k?: string; + /** + * @remarks + * The tag value. + * + * @example + * i-rj99xc6cptkk64ml**** + */ + v?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeHybridMonitorDataListResponseBodyTimeSeriesValues extends $dara.Model { + /** + * @remarks + * The timestamp that indicates the time when the metric value is collected. + * + * Unit: seconds. + * + * @example + * 1653804865 + */ + ts?: string; + /** + * @remarks + * The metric value. + * + * @example + * 0.13 + */ + v?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeHybridMonitorDataListResponseBodyTimeSeries extends $dara.Model { + /** + * @remarks + * The tags of the time dimension. + */ + labels?: DescribeHybridMonitorDataListResponseBodyTimeSeriesLabels[]; + /** + * @remarks + * The metric name. + * + * @example + * AliyunEcs_cpu_total + */ + metricName?: string; + /** + * @remarks + * The metric values that are collected at different timestamps. + */ + values?: DescribeHybridMonitorDataListResponseBodyTimeSeriesValues[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeHybridMonitorDataListResponseBody extends $dara.Model { + /** + * @remarks + * The response code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * end timestamp must not be before start time. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * C240412F-3F5F-50E2-ACEC-DE808EF9C4BE + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + /** + * @remarks + * The returned monitoring data. + */ + timeSeries?: DescribeHybridMonitorDataListResponseBodyTimeSeries[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListResponseBody.js new file mode 100644 index 0000000..a525a39 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListResponseBody.js @@ -0,0 +1,140 @@ +"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.DescribeHybridMonitorDataListResponseBody = exports.DescribeHybridMonitorDataListResponseBodyTimeSeries = exports.DescribeHybridMonitorDataListResponseBodyTimeSeriesValues = exports.DescribeHybridMonitorDataListResponseBodyTimeSeriesLabels = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeHybridMonitorDataListResponseBodyTimeSeriesLabels extends $dara.Model { + static names() { + return { + k: 'K', + v: 'V', + }; + } + static types() { + return { + k: 'string', + v: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHybridMonitorDataListResponseBodyTimeSeriesLabels = DescribeHybridMonitorDataListResponseBodyTimeSeriesLabels; +class DescribeHybridMonitorDataListResponseBodyTimeSeriesValues extends $dara.Model { + static names() { + return { + ts: 'Ts', + v: 'V', + }; + } + static types() { + return { + ts: 'string', + v: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHybridMonitorDataListResponseBodyTimeSeriesValues = DescribeHybridMonitorDataListResponseBodyTimeSeriesValues; +class DescribeHybridMonitorDataListResponseBodyTimeSeries extends $dara.Model { + static names() { + return { + labels: 'Labels', + metricName: 'MetricName', + values: 'Values', + }; + } + static types() { + return { + labels: { 'type': 'array', 'itemType': DescribeHybridMonitorDataListResponseBodyTimeSeriesLabels }, + metricName: 'string', + values: { 'type': 'array', 'itemType': DescribeHybridMonitorDataListResponseBodyTimeSeriesValues }, + }; + } + validate() { + if (Array.isArray(this.labels)) { + $dara.Model.validateArray(this.labels); + } + if (Array.isArray(this.values)) { + $dara.Model.validateArray(this.values); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHybridMonitorDataListResponseBodyTimeSeries = DescribeHybridMonitorDataListResponseBodyTimeSeries; +class DescribeHybridMonitorDataListResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + timeSeries: 'TimeSeries', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'string', + timeSeries: { 'type': 'array', 'itemType': DescribeHybridMonitorDataListResponseBodyTimeSeries }, + }; + } + validate() { + if (Array.isArray(this.timeSeries)) { + $dara.Model.validateArray(this.timeSeries); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHybridMonitorDataListResponseBody = DescribeHybridMonitorDataListResponseBody; +//# sourceMappingURL=DescribeHybridMonitorDataListResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListResponseBody.js.map new file mode 100644 index 0000000..dda6a1e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorDataListResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeHybridMonitorDataListResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeHybridMonitorDataListResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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yEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListRequest.d.ts new file mode 100644 index 0000000..d222f47 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListRequest.d.ts @@ -0,0 +1,63 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeHybridMonitorNamespaceListRequest extends $dara.Model { + /** + * @remarks + * The search keyword. + * + * @example + * aliyun + */ + keyword?: string; + /** + * @remarks + * The name of the namespace. + * + * The name can contain letters, digits, and hyphens (-). + * + * @example + * aliyun-test + */ + namespace?: string; + /** + * @remarks + * The page number. + * + * Page numbers start from 1. Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * Page numbers start from 1. Default value: 10. + * + * @example + * 10 + */ + pageSize?: number; + regionId?: string; + /** + * @remarks + * Specifies whether to return the configuration details of metric import tasks for Alibaba Cloud services and the number of metric import tasks for third-party services. Valid values: + * + * * true + * * false (default) + * + * @example + * false + */ + showTaskStatistic?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListRequest.js new file mode 100644 index 0000000..af1951d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListRequest.js @@ -0,0 +1,68 @@ +"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.DescribeHybridMonitorNamespaceListRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeHybridMonitorNamespaceListRequest extends $dara.Model { + static names() { + return { + keyword: 'Keyword', + namespace: 'Namespace', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + showTaskStatistic: 'ShowTaskStatistic', + }; + } + static types() { + return { + keyword: 'string', + namespace: 'string', + pageNumber: 'number', + pageSize: 'number', + regionId: 'string', + showTaskStatistic: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHybridMonitorNamespaceListRequest = DescribeHybridMonitorNamespaceListRequest; +//# sourceMappingURL=DescribeHybridMonitorNamespaceListRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListRequest.js.map new file mode 100644 index 0000000..c1f5cdc --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeHybridMonitorNamespaceListRequest.js","sourceRoot":"","sources":["../../src/models/DescribeHybridMonitorNamespaceListRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yCAA0C,SAAQ,KAAK,CAAC,KAAK;IAmDxE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,iBAAiB,EAAE,mBAAmB;SACvC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,iBAAiB,EAAE,SAAS;SAC7B,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAhFD,8FAgFC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListResponse.d.ts new file mode 100644 index 0000000..e4e9ad4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeHybridMonitorNamespaceListResponseBody } from "./DescribeHybridMonitorNamespaceListResponseBody"; +export declare class DescribeHybridMonitorNamespaceListResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeHybridMonitorNamespaceListResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListResponse.js new file mode 100644 index 0000000..8e3a8b0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListResponse.js @@ -0,0 +1,69 @@ +"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.DescribeHybridMonitorNamespaceListResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeHybridMonitorNamespaceListResponseBody_1 = require("./DescribeHybridMonitorNamespaceListResponseBody"); +class DescribeHybridMonitorNamespaceListResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeHybridMonitorNamespaceListResponseBody_1.DescribeHybridMonitorNamespaceListResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHybridMonitorNamespaceListResponse = DescribeHybridMonitorNamespaceListResponse; +//# sourceMappingURL=DescribeHybridMonitorNamespaceListResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListResponse.js.map new file mode 100644 index 0000000..012345b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeHybridMonitorNamespaceListResponse.js","sourceRoot":"","sources":["../../src/models/DescribeHybridMonitorNamespaceListResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,qHAAkH;AAGlH,MAAa,0CAA2C,SAAQ,KAAK,CAAC,KAAK;IAIzE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,+FAA8C;SACrD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,gGAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListResponseBody.d.ts new file mode 100644 index 0000000..5182890 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListResponseBody.d.ts @@ -0,0 +1,308 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricListNamespaceListMetricList extends $dara.Model { + /** + * @remarks + * The metrics. + */ + list?: string[]; + /** + * @remarks + * The collection period of the metric. + * + * Unit: seconds. + * + * @example + * 60 + */ + period?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricListNamespaceList extends $dara.Model { + /** + * @remarks + * The metrics for the Alibaba Cloud service. + */ + metricList?: DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricListNamespaceListMetricList[]; + /** + * @remarks + * The namespace for the Alibaba Cloud service. + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricList extends $dara.Model { + /** + * @remarks + * The namespaces. + */ + namespaceList?: DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricListNamespaceList[]; + /** + * @remarks + * The account that is used to create the namespace. + * + * @example + * 120886317861**** + */ + userId?: number; + /** + * @remarks + * The configuration file of the Alibaba Cloud service that you want to monitor by using Hybrid Cloud Monitoring. + * + * * namespace: the namespace of the Alibaba Cloud service. + * * metric_list: the metrics of the Alibaba Cloud service. + * * dimension: the resources of the Alibaba Cloud service that you want to monitor by using Hybrid Cloud Monitoring. If you do not specify a dimension, all resources of the Alibaba Cloud service are monitored. + * + * @example + * products:- namespace: acs_ecs_dashboard metric_info: - metric_list: - cpu_total dimension: \\"\\" + */ + YAMLConfig?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceDetail extends $dara.Model { + /** + * @remarks + * The region where the metric data is stored. + * + * > This parameter is returned if you select `m_prom_user` for `NamespaceType` when you create a namespace. + * + * @example + * cn-hangzhou + */ + namespaceRegion?: string; + prometheusInstanceId?: string; + /** + * @remarks + * The project where the metric data is located. + * + * > This parameter is returned if you select `m_prom_user` for `NamespaceType` when you create a namespace. + * + * @example + * cms-hybrid-120886317861****-cn-hangzhou-a83d + */ + SLSProject?: string; + /** + * @remarks + * The data retention period. Valid values: + * + * * cms.s1.large (Retention Period 15 Days) + * * cms.s1.xlarge (Retention Period 32 Days) + * * cms.s1.2xlarge (Retention Period 63 Days) + * * cms.s1.3xlarge (Retention Period 93 Days) + * * cms.s1.6xlarge (Retention Period 185 Days) + * * cms.s1.12xlarge (Retention Period 367 Days) + * + * @example + * cms.s1.3xlarge + */ + spec?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespace extends $dara.Model { + /** + * @remarks + * The configuration details of metric import tasks for Alibaba Cloud services. + */ + aliyunProductMetricList?: DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricList[]; + /** + * @remarks + * The timestamp that was generated when the namespace was created. + * + * Unit: milliseconds. + * + * @example + * 1652682744000 + */ + createTime?: string; + /** + * @remarks + * The description of the namespace. + * + * @example + * aliyun-test + */ + description?: string; + /** + * @remarks + * The details of the data retention period. + */ + detail?: DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceDetail; + /** + * @remarks + * The ID of the namespace. + * + * @example + * 3**** + */ + id?: string; + /** + * @remarks + * Indicates whether the namespace is deleted. Valid values: + * + * * 0: The namespace is not deleted. + * * 1: The namespace is deleted. + * + * @example + * 0 + */ + isDelete?: number; + /** + * @remarks + * The timestamp that was generated when the namespace was last modified. + * + * @example + * 1652682744000 + */ + modifyTime?: string; + /** + * @remarks + * The name of the namespace. + * + * @example + * aliyun-test + */ + namespace?: string; + /** + * @remarks + * The storage scheme of metric data. Valid values: + * + * * m_prom_user: The metric data is stored in Simple Log Service. + * * m_prom_pool: The metric data is stored in the storage space provided by CloudMonitor. + * + * @example + * m_prom_user + */ + namespaceType?: string; + /** + * @remarks + * The number of metric import tasks for third-party services. + * + * @example + * 0 + */ + notAliyunTaskNumber?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeHybridMonitorNamespaceListResponseBody extends $dara.Model { + /** + * @remarks + * The response code. + * + * @example + * Success + */ + code?: string; + /** + * @remarks + * The details of the namespaces. + */ + describeHybridMonitorNamespace?: DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespace[]; + /** + * @remarks + * The returned message. + * + * @example + * Specified parameter PageSize is not valid. + */ + message?: string; + /** + * @remarks + * The page number. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * @example + * 10 + */ + pageSize?: number; + /** + * @remarks + * The request ID. + * + * @example + * 1EC450A4-3221-5148-B77E-2827576CFE48 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + /** + * @remarks + * The total number of entries returned. + * + * @example + * 1 + */ + total?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListResponseBody.js new file mode 100644 index 0000000..2d7ef43 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListResponseBody.js @@ -0,0 +1,217 @@ +"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.DescribeHybridMonitorNamespaceListResponseBody = exports.DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespace = exports.DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceDetail = exports.DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricList = exports.DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricListNamespaceList = exports.DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricListNamespaceListMetricList = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricListNamespaceListMetricList extends $dara.Model { + static names() { + return { + list: 'List', + period: 'Period', + }; + } + static types() { + return { + list: { 'type': 'array', 'itemType': 'string' }, + period: 'number', + }; + } + validate() { + if (Array.isArray(this.list)) { + $dara.Model.validateArray(this.list); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricListNamespaceListMetricList = DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricListNamespaceListMetricList; +class DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricListNamespaceList extends $dara.Model { + static names() { + return { + metricList: 'MetricList', + namespace: 'Namespace', + }; + } + static types() { + return { + metricList: { 'type': 'array', 'itemType': DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricListNamespaceListMetricList }, + namespace: 'string', + }; + } + validate() { + if (Array.isArray(this.metricList)) { + $dara.Model.validateArray(this.metricList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricListNamespaceList = DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricListNamespaceList; +class DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricList extends $dara.Model { + static names() { + return { + namespaceList: 'NamespaceList', + userId: 'UserId', + YAMLConfig: 'YAMLConfig', + }; + } + static types() { + return { + namespaceList: { 'type': 'array', 'itemType': DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricListNamespaceList }, + userId: 'number', + YAMLConfig: 'string', + }; + } + validate() { + if (Array.isArray(this.namespaceList)) { + $dara.Model.validateArray(this.namespaceList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricList = DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricList; +class DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceDetail extends $dara.Model { + static names() { + return { + namespaceRegion: 'NamespaceRegion', + prometheusInstanceId: 'PrometheusInstanceId', + SLSProject: 'SLSProject', + spec: 'Spec', + }; + } + static types() { + return { + namespaceRegion: 'string', + prometheusInstanceId: 'string', + SLSProject: 'string', + spec: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceDetail = DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceDetail; +class DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespace extends $dara.Model { + static names() { + return { + aliyunProductMetricList: 'AliyunProductMetricList', + createTime: 'CreateTime', + description: 'Description', + detail: 'Detail', + id: 'Id', + isDelete: 'IsDelete', + modifyTime: 'ModifyTime', + namespace: 'Namespace', + namespaceType: 'NamespaceType', + notAliyunTaskNumber: 'NotAliyunTaskNumber', + }; + } + static types() { + return { + aliyunProductMetricList: { 'type': 'array', 'itemType': DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricList }, + createTime: 'string', + description: 'string', + detail: DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceDetail, + id: 'string', + isDelete: 'number', + modifyTime: 'string', + namespace: 'string', + namespaceType: 'string', + notAliyunTaskNumber: 'number', + }; + } + validate() { + if (Array.isArray(this.aliyunProductMetricList)) { + $dara.Model.validateArray(this.aliyunProductMetricList); + } + if (this.detail && typeof this.detail.validate === 'function') { + this.detail.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespace = DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespace; +class DescribeHybridMonitorNamespaceListResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + describeHybridMonitorNamespace: 'DescribeHybridMonitorNamespace', + message: 'Message', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + requestId: 'RequestId', + success: 'Success', + total: 'Total', + }; + } + static types() { + return { + code: 'string', + describeHybridMonitorNamespace: { 'type': 'array', 'itemType': DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespace }, + message: 'string', + pageNumber: 'number', + pageSize: 'number', + requestId: 'string', + success: 'string', + total: 'number', + }; + } + validate() { + if (Array.isArray(this.describeHybridMonitorNamespace)) { + $dara.Model.validateArray(this.describeHybridMonitorNamespace); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHybridMonitorNamespaceListResponseBody = DescribeHybridMonitorNamespaceListResponseBody; +//# sourceMappingURL=DescribeHybridMonitorNamespaceListResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListResponseBody.js.map new file mode 100644 index 0000000..e1123b7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorNamespaceListResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeHybridMonitorNamespaceListResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeHybridMonitorNamespaceListResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0HAA2H,SAAQ,KAAK,CAAC,KAAK;IAgBzJ,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YAC/C,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;YAC5B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACvC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxCD,gQAwCC;AAED,MAAa,gHAAiH,SAAQ,KAAK,CAAC,KAAK;IAc/I,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CA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,CAAC;IACb,CAAC;CACF;AArGD,wGAqGC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupRequest.d.ts new file mode 100644 index 0000000..6a80451 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupRequest.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeHybridMonitorSLSGroupRequest extends $dara.Model { + /** + * @remarks + * The keyword that is used to search for Logstore groups. + * + * @example + * Logstore + */ + keyword?: string; + /** + * @remarks + * The page number. + * + * Pages start from page 1. Default value: 1. + * + * @example + * 1 + */ + pageNumber?: string; + /** + * @remarks + * The number of entries per page. + * + * Minimum value: 1. Default value: 10. + * + * @example + * 10 + */ + pageSize?: string; + regionId?: string; + /** + * @remarks + * The name of the Logstore group. + * + * @example + * Logstore_test + */ + SLSGroupName?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupRequest.js new file mode 100644 index 0000000..9c1450f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupRequest.js @@ -0,0 +1,66 @@ +"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.DescribeHybridMonitorSLSGroupRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeHybridMonitorSLSGroupRequest extends $dara.Model { + static names() { + return { + keyword: 'Keyword', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + SLSGroupName: 'SLSGroupName', + }; + } + static types() { + return { + keyword: 'string', + pageNumber: 'string', + pageSize: 'string', + regionId: 'string', + SLSGroupName: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHybridMonitorSLSGroupRequest = DescribeHybridMonitorSLSGroupRequest; +//# sourceMappingURL=DescribeHybridMonitorSlsgroupRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupRequest.js.map new file mode 100644 index 0000000..a81d1d8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeHybridMonitorSlsgroupRequest.js","sourceRoot":"","sources":["../../src/models/DescribeHybridMonitorSlsgroupRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IAsCnE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,YAAY,EAAE,cAAc;SAC7B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,YAAY,EAAE,QAAQ;SACvB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjED,oFAiEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupResponse.d.ts new file mode 100644 index 0000000..f5caf99 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeHybridMonitorSLSGroupResponseBody } from "./DescribeHybridMonitorSlsgroupResponseBody"; +export declare class DescribeHybridMonitorSLSGroupResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeHybridMonitorSLSGroupResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupResponse.js new file mode 100644 index 0000000..4390d35 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupResponse.js @@ -0,0 +1,69 @@ +"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.DescribeHybridMonitorSLSGroupResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeHybridMonitorSlsgroupResponseBody_1 = require("./DescribeHybridMonitorSlsgroupResponseBody"); +class DescribeHybridMonitorSLSGroupResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeHybridMonitorSlsgroupResponseBody_1.DescribeHybridMonitorSLSGroupResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHybridMonitorSLSGroupResponse = DescribeHybridMonitorSLSGroupResponse; +//# sourceMappingURL=DescribeHybridMonitorSlsgroupResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupResponse.js.map new file mode 100644 index 0000000..792f423 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeHybridMonitorSlsgroupResponse.js","sourceRoot":"","sources":["../../src/models/DescribeHybridMonitorSlsgroupResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,2GAAwG;AAGxG,MAAa,qCAAsC,SAAQ,KAAK,CAAC,KAAK;IAIpE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,qFAAyC;SAChD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,sFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupResponseBody.d.ts new file mode 100644 index 0000000..3f1a103 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupResponseBody.d.ts @@ -0,0 +1,172 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeHybridMonitorSLSGroupResponseBodyListSLSGroupConfig extends $dara.Model { + /** + * @remarks + * The Logstore. + * + * @example + * Logstore-aliyun-all + */ + SLSLogstore?: string; + /** + * @remarks + * The Simple Log Service project. + * + * @example + * aliyun-project + */ + SLSProject?: string; + /** + * @remarks + * The region ID. + * + * @example + * cn-hangzhou + */ + SLSRegion?: string; + /** + * @remarks + * The member ID. + * + * **Description** This parameter is returned when you call the operation by using an administrative account. + * + * @example + * 120886317861**** + */ + SLSUserId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeHybridMonitorSLSGroupResponseBodyList extends $dara.Model { + /** + * @remarks + * The time when the Logstore group was created. + * + * Unit: milliseconds. + * + * @example + * 1652845630000 + */ + createTime?: string; + /** + * @remarks + * The configurations of the Logstore group. + */ + SLSGroupConfig?: DescribeHybridMonitorSLSGroupResponseBodyListSLSGroupConfig[]; + /** + * @remarks + * The description of the Logstore group. + */ + SLSGroupDescription?: string; + /** + * @remarks + * The name of the Logstore group. + * + * @example + * Logstore_test + */ + SLSGroupName?: string; + /** + * @remarks + * The time when the Logstore group was modified. + * + * Unit: milliseconds. + * + * @example + * 1652845630000 + */ + updateTime?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeHybridMonitorSLSGroupResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The queried Logstore groups. + */ + list?: DescribeHybridMonitorSLSGroupResponseBodyList[]; + /** + * @remarks + * The error message. + * + * @example + * NotFound.SLSGroup + */ + message?: string; + /** + * @remarks + * The page number. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * @example + * 10 + */ + pageSize?: number; + /** + * @remarks + * The request ID. + * + * @example + * 66683237-7126-50F8-BBF8-D67ACC919A17 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + */ + success?: string; + /** + * @remarks + * The total number of entries returned. + * + * @example + * 2 + */ + total?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupResponseBody.js new file mode 100644 index 0000000..4d25be9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupResponseBody.js @@ -0,0 +1,130 @@ +"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.DescribeHybridMonitorSLSGroupResponseBody = exports.DescribeHybridMonitorSLSGroupResponseBodyList = exports.DescribeHybridMonitorSLSGroupResponseBodyListSLSGroupConfig = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeHybridMonitorSLSGroupResponseBodyListSLSGroupConfig extends $dara.Model { + static names() { + return { + SLSLogstore: 'SLSLogstore', + SLSProject: 'SLSProject', + SLSRegion: 'SLSRegion', + SLSUserId: 'SLSUserId', + }; + } + static types() { + return { + SLSLogstore: 'string', + SLSProject: 'string', + SLSRegion: 'string', + SLSUserId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHybridMonitorSLSGroupResponseBodyListSLSGroupConfig = DescribeHybridMonitorSLSGroupResponseBodyListSLSGroupConfig; +class DescribeHybridMonitorSLSGroupResponseBodyList extends $dara.Model { + static names() { + return { + createTime: 'CreateTime', + SLSGroupConfig: 'SLSGroupConfig', + SLSGroupDescription: 'SLSGroupDescription', + SLSGroupName: 'SLSGroupName', + updateTime: 'UpdateTime', + }; + } + static types() { + return { + createTime: 'string', + SLSGroupConfig: { 'type': 'array', 'itemType': DescribeHybridMonitorSLSGroupResponseBodyListSLSGroupConfig }, + SLSGroupDescription: 'string', + SLSGroupName: 'string', + updateTime: 'string', + }; + } + validate() { + if (Array.isArray(this.SLSGroupConfig)) { + $dara.Model.validateArray(this.SLSGroupConfig); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHybridMonitorSLSGroupResponseBodyList = DescribeHybridMonitorSLSGroupResponseBodyList; +class DescribeHybridMonitorSLSGroupResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + list: 'List', + message: 'Message', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + requestId: 'RequestId', + success: 'Success', + total: 'Total', + }; + } + static types() { + return { + code: 'string', + list: { 'type': 'array', 'itemType': DescribeHybridMonitorSLSGroupResponseBodyList }, + message: 'string', + pageNumber: 'number', + pageSize: 'number', + requestId: 'string', + success: 'string', + total: 'number', + }; + } + validate() { + if (Array.isArray(this.list)) { + $dara.Model.validateArray(this.list); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHybridMonitorSLSGroupResponseBody = DescribeHybridMonitorSLSGroupResponseBody; +//# sourceMappingURL=DescribeHybridMonitorSlsgroupResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupResponseBody.js.map new file mode 100644 index 0000000..76dfbbe --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorSlsgroupResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeHybridMonitorSlsgroupResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeHybridMonitorSlsgroupResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,2DAA4D,SAAQ,KAAK,CAAC,KA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C;AAED,MAAa,yCAA0C,SAAQ,KAAK,CAAC,KAAK;IAgExE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,6CAA6C,EAAE;YACpF,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;YACjB,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;YAC5B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACvC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApGD,8FAoGC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListRequest.d.ts new file mode 100644 index 0000000..64672d6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListRequest.d.ts @@ -0,0 +1,102 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeHybridMonitorTaskListRequest extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * For information about how to obtain the ID of an application group, see [DescribeMonitorGroups](https://help.aliyun.com/document_detail/115032.html). + * + * @example + * 3607**** + */ + groupId?: string; + /** + * @remarks + * Specifies whether the returned result includes metric import tasks for Alibaba Cloud services. Valid values: + * + * * true (default): The returned result includes metric import tasks for Alibaba Cloud services. + * * false: The returned result excludes metric import tasks for Alibaba Cloud services. + * + * @example + * true + */ + includeAliyunTask?: boolean; + /** + * @remarks + * The keyword that is used for the search. + * + * @example + * task + */ + keyword?: string; + /** + * @remarks + * The name of the namespace. + * + * For information about how to obtain the name of a namespace, see [DescribeHybridMonitorNamespaceList](https://help.aliyun.com/document_detail/428880.html). + * + * @example + * aliyun + */ + namespace?: string; + /** + * @remarks + * The page number. + * + * Pages start from page 1. Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * Pages start from page 1. Default value: 10. + * + * @example + * 10 + */ + pageSize?: number; + regionId?: string; + /** + * @remarks + * The ID of the member account. + * + * > This parameter is required only if you use a management account to call this operation to delete the metric import tasks that belong to a member in a resource directory. In this case, the `TaskType` parameter is set to `aliyun_fc`. + * + * @example + * 120886317861**** + */ + targetUserId?: number; + /** + * @remarks + * The ID of the metric import task. + * + * @example + * 36**** + */ + taskId?: string; + /** + * @remarks + * The type of the metric import task. Valid values: + * + * * aliyun_fc: metric import tasks for Alibaba Cloud services + * * aliyun_sls: metrics for logs imported from Log Service + * + * @example + * aliyun_fc + */ + taskType?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListRequest.js new file mode 100644 index 0000000..73f35a3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListRequest.js @@ -0,0 +1,76 @@ +"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.DescribeHybridMonitorTaskListRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeHybridMonitorTaskListRequest extends $dara.Model { + static names() { + return { + groupId: 'GroupId', + includeAliyunTask: 'IncludeAliyunTask', + keyword: 'Keyword', + namespace: 'Namespace', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + targetUserId: 'TargetUserId', + taskId: 'TaskId', + taskType: 'TaskType', + }; + } + static types() { + return { + groupId: 'string', + includeAliyunTask: 'boolean', + keyword: 'string', + namespace: 'string', + pageNumber: 'number', + pageSize: 'number', + regionId: 'string', + targetUserId: 'number', + taskId: 'string', + taskType: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHybridMonitorTaskListRequest = DescribeHybridMonitorTaskListRequest; +//# sourceMappingURL=DescribeHybridMonitorTaskListRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListRequest.js.map new file mode 100644 index 0000000..3a7bc0a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeHybridMonitorTaskListRequest.js","sourceRoot":"","sources":["../../src/models/DescribeHybridMonitorTaskListRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IA0FnE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,iBAAiB,EAAE,mBAAmB;YACtC,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,YAAY,EAAE,cAAc;YAC5B,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,iBAAiB,EAAE,SAAS;YAC5B,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,YAAY,EAAE,QAAQ;YACtB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/HD,oFA+HC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListResponse.d.ts new file mode 100644 index 0000000..bcd866b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeHybridMonitorTaskListResponseBody } from "./DescribeHybridMonitorTaskListResponseBody"; +export declare class DescribeHybridMonitorTaskListResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeHybridMonitorTaskListResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListResponse.js new file mode 100644 index 0000000..2f28393 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListResponse.js @@ -0,0 +1,69 @@ +"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.DescribeHybridMonitorTaskListResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeHybridMonitorTaskListResponseBody_1 = require("./DescribeHybridMonitorTaskListResponseBody"); +class DescribeHybridMonitorTaskListResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeHybridMonitorTaskListResponseBody_1.DescribeHybridMonitorTaskListResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHybridMonitorTaskListResponse = DescribeHybridMonitorTaskListResponse; +//# sourceMappingURL=DescribeHybridMonitorTaskListResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListResponse.js.map new file mode 100644 index 0000000..42fbe61 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeHybridMonitorTaskListResponse.js","sourceRoot":"","sources":["../../src/models/DescribeHybridMonitorTaskListResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,2GAAwG;AAGxG,MAAa,qCAAsC,SAAQ,KAAK,CAAC,KAAK;IAIpE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,qFAAyC;SAChD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,sFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListResponseBody.d.ts new file mode 100644 index 0000000..629545b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListResponseBody.d.ts @@ -0,0 +1,629 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeHybridMonitorTaskListResponseBodyTaskListAttachLabels extends $dara.Model { + /** + * @remarks + * The tag key. + * + * @example + * key1 + */ + name?: string; + /** + * @remarks + * The tag value. + * + * @example + * value1 + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeHybridMonitorTaskListResponseBodyTaskListMatchExpress extends $dara.Model { + /** + * @remarks + * The method that is used to match the instance name. Valid values: + * + * * startWith: starts with a prefix + * * endWith: ends with a suffix + * * all: matches all + * * equals: equals + * * contains: contains + * * notContains: does not contain + * + * @example + * all + */ + function?: string; + /** + * @remarks + * The instance name. + * + * @example + * name + */ + name?: string; + /** + * @remarks + * The keyword that corresponds to the instance name. + * + * @example + * ECS_instance1 + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigExpress extends $dara.Model { + /** + * @remarks + * The alias of the extended field that indicates the result of basic operations that are performed on aggregation results. + * + * @example + * SuccRate + */ + alias?: string; + /** + * @remarks + * The extended field that indicates the result of basic operations that are performed on aggregation results. + * + * @example + * success_count + */ + express?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigFilterFilters extends $dara.Model { + /** + * @remarks + * The method that is used to filter logs imported from Log Service. Valid values: + * + * * `contain`: contains + * * `notContain`: does not contain + * * `>`: greater than + * * `<`: less than + * * `=`: equal to + * * `! =`: not equal to + * * `>=`: greater than or equal to + * * `<=`: less than or equal to + * + * @example + * = + */ + operator?: string; + /** + * @remarks + * The name of the key that is used to filter logs imported from Log Service. + * + * @example + * host + */ + SLSKeyName?: string; + /** + * @remarks + * The value of the key that is used to filter logs imported from Log Service. + * + * @example + * 200 + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigFilter extends $dara.Model { + /** + * @remarks + * The conditions that are used to filter logs imported from Log Service. + */ + filters?: DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigFilterFilters[]; + /** + * @remarks + * The relationship between multiple filter conditions. Valid values: + * + * * and (default): Logs are processed only if all filter conditions are met. + * * or: Logs are processed if one of the filter conditions is met. + * + * @example + * and + */ + relation?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigGroupBy extends $dara.Model { + /** + * @remarks + * The alias of the aggregation result. + * + * @example + * ApiResult + */ + alias?: string; + /** + * @remarks + * The name of the key that is used to aggregate logs imported from Log Service. + * + * @example + * code + */ + SLSKeyName?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigStatistics extends $dara.Model { + /** + * @remarks + * The alias of the aggregation result. + * + * @example + * level_count + */ + alias?: string; + /** + * @remarks + * The function that is used to aggregate log data within a statistical period. Valid values: + * + * * count: counts the number. + * * sum: calculates the total value. + * * avg: calculates the average value. + * * max: calculates the maximum value. + * * min: calculates the minimum value. + * * value: collects samples within the statistical period. + * * countps: calculates the average number of the specified field per second by using the following formula: Counted number of the specified field/Total number of seconds within the statistical period. + * * sumps: calculates the average number of the specified field per second by using the following formula: Total value of the specified field/Total number of seconds within the statistical period. + * * distinct: counts the number of logs where the specified field appears within the statistical period. + * * distribution: counts the number of logs that meet a specified condition within the statistical period. + * * percentile: sorts the values of the specified field in ascending order, and then returns the value that is at the specified percentile within the statistical period. Example: P50. + * + * @example + * count + */ + function?: string; + /** + * @remarks + * The value of the function that is used to aggregate logs imported from Log Service. + * + * * If the `Function` parameter is set to `distribution`, this parameter indicates the lower limit of the statistical interval. For example, 200 indicates that the number of HTTP requests whose status code is 2XX is calculated. + * * If the `Function` parameter is set to `percentile`, this parameter specifies the percentile at which the expected value is. For example, 0.5 specifies P50. + * + * @example + * 200 + */ + parameter1?: string; + /** + * @remarks + * The value of the function that is used to aggregate logs imported from Log Service. + * + * > This parameter is returned only if the `Function` parameter is set to `distribution`. This parameter indicates the upper limit of the statistical interval. For example, 299 indicates that the number of HTTP requests whose status code is 2XX is calculated. + * + * @example + * 299 + */ + parameter2?: string; + /** + * @remarks + * The name of the key that is used to aggregate logs imported from Log Service. + * + * @example + * name + */ + SLSKeyName?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfig extends $dara.Model { + /** + * @remarks + * The extended fields that indicate the results of basic operations that are performed on aggregation results. + */ + express?: DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigExpress[]; + /** + * @remarks + * The conditions that are used to filter logs imported from Log Service. + */ + filter?: DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigFilter; + /** + * @remarks + * The dimensions based on which data is aggregated. This parameter is equivalent to the GROUP BY clause in SQL. + */ + groupBy?: DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigGroupBy[]; + /** + * @remarks + * The methods that are used to aggregate logs imported from Log Service. + */ + statistics?: DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigStatistics[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeHybridMonitorTaskListResponseBodyTaskList extends $dara.Model { + /** + * @remarks + * The tags of the metric import task. + */ + attachLabels?: DescribeHybridMonitorTaskListResponseBodyTaskListAttachLabels[]; + /** + * @remarks + * The interval at which the CloudMonitor agent collects host monitoring data. Valid values: + * + * * 15 + * * 30 + * * 60 + * + * Unit: seconds. + * + * @example + * 60 + */ + collectInterval?: number; + /** + * @remarks + * The URL of the destination from which the CloudMonitor agent collects host monitoring data. + * + * @example + * http://localhost + */ + collectTargetEndpoint?: string; + /** + * @remarks + * The relative path from which the CloudMonitor agent collects monitoring data. + * + * @example + * /metrics + */ + collectTargetPath?: string; + /** + * @remarks + * The type of the monitoring data. Valid values: Spring, Tomcat, Nginx, Tengine, JVM, Redis, and MySQL. + * + * @example + * nginx + */ + collectTargetType?: string; + /** + * @remarks + * The timeout period during which the CloudMonitor agent collects host monitoring data. Valid values: + * + * * 0 + * * 15 + * * 30 + * * 60 + * + * Unit: seconds. + * + * @example + * 15 + */ + collectTimout?: number; + /** + * @remarks + * The timestamp when the metric import task was created. + * + * Unit: milliseconds. + * + * @example + * 1639382496000 + */ + createTime?: string; + /** + * @remarks + * The description of the metric import task. + * + * @example + * aliyun + */ + description?: string; + /** + * @remarks + * The additional information of the instance. + * + * @example + * test + */ + extraInfo?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 3607**** + */ + groupId?: string; + /** + * @remarks + * The instances where monitoring data is collected in batches. + */ + instances?: string[]; + /** + * @example + * C:\\UserData\\log\\*.Log + */ + logFilePath?: string; + /** + * @remarks + * The method that is used to aggregate on-premises log data. + * + * @example + * [{"metric": "metric1","filters": [{"column": "filed2","type": "include","values": ["222222"]}],"groupBys": [{"column": "filed3","name": "filed3"}],"calculates": [{"column": "field1","name": "avg","type": "avg"}]},{"metric": "metric2","filters": [{"column": "field1","type": "include","values": ["11111"]}],"groupBys": [{"column": "filed2","name": "filed2"}],"calculates": [{"column": "field1","name": "avg","type": "avg"}]}] + */ + logProcess?: string; + /** + * @remarks + * The sample on-premises log. + * + * @example + * {"logContent":"100.116.134.26 1119 - [13/Aug/2019:16:55:46 +0800] POST metrichub-cn-hongkong.aliyun.com /agent/metrics/putLines 200 0 \\"-\\" \\"127.0.0.1:7001\\" \\"Go-http-client/1.1\\" \\"-\\" \\"-\\" \\"0a98a21a15656865460656276e\\"","addData":{"field1":["1119","1119"],"filed2":["POSTx","POST"],"filed3":["true","200"]}} + */ + logSample?: string; + /** + * @remarks + * The result that is returned after on-premises log data is split based on the specified matching mode. + * + * > The matching modes of on-premises log data include full regex mode, delimiter mode, and JSON mode. + * + * @example + * {"type": "regex","regex": "\\\\d+\\\\.\\\\d+\\\\.\\\\d+\\\\.\\\\d+\\\\s+(\\\\d+)\\\\s+\\\\S+\\\\s+\[\\\\d+/\\\\S+/\\\\d+:\\\\d+:\\\\d+:\\\\d+\\\\s+\\\\+\\\\d+\\\\]\\\\s+(\\\\S+)\\\\s+\\\\S+\\\\s+/\\\\S+/\\\\S+/\\\\S+\\\\s+(\\\\d+)","columns": [{"name": "field1"},{"name": "filed2","translate": {"default": "-","mappings": [{"from": "(\\\\w+)","to": "$1x","type": "regex"}]}},{"name": "filed3","translate": {"default": "-","mappings": [{"from": "NumberRange(100,300)","to": "true","type": "function"}]}}]} + */ + logSplit?: string; + /** + * @remarks + * The conditions that are used to match the instances in the application group. + */ + matchExpress?: DescribeHybridMonitorTaskListResponseBodyTaskListMatchExpress[]; + /** + * @remarks + * The relationship between the conditions that are used to filter metric import tasks. Valid values: + * + * * or + * * and + * + * @example + * or + */ + matchExpressRelation?: string; + /** + * @remarks + * The namespace to which the host belongs. + * + * @example + * aliyun + */ + namespace?: string; + /** + * @remarks + * The network type of the host. Valid values: + * + * * `vpc` + * * `Internet` + * + * @example + * vpc + */ + networkType?: string; + /** + * @remarks + * The configurations of the logs that are imported from Log Service. + * + * @example + * {"express": [],"filter": {"filters": [{"key": "task_type","operator": "=","value": "1"}]},"groupby": [{"alias": "isp","key": "isp","sqlKey": "t.`isp`","valueKey": "isp"}],"interval": 60,"labels": [{"name": "__cms_app__","type": 0,"value": "sitemonitor"}],"statistics": [{"alias": "http_dns_time_avg","function": "avg","key": "http_dns_time"}]} + */ + SLSProcess?: string; + /** + * @remarks + * The configurations of the logs that are imported from Log Service. + * + * > This parameter is returned only if the `TaskType` parameter is set to `aliyun_sls`. + */ + SLSProcessConfig?: DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfig; + /** + * @remarks + * The ID of the member account. + * + * > This parameter is displayed only when you call this operation by using a management account. + * + * @example + * 120886317861**** + */ + targetUserId?: string; + /** + * @remarks + * The ID of the metric import task. + * + * @example + * 36**** + */ + taskId?: string; + /** + * @remarks + * The name of the metric import task. + * + * @example + * aliyun_task + */ + taskName?: string; + /** + * @remarks + * The type of the metric import task. Valid values: + * + * * aliyun_fc: metric import tasks for Alibaba Cloud services + * * aliyun_sls: metrics for logs imported from Log Service + * + * @example + * aliyun_sls + */ + taskType?: string; + /** + * @remarks + * The region where the host resides. + * + * @example + * cn-hangzhou + */ + uploadRegion?: string; + /** + * @remarks + * The configuration file of the Alibaba Cloud service that you want to monitor by using Hybrid Cloud Monitoring. + * + * * namespace: the namespace of the Alibaba Cloud service. + * * metric_list: the metrics of the Alibaba Cloud service. + * + * @example + * products:- namespace: acs_ecs_dashboard metric_info: - metric_list: - cpu_total + */ + YARMConfig?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeHybridMonitorTaskListResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * * If the request was successful, the value `successful` is returned. + * * If the request failed, an error message is returned. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The page number. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * @example + * 10 + */ + pageSize?: number; + /** + * @remarks + * The request ID. + * + * @example + * 11145B76-566A-5D80-A8A3-FAD98D310079 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + /** + * @remarks + * The metric import tasks. + */ + taskList?: DescribeHybridMonitorTaskListResponseBodyTaskList[]; + /** + * @remarks + * The total number of entries returned. + * + * @example + * 1 + */ + total?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListResponseBody.js new file mode 100644 index 0000000..4b5e978 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListResponseBody.js @@ -0,0 +1,355 @@ +"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.DescribeHybridMonitorTaskListResponseBody = exports.DescribeHybridMonitorTaskListResponseBodyTaskList = exports.DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfig = exports.DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigStatistics = exports.DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigGroupBy = exports.DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigFilter = exports.DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigFilterFilters = exports.DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigExpress = exports.DescribeHybridMonitorTaskListResponseBodyTaskListMatchExpress = exports.DescribeHybridMonitorTaskListResponseBodyTaskListAttachLabels = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeHybridMonitorTaskListResponseBodyTaskListAttachLabels extends $dara.Model { + static names() { + return { + name: 'Name', + value: 'Value', + }; + } + static types() { + return { + name: 'string', + value: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHybridMonitorTaskListResponseBodyTaskListAttachLabels = DescribeHybridMonitorTaskListResponseBodyTaskListAttachLabels; +class DescribeHybridMonitorTaskListResponseBodyTaskListMatchExpress extends $dara.Model { + static names() { + return { + function: 'Function', + name: 'Name', + value: 'Value', + }; + } + static types() { + return { + function: 'string', + name: 'string', + value: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHybridMonitorTaskListResponseBodyTaskListMatchExpress = DescribeHybridMonitorTaskListResponseBodyTaskListMatchExpress; +class DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigExpress extends $dara.Model { + static names() { + return { + alias: 'Alias', + express: 'Express', + }; + } + static types() { + return { + alias: 'string', + express: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigExpress = DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigExpress; +class DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigFilterFilters extends $dara.Model { + static names() { + return { + operator: 'Operator', + SLSKeyName: 'SLSKeyName', + value: 'Value', + }; + } + static types() { + return { + operator: 'string', + SLSKeyName: 'string', + value: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigFilterFilters = DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigFilterFilters; +class DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigFilter extends $dara.Model { + static names() { + return { + filters: 'Filters', + relation: 'Relation', + }; + } + static types() { + return { + filters: { 'type': 'array', 'itemType': DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigFilterFilters }, + relation: 'string', + }; + } + validate() { + if (Array.isArray(this.filters)) { + $dara.Model.validateArray(this.filters); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigFilter = DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigFilter; +class DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigGroupBy extends $dara.Model { + static names() { + return { + alias: 'Alias', + SLSKeyName: 'SLSKeyName', + }; + } + static types() { + return { + alias: 'string', + SLSKeyName: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigGroupBy = DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigGroupBy; +class DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigStatistics extends $dara.Model { + static names() { + return { + alias: 'Alias', + function: 'Function', + parameter1: 'Parameter1', + parameter2: 'Parameter2', + SLSKeyName: 'SLSKeyName', + }; + } + static types() { + return { + alias: 'string', + function: 'string', + parameter1: 'string', + parameter2: 'string', + SLSKeyName: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigStatistics = DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigStatistics; +class DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfig extends $dara.Model { + static names() { + return { + express: 'Express', + filter: 'Filter', + groupBy: 'GroupBy', + statistics: 'Statistics', + }; + } + static types() { + return { + express: { 'type': 'array', 'itemType': DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigExpress }, + filter: DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigFilter, + groupBy: { 'type': 'array', 'itemType': DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigGroupBy }, + statistics: { 'type': 'array', 'itemType': DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigStatistics }, + }; + } + validate() { + if (Array.isArray(this.express)) { + $dara.Model.validateArray(this.express); + } + if (this.filter && typeof this.filter.validate === 'function') { + this.filter.validate(); + } + if (Array.isArray(this.groupBy)) { + $dara.Model.validateArray(this.groupBy); + } + if (Array.isArray(this.statistics)) { + $dara.Model.validateArray(this.statistics); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfig = DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfig; +class DescribeHybridMonitorTaskListResponseBodyTaskList extends $dara.Model { + static names() { + return { + attachLabels: 'AttachLabels', + collectInterval: 'CollectInterval', + collectTargetEndpoint: 'CollectTargetEndpoint', + collectTargetPath: 'CollectTargetPath', + collectTargetType: 'CollectTargetType', + collectTimout: 'CollectTimout', + createTime: 'CreateTime', + description: 'Description', + extraInfo: 'ExtraInfo', + groupId: 'GroupId', + instances: 'Instances', + logFilePath: 'LogFilePath', + logProcess: 'LogProcess', + logSample: 'LogSample', + logSplit: 'LogSplit', + matchExpress: 'MatchExpress', + matchExpressRelation: 'MatchExpressRelation', + namespace: 'Namespace', + networkType: 'NetworkType', + SLSProcess: 'SLSProcess', + SLSProcessConfig: 'SLSProcessConfig', + targetUserId: 'TargetUserId', + taskId: 'TaskId', + taskName: 'TaskName', + taskType: 'TaskType', + uploadRegion: 'UploadRegion', + YARMConfig: 'YARMConfig', + }; + } + static types() { + return { + attachLabels: { 'type': 'array', 'itemType': DescribeHybridMonitorTaskListResponseBodyTaskListAttachLabels }, + collectInterval: 'number', + collectTargetEndpoint: 'string', + collectTargetPath: 'string', + collectTargetType: 'string', + collectTimout: 'number', + createTime: 'string', + description: 'string', + extraInfo: 'string', + groupId: 'string', + instances: { 'type': 'array', 'itemType': 'string' }, + logFilePath: 'string', + logProcess: 'string', + logSample: 'string', + logSplit: 'string', + matchExpress: { 'type': 'array', 'itemType': DescribeHybridMonitorTaskListResponseBodyTaskListMatchExpress }, + matchExpressRelation: 'string', + namespace: 'string', + networkType: 'string', + SLSProcess: 'string', + SLSProcessConfig: DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfig, + targetUserId: 'string', + taskId: 'string', + taskName: 'string', + taskType: 'string', + uploadRegion: 'string', + YARMConfig: 'string', + }; + } + validate() { + if (Array.isArray(this.attachLabels)) { + $dara.Model.validateArray(this.attachLabels); + } + if (Array.isArray(this.instances)) { + $dara.Model.validateArray(this.instances); + } + if (Array.isArray(this.matchExpress)) { + $dara.Model.validateArray(this.matchExpress); + } + if (this.SLSProcessConfig && typeof this.SLSProcessConfig.validate === 'function') { + this.SLSProcessConfig.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHybridMonitorTaskListResponseBodyTaskList = DescribeHybridMonitorTaskListResponseBodyTaskList; +class DescribeHybridMonitorTaskListResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + requestId: 'RequestId', + success: 'Success', + taskList: 'TaskList', + total: 'Total', + }; + } + static types() { + return { + code: 'string', + message: 'string', + pageNumber: 'number', + pageSize: 'number', + requestId: 'string', + success: 'string', + taskList: { 'type': 'array', 'itemType': DescribeHybridMonitorTaskListResponseBodyTaskList }, + total: 'number', + }; + } + validate() { + if (Array.isArray(this.taskList)) { + $dara.Model.validateArray(this.taskList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeHybridMonitorTaskListResponseBody = DescribeHybridMonitorTaskListResponseBody; +//# sourceMappingURL=DescribeHybridMonitorTaskListResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListResponseBody.js.map new file mode 100644 index 0000000..2436b19 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeHybridMonitorTaskListResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeHybridMonitorTaskListResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeHybridMonitorTaskListResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6DAA8D,SAAQ,KAAK,CAAC,KAAK;IAiB5F,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtCD,sIAsCC;AAED,MAAa,6DAA8D,SAAQ,KAAK,CAAC,KAAK;IAgC5F,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;SACh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EAAE,CAAC;YACzF,IAAI,CAAC,gBAAwB,CAAC,QAAQ,EAAE,CAAC;QAC5C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA9TD,8GA8TC;AAED,MAAa,yCAA0C,SAAQ,KAAK,CAAC,KAAK;IAsExE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;YACjB,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,iDAAiD,EAAE;YAC5F,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;YAChC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC3C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA1GD,8FA0GC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeRequest.d.ts new file mode 100644 index 0000000..ff4bc91 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeRequest.d.ts @@ -0,0 +1,26 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeLogMonitorAttributeRequest extends $dara.Model { + /** + * @remarks + * The metric name. Exact match is supported. + * + * For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * cpu_total + */ + metricName?: string; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeRequest.js new file mode 100644 index 0000000..92d7136 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeRequest.js @@ -0,0 +1,60 @@ +"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.DescribeLogMonitorAttributeRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeLogMonitorAttributeRequest extends $dara.Model { + static names() { + return { + metricName: 'MetricName', + regionId: 'RegionId', + }; + } + static types() { + return { + metricName: 'string', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeLogMonitorAttributeRequest = DescribeLogMonitorAttributeRequest; +//# sourceMappingURL=DescribeLogMonitorAttributeRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeRequest.js.map new file mode 100644 index 0000000..f0f68fe --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeLogMonitorAttributeRequest.js","sourceRoot":"","sources":["../../src/models/DescribeLogMonitorAttributeRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;IAcjE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnCD,gFAmCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeResponse.d.ts new file mode 100644 index 0000000..0af18bc --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeLogMonitorAttributeResponseBody } from "./DescribeLogMonitorAttributeResponseBody"; +export declare class DescribeLogMonitorAttributeResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeLogMonitorAttributeResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeResponse.js new file mode 100644 index 0000000..4b83afd --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeResponse.js @@ -0,0 +1,69 @@ +"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.DescribeLogMonitorAttributeResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeLogMonitorAttributeResponseBody_1 = require("./DescribeLogMonitorAttributeResponseBody"); +class DescribeLogMonitorAttributeResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeLogMonitorAttributeResponseBody_1.DescribeLogMonitorAttributeResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeLogMonitorAttributeResponse = DescribeLogMonitorAttributeResponse; +//# sourceMappingURL=DescribeLogMonitorAttributeResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeResponse.js.map new file mode 100644 index 0000000..349dd4c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeLogMonitorAttributeResponse.js","sourceRoot":"","sources":["../../src/models/DescribeLogMonitorAttributeResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,uGAAoG;AAGpG,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IAIlE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,iFAAuC;SAC9C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,kFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeResponseBody.d.ts new file mode 100644 index 0000000..e18ef18 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeResponseBody.d.ts @@ -0,0 +1,264 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeLogMonitorAttributeResponseBodyLogMonitorAggregates extends $dara.Model { + /** + * @remarks + * The alias of the field. + * + * @example + * HostName + */ + alias?: string; + /** + * @remarks + * The name of the field in logs. + * + * @example + * hostName + */ + fieldName?: string; + /** + * @remarks + * The function that is used to aggregate the monitoring data of logs within a statistical period. Valid values: + * + * * count: counts the number + * * sum: calculates the total value + * * avg: calculates the average value + * * max: calculates the maximum value + * * min: calculates the minimum value + * * countps: calculates the number of values of the specified field divided by the total number of seconds within a statistical period + * * sumps: calculates the sum of the values of the specified field divided by the total number of seconds within a statistical period + * * distinct: calculates the number of unique values of the specified field within a statistical period + * + * @example + * count + */ + function?: string; + /** + * @remarks + * The maximum value. + * + * @example + * 10 + */ + max?: string; + /** + * @remarks + * The minimum value. + * + * @example + * 0 + */ + min?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeLogMonitorAttributeResponseBodyLogMonitorValueFilter extends $dara.Model { + /** + * @remarks + * The name of the log field used for matching in the filter condition. + * + * @example + * hostName + */ + key?: string; + /** + * @remarks + * The method that is used to match the field value. Valid values: + * + * * `contain`: contains + * * `notContain`: does not contain + * * `>`: greater than + * * `<`: less than + * * `>=`: greater than or equal to + * * `<=`: less than or equal to + * + * @example + * contain + */ + operator?: string; + /** + * @remarks + * The field value to be matched in the filter condition. + * + * @example + * portal + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeLogMonitorAttributeResponseBodyLogMonitor extends $dara.Model { + /** + * @remarks + * The aggregation logic. + */ + aggregates?: DescribeLogMonitorAttributeResponseBodyLogMonitorAggregates[]; + /** + * @remarks + * The time when the metric was created. + * + * This value is a UNIX timestamp that represents the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * @example + * 1547431398000 + */ + gmtCreate?: number; + /** + * @remarks + * The ID of the application group. + * + * @example + * 12345 + */ + groupId?: number; + groupbys?: string[]; + /** + * @remarks + * The ID of the log. + * + * @example + * 1234 + */ + logId?: number; + /** + * @remarks + * The extended field. The extended field allows you to perform basic operations on the aggregation results. + * + * For example, if you have calculated TotalNumber and 5XXNumber by aggregating the data. TotalNumber indicates the total number of HTTP requests, and 5XXNumber indicates the number of HTTP requests whose status code is greater than 499. You can calculate the server error rate by adding the following formula to the extended field: 5XXNumber/TotalNumber\\*100. + * + * @example + * {"extend":{"errorPercent":"5XXNumber/TotalNumber*100"}} + */ + metricExpress?: string; + /** + * @remarks + * The metric name. For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The name of the Simple Log Service Logstore. + * + * @example + * test-logstore + */ + slsLogstore?: string; + /** + * @remarks + * The name of the SLS project. + * + * @example + * test-project + */ + slsProject?: string; + /** + * @remarks + * The ID of the region where the Simple Log Service (SLS) Logstore resides. + * + * @example + * cn-hangzhou + */ + slsRegionId?: string; + tumblingwindows?: string[]; + /** + * @remarks + * The condition that is used to filter logs. The ValueFilter and ValueFilterRelation parameters are used in pair. The filter condition is equivalent to the WHERE clause in SQL statements. + * + * If no filter condition is specified, all logs are processed. For example, logs contain the Level and Error fields. If you need to calculate the number of times that logs of the Error level appear every minute, you can set the filter condition to Level=Error and count the number of logs that meet this condition. + */ + valueFilter?: DescribeLogMonitorAttributeResponseBodyLogMonitorValueFilter[]; + /** + * @remarks + * The logical operator that is used between log filter conditions. The ValueFilter and ValueFilterRelation parameters must be used in pair. Valid values: + * + * * and + * * or + * + * @example + * and + */ + valueFilterRelation?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeLogMonitorAttributeResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The details of the log monitoring metric. + */ + logMonitor?: DescribeLogMonitorAttributeResponseBodyLogMonitor; + /** + * @remarks + * The returned message. If the request was successful, a success message is returned. If the request failed, an error message is returned. + * + * @example + * successful + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * C6718537-E673-4A58-8EE1-24B8B38C7AAE + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeResponseBody.js new file mode 100644 index 0000000..637a8b5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeResponseBody.js @@ -0,0 +1,174 @@ +"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.DescribeLogMonitorAttributeResponseBody = exports.DescribeLogMonitorAttributeResponseBodyLogMonitor = exports.DescribeLogMonitorAttributeResponseBodyLogMonitorValueFilter = exports.DescribeLogMonitorAttributeResponseBodyLogMonitorAggregates = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeLogMonitorAttributeResponseBodyLogMonitorAggregates extends $dara.Model { + static names() { + return { + alias: 'Alias', + fieldName: 'FieldName', + function: 'Function', + max: 'Max', + min: 'Min', + }; + } + static types() { + return { + alias: 'string', + fieldName: 'string', + function: 'string', + max: 'string', + min: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeLogMonitorAttributeResponseBodyLogMonitorAggregates = DescribeLogMonitorAttributeResponseBodyLogMonitorAggregates; +class DescribeLogMonitorAttributeResponseBodyLogMonitorValueFilter extends $dara.Model { + static names() { + return { + key: 'Key', + operator: 'Operator', + value: 'Value', + }; + } + static types() { + return { + key: 'string', + operator: 'string', + value: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeLogMonitorAttributeResponseBodyLogMonitorValueFilter = DescribeLogMonitorAttributeResponseBodyLogMonitorValueFilter; +class DescribeLogMonitorAttributeResponseBodyLogMonitor extends $dara.Model { + static names() { + return { + aggregates: 'Aggregates', + gmtCreate: 'GmtCreate', + groupId: 'GroupId', + groupbys: 'Groupbys', + logId: 'LogId', + metricExpress: 'MetricExpress', + metricName: 'MetricName', + slsLogstore: 'SlsLogstore', + slsProject: 'SlsProject', + slsRegionId: 'SlsRegionId', + tumblingwindows: 'Tumblingwindows', + valueFilter: 'ValueFilter', + valueFilterRelation: 'ValueFilterRelation', + }; + } + static types() { + return { + aggregates: { 'type': 'array', 'itemType': DescribeLogMonitorAttributeResponseBodyLogMonitorAggregates }, + gmtCreate: 'number', + groupId: 'number', + groupbys: { 'type': 'array', 'itemType': 'string' }, + logId: 'number', + metricExpress: 'string', + metricName: 'string', + slsLogstore: 'string', + slsProject: 'string', + slsRegionId: 'string', + tumblingwindows: { 'type': 'array', 'itemType': 'string' }, + valueFilter: { 'type': 'array', 'itemType': DescribeLogMonitorAttributeResponseBodyLogMonitorValueFilter }, + valueFilterRelation: 'string', + }; + } + validate() { + if (Array.isArray(this.aggregates)) { + $dara.Model.validateArray(this.aggregates); + } + if (Array.isArray(this.groupbys)) { + $dara.Model.validateArray(this.groupbys); + } + if (Array.isArray(this.tumblingwindows)) { + $dara.Model.validateArray(this.tumblingwindows); + } + if (Array.isArray(this.valueFilter)) { + $dara.Model.validateArray(this.valueFilter); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeLogMonitorAttributeResponseBodyLogMonitor = DescribeLogMonitorAttributeResponseBodyLogMonitor; +class DescribeLogMonitorAttributeResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + logMonitor: 'LogMonitor', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + logMonitor: DescribeLogMonitorAttributeResponseBodyLogMonitor, + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + if (this.logMonitor && typeof this.logMonitor.validate === 'function') { + this.logMonitor.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeLogMonitorAttributeResponseBody = DescribeLogMonitorAttributeResponseBody; +//# sourceMappingURL=DescribeLogMonitorAttributeResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeResponseBody.js.map new file mode 100644 index 0000000..bbd5e28 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorAttributeResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeLogMonitorAttributeResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeLogMonitorAttributeResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6D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AC,IAAI,CAAC,eAAe,CAAC,CAAC;QAClD,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;YACnC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC9C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AArJD,8GAqJC;AAED,MAAa,uCAAwC,SAAQ,KAAK,CAAC,KAAK;IA2CtE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,UAAU,EAAE,YAAY;YACxB,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,iDAAiD;YAC7D,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,UAAU,IAAI,OAAQ,IAAI,CAAC,UAAkB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YAC7E,IAAI,CAAC,UAAkB,CAAC,QAAQ,EAAE,CAAC;QACtC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,0FAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListRequest.d.ts new file mode 100644 index 0000000..ed9a5c2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListRequest.d.ts @@ -0,0 +1,46 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeLogMonitorListRequest extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * @example + * 123456 + */ + groupId?: number; + /** + * @remarks + * The page number. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. Default value: 10. + * + * @example + * 10 + */ + pageSize?: number; + regionId?: string; + /** + * @remarks + * The keyword that is used to search for log monitoring metrics. Fuzzy match is supported. + * + * @example + * test + */ + searchValue?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListRequest.js new file mode 100644 index 0000000..1b60341 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListRequest.js @@ -0,0 +1,66 @@ +"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.DescribeLogMonitorListRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeLogMonitorListRequest extends $dara.Model { + static names() { + return { + groupId: 'GroupId', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + searchValue: 'SearchValue', + }; + } + static types() { + return { + groupId: 'number', + pageNumber: 'number', + pageSize: 'number', + regionId: 'string', + searchValue: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeLogMonitorListRequest = DescribeLogMonitorListRequest; +//# sourceMappingURL=DescribeLogMonitorListRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListRequest.js.map new file mode 100644 index 0000000..c33338d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeLogMonitorListRequest.js","sourceRoot":"","sources":["../../src/models/DescribeLogMonitorListRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IAkC5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,WAAW,EAAE,aAAa;SAC3B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,WAAW,EAAE,QAAQ;SACtB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA7DD,sEA6DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListResponse.d.ts new file mode 100644 index 0000000..be86d51 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeLogMonitorListResponseBody } from "./DescribeLogMonitorListResponseBody"; +export declare class DescribeLogMonitorListResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeLogMonitorListResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListResponse.js new file mode 100644 index 0000000..a00dca7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListResponse.js @@ -0,0 +1,69 @@ +"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.DescribeLogMonitorListResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeLogMonitorListResponseBody_1 = require("./DescribeLogMonitorListResponseBody"); +class DescribeLogMonitorListResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeLogMonitorListResponseBody_1.DescribeLogMonitorListResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeLogMonitorListResponse = DescribeLogMonitorListResponse; +//# sourceMappingURL=DescribeLogMonitorListResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListResponse.js.map new file mode 100644 index 0000000..1a8c8ce --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeLogMonitorListResponse.js","sourceRoot":"","sources":["../../src/models/DescribeLogMonitorListResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,6FAA0F;AAG1F,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAI7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,uEAAkC;SACzC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,wEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListResponseBody.d.ts new file mode 100644 index 0000000..d912985 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListResponseBody.d.ts @@ -0,0 +1,208 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeLogMonitorListResponseBodyLogMonitorListValueFilter extends $dara.Model { + /** + * @remarks + * The name of the log field used for matching in the filter condition. + * + * @example + * hostName + */ + key?: string; + /** + * @remarks + * The method that is used to match the field value. Valid values: + * + * * contain: contains + * * notContain: does not contain + * * `>`: greater than + * * `<`: less than + * * `>=`: greater than or equal to + * * `<=`: less than or equal to + * + * @example + * contain + */ + operator?: string; + /** + * @remarks + * The field value to be matched in the filter condition. + * + * @example + * portal + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeLogMonitorListResponseBodyLogMonitorList extends $dara.Model { + /** + * @remarks + * The time when the log monitoring metric was created. + * + * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * @example + * 1577766395000 + */ + gmtCreate?: number; + /** + * @remarks + * The ID of the application group. + * + * @example + * 12345 + */ + groupId?: number; + /** + * @remarks + * The ID of the log monitoring metric. + * + * @example + * 12345 + */ + logId?: number; + /** + * @remarks + * The metric name. For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The name of the Simple Log Service (SLS) Logstore. + * + * @example + * testSlS**** + */ + slsLogstore?: string; + /** + * @remarks + * The name of the SLS project. + * + * @example + * sls-project-test**** + */ + slsProject?: string; + /** + * @remarks + * The ID of the region where the SLS Logstore resides. + * + * @example + * cn-hangzhou + */ + slsRegionId?: string; + /** + * @remarks + * The condition that is used to filter logs. The ValueFilter and ValueFilterRelation parameters are used in pair. The filter condition is equivalent to the WHERE clause in SQL statements. If no filter condition is specified, all logs are processed. For example, logs contain the Level and Error fields. If you need to calculate the number of times that logs of the Error level appear every minute, you can set the filter condition to Level=Error and count the number of logs that meet this condition. + */ + valueFilter?: DescribeLogMonitorListResponseBodyLogMonitorListValueFilter[]; + /** + * @remarks + * The logical operator that is used between log filter conditions. The ValueFilter and ValueFilterRelation parameters are used in pair. Valid values: + * + * * and + * * or + * + * @example + * and + */ + valueFilterRelation?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeLogMonitorListResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The log monitoring metrics. + */ + logMonitorList?: DescribeLogMonitorListResponseBodyLogMonitorList[]; + /** + * @remarks + * The returned message. + * + * @example + * successful + */ + message?: string; + /** + * @remarks + * The page number. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * @example + * 10 + */ + pageSize?: number; + /** + * @remarks + * The request ID. + * + * @example + * 01E90080-4300-4FAA-B9AE-161956BC350D + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The total number of entries returned. + * + * @example + * 15 + */ + total?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListResponseBody.js new file mode 100644 index 0000000..ceb0fa0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListResponseBody.js @@ -0,0 +1,136 @@ +"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.DescribeLogMonitorListResponseBody = exports.DescribeLogMonitorListResponseBodyLogMonitorList = exports.DescribeLogMonitorListResponseBodyLogMonitorListValueFilter = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeLogMonitorListResponseBodyLogMonitorListValueFilter extends $dara.Model { + static names() { + return { + key: 'Key', + operator: 'Operator', + value: 'Value', + }; + } + static types() { + return { + key: 'string', + operator: 'string', + value: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeLogMonitorListResponseBodyLogMonitorListValueFilter = DescribeLogMonitorListResponseBodyLogMonitorListValueFilter; +class DescribeLogMonitorListResponseBodyLogMonitorList extends $dara.Model { + static names() { + return { + gmtCreate: 'GmtCreate', + groupId: 'GroupId', + logId: 'LogId', + metricName: 'MetricName', + slsLogstore: 'SlsLogstore', + slsProject: 'SlsProject', + slsRegionId: 'SlsRegionId', + valueFilter: 'ValueFilter', + valueFilterRelation: 'ValueFilterRelation', + }; + } + static types() { + return { + gmtCreate: 'number', + groupId: 'number', + logId: 'number', + metricName: 'string', + slsLogstore: 'string', + slsProject: 'string', + slsRegionId: 'string', + valueFilter: { 'type': 'array', 'itemType': DescribeLogMonitorListResponseBodyLogMonitorListValueFilter }, + valueFilterRelation: 'string', + }; + } + validate() { + if (Array.isArray(this.valueFilter)) { + $dara.Model.validateArray(this.valueFilter); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeLogMonitorListResponseBodyLogMonitorList = DescribeLogMonitorListResponseBodyLogMonitorList; +class DescribeLogMonitorListResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + logMonitorList: 'LogMonitorList', + message: 'Message', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + requestId: 'RequestId', + success: 'Success', + total: 'Total', + }; + } + static types() { + return { + code: 'string', + logMonitorList: { 'type': 'array', 'itemType': DescribeLogMonitorListResponseBodyLogMonitorList }, + message: 'string', + pageNumber: 'number', + pageSize: 'number', + requestId: 'string', + success: 'boolean', + total: 'number', + }; + } + validate() { + if (Array.isArray(this.logMonitorList)) { + $dara.Model.validateArray(this.logMonitorList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeLogMonitorListResponseBody = DescribeLogMonitorListResponseBody; +//# sourceMappingURL=DescribeLogMonitorListResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListResponseBody.js.map new file mode 100644 index 0000000..0f03830 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeLogMonitorListResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeLogMonitorListResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeLogMonitorListResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,2DAA4D,SAAQ,KAAK,CAAC,KAAK;IAgC1F,MAAM,CAAC,KAAK;QACV,OAAO;YACL,GAAG,EAAE,KAAK;YACV,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAA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iHC;AAED,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;IAmEjE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,cAAc,EAAE,gBAAgB;YAChC,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,cAAc,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,gDAAgD,EAAE;YACjG,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC;YACtC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACjD,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAvGD,gFAuGC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataRequest.d.ts new file mode 100644 index 0000000..d1edef8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataRequest.d.ts @@ -0,0 +1,140 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMetricDataRequest extends $dara.Model { + /** + * @remarks + * The dimensions based on which the resources are queried. + * + * Set the value to a collection of key-value pairs. A typical key-value pair is `instanceId:i-2ze2d6j5uhg20x47****`. + * + * > You can query a maximum of 50 instances in a single request. + * + * @example + * [{"instanceId": "i-abcdefgh12****"}] + */ + dimensions?: string; + /** + * @remarks + * The end of the time range to query monitoring data. + * + * * If the `StartTime` and `EndTime` parameters are not specified, the monitoring data of the last statistical period is queried.`` + * + * * If the `StartTime` and `EndTime` parameters are specified, the monitoring data of the last statistical period in the specified time range is queried.```` The following examples demonstrate how to determine the period in which monitoring data is queried: + * + * * If you set the `Period` parameter to 15, the specified time range must be less than or equal to 20 minutes. For example, if you set the StartTime parameter to 2021-05-08 08:10:00 and the EndTime parameter to 2021-05-08 08:30:00, the monitoring data of the last 15 seconds in the time range is queried. + * * If you set the `Period` to 60 or 900, the specified time range must be less than or equal to 2 hours. For example, if you set the Period parameter to 60, the StartTime parameter to 2021-05-08 08:00:00, and the EndTime parameter to 2021-05-08 10:00:00, the monitoring data of the last 60 seconds in the time range is queried. + * * If you set the `Period` parameter to 3600, the specified time range must be less than or equal to 2 days. For example, if you set the StartTime parameter to 2021-05-08 08:00:00 and the EndTime parameter to 2021-05-10 08:00:00, the monitoring data of the last 3,600 seconds in the time range is queried. + * + * The following formats are supported: + * + * * UNIX timestamp: the number of milliseconds that have elapsed since 00:00:00 UTC on Thursday, January 1, 1970. + * * UTC time: the UTC time that follows the YYYY-MM-DDThh:mm:ssZ format. + * + * > We recommend that you use UNIX timestamps to prevent time zone-related issues. + * + * @example + * 1618368960000 + */ + endTime?: string; + /** + * @remarks + * The expression that is used to compute the query results in real time. + * + * > Only the `groupby` expression is supported. This expression is similar to the `GROUP BY` statement that is used in databases. + * + * @example + * {"groupby":["userId","instanceId"]} + */ + express?: string; + /** + * @remarks + * The number of entries per page. + * + * Default value: 1000. + * + * > The maximum value of the Length parameter in a request is 1440. + * + * @example + * 1000 + */ + length?: string; + /** + * @remarks + * The metric that is used to monitor the cloud service. + * + * For more information about the metrics of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * cpu_idle + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * For more information about the namespaces of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The statistical period of the metric. + * + * Valid values: 15, 60, 900, and 3600. + * + * Unit: seconds. + * + * > + * + * * If this parameter is not specified, monitoring data is queried based on the period in which metric values are reported. + * + * * For more information about the statistical period of a metric that is specified by the `MetricName` parameter, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * 60 + */ + period?: string; + regionId?: string; + /** + * @remarks + * The start of the time range to query monitoring data. + * + * * If the `StartTime` and `EndTime` parameters are not specified, the monitoring data of the last statistical period is queried.`` + * + * * If the `StartTime` and `EndTime` parameters are specified, the monitoring data of the last statistical period in the specified time range is queried.```` The following examples demonstrate how to determine the period in which monitoring data is queried: + * + * * If you set the `Period` parameter to 15, the specified time range must be less than or equal to 20 minutes. For example, if you set the StartTime parameter to 2021-05-08 08:10:00 and the EndTime parameter to 2021-05-08 08:30:00, the monitoring data of the last 15 seconds in the time range is queried. + * * If you set the `Period` to 60 or 900, the specified time range must be less than or equal to 2 hours. For example, if you set the Period parameter to 60, the StartTime parameter to 2021-05-08 08:00:00, and the EndTime parameter to 2021-05-08 10:00:00, the monitoring data of the last 60 seconds in the time range is queried. + * * If you set the `Period` parameter to 3600, the specified time range must be less than or equal to 2 days. For example, if you set the StartTime parameter to 2021-05-08 08:00:00 and the EndTime parameter to 2021-05-10 08:00:00, the monitoring data of the last 3,600 seconds in the time range is queried. + * + * The following formats are supported: + * + * * UNIX timestamp: the number of milliseconds that have elapsed since 00:00:00 UTC on Thursday, January 1, 1970. + * * UTC time: the UTC time that follows the YYYY-MM-DDThh:mm:ssZ format. + * + * > + * + * * You must set the `StartTime` parameter to a point in time that is later than 00:00:00 UTC on Thursday, January 1, 1970. Otherwise, this parameter is invalid. + * + * * We recommend that you use UNIX timestamps to prevent time zone-related issues. + * + * @example + * 1618368900000 + */ + startTime?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataRequest.js new file mode 100644 index 0000000..6762081 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataRequest.js @@ -0,0 +1,74 @@ +"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.DescribeMetricDataRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMetricDataRequest extends $dara.Model { + static names() { + return { + dimensions: 'Dimensions', + endTime: 'EndTime', + express: 'Express', + length: 'Length', + metricName: 'MetricName', + namespace: 'Namespace', + period: 'Period', + regionId: 'RegionId', + startTime: 'StartTime', + }; + } + static types() { + return { + dimensions: 'string', + endTime: 'string', + express: 'string', + length: 'string', + metricName: 'string', + namespace: 'string', + period: 'string', + regionId: 'string', + startTime: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricDataRequest = DescribeMetricDataRequest; +//# sourceMappingURL=DescribeMetricDataRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataRequest.js.map new file mode 100644 index 0000000..1874fcf --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMetricDataRequest.js","sourceRoot":"","sources":["../../src/models/DescribeMetricDataRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IAgIxD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,QAAQ;YACjB,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;YACnB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnKD,8DAmKC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataResponse.d.ts new file mode 100644 index 0000000..0e22162 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeMetricDataResponseBody } from "./DescribeMetricDataResponseBody"; +export declare class DescribeMetricDataResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeMetricDataResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataResponse.js new file mode 100644 index 0000000..23e4af4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataResponse.js @@ -0,0 +1,69 @@ +"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.DescribeMetricDataResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeMetricDataResponseBody_1 = require("./DescribeMetricDataResponseBody"); +class DescribeMetricDataResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMetricDataResponseBody_1.DescribeMetricDataResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricDataResponse = DescribeMetricDataResponse; +//# sourceMappingURL=DescribeMetricDataResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataResponse.js.map new file mode 100644 index 0000000..2eef869 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMetricDataResponse.js","sourceRoot":"","sources":["../../src/models/DescribeMetricDataResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,qFAAkF;AAGlF,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IAIzD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,+DAA8B;SACrC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,gEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataResponseBody.d.ts new file mode 100644 index 0000000..38bc355 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataResponseBody.d.ts @@ -0,0 +1,64 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMetricDataResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The monitoring data. The value includes the following fields: + * + * * `timestamp`: the time when the alert was triggered. + * * `userId`: the ID of the user for which the alert was triggered. + * * `instanceId`: the ID of the instance for which the alert was triggered. + * * `Minimum`, `Average`, and `Maximum`: the aggregation methods. + * + * @example + * [{\\"timestamp\\":1618368900000,\\"Average\\":95.8291666666667,\\"Minimum\\":65.48,\\"Maximum\\":100.0},{\\"timestamp\\":1618368960000,\\"Average\\":95.8683333333333,\\"Minimum\\":67.84,\\"Maximum\\":100.0}] + */ + datapoints?: string; + /** + * @remarks + * The returned message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The statistical period of the monitoring data. + * + * Valid values: 15, 60, 900, and 3600. + * + * Unit: seconds. + * + * @example + * 60 + */ + period?: string; + /** + * @remarks + * The request ID. + * + * @example + * 6A5F022D-AC7C-460E-94AE-B9E75083D027 + */ + requestId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataResponseBody.js new file mode 100644 index 0000000..3b9b98a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataResponseBody.js @@ -0,0 +1,66 @@ +"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.DescribeMetricDataResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMetricDataResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + datapoints: 'Datapoints', + message: 'Message', + period: 'Period', + requestId: 'RequestId', + }; + } + static types() { + return { + code: 'string', + datapoints: 'string', + message: 'string', + period: 'string', + requestId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricDataResponseBody = DescribeMetricDataResponseBody; +//# sourceMappingURL=DescribeMetricDataResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataResponseBody.js.map new file mode 100644 index 0000000..7de97f7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricDataResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMetricDataResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeMetricDataResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAoD7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,UAAU,EAAE,YAAY;YACxB,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,QAAQ;YACpB,OAAO,EAAE,QAAQ;YACjB,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/ED,wEA+EC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastRequest.d.ts new file mode 100644 index 0000000..94457b8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastRequest.d.ts @@ -0,0 +1,117 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMetricLastRequest extends $dara.Model { + /** + * @remarks + * The monitoring dimensions of the specified resource. + * + * Set the value to a collection of `key:value` pairs. Example: `{"userId":"120886317861****"}` or `{"instanceId":"i-2ze2d6j5uhg20x47****"}`. + * + * > You can query a maximum of 50 instances in each request. + * + * @example + * [{"instanceId":"i-abcdefgh12****"}] + */ + dimensions?: string; + /** + * @remarks + * The end of the time range to query monitoring data. + * + * * For second-level data, the start time is obtained by comparing the time that is specified by the StartTime parameter and 20 minutes earlier of the time that is specified by the EndTime parameter. The earlier one of the compared points in time is used as the start time. + * * For minute-level data, the start time is obtained by comparing the time that is specified by the StartTime parameter and 2 hours earlier of the time that is specified by the EndTime parameter. The earlier one of the compared points in time is used as the start time. + * * For hour-level data, the start time is obtained by comparing the time that is specified by the StartTime parameter and two days earlier of the time that is specified by the EndTime parameter. The earlier one of the compared points in time is used as the start time. + * + * @example + * 2019-01-31 10:10:00 + */ + endTime?: string; + /** + * @remarks + * The expression that is used to calculate the query results in real time. + * + * @example + * {"groupby":["userId","instanceId"]} + */ + express?: string; + /** + * @remarks + * The number of entries per page. + * + * Default value: 1000. This value indicates that a maximum of 1,000 entries of monitoring data can be returned on each page. + * + * > The maximum value of the Length parameter for each request is 1440. + * + * @example + * 1000 + */ + length?: string; + /** + * @remarks + * The metric that is used to monitor the cloud service. + * + * For more information about metric names, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * CPUUtilization + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * For more information about the namespaces of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The pagination token. + * + * * If the number of results exceeds the maximum number of entries allowed on a single page, a pagination token is returned. + * * This token can be used as an input parameter to obtain the next page of results. If all results are obtained, no token is returned. + * + * @example + * 15761432850009dd70bb64cff1f0fff6c0b08ffff073be5fb1e785e2b020f7fed9b5e137bd810a6d6cff5ae**** + */ + nextToken?: string; + /** + * @remarks + * The statistical period of the monitoring data. + * + * Valid values: 15, 60, 900, and 3600. + * + * Unit: seconds. + * + * > + * + * * If this parameter is not specified, monitoring data is queried based on the period in which metric values are reported. The statistical period of metrics (`MetricName`) varies for each cloud service. The statistical period of metrics is displayed in the `MinPeriods` column on the **Metrics** page for each cloud service. For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * 60 + */ + period?: string; + regionId?: string; + /** + * @remarks + * The start of the time range to query monitoring data. + * + * @example + * 2019-01-31 10:00:00 + */ + startTime?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastRequest.js new file mode 100644 index 0000000..816c11e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastRequest.js @@ -0,0 +1,76 @@ +"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.DescribeMetricLastRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMetricLastRequest extends $dara.Model { + static names() { + return { + dimensions: 'Dimensions', + endTime: 'EndTime', + express: 'Express', + length: 'Length', + metricName: 'MetricName', + namespace: 'Namespace', + nextToken: 'NextToken', + period: 'Period', + regionId: 'RegionId', + startTime: 'StartTime', + }; + } + static types() { + return { + dimensions: 'string', + endTime: 'string', + express: 'string', + length: 'string', + metricName: 'string', + namespace: 'string', + nextToken: 'string', + period: 'string', + regionId: 'string', + startTime: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricLastRequest = DescribeMetricLastRequest; +//# sourceMappingURL=DescribeMetricLastRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastRequest.js.map new file mode 100644 index 0000000..395f58c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMetricLastRequest.js","sourceRoot":"","sources":["../../src/models/DescribeMetricLastRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IAyGxD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,QAAQ;YACjB,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;YACnB,SAAS,EAAE,QAAQ;YACnB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA9ID,8DA8IC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastResponse.d.ts new file mode 100644 index 0000000..d602d6f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeMetricLastResponseBody } from "./DescribeMetricLastResponseBody"; +export declare class DescribeMetricLastResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeMetricLastResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastResponse.js new file mode 100644 index 0000000..9a643eb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastResponse.js @@ -0,0 +1,69 @@ +"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.DescribeMetricLastResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeMetricLastResponseBody_1 = require("./DescribeMetricLastResponseBody"); +class DescribeMetricLastResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMetricLastResponseBody_1.DescribeMetricLastResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricLastResponse = DescribeMetricLastResponse; +//# sourceMappingURL=DescribeMetricLastResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastResponse.js.map new file mode 100644 index 0000000..83aa898 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMetricLastResponse.js","sourceRoot":"","sources":["../../src/models/DescribeMetricLastResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,qFAAkF;AAGlF,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IAIzD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,+DAA8B;SACrC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,gEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastResponseBody.d.ts new file mode 100644 index 0000000..3904844 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastResponseBody.d.ts @@ -0,0 +1,76 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMetricLastResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The monitoring data. + * + * @example + * [{"timestamp":1548777660000,"userId":"123456789876****","instanceId":"i-abcdefgh12****","Minimum":93.1,"Average":99.52,"Maximum":100}] + */ + datapoints?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The pagination token. + * + * @example + * xxxxxx + */ + nextToken?: string; + /** + * @remarks + * The time interval. + * + * Unit: seconds. + * + * @example + * 60 + */ + period?: string; + /** + * @remarks + * The request ID. + * + * @example + * 021472A6-25E3-4094-8D00-BA4B6A5486C3 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastResponseBody.js new file mode 100644 index 0000000..544318e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastResponseBody.js @@ -0,0 +1,70 @@ +"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.DescribeMetricLastResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMetricLastResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + datapoints: 'Datapoints', + message: 'Message', + nextToken: 'NextToken', + period: 'Period', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + datapoints: 'string', + message: 'string', + nextToken: 'string', + period: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricLastResponseBody = DescribeMetricLastResponseBody; +//# sourceMappingURL=DescribeMetricLastResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastResponseBody.js.map new file mode 100644 index 0000000..c7450cf --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricLastResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMetricLastResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeMetricLastResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAgE7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,UAAU,EAAE,YAAY;YACxB,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,QAAQ;YACpB,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/FD,wEA+FC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListRequest.d.ts new file mode 100644 index 0000000..2569ebb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListRequest.d.ts @@ -0,0 +1,118 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMetricListRequest extends $dara.Model { + /** + * @remarks + * The dimensions that specify the resources whose monitoring data you want to query. + * + * Set the value to a collection of key-value pairs. A typical key-value pair is `instanceId:i-2ze2d6j5uhg20x47****`. + * + * > You can query a maximum of 50 instances in a single request. + * + * @example + * [{"instanceId": "i-abcdefgh12****"}] + */ + dimensions?: string; + /** + * @remarks + * The end of the time range to query. The following formats are supported: + * + * * UNIX timestamp: the number of milliseconds that have elapsed since 00:00:00 Thursday, January 1, 1970 + * * UTC time: the UTC time that follows the YYYY-MM-DDThh:mm:ssZ format + * + * @example + * 2019-01-30 00:10:00 + */ + endTime?: string; + /** + * @remarks + * The expression that is used to compute the query results in real time. + * + * > Only the groupby expression is supported. This expression is similar to the GROUP BY statement that is used in databases. + * + * @example + * {"groupby":["userId","instanceId"]} + */ + express?: string; + /** + * @remarks + * The number of entries to return on each page. + * + * > The maximum value of the Length parameter in a request is 1440. + * + * @example + * 1000 + */ + length?: string; + /** + * @remarks + * The name of the metric. + * + * For more information about metric names, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * cpu_idle + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. Format: acs_service name. + * + * For more information about the namespaces of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The paging token. + * + * > If this parameter is not specified, the data on the first page is returned. A return value other than Null of this parameter indicates that not all entries have been returned. You can use this value as an input parameter to obtain entries on the next page. The value Null indicates that all query results have been returned. + * + * @example + * 15761485350009dd70bb64cff1f0fff750b08ffff073be5fb1e785e2b020f1a949d5ea14aea7fed82f01dd8**** + */ + nextToken?: string; + /** + * @remarks + * The interval at which the monitoring data is queried. + * + * Valid values: 60, 300, and 900. + * + * Unit: seconds. + * + * > Configure this parameter based on your business scenario. + * + * @example + * 60 + */ + period?: string; + regionId?: string; + /** + * @remarks + * The beginning of the time range to query. The following formats are supported: + * + * * UNIX timestamp: the number of milliseconds that have elapsed since 00:00:00 Thursday, January 1, 1970 + * * UTC time: the UTC time that follows the YYYY-MM-DDThh:mm:ssZ format + * + * > The specified period includes the end time and excludes the start time. The start time must be earlier than the end time. + * + * @example + * 2019-01-30 00:00:00 + */ + startTime?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListRequest.js new file mode 100644 index 0000000..2bc765b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListRequest.js @@ -0,0 +1,76 @@ +"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.DescribeMetricListRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMetricListRequest extends $dara.Model { + static names() { + return { + dimensions: 'Dimensions', + endTime: 'EndTime', + express: 'Express', + length: 'Length', + metricName: 'MetricName', + namespace: 'Namespace', + nextToken: 'NextToken', + period: 'Period', + regionId: 'RegionId', + startTime: 'StartTime', + }; + } + static types() { + return { + dimensions: 'string', + endTime: 'string', + express: 'string', + length: 'string', + metricName: 'string', + namespace: 'string', + nextToken: 'string', + period: 'string', + regionId: 'string', + startTime: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricListRequest = DescribeMetricListRequest; +//# sourceMappingURL=DescribeMetricListRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListRequest.js.map new file mode 100644 index 0000000..ef69519 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMetricListRequest.js","sourceRoot":"","sources":["../../src/models/DescribeMetricListRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IA0GxD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,QAAQ;YACjB,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;YACnB,SAAS,EAAE,QAAQ;YACnB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/ID,8DA+IC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListResponse.d.ts new file mode 100644 index 0000000..d095fb8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeMetricListResponseBody } from "./DescribeMetricListResponseBody"; +export declare class DescribeMetricListResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeMetricListResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListResponse.js new file mode 100644 index 0000000..f4ef927 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListResponse.js @@ -0,0 +1,69 @@ +"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.DescribeMetricListResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeMetricListResponseBody_1 = require("./DescribeMetricListResponseBody"); +class DescribeMetricListResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMetricListResponseBody_1.DescribeMetricListResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricListResponse = DescribeMetricListResponse; +//# sourceMappingURL=DescribeMetricListResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListResponse.js.map new file mode 100644 index 0000000..ec55bdf --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMetricListResponse.js","sourceRoot":"","sources":["../../src/models/DescribeMetricListResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,qFAAkF;AAGlF,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IAIzD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,+DAA8B;SACrC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,gEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListResponseBody.d.ts new file mode 100644 index 0000000..ed62d9e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListResponseBody.d.ts @@ -0,0 +1,74 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMetricListResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The monitoring data. + * + * @example + * [{"timestamp":1548777660000,"userId":"120886317861****","instanceId":"i-abc","Minimum":9.92,"Average":9.92,"Maximum":9.92}] + */ + datapoints?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The paging token. + * + * @example + * 15761441850009dd70bb64cff1f0fff6d0b08ffff073be5fb1e785e2b020f7fed9b5e137bd810a6d6cff5ae**** + */ + nextToken?: string; + /** + * @remarks + * The interval at which the monitoring data is queried. Unit: seconds. Valid values: 60, 300, and 900. + * + * @example + * 60 + */ + period?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * 3121AE7D-4AFF-4C25-8F1D-C8226EBB1F42 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call was successful. Valid values: + * + * * true: The call was successful. + * * false: The call failed. + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListResponseBody.js new file mode 100644 index 0000000..cedb1b6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListResponseBody.js @@ -0,0 +1,70 @@ +"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.DescribeMetricListResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMetricListResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + datapoints: 'Datapoints', + message: 'Message', + nextToken: 'NextToken', + period: 'Period', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + datapoints: 'string', + message: 'string', + nextToken: 'string', + period: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricListResponseBody = DescribeMetricListResponseBody; +//# sourceMappingURL=DescribeMetricListResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListResponseBody.js.map new file mode 100644 index 0000000..5d7d3e8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricListResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMetricListResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeMetricListResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IA8D7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,UAAU,EAAE,YAAY;YACxB,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,QAAQ;YACpB,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA7FD,wEA6FC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListRequest.d.ts new file mode 100644 index 0000000..b65b74b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListRequest.d.ts @@ -0,0 +1,64 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMetricMetaListRequest extends $dara.Model { + /** + * @remarks + * The tags for filtering metrics. Specify a JSON string. + * + * Format: ` [{"name":"tag key","value":"tag value"},{"name":"tag key","value":"tag value"}] `. The following tags are available: + * + * * metricCategory: the category of the metric. + * * alertEnable: specifies whether to report alerts for the metric. + * * alertUnit: the unit of the metric in the alerts. + * * unitFactor: the factor for metric unit conversion. + * * minAlertPeriod: the minimum interval at which the alert is reported. + * * productCategory: the category of the service. + * + * @example + * [{"name":"productCategory","value":"kvstore_old"}] + */ + labels?: string; + /** + * @remarks + * The metric name. For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * CPUUtilization + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * For more information about the namespaces of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * acs_kvstore + */ + namespace?: string; + /** + * @remarks + * The page number. Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. Default value: 30. + * + * @example + * 30 + */ + pageSize?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListRequest.js new file mode 100644 index 0000000..9759601 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListRequest.js @@ -0,0 +1,66 @@ +"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.DescribeMetricMetaListRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMetricMetaListRequest extends $dara.Model { + static names() { + return { + labels: 'Labels', + metricName: 'MetricName', + namespace: 'Namespace', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + }; + } + static types() { + return { + labels: 'string', + metricName: 'string', + namespace: 'string', + pageNumber: 'number', + pageSize: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricMetaListRequest = DescribeMetricMetaListRequest; +//# sourceMappingURL=DescribeMetricMetaListRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListRequest.js.map new file mode 100644 index 0000000..7c2999a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMetricMetaListRequest.js","sourceRoot":"","sources":["../../src/models/DescribeMetricMetaListRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IAoD5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;YACnB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/ED,sEA+EC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListResponse.d.ts new file mode 100644 index 0000000..d5acd97 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeMetricMetaListResponseBody } from "./DescribeMetricMetaListResponseBody"; +export declare class DescribeMetricMetaListResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeMetricMetaListResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListResponse.js new file mode 100644 index 0000000..c73984d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListResponse.js @@ -0,0 +1,69 @@ +"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.DescribeMetricMetaListResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeMetricMetaListResponseBody_1 = require("./DescribeMetricMetaListResponseBody"); +class DescribeMetricMetaListResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMetricMetaListResponseBody_1.DescribeMetricMetaListResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricMetaListResponse = DescribeMetricMetaListResponse; +//# sourceMappingURL=DescribeMetricMetaListResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListResponse.js.map new file mode 100644 index 0000000..cffe197 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMetricMetaListResponse.js","sourceRoot":"","sources":["../../src/models/DescribeMetricMetaListResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,6FAA0F;AAG1F,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAI7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,uEAAkC;SACzC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,wEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListResponseBody.d.ts new file mode 100644 index 0000000..3dc09e4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListResponseBody.d.ts @@ -0,0 +1,163 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMetricMetaListResponseBodyResourcesResource extends $dara.Model { + /** + * @remarks + * The metric description. + * + * @example + * CPUUtilization + */ + description?: string; + /** + * @remarks + * The monitoring dimensions of the resource. Multiple monitoring dimensions are separated with commas (,). + * + * @example + * instanceId + */ + dimensions?: string; + /** + * @remarks + * The tags of the metric, including one or more JSON strings. + * + * Format: `[{"name":"tag key","value":"tag value"}]`. The `name` can be repeated. The following tags are available: + * + * * metricCategory: the category of the metric. + * * alertEnable: indicates whether to report alerts for the metric. + * * alertUnit: the unit of the metric in the alerts. + * * unitFactor: the factor for metric unit conversion. + * * minAlertPeriod: the minimum interval at which the alert is reported. + * * productCategory: the category of the service. + * + * @example + * [{\\"name\\":\\"alertUnit\\",\\"value\\":\\"Bytes\\"},{\\"name\\":\\"minAlertPeriod\\",\\"value\\":\\"60\\"},{\\"name\\":\\"metricCategory\\",\\"value\\":\\"instanceId\\"},{\\"name\\":\\"instanceType\\",\\"value\\":\\"disaster\\"},{\\"name\\":\\"is_alarm\\",\\"value\\":\\"true\\"},{\\"name\\":\\"productCategory\\",\\"value\\":\\"kvstore_old\\"}] + */ + labels?: string; + /** + * @remarks + * The metric name. + * + * @example + * CPUUtilization + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * @example + * acs_kvstore + */ + namespace?: string; + /** + * @remarks + * The statistical periods of the metric. Multiple statistical periods are separated with commas (,). + * + * Unit: seconds. + * + * @example + * 60,300 + */ + periods?: string; + /** + * @remarks + * The statistical method. Multiple statistical methods are separated with commas (,). + * + * @example + * Average,Minimum,Maximum + */ + statistics?: string; + /** + * @remarks + * The unit of the metric. + * + * @example + * % + */ + unit?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMetricMetaListResponseBodyResources extends $dara.Model { + resource?: DescribeMetricMetaListResponseBodyResourcesResource[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMetricMetaListResponseBody extends $dara.Model { + /** + * @remarks + * The response code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 0CCE0AF0-053C-4B13-A583-DC9A85785D49 + */ + requestId?: string; + /** + * @remarks + * The configuration of the metrics in the resources. + */ + resources?: DescribeMetricMetaListResponseBodyResources; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The total number of entries returned. + * + * @example + * 12 + */ + totalCount?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListResponseBody.js new file mode 100644 index 0000000..cfc87bd --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListResponseBody.js @@ -0,0 +1,126 @@ +"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.DescribeMetricMetaListResponseBody = exports.DescribeMetricMetaListResponseBodyResources = exports.DescribeMetricMetaListResponseBodyResourcesResource = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMetricMetaListResponseBodyResourcesResource extends $dara.Model { + static names() { + return { + description: 'Description', + dimensions: 'Dimensions', + labels: 'Labels', + metricName: 'MetricName', + namespace: 'Namespace', + periods: 'Periods', + statistics: 'Statistics', + unit: 'Unit', + }; + } + static types() { + return { + description: 'string', + dimensions: 'string', + labels: 'string', + metricName: 'string', + namespace: 'string', + periods: 'string', + statistics: 'string', + unit: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricMetaListResponseBodyResourcesResource = DescribeMetricMetaListResponseBodyResourcesResource; +class DescribeMetricMetaListResponseBodyResources extends $dara.Model { + static names() { + return { + resource: 'Resource', + }; + } + static types() { + return { + resource: { 'type': 'array', 'itemType': DescribeMetricMetaListResponseBodyResourcesResource }, + }; + } + validate() { + if (Array.isArray(this.resource)) { + $dara.Model.validateArray(this.resource); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricMetaListResponseBodyResources = DescribeMetricMetaListResponseBodyResources; +class DescribeMetricMetaListResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + resources: 'Resources', + success: 'Success', + totalCount: 'TotalCount', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + resources: DescribeMetricMetaListResponseBodyResources, + success: 'boolean', + totalCount: 'string', + }; + } + validate() { + if (this.resources && typeof this.resources.validate === 'function') { + this.resources.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricMetaListResponseBody = DescribeMetricMetaListResponseBody; +//# sourceMappingURL=DescribeMetricMetaListResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListResponseBody.js.map new file mode 100644 index 0000000..74f82c0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricMetaListResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMetricMetaListResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeMetricMetaListResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mDAAoD,SAAQ,KAAK,CAAC,KAAK;IA4ElF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;YAC1B,UAAU,EAAE,YAAY;YACxB,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YACl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SAAS;YAClB,UAAU,EAAE,YAAY;SACzB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,SAAS,EAAE,2CAA2C;YACtD,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,QAAQ;SACrB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,SAAS,IAAI,OAAQ,IAAI,CAAC,SAAiB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YAC3E,IAAI,CAAC,SAAiB,CAAC,QAAQ,EAAE,CAAC;QACrC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnFD,gFAmFC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListRequest.d.ts new file mode 100644 index 0000000..3a5b42d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListRequest.d.ts @@ -0,0 +1,98 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMetricRuleBlackListRequest extends $dara.Model { + /** + * @remarks + * The ID of the blacklist policy. + * + * @example + * ecs + */ + category?: string; + ids?: string[]; + /** + * @remarks + * The IDs of the instances in the blacklist policy. + * + * Valid values of N: 0 to 10. + */ + instanceIds?: string[]; + /** + * @remarks + * The status of the blacklist policy. Valid values: + * + * * true: The blacklist policy is enabled. + * * false: The blacklist policy is disabled. + * + * @example + * true + */ + isEnable?: boolean; + /** + * @remarks + * The name of the blacklist policy. + * + * This parameter supports fuzzy match. + * + * @example + * Blacklist-01 + */ + name?: string; + /** + * @remarks + * The timestamp when the blacklist policy expired. + * + * Unit: milliseconds. + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call was successful. + * + * @example + * DESC + */ + order?: number; + /** + * @remarks + * The name of the metric. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The categories of the Alibaba Cloud service. For example, ApsaraDB for Redis includes the following categories: ApsaraDB for Redis (standard architecture), ApsaraDB for Redis (cluster architecture), and ApsaraDB for Redis (read/write splitting architecture). In this case, the valid values of this parameter for ApsaraDB for Redis include `kvstore_standard`, `kvstore_sharding`, and `kvstore_splitrw`. + * + * @example + * 100 + */ + pageSize?: number; + regionId?: string; + /** + * @remarks + * The effective scope of the blacklist policy. Valid values: + * + * * USER: The blacklist policy takes effect only within the current Alibaba Cloud account. + * * GROUP: The blacklist policy takes effect only within the specified application group. + * + * @example + * USER + */ + scopeType?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListRequest.js new file mode 100644 index 0000000..078a447 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListRequest.js @@ -0,0 +1,84 @@ +"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.DescribeMetricRuleBlackListRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMetricRuleBlackListRequest extends $dara.Model { + static names() { + return { + category: 'Category', + ids: 'Ids', + instanceIds: 'InstanceIds', + isEnable: 'IsEnable', + name: 'Name', + namespace: 'Namespace', + order: 'Order', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + scopeType: 'ScopeType', + }; + } + static types() { + return { + category: 'string', + ids: { 'type': 'array', 'itemType': 'string' }, + instanceIds: { 'type': 'array', 'itemType': 'string' }, + isEnable: 'boolean', + name: 'string', + namespace: 'string', + order: 'number', + pageNumber: 'number', + pageSize: 'number', + regionId: 'string', + scopeType: 'string', + }; + } + validate() { + if (Array.isArray(this.ids)) { + $dara.Model.validateArray(this.ids); + } + if (Array.isArray(this.instanceIds)) { + $dara.Model.validateArray(this.instanceIds); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleBlackListRequest = DescribeMetricRuleBlackListRequest; +//# sourceMappingURL=DescribeMetricRuleBlackListRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListRequest.js.map new file mode 100644 index 0000000..ef4fe4d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMetricRuleBlackListRequest.js","sourceRoot":"","sources":["../../src/models/DescribeMetricRuleBlackListRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;IAsFjE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,GAAG,EAAE,KAAK;YACV,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,UAAU;YACpB,IAAI,EAAE,MAAM;YACZ,SAAS,EAAE,WAAW;YACtB,KAAK,EAAE,OAAO;YACd,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,GAAG,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YAC9C,WAAW,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YACtD,QAAQ,EAAE,SAAS;YACnB,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,QAAQ;YACnB,KAAK,EAAE,QAAQ;YACf,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;YAC3B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACtC,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;YACnC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC9C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnID,gFAmIC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListResponse.d.ts new file mode 100644 index 0000000..7104142 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeMetricRuleBlackListResponseBody } from "./DescribeMetricRuleBlackListResponseBody"; +export declare class DescribeMetricRuleBlackListResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeMetricRuleBlackListResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListResponse.js new file mode 100644 index 0000000..1f00e4d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListResponse.js @@ -0,0 +1,69 @@ +"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.DescribeMetricRuleBlackListResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeMetricRuleBlackListResponseBody_1 = require("./DescribeMetricRuleBlackListResponseBody"); +class DescribeMetricRuleBlackListResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMetricRuleBlackListResponseBody_1.DescribeMetricRuleBlackListResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleBlackListResponse = DescribeMetricRuleBlackListResponse; +//# sourceMappingURL=DescribeMetricRuleBlackListResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListResponse.js.map new file mode 100644 index 0000000..5fe1b60 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMetricRuleBlackListResponse.js","sourceRoot":"","sources":["../../src/models/DescribeMetricRuleBlackListResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,uGAAoG;AAGpG,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IAIlE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,iFAAuC;SAC9C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,kFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListResponseBody.d.ts new file mode 100644 index 0000000..dd103ee --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListResponseBody.d.ts @@ -0,0 +1,219 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMetricRuleBlackListResponseBodyDescribeMetricRuleBlackListMetrics extends $dara.Model { + /** + * @remarks + * The metric name. + * + * @example + * disk_utilization + */ + metricName?: string; + /** + * @remarks + * The extended dimension of the instance. For example, `{"device":"C:"}` specifies that the blacklist policy is applied to all C disks of the specified Elastic Compute Service (ECS) instance. + * + * @example + * [{"device":"C:"}] + */ + resource?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMetricRuleBlackListResponseBodyDescribeMetricRuleBlackList extends $dara.Model { + /** + * @remarks + * The category of the cloud service. For example, ApsaraDB for Redis includes the following categories: ApsaraDB for Redis (standard architecture), ApsaraDB for Redis (cluster architecture), and ApsaraDB for Redis (read/write splitting architecture). In this case, the valid values of this parameter for ApsaraDB for Redis include `kvstore_standard`, `kvstore_sharding`, and `kvstore_splitrw`. + * + * @example + * ecs + */ + category?: string; + /** + * @remarks + * The timestamp when the blacklist policy was created. + * + * Unit: milliseconds. + * + * @example + * 1665714561000 + */ + createTime?: string; + /** + * @remarks + * The time range within which the blacklist policy is effective. + * + * @example + * 00:00-23:59 + */ + effectiveTime?: string; + /** + * @remarks + * The timestamp when the blacklist policy started to take effect. + * + * Unit: milliseconds. + * + * @example + * 1640608200000 + */ + enableEndTime?: number; + /** + * @remarks + * The timestamp when the blacklist policy expired. + * + * Unit: milliseconds. + * + * @example + * 1640237400000 + */ + enableStartTime?: number; + /** + * @remarks + * The ID of the blacklist policy. + * + * @example + * 93514c96-ceb8-47d8-8ee3-93b6d98b**** + */ + id?: string; + /** + * @remarks + * The IDs of the instances that belong to the specified cloud service. + */ + instances?: string[]; + /** + * @remarks + * The status of the blacklist policy. Valid values: + * + * * true: The blacklist policy is enabled. + * * false: The blacklist policy is disabled. + * + * @example + * true + */ + isEnable?: boolean; + /** + * @remarks + * The metrics of the instance. + */ + metrics?: DescribeMetricRuleBlackListResponseBodyDescribeMetricRuleBlackListMetrics[]; + /** + * @remarks + * The name of the blacklist policy. + * + * @example + * Blacklist-01 + */ + name?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The effective scope of the blacklist policy. Valid values: + * + * * USER: The blacklist policy takes effect only within the current Alibaba Cloud account. + * * GROUP: The blacklist policy takes effect only within the specified application group. + * + * @example + * USER + */ + scopeType?: string; + /** + * @remarks + * The IDs of the application groups. + */ + scopeValue?: string[]; + /** + * @remarks + * The timestamp when the blacklist policy was modified. + * + * Unit: milliseconds. + * + * @example + * 1665718373000 + */ + updateTime?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMetricRuleBlackListResponseBody extends $dara.Model { + /** + * @remarks + * The categories of the Alibaba Cloud service. For example, ApsaraDB for Redis includes the following categories: ApsaraDB for Redis (standard architecture), ApsaraDB for Redis (cluster architecture), and ApsaraDB for Redis (read/write splitting architecture). In this case, the valid values of this parameter for ApsaraDB for Redis include `kvstore_standard`, `kvstore_sharding`, and `kvstore_splitrw`. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The queried blacklist policies. + */ + describeMetricRuleBlackList?: DescribeMetricRuleBlackListResponseBodyDescribeMetricRuleBlackList[]; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * @example + * D63E76CB-29AA-5B9F-88CE-400A6F28D428 + */ + requestId?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * For more information about the namespaces of different cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The timestamp when the blacklist policy was created. + * + * Unit: milliseconds. + * + * @example + * 1 + */ + total?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListResponseBody.js new file mode 100644 index 0000000..86f7641 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListResponseBody.js @@ -0,0 +1,146 @@ +"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.DescribeMetricRuleBlackListResponseBody = exports.DescribeMetricRuleBlackListResponseBodyDescribeMetricRuleBlackList = exports.DescribeMetricRuleBlackListResponseBodyDescribeMetricRuleBlackListMetrics = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMetricRuleBlackListResponseBodyDescribeMetricRuleBlackListMetrics extends $dara.Model { + static names() { + return { + metricName: 'MetricName', + resource: 'Resource', + }; + } + static types() { + return { + metricName: 'string', + resource: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleBlackListResponseBodyDescribeMetricRuleBlackListMetrics = DescribeMetricRuleBlackListResponseBodyDescribeMetricRuleBlackListMetrics; +class DescribeMetricRuleBlackListResponseBodyDescribeMetricRuleBlackList extends $dara.Model { + static names() { + return { + category: 'Category', + createTime: 'CreateTime', + effectiveTime: 'EffectiveTime', + enableEndTime: 'EnableEndTime', + enableStartTime: 'EnableStartTime', + id: 'Id', + instances: 'Instances', + isEnable: 'IsEnable', + metrics: 'Metrics', + name: 'Name', + namespace: 'Namespace', + scopeType: 'ScopeType', + scopeValue: 'ScopeValue', + updateTime: 'UpdateTime', + }; + } + static types() { + return { + category: 'string', + createTime: 'string', + effectiveTime: 'string', + enableEndTime: 'number', + enableStartTime: 'number', + id: 'string', + instances: { 'type': 'array', 'itemType': 'string' }, + isEnable: 'boolean', + metrics: { 'type': 'array', 'itemType': DescribeMetricRuleBlackListResponseBodyDescribeMetricRuleBlackListMetrics }, + name: 'string', + namespace: 'string', + scopeType: 'string', + scopeValue: { 'type': 'array', 'itemType': 'string' }, + updateTime: 'string', + }; + } + validate() { + if (Array.isArray(this.instances)) { + $dara.Model.validateArray(this.instances); + } + if (Array.isArray(this.metrics)) { + $dara.Model.validateArray(this.metrics); + } + if (Array.isArray(this.scopeValue)) { + $dara.Model.validateArray(this.scopeValue); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleBlackListResponseBodyDescribeMetricRuleBlackList = DescribeMetricRuleBlackListResponseBodyDescribeMetricRuleBlackList; +class DescribeMetricRuleBlackListResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + describeMetricRuleBlackList: 'DescribeMetricRuleBlackList', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + total: 'Total', + }; + } + static types() { + return { + code: 'string', + describeMetricRuleBlackList: { 'type': 'array', 'itemType': DescribeMetricRuleBlackListResponseBodyDescribeMetricRuleBlackList }, + message: 'string', + requestId: 'string', + success: 'boolean', + total: 'number', + }; + } + validate() { + if (Array.isArray(this.describeMetricRuleBlackList)) { + $dara.Model.validateArray(this.describeMetricRuleBlackList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleBlackListResponseBody = DescribeMetricRuleBlackListResponseBody; +//# sourceMappingURL=DescribeMetricRuleBlackListResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListResponseBody.js.map new file mode 100644 index 0000000..a18aca1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleBlackListResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMetricRuleBlackListResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeMetricRuleBlackListResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yEAA0E,SAAQ,KAAK,CAAC,KAAK;IAiBxG,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtCD,8JAsCC;AAED,MAAa,kEAAmE,SAAQ,KAAK,CAAC,KAAK;IAsHjG,MAAM,CAAC,KAAK;QACV,OAAO;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C;QAC1C,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;YAClC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC7C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5KD,gJA4KC;AAED,MAAa,uCAAwC,SAAQ,KAAK,CAAC,KAAK;IAkDtE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,2BAA2B,EAAE,6BAA6B;YAC1D,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,2BAA2B,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,kEAAkE,EAAE;YAChI,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,CAAC,EAAE,CAAC;YACnD,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC;QAC9D,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAlFD,0FAkFC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountRequest.d.ts new file mode 100644 index 0000000..cd76782 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountRequest.d.ts @@ -0,0 +1,30 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMetricRuleCountRequest extends $dara.Model { + /** + * @remarks + * The metric name. For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountRequest.js new file mode 100644 index 0000000..fd3bbce --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountRequest.js @@ -0,0 +1,62 @@ +"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.DescribeMetricRuleCountRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMetricRuleCountRequest extends $dara.Model { + static names() { + return { + metricName: 'MetricName', + namespace: 'Namespace', + regionId: 'RegionId', + }; + } + static types() { + return { + metricName: 'string', + namespace: 'string', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleCountRequest = DescribeMetricRuleCountRequest; +//# sourceMappingURL=DescribeMetricRuleCountRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountRequest.js.map new file mode 100644 index 0000000..2c23cdf --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMetricRuleCountRequest.js","sourceRoot":"","sources":["../../src/models/DescribeMetricRuleCountRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAkB7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;YACnB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzCD,wEAyCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountResponse.d.ts new file mode 100644 index 0000000..388aa5d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeMetricRuleCountResponseBody } from "./DescribeMetricRuleCountResponseBody"; +export declare class DescribeMetricRuleCountResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeMetricRuleCountResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountResponse.js new file mode 100644 index 0000000..5b033cf --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountResponse.js @@ -0,0 +1,69 @@ +"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.DescribeMetricRuleCountResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeMetricRuleCountResponseBody_1 = require("./DescribeMetricRuleCountResponseBody"); +class DescribeMetricRuleCountResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMetricRuleCountResponseBody_1.DescribeMetricRuleCountResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleCountResponse = DescribeMetricRuleCountResponse; +//# sourceMappingURL=DescribeMetricRuleCountResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountResponse.js.map new file mode 100644 index 0000000..47dd2a1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMetricRuleCountResponse.js","sourceRoot":"","sources":["../../src/models/DescribeMetricRuleCountResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,+FAA4F;AAG5F,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAI9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,yEAAmC;SAC1C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,0EAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountResponseBody.d.ts new file mode 100644 index 0000000..b7b8b83 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountResponseBody.d.ts @@ -0,0 +1,107 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMetricRuleCountResponseBodyMetricRuleCount extends $dara.Model { + /** + * @remarks + * The number of alert rules with active alerts. + * + * @example + * 5 + */ + alarm?: number; + /** + * @remarks + * The number of disabled alert rules. + * + * @example + * 0 + */ + disable?: number; + /** + * @remarks + * The number of alert rules without data. + * + * @example + * 0 + */ + nodata?: number; + /** + * @remarks + * The number of alert rules without active alerts. + * + * @example + * 40 + */ + ok?: number; + /** + * @remarks + * The total number of alert rules. + * + * @example + * 45 + */ + total?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMetricRuleCountResponseBody extends $dara.Model { + /** + * @remarks + * The responses code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The number of alert rules in each state. + */ + metricRuleCount?: DescribeMetricRuleCountResponseBodyMetricRuleCount; + /** + * @remarks + * The request ID. + * + * @example + * FF38D33A-67C1-40EB-AB65-FAEE51EDB644 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountResponseBody.js new file mode 100644 index 0000000..a8b7ce4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountResponseBody.js @@ -0,0 +1,96 @@ +"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.DescribeMetricRuleCountResponseBody = exports.DescribeMetricRuleCountResponseBodyMetricRuleCount = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMetricRuleCountResponseBodyMetricRuleCount extends $dara.Model { + static names() { + return { + alarm: 'Alarm', + disable: 'Disable', + nodata: 'Nodata', + ok: 'Ok', + total: 'Total', + }; + } + static types() { + return { + alarm: 'number', + disable: 'number', + nodata: 'number', + ok: 'number', + total: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleCountResponseBodyMetricRuleCount = DescribeMetricRuleCountResponseBodyMetricRuleCount; +class DescribeMetricRuleCountResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + metricRuleCount: 'MetricRuleCount', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + metricRuleCount: DescribeMetricRuleCountResponseBodyMetricRuleCount, + requestId: 'string', + success: 'boolean', + }; + } + validate() { + if (this.metricRuleCount && typeof this.metricRuleCount.validate === 'function') { + this.metricRuleCount.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleCountResponseBody = DescribeMetricRuleCountResponseBody; +//# sourceMappingURL=DescribeMetricRuleCountResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountResponseBody.js.map new file mode 100644 index 0000000..5f41118 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleCountResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMetricRuleCountResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeMetricRuleCountResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kDAAmD,SAAQ,KAAK,CAAC,KAAK;IAyCjF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,QAAQ;YAChB,EAAE,EAAE,IAAI;YACR,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,QAAQ;YACf,OAAO,EAAE,QAAQ;YACjB,MAAM,EAAE,QAAQ;YAChB,EAAE,EAAE,QAAQ;YACZ,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApED,gHAoEC;AAED,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IA2ClE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,eAAe,EAAE,iBAAiB;YAClC,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,eAAe,EAAE,kDAAkD;YACnE,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,eAAe,IAAI,OAAQ,IAAI,CAAC,eAAuB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACvF,IAAI,CAAC,eAAuB,CAAC,QAAQ,EAAE,CAAC;QAC3C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,kFAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListRequest.d.ts new file mode 100644 index 0000000..393160f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListRequest.d.ts @@ -0,0 +1,115 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMetricRuleListRequest extends $dara.Model { + /** + * @remarks + * The status of the alert rule. Valid values: + * + * * OK: The alert rule has no active alerts. + * * ALARM: The alert rule has active alerts. + * * INSUFFICIENT_DATA: No data is available. + * + * @example + * OK + */ + alertState?: string; + /** + * @remarks + * The monitoring dimensions of the specified resource. + * + * Set the value to a collection of `key:value` pairs. Example: `{"userId":"120886317861****"}` or `{"instanceId":"i-2ze2d6j5uhg20x47****"}`. + * + * @example + * {"instanceId":"i-2ze2d6j5uhg20x47****"} + */ + dimensions?: string; + /** + * @remarks + * Specifies whether to query enabled or disabled alert rules. Valid values: + * + * * true: queries enabled alert rules. + * * false: queries disabled alert rules. + * + * @example + * true + */ + enableState?: boolean; + /** + * @remarks + * The ID of the application group. + * + * For information about how to obtain the ID of an application group, see [DescribeMonitorGroups](https://help.aliyun.com/document_detail/115032.html). + * + * @example + * 7301**** + */ + groupId?: string; + /** + * @remarks + * The name of the metric. + * + * For information about how to obtain the name of a metric, see [DescribeMetricMetaList](https://help.aliyun.com/document_detail/98846.html) or [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * 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). + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The page number of the page to return. + * + * Minimum value: 1. Default value: 1. + * + * @example + * 1 + */ + page?: number; + /** + * @remarks + * The number of entries to return on each page. + * + * Minimum value: 1. Default value: 10. + * + * @example + * 10 + */ + pageSize?: number; + regionId?: string; + /** + * @remarks + * The ID of the alert rule. You can specify up to 20 IDs at a time. Separate multiple IDs with commas (,). + * + * @example + * applyTemplate344cfd42-0f32-4fd6-805a-88d7908a**** + */ + ruleIds?: string; + /** + * @remarks + * The name of the alert rule. + * + * This parameter supports fuzzy match. + * + * @example + * Rule_01 + */ + ruleName?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListRequest.js new file mode 100644 index 0000000..ec35904 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListRequest.js @@ -0,0 +1,78 @@ +"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.DescribeMetricRuleListRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMetricRuleListRequest extends $dara.Model { + static names() { + return { + alertState: 'AlertState', + dimensions: 'Dimensions', + enableState: 'EnableState', + groupId: 'GroupId', + metricName: 'MetricName', + namespace: 'Namespace', + page: 'Page', + pageSize: 'PageSize', + regionId: 'RegionId', + ruleIds: 'RuleIds', + ruleName: 'RuleName', + }; + } + static types() { + return { + alertState: 'string', + dimensions: 'string', + enableState: 'boolean', + groupId: 'string', + metricName: 'string', + namespace: 'string', + page: 'number', + pageSize: 'number', + regionId: 'string', + ruleIds: 'string', + ruleName: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleListRequest = DescribeMetricRuleListRequest; +//# sourceMappingURL=DescribeMetricRuleListRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListRequest.js.map new file mode 100644 index 0000000..11cfc4c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMetricRuleListRequest.js","sourceRoot":"","sources":["../../src/models/DescribeMetricRuleListRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IAuG5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,UAAU,EAAE,YAAY;YACxB,WAAW,EAAE,aAAa;YAC1B,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,UAAU,EAAE,QAAQ;YACpB,WAAW,EAAE,SAAS;YACtB,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;YACnB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,OAAO,EAAE,QAAQ;YACjB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA9ID,sEA8IC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListResponse.d.ts new file mode 100644 index 0000000..cef9307 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeMetricRuleListResponseBody } from "./DescribeMetricRuleListResponseBody"; +export declare class DescribeMetricRuleListResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeMetricRuleListResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListResponse.js new file mode 100644 index 0000000..b0b59cb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListResponse.js @@ -0,0 +1,69 @@ +"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.DescribeMetricRuleListResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeMetricRuleListResponseBody_1 = require("./DescribeMetricRuleListResponseBody"); +class DescribeMetricRuleListResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMetricRuleListResponseBody_1.DescribeMetricRuleListResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleListResponse = DescribeMetricRuleListResponse; +//# sourceMappingURL=DescribeMetricRuleListResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListResponse.js.map new file mode 100644 index 0000000..89d67f8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMetricRuleListResponse.js","sourceRoot":"","sources":["../../src/models/DescribeMetricRuleListResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,6FAA0F;AAG1F,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAI7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,uEAAkC;SACzC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,wEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListResponseBody.d.ts new file mode 100644 index 0000000..c81e9ad --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListResponseBody.d.ts @@ -0,0 +1,790 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionListExpressionList extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The metric that is used to monitor the cloud service. + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The aggregation period of the metric. + * + * Unit: seconds. + * + * @example + * 60 + */ + period?: number; + /** + * @remarks + * The statistical method of the metric. Valid values: + * + * * $Maximum: the maximum value + * * $Minimum: the minimum value + * * $Average: the average value + * * $Availability: the availability rate (usually used for site monitoring) + * + * > `$` is the prefix of the metric. For information about the Alibaba Cloud services that are supported by CloudMonitor, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * $Maximum + */ + statistics?: string; + /** + * @remarks + * The alert threshold. + * + * @example + * 90 + */ + threshold?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionList extends $dara.Model { + expressionList?: DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionListExpressionList[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpression extends $dara.Model { + /** + * @remarks + * The trigger conditions that are created in standard mode. + */ + expressionList?: DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionList; + /** + * @remarks + * The relationship between the trigger conditions for multiple metrics. Valid values: + * + * * `&&`: An alert is triggered only if all metrics meet the trigger conditions. An alert is triggered only if the results of all expressions specified in the ExpressionList parameter are `true`. + * * `||`: An alert is triggered if one of the metrics meets the trigger conditions. + * + * @example + * || + */ + expressionListJoin?: string; + /** + * @remarks + * The trigger conditions that are created by using expressions. You can use expressions to create trigger conditions in the following scenarios: + * + * * Set an alert blacklist for specific resources. For example, if you specify `$instanceId != \\"i-io8kfvcpp7x5****\\" ``&&`` $Average > 50`, no alert is triggered when the `average metric value` of the `i-io8kfvcpp7x5****` instance exceeds 50. + * * Set a special alert threshold for a specified instance in the rule. For example, if you specify `$Average > ($instanceId == \\"i-io8kfvcpp7x5****\\"? 80: 50)`, an alert is triggered when the `average metric value` of the `i-io8kfvcpp7x5****` instance exceeds 80 or the `average metric value` of other instances exceeds 50. + * * Limit the number of instances whose metric values exceed the threshold. For example, if you specify `count($Average > 20) > 3`, an alert is triggered only when the number of instances whose `average metric value` exceeds 20 exceeds three. + * + * @example + * $Average > ($instanceId == \\"i-io8kfvcpp7x5****\\"? 80: 50) + */ + expressionRaw?: string; + /** + * @remarks + * The alert level. Valid values: + * + * * CRITICAL + * * WARN + * * INFO + * + * @example + * Critical + */ + level?: string; + /** + * @remarks + * The number of consecutive triggers. If the number of times that the metric values meet the trigger conditions reaches the value of this parameter, CloudMonitor sends alert notifications. + * + * @example + * 3 + */ + times?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsCritical extends $dara.Model { + /** + * @remarks + * The comparison operator that is used to compare the metric value with the threshold. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The additional conditions for triggering Critical-level alerts. The additional conditions take effect when the value of the ComparisonOperator parameter is GreaterThanYesterday, LessThanYesterday, GreaterThanLastWeek, LessThanLastWeek, GreaterThanLastPeriod, or LessThanLastPeriod. + * + * For example, the values of the PreCondition, ComparisonOperator, and Threshold parameters are set to $Average>80, GreaterThanYesterday, and 10, respectively. An alert is triggered only when the average metric value is greater than 80 and 10% greater than the average metric value at the same time yesterday. + * + * > $Average is a placeholder that consists of `a dollar sign ($) and the statistical method`. CloudMonitor replaces the placeholder with the aggregated value or original value before value comparison. + * + * @example + * $Average>80 + */ + preCondition?: string; + /** + * @remarks + * The statistical methods for Critical-level alerts. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Critical-level alerts. + * + * @example + * 90 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before a Critical-level alert is triggered. + * + * @example + * 3 + */ + times?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsInfo extends $dara.Model { + /** + * @remarks + * The comparison operator that is used to compare the metric value with the threshold. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The additional conditions for triggering Info-level alerts. The additional conditions take effect when the value of the ComparisonOperator parameter is GreaterThanYesterday, LessThanYesterday, GreaterThanLastWeek, LessThanLastWeek, GreaterThanLastPeriod, or LessThanLastPeriod. + * + * For example, the values of the PreCondition, ComparisonOperator, and Threshold parameters are set to $Average>80, GreaterThanYesterday, and 10, respectively. An alert is triggered only when the average metric value is greater than 80 and 10% greater than the average metric value at the same time yesterday. + * + * > $Average is a placeholder that consists of `a dollar sign ($) and the statistical method`. CloudMonitor replaces the placeholder with the aggregated value or original value before value comparison. + * + * @example + * $Average>80 + */ + preCondition?: string; + /** + * @remarks + * The statistical methods for Info-level alerts. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Info-level alerts. + * + * @example + * 90 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before an Info-level alert is triggered. + * + * @example + * 3 + */ + times?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsWarn extends $dara.Model { + /** + * @remarks + * The comparison operator that is used to compare the metric value with the threshold. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The additional conditions for triggering Warn-level alerts. The additional conditions take effect when the value of the ComparisonOperator parameter is GreaterThanYesterday, LessThanYesterday, GreaterThanLastWeek, LessThanLastWeek, GreaterThanLastPeriod, or LessThanLastPeriod. + * + * For example, the values of the PreCondition, ComparisonOperator, and Threshold parameters are set to $Average>80, GreaterThanYesterday, and 10, respectively. An alert is triggered only when the average metric value is greater than 80 and 10% greater than the average metric value at the same time yesterday. + * + * > $Average is a placeholder that consists of `a dollar sign ($) and the statistical method`. CloudMonitor replaces the placeholder with the aggregated value or original value before value comparison. + * + * @example + * $Average>80 + */ + preCondition?: string; + /** + * @remarks + * The statistical methods for Warn-level alerts. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Warn-level alerts. + * + * @example + * 90 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before a Warn-level alert is triggered. + * + * @example + * 3 + */ + times?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMetricRuleListResponseBodyAlarmsAlarmEscalations extends $dara.Model { + /** + * @remarks + * The conditions for triggering Critical-level alerts. + */ + critical?: DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsCritical; + /** + * @remarks + * The conditions for triggering Info-level alerts. + */ + info?: DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsInfo; + /** + * @remarks + * The conditions for triggering Warn-level alerts. + */ + warn?: DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsWarn; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMetricRuleListResponseBodyAlarmsAlarmLabelsLabels extends $dara.Model { + /** + * @remarks + * The tag key of the alert rule. + * + * @example + * cmsRuleKey + */ + key?: string; + /** + * @remarks + * The tag value of the alert rule. + * + * @example + * cmsRuleValue + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMetricRuleListResponseBodyAlarmsAlarmLabels extends $dara.Model { + labels?: DescribeMetricRuleListResponseBodyAlarmsAlarmLabelsLabels[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotationsAnnotations extends $dara.Model { + /** + * @remarks + * The key of the annotation. + * + * @example + * summary + */ + key?: string; + /** + * @remarks + * The value of the annotation. + * + * @example + * {{ $labels.instance }} CPU usage above 10% {current value: {{ humanizePercentage $value }} } + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotations extends $dara.Model { + annotations?: DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotationsAnnotations[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheus extends $dara.Model { + /** + * @remarks + * The annotations of the Prometheus alert rule. When a Prometheus alert is triggered, the system renders the annotated keys and values to help you understand the metrics and alert rule. + * + * > This parameter is equivalent to the annotations parameter of open source Prometheus. + */ + annotations?: DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotations; + /** + * @remarks + * The alert level. Valid values: + * + * * CRITICAL + * * WARN + * * INFO + * + * @example + * Critical + */ + level?: string; + /** + * @remarks + * The PromQL query statement. + * + * > The data obtained by using the PromQL query statement is the monitoring data. You must include the alert threshold in this statement. + * + * @example + * CpuUsage{instanceId="xxxx"}[1m]>90 + */ + promQL?: string; + /** + * @remarks + * The number of consecutive triggers. If the number of times that the metric values meet the trigger conditions reaches the value of this parameter, CloudMonitor sends alert notifications. + * + * @example + * 3 + */ + times?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMetricRuleListResponseBodyAlarmsAlarm extends $dara.Model { + /** + * @remarks + * The status of the alert rule. Valid values: + * + * * OK: The alert rule has no active alerts. + * * ALARM: The alert rule has active alerts. + * * INSUFFICIENT_DATA: No data is available. + * + * @example + * OK + */ + alertState?: string; + /** + * @remarks + * The trigger conditions for multiple metrics. + * + * > The trigger conditions for a single metric and multiple metrics are mutually exclusive. You cannot specify trigger conditions for a single metric and multiple metrics at the same time. + */ + compositeExpression?: DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpression; + /** + * @remarks + * The alert contact group. + * + * @example + * ECS_Alarm + */ + contactGroups?: string; + /** + * @remarks + * The dimensions of the alert rule. + * + * @example + * [{"instanceId":"i-2ze2d6j5uhg20x47****"}] + */ + dimensions?: string; + /** + * @remarks + * The time period during which the alert rule is effective. + * + * @example + * 05:31-23:59 + */ + effectiveInterval?: string; + /** + * @remarks + * Indicates whether the alert rule is enabled. Valid values: + * + * * true: The alert rule is enabled. + * * false: The alert rule is disabled. + * + * @example + * true + */ + enableState?: boolean; + /** + * @remarks + * The conditions for triggering different levels of alerts. + */ + escalations?: DescribeMetricRuleListResponseBodyAlarmsAlarmEscalations; + gmtCreate?: number; + gmtUpdate?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 7301**** + */ + groupId?: string; + /** + * @remarks + * The name of the application group. + * + * > If the alert rule is associated with an application group, the name of the application group is returned in this parameter. + * + * @example + * ECS_Group + */ + groupName?: string; + /** + * @remarks + * The tags of the alert rule. + */ + labels?: DescribeMetricRuleListResponseBodyAlarmsAlarmLabels; + /** + * @remarks + * The subject of the alert notification email. + * + * @example + * "${serviceType}-${metricName}-${levelDescription}Notification(${dimensions})" + */ + mailSubject?: string; + /** + * @remarks + * The name of the metric. + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * @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 value): No operation is performed. + * * INSUFFICIENT_DATA: An alert whose content is "Insufficient data" is triggered. + * * OK: The status is considered normal. + * + * @example + * KEEP_LAST_STATE + */ + noDataPolicy?: string; + /** + * @remarks + * The time period during which the alert rule is ineffective. + * + * @example + * 00:00-05:30 + */ + noEffectiveInterval?: string; + /** + * @remarks + * The statistical period. + * + * @example + * 60 + */ + period?: string; + productCategory?: string; + /** + * @remarks + * The Prometheus alerts. + * + * > This parameter is required only if you create a Prometheus alert rule for Hybrid Cloud Monitoring. + */ + prometheus?: DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheus; + /** + * @remarks + * The resources that are associated with the alert rule. + * + * @example + * [{\\"instanceId\\":\\"i-2ze2d6j5uhg20x47****\\"}] + */ + resources?: string; + /** + * @remarks + * The ID of the alert rule. + * + * @example + * applyTemplate344cfd42-0f32-4fd6-805a-88d7908a**** + */ + ruleId?: string; + /** + * @remarks + * The name of the alert rule. + * + * @example + * Rule_01 + */ + 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. Minimum value: 3600. + * + * Only one alert is reported during each mute period even if the metric value consecutively exceeds the alert rule threshold several times. + * + * @example + * 86400 + */ + silenceTime?: number; + /** + * @remarks + * The type of the alert rule. Valid value: METRIC. This value indicates an alert rule for time series metrics. + * + * @example + * METRIC + */ + sourceType?: string; + /** + * @remarks + * The callback URL. CloudMonitor pushes an alert notification to the specified callback URL by sending an HTTP POST request. Only the HTTP protocol is supported. + * + * @example + * https://www.aliyun.com + */ + webhook?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMetricRuleListResponseBodyAlarms extends $dara.Model { + alarm?: DescribeMetricRuleListResponseBodyAlarmsAlarm[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMetricRuleListResponseBody extends $dara.Model { + /** + * @remarks + * The queried alert rules. + */ + alarms?: DescribeMetricRuleListResponseBodyAlarms; + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call is successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * 386C6712-335F-5054-930A-CC92B851ECBA + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call is successful. Valid values: + * + * * true: The call is successful. + * * false: The call fails. + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The total number of returned entries. + * + * @example + * 1 + */ + total?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListResponseBody.js new file mode 100644 index 0000000..5b6228a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListResponseBody.js @@ -0,0 +1,480 @@ +"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.DescribeMetricRuleListResponseBody = exports.DescribeMetricRuleListResponseBodyAlarms = exports.DescribeMetricRuleListResponseBodyAlarmsAlarm = exports.DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheus = exports.DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotations = exports.DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotationsAnnotations = exports.DescribeMetricRuleListResponseBodyAlarmsAlarmLabels = exports.DescribeMetricRuleListResponseBodyAlarmsAlarmLabelsLabels = exports.DescribeMetricRuleListResponseBodyAlarmsAlarmEscalations = exports.DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsWarn = exports.DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsInfo = exports.DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsCritical = exports.DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpression = exports.DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionList = exports.DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionListExpressionList = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionListExpressionList 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.DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionListExpressionList = DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionListExpressionList; +class DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionList extends $dara.Model { + static names() { + return { + expressionList: 'ExpressionList', + }; + } + static types() { + return { + expressionList: { 'type': 'array', 'itemType': DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionListExpressionList }, + }; + } + validate() { + if (Array.isArray(this.expressionList)) { + $dara.Model.validateArray(this.expressionList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionList = DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionList; +class DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpression extends $dara.Model { + static names() { + return { + expressionList: 'ExpressionList', + expressionListJoin: 'ExpressionListJoin', + expressionRaw: 'ExpressionRaw', + level: 'Level', + times: 'Times', + }; + } + static types() { + return { + expressionList: DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionList, + expressionListJoin: 'string', + expressionRaw: 'string', + level: 'string', + times: 'number', + }; + } + validate() { + if (this.expressionList && typeof this.expressionList.validate === 'function') { + this.expressionList.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpression = DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpression; +class DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsCritical extends $dara.Model { + static names() { + return { + comparisonOperator: 'ComparisonOperator', + preCondition: 'PreCondition', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + static types() { + return { + comparisonOperator: 'string', + preCondition: 'string', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsCritical = DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsCritical; +class DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsInfo extends $dara.Model { + static names() { + return { + comparisonOperator: 'ComparisonOperator', + preCondition: 'PreCondition', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + static types() { + return { + comparisonOperator: 'string', + preCondition: 'string', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsInfo = DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsInfo; +class DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsWarn extends $dara.Model { + static names() { + return { + comparisonOperator: 'ComparisonOperator', + preCondition: 'PreCondition', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + static types() { + return { + comparisonOperator: 'string', + preCondition: 'string', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsWarn = DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsWarn; +class DescribeMetricRuleListResponseBodyAlarmsAlarmEscalations extends $dara.Model { + static names() { + return { + critical: 'Critical', + info: 'Info', + warn: 'Warn', + }; + } + static types() { + return { + critical: DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsCritical, + info: DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsInfo, + warn: DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsWarn, + }; + } + 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.DescribeMetricRuleListResponseBodyAlarmsAlarmEscalations = DescribeMetricRuleListResponseBodyAlarmsAlarmEscalations; +class DescribeMetricRuleListResponseBodyAlarmsAlarmLabelsLabels 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.DescribeMetricRuleListResponseBodyAlarmsAlarmLabelsLabels = DescribeMetricRuleListResponseBodyAlarmsAlarmLabelsLabels; +class DescribeMetricRuleListResponseBodyAlarmsAlarmLabels extends $dara.Model { + static names() { + return { + labels: 'Labels', + }; + } + static types() { + return { + labels: { 'type': 'array', 'itemType': DescribeMetricRuleListResponseBodyAlarmsAlarmLabelsLabels }, + }; + } + validate() { + if (Array.isArray(this.labels)) { + $dara.Model.validateArray(this.labels); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleListResponseBodyAlarmsAlarmLabels = DescribeMetricRuleListResponseBodyAlarmsAlarmLabels; +class DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotationsAnnotations 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.DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotationsAnnotations = DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotationsAnnotations; +class DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotations extends $dara.Model { + static names() { + return { + annotations: 'Annotations', + }; + } + static types() { + return { + annotations: { 'type': 'array', 'itemType': DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotationsAnnotations }, + }; + } + validate() { + if (Array.isArray(this.annotations)) { + $dara.Model.validateArray(this.annotations); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotations = DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotations; +class DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheus extends $dara.Model { + static names() { + return { + annotations: 'Annotations', + level: 'Level', + promQL: 'PromQL', + times: 'Times', + }; + } + static types() { + return { + annotations: DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotations, + level: 'string', + promQL: 'string', + times: 'number', + }; + } + validate() { + if (this.annotations && typeof this.annotations.validate === 'function') { + this.annotations.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheus = DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheus; +class DescribeMetricRuleListResponseBodyAlarmsAlarm extends $dara.Model { + static names() { + return { + alertState: 'AlertState', + compositeExpression: 'CompositeExpression', + contactGroups: 'ContactGroups', + dimensions: 'Dimensions', + effectiveInterval: 'EffectiveInterval', + enableState: 'EnableState', + escalations: 'Escalations', + gmtCreate: 'GmtCreate', + gmtUpdate: 'GmtUpdate', + groupId: 'GroupId', + groupName: 'GroupName', + labels: 'Labels', + mailSubject: 'MailSubject', + metricName: 'MetricName', + namespace: 'Namespace', + noDataPolicy: 'NoDataPolicy', + noEffectiveInterval: 'NoEffectiveInterval', + period: 'Period', + productCategory: 'ProductCategory', + prometheus: 'Prometheus', + resources: 'Resources', + ruleId: 'RuleId', + ruleName: 'RuleName', + silenceTime: 'SilenceTime', + sourceType: 'SourceType', + webhook: 'Webhook', + }; + } + static types() { + return { + alertState: 'string', + compositeExpression: DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpression, + contactGroups: 'string', + dimensions: 'string', + effectiveInterval: 'string', + enableState: 'boolean', + escalations: DescribeMetricRuleListResponseBodyAlarmsAlarmEscalations, + gmtCreate: 'number', + gmtUpdate: 'string', + groupId: 'string', + groupName: 'string', + labels: DescribeMetricRuleListResponseBodyAlarmsAlarmLabels, + mailSubject: 'string', + metricName: 'string', + namespace: 'string', + noDataPolicy: 'string', + noEffectiveInterval: 'string', + period: 'string', + productCategory: 'string', + prometheus: DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheus, + resources: 'string', + ruleId: 'string', + ruleName: 'string', + silenceTime: 'number', + sourceType: 'string', + webhook: 'string', + }; + } + validate() { + if (this.compositeExpression && typeof this.compositeExpression.validate === 'function') { + this.compositeExpression.validate(); + } + if (this.escalations && typeof this.escalations.validate === 'function') { + this.escalations.validate(); + } + if (this.labels && typeof this.labels.validate === 'function') { + this.labels.validate(); + } + if (this.prometheus && typeof this.prometheus.validate === 'function') { + this.prometheus.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleListResponseBodyAlarmsAlarm = DescribeMetricRuleListResponseBodyAlarmsAlarm; +class DescribeMetricRuleListResponseBodyAlarms extends $dara.Model { + static names() { + return { + alarm: 'Alarm', + }; + } + static types() { + return { + alarm: { 'type': 'array', 'itemType': DescribeMetricRuleListResponseBodyAlarmsAlarm }, + }; + } + validate() { + if (Array.isArray(this.alarm)) { + $dara.Model.validateArray(this.alarm); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleListResponseBodyAlarms = DescribeMetricRuleListResponseBodyAlarms; +class DescribeMetricRuleListResponseBody extends $dara.Model { + static names() { + return { + alarms: 'Alarms', + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + total: 'Total', + }; + } + static types() { + return { + alarms: DescribeMetricRuleListResponseBodyAlarms, + code: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + total: 'string', + }; + } + validate() { + if (this.alarms && typeof this.alarms.validate === 'function') { + this.alarms.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleListResponseBody = DescribeMetricRuleListResponseBody; +//# sourceMappingURL=DescribeMetricRuleListResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListResponseBody.js.map new file mode 100644 index 0000000..c380b77 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleListResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMetricRuleListResponseBody.js","sourceRoot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,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACxC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxBD,4FAwBC;AAED,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;IAmDjE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,wCAAwC;YAChD,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,MAAM,IAAI,OAAQ,IAAI,CAAC,MAAc,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACrE,IAAI,CAAC,MAAc,CAAC,QAAQ,EAAE,CAAC;QAClC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnFD,gFAmFC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsRequest.d.ts new file mode 100644 index 0000000..c4e1928 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsRequest.d.ts @@ -0,0 +1,26 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMetricRuleTargetsRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * The ID of the alert rule. + * + * For information about how to obtain the ID of an alert rule, see [DescribeMetricRuleList](https://help.aliyun.com/document_detail/114941.html). + * + * This parameter is required. + * + * @example + * ae06917_75a8c43178ab66**** + */ + ruleId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsRequest.js new file mode 100644 index 0000000..39b5ac2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsRequest.js @@ -0,0 +1,60 @@ +"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.DescribeMetricRuleTargetsRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMetricRuleTargetsRequest extends $dara.Model { + static names() { + return { + regionId: 'RegionId', + ruleId: 'RuleId', + }; + } + static types() { + return { + regionId: 'string', + ruleId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleTargetsRequest = DescribeMetricRuleTargetsRequest; +//# sourceMappingURL=DescribeMetricRuleTargetsRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsRequest.js.map new file mode 100644 index 0000000..630ab2a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMetricRuleTargetsRequest.js","sourceRoot":"","sources":["../../src/models/DescribeMetricRuleTargetsRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAc/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnCD,4EAmCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsResponse.d.ts new file mode 100644 index 0000000..b91c2ea --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeMetricRuleTargetsResponseBody } from "./DescribeMetricRuleTargetsResponseBody"; +export declare class DescribeMetricRuleTargetsResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeMetricRuleTargetsResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsResponse.js new file mode 100644 index 0000000..60a0517 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsResponse.js @@ -0,0 +1,69 @@ +"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.DescribeMetricRuleTargetsResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeMetricRuleTargetsResponseBody_1 = require("./DescribeMetricRuleTargetsResponseBody"); +class DescribeMetricRuleTargetsResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMetricRuleTargetsResponseBody_1.DescribeMetricRuleTargetsResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleTargetsResponse = DescribeMetricRuleTargetsResponse; +//# sourceMappingURL=DescribeMetricRuleTargetsResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsResponse.js.map new file mode 100644 index 0000000..ab7fc56 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMetricRuleTargetsResponse.js","sourceRoot":"","sources":["../../src/models/DescribeMetricRuleTargetsResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,mGAAgG;AAGhG,MAAa,iCAAkC,SAAQ,KAAK,CAAC,KAAK;IAIhE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,6EAAqC;SAC5C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,8EAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsResponseBody.d.ts new file mode 100644 index 0000000..9ba0e7b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsResponseBody.d.ts @@ -0,0 +1,121 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMetricRuleTargetsResponseBodyTargetsTarget extends $dara.Model { + /** + * @remarks + * The Alibaba Cloud Resource Name (ARN) of the resource. Format: `acs:{Service name abbreviation}:{regionId}:{userId}:/{Resource type}/{Resource name}/message`. Example: `acs:mns:cn-hangzhou:120886317861****:/queues/test123/message`. Fields: + * + * * {Service name abbreviation}: the abbreviation of the service name. Valid value: mns. + * * {userId}: the ID of the Alibaba Cloud account. + * * {regionId}: the region ID of the message queue or topic. + * * {Resource type}`: the type of the resource for which alerts are triggered. Valid values: - **queues** - **topics** {Resource name}: the name of the resource. - If the resource type is set to **queues**, the resource name is the name of the message queue. - If the resource type is set to **topics**, the resource name is the name of the topic.` + * + * @example + * acs:mns:cn-hangzhou:120886317861****:/queues/test/message + */ + arn?: string; + /** + * @remarks + * The ID of the resource for which alerts are triggered. + * + * @example + * 1 + */ + id?: string; + /** + * @remarks + * The parameters of the alert callback. The parameters are in the JSON format. + * + * @example + * {"customField1":"value1","customField2":"$.name"} + */ + jsonParams?: string; + /** + * @remarks + * The level of the alert. Valid values: + * + * * INFO: information + * * WARN: warning + * * CRITICAL: critical + * + * @example + * ["INFO", "WARN", "CRITICAL"] + */ + level?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMetricRuleTargetsResponseBodyTargets extends $dara.Model { + target?: DescribeMetricRuleTargetsResponseBodyTargetsTarget[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMetricRuleTargetsResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * User not authorized to operate on the specified resource. + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * 786E92D2-AC66-4250-B76F-F1E2FCDDBA1C + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call was successful. Valid values: + * + * * true: The call was successful. + * * false: The call failed. + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The information about the resource for which alerts are triggered. + */ + targets?: DescribeMetricRuleTargetsResponseBodyTargets; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsResponseBody.js new file mode 100644 index 0000000..8ca984c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsResponseBody.js @@ -0,0 +1,116 @@ +"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.DescribeMetricRuleTargetsResponseBody = exports.DescribeMetricRuleTargetsResponseBodyTargets = exports.DescribeMetricRuleTargetsResponseBodyTargetsTarget = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMetricRuleTargetsResponseBodyTargetsTarget extends $dara.Model { + static names() { + return { + arn: 'Arn', + id: 'Id', + jsonParams: 'JsonParams', + level: 'Level', + }; + } + static types() { + return { + arn: 'string', + id: 'string', + jsonParams: 'string', + level: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleTargetsResponseBodyTargetsTarget = DescribeMetricRuleTargetsResponseBodyTargetsTarget; +class DescribeMetricRuleTargetsResponseBodyTargets extends $dara.Model { + static names() { + return { + target: 'Target', + }; + } + static types() { + return { + target: { 'type': 'array', 'itemType': DescribeMetricRuleTargetsResponseBodyTargetsTarget }, + }; + } + validate() { + if (Array.isArray(this.target)) { + $dara.Model.validateArray(this.target); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleTargetsResponseBodyTargets = DescribeMetricRuleTargetsResponseBodyTargets; +class DescribeMetricRuleTargetsResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + targets: 'Targets', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + targets: DescribeMetricRuleTargetsResponseBodyTargets, + }; + } + validate() { + if (this.targets && typeof this.targets.validate === 'function') { + this.targets.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleTargetsResponseBody = DescribeMetricRuleTargetsResponseBody; +//# sourceMappingURL=DescribeMetricRuleTargetsResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsResponseBody.js.map new file mode 100644 index 0000000..9d94ef8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTargetsResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMetricRuleTargetsResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeMetricRuleTargetsResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kDAAmD,SAAQ,KAAK,CAAC,KAAK;IA0CjF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C;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,4CAA4C;SACtD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,IAAI,OAAQ,IAAI,CAAC,OAAe,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACvE,IAAI,CAAC,OAAe,CAAC,QAAQ,EAAE,CAAC;QACnC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,sFAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeRequest.d.ts new file mode 100644 index 0000000..3ea6570 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeRequest.d.ts @@ -0,0 +1,34 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMetricRuleTemplateAttributeRequest extends $dara.Model { + /** + * @remarks + * The name of the alert template. You must specify at least one of the `Name` and `TemplateId` parameters. + * + * For information about how to obtain the name of an alert template, see [DescribeMetricRuleTemplateList](https://help.aliyun.com/document_detail/114982.html). + * + * @example + * ECS_Template1 + */ + name?: string; + regionId?: string; + /** + * @remarks + * The ID of the alert template. You must specify at least one of the `Name` and `TemplateId` parameters. + * + * For information about how to obtain the ID of an alert template, see [DescribeMetricRuleTemplateList](https://help.aliyun.com/document_detail/114982.html). + * + * @example + * 70**** + */ + templateId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeRequest.js new file mode 100644 index 0000000..9d8cd3b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeRequest.js @@ -0,0 +1,62 @@ +"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.DescribeMetricRuleTemplateAttributeRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMetricRuleTemplateAttributeRequest extends $dara.Model { + static names() { + return { + name: 'Name', + regionId: 'RegionId', + templateId: 'TemplateId', + }; + } + static types() { + return { + name: 'string', + regionId: 'string', + templateId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleTemplateAttributeRequest = DescribeMetricRuleTemplateAttributeRequest; +//# sourceMappingURL=DescribeMetricRuleTemplateAttributeRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeRequest.js.map new file mode 100644 index 0000000..e9a913c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMetricRuleTemplateAttributeRequest.js","sourceRoot":"","sources":["../../src/models/DescribeMetricRuleTemplateAttributeRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0CAA2C,SAAQ,KAAK,CAAC,KAAK;IAsBzE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,UAAU;YACpB,UAAU,EAAE,YAAY;SACzB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,QAAQ;YAClB,UAAU,EAAE,QAAQ;SACrB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA7CD,gGA6CC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeResponse.d.ts new file mode 100644 index 0000000..d931e4f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeMetricRuleTemplateAttributeResponseBody } from "./DescribeMetricRuleTemplateAttributeResponseBody"; +export declare class DescribeMetricRuleTemplateAttributeResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeMetricRuleTemplateAttributeResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeResponse.js new file mode 100644 index 0000000..c10927d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeResponse.js @@ -0,0 +1,69 @@ +"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.DescribeMetricRuleTemplateAttributeResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeMetricRuleTemplateAttributeResponseBody_1 = require("./DescribeMetricRuleTemplateAttributeResponseBody"); +class DescribeMetricRuleTemplateAttributeResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMetricRuleTemplateAttributeResponseBody_1.DescribeMetricRuleTemplateAttributeResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleTemplateAttributeResponse = DescribeMetricRuleTemplateAttributeResponse; +//# sourceMappingURL=DescribeMetricRuleTemplateAttributeResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeResponse.js.map new file mode 100644 index 0000000..617dbcd --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMetricRuleTemplateAttributeResponse.js","sourceRoot":"","sources":["../../src/models/DescribeMetricRuleTemplateAttributeResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,uHAAoH;AAGpH,MAAa,2CAA4C,SAAQ,KAAK,CAAC,KAAK;IAI1E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,iGAA+C;SACtD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,kGAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeResponseBody.d.ts new file mode 100644 index 0000000..0414d99 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeResponseBody.d.ts @@ -0,0 +1,439 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsCritical extends $dara.Model { + /** + * @remarks + * The comparison operator that is used to compare the metric value with the threshold for Critical-level alerts. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The statistical method for Critical-level alerts. + * + * The value of the `Statistics` parameter varies with the cloud service. For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Critical-level alerts. + * + * @example + * 90 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before a Critical-level alert is triggered. + * + * @example + * 5 + */ + times?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsInfo extends $dara.Model { + /** + * @remarks + * The comparison operator that is used to compare the metric value with the threshold for Info-level alerts. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The statistical method for Info-level alerts. + * + * The value of the `Statistics` parameter varies with the cloud service. For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Info-level alerts. + * + * @example + * 90 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before an Info-level alert is triggered. + * + * @example + * 3 + */ + times?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsWarn extends $dara.Model { + /** + * @remarks + * The comparison operator that is used to compare the metric value with the threshold for Warn-level alerts. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The statistical method for Warn-level alerts. + * + * The value of the `Statistics` parameter varies with the cloud service. For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Warn-level alerts. + * + * @example + * 90 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before a Warn-level alert is triggered. + * + * @example + * 3 + */ + times?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalations extends $dara.Model { + /** + * @remarks + * The conditions for triggering Critical-level alerts. + */ + critical?: DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsCritical; + /** + * @remarks + * The conditions for triggering Info-level alerts. + */ + info?: DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsInfo; + /** + * @remarks + * The conditions for triggering Warn-level alerts. + */ + warn?: DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsWarn; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabelsLabels extends $dara.Model { + /** + * @remarks + * The tag key of the alert template. + * + * @example + * label1 + */ + key?: string; + /** + * @remarks + * The tag value of the alert template. + * + * @example + * value1 + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabels extends $dara.Model { + labels?: DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabelsLabels[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplate extends $dara.Model { + /** + * @remarks + * The abbreviation of the Alibaba Cloud service name. + * + * @example + * ecs + */ + category?: string; + /** + * @remarks + * The threshold and the alert level. + */ + escalations?: DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalations; + /** + * @remarks + * The tags of the alert template. + */ + labels?: DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabels; + /** + * @remarks + * The metric name. + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The namespace of the Alibaba Cloud service. + * + * @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. + * + * @example + * KEEP_LAST_STATE + */ + noDataPolicy?: string; + /** + * @remarks + * The name of the alert rule. + * + * @example + * ECS_Rule + */ + ruleName?: string; + /** + * @remarks + * The dimension of the alert. It is an extended field. + * + * @example + * {"disk":"/"} + */ + selector?: string; + silenceTime?: number; + /** + * @remarks + * The callback URL to which a request is sent when an alert is triggered. + * + * @example + * https://www.aliyun.com + */ + webhook?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplates extends $dara.Model { + alertTemplate?: DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplate[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMetricRuleTemplateAttributeResponseBodyResource extends $dara.Model { + /** + * @remarks + * The queried alert templates. + */ + alertTemplates?: DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplates; + /** + * @remarks + * The description of the alert template. + */ + description?: string; + /** + * @remarks + * The name of the alert template. + * + * @example + * ECS_Template1 + */ + name?: string; + /** + * @remarks + * The version of the alert template. + * + * @example + * 1 + */ + restVersion?: string; + /** + * @remarks + * The ID of the alert template. + * + * @example + * 70**** + */ + templateId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMetricRuleTemplateAttributeResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The error message returned. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 8F3A82AD-DA92-52B0-8EC6-C059D1C3839F + */ + requestId?: string; + /** + * @remarks + * The details of the alert template. + */ + resource?: DescribeMetricRuleTemplateAttributeResponseBodyResource; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeResponseBody.js new file mode 100644 index 0000000..b099a54 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeResponseBody.js @@ -0,0 +1,314 @@ +"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.DescribeMetricRuleTemplateAttributeResponseBody = exports.DescribeMetricRuleTemplateAttributeResponseBodyResource = exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplates = exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplate = exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabels = exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabelsLabels = exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalations = exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsWarn = exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsInfo = exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsCritical = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsCritical 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.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsCritical = DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsCritical; +class DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsInfo 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.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsInfo = DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsInfo; +class DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsWarn 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.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsWarn = DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsWarn; +class DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalations extends $dara.Model { + static names() { + return { + critical: 'Critical', + info: 'Info', + warn: 'Warn', + }; + } + static types() { + return { + critical: DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsCritical, + info: DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsInfo, + warn: DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsWarn, + }; + } + 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.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalations = DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalations; +class DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabelsLabels 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.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabelsLabels = DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabelsLabels; +class DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabels extends $dara.Model { + static names() { + return { + labels: 'Labels', + }; + } + static types() { + return { + labels: { 'type': 'array', 'itemType': DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabelsLabels }, + }; + } + validate() { + if (Array.isArray(this.labels)) { + $dara.Model.validateArray(this.labels); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabels = DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabels; +class DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplate extends $dara.Model { + static names() { + return { + category: 'Category', + escalations: 'Escalations', + labels: 'Labels', + metricName: 'MetricName', + namespace: 'Namespace', + noDataPolicy: 'NoDataPolicy', + ruleName: 'RuleName', + selector: 'Selector', + silenceTime: 'SilenceTime', + webhook: 'Webhook', + }; + } + static types() { + return { + category: 'string', + escalations: DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalations, + labels: DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabels, + metricName: 'string', + namespace: 'string', + noDataPolicy: 'string', + ruleName: 'string', + selector: 'string', + silenceTime: 'number', + webhook: 'string', + }; + } + validate() { + if (this.escalations && typeof this.escalations.validate === 'function') { + this.escalations.validate(); + } + if (this.labels && typeof this.labels.validate === 'function') { + this.labels.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplate = DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplate; +class DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplates extends $dara.Model { + static names() { + return { + alertTemplate: 'AlertTemplate', + }; + } + static types() { + return { + alertTemplate: { 'type': 'array', 'itemType': DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplate }, + }; + } + validate() { + if (Array.isArray(this.alertTemplate)) { + $dara.Model.validateArray(this.alertTemplate); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplates = DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplates; +class DescribeMetricRuleTemplateAttributeResponseBodyResource extends $dara.Model { + static names() { + return { + alertTemplates: 'AlertTemplates', + description: 'Description', + name: 'Name', + restVersion: 'RestVersion', + templateId: 'TemplateId', + }; + } + static types() { + return { + alertTemplates: DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplates, + description: 'string', + name: 'string', + restVersion: 'string', + templateId: 'string', + }; + } + validate() { + if (this.alertTemplates && typeof this.alertTemplates.validate === 'function') { + this.alertTemplates.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleTemplateAttributeResponseBodyResource = DescribeMetricRuleTemplateAttributeResponseBodyResource; +class DescribeMetricRuleTemplateAttributeResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + resource: 'Resource', + success: 'Success', + }; + } + static types() { + return { + code: 'number', + message: 'string', + requestId: 'string', + resource: DescribeMetricRuleTemplateAttributeResponseBodyResource, + success: 'boolean', + }; + } + validate() { + if (this.resource && typeof this.resource.validate === 'function') { + this.resource.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleTemplateAttributeResponseBody = DescribeMetricRuleTemplateAttributeResponseBody; +//# sourceMappingURL=DescribeMetricRuleTemplateAttributeResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeResponseBody.js.map new file mode 100644 index 0000000..a7bc11a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMetricRuleTemplateAttributeResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeMetricRuleTemplateAttributeResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qGAAsG,SAAQ,KAAK,CAAC,KAAK;IA+CpI,MAAM,CAAC,KAAK;QACV,OAAO;YACL,kBAAkB,EAAE,oBAAoB;YACxC,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,kBAAkB,EAAE,QAAQ;YAC5B,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;YACnB,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxED,sNAwEC;AAED,MAAa,iGAAkG,SAAQ,KAAK,CAAC,KAAK;IA+ChI,MAAM,CAAC,KAAK;QACV,OAAO;YACL,kBAAkB,EAAE,oBAAoB;YACxC,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,kBAAkB,EAAE,QAAQ;YAC5B,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1C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjED,0HAiEC;AAED,MAAa,+CAAgD,SAAQ,KAAK,CAAC,KAAK;IA2C9E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,QAAQ,EAAE,UAAU;YACpB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,QAAQ,EAAE,uDAAuD;YACjE,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,QAAQ,IAAI,OAAQ,IAAI,CAAC,QAAgB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACzE,IAAI,CAAC,QAAgB,CAAC,QAAQ,EAAE,CAAC;QACpC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,0GAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListRequest.d.ts new file mode 100644 index 0000000..7bf163c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListRequest.d.ts @@ -0,0 +1,89 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMetricRuleTemplateListRequest extends $dara.Model { + /** + * @remarks + * Specifies whether to display the history of applying the alert templates to application groups. Valid values: + * + * * true + * * false (default) + * + * @example + * false + */ + history?: boolean; + /** + * @remarks + * The keyword of the alert template name. + * + * @example + * ECS + */ + keyword?: string; + /** + * @remarks + * The name of the alert template. + * + * @example + * ECS_Template1 + */ + name?: string; + /** + * @remarks + * The sorting order. Valid values: + * + * * true (default): ascending order + * * false: descending order + * + * @example + * true + */ + order?: boolean; + /** + * @remarks + * The sorting basis. Valid values: + * + * * gmtMotified: sorts alert templates by modification time + * * gmtCreate (default): sorts alert templates by creation time + * + * @example + * gmtCreate + */ + orderBy?: string; + /** + * @remarks + * The page number. + * + * Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * @example + * 10 + */ + pageSize?: number; + regionId?: string; + /** + * @remarks + * The ID of the alert template. + * + * @example + * 70**** + */ + templateId?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListRequest.js new file mode 100644 index 0000000..837082d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListRequest.js @@ -0,0 +1,74 @@ +"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.DescribeMetricRuleTemplateListRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMetricRuleTemplateListRequest extends $dara.Model { + static names() { + return { + history: 'History', + keyword: 'Keyword', + name: 'Name', + order: 'Order', + orderBy: 'OrderBy', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + templateId: 'TemplateId', + }; + } + static types() { + return { + history: 'boolean', + keyword: 'string', + name: 'string', + order: 'boolean', + orderBy: 'string', + pageNumber: 'number', + pageSize: 'number', + regionId: 'string', + templateId: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleTemplateListRequest = DescribeMetricRuleTemplateListRequest; +//# sourceMappingURL=DescribeMetricRuleTemplateListRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListRequest.js.map new file mode 100644 index 0000000..b13ce85 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMetricRuleTemplateListRequest.js","sourceRoot":"","sources":["../../src/models/DescribeMetricRuleTemplateListRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qCAAsC,SAAQ,KAAK,CAAC,KAAK;IA6EpE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;YAClB,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,OAAO;YACd,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,UAAU,EAAE,YAAY;SACzB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,QAAQ;YACjB,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,SAAS;YAChB,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,UAAU,EAAE,QAAQ;SACrB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAhHD,sFAgHC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListResponse.d.ts new file mode 100644 index 0000000..c0fb938 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeMetricRuleTemplateListResponseBody } from "./DescribeMetricRuleTemplateListResponseBody"; +export declare class DescribeMetricRuleTemplateListResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeMetricRuleTemplateListResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListResponse.js new file mode 100644 index 0000000..c53a9e8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListResponse.js @@ -0,0 +1,69 @@ +"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.DescribeMetricRuleTemplateListResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeMetricRuleTemplateListResponseBody_1 = require("./DescribeMetricRuleTemplateListResponseBody"); +class DescribeMetricRuleTemplateListResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMetricRuleTemplateListResponseBody_1.DescribeMetricRuleTemplateListResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleTemplateListResponse = DescribeMetricRuleTemplateListResponse; +//# sourceMappingURL=DescribeMetricRuleTemplateListResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListResponse.js.map new file mode 100644 index 0000000..9b19f54 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMetricRuleTemplateListResponse.js","sourceRoot":"","sources":["../../src/models/DescribeMetricRuleTemplateListResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,6GAA0G;AAG1G,MAAa,sCAAuC,SAAQ,KAAK,CAAC,KAAK;IAIrE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,uFAA0C;SACjD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,wFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListResponseBody.d.ts new file mode 100644 index 0000000..00c22b1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListResponseBody.d.ts @@ -0,0 +1,195 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMetricRuleTemplateListResponseBodyTemplatesTemplateApplyHistoriesApplyHistory extends $dara.Model { + /** + * @remarks + * The timestamp when the alert template was applied to the application group. + * + * Unit: milliseconds. + * + * @example + * 1646055898000 + */ + applyTime?: number; + /** + * @remarks + * The ID of the application group. + * + * @example + * 3607**** + */ + groupId?: number; + /** + * @remarks + * The name of the application group. + * + * @example + * ECS_Group + */ + groupName?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMetricRuleTemplateListResponseBodyTemplatesTemplateApplyHistories extends $dara.Model { + applyHistory?: DescribeMetricRuleTemplateListResponseBodyTemplatesTemplateApplyHistoriesApplyHistory[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMetricRuleTemplateListResponseBodyTemplatesTemplate extends $dara.Model { + /** + * @remarks + * The history of applying the alert templates to application groups. + */ + applyHistories?: DescribeMetricRuleTemplateListResponseBodyTemplatesTemplateApplyHistories; + /** + * @remarks + * The description of the alert template. + */ + description?: string; + /** + * @remarks + * The timestamp when the alert template was created. + * + * Unit: milliseconds. + * + * @example + * 1646018798000 + */ + gmtCreate?: number; + /** + * @remarks + * The timestamp when the alert template was modified. + * + * Unit: milliseconds. + * + * @example + * 1646054798000 + */ + gmtModified?: number; + /** + * @remarks + * The name of the alert template. + * + * @example + * ECS_Template1 + */ + name?: string; + /** + * @remarks + * The version of the alert template. + * + * Default value: 0. + * + * @example + * 0 + */ + restVersion?: number; + /** + * @remarks + * The ID of the alert template. + * + * @example + * 70**** + */ + templateId?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMetricRuleTemplateListResponseBodyTemplates extends $dara.Model { + template?: DescribeMetricRuleTemplateListResponseBodyTemplatesTemplate[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMetricRuleTemplateListResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 659401C0-6214-5C02-972A-CFA929D717B7 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The queried alert templates. + */ + templates?: DescribeMetricRuleTemplateListResponseBodyTemplates; + /** + * @remarks + * The total number of entries returned. + * + * @example + * 2 + */ + total?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListResponseBody.js new file mode 100644 index 0000000..877b623 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListResponseBody.js @@ -0,0 +1,172 @@ +"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.DescribeMetricRuleTemplateListResponseBody = exports.DescribeMetricRuleTemplateListResponseBodyTemplates = exports.DescribeMetricRuleTemplateListResponseBodyTemplatesTemplate = exports.DescribeMetricRuleTemplateListResponseBodyTemplatesTemplateApplyHistories = exports.DescribeMetricRuleTemplateListResponseBodyTemplatesTemplateApplyHistoriesApplyHistory = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMetricRuleTemplateListResponseBodyTemplatesTemplateApplyHistoriesApplyHistory extends $dara.Model { + static names() { + return { + applyTime: 'ApplyTime', + groupId: 'GroupId', + groupName: 'GroupName', + }; + } + static types() { + return { + applyTime: 'number', + groupId: 'number', + groupName: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleTemplateListResponseBodyTemplatesTemplateApplyHistoriesApplyHistory = DescribeMetricRuleTemplateListResponseBodyTemplatesTemplateApplyHistoriesApplyHistory; +class DescribeMetricRuleTemplateListResponseBodyTemplatesTemplateApplyHistories extends $dara.Model { + static names() { + return { + applyHistory: 'ApplyHistory', + }; + } + static types() { + return { + applyHistory: { 'type': 'array', 'itemType': DescribeMetricRuleTemplateListResponseBodyTemplatesTemplateApplyHistoriesApplyHistory }, + }; + } + validate() { + if (Array.isArray(this.applyHistory)) { + $dara.Model.validateArray(this.applyHistory); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleTemplateListResponseBodyTemplatesTemplateApplyHistories = DescribeMetricRuleTemplateListResponseBodyTemplatesTemplateApplyHistories; +class DescribeMetricRuleTemplateListResponseBodyTemplatesTemplate extends $dara.Model { + static names() { + return { + applyHistories: 'ApplyHistories', + description: 'Description', + gmtCreate: 'GmtCreate', + gmtModified: 'GmtModified', + name: 'Name', + restVersion: 'RestVersion', + templateId: 'TemplateId', + }; + } + static types() { + return { + applyHistories: DescribeMetricRuleTemplateListResponseBodyTemplatesTemplateApplyHistories, + description: 'string', + gmtCreate: 'number', + gmtModified: 'number', + name: 'string', + restVersion: 'number', + templateId: 'number', + }; + } + validate() { + if (this.applyHistories && typeof this.applyHistories.validate === 'function') { + this.applyHistories.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleTemplateListResponseBodyTemplatesTemplate = DescribeMetricRuleTemplateListResponseBodyTemplatesTemplate; +class DescribeMetricRuleTemplateListResponseBodyTemplates extends $dara.Model { + static names() { + return { + template: 'Template', + }; + } + static types() { + return { + template: { 'type': 'array', 'itemType': DescribeMetricRuleTemplateListResponseBodyTemplatesTemplate }, + }; + } + validate() { + if (Array.isArray(this.template)) { + $dara.Model.validateArray(this.template); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleTemplateListResponseBodyTemplates = DescribeMetricRuleTemplateListResponseBodyTemplates; +class DescribeMetricRuleTemplateListResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + templates: 'Templates', + total: 'Total', + }; + } + static types() { + return { + code: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + templates: DescribeMetricRuleTemplateListResponseBodyTemplates, + total: 'number', + }; + } + validate() { + if (this.templates && typeof this.templates.validate === 'function') { + this.templates.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricRuleTemplateListResponseBody = DescribeMetricRuleTemplateListResponseBody; +//# sourceMappingURL=DescribeMetricRuleTemplateListResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListResponseBody.js.map new file mode 100644 index 0000000..b13620b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateListResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMetricRuleTemplateListResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeMetricRuleTemplateListResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qFAAsF,SAAQ,KAAK,CAAC,KAAK;IA2BpH,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;YACjB,SAA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B,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,mDAAmD;YAC9D,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,SAAS,IAAI,OAAQ,IAAI,CAAC,SAAiB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YAC3E,IAAI,CAAC,SAAiB,CAAC,QAAQ,EAAE,CAAC;QACrC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnFD,gGAmFC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopRequest.d.ts new file mode 100644 index 0000000..c144b51 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopRequest.d.ts @@ -0,0 +1,165 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMetricTopRequest extends $dara.Model { + /** + * @remarks + * The monitoring dimensions of the specified resource. + * + * Set the value to a collection of `key:value` pairs. Example: `{"userId":"120886317861****"}` or `{"instanceId":"i-2ze2d6j5uhg20x47****"}`. + * + * > You can query a maximum of 50 instances in each request. + * + * @example + * [{"instanceId": "i-abcdefgh12****"}] + */ + dimensions?: string; + /** + * @remarks + * The end of the time range to query monitoring data. + * + * * If the `StartTime` and `EndTime` parameters are not specified, the monitoring data of the last statistical period is queried.`` + * + * * If the `StartTime` and `EndTime` parameters are specified, the monitoring data of the last statistical period in the specified time range is queried.```` + * + * * If you set the `Period` parameter to 15, the specified time range must be less than or equal to 20 minutes. For example, if you set the StartTime parameter to 2021-05-08 08:10:00 and the EndTime parameter to 2021-05-08 08:30:00, the monitoring data of the last 15 seconds in the time range is queried. + * * If you set the `Period` parameter to 60 or 900, the specified time range must be less than or equal to 2 hours. For example, if you set the Period parameter to 60, the StartTime parameter to 2021-05-08 08:00:00, and the EndTime parameter to 2021-05-08 10:00:00, the monitoring data of the last 60 seconds in the time range is queried. + * * If you set the `Period` parameter to 3600, the specified time range must be less than or equal to two days. For example, if you set the StartTime parameter to 2021-05-08 08:00:00 and the EndTime parameter to 2021-05-10 08:00:00, the monitoring data of the last 3,600 seconds in the time range is queried. + * + * The following formats are supported: + * + * * UNIX timestamp: the number of milliseconds that have elapsed since 00:00:00 Thursday, January 1, 1970 + * * Time format: YYYY-MM-DDThh:mm:ssZ + * + * > We recommend that you use UNIX timestamps to prevent time zone-related issues. + * + * @example + * 2021-05-08 10:00:00 + */ + endTime?: string; + /** + * @remarks + * The expression that is used to compute the query results in real time. + * + * > Only the `groupby` expression is supported. This expression is similar to the GROUP BY statement used in databases. + * + * @example + * {"groupby":["userId","instanceId"]} + */ + express?: string; + /** + * @remarks + * The number of entries per page. + * + * Default value: 10. + * + * > The maximum value of the Length parameter in a request is 1440. + * + * @example + * 10 + */ + length?: string; + /** + * @remarks + * The metric that is used to monitor the cloud service. + * + * For more information about metric names, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * cpu_idle + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * For more information about the namespaces of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The order in which data is sorted. Valid values: + * + * * True: sorts data in ascending order. + * * False (default): sorts data in descending order. + * + * @example + * False + */ + orderDesc?: string; + /** + * @remarks + * The field based on which data is sorted. Valid values: + * + * * Average + * * Minimum + * * Maximum + * + * This parameter is required. + * + * @example + * Average + */ + orderby?: string; + /** + * @remarks + * The statistical period of the monitoring data. + * + * Valid values: 15, 60, 900, and 3600. + * + * Unit: seconds. + * + * > + * + * * If this parameter is not specified, monitoring data is queried based on the period in which metric values are reported. + * + * * Statistical periods vary based on the metrics that are specified by `MetricName`. For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * 60 + */ + period?: string; + regionId?: string; + /** + * @remarks + * The start of the time range to query monitoring data. + * + * * If the `StartTime` and `EndTime` parameters are not specified, the monitoring data of the last statistical period is queried.`` + * + * * If the `StartTime` and `EndTime` parameters are specified, the monitoring data of the last statistical period in the specified time range is queried.```` + * + * * If you set the `Period` parameter to 15, the specified time range must be less than or equal to 20 minutes. For example, if you set the StartTime parameter to 2021-05-08 08:10:00 and the EndTime parameter to 2021-05-08 08:30:00, the monitoring data of the last 15 seconds in the time range is queried. + * * If you set the `Period` parameter to 60 or 900, the specified time range must be less than or equal to 2 hours. For example, if you set the Period parameter to 60, the StartTime parameter to 2021-05-08 08:00:00, and the EndTime parameter to 2021-05-08 10:00:00, the monitoring data of the last 60 seconds in the time range is queried. + * * If you set the `Period` parameter to 3600, the specified time range must be less than or equal to two days. For example, if you set the StartTime parameter to 2021-05-08 08:00:00 and the EndTime parameter to 2021-05-10 08:00:00, the monitoring data of the last 3,600 seconds in the time range is queried. + * + * The following formats are supported: + * + * * UNIX timestamp: the number of milliseconds that have elapsed since 00:00:00 Thursday, January 1, 1970 + * * Time format: YYYY-MM-DDThh:mm:ssZ + * + * > + * + * * You must set the `StartTime` parameter to a point in time that is later than 00:00:00 Thursday, January 1, 1970. Otherwise, this parameter is invalid. + * + * * We recommend that you use UNIX timestamps to prevent time zone-related issues. + * + * @example + * 2021-05-08 08:00:00 + */ + startTime?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopRequest.js new file mode 100644 index 0000000..caa2879 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopRequest.js @@ -0,0 +1,78 @@ +"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.DescribeMetricTopRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMetricTopRequest extends $dara.Model { + static names() { + return { + dimensions: 'Dimensions', + endTime: 'EndTime', + express: 'Express', + length: 'Length', + metricName: 'MetricName', + namespace: 'Namespace', + orderDesc: 'OrderDesc', + orderby: 'Orderby', + period: 'Period', + regionId: 'RegionId', + startTime: 'StartTime', + }; + } + static types() { + return { + dimensions: 'string', + endTime: 'string', + express: 'string', + length: 'string', + metricName: 'string', + namespace: 'string', + orderDesc: 'string', + orderby: 'string', + period: 'string', + regionId: 'string', + startTime: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricTopRequest = DescribeMetricTopRequest; +//# sourceMappingURL=DescribeMetricTopRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopRequest.js.map new file mode 100644 index 0000000..fbc0a51 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMetricTopRequest.js","sourceRoot":"","sources":["../../src/models/DescribeMetricTopRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wBAAyB,SAAQ,KAAK,CAAC,KAAK;IAyJvD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,QAAQ;YACjB,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;YACnB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;YACjB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAhMD,4DAgMC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopResponse.d.ts new file mode 100644 index 0000000..82a40e2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeMetricTopResponseBody } from "./DescribeMetricTopResponseBody"; +export declare class DescribeMetricTopResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeMetricTopResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopResponse.js new file mode 100644 index 0000000..c8e668d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopResponse.js @@ -0,0 +1,69 @@ +"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.DescribeMetricTopResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeMetricTopResponseBody_1 = require("./DescribeMetricTopResponseBody"); +class DescribeMetricTopResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMetricTopResponseBody_1.DescribeMetricTopResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricTopResponse = DescribeMetricTopResponse; +//# sourceMappingURL=DescribeMetricTopResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopResponse.js.map new file mode 100644 index 0000000..d90d749 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMetricTopResponse.js","sourceRoot":"","sources":["../../src/models/DescribeMetricTopResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,mFAAgF;AAGhF,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IAIxD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,6DAA6B;SACpC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,8DAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopResponseBody.d.ts new file mode 100644 index 0000000..11b6dbb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopResponseBody.d.ts @@ -0,0 +1,55 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMetricTopResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The monitoring data. + * + * @example + * [{\\"order\\":1,\\"timestamp\\":1620287520000,\\"userId\\":\\"120886317861****\\",\\"instanceId\\":\\"i-j6ccf7d5fn335qpo****\\",\\"Average\\":99.92,\\"Minimum\\":99.5,\\"Maximum\\":100.0,\\"_count\\":1.0},{\\"order\\":2,\\"timestamp\\":1620287520000,\\"userId\\":\\"120886317861****\\",\\"instanceId\\":\\"i-0xii2bvf42iqvxbp****\\",\\"Average\\":99.91,\\"Minimum\\":99.0,\\"Maximum\\":100.0,\\"_count\\":1.0}] + */ + datapoints?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The statistical period of the monitoring data. Unit: seconds. Valid values: 15, 60, 900, and 3600. + * + * @example + * 60 + */ + period?: string; + /** + * @remarks + * The request ID. + * + * @example + * 3121AE7D-4AFF-4C25-8F1D-C8226EBB1F42 + */ + requestId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopResponseBody.js new file mode 100644 index 0000000..9d83444 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopResponseBody.js @@ -0,0 +1,66 @@ +"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.DescribeMetricTopResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMetricTopResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + datapoints: 'Datapoints', + message: 'Message', + period: 'Period', + requestId: 'RequestId', + }; + } + static types() { + return { + code: 'string', + datapoints: 'string', + message: 'string', + period: 'string', + requestId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMetricTopResponseBody = DescribeMetricTopResponseBody; +//# sourceMappingURL=DescribeMetricTopResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopResponseBody.js.map new file mode 100644 index 0000000..352a2f2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricTopResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMetricTopResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeMetricTopResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IA2C5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,UAAU,EAAE,YAAY;YACxB,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,QAAQ;YACpB,OAAO,EAAE,QAAQ;YACjB,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtED,sEAsEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesRequest.d.ts new file mode 100644 index 0000000..5026ccb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesRequest.d.ts @@ -0,0 +1,24 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMonitorGroupCategoriesRequest extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * This parameter is required. + * + * @example + * 123456 + */ + groupId?: number; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesRequest.js new file mode 100644 index 0000000..b3b027e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesRequest.js @@ -0,0 +1,60 @@ +"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.DescribeMonitorGroupCategoriesRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMonitorGroupCategoriesRequest extends $dara.Model { + static names() { + return { + groupId: 'GroupId', + regionId: 'RegionId', + }; + } + static types() { + return { + groupId: 'number', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupCategoriesRequest = DescribeMonitorGroupCategoriesRequest; +//# sourceMappingURL=DescribeMonitorGroupCategoriesRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesRequest.js.map new file mode 100644 index 0000000..d59df9d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitorGroupCategoriesRequest.js","sourceRoot":"","sources":["../../src/models/DescribeMonitorGroupCategoriesRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qCAAsC,SAAQ,KAAK,CAAC,KAAK;IAYpE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,sFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesResponse.d.ts new file mode 100644 index 0000000..ab88b7a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeMonitorGroupCategoriesResponseBody } from "./DescribeMonitorGroupCategoriesResponseBody"; +export declare class DescribeMonitorGroupCategoriesResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeMonitorGroupCategoriesResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesResponse.js new file mode 100644 index 0000000..9529685 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesResponse.js @@ -0,0 +1,69 @@ +"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.DescribeMonitorGroupCategoriesResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeMonitorGroupCategoriesResponseBody_1 = require("./DescribeMonitorGroupCategoriesResponseBody"); +class DescribeMonitorGroupCategoriesResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMonitorGroupCategoriesResponseBody_1.DescribeMonitorGroupCategoriesResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupCategoriesResponse = DescribeMonitorGroupCategoriesResponse; +//# sourceMappingURL=DescribeMonitorGroupCategoriesResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesResponse.js.map new file mode 100644 index 0000000..78652e2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitorGroupCategoriesResponse.js","sourceRoot":"","sources":["../../src/models/DescribeMonitorGroupCategoriesResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,6GAA0G;AAG1G,MAAa,sCAAuC,SAAQ,KAAK,CAAC,KAAK;IAIrE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,uFAA0C;SACjD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,wFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesResponseBody.d.ts new file mode 100644 index 0000000..8590115 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesResponseBody.d.ts @@ -0,0 +1,123 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategoriesMonitorGroupCategoryCategoryItem extends $dara.Model { + /** + * @remarks + * The abbreviation of the cloud service name. + * + * > 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. + * + * @example + * ECS + */ + category?: string; + /** + * @remarks + * The number of resources that belong to the cloud service. + * + * @example + * 1 + */ + count?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategoriesMonitorGroupCategory extends $dara.Model { + categoryItem?: DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategoriesMonitorGroupCategoryCategoryItem[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategories extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * @example + * 123456 + */ + groupId?: number; + /** + * @remarks + * The cloud services to which the resources in the application group belong and the number of resources that belong to the cloud service. + */ + monitorGroupCategory?: DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategoriesMonitorGroupCategory; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorGroupCategoriesResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The error message returned. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The cloud services to which the resources in the application group belong and the number of resources that belong to the cloud service. + */ + monitorGroupCategories?: DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategories; + /** + * @remarks + * The request ID. + * + * @example + * 9E0347B0-EBC3-4769-A78D-D96F21C6BB52 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true: The request was successful. + * * false: The request failed. + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesResponseBody.js new file mode 100644 index 0000000..8a5926a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesResponseBody.js @@ -0,0 +1,136 @@ +"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.DescribeMonitorGroupCategoriesResponseBody = exports.DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategories = exports.DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategoriesMonitorGroupCategory = exports.DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategoriesMonitorGroupCategoryCategoryItem = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategoriesMonitorGroupCategoryCategoryItem extends $dara.Model { + static names() { + return { + category: 'Category', + count: 'Count', + }; + } + static types() { + return { + category: 'string', + count: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategoriesMonitorGroupCategoryCategoryItem = DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategoriesMonitorGroupCategoryCategoryItem; +class DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategoriesMonitorGroupCategory extends $dara.Model { + static names() { + return { + categoryItem: 'CategoryItem', + }; + } + static types() { + return { + categoryItem: { 'type': 'array', 'itemType': DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategoriesMonitorGroupCategoryCategoryItem }, + }; + } + validate() { + if (Array.isArray(this.categoryItem)) { + $dara.Model.validateArray(this.categoryItem); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategoriesMonitorGroupCategory = DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategoriesMonitorGroupCategory; +class DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategories extends $dara.Model { + static names() { + return { + groupId: 'GroupId', + monitorGroupCategory: 'MonitorGroupCategory', + }; + } + static types() { + return { + groupId: 'number', + monitorGroupCategory: DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategoriesMonitorGroupCategory, + }; + } + validate() { + if (this.monitorGroupCategory && typeof this.monitorGroupCategory.validate === 'function') { + this.monitorGroupCategory.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategories = DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategories; +class DescribeMonitorGroupCategoriesResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + monitorGroupCategories: 'MonitorGroupCategories', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'number', + message: 'string', + monitorGroupCategories: DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategories, + requestId: 'string', + success: 'boolean', + }; + } + validate() { + if (this.monitorGroupCategories && typeof this.monitorGroupCategories.validate === 'function') { + this.monitorGroupCategories.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupCategoriesResponseBody = DescribeMonitorGroupCategoriesResponseBody; +//# sourceMappingURL=DescribeMonitorGroupCategoriesResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesResponseBody.js.map new file mode 100644 index 0000000..0c66cac --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupCategoriesResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitorGroupCategoriesResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeMonitorGroupCategoriesResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,gGAAiG,SAAQ,KAAK,CAAC,KAAK;IAmB/H,MAAM,CAAC,KAAK;QACV,OA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AA4B,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjG,IAAI,CAAC,oBAA4B,CAAC,QAAQ,EAAE,CAAC;QAChD,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtCD,4IAsCC;AAED,MAAa,0CAA2C,SAAQ,KAAK,CAAC,KAAK;IA2CzE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,sBAAsB,EAAE,wBAAwB;YAChD,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,sBAAsB,EAAE,gEAAgE;YACxF,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,sBAAsB,IAAI,OAAQ,IAAI,CAAC,sBAA8B,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACrG,IAAI,CAAC,sBAA8B,CAAC,QAAQ,EAAE,CAAC;QAClD,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,gGAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesRequest.d.ts new file mode 100644 index 0000000..b801220 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesRequest.d.ts @@ -0,0 +1,24 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMonitorGroupDynamicRulesRequest extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * This parameter is required. + * + * @example + * 123456 + */ + groupId?: number; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesRequest.js new file mode 100644 index 0000000..e755922 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesRequest.js @@ -0,0 +1,60 @@ +"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.DescribeMonitorGroupDynamicRulesRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMonitorGroupDynamicRulesRequest extends $dara.Model { + static names() { + return { + groupId: 'GroupId', + regionId: 'RegionId', + }; + } + static types() { + return { + groupId: 'number', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupDynamicRulesRequest = DescribeMonitorGroupDynamicRulesRequest; +//# sourceMappingURL=DescribeMonitorGroupDynamicRulesRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesRequest.js.map new file mode 100644 index 0000000..181ac75 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitorGroupDynamicRulesRequest.js","sourceRoot":"","sources":["../../src/models/DescribeMonitorGroupDynamicRulesRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,uCAAwC,SAAQ,KAAK,CAAC,KAAK;IAYtE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,0FAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesResponse.d.ts new file mode 100644 index 0000000..103da58 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeMonitorGroupDynamicRulesResponseBody } from "./DescribeMonitorGroupDynamicRulesResponseBody"; +export declare class DescribeMonitorGroupDynamicRulesResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeMonitorGroupDynamicRulesResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesResponse.js new file mode 100644 index 0000000..cd5ceee --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesResponse.js @@ -0,0 +1,69 @@ +"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.DescribeMonitorGroupDynamicRulesResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeMonitorGroupDynamicRulesResponseBody_1 = require("./DescribeMonitorGroupDynamicRulesResponseBody"); +class DescribeMonitorGroupDynamicRulesResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMonitorGroupDynamicRulesResponseBody_1.DescribeMonitorGroupDynamicRulesResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupDynamicRulesResponse = DescribeMonitorGroupDynamicRulesResponse; +//# sourceMappingURL=DescribeMonitorGroupDynamicRulesResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesResponse.js.map new file mode 100644 index 0000000..1d77875 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitorGroupDynamicRulesResponse.js","sourceRoot":"","sources":["../../src/models/DescribeMonitorGroupDynamicRulesResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,iHAA8G;AAG9G,MAAa,wCAAyC,SAAQ,KAAK,CAAC,KAAK;IAIvE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,2FAA4C;SACnD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,4FAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesResponseBody.d.ts new file mode 100644 index 0000000..e9e2d99 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesResponseBody.d.ts @@ -0,0 +1,161 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMonitorGroupDynamicRulesResponseBodyResourceResourceFiltersFilter extends $dara.Model { + /** + * @remarks + * The method that is used to filter the instances. Valid values: + * + * * contains: contains + * * startWith: starts with a prefix + * * endWith: ends with a suffix + * + * @example + * contains + */ + function?: string; + /** + * @remarks + * The instance name. + * + * @example + * hostName + */ + name?: string; + /** + * @remarks + * The value of the dynamic rule. + * + * @example + * 1 + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorGroupDynamicRulesResponseBodyResourceResourceFilters extends $dara.Model { + filter?: DescribeMonitorGroupDynamicRulesResponseBodyResourceResourceFiltersFilter[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorGroupDynamicRulesResponseBodyResourceResource extends $dara.Model { + /** + * @remarks + * The type of the cloud service to which the dynamic rule belongs. Valid values: + * + * * ecs: Elastic Compute Service (ECS) + * * rds: ApsaraDB RDS + * * slb: Server Load Balancer (SLB) + * + * @example + * ecs + */ + category?: string; + /** + * @remarks + * The filter condition. Valid values: + * + * * and: queries the instances that meet all alert rules. + * * or: queries the instances that meet any alert rule. + * + * @example + * and + */ + filterRelation?: string; + /** + * @remarks + * The dynamic rules of the application group. + */ + filters?: DescribeMonitorGroupDynamicRulesResponseBodyResourceResourceFilters; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorGroupDynamicRulesResponseBodyResource extends $dara.Model { + resource?: DescribeMonitorGroupDynamicRulesResponseBodyResourceResource[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorGroupDynamicRulesResponseBody extends $dara.Model { + /** + * @remarks + * The responses code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The returned message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 2170B94A-1576-4D65-900E-2093037CDAF3 + */ + requestId?: string; + /** + * @remarks + * The resources that are associated with the application group. + */ + resource?: DescribeMonitorGroupDynamicRulesResponseBodyResource; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesResponseBody.js new file mode 100644 index 0000000..23fca53 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesResponseBody.js @@ -0,0 +1,162 @@ +"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.DescribeMonitorGroupDynamicRulesResponseBody = exports.DescribeMonitorGroupDynamicRulesResponseBodyResource = exports.DescribeMonitorGroupDynamicRulesResponseBodyResourceResource = exports.DescribeMonitorGroupDynamicRulesResponseBodyResourceResourceFilters = exports.DescribeMonitorGroupDynamicRulesResponseBodyResourceResourceFiltersFilter = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMonitorGroupDynamicRulesResponseBodyResourceResourceFiltersFilter extends $dara.Model { + static names() { + return { + function: 'Function', + name: 'Name', + value: 'Value', + }; + } + static types() { + return { + function: 'string', + name: 'string', + value: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupDynamicRulesResponseBodyResourceResourceFiltersFilter = DescribeMonitorGroupDynamicRulesResponseBodyResourceResourceFiltersFilter; +class DescribeMonitorGroupDynamicRulesResponseBodyResourceResourceFilters extends $dara.Model { + static names() { + return { + filter: 'Filter', + }; + } + static types() { + return { + filter: { 'type': 'array', 'itemType': DescribeMonitorGroupDynamicRulesResponseBodyResourceResourceFiltersFilter }, + }; + } + validate() { + if (Array.isArray(this.filter)) { + $dara.Model.validateArray(this.filter); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupDynamicRulesResponseBodyResourceResourceFilters = DescribeMonitorGroupDynamicRulesResponseBodyResourceResourceFilters; +class DescribeMonitorGroupDynamicRulesResponseBodyResourceResource extends $dara.Model { + static names() { + return { + category: 'Category', + filterRelation: 'FilterRelation', + filters: 'Filters', + }; + } + static types() { + return { + category: 'string', + filterRelation: 'string', + filters: DescribeMonitorGroupDynamicRulesResponseBodyResourceResourceFilters, + }; + } + validate() { + if (this.filters && typeof this.filters.validate === 'function') { + this.filters.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupDynamicRulesResponseBodyResourceResource = DescribeMonitorGroupDynamicRulesResponseBodyResourceResource; +class DescribeMonitorGroupDynamicRulesResponseBodyResource extends $dara.Model { + static names() { + return { + resource: 'Resource', + }; + } + static types() { + return { + resource: { 'type': 'array', 'itemType': DescribeMonitorGroupDynamicRulesResponseBodyResourceResource }, + }; + } + validate() { + if (Array.isArray(this.resource)) { + $dara.Model.validateArray(this.resource); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupDynamicRulesResponseBodyResource = DescribeMonitorGroupDynamicRulesResponseBodyResource; +class DescribeMonitorGroupDynamicRulesResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + resource: 'Resource', + success: 'Success', + }; + } + static types() { + return { + code: 'number', + message: 'string', + requestId: 'string', + resource: DescribeMonitorGroupDynamicRulesResponseBodyResource, + success: 'boolean', + }; + } + validate() { + if (this.resource && typeof this.resource.validate === 'function') { + this.resource.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupDynamicRulesResponseBody = DescribeMonitorGroupDynamicRulesResponseBody; +//# sourceMappingURL=DescribeMonitorGroupDynamicRulesResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesResponseBody.js.map new file mode 100644 index 0000000..a0b16a3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupDynamicRulesResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitorGroupDynamicRulesResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeMonitorGroupDynamicRulesResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yEAA0E,SAAQ,KAAK,CAAC,KAAK;IA6BxG,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,OAAO;S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Q;QACN,IAAG,IAAI,CAAC,QAAQ,IAAI,OAAQ,IAAI,CAAC,QAAgB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACzE,IAAI,CAAC,QAAgB,CAAC,QAAQ,EAAE,CAAC;QACpC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,oGAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeRequest.d.ts new file mode 100644 index 0000000..ba5f2e3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeRequest.d.ts @@ -0,0 +1,85 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMonitorGroupInstanceAttributeRequest extends $dara.Model { + /** + * @remarks + * The abbreviation of the cloud service name. + * + * 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/2513265.html) operation. + * + * @example + * ecs + */ + category?: string; + /** + * @remarks + * The ID of the application group. + * + * This parameter is required. + * + * @example + * 123456 + */ + groupId?: number; + /** + * @remarks + * The resource ID. Separate multiple resource IDs with commas (,). You can query the details about a maximum of 20 resources at a time. + * + * @example + * i-m5e0k0bexac8tykr**** + */ + instanceIds?: string; + /** + * @remarks + * The keyword that is used to search for resources. + * + * @example + * portal + */ + keyword?: string; + /** + * @remarks + * The page number. + * + * Valid values: 1 to 1000000000. + * + * Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * Valid values: 1 to 1000000000. + * + * Default value: 10. + * + * @example + * 10 + */ + pageSize?: number; + regionId?: string; + /** + * @remarks + * Specifies whether to return the total number of resources in the specified application group. Valid values: + * + * * true (default) + * * false + * + * @example + * true + */ + total?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeRequest.js new file mode 100644 index 0000000..4657227 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeRequest.js @@ -0,0 +1,72 @@ +"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.DescribeMonitorGroupInstanceAttributeRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMonitorGroupInstanceAttributeRequest extends $dara.Model { + static names() { + return { + category: 'Category', + groupId: 'GroupId', + instanceIds: 'InstanceIds', + keyword: 'Keyword', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + total: 'Total', + }; + } + static types() { + return { + category: 'string', + groupId: 'number', + instanceIds: 'string', + keyword: 'string', + pageNumber: 'number', + pageSize: 'number', + regionId: 'string', + total: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupInstanceAttributeRequest = DescribeMonitorGroupInstanceAttributeRequest; +//# sourceMappingURL=DescribeMonitorGroupInstanceAttributeRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeRequest.js.map new file mode 100644 index 0000000..4a9cb1b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitorGroupInstanceAttributeRequest.js","sourceRoot":"","sources":["../../src/models/DescribeMonitorGroupInstanceAttributeRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,4CAA6C,SAAQ,KAAK,CAAC,KAAK;IAyE3E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,OAAO,EAAE,SAAS;YAClB,WAAW,EAAE,aAAa;YAC1B,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,OAAO,EAAE,QAAQ;YACjB,WAAW,EAAE,QAAQ;YACrB,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,KAAK,EAAE,SAAS;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA1GD,oGA0GC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeResponse.d.ts new file mode 100644 index 0000000..5626fa8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeMonitorGroupInstanceAttributeResponseBody } from "./DescribeMonitorGroupInstanceAttributeResponseBody"; +export declare class DescribeMonitorGroupInstanceAttributeResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeMonitorGroupInstanceAttributeResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeResponse.js new file mode 100644 index 0000000..1029ff8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeResponse.js @@ -0,0 +1,69 @@ +"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.DescribeMonitorGroupInstanceAttributeResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeMonitorGroupInstanceAttributeResponseBody_1 = require("./DescribeMonitorGroupInstanceAttributeResponseBody"); +class DescribeMonitorGroupInstanceAttributeResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMonitorGroupInstanceAttributeResponseBody_1.DescribeMonitorGroupInstanceAttributeResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupInstanceAttributeResponse = DescribeMonitorGroupInstanceAttributeResponse; +//# sourceMappingURL=DescribeMonitorGroupInstanceAttributeResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeResponse.js.map new file mode 100644 index 0000000..c2bcdc5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitorGroupInstanceAttributeResponse.js","sourceRoot":"","sources":["../../src/models/DescribeMonitorGroupInstanceAttributeResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,2HAAwH;AAGxH,MAAa,6CAA8C,SAAQ,KAAK,CAAC,KAAK;IAI5E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,qGAAiD;SACxD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,sGAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeResponseBody.d.ts new file mode 100644 index 0000000..41dca9c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeResponseBody.d.ts @@ -0,0 +1,264 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceRegion extends $dara.Model { + /** + * @remarks + * The zone. + * + * @example + * cn-hangzhou-f + */ + availabilityZone?: string; + /** + * @remarks + * The region ID. + * + * @example + * cn-hangzhou + */ + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceTagsTag extends $dara.Model { + /** + * @remarks + * The tag key. + * + * @example + * instanceNetworkType + */ + key?: string; + /** + * @remarks + * The tag value. + * + * @example + * VPC + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceTags extends $dara.Model { + tag?: DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceTagsTag[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceVpc extends $dara.Model { + /** + * @remarks + * The VPC ID. + * + * @example + * vpc-2zew7etgiceg21**** + */ + vpcInstanceId?: string; + /** + * @remarks + * The vSwitch ID. + * + * @example + * vsw-2ze36seq79n992**** + */ + vswitchInstanceId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResource extends $dara.Model { + /** + * @remarks + * The name of the cloud service. + * + * @example + * ecs + */ + category?: string; + /** + * @remarks + * The resource description. + * + * @example + * desc_test + */ + desc?: string; + /** + * @remarks + * The dimensions of the resource that is associated with the application group. + * + * @example + * {"instanceId":"i-m5e0k0bexac8tykr****"} + */ + dimension?: string; + /** + * @remarks + * The instance ID. + * + * @example + * i-m5e0k0bexac8tykr**** + */ + instanceId?: string; + /** + * @remarks + * The instance name. + * + * @example + * hostName + */ + instanceName?: string; + /** + * @remarks + * The network type. + * + * @example + * vpc + */ + networkType?: string; + /** + * @remarks + * The region. + */ + region?: DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceRegion; + /** + * @remarks + * The tag of the resource. + */ + tags?: DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceTags; + /** + * @remarks + * The VPC description. + */ + vpc?: DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceVpc; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorGroupInstanceAttributeResponseBodyResources extends $dara.Model { + resource?: DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResource[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorGroupInstanceAttributeResponseBody extends $dara.Model { + /** + * @remarks + * The responses code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The returned message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The page number. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * @example + * 2 + */ + pageSize?: number; + /** + * @remarks + * The request ID. + * + * @example + * 9FB8EA79-7279-4482-8D6D-3D28EEDD871A + */ + requestId?: string; + /** + * @remarks + * The resources that are associated with the application group. + */ + resources?: DescribeMonitorGroupInstanceAttributeResponseBodyResources; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The total number of entries returned. + * + * @example + * 12 + */ + total?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeResponseBody.js new file mode 100644 index 0000000..80af105 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeResponseBody.js @@ -0,0 +1,226 @@ +"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.DescribeMonitorGroupInstanceAttributeResponseBody = exports.DescribeMonitorGroupInstanceAttributeResponseBodyResources = exports.DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResource = exports.DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceVpc = exports.DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceTags = exports.DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceTagsTag = exports.DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceRegion = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceRegion extends $dara.Model { + static names() { + return { + availabilityZone: 'AvailabilityZone', + regionId: 'RegionId', + }; + } + static types() { + return { + availabilityZone: 'string', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceRegion = DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceRegion; +class DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceTagsTag 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.DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceTagsTag = DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceTagsTag; +class DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceTags extends $dara.Model { + static names() { + return { + tag: 'Tag', + }; + } + static types() { + return { + tag: { 'type': 'array', 'itemType': DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceTagsTag }, + }; + } + validate() { + if (Array.isArray(this.tag)) { + $dara.Model.validateArray(this.tag); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceTags = DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceTags; +class DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceVpc extends $dara.Model { + static names() { + return { + vpcInstanceId: 'VpcInstanceId', + vswitchInstanceId: 'VswitchInstanceId', + }; + } + static types() { + return { + vpcInstanceId: 'string', + vswitchInstanceId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceVpc = DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceVpc; +class DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResource extends $dara.Model { + static names() { + return { + category: 'Category', + desc: 'Desc', + dimension: 'Dimension', + instanceId: 'InstanceId', + instanceName: 'InstanceName', + networkType: 'NetworkType', + region: 'Region', + tags: 'Tags', + vpc: 'Vpc', + }; + } + static types() { + return { + category: 'string', + desc: 'string', + dimension: 'string', + instanceId: 'string', + instanceName: 'string', + networkType: 'string', + region: DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceRegion, + tags: DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceTags, + vpc: DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceVpc, + }; + } + validate() { + if (this.region && typeof this.region.validate === 'function') { + this.region.validate(); + } + if (this.tags && typeof this.tags.validate === 'function') { + this.tags.validate(); + } + if (this.vpc && typeof this.vpc.validate === 'function') { + this.vpc.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResource = DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResource; +class DescribeMonitorGroupInstanceAttributeResponseBodyResources extends $dara.Model { + static names() { + return { + resource: 'Resource', + }; + } + static types() { + return { + resource: { 'type': 'array', 'itemType': DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResource }, + }; + } + validate() { + if (Array.isArray(this.resource)) { + $dara.Model.validateArray(this.resource); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupInstanceAttributeResponseBodyResources = DescribeMonitorGroupInstanceAttributeResponseBodyResources; +class DescribeMonitorGroupInstanceAttributeResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + requestId: 'RequestId', + resources: 'Resources', + success: 'Success', + total: 'Total', + }; + } + static types() { + return { + code: 'number', + message: 'string', + pageNumber: 'number', + pageSize: 'number', + requestId: 'string', + resources: DescribeMonitorGroupInstanceAttributeResponseBodyResources, + success: 'boolean', + total: 'number', + }; + } + validate() { + if (this.resources && typeof this.resources.validate === 'function') { + this.resources.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupInstanceAttributeResponseBody = DescribeMonitorGroupInstanceAttributeResponseBody; +//# sourceMappingURL=DescribeMonitorGroupInstanceAttributeResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeResponseBody.js.map new file mode 100644 index 0000000..7d56c7c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstanceAttributeResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitorGroupInstanceAttributeResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeMonitorGroupInstanceAttributeResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wEAAyE,SAAQ,KAAK,CAAC,KAAK;IAiBvG,MAAM,CAAC,KAAK;QACV,OAAO;YACL,gBAAgB,EAAE,kBAAkB;YACpC,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,gBAAgB,EAAE,QAAQ;YAC1B,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK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EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,QAAQ;YACnB,SAAS,EAAE,0DAA0D;YACrE,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,SAAS,IAAI,OAAQ,IAAI,CAAC,SAAiB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YAC3E,IAAI,CAAC,SAAiB,CAAC,QAAQ,EAAE,CAAC;QACrC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAvGD,8GAuGC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesRequest.d.ts new file mode 100644 index 0000000..0d0d18c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesRequest.d.ts @@ -0,0 +1,66 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMonitorGroupInstancesRequest extends $dara.Model { + /** + * @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. + * + * @example + * ecs + */ + category?: string; + /** + * @remarks + * The ID of the application group. + * + * This parameter is required. + * + * @example + * 12345 + */ + groupId?: number; + /** + * @remarks + * The instance ID. You can query multiple instances by specifying multiple IDs. + * + * @example + * i-x1234568 + */ + instanceIds?: string; + /** + * @remarks + * The keyword used to search for instances. Fuzzy search based on instance names is supported. + * + * @example + * s1 + */ + keyword?: string; + /** + * @remarks + * The page number. Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. Default value: 10. + * + * @example + * 10 + */ + pageSize?: number; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesRequest.js new file mode 100644 index 0000000..57c13f4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesRequest.js @@ -0,0 +1,70 @@ +"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.DescribeMonitorGroupInstancesRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMonitorGroupInstancesRequest extends $dara.Model { + static names() { + return { + category: 'Category', + groupId: 'GroupId', + instanceIds: 'InstanceIds', + keyword: 'Keyword', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + }; + } + static types() { + return { + category: 'string', + groupId: 'number', + instanceIds: 'string', + keyword: 'string', + pageNumber: 'number', + pageSize: 'number', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupInstancesRequest = DescribeMonitorGroupInstancesRequest; +//# sourceMappingURL=DescribeMonitorGroupInstancesRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesRequest.js.map new file mode 100644 index 0000000..deea87f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitorGroupInstancesRequest.js","sourceRoot":"","sources":["../../src/models/DescribeMonitorGroupInstancesRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IAsDnE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,OAAO,EAAE,SAAS;YAClB,WAAW,EAAE,aAAa;YAC1B,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,OAAO,EAAE,QAAQ;YACjB,WAAW,EAAE,QAAQ;YACrB,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AArFD,oFAqFC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesResponse.d.ts new file mode 100644 index 0000000..6b7248f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeMonitorGroupInstancesResponseBody } from "./DescribeMonitorGroupInstancesResponseBody"; +export declare class DescribeMonitorGroupInstancesResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeMonitorGroupInstancesResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesResponse.js new file mode 100644 index 0000000..e69b43b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesResponse.js @@ -0,0 +1,69 @@ +"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.DescribeMonitorGroupInstancesResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeMonitorGroupInstancesResponseBody_1 = require("./DescribeMonitorGroupInstancesResponseBody"); +class DescribeMonitorGroupInstancesResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMonitorGroupInstancesResponseBody_1.DescribeMonitorGroupInstancesResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupInstancesResponse = DescribeMonitorGroupInstancesResponse; +//# sourceMappingURL=DescribeMonitorGroupInstancesResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesResponse.js.map new file mode 100644 index 0000000..bb0fc54 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitorGroupInstancesResponse.js","sourceRoot":"","sources":["../../src/models/DescribeMonitorGroupInstancesResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,2GAAwG;AAGxG,MAAa,qCAAsC,SAAQ,KAAK,CAAC,KAAK;IAIpE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,qFAAyC;SAChD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,sFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesResponseBody.d.ts new file mode 100644 index 0000000..fefb5e3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesResponseBody.d.ts @@ -0,0 +1,141 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMonitorGroupInstancesResponseBodyResourcesResource extends $dara.Model { + /** + * @remarks + * The abbreviation of the service name. + * + * @example + * ecs + */ + category?: string; + /** + * @remarks + * The resource ID. + * + * @example + * 12345 + */ + id?: number; + /** + * @remarks + * The instance ID. + * + * @example + * i-2ze3w55tr2r**** + */ + instanceId?: string; + /** + * @remarks + * The instance name. + * + * @example + * hostIP + */ + instanceName?: string; + /** + * @remarks + * The ID of the region where the instance resides. + * + * @example + * cn-hangzhou + */ + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorGroupInstancesResponseBodyResources extends $dara.Model { + resource?: DescribeMonitorGroupInstancesResponseBodyResourcesResource[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorGroupInstancesResponseBody extends $dara.Model { + /** + * @remarks + * The responses code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The page number. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * @example + * 10 + */ + pageSize?: number; + /** + * @remarks + * The request ID. + * + * @example + * 97F2A410-9412-499C-9AD1-76EF7EC02DF2 + */ + requestId?: string; + /** + * @remarks + * The information about the resources in the application group. + */ + resources?: DescribeMonitorGroupInstancesResponseBodyResources; + /** + * @remarks + * Indicates whether the request was successful. + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The total number of entries returned. + * + * @example + * 12 + */ + total?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesResponseBody.js new file mode 100644 index 0000000..f1d8659 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesResponseBody.js @@ -0,0 +1,124 @@ +"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.DescribeMonitorGroupInstancesResponseBody = exports.DescribeMonitorGroupInstancesResponseBodyResources = exports.DescribeMonitorGroupInstancesResponseBodyResourcesResource = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMonitorGroupInstancesResponseBodyResourcesResource extends $dara.Model { + static names() { + return { + category: 'Category', + id: 'Id', + instanceId: 'InstanceId', + instanceName: 'InstanceName', + regionId: 'RegionId', + }; + } + static types() { + return { + category: 'string', + id: 'number', + instanceId: 'string', + instanceName: 'string', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupInstancesResponseBodyResourcesResource = DescribeMonitorGroupInstancesResponseBodyResourcesResource; +class DescribeMonitorGroupInstancesResponseBodyResources extends $dara.Model { + static names() { + return { + resource: 'Resource', + }; + } + static types() { + return { + resource: { 'type': 'array', 'itemType': DescribeMonitorGroupInstancesResponseBodyResourcesResource }, + }; + } + validate() { + if (Array.isArray(this.resource)) { + $dara.Model.validateArray(this.resource); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupInstancesResponseBodyResources = DescribeMonitorGroupInstancesResponseBodyResources; +class DescribeMonitorGroupInstancesResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + requestId: 'RequestId', + resources: 'Resources', + success: 'Success', + total: 'Total', + }; + } + static types() { + return { + code: 'number', + message: 'string', + pageNumber: 'number', + pageSize: 'number', + requestId: 'string', + resources: DescribeMonitorGroupInstancesResponseBodyResources, + success: 'boolean', + total: 'number', + }; + } + validate() { + if (this.resources && typeof this.resources.validate === 'function') { + this.resources.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupInstancesResponseBody = DescribeMonitorGroupInstancesResponseBody; +//# sourceMappingURL=DescribeMonitorGroupInstancesResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesResponseBody.js.map new file mode 100644 index 0000000..2ffbd30 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupInstancesResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitorGroupInstancesResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeMonitorGroupInstancesResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;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KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;YACtB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,QAAQ;YACnB,SAAS,EAAE,kDAAkD;YAC7D,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,SAAS,IAAI,OAAQ,IAAI,CAAC,SAAiB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YAC3E,IAAI,CAAC,SAAiB,CAAC,QAAQ,EAAE,CAAC;QACrC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApGD,8FAoGC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListRequest.d.ts new file mode 100644 index 0000000..e45841a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListRequest.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMonitorGroupNotifyPolicyListRequest extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * @example + * 6780**** + */ + groupId?: string; + /** + * @remarks + * The page number. Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. Default value: 10. + * + * @example + * 100 + */ + pageSize?: number; + /** + * @remarks + * The type of the policy. + * + * Valid value: PauseNotify. + * + * This parameter is required. + * + * @example + * PauseNotify + */ + policyType?: string; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListRequest.js new file mode 100644 index 0000000..e868d8b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListRequest.js @@ -0,0 +1,66 @@ +"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.DescribeMonitorGroupNotifyPolicyListRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMonitorGroupNotifyPolicyListRequest extends $dara.Model { + static names() { + return { + groupId: 'GroupId', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + policyType: 'PolicyType', + regionId: 'RegionId', + }; + } + static types() { + return { + groupId: 'string', + pageNumber: 'number', + pageSize: 'number', + policyType: 'string', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupNotifyPolicyListRequest = DescribeMonitorGroupNotifyPolicyListRequest; +//# sourceMappingURL=DescribeMonitorGroupNotifyPolicyListRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListRequest.js.map new file mode 100644 index 0000000..629096b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitorGroupNotifyPolicyListRequest.js","sourceRoot":"","sources":["../../src/models/DescribeMonitorGroupNotifyPolicyListRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,2CAA4C,SAAQ,KAAK,CAAC,KAAK;IAsC1E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjED,kGAiEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListResponse.d.ts new file mode 100644 index 0000000..3b92f8e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeMonitorGroupNotifyPolicyListResponseBody } from "./DescribeMonitorGroupNotifyPolicyListResponseBody"; +export declare class DescribeMonitorGroupNotifyPolicyListResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeMonitorGroupNotifyPolicyListResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListResponse.js new file mode 100644 index 0000000..7129c73 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListResponse.js @@ -0,0 +1,69 @@ +"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.DescribeMonitorGroupNotifyPolicyListResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeMonitorGroupNotifyPolicyListResponseBody_1 = require("./DescribeMonitorGroupNotifyPolicyListResponseBody"); +class DescribeMonitorGroupNotifyPolicyListResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMonitorGroupNotifyPolicyListResponseBody_1.DescribeMonitorGroupNotifyPolicyListResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupNotifyPolicyListResponse = DescribeMonitorGroupNotifyPolicyListResponse; +//# sourceMappingURL=DescribeMonitorGroupNotifyPolicyListResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListResponse.js.map new file mode 100644 index 0000000..fc299bb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitorGroupNotifyPolicyListResponse.js","sourceRoot":"","sources":["../../src/models/DescribeMonitorGroupNotifyPolicyListResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,yHAAsH;AAGtH,MAAa,4CAA6C,SAAQ,KAAK,CAAC,KAAK;IAI3E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,mGAAgD;SACvD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,oGAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListResponseBody.d.ts new file mode 100644 index 0000000..adfc0ea --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListResponseBody.d.ts @@ -0,0 +1,132 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMonitorGroupNotifyPolicyListResponseBodyNotifyPolicyListNotifyPolicy extends $dara.Model { + /** + * @remarks + * The end of the time range to query. + * + * Unit: milliseconds. + * + * @example + * 1551761781273 + */ + endTime?: number; + /** + * @remarks + * The ID of the application group. + * + * @example + * 6780**** + */ + groupId?: string; + /** + * @remarks + * The policy ID. + * + * @example + * 123**** + */ + id?: string; + /** + * @remarks + * The beginning of the time range to query. + * + * Unit: milliseconds. + * + * @example + * 1551761781273 + */ + startTime?: number; + /** + * @remarks + * The policy type. + * + * @example + * PauseNotify + */ + type?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorGroupNotifyPolicyListResponseBodyNotifyPolicyList extends $dara.Model { + notifyPolicy?: DescribeMonitorGroupNotifyPolicyListResponseBodyNotifyPolicyListNotifyPolicy[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorGroupNotifyPolicyListResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The returned policies. + */ + notifyPolicyList?: DescribeMonitorGroupNotifyPolicyListResponseBodyNotifyPolicyList; + /** + * @remarks + * The request ID. + * + * @example + * 6072F026-C441-41A6-B114-35A1E8F8FDD3 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + /** + * @remarks + * The total number of entries returned. + * + * @example + * 11 + */ + total?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListResponseBody.js new file mode 100644 index 0000000..d43ed2d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListResponseBody.js @@ -0,0 +1,120 @@ +"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.DescribeMonitorGroupNotifyPolicyListResponseBody = exports.DescribeMonitorGroupNotifyPolicyListResponseBodyNotifyPolicyList = exports.DescribeMonitorGroupNotifyPolicyListResponseBodyNotifyPolicyListNotifyPolicy = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMonitorGroupNotifyPolicyListResponseBodyNotifyPolicyListNotifyPolicy extends $dara.Model { + static names() { + return { + endTime: 'EndTime', + groupId: 'GroupId', + id: 'Id', + startTime: 'StartTime', + type: 'Type', + }; + } + static types() { + return { + endTime: 'number', + groupId: 'string', + id: 'string', + startTime: 'number', + type: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupNotifyPolicyListResponseBodyNotifyPolicyListNotifyPolicy = DescribeMonitorGroupNotifyPolicyListResponseBodyNotifyPolicyListNotifyPolicy; +class DescribeMonitorGroupNotifyPolicyListResponseBodyNotifyPolicyList extends $dara.Model { + static names() { + return { + notifyPolicy: 'NotifyPolicy', + }; + } + static types() { + return { + notifyPolicy: { 'type': 'array', 'itemType': DescribeMonitorGroupNotifyPolicyListResponseBodyNotifyPolicyListNotifyPolicy }, + }; + } + validate() { + if (Array.isArray(this.notifyPolicy)) { + $dara.Model.validateArray(this.notifyPolicy); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupNotifyPolicyListResponseBodyNotifyPolicyList = DescribeMonitorGroupNotifyPolicyListResponseBodyNotifyPolicyList; +class DescribeMonitorGroupNotifyPolicyListResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + notifyPolicyList: 'NotifyPolicyList', + requestId: 'RequestId', + success: 'Success', + total: 'Total', + }; + } + static types() { + return { + code: 'string', + message: 'string', + notifyPolicyList: DescribeMonitorGroupNotifyPolicyListResponseBodyNotifyPolicyList, + requestId: 'string', + success: 'string', + total: 'number', + }; + } + validate() { + if (this.notifyPolicyList && typeof this.notifyPolicyList.validate === 'function') { + this.notifyPolicyList.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupNotifyPolicyListResponseBody = DescribeMonitorGroupNotifyPolicyListResponseBody; +//# sourceMappingURL=DescribeMonitorGroupNotifyPolicyListResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListResponseBody.js.map new file mode 100644 index 0000000..368caa7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupNotifyPolicyListResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitorGroupNotifyPolicyListResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeMonitorGroupNotifyPolicyListResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,4EAA6E,SAAQ,KAAK,CAAC,KAAK;IA6C3G,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;YAClB,EAAE,EAAE,IAAI;YACR,SAAS,EAAE,WAAW;YACtB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,QAAQ;YACjB,EAAE,EAAE,QAAQ;YACZ,SAAS,EAAE,QAAQ;YACnB,IAAI,EAAE,QAAQ;SACf,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxED,oKAwEC;AAED,MAAa,gEAAiE,SAAQ,KAAK,CAAC,KAAK;IAE/F,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,cAAc;SAC7B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAA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.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsRequest.d.ts new file mode 100644 index 0000000..0dd099e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsRequest.d.ts @@ -0,0 +1,172 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMonitorGroupsRequestTag extends $dara.Model { + /** + * @remarks + * The tag key of the application group. Valid values of N: 1 to 5. + * + * @example + * tagKey1 + */ + key?: string; + /** + * @remarks + * The tag value of the application group. Valid values of N: 1 to 5. + * + * @example + * tagValue1 + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorGroupsRequest extends $dara.Model { + /** + * @remarks + * The ID of the tag rule. + * + * @example + * 6b882d9a-5117-42e2-9d0c-4749a0c6**** + */ + dynamicTagRuleId?: string; + /** + * @remarks + * The tag key that is created for the application group by using the tag rule. + * + * @example + * GroupKey1 + */ + groupFounderTagKey?: string; + /** + * @remarks + * The tag value that is created for the application group by using the tag rule. + * + * @example + * GroupValue1 + */ + groupFounderTagValue?: string; + /** + * @remarks + * The ID of the application group. Separate multiple application group IDs with commas (,). + * + * @example + * 92**** + */ + groupId?: string; + /** + * @remarks + * The name of the application group. + * + * @example + * testGroup124 + */ + groupName?: string; + /** + * @remarks + * Specifies whether to include the historical alert templates that are applied to the application group in the response. Valid values: + * + * * true + * * false + * + * @example + * true + */ + includeTemplateHistory?: boolean; + /** + * @remarks + * The instance ID. This parameter is used to query the application group to which the specified instance belongs. + * + * @example + * i-abcdefgh12**** + */ + instanceId?: string; + /** + * @remarks + * The keyword that is used for the search. + * + * @example + * test + */ + keyword?: string; + /** + * @remarks + * The number of the page to return. + * + * Pages start from page 1. Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries to return on each page. + * + * Pages start from page 1. Default value: 30. + * + * @example + * 30 + */ + pageSize?: number; + regionId?: string; + /** + * @remarks + * Specifies whether to include the alert contact groups in the response. Valid values: + * + * * true + * * false + * + * @example + * true + */ + selectContactGroups?: boolean; + /** + * @remarks + * The tags of the application group. + */ + tag?: DescribeMonitorGroupsRequestTag[]; + /** + * @remarks + * The type of the application group. Valid values: + * + * * custom: a self-managed application group + * * ehpc_cluster: an application group that is synchronized from an E-HPC cluster + * * kubernetes: an application group that is synchronized from an ACK cluster + * + * @example + * custom + */ + type?: string; + /** + * @remarks + * The type of the application group. Valid values: + * + * * custom: a self-managed application group + * * ehpc_cluster: an application group that is synchronized from an Elastic High Performance Computing (E-HPC) cluster + * * kubernetes: an application group that is synchronized from a Container Service for Kubernetes (ACK) cluster + * * tag: an application group that is automatically created by using tags + * * resMgr: an application group that is created by using resource groups + * * ess: an application group that is synchronized from Auto Scaling (ESS) + * + * @example + * custom + */ + types?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsRequest.js new file mode 100644 index 0000000..52a2137 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsRequest.js @@ -0,0 +1,110 @@ +"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.DescribeMonitorGroupsRequest = exports.DescribeMonitorGroupsRequestTag = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMonitorGroupsRequestTag 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.DescribeMonitorGroupsRequestTag = DescribeMonitorGroupsRequestTag; +class DescribeMonitorGroupsRequest extends $dara.Model { + static names() { + return { + dynamicTagRuleId: 'DynamicTagRuleId', + groupFounderTagKey: 'GroupFounderTagKey', + groupFounderTagValue: 'GroupFounderTagValue', + groupId: 'GroupId', + groupName: 'GroupName', + includeTemplateHistory: 'IncludeTemplateHistory', + instanceId: 'InstanceId', + keyword: 'Keyword', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + selectContactGroups: 'SelectContactGroups', + tag: 'Tag', + type: 'Type', + types: 'Types', + }; + } + static types() { + return { + dynamicTagRuleId: 'string', + groupFounderTagKey: 'string', + groupFounderTagValue: 'string', + groupId: 'string', + groupName: 'string', + includeTemplateHistory: 'boolean', + instanceId: 'string', + keyword: 'string', + pageNumber: 'number', + pageSize: 'number', + regionId: 'string', + selectContactGroups: 'boolean', + tag: { 'type': 'array', 'itemType': DescribeMonitorGroupsRequestTag }, + type: 'string', + types: 'string', + }; + } + validate() { + if (Array.isArray(this.tag)) { + $dara.Model.validateArray(this.tag); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupsRequest = DescribeMonitorGroupsRequest; +//# sourceMappingURL=DescribeMonitorGroupsRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsRequest.js.map new file mode 100644 index 0000000..9becc17 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitorGroupsRequest.js","sourceRoot":"","sources":["../../src/models/DescribeMonitorGroupsRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAiB9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,GAAG,EAAE,KAAK;YACV,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,GAAG,EAAE,QAAQ;YACb,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtCD,0EAsCC;AAED,MAAa,4BAA6B,SAAQ,KAAK,CAAC,KAAK;IAoI3D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,gBAAgB,EAAE,kBAAkB;YACpC,kBAAkB,EAAE,oBAAoB;YACxC,oBAAoB,EAAE,sBAAsB;YAC5C,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,sBAAsB,EAAE,wBAAwB;YAChD,UAAU,EAAE,YAAY;YACxB,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,mBAAmB,EAAE,qBAAqB;YAC1C,GAAG,EAAE,KAAK;YACV,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,gBAAgB,EAAE,QAAQ;YAC1B,kBAAkB,EAAE,QAAQ;YAC5B,oBAAoB,EAAE,QAAQ;YAC9B,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,sBAAsB,EAAE,SAAS;YACjC,UAAU,EAAE,QAAQ;YACpB,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,mBAAmB,EAAE,SAAS;YAC9B,GAAG,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,+BAA+B,EAAE;YACrE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;YAC3B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACtC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtLD,oEAsLC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsResponse.d.ts new file mode 100644 index 0000000..669d5f7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeMonitorGroupsResponseBody } from "./DescribeMonitorGroupsResponseBody"; +export declare class DescribeMonitorGroupsResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeMonitorGroupsResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsResponse.js new file mode 100644 index 0000000..7d39cad --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsResponse.js @@ -0,0 +1,69 @@ +"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.DescribeMonitorGroupsResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeMonitorGroupsResponseBody_1 = require("./DescribeMonitorGroupsResponseBody"); +class DescribeMonitorGroupsResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMonitorGroupsResponseBody_1.DescribeMonitorGroupsResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupsResponse = DescribeMonitorGroupsResponse; +//# sourceMappingURL=DescribeMonitorGroupsResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsResponse.js.map new file mode 100644 index 0000000..0e7bea7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitorGroupsResponse.js","sourceRoot":"","sources":["../../src/models/DescribeMonitorGroupsResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,2FAAwF;AAGxF,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IAI5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,qEAAiC;SACxC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,sEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsResponseBody.d.ts new file mode 100644 index 0000000..cef409d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsResponseBody.d.ts @@ -0,0 +1,327 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMonitorGroupsResponseBodyResourcesResourceContactGroupsContactGroup extends $dara.Model { + /** + * @remarks + * The name of the alert contact group. + * + * @example + * CloudMonitor + */ + name?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorGroupsResponseBodyResourcesResourceContactGroups extends $dara.Model { + contactGroup?: DescribeMonitorGroupsResponseBodyResourcesResourceContactGroupsContactGroup[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorGroupsResponseBodyResourcesResourceTagsTag extends $dara.Model { + /** + * @remarks + * The tag key of the application group. + * + * @example + * tagKey1 + */ + key?: string; + /** + * @remarks + * The tag value of the application group. + * + * @example + * tagValue1 + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorGroupsResponseBodyResourcesResourceTags extends $dara.Model { + tag?: DescribeMonitorGroupsResponseBodyResourcesResourceTagsTag[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorGroupsResponseBodyResourcesResourceTemplateIds extends $dara.Model { + templateId?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorGroupsResponseBodyResourcesResourceTemplateInfosTemplateInfo extends $dara.Model { + effectTime?: number; + templateId?: string; + ver?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorGroupsResponseBodyResourcesResourceTemplateInfos extends $dara.Model { + templateInfo?: DescribeMonitorGroupsResponseBodyResourcesResourceTemplateInfosTemplateInfo[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorGroupsResponseBodyResourcesResource extends $dara.Model { + /** + * @remarks + * The URL of the ACK cluster from which the application group is synchronized. + * + * @example + * https://aliyun.com + */ + bindUrl?: string; + /** + * @remarks + * The alert contact groups. + */ + contactGroups?: DescribeMonitorGroupsResponseBodyResourcesResourceContactGroups; + /** + * @remarks + * The ID of the tag rule. + * + * @example + * 6b882d9a-5117-42e2-9d0c-4749a0c6**** + */ + dynamicTagRuleId?: string; + /** + * @remarks + * The timestamp when the application group was created. Unit: milliseconds. + * + * @example + * 1603181891000 + */ + gmtCreate?: number; + /** + * @remarks + * The timestamp when the application group was modified. Unit: milliseconds. + * + * @example + * 1603181891000 + */ + gmtModified?: number; + /** + * @remarks + * The tag key that is created for the application group by using the tag rule. + * + * @example + * GroupKey1 + */ + groupFounderTagKey?: string; + /** + * @remarks + * The tag value that is created for the application group by using the tag rule. + * + * @example + * GroupValue1 + */ + groupFounderTagValue?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 12345 + */ + groupId?: number; + /** + * @remarks + * The name of the application group. + * + * @example + * test123 + */ + groupName?: string; + /** + * @remarks + * The resource ID. + * + * @example + * rg-aek2hopjh******* + */ + resourceGroupId?: string; + /** + * @remarks + * The ID of the Alibaba Cloud service. + * + * @example + * 49**** + */ + serviceId?: string; + /** + * @remarks + * The tags that are attached to the application group. + */ + tags?: DescribeMonitorGroupsResponseBodyResourcesResourceTags; + /** + * @remarks + * The ID of the template. + */ + templateIds?: DescribeMonitorGroupsResponseBodyResourcesResourceTemplateIds; + templateInfos?: DescribeMonitorGroupsResponseBodyResourcesResourceTemplateInfos; + /** + * @remarks + * The type of the application group. Valid values: + * + * * custom: a self-managed application group + * * ehpc_cluster: an application group that is synchronized from an E-HPC cluster + * * kubernetes: an application group that is synchronized from an ACK cluster + * + * @example + * custom + */ + type?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorGroupsResponseBodyResources extends $dara.Model { + resource?: DescribeMonitorGroupsResponseBodyResourcesResource[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorGroupsResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The returned message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The page number of the returned page. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries returned per page. + * + * @example + * 30 + */ + pageSize?: number; + /** + * @remarks + * The request ID. + * + * @example + * F02B299A-D374-4595-9F55-7534D604F132 + */ + requestId?: string; + /** + * @remarks + * The resources that are associated with the application group. + */ + resources?: DescribeMonitorGroupsResponseBodyResources; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The total number of returned entries. + * + * @example + * 10 + */ + total?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsResponseBody.js new file mode 100644 index 0000000..fdc07d5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsResponseBody.js @@ -0,0 +1,307 @@ +"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.DescribeMonitorGroupsResponseBody = exports.DescribeMonitorGroupsResponseBodyResources = exports.DescribeMonitorGroupsResponseBodyResourcesResource = exports.DescribeMonitorGroupsResponseBodyResourcesResourceTemplateInfos = exports.DescribeMonitorGroupsResponseBodyResourcesResourceTemplateInfosTemplateInfo = exports.DescribeMonitorGroupsResponseBodyResourcesResourceTemplateIds = exports.DescribeMonitorGroupsResponseBodyResourcesResourceTags = exports.DescribeMonitorGroupsResponseBodyResourcesResourceTagsTag = exports.DescribeMonitorGroupsResponseBodyResourcesResourceContactGroups = exports.DescribeMonitorGroupsResponseBodyResourcesResourceContactGroupsContactGroup = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMonitorGroupsResponseBodyResourcesResourceContactGroupsContactGroup extends $dara.Model { + static names() { + return { + name: 'Name', + }; + } + static types() { + return { + name: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupsResponseBodyResourcesResourceContactGroupsContactGroup = DescribeMonitorGroupsResponseBodyResourcesResourceContactGroupsContactGroup; +class DescribeMonitorGroupsResponseBodyResourcesResourceContactGroups extends $dara.Model { + static names() { + return { + contactGroup: 'ContactGroup', + }; + } + static types() { + return { + contactGroup: { 'type': 'array', 'itemType': DescribeMonitorGroupsResponseBodyResourcesResourceContactGroupsContactGroup }, + }; + } + validate() { + if (Array.isArray(this.contactGroup)) { + $dara.Model.validateArray(this.contactGroup); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupsResponseBodyResourcesResourceContactGroups = DescribeMonitorGroupsResponseBodyResourcesResourceContactGroups; +class DescribeMonitorGroupsResponseBodyResourcesResourceTagsTag 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.DescribeMonitorGroupsResponseBodyResourcesResourceTagsTag = DescribeMonitorGroupsResponseBodyResourcesResourceTagsTag; +class DescribeMonitorGroupsResponseBodyResourcesResourceTags extends $dara.Model { + static names() { + return { + tag: 'Tag', + }; + } + static types() { + return { + tag: { 'type': 'array', 'itemType': DescribeMonitorGroupsResponseBodyResourcesResourceTagsTag }, + }; + } + validate() { + if (Array.isArray(this.tag)) { + $dara.Model.validateArray(this.tag); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupsResponseBodyResourcesResourceTags = DescribeMonitorGroupsResponseBodyResourcesResourceTags; +class DescribeMonitorGroupsResponseBodyResourcesResourceTemplateIds extends $dara.Model { + static names() { + return { + templateId: 'TemplateId', + }; + } + static types() { + return { + templateId: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.templateId)) { + $dara.Model.validateArray(this.templateId); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupsResponseBodyResourcesResourceTemplateIds = DescribeMonitorGroupsResponseBodyResourcesResourceTemplateIds; +class DescribeMonitorGroupsResponseBodyResourcesResourceTemplateInfosTemplateInfo extends $dara.Model { + static names() { + return { + effectTime: 'EffectTime', + templateId: 'TemplateId', + ver: 'Ver', + }; + } + static types() { + return { + effectTime: 'number', + templateId: 'string', + ver: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupsResponseBodyResourcesResourceTemplateInfosTemplateInfo = DescribeMonitorGroupsResponseBodyResourcesResourceTemplateInfosTemplateInfo; +class DescribeMonitorGroupsResponseBodyResourcesResourceTemplateInfos extends $dara.Model { + static names() { + return { + templateInfo: 'TemplateInfo', + }; + } + static types() { + return { + templateInfo: { 'type': 'array', 'itemType': DescribeMonitorGroupsResponseBodyResourcesResourceTemplateInfosTemplateInfo }, + }; + } + validate() { + if (Array.isArray(this.templateInfo)) { + $dara.Model.validateArray(this.templateInfo); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupsResponseBodyResourcesResourceTemplateInfos = DescribeMonitorGroupsResponseBodyResourcesResourceTemplateInfos; +class DescribeMonitorGroupsResponseBodyResourcesResource extends $dara.Model { + static names() { + return { + bindUrl: 'BindUrl', + contactGroups: 'ContactGroups', + dynamicTagRuleId: 'DynamicTagRuleId', + gmtCreate: 'GmtCreate', + gmtModified: 'GmtModified', + groupFounderTagKey: 'GroupFounderTagKey', + groupFounderTagValue: 'GroupFounderTagValue', + groupId: 'GroupId', + groupName: 'GroupName', + resourceGroupId: 'ResourceGroupId', + serviceId: 'ServiceId', + tags: 'Tags', + templateIds: 'TemplateIds', + templateInfos: 'TemplateInfos', + type: 'Type', + }; + } + static types() { + return { + bindUrl: 'string', + contactGroups: DescribeMonitorGroupsResponseBodyResourcesResourceContactGroups, + dynamicTagRuleId: 'string', + gmtCreate: 'number', + gmtModified: 'number', + groupFounderTagKey: 'string', + groupFounderTagValue: 'string', + groupId: 'number', + groupName: 'string', + resourceGroupId: 'string', + serviceId: 'string', + tags: DescribeMonitorGroupsResponseBodyResourcesResourceTags, + templateIds: DescribeMonitorGroupsResponseBodyResourcesResourceTemplateIds, + templateInfos: DescribeMonitorGroupsResponseBodyResourcesResourceTemplateInfos, + type: 'string', + }; + } + validate() { + if (this.contactGroups && typeof this.contactGroups.validate === 'function') { + this.contactGroups.validate(); + } + if (this.tags && typeof this.tags.validate === 'function') { + this.tags.validate(); + } + if (this.templateIds && typeof this.templateIds.validate === 'function') { + this.templateIds.validate(); + } + if (this.templateInfos && typeof this.templateInfos.validate === 'function') { + this.templateInfos.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupsResponseBodyResourcesResource = DescribeMonitorGroupsResponseBodyResourcesResource; +class DescribeMonitorGroupsResponseBodyResources extends $dara.Model { + static names() { + return { + resource: 'Resource', + }; + } + static types() { + return { + resource: { 'type': 'array', 'itemType': DescribeMonitorGroupsResponseBodyResourcesResource }, + }; + } + validate() { + if (Array.isArray(this.resource)) { + $dara.Model.validateArray(this.resource); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupsResponseBodyResources = DescribeMonitorGroupsResponseBodyResources; +class DescribeMonitorGroupsResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + requestId: 'RequestId', + resources: 'Resources', + success: 'Success', + total: 'Total', + }; + } + static types() { + return { + code: 'number', + message: 'string', + pageNumber: 'number', + pageSize: 'number', + requestId: 'string', + resources: DescribeMonitorGroupsResponseBodyResources, + success: 'boolean', + total: 'number', + }; + } + validate() { + if (this.resources && typeof this.resources.validate === 'function') { + this.resources.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorGroupsResponseBody = DescribeMonitorGroupsResponseBody; +//# sourceMappingURL=DescribeMonitorGroupsResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsResponseBody.js.map new file mode 100644 index 0000000..0519037 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorGroupsResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitorGroupsResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeMonitorGroupsResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,2EAA4E,SAAQ,KAAK,CAAC,KAAK;IAS1G,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;SACf,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC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YAC3E,IAAI,CAAC,SAAiB,CAAC,QAAQ,EAAE,CAAC;QACrC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAvGD,8EAuGC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeRequest.d.ts new file mode 100644 index 0000000..b601b04 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeRequest.d.ts @@ -0,0 +1,25 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMonitorResourceQuotaAttributeRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * Specifies whether to return information about used quotas. Valid values: + * + * * true (default): yes + * * false: no + * + * @example + * true + */ + showUsed?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeRequest.js new file mode 100644 index 0000000..36d756b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeRequest.js @@ -0,0 +1,60 @@ +"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.DescribeMonitorResourceQuotaAttributeRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMonitorResourceQuotaAttributeRequest extends $dara.Model { + static names() { + return { + regionId: 'RegionId', + showUsed: 'ShowUsed', + }; + } + static types() { + return { + regionId: 'string', + showUsed: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorResourceQuotaAttributeRequest = DescribeMonitorResourceQuotaAttributeRequest; +//# sourceMappingURL=DescribeMonitorResourceQuotaAttributeRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeRequest.js.map new file mode 100644 index 0000000..a266f6b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitorResourceQuotaAttributeRequest.js","sourceRoot":"","sources":["../../src/models/DescribeMonitorResourceQuotaAttributeRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,4CAA6C,SAAQ,KAAK,CAAC,KAAK;IAa3E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,SAAS;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAlCD,oGAkCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeResponse.d.ts new file mode 100644 index 0000000..2ad1eac --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeMonitorResourceQuotaAttributeResponseBody } from "./DescribeMonitorResourceQuotaAttributeResponseBody"; +export declare class DescribeMonitorResourceQuotaAttributeResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeMonitorResourceQuotaAttributeResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeResponse.js new file mode 100644 index 0000000..787515c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeResponse.js @@ -0,0 +1,69 @@ +"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.DescribeMonitorResourceQuotaAttributeResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeMonitorResourceQuotaAttributeResponseBody_1 = require("./DescribeMonitorResourceQuotaAttributeResponseBody"); +class DescribeMonitorResourceQuotaAttributeResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMonitorResourceQuotaAttributeResponseBody_1.DescribeMonitorResourceQuotaAttributeResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorResourceQuotaAttributeResponse = DescribeMonitorResourceQuotaAttributeResponse; +//# sourceMappingURL=DescribeMonitorResourceQuotaAttributeResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeResponse.js.map new file mode 100644 index 0000000..753f680 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitorResourceQuotaAttributeResponse.js","sourceRoot":"","sources":["../../src/models/DescribeMonitorResourceQuotaAttributeResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,2HAAwH;AAGxH,MAAa,6CAA8C,SAAQ,KAAK,CAAC,KAAK;IAI5E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,qGAAiD;SACxD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,sGAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeResponseBody.d.ts new file mode 100644 index 0000000..229fb10 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeResponseBody.d.ts @@ -0,0 +1,572 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaApi extends $dara.Model { + /** + * @remarks + * The total quota of API calls. Unit: 10,000 calls. + * + * @example + * 500 + */ + quotaLimit?: number; + /** + * @remarks + * The quota of API calls in your resource plan. Unit: 10,000 calls. + * + * @example + * 500 + */ + quotaPackage?: number; + /** + * @remarks + * The used quota of API calls in your resource plan. Unit: calls. + * + * @example + * 9987 + */ + quotaUsed?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaCustomMonitor extends $dara.Model { + /** + * @remarks + * The total quota of the time series for custom monitoring. + * + * @example + * 1200 + */ + quotaLimit?: number; + /** + * @remarks + * The quota of the time series for custom monitoring in your resource plan. + * + * @example + * 1000 + */ + quotaPackage?: number; + /** + * @remarks + * The used quota of the time series for custom monitoring in your resource plan. + * + * @example + * 8 + */ + quotaUsed?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaEnterpriseQuota extends $dara.Model { + /** + * @remarks + * The ID of the instance monitored by Hybrid Cloud Monitoring. + * + * @example + * cms_enterprise_public_cn-7mz27pd**** + */ + instanceId?: string; + /** + * @remarks + * The description of Hybrid Cloud Monitoring. + * + * @example + * ENTERPRISE + */ + suitInfo?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaEventMonitor extends $dara.Model { + /** + * @remarks + * The total quota of events that can be reported in event monitoring. The total quota is the value that is multiplied by 10,000. + * + * @example + * 55 + */ + quotaLimit?: number; + /** + * @remarks + * The quota of events that can be reported in event monitoring in your resource plan. The total quota is the value that is multiplied by 10,000. + * + * @example + * 50 + */ + quotaPackage?: number; + /** + * @remarks + * The used quota of events that can be reported in event monitoring in your resource plan. The total quota is the value that is multiplied by 10,000. + * + * @example + * 2 + */ + quotaUsed?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaLogMonitor extends $dara.Model { + /** + * @remarks + * The total quota of processed log data in log monitoring. Unit: MB/min. + * + * @example + * 150 + */ + quotaLimit?: number; + /** + * @remarks + * The quota of processed log data in log monitoring in your resource plan. Unit: MB/min. + * + * @example + * 150 + */ + quotaPackage?: number; + /** + * @remarks + * The used quota of processed log data in log monitoring in your resource plan. Unit: MB/min. + * + * @example + * 80 + */ + quotaUsed?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaPhone extends $dara.Model { + /** + * @remarks + * The total quota of alert phone calls. Unit: calls. + * + * @example + * 550 + */ + quotaLimit?: number; + /** + * @remarks + * The quota of alert phone calls in your resource plan. Unit: calls. + * + * @example + * 500 + */ + quotaPackage?: number; + /** + * @remarks + * The used quota of alert phone calls in your resource plan. Unit: calls. + * + * @example + * 100 + */ + quotaUsed?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSMS extends $dara.Model { + /** + * @remarks + * The total quota of alert text messages. Unit: messages. + * + * @example + * 550 + */ + quotaLimit?: number; + /** + * @remarks + * The quota of alert text messages in your resource plan. Unit: messages. + * + * @example + * 500 + */ + quotaPackage?: number; + /** + * @remarks + * The used quota of alert text messages in your resource plan. Unit: messages. + * + * @example + * 38 + */ + quotaUsed?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorBrowser extends $dara.Model { + /** + * @remarks + * The total quota of browser detection tasks. + * + * @example + * 50 + */ + quotaLimit?: number; + /** + * @remarks + * The quota of browser detection tasks in your resource plan. + * + * @example + * 50 + */ + quotaPackage?: number; + /** + * @remarks + * The used quota of browser detection tasks in your resource plan. + * + * @example + * 15 + */ + quotaUsed?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorEcsProbe extends $dara.Model { + /** + * @remarks + * The total quota of ECS detection points for site monitoring. + * + * > The value indicates the maximum number of ECS detection points that you can select for a site monitoring task. + * + * @example + * 5 + */ + quotaLimit?: number; + /** + * @remarks + * The quota of ECS detection points for site monitoring in your resource plan. + * + * @example + * 5 + */ + quotaPackage?: number; + /** + * @remarks + * The used quota of ECS detection points for site monitoring in your resource plan. + * + * > The value indicates the total number of ECS detection points that are used by existing site monitoring tasks. + * + * @example + * 20 + */ + quotaUsed?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorMobile extends $dara.Model { + /** + * @remarks + * The total quota of mobile detection tasks. + * + * @example + * 50 + */ + quotaLimit?: number; + /** + * @remarks + * The quota of mobile detection tasks in your resource plan. + * + * @example + * 50 + */ + quotaPackage?: number; + /** + * @remarks + * The used quota of mobile detection tasks in your resource plan. + * + * @example + * 15 + */ + quotaUsed?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorOperatorProbe extends $dara.Model { + /** + * @remarks + * The total quota of carrier detection points for site monitoring. + * + * @example + * 5 + */ + quotaLimit?: number; + /** + * @remarks + * The quota of carrier detection points for site monitoring in your resource plan. + * + * @example + * 5 + */ + quotaPackage?: number; + /** + * @remarks + * The used quota of carrier detection points for site monitoring in your resource plan. + * + * @example + * 0 + */ + quotaUsed?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorTask extends $dara.Model { + /** + * @remarks + * The total quota of site monitoring tasks. + * + * @example + * 25 + */ + quotaLimit?: number; + /** + * @remarks + * The quota of site monitoring tasks in your resource plan. + * + * @example + * 20 + */ + quotaPackage?: number; + /** + * @remarks + * The used quota of site monitoring tasks in your resource plan. + * + * @example + * 15 + */ + quotaUsed?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuota extends $dara.Model { + /** + * @remarks + * The details about the quota of API calls. + */ + api?: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaApi; + /** + * @remarks + * The details about the quota for custom monitoring. + */ + customMonitor?: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaCustomMonitor; + /** + * @remarks + * The details about the quota of Hybrid Cloud Monitoring. + */ + enterpriseQuota?: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaEnterpriseQuota; + /** + * @remarks + * The details about the quota for event monitoring. + */ + eventMonitor?: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaEventMonitor; + /** + * @remarks + * The time when the resource plan expires. + * + * @example + * 2021-02-28 + */ + expireTime?: string; + /** + * @remarks + * The ID of the resource plan. + * + * @example + * cms_edition-cn-n6w20rn**** + */ + instanceId?: string; + /** + * @remarks + * The details about the quota for log monitoring. + */ + logMonitor?: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaLogMonitor; + /** + * @remarks + * The details about the quota of alert phone calls. + */ + phone?: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaPhone; + /** + * @remarks + * The details about the quota of alert text messages. + */ + SMS?: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSMS; + /** + * @remarks + * The quota of browser detection tasks. + */ + siteMonitorBrowser?: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorBrowser; + /** + * @remarks + * The details about the quota of ECS detection points for site monitoring. + */ + siteMonitorEcsProbe?: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorEcsProbe; + /** + * @remarks + * The quota of mobile detection tasks. + */ + siteMonitorMobile?: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorMobile; + /** + * @remarks + * The details about the quota of carrier detection points for site monitoring. + */ + siteMonitorOperatorProbe?: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorOperatorProbe; + /** + * @remarks + * The quota of site monitoring tasks. + */ + siteMonitorTask?: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorTask; + /** + * @remarks + * The current edition of CloudMonitor. Valid values: + * + * * free: Free Edition + * * pro: Pro Edition + * * cms_post: pay-as-you-go + * + * @example + * pro + */ + suitInfo?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitorResourceQuotaAttributeResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 31BC7201-00F2-47B2-B7B9-6A173076ACE + */ + requestId?: string; + /** + * @remarks + * The details about the resource quotas of CloudMonitor. + */ + resourceQuota?: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuota; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeResponseBody.js new file mode 100644 index 0000000..5d96b68 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeResponseBody.js @@ -0,0 +1,424 @@ +"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.DescribeMonitorResourceQuotaAttributeResponseBody = exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuota = exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorTask = exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorOperatorProbe = exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorMobile = exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorEcsProbe = exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorBrowser = exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSMS = exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaPhone = exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaLogMonitor = exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaEventMonitor = exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaEnterpriseQuota = exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaCustomMonitor = exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaApi = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaApi extends $dara.Model { + static names() { + return { + quotaLimit: 'QuotaLimit', + quotaPackage: 'QuotaPackage', + quotaUsed: 'QuotaUsed', + }; + } + static types() { + return { + quotaLimit: 'number', + quotaPackage: 'number', + quotaUsed: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaApi = DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaApi; +class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaCustomMonitor extends $dara.Model { + static names() { + return { + quotaLimit: 'QuotaLimit', + quotaPackage: 'QuotaPackage', + quotaUsed: 'QuotaUsed', + }; + } + static types() { + return { + quotaLimit: 'number', + quotaPackage: 'number', + quotaUsed: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaCustomMonitor = DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaCustomMonitor; +class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaEnterpriseQuota extends $dara.Model { + static names() { + return { + instanceId: 'InstanceId', + suitInfo: 'SuitInfo', + }; + } + static types() { + return { + instanceId: 'string', + suitInfo: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaEnterpriseQuota = DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaEnterpriseQuota; +class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaEventMonitor extends $dara.Model { + static names() { + return { + quotaLimit: 'QuotaLimit', + quotaPackage: 'QuotaPackage', + quotaUsed: 'QuotaUsed', + }; + } + static types() { + return { + quotaLimit: 'number', + quotaPackage: 'number', + quotaUsed: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaEventMonitor = DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaEventMonitor; +class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaLogMonitor extends $dara.Model { + static names() { + return { + quotaLimit: 'QuotaLimit', + quotaPackage: 'QuotaPackage', + quotaUsed: 'QuotaUsed', + }; + } + static types() { + return { + quotaLimit: 'number', + quotaPackage: 'number', + quotaUsed: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaLogMonitor = DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaLogMonitor; +class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaPhone extends $dara.Model { + static names() { + return { + quotaLimit: 'QuotaLimit', + quotaPackage: 'QuotaPackage', + quotaUsed: 'QuotaUsed', + }; + } + static types() { + return { + quotaLimit: 'number', + quotaPackage: 'number', + quotaUsed: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaPhone = DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaPhone; +class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSMS extends $dara.Model { + static names() { + return { + quotaLimit: 'QuotaLimit', + quotaPackage: 'QuotaPackage', + quotaUsed: 'QuotaUsed', + }; + } + static types() { + return { + quotaLimit: 'number', + quotaPackage: 'number', + quotaUsed: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSMS = DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSMS; +class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorBrowser extends $dara.Model { + static names() { + return { + quotaLimit: 'QuotaLimit', + quotaPackage: 'QuotaPackage', + quotaUsed: 'QuotaUsed', + }; + } + static types() { + return { + quotaLimit: 'number', + quotaPackage: 'number', + quotaUsed: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorBrowser = DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorBrowser; +class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorEcsProbe extends $dara.Model { + static names() { + return { + quotaLimit: 'QuotaLimit', + quotaPackage: 'QuotaPackage', + quotaUsed: 'QuotaUsed', + }; + } + static types() { + return { + quotaLimit: 'number', + quotaPackage: 'number', + quotaUsed: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorEcsProbe = DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorEcsProbe; +class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorMobile extends $dara.Model { + static names() { + return { + quotaLimit: 'QuotaLimit', + quotaPackage: 'QuotaPackage', + quotaUsed: 'QuotaUsed', + }; + } + static types() { + return { + quotaLimit: 'number', + quotaPackage: 'number', + quotaUsed: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorMobile = DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorMobile; +class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorOperatorProbe extends $dara.Model { + static names() { + return { + quotaLimit: 'QuotaLimit', + quotaPackage: 'QuotaPackage', + quotaUsed: 'QuotaUsed', + }; + } + static types() { + return { + quotaLimit: 'number', + quotaPackage: 'number', + quotaUsed: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorOperatorProbe = DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorOperatorProbe; +class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorTask extends $dara.Model { + static names() { + return { + quotaLimit: 'QuotaLimit', + quotaPackage: 'QuotaPackage', + quotaUsed: 'QuotaUsed', + }; + } + static types() { + return { + quotaLimit: 'number', + quotaPackage: 'number', + quotaUsed: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorTask = DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorTask; +class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuota extends $dara.Model { + static names() { + return { + api: 'Api', + customMonitor: 'CustomMonitor', + enterpriseQuota: 'EnterpriseQuota', + eventMonitor: 'EventMonitor', + expireTime: 'ExpireTime', + instanceId: 'InstanceId', + logMonitor: 'LogMonitor', + phone: 'Phone', + SMS: 'SMS', + siteMonitorBrowser: 'SiteMonitorBrowser', + siteMonitorEcsProbe: 'SiteMonitorEcsProbe', + siteMonitorMobile: 'SiteMonitorMobile', + siteMonitorOperatorProbe: 'SiteMonitorOperatorProbe', + siteMonitorTask: 'SiteMonitorTask', + suitInfo: 'SuitInfo', + }; + } + static types() { + return { + api: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaApi, + customMonitor: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaCustomMonitor, + enterpriseQuota: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaEnterpriseQuota, + eventMonitor: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaEventMonitor, + expireTime: 'string', + instanceId: 'string', + logMonitor: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaLogMonitor, + phone: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaPhone, + SMS: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSMS, + siteMonitorBrowser: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorBrowser, + siteMonitorEcsProbe: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorEcsProbe, + siteMonitorMobile: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorMobile, + siteMonitorOperatorProbe: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorOperatorProbe, + siteMonitorTask: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorTask, + suitInfo: 'string', + }; + } + validate() { + if (this.api && typeof this.api.validate === 'function') { + this.api.validate(); + } + if (this.customMonitor && typeof this.customMonitor.validate === 'function') { + this.customMonitor.validate(); + } + if (this.enterpriseQuota && typeof this.enterpriseQuota.validate === 'function') { + this.enterpriseQuota.validate(); + } + if (this.eventMonitor && typeof this.eventMonitor.validate === 'function') { + this.eventMonitor.validate(); + } + if (this.logMonitor && typeof this.logMonitor.validate === 'function') { + this.logMonitor.validate(); + } + if (this.phone && typeof this.phone.validate === 'function') { + this.phone.validate(); + } + if (this.SMS && typeof this.SMS.validate === 'function') { + this.SMS.validate(); + } + if (this.siteMonitorBrowser && typeof this.siteMonitorBrowser.validate === 'function') { + this.siteMonitorBrowser.validate(); + } + if (this.siteMonitorEcsProbe && typeof this.siteMonitorEcsProbe.validate === 'function') { + this.siteMonitorEcsProbe.validate(); + } + if (this.siteMonitorMobile && typeof this.siteMonitorMobile.validate === 'function') { + this.siteMonitorMobile.validate(); + } + if (this.siteMonitorOperatorProbe && typeof this.siteMonitorOperatorProbe.validate === 'function') { + this.siteMonitorOperatorProbe.validate(); + } + if (this.siteMonitorTask && typeof this.siteMonitorTask.validate === 'function') { + this.siteMonitorTask.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuota = DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuota; +class DescribeMonitorResourceQuotaAttributeResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + resourceQuota: 'ResourceQuota', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + resourceQuota: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuota, + }; + } + validate() { + if (this.resourceQuota && typeof this.resourceQuota.validate === 'function') { + this.resourceQuota.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitorResourceQuotaAttributeResponseBody = DescribeMonitorResourceQuotaAttributeResponseBody; +//# sourceMappingURL=DescribeMonitorResourceQuotaAttributeResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeResponseBody.js.map new file mode 100644 index 0000000..3d1b9c4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitorResourceQuotaAttributeResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitorResourceQuotaAttributeResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeMonitorResourceQuotaAttributeResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,iEAAkE,SAAQ,KAAK,CAAC,KAAK;IAyBhG,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,YAAY,EAAE,cAAc;YAC5B,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,YAAY,EAAE,QAAQ;YACtB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAhDD,8IAgDC;AAED,MAAa,2EAA4E,SAAQ,KAAK,CAAC,KAAK;IAyB1G,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,YAAY,EAAE,cAAc;YAC5B,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,YAAY,EAAE,QAAQ;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UAAU,EAAE,CAAC;YACzG,IAAI,CAAC,wBAAgC,CAAC,QAAQ,EAAE,CAAC;QACpD,CAAC;QACD,IAAG,IAAI,CAAC,eAAe,IAAI,OAAQ,IAAI,CAAC,eAAuB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACvF,IAAI,CAAC,eAAuB,CAAC,QAAQ,EAAE,CAAC;QAC3C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5KD,wIA4KC;AAED,MAAa,iDAAkD,SAAQ,KAAK,CAAC,KAAK;IAgChF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,aAAa,EAAE,eAAe;SAC/B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,aAAa,EAAE,8DAA8D;SAC9E,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,aAAa,IAAI,OAAQ,IAAI,CAAC,aAAqB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACnF,IAAI,CAAC,aAAqB,CAAC,QAAQ,EAAE,CAAC;QACzC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5DD,8GA4DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyRequest.d.ts new file mode 100644 index 0000000..adfce41 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyRequest.d.ts @@ -0,0 +1,14 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMonitoringAgentAccessKeyRequest extends $dara.Model { + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyRequest.js new file mode 100644 index 0000000..e8887e3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyRequest.js @@ -0,0 +1,58 @@ +"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.DescribeMonitoringAgentAccessKeyRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMonitoringAgentAccessKeyRequest extends $dara.Model { + static names() { + return { + regionId: 'RegionId', + }; + } + static types() { + return { + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitoringAgentAccessKeyRequest = DescribeMonitoringAgentAccessKeyRequest; +//# sourceMappingURL=DescribeMonitoringAgentAccessKeyRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyRequest.js.map new file mode 100644 index 0000000..0f6dba7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitoringAgentAccessKeyRequest.js","sourceRoot":"","sources":["../../src/models/DescribeMonitoringAgentAccessKeyRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,uCAAwC,SAAQ,KAAK,CAAC,KAAK;IAEtE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AArBD,0FAqBC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyResponse.d.ts new file mode 100644 index 0000000..3f19bbe --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeMonitoringAgentAccessKeyResponseBody } from "./DescribeMonitoringAgentAccessKeyResponseBody"; +export declare class DescribeMonitoringAgentAccessKeyResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeMonitoringAgentAccessKeyResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyResponse.js new file mode 100644 index 0000000..9315b7f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyResponse.js @@ -0,0 +1,69 @@ +"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.DescribeMonitoringAgentAccessKeyResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeMonitoringAgentAccessKeyResponseBody_1 = require("./DescribeMonitoringAgentAccessKeyResponseBody"); +class DescribeMonitoringAgentAccessKeyResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMonitoringAgentAccessKeyResponseBody_1.DescribeMonitoringAgentAccessKeyResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitoringAgentAccessKeyResponse = DescribeMonitoringAgentAccessKeyResponse; +//# sourceMappingURL=DescribeMonitoringAgentAccessKeyResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyResponse.js.map new file mode 100644 index 0000000..73c5997 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitoringAgentAccessKeyResponse.js","sourceRoot":"","sources":["../../src/models/DescribeMonitoringAgentAccessKeyResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,iHAA8G;AAG9G,MAAa,wCAAyC,SAAQ,KAAK,CAAC,KAAK;IAIvE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,2FAA4C;SACnD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,4FAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyResponseBody.d.ts new file mode 100644 index 0000000..7c55730 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyResponseBody.d.ts @@ -0,0 +1,66 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMonitoringAgentAccessKeyResponseBody extends $dara.Model { + /** + * @remarks + * The AccessKey ID that is required to install the agent. + * + * @example + * E7A27f9**** + */ + accessKey?: string; + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * C0F655E9-D793-51E6-BD78-CABBCCFC1047 + */ + requestId?: string; + /** + * @remarks + * The AccessKey secret that is required to install the agent. + * + * @example + * sBjNOUhLylrxMX-Xv1**** + */ + secretKey?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyResponseBody.js new file mode 100644 index 0000000..3ca4ebc --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyResponseBody.js @@ -0,0 +1,68 @@ +"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.DescribeMonitoringAgentAccessKeyResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMonitoringAgentAccessKeyResponseBody extends $dara.Model { + static names() { + return { + accessKey: 'AccessKey', + code: 'Code', + message: 'Message', + requestId: 'RequestId', + secretKey: 'SecretKey', + success: 'Success', + }; + } + static types() { + return { + accessKey: 'string', + code: 'number', + message: 'string', + requestId: 'string', + secretKey: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitoringAgentAccessKeyResponseBody = DescribeMonitoringAgentAccessKeyResponseBody; +//# sourceMappingURL=DescribeMonitoringAgentAccessKeyResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyResponseBody.js.map new file mode 100644 index 0000000..ee0528d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentAccessKeyResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitoringAgentAccessKeyResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeMonitoringAgentAccessKeyResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,4CAA6C,SAAQ,KAAK,CAAC,KAAK;IAsD3E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;YACtB,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,QAAQ;YACnB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnFD,oGAmFC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigRequest.d.ts new file mode 100644 index 0000000..f4ff004 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigRequest.d.ts @@ -0,0 +1,14 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMonitoringAgentConfigRequest extends $dara.Model { + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigRequest.js new file mode 100644 index 0000000..578a5c6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigRequest.js @@ -0,0 +1,58 @@ +"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.DescribeMonitoringAgentConfigRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMonitoringAgentConfigRequest extends $dara.Model { + static names() { + return { + regionId: 'RegionId', + }; + } + static types() { + return { + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitoringAgentConfigRequest = DescribeMonitoringAgentConfigRequest; +//# sourceMappingURL=DescribeMonitoringAgentConfigRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigRequest.js.map new file mode 100644 index 0000000..93946e4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitoringAgentConfigRequest.js","sourceRoot":"","sources":["../../src/models/DescribeMonitoringAgentConfigRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IAEnE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AArBD,oFAqBC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigResponse.d.ts new file mode 100644 index 0000000..e975ac2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeMonitoringAgentConfigResponseBody } from "./DescribeMonitoringAgentConfigResponseBody"; +export declare class DescribeMonitoringAgentConfigResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeMonitoringAgentConfigResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigResponse.js new file mode 100644 index 0000000..0f79e26 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigResponse.js @@ -0,0 +1,69 @@ +"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.DescribeMonitoringAgentConfigResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeMonitoringAgentConfigResponseBody_1 = require("./DescribeMonitoringAgentConfigResponseBody"); +class DescribeMonitoringAgentConfigResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMonitoringAgentConfigResponseBody_1.DescribeMonitoringAgentConfigResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitoringAgentConfigResponse = DescribeMonitoringAgentConfigResponse; +//# sourceMappingURL=DescribeMonitoringAgentConfigResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigResponse.js.map new file mode 100644 index 0000000..b9b75c7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitoringAgentConfigResponse.js","sourceRoot":"","sources":["../../src/models/DescribeMonitoringAgentConfigResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,2GAAwG;AAGxG,MAAa,qCAAsC,SAAQ,KAAK,CAAC,KAAK;IAIpE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,qFAAyC;SAChD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,sFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigResponseBody.d.ts new file mode 100644 index 0000000..4640b1e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigResponseBody.d.ts @@ -0,0 +1,80 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMonitoringAgentConfigResponseBody extends $dara.Model { + /** + * @remarks + * Indicates whether the CloudMonitor agent is automatically installed on existing Elastic Compute Service (ECS) instances. Valid values: + * + * * true + * * false + * + * @example + * true + */ + autoInstall?: boolean; + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The cloud services for which proactive alerting is enabled. + * + * @example + * redis,rds,ecs + */ + enableActiveAlert?: string; + /** + * @remarks + * Indicates whether the CloudMonitor agent is automatically installed on newly purchased ECS instances. Valid values: + * + * * true + * * false + * + * @example + * true + */ + enableInstallAgentNewECS?: boolean; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * E9F4FA2A-54BE-4EF9-9D1D-1A0B1DC86B8D + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigResponseBody.js new file mode 100644 index 0000000..10bce67 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigResponseBody.js @@ -0,0 +1,70 @@ +"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.DescribeMonitoringAgentConfigResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMonitoringAgentConfigResponseBody extends $dara.Model { + static names() { + return { + autoInstall: 'AutoInstall', + code: 'Code', + enableActiveAlert: 'EnableActiveAlert', + enableInstallAgentNewECS: 'EnableInstallAgentNewECS', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + autoInstall: 'boolean', + code: 'string', + enableActiveAlert: 'string', + enableInstallAgentNewECS: 'boolean', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitoringAgentConfigResponseBody = DescribeMonitoringAgentConfigResponseBody; +//# sourceMappingURL=DescribeMonitoringAgentConfigResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigResponseBody.js.map new file mode 100644 index 0000000..226a321 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentConfigResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitoringAgentConfigResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeMonitoringAgentConfigResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yCAA0C,SAAQ,KAAK,CAAC,KAAK;IAoExE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;YAC1B,IAAI,EAAE,MAAM;YACZ,iBAAiB,EAAE,mBAAmB;YACtC,wBAAwB,EAAE,0BAA0B;YACpD,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,SAAS;YACtB,IAAI,EAAE,QAAQ;YACd,iBAAiB,EAAE,QAAQ;YAC3B,wBAAwB,EAAE,SAAS;YACnC,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnGD,8FAmGC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsRequest.d.ts new file mode 100644 index 0000000..2d2a75b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsRequest.d.ts @@ -0,0 +1,116 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMonitoringAgentHostsRequest extends $dara.Model { + /** + * @remarks + * Specifies whether to query Elastic Compute Service (ECS) instances that are provided by Alibaba Cloud or to query hosts that are not provided by Alibaba Cloud. Valid values: + * + * * true (default value): queries all the ECS instances that are provided by Alibaba Cloud. + * * false: queries all the hosts that are not provided by Alibaba Cloud. + * + * @example + * true + */ + aliyunHost?: boolean; + /** + * @remarks + * The name of the host. + * + * @example + * hostNam1 + */ + hostName?: string; + /** + * @remarks + * The ID of the instance. + * + * @example + * i-a3d1q1pm2f9yr29e**** + */ + instanceIds?: string; + /** + * @remarks + * The region ID of the instance. + * + * @example + * cn-hangzhou + */ + instanceRegionId?: string; + /** + * @remarks + * The keyword that is used in fuzzy match. + * + * @example + * host1 + */ + keyWord?: string; + /** + * @remarks + * The number of the page to return. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries to return on each page. Valid values: + * + * * 10 + * * 20 + * * 50 + * * 100 + * + * > Although Alibaba Cloud does not limit the maximum value of this parameter, we recommend that you do not set it to an excessively large value. If you set it to an excessively large value, a timeout error may occur. + * + * @example + * 10 + */ + pageSize?: number; + regionId?: string; + /** + * @remarks + * The serial number of the host. + * + * After the CloudMonitor agent is installed on a host, a globally unique serial number is generated. A host that is not provided by Alibaba Cloud has a serial number instead of an instance ID. + * + * > This parameter can be used to accurately search for a monitored host. + * + * @example + * a1ab31a3-1234-40f2-9e95-c8caa8f0**** + */ + serialNumbers?: string; + /** + * @remarks + * The status of the hosts that you want to query. Valid values: + * + * * Running: queries the hosts that are running. + * * Stopped: queries the hosts that are stopped, are not installed, or fail to be installed. + * + * @example + * Running + */ + status?: string; + /** + * @remarks + * The status of SysOM. Valid values: + * + * * installing: SysOM is being installed. + * * running: SysOM is running. + * * stopped: SysOM is stopped. + * * uninstalling: SysOM is being uninstalled. + * + * @example + * running + */ + sysomStatus?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsRequest.js new file mode 100644 index 0000000..4a3b864 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsRequest.js @@ -0,0 +1,78 @@ +"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.DescribeMonitoringAgentHostsRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMonitoringAgentHostsRequest extends $dara.Model { + static names() { + return { + aliyunHost: 'AliyunHost', + hostName: 'HostName', + instanceIds: 'InstanceIds', + instanceRegionId: 'InstanceRegionId', + keyWord: 'KeyWord', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + serialNumbers: 'SerialNumbers', + status: 'Status', + sysomStatus: 'SysomStatus', + }; + } + static types() { + return { + aliyunHost: 'boolean', + hostName: 'string', + instanceIds: 'string', + instanceRegionId: 'string', + keyWord: 'string', + pageNumber: 'number', + pageSize: 'number', + regionId: 'string', + serialNumbers: 'string', + status: 'string', + sysomStatus: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitoringAgentHostsRequest = DescribeMonitoringAgentHostsRequest; +//# sourceMappingURL=DescribeMonitoringAgentHostsRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsRequest.js.map new file mode 100644 index 0000000..6aed1f1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitoringAgentHostsRequest.js","sourceRoot":"","sources":["../../src/models/DescribeMonitoringAgentHostsRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IAwGlE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,WAAW,EAAE,aAAa;YAC1B,gBAAgB,EAAE,kBAAkB;YACpC,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,aAAa,EAAE,eAAe;YAC9B,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,aAAa;SAC3B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,SAAS;YACrB,QAAQ,EAAE,QAAQ;YAClB,WAAW,EAAE,QAAQ;YACrB,gBAAgB,EAAE,QAAQ;YAC1B,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,aAAa,EAAE,QAAQ;YACvB,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,QAAQ;SACtB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/ID,kFA+IC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsResponse.d.ts new file mode 100644 index 0000000..ff8a279 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeMonitoringAgentHostsResponseBody } from "./DescribeMonitoringAgentHostsResponseBody"; +export declare class DescribeMonitoringAgentHostsResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeMonitoringAgentHostsResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsResponse.js new file mode 100644 index 0000000..88dd88d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsResponse.js @@ -0,0 +1,69 @@ +"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.DescribeMonitoringAgentHostsResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeMonitoringAgentHostsResponseBody_1 = require("./DescribeMonitoringAgentHostsResponseBody"); +class DescribeMonitoringAgentHostsResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMonitoringAgentHostsResponseBody_1.DescribeMonitoringAgentHostsResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitoringAgentHostsResponse = DescribeMonitoringAgentHostsResponse; +//# sourceMappingURL=DescribeMonitoringAgentHostsResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsResponse.js.map new file mode 100644 index 0000000..f61ad02 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitoringAgentHostsResponse.js","sourceRoot":"","sources":["../../src/models/DescribeMonitoringAgentHostsResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,yGAAsG;AAGtG,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IAInE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,mFAAwC;SAC/C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,oFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsResponseBody.d.ts new file mode 100644 index 0000000..2ea6279 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsResponseBody.d.ts @@ -0,0 +1,231 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMonitoringAgentHostsResponseBodyHostsHost extends $dara.Model { + /** + * @remarks + * The version of the CloudMonitor agent. + * + * @example + * 3.4.6 + */ + agentVersion?: string; + /** + * @remarks + * The ID of the Alibaba Cloud account. + * + * @example + * 103201326074**** + */ + aliUid?: number; + /** + * @remarks + * The elastic IP address (EIP) of the host. + * + * @example + * 192.168.XX.XX + */ + eipAddress?: string; + /** + * @remarks + * The ID of the EIP. + * + * @example + * eip-bp16i16k9gcezyfrp**** + */ + eipId?: string; + /** + * @remarks + * The name of the host. + * + * @example + * hostIP + */ + hostName?: string; + /** + * @remarks + * The ID of the instance. + * + * @example + * i-a2d5q7pm3f9yr212**** + */ + instanceId?: string; + /** + * @remarks + * The type of the ECS instance. + * + * @example + * ecs.n4 + */ + instanceTypeFamily?: string; + /** + * @remarks + * The IP address of the host. + * + * > Multiple IP addresses are separated with commas (,). + * + * @example + * 192.168.XX.XX + */ + ipGroup?: string; + /** + * @remarks + * The IP address of the Network Address Translation (NAT) gateway. + * + * @example + * 192.168.XX.XX + */ + natIp?: string; + /** + * @remarks + * The network type. + * + * @example + * vpc + */ + networkType?: string; + /** + * @remarks + * The operating system. + * + * @example + * Linux + */ + operatingSystem?: string; + /** + * @remarks + * The ID of the region. + * + * @example + * cn-hangzhou + */ + region?: string; + /** + * @remarks + * The serial number of the host. A host that is not provided by Alibaba Cloud has a serial number instead of an instance ID. + * + * > This parameter can be used to accurately search for a monitored host. + * + * @example + * x12335-6cc8-4a22-9f21-1a00a719**** + */ + serialNumber?: string; + /** + * @remarks + * Indicates whether the host is provided by Alibaba Cloud. Valid values: + * + * * true: The host is provided by Alibaba Cloud. + * * false: The host is not provided by Alibaba Cloud. + * + * @example + * true + */ + isAliyunHost?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitoringAgentHostsResponseBodyHosts extends $dara.Model { + host?: DescribeMonitoringAgentHostsResponseBodyHostsHost[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitoringAgentHostsResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call is successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The information about the hosts. + */ + hosts?: DescribeMonitoringAgentHostsResponseBodyHosts; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The page number of the returned page. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries returned per page. + * + * @example + * 10 + */ + pageSize?: number; + /** + * @remarks + * The total number of returned pages. + * + * @example + * 50 + */ + pageTotal?: number; + /** + * @remarks + * The ID of the request. + * + * @example + * 63EEBB2A-9E51-41E4-9E83-5DE7F3B292E0 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call is successful. Valid values: + * + * * true: The call is successful. + * * false: The call fails. + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The total number of returned entries. + * + * @example + * 10 + */ + total?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsResponseBody.js new file mode 100644 index 0000000..0886577 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsResponseBody.js @@ -0,0 +1,144 @@ +"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.DescribeMonitoringAgentHostsResponseBody = exports.DescribeMonitoringAgentHostsResponseBodyHosts = exports.DescribeMonitoringAgentHostsResponseBodyHostsHost = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMonitoringAgentHostsResponseBodyHostsHost extends $dara.Model { + static names() { + return { + agentVersion: 'AgentVersion', + aliUid: 'AliUid', + eipAddress: 'EipAddress', + eipId: 'EipId', + hostName: 'HostName', + instanceId: 'InstanceId', + instanceTypeFamily: 'InstanceTypeFamily', + ipGroup: 'IpGroup', + natIp: 'NatIp', + networkType: 'NetworkType', + operatingSystem: 'OperatingSystem', + region: 'Region', + serialNumber: 'SerialNumber', + isAliyunHost: 'isAliyunHost', + }; + } + static types() { + return { + agentVersion: 'string', + aliUid: 'number', + eipAddress: 'string', + eipId: 'string', + hostName: 'string', + instanceId: 'string', + instanceTypeFamily: 'string', + ipGroup: 'string', + natIp: 'string', + networkType: 'string', + operatingSystem: 'string', + region: 'string', + serialNumber: 'string', + isAliyunHost: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitoringAgentHostsResponseBodyHostsHost = DescribeMonitoringAgentHostsResponseBodyHostsHost; +class DescribeMonitoringAgentHostsResponseBodyHosts extends $dara.Model { + static names() { + return { + host: 'Host', + }; + } + static types() { + return { + host: { 'type': 'array', 'itemType': DescribeMonitoringAgentHostsResponseBodyHostsHost }, + }; + } + validate() { + if (Array.isArray(this.host)) { + $dara.Model.validateArray(this.host); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitoringAgentHostsResponseBodyHosts = DescribeMonitoringAgentHostsResponseBodyHosts; +class DescribeMonitoringAgentHostsResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + hosts: 'Hosts', + message: 'Message', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + pageTotal: 'PageTotal', + requestId: 'RequestId', + success: 'Success', + total: 'Total', + }; + } + static types() { + return { + code: 'string', + hosts: DescribeMonitoringAgentHostsResponseBodyHosts, + message: 'string', + pageNumber: 'number', + pageSize: 'number', + pageTotal: 'number', + requestId: 'string', + success: 'boolean', + total: 'number', + }; + } + validate() { + if (this.hosts && typeof this.hosts.validate === 'function') { + this.hosts.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitoringAgentHostsResponseBody = DescribeMonitoringAgentHostsResponseBody; +//# sourceMappingURL=DescribeMonitoringAgentHostsResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsResponseBody.js.map new file mode 100644 index 0000000..59208bb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentHostsResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitoringAgentHostsResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeMonitoringAgentHostsResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,iDAAkD,SAAQ,KAAK,CAAC,KAAK;IAwHhF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,cAAc;YAC5B,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,YAAY;YACxB,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,UAAU;YACpB,UAAU,EAAE,YAAY;YACxB,kBAAkB,EAAE,oBAAoB;YACxC,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,aAAa;YAC1B,eAAe,EAAE,iBAAiB;YAClC,MAAM,EAAE,QAAQ;YAChB,YAAY,EAAE,cAAc;YAC5B,YAAY,EAAE,cAAc;SAC7B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,QAAQ;YACtB,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,QAAQ;YACpB,KAAK,EAAE,QAAQ;YACf,QAAQ,EAAE,QAAQ;YAClB,UAAU,EAAE,QAAQ;YACpB,kBAAkB,EAAE,QAAQ;YAC5B,OAAO,EAAE,QAAQ;YACjB,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,QAAQ;YACrB,eAAe,EAAE,QAAQ;YACzB,MAAM,EAAE,QAAQ;YAChB,YAAY,EAAE,QAAQ;YACtB,YAAY,EAAE,SAAS;SACxB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AArKD,8GAqKC;AAED,MAAa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QAAQ,KAAK,UAAU,EAAE,CAAC;YACnE,IAAI,CAAC,KAAa,CAAC,QAAQ,EAAE,CAAC;QACjC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjHD,4FAiHC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesRequest.d.ts new file mode 100644 index 0000000..f13725f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesRequest.d.ts @@ -0,0 +1,24 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMonitoringAgentProcessesRequest extends $dara.Model { + /** + * @remarks + * The ID of the instance. + * + * This parameter is required. + * + * @example + * i-hp3hl3cx1pbahzy8**** + */ + instanceId?: string; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesRequest.js new file mode 100644 index 0000000..8494e1d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesRequest.js @@ -0,0 +1,60 @@ +"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.DescribeMonitoringAgentProcessesRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMonitoringAgentProcessesRequest extends $dara.Model { + static names() { + return { + instanceId: 'InstanceId', + regionId: 'RegionId', + }; + } + static types() { + return { + instanceId: 'string', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitoringAgentProcessesRequest = DescribeMonitoringAgentProcessesRequest; +//# sourceMappingURL=DescribeMonitoringAgentProcessesRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesRequest.js.map new file mode 100644 index 0000000..9e070b2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitoringAgentProcessesRequest.js","sourceRoot":"","sources":["../../src/models/DescribeMonitoringAgentProcessesRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,uCAAwC,SAAQ,KAAK,CAAC,KAAK;IAYtE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,0FAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesResponse.d.ts new file mode 100644 index 0000000..871fd66 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeMonitoringAgentProcessesResponseBody } from "./DescribeMonitoringAgentProcessesResponseBody"; +export declare class DescribeMonitoringAgentProcessesResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeMonitoringAgentProcessesResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesResponse.js new file mode 100644 index 0000000..24846e8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesResponse.js @@ -0,0 +1,69 @@ +"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.DescribeMonitoringAgentProcessesResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeMonitoringAgentProcessesResponseBody_1 = require("./DescribeMonitoringAgentProcessesResponseBody"); +class DescribeMonitoringAgentProcessesResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMonitoringAgentProcessesResponseBody_1.DescribeMonitoringAgentProcessesResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitoringAgentProcessesResponse = DescribeMonitoringAgentProcessesResponse; +//# sourceMappingURL=DescribeMonitoringAgentProcessesResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesResponse.js.map new file mode 100644 index 0000000..c323a2b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitoringAgentProcessesResponse.js","sourceRoot":"","sources":["../../src/models/DescribeMonitoringAgentProcessesResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,iHAA8G;AAG9G,MAAa,wCAAyC,SAAQ,KAAK,CAAC,KAAK;IAIvE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,2FAA4C;SACnD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,4FAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesResponseBody.d.ts new file mode 100644 index 0000000..34480d2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesResponseBody.d.ts @@ -0,0 +1,130 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMonitoringAgentProcessesResponseBodyNodeProcessesNodeProcess extends $dara.Model { + /** + * @remarks + * The command used to obtain the number of processes. Valid value: `number`. + * + * > The `number` command obtains the number of processes that match the condition. + * + * @example + * number + */ + command?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 3619**** + */ + groupId?: string; + /** + * @remarks + * The ID of the instance. + * + * @example + * i-hp3hl3cx1pbahzy8**** + */ + instanceId?: string; + /** + * @remarks + * The ID of the process. + * + * @example + * 234567 + */ + processId?: number; + /** + * @remarks + * The name of the process. + * + * @example + * Nginx + */ + processName?: string; + /** + * @remarks + * The user who launched the process. + * + * @example + * alice + */ + processUser?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitoringAgentProcessesResponseBodyNodeProcesses extends $dara.Model { + nodeProcess?: DescribeMonitoringAgentProcessesResponseBodyNodeProcessesNodeProcess[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitoringAgentProcessesResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The value 200 indicates that the call was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The information about the processes. + */ + nodeProcesses?: DescribeMonitoringAgentProcessesResponseBodyNodeProcesses; + /** + * @remarks + * The request ID. + * + * @example + * C11C0E85-6862-4F25-8D66-D6A5E0882984 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call was successful. Valid values: + * + * * true: The call was successful. + * * false: The call failed. + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesResponseBody.js new file mode 100644 index 0000000..685542f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesResponseBody.js @@ -0,0 +1,120 @@ +"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.DescribeMonitoringAgentProcessesResponseBody = exports.DescribeMonitoringAgentProcessesResponseBodyNodeProcesses = exports.DescribeMonitoringAgentProcessesResponseBodyNodeProcessesNodeProcess = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMonitoringAgentProcessesResponseBodyNodeProcessesNodeProcess extends $dara.Model { + static names() { + return { + command: 'Command', + groupId: 'GroupId', + instanceId: 'InstanceId', + processId: 'ProcessId', + processName: 'ProcessName', + processUser: 'ProcessUser', + }; + } + static types() { + return { + command: 'string', + groupId: 'string', + instanceId: 'string', + processId: 'number', + processName: 'string', + processUser: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitoringAgentProcessesResponseBodyNodeProcessesNodeProcess = DescribeMonitoringAgentProcessesResponseBodyNodeProcessesNodeProcess; +class DescribeMonitoringAgentProcessesResponseBodyNodeProcesses extends $dara.Model { + static names() { + return { + nodeProcess: 'NodeProcess', + }; + } + static types() { + return { + nodeProcess: { 'type': 'array', 'itemType': DescribeMonitoringAgentProcessesResponseBodyNodeProcessesNodeProcess }, + }; + } + validate() { + if (Array.isArray(this.nodeProcess)) { + $dara.Model.validateArray(this.nodeProcess); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitoringAgentProcessesResponseBodyNodeProcesses = DescribeMonitoringAgentProcessesResponseBodyNodeProcesses; +class DescribeMonitoringAgentProcessesResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + nodeProcesses: 'NodeProcesses', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + nodeProcesses: DescribeMonitoringAgentProcessesResponseBodyNodeProcesses, + requestId: 'string', + success: 'boolean', + }; + } + validate() { + if (this.nodeProcesses && typeof this.nodeProcesses.validate === 'function') { + this.nodeProcesses.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitoringAgentProcessesResponseBody = DescribeMonitoringAgentProcessesResponseBody; +//# sourceMappingURL=DescribeMonitoringAgentProcessesResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesResponseBody.js.map new file mode 100644 index 0000000..5b1a3a6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentProcessesResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitoringAgentProcessesResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeMonitoringAgentProcessesResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oEAAqE,SAAQ,KAAK,CAAC,KAAK;IAmDnG,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,aAAa;SAC3B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;YACnB,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,QAAQ;SACtB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAhFD,oJAgFC;AAED,MAAa,yDAA0D,SAAQ,KAAK,CAAC,KAAK;IAExF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;SAC3B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,oEAAoE,EAAE;SACnH,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;YACnC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC9C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxBD,8HAwBC;AAED,MAAa,4CAA6C,SAAQ,KAAK,CAAC,KAAK;IA2C3E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,aAAa,EAAE,eAAe;YAC9B,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,aAAa,EAAE,yDAAyD;YACxE,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,aAAa,IAAI,OAAQ,IAAI,CAAC,aAAqB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACnF,IAAI,CAAC,aAAqB,CAAC,QAAQ,EAAE,CAAC;QACzC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,oGAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesRequest.d.ts new file mode 100644 index 0000000..edce8ac --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesRequest.d.ts @@ -0,0 +1,30 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMonitoringAgentStatusesRequest extends $dara.Model { + /** + * @remarks + * The ID of the availability monitoring task. + * + * @example + * 126**** + */ + hostAvailabilityTaskId?: string; + /** + * @remarks + * The instance IDs. Separate multiple instance IDs with commas (,). + * + * @example + * i-hp3dunahluwajv6f**** + */ + instanceIds?: string; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesRequest.js new file mode 100644 index 0000000..babf8b2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesRequest.js @@ -0,0 +1,62 @@ +"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.DescribeMonitoringAgentStatusesRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMonitoringAgentStatusesRequest extends $dara.Model { + static names() { + return { + hostAvailabilityTaskId: 'HostAvailabilityTaskId', + instanceIds: 'InstanceIds', + regionId: 'RegionId', + }; + } + static types() { + return { + hostAvailabilityTaskId: 'string', + instanceIds: 'string', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitoringAgentStatusesRequest = DescribeMonitoringAgentStatusesRequest; +//# sourceMappingURL=DescribeMonitoringAgentStatusesRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesRequest.js.map new file mode 100644 index 0000000..254035a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitoringAgentStatusesRequest.js","sourceRoot":"","sources":["../../src/models/DescribeMonitoringAgentStatusesRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,sCAAuC,SAAQ,KAAK,CAAC,KAAK;IAkBrE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,sBAAsB,EAAE,wBAAwB;YAChD,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,sBAAsB,EAAE,QAAQ;YAChC,WAAW,EAAE,QAAQ;YACrB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzCD,wFAyCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesResponse.d.ts new file mode 100644 index 0000000..608537d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeMonitoringAgentStatusesResponseBody } from "./DescribeMonitoringAgentStatusesResponseBody"; +export declare class DescribeMonitoringAgentStatusesResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeMonitoringAgentStatusesResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesResponse.js new file mode 100644 index 0000000..8773af3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesResponse.js @@ -0,0 +1,69 @@ +"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.DescribeMonitoringAgentStatusesResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeMonitoringAgentStatusesResponseBody_1 = require("./DescribeMonitoringAgentStatusesResponseBody"); +class DescribeMonitoringAgentStatusesResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMonitoringAgentStatusesResponseBody_1.DescribeMonitoringAgentStatusesResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitoringAgentStatusesResponse = DescribeMonitoringAgentStatusesResponse; +//# sourceMappingURL=DescribeMonitoringAgentStatusesResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesResponse.js.map new file mode 100644 index 0000000..50f52c3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitoringAgentStatusesResponse.js","sourceRoot":"","sources":["../../src/models/DescribeMonitoringAgentStatusesResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,+GAA4G;AAG5G,MAAa,uCAAwC,SAAQ,KAAK,CAAC,KAAK;IAItE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,yFAA2C;SAClD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,0FAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesResponseBody.d.ts new file mode 100644 index 0000000..9e07f82 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesResponseBody.d.ts @@ -0,0 +1,189 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMonitoringAgentStatusesResponseBodyNodeStatusListNodeStatus extends $dara.Model { + /** + * @remarks + * The error code returned when the CloudMonitor agent is installed. Valid values: + * + * * Common.Timeout: The installation timed out. + * * Common.SLR: The service-linked role for CloudMonitor is unauthorized. + * * Common.OS: The operating system is not supported. + * * Assist.Invalid: Cloud Assistant is not running. + * * Assist.Invoke: An error occurred when the installation program is started. + * * Assist.Execute: An error occurred when the installation program is running. + */ + agentInstallErrorCode?: string; + /** + * @remarks + * Indicates whether the CloudMonitor agent is automatically installed. Valid values: + * + * * true: The CloudMonitor agent is automatically installed. + * * false: The CloudMonitor agent is not automatically installed. + * + * @example + * true + */ + autoInstall?: boolean; + /** + * @remarks + * The instance ID. + * + * @example + * i-hp3dunahluwajv6f**** + */ + instanceId?: string; + loongCollectorStatus?: string; + loongCollectorVersion?: string; + /** + * @remarks + * Indicates whether the SysAK monitoring feature is enabled.`` Valid values: + * + * * `true`: The SysAK monitoring feature is enabled. + * * `false`: the SysAK monitoring feature is disabled. + * + * @example + * {"sysak":true} + */ + osMonitorConfig?: string; + /** + * @remarks + * The error status of SysOM. Valid values: + * + * * `install_fail`: SysOM fails to be installed or an unknown error occurs. + * * `install_assist_invalid`: SysOM fails to be installed because the status of Cloud Assistant is invalid. + * * `install_assist_command_fail`: SysOM fails to be installed because the installation command fails to run. + * * `uninstall_fail`: SysOM fails to be uninstalled or an unknown error occurs. + * * `uninstall_assist_invalid`: SysOM fails to be uninstalled because the status of Cloud Assistant is invalid. + * * `uninstall_assist_command_fail`: SysOM fails to be uninstalled because the uninstallation command fails to run. + * + * @example + * install_fail + */ + osMonitorErrorCode?: string; + /** + * @remarks + * The details of the execution error. Valid values: + * + * * `Command.ErrorCode.Fail.Downlaod.REGIN_ID`: Failed to obtain the region ID. + * * `Command.ErrorCode.Fail.Downlaod.SYSAK`: Failed to download the .rpm package of System Analyse Kit (SysAK). + * * `Command.ErrorCode.Fail.Downlaod.CMON_FILE`: Failed to download the CMON file. + * * `Command.ErrorCode.Fail.Downlaod.BTF`: Failed to start SysAK because the BTF file is not found. + * * `Command.ErrorCode.Fail.Start.SYSAK`: Failed to start SysAK due to an unknown error. + * + * @example + * Command.ErrorCode.Fail.Downlaod.REGIN_ID + */ + osMonitorErrorDetail?: string; + /** + * @remarks + * The status of SysOM. Valid values: + * + * * installing: SysOM is being installed. + * * running: SysOM is running. + * * stopped: SysOM is stopped. + * * uninstalling: SysOM is being uninstalled. + * + * @example + * running + */ + osMonitorStatus?: string; + /** + * @remarks + * The SysOM version. + * + * @example + * 1.3.0-12 + */ + osMonitorVersion?: string; + /** + * @remarks + * The status of the CloudMonitor agent. Valid values: + * + * * running: The CloudMonitor agent is running. + * * stopped: The CloudMonitor agent is stopped. + * * installing: The CloudMonitor agent is being installed. + * * install_faild: The CloudMonitor agent fails to be installed. + * * abnormal: The CloudMonitor agent is not properly installed. + * * not_installed: The CloudMonitor agent is not installed. + * + * @example + * running + */ + status?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitoringAgentStatusesResponseBodyNodeStatusList extends $dara.Model { + nodeStatus?: DescribeMonitoringAgentStatusesResponseBodyNodeStatusListNodeStatus[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeMonitoringAgentStatusesResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The host status information. + */ + nodeStatusList?: DescribeMonitoringAgentStatusesResponseBodyNodeStatusList; + /** + * @remarks + * The request ID. + * + * @example + * 6F8371DF-AB81-41B8-9E1B-5493B3FF0E4F + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesResponseBody.js new file mode 100644 index 0000000..cca73d5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesResponseBody.js @@ -0,0 +1,130 @@ +"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.DescribeMonitoringAgentStatusesResponseBody = exports.DescribeMonitoringAgentStatusesResponseBodyNodeStatusList = exports.DescribeMonitoringAgentStatusesResponseBodyNodeStatusListNodeStatus = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMonitoringAgentStatusesResponseBodyNodeStatusListNodeStatus extends $dara.Model { + static names() { + return { + agentInstallErrorCode: 'AgentInstallErrorCode', + autoInstall: 'AutoInstall', + instanceId: 'InstanceId', + loongCollectorStatus: 'LoongCollectorStatus', + loongCollectorVersion: 'LoongCollectorVersion', + osMonitorConfig: 'OsMonitorConfig', + osMonitorErrorCode: 'OsMonitorErrorCode', + osMonitorErrorDetail: 'OsMonitorErrorDetail', + osMonitorStatus: 'OsMonitorStatus', + osMonitorVersion: 'OsMonitorVersion', + status: 'Status', + }; + } + static types() { + return { + agentInstallErrorCode: 'string', + autoInstall: 'boolean', + instanceId: 'string', + loongCollectorStatus: 'string', + loongCollectorVersion: 'string', + osMonitorConfig: 'string', + osMonitorErrorCode: 'string', + osMonitorErrorDetail: 'string', + osMonitorStatus: 'string', + osMonitorVersion: 'string', + status: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitoringAgentStatusesResponseBodyNodeStatusListNodeStatus = DescribeMonitoringAgentStatusesResponseBodyNodeStatusListNodeStatus; +class DescribeMonitoringAgentStatusesResponseBodyNodeStatusList extends $dara.Model { + static names() { + return { + nodeStatus: 'NodeStatus', + }; + } + static types() { + return { + nodeStatus: { 'type': 'array', 'itemType': DescribeMonitoringAgentStatusesResponseBodyNodeStatusListNodeStatus }, + }; + } + validate() { + if (Array.isArray(this.nodeStatus)) { + $dara.Model.validateArray(this.nodeStatus); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitoringAgentStatusesResponseBodyNodeStatusList = DescribeMonitoringAgentStatusesResponseBodyNodeStatusList; +class DescribeMonitoringAgentStatusesResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + nodeStatusList: 'NodeStatusList', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + nodeStatusList: DescribeMonitoringAgentStatusesResponseBodyNodeStatusList, + requestId: 'string', + success: 'boolean', + }; + } + validate() { + if (this.nodeStatusList && typeof this.nodeStatusList.validate === 'function') { + this.nodeStatusList.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitoringAgentStatusesResponseBody = DescribeMonitoringAgentStatusesResponseBody; +//# sourceMappingURL=DescribeMonitoringAgentStatusesResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesResponseBody.js.map new file mode 100644 index 0000000..28be789 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringAgentStatusesResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitoringAgentStatusesResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeMonitoringAgentStatusesResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mEAAoE,SAAQ,KAAK,CAAC,KAAK;IA8GlG,MAAM,CAAC,KAAK;QACV,OAAO;YACL,qBAAqB,EAAE,uBAAuB;YAC9C,WAAW,EAAE,aAAa;YAC1B,UAAU,EAAE,YAAY;YACxB,oBAAoB,EAAE,sBAAsB;YAC5C,qBAAqB,EAAE,uBAAuB;YAC9C,eAAe,EAAE,iBAAiB;YAClC,kBAAkB,EAAE,oBAAoB;YACxC,oBAAoB,EAAE,sBAAsB;YAC5C,eAAe,EAAE,iBAAiB;YAClC,gBAAgB,EAAE,kBAAkB;YACpC,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,qBAAqB,EAAE,QAAQ;YAC/B,WAAW,EAAE,SAAS;YACtB,UAAU,EAAE,QAAQ;YACpB,oBAAoB,EAAE,QAAQ;YAC9B,q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,EAAE,yDAAyD;YACzE,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,cAAc,IAAI,OAAQ,IAAI,CAAC,cAAsB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACrF,IAAI,CAAC,cAAsB,CAAC,QAAQ,EAAE,CAAC;QAC1C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,kGAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigRequest.d.ts new file mode 100644 index 0000000..6c20621 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigRequest.d.ts @@ -0,0 +1,14 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMonitoringConfigRequest extends $dara.Model { + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigRequest.js new file mode 100644 index 0000000..1b9a5b3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigRequest.js @@ -0,0 +1,58 @@ +"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.DescribeMonitoringConfigRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMonitoringConfigRequest extends $dara.Model { + static names() { + return { + regionId: 'RegionId', + }; + } + static types() { + return { + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitoringConfigRequest = DescribeMonitoringConfigRequest; +//# sourceMappingURL=DescribeMonitoringConfigRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigRequest.js.map new file mode 100644 index 0000000..80594b5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitoringConfigRequest.js","sourceRoot":"","sources":["../../src/models/DescribeMonitoringConfigRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAE9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AArBD,0EAqBC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigResponse.d.ts new file mode 100644 index 0000000..cf44a12 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeMonitoringConfigResponseBody } from "./DescribeMonitoringConfigResponseBody"; +export declare class DescribeMonitoringConfigResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeMonitoringConfigResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigResponse.js new file mode 100644 index 0000000..616fd1d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigResponse.js @@ -0,0 +1,69 @@ +"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.DescribeMonitoringConfigResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeMonitoringConfigResponseBody_1 = require("./DescribeMonitoringConfigResponseBody"); +class DescribeMonitoringConfigResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMonitoringConfigResponseBody_1.DescribeMonitoringConfigResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitoringConfigResponse = DescribeMonitoringConfigResponse; +//# sourceMappingURL=DescribeMonitoringConfigResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigResponse.js.map new file mode 100644 index 0000000..9b8c383 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitoringConfigResponse.js","sourceRoot":"","sources":["../../src/models/DescribeMonitoringConfigResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,iGAA8F;AAG9F,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAI/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,2EAAoC;SAC3C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,4EAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigResponseBody.d.ts new file mode 100644 index 0000000..6b07beb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigResponseBody.d.ts @@ -0,0 +1,72 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeMonitoringConfigResponseBody extends $dara.Model { + /** + * @remarks + * Indicates whether the CloudMonitor agent is automatically installed on existing Elastic Compute Service (ECS) instances. Valid values: + * + * * true + * * false + * + * @example + * false + */ + autoInstall?: boolean; + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * Indicates whether the CloudMonitor agent is automatically installed on new ECS instances. Valid values: Valid values: + * + * * true + * * false + * + * @example + * true + */ + enableInstallAgentNewECS?: boolean; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * F35654DB-0C9D-4FB3-903F-479BA7663061 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigResponseBody.js new file mode 100644 index 0000000..a5d4e5b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigResponseBody.js @@ -0,0 +1,68 @@ +"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.DescribeMonitoringConfigResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeMonitoringConfigResponseBody extends $dara.Model { + static names() { + return { + autoInstall: 'AutoInstall', + code: 'Code', + enableInstallAgentNewECS: 'EnableInstallAgentNewECS', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + autoInstall: 'boolean', + code: 'string', + enableInstallAgentNewECS: 'boolean', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeMonitoringConfigResponseBody = DescribeMonitoringConfigResponseBody; +//# sourceMappingURL=DescribeMonitoringConfigResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigResponseBody.js.map new file mode 100644 index 0000000..37fcb70 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMonitoringConfigResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeMonitoringConfigResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeMonitoringConfigResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IA4DnE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;YAC1B,IAAI,EAAE,MAAM;YACZ,wBAAwB,EAAE,0BAA0B;YACpD,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,SAAS;YACtB,IAAI,EAAE,QAAQ;YACd,wBAAwB,EAAE,SAAS;YACnC,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzFD,oFAyFC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListRequest.d.ts new file mode 100644 index 0000000..d15e990 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListRequest.d.ts @@ -0,0 +1,22 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeProductResourceTagKeyListRequest extends $dara.Model { + /** + * @remarks + * The pagination token. + * + * @example + * dbc2826f237e**** + */ + nextToken?: string; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListRequest.js new file mode 100644 index 0000000..7388fdc --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListRequest.js @@ -0,0 +1,60 @@ +"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.DescribeProductResourceTagKeyListRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeProductResourceTagKeyListRequest extends $dara.Model { + static names() { + return { + nextToken: 'NextToken', + regionId: 'RegionId', + }; + } + static types() { + return { + nextToken: 'string', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeProductResourceTagKeyListRequest = DescribeProductResourceTagKeyListRequest; +//# sourceMappingURL=DescribeProductResourceTagKeyListRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListRequest.js.map new file mode 100644 index 0000000..841ef40 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeProductResourceTagKeyListRequest.js","sourceRoot":"","sources":["../../src/models/DescribeProductResourceTagKeyListRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wCAAyC,SAAQ,KAAK,CAAC,KAAK;IAUvE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;YACtB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,QAAQ;YACnB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/BD,4FA+BC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListResponse.d.ts new file mode 100644 index 0000000..bcabdb5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeProductResourceTagKeyListResponseBody } from "./DescribeProductResourceTagKeyListResponseBody"; +export declare class DescribeProductResourceTagKeyListResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeProductResourceTagKeyListResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListResponse.js new file mode 100644 index 0000000..04ce04d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListResponse.js @@ -0,0 +1,69 @@ +"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.DescribeProductResourceTagKeyListResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeProductResourceTagKeyListResponseBody_1 = require("./DescribeProductResourceTagKeyListResponseBody"); +class DescribeProductResourceTagKeyListResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeProductResourceTagKeyListResponseBody_1.DescribeProductResourceTagKeyListResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeProductResourceTagKeyListResponse = DescribeProductResourceTagKeyListResponse; +//# sourceMappingURL=DescribeProductResourceTagKeyListResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListResponse.js.map new file mode 100644 index 0000000..4c5ed37 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeProductResourceTagKeyListResponse.js","sourceRoot":"","sources":["../../src/models/DescribeProductResourceTagKeyListResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,mHAAgH;AAGhH,MAAa,yCAA0C,SAAQ,KAAK,CAAC,KAAK;IAIxE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,6FAA6C;SACpD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,8FAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListResponseBody.d.ts new file mode 100644 index 0000000..d2dc5de --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListResponseBody.d.ts @@ -0,0 +1,71 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeProductResourceTagKeyListResponseBodyTagKeys extends $dara.Model { + tagKey?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeProductResourceTagKeyListResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The request processing has failed due to some unknown error. + */ + message?: string; + /** + * @remarks + * The pagination token. If more entries are to be returned on the next page, a pagination token is returned. + * + * > If the value of this parameter is not null, more entries are to be returned on the next page. You can use the returned pagination token as a request parameter to retrieve a new page of results. If the value of this parameter is null, all the entries have been returned. + * + * @example + * dbc2826f237e**** + */ + nextToken?: string; + /** + * @remarks + * The request ID. + * + * @example + * 945ACAA9-89F2-4A62-8913-076FDEDAA8DB + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: true and false. + * + * @example + * true + */ + success?: boolean; + tagKeys?: DescribeProductResourceTagKeyListResponseBodyTagKeys; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListResponseBody.js new file mode 100644 index 0000000..f17c2cd --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListResponseBody.js @@ -0,0 +1,93 @@ +"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.DescribeProductResourceTagKeyListResponseBody = exports.DescribeProductResourceTagKeyListResponseBodyTagKeys = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeProductResourceTagKeyListResponseBodyTagKeys extends $dara.Model { + static names() { + return { + tagKey: 'TagKey', + }; + } + static types() { + return { + tagKey: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.tagKey)) { + $dara.Model.validateArray(this.tagKey); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeProductResourceTagKeyListResponseBodyTagKeys = DescribeProductResourceTagKeyListResponseBodyTagKeys; +class DescribeProductResourceTagKeyListResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + nextToken: 'NextToken', + requestId: 'RequestId', + success: 'Success', + tagKeys: 'TagKeys', + }; + } + static types() { + return { + code: 'string', + message: 'string', + nextToken: 'string', + requestId: 'string', + success: 'boolean', + tagKeys: DescribeProductResourceTagKeyListResponseBodyTagKeys, + }; + } + validate() { + if (this.tagKeys && typeof this.tagKeys.validate === 'function') { + this.tagKeys.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeProductResourceTagKeyListResponseBody = DescribeProductResourceTagKeyListResponseBody; +//# sourceMappingURL=DescribeProductResourceTagKeyListResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListResponseBody.js.map new file mode 100644 index 0000000..7b8ec47 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductResourceTagKeyListResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeProductResourceTagKeyListResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeProductResourceTagKeyListResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oDAAqD,SAAQ,KAAK,CAAC,KAAK;IAEnF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;SAClD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;YAC9B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACzC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxBD,oHAwBC;AAED,MAAa,6CAA8C,SAAQ,KAAK,CAAC,KAAK;IA8C5E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,oDAAoD;SAC9D,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,IAAI,OAAQ,IAAI,CAAC,OAAe,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACvE,IAAI,CAAC,OAAe,CAAC,QAAQ,EAAE,CAAC;QACnC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA9ED,sGA8EC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleRequest.d.ts new file mode 100644 index 0000000..d24a6d5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleRequest.d.ts @@ -0,0 +1,14 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeProductsOfActiveMetricRuleRequest extends $dara.Model { + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleRequest.js new file mode 100644 index 0000000..a9a994d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleRequest.js @@ -0,0 +1,58 @@ +"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.DescribeProductsOfActiveMetricRuleRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeProductsOfActiveMetricRuleRequest extends $dara.Model { + static names() { + return { + regionId: 'RegionId', + }; + } + static types() { + return { + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeProductsOfActiveMetricRuleRequest = DescribeProductsOfActiveMetricRuleRequest; +//# sourceMappingURL=DescribeProductsOfActiveMetricRuleRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleRequest.js.map new file mode 100644 index 0000000..7e05b3a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeProductsOfActiveMetricRuleRequest.js","sourceRoot":"","sources":["../../src/models/DescribeProductsOfActiveMetricRuleRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yCAA0C,SAAQ,KAAK,CAAC,KAAK;IAExE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AArBD,8FAqBC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleResponse.d.ts new file mode 100644 index 0000000..1b98928 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeProductsOfActiveMetricRuleResponseBody } from "./DescribeProductsOfActiveMetricRuleResponseBody"; +export declare class DescribeProductsOfActiveMetricRuleResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeProductsOfActiveMetricRuleResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleResponse.js new file mode 100644 index 0000000..bcdb456 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleResponse.js @@ -0,0 +1,69 @@ +"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.DescribeProductsOfActiveMetricRuleResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeProductsOfActiveMetricRuleResponseBody_1 = require("./DescribeProductsOfActiveMetricRuleResponseBody"); +class DescribeProductsOfActiveMetricRuleResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeProductsOfActiveMetricRuleResponseBody_1.DescribeProductsOfActiveMetricRuleResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeProductsOfActiveMetricRuleResponse = DescribeProductsOfActiveMetricRuleResponse; +//# sourceMappingURL=DescribeProductsOfActiveMetricRuleResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleResponse.js.map new file mode 100644 index 0000000..ea89fdb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeProductsOfActiveMetricRuleResponse.js","sourceRoot":"","sources":["../../src/models/DescribeProductsOfActiveMetricRuleResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,qHAAkH;AAGlH,MAAa,0CAA2C,SAAQ,KAAK,CAAC,KAAK;IAIzE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,+FAA8C;SACrD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,gGAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleResponseBody.d.ts new file mode 100644 index 0000000..0a2017e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleResponseBody.d.ts @@ -0,0 +1,252 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold for Warn-level alerts. + * + * Valid values: + * + * * LessThanThreshold: less than the threshold + * + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * + * * NotEqualToThreshold: does not equal to the threshold + * + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * + * * LessThanYesterday: less than the metric value at the same time yesterday + * + * * LessThanLastWeek: less than the metric value at the same time last week + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * + * * GreaterThanThreshold: greater than the threshold + * + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before an alert is triggered. + * + * @example + * 3 + */ + evaluationCount?: string; + /** + * @remarks + * The alert level. + * + * Valid values: + * + * * INFO + * + * + * + * + * + * + * + * * WARN + * + * + * + * + * + * + * + * * CRITICAL + * + * + * + * + * + * + * + * @example + * CRITICAL + */ + level?: string; + /** + * @remarks + * The metric name. For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The namespace of the service. For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * acs_rds_dashboard + */ + namespace?: string; + /** + * @remarks + * The aggregation period of monitoring data. Unit: minutes. For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * 1m + */ + period?: string; + /** + * @remarks + * The method used to calculate metric values that trigger alerts. For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The alert threshold. + * + * @example + * 90 + */ + threshold?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigList extends $dara.Model { + alertInitConfig?: DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRule extends $dara.Model { + /** + * @remarks + * The initial alert rules that are generated after one-click alert is enabled for a service. + */ + alertInitConfigList?: DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigList; + /** + * @remarks + * The abbreviation of the service name. + * + * @example + * ecs + */ + product?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleList extends $dara.Model { + allProductInitMetricRule?: DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRule[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeProductsOfActiveMetricRuleResponseBody extends $dara.Model { + /** + * @remarks + * The information about the services for which one-click alert is enabled. + */ + allProductInitMetricRuleList?: DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleList; + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The information about the services for which the initiative alert feature is enabled. Services are separated with commas (,). Valid values: + * + * * ECS: Elastic Compute Service (ECS) + * * rds: ApsaraDB RDS + * * slb: Server Load Balancer (SLB) + * * redis_standard: Redis Open-Source Edition (standard architecture) + * * redis_sharding: Redis Open-Source Edition (cluster architecture) + * * redis_splitrw: Redis Open-Source Edition (read/write splitting architecture) + * * mongodb: ApsaraDB for MongoDB of the replica set architecture + * * mongodb_sharding: ApsaraDB for MongoDB of the sharded cluster architecture + * * hbase: ApsaraDB for HBase + * * elasticsearch: Elasticsearch + * * opensearch: OpenSearch + * + * @example + * ecs,rds + */ + datapoints?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * F82E6667-7811-4BA0-842F-5B2DC42BBAAD + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true: The request was successful. + * * false: The request failed. + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleResponseBody.js new file mode 100644 index 0000000..cb95a69 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleResponseBody.js @@ -0,0 +1,172 @@ +"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.DescribeProductsOfActiveMetricRuleResponseBody = exports.DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleList = exports.DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRule = exports.DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigList = exports.DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig extends $dara.Model { + static names() { + return { + comparisonOperator: 'ComparisonOperator', + evaluationCount: 'EvaluationCount', + level: 'Level', + metricName: 'MetricName', + namespace: 'Namespace', + period: 'Period', + statistics: 'Statistics', + threshold: 'Threshold', + }; + } + static types() { + return { + comparisonOperator: 'string', + evaluationCount: 'string', + level: 'string', + metricName: 'string', + namespace: 'string', + period: 'string', + statistics: 'string', + threshold: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig = DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig; +class DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigList extends $dara.Model { + static names() { + return { + alertInitConfig: 'AlertInitConfig', + }; + } + static types() { + return { + alertInitConfig: { 'type': 'array', 'itemType': DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig }, + }; + } + validate() { + if (Array.isArray(this.alertInitConfig)) { + $dara.Model.validateArray(this.alertInitConfig); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigList = DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigList; +class DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRule extends $dara.Model { + static names() { + return { + alertInitConfigList: 'AlertInitConfigList', + product: 'Product', + }; + } + static types() { + return { + alertInitConfigList: DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigList, + product: 'string', + }; + } + validate() { + if (this.alertInitConfigList && typeof this.alertInitConfigList.validate === 'function') { + this.alertInitConfigList.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRule = DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRule; +class DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleList extends $dara.Model { + static names() { + return { + allProductInitMetricRule: 'AllProductInitMetricRule', + }; + } + static types() { + return { + allProductInitMetricRule: { 'type': 'array', 'itemType': DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRule }, + }; + } + validate() { + if (Array.isArray(this.allProductInitMetricRule)) { + $dara.Model.validateArray(this.allProductInitMetricRule); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleList = DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleList; +class DescribeProductsOfActiveMetricRuleResponseBody extends $dara.Model { + static names() { + return { + allProductInitMetricRuleList: 'AllProductInitMetricRuleList', + code: 'Code', + datapoints: 'Datapoints', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + allProductInitMetricRuleList: DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleList, + code: 'number', + datapoints: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + if (this.allProductInitMetricRuleList && typeof this.allProductInitMetricRuleList.validate === 'function') { + this.allProductInitMetricRuleList.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeProductsOfActiveMetricRuleResponseBody = DescribeProductsOfActiveMetricRuleResponseBody; +//# sourceMappingURL=DescribeProductsOfActiveMetricRuleResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleResponseBody.js.map new file mode 100644 index 0000000..603fef0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProductsOfActiveMetricRuleResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeProductsOfActiveMetricRuleResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeProductsOfActiveMetricRuleResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oIAAqI,SAAQ,KAAK,CAAC,KAAK;IAmHnK,MAAM,CAAC,KAAK;QACV,OAAO;YACL,kBAAkB,EAAE,oBAAoB;YACxC,eAAe,EAAE,iBAAiB;YAClC,KAAK,EAAE,OAAO;YACd,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,YAAY;YACxB,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AA4B,EAAE,0EAA0E;YACxG,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,QAAQ;YACpB,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,4BAA4B,IAAI,OAAQ,IAAI,CAAC,4BAAoC,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjH,IAAI,CAAC,4BAAoC,CAAC,QAAQ,EAAE,CAAC;QACxD,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/FD,wGA+FC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaRequest.d.ts new file mode 100644 index 0000000..4466850 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaRequest.d.ts @@ -0,0 +1,51 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeProjectMetaRequest extends $dara.Model { + /** + * @remarks + * The tags. Tags are used to filter services. + * + * You can filter services only by the tag whose `name` is `product`. Example: {"name":"product","value":"ECS"}. + * + * > We recommend that you do not use the special tags in the CloudMonitor console. + * + * @example + * [{"name":"product","value":"ECS"}] + */ + labels?: string; + /** + * @remarks + * The page number. + * + * Valid values: 1 to 100. + * + * Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * Valid values: 1 to 10000. + * + * Default value: 30. + * + * > The value of this parameter is not limited. You can view a large number of entries per page. + * + * @example + * 30 + */ + pageSize?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaRequest.js new file mode 100644 index 0000000..c392e2b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaRequest.js @@ -0,0 +1,62 @@ +"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.DescribeProjectMetaRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeProjectMetaRequest extends $dara.Model { + static names() { + return { + labels: 'Labels', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + }; + } + static types() { + return { + labels: 'string', + pageNumber: 'number', + pageSize: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeProjectMetaRequest = DescribeProjectMetaRequest; +//# sourceMappingURL=DescribeProjectMetaRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaRequest.js.map new file mode 100644 index 0000000..2d402eb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeProjectMetaRequest.js","sourceRoot":"","sources":["../../src/models/DescribeProjectMetaRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IAuCzD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA9DD,gEA8DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaResponse.d.ts new file mode 100644 index 0000000..284d5cd --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeProjectMetaResponseBody } from "./DescribeProjectMetaResponseBody"; +export declare class DescribeProjectMetaResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeProjectMetaResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaResponse.js new file mode 100644 index 0000000..a9991e1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaResponse.js @@ -0,0 +1,69 @@ +"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.DescribeProjectMetaResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeProjectMetaResponseBody_1 = require("./DescribeProjectMetaResponseBody"); +class DescribeProjectMetaResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeProjectMetaResponseBody_1.DescribeProjectMetaResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeProjectMetaResponse = DescribeProjectMetaResponse; +//# sourceMappingURL=DescribeProjectMetaResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaResponse.js.map new file mode 100644 index 0000000..c3ba878 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeProjectMetaResponse.js","sourceRoot":"","sources":["../../src/models/DescribeProjectMetaResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,uFAAoF;AAGpF,MAAa,2BAA4B,SAAQ,KAAK,CAAC,KAAK;IAI1D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,iEAA+B;SACtC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,kEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaResponseBody.d.ts new file mode 100644 index 0000000..16bc969 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaResponseBody.d.ts @@ -0,0 +1,132 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeProjectMetaResponseBodyResourcesResource extends $dara.Model { + /** + * @remarks + * The description. + * + * @example + * CDN + */ + description?: string; + /** + * @remarks + * The tags. Tags are used to filter services. + * + * Tags are returned in the following format: `[{"name":"Tag key","value":"Tag value"}, {"name":"Tag key","value":"Tag value"}]`. The following tags are commonly used: + * + * * alertUnit: the unit of the metric value in alerts. If the unit is small, the original metric value may be too large. In this case, you can use the `alertUnit` tag to specify an appropriate unit. This tag is used in CloudMonitor. + * * minAlertPeriod: the minimum time interval to report a new alert. The interval at which monitoring data is reported. The value is usually 1 minute. + * * metricCategory: the service specification. Example: kvstore_sharding. Some Alibaba Cloud services have multiple specifications that are defined in the same namespace. This parameter is used to identify the specifications. + * * is_alarm: indicates whether an alert rule can be configured. We recommend that you do not use the special tags in the CloudMonitor console. + * + * @example + * [{"groupFlag":true}] + */ + labels?: string; + /** + * @remarks + * The namespace of the cloud service. Format: `acs_Service name abbreviation`. For more information about namespaces, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * acs_cdn + */ + namespace?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeProjectMetaResponseBodyResources extends $dara.Model { + resource?: DescribeProjectMetaResponseBodyResourcesResource[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeProjectMetaResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The page number. + * + * @example + * 1 + */ + pageNumber?: string; + /** + * @remarks + * The number of entries per page. + * + * @example + * 5 + */ + pageSize?: string; + /** + * @remarks + * The request ID. + * + * @example + * 4C2061B2-3B1B-43BF-A4A4-C53426F479C0 + */ + requestId?: string; + /** + * @remarks + * The details of the cloud service. + */ + resources?: DescribeProjectMetaResponseBodyResources; + /** + * @remarks + * Indicates whether the request was successful. Valid values: true: The request was successful. false: The request failed. + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The total number of entries returned. + * + * @example + * 12 + */ + total?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaResponseBody.js new file mode 100644 index 0000000..475ef75 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaResponseBody.js @@ -0,0 +1,120 @@ +"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.DescribeProjectMetaResponseBody = exports.DescribeProjectMetaResponseBodyResources = exports.DescribeProjectMetaResponseBodyResourcesResource = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeProjectMetaResponseBodyResourcesResource extends $dara.Model { + static names() { + return { + description: 'Description', + labels: 'Labels', + namespace: 'Namespace', + }; + } + static types() { + return { + description: 'string', + labels: 'string', + namespace: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeProjectMetaResponseBodyResourcesResource = DescribeProjectMetaResponseBodyResourcesResource; +class DescribeProjectMetaResponseBodyResources extends $dara.Model { + static names() { + return { + resource: 'Resource', + }; + } + static types() { + return { + resource: { 'type': 'array', 'itemType': DescribeProjectMetaResponseBodyResourcesResource }, + }; + } + validate() { + if (Array.isArray(this.resource)) { + $dara.Model.validateArray(this.resource); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeProjectMetaResponseBodyResources = DescribeProjectMetaResponseBodyResources; +class DescribeProjectMetaResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + requestId: 'RequestId', + resources: 'Resources', + success: 'Success', + total: 'Total', + }; + } + static types() { + return { + code: 'string', + message: 'string', + pageNumber: 'string', + pageSize: 'string', + requestId: 'string', + resources: DescribeProjectMetaResponseBodyResources, + success: 'boolean', + total: 'string', + }; + } + validate() { + if (this.resources && typeof this.resources.validate === 'function') { + this.resources.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeProjectMetaResponseBody = DescribeProjectMetaResponseBody; +//# sourceMappingURL=DescribeProjectMetaResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaResponseBody.js.map new file mode 100644 index 0000000..0db24df --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeProjectMetaResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeProjectMetaResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeProjectMetaResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,gDAAiD,SAAQ,KAAK,CAAC,KAAK;IAgC/E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;YAC1B,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAvDD,4GAuDC;AAED,MAAa,wCAAyC,SAAQ,KAAK,CAAC,KAAK;IAEvE,MAAM,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,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApGD,0EAoGC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeRequest.d.ts new file mode 100644 index 0000000..b9625b6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeRequest.d.ts @@ -0,0 +1,35 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeSiteMonitorAttributeRequest extends $dara.Model { + /** + * @remarks + * Specifies whether to return the information of the alert rules that are configured for the site monitoring task. Valid values: + * + * * true: The system returns the information of the alert rules that are configured for the site monitoring task. + * * false (default): The system does not return the information of the alert rules that are configured for the site monitoring task. + * + * @example + * false + */ + includeAlert?: boolean; + regionId?: string; + /** + * @remarks + * The ID of the site monitoring task. + * + * This parameter is required. + * + * @example + * cc641dff-c19d-45f3-ad0a-818a0c4f**** + */ + taskId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeRequest.js new file mode 100644 index 0000000..d2a76b8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeRequest.js @@ -0,0 +1,62 @@ +"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.DescribeSiteMonitorAttributeRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeSiteMonitorAttributeRequest extends $dara.Model { + static names() { + return { + includeAlert: 'IncludeAlert', + regionId: 'RegionId', + taskId: 'TaskId', + }; + } + static types() { + return { + includeAlert: 'boolean', + regionId: 'string', + taskId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorAttributeRequest = DescribeSiteMonitorAttributeRequest; +//# sourceMappingURL=DescribeSiteMonitorAttributeRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeRequest.js.map new file mode 100644 index 0000000..6e7b29c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSiteMonitorAttributeRequest.js","sourceRoot":"","sources":["../../src/models/DescribeSiteMonitorAttributeRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IAuBlE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,cAAc;YAC5B,QAAQ,EAAE,UAAU;YACpB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,SAAS;YACvB,QAAQ,EAAE,QAAQ;YAClB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA9CD,kFA8CC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeResponse.d.ts new file mode 100644 index 0000000..7912123 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeSiteMonitorAttributeResponseBody } from "./DescribeSiteMonitorAttributeResponseBody"; +export declare class DescribeSiteMonitorAttributeResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeSiteMonitorAttributeResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeResponse.js new file mode 100644 index 0000000..b60bd1c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeResponse.js @@ -0,0 +1,69 @@ +"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.DescribeSiteMonitorAttributeResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeSiteMonitorAttributeResponseBody_1 = require("./DescribeSiteMonitorAttributeResponseBody"); +class DescribeSiteMonitorAttributeResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeSiteMonitorAttributeResponseBody_1.DescribeSiteMonitorAttributeResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorAttributeResponse = DescribeSiteMonitorAttributeResponse; +//# sourceMappingURL=DescribeSiteMonitorAttributeResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeResponse.js.map new file mode 100644 index 0000000..79d72a8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSiteMonitorAttributeResponse.js","sourceRoot":"","sources":["../../src/models/DescribeSiteMonitorAttributeResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,yGAAsG;AAGtG,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IAInE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,mFAAwC;SAC/C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,oFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeResponseBody.d.ts new file mode 100644 index 0000000..3412e71 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeResponseBody.d.ts @@ -0,0 +1,1322 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule extends $dara.Model { + /** + * @remarks + * Indicates whether the alert rule is enabled. Valid values: + * + * * true: The alert rule is enabled. + * * false: The alert rule is disabled. + * + * @example + * true + */ + actionEnable?: string; + /** + * @remarks + * The alert contact group to which alert notifications are sent. + * + * @example + * CloudMonitor + */ + alarmActions?: string; + /** + * @remarks + * The operator that is used to compare the metric value with the threshold in the alert rule. Valid values: + * + * * `>=` + * * `>` + * * `<=` + * * `<` + * * `=` + * * `!=` + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanYesterday + */ + comparisonOperator?: string; + /** + * @remarks + * The dimension of the alert rule. + * + * @example + * [{"taskId": "cc641dff-c19d-45f3-ad0a-818a0c4f****" }] + */ + dimensions?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before an alert is triggered. + * + * @example + * 3 + */ + evaluationCount?: string; + /** + * @remarks + * The expression that is used to trigger alerts. + * + * @example + * $Availability=30 + */ + expression?: string; + /** + * @remarks + * The alert severity. Valid values: + * + * * 1: critical + * * 2: warning + * * 3: information + * + * @example + * 2 + */ + level?: string; + /** + * @remarks + * The metric name. + * + * @example + * Availability + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * The value is in the following format: acs_service name. + * + * @example + * acs_networkmonitor + */ + namespace?: string; + /** + * @remarks + * The alert contact group that receives alert notifications. + * + * @example + * [ "CloudMonitor"] + */ + okActions?: string; + /** + * @remarks + * The time interval. The value is the same as the interval at which metric data is reported. Unit: seconds. + * + * > If you specify a statistical period for the alert rule, data is queried based on the statistical period. + * + * @example + * 15s + */ + period?: string; + /** + * @remarks + * The ID of the alert rule. + * + * @example + * bf071ae_7b7aec3817b0fdf**** + */ + ruleId?: string; + /** + * @remarks + * The name of the alert rule. + * + * @example + * rule1 + */ + ruleName?: string; + /** + * @remarks + * The alert status. Valid values: + * + * * OK: The alert rule has no active alerts. + * * ALARM: The alert rule has active alerts. + * + * @example + * OK + */ + stateValue?: string; + /** + * @remarks + * The statistical method of the alert rule. Valid values: + * + * * Availability: the percentage of available detection points + * * AvailableNumber: the number of available detection points + * * ErrorCodeMaximum: a status code for an alert + * * ErrorCodeMinimum: all status codes for a set of alerts + * * Average: response time + * + * @example + * Availability + */ + statistics?: string; + /** + * @remarks + * The alert threshold. + * + * @example + * 30 + */ + threshold?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorAttributeResponseBodyMetricRules extends $dara.Model { + metricRule?: DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomScheduleDays extends $dara.Model { + days?: number[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomSchedule extends $dara.Model { + /** + * @remarks + * The days in a week. + */ + days?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomScheduleDays; + /** + * @remarks + * The end time of the detection. Unit: hours. + * + * @example + * 18 + */ + endHour?: number; + /** + * @remarks + * The start time of the detection. Unit: hours. + * + * @example + * 8 + */ + startHour?: number; + /** + * @remarks + * The time zone of the detection. + * + * @example + * local + */ + timeZone?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorAttributeResponseBodySiteMonitorsIspCitiesIspCity extends $dara.Model { + /** + * @remarks + * The city ID. + * + * @example + * 738 + */ + city?: string; + /** + * @remarks + * The city name. + */ + cityName?: string; + /** + * @remarks + * The carrier ID. + * + * @example + * 465 + */ + isp?: string; + /** + * @remarks + * The carrier name. + */ + ispName?: string; + /** + * @remarks + * The network type of the detection point. Valid values: IDC, LASTMILE, and MOBILE. + * + * @example + * IDC + */ + type?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorAttributeResponseBodySiteMonitorsIspCities extends $dara.Model { + ispCity?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsIspCitiesIspCity[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAssertionsAssertions extends $dara.Model { + /** + * @remarks + * The operator. Valid values: + * - contains: contains + * - doesNotContain: does not contain + * - matches: matches a regular expression + * - doesNotMatch: does not match a regular expression + * - is: equal to + * - isNot: not equal to + * - lessThan: less than + * - moreThan: greater than + * + * @example + * lessThan + */ + operator?: string; + /** + * @remarks + * The path to the assertion. + * - If the assertion type is body_json, the path is json path. + * - If the assertion type is body_xml, the path is xml path. + * + * @example + * json path + */ + property?: string; + /** + * @remarks + * The value or character to which the condition of the assertion is compared. + * + * @example + * 0 + */ + target?: string; + /** + * @remarks + * The assertion type. Valid values: + * - response_time: checks whether the response time meets expectations. + * - status_code: checks whether the HTTP status code meets expectations. + * - header: checks whether the fields in the response header meet expectations. + * - body_text: check whether the content in the response body meets expectations by using text matching. + * - body_json: check whether the content in the response body meets expectations by using JSON parsing (JSONPath). + * - body_xml: check whether the content in the response body meets expectations by using XML parsing (XPath). + * + * @example + * response_time + */ + type?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAssertions extends $dara.Model { + assertions?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAssertionsAssertions[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAuthInfoScopes extends $dara.Model { + scopes?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAuthInfo extends $dara.Model { + accessKeyId?: string; + accessKeySecret?: string; + apiAction?: string; + apiVersion?: string; + authStyle?: string; + clientId?: string; + clientSecret?: string; + grantType?: string; + password?: string; + regionId?: string; + scopes?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAuthInfoScopes; + serviceName?: string; + sessionToken?: string; + tokenUrl?: string; + type?: string; + useCookieSessionKey?: boolean; + username?: string; + withAddonResources?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBlockedUrlList extends $dara.Model { + blockedUrlList?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserHeaders extends $dara.Model { + browserHeaders?: { + [key: string]: any; + }[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserHosts extends $dara.Model { + browserHosts?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserInfoBrowserInfo extends $dara.Model { + /** + * @remarks + * The browser type. + * + * @example + * Chrome + */ + browser?: string; + /** + * @remarks + * The device type. + * + * @example + * laptop + */ + device?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserInfo extends $dara.Model { + browserInfo?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserInfoBrowserInfo[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonConfigVariablesConfigVariables extends $dara.Model { + name?: string; + secure?: boolean; + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonConfigVariables extends $dara.Model { + configVariables?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonConfigVariablesConfigVariables[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonExpectExistString extends $dara.Model { + expectExistString?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonExpectNonExistString extends $dara.Model { + expectNonExistString?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonQuicTarget extends $dara.Model { + quicTarget?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariablesExtractedVariablesParser extends $dara.Model { + parserType?: string; + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariablesExtractedVariables extends $dara.Model { + extractedType?: string; + field?: string; + name?: string; + parser?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariablesExtractedVariablesParser; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariables extends $dara.Model { + extractedVariables?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariablesExtractedVariables[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsSteps extends $dara.Model { + allowFailure?: boolean; + autoExtractCookie?: boolean; + extractedVariables?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariables; + isCritical?: boolean; + /** + * @deprecated + */ + name?: string; + option?: string; + stepName?: string; + stepType?: string; + url?: string; + useGeneratedCookie?: boolean; + waitTimeInSecs?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonSteps extends $dara.Model { + steps?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsSteps[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonTrafficHijackElementBlacklist extends $dara.Model { + trafficHijackElementBlacklist?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonTrafficHijackElementWhitelist extends $dara.Model { + trafficHijackElementWhitelist?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJson extends $dara.Model { + /** + * @remarks + * The assertions. + */ + assertions?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAssertions; + /** + * @remarks + * The number of retries after a DNS failure occurred. + * + * @example + * 3 + */ + attempts?: number; + authInfo?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAuthInfo; + /** + * @remarks + * The blocked URLs. Wildcards are supported in paths. + */ + blockedUrlList?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBlockedUrlList; + /** + * @remarks + * The custom headers. Format: {"key": "somekey", "value":"somevalue"}. + */ + browserHeaders?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserHeaders; + /** + * @remarks + * The custom hosts. Format: {"key": "somekey", "value":"somevalue"}. + */ + browserHosts?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserHosts; + /** + * @remarks + * The browser information. + */ + browserInfo?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserInfo; + /** + * @remarks + * Indicates whether certificate errors are ignored. Valid values: + * - false: Certificate errors are not ignored. + * - true: Certificate errors are ignored. + * + * @example + * false + */ + browserInsecure?: boolean; + /** + * @remarks + * The version of the browser test task. Valid values: + * - 1: browser test for a single page + * - 2: browser test for multiple pages + * + * @example + * 1 + */ + browserTaskVersion?: string; + configVariables?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonConfigVariables; + /** + * @remarks + * The cookie of the HTTP request. + * + * @example + * lang=en + */ + cookie?: string; + /** + * @remarks + * Indicates whether the automatic MTR diagnostics feature is enabled for a failed task. Valid values: + * - false: The automatic MTR diagnostics feature is disabled for a failed task. + * - true: The automatic MTR diagnostics feature is enabled for a failed task. + * + * @example + * false + */ + diagnosisMtr?: boolean; + /** + * @remarks + * Indicates whether the automatic ping latency detection feature is enabled for a failed task. Valid values: + * - false: The automatic ping latency detection feature is disabled for a failed task. + * - true: The automatic ping latency detection feature is enabled for a failed task. + * + * @example + * false + */ + diagnosisPing?: boolean; + /** + * @remarks + * The DNS hijack whitelist. + * + * @example + * www.taobao.com:www.taobao.com.danuoyi.tbcache.com + */ + dnsHijackWhitelist?: string; + /** + * @remarks + * The relationship between the list of expected aliases or IP addresses and the list of DNS results. Valid values: + * + * * IN_DNS: The list of expected values is a subset of the list of DNS results. + * * DNS_IN: The list of DNS results is a subset of the list of expected values. + * * EQUAL: The list of DNS results is the same as the list of expected values. + * * ANY: The list of DNS results intersects with the list of expected values. + * + * @example + * IN_DNS + */ + dnsMatchRule?: string; + /** + * @remarks + * The IP address of the DNS server. + * + * > This parameter is returned only if the TaskType parameter is set to DNS. + * + * @example + * 192.168.XX.XX + */ + dnsServer?: string; + /** + * @remarks + * The type of the DNS record. This parameter is returned only if the TaskType parameter is set to DNS. Valid values: + * + * * A (default): a record that specifies an IP address related to the specified host name or domain name. + * * CNAME: a record that maps multiple domain names to a domain name. + * * NS: a record that specifies a DNS server used to parse domain names. + * * MX: a record that links domain names to the address of a mail server. + * * TXT: a record that stores the text information of host name or domain names. The text must be 1 to 512 bytes in length. The TXT record serves as a Sender Policy Framework (SPF) record to fight against spam. + * + * @example + * A + */ + dnsType?: string; + /** + * @remarks + * Indicates whether the WebSocket task is allowed to return no response or return an empty response. Default value: false. Valid values: false and true. + * + * @example + * false + */ + emptyMessage?: boolean; + enablePacketCapture?: boolean; + /** + * @remarks + * The string that is expected to exist on the page. + */ + expectExistString?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonExpectExistString; + /** + * @remarks + * The string that is not expected to exist on the page. + */ + expectNonExistString?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonExpectNonExistString; + /** + * @remarks + * The domain name or alias to be parsed. + * + * > This parameter is returned only if the TaskType parameter is set to DNS. + * + * @example + * dns_server + */ + expectValue?: string; + /** + * @remarks + * The packet loss rate. + * + * > This parameter is returned only if the TaskType parameter is set to PING. + * + * @example + * 0.4 + */ + failureRate?: number; + /** + * @remarks + * The header of the HTTP request. + * + * @example + * testKey:testValue + */ + header?: string; + /** + * @remarks + * The number of hops to perform traceroute diagnostics if the PING task fails. + * + * @example + * 20 + */ + hops?: number; + /** + * @remarks + * The custom hosts for the HTTP test task. Format: ip1,ip2:address. You can specify values in multiple lines. Specify the A record or CNAME record that can be resolved by the domain name at the left of the colon. Separate multiple records with commas (,). Specify the domain name at the right of the colon. + * + * @example + * 127.0.0.1:www.aliyun.com + */ + hostBinding?: string; + /** + * @remarks + * The host binding type. Valid values: 0 and 1. 0 indicates random. 1 indicates polling. + * + * @example + * 0 + */ + hostBindingType?: number; + /** + * @remarks + * The HTTP request method. Valid values: + * + * * get + * * post + * * head + * + * @example + * get + */ + httpMethod?: string; + /** + * @remarks + * The timeout period of a PING task that uses ICMP. Unit: milliseconds. + * + * @example + * 3000 + */ + icmpTimeoutMillis?: number; + /** + * @remarks + * ip_network indicates the network type of the task. Valid values: v4, v6, and auto. Default value: v4. + * + * @example + * v4 + */ + ipNetwork?: string; + /** + * @remarks + * Indicates whether to perform Base64 decoding and then store the password. Valid values: true and false. + * + * @example + * true + */ + isBase64Encode?: string; + /** + * @remarks + * Indicates whether the alert rule is included. Valid values: + * + * * 0: The alert rule is included. + * * 1: The alert rule is excluded. + * + * @example + * 1 + */ + matchRule?: number; + /** + * @remarks + * The minimum TLS version. By default, TLS 1.2 and later versions are supported. TLS 1.0 and 1.1 are disabled. If you still require TLS 1.0 or 1.1, you can change the configuration. + * + * @example + * tlsv1.2 + */ + minTlsVersion?: string; + /** + * @remarks + * The password of the SMTP, POP3, or FTP protocol. + * + * @example + * 123**** + */ + password?: string; + /** + * @remarks + * The heartbeat of the PING protocol. + * + * @example + * 29 + */ + pingNum?: number; + /** + * @remarks + * The port number for TCP pings. + * + * @example + * 80 + */ + pingPort?: number; + /** + * @remarks + * The PING protocol type. Valid values: + * + * * icmp + * * tcp + * * udp + * + * @example + * icmp,tcp,udp + */ + pingType?: string; + /** + * @remarks + * The port number of the TCP, UDP, SMTP, or POP3 protocol. + * + * @example + * 110 + */ + port?: number; + /** + * @example + * cert.pem + */ + privateCrtFileName?: string; + /** + * @remarks + * The protocol that is used to send the request. + * + * @example + * TCP + */ + protocol?: string; + /** + * @remarks + * Indicates whether the Quick UDP Internet Connections (QUIC) protocol is used for browser detection. Valid values: true false Default value: false. + * + * @example + * true + */ + quicEnabled?: boolean; + /** + * @remarks + * The sites for which the QUIC protocol is forcibly used. + */ + quicTarget?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonQuicTarget; + /** + * @remarks + * The content of the HTTP request. + * + * @example + * aa=bb + */ + requestContent?: string; + /** + * @remarks + * The format of the HTTP request. Valid values: + * + * * hex: hexadecimal + * * txt: text + * + * @example + * txt + */ + requestFormat?: string; + /** + * @remarks + * The response to the HTTP request. + * + * @example + * txt + */ + responseContent?: string; + /** + * @remarks + * The format of the HTTP response. Valid values: + * + * * hex: hexadecimal + * * txt: text + * + * @example + * txt + */ + responseFormat?: string; + /** + * @remarks + * The number of retries for failed detections. + * + * @example + * 0 + */ + retryDelay?: number; + safeLink?: number; + /** + * @remarks + * Indicates whether page screenshot is enabled. + * + * @example + * false + */ + screenShot?: boolean; + /** + * @remarks + * Indicates whether to scroll to the bottom of the page after opening the page. This parameter is valid for a browser test task. + * + * @example + * false + */ + scrollEnd?: boolean; + steps?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonSteps; + /** + * @remarks + * Indicates whether to allow the loading failures of some page elements. Valid values: false and true. + * + * @example + * false + */ + strictMode?: boolean; + /** + * @remarks + * The timeout period. Unit: milliseconds. + * + * @example + * 3 + */ + timeOut?: number; + traceRegion?: string; + traceType?: string; + /** + * @remarks + * The traffic hijacking blacklist. When redirection occurs, if the URL of the resource loaded by the browser matches the expression in the blacklist, traffic hijacking is considered to have occurred. + */ + trafficHijackElementBlacklist?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonTrafficHijackElementBlacklist; + /** + * @remarks + * When redirection occurs, if the browser loads more than the specified number of resources, traffic hijacking is considered to have occurred. If you set the value to 0, no validation is performed. Default value: 0. + * + * @example + * 0 + */ + trafficHijackElementCount?: number; + /** + * @remarks + * The traffic hijacking whitelist. When redirection occurs, if the URL of the resource loaded by the browser does not match any expression in the whitelist, traffic hijacking is considered to have occurred. + */ + trafficHijackElementWhitelist?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonTrafficHijackElementWhitelist; + usePrivateCrt?: boolean; + /** + * @remarks + * The username of the FTP, SMTP, or POP3 protocol. + * + * @example + * testUser + */ + username?: string; + /** + * @remarks + * The additional waiting time after a page is opened in a browser test task. + * + * @example + * 3 + */ + waitTimeAfterCompletion?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorAttributeResponseBodySiteMonitorsVpcConfig extends $dara.Model { + /** + * @remarks + * The region of the website for synthetic monitoring. + * + * @example + * cn-beijing + */ + region?: string; + /** + * @remarks + * The ID of the security group. + * + * @example + * sg-xxxxxx + */ + securityGroupId?: string; + /** + * @remarks + * The ID of the VPC used by the synthetic test task. + * + * @example + * vpc-xxxxxx + */ + vpcId?: string; + /** + * @remarks + * The ID of the vSwitch used by the synthetic test task. + * + * @example + * vsw-xxxxxx + */ + vswitchId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorAttributeResponseBodySiteMonitors extends $dara.Model { + /** + * @remarks + * The URL that is monitored by the site monitoring task. + * + * @example + * https://aliyun.com + */ + address?: string; + /** + * @remarks + * The type of the detection point. Default value: PC. Valid values: + * - PC + * - MOBILE + * + * @example + * PC + */ + agentGroup?: string; + /** + * @remarks + * The custom detection cycle. You can specify only a time range within a week (from Monday to Sunday). + */ + customSchedule?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomSchedule; + /** + * @remarks + * The interval at which the site monitoring task is executed. Unit: minutes. Valid values: 1, 5, 15, 30, and 60. + * + * @example + * 1 + */ + interval?: string; + /** + * @remarks + * The information of detection points. The information includes the carriers that provide the detection points and the cities where the detection points reside. + */ + ispCities?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsIspCities; + /** + * @remarks + * The extended options of the site monitoring task. The options vary based on the specified protocol. For more information, see [CreateSiteMonitor](https://help.aliyun.com/document_detail/115048.html). + */ + optionJson?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJson; + /** + * @remarks + * The ID of the site monitoring task. + * + * @example + * cc641dff-c19d-45f3-ad0a-818a0c4f**** + */ + taskId?: string; + /** + * @remarks + * The name of the site monitoring task. + * + * @example + * test123 + */ + taskName?: string; + /** + * @remarks + * The status of the site monitoring task. Valid values: + * + * * 1: The task is enabled. + * * 2: The task is disabled. + * + * @example + * 1 + */ + taskState?: string; + /** + * @remarks + * The protocol that is used by the site monitoring task. Valid values: HTTP, HTTPS, PING, TCP, UDP, DNS, SMTP, POP3, and FTP. + * + * @example + * HTTP + */ + taskType?: string; + /** + * @remarks + * The VPC configurations of the synthetic test task. + */ + vpcConfig?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsVpcConfig; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorAttributeResponseBody extends $dara.Model { + /** + * @remarks + * The response code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * successful + */ + message?: string; + /** + * @remarks + * The alert rules that are configured for the site monitoring task. + */ + metricRules?: DescribeSiteMonitorAttributeResponseBodyMetricRules; + /** + * @remarks + * The request ID. + * + * @example + * D17DF650-7EBD-54D0-903A-1D4E624D7402 + */ + requestId?: string; + /** + * @remarks + * The details of the site monitoring task. + */ + siteMonitors?: DescribeSiteMonitorAttributeResponseBodySiteMonitors; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeResponseBody.js new file mode 100644 index 0000000..8b9b71c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeResponseBody.js @@ -0,0 +1,1022 @@ +"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.DescribeSiteMonitorAttributeResponseBody = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitors = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsVpcConfig = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJson = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonTrafficHijackElementWhitelist = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonTrafficHijackElementBlacklist = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonSteps = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsSteps = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariables = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariablesExtractedVariables = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariablesExtractedVariablesParser = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonQuicTarget = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonExpectNonExistString = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonExpectExistString = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonConfigVariables = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonConfigVariablesConfigVariables = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserInfo = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserInfoBrowserInfo = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserHosts = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserHeaders = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBlockedUrlList = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAuthInfo = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAuthInfoScopes = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAssertions = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAssertionsAssertions = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsIspCities = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsIspCitiesIspCity = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomSchedule = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomScheduleDays = exports.DescribeSiteMonitorAttributeResponseBodyMetricRules = exports.DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule extends $dara.Model { + static names() { + return { + actionEnable: 'ActionEnable', + alarmActions: 'AlarmActions', + comparisonOperator: 'ComparisonOperator', + dimensions: 'Dimensions', + evaluationCount: 'EvaluationCount', + expression: 'Expression', + level: 'Level', + metricName: 'MetricName', + namespace: 'Namespace', + okActions: 'OkActions', + period: 'Period', + ruleId: 'RuleId', + ruleName: 'RuleName', + stateValue: 'StateValue', + statistics: 'Statistics', + threshold: 'Threshold', + }; + } + static types() { + return { + actionEnable: 'string', + alarmActions: 'string', + comparisonOperator: 'string', + dimensions: 'string', + evaluationCount: 'string', + expression: 'string', + level: 'string', + metricName: 'string', + namespace: 'string', + okActions: 'string', + period: 'string', + ruleId: 'string', + ruleName: 'string', + stateValue: 'string', + statistics: 'string', + threshold: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule = DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule; +class DescribeSiteMonitorAttributeResponseBodyMetricRules extends $dara.Model { + static names() { + return { + metricRule: 'MetricRule', + }; + } + static types() { + return { + metricRule: { 'type': 'array', 'itemType': DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule }, + }; + } + validate() { + if (Array.isArray(this.metricRule)) { + $dara.Model.validateArray(this.metricRule); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorAttributeResponseBodyMetricRules = DescribeSiteMonitorAttributeResponseBodyMetricRules; +class DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomScheduleDays extends $dara.Model { + static names() { + return { + days: 'days', + }; + } + static types() { + return { + days: { 'type': 'array', 'itemType': 'number' }, + }; + } + validate() { + if (Array.isArray(this.days)) { + $dara.Model.validateArray(this.days); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomScheduleDays = DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomScheduleDays; +class DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomSchedule extends $dara.Model { + static names() { + return { + days: 'days', + endHour: 'end_hour', + startHour: 'start_hour', + timeZone: 'time_zone', + }; + } + static types() { + return { + days: DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomScheduleDays, + endHour: 'number', + startHour: 'number', + timeZone: 'string', + }; + } + validate() { + if (this.days && typeof this.days.validate === 'function') { + this.days.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomSchedule = DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomSchedule; +class DescribeSiteMonitorAttributeResponseBodySiteMonitorsIspCitiesIspCity extends $dara.Model { + static names() { + return { + city: 'City', + cityName: 'CityName', + isp: 'Isp', + ispName: 'IspName', + type: 'Type', + }; + } + static types() { + return { + city: 'string', + cityName: 'string', + isp: 'string', + ispName: 'string', + type: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsIspCitiesIspCity = DescribeSiteMonitorAttributeResponseBodySiteMonitorsIspCitiesIspCity; +class DescribeSiteMonitorAttributeResponseBodySiteMonitorsIspCities extends $dara.Model { + static names() { + return { + ispCity: 'IspCity', + }; + } + static types() { + return { + ispCity: { 'type': 'array', 'itemType': DescribeSiteMonitorAttributeResponseBodySiteMonitorsIspCitiesIspCity }, + }; + } + validate() { + if (Array.isArray(this.ispCity)) { + $dara.Model.validateArray(this.ispCity); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsIspCities = DescribeSiteMonitorAttributeResponseBodySiteMonitorsIspCities; +class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAssertionsAssertions extends $dara.Model { + static names() { + return { + operator: 'operator', + property: 'property', + target: 'target', + type: 'type', + }; + } + static types() { + return { + operator: 'string', + property: 'string', + target: 'string', + type: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAssertionsAssertions = DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAssertionsAssertions; +class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAssertions extends $dara.Model { + static names() { + return { + assertions: 'assertions', + }; + } + static types() { + return { + assertions: { 'type': 'array', 'itemType': DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAssertionsAssertions }, + }; + } + validate() { + if (Array.isArray(this.assertions)) { + $dara.Model.validateArray(this.assertions); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAssertions = DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAssertions; +class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAuthInfoScopes extends $dara.Model { + static names() { + return { + scopes: 'scopes', + }; + } + static types() { + return { + scopes: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.scopes)) { + $dara.Model.validateArray(this.scopes); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAuthInfoScopes = DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAuthInfoScopes; +class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAuthInfo extends $dara.Model { + static names() { + return { + accessKeyId: 'access_key_id', + accessKeySecret: 'access_key_secret', + apiAction: 'api_action', + apiVersion: 'api_version', + authStyle: 'auth_style', + clientId: 'client_id', + clientSecret: 'client_secret', + grantType: 'grant_type', + password: 'password', + regionId: 'region_id', + scopes: 'scopes', + serviceName: 'service_name', + sessionToken: 'session_token', + tokenUrl: 'token_url', + type: 'type', + useCookieSessionKey: 'use_cookie_session_key', + username: 'username', + withAddonResources: 'with_addon_resources', + }; + } + static types() { + return { + accessKeyId: 'string', + accessKeySecret: 'string', + apiAction: 'string', + apiVersion: 'string', + authStyle: 'string', + clientId: 'string', + clientSecret: 'string', + grantType: 'string', + password: 'string', + regionId: 'string', + scopes: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAuthInfoScopes, + serviceName: 'string', + sessionToken: 'string', + tokenUrl: 'string', + type: 'string', + useCookieSessionKey: 'boolean', + username: 'string', + withAddonResources: 'boolean', + }; + } + validate() { + if (this.scopes && typeof this.scopes.validate === 'function') { + this.scopes.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAuthInfo = DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAuthInfo; +class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBlockedUrlList extends $dara.Model { + static names() { + return { + blockedUrlList: 'blocked_url_list', + }; + } + static types() { + return { + blockedUrlList: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.blockedUrlList)) { + $dara.Model.validateArray(this.blockedUrlList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBlockedUrlList = DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBlockedUrlList; +class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserHeaders extends $dara.Model { + static names() { + return { + browserHeaders: 'browser_headers', + }; + } + static types() { + return { + browserHeaders: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } }, + }; + } + validate() { + if (Array.isArray(this.browserHeaders)) { + $dara.Model.validateArray(this.browserHeaders); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserHeaders = DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserHeaders; +class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserHosts extends $dara.Model { + static names() { + return { + browserHosts: 'browser_hosts', + }; + } + static types() { + return { + browserHosts: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.browserHosts)) { + $dara.Model.validateArray(this.browserHosts); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserHosts = DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserHosts; +class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserInfoBrowserInfo extends $dara.Model { + static names() { + return { + browser: 'browser', + device: 'device', + }; + } + static types() { + return { + browser: 'string', + device: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserInfoBrowserInfo = DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserInfoBrowserInfo; +class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserInfo extends $dara.Model { + static names() { + return { + browserInfo: 'browser_info', + }; + } + static types() { + return { + browserInfo: { 'type': 'array', 'itemType': DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserInfoBrowserInfo }, + }; + } + validate() { + if (Array.isArray(this.browserInfo)) { + $dara.Model.validateArray(this.browserInfo); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserInfo = DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserInfo; +class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonConfigVariablesConfigVariables extends $dara.Model { + static names() { + return { + name: 'name', + secure: 'secure', + value: 'value', + }; + } + static types() { + return { + name: 'string', + secure: 'boolean', + value: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonConfigVariablesConfigVariables = DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonConfigVariablesConfigVariables; +class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonConfigVariables extends $dara.Model { + static names() { + return { + configVariables: 'config_variables', + }; + } + static types() { + return { + configVariables: { 'type': 'array', 'itemType': DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonConfigVariablesConfigVariables }, + }; + } + validate() { + if (Array.isArray(this.configVariables)) { + $dara.Model.validateArray(this.configVariables); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonConfigVariables = DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonConfigVariables; +class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonExpectExistString extends $dara.Model { + static names() { + return { + expectExistString: 'expect_exist_string', + }; + } + static types() { + return { + expectExistString: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.expectExistString)) { + $dara.Model.validateArray(this.expectExistString); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonExpectExistString = DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonExpectExistString; +class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonExpectNonExistString extends $dara.Model { + static names() { + return { + expectNonExistString: 'expect_non_exist_string', + }; + } + static types() { + return { + expectNonExistString: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.expectNonExistString)) { + $dara.Model.validateArray(this.expectNonExistString); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonExpectNonExistString = DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonExpectNonExistString; +class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonQuicTarget extends $dara.Model { + static names() { + return { + quicTarget: 'quic_target', + }; + } + static types() { + return { + quicTarget: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.quicTarget)) { + $dara.Model.validateArray(this.quicTarget); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonQuicTarget = DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonQuicTarget; +class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariablesExtractedVariablesParser extends $dara.Model { + static names() { + return { + parserType: 'parser_type', + value: 'value', + }; + } + static types() { + return { + parserType: 'string', + value: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariablesExtractedVariablesParser = DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariablesExtractedVariablesParser; +class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariablesExtractedVariables extends $dara.Model { + static names() { + return { + extractedType: 'extracted_type', + field: 'field', + name: 'name', + parser: 'parser', + }; + } + static types() { + return { + extractedType: 'string', + field: 'string', + name: 'string', + parser: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariablesExtractedVariablesParser, + }; + } + validate() { + if (this.parser && typeof this.parser.validate === 'function') { + this.parser.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariablesExtractedVariables = DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariablesExtractedVariables; +class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariables extends $dara.Model { + static names() { + return { + extractedVariables: 'extracted_variables', + }; + } + static types() { + return { + extractedVariables: { 'type': 'array', 'itemType': DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariablesExtractedVariables }, + }; + } + validate() { + if (Array.isArray(this.extractedVariables)) { + $dara.Model.validateArray(this.extractedVariables); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariables = DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariables; +class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsSteps extends $dara.Model { + static names() { + return { + allowFailure: 'allow_failure', + autoExtractCookie: 'auto_extract_cookie', + extractedVariables: 'extracted_variables', + isCritical: 'is_critical', + name: 'name', + option: 'option', + stepName: 'step_name', + stepType: 'step_type', + url: 'url', + useGeneratedCookie: 'use_generated_cookie', + waitTimeInSecs: 'wait_time_in_secs', + }; + } + static types() { + return { + allowFailure: 'boolean', + autoExtractCookie: 'boolean', + extractedVariables: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariables, + isCritical: 'boolean', + name: 'string', + option: 'string', + stepName: 'string', + stepType: 'string', + url: 'string', + useGeneratedCookie: 'boolean', + waitTimeInSecs: 'number', + }; + } + validate() { + if (this.extractedVariables && typeof this.extractedVariables.validate === 'function') { + this.extractedVariables.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsSteps = DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsSteps; +class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonSteps extends $dara.Model { + static names() { + return { + steps: 'steps', + }; + } + static types() { + return { + steps: { 'type': 'array', 'itemType': DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsSteps }, + }; + } + validate() { + if (Array.isArray(this.steps)) { + $dara.Model.validateArray(this.steps); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonSteps = DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonSteps; +class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonTrafficHijackElementBlacklist extends $dara.Model { + static names() { + return { + trafficHijackElementBlacklist: 'traffic_hijack_element_blacklist', + }; + } + static types() { + return { + trafficHijackElementBlacklist: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.trafficHijackElementBlacklist)) { + $dara.Model.validateArray(this.trafficHijackElementBlacklist); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonTrafficHijackElementBlacklist = DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonTrafficHijackElementBlacklist; +class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonTrafficHijackElementWhitelist extends $dara.Model { + static names() { + return { + trafficHijackElementWhitelist: 'traffic_hijack_element_whitelist', + }; + } + static types() { + return { + trafficHijackElementWhitelist: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.trafficHijackElementWhitelist)) { + $dara.Model.validateArray(this.trafficHijackElementWhitelist); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonTrafficHijackElementWhitelist = DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonTrafficHijackElementWhitelist; +class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJson extends $dara.Model { + static names() { + return { + assertions: 'assertions', + attempts: 'attempts', + authInfo: 'auth_info', + blockedUrlList: 'blocked_url_list', + browserHeaders: 'browser_headers', + browserHosts: 'browser_hosts', + browserInfo: 'browser_info', + browserInsecure: 'browser_insecure', + browserTaskVersion: 'browser_task_version', + configVariables: 'config_variables', + cookie: 'cookie', + diagnosisMtr: 'diagnosis_mtr', + diagnosisPing: 'diagnosis_ping', + dnsHijackWhitelist: 'dns_hijack_whitelist', + dnsMatchRule: 'dns_match_rule', + dnsServer: 'dns_server', + dnsType: 'dns_type', + emptyMessage: 'empty_message', + enablePacketCapture: 'enable_packet_capture', + expectExistString: 'expect_exist_string', + expectNonExistString: 'expect_non_exist_string', + expectValue: 'expect_value', + failureRate: 'failure_rate', + header: 'header', + hops: 'hops', + hostBinding: 'host_binding', + hostBindingType: 'host_binding_type', + httpMethod: 'http_method', + icmpTimeoutMillis: 'icmp_timeout_millis', + ipNetwork: 'ip_network', + isBase64Encode: 'isBase64Encode', + matchRule: 'match_rule', + minTlsVersion: 'min_tls_version', + password: 'password', + pingNum: 'ping_num', + pingPort: 'ping_port', + pingType: 'ping_type', + port: 'port', + privateCrtFileName: 'private_crt_file_name', + protocol: 'protocol', + quicEnabled: 'quic_enabled', + quicTarget: 'quic_target', + requestContent: 'request_content', + requestFormat: 'request_format', + responseContent: 'response_content', + responseFormat: 'response_format', + retryDelay: 'retry_delay', + safeLink: 'safe_link', + screenShot: 'screen_shot', + scrollEnd: 'scroll_end', + steps: 'steps', + strictMode: 'strict_mode', + timeOut: 'time_out', + traceRegion: 'trace_region', + traceType: 'trace_type', + trafficHijackElementBlacklist: 'traffic_hijack_element_blacklist', + trafficHijackElementCount: 'traffic_hijack_element_count', + trafficHijackElementWhitelist: 'traffic_hijack_element_whitelist', + usePrivateCrt: 'use_private_crt', + username: 'username', + waitTimeAfterCompletion: 'waitTime_after_completion', + }; + } + static types() { + return { + assertions: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAssertions, + attempts: 'number', + authInfo: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAuthInfo, + blockedUrlList: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBlockedUrlList, + browserHeaders: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserHeaders, + browserHosts: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserHosts, + browserInfo: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserInfo, + browserInsecure: 'boolean', + browserTaskVersion: 'string', + configVariables: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonConfigVariables, + cookie: 'string', + diagnosisMtr: 'boolean', + diagnosisPing: 'boolean', + dnsHijackWhitelist: 'string', + dnsMatchRule: 'string', + dnsServer: 'string', + dnsType: 'string', + emptyMessage: 'boolean', + enablePacketCapture: 'boolean', + expectExistString: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonExpectExistString, + expectNonExistString: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonExpectNonExistString, + expectValue: 'string', + failureRate: 'number', + header: 'string', + hops: 'number', + hostBinding: 'string', + hostBindingType: 'number', + httpMethod: 'string', + icmpTimeoutMillis: 'number', + ipNetwork: 'string', + isBase64Encode: 'string', + matchRule: 'number', + minTlsVersion: 'string', + password: 'string', + pingNum: 'number', + pingPort: 'number', + pingType: 'string', + port: 'number', + privateCrtFileName: 'string', + protocol: 'string', + quicEnabled: 'boolean', + quicTarget: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonQuicTarget, + requestContent: 'string', + requestFormat: 'string', + responseContent: 'string', + responseFormat: 'string', + retryDelay: 'number', + safeLink: 'number', + screenShot: 'boolean', + scrollEnd: 'boolean', + steps: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonSteps, + strictMode: 'boolean', + timeOut: 'number', + traceRegion: 'string', + traceType: 'string', + trafficHijackElementBlacklist: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonTrafficHijackElementBlacklist, + trafficHijackElementCount: 'number', + trafficHijackElementWhitelist: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonTrafficHijackElementWhitelist, + usePrivateCrt: 'boolean', + username: 'string', + waitTimeAfterCompletion: 'number', + }; + } + validate() { + if (this.assertions && typeof this.assertions.validate === 'function') { + this.assertions.validate(); + } + if (this.authInfo && typeof this.authInfo.validate === 'function') { + this.authInfo.validate(); + } + if (this.blockedUrlList && typeof this.blockedUrlList.validate === 'function') { + this.blockedUrlList.validate(); + } + if (this.browserHeaders && typeof this.browserHeaders.validate === 'function') { + this.browserHeaders.validate(); + } + if (this.browserHosts && typeof this.browserHosts.validate === 'function') { + this.browserHosts.validate(); + } + if (this.browserInfo && typeof this.browserInfo.validate === 'function') { + this.browserInfo.validate(); + } + if (this.configVariables && typeof this.configVariables.validate === 'function') { + this.configVariables.validate(); + } + if (this.expectExistString && typeof this.expectExistString.validate === 'function') { + this.expectExistString.validate(); + } + if (this.expectNonExistString && typeof this.expectNonExistString.validate === 'function') { + this.expectNonExistString.validate(); + } + if (this.quicTarget && typeof this.quicTarget.validate === 'function') { + this.quicTarget.validate(); + } + if (this.steps && typeof this.steps.validate === 'function') { + this.steps.validate(); + } + if (this.trafficHijackElementBlacklist && typeof this.trafficHijackElementBlacklist.validate === 'function') { + this.trafficHijackElementBlacklist.validate(); + } + if (this.trafficHijackElementWhitelist && typeof this.trafficHijackElementWhitelist.validate === 'function') { + this.trafficHijackElementWhitelist.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJson = DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJson; +class DescribeSiteMonitorAttributeResponseBodySiteMonitorsVpcConfig extends $dara.Model { + static names() { + return { + region: 'Region', + securityGroupId: 'SecurityGroupId', + vpcId: 'VpcId', + vswitchId: 'VswitchId', + }; + } + static types() { + return { + region: 'string', + securityGroupId: 'string', + vpcId: 'string', + vswitchId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsVpcConfig = DescribeSiteMonitorAttributeResponseBodySiteMonitorsVpcConfig; +class DescribeSiteMonitorAttributeResponseBodySiteMonitors extends $dara.Model { + static names() { + return { + address: 'Address', + agentGroup: 'AgentGroup', + customSchedule: 'CustomSchedule', + interval: 'Interval', + ispCities: 'IspCities', + optionJson: 'OptionJson', + taskId: 'TaskId', + taskName: 'TaskName', + taskState: 'TaskState', + taskType: 'TaskType', + vpcConfig: 'VpcConfig', + }; + } + static types() { + return { + address: 'string', + agentGroup: 'string', + customSchedule: DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomSchedule, + interval: 'string', + ispCities: DescribeSiteMonitorAttributeResponseBodySiteMonitorsIspCities, + optionJson: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJson, + taskId: 'string', + taskName: 'string', + taskState: 'string', + taskType: 'string', + vpcConfig: DescribeSiteMonitorAttributeResponseBodySiteMonitorsVpcConfig, + }; + } + validate() { + if (this.customSchedule && typeof this.customSchedule.validate === 'function') { + this.customSchedule.validate(); + } + if (this.ispCities && typeof this.ispCities.validate === 'function') { + this.ispCities.validate(); + } + if (this.optionJson && typeof this.optionJson.validate === 'function') { + this.optionJson.validate(); + } + if (this.vpcConfig && typeof this.vpcConfig.validate === 'function') { + this.vpcConfig.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorAttributeResponseBodySiteMonitors = DescribeSiteMonitorAttributeResponseBodySiteMonitors; +class DescribeSiteMonitorAttributeResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + metricRules: 'MetricRules', + requestId: 'RequestId', + siteMonitors: 'SiteMonitors', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + metricRules: DescribeSiteMonitorAttributeResponseBodyMetricRules, + requestId: 'string', + siteMonitors: DescribeSiteMonitorAttributeResponseBodySiteMonitors, + success: 'boolean', + }; + } + validate() { + if (this.metricRules && typeof this.metricRules.validate === 'function') { + this.metricRules.validate(); + } + if (this.siteMonitors && typeof this.siteMonitors.validate === 'function') { + this.siteMonitors.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorAttributeResponseBody = DescribeSiteMonitorAttributeResponseBody; +//# sourceMappingURL=DescribeSiteMonitorAttributeResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeResponseBody.js.map new file mode 100644 index 0000000..536de7e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorAttributeResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSiteMonitorAttributeResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeSiteMonitorAttributeResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6DAA8D,SAAQ,KAAK,CAAC,KAAK;IAkK5F,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,cAAc;YAC5B,YAAY,EAAE,cAAc;YAC5B,kBAAkB,EAAE,oBAAoB;YACxC,UAAU,EAAE,YAAY;YACxB,eAAe,EAAE,iBAAiB;YAClC,UAAU,EAAE,YAAY;YACxB,KAAK,EAAE,OAAO;YACd,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,UAAU;YACpB,UAAU,EAAE,YAAY;YACxB,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,QAAQ;YACtB,YAAY,EAAE,QAAQ;YACtB,kBAAkB,EAAE,QAAQ;YAC5B,UAAU,EAAE,QAAQ;YACpB,eAAe,EAAE,QAAQ;YACzB,UAAU,EAAE,QAAQ;YACpB,KAAK,EAAE,QAAQ;YACf,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;YACnB,SAAS,EAAE,QAAQ;YACnB,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backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataRequest.d.ts new file mode 100644 index 0000000..dcfa1b1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataRequest.d.ts @@ -0,0 +1,96 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeSiteMonitorDataRequest extends $dara.Model { + /** + * @remarks + * The end of the time range to query. The following formats are supported: + * + * * UNIX timestamp: the number of milliseconds that have elapsed since 00:00:00 UTC on Thursday, January 1, 1970. + * * UTC time: the UTC time that follows the YYYY-MM-DDThh:mm:ssZ format. + * + * @example + * 1551581437000 + */ + endTime?: string; + /** + * @remarks + * The number of data points to return. + * + * @example + * 1000 + */ + length?: number; + /** + * @remarks + * The metric name. Valid values: + * + * * Availability + * * ResponseTime + * + * This parameter is required. + * + * @example + * Availability + */ + metricName?: string; + /** + * @remarks + * The pagination token. + * + * @example + * 49f7b317-7645-4cc9-94fd-ea42e5220930ea42e5220930ea42e522**** + */ + nextToken?: string; + /** + * @remarks + * The statistical period. The value is an integral multiple of 60. Unit: seconds. + * + * > The default value equals the minimum interval at which detection requests are sent to the monitored address. + * + * @example + * 60 + */ + period?: string; + regionId?: string; + /** + * @remarks + * The start of the time range to query. The following formats are supported: + * + * * UNIX timestamp: the number of milliseconds that have elapsed since 00:00:00 UTC on Thursday, January 1, 1970. + * * UTC time: the UTC time that follows the YYYY-MM-DDThh:mm:ssZ format. + * + * @example + * 1551579637000 + */ + startTime?: string; + /** + * @remarks + * The job ID. + * + * This parameter is required. + * + * @example + * 49f7b317-7645-4cc9-94fd-ea42e522**** + */ + taskId?: string; + /** + * @remarks + * The type of the monitored object whose monitoring data is to be queried. Valid values: + * + * * metric + * * event + * + * @example + * metric + */ + type?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataRequest.js new file mode 100644 index 0000000..7702369 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataRequest.js @@ -0,0 +1,74 @@ +"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.DescribeSiteMonitorDataRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeSiteMonitorDataRequest extends $dara.Model { + static names() { + return { + endTime: 'EndTime', + length: 'Length', + metricName: 'MetricName', + nextToken: 'NextToken', + period: 'Period', + regionId: 'RegionId', + startTime: 'StartTime', + taskId: 'TaskId', + type: 'Type', + }; + } + static types() { + return { + endTime: 'string', + length: 'number', + metricName: 'string', + nextToken: 'string', + period: 'string', + regionId: 'string', + startTime: 'string', + taskId: 'string', + type: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorDataRequest = DescribeSiteMonitorDataRequest; +//# sourceMappingURL=DescribeSiteMonitorDataRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataRequest.js.map new file mode 100644 index 0000000..2fe03dd --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSiteMonitorDataRequest.js","sourceRoot":"","sources":["../../src/models/DescribeSiteMonitorDataRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAoF7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;YACnB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,QAAQ;YACnB,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,QAAQ;SACf,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAvHD,wEAuHC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataResponse.d.ts new file mode 100644 index 0000000..6f621fa --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeSiteMonitorDataResponseBody } from "./DescribeSiteMonitorDataResponseBody"; +export declare class DescribeSiteMonitorDataResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeSiteMonitorDataResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataResponse.js new file mode 100644 index 0000000..d2dc19c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataResponse.js @@ -0,0 +1,69 @@ +"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.DescribeSiteMonitorDataResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeSiteMonitorDataResponseBody_1 = require("./DescribeSiteMonitorDataResponseBody"); +class DescribeSiteMonitorDataResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeSiteMonitorDataResponseBody_1.DescribeSiteMonitorDataResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorDataResponse = DescribeSiteMonitorDataResponse; +//# sourceMappingURL=DescribeSiteMonitorDataResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataResponse.js.map new file mode 100644 index 0000000..05a7836 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSiteMonitorDataResponse.js","sourceRoot":"","sources":["../../src/models/DescribeSiteMonitorDataResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,+FAA4F;AAG5F,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAI9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,yEAAmC;SAC1C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,0EAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataResponseBody.d.ts new file mode 100644 index 0000000..963aab1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataResponseBody.d.ts @@ -0,0 +1,63 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeSiteMonitorDataResponseBody extends $dara.Model { + /** + * @remarks + * The responses code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The monitoring data. + * + * @example + * [{"Maximum":247,"Mimimum":61,"Average":154,"userId":"127067667954****","taskId":"49f7b317-7645-4cc9-94fd-ea42e522****","timestamp":1551581760000}] + */ + data?: string; + /** + * @remarks + * The returned message. + * + * @example + * Successful + */ + message?: string; + /** + * @remarks + * The pagination token. + * + * @example + * ea42e5220930ea42e522**** + */ + nextToken?: string; + /** + * @remarks + * The request ID. + * + * @example + * 3febb181-0d98-4af9-8b04-7faf36b048b9 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: true: The request was successful. false: The request failed. + * + * @example + * true + */ + success?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataResponseBody.js new file mode 100644 index 0000000..0574551 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataResponseBody.js @@ -0,0 +1,68 @@ +"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.DescribeSiteMonitorDataResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeSiteMonitorDataResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + data: 'Data', + message: 'Message', + nextToken: 'NextToken', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + data: 'string', + message: 'string', + nextToken: 'string', + requestId: 'string', + success: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorDataResponseBody = DescribeSiteMonitorDataResponseBody; +//# sourceMappingURL=DescribeSiteMonitorDataResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataResponseBody.js.map new file mode 100644 index 0000000..6a95047 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorDataResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSiteMonitorDataResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeSiteMonitorDataResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IAmDlE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAhFD,kFAgFC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListRequest.d.ts new file mode 100644 index 0000000..8c15afb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListRequest.d.ts @@ -0,0 +1,61 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeSiteMonitorISPCityListRequest extends $dara.Model { + /** + * @remarks + * The name or ID of the city. + * + * > City names support fuzzy match. + */ + city?: string; + /** + * @remarks + * Specifies whether to query IPv4 probes. Valid values: + * + * * true (default): IPv4 probes are queried. + * * false: IPv4 probes are not queried. + * + * @example + * true + */ + IPV4?: boolean; + /** + * @remarks + * Specifies whether to query IPv6 probes. Valid values: + * + * * true (default): IPv6 probes are queried. + * * false: IPv6 probes are not queried. + * + * @example + * true + */ + IPV6?: boolean; + /** + * @remarks + * The name or ID of the carrier. + * + * > Carrier names support fuzzy match. + */ + isp?: string; + regionId?: string; + /** + * @remarks + * Specifies whether to return all detection points. Valid values: + * + * * true (default): returns all detection points. + * * false: returns only available detection points. + * + * @example + * true + */ + viewAll?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListRequest.js new file mode 100644 index 0000000..30bff3c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListRequest.js @@ -0,0 +1,68 @@ +"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.DescribeSiteMonitorISPCityListRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeSiteMonitorISPCityListRequest extends $dara.Model { + static names() { + return { + city: 'City', + IPV4: 'IPV4', + IPV6: 'IPV6', + isp: 'Isp', + regionId: 'RegionId', + viewAll: 'ViewAll', + }; + } + static types() { + return { + city: 'string', + IPV4: 'boolean', + IPV6: 'boolean', + isp: 'string', + regionId: 'string', + viewAll: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorISPCityListRequest = DescribeSiteMonitorISPCityListRequest; +//# sourceMappingURL=DescribeSiteMonitorIspcityListRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListRequest.js.map new file mode 100644 index 0000000..6972c8f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSiteMonitorIspcityListRequest.js","sourceRoot":"","sources":["../../src/models/DescribeSiteMonitorIspcityListRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qCAAsC,SAAQ,KAAK,CAAC,KAAK;IAiDpE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,GAAG,EAAE,KAAK;YACV,QAAQ,EAAE,UAAU;YACpB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,SAAS;YACf,GAAG,EAAE,QAAQ;YACb,QAAQ,EAAE,QAAQ;YAClB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA9ED,sFA8EC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListResponse.d.ts new file mode 100644 index 0000000..9b12d97 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeSiteMonitorISPCityListResponseBody } from "./DescribeSiteMonitorIspcityListResponseBody"; +export declare class DescribeSiteMonitorISPCityListResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeSiteMonitorISPCityListResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListResponse.js new file mode 100644 index 0000000..0143202 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListResponse.js @@ -0,0 +1,69 @@ +"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.DescribeSiteMonitorISPCityListResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeSiteMonitorIspcityListResponseBody_1 = require("./DescribeSiteMonitorIspcityListResponseBody"); +class DescribeSiteMonitorISPCityListResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeSiteMonitorIspcityListResponseBody_1.DescribeSiteMonitorISPCityListResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorISPCityListResponse = DescribeSiteMonitorISPCityListResponse; +//# sourceMappingURL=DescribeSiteMonitorIspcityListResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListResponse.js.map new file mode 100644 index 0000000..2f29202 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSiteMonitorIspcityListResponse.js","sourceRoot":"","sources":["../../src/models/DescribeSiteMonitorIspcityListResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,6GAA0G;AAG1G,MAAa,sCAAuC,SAAQ,KAAK,CAAC,KAAK;IAIrE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,uFAA0C;SACjD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,wFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListResponseBody.d.ts new file mode 100644 index 0000000..43b7b54 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListResponseBody.d.ts @@ -0,0 +1,158 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeSiteMonitorISPCityListResponseBodyIspCityListIspCityIPPool extends $dara.Model { + IPPool?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorISPCityListResponseBodyIspCityListIspCity extends $dara.Model { + area_en?: string; + area_zh_cN?: string; + /** + * @remarks + * The city ID. + * + * @example + * 4 + */ + city?: string; + cityName_en?: string; + cityName_zh_cN?: string; + /** + * @remarks + * The country name. + * + * > This parameter is valid only on the China site (aliyun.com). + * + * @example + * 629 + */ + country?: string; + country_en?: string; + country_zh_cN?: string; + /** + * @remarks + * The IP address pool. + */ + IPPool?: DescribeSiteMonitorISPCityListResponseBodyIspCityListIspCityIPPool; + /** + * @remarks + * The number of IPv4 probes. + * + * @example + * 4 + */ + IPV4ProbeCount?: string; + /** + * @remarks + * The number of IPv6 probes. + * + * @example + * 3 + */ + IPV6ProbeCount?: string; + /** + * @remarks + * The carrier ID. + * + * @example + * 232 + */ + isp?: string; + ispName_en?: string; + ispName_zh_cN?: string; + /** + * @remarks + * The province name. + * + * @example + * 264 + */ + region?: string; + region_en?: string; + region_zh_cN?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorISPCityListResponseBodyIspCityList extends $dara.Model { + ispCity?: DescribeSiteMonitorISPCityListResponseBodyIspCityListIspCity[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorISPCityListResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The queried detection points. + */ + ispCityList?: DescribeSiteMonitorISPCityListResponseBodyIspCityList; + /** + * @remarks + * The returned message. + * + * @example + * successful + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * B35D7D84-547B-4E61-B909-48A1F8A0C756 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListResponseBody.js new file mode 100644 index 0000000..8c9d77f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListResponseBody.js @@ -0,0 +1,167 @@ +"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.DescribeSiteMonitorISPCityListResponseBody = exports.DescribeSiteMonitorISPCityListResponseBodyIspCityList = exports.DescribeSiteMonitorISPCityListResponseBodyIspCityListIspCity = exports.DescribeSiteMonitorISPCityListResponseBodyIspCityListIspCityIPPool = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeSiteMonitorISPCityListResponseBodyIspCityListIspCityIPPool extends $dara.Model { + static names() { + return { + IPPool: 'IPPool', + }; + } + static types() { + return { + IPPool: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.IPPool)) { + $dara.Model.validateArray(this.IPPool); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorISPCityListResponseBodyIspCityListIspCityIPPool = DescribeSiteMonitorISPCityListResponseBodyIspCityListIspCityIPPool; +class DescribeSiteMonitorISPCityListResponseBodyIspCityListIspCity extends $dara.Model { + static names() { + return { + area_en: 'Area.en', + area_zh_cN: 'Area.zh_CN', + city: 'City', + cityName_en: 'CityName.en', + cityName_zh_cN: 'CityName.zh_CN', + country: 'Country', + country_en: 'Country.en', + country_zh_cN: 'Country.zh_CN', + IPPool: 'IPPool', + IPV4ProbeCount: 'IPV4ProbeCount', + IPV6ProbeCount: 'IPV6ProbeCount', + isp: 'Isp', + ispName_en: 'IspName.en', + ispName_zh_cN: 'IspName.zh_CN', + region: 'Region', + region_en: 'Region.en', + region_zh_cN: 'Region.zh_CN', + }; + } + static types() { + return { + area_en: 'string', + area_zh_cN: 'string', + city: 'string', + cityName_en: 'string', + cityName_zh_cN: 'string', + country: 'string', + country_en: 'string', + country_zh_cN: 'string', + IPPool: DescribeSiteMonitorISPCityListResponseBodyIspCityListIspCityIPPool, + IPV4ProbeCount: 'string', + IPV6ProbeCount: 'string', + isp: 'string', + ispName_en: 'string', + ispName_zh_cN: 'string', + region: 'string', + region_en: 'string', + region_zh_cN: 'string', + }; + } + validate() { + if (this.IPPool && typeof this.IPPool.validate === 'function') { + this.IPPool.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorISPCityListResponseBodyIspCityListIspCity = DescribeSiteMonitorISPCityListResponseBodyIspCityListIspCity; +class DescribeSiteMonitorISPCityListResponseBodyIspCityList extends $dara.Model { + static names() { + return { + ispCity: 'IspCity', + }; + } + static types() { + return { + ispCity: { 'type': 'array', 'itemType': DescribeSiteMonitorISPCityListResponseBodyIspCityListIspCity }, + }; + } + validate() { + if (Array.isArray(this.ispCity)) { + $dara.Model.validateArray(this.ispCity); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorISPCityListResponseBodyIspCityList = DescribeSiteMonitorISPCityListResponseBodyIspCityList; +class DescribeSiteMonitorISPCityListResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + ispCityList: 'IspCityList', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + ispCityList: DescribeSiteMonitorISPCityListResponseBodyIspCityList, + message: 'string', + requestId: 'string', + success: 'string', + }; + } + validate() { + if (this.ispCityList && typeof this.ispCityList.validate === 'function') { + this.ispCityList.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorISPCityListResponseBody = DescribeSiteMonitorISPCityListResponseBody; +//# sourceMappingURL=DescribeSiteMonitorIspcityListResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListResponseBody.js.map new file mode 100644 index 0000000..cd9eec8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorIspcityListResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSiteMonitorIspcityListResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeSiteMonitorIspcityListResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kEAAmE,SAAQ,KAAK,CAAC,KAAK;IAEjG,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,EAAE,MAAM,EA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,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,qDAAqD;YAClE,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,WAAW,IAAI,OAAQ,IAAI,CAAC,WAAmB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YAC/E,IAAI,CAAC,WAAmB,CAAC,QAAQ,EAAE,CAAC;QACvC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,gGAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListRequest.d.ts new file mode 100644 index 0000000..b174aef --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListRequest.d.ts @@ -0,0 +1,81 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeSiteMonitorListRequest extends $dara.Model { + /** + * @remarks + * Task network type. Valid values: + * + * - PC: Cable Network + * + * - MOBILE: Mobile Cellular Network + * + * - FC: Alibaba Cloud VPC Network + * + * @example + * PC + */ + agentGroup?: string; + /** + * @remarks + * The keyword to be matched. + * + * > You can search for tasks by name or address. Fuzzy search is supported. + * + * @example + * site + */ + keyword?: string; + /** + * @remarks + * The page number. Default value: 1. + * + * @example + * 1 + */ + page?: number; + /** + * @remarks + * The number of entries per page. Default value: 10. + * + * @example + * 10 + */ + pageSize?: number; + regionId?: string; + /** + * @remarks + * The ID of the site monitoring task. + * + * @example + * a1ecd34a-8157-44d9-b060-14950837**** + */ + taskId?: string; + /** + * @remarks + * The task status. Valid values: + * + * * 1: The task is enabled. + * * 2: The task is disabled. + * + * @example + * 1 + */ + taskState?: string; + /** + * @remarks + * The protocol that is used by the site monitoring task. Valid values: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP. + * + * @example + * HTTP + */ + taskType?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListRequest.js new file mode 100644 index 0000000..5c079a5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListRequest.js @@ -0,0 +1,72 @@ +"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.DescribeSiteMonitorListRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeSiteMonitorListRequest extends $dara.Model { + static names() { + return { + agentGroup: 'AgentGroup', + keyword: 'Keyword', + page: 'Page', + pageSize: 'PageSize', + regionId: 'RegionId', + taskId: 'TaskId', + taskState: 'TaskState', + taskType: 'TaskType', + }; + } + static types() { + return { + agentGroup: 'string', + keyword: 'string', + page: 'number', + pageSize: 'number', + regionId: 'string', + taskId: 'string', + taskState: 'string', + taskType: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorListRequest = DescribeSiteMonitorListRequest; +//# sourceMappingURL=DescribeSiteMonitorListRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListRequest.js.map new file mode 100644 index 0000000..755d5c6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSiteMonitorListRequest.js","sourceRoot":"","sources":["../../src/models/DescribeSiteMonitorListRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAqE7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,OAAO,EAAE,SAAS;YAClB,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,WAAW;YACtB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,OAAO,EAAE,QAAQ;YACjB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,QAAQ;YACnB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtGD,wEAsGC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListResponse.d.ts new file mode 100644 index 0000000..428dc73 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeSiteMonitorListResponseBody } from "./DescribeSiteMonitorListResponseBody"; +export declare class DescribeSiteMonitorListResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeSiteMonitorListResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListResponse.js new file mode 100644 index 0000000..0c10520 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListResponse.js @@ -0,0 +1,69 @@ +"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.DescribeSiteMonitorListResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeSiteMonitorListResponseBody_1 = require("./DescribeSiteMonitorListResponseBody"); +class DescribeSiteMonitorListResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeSiteMonitorListResponseBody_1.DescribeSiteMonitorListResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorListResponse = DescribeSiteMonitorListResponse; +//# sourceMappingURL=DescribeSiteMonitorListResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListResponse.js.map new file mode 100644 index 0000000..36a43e2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSiteMonitorListResponse.js","sourceRoot":"","sources":["../../src/models/DescribeSiteMonitorListResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,+FAA4F;AAG5F,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAI9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,yEAAmC;SAC1C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,0EAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListResponseBody.d.ts new file mode 100644 index 0000000..e8881cd --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListResponseBody.d.ts @@ -0,0 +1,572 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJsonAssertionsAssertions extends $dara.Model { + /** + * @remarks + * The comparison operator of the assertion. Valid values: + * + * * contains: contains + * * doesNotContain: does not contain + * * matches: matches regular expressions + * * doesNotMatch: does not match regular expressions + * * is: equal to a numeric value or matches a character + * * isNot: not equal to + * * lessThan: less than + * * moreThan: greater than + * + * @example + * lessThan + */ + operator?: string; + /** + * @remarks + * The parsing path of the assertion. + * + * * If the assertion type is `body_json`, the path is `json path`. + * * If the assertion type is `body_xml`, the path is `xml path`. + * + * @example + * json path + */ + property?: string; + /** + * @remarks + * The numeric value or character used for matching. + * + * @example + * 1000 + */ + target?: string; + /** + * @remarks + * The assertion type. Valid values: + * + * * response_time: checks whether the response time meets expectations. + * * status_code: checks whether the HTTP status code meets expectations. + * * header: checks whether the fields in the response header meet expectations. + * * body_text: checks whether the content in the response body meets expectations by using text matching. + * * body_json: checks whether the content in the response body meets expectations by using JSON parsing (JSONPath). + * * body_xml: checks whether the content in the response body meets expectations by using XML parsing (XPath). + * + * @example + * response_time + */ + type?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJsonAssertions extends $dara.Model { + assertions?: DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJsonAssertionsAssertions[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJson extends $dara.Model { + /** + * @remarks + * The acceptable status code. + * + * > We recommend that you configure assertions. + * + * @example + * 400 + */ + acceptableResponseCode?: string; + /** + * @remarks + * The assertions. + */ + assertions?: DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJsonAssertions; + /** + * @remarks + * The number of retries after a DNS failure occurred. + * + * @example + * 3 + */ + attempts?: number; + /** + * @remarks + * Indicates whether the security authentication feature is enabled. Valid values: + * + * * 0: The feature is enabled. + * * 1: The feature is disabled. + * + * @example + * 1 + */ + authentication?: number; + /** + * @remarks + * Indicates whether the certificate is verified. Valid values: + * + * * false (default): The certificate is not verified. + * * true: The certificate is verified. + * + * @example + * false + */ + certVerify?: boolean; + /** + * @remarks + * The cookie of the HTTP request. + * + * @example + * lang=en + */ + cookie?: string; + /** + * @remarks + * Indicates whether MTR is automatically used to diagnose network issues if a task fails. Valid values: + * + * * false (default): MTR is not automatically used to diagnose network issues if a task fails. + * * true: MTR is automatically used to diagnose network issues if a task fails. + * + * @example + * false + */ + diagnosisMtr?: boolean; + /** + * @remarks + * Indicates whether ping requests are automatically sent to detect network latency if a detection task fails. Valid values: + * + * * false (default): Ping requests are not automatically sent to detect network latency if a detection task fails. + * * true: Ping requests are automatically sent to detect network latency if a detection task fails. + * + * @example + * false + */ + diagnosisPing?: boolean; + /** + * @remarks + * The relationship between the list of expected aliases or IP addresses and the list of DNS results. Valid values: + * + * * IN_DNS: The list of expected values is a subset of the list of DNS results. + * * DNS_IN: The list of DNS results is a subset of the list of expected values. + * * EQUAL: The list of DNS results is the same as the list of expected values. + * * ANY: The list of DNS results intersects with the list of expected values. + * + * @example + * IN_DNS + */ + dnsMatchRule?: string; + /** + * @remarks + * The domain name or IP address of the DNS server. + * + * @example + * 192.168.XX.XX + */ + dnsServer?: string; + /** + * @remarks + * The type of the DNS record. This parameter is returned only if the TaskType parameter is set to DNS. Valid values: + * + * * A (default): a record that specifies an IP address related to the specified host name or domain name. + * * CNAME: a record that maps multiple domain names to a domain name. + * * NS: a record that specifies a DNS server used to parse domain names. + * * MX: a record that links domain names to the address of a mail server. + * * TXT: a record that stores the text information of host name or domain names. The text must be 1 to 512 bytes in length. The TXT record serves as a Sender Policy Framework (SPF) record to fight against spam. + * * AAAA: a record that maps a domain name to the relevant IPv6 address. + * + * @example + * A + */ + dnsType?: string; + /** + * @remarks + * Indicates whether the DNS server of the carrier is used. + * + * * true (default): The DNS server of the carrier is used. + * * false: The DNS server of the carrier is not used. The default DNS server or the specified DNS server is used. + * + * @example + * true + */ + enableOperatorDns?: boolean; + /** + * @remarks + * The packet loss rate. + * + * > This parameter is returned only if the TaskType parameter is set to PING. + * + * @example + * 0.5 + */ + failureRate?: number; + /** + * @remarks + * The header of the HTTP request. An HTTP header is a key-value pair in which the key and the value are separated by a colon (:). The format is `key1:value1`. Each HTTP header occupies a line. + * + * @example + * testKey:testValue + */ + header?: string; + /** + * @remarks + * The HTTP request method. Valid values: + * + * * get + * * post + * * head + * + * @example + * get + */ + httpMethod?: string; + /** + * @remarks + * Indicates whether the password is decoded by using the Base64 algorithm. Valid values: + * + * * true: The password is decoded by using the Base64 algorithm. + * * false (default): The password is not decoded by using the Base64 algorithm. + * + * @example + * false + */ + isBase64Encode?: string; + /** + * @remarks + * Indicates whether the alert rule is included. Valid values: + * + * * 0: The alert rule is included. + * * 1: The alert rule is not included. + * + * @example + * 0 + */ + matchRule?: number; + /** + * @remarks + * The password of the SMTP, POP3, or FTP protocol. + * + * @example + * 123**** + */ + password?: string; + /** + * @remarks + * The number of hops for the PING protocol. + * + * @example + * 20 + */ + pingNum?: number; + /** + * @remarks + * The port number of the TCP, UDP, SMTP, or POP3 protocol. + * + * @example + * 80 + */ + port?: number; + /** + * @remarks + * The protocol type of DNS detection. Valid values: + * + * * udp (default) + * * tcp + * * tcp-tls + * + * @example + * udp + */ + protocol?: string; + /** + * @remarks + * Indicates whether the PROXY protocol is enabled. Valid values: + * + * * false (default): The PROXY protocol is disabled. + * * true: The PROXY protocol is enabled. + * + * @example + * false + */ + proxyProtocol?: boolean; + /** + * @remarks + * The content of the HTTP request. + * + * @example + * cf0f85 + */ + requestContent?: string; + /** + * @remarks + * The format of the HTTP request. Valid values: + * + * * hex: hexadecimal + * * txt: text + * + * @example + * hex + */ + requestFormat?: string; + /** + * @remarks + * The response to the HTTP request. + * + * * Hexadecimal format: If the request content is a byte string and cannot be represented in printable characters, you can convert the byte string to printable characters in the hexadecimal format. If you convert the byte string to printable characters in the hexadecimal format, one byte is converted to two hexadecimal characters. For example, (byte)1 is converted to `01` and (byte)27 is converted to `1B`. If the request content is a binary array in the Java format, for example, `{(byte)1, (byte)27}`, you can convert the binary array to `011b` or `011B`. Hexadecimal characters are not case-sensitive in site monitoring tasks. You can enter `011B` in the request content and set the request_format parameter to hex. + * * Text format: Common text refers to strings that consist of printable characters. + * + * @example + * cf0f85 + */ + responseContent?: string; + /** + * @remarks + * The format of the HTTP response. Valid values: + * + * * hex: hexadecimal + * * txt: text + * + * @example + * hex + */ + responseFormat?: string; + /** + * @remarks + * The number of times a failed detection request is retried. + * + * @example + * 1 + */ + retryDelay?: number; + /** + * @remarks + * The timeout period. Unit: milliseconds. + * + * @example + * 3000 + */ + timeOut?: number; + /** + * @remarks + * Indicates whether redirects are followed if the status code 301 or 302 is returned. Valid values: + * + * * true: Redirects are not followed. + * * false (default): Redirects are followed. + * + * @example + * false + */ + unfollowRedirect?: boolean; + /** + * @remarks + * The username of the FTP, SMTP, or POP3 protocol. + * + * @example + * testUser + */ + username?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitor extends $dara.Model { + /** + * @remarks + * The URL or IP address that is monitored by the site monitoring task. + * + * @example + * https://aliyun.com + */ + address?: string; + /** + * @remarks + * The detection point type. Valid values: + * + * * PC + * * MOBILE + * + * @example + * PC + */ + agentGroup?: string; + /** + * @remarks + * The time when the site monitoring task was created. + * + * @example + * 2021-11-01 11:05:18 + */ + createTime?: string; + /** + * @remarks + * The interval at which detection requests are sent. Unit: minutes. + * + * @example + * 1 + */ + interval?: string; + /** + * @remarks + * The extended options of the site monitoring task. The options vary based on the specified protocol. For more information, see [CreateSiteMonitor](https://help.aliyun.com/document_detail/115048.html). + */ + optionsJson?: DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJson; + /** + * @remarks + * The ID of the site monitoring task. + * + * @example + * f5783760-1b39-4b6b-80e8-453d962a**** + */ + taskId?: string; + /** + * @remarks + * The name of the site monitoring task. + * + * @example + * 域名检测_example.com.cn + */ + taskName?: string; + /** + * @remarks + * The task status. Valid values: + * + * * 1: The task is enabled. + * * 2: The task is disabled. + * + * @example + * 1 + */ + taskState?: string; + /** + * @remarks + * The protocol that is used by the site monitoring task. Valid values: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP. + * + * @example + * TCP + */ + taskType?: string; + /** + * @remarks + * The time when the site monitoring task was updated. + * + * @example + * 2022-03-08 17:14:31 + */ + updateTime?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorListResponseBodySiteMonitors extends $dara.Model { + siteMonitor?: DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitor[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorListResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * successful + */ + message?: string; + /** + * @remarks + * The page number. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * @example + * 10 + */ + pageSize?: number; + /** + * @remarks + * The request ID. + * + * @example + * A80DB41C-AF6C-50E1-ADB5-66DCBA3D266B + */ + requestId?: string; + /** + * @remarks + * The site monitoring tasks that are returned. + */ + siteMonitors?: DescribeSiteMonitorListResponseBodySiteMonitors; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + /** + * @remarks + * The total number of entries returned. + * + * @example + * 1 + */ + totalCount?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListResponseBody.js new file mode 100644 index 0000000..6ce011e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListResponseBody.js @@ -0,0 +1,264 @@ +"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.DescribeSiteMonitorListResponseBody = exports.DescribeSiteMonitorListResponseBodySiteMonitors = exports.DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitor = exports.DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJson = exports.DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJsonAssertions = exports.DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJsonAssertionsAssertions = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJsonAssertionsAssertions extends $dara.Model { + static names() { + return { + operator: 'operator', + property: 'property', + target: 'target', + type: 'type', + }; + } + static types() { + return { + operator: 'string', + property: 'string', + target: 'string', + type: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJsonAssertionsAssertions = DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJsonAssertionsAssertions; +class DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJsonAssertions extends $dara.Model { + static names() { + return { + assertions: 'assertions', + }; + } + static types() { + return { + assertions: { 'type': 'array', 'itemType': DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJsonAssertionsAssertions }, + }; + } + validate() { + if (Array.isArray(this.assertions)) { + $dara.Model.validateArray(this.assertions); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJsonAssertions = DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJsonAssertions; +class DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJson extends $dara.Model { + static names() { + return { + acceptableResponseCode: 'acceptable_response_code', + assertions: 'assertions', + attempts: 'attempts', + authentication: 'authentication', + certVerify: 'cert_verify', + cookie: 'cookie', + diagnosisMtr: 'diagnosis_mtr', + diagnosisPing: 'diagnosis_ping', + dnsMatchRule: 'dns_match_rule', + dnsServer: 'dns_server', + dnsType: 'dns_type', + enableOperatorDns: 'enable_operator_dns', + failureRate: 'failure_rate', + header: 'header', + httpMethod: 'http_method', + isBase64Encode: 'isBase64Encode', + matchRule: 'match_rule', + password: 'password', + pingNum: 'ping_num', + port: 'port', + protocol: 'protocol', + proxyProtocol: 'proxy_protocol', + requestContent: 'request_content', + requestFormat: 'request_format', + responseContent: 'response_content', + responseFormat: 'response_format', + retryDelay: 'retry_delay', + timeOut: 'time_out', + unfollowRedirect: 'unfollow_redirect', + username: 'username', + }; + } + static types() { + return { + acceptableResponseCode: 'string', + assertions: DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJsonAssertions, + attempts: 'number', + authentication: 'number', + certVerify: 'boolean', + cookie: 'string', + diagnosisMtr: 'boolean', + diagnosisPing: 'boolean', + dnsMatchRule: 'string', + dnsServer: 'string', + dnsType: 'string', + enableOperatorDns: 'boolean', + failureRate: 'number', + header: 'string', + httpMethod: 'string', + isBase64Encode: 'string', + matchRule: 'number', + password: 'string', + pingNum: 'number', + port: 'number', + protocol: 'string', + proxyProtocol: 'boolean', + requestContent: 'string', + requestFormat: 'string', + responseContent: 'string', + responseFormat: 'string', + retryDelay: 'number', + timeOut: 'number', + unfollowRedirect: 'boolean', + username: 'string', + }; + } + validate() { + if (this.assertions && typeof this.assertions.validate === 'function') { + this.assertions.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJson = DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJson; +class DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitor extends $dara.Model { + static names() { + return { + address: 'Address', + agentGroup: 'AgentGroup', + createTime: 'CreateTime', + interval: 'Interval', + optionsJson: 'OptionsJson', + taskId: 'TaskId', + taskName: 'TaskName', + taskState: 'TaskState', + taskType: 'TaskType', + updateTime: 'UpdateTime', + }; + } + static types() { + return { + address: 'string', + agentGroup: 'string', + createTime: 'string', + interval: 'string', + optionsJson: DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJson, + taskId: 'string', + taskName: 'string', + taskState: 'string', + taskType: 'string', + updateTime: 'string', + }; + } + validate() { + if (this.optionsJson && typeof this.optionsJson.validate === 'function') { + this.optionsJson.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitor = DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitor; +class DescribeSiteMonitorListResponseBodySiteMonitors extends $dara.Model { + static names() { + return { + siteMonitor: 'SiteMonitor', + }; + } + static types() { + return { + siteMonitor: { 'type': 'array', 'itemType': DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitor }, + }; + } + validate() { + if (Array.isArray(this.siteMonitor)) { + $dara.Model.validateArray(this.siteMonitor); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorListResponseBodySiteMonitors = DescribeSiteMonitorListResponseBodySiteMonitors; +class DescribeSiteMonitorListResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + requestId: 'RequestId', + siteMonitors: 'SiteMonitors', + success: 'Success', + totalCount: 'TotalCount', + }; + } + static types() { + return { + code: 'string', + message: 'string', + pageNumber: 'number', + pageSize: 'number', + requestId: 'string', + siteMonitors: DescribeSiteMonitorListResponseBodySiteMonitors, + success: 'string', + totalCount: 'number', + }; + } + validate() { + if (this.siteMonitors && typeof this.siteMonitors.validate === 'function') { + this.siteMonitors.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorListResponseBody = DescribeSiteMonitorListResponseBody; +//# sourceMappingURL=DescribeSiteMonitorListResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListResponseBody.js.map new file mode 100644 index 0000000..bcd90a8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorListResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSiteMonitorListResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeSiteMonitorListResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yFAA0F,SAAQ,KAAK,CAAC,KAAK;IAoDxH,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,QAAQ;SACf,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA7ED,8LA6EC;AAED,MAAa,+EAAgF,SAAQ,KAAK,CAAC,KAAK;IAE9G,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;SACzB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,yFAAyF,EAAE;SACvI,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;YAClC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC7C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxBD,0K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AAY;YACxB,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;YACtB,YAAY,EAAE,cAAc;YAC5B,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;SACzB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,QAAQ;YACnB,YAAY,EAAE,+CAA+C;YAC7D,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;SACrB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,YAAY,IAAI,OAAQ,IAAI,CAAC,YAAoB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjF,IAAI,CAAC,YAAoB,CAAC,QAAQ,EAAE,CAAC;QACxC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAvGD,kFAuGC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogRequest.d.ts new file mode 100644 index 0000000..47d9f2c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogRequest.d.ts @@ -0,0 +1,116 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeSiteMonitorLogRequest extends $dara.Model { + /** + * @example + * Chrome + */ + browser?: string; + browserInfo?: string; + /** + * @remarks + * The city identification code. + * + * @example + * 546 + */ + city?: string; + /** + * @example + * laptop + */ + device?: string; + /** + * @remarks + * The end of the time range to query. Valid values: + * + * * UNIX timestamp: the number of milliseconds that have elapsed since 00:00:00 Thursday, January 1, 1970 + * * UTC time: the UTC time that follows the YYYY-MM-DDThh:mm:ssZ format + * + * > We recommend that you use UNIX timestamps to prevent time zone-related issues. + * + * @example + * 1638422475687 + */ + endTime?: string; + /** + * @remarks + * The filter condition. + * + * You can specify a simple expression, for example, `TotalTime>100`. In this case, the operation returns only the data for instant test tasks whose total response time exceeds 100 milliseconds. + * + * @example + * TotalTime>100 + */ + filter?: string; + /** + * @remarks + * The carrier identification code. + * + * @example + * 465 + */ + isp?: string; + /** + * @remarks + * The number of entries to return on each page. Valid values: 1 to 1440. + * + * @example + * 1000 + */ + length?: number; + /** + * @remarks + * The name of the metric. + * + * Only the `ProbeLog` metric is supported. + * + * @example + * ProbeLog + */ + metricName?: string; + /** + * @remarks + * The token that is used to initiate the next request if the response of the current request is truncated. You can use the token to initiate another request and obtain the remaining records.`` + * + * @example + * IWBjqMYSy0is7zSMGu16**** + */ + nextToken?: string; + regionId?: string; + /** + * @remarks + * The start of the time range to query. The following formats are supported: + * + * * UNIX timestamp: the number of milliseconds that have elapsed since 00:00:00 Thursday, January 1, 1970 + * * UTC time: the UTC time that follows the YYYY-MM-DDThh:mm:ssZ format + * + * > + * + * * The specified time range includes the end time and excludes the start time. The start time must be earlier than the end time.\\ + * We recommend that you use UNIX timestamps to prevent time zone-related issues. + * + * @example + * 1638422474389 + */ + startTime?: string; + /** + * @remarks + * The IDs of the instant test tasks. Separate multiple task IDs with commas (,). + * + * This parameter is required. + * + * @example + * afa5c3ce-f944-4363-9edb-ce919a29**** + */ + taskIds?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogRequest.js new file mode 100644 index 0000000..2584660 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogRequest.js @@ -0,0 +1,82 @@ +"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.DescribeSiteMonitorLogRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeSiteMonitorLogRequest extends $dara.Model { + static names() { + return { + browser: 'Browser', + browserInfo: 'BrowserInfo', + city: 'City', + device: 'Device', + endTime: 'EndTime', + filter: 'Filter', + isp: 'Isp', + length: 'Length', + metricName: 'MetricName', + nextToken: 'NextToken', + regionId: 'RegionId', + startTime: 'StartTime', + taskIds: 'TaskIds', + }; + } + static types() { + return { + browser: 'string', + browserInfo: 'string', + city: 'string', + device: 'string', + endTime: 'string', + filter: 'string', + isp: 'string', + length: 'number', + metricName: 'string', + nextToken: 'string', + regionId: 'string', + startTime: 'string', + taskIds: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorLogRequest = DescribeSiteMonitorLogRequest; +//# sourceMappingURL=DescribeSiteMonitorLogRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogRequest.js.map new file mode 100644 index 0000000..785367a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSiteMonitorLogRequest.js","sourceRoot":"","sources":["../../src/models/DescribeSiteMonitorLogRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IAwG5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,WAAW,EAAE,aAAa;YAC1B,IAAI,EAAE,MAAM;YACZ,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,KAAK;YACV,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,WAAW,EAAE,QAAQ;YACrB,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE,QAAQ;YACjB,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,QAAQ;YACb,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;YACnB,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnJD,sEAmJC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogResponse.d.ts new file mode 100644 index 0000000..63a2d42 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeSiteMonitorLogResponseBody } from "./DescribeSiteMonitorLogResponseBody"; +export declare class DescribeSiteMonitorLogResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeSiteMonitorLogResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogResponse.js new file mode 100644 index 0000000..b2a8448 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogResponse.js @@ -0,0 +1,69 @@ +"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.DescribeSiteMonitorLogResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeSiteMonitorLogResponseBody_1 = require("./DescribeSiteMonitorLogResponseBody"); +class DescribeSiteMonitorLogResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeSiteMonitorLogResponseBody_1.DescribeSiteMonitorLogResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorLogResponse = DescribeSiteMonitorLogResponse; +//# sourceMappingURL=DescribeSiteMonitorLogResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogResponse.js.map new file mode 100644 index 0000000..4a25835 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSiteMonitorLogResponse.js","sourceRoot":"","sources":["../../src/models/DescribeSiteMonitorLogResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,6FAA0F;AAG1F,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAI7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,uEAAkC;SACzC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,wEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogResponseBody.d.ts new file mode 100644 index 0000000..81ee00a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogResponseBody.d.ts @@ -0,0 +1,68 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeSiteMonitorLogResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * ** + * + * **Description** The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The logs of the instant test tasks. + * + * @example + * [{\\\\"redirectCount\\\\":0.0,\\\\"SSLConnectTime\\\\":0.0,\\\\"pingDetail\\\\":\\\\"\\\\",\\\\"HTTPConnectTime\\\\":0.0,\\\\"isp\\\\":\\\\"465\\\\",\\\\"errorCode\\\\":611,\\\\"ispCN\\\\":\\\\"Alibaba\\\\",\\\\"resolution\\\\":\\\\"\\\\",\\\\"areaEN\\\\":\\\\"HuaBei\\\\",\\\\"taskEndTimestamp\\\\":1638422475687,\\\\"targetIspEN\\\\":\\\\"\\\\",\\\\"TotalTime\\\\":1.0,\\\\"taskStartTimestamp\\\\":1638422474389,\\\\"countryCN\\\\":\\\\"China\\\\",\\\\"provinceEN\\\\":\\\\"Beijing\\\\",\\\\"countryEN\\\\":\\\\"China\\\\",\\\\"targetCityEN\\\\":\\\\"\\\\",\\\\"curlConnectTime\\\\":0.0,\\\\"ips\\\\":\\\\"\\\\",\\\\"route\\\\":\\\\"\\\\",\\\\"tcpConnectTime\\\\":0.0,\\\\"cityEN\\\\":\\\\"Beijing\\\\",\\\\"HTTPDownloadSpeed\\\\":0.0,\\\\"HTTPDownloadTime\\\\":0.0,\\\\"HTTPResponseCode\\\\":0.0,\\\\"areaCN\\\\":\\\\"North China\\\\",\\\\"city\\\\":\\\\"546\\\\",\\\\"expection\\\\":\\\\"\\\\",\\\\"suorceIp\\\\":\\\\"192.168.XX.XX \\\\",\\\\"ispEN\\\\":\\\\"Alibaba\\\\",\\\\"HTTPDNSTime\\\\":1.0,\\\\"targetIsp\\\\":\\\\"\\\\",\\\\"curlStarttransferTime\\\\":0.0,\\\\"provinceCN\\\\":\\\\"Beijing\\\\",\\\\"timestamp\\\\":1638422474000,\\\\"redirectTime\\\\":0.0,\\\\"targetCity\\\\":\\\\"\\\\", \\\\"expect\\\\":\\\\"\\\\",\\\\"HTTPDownloadSize\\\\":0.0,\\\\"localDns\\\\":\\\\"192.168.XX.XX\\\\",\\\\"cityCN\\\\":\\\\"Beijing\\\\",\\\\"taskId\\\\":\\\\"afa5c3ce-f944-4363-9edb-ce919a29\\*\\*\\*\\*\\\\"}] + */ + data?: string; + /** + * @remarks + * The returned message. + * + * @example + * successful + */ + message?: string; + /** + * @remarks + * A pagination token. It can be used in the next request to retrieve a new page of results. + * + * @example + * IWBjqMYSy0is7zSMGu16**** + */ + nextToken?: string; + /** + * @remarks + * The request ID. + * + * @example + * 67F646FA-ED8A-58C2-B461-451DB52C8B14 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogResponseBody.js new file mode 100644 index 0000000..840f0c5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogResponseBody.js @@ -0,0 +1,68 @@ +"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.DescribeSiteMonitorLogResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeSiteMonitorLogResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + data: 'Data', + message: 'Message', + nextToken: 'NextToken', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + data: 'string', + message: 'string', + nextToken: 'string', + requestId: 'string', + success: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorLogResponseBody = DescribeSiteMonitorLogResponseBody; +//# sourceMappingURL=DescribeSiteMonitorLogResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogResponseBody.js.map new file mode 100644 index 0000000..df72a67 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorLogResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSiteMonitorLogResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeSiteMonitorLogResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;IAwDjE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AArFD,gFAqFC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaRequest.d.ts new file mode 100644 index 0000000..86b4ebe --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaRequest.d.ts @@ -0,0 +1,14 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeSiteMonitorQuotaRequest extends $dara.Model { + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaRequest.js new file mode 100644 index 0000000..7e053fe --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaRequest.js @@ -0,0 +1,58 @@ +"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.DescribeSiteMonitorQuotaRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeSiteMonitorQuotaRequest extends $dara.Model { + static names() { + return { + regionId: 'RegionId', + }; + } + static types() { + return { + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorQuotaRequest = DescribeSiteMonitorQuotaRequest; +//# sourceMappingURL=DescribeSiteMonitorQuotaRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaRequest.js.map new file mode 100644 index 0000000..8d53e35 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSiteMonitorQuotaRequest.js","sourceRoot":"","sources":["../../src/models/DescribeSiteMonitorQuotaRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAE9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AArBD,0EAqBC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaResponse.d.ts new file mode 100644 index 0000000..71a2e19 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeSiteMonitorQuotaResponseBody } from "./DescribeSiteMonitorQuotaResponseBody"; +export declare class DescribeSiteMonitorQuotaResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeSiteMonitorQuotaResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaResponse.js new file mode 100644 index 0000000..ec64ef0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaResponse.js @@ -0,0 +1,69 @@ +"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.DescribeSiteMonitorQuotaResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeSiteMonitorQuotaResponseBody_1 = require("./DescribeSiteMonitorQuotaResponseBody"); +class DescribeSiteMonitorQuotaResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeSiteMonitorQuotaResponseBody_1.DescribeSiteMonitorQuotaResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorQuotaResponse = DescribeSiteMonitorQuotaResponse; +//# sourceMappingURL=DescribeSiteMonitorQuotaResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaResponse.js.map new file mode 100644 index 0000000..8d49492 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSiteMonitorQuotaResponse.js","sourceRoot":"","sources":["../../src/models/DescribeSiteMonitorQuotaResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,iGAA8F;AAG9F,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAI/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,2EAAoC;SAC3C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,4EAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaResponseBody.d.ts new file mode 100644 index 0000000..6be7ecc --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaResponseBody.d.ts @@ -0,0 +1,118 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeSiteMonitorQuotaResponseBodyData extends $dara.Model { + /** + * @remarks + * Indicates whether second-level monitoring is enabled. Valid values: + * + * * true: Second-level monitoring is enabled. + * * false: Second-level monitoring is disabled. + * + * @example + * false + */ + secondMonitor?: boolean; + /** + * @remarks + * The quota of detection points that are provided by Alibaba Cloud. Five detection points are provided for free. + * + * @example + * 5 + */ + siteMonitorIdcQuota?: number; + /** + * @remarks + * The quota of detection points that are not provided by Alibaba Cloud. Default value: 0. + * + * @example + * 0 + */ + siteMonitorOperatorQuotaQuota?: number; + /** + * @remarks + * The used quota of site monitoring tasks. + * + * @example + * 6 + */ + siteMonitorQuotaTaskUsed?: number; + /** + * @remarks + * The quota of site monitoring tasks. + * + * @example + * 10 + */ + siteMonitorTaskQuota?: number; + /** + * @remarks + * The version of site monitoring. Valid values: + * + * * V1 + * * V2 + * + * @example + * V1 + */ + siteMonitorVersion?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSiteMonitorQuotaResponseBody extends $dara.Model { + /** + * @remarks + * The responses code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The quota. + */ + data?: DescribeSiteMonitorQuotaResponseBodyData; + /** + * @remarks + * The returned message. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 26860260-76C6-404E-AB7A-EB98D36A6885 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaResponseBody.js new file mode 100644 index 0000000..d2cddb2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaResponseBody.js @@ -0,0 +1,98 @@ +"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.DescribeSiteMonitorQuotaResponseBody = exports.DescribeSiteMonitorQuotaResponseBodyData = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeSiteMonitorQuotaResponseBodyData extends $dara.Model { + static names() { + return { + secondMonitor: 'SecondMonitor', + siteMonitorIdcQuota: 'SiteMonitorIdcQuota', + siteMonitorOperatorQuotaQuota: 'SiteMonitorOperatorQuotaQuota', + siteMonitorQuotaTaskUsed: 'SiteMonitorQuotaTaskUsed', + siteMonitorTaskQuota: 'SiteMonitorTaskQuota', + siteMonitorVersion: 'SiteMonitorVersion', + }; + } + static types() { + return { + secondMonitor: 'boolean', + siteMonitorIdcQuota: 'number', + siteMonitorOperatorQuotaQuota: 'number', + siteMonitorQuotaTaskUsed: 'number', + siteMonitorTaskQuota: 'number', + siteMonitorVersion: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorQuotaResponseBodyData = DescribeSiteMonitorQuotaResponseBodyData; +class DescribeSiteMonitorQuotaResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + data: 'Data', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + data: DescribeSiteMonitorQuotaResponseBodyData, + message: 'string', + requestId: 'string', + success: 'string', + }; + } + validate() { + if (this.data && typeof this.data.validate === 'function') { + this.data.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorQuotaResponseBody = DescribeSiteMonitorQuotaResponseBody; +//# sourceMappingURL=DescribeSiteMonitorQuotaResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaResponseBody.js.map new file mode 100644 index 0000000..a9a3f3d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorQuotaResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSiteMonitorQuotaResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeSiteMonitorQuotaResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C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AAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtED,oFAsEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsRequest.d.ts new file mode 100644 index 0000000..25b68d3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsRequest.d.ts @@ -0,0 +1,60 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeSiteMonitorStatisticsRequest extends $dara.Model { + /** + * @remarks + * The metric name. Valid values: + * + * * Availability + * * ErrorRate + * * ResponseTime + * + * This parameter is required. + * + * @example + * Availability + */ + metricName?: string; + regionId?: string; + /** + * @remarks + * The beginning of the time range to query. + * + * Unit: milliseconds. The default value is 1 hour ahead of the current time. + * + * @example + * 1576142850527 + */ + startTime?: string; + /** + * @remarks + * The ID of the site monitoring task. + * + * For more information about how to obtain the ID of a site monitoring task, see [DescribeSiteMonitorList](https://help.aliyun.com/document_detail/115052.html). + * + * This parameter is required. + * + * @example + * ef4cdc8b-9dc7-43e7-810e-f950e56c**** + */ + taskId?: string; + /** + * @remarks + * The statistical period. + * + * Unit: minutes. Default value: 1440 (one day). Maximum value: 43200 (30 days). + * + * @example + * 1440 + */ + timeRange?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsRequest.js new file mode 100644 index 0000000..2cdef58 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsRequest.js @@ -0,0 +1,66 @@ +"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.DescribeSiteMonitorStatisticsRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeSiteMonitorStatisticsRequest extends $dara.Model { + static names() { + return { + metricName: 'MetricName', + regionId: 'RegionId', + startTime: 'StartTime', + taskId: 'TaskId', + timeRange: 'TimeRange', + }; + } + static types() { + return { + metricName: 'string', + regionId: 'string', + startTime: 'string', + taskId: 'string', + timeRange: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorStatisticsRequest = DescribeSiteMonitorStatisticsRequest; +//# sourceMappingURL=DescribeSiteMonitorStatisticsRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsRequest.js.map new file mode 100644 index 0000000..a6c100d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSiteMonitorStatisticsRequest.js","sourceRoot":"","sources":["../../src/models/DescribeSiteMonitorStatisticsRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IAgDnE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,QAAQ;YACnB,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA3ED,oFA2EC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsResponse.d.ts new file mode 100644 index 0000000..401e889 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeSiteMonitorStatisticsResponseBody } from "./DescribeSiteMonitorStatisticsResponseBody"; +export declare class DescribeSiteMonitorStatisticsResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeSiteMonitorStatisticsResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsResponse.js new file mode 100644 index 0000000..8fefaab --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsResponse.js @@ -0,0 +1,69 @@ +"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.DescribeSiteMonitorStatisticsResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeSiteMonitorStatisticsResponseBody_1 = require("./DescribeSiteMonitorStatisticsResponseBody"); +class DescribeSiteMonitorStatisticsResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeSiteMonitorStatisticsResponseBody_1.DescribeSiteMonitorStatisticsResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorStatisticsResponse = DescribeSiteMonitorStatisticsResponse; +//# sourceMappingURL=DescribeSiteMonitorStatisticsResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsResponse.js.map new file mode 100644 index 0000000..b6dd5b0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSiteMonitorStatisticsResponse.js","sourceRoot":"","sources":["../../src/models/DescribeSiteMonitorStatisticsResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,2GAAwG;AAGxG,MAAa,qCAAsC,SAAQ,KAAK,CAAC,KAAK;IAIpE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,qFAAyC;SAChD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,sFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsResponseBody.d.ts new file mode 100644 index 0000000..3906348 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsResponseBody.d.ts @@ -0,0 +1,58 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeSiteMonitorStatisticsResponseBody extends $dara.Model { + /** + * @remarks + * The responses code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The statistics. + * + * @example + * 100 + */ + data?: string; + /** + * @remarks + * The returned message. + * + * @example + * Succcessful + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 3AD2724D-E317-4BFB-B422-D6691D071BE1 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsResponseBody.js new file mode 100644 index 0000000..35a23df --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsResponseBody.js @@ -0,0 +1,66 @@ +"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.DescribeSiteMonitorStatisticsResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeSiteMonitorStatisticsResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + data: 'Data', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + data: 'string', + message: 'string', + requestId: 'string', + success: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSiteMonitorStatisticsResponseBody = DescribeSiteMonitorStatisticsResponseBody; +//# sourceMappingURL=DescribeSiteMonitorStatisticsResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsResponseBody.js.map new file mode 100644 index 0000000..575ac0a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSiteMonitorStatisticsResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSiteMonitorStatisticsResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeSiteMonitorStatisticsResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yCAA0C,SAAQ,KAAK,CAAC,KAAK;IA8CxE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,8FAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListRequest.d.ts new file mode 100644 index 0000000..400cf3b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListRequest.d.ts @@ -0,0 +1,46 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeSyntheticProbeListRequest extends $dara.Model { + city?: string; + /** + * @example + * false + */ + idcProbe?: boolean; + /** + * @example + * false + */ + ipv4?: boolean; + /** + * @example + * false + */ + ipv6?: boolean; + isp?: string; + /** + * @example + * false + */ + lmProbe?: boolean; + /** + * @example + * false + */ + mbProbe?: boolean; + regionId?: string; + /** + * @example + * true + */ + viewAll?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListRequest.js new file mode 100644 index 0000000..610d10c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListRequest.js @@ -0,0 +1,74 @@ +"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.DescribeSyntheticProbeListRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeSyntheticProbeListRequest extends $dara.Model { + static names() { + return { + city: 'City', + idcProbe: 'IdcProbe', + ipv4: 'Ipv4', + ipv6: 'Ipv6', + isp: 'Isp', + lmProbe: 'LmProbe', + mbProbe: 'MbProbe', + regionId: 'RegionId', + viewAll: 'ViewAll', + }; + } + static types() { + return { + city: 'string', + idcProbe: 'boolean', + ipv4: 'boolean', + ipv6: 'boolean', + isp: 'string', + lmProbe: 'boolean', + mbProbe: 'boolean', + regionId: 'string', + viewAll: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSyntheticProbeListRequest = DescribeSyntheticProbeListRequest; +//# sourceMappingURL=DescribeSyntheticProbeListRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListRequest.js.map new file mode 100644 index 0000000..14d8701 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSyntheticProbeListRequest.js","sourceRoot":"","sources":["../../src/models/DescribeSyntheticProbeListRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,iCAAkC,SAAQ,KAAK,CAAC,KAAK;IAkChE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,UAAU;YACpB,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,GAAG,EAAE,KAAK;YACV,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,UAAU;YACpB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,SAAS;YACnB,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,SAAS;YACf,GAAG,EAAE,QAAQ;YACb,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,QAAQ;YAClB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AArED,8EAqEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListResponse.d.ts new file mode 100644 index 0000000..d7dd68f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeSyntheticProbeListResponseBody } from "./DescribeSyntheticProbeListResponseBody"; +export declare class DescribeSyntheticProbeListResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeSyntheticProbeListResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListResponse.js new file mode 100644 index 0000000..4c525c4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListResponse.js @@ -0,0 +1,69 @@ +"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.DescribeSyntheticProbeListResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeSyntheticProbeListResponseBody_1 = require("./DescribeSyntheticProbeListResponseBody"); +class DescribeSyntheticProbeListResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeSyntheticProbeListResponseBody_1.DescribeSyntheticProbeListResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSyntheticProbeListResponse = DescribeSyntheticProbeListResponse; +//# sourceMappingURL=DescribeSyntheticProbeListResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListResponse.js.map new file mode 100644 index 0000000..540e26d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSyntheticProbeListResponse.js","sourceRoot":"","sources":["../../src/models/DescribeSyntheticProbeListResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,qGAAkG;AAGlG,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;IAIjE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,+EAAsC;SAC7C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,gFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListResponseBody.d.ts new file mode 100644 index 0000000..6e75788 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListResponseBody.d.ts @@ -0,0 +1,128 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeSyntheticProbeListResponseBodyIspCityList extends $dara.Model { + areaCn?: string; + /** + * @example + * Huabei + */ + areaEn?: string; + /** + * @example + * 738 + */ + city?: string; + cityCn?: string; + /** + * @example + * Beijing + */ + cityEn?: string; + /** + * @example + * 629 + */ + country?: string; + countryCn?: string; + /** + * @example + * China + */ + countryEn?: string; + /** + * @example + * 1 + */ + idcV4ProbeCount?: number; + /** + * @remarks + * The number of IPv6 nodes in data centers. + * + * @example + * 1 + */ + idcV6ProbeCount?: number; + /** + * @remarks + * The IP addresses of the monitored nodes. + */ + ipPool?: string[]; + /** + * @example + * 232 + */ + isp?: string; + ispCn?: string; + /** + * @example + * China-Unicom + */ + ispEn?: string; + /** + * @example + * 1 + */ + lmProbeCount?: number; + /** + * @example + * 1 + */ + mbProbeCount?: number; + /** + * @example + * 264 + */ + region?: string; + regionCn?: string; + /** + * @example + * Jiangxi + */ + regionEn?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSyntheticProbeListResponseBody extends $dara.Model { + /** + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The queried detection points. + */ + ispCityList?: DescribeSyntheticProbeListResponseBodyIspCityList[]; + /** + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @example + * 87170bc7-e28a-4c93-b9bf-90a1dbe84736 + */ + requestId?: string; + /** + * @example + * true + */ + success?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListResponseBody.js new file mode 100644 index 0000000..233de5e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListResponseBody.js @@ -0,0 +1,127 @@ +"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.DescribeSyntheticProbeListResponseBody = exports.DescribeSyntheticProbeListResponseBodyIspCityList = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeSyntheticProbeListResponseBodyIspCityList extends $dara.Model { + static names() { + return { + areaCn: 'AreaCn', + areaEn: 'AreaEn', + city: 'City', + cityCn: 'CityCn', + cityEn: 'CityEn', + country: 'Country', + countryCn: 'CountryCn', + countryEn: 'CountryEn', + idcV4ProbeCount: 'IdcV4ProbeCount', + idcV6ProbeCount: 'IdcV6ProbeCount', + ipPool: 'IpPool', + isp: 'Isp', + ispCn: 'IspCn', + ispEn: 'IspEn', + lmProbeCount: 'LmProbeCount', + mbProbeCount: 'MbProbeCount', + region: 'Region', + regionCn: 'RegionCn', + regionEn: 'RegionEn', + }; + } + static types() { + return { + areaCn: 'string', + areaEn: 'string', + city: 'string', + cityCn: 'string', + cityEn: 'string', + country: 'string', + countryCn: 'string', + countryEn: 'string', + idcV4ProbeCount: 'number', + idcV6ProbeCount: 'number', + ipPool: { 'type': 'array', 'itemType': 'string' }, + isp: 'string', + ispCn: 'string', + ispEn: 'string', + lmProbeCount: 'number', + mbProbeCount: 'number', + region: 'string', + regionCn: 'string', + regionEn: 'string', + }; + } + validate() { + if (Array.isArray(this.ipPool)) { + $dara.Model.validateArray(this.ipPool); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSyntheticProbeListResponseBodyIspCityList = DescribeSyntheticProbeListResponseBodyIspCityList; +class DescribeSyntheticProbeListResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + ispCityList: 'IspCityList', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + ispCityList: { 'type': 'array', 'itemType': DescribeSyntheticProbeListResponseBodyIspCityList }, + message: 'string', + requestId: 'string', + success: 'string', + }; + } + validate() { + if (Array.isArray(this.ispCityList)) { + $dara.Model.validateArray(this.ispCityList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSyntheticProbeListResponseBody = DescribeSyntheticProbeListResponseBody; +//# sourceMappingURL=DescribeSyntheticProbeListResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListResponseBody.js.map new file mode 100644 index 0000000..e64e2cc --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSyntheticProbeListResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSyntheticProbeListResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeSyntheticProbeListResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,iDAAkD,SAAQ,KAAK,CAAC,KAAK;IA+EhF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,MAAM;YACZ,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,SAAS,EAAE,WAAW;YACtB,eAAe,EAAE,iBAAiB;YAClC,eAAe,EAAE,iBAAiB;YAClC,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,KAAK;YACV,KAAK,EAAE,OAAO;YACd,KAAK,EAAE,OAAO;YACd,YAAY,EAAE,cAAc;YAC5B,YAAY,EAAE,cAAc;YAC5B,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,SAAS,EAAE,QAAQ;YACnB,eAAe,EAAE,QAAQ;YACzB,eAAe,EAAE,QAAQ;YACzB,MAAM,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,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AAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxDD,wFAwDC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeRequest.d.ts new file mode 100644 index 0000000..39f1f8c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeRequest.d.ts @@ -0,0 +1,129 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeSystemEventAttributeRequest extends $dara.Model { + /** + * @remarks + * The end of the time range to query. + * + * The value must be a UNIX timestamp. It is the number of seconds that have elapsed since 00:00:00 UTC, January 1, 1970. + * + * @example + * 1552221584949 + */ + endTime?: string; + /** + * @remarks + * The type of the system event. + * + * > You can call the [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html) operation to query the types of system events. + * + * @example + * Exception + */ + eventType?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 12346 + */ + groupId?: string; + /** + * @remarks + * The level of the system event. Valid values: + * + * * CRITICAL: critical + * * WARN: warning + * * INFO: information + * + * @example + * CRITICAL + */ + level?: string; + /** + * @remarks + * The name of the system event. + * + * > You can call the [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html) operation to query the names of system events. + * + * @example + * BucketIngressBandwidth + */ + name?: string; + /** + * @remarks + * The number of the page to return. + * + * Valid values: 1 to 100000000. + * + * Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries to return on each page. + * + * Valid values: 1 to 100. + * + * Default value: 10 + * + * @example + * 10 + */ + pageSize?: number; + /** + * @remarks + * The abbreviation of the service name. + * + * > You can call the [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html) operation to query the abbreviations of service names. + * + * @example + * oss + */ + product?: string; + regionId?: string; + /** + * @remarks + * The keywords that are used to search for the system event. Valid values: + * + * * If you want to search for the system event whose content contains a and b, set the value to `a and b`. + * * If you want to search for the system event whose content contains a or b, set the value to `a or b`. + * + * @example + * cms + */ + searchKeywords?: string; + /** + * @remarks + * The beginning of the time range to query. + * + * The value must be a UNIX timestamp. It is the number of seconds that have elapsed since 00:00:00 UTC, January 1, 1970. + * + * @example + * 1552199984949 + */ + startTime?: string; + /** + * @remarks + * The status of the system event. + * + * > You can call the [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html) operation to query the statuses of system events. + * + * @example + * normal + */ + status?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeRequest.js new file mode 100644 index 0000000..54ee97d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeRequest.js @@ -0,0 +1,80 @@ +"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.DescribeSystemEventAttributeRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeSystemEventAttributeRequest extends $dara.Model { + static names() { + return { + endTime: 'EndTime', + eventType: 'EventType', + groupId: 'GroupId', + level: 'Level', + name: 'Name', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + product: 'Product', + regionId: 'RegionId', + searchKeywords: 'SearchKeywords', + startTime: 'StartTime', + status: 'Status', + }; + } + static types() { + return { + endTime: 'string', + eventType: 'string', + groupId: 'string', + level: 'string', + name: 'string', + pageNumber: 'number', + pageSize: 'number', + product: 'string', + regionId: 'string', + searchKeywords: 'string', + startTime: 'string', + status: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSystemEventAttributeRequest = DescribeSystemEventAttributeRequest; +//# sourceMappingURL=DescribeSystemEventAttributeRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeRequest.js.map new file mode 100644 index 0000000..85825a3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSystemEventAttributeRequest.js","sourceRoot":"","sources":["../../src/models/DescribeSystemEventAttributeRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IAqHlE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,MAAM;YACZ,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,UAAU;YACpB,cAAc,EAAE,gBAAgB;YAChC,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;YACjB,KAAK,EAAE,QAAQ;YACf,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,OAAO,EAAE,QAAQ;YACjB,QAAQ,EAAE,QAAQ;YAClB,cAAc,EAAE,QAAQ;YACxB,SAAS,EAAE,QAAQ;YACnB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA9JD,kFA8JC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeResponse.d.ts new file mode 100644 index 0000000..3cece3b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeSystemEventAttributeResponseBody } from "./DescribeSystemEventAttributeResponseBody"; +export declare class DescribeSystemEventAttributeResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeSystemEventAttributeResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeResponse.js new file mode 100644 index 0000000..d004073 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeResponse.js @@ -0,0 +1,69 @@ +"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.DescribeSystemEventAttributeResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeSystemEventAttributeResponseBody_1 = require("./DescribeSystemEventAttributeResponseBody"); +class DescribeSystemEventAttributeResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeSystemEventAttributeResponseBody_1.DescribeSystemEventAttributeResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSystemEventAttributeResponse = DescribeSystemEventAttributeResponse; +//# sourceMappingURL=DescribeSystemEventAttributeResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeResponse.js.map new file mode 100644 index 0000000..930b067 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSystemEventAttributeResponse.js","sourceRoot":"","sources":["../../src/models/DescribeSystemEventAttributeResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,yGAAsG;AAGtG,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IAInE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,mFAAwC;SAC/C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,oFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeResponseBody.d.ts new file mode 100644 index 0000000..f294078 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeResponseBody.d.ts @@ -0,0 +1,171 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeSystemEventAttributeResponseBodySystemEventsSystemEvent extends $dara.Model { + /** + * @remarks + * The details of the event. + * + * @example + * [{"product":"CloudMonitor","content":"{\\"ipGroup\\":\\"112.126.XX.XX,10.163.XX.XX\\",\\"tianjimonVersion\\":\\"1.2.22\\"}","groupId":"176,177,178,179,180,692,120812,1663836,96,2028302","time":"1552209568000","resourceId":"acs:ecs:cn-beijing:173651113438****:instance/i-25k35****","level":"CRITICAL","status":"stopped","instanceName":"cmssiteprobebj-6","name":"Agent_Status_Stopped","regionId":"cn-beijing"}] + */ + content?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 12345 + */ + groupId?: string; + /** + * @remarks + * The event ID. + * + * @example + * b936efc9-f621-4e8a-a6eb-076be40e**** + */ + id?: string; + /** + * @remarks + * The instance name. + * + * @example + * instanceId1 + */ + instanceName?: string; + /** + * @remarks + * The level of the event. Valid values: + * + * * CRITICAL + * * WARN + * * INFO + * + * @example + * WARN + */ + level?: string; + /** + * @remarks + * The event name. + * + * @example + * Agent_Status_Stopped + */ + name?: string; + /** + * @remarks + * The abbreviation of the service name. + * + * @example + * CloudMonitor + */ + product?: string; + /** + * @remarks + * The region ID. + * + * @example + * cn-hangzhou + */ + regionId?: string; + /** + * @remarks + * The resource ID. + * + * @example + * xxxxx-1 + */ + resourceId?: string; + /** + * @remarks + * The status of the event. + * + * @example + * normal + */ + status?: string; + /** + * @remarks + * The time when the event occurred. The value is a timestamp. + * + * Unit: milliseconds. + * + * @example + * 1552199984000 + */ + time?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSystemEventAttributeResponseBodySystemEvents extends $dara.Model { + systemEvent?: DescribeSystemEventAttributeResponseBodySystemEventsSystemEvent[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSystemEventAttributeResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call is successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The message that is returned. If the call is successful, `success` is returned. If the call fails, an error message is returned. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * 60912C8D-B340-4253-ADE7-61ACDFD25CFC + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call is successful. Valid values: True: The call is successful. false: The call fails. + * + * @example + * true + */ + success?: string; + /** + * @remarks + * The details of the event. + */ + systemEvents?: DescribeSystemEventAttributeResponseBodySystemEvents; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeResponseBody.js new file mode 100644 index 0000000..218f3f1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeResponseBody.js @@ -0,0 +1,130 @@ +"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.DescribeSystemEventAttributeResponseBody = exports.DescribeSystemEventAttributeResponseBodySystemEvents = exports.DescribeSystemEventAttributeResponseBodySystemEventsSystemEvent = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeSystemEventAttributeResponseBodySystemEventsSystemEvent extends $dara.Model { + static names() { + return { + content: 'Content', + groupId: 'GroupId', + id: 'Id', + instanceName: 'InstanceName', + level: 'Level', + name: 'Name', + product: 'Product', + regionId: 'RegionId', + resourceId: 'ResourceId', + status: 'Status', + time: 'Time', + }; + } + static types() { + return { + content: 'string', + groupId: 'string', + id: 'string', + instanceName: 'string', + level: 'string', + name: 'string', + product: 'string', + regionId: 'string', + resourceId: 'string', + status: 'string', + time: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSystemEventAttributeResponseBodySystemEventsSystemEvent = DescribeSystemEventAttributeResponseBodySystemEventsSystemEvent; +class DescribeSystemEventAttributeResponseBodySystemEvents extends $dara.Model { + static names() { + return { + systemEvent: 'SystemEvent', + }; + } + static types() { + return { + systemEvent: { 'type': 'array', 'itemType': DescribeSystemEventAttributeResponseBodySystemEventsSystemEvent }, + }; + } + validate() { + if (Array.isArray(this.systemEvent)) { + $dara.Model.validateArray(this.systemEvent); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSystemEventAttributeResponseBodySystemEvents = DescribeSystemEventAttributeResponseBodySystemEvents; +class DescribeSystemEventAttributeResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + systemEvents: 'SystemEvents', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'string', + systemEvents: DescribeSystemEventAttributeResponseBodySystemEvents, + }; + } + validate() { + if (this.systemEvents && typeof this.systemEvents.validate === 'function') { + this.systemEvents.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSystemEventAttributeResponseBody = DescribeSystemEventAttributeResponseBody; +//# sourceMappingURL=DescribeSystemEventAttributeResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeResponseBody.js.map new file mode 100644 index 0000000..cb082c9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventAttributeResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSystemEventAttributeResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeSystemEventAttributeResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,+DAAgE,SAAQ,KAAK,CAAC,KAAK;IA+F9F,MAAM,C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QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxBD,oHAwBC;AAED,MAAa,wCAAyC,SAAQ,KAAK,CAAC,KAAK;IAwCvE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,YAAY,EAAE,cAAc;SAC7B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;YACjB,YAAY,EAAE,oDAAoD;SACnE,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,YAAY,IAAI,OAAQ,IAAI,CAAC,YAAoB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjF,IAAI,CAAC,YAAoB,CAAC,QAAQ,EAAE,CAAC;QACxC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtED,4FAsEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountRequest.d.ts new file mode 100644 index 0000000..45c0748 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountRequest.d.ts @@ -0,0 +1,103 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeSystemEventCountRequest extends $dara.Model { + /** + * @remarks + * The end of the time range to query. Unit: milliseconds. + * + * @example + * 1635993921000 + */ + endTime?: string; + /** + * @remarks + * The type of the system event. + * + * You can call the DescribeSystemEventMetaList operation to obtain the value of the response parameter `EventType`. The value of the EventType parameter indicates the types of system events that occurred for all cloud services in your Alibaba Cloud account. For more information, see [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html). + * + * @example + * StatusNotification + */ + eventType?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 17285**** + */ + groupId?: string; + /** + * @remarks + * The level of the system event. Valid values: + * + * * Critical + * * Warn + * * Info + * + * You can call the DescribeSystemEventMetaList operation to obtain the value of the response parameter `Level`. The value of the Level parameter indicates the levels of system events that occurred for all cloud services in your Alibaba Cloud account. For more information, see [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html). + * + * @example + * Info + */ + level?: string; + /** + * @remarks + * The name of the system event. + * + * You can call the DescribeSystemEventMetaList operation to obtain the value of the response parameter `Name`. The value of the Name parameter indicates the names of system events that occurred for all cloud services in your Alibaba Cloud account. For more information, see [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html). + * + * @example + * Instance:StateChange + */ + name?: string; + /** + * @remarks + * The name of the cloud service. + * + * You can call the DescribeSystemEventMetaList operation to obtain the value of the response parameter `Product`. The value of the Product parameter indicates the names of all cloud services in which the system events of your Alibaba Cloud account occurred. For more information, see [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html). + * + * @example + * ECS + */ + product?: string; + regionId?: string; + /** + * @remarks + * The keywords that are used to search for the system event. Valid values: + * + * * If you want to search for the system event whose content contains a and b, set the value to `a and b`. + * * If you want to search for the system event whose content contains a or b, set the value to `a or b`. + * + * @example + * ECS + */ + searchKeywords?: string; + /** + * @remarks + * The beginning of the time range to query. Unit: milliseconds. + * + * @example + * 1635993541000 + */ + startTime?: string; + /** + * @remarks + * The status of the system event. + * + * You can call the DescribeSystemEventMetaList operation to obtain the value of the response parameter `Status`. The value of the Status parameter indicates the status of system events that occurred for all cloud services in your Alibaba Cloud account. For more information, see [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html). + * + * @example + * Normal + */ + status?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountRequest.js new file mode 100644 index 0000000..9e58a02 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountRequest.js @@ -0,0 +1,76 @@ +"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.DescribeSystemEventCountRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeSystemEventCountRequest extends $dara.Model { + static names() { + return { + endTime: 'EndTime', + eventType: 'EventType', + groupId: 'GroupId', + level: 'Level', + name: 'Name', + product: 'Product', + regionId: 'RegionId', + searchKeywords: 'SearchKeywords', + startTime: 'StartTime', + status: 'Status', + }; + } + static types() { + return { + endTime: 'string', + eventType: 'string', + groupId: 'string', + level: 'string', + name: 'string', + product: 'string', + regionId: 'string', + searchKeywords: 'string', + startTime: 'string', + status: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSystemEventCountRequest = DescribeSystemEventCountRequest; +//# sourceMappingURL=DescribeSystemEventCountRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountRequest.js.map new file mode 100644 index 0000000..91f6fc8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSystemEventCountRequest.js","sourceRoot":"","sources":["../../src/models/DescribeSystemEventCountRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IA2F9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,UAAU;YACpB,cAAc,EAAE,gBAAgB;YAChC,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;YACjB,KAAK,EAAE,QAAQ;YACf,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,QAAQ,EAAE,QAAQ;YAClB,cAAc,EAAE,QAAQ;YACxB,SAAS,EAAE,QAAQ;YACnB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAhID,0EAgIC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountResponse.d.ts new file mode 100644 index 0000000..a9554ab --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeSystemEventCountResponseBody } from "./DescribeSystemEventCountResponseBody"; +export declare class DescribeSystemEventCountResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeSystemEventCountResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountResponse.js new file mode 100644 index 0000000..d751026 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountResponse.js @@ -0,0 +1,69 @@ +"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.DescribeSystemEventCountResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeSystemEventCountResponseBody_1 = require("./DescribeSystemEventCountResponseBody"); +class DescribeSystemEventCountResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeSystemEventCountResponseBody_1.DescribeSystemEventCountResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSystemEventCountResponse = DescribeSystemEventCountResponse; +//# sourceMappingURL=DescribeSystemEventCountResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountResponse.js.map new file mode 100644 index 0000000..5bd94ef --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSystemEventCountResponse.js","sourceRoot":"","sources":["../../src/models/DescribeSystemEventCountResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,iGAA8F;AAG9F,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAI/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,2EAAoC;SAC3C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,4EAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountResponseBody.d.ts new file mode 100644 index 0000000..f7809b7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountResponseBody.d.ts @@ -0,0 +1,171 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeSystemEventCountResponseBodySystemEventCountsSystemEventCount extends $dara.Model { + /** + * @remarks + * The description of the system event. + */ + content?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 17285**** + */ + groupId?: string; + /** + * @remarks + * The name of the instance. + * + * @example + * ECS-test + */ + instanceName?: string; + /** + * @remarks + * The level of the system event. Valid values: + * + * * Critical + * * Warn + * * Info + * + * @example + * Info + */ + level?: string; + /** + * @remarks + * The name of the system event. + * + * @example + * Instance:StateChange + */ + name?: string; + /** + * @remarks + * The number of times that the system event has occurred. + * + * @example + * 3 + */ + num?: number; + /** + * @remarks + * The name of the cloud service in which the system event occurred. + * + * @example + * ECS + */ + product?: string; + /** + * @remarks + * The region ID. + * + * @example + * cn-hangzhou + */ + regionId?: string; + /** + * @remarks + * The resource ID. + * + * @example + * i-rj99xc6cptkk64ml**** + */ + resourceId?: string; + /** + * @remarks + * The status of the system event. + * + * @example + * Normal + */ + status?: string; + /** + * @remarks + * The time when the system event occurred. The value is a timestamp. Unit: milliseconds. + * + * @example + * 1635993751000 + */ + time?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSystemEventCountResponseBodySystemEventCounts extends $dara.Model { + systemEventCount?: DescribeSystemEventCountResponseBodySystemEventCountsSystemEventCount[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSystemEventCountResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status codes. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * If the request was successful, a success message is returned. If the request failed, an error message is returned. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * C7A7B776-0ACE-5A93-9B07-DE8008D9CCDF + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + /** + * @remarks + * The details of the system event. + */ + systemEventCounts?: DescribeSystemEventCountResponseBodySystemEventCounts; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountResponseBody.js new file mode 100644 index 0000000..ba591ef --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountResponseBody.js @@ -0,0 +1,130 @@ +"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.DescribeSystemEventCountResponseBody = exports.DescribeSystemEventCountResponseBodySystemEventCounts = exports.DescribeSystemEventCountResponseBodySystemEventCountsSystemEventCount = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeSystemEventCountResponseBodySystemEventCountsSystemEventCount extends $dara.Model { + static names() { + return { + content: 'Content', + groupId: 'GroupId', + instanceName: 'InstanceName', + level: 'Level', + name: 'Name', + num: 'Num', + product: 'Product', + regionId: 'RegionId', + resourceId: 'ResourceId', + status: 'Status', + time: 'Time', + }; + } + static types() { + return { + content: 'string', + groupId: 'string', + instanceName: 'string', + level: 'string', + name: 'string', + num: 'number', + product: 'string', + regionId: 'string', + resourceId: 'string', + status: 'string', + time: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSystemEventCountResponseBodySystemEventCountsSystemEventCount = DescribeSystemEventCountResponseBodySystemEventCountsSystemEventCount; +class DescribeSystemEventCountResponseBodySystemEventCounts extends $dara.Model { + static names() { + return { + systemEventCount: 'SystemEventCount', + }; + } + static types() { + return { + systemEventCount: { 'type': 'array', 'itemType': DescribeSystemEventCountResponseBodySystemEventCountsSystemEventCount }, + }; + } + validate() { + if (Array.isArray(this.systemEventCount)) { + $dara.Model.validateArray(this.systemEventCount); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSystemEventCountResponseBodySystemEventCounts = DescribeSystemEventCountResponseBodySystemEventCounts; +class DescribeSystemEventCountResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + systemEventCounts: 'SystemEventCounts', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'string', + systemEventCounts: DescribeSystemEventCountResponseBodySystemEventCounts, + }; + } + validate() { + if (this.systemEventCounts && typeof this.systemEventCounts.validate === 'function') { + this.systemEventCounts.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSystemEventCountResponseBody = DescribeSystemEventCountResponseBody; +//# sourceMappingURL=DescribeSystemEventCountResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountResponseBody.js.map new file mode 100644 index 0000000..cdeadd3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventCountResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSystemEventCountResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeSystemEventCountResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qEAAsE,SAAQ,KAAK,CAAC,KAAK;IA0FpG,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;YAClB,YAAY,EAAE,cAAc;YAC5B,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,MAAM;YACZ,GAAG,EAAE,KAAK;YACV,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,UAAU;YACpB,UAAU,EAAE,YAAY;YACxB,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,QAAQ;YACjB,YAAY,EAAE,QAAQ;YACtB,KAAK,EAAE,QAAQ;YACf,IAAI,EAAE,QAAQ;YACd,GAAG,EAAE,QAAQ;YACb,OAAO,EAAE,QAAQ;YACjB,QAAQ,EAAE,QAAQ;YAClB,UAAU,EAAE,QAAQ;YACpB,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,QAAQ;SACf,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjID,sJAiIC;AAED,MAAa,qDAAsD,SAAQ,KAAK,CAAC,KAAK;IAEpF,MAAM,CAAC,KAA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"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramRequest.d.ts new file mode 100644 index 0000000..ea52258 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramRequest.d.ts @@ -0,0 +1,105 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeSystemEventHistogramRequest extends $dara.Model { + /** + * @remarks + * The end time. + * + * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * @example + * 1552220485596 + */ + endTime?: string; + /** + * @remarks + * The event type. + * + * > You can call the [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html) operation to query the types of system events. + * + * @example + * Exception + */ + eventType?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 12345 + */ + groupId?: string; + /** + * @remarks + * The level of the event. Valid values: + * + * * CRITICAL + * * WARN + * * INFO + * + * @example + * CRITICAL + */ + level?: string; + /** + * @remarks + * The event name. + * + * > You can call the [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html) operation to query the names of system events. + * + * @example + * BucketIngressBandwidth + */ + name?: string; + /** + * @remarks + * The abbreviation of the service name. + * + * > You can call the [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html) operation to query the abbreviations of service names. + * + * @example + * OSS + */ + product?: string; + regionId?: string; + /** + * @remarks + * The keywords that are used to search for the system event. Valid values: + * + * * If you want to search for the system event whose content contains a and b, set the value to `a and b`. + * * If you want to search for the system event whose content contains a or b, set the value to `a or b`. + * + * @example + * cms + */ + searchKeywords?: string; + /** + * @remarks + * The start time. + * + * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * @example + * 1552209685596 + */ + startTime?: string; + /** + * @remarks + * The event status. + * + * > You can call the [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html) operation to query the status of system events. + * + * @example + * normal + */ + status?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramRequest.js new file mode 100644 index 0000000..4ad0497 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramRequest.js @@ -0,0 +1,76 @@ +"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.DescribeSystemEventHistogramRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeSystemEventHistogramRequest extends $dara.Model { + static names() { + return { + endTime: 'EndTime', + eventType: 'EventType', + groupId: 'GroupId', + level: 'Level', + name: 'Name', + product: 'Product', + regionId: 'RegionId', + searchKeywords: 'SearchKeywords', + startTime: 'StartTime', + status: 'Status', + }; + } + static types() { + return { + endTime: 'string', + eventType: 'string', + groupId: 'string', + level: 'string', + name: 'string', + product: 'string', + regionId: 'string', + searchKeywords: 'string', + startTime: 'string', + status: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSystemEventHistogramRequest = DescribeSystemEventHistogramRequest; +//# sourceMappingURL=DescribeSystemEventHistogramRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramRequest.js.map new file mode 100644 index 0000000..b8a41d6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSystemEventHistogramRequest.js","sourceRoot":"","sources":["../../src/models/DescribeSystemEventHistogramRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IA6FlE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,UAAU;YACpB,cAAc,EAAE,gBAAgB;YAChC,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;YACjB,KAAK,EAAE,QAAQ;YACf,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,QAAQ,EAAE,QAAQ;YAClB,cAAc,EAAE,QAAQ;YACxB,SAAS,EAAE,QAAQ;YACnB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAlID,kFAkIC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramResponse.d.ts new file mode 100644 index 0000000..6a41567 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeSystemEventHistogramResponseBody } from "./DescribeSystemEventHistogramResponseBody"; +export declare class DescribeSystemEventHistogramResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeSystemEventHistogramResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramResponse.js new file mode 100644 index 0000000..34e181b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramResponse.js @@ -0,0 +1,69 @@ +"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.DescribeSystemEventHistogramResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeSystemEventHistogramResponseBody_1 = require("./DescribeSystemEventHistogramResponseBody"); +class DescribeSystemEventHistogramResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeSystemEventHistogramResponseBody_1.DescribeSystemEventHistogramResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSystemEventHistogramResponse = DescribeSystemEventHistogramResponse; +//# sourceMappingURL=DescribeSystemEventHistogramResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramResponse.js.map new file mode 100644 index 0000000..635d5cf --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSystemEventHistogramResponse.js","sourceRoot":"","sources":["../../src/models/DescribeSystemEventHistogramResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,yGAAsG;AAGtG,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IAInE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,mFAAwC;SAC/C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,oFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramResponseBody.d.ts new file mode 100644 index 0000000..2615dae --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramResponseBody.d.ts @@ -0,0 +1,105 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeSystemEventHistogramResponseBodySystemEventHistogramsSystemEventHistogram extends $dara.Model { + /** + * @remarks + * The number of times the system event occurred. + * + * @example + * 2 + */ + count?: number; + /** + * @remarks + * The end time. + * + * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * @example + * 1552225753000 + */ + endTime?: number; + /** + * @remarks + * The start time. + * + * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * @example + * 1552225770000 + */ + startTime?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSystemEventHistogramResponseBodySystemEventHistograms extends $dara.Model { + systemEventHistogram?: DescribeSystemEventHistogramResponseBodySystemEventHistogramsSystemEventHistogram[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSystemEventHistogramResponseBody extends $dara.Model { + /** + * @remarks + * The response code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 486029C9-53E1-44B4-85A8-16A571A043FD + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: true: The request was successful. false: The request failed. + * + * @example + * true + */ + success?: string; + /** + * @remarks + * The information about the number of times the system event occurred during each interval of a time period. + */ + systemEventHistograms?: DescribeSystemEventHistogramResponseBodySystemEventHistograms; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramResponseBody.js new file mode 100644 index 0000000..6c464f8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramResponseBody.js @@ -0,0 +1,114 @@ +"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.DescribeSystemEventHistogramResponseBody = exports.DescribeSystemEventHistogramResponseBodySystemEventHistograms = exports.DescribeSystemEventHistogramResponseBodySystemEventHistogramsSystemEventHistogram = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeSystemEventHistogramResponseBodySystemEventHistogramsSystemEventHistogram extends $dara.Model { + static names() { + return { + count: 'Count', + endTime: 'EndTime', + startTime: 'StartTime', + }; + } + static types() { + return { + count: 'number', + endTime: 'number', + startTime: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSystemEventHistogramResponseBodySystemEventHistogramsSystemEventHistogram = DescribeSystemEventHistogramResponseBodySystemEventHistogramsSystemEventHistogram; +class DescribeSystemEventHistogramResponseBodySystemEventHistograms extends $dara.Model { + static names() { + return { + systemEventHistogram: 'SystemEventHistogram', + }; + } + static types() { + return { + systemEventHistogram: { 'type': 'array', 'itemType': DescribeSystemEventHistogramResponseBodySystemEventHistogramsSystemEventHistogram }, + }; + } + validate() { + if (Array.isArray(this.systemEventHistogram)) { + $dara.Model.validateArray(this.systemEventHistogram); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSystemEventHistogramResponseBodySystemEventHistograms = DescribeSystemEventHistogramResponseBodySystemEventHistograms; +class DescribeSystemEventHistogramResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + systemEventHistograms: 'SystemEventHistograms', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'string', + systemEventHistograms: DescribeSystemEventHistogramResponseBodySystemEventHistograms, + }; + } + validate() { + if (this.systemEventHistograms && typeof this.systemEventHistograms.validate === 'function') { + this.systemEventHistograms.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSystemEventHistogramResponseBody = DescribeSystemEventHistogramResponseBody; +//# sourceMappingURL=DescribeSystemEventHistogramResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramResponseBody.js.map new file mode 100644 index 0000000..e45b356 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventHistogramResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSystemEventHistogramResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeSystemEventHistogramResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;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;YACtB,OAAO,EAAE,SAAS;YAClB,qBAAqB,EAAE,uBAAuB;SAC/C,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;YACjB,qBAAqB,EAAE,6DAA6D;SACrF,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,qBAAqB,IAAI,OAAQ,IAAI,CAAC,qBAA6B,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACnG,IAAI,CAAC,qBAA6B,CAAC,QAAQ,EAAE,CAAC;QACjD,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtED,4FAsEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListRequest.d.ts new file mode 100644 index 0000000..c783639 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListRequest.d.ts @@ -0,0 +1,14 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeSystemEventMetaListRequest extends $dara.Model { + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListRequest.js new file mode 100644 index 0000000..0d5cf79 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListRequest.js @@ -0,0 +1,58 @@ +"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.DescribeSystemEventMetaListRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeSystemEventMetaListRequest extends $dara.Model { + static names() { + return { + regionId: 'RegionId', + }; + } + static types() { + return { + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSystemEventMetaListRequest = DescribeSystemEventMetaListRequest; +//# sourceMappingURL=DescribeSystemEventMetaListRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListRequest.js.map new file mode 100644 index 0000000..07843eb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSystemEventMetaListRequest.js","sourceRoot":"","sources":["../../src/models/DescribeSystemEventMetaListRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;IAEjE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AArBD,gFAqBC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListResponse.d.ts new file mode 100644 index 0000000..7cf880f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeSystemEventMetaListResponseBody } from "./DescribeSystemEventMetaListResponseBody"; +export declare class DescribeSystemEventMetaListResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeSystemEventMetaListResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListResponse.js new file mode 100644 index 0000000..805619e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListResponse.js @@ -0,0 +1,69 @@ +"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.DescribeSystemEventMetaListResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeSystemEventMetaListResponseBody_1 = require("./DescribeSystemEventMetaListResponseBody"); +class DescribeSystemEventMetaListResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeSystemEventMetaListResponseBody_1.DescribeSystemEventMetaListResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSystemEventMetaListResponse = DescribeSystemEventMetaListResponse; +//# sourceMappingURL=DescribeSystemEventMetaListResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListResponse.js.map new file mode 100644 index 0000000..7a38495 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSystemEventMetaListResponse.js","sourceRoot":"","sources":["../../src/models/DescribeSystemEventMetaListResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,uGAAoG;AAGpG,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IAIlE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,iFAAuC;SAC9C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,kFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListResponseBody.d.ts new file mode 100644 index 0000000..a1d6158 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListResponseBody.d.ts @@ -0,0 +1,145 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeSystemEventMetaListResponseBodyDataResource extends $dara.Model { + /** + * @remarks + * The type of the system event. Valid values: + * + * * StatusNotification: fault notifications + * * Exception: exceptions + * * Maintenance: O\\&M + * + * @example + * Exception + */ + eventType?: string; + /** + * @remarks + * The alert level. Valid values: + * + * * CRITICAL + * * WARN + * * INFO + * + * @example + * INFO + */ + level?: string; + /** + * @remarks + * The name of the system event. + * + * @example + * SelectFailureRate + */ + name?: string; + /** + * @remarks + * The description of the event name. + * + * @example + * High query failure rate + */ + nameDesc?: string; + nameDesc_en?: string; + /** + * @remarks + * The abbreviation of the service name. + * + * @example + * ADS + */ + product?: string; + /** + * @remarks + * The status of the system event. + * + * @example + * failed + */ + status?: string; + /** + * @remarks + * The description of the event status. + * + * @example + * Operation Failed + */ + statusDesc?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSystemEventMetaListResponseBodyData extends $dara.Model { + resource?: DescribeSystemEventMetaListResponseBodyDataResource[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeSystemEventMetaListResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The queried meta information. + */ + data?: DescribeSystemEventMetaListResponseBodyData; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * A6582C8B-E67C-4A19-BC15-EAEFEBDC7995 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListResponseBody.js new file mode 100644 index 0000000..ecb98c9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListResponseBody.js @@ -0,0 +1,124 @@ +"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.DescribeSystemEventMetaListResponseBody = exports.DescribeSystemEventMetaListResponseBodyData = exports.DescribeSystemEventMetaListResponseBodyDataResource = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeSystemEventMetaListResponseBodyDataResource extends $dara.Model { + static names() { + return { + eventType: 'EventType', + level: 'Level', + name: 'Name', + nameDesc: 'NameDesc', + nameDesc_en: 'NameDesc.En', + product: 'Product', + status: 'Status', + statusDesc: 'StatusDesc', + }; + } + static types() { + return { + eventType: 'string', + level: 'string', + name: 'string', + nameDesc: 'string', + nameDesc_en: 'string', + product: 'string', + status: 'string', + statusDesc: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSystemEventMetaListResponseBodyDataResource = DescribeSystemEventMetaListResponseBodyDataResource; +class DescribeSystemEventMetaListResponseBodyData extends $dara.Model { + static names() { + return { + resource: 'Resource', + }; + } + static types() { + return { + resource: { 'type': 'array', 'itemType': DescribeSystemEventMetaListResponseBodyDataResource }, + }; + } + validate() { + if (Array.isArray(this.resource)) { + $dara.Model.validateArray(this.resource); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSystemEventMetaListResponseBodyData = DescribeSystemEventMetaListResponseBodyData; +class DescribeSystemEventMetaListResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + data: 'Data', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'number', + data: DescribeSystemEventMetaListResponseBodyData, + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + if (this.data && typeof this.data.validate === 'function') { + this.data.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeSystemEventMetaListResponseBody = DescribeSystemEventMetaListResponseBody; +//# sourceMappingURL=DescribeSystemEventMetaListResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListResponseBody.js.map new file mode 100644 index 0000000..8ffea0d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeSystemEventMetaListResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeSystemEventMetaListResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeSystemEventMetaListResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mDAAoD,SAAQ,KAAK,CAAC,KAAK;IAkElF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;YACtB,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,UAAU;YACpB,WAAW,EAAE,aAAa;YAC1B,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,YAAY;SACzB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,QAAQ;YACnB,KAAK,EAAE,QAAQ;YACf,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,QAAQ;YAClB,WAAW,EAAE,QAAQ;YACrB,OAAO,EAAE,QAAQ;YACjB,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,QAAQ;SACrB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnGD,kHAmGC;AAED,MAAa,2CAA4C,SAAQ,KAAK,CAAC,KAAK;IAE1E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,mDAAmD,EAAE;SAC/F,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;YAChC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC3C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxBD,kGAwBC;AAED,MAAa,uCAAwC,SAAQ,KAAK,CAAC,KAAK;IA2CtE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,2CAA2C;YACjD,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,0FAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListRequest.d.ts new file mode 100644 index 0000000..92fab88 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListRequest.d.ts @@ -0,0 +1,34 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeTagKeyListRequest extends $dara.Model { + /** + * @remarks + * The page number. + * + * Pages start from page 1. Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * Maximum value: 100. Default value: 10. + * + * @example + * 10 + */ + pageSize?: number; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListRequest.js new file mode 100644 index 0000000..0ce4e61 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListRequest.js @@ -0,0 +1,62 @@ +"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.DescribeTagKeyListRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeTagKeyListRequest extends $dara.Model { + static names() { + return { + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + }; + } + static types() { + return { + pageNumber: 'number', + pageSize: 'number', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeTagKeyListRequest = DescribeTagKeyListRequest; +//# sourceMappingURL=DescribeTagKeyListRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListRequest.js.map new file mode 100644 index 0000000..9c7036c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeTagKeyListRequest.js","sourceRoot":"","sources":["../../src/models/DescribeTagKeyListRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IAsBxD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA7CD,8DA6CC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListResponse.d.ts new file mode 100644 index 0000000..d3cc92e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeTagKeyListResponseBody } from "./DescribeTagKeyListResponseBody"; +export declare class DescribeTagKeyListResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeTagKeyListResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListResponse.js new file mode 100644 index 0000000..8a2eb39 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListResponse.js @@ -0,0 +1,69 @@ +"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.DescribeTagKeyListResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeTagKeyListResponseBody_1 = require("./DescribeTagKeyListResponseBody"); +class DescribeTagKeyListResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeTagKeyListResponseBody_1.DescribeTagKeyListResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeTagKeyListResponse = DescribeTagKeyListResponse; +//# sourceMappingURL=DescribeTagKeyListResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListResponse.js.map new file mode 100644 index 0000000..ff2b587 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeTagKeyListResponse.js","sourceRoot":"","sources":["../../src/models/DescribeTagKeyListResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,qFAAkF;AAGlF,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IAIzD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,+DAA8B;SACrC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,gEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListResponseBody.d.ts new file mode 100644 index 0000000..92fbcac --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListResponseBody.d.ts @@ -0,0 +1,64 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeTagKeyListResponseBodyTagKeys extends $dara.Model { + tagKey?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeTagKeyListResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * Specified parameter PageSize is not valid. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * B04B8CF3-4489-432D-83BA-6F128E5F2293 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + tagKeys?: DescribeTagKeyListResponseBodyTagKeys; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListResponseBody.js new file mode 100644 index 0000000..0ca101f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListResponseBody.js @@ -0,0 +1,91 @@ +"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.DescribeTagKeyListResponseBody = exports.DescribeTagKeyListResponseBodyTagKeys = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeTagKeyListResponseBodyTagKeys extends $dara.Model { + static names() { + return { + tagKey: 'TagKey', + }; + } + static types() { + return { + tagKey: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.tagKey)) { + $dara.Model.validateArray(this.tagKey); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeTagKeyListResponseBodyTagKeys = DescribeTagKeyListResponseBodyTagKeys; +class DescribeTagKeyListResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + tagKeys: 'TagKeys', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + tagKeys: DescribeTagKeyListResponseBodyTagKeys, + }; + } + validate() { + if (this.tagKeys && typeof this.tagKeys.validate === 'function') { + this.tagKeys.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeTagKeyListResponseBody = DescribeTagKeyListResponseBody; +//# sourceMappingURL=DescribeTagKeyListResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListResponseBody.js.map new file mode 100644 index 0000000..7e38c3a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagKeyListResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeTagKeyListResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeTagKeyListResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qCAAsC,SAAQ,KAAK,CAAC,KAAK;IAEpE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;SAClD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;YAC9B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACzC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxBD,sFAwBC;AAED,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAuC7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,qCAAqC;SAC/C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,IAAI,OAAQ,IAAI,CAAC,OAAe,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACvE,IAAI,CAAC,OAAe,CAAC,QAAQ,EAAE,CAAC;QACnC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AArED,wEAqEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListRequest.d.ts new file mode 100644 index 0000000..64cfdff --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListRequest.d.ts @@ -0,0 +1,46 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeTagValueListRequest extends $dara.Model { + /** + * @remarks + * The page number. + * + * Pages start from page 1. Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * Valid values: 1 to 100. Default value: 50. + * + * @example + * 10 + */ + pageSize?: number; + regionId?: string; + /** + * @remarks + * The tag key. + * + * For more information about how to obtain a tag key, see [DescribeTagKeyList](https://help.aliyun.com/document_detail/145558.html). + * + * This parameter is required. + * + * @example + * tagKey1 + */ + tagKey?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListRequest.js new file mode 100644 index 0000000..6f37405 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListRequest.js @@ -0,0 +1,64 @@ +"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.DescribeTagValueListRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeTagValueListRequest extends $dara.Model { + static names() { + return { + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + tagKey: 'TagKey', + }; + } + static types() { + return { + pageNumber: 'number', + pageSize: 'number', + regionId: 'string', + tagKey: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeTagValueListRequest = DescribeTagValueListRequest; +//# sourceMappingURL=DescribeTagValueListRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListRequest.js.map new file mode 100644 index 0000000..b918aca --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeTagValueListRequest.js","sourceRoot":"","sources":["../../src/models/DescribeTagValueListRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,2BAA4B,SAAQ,KAAK,CAAC,KAAK;IAkC1D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA3DD,kEA2DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListResponse.d.ts new file mode 100644 index 0000000..c65e9f9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeTagValueListResponseBody } from "./DescribeTagValueListResponseBody"; +export declare class DescribeTagValueListResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeTagValueListResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListResponse.js new file mode 100644 index 0000000..511bf27 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListResponse.js @@ -0,0 +1,69 @@ +"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.DescribeTagValueListResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeTagValueListResponseBody_1 = require("./DescribeTagValueListResponseBody"); +class DescribeTagValueListResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeTagValueListResponseBody_1.DescribeTagValueListResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeTagValueListResponse = DescribeTagValueListResponse; +//# sourceMappingURL=DescribeTagValueListResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListResponse.js.map new file mode 100644 index 0000000..d94229a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeTagValueListResponse.js","sourceRoot":"","sources":["../../src/models/DescribeTagValueListResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,yFAAsF;AAGtF,MAAa,4BAA6B,SAAQ,KAAK,CAAC,KAAK;IAI3D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,mEAAgC;SACvC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,oEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListResponseBody.d.ts new file mode 100644 index 0000000..fa4da2a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListResponseBody.d.ts @@ -0,0 +1,64 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeTagValueListResponseBodyTagValues extends $dara.Model { + tagValue?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeTagValueListResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * B04B8CF3-4489-432D-83BA-6F128E4F2295 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + tagValues?: DescribeTagValueListResponseBodyTagValues; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListResponseBody.js new file mode 100644 index 0000000..f7bb184 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListResponseBody.js @@ -0,0 +1,91 @@ +"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.DescribeTagValueListResponseBody = exports.DescribeTagValueListResponseBodyTagValues = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeTagValueListResponseBodyTagValues extends $dara.Model { + static names() { + return { + tagValue: 'TagValue', + }; + } + static types() { + return { + tagValue: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.tagValue)) { + $dara.Model.validateArray(this.tagValue); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeTagValueListResponseBodyTagValues = DescribeTagValueListResponseBodyTagValues; +class DescribeTagValueListResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + tagValues: 'TagValues', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + tagValues: DescribeTagValueListResponseBodyTagValues, + }; + } + validate() { + if (this.tagValues && typeof this.tagValues.validate === 'function') { + this.tagValues.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeTagValueListResponseBody = DescribeTagValueListResponseBody; +//# sourceMappingURL=DescribeTagValueListResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListResponseBody.js.map new file mode 100644 index 0000000..b378a3f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeTagValueListResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeTagValueListResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeTagValueListResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yCAA0C,SAAQ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;CACF;AArED,4EAqEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityRequest.d.ts new file mode 100644 index 0000000..f1ebe84 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityRequest.d.ts @@ -0,0 +1,24 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeUnhealthyHostAvailabilityRequest extends $dara.Model { + /** + * @remarks + * The ID of the availability monitoring task. Valid values of N: 1 to 20. + * + * This parameter is required. + * + * @example + * 123456 + */ + id?: number[]; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityRequest.js new file mode 100644 index 0000000..3be136e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityRequest.js @@ -0,0 +1,63 @@ +"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.DescribeUnhealthyHostAvailabilityRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeUnhealthyHostAvailabilityRequest extends $dara.Model { + static names() { + return { + id: 'Id', + regionId: 'RegionId', + }; + } + static types() { + return { + id: { 'type': 'array', 'itemType': 'number' }, + regionId: 'string', + }; + } + validate() { + if (Array.isArray(this.id)) { + $dara.Model.validateArray(this.id); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeUnhealthyHostAvailabilityRequest = DescribeUnhealthyHostAvailabilityRequest; +//# sourceMappingURL=DescribeUnhealthyHostAvailabilityRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityRequest.js.map new file mode 100644 index 0000000..928e7bf --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeUnhealthyHostAvailabilityRequest.js","sourceRoot":"","sources":["../../src/models/DescribeUnhealthyHostAvailabilityRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wCAAyC,SAAQ,KAAK,CAAC,KAAK;IAYvE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,EAAE,EAAE,IAAI;YACR,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YAC7C,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;YAC1B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACrC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApCD,4FAoCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityResponse.d.ts new file mode 100644 index 0000000..b88a3df --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DescribeUnhealthyHostAvailabilityResponseBody } from "./DescribeUnhealthyHostAvailabilityResponseBody"; +export declare class DescribeUnhealthyHostAvailabilityResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DescribeUnhealthyHostAvailabilityResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityResponse.js new file mode 100644 index 0000000..2eab55f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityResponse.js @@ -0,0 +1,69 @@ +"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.DescribeUnhealthyHostAvailabilityResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DescribeUnhealthyHostAvailabilityResponseBody_1 = require("./DescribeUnhealthyHostAvailabilityResponseBody"); +class DescribeUnhealthyHostAvailabilityResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeUnhealthyHostAvailabilityResponseBody_1.DescribeUnhealthyHostAvailabilityResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeUnhealthyHostAvailabilityResponse = DescribeUnhealthyHostAvailabilityResponse; +//# sourceMappingURL=DescribeUnhealthyHostAvailabilityResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityResponse.js.map new file mode 100644 index 0000000..01da55f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeUnhealthyHostAvailabilityResponse.js","sourceRoot":"","sources":["../../src/models/DescribeUnhealthyHostAvailabilityResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,mHAAgH;AAGhH,MAAa,yCAA0C,SAAQ,KAAK,CAAC,KAAK;IAIxE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,6FAA6C;SACpD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,8FAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityResponseBody.d.ts new file mode 100644 index 0000000..dd9cd93 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityResponseBody.d.ts @@ -0,0 +1,102 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyListNodeTaskInstanceInstanceList extends $dara.Model { + string?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyListNodeTaskInstance extends $dara.Model { + /** + * @remarks + * The ID of the availability monitoring task. + * + * @example + * 123456 + */ + id?: number; + instanceList?: DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyListNodeTaskInstanceInstanceList; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyList extends $dara.Model { + nodeTaskInstance?: DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyListNodeTaskInstance[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DescribeUnhealthyHostAvailabilityResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * User not authorized to operate on the specified resource. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * ACBDBB40-DFB6-4F4C-8957-51FFB233969C + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The unhealthy instances that are detected by the specified availability monitoring tasks. + */ + unhealthyList?: DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyList; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityResponseBody.js new file mode 100644 index 0000000..a73865b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityResponseBody.js @@ -0,0 +1,137 @@ +"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.DescribeUnhealthyHostAvailabilityResponseBody = exports.DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyList = exports.DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyListNodeTaskInstance = exports.DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyListNodeTaskInstanceInstanceList = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyListNodeTaskInstanceInstanceList extends $dara.Model { + static names() { + return { + string: 'String', + }; + } + static types() { + return { + string: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.string)) { + $dara.Model.validateArray(this.string); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyListNodeTaskInstanceInstanceList = DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyListNodeTaskInstanceInstanceList; +class DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyListNodeTaskInstance extends $dara.Model { + static names() { + return { + id: 'Id', + instanceList: 'InstanceList', + }; + } + static types() { + return { + id: 'number', + instanceList: DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyListNodeTaskInstanceInstanceList, + }; + } + validate() { + if (this.instanceList && typeof this.instanceList.validate === 'function') { + this.instanceList.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyListNodeTaskInstance = DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyListNodeTaskInstance; +class DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyList extends $dara.Model { + static names() { + return { + nodeTaskInstance: 'NodeTaskInstance', + }; + } + static types() { + return { + nodeTaskInstance: { 'type': 'array', 'itemType': DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyListNodeTaskInstance }, + }; + } + validate() { + if (Array.isArray(this.nodeTaskInstance)) { + $dara.Model.validateArray(this.nodeTaskInstance); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyList = DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyList; +class DescribeUnhealthyHostAvailabilityResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + unhealthyList: 'UnhealthyList', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + unhealthyList: DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyList, + }; + } + validate() { + if (this.unhealthyList && typeof this.unhealthyList.validate === 'function') { + this.unhealthyList.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DescribeUnhealthyHostAvailabilityResponseBody = DescribeUnhealthyHostAvailabilityResponseBody; +//# sourceMappingURL=DescribeUnhealthyHostAvailabilityResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityResponseBody.js.map new file mode 100644 index 0000000..b6609b6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeUnhealthyHostAvailabilityResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DescribeUnhealthyHostAvailabilityResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeUnhealthyHostAvailabilityResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,sFAAuF,SAAQ,KAAK,CAAC,KAAK;IAErH,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QA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AAgB,CAAC,EAAE,CAAC;YACxC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QACnD,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxBD,gIAwBC;AAED,MAAa,6CAA8C,SAAQ,KAAK,CAAC,KAAK;IA2C5E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,aAAa,EAAE,eAAe;SAC/B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;YAClB,aAAa,EAAE,0DAA0D;SAC1E,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,aAAa,IAAI,OAAQ,IAAI,CAAC,aAAqB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACnF,IAAI,CAAC,aAAqB,CAAC,QAAQ,EAAE,CAAC;QACzC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,sGAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/Dimension.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/Dimension.d.ts new file mode 100644 index 0000000..4056461 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/Dimension.d.ts @@ -0,0 +1,15 @@ +import * as $dara from '@darabonba/typescript'; +export declare class Dimension extends $dara.Model { + label?: string; + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/Dimension.js b/backend/node_modules/@alicloud/cms20190101/dist/models/Dimension.js new file mode 100644 index 0000000..24a8d89 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/Dimension.js @@ -0,0 +1,60 @@ +"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.Dimension = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class Dimension extends $dara.Model { + static names() { + return { + label: 'Label', + value: 'Value', + }; + } + static types() { + return { + label: 'string', + value: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.Dimension = Dimension; +//# sourceMappingURL=Dimension.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/Dimension.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/Dimension.js.map new file mode 100644 index 0000000..3211cc8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/Dimension.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Dimension.js","sourceRoot":"","sources":["../../src/models/Dimension.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,SAAU,SAAQ,KAAK,CAAC,KAAK;IAGxC,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,QAAQ;YACf,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxBD,8BAwBC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleRequest.d.ts new file mode 100644 index 0000000..4336ba0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleRequest.d.ts @@ -0,0 +1,36 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DisableActiveMetricRuleRequest extends $dara.Model { + /** + * @remarks + * The cloud service for which you want to disable proactive alerting. Valid values: + * + * * ECS: Elastic Compute Service (ECS) + * * rds: ApsaraDB RDS + * * slb: Server Load Balancer (SLB) + * * redis_standard: Redis Open-Source Edition (standard architecture) + * * redis_sharding: Redis Open-Source Edition (cluster architecture) + * * redis_splitrw: Redis Open-Source Edition (read/write splitting architecture) + * * mongodb: ApsaraDB for MongoDB of the replica set architecture + * * mongodb_sharding: ApsaraDB for MongoDB of the sharded cluster architecture + * * hbase: ApsaraDB for HBase + * * elasticsearch: Elasticsearch + * * opensearch: OpenSearch + * + * This parameter is required. + * + * @example + * ecs + */ + product?: string; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleRequest.js new file mode 100644 index 0000000..4c23603 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleRequest.js @@ -0,0 +1,60 @@ +"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.DisableActiveMetricRuleRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DisableActiveMetricRuleRequest extends $dara.Model { + static names() { + return { + product: 'Product', + regionId: 'RegionId', + }; + } + static types() { + return { + product: 'string', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DisableActiveMetricRuleRequest = DisableActiveMetricRuleRequest; +//# sourceMappingURL=DisableActiveMetricRuleRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleRequest.js.map new file mode 100644 index 0000000..eee840a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DisableActiveMetricRuleRequest.js","sourceRoot":"","sources":["../../src/models/DisableActiveMetricRuleRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAwB7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA7CD,wEA6CC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleResponse.d.ts new file mode 100644 index 0000000..7ca622d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DisableActiveMetricRuleResponseBody } from "./DisableActiveMetricRuleResponseBody"; +export declare class DisableActiveMetricRuleResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DisableActiveMetricRuleResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleResponse.js new file mode 100644 index 0000000..daef293 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleResponse.js @@ -0,0 +1,69 @@ +"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.DisableActiveMetricRuleResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DisableActiveMetricRuleResponseBody_1 = require("./DisableActiveMetricRuleResponseBody"); +class DisableActiveMetricRuleResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DisableActiveMetricRuleResponseBody_1.DisableActiveMetricRuleResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DisableActiveMetricRuleResponse = DisableActiveMetricRuleResponse; +//# sourceMappingURL=DisableActiveMetricRuleResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleResponse.js.map new file mode 100644 index 0000000..1f7902f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DisableActiveMetricRuleResponse.js","sourceRoot":"","sources":["../../src/models/DisableActiveMetricRuleResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,+FAA4F;AAG5F,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAI9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,yEAAmC;SAC1C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,0EAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleResponseBody.d.ts new file mode 100644 index 0000000..d8fe856 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DisableActiveMetricRuleResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * F82E6667-7811-4BA0-842F-5B2DC42BBAAD + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleResponseBody.js new file mode 100644 index 0000000..3121ad2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleResponseBody.js @@ -0,0 +1,64 @@ +"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.DisableActiveMetricRuleResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DisableActiveMetricRuleResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DisableActiveMetricRuleResponseBody = DisableActiveMetricRuleResponseBody; +//# sourceMappingURL=DisableActiveMetricRuleResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleResponseBody.js.map new file mode 100644 index 0000000..69d4202 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableActiveMetricRuleResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DisableActiveMetricRuleResponseBody.js","sourceRoot":"","sources":["../../src/models/DisableActiveMetricRuleResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IAsClE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,kFA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesRequest.d.ts new file mode 100644 index 0000000..ceeee79 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesRequest.d.ts @@ -0,0 +1,22 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DisableEventRulesRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * This parameter is required. + * + * @example + * ruleName1 + */ + ruleNames?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesRequest.js new file mode 100644 index 0000000..31ef5eb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesRequest.js @@ -0,0 +1,63 @@ +"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.DisableEventRulesRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DisableEventRulesRequest extends $dara.Model { + static names() { + return { + regionId: 'RegionId', + ruleNames: 'RuleNames', + }; + } + static types() { + return { + regionId: 'string', + ruleNames: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.ruleNames)) { + $dara.Model.validateArray(this.ruleNames); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DisableEventRulesRequest = DisableEventRulesRequest; +//# sourceMappingURL=DisableEventRulesRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesRequest.js.map new file mode 100644 index 0000000..484cba6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DisableEventRulesRequest.js","sourceRoot":"","sources":["../../src/models/DisableEventRulesRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wBAAyB,SAAQ,KAAK,CAAC,KAAK;IAUvD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;SACrD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;YACjC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC5C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAlCD,4DAkCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesResponse.d.ts new file mode 100644 index 0000000..c5adeeb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DisableEventRulesResponseBody } from "./DisableEventRulesResponseBody"; +export declare class DisableEventRulesResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DisableEventRulesResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesResponse.js new file mode 100644 index 0000000..8a7222e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesResponse.js @@ -0,0 +1,69 @@ +"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.DisableEventRulesResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DisableEventRulesResponseBody_1 = require("./DisableEventRulesResponseBody"); +class DisableEventRulesResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DisableEventRulesResponseBody_1.DisableEventRulesResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DisableEventRulesResponse = DisableEventRulesResponse; +//# sourceMappingURL=DisableEventRulesResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesResponse.js.map new file mode 100644 index 0000000..60cbed3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DisableEventRulesResponse.js","sourceRoot":"","sources":["../../src/models/DisableEventRulesResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,mFAAgF;AAGhF,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IAIxD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,6DAA6B;SACpC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,8DAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesResponseBody.d.ts new file mode 100644 index 0000000..87c08e2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesResponseBody.d.ts @@ -0,0 +1,47 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DisableEventRulesResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * 3FD0E8B5-F132-4F4E-A081-2878AF378B12 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call was successful. The value true indicates a success. The value false indicates a failure. + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesResponseBody.js new file mode 100644 index 0000000..d2ad6a6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesResponseBody.js @@ -0,0 +1,64 @@ +"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.DisableEventRulesResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DisableEventRulesResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DisableEventRulesResponseBody = DisableEventRulesResponseBody; +//# sourceMappingURL=DisableEventRulesResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesResponseBody.js.map new file mode 100644 index 0000000..56d0608 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableEventRulesResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DisableEventRulesResponseBody.js","sourceRoot":"","sources":["../../src/models/DisableEventRulesResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IAmC5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5DD,sEA4DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityRequest.d.ts new file mode 100644 index 0000000..99c3d9c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityRequest.d.ts @@ -0,0 +1,24 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DisableHostAvailabilityRequest extends $dara.Model { + /** + * @remarks + * The ID of the availability monitoring task. Valid values of N: 1 to 20. + * + * This parameter is required. + * + * @example + * 12345 + */ + id?: number[]; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityRequest.js new file mode 100644 index 0000000..d6a47c2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityRequest.js @@ -0,0 +1,63 @@ +"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.DisableHostAvailabilityRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DisableHostAvailabilityRequest extends $dara.Model { + static names() { + return { + id: 'Id', + regionId: 'RegionId', + }; + } + static types() { + return { + id: { 'type': 'array', 'itemType': 'number' }, + regionId: 'string', + }; + } + validate() { + if (Array.isArray(this.id)) { + $dara.Model.validateArray(this.id); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DisableHostAvailabilityRequest = DisableHostAvailabilityRequest; +//# sourceMappingURL=DisableHostAvailabilityRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityRequest.js.map new file mode 100644 index 0000000..a9c0a13 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DisableHostAvailabilityRequest.js","sourceRoot":"","sources":["../../src/models/DisableHostAvailabilityRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAY7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,EAAE,EAAE,IAAI;YACR,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YAC7C,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;YAC1B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACrC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApCD,wEAoCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityResponse.d.ts new file mode 100644 index 0000000..74f1f60 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DisableHostAvailabilityResponseBody } from "./DisableHostAvailabilityResponseBody"; +export declare class DisableHostAvailabilityResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DisableHostAvailabilityResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityResponse.js new file mode 100644 index 0000000..de7b7e7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityResponse.js @@ -0,0 +1,69 @@ +"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.DisableHostAvailabilityResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DisableHostAvailabilityResponseBody_1 = require("./DisableHostAvailabilityResponseBody"); +class DisableHostAvailabilityResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DisableHostAvailabilityResponseBody_1.DisableHostAvailabilityResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DisableHostAvailabilityResponse = DisableHostAvailabilityResponse; +//# sourceMappingURL=DisableHostAvailabilityResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityResponse.js.map new file mode 100644 index 0000000..2bbfd1c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DisableHostAvailabilityResponse.js","sourceRoot":"","sources":["../../src/models/DisableHostAvailabilityResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,+FAA4F;AAG5F,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAI9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,yEAAmC;SAC1C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,0EAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityResponseBody.d.ts new file mode 100644 index 0000000..50e6b8b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DisableHostAvailabilityResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * User not authorized to operate on the specified resource. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * ACBDBB40-DFB6-4F4C-8957-51FFB233969C + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityResponseBody.js new file mode 100644 index 0000000..1fb50a1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityResponseBody.js @@ -0,0 +1,64 @@ +"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.DisableHostAvailabilityResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DisableHostAvailabilityResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DisableHostAvailabilityResponseBody = DisableHostAvailabilityResponseBody; +//# sourceMappingURL=DisableHostAvailabilityResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityResponseBody.js.map new file mode 100644 index 0000000..f6b345c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableHostAvailabilityResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DisableHostAvailabilityResponseBody.js","sourceRoot":"","sources":["../../src/models/DisableHostAvailabilityResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IAsClE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,kFA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesRequest.d.ts new file mode 100644 index 0000000..9a2c979 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesRequest.d.ts @@ -0,0 +1,24 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DisableMetricRulesRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * The ID of the alert rule. Valid values of N: 1 to 20. + * + * This parameter is required. + * + * @example + * detect_87****_HTTP_HttpLatency + */ + ruleId?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesRequest.js new file mode 100644 index 0000000..dd0d7f2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesRequest.js @@ -0,0 +1,63 @@ +"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.DisableMetricRulesRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DisableMetricRulesRequest extends $dara.Model { + static names() { + return { + regionId: 'RegionId', + ruleId: 'RuleId', + }; + } + static types() { + return { + regionId: 'string', + ruleId: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.ruleId)) { + $dara.Model.validateArray(this.ruleId); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DisableMetricRulesRequest = DisableMetricRulesRequest; +//# sourceMappingURL=DisableMetricRulesRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesRequest.js.map new file mode 100644 index 0000000..fbf8157 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DisableMetricRulesRequest.js","sourceRoot":"","sources":["../../src/models/DisableMetricRulesRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IAYxD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,MAAM,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;SAClD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;YAC9B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACzC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApCD,8DAoCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesResponse.d.ts new file mode 100644 index 0000000..f2a370d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DisableMetricRulesResponseBody } from "./DisableMetricRulesResponseBody"; +export declare class DisableMetricRulesResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DisableMetricRulesResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesResponse.js new file mode 100644 index 0000000..d5381d9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesResponse.js @@ -0,0 +1,69 @@ +"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.DisableMetricRulesResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DisableMetricRulesResponseBody_1 = require("./DisableMetricRulesResponseBody"); +class DisableMetricRulesResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DisableMetricRulesResponseBody_1.DisableMetricRulesResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DisableMetricRulesResponse = DisableMetricRulesResponse; +//# sourceMappingURL=DisableMetricRulesResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesResponse.js.map new file mode 100644 index 0000000..1a0f1c1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DisableMetricRulesResponse.js","sourceRoot":"","sources":["../../src/models/DisableMetricRulesResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,qFAAkF;AAGlF,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IAIzD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,+DAA8B;SACrC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,gEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesResponseBody.d.ts new file mode 100644 index 0000000..8978fb7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DisableMetricRulesResponseBody extends $dara.Model { + /** + * @remarks + * The responses code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * RuleId is mandatory for this action. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * FF38D33A-67C1-40EB-AB65-FAEE51EDB644 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesResponseBody.js new file mode 100644 index 0000000..663b89a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesResponseBody.js @@ -0,0 +1,64 @@ +"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.DisableMetricRulesResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DisableMetricRulesResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DisableMetricRulesResponseBody = DisableMetricRulesResponseBody; +//# sourceMappingURL=DisableMetricRulesResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesResponseBody.js.map new file mode 100644 index 0000000..76fd5a9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableMetricRulesResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DisableMetricRulesResponseBody.js","sourceRoot":"","sources":["../../src/models/DisableMetricRulesResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAsC7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,wEA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsRequest.d.ts new file mode 100644 index 0000000..47f5052 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsRequest.d.ts @@ -0,0 +1,24 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DisableSiteMonitorsRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * The ID of the site monitoring task. Separate multiple IDs with commas (,). + * + * This parameter is required. + * + * @example + * 49f7b317-7645-4cc9-94fd-ea42e522****,49f7b317-7645-4cc9-94fd-ea42e522**** + */ + taskIds?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsRequest.js new file mode 100644 index 0000000..8f46a20 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsRequest.js @@ -0,0 +1,60 @@ +"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.DisableSiteMonitorsRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DisableSiteMonitorsRequest extends $dara.Model { + static names() { + return { + regionId: 'RegionId', + taskIds: 'TaskIds', + }; + } + static types() { + return { + regionId: 'string', + taskIds: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DisableSiteMonitorsRequest = DisableSiteMonitorsRequest; +//# sourceMappingURL=DisableSiteMonitorsRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsRequest.js.map new file mode 100644 index 0000000..243189e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DisableSiteMonitorsRequest.js","sourceRoot":"","sources":["../../src/models/DisableSiteMonitorsRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IAYzD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,gEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsResponse.d.ts new file mode 100644 index 0000000..94f7b70 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { DisableSiteMonitorsResponseBody } from "./DisableSiteMonitorsResponseBody"; +export declare class DisableSiteMonitorsResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: DisableSiteMonitorsResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsResponse.js new file mode 100644 index 0000000..18124ca --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsResponse.js @@ -0,0 +1,69 @@ +"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.DisableSiteMonitorsResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const DisableSiteMonitorsResponseBody_1 = require("./DisableSiteMonitorsResponseBody"); +class DisableSiteMonitorsResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DisableSiteMonitorsResponseBody_1.DisableSiteMonitorsResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DisableSiteMonitorsResponse = DisableSiteMonitorsResponse; +//# sourceMappingURL=DisableSiteMonitorsResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsResponse.js.map new file mode 100644 index 0000000..3011a20 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DisableSiteMonitorsResponse.js","sourceRoot":"","sources":["../../src/models/DisableSiteMonitorsResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,uFAAoF;AAGpF,MAAa,2BAA4B,SAAQ,KAAK,CAAC,KAAK;IAI1D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,iEAA+B;SACtC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,kEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsResponseBody.d.ts new file mode 100644 index 0000000..92437f6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsResponseBody.d.ts @@ -0,0 +1,75 @@ +import * as $dara from '@darabonba/typescript'; +export declare class DisableSiteMonitorsResponseBodyData extends $dara.Model { + /** + * @remarks + * The number of detection points. + * + * @example + * 0 + */ + count?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class DisableSiteMonitorsResponseBody extends $dara.Model { + /** + * @remarks + * The responses code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The number of detection points that are affected by the site monitoring tasks. + */ + data?: DisableSiteMonitorsResponseBodyData; + /** + * @remarks + * The returned message. + * + * @example + * successful + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 3fcd12e7-d387-42ee-b77e-661c775bb17f + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsResponseBody.js new file mode 100644 index 0000000..46546a1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsResponseBody.js @@ -0,0 +1,88 @@ +"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.DisableSiteMonitorsResponseBody = exports.DisableSiteMonitorsResponseBodyData = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class DisableSiteMonitorsResponseBodyData extends $dara.Model { + static names() { + return { + count: 'count', + }; + } + static types() { + return { + count: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DisableSiteMonitorsResponseBodyData = DisableSiteMonitorsResponseBodyData; +class DisableSiteMonitorsResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + data: 'Data', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + data: DisableSiteMonitorsResponseBodyData, + message: 'string', + requestId: 'string', + success: 'string', + }; + } + validate() { + if (this.data && typeof this.data.validate === 'function') { + this.data.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.DisableSiteMonitorsResponseBody = DisableSiteMonitorsResponseBody; +//# sourceMappingURL=DisableSiteMonitorsResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsResponseBody.js.map new file mode 100644 index 0000000..f899d40 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/DisableSiteMonitorsResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DisableSiteMonitorsResponseBody.js","sourceRoot":"","sources":["../../src/models/DisableSiteMonitorsResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IASlE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5BD,kFA4BC;AAED,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IA2C9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,mCAAmC;YACzC,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,0EAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleRequest.d.ts new file mode 100644 index 0000000..514561f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleRequest.d.ts @@ -0,0 +1,36 @@ +import * as $dara from '@darabonba/typescript'; +export declare class EnableActiveMetricRuleRequest extends $dara.Model { + /** + * @remarks + * The cloud service for which you want to enable initiative alert. Valid values: + * + * * ECS: Elastic Compute Service (ECS) + * * rds: ApsaraDB RDS + * * slb: Server Load Balancer (SLB) + * * redis_standard: Redis Open-Source Edition (standard architecture) + * * redis_sharding: Redis Open-Source Edition (cluster architecture) + * * redis_splitrw: Redis Open-Source Edition (read/write splitting architecture) + * * mongodb: ApsaraDB for MongoDB of the replica set architecture + * * mongodb_sharding: ApsaraDB for MongoDB of the sharded cluster architecture + * * hbase: ApsaraDB for HBase + * * elasticsearch: Elasticsearch + * * opensearch: OpenSearch + * + * This parameter is required. + * + * @example + * ecs + */ + product?: string; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleRequest.js new file mode 100644 index 0000000..c304688 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleRequest.js @@ -0,0 +1,60 @@ +"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.EnableActiveMetricRuleRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class EnableActiveMetricRuleRequest extends $dara.Model { + static names() { + return { + product: 'Product', + regionId: 'RegionId', + }; + } + static types() { + return { + product: 'string', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.EnableActiveMetricRuleRequest = EnableActiveMetricRuleRequest; +//# sourceMappingURL=EnableActiveMetricRuleRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleRequest.js.map new file mode 100644 index 0000000..05b7f15 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EnableActiveMetricRuleRequest.js","sourceRoot":"","sources":["../../src/models/EnableActiveMetricRuleRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IAwB5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA7CD,sEA6CC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleResponse.d.ts new file mode 100644 index 0000000..9ce1fa9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { EnableActiveMetricRuleResponseBody } from "./EnableActiveMetricRuleResponseBody"; +export declare class EnableActiveMetricRuleResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: EnableActiveMetricRuleResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleResponse.js new file mode 100644 index 0000000..5f10965 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleResponse.js @@ -0,0 +1,69 @@ +"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.EnableActiveMetricRuleResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const EnableActiveMetricRuleResponseBody_1 = require("./EnableActiveMetricRuleResponseBody"); +class EnableActiveMetricRuleResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: EnableActiveMetricRuleResponseBody_1.EnableActiveMetricRuleResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.EnableActiveMetricRuleResponse = EnableActiveMetricRuleResponse; +//# sourceMappingURL=EnableActiveMetricRuleResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleResponse.js.map new file mode 100644 index 0000000..04ec33a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EnableActiveMetricRuleResponse.js","sourceRoot":"","sources":["../../src/models/EnableActiveMetricRuleResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,6FAA0F;AAG1F,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAI7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,uEAAkC;SACzC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,wEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleResponseBody.d.ts new file mode 100644 index 0000000..5dbe168 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class EnableActiveMetricRuleResponseBody extends $dara.Model { + /** + * @remarks + * The responses code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * F82E6667-7811-4BA0-842F-5B2DC42BBAAD + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleResponseBody.js new file mode 100644 index 0000000..a5fb34f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleResponseBody.js @@ -0,0 +1,64 @@ +"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.EnableActiveMetricRuleResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class EnableActiveMetricRuleResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.EnableActiveMetricRuleResponseBody = EnableActiveMetricRuleResponseBody; +//# sourceMappingURL=EnableActiveMetricRuleResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleResponseBody.js.map new file mode 100644 index 0000000..0ee1031 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableActiveMetricRuleResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EnableActiveMetricRuleResponseBody.js","sourceRoot":"","sources":["../../src/models/EnableActiveMetricRuleResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;IAsCjE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,gFA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesRequest.d.ts new file mode 100644 index 0000000..49eabcf --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesRequest.d.ts @@ -0,0 +1,22 @@ +import * as $dara from '@darabonba/typescript'; +export declare class EnableEventRulesRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * This parameter is required. + * + * @example + * ruleName1 + */ + ruleNames?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesRequest.js new file mode 100644 index 0000000..4327822 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesRequest.js @@ -0,0 +1,63 @@ +"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.EnableEventRulesRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class EnableEventRulesRequest extends $dara.Model { + static names() { + return { + regionId: 'RegionId', + ruleNames: 'RuleNames', + }; + } + static types() { + return { + regionId: 'string', + ruleNames: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.ruleNames)) { + $dara.Model.validateArray(this.ruleNames); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.EnableEventRulesRequest = EnableEventRulesRequest; +//# sourceMappingURL=EnableEventRulesRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesRequest.js.map new file mode 100644 index 0000000..864c942 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EnableEventRulesRequest.js","sourceRoot":"","sources":["../../src/models/EnableEventRulesRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,uBAAwB,SAAQ,KAAK,CAAC,KAAK;IAUtD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;SACrD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;YACjC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC5C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAlCD,0DAkCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesResponse.d.ts new file mode 100644 index 0000000..c7bde09 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { EnableEventRulesResponseBody } from "./EnableEventRulesResponseBody"; +export declare class EnableEventRulesResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: EnableEventRulesResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesResponse.js new file mode 100644 index 0000000..9586a09 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesResponse.js @@ -0,0 +1,69 @@ +"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.EnableEventRulesResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const EnableEventRulesResponseBody_1 = require("./EnableEventRulesResponseBody"); +class EnableEventRulesResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: EnableEventRulesResponseBody_1.EnableEventRulesResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.EnableEventRulesResponse = EnableEventRulesResponse; +//# sourceMappingURL=EnableEventRulesResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesResponse.js.map new file mode 100644 index 0000000..da93b90 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EnableEventRulesResponse.js","sourceRoot":"","sources":["../../src/models/EnableEventRulesResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,iFAA8E;AAG9E,MAAa,wBAAyB,SAAQ,KAAK,CAAC,KAAK;IAIvD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,2DAA4B;SACnC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,4DAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesResponseBody.d.ts new file mode 100644 index 0000000..28acc40 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesResponseBody.d.ts @@ -0,0 +1,47 @@ +import * as $dara from '@darabonba/typescript'; +export declare class EnableEventRulesResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * 20F2896A-6684-4A04-8255-4155B1593C70 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call was successful. The value true indicates a success. The value false indicates a failure. + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesResponseBody.js new file mode 100644 index 0000000..00fa6c3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesResponseBody.js @@ -0,0 +1,64 @@ +"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.EnableEventRulesResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class EnableEventRulesResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.EnableEventRulesResponseBody = EnableEventRulesResponseBody; +//# sourceMappingURL=EnableEventRulesResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesResponseBody.js.map new file mode 100644 index 0000000..02e08eb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableEventRulesResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EnableEventRulesResponseBody.js","sourceRoot":"","sources":["../../src/models/EnableEventRulesResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,4BAA6B,SAAQ,KAAK,CAAC,KAAK;IAmC3D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5DD,oEA4DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityRequest.d.ts new file mode 100644 index 0000000..30329f6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityRequest.d.ts @@ -0,0 +1,24 @@ +import * as $dara from '@darabonba/typescript'; +export declare class EnableHostAvailabilityRequest extends $dara.Model { + /** + * @remarks + * The ID of the availability monitoring task. Valid values of N: 1 to 20. + * + * This parameter is required. + * + * @example + * 123456 + */ + id?: number[]; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityRequest.js new file mode 100644 index 0000000..0f57bf8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityRequest.js @@ -0,0 +1,63 @@ +"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.EnableHostAvailabilityRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class EnableHostAvailabilityRequest extends $dara.Model { + static names() { + return { + id: 'Id', + regionId: 'RegionId', + }; + } + static types() { + return { + id: { 'type': 'array', 'itemType': 'number' }, + regionId: 'string', + }; + } + validate() { + if (Array.isArray(this.id)) { + $dara.Model.validateArray(this.id); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.EnableHostAvailabilityRequest = EnableHostAvailabilityRequest; +//# sourceMappingURL=EnableHostAvailabilityRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityRequest.js.map new file mode 100644 index 0000000..fb34206 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EnableHostAvailabilityRequest.js","sourceRoot":"","sources":["../../src/models/EnableHostAvailabilityRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IAY5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,EAAE,EAAE,IAAI;YACR,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YAC7C,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;YAC1B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACrC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApCD,sEAoCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityResponse.d.ts new file mode 100644 index 0000000..1fa8d42 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { EnableHostAvailabilityResponseBody } from "./EnableHostAvailabilityResponseBody"; +export declare class EnableHostAvailabilityResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: EnableHostAvailabilityResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityResponse.js new file mode 100644 index 0000000..9862b5f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityResponse.js @@ -0,0 +1,69 @@ +"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.EnableHostAvailabilityResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const EnableHostAvailabilityResponseBody_1 = require("./EnableHostAvailabilityResponseBody"); +class EnableHostAvailabilityResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: EnableHostAvailabilityResponseBody_1.EnableHostAvailabilityResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.EnableHostAvailabilityResponse = EnableHostAvailabilityResponse; +//# sourceMappingURL=EnableHostAvailabilityResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityResponse.js.map new file mode 100644 index 0000000..9bf70df --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EnableHostAvailabilityResponse.js","sourceRoot":"","sources":["../../src/models/EnableHostAvailabilityResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,6FAA0F;AAG1F,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAI7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,uEAAkC;SACzC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,wEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityResponseBody.d.ts new file mode 100644 index 0000000..8603eab --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class EnableHostAvailabilityResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * User not authorized to operate on the specified resource. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * ACBDBB40-DFB6-4F4C-8957-51FFB233969C + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityResponseBody.js new file mode 100644 index 0000000..da5efd0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityResponseBody.js @@ -0,0 +1,64 @@ +"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.EnableHostAvailabilityResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class EnableHostAvailabilityResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.EnableHostAvailabilityResponseBody = EnableHostAvailabilityResponseBody; +//# sourceMappingURL=EnableHostAvailabilityResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityResponseBody.js.map new file mode 100644 index 0000000..44657bd --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableHostAvailabilityResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EnableHostAvailabilityResponseBody.js","sourceRoot":"","sources":["../../src/models/EnableHostAvailabilityResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;IAsCjE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,gFA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListRequest.d.ts new file mode 100644 index 0000000..d267e6c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListRequest.d.ts @@ -0,0 +1,41 @@ +import * as $dara from '@darabonba/typescript'; +export declare class EnableMetricRuleBlackListRequest extends $dara.Model { + /** + * @remarks + * The IDs of the blacklist policies. Separate multiple IDs with commas (,). You can specify up to 50 IDs. + * + * For information about how to obtain the ID of a blacklist policy, see [DescribeMetricRuleBlackList](https://help.aliyun.com/document_detail/457257.html). + * + * > You can also set this parameter to a JSON array. Example: `["a9ad2ac2-3ed9-11ed-b878-0242ac12****","5cb8a9a4-198f-4651-a353-f8b28788****"]`. + * + * This parameter is required. + * + * @example + * a9ad2ac2-3ed9-11ed-b878-0242ac12**** + */ + id?: string; + /** + * @remarks + * Specifies whether to enable the blacklist policy. Valid values: + * + * * true: The blacklist policy is enabled. + * * false (default): The blacklist policy is disabled. + * + * This parameter is required. + * + * @example + * true + */ + isEnable?: boolean; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListRequest.js new file mode 100644 index 0000000..e147146 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListRequest.js @@ -0,0 +1,62 @@ +"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.EnableMetricRuleBlackListRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class EnableMetricRuleBlackListRequest extends $dara.Model { + static names() { + return { + id: 'Id', + isEnable: 'IsEnable', + regionId: 'RegionId', + }; + } + static types() { + return { + id: 'string', + isEnable: 'boolean', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.EnableMetricRuleBlackListRequest = EnableMetricRuleBlackListRequest; +//# sourceMappingURL=EnableMetricRuleBlackListRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListRequest.js.map new file mode 100644 index 0000000..59155b4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EnableMetricRuleBlackListRequest.js","sourceRoot":"","sources":["../../src/models/EnableMetricRuleBlackListRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IA6B/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,EAAE,EAAE,IAAI;YACR,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,EAAE,EAAE,QAAQ;YACZ,QAAQ,EAAE,SAAS;YACnB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApDD,4EAoDC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListResponse.d.ts new file mode 100644 index 0000000..bbc14be --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { EnableMetricRuleBlackListResponseBody } from "./EnableMetricRuleBlackListResponseBody"; +export declare class EnableMetricRuleBlackListResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: EnableMetricRuleBlackListResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListResponse.js new file mode 100644 index 0000000..5c29d70 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListResponse.js @@ -0,0 +1,69 @@ +"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.EnableMetricRuleBlackListResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const EnableMetricRuleBlackListResponseBody_1 = require("./EnableMetricRuleBlackListResponseBody"); +class EnableMetricRuleBlackListResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: EnableMetricRuleBlackListResponseBody_1.EnableMetricRuleBlackListResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.EnableMetricRuleBlackListResponse = EnableMetricRuleBlackListResponse; +//# sourceMappingURL=EnableMetricRuleBlackListResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListResponse.js.map new file mode 100644 index 0000000..bc2a08a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EnableMetricRuleBlackListResponse.js","sourceRoot":"","sources":["../../src/models/EnableMetricRuleBlackListResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,mGAAgG;AAGhG,MAAa,iCAAkC,SAAQ,KAAK,CAAC,KAAK;IAIhE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,6EAAqC;SAC5C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,8EAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListResponseBody.d.ts new file mode 100644 index 0000000..ee3895c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListResponseBody.d.ts @@ -0,0 +1,58 @@ +import * as $dara from '@darabonba/typescript'; +export declare class EnableMetricRuleBlackListResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The number of blacklist policies that are enabled or disabled. + * + * @example + * 1 + */ + count?: number; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 94869866-1621-3652-BBC9-72A47B2AC2F5 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListResponseBody.js new file mode 100644 index 0000000..2674ef5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListResponseBody.js @@ -0,0 +1,66 @@ +"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.EnableMetricRuleBlackListResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class EnableMetricRuleBlackListResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + count: 'Count', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + count: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.EnableMetricRuleBlackListResponseBody = EnableMetricRuleBlackListResponseBody; +//# sourceMappingURL=EnableMetricRuleBlackListResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListResponseBody.js.map new file mode 100644 index 0000000..27688aa --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRuleBlackListResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EnableMetricRuleBlackListResponseBody.js","sourceRoot":"","sources":["../../src/models/EnableMetricRuleBlackListResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qCAAsC,SAAQ,KAAK,CAAC,KAAK;IA8CpE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,OAAO;YACd,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,sFAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesRequest.d.ts new file mode 100644 index 0000000..4117577 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesRequest.d.ts @@ -0,0 +1,28 @@ +import * as $dara from '@darabonba/typescript'; +export declare class EnableMetricRulesRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * The IDs of the alert rules. + * + * Valid values of N: 1 to 100. + * + * For information about how to obtain the ID of an alert rule, see [DescribeMetricRuleList](https://help.aliyun.com/document_detail/114941.html). + * + * This parameter is required. + * + * @example + * ab05733c97b7ce239fb1b53393dc1697c123**** + */ + ruleId?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesRequest.js new file mode 100644 index 0000000..068f230 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesRequest.js @@ -0,0 +1,63 @@ +"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.EnableMetricRulesRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class EnableMetricRulesRequest extends $dara.Model { + static names() { + return { + regionId: 'RegionId', + ruleId: 'RuleId', + }; + } + static types() { + return { + regionId: 'string', + ruleId: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.ruleId)) { + $dara.Model.validateArray(this.ruleId); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.EnableMetricRulesRequest = EnableMetricRulesRequest; +//# sourceMappingURL=EnableMetricRulesRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesRequest.js.map new file mode 100644 index 0000000..7f99234 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EnableMetricRulesRequest.js","sourceRoot":"","sources":["../../src/models/EnableMetricRulesRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wBAAyB,SAAQ,KAAK,CAAC,KAAK;IAgBvD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,MAAM,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;SAClD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;YAC9B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACzC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxCD,4DAwCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesResponse.d.ts new file mode 100644 index 0000000..87173e4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { EnableMetricRulesResponseBody } from "./EnableMetricRulesResponseBody"; +export declare class EnableMetricRulesResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: EnableMetricRulesResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesResponse.js new file mode 100644 index 0000000..c28a5d4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesResponse.js @@ -0,0 +1,69 @@ +"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.EnableMetricRulesResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const EnableMetricRulesResponseBody_1 = require("./EnableMetricRulesResponseBody"); +class EnableMetricRulesResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: EnableMetricRulesResponseBody_1.EnableMetricRulesResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.EnableMetricRulesResponse = EnableMetricRulesResponse; +//# sourceMappingURL=EnableMetricRulesResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesResponse.js.map new file mode 100644 index 0000000..9633cc3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EnableMetricRulesResponse.js","sourceRoot":"","sources":["../../src/models/EnableMetricRulesResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,mFAAgF;AAGhF,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IAIxD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,6DAA6B;SACpC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,8DAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesResponseBody.d.ts new file mode 100644 index 0000000..64803bb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class EnableMetricRulesResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * FF38D33A-67C1-40EB-AB65-FAEE51EDB644 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesResponseBody.js new file mode 100644 index 0000000..d9c6b15 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesResponseBody.js @@ -0,0 +1,64 @@ +"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.EnableMetricRulesResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class EnableMetricRulesResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.EnableMetricRulesResponseBody = EnableMetricRulesResponseBody; +//# sourceMappingURL=EnableMetricRulesResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesResponseBody.js.map new file mode 100644 index 0000000..f61d843 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableMetricRulesResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EnableMetricRulesResponseBody.js","sourceRoot":"","sources":["../../src/models/EnableMetricRulesResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IAsC5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,sEA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsRequest.d.ts new file mode 100644 index 0000000..fb78f2f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsRequest.d.ts @@ -0,0 +1,24 @@ +import * as $dara from '@darabonba/typescript'; +export declare class EnableSiteMonitorsRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * The ID of the site monitoring task. Separate multiple IDs with commas (,). + * + * This parameter is required. + * + * @example + * 49f7b317-7645-4cc9-94fd-ea42e522****,49f7b317-7645-4cc9-94fd-ea42e522**** + */ + taskIds?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsRequest.js new file mode 100644 index 0000000..821c411 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsRequest.js @@ -0,0 +1,60 @@ +"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.EnableSiteMonitorsRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class EnableSiteMonitorsRequest extends $dara.Model { + static names() { + return { + regionId: 'RegionId', + taskIds: 'TaskIds', + }; + } + static types() { + return { + regionId: 'string', + taskIds: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.EnableSiteMonitorsRequest = EnableSiteMonitorsRequest; +//# sourceMappingURL=EnableSiteMonitorsRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsRequest.js.map new file mode 100644 index 0000000..6fe2e16 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EnableSiteMonitorsRequest.js","sourceRoot":"","sources":["../../src/models/EnableSiteMonitorsRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IAYxD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,8DAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsResponse.d.ts new file mode 100644 index 0000000..8adbcb9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { EnableSiteMonitorsResponseBody } from "./EnableSiteMonitorsResponseBody"; +export declare class EnableSiteMonitorsResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: EnableSiteMonitorsResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsResponse.js new file mode 100644 index 0000000..1f9222a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsResponse.js @@ -0,0 +1,69 @@ +"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.EnableSiteMonitorsResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const EnableSiteMonitorsResponseBody_1 = require("./EnableSiteMonitorsResponseBody"); +class EnableSiteMonitorsResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: EnableSiteMonitorsResponseBody_1.EnableSiteMonitorsResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.EnableSiteMonitorsResponse = EnableSiteMonitorsResponse; +//# sourceMappingURL=EnableSiteMonitorsResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsResponse.js.map new file mode 100644 index 0000000..fa2b735 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EnableSiteMonitorsResponse.js","sourceRoot":"","sources":["../../src/models/EnableSiteMonitorsResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,qFAAkF;AAGlF,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IAIzD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,+DAA8B;SACrC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,gEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsResponseBody.d.ts new file mode 100644 index 0000000..3e02eeb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsResponseBody.d.ts @@ -0,0 +1,75 @@ +import * as $dara from '@darabonba/typescript'; +export declare class EnableSiteMonitorsResponseBodyData extends $dara.Model { + /** + * @remarks + * The number of detection points. + * + * @example + * 0 + */ + count?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class EnableSiteMonitorsResponseBody extends $dara.Model { + /** + * @remarks + * The responses code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The number of detection points that are affected by the site monitoring tasks. + */ + data?: EnableSiteMonitorsResponseBodyData; + /** + * @remarks + * The returned message. + * + * @example + * successful + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 3fcd12e7-d387-42ee-b77e-661c775bb17f + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsResponseBody.js new file mode 100644 index 0000000..ce0bedd --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsResponseBody.js @@ -0,0 +1,88 @@ +"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.EnableSiteMonitorsResponseBody = exports.EnableSiteMonitorsResponseBodyData = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class EnableSiteMonitorsResponseBodyData extends $dara.Model { + static names() { + return { + count: 'count', + }; + } + static types() { + return { + count: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.EnableSiteMonitorsResponseBodyData = EnableSiteMonitorsResponseBodyData; +class EnableSiteMonitorsResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + data: 'Data', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + data: EnableSiteMonitorsResponseBodyData, + message: 'string', + requestId: 'string', + success: 'string', + }; + } + validate() { + if (this.data && typeof this.data.validate === 'function') { + this.data.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.EnableSiteMonitorsResponseBody = EnableSiteMonitorsResponseBody; +//# sourceMappingURL=EnableSiteMonitorsResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsResponseBody.js.map new file mode 100644 index 0000000..63e102b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EnableSiteMonitorsResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EnableSiteMonitorsResponseBody.js","sourceRoot":"","sources":["../../src/models/EnableSiteMonitorsResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;IASjE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5BD,gFA4BC;AAED,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IA2C7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,kCAAkC;YACxC,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,wEAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EscalationRule.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/EscalationRule.d.ts new file mode 100644 index 0000000..87781eb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EscalationRule.d.ts @@ -0,0 +1,61 @@ +import * as $dara from '@darabonba/typescript'; +export declare class EscalationRuleEscalationsContactGroupsByLevel extends $dara.Model { + critical?: string[]; + error?: string[]; + info?: string[]; + resolve?: string[]; + warning?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class EscalationRuleEscalations extends $dara.Model { + backupContactGroups?: string[]; + contactGroups?: string[]; + contactGroupsByLevel?: EscalationRuleEscalationsContactGroupsByLevel; + escalateMin?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class EscalationRule extends $dara.Model { + createTime?: string; + description?: string; + /** + * @remarks + * This parameter is required. + */ + escalations?: EscalationRuleEscalations[]; + /** + * @remarks + * This parameter is required. + */ + name?: string; + updateTime?: string; + userId?: string; + uuid?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EscalationRule.js b/backend/node_modules/@alicloud/cms20190101/dist/models/EscalationRule.js new file mode 100644 index 0000000..f30ddde --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EscalationRule.js @@ -0,0 +1,149 @@ +"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.EscalationRule = exports.EscalationRuleEscalations = exports.EscalationRuleEscalationsContactGroupsByLevel = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class EscalationRuleEscalationsContactGroupsByLevel extends $dara.Model { + static names() { + return { + critical: 'Critical', + error: 'Error', + info: 'Info', + resolve: 'Resolve', + warning: 'Warning', + }; + } + static types() { + return { + critical: { 'type': 'array', 'itemType': 'string' }, + error: { 'type': 'array', 'itemType': 'string' }, + info: { 'type': 'array', 'itemType': 'string' }, + resolve: { 'type': 'array', 'itemType': 'string' }, + warning: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.critical)) { + $dara.Model.validateArray(this.critical); + } + if (Array.isArray(this.error)) { + $dara.Model.validateArray(this.error); + } + if (Array.isArray(this.info)) { + $dara.Model.validateArray(this.info); + } + if (Array.isArray(this.resolve)) { + $dara.Model.validateArray(this.resolve); + } + if (Array.isArray(this.warning)) { + $dara.Model.validateArray(this.warning); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.EscalationRuleEscalationsContactGroupsByLevel = EscalationRuleEscalationsContactGroupsByLevel; +class EscalationRuleEscalations extends $dara.Model { + static names() { + return { + backupContactGroups: 'BackupContactGroups', + contactGroups: 'ContactGroups', + contactGroupsByLevel: 'ContactGroupsByLevel', + escalateMin: 'EscalateMin', + }; + } + static types() { + return { + backupContactGroups: { 'type': 'array', 'itemType': 'string' }, + contactGroups: { 'type': 'array', 'itemType': 'string' }, + contactGroupsByLevel: EscalationRuleEscalationsContactGroupsByLevel, + escalateMin: 'number', + }; + } + validate() { + if (Array.isArray(this.backupContactGroups)) { + $dara.Model.validateArray(this.backupContactGroups); + } + if (Array.isArray(this.contactGroups)) { + $dara.Model.validateArray(this.contactGroups); + } + if (this.contactGroupsByLevel && typeof this.contactGroupsByLevel.validate === 'function') { + this.contactGroupsByLevel.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.EscalationRuleEscalations = EscalationRuleEscalations; +class EscalationRule extends $dara.Model { + static names() { + return { + createTime: 'CreateTime', + description: 'Description', + escalations: 'Escalations', + name: 'Name', + updateTime: 'UpdateTime', + userId: 'UserId', + uuid: 'Uuid', + }; + } + static types() { + return { + createTime: 'string', + description: 'string', + escalations: { 'type': 'array', 'itemType': EscalationRuleEscalations }, + name: 'string', + updateTime: 'string', + userId: 'string', + uuid: 'string', + }; + } + validate() { + if (Array.isArray(this.escalations)) { + $dara.Model.validateArray(this.escalations); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.EscalationRule = EscalationRule; +//# sourceMappingURL=EscalationRule.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/EscalationRule.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/EscalationRule.js.map new file mode 100644 index 0000000..49fb393 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/EscalationRule.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EscalationRule.js","sourceRoot":"","sources":["../../src/models/EscalationRule.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6CAA8C,SAAQ,KAAK,CAAC,KAAK;IAM5E,MA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C,QAAQ,EAAE,CAAC;QAChD,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAvCD,8DAuCC;AAED,MAAa,cAAe,SAAQ,KAAK,CAAC,KAAK;IAgB7C,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,aAAa;YAC1B,IAAI,EAAE,MAAM;YACZ,UAAU,EAAE,YAAY;YACxB,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,yBAAyB,EAAE;YACvE,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,QAAQ;YACpB,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,QAAQ;SACf,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;YACnC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC9C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAlDD,wCAkDC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/Incident.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/Incident.d.ts new file mode 100644 index 0000000..b9bce46 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/Incident.d.ts @@ -0,0 +1,27 @@ +import * as $dara from '@darabonba/typescript'; +export declare class Incident extends $dara.Model { + actionTime?: number; + alertCount?: number; + endTime?: number; + groupingData?: { + [key: string]: any; + }; + groupingId?: string; + groupingKey?: string; + incidentId?: string; + incidentStatus?: string; + severity?: string; + startTime?: number; + strategyUuid?: string; + userId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/Incident.js b/backend/node_modules/@alicloud/cms20190101/dist/models/Incident.js new file mode 100644 index 0000000..760a0e0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/Incident.js @@ -0,0 +1,83 @@ +"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.Incident = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class Incident extends $dara.Model { + static names() { + return { + actionTime: 'ActionTime', + alertCount: 'AlertCount', + endTime: 'EndTime', + groupingData: 'GroupingData', + groupingId: 'GroupingId', + groupingKey: 'GroupingKey', + incidentId: 'IncidentId', + incidentStatus: 'IncidentStatus', + severity: 'Severity', + startTime: 'StartTime', + strategyUuid: 'StrategyUuid', + userId: 'UserId', + }; + } + static types() { + return { + actionTime: 'number', + alertCount: 'number', + endTime: 'number', + groupingData: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' }, + groupingId: 'string', + groupingKey: 'string', + incidentId: 'string', + incidentStatus: 'string', + severity: 'string', + startTime: 'number', + strategyUuid: 'string', + userId: 'string', + }; + } + validate() { + if (this.groupingData) { + $dara.Model.validateMap(this.groupingData); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.Incident = Incident; +//# sourceMappingURL=Incident.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/Incident.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/Incident.js.map new file mode 100644 index 0000000..947191b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/Incident.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Incident.js","sourceRoot":"","sources":["../../src/models/Incident.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,QAAS,SAAQ,KAAK,CAAC,KAAK;IAavC,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,UAAU,EAAE,YAAY;YACxB,OAAO,EAAE,SAAS;YAClB,YAAY,EAAE,cAAc;YAC5B,UAAU,EAAE,YAAY;YACxB,WAAW,EAAE,aAAa;YAC1B,UAAU,EAAE,YAAY;YACxB,cAAc,EAAE,gBAAgB;YAChC,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;YACtB,YAAY,EAAE,cAAc;YAC5B,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,UAAU,EAAE,QAAQ;YACpB,OAAO,EAAE,QAAQ;YACjB,YAAY,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE;YACxE,UAAU,EAAE,QAAQ;YACpB,WAAW,EAAE,QAAQ;YACrB,UAAU,EAAE,QAAQ;YACpB,cAAc,EAAE,QAAQ;YACxB,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,QAAQ;YACnB,YAAY,EAAE,QAAQ;YACtB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,YAAY,EAAE,CAAC;YACrB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC7C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzDD,4BAyDC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentRequest.d.ts new file mode 100644 index 0000000..9c72b53 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentRequest.d.ts @@ -0,0 +1,44 @@ +import * as $dara from '@darabonba/typescript'; +export declare class InstallMonitoringAgentRequest extends $dara.Model { + /** + * @remarks + * Specifies whether to install the CloudMonitor agent. Valid values: + * + * * true (default value): yes + * * false: no + * + * @example + * true + */ + force?: boolean; + /** + * @remarks + * Specifies whether to install the CloudMonitor agent on all ECS instances that belong to the current Alibaba Cloud account. Valid values: + * + * * `onlyInstallNotHasAgent`: installs the latest version of the CloudMonitor agent only on ECS instances on which the agent is not installed. + * * `onlyUpgradeAgent`: upgrades the CloudMonitor agent to the latest version only for ECS instances on which an earlier version of the agent is installed. + * * `installAndUpgrade`: installs the latest version of the CloudMonitor agent on ECS instances on which the agent is not installed, and upgrades the CloudMonitor agent to the latest version for ECS instances on which an earlier version of the agent is installed. + * + * > If you set the InstallCommand parameter, the `InstanceIds` parameter does not take effect. + * + * @example + * onlyInstallNotHasAgent + */ + installCommand?: string; + /** + * @example + * i-m5e0k0bexac8tykr**** + */ + instanceIds?: string[]; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentRequest.js new file mode 100644 index 0000000..9ec4b98 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentRequest.js @@ -0,0 +1,67 @@ +"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.InstallMonitoringAgentRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class InstallMonitoringAgentRequest extends $dara.Model { + static names() { + return { + force: 'Force', + installCommand: 'InstallCommand', + instanceIds: 'InstanceIds', + regionId: 'RegionId', + }; + } + static types() { + return { + force: 'boolean', + installCommand: 'string', + instanceIds: { 'type': 'array', 'itemType': 'string' }, + regionId: 'string', + }; + } + validate() { + if (Array.isArray(this.instanceIds)) { + $dara.Model.validateArray(this.instanceIds); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.InstallMonitoringAgentRequest = InstallMonitoringAgentRequest; +//# sourceMappingURL=InstallMonitoringAgentRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentRequest.js.map new file mode 100644 index 0000000..9558b1c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"InstallMonitoringAgentRequest.js","sourceRoot":"","sources":["../../src/models/InstallMonitoringAgentRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IAgC5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,cAAc,EAAE,gBAAgB;YAChC,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,SAAS;YAChB,cAAc,EAAE,QAAQ;YACxB,WAAW,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YACtD,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;YACnC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC9C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5DD,sEA4DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentResponse.d.ts new file mode 100644 index 0000000..e173284 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { InstallMonitoringAgentResponseBody } from "./InstallMonitoringAgentResponseBody"; +export declare class InstallMonitoringAgentResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: InstallMonitoringAgentResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentResponse.js new file mode 100644 index 0000000..9db4bb5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentResponse.js @@ -0,0 +1,69 @@ +"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.InstallMonitoringAgentResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const InstallMonitoringAgentResponseBody_1 = require("./InstallMonitoringAgentResponseBody"); +class InstallMonitoringAgentResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: InstallMonitoringAgentResponseBody_1.InstallMonitoringAgentResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.InstallMonitoringAgentResponse = InstallMonitoringAgentResponse; +//# sourceMappingURL=InstallMonitoringAgentResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentResponse.js.map new file mode 100644 index 0000000..4d4aa03 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"InstallMonitoringAgentResponse.js","sourceRoot":"","sources":["../../src/models/InstallMonitoringAgentResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,6FAA0F;AAG1F,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAI7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,uEAAkC;SACzC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,wEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentResponseBody.d.ts new file mode 100644 index 0000000..fdc8ee7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class InstallMonitoringAgentResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * 0BDAF8A8-04DC-5F0C-90E4-724D42C41945 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call was successful. Valid values: + * + * * true: The call was successful. + * * false: The call failed. + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentResponseBody.js new file mode 100644 index 0000000..071d307 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentResponseBody.js @@ -0,0 +1,64 @@ +"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.InstallMonitoringAgentResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class InstallMonitoringAgentResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.InstallMonitoringAgentResponseBody = InstallMonitoringAgentResponseBody; +//# sourceMappingURL=InstallMonitoringAgentResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentResponseBody.js.map new file mode 100644 index 0000000..8722276 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/InstallMonitoringAgentResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"InstallMonitoringAgentResponseBody.js","sourceRoot":"","sources":["../../src/models/InstallMonitoringAgentResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;IAsCjE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,gFA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/Matcher.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/Matcher.d.ts new file mode 100644 index 0000000..034c02b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/Matcher.d.ts @@ -0,0 +1,16 @@ +import * as $dara from '@darabonba/typescript'; +export declare class Matcher extends $dara.Model { + label?: string; + operator?: string; + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/Matcher.js b/backend/node_modules/@alicloud/cms20190101/dist/models/Matcher.js new file mode 100644 index 0000000..88185f5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/Matcher.js @@ -0,0 +1,62 @@ +"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.Matcher = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class Matcher extends $dara.Model { + static names() { + return { + label: 'Label', + operator: 'Operator', + value: 'Value', + }; + } + static types() { + return { + label: 'string', + operator: 'string', + value: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.Matcher = Matcher; +//# sourceMappingURL=Matcher.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/Matcher.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/Matcher.js.map new file mode 100644 index 0000000..0a9d554 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/Matcher.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Matcher.js","sourceRoot":"","sources":["../../src/models/Matcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,OAAQ,SAAQ,KAAK,CAAC,KAAK;IAItC,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,QAAQ;YACf,QAAQ,EAAE,QAAQ;YAClB,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA3BD,0BA2BC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/MetricStat.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/MetricStat.d.ts new file mode 100644 index 0000000..e44b275 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/MetricStat.d.ts @@ -0,0 +1,26 @@ +import * as $dara from '@darabonba/typescript'; +import { Dimension } from "./Dimension"; +export declare class MetricStat extends $dara.Model { + associated?: { + [key: string]: string; + }; + dimensions?: Dimension[]; + logTime?: number; + measurements?: { + [key: string]: any; + }; + metric?: string; + namespace?: string; + period?: number; + timestamp?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/MetricStat.js b/backend/node_modules/@alicloud/cms20190101/dist/models/MetricStat.js new file mode 100644 index 0000000..9538c2e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/MetricStat.js @@ -0,0 +1,82 @@ +"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.MetricStat = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const Dimension_1 = require("./Dimension"); +class MetricStat extends $dara.Model { + static names() { + return { + associated: 'Associated', + dimensions: 'Dimensions', + logTime: 'LogTime', + measurements: 'Measurements', + metric: 'Metric', + namespace: 'Namespace', + period: 'Period', + timestamp: 'Timestamp', + }; + } + static types() { + return { + associated: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + dimensions: { 'type': 'array', 'itemType': Dimension_1.Dimension }, + logTime: 'number', + measurements: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' }, + metric: 'string', + namespace: 'string', + period: 'number', + timestamp: 'number', + }; + } + validate() { + if (this.associated) { + $dara.Model.validateMap(this.associated); + } + if (Array.isArray(this.dimensions)) { + $dara.Model.validateArray(this.dimensions); + } + if (this.measurements) { + $dara.Model.validateMap(this.measurements); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.MetricStat = MetricStat; +//# sourceMappingURL=MetricStat.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/MetricStat.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/MetricStat.js.map new file mode 100644 index 0000000..f559bc1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/MetricStat.js.map @@ -0,0 +1 @@ +{"version":3,"file":"MetricStat.js","sourceRoot":"","sources":["../../src/models/MetricStat.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,2CAAwC;AAGxC,MAAa,UAAW,SAAQ,KAAK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AAC,CAAC;IACb,CAAC;CACF;AAnDD,gCAmDC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/MigrationJob.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/MigrationJob.d.ts new file mode 100644 index 0000000..37321f9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/MigrationJob.d.ts @@ -0,0 +1,321 @@ +import * as $dara from '@darabonba/typescript'; +export declare class MigrationJobPlanContactsChannels extends $dara.Model { + level?: number; + type?: string; + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class MigrationJobPlanContacts extends $dara.Model { + channels?: MigrationJobPlanContactsChannels[]; + name?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class MigrationJobPlanEscalationsEscalationsLevelGroups extends $dara.Model { + critical?: string[]; + info?: string[]; + resolved?: string[]; + warning?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class MigrationJobPlanEscalationsEscalations extends $dara.Model { + groups?: string[]; + levelGroups?: MigrationJobPlanEscalationsEscalationsLevelGroups; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class MigrationJobPlanEscalations extends $dara.Model { + escalations?: MigrationJobPlanEscalationsEscalations[]; + name?: string; + uuid?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class MigrationJobPlanGroups extends $dara.Model { + contacts?: string[]; + name?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class MigrationJobPlanStrategiesEscalationSetting extends $dara.Model { + escalationUuid?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class MigrationJobPlanStrategiesPushingSetting extends $dara.Model { + targetUuids?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class MigrationJobPlanStrategies extends $dara.Model { + escalationSetting?: MigrationJobPlanStrategiesEscalationSetting; + name?: string; + pushingSetting?: MigrationJobPlanStrategiesPushingSetting; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class MigrationJobPlanSubscriptionsConditions extends $dara.Model { + field?: string; + op?: string; + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class MigrationJobPlanSubscriptions extends $dara.Model { + conditions?: MigrationJobPlanSubscriptionsConditions[]; + name?: string; + strategyUuid?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class MigrationJobPlanTargetsHttpRequestTarget extends $dara.Model { + contentType?: string; + method?: string; + url?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class MigrationJobPlanTargets extends $dara.Model { + arn?: string; + httpRequestTarget?: MigrationJobPlanTargetsHttpRequestTarget; + name?: string; + type?: string; + uuid?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class MigrationJobPlan extends $dara.Model { + contacts?: MigrationJobPlanContacts[]; + escalations?: MigrationJobPlanEscalations[]; + groups?: MigrationJobPlanGroups[]; + ruleNames?: string[]; + strategies?: MigrationJobPlanStrategies[]; + subscriptions?: MigrationJobPlanSubscriptions[]; + targets?: MigrationJobPlanTargets[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class MigrationJobSourceRuleKeywordFilter extends $dara.Model { + keywords?: string[]; + relation?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class MigrationJobSourceRulePrimaryFilters extends $dara.Model { + field?: string; + opType?: string; + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class MigrationJobSourceRule extends $dara.Model { + keywordFilter?: MigrationJobSourceRuleKeywordFilter; + name?: string; + primaryFilters?: MigrationJobSourceRulePrimaryFilters[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class MigrationJobSourceTargetsContent extends $dara.Model { + group?: string; + level?: string; + method?: string; + region?: string; + resourcePath?: string; + url?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class MigrationJobSourceTargets extends $dara.Model { + content?: MigrationJobSourceTargetsContent; + type?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class MigrationJobSource extends $dara.Model { + rule?: MigrationJobSourceRule; + targets?: MigrationJobSourceTargets[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class MigrationJob extends $dara.Model { + createTime?: string; + detail?: string; + jobStatus?: string; + plan?: MigrationJobPlan; + ruleNames?: string[]; + source?: MigrationJobSource[]; + updateTime?: string; + uuid?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/MigrationJob.js b/backend/node_modules/@alicloud/cms20190101/dist/models/MigrationJob.js new file mode 100644 index 0000000..7644260 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/MigrationJob.js @@ -0,0 +1,622 @@ +"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.MigrationJob = exports.MigrationJobSource = exports.MigrationJobSourceTargets = exports.MigrationJobSourceTargetsContent = exports.MigrationJobSourceRule = exports.MigrationJobSourceRulePrimaryFilters = exports.MigrationJobSourceRuleKeywordFilter = exports.MigrationJobPlan = exports.MigrationJobPlanTargets = exports.MigrationJobPlanTargetsHttpRequestTarget = exports.MigrationJobPlanSubscriptions = exports.MigrationJobPlanSubscriptionsConditions = exports.MigrationJobPlanStrategies = exports.MigrationJobPlanStrategiesPushingSetting = exports.MigrationJobPlanStrategiesEscalationSetting = exports.MigrationJobPlanGroups = exports.MigrationJobPlanEscalations = exports.MigrationJobPlanEscalationsEscalations = exports.MigrationJobPlanEscalationsEscalationsLevelGroups = exports.MigrationJobPlanContacts = exports.MigrationJobPlanContactsChannels = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class MigrationJobPlanContactsChannels extends $dara.Model { + static names() { + return { + level: 'Level', + type: 'Type', + value: 'Value', + }; + } + static types() { + return { + level: 'number', + type: 'string', + value: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.MigrationJobPlanContactsChannels = MigrationJobPlanContactsChannels; +class MigrationJobPlanContacts extends $dara.Model { + static names() { + return { + channels: 'Channels', + name: 'Name', + }; + } + static types() { + return { + channels: { 'type': 'array', 'itemType': MigrationJobPlanContactsChannels }, + name: 'string', + }; + } + validate() { + if (Array.isArray(this.channels)) { + $dara.Model.validateArray(this.channels); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.MigrationJobPlanContacts = MigrationJobPlanContacts; +class MigrationJobPlanEscalationsEscalationsLevelGroups extends $dara.Model { + static names() { + return { + critical: 'Critical', + info: 'Info', + resolved: 'Resolved', + warning: 'Warning', + }; + } + static types() { + return { + critical: { 'type': 'array', 'itemType': 'string' }, + info: { 'type': 'array', 'itemType': 'string' }, + resolved: { 'type': 'array', 'itemType': 'string' }, + warning: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.critical)) { + $dara.Model.validateArray(this.critical); + } + if (Array.isArray(this.info)) { + $dara.Model.validateArray(this.info); + } + if (Array.isArray(this.resolved)) { + $dara.Model.validateArray(this.resolved); + } + if (Array.isArray(this.warning)) { + $dara.Model.validateArray(this.warning); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.MigrationJobPlanEscalationsEscalationsLevelGroups = MigrationJobPlanEscalationsEscalationsLevelGroups; +class MigrationJobPlanEscalationsEscalations extends $dara.Model { + static names() { + return { + groups: 'Groups', + levelGroups: 'LevelGroups', + }; + } + static types() { + return { + groups: { 'type': 'array', 'itemType': 'string' }, + levelGroups: MigrationJobPlanEscalationsEscalationsLevelGroups, + }; + } + validate() { + if (Array.isArray(this.groups)) { + $dara.Model.validateArray(this.groups); + } + if (this.levelGroups && typeof this.levelGroups.validate === 'function') { + this.levelGroups.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.MigrationJobPlanEscalationsEscalations = MigrationJobPlanEscalationsEscalations; +class MigrationJobPlanEscalations extends $dara.Model { + static names() { + return { + escalations: 'Escalations', + name: 'Name', + uuid: 'Uuid', + }; + } + static types() { + return { + escalations: { 'type': 'array', 'itemType': MigrationJobPlanEscalationsEscalations }, + name: 'string', + uuid: 'string', + }; + } + validate() { + if (Array.isArray(this.escalations)) { + $dara.Model.validateArray(this.escalations); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.MigrationJobPlanEscalations = MigrationJobPlanEscalations; +class MigrationJobPlanGroups extends $dara.Model { + static names() { + return { + contacts: 'Contacts', + name: 'Name', + }; + } + static types() { + return { + contacts: { 'type': 'array', 'itemType': 'string' }, + name: 'string', + }; + } + validate() { + if (Array.isArray(this.contacts)) { + $dara.Model.validateArray(this.contacts); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.MigrationJobPlanGroups = MigrationJobPlanGroups; +class MigrationJobPlanStrategiesEscalationSetting extends $dara.Model { + static names() { + return { + escalationUuid: 'escalationUuid', + }; + } + static types() { + return { + escalationUuid: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.MigrationJobPlanStrategiesEscalationSetting = MigrationJobPlanStrategiesEscalationSetting; +class MigrationJobPlanStrategiesPushingSetting extends $dara.Model { + static names() { + return { + targetUuids: 'TargetUuids', + }; + } + static types() { + return { + targetUuids: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.targetUuids)) { + $dara.Model.validateArray(this.targetUuids); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.MigrationJobPlanStrategiesPushingSetting = MigrationJobPlanStrategiesPushingSetting; +class MigrationJobPlanStrategies extends $dara.Model { + static names() { + return { + escalationSetting: 'EscalationSetting', + name: 'Name', + pushingSetting: 'PushingSetting', + }; + } + static types() { + return { + escalationSetting: MigrationJobPlanStrategiesEscalationSetting, + name: 'string', + pushingSetting: MigrationJobPlanStrategiesPushingSetting, + }; + } + validate() { + if (this.escalationSetting && typeof this.escalationSetting.validate === 'function') { + this.escalationSetting.validate(); + } + if (this.pushingSetting && typeof this.pushingSetting.validate === 'function') { + this.pushingSetting.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.MigrationJobPlanStrategies = MigrationJobPlanStrategies; +class MigrationJobPlanSubscriptionsConditions 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.MigrationJobPlanSubscriptionsConditions = MigrationJobPlanSubscriptionsConditions; +class MigrationJobPlanSubscriptions extends $dara.Model { + static names() { + return { + conditions: 'Conditions', + name: 'Name', + strategyUuid: 'StrategyUuid', + }; + } + static types() { + return { + conditions: { 'type': 'array', 'itemType': MigrationJobPlanSubscriptionsConditions }, + name: 'string', + strategyUuid: 'string', + }; + } + validate() { + if (Array.isArray(this.conditions)) { + $dara.Model.validateArray(this.conditions); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.MigrationJobPlanSubscriptions = MigrationJobPlanSubscriptions; +class MigrationJobPlanTargetsHttpRequestTarget extends $dara.Model { + static names() { + return { + contentType: 'ContentType', + method: 'Method', + url: 'Url', + }; + } + static types() { + return { + contentType: 'string', + method: 'string', + url: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.MigrationJobPlanTargetsHttpRequestTarget = MigrationJobPlanTargetsHttpRequestTarget; +class MigrationJobPlanTargets extends $dara.Model { + static names() { + return { + arn: 'Arn', + httpRequestTarget: 'HttpRequestTarget', + name: 'Name', + type: 'Type', + uuid: 'Uuid', + }; + } + static types() { + return { + arn: 'string', + httpRequestTarget: MigrationJobPlanTargetsHttpRequestTarget, + name: 'string', + type: 'string', + uuid: 'string', + }; + } + validate() { + if (this.httpRequestTarget && typeof this.httpRequestTarget.validate === 'function') { + this.httpRequestTarget.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.MigrationJobPlanTargets = MigrationJobPlanTargets; +class MigrationJobPlan extends $dara.Model { + static names() { + return { + contacts: 'Contacts', + escalations: 'Escalations', + groups: 'Groups', + ruleNames: 'RuleNames', + strategies: 'Strategies', + subscriptions: 'Subscriptions', + targets: 'Targets', + }; + } + static types() { + return { + contacts: { 'type': 'array', 'itemType': MigrationJobPlanContacts }, + escalations: { 'type': 'array', 'itemType': MigrationJobPlanEscalations }, + groups: { 'type': 'array', 'itemType': MigrationJobPlanGroups }, + ruleNames: { 'type': 'array', 'itemType': 'string' }, + strategies: { 'type': 'array', 'itemType': MigrationJobPlanStrategies }, + subscriptions: { 'type': 'array', 'itemType': MigrationJobPlanSubscriptions }, + targets: { 'type': 'array', 'itemType': MigrationJobPlanTargets }, + }; + } + validate() { + if (Array.isArray(this.contacts)) { + $dara.Model.validateArray(this.contacts); + } + if (Array.isArray(this.escalations)) { + $dara.Model.validateArray(this.escalations); + } + if (Array.isArray(this.groups)) { + $dara.Model.validateArray(this.groups); + } + if (Array.isArray(this.ruleNames)) { + $dara.Model.validateArray(this.ruleNames); + } + if (Array.isArray(this.strategies)) { + $dara.Model.validateArray(this.strategies); + } + if (Array.isArray(this.subscriptions)) { + $dara.Model.validateArray(this.subscriptions); + } + if (Array.isArray(this.targets)) { + $dara.Model.validateArray(this.targets); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.MigrationJobPlan = MigrationJobPlan; +class MigrationJobSourceRuleKeywordFilter extends $dara.Model { + static names() { + return { + keywords: 'Keywords', + relation: 'Relation', + }; + } + static types() { + return { + keywords: { 'type': 'array', 'itemType': 'string' }, + relation: 'string', + }; + } + validate() { + if (Array.isArray(this.keywords)) { + $dara.Model.validateArray(this.keywords); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.MigrationJobSourceRuleKeywordFilter = MigrationJobSourceRuleKeywordFilter; +class MigrationJobSourceRulePrimaryFilters extends $dara.Model { + static names() { + return { + field: 'Field', + opType: 'OpType', + value: 'Value', + }; + } + static types() { + return { + field: 'string', + opType: 'string', + value: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.MigrationJobSourceRulePrimaryFilters = MigrationJobSourceRulePrimaryFilters; +class MigrationJobSourceRule extends $dara.Model { + static names() { + return { + keywordFilter: 'KeywordFilter', + name: 'Name', + primaryFilters: 'PrimaryFilters', + }; + } + static types() { + return { + keywordFilter: MigrationJobSourceRuleKeywordFilter, + name: 'string', + primaryFilters: { 'type': 'array', 'itemType': MigrationJobSourceRulePrimaryFilters }, + }; + } + validate() { + if (this.keywordFilter && typeof this.keywordFilter.validate === 'function') { + this.keywordFilter.validate(); + } + if (Array.isArray(this.primaryFilters)) { + $dara.Model.validateArray(this.primaryFilters); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.MigrationJobSourceRule = MigrationJobSourceRule; +class MigrationJobSourceTargetsContent extends $dara.Model { + static names() { + return { + group: 'Group', + level: 'Level', + method: 'Method', + region: 'Region', + resourcePath: 'ResourcePath', + url: 'Url', + }; + } + static types() { + return { + group: 'string', + level: 'string', + method: 'string', + region: 'string', + resourcePath: 'string', + url: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.MigrationJobSourceTargetsContent = MigrationJobSourceTargetsContent; +class MigrationJobSourceTargets extends $dara.Model { + static names() { + return { + content: 'Content', + type: 'Type', + }; + } + static types() { + return { + content: MigrationJobSourceTargetsContent, + type: 'string', + }; + } + validate() { + if (this.content && typeof this.content.validate === 'function') { + this.content.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.MigrationJobSourceTargets = MigrationJobSourceTargets; +class MigrationJobSource extends $dara.Model { + static names() { + return { + rule: 'Rule', + targets: 'Targets', + }; + } + static types() { + return { + rule: MigrationJobSourceRule, + targets: { 'type': 'array', 'itemType': MigrationJobSourceTargets }, + }; + } + validate() { + if (this.rule && typeof this.rule.validate === 'function') { + this.rule.validate(); + } + if (Array.isArray(this.targets)) { + $dara.Model.validateArray(this.targets); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.MigrationJobSource = MigrationJobSource; +class MigrationJob extends $dara.Model { + static names() { + return { + createTime: 'CreateTime', + detail: 'Detail', + jobStatus: 'JobStatus', + plan: 'Plan', + ruleNames: 'RuleNames', + source: 'Source', + updateTime: 'UpdateTime', + uuid: 'Uuid', + }; + } + static types() { + return { + createTime: 'string', + detail: 'string', + jobStatus: 'string', + plan: MigrationJobPlan, + ruleNames: { 'type': 'array', 'itemType': 'string' }, + source: { 'type': 'array', 'itemType': MigrationJobSource }, + updateTime: 'string', + uuid: 'string', + }; + } + validate() { + if (this.plan && typeof this.plan.validate === 'function') { + this.plan.validate(); + } + if (Array.isArray(this.ruleNames)) { + $dara.Model.validateArray(this.ruleNames); + } + if (Array.isArray(this.source)) { + $dara.Model.validateArray(this.source); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.MigrationJob = MigrationJob; +//# sourceMappingURL=MigrationJob.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/MigrationJob.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/MigrationJob.js.map new file mode 100644 index 0000000..a72f10c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/MigrationJob.js.map @@ -0,0 +1 @@ +{"version":3,"file":"MigrationJob.js","sourceRoot":"","sources":["../../src/models/MigrationJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/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YACtB,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YACpD,MAAM,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE;YAC3D,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,QAAQ;SACf,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;YACjC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC5C,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;YAC9B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACzC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnDD,oCAmDC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessRequest.d.ts new file mode 100644 index 0000000..e4136b9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessRequest.d.ts @@ -0,0 +1,238 @@ +import * as $dara from '@darabonba/typescript'; +export declare class ModifyGroupMonitoringAgentProcessRequestAlertConfigTargetList extends $dara.Model { + /** + * @remarks + * The Alibaba Cloud Resource Name (ARN) of the resource. + * + * For information about how to obtain the ARN of a resource, see [DescribeMetricRuleTargets](https://help.aliyun.com/document_detail/121592.html). + * + * Format: `acs:{Service name abbreviation}:{regionId}:{userId}:/{Resource type}/{Resource name}/message`. Example: `acs:mns:cn-hangzhou:120886317861****:/queues/test123/message`. Fields: + * + * - {Service name abbreviation}: the abbreviation of the service name. Valid value: mns. + * - {userId}: the ID of the Alibaba Cloud account. + * - {regionId}: the region ID of the message queue or topic. + * - {Resource type}: the type of the resource for which alerts are triggered. Valid values: + * - **queues** + * - **topics** + * - {Resourcename}: the name of the resource. + * - If the resource type is set to **queues**, the resource name is the name of the message queue. + * - If the resource type is set to **topics**, the resource name is the name of the topic.` + * + * @example + * acs:mns:cn-hangzhou:120886317861****:/queues/test/message + */ + arn?: string; + /** + * @remarks + * The ID of the resource for which alerts are triggered. + * + * For information about how to obtain the ID of a resource for which alerts are triggered, see [DescribeMetricRuleTargets](https://help.aliyun.com/document_detail/121592.html). + * + * @example + * 1 + */ + id?: string; + /** + * @remarks + * The parameters of the alert callback. The parameters are in the JSON format. + * + * @example + * {"customField1":"value1","customField2":"$.name"} + */ + jsonParams?: string; + /** + * @remarks + * The level of the alert. Valid values: + * + * * INFO: information + * * WARN: warning + * * CRITICAL: critical + * + * @example + * ["INFO", "WARN", "CRITICAL"] + */ + level?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class ModifyGroupMonitoringAgentProcessRequestAlertConfig extends $dara.Model { + /** + * @remarks + * The comparison operator that is used to compare the metric value with the threshold. Valid values of N: 1 to 200. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold. + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday. + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * This parameter is required. + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The time period during which the alert rule is effective. Valid values of N: 1 to 200. + * + * @example + * 00:00-22:59 + */ + effectiveInterval?: string; + /** + * @remarks + * The level of the alert. Valid values of N: 1 to 200. Valid values: + * + * * critical (default value): critical + * * warn: warning + * * info: information + * + * This parameter is required. + * + * @example + * warn + */ + escalationsLevel?: string; + /** + * @remarks + * The time period during which the alert rule is ineffective. Valid values of N: 1 to 200. + * + * @example + * 23:00-23:59 + */ + noEffectiveInterval?: string; + /** + * @remarks + * The mute period during which new alerts are not sent even if the trigger conditions are met. Valid values of N: 1 to 200. + * + * Unit: seconds. Minimum value: 3600, which is equivalent to one hour. Default value: 86400, which is equivalent to one day. + * + * > Only one alert notification is sent during a mute period even if the metric value exceeds the alert threshold during consecutive checks. + * + * @example + * 86400 + */ + silenceTime?: string; + /** + * @remarks + * The statistical aggregation method that is used to calculate the metric values. Valid values of N: 1 to 200. + * + * > Set the value to Average. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The alert trigger. + */ + targetList?: ModifyGroupMonitoringAgentProcessRequestAlertConfigTargetList[]; + /** + * @remarks + * The alert threshold. Valid values of N: 1 to 200. + * + * This parameter is required. + * + * @example + * 5 + */ + threshold?: string; + /** + * @remarks + * The number of times for which the threshold can be consecutively exceeded. Valid values of N: 1 to 200. Default value: 3. + * + * > A metric triggers an alert only after the metric value reaches the threshold consecutively for the specified times. + * + * This parameter is required. + * + * @example + * 3 + */ + times?: string; + /** + * @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 200. + * + * @example + * http://www.aliyun.com + */ + webhook?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class ModifyGroupMonitoringAgentProcessRequest extends $dara.Model { + /** + * @remarks + * The alert rule configurations. + * + * This parameter is required. + */ + alertConfig?: ModifyGroupMonitoringAgentProcessRequestAlertConfig[]; + /** + * @remarks + * The ID of the application group. + * + * This parameter is required. + * + * @example + * 6780**** + */ + groupId?: string; + /** + * @remarks + * The ID of the process monitoring task. + * + * This parameter is required. + * + * @example + * 92E3065F-0980-4E31-9AA0-BA6**** + */ + id?: string; + /** + * @remarks + * The logical operator used between conditional expressions that are used to match instances. Valid values: + * + * * all + * * and + * * or + * + * @example + * and + */ + matchExpressFilterRelation?: string; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessRequest.js new file mode 100644 index 0000000..648e0a9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessRequest.js @@ -0,0 +1,134 @@ +"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.ModifyGroupMonitoringAgentProcessRequest = exports.ModifyGroupMonitoringAgentProcessRequestAlertConfig = exports.ModifyGroupMonitoringAgentProcessRequestAlertConfigTargetList = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class ModifyGroupMonitoringAgentProcessRequestAlertConfigTargetList extends $dara.Model { + static names() { + return { + arn: 'Arn', + id: 'Id', + jsonParams: 'JsonParams', + level: 'Level', + }; + } + static types() { + return { + arn: 'string', + id: 'string', + jsonParams: 'string', + level: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyGroupMonitoringAgentProcessRequestAlertConfigTargetList = ModifyGroupMonitoringAgentProcessRequestAlertConfigTargetList; +class ModifyGroupMonitoringAgentProcessRequestAlertConfig extends $dara.Model { + static names() { + return { + comparisonOperator: 'ComparisonOperator', + effectiveInterval: 'EffectiveInterval', + escalationsLevel: 'EscalationsLevel', + noEffectiveInterval: 'NoEffectiveInterval', + silenceTime: 'SilenceTime', + statistics: 'Statistics', + targetList: 'TargetList', + threshold: 'Threshold', + times: 'Times', + webhook: 'Webhook', + }; + } + static types() { + return { + comparisonOperator: 'string', + effectiveInterval: 'string', + escalationsLevel: 'string', + noEffectiveInterval: 'string', + silenceTime: 'string', + statistics: 'string', + targetList: { 'type': 'array', 'itemType': ModifyGroupMonitoringAgentProcessRequestAlertConfigTargetList }, + threshold: 'string', + times: 'string', + webhook: 'string', + }; + } + validate() { + if (Array.isArray(this.targetList)) { + $dara.Model.validateArray(this.targetList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyGroupMonitoringAgentProcessRequestAlertConfig = ModifyGroupMonitoringAgentProcessRequestAlertConfig; +class ModifyGroupMonitoringAgentProcessRequest extends $dara.Model { + static names() { + return { + alertConfig: 'AlertConfig', + groupId: 'GroupId', + id: 'Id', + matchExpressFilterRelation: 'MatchExpressFilterRelation', + regionId: 'RegionId', + }; + } + static types() { + return { + alertConfig: { 'type': 'array', 'itemType': ModifyGroupMonitoringAgentProcessRequestAlertConfig }, + groupId: 'string', + id: 'string', + matchExpressFilterRelation: 'string', + regionId: 'string', + }; + } + validate() { + if (Array.isArray(this.alertConfig)) { + $dara.Model.validateArray(this.alertConfig); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyGroupMonitoringAgentProcessRequest = ModifyGroupMonitoringAgentProcessRequest; +//# sourceMappingURL=ModifyGroupMonitoringAgentProcessRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessRequest.js.map new file mode 100644 index 0000000..ced13cd --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModifyGroupMonitoringAgentProcessRequest.js","sourceRoot":"","sources":["../../src/models/ModifyGroupMonitoringAgentProcessRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6DAA8D,SAAQ,KAAK,CAAC,KAAK;IAqD5F,MAAM,CAAC,KAAK;QACV,OAAO;YACL,GAAG,EAAE,KAAK;YACV,EAAE,EAAE,IAAI;YACR,UAAU,EAAE,YAAY;YACxB,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,GAAG,EAAE,QAAQ;YACb,EAAE,EAAE,QAAQ;YACZ,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C;CACF;AAtJD,kHAsJC;AAED,MAAa,wCAAyC,SAAQ,KAAK,CAAC,KAAK;IAyCvE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;YAC1B,OAAO,EAAE,SAAS;YAClB,EAAE,EAAE,IAAI;YACR,0BAA0B,EAAE,4BAA4B;YACxD,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,mDAAmD,EAAE;YACjG,OAAO,EAAE,QAAQ;YACjB,EAAE,EAAE,QAAQ;YACZ,0BAA0B,EAAE,QAAQ;YACpC,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;YACnC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC9C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAvED,4FAuEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessResponse.d.ts new file mode 100644 index 0000000..6bb087a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { ModifyGroupMonitoringAgentProcessResponseBody } from "./ModifyGroupMonitoringAgentProcessResponseBody"; +export declare class ModifyGroupMonitoringAgentProcessResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: ModifyGroupMonitoringAgentProcessResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessResponse.js new file mode 100644 index 0000000..cf82104 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessResponse.js @@ -0,0 +1,69 @@ +"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.ModifyGroupMonitoringAgentProcessResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const ModifyGroupMonitoringAgentProcessResponseBody_1 = require("./ModifyGroupMonitoringAgentProcessResponseBody"); +class ModifyGroupMonitoringAgentProcessResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: ModifyGroupMonitoringAgentProcessResponseBody_1.ModifyGroupMonitoringAgentProcessResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyGroupMonitoringAgentProcessResponse = ModifyGroupMonitoringAgentProcessResponse; +//# sourceMappingURL=ModifyGroupMonitoringAgentProcessResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessResponse.js.map new file mode 100644 index 0000000..dcc4a5a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModifyGroupMonitoringAgentProcessResponse.js","sourceRoot":"","sources":["../../src/models/ModifyGroupMonitoringAgentProcessResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,mHAAgH;AAGhH,MAAa,yCAA0C,SAAQ,KAAK,CAAC,KAAK;IAIxE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,6FAA6C;SACpD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,8FAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessResponseBody.d.ts new file mode 100644 index 0000000..1c59ce7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class ModifyGroupMonitoringAgentProcessResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * 7985D471-3FA8-4EE9-8F4B-45C19DF3D36F + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call was successful. Valid values: + * + * * true: The call was successful. + * * false: The call failed. + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessResponseBody.js new file mode 100644 index 0000000..dfafae7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessResponseBody.js @@ -0,0 +1,64 @@ +"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.ModifyGroupMonitoringAgentProcessResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class ModifyGroupMonitoringAgentProcessResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyGroupMonitoringAgentProcessResponseBody = ModifyGroupMonitoringAgentProcessResponseBody; +//# sourceMappingURL=ModifyGroupMonitoringAgentProcessResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessResponseBody.js.map new file mode 100644 index 0000000..2a695b9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyGroupMonitoringAgentProcessResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModifyGroupMonitoringAgentProcessResponseBody.js","sourceRoot":"","sources":["../../src/models/ModifyGroupMonitoringAgentProcessResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6CAA8C,SAAQ,KAAK,CAAC,KAAK;IAsC5E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,sGA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityRequest.d.ts new file mode 100644 index 0000000..142a916 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityRequest.d.ts @@ -0,0 +1,387 @@ +import * as $dara from '@darabonba/typescript'; +export declare class ModifyHostAvailabilityRequestAlertConfig extends $dara.Model { + /** + * @remarks + * The end of the time range during which the alert rule is effective. Valid values: 0 to 23. + * + * For example, if the `AlertConfig.StartTime` parameter is set to 0 and the `AlertConfig.EndTime` parameter is set to 22, the alert rule is effective from 00:00:00 to 22:00:00. + * + * > Alert notifications are sent based on the specified threshold only if the alert rule is effective. + * + * @example + * 22 + */ + endTime?: number; + /** + * @remarks + * The alert notification methods. Valid values: + * + * 0: Alert notifications are sent by using emails and DingTalk chatbots. + * + * This parameter is required. + * + * @example + * 0 + */ + notifyType?: number; + /** + * @remarks + * The mute period during which new alerts are not sent even if the trigger conditions are met. Unit: seconds. Default value: 86400. The default value indicates one day. + * + * @example + * 86400 + */ + silenceTime?: number; + /** + * @remarks + * The beginning of the time range during which the alert rule is effective. Valid values: 0 to 23. + * + * For example, if the `AlertConfig.StartTime` parameter is set to 0 and the `AlertConfig.EndTime` parameter is set to 22, the alert rule is effective from 00:00:00 to 22:00:00. + * + * > Alert notifications are sent based on the specified threshold only if the alert rule is effective. + * + * @example + * 0 + */ + startTime?: number; + /** + * @remarks + * The callback URL. + * + * @example + * https://www.aliyun.com/webhook.json + */ + webHook?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class ModifyHostAvailabilityRequestTaskOption extends $dara.Model { + /** + * @remarks + * The header of the HTTP request. Format: `Parameter name:Parameter value`. Separate multiple parameters with carriage return characters. Example: + * + * params1:value1 + * params2:value2 + * + * @example + * params1:value1 + */ + httpHeader?: string; + /** + * @remarks + * The HTTP request method. Valid values: + * + * * GET + * * POST + * * HEAD + * + * > This parameter must be specified when TaskType is set to HTTP. For more information about how to configure the TaskType parameter, see [CreateHostAvailability](https://help.aliyun.com/document_detail/115317.html). + * + * @example + * GET + */ + httpMethod?: string; + /** + * @remarks + * The method to trigger an alert. The alert can be triggered based on whether the specified alert rule is included in the response body. Valid values: + * + * * true: If the HTTP response body includes the alert rule, an alert is triggered. + * * false: If the HTTP response does not include the alert rule, an alert is triggered. + * + * > This parameter must be specified when TaskType is set to HTTP. For more information about how to configure the TaskType parameter, see [CreateHostAvailability](https://help.aliyun.com/document_detail/115317.html). + * + * @example + * true + */ + httpNegative?: boolean; + /** + * @remarks + * The content of the HTTP POST request. + * + * @example + * params1=value1 + */ + httpPostContent?: string; + /** + * @remarks + * The character set that is used in the HTTP response. + * + * > Only UTF-8 is supported. + * + * @example + * UTF-8 + */ + httpResponseCharset?: string; + /** + * @remarks + * The response to the HTTP request. + * + * @example + * ok + */ + httpResponseMatchContent?: string; + /** + * @remarks + * The URI that you want to monitor. This parameter is required if the TaskType parameter is set to HTTP or Telnet. + * + * @example + * https://www.aliyun.com + */ + httpURI?: string; + /** + * @remarks + * The interval at which detection requests are sent. Unit: seconds. Valid values: 15, 30, 60, 120, 300, 900, 1800, and 3600. + * + * > This parameter is available only for the CloudMonitor agent V3.5.1 or later. + * + * @example + * 60 + */ + interval?: number; + /** + * @remarks + * The domain name or IP address that you want to monitor. + * + * > This parameter is required if the TaskType parameter is set to PING. For more information about how to set the TaskType parameter, see [CreateHostAvailability](https://help.aliyun.com/document_detail/115317.html). + * + * @example + * www.aliyun.com + */ + telnetOrPingHost?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class ModifyHostAvailabilityRequestAlertConfigEscalationList extends $dara.Model { + /** + * @remarks + * The method used to calculate the metric values that trigger alerts. Valid values of N: 1 to 21. The value of this parameter varies based on the metric. The following items show the correspondence between metrics and calculation methods: + * + * * HttpStatus: Value + * * HttpLatency: Average + * * TelnetStatus: Value + * * TelnetLatency: Average + * * PingLostRate: Average + * + * > The value Value indicates the original value and is used for metrics such as status codes. The value Average indicates the average value and is used for metrics such as the latency and packet loss rate. + * + * @example + * Value + */ + aggregate?: string; + /** + * @remarks + * The metric for which the alert feature is enabled. Valid values of N: 1 to 21. Valid values: + * + * * HttpStatus: HTTP status code + * * HttpLatency: HTTP response time + * * TelnetStatus: Telnet status code + * * TelnetLatency: Telnet response time + * * PingLostRate: Ping packet loss rate + * + * This parameter is required. + * + * @example + * HttpStatus + */ + metricName?: string; + /** + * @remarks + * The comparison operator that is used in the alert rule. Valid values of N: 1 to 21. Valid values: + * + * * `>` + * * `>=` + * * `<` + * * `<=` + * * `=` + * + * @example + * > + */ + operator?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before an alert is triggered. Valid values of N: 1 to 21. + * + * @example + * 3 + */ + times?: number; + /** + * @remarks + * The alert threshold. Valid values of N: 1 to 21. + * + * @example + * 3 + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class ModifyHostAvailabilityRequestAlertConfigTargetList extends $dara.Model { + /** + * @remarks + * The Alibaba Cloud Resource Name (ARN) of the resource. + * + * Format: `acs:{Service name abbreviation}:{regionId}:{userId}:/{Resource type}/{Resource name}/message`. Example: `acs:mns:cn-hangzhou:120886317861****:/queues/test123/message`. Fields: + * + * * {Service name abbreviation}: the abbreviation of the service name. Set the value to Simple Message Queue (formerly MNS) (SMQ). + * + * * {userId}: the ID of the Alibaba Cloud account. + * + * * {regionId}: the region ID of the SMQ queue or topic. + * + * * {Resource type}: the type of the resource for which alerts are triggered. Valid values: + * + * * **queues** + * * **topics** + * + * * {Resource name}: the resource name. + * + * * If the resource type is **queues**, the resource name is the queue name. + * * If the resource type is **topics**, the resource name is the topic name. + * + * @example + * acs:mns:cn-hangzhou:111:/queues/test/message + */ + arn?: string; + /** + * @remarks + * The ID of the resource for which alerts are triggered. + * + * @example + * 1 + */ + id?: string; + /** + * @remarks + * The parameters of the alert callback. The parameters are in the JSON format. + * + * @example + * {"customField1":"value1","customField2":"$.name"} + */ + jsonParams?: string; + /** + * @remarks + * The alert level. Valid values: + * + * * INFO + * * WARN + * * CRITICAL + * + * @example + * ["INFO", "WARN", "CRITICAL"] + */ + level?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class ModifyHostAvailabilityRequest extends $dara.Model { + alertConfig?: ModifyHostAvailabilityRequestAlertConfig; + taskOption?: ModifyHostAvailabilityRequestTaskOption; + /** + * @remarks + * The alert configurations. + * + * This parameter is required. + */ + alertConfigEscalationList?: ModifyHostAvailabilityRequestAlertConfigEscalationList[]; + /** + * @remarks + * The information about the resources for which alerts are triggered. + */ + alertConfigTargetList?: ModifyHostAvailabilityRequestAlertConfigTargetList[]; + /** + * @remarks + * The ID of the application group. + * + * This parameter is required. + * + * @example + * 123456 + */ + groupId?: number; + /** + * @remarks + * The ID of the availability monitoring task. + * + * This parameter is required. + * + * @example + * 12345 + */ + id?: number; + /** + * @remarks + * The ECS instances that are monitored. Valid values of N: 1 to 21. + * + * > This parameter must be specified when `TaskScope` is set to `GROUP_SPEC_INSTANCE`. + * + * @example + * i-absdfkwl321**** + */ + instanceList?: string[]; + regionId?: string; + /** + * @remarks + * The name of the availability monitoring task. + * + * This parameter is required. + * + * @example + * task2 + */ + taskName?: string; + /** + * @remarks + * The range of instances that are monitored by the availability monitoring task. Valid values: + * + * * GROUP: All ECS instances in the application group are monitored. + * * GROUP_SPEC_INSTANCE: Specified ECS instances in the application group are monitored. The TaskScope parameter must be used in combination with the InstanceList parameter. The InstanceList parameter specifies the ECS instances to be monitored. + * + * @example + * GROUP + */ + taskScope?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityRequest.js new file mode 100644 index 0000000..16cb3b7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityRequest.js @@ -0,0 +1,205 @@ +"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.ModifyHostAvailabilityRequest = exports.ModifyHostAvailabilityRequestAlertConfigTargetList = exports.ModifyHostAvailabilityRequestAlertConfigEscalationList = exports.ModifyHostAvailabilityRequestTaskOption = exports.ModifyHostAvailabilityRequestAlertConfig = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class ModifyHostAvailabilityRequestAlertConfig extends $dara.Model { + static names() { + return { + endTime: 'EndTime', + notifyType: 'NotifyType', + silenceTime: 'SilenceTime', + startTime: 'StartTime', + webHook: 'WebHook', + }; + } + static types() { + return { + endTime: 'number', + notifyType: 'number', + silenceTime: 'number', + startTime: 'number', + webHook: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyHostAvailabilityRequestAlertConfig = ModifyHostAvailabilityRequestAlertConfig; +class ModifyHostAvailabilityRequestTaskOption extends $dara.Model { + static names() { + return { + httpHeader: 'HttpHeader', + httpMethod: 'HttpMethod', + httpNegative: 'HttpNegative', + httpPostContent: 'HttpPostContent', + httpResponseCharset: 'HttpResponseCharset', + httpResponseMatchContent: 'HttpResponseMatchContent', + httpURI: 'HttpURI', + interval: 'Interval', + telnetOrPingHost: 'TelnetOrPingHost', + }; + } + static types() { + return { + httpHeader: 'string', + httpMethod: 'string', + httpNegative: 'boolean', + httpPostContent: 'string', + httpResponseCharset: 'string', + httpResponseMatchContent: 'string', + httpURI: 'string', + interval: 'number', + telnetOrPingHost: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyHostAvailabilityRequestTaskOption = ModifyHostAvailabilityRequestTaskOption; +class ModifyHostAvailabilityRequestAlertConfigEscalationList extends $dara.Model { + static names() { + return { + aggregate: 'Aggregate', + metricName: 'MetricName', + operator: 'Operator', + times: 'Times', + value: 'Value', + }; + } + static types() { + return { + aggregate: 'string', + metricName: 'string', + operator: 'string', + times: 'number', + value: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyHostAvailabilityRequestAlertConfigEscalationList = ModifyHostAvailabilityRequestAlertConfigEscalationList; +class ModifyHostAvailabilityRequestAlertConfigTargetList extends $dara.Model { + static names() { + return { + arn: 'Arn', + id: 'Id', + jsonParams: 'JsonParams', + level: 'Level', + }; + } + static types() { + return { + arn: 'string', + id: 'string', + jsonParams: 'string', + level: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyHostAvailabilityRequestAlertConfigTargetList = ModifyHostAvailabilityRequestAlertConfigTargetList; +class ModifyHostAvailabilityRequest extends $dara.Model { + static names() { + return { + alertConfig: 'AlertConfig', + taskOption: 'TaskOption', + alertConfigEscalationList: 'AlertConfigEscalationList', + alertConfigTargetList: 'AlertConfigTargetList', + groupId: 'GroupId', + id: 'Id', + instanceList: 'InstanceList', + regionId: 'RegionId', + taskName: 'TaskName', + taskScope: 'TaskScope', + }; + } + static types() { + return { + alertConfig: ModifyHostAvailabilityRequestAlertConfig, + taskOption: ModifyHostAvailabilityRequestTaskOption, + alertConfigEscalationList: { 'type': 'array', 'itemType': ModifyHostAvailabilityRequestAlertConfigEscalationList }, + alertConfigTargetList: { 'type': 'array', 'itemType': ModifyHostAvailabilityRequestAlertConfigTargetList }, + groupId: 'number', + id: 'number', + instanceList: { 'type': 'array', 'itemType': 'string' }, + regionId: 'string', + taskName: 'string', + taskScope: 'string', + }; + } + validate() { + if (this.alertConfig && typeof this.alertConfig.validate === 'function') { + this.alertConfig.validate(); + } + if (this.taskOption && typeof this.taskOption.validate === 'function') { + this.taskOption.validate(); + } + if (Array.isArray(this.alertConfigEscalationList)) { + $dara.Model.validateArray(this.alertConfigEscalationList); + } + if (Array.isArray(this.alertConfigTargetList)) { + $dara.Model.validateArray(this.alertConfigTargetList); + } + if (Array.isArray(this.instanceList)) { + $dara.Model.validateArray(this.instanceList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyHostAvailabilityRequest = ModifyHostAvailabilityRequest; +//# sourceMappingURL=ModifyHostAvailabilityRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityRequest.js.map new file mode 100644 index 0000000..9582089 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModifyHostAvailabilityRequest.js","sourceRoot":"","sources":["../../src/models/ModifyHostAvailabilityRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wCAAyC,SAAQ,KAAK,CAAC,KAAK;IAqDvE,M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,CAAC,qBAAqB,CAAC,EAAE,CAAC;YAC7C,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;QACxD,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;YACpC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC/C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAvHD,sEAuHC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityResponse.d.ts new file mode 100644 index 0000000..c9fe8c6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { ModifyHostAvailabilityResponseBody } from "./ModifyHostAvailabilityResponseBody"; +export declare class ModifyHostAvailabilityResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: ModifyHostAvailabilityResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityResponse.js new file mode 100644 index 0000000..a0932f4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityResponse.js @@ -0,0 +1,69 @@ +"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.ModifyHostAvailabilityResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const ModifyHostAvailabilityResponseBody_1 = require("./ModifyHostAvailabilityResponseBody"); +class ModifyHostAvailabilityResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: ModifyHostAvailabilityResponseBody_1.ModifyHostAvailabilityResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyHostAvailabilityResponse = ModifyHostAvailabilityResponse; +//# sourceMappingURL=ModifyHostAvailabilityResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityResponse.js.map new file mode 100644 index 0000000..7adc3b0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModifyHostAvailabilityResponse.js","sourceRoot":"","sources":["../../src/models/ModifyHostAvailabilityResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,6FAA0F;AAG1F,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAI7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,uEAAkC;SACzC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,wEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityResponseBody.d.ts new file mode 100644 index 0000000..5baad95 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class ModifyHostAvailabilityResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 16E815A3-47E1-4290-87F9-D5C99471FF45 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityResponseBody.js new file mode 100644 index 0000000..17cecaf --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityResponseBody.js @@ -0,0 +1,64 @@ +"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.ModifyHostAvailabilityResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class ModifyHostAvailabilityResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyHostAvailabilityResponseBody = ModifyHostAvailabilityResponseBody; +//# sourceMappingURL=ModifyHostAvailabilityResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityResponseBody.js.map new file mode 100644 index 0000000..bddedb8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostAvailabilityResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModifyHostAvailabilityResponseBody.js","sourceRoot":"","sources":["../../src/models/ModifyHostAvailabilityResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;IAsCjE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,gFA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoRequest.d.ts new file mode 100644 index 0000000..e33fd61 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoRequest.d.ts @@ -0,0 +1,32 @@ +import * as $dara from '@darabonba/typescript'; +export declare class ModifyHostInfoRequest extends $dara.Model { + /** + * @remarks + * The name of the host. + * + * @example + * portalHost + */ + hostName?: string; + /** + * @remarks + * The ID of the instance. Only hosts not on Alibaba Cloud are supported. + * + * This parameter is required. + * + * @example + * host-R_NSWNV**** + */ + instanceId?: string; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoRequest.js new file mode 100644 index 0000000..ed2dc02 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoRequest.js @@ -0,0 +1,62 @@ +"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.ModifyHostInfoRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class ModifyHostInfoRequest extends $dara.Model { + static names() { + return { + hostName: 'HostName', + instanceId: 'InstanceId', + regionId: 'RegionId', + }; + } + static types() { + return { + hostName: 'string', + instanceId: 'string', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyHostInfoRequest = ModifyHostInfoRequest; +//# sourceMappingURL=ModifyHostInfoRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoRequest.js.map new file mode 100644 index 0000000..a67810a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModifyHostInfoRequest.js","sourceRoot":"","sources":["../../src/models/ModifyHostInfoRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qBAAsB,SAAQ,KAAK,CAAC,KAAK;IAoBpD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA3CD,sDA2CC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoResponse.d.ts new file mode 100644 index 0000000..a9e8ab6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { ModifyHostInfoResponseBody } from "./ModifyHostInfoResponseBody"; +export declare class ModifyHostInfoResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: ModifyHostInfoResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoResponse.js new file mode 100644 index 0000000..3fafc61 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoResponse.js @@ -0,0 +1,69 @@ +"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.ModifyHostInfoResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const ModifyHostInfoResponseBody_1 = require("./ModifyHostInfoResponseBody"); +class ModifyHostInfoResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: ModifyHostInfoResponseBody_1.ModifyHostInfoResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyHostInfoResponse = ModifyHostInfoResponse; +//# sourceMappingURL=ModifyHostInfoResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoResponse.js.map new file mode 100644 index 0000000..3ad2e4b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModifyHostInfoResponse.js","sourceRoot":"","sources":["../../src/models/ModifyHostInfoResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,6EAA0E;AAG1E,MAAa,sBAAuB,SAAQ,KAAK,CAAC,KAAK;IAIrD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,uDAA0B;SACjC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,wDAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoResponseBody.d.ts new file mode 100644 index 0000000..becada7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoResponseBody.d.ts @@ -0,0 +1,47 @@ +import * as $dara from '@darabonba/typescript'; +export declare class ModifyHostInfoResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * EBB5215C-44AB-4000-A2D7-48634FDC4F04 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call was successful. The value true indicates a success. The value false indicates a failure. + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoResponseBody.js new file mode 100644 index 0000000..d96a47e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoResponseBody.js @@ -0,0 +1,64 @@ +"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.ModifyHostInfoResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class ModifyHostInfoResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyHostInfoResponseBody = ModifyHostInfoResponseBody; +//# sourceMappingURL=ModifyHostInfoResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoResponseBody.js.map new file mode 100644 index 0000000..0f8da59 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHostInfoResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModifyHostInfoResponseBody.js","sourceRoot":"","sources":["../../src/models/ModifyHostInfoResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IAmCzD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5DD,gEA4DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceRequest.d.ts new file mode 100644 index 0000000..e327713 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceRequest.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class ModifyHybridMonitorNamespaceRequest extends $dara.Model { + /** + * @remarks + * The description of the namespace. + */ + description?: string; + /** + * @remarks + * The name of the namespace. + * + * The name can contain letters, digits, and hyphens (-). + * + * For information about how to obtain the name of a namespace, see [DescribeHybridMonitorNamespaceList](https://help.aliyun.com/document_detail/428880.html). + * + * This parameter is required. + * + * @example + * aliyun + */ + namespace?: string; + regionId?: string; + /** + * @remarks + * The data retention period. Valid values: + * + * * cms.s1.large: Data is stored for 15 days. + * * cms.s1.xlarge: Data is stored for 32 days. + * * cms.s1.2xlarge: Data is stored for 63 days. + * * cms.s1.3xlarge: Data is stored for 93 days. + * * cms.s1.6xlarge: Data is stored for 185 days. + * * cms.s1.12xlarge: Data is stored for 376 days. + * + * For information about the pricing for different retention periods, see the **Pricing** section in [Billing of the dashboard feature](https://help.aliyun.com/document_detail/223532.html). + * + * @example + * cms.s1.2xlarge + */ + spec?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceRequest.js new file mode 100644 index 0000000..21700fc --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceRequest.js @@ -0,0 +1,64 @@ +"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.ModifyHybridMonitorNamespaceRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class ModifyHybridMonitorNamespaceRequest extends $dara.Model { + static names() { + return { + description: 'Description', + namespace: 'Namespace', + regionId: 'RegionId', + spec: 'Spec', + }; + } + static types() { + return { + description: 'string', + namespace: 'string', + regionId: 'string', + spec: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyHybridMonitorNamespaceRequest = ModifyHybridMonitorNamespaceRequest; +//# sourceMappingURL=ModifyHybridMonitorNamespaceRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceRequest.js.map new file mode 100644 index 0000000..35b9dca --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModifyHybridMonitorNamespaceRequest.js","sourceRoot":"","sources":["../../src/models/ModifyHybridMonitorNamespaceRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IAsClE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;YAC1B,SAAS,EAAE,WAAW;YACtB,QAAQ,EAAE,UAAU;YACpB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,SAAS,EAAE,QAAQ;YACnB,QAAQ,EAAE,QAAQ;YAClB,IAAI,EAAE,QAAQ;SACf,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,kFA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceResponse.d.ts new file mode 100644 index 0000000..90c72f0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { ModifyHybridMonitorNamespaceResponseBody } from "./ModifyHybridMonitorNamespaceResponseBody"; +export declare class ModifyHybridMonitorNamespaceResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: ModifyHybridMonitorNamespaceResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceResponse.js new file mode 100644 index 0000000..f257b19 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceResponse.js @@ -0,0 +1,69 @@ +"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.ModifyHybridMonitorNamespaceResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const ModifyHybridMonitorNamespaceResponseBody_1 = require("./ModifyHybridMonitorNamespaceResponseBody"); +class ModifyHybridMonitorNamespaceResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: ModifyHybridMonitorNamespaceResponseBody_1.ModifyHybridMonitorNamespaceResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyHybridMonitorNamespaceResponse = ModifyHybridMonitorNamespaceResponse; +//# sourceMappingURL=ModifyHybridMonitorNamespaceResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceResponse.js.map new file mode 100644 index 0000000..2f98e9b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModifyHybridMonitorNamespaceResponse.js","sourceRoot":"","sources":["../../src/models/ModifyHybridMonitorNamespaceResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,yGAAsG;AAGtG,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IAInE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,mFAAwC;SAC/C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,oFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceResponseBody.d.ts new file mode 100644 index 0000000..471b6a7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceResponseBody.d.ts @@ -0,0 +1,48 @@ +import * as $dara from '@darabonba/typescript'; +export declare class ModifyHybridMonitorNamespaceResponseBody extends $dara.Model { + /** + * @remarks + * The returned message. + * + * @example + * Success + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * %s + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * E190AB2E-7BF9-59B7-9DDC-7CB1782C5ECD + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceResponseBody.js new file mode 100644 index 0000000..88d6d34 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceResponseBody.js @@ -0,0 +1,64 @@ +"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.ModifyHybridMonitorNamespaceResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class ModifyHybridMonitorNamespaceResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyHybridMonitorNamespaceResponseBody = ModifyHybridMonitorNamespaceResponseBody; +//# sourceMappingURL=ModifyHybridMonitorNamespaceResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceResponseBody.js.map new file mode 100644 index 0000000..8a6cb08 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorNamespaceResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModifyHybridMonitorNamespaceResponseBody.js","sourceRoot":"","sources":["../../src/models/ModifyHybridMonitorNamespaceResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wCAAyC,SAAQ,KAAK,CAAC,KAAK;IAoCvE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA7DD,4FA6DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupRequest.d.ts new file mode 100644 index 0000000..a8c61d2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupRequest.d.ts @@ -0,0 +1,102 @@ +import * as $dara from '@darabonba/typescript'; +export declare class ModifyHybridMonitorSLSGroupRequestSLSGroupConfig extends $dara.Model { + /** + * @remarks + * The Logstore. + * + * Valid values of N: 1 to 25. + * + * This parameter is required. + * + * @example + * Logstore-aliyun-all + */ + SLSLogstore?: string; + /** + * @remarks + * The Simple Log Service project. + * + * Valid values of N: 1 to 25. + * + * This parameter is required. + * + * @example + * aliyun-project + */ + SLSProject?: string; + /** + * @remarks + * The region ID. + * + * Valid values of N: 1 to 25. + * + * This parameter is required. + * + * @example + * cn-hangzhou + */ + SLSRegion?: string; + /** + * @remarks + * The member ID. + * + * Valid values of N: 1 to 25. + * + * If you call this operation by using the management account of a resource directory, you can connect the Alibaba Cloud services that are activated for all members in the resource directory to Hybrid Cloud Monitoring. You can use the resource directory to monitor Alibaba Cloud services across enterprise accounts. + * + * > If a member uses CloudMonitor for the first time, you must make sure that the service-linked role AliyunServiceRoleForCloudMonitor is attached to the member. For more information, see [Manage the service-linked role for CloudMonitor](https://help.aliyun.com/document_detail/170423.html). + * + * @example + * 120886317861**** + */ + SLSUserId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class ModifyHybridMonitorSLSGroupRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * The configurations of the Logstore group. + * + * Valid values of N: 1 to 25. + * + * This parameter is required. + */ + SLSGroupConfig?: ModifyHybridMonitorSLSGroupRequestSLSGroupConfig[]; + /** + * @remarks + * The description of the Logstore group. + */ + SLSGroupDescription?: string; + /** + * @remarks + * The name of the Logstore group. + * + * For information about how to obtain the name of a Logstore group, see [DescribeHybridMonitorSLSGroup](https://help.aliyun.com/document_detail/429526.html). + * + * This parameter is required. + * + * @example + * Logstore_test + */ + SLSGroupName?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupRequest.js new file mode 100644 index 0000000..535bf57 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupRequest.js @@ -0,0 +1,92 @@ +"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.ModifyHybridMonitorSLSGroupRequest = exports.ModifyHybridMonitorSLSGroupRequestSLSGroupConfig = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class ModifyHybridMonitorSLSGroupRequestSLSGroupConfig extends $dara.Model { + static names() { + return { + SLSLogstore: 'SLSLogstore', + SLSProject: 'SLSProject', + SLSRegion: 'SLSRegion', + SLSUserId: 'SLSUserId', + }; + } + static types() { + return { + SLSLogstore: 'string', + SLSProject: 'string', + SLSRegion: 'string', + SLSUserId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyHybridMonitorSLSGroupRequestSLSGroupConfig = ModifyHybridMonitorSLSGroupRequestSLSGroupConfig; +class ModifyHybridMonitorSLSGroupRequest extends $dara.Model { + static names() { + return { + regionId: 'RegionId', + SLSGroupConfig: 'SLSGroupConfig', + SLSGroupDescription: 'SLSGroupDescription', + SLSGroupName: 'SLSGroupName', + }; + } + static types() { + return { + regionId: 'string', + SLSGroupConfig: { 'type': 'array', 'itemType': ModifyHybridMonitorSLSGroupRequestSLSGroupConfig }, + SLSGroupDescription: 'string', + SLSGroupName: 'string', + }; + } + validate() { + if (Array.isArray(this.SLSGroupConfig)) { + $dara.Model.validateArray(this.SLSGroupConfig); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyHybridMonitorSLSGroupRequest = ModifyHybridMonitorSLSGroupRequest; +//# sourceMappingURL=ModifyHybridMonitorSlsgroupRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupRequest.js.map new file mode 100644 index 0000000..7993dc4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModifyHybridMonitorSlsgroupRequest.js","sourceRoot":"","sources":["../../src/models/ModifyHybridMonitorSlsgroupRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,gDAAiD,SAAQ,KAAK,CAAC,KAAK;IAmD/E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;YAC1B,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;YACnB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5ED,4GA4EC;AAED,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;IA4BjE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,cAAc,EAAE,gBAAgB;YAChC,mBAAmB,EAAE,qBAAqB;YAC1C,YAAY,EAAE,cAAc;SAC7B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,cAAc,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,gDAAgD,EAAE;YACjG,mBAAmB,EAAE,QAAQ;YAC7B,YAAY,EAAE,QAAQ;SACvB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC;YACtC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACjD,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxDD,gFAwDC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupResponse.d.ts new file mode 100644 index 0000000..7637a5e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { ModifyHybridMonitorSLSGroupResponseBody } from "./ModifyHybridMonitorSlsgroupResponseBody"; +export declare class ModifyHybridMonitorSLSGroupResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: ModifyHybridMonitorSLSGroupResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupResponse.js new file mode 100644 index 0000000..ac11257 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupResponse.js @@ -0,0 +1,69 @@ +"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.ModifyHybridMonitorSLSGroupResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const ModifyHybridMonitorSlsgroupResponseBody_1 = require("./ModifyHybridMonitorSlsgroupResponseBody"); +class ModifyHybridMonitorSLSGroupResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: ModifyHybridMonitorSlsgroupResponseBody_1.ModifyHybridMonitorSLSGroupResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyHybridMonitorSLSGroupResponse = ModifyHybridMonitorSLSGroupResponse; +//# sourceMappingURL=ModifyHybridMonitorSlsgroupResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupResponse.js.map new file mode 100644 index 0000000..1019159 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModifyHybridMonitorSlsgroupResponse.js","sourceRoot":"","sources":["../../src/models/ModifyHybridMonitorSlsgroupResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,uGAAoG;AAGpG,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IAIlE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,iFAAuC;SAC9C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,kFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupResponseBody.d.ts new file mode 100644 index 0000000..6dda342 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class ModifyHybridMonitorSLSGroupResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * NotFound.SLSGroup + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 66683237-7126-50F8-BBF8-D67ACC919A17 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupResponseBody.js new file mode 100644 index 0000000..a25fc08 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupResponseBody.js @@ -0,0 +1,64 @@ +"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.ModifyHybridMonitorSLSGroupResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class ModifyHybridMonitorSLSGroupResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyHybridMonitorSLSGroupResponseBody = ModifyHybridMonitorSLSGroupResponseBody; +//# sourceMappingURL=ModifyHybridMonitorSlsgroupResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupResponseBody.js.map new file mode 100644 index 0000000..d10159b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorSlsgroupResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModifyHybridMonitorSlsgroupResponseBody.js","sourceRoot":"","sources":["../../src/models/ModifyHybridMonitorSlsgroupResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,uCAAwC,SAAQ,KAAK,CAAC,KAAK;IAsCtE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,0FA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskRequest.d.ts new file mode 100644 index 0000000..71ace75 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskRequest.d.ts @@ -0,0 +1,322 @@ +import * as $dara from '@darabonba/typescript'; +export declare class ModifyHybridMonitorTaskRequestAttachLabels extends $dara.Model { + /** + * @remarks + * The tag key of the metric. + * + * @example + * app_service + */ + name?: string; + /** + * @remarks + * The tag value of the metric. + * + * @example + * testValue + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class ModifyHybridMonitorTaskRequestSLSProcessConfigExpress extends $dara.Model { + /** + * @remarks + * The alias of the extended field that specifies the result of basic operations performed on aggregation results. + * + * @example + * SuccRate + */ + alias?: string; + /** + * @remarks + * The extended field that specifies the result of basic operations performed on aggregation results. + * + * @example + * success_count + */ + express?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class ModifyHybridMonitorTaskRequestSLSProcessConfigFilterFilters extends $dara.Model { + /** + * @remarks + * The method that is used to filter logs imported from Simple Log Service. Valid values: + * + * * `contain`: contains + * * `notContain`: does not contain + * * `>`: greater than + * * `<`: less than + * * `=`: equal to + * * `! =`: not equal to + * * `>=`: greater than or equal to + * * `<=`: less than or equal to + * + * @example + * = + */ + operator?: string; + /** + * @remarks + * The name of the key that is used to filter logs imported from Simple Log Service. + * + * @example + * code + */ + SLSKeyName?: string; + /** + * @remarks + * The value of the key that is used to filter logs imported from Simple Log Service. + * + * @example + * 200 + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class ModifyHybridMonitorTaskRequestSLSProcessConfigFilter extends $dara.Model { + /** + * @remarks + * None. + */ + filters?: ModifyHybridMonitorTaskRequestSLSProcessConfigFilterFilters[]; + /** + * @remarks + * The relationship between multiple filter conditions. Valid values: + * + * * and (default): Logs are processed only if all filter conditions are met. + * * or: Logs are processed if one of the filter conditions is met. + * + * @example + * and + */ + relation?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class ModifyHybridMonitorTaskRequestSLSProcessConfigGroupBy extends $dara.Model { + /** + * @remarks + * The alias of the aggregation result. + * + * @example + * ApiResult + */ + alias?: string; + /** + * @remarks + * The name of the key that is used to aggregate logs imported from Simple Log Service. + * + * @example + * code + */ + SLSKeyName?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class ModifyHybridMonitorTaskRequestSLSProcessConfigStatistics extends $dara.Model { + /** + * @remarks + * The alias of the aggregation result. + * + * @example + * level_count + */ + alias?: string; + /** + * @remarks + * The function that is used to aggregate the log data of a statistical period. Valid values: + * + * * count: counts the number. + * * sum: calculates the total value. + * * avg: calculates the average value. + * * max: calculates the maximum value. + * * min: calculates the minimum value. + * * value: collects samples within the statistical period. + * * countps: calculates the number of values of the specified field divided by the total number of seconds within the statistical period. + * * sumps: calculates the sum of the values of the specified field divided by the total number of seconds within the statistical period. + * * distinct: calculates the number of unique values of the specified field within the statistical period. + * * distribution: calculates the number of logs that meet a specified condition within the statistical period. + * * percentile: sorts the values of the specified field in ascending order, and then returns the value that is at the specified percentile within the statistical period. Example: P50. + * + * @example + * count + */ + function?: string; + /** + * @remarks + * The value of the function that is used to aggregate logs imported from Simple Log Service. + * + * * If the `Function` parameter is set to `distribution`, this parameter specifies the lower limit of the statistical interval. For example, if you want to calculate the number of HTTP requests whose status code is 2XX, set this parameter to 200. + * * If the `Function` parameter is set to `percentile`, this parameter specifies the percentile at which the expected value is. For example, 0.5 specifies P50. + * + * @example + * 200 + */ + parameter1?: string; + /** + * @remarks + * The value of the function that is used to aggregate logs imported from Simple Log Service. + * + * > This parameter is required only if the `Function` parameter is set to `distribution`. This parameter specifies the upper limit of the statistical interval. For example, if you want to calculate the number of HTTP requests whose status code is 2XX, set this parameter to 299. + * + * @example + * 299 + */ + parameter2?: string; + /** + * @remarks + * The name of the key that is used to aggregate logs imported from Simple Log Service. + * + * @example + * name + */ + SLSKeyName?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class ModifyHybridMonitorTaskRequestSLSProcessConfig extends $dara.Model { + /** + * @remarks + * The extended fields that specify the results of basic operations performed on aggregation results. + */ + express?: ModifyHybridMonitorTaskRequestSLSProcessConfigExpress[]; + /** + * @remarks + * The conditions that are used to filter logs imported from Simple Log Service. + */ + filter?: ModifyHybridMonitorTaskRequestSLSProcessConfigFilter; + /** + * @remarks + * The dimension based on which data is aggregated. This parameter is equivalent to the GROUP BY clause in SQL. + */ + groupBy?: ModifyHybridMonitorTaskRequestSLSProcessConfigGroupBy[]; + /** + * @remarks + * None. + */ + statistics?: ModifyHybridMonitorTaskRequestSLSProcessConfigStatistics[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class ModifyHybridMonitorTaskRequest extends $dara.Model { + /** + * @remarks + * The tags of the metric. + */ + attachLabels?: ModifyHybridMonitorTaskRequestAttachLabels[]; + /** + * @remarks + * The collection period of the metric. Valid values: + * + * * 15 + * * 60 + * + * Unit: seconds. + * + * @example + * 15 + */ + collectInterval?: string; + /** + * @remarks + * The description of the metric import task. + */ + description?: string; + regionId?: string; + /** + * @remarks + * The configurations of the logs that are imported from Simple Log Service. + */ + SLSProcessConfig?: ModifyHybridMonitorTaskRequestSLSProcessConfig; + /** + * @remarks + * The ID of the metric import task. + * + * For information about how to obtain the ID of a metric import task, see [DescribeHybridMonitorTaskList](https://help.aliyun.com/document_detail/428624.html). + * + * This parameter is required. + * + * @example + * 36**** + */ + taskId?: string; + /** + * @remarks + * The name of the metric import task. + * + * For information about how to obtain the ID of a metric import task, see [DescribeHybridMonitorTaskList](https://help.aliyun.com/document_detail/428624.html). + * + * @example + * SLS_task + */ + taskName?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskRequest.js new file mode 100644 index 0000000..6de7d87 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskRequest.js @@ -0,0 +1,250 @@ +"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.ModifyHybridMonitorTaskRequest = exports.ModifyHybridMonitorTaskRequestSLSProcessConfig = exports.ModifyHybridMonitorTaskRequestSLSProcessConfigStatistics = exports.ModifyHybridMonitorTaskRequestSLSProcessConfigGroupBy = exports.ModifyHybridMonitorTaskRequestSLSProcessConfigFilter = exports.ModifyHybridMonitorTaskRequestSLSProcessConfigFilterFilters = exports.ModifyHybridMonitorTaskRequestSLSProcessConfigExpress = exports.ModifyHybridMonitorTaskRequestAttachLabels = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class ModifyHybridMonitorTaskRequestAttachLabels extends $dara.Model { + static names() { + return { + name: 'Name', + value: 'Value', + }; + } + static types() { + return { + name: 'string', + value: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyHybridMonitorTaskRequestAttachLabels = ModifyHybridMonitorTaskRequestAttachLabels; +class ModifyHybridMonitorTaskRequestSLSProcessConfigExpress extends $dara.Model { + static names() { + return { + alias: 'Alias', + express: 'Express', + }; + } + static types() { + return { + alias: 'string', + express: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyHybridMonitorTaskRequestSLSProcessConfigExpress = ModifyHybridMonitorTaskRequestSLSProcessConfigExpress; +class ModifyHybridMonitorTaskRequestSLSProcessConfigFilterFilters extends $dara.Model { + static names() { + return { + operator: 'Operator', + SLSKeyName: 'SLSKeyName', + value: 'Value', + }; + } + static types() { + return { + operator: 'string', + SLSKeyName: 'string', + value: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyHybridMonitorTaskRequestSLSProcessConfigFilterFilters = ModifyHybridMonitorTaskRequestSLSProcessConfigFilterFilters; +class ModifyHybridMonitorTaskRequestSLSProcessConfigFilter extends $dara.Model { + static names() { + return { + filters: 'Filters', + relation: 'Relation', + }; + } + static types() { + return { + filters: { 'type': 'array', 'itemType': ModifyHybridMonitorTaskRequestSLSProcessConfigFilterFilters }, + relation: 'string', + }; + } + validate() { + if (Array.isArray(this.filters)) { + $dara.Model.validateArray(this.filters); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyHybridMonitorTaskRequestSLSProcessConfigFilter = ModifyHybridMonitorTaskRequestSLSProcessConfigFilter; +class ModifyHybridMonitorTaskRequestSLSProcessConfigGroupBy extends $dara.Model { + static names() { + return { + alias: 'Alias', + SLSKeyName: 'SLSKeyName', + }; + } + static types() { + return { + alias: 'string', + SLSKeyName: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyHybridMonitorTaskRequestSLSProcessConfigGroupBy = ModifyHybridMonitorTaskRequestSLSProcessConfigGroupBy; +class ModifyHybridMonitorTaskRequestSLSProcessConfigStatistics extends $dara.Model { + static names() { + return { + alias: 'Alias', + function: 'Function', + parameter1: 'Parameter1', + parameter2: 'Parameter2', + SLSKeyName: 'SLSKeyName', + }; + } + static types() { + return { + alias: 'string', + function: 'string', + parameter1: 'string', + parameter2: 'string', + SLSKeyName: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyHybridMonitorTaskRequestSLSProcessConfigStatistics = ModifyHybridMonitorTaskRequestSLSProcessConfigStatistics; +class ModifyHybridMonitorTaskRequestSLSProcessConfig extends $dara.Model { + static names() { + return { + express: 'Express', + filter: 'Filter', + groupBy: 'GroupBy', + statistics: 'Statistics', + }; + } + static types() { + return { + express: { 'type': 'array', 'itemType': ModifyHybridMonitorTaskRequestSLSProcessConfigExpress }, + filter: ModifyHybridMonitorTaskRequestSLSProcessConfigFilter, + groupBy: { 'type': 'array', 'itemType': ModifyHybridMonitorTaskRequestSLSProcessConfigGroupBy }, + statistics: { 'type': 'array', 'itemType': ModifyHybridMonitorTaskRequestSLSProcessConfigStatistics }, + }; + } + validate() { + if (Array.isArray(this.express)) { + $dara.Model.validateArray(this.express); + } + if (this.filter && typeof this.filter.validate === 'function') { + this.filter.validate(); + } + if (Array.isArray(this.groupBy)) { + $dara.Model.validateArray(this.groupBy); + } + if (Array.isArray(this.statistics)) { + $dara.Model.validateArray(this.statistics); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyHybridMonitorTaskRequestSLSProcessConfig = ModifyHybridMonitorTaskRequestSLSProcessConfig; +class ModifyHybridMonitorTaskRequest extends $dara.Model { + static names() { + return { + attachLabels: 'AttachLabels', + collectInterval: 'CollectInterval', + description: 'Description', + regionId: 'RegionId', + SLSProcessConfig: 'SLSProcessConfig', + taskId: 'TaskId', + taskName: 'TaskName', + }; + } + static types() { + return { + attachLabels: { 'type': 'array', 'itemType': ModifyHybridMonitorTaskRequestAttachLabels }, + collectInterval: 'string', + description: 'string', + regionId: 'string', + SLSProcessConfig: ModifyHybridMonitorTaskRequestSLSProcessConfig, + taskId: 'string', + taskName: 'string', + }; + } + validate() { + if (Array.isArray(this.attachLabels)) { + $dara.Model.validateArray(this.attachLabels); + } + if (this.SLSProcessConfig && typeof this.SLSProcessConfig.validate === 'function') { + this.SLSProcessConfig.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyHybridMonitorTaskRequest = ModifyHybridMonitorTaskRequest; +//# sourceMappingURL=ModifyHybridMonitorTaskRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskRequest.js.map new file mode 100644 index 0000000..8de84db --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModifyHybridMonitorTaskRequest.js","sourceRoot":"","sources":["../../src/models/ModifyHybridMonitorTaskRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0CAA2C,SAAQ,KAAK,CAAC,KAAK;IAiBzE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,M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AC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzFD,wEAyFC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskResponse.d.ts new file mode 100644 index 0000000..1217a9a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { ModifyHybridMonitorTaskResponseBody } from "./ModifyHybridMonitorTaskResponseBody"; +export declare class ModifyHybridMonitorTaskResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: ModifyHybridMonitorTaskResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskResponse.js new file mode 100644 index 0000000..b58eeca --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskResponse.js @@ -0,0 +1,69 @@ +"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.ModifyHybridMonitorTaskResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const ModifyHybridMonitorTaskResponseBody_1 = require("./ModifyHybridMonitorTaskResponseBody"); +class ModifyHybridMonitorTaskResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: ModifyHybridMonitorTaskResponseBody_1.ModifyHybridMonitorTaskResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyHybridMonitorTaskResponse = ModifyHybridMonitorTaskResponse; +//# sourceMappingURL=ModifyHybridMonitorTaskResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskResponse.js.map new file mode 100644 index 0000000..fda720c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModifyHybridMonitorTaskResponse.js","sourceRoot":"","sources":["../../src/models/ModifyHybridMonitorTaskResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,+FAA4F;AAG5F,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAI9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,yEAAmC;SAC1C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,0EAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskResponseBody.d.ts new file mode 100644 index 0000000..4767177 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class ModifyHybridMonitorTaskResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * Invalid.SLSConfig + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 11145B76-566A-5D80-A8A3-FAD98D310079 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskResponseBody.js new file mode 100644 index 0000000..e7c863b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskResponseBody.js @@ -0,0 +1,64 @@ +"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.ModifyHybridMonitorTaskResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class ModifyHybridMonitorTaskResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyHybridMonitorTaskResponseBody = ModifyHybridMonitorTaskResponseBody; +//# sourceMappingURL=ModifyHybridMonitorTaskResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskResponseBody.js.map new file mode 100644 index 0000000..6e24b2c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyHybridMonitorTaskResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModifyHybridMonitorTaskResponseBody.js","sourceRoot":"","sources":["../../src/models/ModifyHybridMonitorTaskResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IAsClE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,kFA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListRequest.d.ts new file mode 100644 index 0000000..6d15cd5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListRequest.d.ts @@ -0,0 +1,163 @@ +import * as $dara from '@darabonba/typescript'; +export declare class ModifyMetricRuleBlackListRequestMetrics extends $dara.Model { + /** + * @remarks + * The name of the metric. + * + * Valid values of N: 1 to 10. + * + * This parameter is required. + * + * @example + * disk_utilization + */ + metricName?: string; + /** + * @remarks + * The extended dimension of the instance. For example, `{"device":"C:"}` specifies that the blacklist policy is applied to all C disks of the specified Elastic Compute Service (ECS) instance. + * + * Valid values of N: 1 to 10. + * + * @example + * {"device":"C:"} + */ + resource?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class ModifyMetricRuleBlackListRequest extends $dara.Model { + /** + * @remarks + * The category of the cloud service. For example, ApsaraDB for Redis supports the standard architecture, the cluster architecture, and the read/write splitting architecture. In this case, the valid values of this parameter for ApsaraDB for Redis include `kvstore_standard`, `kvstore_sharding`, and `kvstore_splitrw`. + * + * This parameter is required. + * + * @example + * ecs + */ + category?: string; + /** + * @remarks + * The time range within which the blacklist policy is effective. Take note of the following information: + * + * * If you do not configure this parameter, the blacklist policy is permanently effective. + * + * * If you configure this parameter, the blacklist policy is effective only within the specified time range. Examples: + * + * * `03:00-04:59`: The blacklist policy is effective from 03:00 to 05:00 local time. 05:00 local time is excluded. + * * `03:00-04:59 UTC+0700`: The blacklist policy is effective from 03:00 to 05:00 (UTC+7). 05:00 (UTC+7) is excluded. + * + * @example + * 03:00-04:59 + */ + effectiveTime?: string; + /** + * @remarks + * The timestamp when the blacklist policy expires. + * + * Unit: milliseconds. + * + * @example + * 1640608200000 + */ + enableEndTime?: string; + /** + * @remarks + * The timestamp when the blacklist policy starts to take effect. + * + * Unit: milliseconds. + * + * @example + * 1640237400000 + */ + enableStartTime?: string; + /** + * @remarks + * The ID of the blacklist policy. + * + * For information about how to obtain the ID of a blacklist policy, see [DescribeMetricRuleBlackList](https://help.aliyun.com/document_detail/457257.html). + * + * This parameter is required. + * + * @example + * 93514c96-ceb8-47d8-8ee3-93b6d98b**** + */ + id?: string; + /** + * @remarks + * The IDs of the instances that belong to the specified cloud service. + * + * This parameter is required. + */ + instances?: string[]; + /** + * @remarks + * The metrics of the instance. + * + * * If you do not configure this parameter, the blacklist policy applies to all metrics of the specified cloud service. + * * If you configure this parameter, the blacklist policy applies only to the current metric. + */ + metrics?: ModifyMetricRuleBlackListRequestMetrics[]; + /** + * @remarks + * The name of the blacklist policy. + * + * This parameter is required. + * + * @example + * Blacklist-02 + */ + name?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * For more information about the namespaces of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + regionId?: string; + /** + * @remarks + * The effective scope of the blacklist policy. Valid values: + * + * * USER: The blacklist policy takes effect only within the current Alibaba Cloud account. + * * GROUP (default): The blacklist policy takes effect only within the specified application group. For information about how to obtain the ID of an application group, see [DescribeMonitorGroups](https://help.aliyun.com/document_detail/115032.html). + * + * @example + * USER + */ + scopeType?: string; + /** + * @remarks + * The IDs of the application groups. + * + * > This parameter is required only when `ScopeType` is set to `GROUP`. + * + * @example + * ["67****","78****"] + */ + scopeValue?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListRequest.js new file mode 100644 index 0000000..365ec7e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListRequest.js @@ -0,0 +1,107 @@ +"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.ModifyMetricRuleBlackListRequest = exports.ModifyMetricRuleBlackListRequestMetrics = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class ModifyMetricRuleBlackListRequestMetrics extends $dara.Model { + static names() { + return { + metricName: 'MetricName', + resource: 'Resource', + }; + } + static types() { + return { + metricName: 'string', + resource: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyMetricRuleBlackListRequestMetrics = ModifyMetricRuleBlackListRequestMetrics; +class ModifyMetricRuleBlackListRequest extends $dara.Model { + static names() { + return { + category: 'Category', + effectiveTime: 'EffectiveTime', + enableEndTime: 'EnableEndTime', + enableStartTime: 'EnableStartTime', + id: 'Id', + instances: 'Instances', + metrics: 'Metrics', + name: 'Name', + namespace: 'Namespace', + regionId: 'RegionId', + scopeType: 'ScopeType', + scopeValue: 'ScopeValue', + }; + } + static types() { + return { + category: 'string', + effectiveTime: 'string', + enableEndTime: 'string', + enableStartTime: 'string', + id: 'string', + instances: { 'type': 'array', 'itemType': 'string' }, + metrics: { 'type': 'array', 'itemType': ModifyMetricRuleBlackListRequestMetrics }, + name: 'string', + namespace: 'string', + regionId: 'string', + scopeType: 'string', + scopeValue: 'string', + }; + } + validate() { + if (Array.isArray(this.instances)) { + $dara.Model.validateArray(this.instances); + } + if (Array.isArray(this.metrics)) { + $dara.Model.validateArray(this.metrics); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyMetricRuleBlackListRequest = ModifyMetricRuleBlackListRequest; +//# sourceMappingURL=ModifyMetricRuleBlackListRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListRequest.js.map new file mode 100644 index 0000000..77f97be --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModifyMetricRuleBlackListRequest.js","sourceRoot":"","sources":["../../src/models/ModifyMetricRuleBlackListRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,uCAAwC,SAAQ,KAAK,CAAC,KAAK;IAuBtE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK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,CAAC,CAAC;QAC5C,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;YAC/B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApKD,4EAoKC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListResponse.d.ts new file mode 100644 index 0000000..0f6512f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { ModifyMetricRuleBlackListResponseBody } from "./ModifyMetricRuleBlackListResponseBody"; +export declare class ModifyMetricRuleBlackListResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: ModifyMetricRuleBlackListResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListResponse.js new file mode 100644 index 0000000..e5ed133 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListResponse.js @@ -0,0 +1,69 @@ +"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.ModifyMetricRuleBlackListResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const ModifyMetricRuleBlackListResponseBody_1 = require("./ModifyMetricRuleBlackListResponseBody"); +class ModifyMetricRuleBlackListResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: ModifyMetricRuleBlackListResponseBody_1.ModifyMetricRuleBlackListResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyMetricRuleBlackListResponse = ModifyMetricRuleBlackListResponse; +//# sourceMappingURL=ModifyMetricRuleBlackListResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListResponse.js.map new file mode 100644 index 0000000..7050077 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModifyMetricRuleBlackListResponse.js","sourceRoot":"","sources":["../../src/models/ModifyMetricRuleBlackListResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,mGAAgG;AAGhG,MAAa,iCAAkC,SAAQ,KAAK,CAAC,KAAK;IAIhE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,6EAAqC;SAC5C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,8EAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListResponseBody.d.ts new file mode 100644 index 0000000..5a68f4c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListResponseBody.d.ts @@ -0,0 +1,58 @@ +import * as $dara from '@darabonba/typescript'; +export declare class ModifyMetricRuleBlackListResponseBody extends $dara.Model { + /** + * @remarks + * The error code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The number of blacklist policies that are modified. + * + * @example + * 1 + */ + count?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 008773AE-1D86-3231-90F9-1AF7F808F9CE + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListResponseBody.js new file mode 100644 index 0000000..39fe5aa --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListResponseBody.js @@ -0,0 +1,66 @@ +"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.ModifyMetricRuleBlackListResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class ModifyMetricRuleBlackListResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + count: 'Count', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + count: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyMetricRuleBlackListResponseBody = ModifyMetricRuleBlackListResponseBody; +//# sourceMappingURL=ModifyMetricRuleBlackListResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListResponseBody.js.map new file mode 100644 index 0000000..be990bf --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleBlackListResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModifyMetricRuleBlackListResponseBody.js","sourceRoot":"","sources":["../../src/models/ModifyMetricRuleBlackListResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qCAAsC,SAAQ,KAAK,CAAC,KAAK;IA8CpE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,OAAO;YACd,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,sFAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateRequest.d.ts new file mode 100644 index 0000000..775ec53 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateRequest.d.ts @@ -0,0 +1,224 @@ +import * as $dara from '@darabonba/typescript'; +export declare class ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsCritical 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 ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsInfo 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 ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsWarn 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 ModifyMetricRuleTemplateRequestAlertTemplatesEscalations extends $dara.Model { + critical?: ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsCritical; + info?: ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsInfo; + warn?: ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsWarn; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class ModifyMetricRuleTemplateRequestAlertTemplates extends $dara.Model { + escalations?: ModifyMetricRuleTemplateRequestAlertTemplatesEscalations; + /** + * @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. + * + * @example + * ecs + */ + category?: string; + /** + * @remarks + * The metric name. + * + * Valid values of N: 1 to 200. + * + * For information about how to obtain metrics, see [DescribeMetricMetaList](https://help.aliyun.com/document_detail/98846.html) or [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 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). + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The statistical period of the monitoring data. + * + * Valid values of N: 1 to 200. + * + * > If the value is set to 300 seconds, the monitoring data is collected every 300 seconds. If the monitoring data is reported every 1 minute, the alert system calculates the average, maximum, and minimum values of the monitoring data of 5 minutes and checks whether the aggregated values exceed the threshold. To prevent unexpected alerts, we recommend that you set this parameter together with other parameters. + * + * @example + * 60 + */ + period?: number; + /** + * @remarks + * The name of the alert rule. + * + * Valid values of N: 1 to 200. + * + * @example + * 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 + * https://apiwebhook.hipac.cn/api/v1/alarm/aly/eregfeeferrtbnmkdszp + */ + webhook?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class ModifyMetricRuleTemplateRequest extends $dara.Model { + /** + * @remarks + * The details of the alert template. + */ + alertTemplates?: ModifyMetricRuleTemplateRequestAlertTemplates[]; + /** + * @remarks + * The description of the alert template. + * + * @example + * ECS_template1 + */ + description?: string; + /** + * @remarks + * The name of the alert template. + * + * For information about how to obtain the name of an alert template, see [DescribeMetricRuleTemplateList](https://help.aliyun.com/document_detail/114982.html). + * + * @example + * test123 + */ + name?: string; + regionId?: string; + /** + * @remarks + * The version of the alert template. The version changes with the number of times that the alert template is modified. + * + * For information about how to obtain the version of an alert template, see [DescribeMetricRuleTemplateList](https://help.aliyun.com/document_detail/114982.html). + * + * This parameter is required. + * + * @example + * 0 + */ + restVersion?: number; + /** + * @remarks + * The ID of the alert template. + * + * For information about how to obtain the ID of an alert template, see [DescribeMetricRuleTemplateList](https://help.aliyun.com/document_detail/114982.html). + * + * This parameter is required. + * + * @example + * 123456 + */ + templateId?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateRequest.js new file mode 100644 index 0000000..aa0aa35 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateRequest.js @@ -0,0 +1,220 @@ +"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.ModifyMetricRuleTemplateRequest = exports.ModifyMetricRuleTemplateRequestAlertTemplates = exports.ModifyMetricRuleTemplateRequestAlertTemplatesEscalations = exports.ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsWarn = exports.ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsInfo = exports.ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsCritical = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsCritical extends $dara.Model { + static names() { + return { + comparisonOperator: 'ComparisonOperator', + n: 'N', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + static types() { + return { + comparisonOperator: 'string', + n: 'number', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsCritical = ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsCritical; +class ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsInfo extends $dara.Model { + static names() { + return { + comparisonOperator: 'ComparisonOperator', + n: 'N', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + static types() { + return { + comparisonOperator: 'string', + n: 'number', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsInfo = ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsInfo; +class ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsWarn extends $dara.Model { + static names() { + return { + comparisonOperator: 'ComparisonOperator', + n: 'N', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + static types() { + return { + comparisonOperator: 'string', + n: 'number', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsWarn = ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsWarn; +class ModifyMetricRuleTemplateRequestAlertTemplatesEscalations extends $dara.Model { + static names() { + return { + critical: 'Critical', + info: 'Info', + warn: 'Warn', + }; + } + static types() { + return { + critical: ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsCritical, + info: ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsInfo, + warn: ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsWarn, + }; + } + 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.ModifyMetricRuleTemplateRequestAlertTemplatesEscalations = ModifyMetricRuleTemplateRequestAlertTemplatesEscalations; +class ModifyMetricRuleTemplateRequestAlertTemplates extends $dara.Model { + static names() { + return { + escalations: 'Escalations', + category: 'Category', + metricName: 'MetricName', + namespace: 'Namespace', + period: 'Period', + ruleName: 'RuleName', + selector: 'Selector', + webhook: 'Webhook', + }; + } + static types() { + return { + escalations: ModifyMetricRuleTemplateRequestAlertTemplatesEscalations, + category: 'string', + metricName: 'string', + namespace: 'string', + period: 'number', + ruleName: 'string', + selector: 'string', + webhook: 'string', + }; + } + validate() { + if (this.escalations && typeof this.escalations.validate === 'function') { + this.escalations.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyMetricRuleTemplateRequestAlertTemplates = ModifyMetricRuleTemplateRequestAlertTemplates; +class ModifyMetricRuleTemplateRequest extends $dara.Model { + static names() { + return { + alertTemplates: 'AlertTemplates', + description: 'Description', + name: 'Name', + regionId: 'RegionId', + restVersion: 'RestVersion', + templateId: 'TemplateId', + }; + } + static types() { + return { + alertTemplates: { 'type': 'array', 'itemType': ModifyMetricRuleTemplateRequestAlertTemplates }, + description: 'string', + name: 'string', + regionId: 'string', + restVersion: 'number', + templateId: 'number', + }; + } + validate() { + if (Array.isArray(this.alertTemplates)) { + $dara.Model.validateArray(this.alertTemplates); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyMetricRuleTemplateRequest = ModifyMetricRuleTemplateRequest; +//# sourceMappingURL=ModifyMetricRuleTemplateRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateRequest.js.map new file mode 100644 index 0000000..8b75952 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModifyMetricRuleTemplateRequest.js","sourceRoot":"","sources":["../../src/models/ModifyMetricRuleTemplateRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,gEAAiE,SAAQ,KAAK,CAAC,KAAK;IAM/F,MAAM,CAAC,KAAK;QACV,OAAO;YACL,kBAAkB,EAAE,oBAAoB;YACxC,CAAC,EAAE,GAAG;YACN,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,kBAAkB,EAAE,QAAQ;YAC5B,CAAC,EAAE,QAAQ;YACX,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;YACnB,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,4IAiCC;AAED,MAAa,4DAA6D,SAAQ,KAAK,CAAC,KAAK;IAM3F,MAAM,CAAC,KAAK;QACV,OAAO;YACL,kBAAkB,EAAE,oBAAoB;YACxC,CAAC,EAAE,GAAG;YACN,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,kBAAkB,EAAE,QAAQ;YAC5B,CAAC,EAAE,QAAQ;YACX,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;YACnB,KAA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CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA1HD,sGA0HC;AAED,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAiD9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,cAAc,EAAE,gBAAgB;YAChC,WAAW,EAAE,aAAa;YAC1B,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,UAAU;YACpB,WAAW,EAAE,aAAa;YAC1B,UAAU,EAAE,YAAY;SACzB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,cAAc,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,6CAA6C,EAAE;YAC9F,WAAW,EAAE,QAAQ;YACrB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,QAAQ;YAClB,WAAW,EAAE,QAAQ;YACrB,UAAU,EAAE,QAAQ;SACrB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC;YACtC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACjD,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjFD,0EAiFC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateResponse.d.ts new file mode 100644 index 0000000..7074eeb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { ModifyMetricRuleTemplateResponseBody } from "./ModifyMetricRuleTemplateResponseBody"; +export declare class ModifyMetricRuleTemplateResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: ModifyMetricRuleTemplateResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateResponse.js new file mode 100644 index 0000000..5667638 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateResponse.js @@ -0,0 +1,69 @@ +"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.ModifyMetricRuleTemplateResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const ModifyMetricRuleTemplateResponseBody_1 = require("./ModifyMetricRuleTemplateResponseBody"); +class ModifyMetricRuleTemplateResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: ModifyMetricRuleTemplateResponseBody_1.ModifyMetricRuleTemplateResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyMetricRuleTemplateResponse = ModifyMetricRuleTemplateResponse; +//# sourceMappingURL=ModifyMetricRuleTemplateResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateResponse.js.map new file mode 100644 index 0000000..ff79603 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModifyMetricRuleTemplateResponse.js","sourceRoot":"","sources":["../../src/models/ModifyMetricRuleTemplateResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,iGAA8F;AAG9F,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAI/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,2EAAoC;SAC3C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,4EAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateResponseBody.d.ts new file mode 100644 index 0000000..bf2c1c7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class ModifyMetricRuleTemplateResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 9E07117F-F6AE-4F1C-81E8-36FBB4892235 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateResponseBody.js new file mode 100644 index 0000000..8902113 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateResponseBody.js @@ -0,0 +1,64 @@ +"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.ModifyMetricRuleTemplateResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class ModifyMetricRuleTemplateResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyMetricRuleTemplateResponseBody = ModifyMetricRuleTemplateResponseBody; +//# sourceMappingURL=ModifyMetricRuleTemplateResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateResponseBody.js.map new file mode 100644 index 0000000..0332e57 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMetricRuleTemplateResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModifyMetricRuleTemplateResponseBody.js","sourceRoot":"","sources":["../../src/models/ModifyMetricRuleTemplateResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IAsCnE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,oFA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesRequest.d.ts new file mode 100644 index 0000000..01fdbc5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesRequest.d.ts @@ -0,0 +1,153 @@ +import * as $dara from '@darabonba/typescript'; +export declare class ModifyMonitorGroupInstancesRequestInstances extends $dara.Model { + /** + * @remarks + * The abbreviation of the name of the service to which the instances to be added to the application group belong. Valid values: + * + * * ECS: Elastic Compute Service (ECS) instances provided by Alibaba Cloud and hosts not provided by Alibaba Cloud + * + * * RDS: ApsaraDB for RDS + * + * * ADS: AnalyticDB + * + * * SLB: Server Load Balancer (SLB) + * + * * VPC: Virtual Private Cloud (VPC) + * + * * APIGATEWAY: API Gateway + * + * * CDN: Alibaba Cloud Content Delivery Network (CDN) + * + * * CS: Container Service for Swarm + * + * * DCDN: Dynamic Route for CDN + * + * * DDoS: Anti-DDoS Pro + * + * * EIP: Elastic IP Address (EIP) + * + * * ELASTICSEARCH: Elasticsearch + * + * * EMR: E-MapReduce + * + * * ESS: Auto Scaling + * + * * HBASE: ApsaraDB for Hbase + * + * * IOT_EDGE: IoT Edge + * + * * K8S_POD: pods in Container Service for Kubernetes + * + * * KVSTORE_SHARDING: ApsaraDB for Redis of the cluster architecture + * + * * KVSTORE_SPLITRW: ApsaraDB for Redis of the read/write splitting architecture + * + * * KVSTORE_STANDARD: ApsaraDB for Redis of the standard architecture + * + * * MEMCACHE: ApsaraDB for Memcache + * + * * MNS: Message Service (MNS) + * + * * MONGODB: ApsaraDB for MongoDB of the replica set architecture + * + * * MONGODB_CLUSTER: ApsaraDB for MongoDB of the cluster architecture + * + * * MONGODB_SHARDING: ApsaraDB for MongoDB of the sharded cluster architecture + * + * * MQ_TOPIC: MNS topics + * + * * OCS: ApsaraDB for Memcache of earlier versions + * + * * OPENSEARCH: Open Search + * + * * OSS: Object Storage Service (OSS) + * + * * POLARDB: PolarDB + * + * * PETADATA: HybridDB for MySQL + * + * * SCDN: Secure Content Delivery Network (SCDN) + * + * * SHAREBANDWIDTHPACKAGES: EIP Bandwidth Plan + * + * * SLS: Log Service + * + * * VPN: VPN Gateway + * + * Valid values of N: 1 to 2000. + * + * This parameter is required. + * + * @example + * ECS + */ + category?: string; + /** + * @remarks + * The ID of the instance. Valid values of N: 1 to 2000. + * + * This parameter is required. + * + * @example + * i-a2d5q7pm12**** + */ + instanceId?: string; + /** + * @remarks + * The name of the instance. Valid values of N: 1 to 2000. + * + * This parameter is required. + * + * @example + * HostName + */ + instanceName?: string; + /** + * @remarks + * The ID of the region where the instance resides. Valid values of N: 1 to 2000. + * + * This parameter is required. + * + * @example + * cn-hangzhou + */ + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class ModifyMonitorGroupInstancesRequest extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * This parameter is required. + * + * @example + * 12345 + */ + groupId?: number; + /** + * @remarks + * This parameter is required. + */ + instances?: ModifyMonitorGroupInstancesRequestInstances[]; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesRequest.js new file mode 100644 index 0000000..70e29cc --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesRequest.js @@ -0,0 +1,90 @@ +"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.ModifyMonitorGroupInstancesRequest = exports.ModifyMonitorGroupInstancesRequestInstances = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class ModifyMonitorGroupInstancesRequestInstances extends $dara.Model { + static names() { + return { + category: 'Category', + instanceId: 'InstanceId', + instanceName: 'InstanceName', + regionId: 'RegionId', + }; + } + static types() { + return { + category: 'string', + instanceId: 'string', + instanceName: 'string', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyMonitorGroupInstancesRequestInstances = ModifyMonitorGroupInstancesRequestInstances; +class ModifyMonitorGroupInstancesRequest extends $dara.Model { + static names() { + return { + groupId: 'GroupId', + instances: 'Instances', + regionId: 'RegionId', + }; + } + static types() { + return { + groupId: 'number', + instances: { 'type': 'array', 'itemType': ModifyMonitorGroupInstancesRequestInstances }, + regionId: 'string', + }; + } + validate() { + if (Array.isArray(this.instances)) { + $dara.Model.validateArray(this.instances); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyMonitorGroupInstancesRequest = ModifyMonitorGroupInstancesRequest; +//# sourceMappingURL=ModifyMonitorGroupInstancesRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesRequest.js.map new file mode 100644 index 0000000..fe45b7a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModifyMonitorGroupInstancesRequ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AED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA3CD,gFA2CC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesResponse.d.ts new file mode 100644 index 0000000..18915f9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { ModifyMonitorGroupInstancesResponseBody } from "./ModifyMonitorGroupInstancesResponseBody"; +export declare class ModifyMonitorGroupInstancesResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: ModifyMonitorGroupInstancesResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesResponse.js new file mode 100644 index 0000000..aba6aaf --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesResponse.js @@ -0,0 +1,69 @@ +"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.ModifyMonitorGroupInstancesResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const ModifyMonitorGroupInstancesResponseBody_1 = require("./ModifyMonitorGroupInstancesResponseBody"); +class ModifyMonitorGroupInstancesResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: ModifyMonitorGroupInstancesResponseBody_1.ModifyMonitorGroupInstancesResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyMonitorGroupInstancesResponse = ModifyMonitorGroupInstancesResponse; +//# sourceMappingURL=ModifyMonitorGroupInstancesResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesResponse.js.map new file mode 100644 index 0000000..b81be2e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModifyMonitorGroupInstancesResponse.js","sourceRoot":"","sources":["../../src/models/ModifyMonitorGroupInstancesResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,uGAAoG;AAGpG,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IAIlE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,iFAAuC;SAC9C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,kFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesResponseBody.d.ts new file mode 100644 index 0000000..5df088d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesResponseBody.d.ts @@ -0,0 +1,47 @@ +import * as $dara from '@darabonba/typescript'; +export declare class ModifyMonitorGroupInstancesResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * FEC7EDB3-9B08-4AC0-A42A-329F5D14B95A + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call was successful. The value true indicates a success. The value false indicates a failure. + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesResponseBody.js new file mode 100644 index 0000000..f91921a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesResponseBody.js @@ -0,0 +1,64 @@ +"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.ModifyMonitorGroupInstancesResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class ModifyMonitorGroupInstancesResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyMonitorGroupInstancesResponseBody = ModifyMonitorGroupInstancesResponseBody; +//# sourceMappingURL=ModifyMonitorGroupInstancesResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesResponseBody.js.map new file mode 100644 index 0000000..2dff7e9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupInstancesResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModifyMonitorGroupInstancesResponseBody.js","sourceRoot":"","sources":["../../src/models/ModifyMonitorGroupInstancesResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,uCAAwC,SAAQ,KAAK,CAAC,KAAK;IAmCtE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5DD,0FA4DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupRequest.d.ts new file mode 100644 index 0000000..76501d1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupRequest.d.ts @@ -0,0 +1,40 @@ +import * as $dara from '@darabonba/typescript'; +export declare class ModifyMonitorGroupRequest extends $dara.Model { + /** + * @remarks + * The alert groups that can receive alert notifications for the application group. + * + * @example + * alarm_ecs_group + */ + contactGroups?: string; + /** + * @remarks + * The ID of the application group. + * + * This parameter is required. + * + * @example + * 123456 + */ + groupId?: string; + /** + * @remarks + * The name of the application group. + * + * @example + * ecs_group + */ + groupName?: string; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupRequest.js new file mode 100644 index 0000000..ee8006a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupRequest.js @@ -0,0 +1,64 @@ +"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.ModifyMonitorGroupRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class ModifyMonitorGroupRequest extends $dara.Model { + static names() { + return { + contactGroups: 'ContactGroups', + groupId: 'GroupId', + groupName: 'GroupName', + regionId: 'RegionId', + }; + } + static types() { + return { + contactGroups: 'string', + groupId: 'string', + groupName: 'string', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyMonitorGroupRequest = ModifyMonitorGroupRequest; +//# sourceMappingURL=ModifyMonitorGroupRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupRequest.js.map new file mode 100644 index 0000000..dd34a1d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModifyMonitorGroupRequest.js","sourceRoot":"","sources":["../../src/models/ModifyMonitorGroupRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IA4BxD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,aAAa,EAAE,eAAe;YAC9B,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,aAAa,EAAE,QAAQ;YACvB,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AArDD,8DAqDC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupResponse.d.ts new file mode 100644 index 0000000..a332e96 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { ModifyMonitorGroupResponseBody } from "./ModifyMonitorGroupResponseBody"; +export declare class ModifyMonitorGroupResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: ModifyMonitorGroupResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupResponse.js new file mode 100644 index 0000000..5ca12b6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupResponse.js @@ -0,0 +1,69 @@ +"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.ModifyMonitorGroupResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const ModifyMonitorGroupResponseBody_1 = require("./ModifyMonitorGroupResponseBody"); +class ModifyMonitorGroupResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: ModifyMonitorGroupResponseBody_1.ModifyMonitorGroupResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyMonitorGroupResponse = ModifyMonitorGroupResponse; +//# sourceMappingURL=ModifyMonitorGroupResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupResponse.js.map new file mode 100644 index 0000000..8c521af --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModifyMonitorGroupResponse.js","sourceRoot":"","sources":["../../src/models/ModifyMonitorGroupResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,qFAAkF;AAGlF,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IAIzD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,+DAA8B;SACrC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,gEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupResponseBody.d.ts new file mode 100644 index 0000000..7acb68e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class ModifyMonitorGroupResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * C85A2870-5DF4-4269-BC50-ECB5E4591A80 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call was successful. Valid values: + * + * * true: The call was successful. + * * false: The call failed. + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupResponseBody.js new file mode 100644 index 0000000..f574888 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupResponseBody.js @@ -0,0 +1,64 @@ +"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.ModifyMonitorGroupResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class ModifyMonitorGroupResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifyMonitorGroupResponseBody = ModifyMonitorGroupResponseBody; +//# sourceMappingURL=ModifyMonitorGroupResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupResponseBody.js.map new file mode 100644 index 0000000..cf36eec --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifyMonitorGroupResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModifyMonitorGroupResponseBody.js","sourceRoot":"","sources":["../../src/models/ModifyMonitorGroupResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAsC7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,wEA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorRequest.d.ts new file mode 100644 index 0000000..d796c86 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorRequest.d.ts @@ -0,0 +1,92 @@ +import * as $dara from '@darabonba/typescript'; +export declare class ModifySiteMonitorRequest extends $dara.Model { + /** + * @remarks + * The URL or IP address that is monitored by the task. + * + * @example + * http://www.aliyun.com + */ + address?: string; + /** + * @remarks + * The ID of the alert rule. You can call the DescribeMetricRuleList operation to query the IDs of existing alert rules in CloudMonitor. For more information, see [DescribeMetricRuleList](https://help.aliyun.com/document_detail/114941.html). + * + * @example + * 49f7c317-7645-4cc9-94fd-ea42e122**** + */ + alertIds?: string; + /** + * @remarks + * The custom detection period. You can only select a time period from Monday to Sunday for detection. + * + * @example + * {"start_hour":0,"end_hour":24, "days":[0], "time_zone":"Local"} + */ + customSchedule?: string; + /** + * @remarks + * The interval at which detection requests are sent. Valid values: 1, 5, and 15. Unit: minutes. Default value: 1. + * + * @example + * 1 + */ + interval?: string; + /** + * @remarks + * The unit of the metric. + * + * Unit: milliseconds. + * + * @example + * ms + */ + intervalUnit?: string; + /** + * @remarks + * The information of the detection points. The value is a JSON array. Example: `[{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}]`. The values of the `city` field indicate Beijing, Hangzhou, and Qingdao. + * + * > You can call the DescribeSiteMonitorISPCityList operation to query the detection points. For more information, see [DescribeSiteMonitorISPCityList](https://help.aliyun.com/document_detail/115045.html). If you leave this parameter empty, the system randomly selects three detection points. + * + * @example + * [{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}] + */ + ispCities?: string; + /** + * @remarks + * The extended options of the protocol that is used by the site monitoring task. The options vary based on the protocol. + * + * @example + * {"time_out":5000} + */ + optionsJson?: string; + regionId?: string; + /** + * @remarks + * The ID of the site monitoring task. + * + * This parameter is required. + * + * @example + * 2c8dbdf9-a3ab-46a1-85a4-f094965e**** + */ + taskId?: string; + /** + * @remarks + * The name of the site monitoring task. The name must be 4 to 100 characters in length, and can contain letters, digits, and underscores (_). + * + * @example + * HanZhou_ECS2 + */ + taskName?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorRequest.js new file mode 100644 index 0000000..dfa9513 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorRequest.js @@ -0,0 +1,76 @@ +"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.ModifySiteMonitorRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class ModifySiteMonitorRequest extends $dara.Model { + static names() { + return { + address: 'Address', + alertIds: 'AlertIds', + customSchedule: 'CustomSchedule', + interval: 'Interval', + intervalUnit: 'IntervalUnit', + ispCities: 'IspCities', + optionsJson: 'OptionsJson', + regionId: 'RegionId', + taskId: 'TaskId', + taskName: 'TaskName', + }; + } + static types() { + return { + address: 'string', + alertIds: 'string', + customSchedule: 'string', + interval: 'string', + intervalUnit: 'string', + ispCities: 'string', + optionsJson: 'string', + regionId: 'string', + taskId: 'string', + taskName: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifySiteMonitorRequest = ModifySiteMonitorRequest; +//# sourceMappingURL=ModifySiteMonitorRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorRequest.js.map new file mode 100644 index 0000000..fca2012 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModifySiteMonitorRequest.js","sourceRoot":"","sources":["../../src/models/ModifySiteMonitorRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wBAAyB,SAAQ,KAAK,CAAC,KAAK;IAgFvD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,UAAU;YACpB,cAAc,EAAE,gBAAgB;YAChC,QAAQ,EAAE,UAAU;YACpB,YAAY,EAAE,cAAc;YAC5B,SAAS,EAAE,WAAW;YACtB,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,UAAU;YACpB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,QAAQ,EAAE,QAAQ;YAClB,cAAc,EAAE,QAAQ;YACxB,QAAQ,EAAE,QAAQ;YAClB,YAAY,EAAE,QAAQ;YACtB,SAAS,EAAE,QAAQ;YACnB,WAAW,EAAE,QAAQ;YACrB,QAAQ,EAAE,QAAQ;YAClB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AArHD,4DAqHC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorResponse.d.ts new file mode 100644 index 0000000..b77ef20 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { ModifySiteMonitorResponseBody } from "./ModifySiteMonitorResponseBody"; +export declare class ModifySiteMonitorResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: ModifySiteMonitorResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorResponse.js new file mode 100644 index 0000000..1d7b2fd --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorResponse.js @@ -0,0 +1,69 @@ +"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.ModifySiteMonitorResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const ModifySiteMonitorResponseBody_1 = require("./ModifySiteMonitorResponseBody"); +class ModifySiteMonitorResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: ModifySiteMonitorResponseBody_1.ModifySiteMonitorResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifySiteMonitorResponse = ModifySiteMonitorResponse; +//# sourceMappingURL=ModifySiteMonitorResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorResponse.js.map new file mode 100644 index 0000000..e0c419c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModifySiteMonitorResponse.js","sourceRoot":"","sources":["../../src/models/ModifySiteMonitorResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,mFAAgF;AAGhF,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IAIxD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,6DAA6B;SACpC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,8DAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorResponseBody.d.ts new file mode 100644 index 0000000..94fb2c3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorResponseBody.d.ts @@ -0,0 +1,75 @@ +import * as $dara from '@darabonba/typescript'; +export declare class ModifySiteMonitorResponseBodyData extends $dara.Model { + /** + * @remarks + * The number of site monitoring tasks. + * + * @example + * 1 + */ + count?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class ModifySiteMonitorResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The result of modifying the task. + */ + data?: ModifySiteMonitorResponseBodyData; + /** + * @remarks + * The returned message. + * + * @example + * successful + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 68192f5d-0d45-4b98-9724-892813f86c71 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorResponseBody.js new file mode 100644 index 0000000..97629e2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorResponseBody.js @@ -0,0 +1,88 @@ +"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.ModifySiteMonitorResponseBody = exports.ModifySiteMonitorResponseBodyData = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class ModifySiteMonitorResponseBodyData extends $dara.Model { + static names() { + return { + count: 'count', + }; + } + static types() { + return { + count: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifySiteMonitorResponseBodyData = ModifySiteMonitorResponseBodyData; +class ModifySiteMonitorResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + data: 'Data', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + data: ModifySiteMonitorResponseBodyData, + message: 'string', + requestId: 'string', + success: 'string', + }; + } + validate() { + if (this.data && typeof this.data.validate === 'function') { + this.data.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.ModifySiteMonitorResponseBody = ModifySiteMonitorResponseBody; +//# sourceMappingURL=ModifySiteMonitorResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorResponseBody.js.map new file mode 100644 index 0000000..6912f8c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/ModifySiteMonitorResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModifySiteMonitorResponseBody.js","sourceRoot":"","sources":["../../src/models/ModifySiteMonitorResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,iCAAkC,SAAQ,KAAK,CAAC,KAAK;IAShE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5BD,8EA4BC;AAED,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IA2C5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,iCAAiC;YACvC,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,sEAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/NotificationStrategy.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/NotificationStrategy.d.ts new file mode 100644 index 0000000..8b025b2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/NotificationStrategy.d.ts @@ -0,0 +1,223 @@ +import * as $dara from '@darabonba/typescript'; +export declare class NotificationStrategyEscalationSettingCustomChannels extends $dara.Model { + /** + * @remarks + * This parameter is required. + */ + channelType?: string; + severities?: string[]; + templateUuid?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class NotificationStrategyEscalationSetting extends $dara.Model { + autoResolveMin?: number; + customChannels?: NotificationStrategyEscalationSettingCustomChannels[]; + escalationLevel?: string; + escalationUuid?: string; + range?: string; + retriggerMin?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class NotificationStrategyFilterSettingBlackList extends $dara.Model { + /** + * @remarks + * This parameter is required. + */ + field?: string; + /** + * @remarks + * This parameter is required. + */ + op?: string; + /** + * @remarks + * This parameter is required. + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class NotificationStrategyFilterSettingWhiteList extends $dara.Model { + /** + * @remarks + * This parameter is required. + */ + field?: string; + /** + * @remarks + * This parameter is required. + */ + op?: string; + /** + * @remarks + * This parameter is required. + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class NotificationStrategyFilterSetting extends $dara.Model { + blackList?: NotificationStrategyFilterSettingBlackList[][]; + whiteList?: NotificationStrategyFilterSettingWhiteList[][]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class NotificationStrategyGroupingSettingGroupingItems extends $dara.Model { + keys?: string[]; + type?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class NotificationStrategyGroupingSetting extends $dara.Model { + enableRawAlertDispatching?: boolean; + groupingItems?: NotificationStrategyGroupingSettingGroupingItems[]; + periodMin?: number; + silenceSec?: number; + times?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class NotificationStrategyPushingSetting extends $dara.Model { + pushingDataFormat?: string; + range?: string; + targetUuids?: string[]; + templateUuid?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class NotificationStrategyRouteSettingRoutesConditions extends $dara.Model { + field?: string; + op?: string; + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class NotificationStrategyRouteSettingRoutes extends $dara.Model { + conditions?: NotificationStrategyRouteSettingRoutesConditions[]; + escalationUuid?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class NotificationStrategyRouteSetting extends $dara.Model { + routes?: NotificationStrategyRouteSettingRoutes[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class NotificationStrategy extends $dara.Model { + createTime?: string; + description?: string; + escalationSetting?: NotificationStrategyEscalationSetting; + filterSetting?: NotificationStrategyFilterSetting; + groupingSetting?: NotificationStrategyGroupingSetting; + /** + * @remarks + * This parameter is required. + */ + name?: string; + product?: string; + pushingSetting?: NotificationStrategyPushingSetting; + routeSetting?: NotificationStrategyRouteSetting; + updateTime?: string; + userId?: string; + uuid?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/NotificationStrategy.js b/backend/node_modules/@alicloud/cms20190101/dist/models/NotificationStrategy.js new file mode 100644 index 0000000..46149f8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/NotificationStrategy.js @@ -0,0 +1,377 @@ +"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 \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/NotificationStrategy.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/NotificationStrategy.js.map new file mode 100644 index 0000000..9df983a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/NotificationStrategy.js.map @@ -0,0 +1 @@ +{"version":3,"file":"NotificationStrategy.js","sourceRoot":"","sources":["../../src/models/NotificationStrategy.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;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,CAAC;QACxC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,oDAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/NotificationTemplate.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/NotificationTemplate.d.ts new file mode 100644 index 0000000..4774310 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/NotificationTemplate.d.ts @@ -0,0 +1,63 @@ +import * as $dara from '@darabonba/typescript'; +export declare class NotificationTemplate extends $dara.Model { + createTime?: string; + description?: string; + /** + * @example + * Alarm $.alertName + */ + enContent?: string; + /** + * @example + * Alarm $.alertName + */ + enItemContent?: string; + /** + * @example + * Alarm $.alertName + */ + enTitle?: string; + /** + * @remarks + * This parameter is required. + */ + name?: string; + /** + * @example + * DATA, SMS, ONCALL, MAIL, DING, WEIXIN, FEISHU, SLACK + */ + type?: string; + updateTime?: string; + userId?: string; + uuid?: string; + /** + * @example + * TEXT, MARKDOWN,CARD + */ + wraperType?: string; + /** + * @example + * 报警 $.alertName + */ + zhContent?: string; + /** + * @example + * 报警 $.alertName + */ + zhItemContent?: string; + /** + * @example + * 报警通知 $.alertName + */ + zhTitle?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/NotificationTemplate.js b/backend/node_modules/@alicloud/cms20190101/dist/models/NotificationTemplate.js new file mode 100644 index 0000000..5d5182c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/NotificationTemplate.js @@ -0,0 +1,84 @@ +"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.NotificationTemplate = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class NotificationTemplate extends $dara.Model { + static names() { + return { + createTime: 'CreateTime', + description: 'Description', + enContent: 'EnContent', + enItemContent: 'EnItemContent', + enTitle: 'EnTitle', + name: 'Name', + type: 'Type', + updateTime: 'UpdateTime', + userId: 'UserId', + uuid: 'Uuid', + wraperType: 'WraperType', + zhContent: 'ZhContent', + zhItemContent: 'ZhItemContent', + zhTitle: 'ZhTitle', + }; + } + static types() { + return { + createTime: 'string', + description: 'string', + enContent: 'string', + enItemContent: 'string', + enTitle: 'string', + name: 'string', + type: 'string', + updateTime: 'string', + userId: 'string', + uuid: 'string', + wraperType: 'string', + zhContent: 'string', + zhItemContent: 'string', + zhTitle: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.NotificationTemplate = NotificationTemplate; +//# sourceMappingURL=NotificationTemplate.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/NotificationTemplate.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/NotificationTemplate.js.map new file mode 100644 index 0000000..d11cb8d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/NotificationTemplate.js.map @@ -0,0 +1 @@ +{"version":3,"file":"NotificationTemplate.js","sourceRoot":"","sources":["../../src/models/NotificationTemplate.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oBAAqB,SAAQ,KAAK,CAAC,KAAK;IAmDnD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,WAAW,EAAE,aAAa;YAC1B,SAAS,EAAE,WAAW;YACtB,aAAa,EAAE,eAAe;YAC9B,OAAO,EAAE,SAAS;YAClB,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,UAAU,EAAE,YAAY;YACxB,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,MAAM;YACZ,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,aAAa,EAAE,eAAe;YAC9B,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,WAAW,EAAE,QAAQ;YACrB,SAAS,EAAE,QAAQ;YACnB,aAAa,EAAE,QAAQ;YACvB,OAAO,EAAE,QAAQ;YACjB,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,QAAQ;YACpB,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;YACnB,aAAa,EAAE,QAAQ;YACvB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAhGD,oDAgGC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PushingTarget.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PushingTarget.d.ts new file mode 100644 index 0000000..171e6a5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PushingTarget.d.ts @@ -0,0 +1,61 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PushingTargetHttpRequestTargetHeaders extends $dara.Model { + key?: string; + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PushingTargetHttpRequestTarget extends $dara.Model { + contentType?: string; + encryptSignatureKey?: string; + encryptString?: string; + encryptTimestampKey?: string; + headers?: PushingTargetHttpRequestTargetHeaders[]; + method?: string; + url?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PushingTarget extends $dara.Model { + arn?: string; + createTime?: string; + description?: string; + httpRequestTarget?: PushingTargetHttpRequestTarget; + /** + * @remarks + * This parameter is required. + */ + name?: string; + range?: string; + templateUuid?: string; + type?: string; + updateTime?: string; + userId?: string; + uuid?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PushingTarget.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PushingTarget.js new file mode 100644 index 0000000..9a1dce8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PushingTarget.js @@ -0,0 +1,136 @@ +"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.PushingTarget = exports.PushingTargetHttpRequestTarget = exports.PushingTargetHttpRequestTargetHeaders = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PushingTargetHttpRequestTargetHeaders 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.PushingTargetHttpRequestTargetHeaders = PushingTargetHttpRequestTargetHeaders; +class PushingTargetHttpRequestTarget extends $dara.Model { + static names() { + return { + contentType: 'ContentType', + encryptSignatureKey: 'EncryptSignatureKey', + encryptString: 'EncryptString', + encryptTimestampKey: 'EncryptTimestampKey', + headers: 'Headers', + method: 'Method', + url: 'Url', + }; + } + static types() { + return { + contentType: 'string', + encryptSignatureKey: 'string', + encryptString: 'string', + encryptTimestampKey: 'string', + headers: { 'type': 'array', 'itemType': PushingTargetHttpRequestTargetHeaders }, + method: 'string', + url: 'string', + }; + } + validate() { + if (Array.isArray(this.headers)) { + $dara.Model.validateArray(this.headers); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PushingTargetHttpRequestTarget = PushingTargetHttpRequestTarget; +class PushingTarget extends $dara.Model { + static names() { + return { + arn: 'Arn', + createTime: 'CreateTime', + description: 'Description', + httpRequestTarget: 'HttpRequestTarget', + name: 'Name', + range: 'Range', + templateUuid: 'TemplateUuid', + type: 'Type', + updateTime: 'UpdateTime', + userId: 'UserId', + uuid: 'Uuid', + }; + } + static types() { + return { + arn: 'string', + createTime: 'string', + description: 'string', + httpRequestTarget: PushingTargetHttpRequestTarget, + name: 'string', + range: 'string', + templateUuid: 'string', + type: 'string', + updateTime: 'string', + userId: 'string', + uuid: 'string', + }; + } + validate() { + if (this.httpRequestTarget && typeof this.httpRequestTarget.validate === 'function') { + this.httpRequestTarget.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PushingTarget = PushingTarget; +//# sourceMappingURL=PushingTarget.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PushingTarget.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PushingTarget.js.map new file mode 100644 index 0000000..ca53da2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PushingTarget.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PushingTarget.js","sourceRoot":"","sources":["../../src/models/PushingTarget.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qCAAsC,SAAQ,KAAK,CAAC,KAAK;IAGpE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,GAAG,EAAE,KAAK;YACV,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,GAAG,EAAE,QAAQ;YACb,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB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AAI,EAAE,MAAM;YACZ,UAAU,EAAE,YAAY;YACxB,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,GAAG,EAAE,QAAQ;YACb,UAAU,EAAE,QAAQ;YACpB,WAAW,EAAE,QAAQ;YACrB,iBAAiB,EAAE,8BAA8B;YACjD,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,YAAY,EAAE,QAAQ;YACtB,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,QAAQ;YACpB,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,QAAQ;SACf,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,iBAAiB,IAAI,OAAQ,IAAI,CAAC,iBAAyB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YAC3F,IAAI,CAAC,iBAAyB,CAAC,QAAQ,EAAE,CAAC;QAC7C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA1DD,sCA0DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupRequest.d.ts new file mode 100644 index 0000000..3219295 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupRequest.d.ts @@ -0,0 +1,54 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutContactGroupRequest extends $dara.Model { + /** + * @remarks + * The name of the alert contact group. + * + * For information about how to obtain the name of an alert contact group, see [DescribeContactGroupList](https://help.aliyun.com/document_detail/114922.html). + * + * This parameter is required. + * + * @example + * ECS_Group + */ + contactGroupName?: string; + /** + * @remarks + * The name of the alert contact. Valid values of N: 1 to 100. + * + * @example + * Alice + */ + contactNames?: string[]; + /** + * @remarks + * The description of the alert contact group. + * + * @example + * ECS_Alert_Group + */ + describe?: string; + /** + * @remarks + * Specifies whether to enable the weekly report subscription feature. Valid values: + * + * * true: The weekly report subscription feature is enabled. + * * false: The weekly report subscription feature is disabled. + * + * > You can enable the weekly report subscription feature only for an Alibaba Cloud account that has at least five Elastic Compute Service (ECS) instances. + * + * @example + * true + */ + enableSubscribed?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupRequest.js new file mode 100644 index 0000000..bbbd073 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupRequest.js @@ -0,0 +1,67 @@ +"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.PutContactGroupRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutContactGroupRequest extends $dara.Model { + static names() { + return { + contactGroupName: 'ContactGroupName', + contactNames: 'ContactNames', + describe: 'Describe', + enableSubscribed: 'EnableSubscribed', + }; + } + static types() { + return { + contactGroupName: 'string', + contactNames: { 'type': 'array', 'itemType': 'string' }, + describe: 'string', + enableSubscribed: 'boolean', + }; + } + validate() { + if (Array.isArray(this.contactNames)) { + $dara.Model.validateArray(this.contactNames); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutContactGroupRequest = PutContactGroupRequest; +//# sourceMappingURL=PutContactGroupRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupRequest.js.map new file mode 100644 index 0000000..da88e60 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutContactGroupRequest.js","sourceRoot":"","sources":["../../src/models/PutContactGroupRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,sBAAuB,SAAQ,KAAK,CAAC,KAAK;IA0CrD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,gBAAgB,EAAE,kBAAkB;YACpC,YAAY,EAAE,cAAc;YAC5B,QAAQ,EAAE,UAAU;YACpB,gBAAgB,EAAE,kBAAkB;SACrC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,gBAAgB,EAAE,QAAQ;YAC1B,YAAY,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YACvD,QAAQ,EAAE,QAAQ;YAClB,gBAAgB,EAAE,SAAS;SAC5B,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;YACpC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC/C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtED,wDAsEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupResponse.d.ts new file mode 100644 index 0000000..2d77ec9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { PutContactGroupResponseBody } from "./PutContactGroupResponseBody"; +export declare class PutContactGroupResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: PutContactGroupResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupResponse.js new file mode 100644 index 0000000..60e672b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupResponse.js @@ -0,0 +1,69 @@ +"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.PutContactGroupResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const PutContactGroupResponseBody_1 = require("./PutContactGroupResponseBody"); +class PutContactGroupResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutContactGroupResponseBody_1.PutContactGroupResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutContactGroupResponse = PutContactGroupResponse; +//# sourceMappingURL=PutContactGroupResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupResponse.js.map new file mode 100644 index 0000000..ba997df --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutContactGroupResponse.js","sourceRoot":"","sources":["../../src/models/PutContactGroupResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,+EAA4E;AAG5E,MAAa,uBAAwB,SAAQ,KAAK,CAAC,KAAK;IAItD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,yDAA2B;SAClC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,0DAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupResponseBody.d.ts new file mode 100644 index 0000000..f31a559 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutContactGroupResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * Illegal parameters. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * B4E30DB6-F069-5D0B-A589-2A89F7D62A57 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupResponseBody.js new file mode 100644 index 0000000..13e1234 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupResponseBody.js @@ -0,0 +1,64 @@ +"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.PutContactGroupResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutContactGroupResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutContactGroupResponseBody = PutContactGroupResponseBody; +//# sourceMappingURL=PutContactGroupResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupResponseBody.js.map new file mode 100644 index 0000000..d869666 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactGroupResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutContactGroupResponseBody.js","sourceRoot":"","sources":["../../src/models/PutContactGroupResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,2BAA4B,SAAQ,KAAK,CAAC,KAAK;IAsC1D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,kEA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactRequest.d.ts new file mode 100644 index 0000000..563b5a0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactRequest.d.ts @@ -0,0 +1,99 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutContactRequestChannels extends $dara.Model { + /** + * @remarks + * The TradeManager ID of the alert contact. + * + * Specify at least one of the following alert notification methods: email address and DingTalk chatbot. + * + * @example + * Jim + */ + aliIM?: string; + /** + * @remarks + * The webhook URL of the DingTalk chatbot. + * + * Specify at least one of the following alert notification methods: email address and DingTalk chatbot. + * + * @example + * https://oapi.dingtalk.com/robot/send?access_token=7d49515e8ebf21106a80a9cc4bb3d247771305d52fb15d6201234565**** + */ + dingWebHook?: string; + /** + * @remarks + * The email address. After you add or modify an email address, the recipient receives an email that contains an activation link. The system adds the recipient to the list of alert contacts only after the recipient activates the email address. + * + * Specify at least one of the following alert notification methods: email address and DingTalk chatbot. + * + * @example + * test@aliyun.com + */ + mail?: string; + /** + * @remarks + * The phone number of the alert contact. After you add or modify a phone number, the recipient receives a text message that contains an activation link. The system adds the recipient to the list of alert contacts only after the recipient activates the phone number. + * + * Specify at least one of the following alert notification methods: email address and DingTalk chatbot. + * + * @example + * 1333333**** + */ + SMS?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutContactRequest extends $dara.Model { + channels?: PutContactRequestChannels; + /** + * @remarks + * The name of the alert contact. + * + * This parameter is required. + * + * @example + * Alice + */ + contactName?: string; + /** + * @remarks + * The description of the alert contact. + * + * This parameter is required. + * + * @example + * ECS_Instance + */ + describe?: string; + /** + * @remarks + * The language in which the alert information is displayed. Valid values: + * + * * zh-cn: simplified Chinese + * * en: English + * + * > If you do not specify this parameter, CloudMonitor identifies the language of the alert information based on the region of your Alibaba Cloud account. + * + * @example + * zh-cn + */ + lang?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactRequest.js new file mode 100644 index 0000000..9721d93 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactRequest.js @@ -0,0 +1,92 @@ +"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.PutContactRequest = exports.PutContactRequestChannels = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutContactRequestChannels extends $dara.Model { + static names() { + return { + aliIM: 'AliIM', + dingWebHook: 'DingWebHook', + mail: 'Mail', + SMS: 'SMS', + }; + } + static types() { + return { + aliIM: 'string', + dingWebHook: 'string', + mail: 'string', + SMS: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutContactRequestChannels = PutContactRequestChannels; +class PutContactRequest extends $dara.Model { + static names() { + return { + channels: 'Channels', + contactName: 'ContactName', + describe: 'Describe', + lang: 'Lang', + }; + } + static types() { + return { + channels: PutContactRequestChannels, + contactName: 'string', + describe: 'string', + lang: 'string', + }; + } + validate() { + if (this.channels && typeof this.channels.validate === 'function') { + this.channels.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutContactRequest = PutContactRequest; +//# sourceMappingURL=PutContactRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactRequest.js.map new file mode 100644 index 0000000..96dd394 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutContactRequest.js","sourceRoot":"","sources":["../../src/models/PutContactRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IAyCxD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,aAAa;YAC1B,IAAI,EAAE,MAAM;YACZ,GAAG,EAAE,KAAK;SACX,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,QAAQ;YACrB,IAAI,EAAE,QAAQ;YACd,GAAG,EAAE,QAAQ;SACd,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAlED,8DAkEC;AAED,MAAa,iBAAkB,SAAQ,KAAK,CAAC,KAAK;IAmChD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,UAAU;YACpB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,yBAAyB;YACnC,WAAW,EAAE,QAAQ;YACrB,QAAQ,EAAE,QAAQ;YAClB,IAAI,EAAE,QAAQ;SACf,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,QAAQ,IAAI,OAAQ,IAAI,CAAC,QAAgB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACzE,IAAI,CAAC,QAAgB,CAAC,QAAQ,EAAE,CAAC;QACpC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,8CA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactResponse.d.ts new file mode 100644 index 0000000..c91e77f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { PutContactResponseBody } from "./PutContactResponseBody"; +export declare class PutContactResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: PutContactResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactResponse.js new file mode 100644 index 0000000..f496b01 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactResponse.js @@ -0,0 +1,69 @@ +"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.PutContactResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const PutContactResponseBody_1 = require("./PutContactResponseBody"); +class PutContactResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutContactResponseBody_1.PutContactResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutContactResponse = PutContactResponse; +//# sourceMappingURL=PutContactResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactResponse.js.map new file mode 100644 index 0000000..c73ed64 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutContactResponse.js","sourceRoot":"","sources":["../../src/models/PutContactResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,qEAAkE;AAGlE,MAAa,kBAAmB,SAAQ,KAAK,CAAC,KAAK;IAIjD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,+CAAsB;SAC7B,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,gDAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactResponseBody.d.ts new file mode 100644 index 0000000..9bdcc11 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutContactResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 181C406E-9DE4-484C-9C61-37AE9A1A12EE + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactResponseBody.js new file mode 100644 index 0000000..5a93a52 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactResponseBody.js @@ -0,0 +1,64 @@ +"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.PutContactResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutContactResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutContactResponseBody = PutContactResponseBody; +//# sourceMappingURL=PutContactResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactResponseBody.js.map new file mode 100644 index 0000000..a61990d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutContactResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutContactResponseBody.js","sourceRoot":"","sources":["../../src/models/PutContactResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,sBAAuB,SAAQ,KAAK,CAAC,KAAK;IAsCrD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,wDA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRequest.d.ts new file mode 100644 index 0000000..da5729f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRequest.d.ts @@ -0,0 +1,77 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutCustomEventRequestEventInfo extends $dara.Model { + /** + * @remarks + * The event content. Valid values of N: 1 to 50. + * + * This parameter is required. + * + * @example + * IOException + */ + content?: string; + /** + * @remarks + * The event name. Valid values of N: 1 to 50. + * + * This parameter is required. + * + * @example + * myEvent + */ + eventName?: string; + /** + * @remarks + * The ID of the application group. Valid values of N: 1 to 50. + * + * Default value: 0. This value indicates that the event to be reported does not belong to any application group. + * + * @example + * 123456 + */ + groupId?: string; + /** + * @remarks + * The time when the event occurred. + * + * Format: `yyyyMMddTHHmmss.SSSZ`. + * + * Valid values of N: 1 to 50. + * + * > You can also specify a UNIX timestamp. Example: 1552199984000. Unit: milliseconds. + * + * @example + * 20171013T170923.456+0800 + */ + time?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutCustomEventRequest extends $dara.Model { + /** + * @remarks + * The event details. + * + * This parameter is required. + */ + eventInfo?: PutCustomEventRequestEventInfo[]; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRequest.js new file mode 100644 index 0000000..e5e7d78 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRequest.js @@ -0,0 +1,88 @@ +"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.PutCustomEventRequest = exports.PutCustomEventRequestEventInfo = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutCustomEventRequestEventInfo extends $dara.Model { + static names() { + return { + content: 'Content', + eventName: 'EventName', + groupId: 'GroupId', + time: 'Time', + }; + } + static types() { + return { + content: 'string', + eventName: 'string', + groupId: 'string', + time: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutCustomEventRequestEventInfo = PutCustomEventRequestEventInfo; +class PutCustomEventRequest extends $dara.Model { + static names() { + return { + eventInfo: 'EventInfo', + regionId: 'RegionId', + }; + } + static types() { + return { + eventInfo: { 'type': 'array', 'itemType': PutCustomEventRequestEventInfo }, + regionId: 'string', + }; + } + validate() { + if (Array.isArray(this.eventInfo)) { + $dara.Model.validateArray(this.eventInfo); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutCustomEventRequest = PutCustomEventRequest; +//# sourceMappingURL=PutCustomEventRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRequest.js.map new file mode 100644 index 0000000..1c45aa5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutCustomEventRequest.js","sourceRoot":"","sources":["../../src/models/PutCustomEventRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IA6C7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;YACjB,IAAI,EAAE,QAAQ;SACf,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtED,wEAsEC;AAED,MAAa,qBAAsB,SAAQ,KAAK,CAAC,KAAK;IASpD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;YACtB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,8BAA8B,EAAE;YAC1E,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;YACjC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC5C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,sDAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventResponse.d.ts new file mode 100644 index 0000000..006f881 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { PutCustomEventResponseBody } from "./PutCustomEventResponseBody"; +export declare class PutCustomEventResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: PutCustomEventResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventResponse.js new file mode 100644 index 0000000..56a6e65 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventResponse.js @@ -0,0 +1,69 @@ +"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.PutCustomEventResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const PutCustomEventResponseBody_1 = require("./PutCustomEventResponseBody"); +class PutCustomEventResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutCustomEventResponseBody_1.PutCustomEventResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutCustomEventResponse = PutCustomEventResponse; +//# sourceMappingURL=PutCustomEventResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventResponse.js.map new file mode 100644 index 0000000..9691175 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutCustomEventResponse.js","sourceRoot":"","sources":["../../src/models/PutCustomEventResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,6EAA0E;AAG1E,MAAa,sBAAuB,SAAQ,KAAK,CAAC,KAAK;IAIrD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,uDAA0B;SACjC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,wDAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventResponseBody.d.ts new file mode 100644 index 0000000..75e3f9f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventResponseBody.d.ts @@ -0,0 +1,39 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutCustomEventResponseBody extends $dara.Model { + /** + * @remarks + * The responses code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 131DD9C8-9A32-4428-AD2E-4E3013B6E3A7 + */ + requestId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventResponseBody.js new file mode 100644 index 0000000..af58ebe --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventResponseBody.js @@ -0,0 +1,62 @@ +"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.PutCustomEventResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutCustomEventResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutCustomEventResponseBody = PutCustomEventResponseBody; +//# sourceMappingURL=PutCustomEventResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventResponseBody.js.map new file mode 100644 index 0000000..a19fbe4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutCustomEventResponseBody.js","sourceRoot":"","sources":["../../src/models/PutCustomEventResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IA2BzD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAlDD,gEAkDC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleRequest.d.ts new file mode 100644 index 0000000..dffca89 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleRequest.d.ts @@ -0,0 +1,120 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutCustomEventRuleRequest extends $dara.Model { + /** + * @remarks + * The alert contact group that receives alert notifications. Separate multiple contact groups with commas (,). + * + * This parameter is required. + * + * @example + * ECS_Group + */ + contactGroups?: string; + /** + * @remarks + * The time period during which the alert rule is effective. Valid values: 00:00 to 23:59. + * + * @example + * 00:00-23:59 + */ + effectiveInterval?: string; + /** + * @remarks + * The subject of the alert notification email. + */ + emailSubject?: string; + /** + * @remarks + * The name of the custom event. For more information about how to obtain the event name, see [DescribeCustomEventAttribute](https://help.aliyun.com/document_detail/115262.html). + * + * This parameter is required. + * + * @example + * HostDown + */ + eventName?: string; + /** + * @remarks + * The ID of the application group. For more information about how to obtain the group ID, see [DescribeCustomEventAttribute](https://help.aliyun.com/document_detail/115262.html). + * + * > The value 0 indicates that the reported custom event does not belong to any application Group. + * + * This parameter is required. + * + * @example + * 7378**** + */ + groupId?: string; + /** + * @remarks + * The level of the alert. Valid values: + * + * * CRITICAL: critical issue + * * WARN: warning + * * INFO: information + * + * This parameter is required. + * + * @example + * CRITICAL + */ + level?: string; + /** + * @remarks + * The cycle that is used to aggregate monitoring data of the custom event. Unit: seconds. Set the value to an integral multiple of 60. Default value: 300. + * + * @example + * 60 + */ + period?: string; + /** + * @remarks + * The ID of the alert rule. + * + * > You can specify an existing ID to modify the corresponding alert rule or specify a new ID to create an alert rule. + * + * This parameter is required. + * + * @example + * CustomRuleId1 + */ + ruleId?: string; + /** + * @remarks + * The name of the alert rule. + * + * This parameter is required. + * + * @example + * CustomeRule + */ + ruleName?: string; + /** + * @remarks + * The alert threshold. + * + * This parameter is required. + * + * @example + * 99 + */ + threshold?: string; + /** + * @remarks + * The callback URL to which a POST request is sent when an alert is triggered based on the alert rule. + * + * @example + * https://www.aliyun.com + */ + webhook?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleRequest.js new file mode 100644 index 0000000..6a43e05 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleRequest.js @@ -0,0 +1,78 @@ +"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.PutCustomEventRuleRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutCustomEventRuleRequest extends $dara.Model { + static names() { + return { + contactGroups: 'ContactGroups', + effectiveInterval: 'EffectiveInterval', + emailSubject: 'EmailSubject', + eventName: 'EventName', + groupId: 'GroupId', + level: 'Level', + period: 'Period', + ruleId: 'RuleId', + ruleName: 'RuleName', + threshold: 'Threshold', + webhook: 'Webhook', + }; + } + static types() { + return { + contactGroups: 'string', + effectiveInterval: 'string', + emailSubject: 'string', + eventName: 'string', + groupId: 'string', + level: 'string', + period: 'string', + ruleId: 'string', + ruleName: 'string', + threshold: 'string', + webhook: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutCustomEventRuleRequest = PutCustomEventRuleRequest; +//# sourceMappingURL=PutCustomEventRuleRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleRequest.js.map new file mode 100644 index 0000000..52099a2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutCustomEventRuleRequest.js","sourceRoot":"","sources":["../../src/models/PutCustomEventRuleRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IA4GxD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,aAAa,EAAE,eAAe;YAC9B,iBAAiB,EAAE,mBAAmB;YACtC,YAAY,EAAE,cAAc;YAC5B,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,OAAO;YACd,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,aAAa,EAAE,QAAQ;YACvB,iBAAiB,EAAE,QAAQ;YAC3B,YAAY,EAAE,QAAQ;YACtB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;YACjB,KAAK,EAAE,QAAQ;YACf,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnJD,8DAmJC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleResponse.d.ts new file mode 100644 index 0000000..9e0a428 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { PutCustomEventRuleResponseBody } from "./PutCustomEventRuleResponseBody"; +export declare class PutCustomEventRuleResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: PutCustomEventRuleResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleResponse.js new file mode 100644 index 0000000..1c88523 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleResponse.js @@ -0,0 +1,69 @@ +"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.PutCustomEventRuleResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const PutCustomEventRuleResponseBody_1 = require("./PutCustomEventRuleResponseBody"); +class PutCustomEventRuleResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutCustomEventRuleResponseBody_1.PutCustomEventRuleResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutCustomEventRuleResponse = PutCustomEventRuleResponse; +//# sourceMappingURL=PutCustomEventRuleResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleResponse.js.map new file mode 100644 index 0000000..567d2bf --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutCustomEventRuleResponse.js","sourceRoot":"","sources":["../../src/models/PutCustomEventRuleResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,qFAAkF;AAGlF,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IAIzD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,+DAA8B;SACrC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,gEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleResponseBody.d.ts new file mode 100644 index 0000000..e5a1384 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutCustomEventRuleResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The value 200 indicates that the call was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The request has failed due to a temporary failure of the server. + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * AD5DCD82-BD1C-405F-BAED-32302DE9F498 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call was successful. Valid values: + * + * * true: The call was successful. + * * false: The call failed. + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleResponseBody.js new file mode 100644 index 0000000..d6921a2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleResponseBody.js @@ -0,0 +1,64 @@ +"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.PutCustomEventRuleResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutCustomEventRuleResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutCustomEventRuleResponseBody = PutCustomEventRuleResponseBody; +//# sourceMappingURL=PutCustomEventRuleResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleResponseBody.js.map new file mode 100644 index 0000000..877919e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomEventRuleResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutCustomEventRuleResponseBody.js","sourceRoot":"","sources":["../../src/models/PutCustomEventRuleResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAsC7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,wEA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRequest.d.ts new file mode 100644 index 0000000..5e33565 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRequest.d.ts @@ -0,0 +1,121 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutCustomMetricRequestMetricList extends $dara.Model { + /** + * @remarks + * The dimensions based on which the resources are queried. Valid values of N: 1 to 21. + * + * Set this parameter to a collection of key-value pairs. Format: `{"Key":"Value"}`. + * + * The key or value must be 1 to 64 bytes in length. Excessive characters are truncated. + * + * The key or value can contain letters, digits, periods (.), hyphens (-), underscores (_), forward slashes (/), and backslashes (\\\\). + * + * > Dimensions must be formatted as a JSON string in a specified order. + * + * This parameter is required. + * + * @example + * {"sampleName1":"value1","sampleName2":"value2"} + */ + dimensions?: string; + /** + * @remarks + * The ID of the application group. Valid values of N: 1 to 21. + * + * > If the metric does not belong to any application group, enter 0. + * + * This parameter is required. + * + * @example + * 12345 + */ + groupId?: string; + /** + * @remarks + * The metric name. Valid values of N: 1 to 21. For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The aggregation period. Valid values of N: 1 to 21. Unit: seconds. Valid values: 60 and 300. + * + * > If the Type parameter is set to 1, the Period parameter is required. + * + * @example + * 60 + */ + period?: string; + /** + * @remarks + * The timestamp when the metric data is generated. Valid values of N: 1 to 21. The timestamp can be in one of the following formats: + * + * * A UTC timestamp in the YYYY-MM-DDThh:mm:ssZ format. Example: 20171012T132456.888+0800. + * * A UNIX timestamp of the LONG type. Example: 1508136760000. + * + * @example + * 1508136760000 + */ + time?: string; + /** + * @remarks + * The type of the monitoring data. Valid values of N: 1 to 21. Valid values: + * + * * 0: raw data + * * 1: aggregate data + * + * > We recommend that you report aggregate data in both the aggregation periods of 60 seconds and 300 seconds. Otherwise, you cannot query monitoring data in a time span that is more than seven days. + * + * This parameter is required. + * + * @example + * 0 + */ + type?: string; + /** + * @remarks + * The collection of metric values. Valid values of N: 1 to 21. + * + * > If the Type parameter is set to 0, the keys in this parameter must be set to the specified value. CloudMonitor aggregates raw data in each aggregation period to generate multiple statistical values, such as the maximum value, the count, and the total value. + * + * This parameter is required. + * + * @example + * {"value":10.5} + */ + values?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutCustomMetricRequest extends $dara.Model { + /** + * @remarks + * The monitoring data. + * + * This parameter is required. + */ + metricList?: PutCustomMetricRequestMetricList[]; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRequest.js new file mode 100644 index 0000000..ef80774 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRequest.js @@ -0,0 +1,94 @@ +"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.PutCustomMetricRequest = exports.PutCustomMetricRequestMetricList = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutCustomMetricRequestMetricList extends $dara.Model { + static names() { + return { + dimensions: 'Dimensions', + groupId: 'GroupId', + metricName: 'MetricName', + period: 'Period', + time: 'Time', + type: 'Type', + values: 'Values', + }; + } + static types() { + return { + dimensions: 'string', + groupId: 'string', + metricName: 'string', + period: 'string', + time: 'string', + type: 'string', + values: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutCustomMetricRequestMetricList = PutCustomMetricRequestMetricList; +class PutCustomMetricRequest extends $dara.Model { + static names() { + return { + metricList: 'MetricList', + regionId: 'RegionId', + }; + } + static types() { + return { + metricList: { 'type': 'array', 'itemType': PutCustomMetricRequestMetricList }, + regionId: 'string', + }; + } + validate() { + if (Array.isArray(this.metricList)) { + $dara.Model.validateArray(this.metricList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutCustomMetricRequest = PutCustomMetricRequest; +//# sourceMappingURL=PutCustomMetricRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRequest.js.map new file mode 100644 index 0000000..06644cf --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutCustomMetricRequest.js","sourceRoot":"","sources":["../../src/models/PutCustomMetricRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAyF/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;YACpB,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxHD,4EAwHC;AAED,MAAa,sBAAuB,SAAQ,KAAK,CAAC,KAAK;IASrD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,gCAAgC,EAAE;YAC7E,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;YAClC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC7C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,wDAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricResponse.d.ts new file mode 100644 index 0000000..d552a9a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { PutCustomMetricResponseBody } from "./PutCustomMetricResponseBody"; +export declare class PutCustomMetricResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: PutCustomMetricResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricResponse.js new file mode 100644 index 0000000..3552b8a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricResponse.js @@ -0,0 +1,69 @@ +"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.PutCustomMetricResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const PutCustomMetricResponseBody_1 = require("./PutCustomMetricResponseBody"); +class PutCustomMetricResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutCustomMetricResponseBody_1.PutCustomMetricResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutCustomMetricResponse = PutCustomMetricResponse; +//# sourceMappingURL=PutCustomMetricResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricResponse.js.map new file mode 100644 index 0000000..a5437fb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutCustomMetricResponse.js","sourceRoot":"","sources":["../../src/models/PutCustomMetricResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,+EAA4E;AAG5E,MAAa,uBAAwB,SAAQ,KAAK,CAAC,KAAK;IAItD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,yDAA2B;SAClC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,0DAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricResponseBody.d.ts new file mode 100644 index 0000000..da2994f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricResponseBody.d.ts @@ -0,0 +1,39 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutCustomMetricResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The request has failed due to a temporary failure of the server. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 05B36C2C-5F6E-48D5-8B41-CE36DD7EE8E0 + */ + requestId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricResponseBody.js new file mode 100644 index 0000000..bc3de15 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricResponseBody.js @@ -0,0 +1,62 @@ +"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.PutCustomMetricResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutCustomMetricResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutCustomMetricResponseBody = PutCustomMetricResponseBody; +//# sourceMappingURL=PutCustomMetricResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricResponseBody.js.map new file mode 100644 index 0000000..27fcc20 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutCustomMetricResponseBody.js","sourceRoot":"","sources":["../../src/models/PutCustomMetricResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,2BAA4B,SAAQ,KAAK,CAAC,KAAK;IA2B1D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAlDD,kEAkDC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleRequest.d.ts new file mode 100644 index 0000000..4a6f74f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleRequest.d.ts @@ -0,0 +1,175 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutCustomMetricRuleRequest extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold. Valid values: + * + * * `>=` + * * `=` + * * `<=` + * * `>` + * * `<` + * * `!=` + * + * This parameter is required. + * + * @example + * >= + */ + comparisonOperator?: string; + /** + * @remarks + * The alert contact groups. Separate multiple alert contact groups with commas (,). + * + * This parameter is required. + * + * @example + * ECS_Group + */ + contactGroups?: string; + /** + * @remarks + * The period of time during which the alert rule is effective. Valid values: 00:00 to 23:59. + * + * @example + * 00:00-23:59 + */ + effectiveInterval?: string; + /** + * @remarks + * The subject of the alert notification email. + */ + emailSubject?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before an alert is triggered. + * + * This parameter is required. + * + * @example + * 3 + */ + evaluationCount?: number; + /** + * @remarks + * The ID of the application group to which the custom monitoring data belongs. + * + * > The value 0 indicates that the reported custom monitoring data does not belong to an application group. + * + * @example + * 7378**** + */ + groupId?: string; + /** + * @remarks + * The alert level. Valid values: + * + * * CRITICAL + * * WARN + * * INFO + * + * This parameter is required. + * + * @example + * CRITICAL + */ + level?: string; + /** + * @remarks + * The metric name. + * + * > For more information about how to obtain the metric name, see [DescribeCustomMetricList](https://help.aliyun.com/document_detail/115005.html). + * + * This parameter is required. + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The cycle that is used to aggregate custom monitoring data. Unit: seconds Set the value to an integral multiple of 60. The original reporting cycle of custom monitoring data is used by default. + * + * @example + * 300 + */ + period?: string; + /** + * @remarks + * The custom monitoring data to which the alert rule applies. The value includes the application group ID to which the custom monitoring data belongs and the dimension to which the metric belongs. + * + * This parameter is required. + * + * @example + * [{"groupId":7378****,"dimension":"instanceId=i-hp3543t5e4sudb3s****"}] + */ + resources?: string; + /** + * @remarks + * The ID of the alert rule. + * + * > You can specify an existing ID to modify the corresponding alert rule or specify a new ID to create an alert rule. + * + * This parameter is required. + * + * @example + * MyRuleId1 + */ + ruleId?: string; + /** + * @remarks + * The name of the alert rule. + * + * @example + * CpuUsage + */ + 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, which is equivalent to one day. + * + * > Only one alert notification is sent during each mute period even if the metric value exceeds the alert threshold several times. + * + * @example + * 86400 + */ + silenceTime?: number; + /** + * @remarks + * The method used to calculate the metric value based on which alerts are triggered. + * + * This parameter is required. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The alert threshold. + * + * This parameter is required. + * + * @example + * 90 + */ + threshold?: string; + /** + * @remarks + * The callback URL to which a POST request is sent when an alert is triggered based on the alert rule. + * + * @example + * https://www.aliyun.com + */ + webhook?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleRequest.js new file mode 100644 index 0000000..e65e164 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleRequest.js @@ -0,0 +1,88 @@ +"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.PutCustomMetricRuleRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutCustomMetricRuleRequest extends $dara.Model { + static names() { + return { + comparisonOperator: 'ComparisonOperator', + contactGroups: 'ContactGroups', + effectiveInterval: 'EffectiveInterval', + emailSubject: 'EmailSubject', + evaluationCount: 'EvaluationCount', + groupId: 'GroupId', + level: 'Level', + metricName: 'MetricName', + period: 'Period', + resources: 'Resources', + ruleId: 'RuleId', + ruleName: 'RuleName', + silenceTime: 'SilenceTime', + statistics: 'Statistics', + threshold: 'Threshold', + webhook: 'Webhook', + }; + } + static types() { + return { + comparisonOperator: 'string', + contactGroups: 'string', + effectiveInterval: 'string', + emailSubject: 'string', + evaluationCount: 'number', + groupId: 'string', + level: 'string', + metricName: 'string', + period: 'string', + resources: 'string', + ruleId: 'string', + ruleName: 'string', + silenceTime: 'number', + statistics: 'string', + threshold: 'string', + webhook: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutCustomMetricRuleRequest = PutCustomMetricRuleRequest; +//# sourceMappingURL=PutCustomMetricRuleRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleRequest.js.map new file mode 100644 index 0000000..781e92f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutCustomMetricR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;IACb,CAAC;CACF;AApND,gEAoNC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleResponse.d.ts new file mode 100644 index 0000000..e081138 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { PutCustomMetricRuleResponseBody } from "./PutCustomMetricRuleResponseBody"; +export declare class PutCustomMetricRuleResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: PutCustomMetricRuleResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleResponse.js new file mode 100644 index 0000000..1d1b734 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleResponse.js @@ -0,0 +1,69 @@ +"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.PutCustomMetricRuleResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const PutCustomMetricRuleResponseBody_1 = require("./PutCustomMetricRuleResponseBody"); +class PutCustomMetricRuleResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutCustomMetricRuleResponseBody_1.PutCustomMetricRuleResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutCustomMetricRuleResponse = PutCustomMetricRuleResponse; +//# sourceMappingURL=PutCustomMetricRuleResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleResponse.js.map new file mode 100644 index 0000000..47c32a7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutCustomMetricRuleResponse.js","sourceRoot":"","sources":["../../src/models/PutCustomMetricRuleResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,uFAAoF;AAGpF,MAAa,2BAA4B,SAAQ,KAAK,CAAC,KAAK;IAI1D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,iEAA+B;SACtC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,kEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleResponseBody.d.ts new file mode 100644 index 0000000..9176986 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutCustomMetricRuleResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. If the request was successful, the return value is null. If the request failed, an error message is returned. + * + * @example + * ComparisonOperator is mandatory for this action. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 65D50468-ECEF-48F1-A6E1-D952E89D9432 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleResponseBody.js new file mode 100644 index 0000000..beb4445 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleResponseBody.js @@ -0,0 +1,64 @@ +"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.PutCustomMetricRuleResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutCustomMetricRuleResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutCustomMetricRuleResponseBody = PutCustomMetricRuleResponseBody; +//# sourceMappingURL=PutCustomMetricRuleResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleResponseBody.js.map new file mode 100644 index 0000000..a69fc38 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutCustomMetricRuleResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutCustomMetricRuleResponseBody.js","sourceRoot":"","sources":["../../src/models/PutCustomMetricRuleResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAsC9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,0EA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleRequest.d.ts new file mode 100644 index 0000000..d74de50 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleRequest.d.ts @@ -0,0 +1,134 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutEventRuleRequestEventPattern extends $dara.Model { + /** + * @remarks + * The keyword that is used to filter events. If the content of an event contains the specified keyword, an alert is automatically triggered. + * + * @example + * Stopping + */ + customFilters?: string; + /** + * @example + * Exception + */ + eventTypeList?: string[]; + /** + * @example + * CRITICAL + */ + levelList?: string[]; + /** + * @example + * Agent_Status_Stopped + */ + nameList?: string[]; + /** + * @remarks + * The type of the cloud service. Valid values of N: 1 to 50. + * + * > You can call the DescribeSystemEventMetaList operation to query the cloud services that support event-triggered alerts. For more information, see [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html). + * + * This parameter is required. + * + * @example + * ecs + */ + product?: string; + /** + * @remarks + * The SQL condition that is used to filter events. If the content of an event meets the specified SQL condition, an alert is automatically triggered. + * + * > The syntax of SQL event filtering is consistent with the query syntax of Log Service. + * + * @example + * 192.168.XX.XX and Executed + */ + SQLFilter?: string; + /** + * @example + * Failed + */ + statusList?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutEventRuleRequest extends $dara.Model { + /** + * @remarks + * The description of the event-triggered alert rule. + */ + description?: string; + /** + * @remarks + * This parameter is required. + */ + eventPattern?: PutEventRuleRequestEventPattern[]; + /** + * @remarks + * The type of the event-triggered alert rule. Valid values: + * + * * SYSTEM: system event-triggered alert rule + * * CUSTOM: custom event-triggered alert rule + * + * @example + * SYSTEM + */ + eventType?: string; + /** + * @remarks + * The ID of the application group to which the event-triggered alert rule belongs. + * + * @example + * 7378**** + */ + groupId?: string; + regionId?: string; + /** + * @remarks + * The name of the event-triggered alert rule. + * + * This parameter is required. + * + * @example + * myRuleName + */ + ruleName?: string; + /** + * @remarks + * The mute period during which new alerts are not sent even if the trigger conditions are met. Unit: seconds. + * + * @example + * 86400 + */ + silenceTime?: number; + /** + * @remarks + * The status of the event-triggered alert rule. Valid values: + * + * * ENABLED: enabled + * * DISABLED: disabled + * + * @example + * ENABLED + */ + state?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleRequest.js new file mode 100644 index 0000000..b4459f4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleRequest.js @@ -0,0 +1,118 @@ +"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.PutEventRuleRequest = exports.PutEventRuleRequestEventPattern = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutEventRuleRequestEventPattern extends $dara.Model { + static names() { + return { + customFilters: 'CustomFilters', + eventTypeList: 'EventTypeList', + levelList: 'LevelList', + nameList: 'NameList', + product: 'Product', + SQLFilter: 'SQLFilter', + statusList: 'StatusList', + }; + } + static types() { + return { + customFilters: 'string', + eventTypeList: { 'type': 'array', 'itemType': 'string' }, + levelList: { 'type': 'array', 'itemType': 'string' }, + nameList: { 'type': 'array', 'itemType': 'string' }, + product: 'string', + SQLFilter: 'string', + statusList: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.eventTypeList)) { + $dara.Model.validateArray(this.eventTypeList); + } + if (Array.isArray(this.levelList)) { + $dara.Model.validateArray(this.levelList); + } + if (Array.isArray(this.nameList)) { + $dara.Model.validateArray(this.nameList); + } + if (Array.isArray(this.statusList)) { + $dara.Model.validateArray(this.statusList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutEventRuleRequestEventPattern = PutEventRuleRequestEventPattern; +class PutEventRuleRequest extends $dara.Model { + static names() { + return { + description: 'Description', + eventPattern: 'EventPattern', + eventType: 'EventType', + groupId: 'GroupId', + regionId: 'RegionId', + ruleName: 'RuleName', + silenceTime: 'SilenceTime', + state: 'State', + }; + } + static types() { + return { + description: 'string', + eventPattern: { 'type': 'array', 'itemType': PutEventRuleRequestEventPattern }, + eventType: 'string', + groupId: 'string', + regionId: 'string', + ruleName: 'string', + silenceTime: 'number', + state: 'string', + }; + } + validate() { + if (Array.isArray(this.eventPattern)) { + $dara.Model.validateArray(this.eventPattern); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutEventRuleRequest = PutEventRuleRequest; +//# sourceMappingURL=PutEventRuleRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleRequest.js.map new file mode 100644 index 0000000..2dc9ea2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutEventRuleRequest.js","sourceRoot":"","sources":["../../src/models/PutEventRuleRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAmD9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,aAAa,EAAE,eAAe;YAC9B,aAAa,EAAE,eAAe;YAC9B,SAAS,EAAE,WAAW;YACtB,QAAQ,EAAE,UAAU;YACpB,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,UAAU,EAAE,YAAY;SACzB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,aAAa,EAAE,QAAQ;YACvB,aAAa,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YACxD,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YACpD,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YACnD,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,UAAU,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;SACtD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,CAAC;YACrC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAChD,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;YACjC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;Q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C/C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAhGD,kDAgGC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleResponse.d.ts new file mode 100644 index 0000000..7e8513a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { PutEventRuleResponseBody } from "./PutEventRuleResponseBody"; +export declare class PutEventRuleResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: PutEventRuleResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleResponse.js new file mode 100644 index 0000000..d27100e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleResponse.js @@ -0,0 +1,69 @@ +"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.PutEventRuleResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const PutEventRuleResponseBody_1 = require("./PutEventRuleResponseBody"); +class PutEventRuleResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutEventRuleResponseBody_1.PutEventRuleResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutEventRuleResponse = PutEventRuleResponse; +//# sourceMappingURL=PutEventRuleResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleResponse.js.map new file mode 100644 index 0000000..fd0c4bd --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutEventRuleResponse.js","sourceRoot":"","sources":["../../src/models/PutEventRuleResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,yEAAsE;AAGtE,MAAa,oBAAqB,SAAQ,KAAK,CAAC,KAAK;IAInD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,mDAAwB;SAC/B,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,oDAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleResponseBody.d.ts new file mode 100644 index 0000000..7cf720d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleResponseBody.d.ts @@ -0,0 +1,58 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutEventRuleResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The number of event-triggered alert rules that were created or modified. + * + * @example + * 1 + */ + data?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * 0B47C47B-E68A-4429-BB23-370E91889C7D + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call was successful. Valid values: + * + * * true: The call was successful. + * * false: The call failed. + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleResponseBody.js new file mode 100644 index 0000000..bdbeaa4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleResponseBody.js @@ -0,0 +1,66 @@ +"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.PutEventRuleResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutEventRuleResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + data: 'Data', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + data: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutEventRuleResponseBody = PutEventRuleResponseBody; +//# sourceMappingURL=PutEventRuleResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleResponseBody.js.map new file mode 100644 index 0000000..bf89f23 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutEventRuleResponseBody.js","sourceRoot":"","sources":["../../src/models/PutEventRuleResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wBAAyB,SAAQ,KAAK,CAAC,KAAK;IA8CvD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,4DAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsRequest.d.ts new file mode 100644 index 0000000..c25114c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsRequest.d.ts @@ -0,0 +1,350 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutEventRuleTargetsRequestContactParameters extends $dara.Model { + /** + * @remarks + * The name of the alert contact group. Valid values of N: 1 to 5. + */ + contactGroupName?: string; + /** + * @remarks + * The ID of the recipient that receives alert notifications. Valid values of N: 1 to 5. + * + * @example + * 2 + */ + id?: string; + /** + * @remarks + * The alert notification methods. Valid values of N: 1 to 5. Valid values: + * + * 4: Alert notifications are sent by using DingTalk and emails. + * + * @example + * 3 + */ + level?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutEventRuleTargetsRequestFcParameters extends $dara.Model { + /** + * @remarks + * The name of the function. Valid values of N: 1 to 5. + * + * @example + * fc-test + */ + functionName?: string; + /** + * @remarks + * The ID of the recipient that receives alert notifications. Valid values of N: 1 to 5. + * + * @example + * 1 + */ + id?: string; + /** + * @remarks + * The region where Function Compute is deployed. Valid values of N: 1 to 5. + * + * @example + * cn-hangzhou + */ + region?: string; + /** + * @remarks + * The name of the Function Compute service. Valid values of N: 1 to 5. + * + * @example + * fc-test + */ + serviceName?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutEventRuleTargetsRequestMnsParameters extends $dara.Model { + /** + * @remarks + * The ID of the recipient that receives alert notifications. Valid values of N: 1 to 5. + * + * @example + * 3 + */ + id?: string; + /** + * @remarks + * The name of the SMQ queue. Valid values of N: 1 to 5. + * + * @example + * queue1 + */ + queue?: string; + /** + * @remarks + * The region for SMQ. Valid values of N: 1 to 5. + * + * @example + * cn-hangzhou + */ + region?: string; + /** + * @remarks + * The SMQ topic. + * + * @example + * topic_sample + */ + topic?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutEventRuleTargetsRequestOpenApiParameters extends $dara.Model { + /** + * @remarks + * The API name. + * + * @example + * PutLogs + */ + action?: string; + /** + * @remarks + * The Alibaba Cloud Resource Name (ARN) of the resource. Valid values of N: 1 to 5. Format: `arn:acs:${Service}:${Region}:${Account}:${ResourceType}/${ResourceId}`. Fields: + * + * * Service: the code of a cloud service + * * Region: the region ID + * * Account: the ID of an Alibaba Cloud account + * * ResourceType: the resource type + * * ResourceId: the resource ID + */ + arn?: string; + /** + * @remarks + * The ID of the recipient that receives alert notifications sent by an API callback. + * + * @example + * 3 + */ + id?: string; + /** + * @remarks + * The parameters of the alert callback. Specify the parameters in the JSON format. + * + * @example + * {"customField1":"value1","customField2":"$.name"} + */ + jsonParams?: string; + /** + * @remarks + * The ID of the cloud service to which the API operation belongs. + * + * @example + * log + */ + product?: string; + /** + * @remarks + * The region where the resource resides. + * + * @example + * cn-hangzhou + */ + region?: string; + /** + * @remarks + * The name of the role. + * + * @example + * MyRole + */ + role?: string; + /** + * @remarks + * The version of the API. + * + * @example + * 2019-01-01 + */ + version?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutEventRuleTargetsRequestSlsParameters extends $dara.Model { + /** + * @remarks + * The ID of the recipient that receives alert notifications. Valid values of N: 1 to 5. + * + * @example + * 5 + */ + id?: string; + /** + * @remarks + * The name of the Simple Log Service Logstore. Valid values of N: 1 to 5. + * + * @example + * testlogstore + */ + logStore?: string; + /** + * @remarks + * The name of the Simple Log Service project. Valid values of N: 1 to 5. + * + * @example + * testproject + */ + project?: string; + /** + * @remarks + * The region where Simple Log Service is deployed. Valid values of N: 1 to 5. + * + * @example + * cn-hangzhou + */ + region?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutEventRuleTargetsRequestWebhookParameters extends $dara.Model { + /** + * @remarks + * The ID of the recipient that receives alert notifications. Valid values of N: 1 to 5. + * + * @example + * 4 + */ + id?: string; + /** + * @remarks + * The HTTP request method. Valid values of N: 1 to 5. + * + * Valid values: GET and POST. + * + * @example + * GET + */ + method?: string; + /** + * @remarks + * The name of the protocol. Valid values of N: 1 to 5. Valid values: + * + * * http + * * telnet + * * ping + * + * @example + * http + */ + protocol?: string; + /** + * @remarks + * The callback URL. Valid values of N: 1 to 5. + * + * @example + * http://www.aliyun.com + */ + url?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutEventRuleTargetsRequest extends $dara.Model { + /** + * @remarks + * The information about the alert contact groups that receive alert notifications. + */ + contactParameters?: PutEventRuleTargetsRequestContactParameters[]; + /** + * @remarks + * The information about the recipients in Function Compute. + */ + fcParameters?: PutEventRuleTargetsRequestFcParameters[]; + /** + * @remarks + * The notifications of Simple Message Queue (formerly MNS) (SMQ). + */ + mnsParameters?: PutEventRuleTargetsRequestMnsParameters[]; + /** + * @remarks + * The parameters of API callback notification. + */ + openApiParameters?: PutEventRuleTargetsRequestOpenApiParameters[]; + regionId?: string; + /** + * @remarks + * The name of the alert rule. + * + * This parameter is required. + * + * @example + * testEventRule + */ + ruleName?: string; + /** + * @remarks + * The information about the recipients in Simple Log Service. + */ + slsParameters?: PutEventRuleTargetsRequestSlsParameters[]; + /** + * @remarks + * The information about the callback URLs that are used to receive alert notifications. + */ + webhookParameters?: PutEventRuleTargetsRequestWebhookParameters[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsRequest.js new file mode 100644 index 0000000..9e04a1d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsRequest.js @@ -0,0 +1,246 @@ +"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.PutEventRuleTargetsRequest = exports.PutEventRuleTargetsRequestWebhookParameters = exports.PutEventRuleTargetsRequestSlsParameters = exports.PutEventRuleTargetsRequestOpenApiParameters = exports.PutEventRuleTargetsRequestMnsParameters = exports.PutEventRuleTargetsRequestFcParameters = exports.PutEventRuleTargetsRequestContactParameters = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutEventRuleTargetsRequestContactParameters extends $dara.Model { + static names() { + return { + contactGroupName: 'ContactGroupName', + id: 'Id', + level: 'Level', + }; + } + static types() { + return { + contactGroupName: 'string', + id: 'string', + level: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutEventRuleTargetsRequestContactParameters = PutEventRuleTargetsRequestContactParameters; +class PutEventRuleTargetsRequestFcParameters extends $dara.Model { + static names() { + return { + functionName: 'FunctionName', + id: 'Id', + region: 'Region', + serviceName: 'ServiceName', + }; + } + static types() { + return { + functionName: 'string', + id: 'string', + region: 'string', + serviceName: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutEventRuleTargetsRequestFcParameters = PutEventRuleTargetsRequestFcParameters; +class PutEventRuleTargetsRequestMnsParameters extends $dara.Model { + static names() { + return { + id: 'Id', + queue: 'Queue', + region: 'Region', + topic: 'Topic', + }; + } + static types() { + return { + id: 'string', + queue: 'string', + region: 'string', + topic: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutEventRuleTargetsRequestMnsParameters = PutEventRuleTargetsRequestMnsParameters; +class PutEventRuleTargetsRequestOpenApiParameters extends $dara.Model { + static names() { + return { + action: 'Action', + arn: 'Arn', + id: 'Id', + jsonParams: 'JsonParams', + product: 'Product', + region: 'Region', + role: 'Role', + version: 'Version', + }; + } + static types() { + return { + action: 'string', + arn: 'string', + id: 'string', + jsonParams: 'string', + product: 'string', + region: 'string', + role: 'string', + version: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutEventRuleTargetsRequestOpenApiParameters = PutEventRuleTargetsRequestOpenApiParameters; +class PutEventRuleTargetsRequestSlsParameters extends $dara.Model { + static names() { + return { + id: 'Id', + logStore: 'LogStore', + project: 'Project', + region: 'Region', + }; + } + static types() { + return { + id: 'string', + logStore: 'string', + project: 'string', + region: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutEventRuleTargetsRequestSlsParameters = PutEventRuleTargetsRequestSlsParameters; +class PutEventRuleTargetsRequestWebhookParameters extends $dara.Model { + static names() { + return { + id: 'Id', + method: 'Method', + protocol: 'Protocol', + url: 'Url', + }; + } + static types() { + return { + id: 'string', + method: 'string', + protocol: 'string', + url: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutEventRuleTargetsRequestWebhookParameters = PutEventRuleTargetsRequestWebhookParameters; +class PutEventRuleTargetsRequest extends $dara.Model { + static names() { + return { + contactParameters: 'ContactParameters', + fcParameters: 'FcParameters', + mnsParameters: 'MnsParameters', + openApiParameters: 'OpenApiParameters', + regionId: 'RegionId', + ruleName: 'RuleName', + slsParameters: 'SlsParameters', + webhookParameters: 'WebhookParameters', + }; + } + static types() { + return { + contactParameters: { 'type': 'array', 'itemType': PutEventRuleTargetsRequestContactParameters }, + fcParameters: { 'type': 'array', 'itemType': PutEventRuleTargetsRequestFcParameters }, + mnsParameters: { 'type': 'array', 'itemType': PutEventRuleTargetsRequestMnsParameters }, + openApiParameters: { 'type': 'array', 'itemType': PutEventRuleTargetsRequestOpenApiParameters }, + regionId: 'string', + ruleName: 'string', + slsParameters: { 'type': 'array', 'itemType': PutEventRuleTargetsRequestSlsParameters }, + webhookParameters: { 'type': 'array', 'itemType': PutEventRuleTargetsRequestWebhookParameters }, + }; + } + validate() { + if (Array.isArray(this.contactParameters)) { + $dara.Model.validateArray(this.contactParameters); + } + if (Array.isArray(this.fcParameters)) { + $dara.Model.validateArray(this.fcParameters); + } + if (Array.isArray(this.mnsParameters)) { + $dara.Model.validateArray(this.mnsParameters); + } + if (Array.isArray(this.openApiParameters)) { + $dara.Model.validateArray(this.openApiParameters); + } + if (Array.isArray(this.slsParameters)) { + $dara.Model.validateArray(this.slsParameters); + } + if (Array.isArray(this.webhookParameters)) { + $dara.Model.validateArray(this.webhookParameters); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutEventRuleTargetsRequest = PutEventRuleTargetsRequest; +//# sourceMappingURL=PutEventRuleTargetsRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsRequest.js.map new file mode 100644 index 0000000..b5c1bb8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutEventRuleTargetsRequest.js","sourceRoot":"","sources":["../../src/models/PutEventRuleTargetsRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,2CAA4C,SAAQ,KAAK,CAAC,KAAK;IAwB1E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,gBAAgB,EAAE,kBAAkB;YACpC,EAAE,EAAE,IAAI;YACR,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,gBAAgB,EAAE,QAAQ;YAC1B,EAAE,EAAE,QAAQ;YACZ,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/CD,kGA+CC;AAED,MAAa,sCAAuC,SAAQ,KAAK,CAAC,KAAK;IAiCrE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,cAAc;YAC5B,EAAE,EAAE,IAAI;YACR,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,aAAa;SAC3B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,QAAQ;YACtB,EAAE,EAAE,QAAQ;YACZ,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,QAAQ;SACtB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG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zC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QACpD,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,CAAC;YACrC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAChD,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC,EAAE,CAAC;YACzC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QACpD,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA7FD,gEA6FC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsResponse.d.ts new file mode 100644 index 0000000..65efb68 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { PutEventRuleTargetsResponseBody } from "./PutEventRuleTargetsResponseBody"; +export declare class PutEventRuleTargetsResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: PutEventRuleTargetsResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsResponse.js new file mode 100644 index 0000000..4c8f24a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsResponse.js @@ -0,0 +1,69 @@ +"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.PutEventRuleTargetsResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const PutEventRuleTargetsResponseBody_1 = require("./PutEventRuleTargetsResponseBody"); +class PutEventRuleTargetsResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutEventRuleTargetsResponseBody_1.PutEventRuleTargetsResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutEventRuleTargetsResponse = PutEventRuleTargetsResponse; +//# sourceMappingURL=PutEventRuleTargetsResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsResponse.js.map new file mode 100644 index 0000000..6b4a9fa --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutEventRuleTargetsResponse.js","sourceRoot":"","sources":["../../src/models/PutEventRuleTargetsResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,uFAAoF;AAGpF,MAAa,2BAA4B,SAAQ,KAAK,CAAC,KAAK;IAI1D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,iEAA+B;SACtC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,kEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsResponseBody.d.ts new file mode 100644 index 0000000..fe4729f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsResponseBody.d.ts @@ -0,0 +1,224 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutEventRuleTargetsResponseBodyFailedContactParametersContactParameter extends $dara.Model { + /** + * @remarks + * The name of the alert contact group. + */ + contactGroupName?: string; + /** + * @remarks + * The ID of the recipient. + * + * @example + * 2 + */ + id?: number; + /** + * @remarks + * The alert notification methods. Valid values: + * + * 4: Alert notifications are sent by using DingTalk and emails. + * + * @example + * 3 + */ + level?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutEventRuleTargetsResponseBodyFailedContactParameters extends $dara.Model { + contactParameter?: PutEventRuleTargetsResponseBodyFailedContactParametersContactParameter[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutEventRuleTargetsResponseBodyFailedFcParametersFcParameter extends $dara.Model { + /** + * @remarks + * The name of the function. + * + * @example + * functionTest1 + */ + functionName?: string; + /** + * @remarks + * The ID of the recipient. + * + * @example + * 1 + */ + id?: number; + /** + * @remarks + * The region ID. + * + * @example + * cn-hangzhou + */ + region?: string; + /** + * @remarks + * The name of the Function Compute service. + * + * @example + * serviceTest1 + */ + serviceName?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutEventRuleTargetsResponseBodyFailedFcParameters extends $dara.Model { + fcParameter?: PutEventRuleTargetsResponseBodyFailedFcParametersFcParameter[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutEventRuleTargetsResponseBodyFailedMnsParametersMnsParameter extends $dara.Model { + /** + * @remarks + * The ID of the recipient. + * + * @example + * 2 + */ + id?: number; + /** + * @remarks + * The name of the MNS queue. + * + * @example + * testQueue + */ + queue?: string; + /** + * @remarks + * The region ID. + * + * @example + * cn-hangzhou + */ + region?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutEventRuleTargetsResponseBodyFailedMnsParameters extends $dara.Model { + mnsParameter?: PutEventRuleTargetsResponseBodyFailedMnsParametersMnsParameter[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutEventRuleTargetsResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * This parameter is returned if the specified alert contact groups in the request failed to be created or modified. + */ + failedContactParameters?: PutEventRuleTargetsResponseBodyFailedContactParameters; + /** + * @remarks + * This parameter is returned if the specified functions in the request failed to be created or modified in Function Compute. + */ + failedFcParameters?: PutEventRuleTargetsResponseBodyFailedFcParameters; + /** + * @remarks + * This parameter is returned if the specified queues in the request failed to be created or modified in SMQ. + */ + failedMnsParameters?: PutEventRuleTargetsResponseBodyFailedMnsParameters; + /** + * @remarks + * The number of resources that failed to be created or modified. + * + * @example + * 2 + */ + failedParameterCount?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 409C64DA-CF14-45DF-B463-471C790DD15A + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: true and false. + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsResponseBody.js new file mode 100644 index 0000000..1888ac1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsResponseBody.js @@ -0,0 +1,218 @@ +"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.PutEventRuleTargetsResponseBody = exports.PutEventRuleTargetsResponseBodyFailedMnsParameters = exports.PutEventRuleTargetsResponseBodyFailedMnsParametersMnsParameter = exports.PutEventRuleTargetsResponseBodyFailedFcParameters = exports.PutEventRuleTargetsResponseBodyFailedFcParametersFcParameter = exports.PutEventRuleTargetsResponseBodyFailedContactParameters = exports.PutEventRuleTargetsResponseBodyFailedContactParametersContactParameter = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutEventRuleTargetsResponseBodyFailedContactParametersContactParameter extends $dara.Model { + static names() { + return { + contactGroupName: 'ContactGroupName', + id: 'Id', + level: 'Level', + }; + } + static types() { + return { + contactGroupName: 'string', + id: 'number', + level: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutEventRuleTargetsResponseBodyFailedContactParametersContactParameter = PutEventRuleTargetsResponseBodyFailedContactParametersContactParameter; +class PutEventRuleTargetsResponseBodyFailedContactParameters extends $dara.Model { + static names() { + return { + contactParameter: 'ContactParameter', + }; + } + static types() { + return { + contactParameter: { 'type': 'array', 'itemType': PutEventRuleTargetsResponseBodyFailedContactParametersContactParameter }, + }; + } + validate() { + if (Array.isArray(this.contactParameter)) { + $dara.Model.validateArray(this.contactParameter); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutEventRuleTargetsResponseBodyFailedContactParameters = PutEventRuleTargetsResponseBodyFailedContactParameters; +class PutEventRuleTargetsResponseBodyFailedFcParametersFcParameter extends $dara.Model { + static names() { + return { + functionName: 'FunctionName', + id: 'Id', + region: 'Region', + serviceName: 'ServiceName', + }; + } + static types() { + return { + functionName: 'string', + id: 'number', + region: 'string', + serviceName: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutEventRuleTargetsResponseBodyFailedFcParametersFcParameter = PutEventRuleTargetsResponseBodyFailedFcParametersFcParameter; +class PutEventRuleTargetsResponseBodyFailedFcParameters extends $dara.Model { + static names() { + return { + fcParameter: 'FcParameter', + }; + } + static types() { + return { + fcParameter: { 'type': 'array', 'itemType': PutEventRuleTargetsResponseBodyFailedFcParametersFcParameter }, + }; + } + validate() { + if (Array.isArray(this.fcParameter)) { + $dara.Model.validateArray(this.fcParameter); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutEventRuleTargetsResponseBodyFailedFcParameters = PutEventRuleTargetsResponseBodyFailedFcParameters; +class PutEventRuleTargetsResponseBodyFailedMnsParametersMnsParameter extends $dara.Model { + static names() { + return { + id: 'Id', + queue: 'Queue', + region: 'Region', + }; + } + static types() { + return { + id: 'number', + queue: 'string', + region: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutEventRuleTargetsResponseBodyFailedMnsParametersMnsParameter = PutEventRuleTargetsResponseBodyFailedMnsParametersMnsParameter; +class PutEventRuleTargetsResponseBodyFailedMnsParameters extends $dara.Model { + static names() { + return { + mnsParameter: 'MnsParameter', + }; + } + static types() { + return { + mnsParameter: { 'type': 'array', 'itemType': PutEventRuleTargetsResponseBodyFailedMnsParametersMnsParameter }, + }; + } + validate() { + if (Array.isArray(this.mnsParameter)) { + $dara.Model.validateArray(this.mnsParameter); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutEventRuleTargetsResponseBodyFailedMnsParameters = PutEventRuleTargetsResponseBodyFailedMnsParameters; +class PutEventRuleTargetsResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + failedContactParameters: 'FailedContactParameters', + failedFcParameters: 'FailedFcParameters', + failedMnsParameters: 'FailedMnsParameters', + failedParameterCount: 'FailedParameterCount', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + failedContactParameters: PutEventRuleTargetsResponseBodyFailedContactParameters, + failedFcParameters: PutEventRuleTargetsResponseBodyFailedFcParameters, + failedMnsParameters: PutEventRuleTargetsResponseBodyFailedMnsParameters, + failedParameterCount: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + if (this.failedContactParameters && typeof this.failedContactParameters.validate === 'function') { + this.failedContactParameters.validate(); + } + if (this.failedFcParameters && typeof this.failedFcParameters.validate === 'function') { + this.failedFcParameters.validate(); + } + if (this.failedMnsParameters && typeof this.failedMnsParameters.validate === 'function') { + this.failedMnsParameters.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutEventRuleTargetsResponseBody = PutEventRuleTargetsResponseBody; +//# sourceMappingURL=PutEventRuleTargetsResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsResponseBody.js.map new file mode 100644 index 0000000..eb277a9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutEventRuleTargetsResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutEventRuleTargetsResponseBody.js","sourceRoot":"","sources":["../../src/models/PutEventRuleTargetsResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,sEAAuE,SAAQ,KAAK,CAAC,KAAK;IAwBrG,MAAM,CAAC,KAAK;QACV,OAAO;YACL,gBAAgB,EAAE,kBAAkB;YACpC,EAAE,EAAE,IAAI;YACR,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,gBAAgB,EAAE,QAAQ;YAC1B,EAAE,EAAE,QAAQ;YACZ,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/CD,wJA+CC;AAED,MAAa,sDAAuD,SAAQ,KAAK,CAAC,KAAK;IAErF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,gBAAgB,EAAE,kBAAkB;SACrC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,gBAAgB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,sEAAsE,EAAE;SAC1H,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAAE,CAAC;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oB;YACxC,mBAAmB,EAAE,qBAAqB;YAC1C,oBAAoB,EAAE,sBAAsB;YAC5C,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,uBAAuB,EAAE,sDAAsD;YAC/E,kBAAkB,EAAE,iDAAiD;YACrE,mBAAmB,EAAE,kDAAkD;YACvE,oBAAoB,EAAE,QAAQ;YAC9B,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,uBAAuB,IAAI,OAAQ,IAAI,CAAC,uBAA+B,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACvG,IAAI,CAAC,uBAA+B,CAAC,QAAQ,EAAE,CAAC;QACnD,CAAC;QACD,IAAG,IAAI,CAAC,kBAAkB,IAAI,OAAQ,IAAI,CAAC,kBAA0B,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YAC7F,IAAI,CAAC,kBAA0B,CAAC,QAAQ,EAAE,CAAC;QAC9C,CAAC;QACD,IAAG,IAAI,CAAC,mBAAmB,IAAI,OAAQ,IAAI,CAAC,mBAA2B,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YAC/F,IAAI,CAAC,mBAA2B,CAAC,QAAQ,EAAE,CAAC;QAC/C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApGD,0EAoGC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputRequest.d.ts new file mode 100644 index 0000000..48aa76c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputRequest.d.ts @@ -0,0 +1,56 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutExporterOutputRequest extends $dara.Model { + /** + * @remarks + * The configuration set for exporting monitoring data. It is a JSON object string. The string must include the following fields: + * + * * endpoint: the endpoint of Log Service. + * * project: the Log Service project to which monitoring data is exported. + * * logstore: the Log Service Logstore to which the monitoring data is exported. + * * ak: the AccessKey ID. + * * as: the AccessKey secret. + * + * This parameter is required. + * + * @example + * { "endpoint": "http://cn-qingdao-share.log.aliyuncs.com", "project": "exporter", "logstore": "exporter","ak": "LTAIp*******", "userId": "17754********", "as": "TxHwuJ8yAb3AU******"} + */ + configJson?: string; + /** + * @remarks + * The description of the configuration set. + * + * @example + * Export CPU metrics + */ + desc?: string; + /** + * @remarks + * The name of the configuration set. + * + * This parameter is required. + * + * @example + * exporterConfig + */ + destName?: string; + /** + * @remarks + * The service to which the monitoring data is exported. + * + * @example + * sls + */ + destType?: string; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputRequest.js new file mode 100644 index 0000000..e07d04d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputRequest.js @@ -0,0 +1,66 @@ +"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.PutExporterOutputRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutExporterOutputRequest extends $dara.Model { + static names() { + return { + configJson: 'ConfigJson', + desc: 'Desc', + destName: 'DestName', + destType: 'DestType', + regionId: 'RegionId', + }; + } + static types() { + return { + configJson: 'string', + desc: 'string', + destName: 'string', + destType: 'string', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutExporterOutputRequest = PutExporterOutputRequest; +//# sourceMappingURL=PutExporterOutputRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputRequest.js.map new file mode 100644 index 0000000..e596d5a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutExporterOutputRequest.js","sourceRoot":"","sources":["../../src/models/PutExporterOutputRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wBAAyB,SAAQ,KAAK,CAAC,KAAK;IA4CvD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAvED,4DAuEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputResponse.d.ts new file mode 100644 index 0000000..81839f6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { PutExporterOutputResponseBody } from "./PutExporterOutputResponseBody"; +export declare class PutExporterOutputResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: PutExporterOutputResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputResponse.js new file mode 100644 index 0000000..9163dad --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputResponse.js @@ -0,0 +1,69 @@ +"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.PutExporterOutputResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const PutExporterOutputResponseBody_1 = require("./PutExporterOutputResponseBody"); +class PutExporterOutputResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutExporterOutputResponseBody_1.PutExporterOutputResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutExporterOutputResponse = PutExporterOutputResponse; +//# sourceMappingURL=PutExporterOutputResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputResponse.js.map new file mode 100644 index 0000000..9e50e50 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutExporterOutputResponse.js","sourceRoot":"","sources":["../../src/models/PutExporterOutputResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,mFAAgF;AAGhF,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IAIxD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,6DAA6B;SACpC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,8DAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputResponseBody.d.ts new file mode 100644 index 0000000..249403b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputResponseBody.d.ts @@ -0,0 +1,47 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutExporterOutputResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 6A5F022D-AC7C-460E-94AE-B9E75083D027 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. true: The request was successful. false: The request failed. + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputResponseBody.js new file mode 100644 index 0000000..52cf139 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputResponseBody.js @@ -0,0 +1,64 @@ +"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.PutExporterOutputResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutExporterOutputResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutExporterOutputResponseBody = PutExporterOutputResponseBody; +//# sourceMappingURL=PutExporterOutputResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputResponseBody.js.map new file mode 100644 index 0000000..639f838 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterOutputResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutExporterOutputResponseBody.js","sourceRoot":"","sources":["../../src/models/PutExporterOutputResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IAmC5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5DD,sEA4DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleRequest.d.ts new file mode 100644 index 0000000..67384e3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleRequest.d.ts @@ -0,0 +1,78 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutExporterRuleRequest extends $dara.Model { + /** + * @remarks + * The description of the data export rule. + * + * @example + * Export CPU metrics + */ + describe?: string; + /** + * @remarks + * The destination to which the data is exported. Valid values of N: 1 to 20. + * + * This parameter is required. + * + * @example + * distName1 + */ + dstNames?: string[]; + /** + * @remarks + * The name of the metric. + * + * > + * + * For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * > For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + regionId?: string; + /** + * @remarks + * The name of the rule. + * + * > If the specified rule exists, the existing rule is modified. Otherwise, a rule is created. + * + * @example + * MyRuleName + */ + ruleName?: string; + /** + * @remarks + * The time window of the exported data. Unit: seconds. + * + * > + * + * * Separate multiple time windows with commas (,). + * + * * Data in a time window of less than 60 seconds cannot be exported. + * + * @example + * 60,300 + */ + targetWindows?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleRequest.js new file mode 100644 index 0000000..1bde10c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleRequest.js @@ -0,0 +1,73 @@ +"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.PutExporterRuleRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutExporterRuleRequest extends $dara.Model { + static names() { + return { + describe: 'Describe', + dstNames: 'DstNames', + metricName: 'MetricName', + namespace: 'Namespace', + regionId: 'RegionId', + ruleName: 'RuleName', + targetWindows: 'TargetWindows', + }; + } + static types() { + return { + describe: 'string', + dstNames: { 'type': 'array', 'itemType': 'string' }, + metricName: 'string', + namespace: 'string', + regionId: 'string', + ruleName: 'string', + targetWindows: 'string', + }; + } + validate() { + if (Array.isArray(this.dstNames)) { + $dara.Model.validateArray(this.dstNames); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutExporterRuleRequest = PutExporterRuleRequest; +//# sourceMappingURL=PutExporterRuleRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleRequest.js.map new file mode 100644 index 0000000..166caa5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutExporterRuleRequest.js","sourceRoot":"","sources":["../../src/models/PutExporterRuleRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,sBAAuB,SAAQ,KAAK,CAAC,KAAK;IAkErD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,aAAa,EAAE,eAAe;SAC/B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YACnD,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;YACnB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,aAAa,EAAE,QAAQ;SACxB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;YAChC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC3C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApGD,wDAoGC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleResponse.d.ts new file mode 100644 index 0000000..0672552 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { PutExporterRuleResponseBody } from "./PutExporterRuleResponseBody"; +export declare class PutExporterRuleResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: PutExporterRuleResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleResponse.js new file mode 100644 index 0000000..30e20d0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleResponse.js @@ -0,0 +1,69 @@ +"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.PutExporterRuleResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const PutExporterRuleResponseBody_1 = require("./PutExporterRuleResponseBody"); +class PutExporterRuleResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutExporterRuleResponseBody_1.PutExporterRuleResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutExporterRuleResponse = PutExporterRuleResponse; +//# sourceMappingURL=PutExporterRuleResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleResponse.js.map new file mode 100644 index 0000000..7a9e557 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutExporterRuleResponse.js","sourceRoot":"","sources":["../../src/models/PutExporterRuleResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,+EAA4E;AAG5E,MAAa,uBAAwB,SAAQ,KAAK,CAAC,KAAK;IAItD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,yDAA2B;SAClC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,0DAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleResponseBody.d.ts new file mode 100644 index 0000000..602241a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutExporterRuleResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. If the request was successful, "successful" is returned. If the request failed, an error message is returned. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 461CF2CD-2FC3-4B26-8645-7BD27E7D0F1D + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleResponseBody.js new file mode 100644 index 0000000..4ce13d4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleResponseBody.js @@ -0,0 +1,64 @@ +"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.PutExporterRuleResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutExporterRuleResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutExporterRuleResponseBody = PutExporterRuleResponseBody; +//# sourceMappingURL=PutExporterRuleResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleResponseBody.js.map new file mode 100644 index 0000000..5a051e6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutExporterRuleResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutExporterRuleResponseBody.js","sourceRoot":"","sources":["../../src/models/PutExporterRuleResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,2BAA4B,SAAQ,KAAK,CAAC,KAAK;IAsC1D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,kEA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleRequest.d.ts new file mode 100644 index 0000000..112b520 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleRequest.d.ts @@ -0,0 +1,414 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutGroupMetricRuleRequestEscalationsCritical extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold for Critical-level alerts. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The statistical methods for Critical-level alerts. Separate multiple statistical methods with commas (,). + * + * The value of this parameter is determined by the `Statistics` column corresponding to the `MetricName` parameter of the specified cloud service. The value of this parameter can be Maximum, Minimum, or Average. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Critical-level alerts. + * + * @example + * 90 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before a Critical-level alert is triggered. + * + * @example + * 3 + */ + times?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutGroupMetricRuleRequestEscalationsInfo extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold for Info-level alerts. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The statistical methods for Info-level alerts. Separate multiple statistical methods with commas (,). + * + * The value of this parameter is determined by the `Statistics` column corresponding to the `MetricName` parameter of the specified cloud service. The value of this parameter can be Maximum, Minimum, or Average. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Info-level alerts. + * + * @example + * 90 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before an Info-level alert is triggered. + * + * @example + * 3 + */ + times?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutGroupMetricRuleRequestEscalationsWarn extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold for Warn-level alerts. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The statistical methods for Warn-level alerts. Separate multiple statistical methods with commas (,). + * + * The value of this parameter is determined by the `Statistics` column corresponding to the `MetricName` parameter of the specified cloud service. The value of this parameter can be Maximum, Minimum, or Average. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Warn-level alerts. + * + * @example + * 90 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before a Warn-level alert is triggered. + * + * @example + * 3 + */ + times?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutGroupMetricRuleRequestEscalations extends $dara.Model { + critical?: PutGroupMetricRuleRequestEscalationsCritical; + info?: PutGroupMetricRuleRequestEscalationsInfo; + warn?: PutGroupMetricRuleRequestEscalationsWarn; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutGroupMetricRuleRequestLabels extends $dara.Model { + /** + * @remarks + * The tag key of the alert rule. + * + * @example + * key1 + */ + key?: string; + /** + * @remarks + * The tag value of the alert rule. + * + * @example + * value1 + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutGroupMetricRuleRequest extends $dara.Model { + escalations?: PutGroupMetricRuleRequestEscalations; + /** + * @remarks + * The abbreviation of the cloud service name. + * + * 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. + * + * @example + * ECS + */ + category?: string; + /** + * @remarks + * The alert contact group. + * + * @example + * ECS_Group + */ + contactGroups?: string; + /** + * @remarks + * The first-level dimension of the alert rule in the application group. + * + * Set the value to a set of key-value pairs, for example, `userId:120886317861****` or `instanceId:i-m5e1qg6uo38rztr4****`. + * + * @example + * [{"instanceId":"i-m5e1qg6uo38rztr4****"}] + */ + dimensions?: string; + /** + * @remarks + * The time period during which the alert rule is effective. + * + * @example + * 05:31-23:59 + */ + effectiveInterval?: string; + /** + * @remarks + * The subject of the alert notification email. + */ + emailSubject?: string; + /** + * @remarks + * The second-level or third-level dimension of the alert rule in the application group. + * + * Set the value to a set of key-value pairs, for example, `port:80` or `/dev/xvda:d-m5e6yphgzn3aprwu****`. + * + * If the first-level dimension of the alert rule is `instanceId:i-m5e1qg6uo38rztr4****`, its second-level dimension is the `/dev/xvda:d-m5e6yphgzn3aprwu****` disk in the instance. + * + * @example + * {"/dev/xvda":"d-m5e6yphgzn3aprwu****"} + */ + extraDimensionJson?: string; + /** + * @remarks + * The application group ID. + * + * For more information about how to obtain the ID of an application group, see [DescribeMonitorGroups](https://help.aliyun.com/document_detail/115032.html). + * + * This parameter is required. + * + * @example + * 17285**** + */ + groupId?: string; + /** + * @remarks + * The interval at which CloudMonitor checks whether the alert rule is triggered. Unit: seconds. + * + * > We recommend that you set the interval to the data aggregation period. If the interval is shorter than the data aggregation period, alerts cannot be triggered due to insufficient data. + * + * @example + * 60 + */ + interval?: string; + /** + * @remarks + * The tags of the alert rule. + * + * The specified tag is contained in alert notifications. + */ + labels?: PutGroupMetricRuleRequestLabels[]; + /** + * @remarks + * The metric name. + * + * For more information about how to obtain the name of a metric, 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 + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * For more 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 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. + * + * @example + * KEEP_LAST_STATE + */ + noDataPolicy?: string; + /** + * @remarks + * The time period during which the alert rule is ineffective. + * + * @example + * 00:00-05:30 + */ + noEffectiveInterval?: string; + options?: string; + /** + * @remarks + * The aggregation period of the metric data. + * + * Set the `Period` parameter to an integral multiple of 60. Unit: seconds. Default value: 300. + * + * @example + * 60 + */ + period?: string; + /** + * @remarks + * The ID of the alert rule. + * + * * When you create an alert rule for the application group, enter the ID of the alert rule. + * * When you modify a specified alert rule in the application group, you must obtain the ID of the alert rule. For information about how to obtain the ID of an alert rule, see [DescribeMetricRuleList](https://help.aliyun.com/document_detail/114941.html). + * + * This parameter is required. + * + * @example + * 123456 + */ + ruleId?: string; + /** + * @remarks + * The name of the alert rule. + * + * * When you create an alert rule for the application group, enter the name of the alert rule. + * * When you modify a specified alert rule in the application group, you must obtain the name of the alert rule. For more information about how to obtain the name of an alert rule, see [DescribeMetricRuleList](https://help.aliyun.com/document_detail/114941.html). + * + * This parameter is required. + * + * @example + * Rule_01 + */ + ruleName?: string; + /** + * @remarks + * The mute period during which new alerts are not sent even if the trigger conditions are met. + * + * Unit: seconds. Default value: 86400. + * + * @example + * 86400 + */ + silenceTime?: number; + /** + * @remarks + * The callback URL. + * + * The callback URL must be accessible over the Internet. CloudMonitor sends a POST request to push an alert notification to the callback URL that you specify. Only HTTP requests are supported. + * + * @example + * https://www.aliyun.com + */ + webhook?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleRequest.js new file mode 100644 index 0000000..d48571c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleRequest.js @@ -0,0 +1,230 @@ +"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.PutGroupMetricRuleRequest = exports.PutGroupMetricRuleRequestLabels = exports.PutGroupMetricRuleRequestEscalations = exports.PutGroupMetricRuleRequestEscalationsWarn = exports.PutGroupMetricRuleRequestEscalationsInfo = exports.PutGroupMetricRuleRequestEscalationsCritical = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutGroupMetricRuleRequestEscalationsCritical 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.PutGroupMetricRuleRequestEscalationsCritical = PutGroupMetricRuleRequestEscalationsCritical; +class PutGroupMetricRuleRequestEscalationsInfo 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.PutGroupMetricRuleRequestEscalationsInfo = PutGroupMetricRuleRequestEscalationsInfo; +class PutGroupMetricRuleRequestEscalationsWarn 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.PutGroupMetricRuleRequestEscalationsWarn = PutGroupMetricRuleRequestEscalationsWarn; +class PutGroupMetricRuleRequestEscalations extends $dara.Model { + static names() { + return { + critical: 'Critical', + info: 'Info', + warn: 'Warn', + }; + } + static types() { + return { + critical: PutGroupMetricRuleRequestEscalationsCritical, + info: PutGroupMetricRuleRequestEscalationsInfo, + warn: PutGroupMetricRuleRequestEscalationsWarn, + }; + } + 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.PutGroupMetricRuleRequestEscalations = PutGroupMetricRuleRequestEscalations; +class PutGroupMetricRuleRequestLabels 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.PutGroupMetricRuleRequestLabels = PutGroupMetricRuleRequestLabels; +class PutGroupMetricRuleRequest extends $dara.Model { + static names() { + return { + escalations: 'Escalations', + category: 'Category', + contactGroups: 'ContactGroups', + dimensions: 'Dimensions', + effectiveInterval: 'EffectiveInterval', + emailSubject: 'EmailSubject', + extraDimensionJson: 'ExtraDimensionJson', + groupId: 'GroupId', + interval: 'Interval', + labels: 'Labels', + metricName: 'MetricName', + namespace: 'Namespace', + noDataPolicy: 'NoDataPolicy', + noEffectiveInterval: 'NoEffectiveInterval', + options: 'Options', + period: 'Period', + ruleId: 'RuleId', + ruleName: 'RuleName', + silenceTime: 'SilenceTime', + webhook: 'Webhook', + }; + } + static types() { + return { + escalations: PutGroupMetricRuleRequestEscalations, + category: 'string', + contactGroups: 'string', + dimensions: 'string', + effectiveInterval: 'string', + emailSubject: 'string', + extraDimensionJson: 'string', + groupId: 'string', + interval: 'string', + labels: { 'type': 'array', 'itemType': PutGroupMetricRuleRequestLabels }, + metricName: 'string', + namespace: 'string', + noDataPolicy: 'string', + noEffectiveInterval: 'string', + options: 'string', + period: '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.PutGroupMetricRuleRequest = PutGroupMetricRuleRequest; +//# sourceMappingURL=PutGroupMetricRuleRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleRequest.js.map new file mode 100644 index 0000000..115b161 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutGroupMetricRuleRequest.js","sourceRoot":"","sources":["../../src/models/PutGroupMetricRuleRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,4CAA6C,SAAQ,KAAK,CAAC,KAAK;IA+C3E,MAAM,CAAC,KAAK;QACV,OAA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AAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,+BAA+B,EAAE;YACxE,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;YACnB,YAAY,EAAE,QAAQ;YACtB,mBAAmB,EAAE,QAAQ;YAC7B,OAAO,EAAE,QAAQ;YACjB,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,QAAQ;YAClB,WAAW,EAAE,QAAQ;YACrB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,WAAW,IAAI,OAAQ,IAAI,CAAC,WAAmB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YAC/E,IAAI,CAAC,WAAmB,CAAC,QAAQ,EAAE,CAAC;QACvC,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;YAC9B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACzC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxPD,8DAwPC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleResponse.d.ts new file mode 100644 index 0000000..3e93c40 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { PutGroupMetricRuleResponseBody } from "./PutGroupMetricRuleResponseBody"; +export declare class PutGroupMetricRuleResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: PutGroupMetricRuleResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleResponse.js new file mode 100644 index 0000000..f3d0140 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleResponse.js @@ -0,0 +1,69 @@ +"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.PutGroupMetricRuleResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const PutGroupMetricRuleResponseBody_1 = require("./PutGroupMetricRuleResponseBody"); +class PutGroupMetricRuleResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutGroupMetricRuleResponseBody_1.PutGroupMetricRuleResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutGroupMetricRuleResponse = PutGroupMetricRuleResponse; +//# sourceMappingURL=PutGroupMetricRuleResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleResponse.js.map new file mode 100644 index 0000000..4d24e9d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutGroupMetricRuleResponse.js","sourceRoot":"","sources":["../../src/models/PutGroupMetricRuleResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,qFAAkF;AAGlF,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IAIzD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,+DAA8B;SACrC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,gEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleResponseBody.d.ts new file mode 100644 index 0000000..7d514f7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleResponseBody.d.ts @@ -0,0 +1,75 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutGroupMetricRuleResponseBodyResult extends $dara.Model { + /** + * @remarks + * The ID of the alert rule. + * + * @example + * 123456 + */ + ruleId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutGroupMetricRuleResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 461CF2CD-2FC3-4B26-8645-7BD27E7D0F1D + */ + requestId?: string; + /** + * @remarks + * The result of the request. + */ + result?: PutGroupMetricRuleResponseBodyResult; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleResponseBody.js new file mode 100644 index 0000000..073f5c7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleResponseBody.js @@ -0,0 +1,88 @@ +"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.PutGroupMetricRuleResponseBody = exports.PutGroupMetricRuleResponseBodyResult = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutGroupMetricRuleResponseBodyResult extends $dara.Model { + static names() { + return { + ruleId: 'RuleId', + }; + } + static types() { + return { + ruleId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutGroupMetricRuleResponseBodyResult = PutGroupMetricRuleResponseBodyResult; +class PutGroupMetricRuleResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + result: 'Result', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + result: PutGroupMetricRuleResponseBodyResult, + success: 'boolean', + }; + } + validate() { + if (this.result && typeof this.result.validate === 'function') { + this.result.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutGroupMetricRuleResponseBody = PutGroupMetricRuleResponseBody; +//# sourceMappingURL=PutGroupMetricRuleResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleResponseBody.js.map new file mode 100644 index 0000000..d93366d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutGroupMetricRuleResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutGroupMetricRuleResponseBody.js","sourceRoot":"","sources":["../../src/models/PutGroupMetricRuleResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IASnE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5BD,oFA4BC;AAED,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IA2C7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,MAAM,EAAE,oCAAoC;YAC5C,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,MAAM,IAAI,OAAQ,IAAI,CAAC,MAAc,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACrE,IAAI,CAAC,MAAc,CAAC,QAAQ,EAAE,CAAC;QAClC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,wEAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataRequest.d.ts new file mode 100644 index 0000000..7a12b98 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataRequest.d.ts @@ -0,0 +1,135 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutHybridMonitorMetricDataRequestMetricListLabels extends $dara.Model { + /** + * @remarks + * The tag key of the metric. + * + * Valid values of N: 1 to 100. + * + * The key can contain letters, digits, and underscores (_). The key must start with a letter or an underscore (_). + * + * > You must specify both the Key and Value parameters. + * + * @example + * IP + */ + key?: string; + /** + * @remarks + * The tag value of the metric. + * + * Valid values of N: 1 to 100. + * + * > You must specify both the Key and Value parameters. + * + * @example + * 192.168.XX.XX + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutHybridMonitorMetricDataRequestMetricList extends $dara.Model { + /** + * @remarks + * The tags of the metric. + * + * Valid values of N: 1 to 100. + * + * @example + * app、ip、hostName等标识信息 + */ + labels?: PutHybridMonitorMetricDataRequestMetricListLabels[]; + /** + * @remarks + * The metric name. + * + * Valid values of N: 1 to 100. + * + * The name can contain letters, digits, and underscores (_). The name must start with a letter. + * + * This parameter is required. + * + * @example + * CPU_Usage + */ + name?: string; + /** + * @remarks + * The time when the monitoring data is imported. The value is a timestamp. + * + * Valid values of N: 1 to 100. + * + * Unit: milliseconds. By default, the current time is used. + * + * @example + * 1640776119473 + */ + TS?: number; + /** + * @remarks + * The value of the metric. + * + * Valid values of N: 1 to 100. + * + * The value must be an integer or a floating-point number. + * + * This parameter is required. + * + * @example + * 90 + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutHybridMonitorMetricDataRequest extends $dara.Model { + /** + * @remarks + * The monitoring data. + * + * Valid values of N: 1 to 100. + * + * This parameter is required. + */ + metricList?: PutHybridMonitorMetricDataRequestMetricList[]; + /** + * @remarks + * The name of the namespace. + * + * For information about how to obtain the name of a namespace, see [DescribeHybridMonitorNamespaceList](https://help.aliyun.com/document_detail/428880.html). + * + * This parameter is required. + * + * @example + * default-aliyun + */ + namespace?: string; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataRequest.js new file mode 100644 index 0000000..d4f25aa --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataRequest.js @@ -0,0 +1,114 @@ +"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.PutHybridMonitorMetricDataRequest = exports.PutHybridMonitorMetricDataRequestMetricList = exports.PutHybridMonitorMetricDataRequestMetricListLabels = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutHybridMonitorMetricDataRequestMetricListLabels 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.PutHybridMonitorMetricDataRequestMetricListLabels = PutHybridMonitorMetricDataRequestMetricListLabels; +class PutHybridMonitorMetricDataRequestMetricList extends $dara.Model { + static names() { + return { + labels: 'Labels', + name: 'Name', + TS: 'TS', + value: 'Value', + }; + } + static types() { + return { + labels: { 'type': 'array', 'itemType': PutHybridMonitorMetricDataRequestMetricListLabels }, + name: 'string', + TS: 'number', + value: 'string', + }; + } + validate() { + if (Array.isArray(this.labels)) { + $dara.Model.validateArray(this.labels); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutHybridMonitorMetricDataRequestMetricList = PutHybridMonitorMetricDataRequestMetricList; +class PutHybridMonitorMetricDataRequest extends $dara.Model { + static names() { + return { + metricList: 'MetricList', + namespace: 'Namespace', + regionId: 'RegionId', + }; + } + static types() { + return { + metricList: { 'type': 'array', 'itemType': PutHybridMonitorMetricDataRequestMetricList }, + namespace: 'string', + regionId: 'string', + }; + } + validate() { + if (Array.isArray(this.metricList)) { + $dara.Model.validateArray(this.metricList); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutHybridMonitorMetricDataRequest = PutHybridMonitorMetricDataRequest; +//# sourceMappingURL=PutHybridMonitorMetricDataRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataRequest.js.map new file mode 100644 index 0000000..4a0862d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutHybridMonitorMetricDataRequest.js","sourceRoot":"","sources":["../../src/models/PutHybridMonitorMetricDataRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,iDAAkD,SAAQ,KAAK,CAAC,KAAK;IA2BhF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,GAAG,EAAE,KAAK;YACV,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,GAAG,EAAE,QAAQ;YACb,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAhDD,8GAgDC;AAED,MAAa,2CAA4C,SAAQ,KAAK,CAAC,KAAK;IAmD1E,M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IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjDD,8EAiDC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataResponse.d.ts new file mode 100644 index 0000000..dad2174 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { PutHybridMonitorMetricDataResponseBody } from "./PutHybridMonitorMetricDataResponseBody"; +export declare class PutHybridMonitorMetricDataResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: PutHybridMonitorMetricDataResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataResponse.js new file mode 100644 index 0000000..66c5185 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataResponse.js @@ -0,0 +1,69 @@ +"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.PutHybridMonitorMetricDataResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const PutHybridMonitorMetricDataResponseBody_1 = require("./PutHybridMonitorMetricDataResponseBody"); +class PutHybridMonitorMetricDataResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutHybridMonitorMetricDataResponseBody_1.PutHybridMonitorMetricDataResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutHybridMonitorMetricDataResponse = PutHybridMonitorMetricDataResponse; +//# sourceMappingURL=PutHybridMonitorMetricDataResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataResponse.js.map new file mode 100644 index 0000000..4addfec --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutHybridMonitorMetricDataResponse.js","sourceRoot":"","sources":["../../src/models/PutHybridMonitorMetricDataResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,qGAAkG;AAGlG,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;IAIjE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,+EAAsC;SAC7C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,gFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataResponseBody.d.ts new file mode 100644 index 0000000..fa69081 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataResponseBody.d.ts @@ -0,0 +1,66 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutHybridMonitorMetricDataResponseBodyErrorDetail extends $dara.Model { + /** + * @remarks + * The error message of the invalid parameter. + * + * @example + * label name :123 not match [a-zA-Z_][a-zA-Z0-9_]* + */ + errorMessage?: string; + /** + * @remarks + * The position of the error message in the array. + * + * @example + * 0 + */ + index?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutHybridMonitorMetricDataResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The details of invalid parameters. + * + * If a request parameter is invalid, the details of the invalid parameter are returned. + */ + errorDetail?: PutHybridMonitorMetricDataResponseBodyErrorDetail[]; + /** + * @remarks + * The request ID. + * + * @example + * 5DB1CBCA-D14A-55FA-814F-B4DBD9735F68 + */ + requestId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataResponseBody.js new file mode 100644 index 0000000..0e1dc5d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataResponseBody.js @@ -0,0 +1,86 @@ +"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.PutHybridMonitorMetricDataResponseBody = exports.PutHybridMonitorMetricDataResponseBodyErrorDetail = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutHybridMonitorMetricDataResponseBodyErrorDetail extends $dara.Model { + static names() { + return { + errorMessage: 'ErrorMessage', + index: 'Index', + }; + } + static types() { + return { + errorMessage: 'string', + index: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutHybridMonitorMetricDataResponseBodyErrorDetail = PutHybridMonitorMetricDataResponseBodyErrorDetail; +class PutHybridMonitorMetricDataResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + errorDetail: 'ErrorDetail', + requestId: 'RequestId', + }; + } + static types() { + return { + code: 'string', + errorDetail: { 'type': 'array', 'itemType': PutHybridMonitorMetricDataResponseBodyErrorDetail }, + requestId: 'string', + }; + } + validate() { + if (Array.isArray(this.errorDetail)) { + $dara.Model.validateArray(this.errorDetail); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutHybridMonitorMetricDataResponseBody = PutHybridMonitorMetricDataResponseBody; +//# sourceMappingURL=PutHybridMonitorMetricDataResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataResponseBody.js.map new file mode 100644 index 0000000..a900b9d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutHybridMonitorMetricDataResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutHybridMonitorMetricDataResponseBody.js","sourceRoot":"","sources":["../../src/models/PutHybridMonitorMetricDataResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,iDAAkD,SAAQ,KAAK,CAAC,KAAK;IAiBhF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,cAAc;YAC5B,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,QAAQ;YACtB,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtCD,8GAsCC;AAED,MAAa,sCAAuC,SAAQ,KAAK,CAAC,KAAK;IA0BrE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,aAAa;YAC1B,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,iDAAiD,EAAE;YAC/F,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;YACnC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC9C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApDD,wFAoDC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorRequest.d.ts new file mode 100644 index 0000000..2e87ba4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorRequest.d.ts @@ -0,0 +1,256 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutLogMonitorRequestAggregates extends $dara.Model { + /** + * @remarks + * The alias of the aggregate function. Valid values of N: 1 to 10. + * + * This parameter is required. + * + * @example + * Count + */ + alias?: string; + /** + * @remarks + * The name of the field to be aggregated. Valid values of N: 1 to 10. + * + * This parameter is required. + * + * @example + * sourceCount + */ + fieldName?: string; + /** + * @remarks + * The function that is used to aggregate log data within a statistical period. Valid values of N: 1 to 10. Valid values: + * + * * count: counts the number. + * * sum: calculates the total value. + * * avg: calculates the average value. + * * max: calculates the maximum value. + * * min: calculates the minimum value. + * * countps: calculates the number of values of the specified field divided by the total number of seconds within a statistical period. + * * sumps: calculates the sum of the values of the specified field divided by the total number of seconds within a statistical period. + * * distinct: calculates the number of unique values of the specified field within a statistical period. + * + * This parameter is required. + * + * @example + * count + */ + function?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutLogMonitorRequestGroupbys extends $dara.Model { + /** + * @remarks + * The alias of the dimension based on which the data is grouped. Valid values of N: 1 to 10. + * + * @example + * CPUUtilization + */ + alias?: string; + /** + * @remarks + * The name of the field that is specified as the dimension. Valid values of N: 1 to 10. + * + * @example + * cpu + */ + fieldName?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutLogMonitorRequestValueFilter extends $dara.Model { + /** + * @remarks + * The name of the log field that is used for matching in the filter condition. Valid values of N: 1 to 10. + * + * @example + * lh_source + */ + key?: string; + /** + * @remarks + * The method that is used to match the field value. Valid values of N: 1 to 10. Valid values: + * + * * `contain`: contains + * * `notContain`: does not contain + * * `>`: greater than + * * `<`: less than + * * `>=`: greater than or equal to + * * `<=`: less than or equal to + * + * @example + * contain + */ + operator?: string; + /** + * @remarks + * The field value to be matched in the filter condition. Valid values of N: 1 to 10. + * + * @example + * test + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutLogMonitorRequest extends $dara.Model { + /** + * @remarks + * The aggregation logic. + * + * This parameter is required. + */ + aggregates?: PutLogMonitorRequestAggregates[]; + /** + * @remarks + * The ID of the application group. + * + * @example + * 7301**** + */ + groupId?: string; + /** + * @remarks + * The dimension based on which the data is grouped. This parameter is equivalent to the GROUP BY clause in SQL statements. If no dimension is specified, all data is aggregated based on the aggregate function. + */ + groupbys?: PutLogMonitorRequestGroupbys[]; + /** + * @remarks + * The ID of the log monitoring metric. + * + * @example + * 16**** + */ + logId?: string; + /** + * @remarks + * The extended field. The extended field allows you to perform basic operations on the aggregation results. + * + * For example, you have calculated TotalNumber and 5XXNumber by aggregating the data. TotalNumber indicates the total number of HTTP requests, and 5XXNumber indicates the number of HTTP requests whose status code is greater than 499. You can calculate the server error rate by adding the following formula to the extended field: 5XXNumber/TotalNumber\\*100. + * + * JSON format: {"extend":{"errorPercent":"5XXNumber/TotalNumber\\*100"}}. Description: + * + * * extend: required. + * * errorPercent: the alias of the field generated in the calculation result. You can specify the alias as needed. + * * 5XXNumber/TotalNumber\\*100: the calculation expression. + * + * @example + * {"extend":{"errorPercent":"5XXNumber/TotalNumber*100"}} + */ + metricExpress?: string; + /** + * @remarks + * The metric name. For more information about the metrics for cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * cpu_total + */ + metricName?: string; + regionId?: string; + /** + * @remarks + * The name of the Simple Log Service Logstore. + * + * This parameter is required. + * + * @example + * test-logstore + */ + slsLogstore?: string; + /** + * @remarks + * The name of the Simple Log Service project. + * + * This parameter is required. + * + * @example + * test-project + */ + slsProject?: string; + /** + * @remarks + * The region in which the Simple Log Service project resides. + * + * This parameter is required. + * + * @example + * cn-hangzhou + */ + slsRegionId?: string; + /** + * @remarks + * The size of the tumbling window for calculation. Unit: seconds. CloudMonitor performs aggregation for each tumbling window. + * + * @example + * 60,300 + */ + tumblingwindows?: string; + /** + * @remarks + * The unit. + * + * @example + * Percent + */ + unit?: string; + /** + * @remarks + * The condition that is used to filter logs. The ValueFilter and ValueFilterRelation parameters are used in pair. The filter condition is equivalent to the WHERE clause in SQL statements. If no filter condition is specified, all logs are processed. For example, logs contain the Level and Error fields. If you need to calculate the number of times that logs of the Error level appear every minute, you can set the filter condition to Level=Error and count the number of logs that meet this condition. + */ + valueFilter?: PutLogMonitorRequestValueFilter[]; + /** + * @remarks + * The logical operator that is used between log filter conditions. Valid values: + * + * * and + * * or + * + * > The ValueFilterRelation and `ValueFilter.N.Key` parameters must be used in pair. + * + * This parameter is required. + * + * @example + * and + */ + valueFilterRelation?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorRequest.js new file mode 100644 index 0000000..f07284a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorRequest.js @@ -0,0 +1,160 @@ +"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.PutLogMonitorRequest = exports.PutLogMonitorRequestValueFilter = exports.PutLogMonitorRequestGroupbys = exports.PutLogMonitorRequestAggregates = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutLogMonitorRequestAggregates extends $dara.Model { + static names() { + return { + alias: 'Alias', + fieldName: 'FieldName', + function: 'Function', + }; + } + static types() { + return { + alias: 'string', + fieldName: 'string', + function: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutLogMonitorRequestAggregates = PutLogMonitorRequestAggregates; +class PutLogMonitorRequestGroupbys extends $dara.Model { + static names() { + return { + alias: 'Alias', + fieldName: 'FieldName', + }; + } + static types() { + return { + alias: 'string', + fieldName: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutLogMonitorRequestGroupbys = PutLogMonitorRequestGroupbys; +class PutLogMonitorRequestValueFilter extends $dara.Model { + static names() { + return { + key: 'Key', + operator: 'Operator', + value: 'Value', + }; + } + static types() { + return { + key: 'string', + operator: 'string', + value: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutLogMonitorRequestValueFilter = PutLogMonitorRequestValueFilter; +class PutLogMonitorRequest extends $dara.Model { + static names() { + return { + aggregates: 'Aggregates', + groupId: 'GroupId', + groupbys: 'Groupbys', + logId: 'LogId', + metricExpress: 'MetricExpress', + metricName: 'MetricName', + regionId: 'RegionId', + slsLogstore: 'SlsLogstore', + slsProject: 'SlsProject', + slsRegionId: 'SlsRegionId', + tumblingwindows: 'Tumblingwindows', + unit: 'Unit', + valueFilter: 'ValueFilter', + valueFilterRelation: 'ValueFilterRelation', + }; + } + static types() { + return { + aggregates: { 'type': 'array', 'itemType': PutLogMonitorRequestAggregates }, + groupId: 'string', + groupbys: { 'type': 'array', 'itemType': PutLogMonitorRequestGroupbys }, + logId: 'string', + metricExpress: 'string', + metricName: 'string', + regionId: 'string', + slsLogstore: 'string', + slsProject: 'string', + slsRegionId: 'string', + tumblingwindows: 'string', + unit: 'string', + valueFilter: { 'type': 'array', 'itemType': PutLogMonitorRequestValueFilter }, + valueFilterRelation: 'string', + }; + } + validate() { + if (Array.isArray(this.aggregates)) { + $dara.Model.validateArray(this.aggregates); + } + if (Array.isArray(this.groupbys)) { + $dara.Model.validateArray(this.groupbys); + } + if (Array.isArray(this.valueFilter)) { + $dara.Model.validateArray(this.valueFilter); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutLogMonitorRequest = PutLogMonitorRequest; +//# sourceMappingURL=PutLogMonitorRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorRequest.js.map new file mode 100644 index 0000000..eb2dabf --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutLogMonitorRequest.js","sourceRoot":"","sources":["../../src/models/PutLogMonitorRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,8BAA+B,S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C;QAC7C,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;YAChC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC3C,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;YACnC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC9C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAhLD,oDAgLC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorResponse.d.ts new file mode 100644 index 0000000..e0e1b04 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { PutLogMonitorResponseBody } from "./PutLogMonitorResponseBody"; +export declare class PutLogMonitorResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: PutLogMonitorResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorResponse.js new file mode 100644 index 0000000..a442527 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorResponse.js @@ -0,0 +1,69 @@ +"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.PutLogMonitorResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const PutLogMonitorResponseBody_1 = require("./PutLogMonitorResponseBody"); +class PutLogMonitorResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutLogMonitorResponseBody_1.PutLogMonitorResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutLogMonitorResponse = PutLogMonitorResponse; +//# sourceMappingURL=PutLogMonitorResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorResponse.js.map new file mode 100644 index 0000000..a73a996 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutLogMonitorResponse.js","sourceRoot":"","sources":["../../src/models/PutLogMonitorResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,2EAAwE;AAGxE,MAAa,qBAAsB,SAAQ,KAAK,CAAC,KAAK;IAIpD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,qDAAyB;SAChC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,sDAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorResponseBody.d.ts new file mode 100644 index 0000000..e22521e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorResponseBody.d.ts @@ -0,0 +1,61 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutLogMonitorResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The ID of the log monitoring metric. + * + * @example + * 16**** + */ + logId?: string; + /** + * @remarks + * The returned message. + * + * * If the request was successful, `successful` is returned. + * * If the request failed, an error message is returned. Example: `alias of aggreate must be set value.` + * + * @example + * successful + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 91561287-0802-5F9C-9BDE-404C50D41B06 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorResponseBody.js new file mode 100644 index 0000000..02b54ac --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorResponseBody.js @@ -0,0 +1,66 @@ +"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.PutLogMonitorResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutLogMonitorResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + logId: 'LogId', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + logId: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutLogMonitorResponseBody = PutLogMonitorResponseBody; +//# sourceMappingURL=PutLogMonitorResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorResponseBody.js.map new file mode 100644 index 0000000..92510f4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutLogMonitorResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutLogMonitorResponseBody.js","sourceRoot":"","sources":["../../src/models/PutLogMonitorResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IAiDxD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,OAAO;YACd,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5ED,8DA4EC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsRequest.d.ts new file mode 100644 index 0000000..6134553 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsRequest.d.ts @@ -0,0 +1,117 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutMetricRuleTargetsRequestTargets extends $dara.Model { + /** + * @remarks + * The Alibaba Cloud Resource Name (ARN) of the resource. Simple Message Queue (formerly MNS) (SMQ), Auto Scaling, Simple Log Service, and Function Compute are supported. + * + * The following part describes the ARN of SMQ and the parameters in the ARN: + * + * `acs:mns:{regionId}:{userId}:/{Resource type}/{Resource name}/message`. + * + * * {regionId}: the region ID of the SMQ queue or topic. + * + * * {userId}: the ID of the Alibaba Cloud account that owns the resource. + * + * * {Resource type}: the type of the resource for which alerts are triggered. Valid values: + * + * * **queues** + * * **topics** + * + * * {Resource name}: the resource name. + * + * * If the resource type is **queues**, the resource name is the queue name. + * * If the resource type is **topics**, the resource name is the topic name. + * + * ARN of Auto Scaling: + * + * acs:ess:{regionId}:{userId}:scalingGroupId/{Scaling group ID}:scalingRuleId/{Scaling rule ID} + * + * ARN of Simple Log Service: + * + * acs:log:{regionId}:{userId}:project/{Project name}/logstore/{Logstore name} + * + * ARN of Function Compute: + * + * acs:fc:{regionId}:{userId}:services/{Service name}/functions/{Function name} + * + * This parameter is required. + * + * @example + * acs:mns:cn-hangzhou:120886317861****:/queues/test/message + */ + arn?: string; + /** + * @remarks + * The ID of the resource for which alerts are triggered. + * + * For more information about how to obtain the ID of the resource for which alerts are triggered, see [DescribeMetricRuleTargets](https://help.aliyun.com/document_detail/121592.html). + * + * This parameter is required. + * + * @example + * 1 + */ + id?: string; + /** + * @remarks + * The parameters of the alert callback. The parameters are in the JSON format. + * + * @example + * {"customField1":"value1","customField2":"$.name"} + */ + jsonParams?: string; + /** + * @remarks + * The alert level. Valid values: + * + * * INFO + * * WARN + * * CRITICAL + * + * @example + * ["INFO", "WARN", "CRITICAL"] + */ + level?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutMetricRuleTargetsRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * The ID of the alert rule. + * + * For information about how to obtain the ID of an alert rule, see [DescribeMetricRuleList](https://help.aliyun.com/document_detail/114941.html). + * + * This parameter is required. + * + * @example + * ae06917_75a8c43178ab66**** + */ + ruleId?: string; + /** + * @remarks + * None. + * + * This parameter is required. + */ + targets?: PutMetricRuleTargetsRequestTargets[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsRequest.js new file mode 100644 index 0000000..c70347a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsRequest.js @@ -0,0 +1,90 @@ +"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.PutMetricRuleTargetsRequest = exports.PutMetricRuleTargetsRequestTargets = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutMetricRuleTargetsRequestTargets extends $dara.Model { + static names() { + return { + arn: 'Arn', + id: 'Id', + jsonParams: 'JsonParams', + level: 'Level', + }; + } + static types() { + return { + arn: 'string', + id: 'string', + jsonParams: 'string', + level: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutMetricRuleTargetsRequestTargets = PutMetricRuleTargetsRequestTargets; +class PutMetricRuleTargetsRequest extends $dara.Model { + static names() { + return { + regionId: 'RegionId', + ruleId: 'RuleId', + targets: 'Targets', + }; + } + static types() { + return { + regionId: 'string', + ruleId: 'string', + targets: { 'type': 'array', 'itemType': PutMetricRuleTargetsRequestTargets }, + }; + } + validate() { + if (Array.isArray(this.targets)) { + $dara.Model.validateArray(this.targets); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutMetricRuleTargetsRequest = PutMetricRuleTargetsRequest; +//# sourceMappingURL=PutMetricRuleTargetsRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsRequest.js.map new file mode 100644 index 0000000..c907ab4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutMetricRuleTargetsRequest.js","sourceRoot":"","sources":["../../src/models/PutMetricRuleTargetsRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;IAyEjE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,GAAG,EAAE,KAAK;YACV,EAAE,EAAE,IAAI;YACR,UAAU,EAAE,YAAY;YACxB,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,GAAG,EAAE,QAAQ;YACb,EAAE,EAAE,QAAQ;YACZ,UAAU,EAAE,QAAQ;YACpB,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAlGD,gFAkGC;AAED,MAAa,2BAA4B,SAAQ,KAAK,CAAC,KAAK;IAqB1D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,kCAAkC,EAAE;SAC7E,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;YAC/B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/CD,kEA+CC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsResponse.d.ts new file mode 100644 index 0000000..d094bee --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { PutMetricRuleTargetsResponseBody } from "./PutMetricRuleTargetsResponseBody"; +export declare class PutMetricRuleTargetsResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: PutMetricRuleTargetsResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsResponse.js new file mode 100644 index 0000000..5db2c01 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsResponse.js @@ -0,0 +1,69 @@ +"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.PutMetricRuleTargetsResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const PutMetricRuleTargetsResponseBody_1 = require("./PutMetricRuleTargetsResponseBody"); +class PutMetricRuleTargetsResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutMetricRuleTargetsResponseBody_1.PutMetricRuleTargetsResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutMetricRuleTargetsResponse = PutMetricRuleTargetsResponse; +//# sourceMappingURL=PutMetricRuleTargetsResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsResponse.js.map new file mode 100644 index 0000000..8e4fb60 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutMetricRuleTargetsResponse.js","sourceRoot":"","sources":["../../src/models/PutMetricRuleTargetsResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,yFAAsF;AAGtF,MAAa,4BAA6B,SAAQ,KAAK,CAAC,KAAK;IAI3D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,mEAAgC;SACvC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,oEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsResponseBody.d.ts new file mode 100644 index 0000000..94f4fe5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsResponseBody.d.ts @@ -0,0 +1,141 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutMetricRuleTargetsResponseBodyFailDataTargetsTarget extends $dara.Model { + /** + * @remarks + * The ARN of the resource. Format: `acs:{Service name abbreviation}:{regionId}:{userId}:/{Resource type}/{Resource name}/message`. SMQ, Auto Scaling, Simple Log Service, and Function Compute are supported. Example: `acs:mns:cn-hangzhou:120886317861****:/queues/test123/message`. The following part describes the ARN of SMQ and the parameters in the ARN: + * + * * {Service name abbreviation}: mns. + * + * * {userId}: the ID of the Alibaba Cloud account. + * + * * {regionId}: the region ID of the SMQ queue or topic. + * + * * {Resource type}: the type of the resource for which alerts are triggered. Valid values: + * + * * **queues** + * * **topics** + * + * * {Resource name}: the resource name. + * + * * If the resource type is **queues**, the resource name is the queue name. + * * If the resource type is **topics**, the resource name is the topic name. + * + * @example + * acs:mns:cn-hangzhou:111:/queues/test/message + */ + arn?: string; + /** + * @remarks + * The ID of the resource for which alerts are triggered. + * + * @example + * 1 + */ + id?: string; + /** + * @remarks + * The alert level. Valid values: + * + * * INFO + * * WARN + * * CRITICAL + * + * @example + * ["INFO", "WARN", "CRITICAL"] + */ + level?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutMetricRuleTargetsResponseBodyFailDataTargets extends $dara.Model { + target?: PutMetricRuleTargetsResponseBodyFailDataTargetsTarget[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutMetricRuleTargetsResponseBodyFailData extends $dara.Model { + /** + * @remarks + * The information about the resources for which alerts are triggered. + */ + targets?: PutMetricRuleTargetsResponseBodyFailDataTargets; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutMetricRuleTargetsResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The failed data. + */ + failData?: PutMetricRuleTargetsResponseBodyFailData; + /** + * @remarks + * The error message returned. + * + * @example + * The request processing has failed due to some unknown error. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 6A569B0D-9055-58AF-9E82-BAEAF95C0FD5 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true: The request was successful. + * * false: The request failed. + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsResponseBody.js new file mode 100644 index 0000000..70b16fd --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsResponseBody.js @@ -0,0 +1,136 @@ +"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.PutMetricRuleTargetsResponseBody = exports.PutMetricRuleTargetsResponseBodyFailData = exports.PutMetricRuleTargetsResponseBodyFailDataTargets = exports.PutMetricRuleTargetsResponseBodyFailDataTargetsTarget = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutMetricRuleTargetsResponseBodyFailDataTargetsTarget extends $dara.Model { + static names() { + return { + arn: 'Arn', + id: 'Id', + level: 'Level', + }; + } + static types() { + return { + arn: 'string', + id: 'string', + level: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutMetricRuleTargetsResponseBodyFailDataTargetsTarget = PutMetricRuleTargetsResponseBodyFailDataTargetsTarget; +class PutMetricRuleTargetsResponseBodyFailDataTargets extends $dara.Model { + static names() { + return { + target: 'Target', + }; + } + static types() { + return { + target: { 'type': 'array', 'itemType': PutMetricRuleTargetsResponseBodyFailDataTargetsTarget }, + }; + } + validate() { + if (Array.isArray(this.target)) { + $dara.Model.validateArray(this.target); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutMetricRuleTargetsResponseBodyFailDataTargets = PutMetricRuleTargetsResponseBodyFailDataTargets; +class PutMetricRuleTargetsResponseBodyFailData extends $dara.Model { + static names() { + return { + targets: 'Targets', + }; + } + static types() { + return { + targets: PutMetricRuleTargetsResponseBodyFailDataTargets, + }; + } + validate() { + if (this.targets && typeof this.targets.validate === 'function') { + this.targets.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutMetricRuleTargetsResponseBodyFailData = PutMetricRuleTargetsResponseBodyFailData; +class PutMetricRuleTargetsResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + failData: 'FailData', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + failData: PutMetricRuleTargetsResponseBodyFailData, + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + if (this.failData && typeof this.failData.validate === 'function') { + this.failData.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutMetricRuleTargetsResponseBody = PutMetricRuleTargetsResponseBody; +//# sourceMappingURL=PutMetricRuleTargetsResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsResponseBody.js.map new file mode 100644 index 0000000..5af0d23 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMetricRuleTargetsResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutMetricRuleTargetsResponseBody.js","sourceRoot":"","sources":["../../src/models/PutMetricRuleTargetsResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qDAAsD,SAAQ,KAAK,CAAC,KAAK;IA6CpF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,GAAG,EAAE,KAAK;YACV,EAAE,EAAE,IAAI;YACR,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,GAAG,EAAE,QAAQ;YACb,EAAE,EAAE,QAAQ;YACZ,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApED,sHAoEC;AAED,MAAa,+CAAgD,SAAQ,KAAK,CAAC,KAAK;IAE9E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,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IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,wCAAwC;YAClD,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,QAAQ,IAAI,OAAQ,IAAI,CAAC,QAAgB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACzE,IAAI,CAAC,QAAgB,CAAC,QAAQ,EAAE,CAAC;QACpC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,4EAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleRequest.d.ts new file mode 100644 index 0000000..96881b1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleRequest.d.ts @@ -0,0 +1,137 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutMonitorGroupDynamicRuleRequestGroupRulesFilters extends $dara.Model { + /** + * @remarks + * The method that is used to filter instances. Valid values of N: 1 to 3. Valid values: + * + * * contains: contains + * * notContains: does not contain + * * startWith: starts with a prefix + * * endWith: ends with a suffix + * + * This parameter is required. + * + * @example + * contains + */ + function?: string; + /** + * @remarks + * The name of the field based on which instances are filtered. Valid values of N: 1 to 3. + * + * Only hostnames are supported. Example: hostName. + * + * This parameter is required. + * + * @example + * hostName + */ + name?: string; + /** + * @remarks + * The value to be matched with the specified field. Valid values of N: 1 to 3. + * + * This parameter is required. + * + * @example + * nginx + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutMonitorGroupDynamicRuleRequestGroupRules extends $dara.Model { + /** + * @remarks + * The cloud service to which the alert rule is applied. Valid values of N: 1 to 3. Valid values: + * + * * ecs: Elastic Compute Service (ECS) + * * rds: ApsaraDB RDS + * * slb: Server Load Balancer (SLB) + * + * This parameter is required. + * + * @example + * ecs + */ + category?: string; + /** + * @remarks + * The logical operator used between conditional expressions in the alert rule. Valid values of N: 1 to 3. Valid values: + * + * * and: The instances that meet all the conditional expressions are automatically added to the application group. + * * or: The instances that meet one of the conditional expressions are automatically added to the application group. + * + * This parameter is required. + * + * @example + * and + */ + filterRelation?: string; + /** + * @remarks + * None. + * + * This parameter is required. + */ + filters?: PutMonitorGroupDynamicRuleRequestGroupRulesFilters[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutMonitorGroupDynamicRuleRequest extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * This parameter is required. + * + * @example + * 123456 + */ + groupId?: number; + /** + * @remarks + * None. + * + * This parameter is required. + */ + groupRules?: PutMonitorGroupDynamicRuleRequestGroupRules[]; + /** + * @remarks + * The mode for creating the alert rule. Valid values: + * + * * true: creates asynchronously + * * false (default): creates synchronously + * + * @example + * false + */ + isAsync?: boolean; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleRequest.js new file mode 100644 index 0000000..5243984 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleRequest.js @@ -0,0 +1,116 @@ +"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.PutMonitorGroupDynamicRuleRequest = exports.PutMonitorGroupDynamicRuleRequestGroupRules = exports.PutMonitorGroupDynamicRuleRequestGroupRulesFilters = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutMonitorGroupDynamicRuleRequestGroupRulesFilters extends $dara.Model { + static names() { + return { + function: 'Function', + name: 'Name', + value: 'Value', + }; + } + static types() { + return { + function: 'string', + name: 'string', + value: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutMonitorGroupDynamicRuleRequestGroupRulesFilters = PutMonitorGroupDynamicRuleRequestGroupRulesFilters; +class PutMonitorGroupDynamicRuleRequestGroupRules extends $dara.Model { + static names() { + return { + category: 'Category', + filterRelation: 'FilterRelation', + filters: 'Filters', + }; + } + static types() { + return { + category: 'string', + filterRelation: 'string', + filters: { 'type': 'array', 'itemType': PutMonitorGroupDynamicRuleRequestGroupRulesFilters }, + }; + } + validate() { + if (Array.isArray(this.filters)) { + $dara.Model.validateArray(this.filters); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutMonitorGroupDynamicRuleRequestGroupRules = PutMonitorGroupDynamicRuleRequestGroupRules; +class PutMonitorGroupDynamicRuleRequest extends $dara.Model { + static names() { + return { + groupId: 'GroupId', + groupRules: 'GroupRules', + isAsync: 'IsAsync', + regionId: 'RegionId', + }; + } + static types() { + return { + groupId: 'number', + groupRules: { 'type': 'array', 'itemType': PutMonitorGroupDynamicRuleRequestGroupRules }, + isAsync: 'boolean', + regionId: 'string', + }; + } + validate() { + if (Array.isArray(this.groupRules)) { + $dara.Model.validateArray(this.groupRules); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutMonitorGroupDynamicRuleRequest = PutMonitorGroupDynamicRuleRequest; +//# sourceMappingURL=PutMonitorGroupDynamicRuleRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleRequest.js.map new file mode 100644 index 0000000..2b689ac --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutMonitorGroupDynamicRuleRequest.js","sourceRoot":"","sources":["../../src/models/PutMonitorGroupDynamicRuleRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kDAAmD,SAAQ,KAAK,CAAC,KAAK;IAsCjF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,Q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,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;YAClC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC7C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA1DD,8EA0DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleResponse.d.ts new file mode 100644 index 0000000..3c00e65 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { PutMonitorGroupDynamicRuleResponseBody } from "./PutMonitorGroupDynamicRuleResponseBody"; +export declare class PutMonitorGroupDynamicRuleResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: PutMonitorGroupDynamicRuleResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleResponse.js new file mode 100644 index 0000000..858f64b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleResponse.js @@ -0,0 +1,69 @@ +"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.PutMonitorGroupDynamicRuleResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const PutMonitorGroupDynamicRuleResponseBody_1 = require("./PutMonitorGroupDynamicRuleResponseBody"); +class PutMonitorGroupDynamicRuleResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutMonitorGroupDynamicRuleResponseBody_1.PutMonitorGroupDynamicRuleResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutMonitorGroupDynamicRuleResponse = PutMonitorGroupDynamicRuleResponse; +//# sourceMappingURL=PutMonitorGroupDynamicRuleResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleResponse.js.map new file mode 100644 index 0000000..5009a74 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutMonitorGroupDynamicRuleResponse.js","sourceRoot":"","sources":["../../src/models/PutMonitorGroupDynamicRuleResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,qGAAkG;AAGlG,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;IAIjE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,+EAAsC;SAC7C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,gFAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleResponseBody.d.ts new file mode 100644 index 0000000..ff22e35 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutMonitorGroupDynamicRuleResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 3E73F1AB-D195-438A-BCA7-2F4355789C58 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleResponseBody.js new file mode 100644 index 0000000..1facc8f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleResponseBody.js @@ -0,0 +1,64 @@ +"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.PutMonitorGroupDynamicRuleResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutMonitorGroupDynamicRuleResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutMonitorGroupDynamicRuleResponseBody = PutMonitorGroupDynamicRuleResponseBody; +//# sourceMappingURL=PutMonitorGroupDynamicRuleResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleResponseBody.js.map new file mode 100644 index 0000000..df2d727 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitorGroupDynamicRuleResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutMonitorGroupDynamicRuleResponseBody.js","sourceRoot":"","sources":["../../src/models/PutMonitorGroupDynamicRuleResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,sCAAuC,SAAQ,KAAK,CAAC,KAAK;IAsCrE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,wFA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigRequest.d.ts new file mode 100644 index 0000000..966b4e4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigRequest.d.ts @@ -0,0 +1,33 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutMonitoringConfigRequest extends $dara.Model { + /** + * @remarks + * This parameter is deprecated. + * + * @example + * true + */ + autoInstall?: boolean; + /** + * @remarks + * Specifies whether to automatically install the CloudMonitor agent on new ECS instances. Valid values: + * + * * true (default): The CloudMonitor agent is automatically installed on new ECS instances. + * * false: The CloudMonitor agent is not automatically installed on new ECS instances. + * + * @example + * true + */ + enableInstallAgentNewECS?: boolean; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigRequest.js new file mode 100644 index 0000000..f392938 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigRequest.js @@ -0,0 +1,62 @@ +"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.PutMonitoringConfigRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutMonitoringConfigRequest extends $dara.Model { + static names() { + return { + autoInstall: 'AutoInstall', + enableInstallAgentNewECS: 'EnableInstallAgentNewECS', + regionId: 'RegionId', + }; + } + static types() { + return { + autoInstall: 'boolean', + enableInstallAgentNewECS: 'boolean', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutMonitoringConfigRequest = PutMonitoringConfigRequest; +//# sourceMappingURL=PutMonitoringConfigRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigRequest.js.map new file mode 100644 index 0000000..a073204 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutMonitoringConfigRequest.js","sourceRoot":"","sources":["../../src/models/PutMonitoringConfigRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IAqBzD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;YAC1B,wBAAwB,EAAE,0BAA0B;YACpD,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,SAAS;YACtB,wBAAwB,EAAE,SAAS;YACnC,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5CD,gEA4CC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigResponse.d.ts new file mode 100644 index 0000000..1d3d6b6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { PutMonitoringConfigResponseBody } from "./PutMonitoringConfigResponseBody"; +export declare class PutMonitoringConfigResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: PutMonitoringConfigResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigResponse.js new file mode 100644 index 0000000..edb63d3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigResponse.js @@ -0,0 +1,69 @@ +"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.PutMonitoringConfigResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const PutMonitoringConfigResponseBody_1 = require("./PutMonitoringConfigResponseBody"); +class PutMonitoringConfigResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutMonitoringConfigResponseBody_1.PutMonitoringConfigResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutMonitoringConfigResponse = PutMonitoringConfigResponse; +//# sourceMappingURL=PutMonitoringConfigResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigResponse.js.map new file mode 100644 index 0000000..98934de --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutMonitoringConfigResponse.js","sourceRoot":"","sources":["../../src/models/PutMonitoringConfigResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,uFAAoF;AAGpF,MAAa,2BAA4B,SAAQ,KAAK,CAAC,KAAK;IAI1D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,iEAA+B;SACtC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,kEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigResponseBody.d.ts new file mode 100644 index 0000000..a25457f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutMonitoringConfigResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The returned message. + * + * @example + * Specified parameter EnableInstallAgentNewECS is not valid. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 109C8095-6FAD-4DBB-B013-6ED18CE4C0B1 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigResponseBody.js new file mode 100644 index 0000000..b56c0b6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigResponseBody.js @@ -0,0 +1,64 @@ +"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.PutMonitoringConfigResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutMonitoringConfigResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutMonitoringConfigResponseBody = PutMonitoringConfigResponseBody; +//# sourceMappingURL=PutMonitoringConfigResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigResponseBody.js.map new file mode 100644 index 0000000..bab89c7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutMonitoringConfigResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutMonitoringConfigResponseBody.js","sourceRoot":"","sources":["../../src/models/PutMonitoringConfigResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAsC9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,0EA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleRequest.d.ts new file mode 100644 index 0000000..b543c38 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleRequest.d.ts @@ -0,0 +1,637 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutResourceMetricRuleRequestEscalationsCritical extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold for Critical-level alerts. Valid value: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * EqualToThreshold: equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The statistical methods for Critical-level alerts. + * + * The value of this parameter is determined by the `Statistics` column corresponding to the `MetricName` parameter of the specified cloud service. The value of this parameter can be Maximum, Minimum, or Average. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Critical-level alerts. + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * 90 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before a Critical-level alert is triggered. + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * 3 + */ + times?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutResourceMetricRuleRequestEscalationsInfo extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold for Info-level alerts. Valid value: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * EqualToThreshold: equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The statistical methods for Info-level alerts. + * + * The value of this parameter is determined by the `Statistics` column corresponding to the `MetricName` parameter of the specified cloud service. The value of this parameter can be Maximum, Minimum, or Average. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Info-level alerts. + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * 90 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before an Info-level alert is triggered. + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * 3 + */ + times?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutResourceMetricRuleRequestEscalationsWarn extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold for Warn-level alerts. Valid value: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * EqualToThreshold: equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The statistical methods for Warn-level alerts. + * + * The value of this parameter is determined by the `Statistics` column corresponding to the `MetricName` parameter of the specified cloud service. The value of this parameter can be Maximum, Minimum, or Average. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Warn-level alerts. + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * 90 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before a Warn-level alert is triggered. + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * 3 + */ + times?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutResourceMetricRuleRequestEscalations extends $dara.Model { + critical?: PutResourceMetricRuleRequestEscalationsCritical; + info?: PutResourceMetricRuleRequestEscalationsInfo; + warn?: PutResourceMetricRuleRequestEscalationsWarn; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutResourceMetricRuleRequestCompositeExpressionExpressionList extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold. Valid value: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * EqualToThreshold: equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The metric that is used to monitor the cloud service. + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The aggregation period of the metric. + * + * Unit: seconds. + * + * @example + * 60 + */ + period?: number; + /** + * @remarks + * The statistical method of the metric. Valid value: + * + * * $Maximum: the maximum value + * * $Minimum: the minimum value + * * $Average: the average value + * * $Availability: the availability rate (usually used for site monitoring) + * + * > `$` is the prefix of the metric. For information about the Alibaba Cloud services that are supported by CloudMonitor, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * $Maximum + */ + statistics?: string; + /** + * @remarks + * The alert threshold. + * + * @example + * 90 + */ + threshold?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutResourceMetricRuleRequestCompositeExpression extends $dara.Model { + /** + * @remarks + * The trigger conditions that are created in standard mode. + */ + expressionList?: PutResourceMetricRuleRequestCompositeExpressionExpressionList[]; + /** + * @remarks + * The relationship between the trigger conditions for multiple metrics. Valid value: + * + * * `&&`: An alert is triggered only if all metrics meet the trigger conditions. An alert is triggered only if the results of all expressions specified in the ExpressionList parameter are `true`. + * * `||`: An alert is triggered if one of the metrics meets the trigger conditions. + * + * @example + * || + */ + expressionListJoin?: string; + /** + * @remarks + * The trigger conditions that are created by using expressions. You can use expressions to create trigger conditions in the following scenarios: + * + * * Set an alert blacklist for specific resources. For example, if you specify `$instanceId != \\"i-io8kfvcpp7x5****\\" ``&&`` $Average > 50`, no alert is triggered when the `average metric value` of the `i-io8kfvcpp7x5****` instance exceeds 50. + * * Set a special alert threshold for a specified instance in the rule. For example, if you specify `$Average > ($instanceId == \\"i-io8kfvcpp7x5****\\"? 80: 50)`, an alert is triggered when the `average metric value` of the `i-io8kfvcpp7x5****` instance exceeds 80 or the `average metric value` of other instances exceeds 50. + * * Limit the number of instances whose metric values exceed the threshold. For example, if you specify `count($Average > 20) > 3`, an alert is triggered only when the `average metric value` of more than three instances exceeds 20. + * + * @example + * $Average > ($instanceId == \\"i-io8kfvcpp7x5****\\"? 80: 50) + */ + expressionRaw?: string; + /** + * @remarks + * The alert level. Valid values: + * + * * Critical + * * Warn + * * Info + * + * @example + * Critical + */ + level?: string; + /** + * @remarks + * The number of consecutive triggers. If the number of times that the metric values meet the trigger conditions reaches the value of this parameter, CloudMonitor sends alert notifications. + * + * @example + * 3 + */ + times?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutResourceMetricRuleRequestLabels 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 PutResourceMetricRuleRequestPrometheusAnnotations extends $dara.Model { + /** + * @remarks + * The key of the annotation. + * + * @example + * summary + */ + key?: string; + /** + * @remarks + * The value of the annotation. + * + * @example + * {{ $labels.instance }} CPU usage above 10% {current value: {{ humanizePercentage $value }} } + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutResourceMetricRuleRequestPrometheus extends $dara.Model { + /** + * @remarks + * The annotations of the Prometheus alert rule. When a Prometheus alert is triggered, the system renders the annotated keys and values to help you understand the metrics and alert rule. + * + * > This parameter is equivalent to the annotations parameter of open source Prometheus. + */ + annotations?: PutResourceMetricRuleRequestPrometheusAnnotations[]; + /** + * @remarks + * The alert level. Valid values: + * + * * Critical + * * Warn + * * Info + * + * @example + * Critical + */ + level?: string; + /** + * @remarks + * PromQL statements are supported. + * + * > The data obtained by using the PromQL query statement is the monitoring data. You must include the alert threshold in this statement. + * + * @example + * cpuUsage{instanceId="xxxx"}[1m]>90 + */ + promQL?: string; + /** + * @remarks + * The number of consecutive triggers. If the number of times that the metric values meet the trigger conditions reaches the value of this parameter, CloudMonitor sends alert notifications. + * + * @example + * 3 + */ + times?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutResourceMetricRuleRequest extends $dara.Model { + escalations?: PutResourceMetricRuleRequestEscalations; + /** + * @remarks + * The trigger conditions for multiple metrics. + * + * > The trigger conditions for a single metric and multiple metrics are mutually exclusive. You cannot specify trigger conditions for a single metric and multiple metrics at the same time. + */ + compositeExpression?: PutResourceMetricRuleRequestCompositeExpression; + /** + * @remarks + * The alert contact groups. Alert notifications are sent to the alert contacts in the alert contact group. + * + * > 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 period of time during which the alert rule is effective. + * + * @example + * 00:00-23:59 + */ + effectiveInterval?: string; + /** + * @remarks + * The subject of the alert notification email. + */ + emailSubject?: string; + /** + * @remarks + * The interval at which alerts are triggered based on the alert rule. Unit: seconds. + * + * > For more information about how to query the statistical periods of metrics, 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. + * + * > This parameter is equivalent to the Label parameter of Prometheus alerts. + */ + labels?: PutResourceMetricRuleRequestLabels[]; + /** + * @remarks + * The metric name. For more information about how to query metric names, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * > If you create a Prometheus alert rule for Hybrid Cloud Monitoring, you must set this parameter to the name of the namespace. For more information about how to query the names of namespaces, see [DescribeHybridMonitorNamespaceList](https://help.aliyun.com/document_detail/428880.html). + * + * This parameter is required. + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. For more information about how to query the namespaces of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * > If you create a Prometheus alert rule for Hybrid Cloud Monitoring, you must set this parameter to `acs_prometheus`. + * + * 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 value: + * + * * 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. + * + * @example + * KEEP_LAST_STATE + */ + noDataPolicy?: string; + /** + * @remarks + * The period of time during which the alert rule is ineffective. + * + * @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. + * + * > For more information about how to query the statistical periods of metrics, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * 60 + */ + period?: string; + /** + * @remarks + * Prometheus alerts. + * + * > This parameter is required only if you create a Prometheus alert rule for Hybrid Cloud Monitoring. + */ + prometheus?: PutResourceMetricRuleRequestPrometheus; + /** + * @remarks + * The resource information. Examples: `[{"instanceId":"i-uf6j91r34rnwawoo****"}]` and `[{"userId":"100931896542****"}]`. + * + * 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). + * + * @example + * [{"instanceId":"i-uf6j91r34rnwawoo****"}] + */ + resources?: string; + /** + * @remarks + * The ID of the alert rule. + * + * You can specify a new ID or the ID of an existing alert rule. For more information about how to query the IDs of alert rules, 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. + * + * You can specify a new name or the name of an existing alert rule. For more information about how to query the names of alert rules, 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. + * + * > 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. + * + * @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; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleRequest.js new file mode 100644 index 0000000..a7f4ddd --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleRequest.js @@ -0,0 +1,338 @@ +"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 \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleRequest.js.map new file mode 100644 index 0000000..f2b11f4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutResourceMetricRuleRequest.js","sourceRoot":"","sources":["../../src/models/PutResourceMetricRuleRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,+CAAgD,SAAQ,KAAK,CAAC,KAAK;IAwD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Y,EAAE,QAAQ;YACtB,mBAAmB,EAAE,QAAQ;YAC7B,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,sCAAsC;YAClD,SAAS,EAAE,QAAQ;YACnB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,QAAQ;YAClB,WAAW,EAAE,QAAQ;YACrB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,WAAW,IAAI,OAAQ,IAAI,CAAC,WAAmB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YAC/E,IAAI,CAAC,WAAmB,CAAC,QAAQ,EAAE,CAAC;QACvC,CAAC;QACD,IAAG,IAAI,CAAC,mBAAmB,IAAI,OAAQ,IAAI,CAAC,mBAA2B,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YAC/F,IAAI,CAAC,mBAA2B,CAAC,QAAQ,EAAE,CAAC;QAC/C,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;YAC9B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACzC,CAAC;QACD,IAAG,IAAI,CAAC,UAAU,IAAI,OAAQ,IAAI,CAAC,UAAkB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YAC7E,IAAI,CAAC,UAAkB,CAAC,QAAQ,EAAE,CAAC;QACtC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzOD,oEAyOC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleResponse.d.ts new file mode 100644 index 0000000..4791650 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { PutResourceMetricRuleResponseBody } from "./PutResourceMetricRuleResponseBody"; +export declare class PutResourceMetricRuleResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: PutResourceMetricRuleResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleResponse.js new file mode 100644 index 0000000..f6fcfe7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleResponse.js @@ -0,0 +1,69 @@ +"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.PutResourceMetricRuleResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const PutResourceMetricRuleResponseBody_1 = require("./PutResourceMetricRuleResponseBody"); +class PutResourceMetricRuleResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutResourceMetricRuleResponseBody_1.PutResourceMetricRuleResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutResourceMetricRuleResponse = PutResourceMetricRuleResponse; +//# sourceMappingURL=PutResourceMetricRuleResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleResponse.js.map new file mode 100644 index 0000000..27514a7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutResourceMetricRuleResponse.js","sourceRoot":"","sources":["../../src/models/PutResourceMetricRuleResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,2FAAwF;AAGxF,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IAI5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,qEAAiC;SACxC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,sEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleResponseBody.d.ts new file mode 100644 index 0000000..7cc62d7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutResourceMetricRuleResponseBody extends $dara.Model { + /** + * @remarks + * The responses code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * The request processing has failed due to some unknown error. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 65D50468-ECEF-48F1-A6E1-D952E89D9436 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleResponseBody.js new file mode 100644 index 0000000..a2ec4e1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleResponseBody.js @@ -0,0 +1,64 @@ +"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.PutResourceMetricRuleResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutResourceMetricRuleResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutResourceMetricRuleResponseBody = PutResourceMetricRuleResponseBody; +//# sourceMappingURL=PutResourceMetricRuleResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleResponseBody.js.map new file mode 100644 index 0000000..1206e10 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutResourceMetricRuleResponseBody.js","sourceRoot":"","sources":["../../src/models/PutResourceMetricRuleResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,iCAAkC,SAAQ,KAAK,CAAC,KAAK;IAsChE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,8EA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleShrinkRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleShrinkRequest.d.ts new file mode 100644 index 0000000..137f06a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleShrinkRequest.d.ts @@ -0,0 +1,426 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutResourceMetricRuleShrinkRequestEscalationsCritical extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold for Critical-level alerts. Valid value: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * EqualToThreshold: equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The statistical methods for Critical-level alerts. + * + * The value of this parameter is determined by the `Statistics` column corresponding to the `MetricName` parameter of the specified cloud service. The value of this parameter can be Maximum, Minimum, or Average. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Critical-level alerts. + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * 90 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before a Critical-level alert is triggered. + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * 3 + */ + times?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutResourceMetricRuleShrinkRequestEscalationsInfo extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold for Info-level alerts. Valid value: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * EqualToThreshold: equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The statistical methods for Info-level alerts. + * + * The value of this parameter is determined by the `Statistics` column corresponding to the `MetricName` parameter of the specified cloud service. The value of this parameter can be Maximum, Minimum, or Average. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Info-level alerts. + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * 90 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before an Info-level alert is triggered. + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * 3 + */ + times?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutResourceMetricRuleShrinkRequestEscalationsWarn extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold for Warn-level alerts. Valid value: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * EqualToThreshold: equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The statistical methods for Warn-level alerts. + * + * The value of this parameter is determined by the `Statistics` column corresponding to the `MetricName` parameter of the specified cloud service. The value of this parameter can be Maximum, Minimum, or Average. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Warn-level alerts. + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * 90 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before a Warn-level alert is triggered. + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * 3 + */ + times?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutResourceMetricRuleShrinkRequestEscalations extends $dara.Model { + critical?: PutResourceMetricRuleShrinkRequestEscalationsCritical; + info?: PutResourceMetricRuleShrinkRequestEscalationsInfo; + warn?: PutResourceMetricRuleShrinkRequestEscalationsWarn; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutResourceMetricRuleShrinkRequestLabels 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 PutResourceMetricRuleShrinkRequest extends $dara.Model { + escalations?: PutResourceMetricRuleShrinkRequestEscalations; + /** + * @remarks + * The trigger conditions for multiple metrics. + * + * > The trigger conditions for a single metric and multiple metrics are mutually exclusive. You cannot specify trigger conditions for a single metric and multiple metrics at the same time. + */ + compositeExpressionShrink?: string; + /** + * @remarks + * The alert contact groups. Alert notifications are sent to the alert contacts in the alert contact group. + * + * > 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 period of time during which the alert rule is effective. + * + * @example + * 00:00-23:59 + */ + effectiveInterval?: string; + /** + * @remarks + * The subject of the alert notification email. + */ + emailSubject?: string; + /** + * @remarks + * The interval at which alerts are triggered based on the alert rule. Unit: seconds. + * + * > For more information about how to query the statistical periods of metrics, 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. + * + * > This parameter is equivalent to the Label parameter of Prometheus alerts. + */ + labels?: PutResourceMetricRuleShrinkRequestLabels[]; + /** + * @remarks + * The metric name. For more information about how to query metric names, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * > If you create a Prometheus alert rule for Hybrid Cloud Monitoring, you must set this parameter to the name of the namespace. For more information about how to query the names of namespaces, see [DescribeHybridMonitorNamespaceList](https://help.aliyun.com/document_detail/428880.html). + * + * This parameter is required. + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. For more information about how to query the namespaces of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * > If you create a Prometheus alert rule for Hybrid Cloud Monitoring, you must set this parameter to `acs_prometheus`. + * + * 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 value: + * + * * 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. + * + * @example + * KEEP_LAST_STATE + */ + noDataPolicy?: string; + /** + * @remarks + * The period of time during which the alert rule is ineffective. + * + * @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. + * + * > For more information about how to query the statistical periods of metrics, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * 60 + */ + period?: string; + /** + * @remarks + * Prometheus alerts. + * + * > This parameter is required only if you create a Prometheus alert rule for Hybrid Cloud Monitoring. + */ + prometheusShrink?: string; + /** + * @remarks + * The resource information. Examples: `[{"instanceId":"i-uf6j91r34rnwawoo****"}]` and `[{"userId":"100931896542****"}]`. + * + * 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). + * + * @example + * [{"instanceId":"i-uf6j91r34rnwawoo****"}] + */ + resources?: string; + /** + * @remarks + * The ID of the alert rule. + * + * You can specify a new ID or the ID of an existing alert rule. For more information about how to query the IDs of alert rules, 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. + * + * You can specify a new name or the name of an existing alert rule. For more information about how to query the names of alert rules, 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. + * + * > 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. + * + * @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; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleShrinkRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleShrinkRequest.js new file mode 100644 index 0000000..0b85d61 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleShrinkRequest.js @@ -0,0 +1,226 @@ +"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 \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleShrinkRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleShrinkRequest.js.map new file mode 100644 index 0000000..4ca425a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleShrinkRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutResourceMetricRuleShrinkRequest.js","sourceRoot":"","sources":["../../src/models/PutResourceMetricRuleShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qDAAsD,SAAQ,KAAK,CAAC,KAAK;IAwDpF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,kBAAkB,EAAE,oBAAoB;YACxC,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,KAAK,EAAE,OAAO;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AAS,EAAE,QAAQ;YACnB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,QAAQ;YAClB,WAAW,EAAE,QAAQ;YACrB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,WAAW,IAAI,OAAQ,IAAI,CAAC,WAAmB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YAC/E,IAAI,CAAC,WAAmB,CAAC,QAAQ,EAAE,CAAC;QACvC,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;YAC9B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACzC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnOD,gFAmOC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesRequest.d.ts new file mode 100644 index 0000000..f2784e6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesRequest.d.ts @@ -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; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesRequest.js new file mode 100644 index 0000000..e372b99 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesRequest.js @@ -0,0 +1,256 @@ +"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.PutResourceMetricRulesRequest = exports.PutResourceMetricRulesRequestRules = exports.PutResourceMetricRulesRequestRulesLabels = exports.PutResourceMetricRulesRequestRulesEscalations = exports.PutResourceMetricRulesRequestRulesEscalationsWarn = exports.PutResourceMetricRulesRequestRulesEscalationsInfo = exports.PutResourceMetricRulesRequestRulesEscalationsCritical = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutResourceMetricRulesRequestRulesEscalationsCritical extends $dara.Model { + static names() { + return { + comparisonOperator: 'ComparisonOperator', + n: 'N', + preCondition: 'PreCondition', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + static types() { + return { + comparisonOperator: 'string', + n: 'number', + preCondition: 'string', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutResourceMetricRulesRequestRulesEscalationsCritical = PutResourceMetricRulesRequestRulesEscalationsCritical; +class PutResourceMetricRulesRequestRulesEscalationsInfo extends $dara.Model { + static names() { + return { + comparisonOperator: 'ComparisonOperator', + n: 'N', + preCondition: 'PreCondition', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + static types() { + return { + comparisonOperator: 'string', + n: 'number', + preCondition: 'string', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutResourceMetricRulesRequestRulesEscalationsInfo = PutResourceMetricRulesRequestRulesEscalationsInfo; +class PutResourceMetricRulesRequestRulesEscalationsWarn extends $dara.Model { + static names() { + return { + comparisonOperator: 'ComparisonOperator', + n: 'N', + preCondition: 'PreCondition', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + static types() { + return { + comparisonOperator: 'string', + n: 'number', + preCondition: 'string', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutResourceMetricRulesRequestRulesEscalationsWarn = PutResourceMetricRulesRequestRulesEscalationsWarn; +class PutResourceMetricRulesRequestRulesEscalations extends $dara.Model { + static names() { + return { + critical: 'Critical', + info: 'Info', + warn: 'Warn', + }; + } + static types() { + return { + critical: PutResourceMetricRulesRequestRulesEscalationsCritical, + info: PutResourceMetricRulesRequestRulesEscalationsInfo, + warn: PutResourceMetricRulesRequestRulesEscalationsWarn, + }; + } + 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.PutResourceMetricRulesRequestRulesEscalations = PutResourceMetricRulesRequestRulesEscalations; +class PutResourceMetricRulesRequestRulesLabels 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.PutResourceMetricRulesRequestRulesLabels = PutResourceMetricRulesRequestRulesLabels; +class PutResourceMetricRulesRequestRules extends $dara.Model { + static names() { + return { + escalations: 'Escalations', + contactGroups: 'ContactGroups', + effectiveInterval: 'EffectiveInterval', + emailSubject: 'EmailSubject', + interval: 'Interval', + labels: 'Labels', + metricName: 'MetricName', + namespace: 'Namespace', + noDataPolicy: 'NoDataPolicy', + noEffectiveInterval: 'NoEffectiveInterval', + period: 'Period', + resources: 'Resources', + ruleId: 'RuleId', + ruleName: 'RuleName', + silenceTime: 'SilenceTime', + webhook: 'Webhook', + }; + } + static types() { + return { + escalations: PutResourceMetricRulesRequestRulesEscalations, + contactGroups: 'string', + effectiveInterval: 'string', + emailSubject: 'string', + interval: 'string', + labels: { 'type': 'array', 'itemType': PutResourceMetricRulesRequestRulesLabels }, + metricName: 'string', + namespace: 'string', + noDataPolicy: 'string', + noEffectiveInterval: 'string', + period: '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.PutResourceMetricRulesRequestRules = PutResourceMetricRulesRequestRules; +class PutResourceMetricRulesRequest extends $dara.Model { + static names() { + return { + rules: 'Rules', + }; + } + static types() { + return { + rules: { 'type': 'array', 'itemType': PutResourceMetricRulesRequestRules }, + }; + } + validate() { + if (Array.isArray(this.rules)) { + $dara.Model.validateArray(this.rules); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutResourceMetricRulesRequest = PutResourceMetricRulesRequest; +//# sourceMappingURL=PutResourceMetricRulesRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesRequest.js.map new file mode 100644 index 0000000..c84a0b4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutResourceMetricRulesRequest.js","sourceRoot":"","sources":["../../src/models/PutResourceMetricRulesRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qDAAsD,SAAQ,KAAK,CAAC,KAAK;IAOpF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,kBAAkB,EAAE,oBAAoB;YACxC,CAAC,EAAE,GAAG;YACN,YAAY,EAAE,cAAc;YAC5B,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,kBAAkB,EAAE,QAAQ;YAC5B,CAAC,EAAE,QAAQ;YACX,YAAY,EAAE,QAAQ;YACtB,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;YACnB,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApCD,sHAoCC;AAED,MAAa,iDAAkD,SAAQ,KAAK,CAAC,KAAK;IAOhF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,kBAAkB,EAAE,oBAAoB;YACxC,CAAC,EAAE,GAAG;YACN,YAAY,EAAE,cAAc;YAC5B,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;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,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjPD,gFAiPC;AAED,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IAU5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,kCAAkC,EAAE;SAC3E,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YAC7B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACxC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAhCD,sEAgCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesResponse.d.ts new file mode 100644 index 0000000..6b5b52b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { PutResourceMetricRulesResponseBody } from "./PutResourceMetricRulesResponseBody"; +export declare class PutResourceMetricRulesResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: PutResourceMetricRulesResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesResponse.js new file mode 100644 index 0000000..b5f85e4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesResponse.js @@ -0,0 +1,69 @@ +"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.PutResourceMetricRulesResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const PutResourceMetricRulesResponseBody_1 = require("./PutResourceMetricRulesResponseBody"); +class PutResourceMetricRulesResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutResourceMetricRulesResponseBody_1.PutResourceMetricRulesResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutResourceMetricRulesResponse = PutResourceMetricRulesResponse; +//# sourceMappingURL=PutResourceMetricRulesResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesResponse.js.map new file mode 100644 index 0000000..0adf349 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutResourceMetricRulesResponse.js","sourceRoot":"","sources":["../../src/models/PutResourceMetricRulesResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,6FAA0F;AAG1F,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAI7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,uEAAkC;SACzC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,wEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesResponseBody.d.ts new file mode 100644 index 0000000..25e7ff3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesResponseBody.d.ts @@ -0,0 +1,132 @@ +import * as $dara from '@darabonba/typescript'; +export declare class PutResourceMetricRulesResponseBodyFailedListResultTargetResult extends $dara.Model { + /** + * @remarks + * The response code. + * + * @example + * 404 + */ + code?: string; + /** + * @remarks + * The error message returned. + * + * @example + * The request processing has failed due to some unknown error. + */ + message?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * false + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutResourceMetricRulesResponseBodyFailedListResultTarget extends $dara.Model { + /** + * @remarks + * The alert rule that failed to be created. + */ + result?: PutResourceMetricRulesResponseBodyFailedListResultTargetResult; + /** + * @remarks + * The ID of the alert rule. + * + * @example + * a151cd6023eacee2f0978e03863cc1697c89508**** + */ + ruleId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutResourceMetricRulesResponseBodyFailedListResult extends $dara.Model { + target?: PutResourceMetricRulesResponseBodyFailedListResultTarget[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class PutResourceMetricRulesResponseBody extends $dara.Model { + /** + * @remarks + * The response code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The alert rules that failed to be created for the resource. + */ + failedListResult?: PutResourceMetricRulesResponseBodyFailedListResult; + /** + * @remarks + * The error message returned. + * + * @example + * The request processing has failed due to some unknown error. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 15D1440E-BF24-5A41-93E4-36864635179E + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesResponseBody.js new file mode 100644 index 0000000..0268c5f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesResponseBody.js @@ -0,0 +1,138 @@ +"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.PutResourceMetricRulesResponseBody = exports.PutResourceMetricRulesResponseBodyFailedListResult = exports.PutResourceMetricRulesResponseBodyFailedListResultTarget = exports.PutResourceMetricRulesResponseBodyFailedListResultTargetResult = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class PutResourceMetricRulesResponseBodyFailedListResultTargetResult extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutResourceMetricRulesResponseBodyFailedListResultTargetResult = PutResourceMetricRulesResponseBodyFailedListResultTargetResult; +class PutResourceMetricRulesResponseBodyFailedListResultTarget extends $dara.Model { + static names() { + return { + result: 'Result', + ruleId: 'RuleId', + }; + } + static types() { + return { + result: PutResourceMetricRulesResponseBodyFailedListResultTargetResult, + ruleId: 'string', + }; + } + validate() { + if (this.result && typeof this.result.validate === 'function') { + this.result.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutResourceMetricRulesResponseBodyFailedListResultTarget = PutResourceMetricRulesResponseBodyFailedListResultTarget; +class PutResourceMetricRulesResponseBodyFailedListResult extends $dara.Model { + static names() { + return { + target: 'Target', + }; + } + static types() { + return { + target: { 'type': 'array', 'itemType': PutResourceMetricRulesResponseBodyFailedListResultTarget }, + }; + } + validate() { + if (Array.isArray(this.target)) { + $dara.Model.validateArray(this.target); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutResourceMetricRulesResponseBodyFailedListResult = PutResourceMetricRulesResponseBodyFailedListResult; +class PutResourceMetricRulesResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + failedListResult: 'FailedListResult', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + failedListResult: PutResourceMetricRulesResponseBodyFailedListResult, + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + if (this.failedListResult && typeof this.failedListResult.validate === 'function') { + this.failedListResult.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.PutResourceMetricRulesResponseBody = PutResourceMetricRulesResponseBody; +//# sourceMappingURL=PutResourceMetricRulesResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesResponseBody.js.map new file mode 100644 index 0000000..187c556 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRulesResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PutResourceMetricRulesResponseBody.js","sourceRoot":"","sources":["../../src/models/PutResourceMetricRulesResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,8DAA+D,SAAQ,KAAK,CAAC,KAAK;IA4B7F,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnDD,wIAmDC;AAED,MAAa,wDAAyD,SAAQ,KAAK,CAAC,KAAK;IAcvF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,K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AAE,QAAQ;YACd,gBAAgB,EAAE,kDAAkD;YACpE,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,gBAAgB,IAAI,OAAQ,IAAI,CAAC,gBAAwB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACzF,IAAI,CAAC,gBAAwB,CAAC,QAAQ,EAAE,CAAC;QAC5C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,gFAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsRequest.d.ts new file mode 100644 index 0000000..8df7929 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsRequest.d.ts @@ -0,0 +1,67 @@ +import * as $dara from '@darabonba/typescript'; +export declare class RemoveTagsRequestTag extends $dara.Model { + /** + * @remarks + * The tag key. + * + * > The tag key (`Tag.N.Key`) and tag value (`Tag.N.Value`) must be specified at the same time. + * + * This parameter is required. + * + * @example + * Key1 + */ + key?: string; + /** + * @remarks + * The tag value. + * + * > The tag key (`Tag.N.Key`) and tag value (`Tag.N.Value`) must be specified at the same time. + * + * This parameter is required. + * + * @example + * Value1 + */ + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class RemoveTagsRequest extends $dara.Model { + /** + * @remarks + * The IDs of the application groups. + * + * This parameter is required. + * + * @example + * 12345 + */ + groupIds?: string[]; + regionId?: string; + /** + * @remarks + * The tags. + * + * This parameter is required. + */ + tag?: RemoveTagsRequestTag[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsRequest.js new file mode 100644 index 0000000..a0acdc5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsRequest.js @@ -0,0 +1,89 @@ +"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.RemoveTagsRequest = exports.RemoveTagsRequestTag = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class RemoveTagsRequestTag 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.RemoveTagsRequestTag = RemoveTagsRequestTag; +class RemoveTagsRequest extends $dara.Model { + static names() { + return { + groupIds: 'GroupIds', + regionId: 'RegionId', + tag: 'Tag', + }; + } + static types() { + return { + groupIds: { 'type': 'array', 'itemType': 'string' }, + regionId: 'string', + tag: { 'type': 'array', 'itemType': RemoveTagsRequestTag }, + }; + } + validate() { + if (Array.isArray(this.groupIds)) { + $dara.Model.validateArray(this.groupIds); + } + if (Array.isArray(this.tag)) { + $dara.Model.validateArray(this.tag); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.RemoveTagsRequest = RemoveTagsRequest; +//# sourceMappingURL=RemoveTagsRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsRequest.js.map new file mode 100644 index 0000000..561b760 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"RemoveTagsRequest.js","sourceRoot":"","sources":["../../src/models/RemoveTagsRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oBAAqB,SAAQ,KAAK,CAAC,KAAK;IAyBnD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,GAAG,EAAE,KAAK;YACV,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,GAAG,EAAE,QAAQ;YACb,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA9CD,oDA8CC;AAED,MAAa,iBAAkB,SAAQ,KAAK,CAAC,KAAK;IAmBhD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,GAAG,EAAE,KAAK;SACX,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YACnD,QAAQ,EAAE,QAAQ;YAClB,GAAG,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE;SAC3D,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;YAChC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC3C,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;YAC3B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACtC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAhDD,8CAgDC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsResponse.d.ts new file mode 100644 index 0000000..5270bda --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { RemoveTagsResponseBody } from "./RemoveTagsResponseBody"; +export declare class RemoveTagsResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: RemoveTagsResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsResponse.js new file mode 100644 index 0000000..b64e2bd --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsResponse.js @@ -0,0 +1,69 @@ +"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.RemoveTagsResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const RemoveTagsResponseBody_1 = require("./RemoveTagsResponseBody"); +class RemoveTagsResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: RemoveTagsResponseBody_1.RemoveTagsResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.RemoveTagsResponse = RemoveTagsResponse; +//# sourceMappingURL=RemoveTagsResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsResponse.js.map new file mode 100644 index 0000000..c05dfa4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"RemoveTagsResponse.js","sourceRoot":"","sources":["../../src/models/RemoveTagsResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,qEAAkE;AAGlE,MAAa,kBAAmB,SAAQ,KAAK,CAAC,KAAK;IAIjD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,+CAAsB;SAC7B,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,gDAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsResponseBody.d.ts new file mode 100644 index 0000000..f80285c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsResponseBody.d.ts @@ -0,0 +1,68 @@ +import * as $dara from '@darabonba/typescript'; +export declare class RemoveTagsResponseBodyTag extends $dara.Model { + tags?: string[]; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class RemoveTagsResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * Illegal parameters. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 195390D2-69D0-4D9E-81AA-A7F5BC1B91EB + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The deleted tags. + */ + tag?: RemoveTagsResponseBodyTag; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsResponseBody.js new file mode 100644 index 0000000..86371f5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsResponseBody.js @@ -0,0 +1,91 @@ +"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.RemoveTagsResponseBody = exports.RemoveTagsResponseBodyTag = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class RemoveTagsResponseBodyTag extends $dara.Model { + static names() { + return { + tags: 'Tags', + }; + } + static types() { + return { + tags: { 'type': 'array', 'itemType': 'string' }, + }; + } + validate() { + if (Array.isArray(this.tags)) { + $dara.Model.validateArray(this.tags); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.RemoveTagsResponseBodyTag = RemoveTagsResponseBodyTag; +class RemoveTagsResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + tag: 'Tag', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + tag: RemoveTagsResponseBodyTag, + }; + } + validate() { + if (this.tag && typeof this.tag.validate === 'function') { + this.tag.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.RemoveTagsResponseBody = RemoveTagsResponseBody; +//# sourceMappingURL=RemoveTagsResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsResponseBody.js.map new file mode 100644 index 0000000..0d7965b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/RemoveTagsResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"RemoveTagsResponseBody.js","sourceRoot":"","sources":["../../src/models/RemoveTagsResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IAExD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;SAChD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;YAC5B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACvC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxBD,8DAwBC;AAED,MAAa,sBAAuB,SAAQ,KAAK,CAAC,KAAK;IA2CrD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,GAAG,EAAE,KAAK;SACX,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;YAClB,GAAG,EAAE,yBAAyB;SAC/B,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,GAAG,IAAI,OAAQ,IAAI,CAAC,GAAW,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YAC/D,IAAI,CAAC,GAAW,CAAC,QAAQ,EAAE,CAAC;QAC/B,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzED,wDAyEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventRequest.d.ts new file mode 100644 index 0000000..a942607 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventRequest.d.ts @@ -0,0 +1,56 @@ +import * as $dara from '@darabonba/typescript'; +export declare class SendDryRunSystemEventRequest extends $dara.Model { + /** + * @remarks + * The content of the system event. + * + * > The value of this parameter is a JSON object. We recommend that you include the `product`, `resourceId`, and `regionId` fields in the JSON object. + * + * @example + * {"product":"CloudMonitor","resourceId":"acs:ecs:cn-hongkong:173651113438****:instance/{instanceId}","level":"CRITICAL","instanceName":"instanceName","regionId":"cn-hangzhou","name":"Agent_Status_Stopped","content":{"ipGroup":"0.0.0.0,0.0.0.1","tianjimonVersion":"1.2.11"},"status":"stopped"} + */ + eventContent?: string; + /** + * @remarks + * The name of the system event. + * + * > For more information, see [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html). + * + * This parameter is required. + * + * @example + * Agent_Status_Stopped + */ + eventName?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 123456 + */ + groupId?: string; + /** + * @remarks + * The name of the cloud service. + * + * > For information about the Alibaba Cloud services that are supported by CloudMonitor, see [Supported cloud services and their system events](https://help.aliyun.com/document_detail/167388.html). + * + * This parameter is required. + * + * @example + * ecs + */ + product?: string; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventRequest.js new file mode 100644 index 0000000..4cf711b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventRequest.js @@ -0,0 +1,66 @@ +"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.SendDryRunSystemEventRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class SendDryRunSystemEventRequest extends $dara.Model { + static names() { + return { + eventContent: 'EventContent', + eventName: 'EventName', + groupId: 'GroupId', + product: 'Product', + regionId: 'RegionId', + }; + } + static types() { + return { + eventContent: 'string', + eventName: 'string', + groupId: 'string', + product: 'string', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.SendDryRunSystemEventRequest = SendDryRunSystemEventRequest; +//# sourceMappingURL=SendDryRunSystemEventRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventRequest.js.map new file mode 100644 index 0000000..928f0e2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"SendDryRunSystemEventRequest.js","sourceRoot":"","sources":["../../src/models/SendDryRunSystemEventRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,4BAA6B,SAAQ,KAAK,CAAC,KAAK;IA4C3D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,cAAc;YAC5B,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,QAAQ;YACtB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,QAAQ;YACjB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAvED,oEAuEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventResponse.d.ts new file mode 100644 index 0000000..6822492 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { SendDryRunSystemEventResponseBody } from "./SendDryRunSystemEventResponseBody"; +export declare class SendDryRunSystemEventResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: SendDryRunSystemEventResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventResponse.js new file mode 100644 index 0000000..a47bc27 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventResponse.js @@ -0,0 +1,69 @@ +"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.SendDryRunSystemEventResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const SendDryRunSystemEventResponseBody_1 = require("./SendDryRunSystemEventResponseBody"); +class SendDryRunSystemEventResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: SendDryRunSystemEventResponseBody_1.SendDryRunSystemEventResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.SendDryRunSystemEventResponse = SendDryRunSystemEventResponse; +//# sourceMappingURL=SendDryRunSystemEventResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventResponse.js.map new file mode 100644 index 0000000..2caeeb0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"SendDryRunSystemEventResponse.js","sourceRoot":"","sources":["../../src/models/SendDryRunSystemEventResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,2FAAwF;AAGxF,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IAI5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,qEAAiC;SACxC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,sEAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventResponseBody.d.ts new file mode 100644 index 0000000..dbffafd --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class SendDryRunSystemEventResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 486029C9-53E1-44B4-85A8-16A571A043FD + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventResponseBody.js new file mode 100644 index 0000000..e5d99a7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventResponseBody.js @@ -0,0 +1,64 @@ +"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.SendDryRunSystemEventResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class SendDryRunSystemEventResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.SendDryRunSystemEventResponseBody = SendDryRunSystemEventResponseBody; +//# sourceMappingURL=SendDryRunSystemEventResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventResponseBody.js.map new file mode 100644 index 0000000..18ba8b1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/SendDryRunSystemEventResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"SendDryRunSystemEventResponseBody.js","sourceRoot":"","sources":["../../src/models/SendDryRunSystemEventResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,iCAAkC,SAAQ,KAAK,CAAC,KAAK;IAsChE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,8EA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/Subscription.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/Subscription.d.ts new file mode 100644 index 0000000..cbd9d47 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/Subscription.d.ts @@ -0,0 +1,42 @@ +import * as $dara from '@darabonba/typescript'; +export declare class SubscriptionConditions extends $dara.Model { + field?: string; + operator?: string; + value?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} +export declare class Subscription extends $dara.Model { + conditions?: SubscriptionConditions[]; + createTime?: string; + description?: string; + enabled?: boolean; + /** + * @remarks + * This parameter is required. + */ + name?: string; + product?: string; + relation?: string; + strategyUuid?: string; + updateTime?: string; + uuid?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/Subscription.js b/backend/node_modules/@alicloud/cms20190101/dist/models/Subscription.js new file mode 100644 index 0000000..bc29cf9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/Subscription.js @@ -0,0 +1,102 @@ +"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.Subscription = exports.SubscriptionConditions = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class SubscriptionConditions extends $dara.Model { + static names() { + return { + field: 'Field', + operator: 'Operator', + value: 'Value', + }; + } + static types() { + return { + field: 'string', + operator: 'string', + value: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.SubscriptionConditions = SubscriptionConditions; +class Subscription extends $dara.Model { + static names() { + return { + conditions: 'Conditions', + createTime: 'CreateTime', + description: 'Description', + enabled: 'Enabled', + name: 'Name', + product: 'Product', + relation: 'Relation', + strategyUuid: 'StrategyUuid', + updateTime: 'UpdateTime', + uuid: 'Uuid', + }; + } + static types() { + return { + conditions: { 'type': 'array', 'itemType': SubscriptionConditions }, + createTime: 'string', + description: 'string', + enabled: 'boolean', + name: 'string', + product: 'string', + relation: 'string', + strategyUuid: 'string', + updateTime: 'string', + uuid: 'string', + }; + } + validate() { + if (Array.isArray(this.conditions)) { + $dara.Model.validateArray(this.conditions); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.Subscription = Subscription; +//# sourceMappingURL=Subscription.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/Subscription.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/Subscription.js.map new file mode 100644 index 0000000..d05343e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/Subscription.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Subscription.js","sourceRoot":"","sources":["../../src/models/Subscription.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,sBAAuB,SAAQ,KAAK,CAAC,KAAK;IAIrD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,E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,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAvDD,oCAuDC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentRequest.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentRequest.d.ts new file mode 100644 index 0000000..b09b6af --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentRequest.d.ts @@ -0,0 +1,24 @@ +import * as $dara from '@darabonba/typescript'; +export declare class UninstallMonitoringAgentRequest extends $dara.Model { + /** + * @remarks + * The ID of the host. + * + * This parameter is required. + * + * @example + * host-**** + */ + instanceId?: string; + regionId?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentRequest.js b/backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentRequest.js new file mode 100644 index 0000000..2fd3e64 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentRequest.js @@ -0,0 +1,60 @@ +"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.UninstallMonitoringAgentRequest = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class UninstallMonitoringAgentRequest extends $dara.Model { + static names() { + return { + instanceId: 'InstanceId', + regionId: 'RegionId', + }; + } + static types() { + return { + instanceId: 'string', + regionId: 'string', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.UninstallMonitoringAgentRequest = UninstallMonitoringAgentRequest; +//# sourceMappingURL=UninstallMonitoringAgentRequest.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentRequest.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentRequest.js.map new file mode 100644 index 0000000..e6e8d91 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"UninstallMonitoringAgentRequest.js","sourceRoot":"","sources":["../../src/models/UninstallMonitoringAgentRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAY9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,0EAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentResponse.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentResponse.d.ts new file mode 100644 index 0000000..8429020 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentResponse.d.ts @@ -0,0 +1,19 @@ +import * as $dara from '@darabonba/typescript'; +import { UninstallMonitoringAgentResponseBody } from "./UninstallMonitoringAgentResponseBody"; +export declare class UninstallMonitoringAgentResponse extends $dara.Model { + headers?: { + [key: string]: string; + }; + statusCode?: number; + body?: UninstallMonitoringAgentResponseBody; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentResponse.js b/backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentResponse.js new file mode 100644 index 0000000..4c0f202 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentResponse.js @@ -0,0 +1,69 @@ +"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.UninstallMonitoringAgentResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const UninstallMonitoringAgentResponseBody_1 = require("./UninstallMonitoringAgentResponseBody"); +class UninstallMonitoringAgentResponse extends $dara.Model { + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: UninstallMonitoringAgentResponseBody_1.UninstallMonitoringAgentResponseBody, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + if (this.body && typeof this.body.validate === 'function') { + this.body.validate(); + } + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.UninstallMonitoringAgentResponse = UninstallMonitoringAgentResponse; +//# sourceMappingURL=UninstallMonitoringAgentResponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentResponse.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentResponse.js.map new file mode 100644 index 0000000..67e2210 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"UninstallMonitoringAgentResponse.js","sourceRoot":"","sources":["../../src/models/UninstallMonitoringAgentResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,iGAA8F;AAG9F,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAI/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,2EAAoC;SAC3C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,4EAiCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentResponseBody.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentResponseBody.d.ts new file mode 100644 index 0000000..7e17496 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentResponseBody.d.ts @@ -0,0 +1,50 @@ +import * as $dara from '@darabonba/typescript'; +export declare class UninstallMonitoringAgentResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * Successfully + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 466902B9-2842-40B0-B796-00FE772B6EF3 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentResponseBody.js b/backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentResponseBody.js new file mode 100644 index 0000000..9748245 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentResponseBody.js @@ -0,0 +1,64 @@ +"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.UninstallMonitoringAgentResponseBody = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class UninstallMonitoringAgentResponseBody extends $dara.Model { + static names() { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + static types() { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + validate() { + super.validate(); + } + constructor(map) { + super(map); + } +} +exports.UninstallMonitoringAgentResponseBody = UninstallMonitoringAgentResponseBody; +//# sourceMappingURL=UninstallMonitoringAgentResponseBody.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentResponseBody.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentResponseBody.js.map new file mode 100644 index 0000000..18a6c9c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/UninstallMonitoringAgentResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"UninstallMonitoringAgentResponseBody.js","sourceRoot":"","sources":["../../src/models/UninstallMonitoringAgentResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IAsCnE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/DD,oFA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/model.d.ts b/backend/node_modules/@alicloud/cms20190101/dist/models/model.d.ts new file mode 100644 index 0000000..3bca188 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/model.d.ts @@ -0,0 +1,942 @@ +export { AlertEventMetrics } from './AlertEvent'; +export { EscalationRuleEscalationsContactGroupsByLevel } from './EscalationRule'; +export { EscalationRuleEscalations } from './EscalationRule'; +export { MigrationJobPlanContactsChannels } from './MigrationJob'; +export { MigrationJobPlanContacts } from './MigrationJob'; +export { MigrationJobPlanEscalationsEscalationsLevelGroups } from './MigrationJob'; +export { MigrationJobPlanEscalationsEscalations } from './MigrationJob'; +export { MigrationJobPlanEscalations } from './MigrationJob'; +export { MigrationJobPlanGroups } from './MigrationJob'; +export { MigrationJobPlanStrategiesEscalationSetting } from './MigrationJob'; +export { MigrationJobPlanStrategiesPushingSetting } from './MigrationJob'; +export { MigrationJobPlanStrategies } from './MigrationJob'; +export { MigrationJobPlanSubscriptionsConditions } from './MigrationJob'; +export { MigrationJobPlanSubscriptions } from './MigrationJob'; +export { MigrationJobPlanTargetsHttpRequestTarget } from './MigrationJob'; +export { MigrationJobPlanTargets } from './MigrationJob'; +export { MigrationJobPlan } from './MigrationJob'; +export { MigrationJobSourceRuleKeywordFilter } from './MigrationJob'; +export { MigrationJobSourceRulePrimaryFilters } from './MigrationJob'; +export { MigrationJobSourceRule } from './MigrationJob'; +export { MigrationJobSourceTargetsContent } from './MigrationJob'; +export { MigrationJobSourceTargets } from './MigrationJob'; +export { MigrationJobSource } from './MigrationJob'; +export { NotificationStrategyEscalationSettingCustomChannels } from './NotificationStrategy'; +export { NotificationStrategyEscalationSetting } from './NotificationStrategy'; +export { NotificationStrategyFilterSettingBlackList } from './NotificationStrategy'; +export { NotificationStrategyFilterSettingWhiteList } from './NotificationStrategy'; +export { NotificationStrategyFilterSetting } from './NotificationStrategy'; +export { NotificationStrategyGroupingSettingGroupingItems } from './NotificationStrategy'; +export { NotificationStrategyGroupingSetting } from './NotificationStrategy'; +export { NotificationStrategyPushingSetting } from './NotificationStrategy'; +export { NotificationStrategyRouteSettingRoutesConditions } from './NotificationStrategy'; +export { NotificationStrategyRouteSettingRoutes } from './NotificationStrategy'; +export { NotificationStrategyRouteSetting } from './NotificationStrategy'; +export { PushingTargetHttpRequestTargetHeaders } from './PushingTarget'; +export { PushingTargetHttpRequestTarget } from './PushingTarget'; +export { SubscriptionConditions } from './Subscription'; +export { AddTagsRequestTag } from './AddTagsRequest'; +export { ApplyMetricRuleTemplateResponseBodyResourceAlertResults } from './ApplyMetricRuleTemplateResponseBody'; +export { ApplyMetricRuleTemplateResponseBodyResource } from './ApplyMetricRuleTemplateResponseBody'; +export { BatchCreateInstantSiteMonitorRequestTaskList } from './BatchCreateInstantSiteMonitorRequest'; +export { BatchCreateInstantSiteMonitorResponseBodyData } from './BatchCreateInstantSiteMonitorResponseBody'; +export { CreateDynamicTagGroupRequestMatchExpress } from './CreateDynamicTagGroupRequest'; +export { CreateGroupMetricRulesRequestGroupMetricRulesEscalationsCritical } from './CreateGroupMetricRulesRequest'; +export { CreateGroupMetricRulesRequestGroupMetricRulesEscalationsInfo } from './CreateGroupMetricRulesRequest'; +export { CreateGroupMetricRulesRequestGroupMetricRulesEscalationsWarn } from './CreateGroupMetricRulesRequest'; +export { CreateGroupMetricRulesRequestGroupMetricRulesEscalations } from './CreateGroupMetricRulesRequest'; +export { CreateGroupMetricRulesRequestGroupMetricRulesLabels } from './CreateGroupMetricRulesRequest'; +export { CreateGroupMetricRulesRequestGroupMetricRules } from './CreateGroupMetricRulesRequest'; +export { CreateGroupMetricRulesResponseBodyResourcesAlertResult } from './CreateGroupMetricRulesResponseBody'; +export { CreateGroupMetricRulesResponseBodyResources } from './CreateGroupMetricRulesResponseBody'; +export { CreateGroupMonitoringAgentProcessRequestAlertConfigTargetList } from './CreateGroupMonitoringAgentProcessRequest'; +export { CreateGroupMonitoringAgentProcessRequestAlertConfig } from './CreateGroupMonitoringAgentProcessRequest'; +export { CreateGroupMonitoringAgentProcessRequestMatchExpress } from './CreateGroupMonitoringAgentProcessRequest'; +export { CreateGroupMonitoringAgentProcessResponseBodyResource } from './CreateGroupMonitoringAgentProcessResponseBody'; +export { CreateHostAvailabilityRequestAlertConfig } from './CreateHostAvailabilityRequest'; +export { CreateHostAvailabilityRequestTaskOption } from './CreateHostAvailabilityRequest'; +export { CreateHostAvailabilityRequestAlertConfigEscalationList } from './CreateHostAvailabilityRequest'; +export { CreateHostAvailabilityRequestAlertConfigTargetList } from './CreateHostAvailabilityRequest'; +export { CreateHybridMonitorSLSGroupRequestSLSGroupConfig } from './CreateHybridMonitorSlsgroupRequest'; +export { CreateHybridMonitorTaskRequestAttachLabels } from './CreateHybridMonitorTaskRequest'; +export { CreateHybridMonitorTaskRequestSLSProcessConfigExpress } from './CreateHybridMonitorTaskRequest'; +export { CreateHybridMonitorTaskRequestSLSProcessConfigFilterFilters } from './CreateHybridMonitorTaskRequest'; +export { CreateHybridMonitorTaskRequestSLSProcessConfigFilter } from './CreateHybridMonitorTaskRequest'; +export { CreateHybridMonitorTaskRequestSLSProcessConfigGroupBy } from './CreateHybridMonitorTaskRequest'; +export { CreateHybridMonitorTaskRequestSLSProcessConfigStatistics } from './CreateHybridMonitorTaskRequest'; +export { CreateHybridMonitorTaskRequestSLSProcessConfig } from './CreateHybridMonitorTaskRequest'; +export { CreateInstantSiteMonitorResponseBodyCreateResultList } from './CreateInstantSiteMonitorResponseBody'; +export { CreateMetricRuleBlackListRequestMetrics } from './CreateMetricRuleBlackListRequest'; +export { CreateMetricRuleTemplateRequestAlertTemplatesEscalationsCritical } from './CreateMetricRuleTemplateRequest'; +export { CreateMetricRuleTemplateRequestAlertTemplatesEscalationsInfo } from './CreateMetricRuleTemplateRequest'; +export { CreateMetricRuleTemplateRequestAlertTemplatesEscalationsWarn } from './CreateMetricRuleTemplateRequest'; +export { CreateMetricRuleTemplateRequestAlertTemplatesEscalations } from './CreateMetricRuleTemplateRequest'; +export { CreateMetricRuleTemplateRequestAlertTemplates } from './CreateMetricRuleTemplateRequest'; +export { CreateMonitorGroupInstancesRequestInstances } from './CreateMonitorGroupInstancesRequest'; +export { CreateSiteMonitorResponseBodyCreateResultListCreateResultList } from './CreateSiteMonitorResponseBody'; +export { CreateSiteMonitorResponseBodyCreateResultList } from './CreateSiteMonitorResponseBody'; +export { CreateSiteMonitorResponseBodyDataAttachAlertResultContact } from './CreateSiteMonitorResponseBody'; +export { CreateSiteMonitorResponseBodyDataAttachAlertResult } from './CreateSiteMonitorResponseBody'; +export { CreateSiteMonitorResponseBodyData } from './CreateSiteMonitorResponseBody'; +export { DeleteMetricRuleTargetsResponseBodyFailIdsTargetIds } from './DeleteMetricRuleTargetsResponseBody'; +export { DeleteMetricRuleTargetsResponseBodyFailIds } from './DeleteMetricRuleTargetsResponseBody'; +export { DeleteMetricRuleTemplateResponseBodyResource } from './DeleteMetricRuleTemplateResponseBody'; +export { DeleteMonitorGroupResponseBodyGroupContactGroupsContactGroup } from './DeleteMonitorGroupResponseBody'; +export { DeleteMonitorGroupResponseBodyGroupContactGroups } from './DeleteMonitorGroupResponseBody'; +export { DeleteMonitorGroupResponseBodyGroup } from './DeleteMonitorGroupResponseBody'; +export { DeleteSiteMonitorsResponseBodyData } from './DeleteSiteMonitorsResponseBody'; +export { DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsCritical } from './DescribeActiveMetricRuleListResponseBody'; +export { DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsInfo } from './DescribeActiveMetricRuleListResponseBody'; +export { DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsWarn } from './DescribeActiveMetricRuleListResponseBody'; +export { DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalations } from './DescribeActiveMetricRuleListResponseBody'; +export { DescribeActiveMetricRuleListResponseBodyAlertListAlert } from './DescribeActiveMetricRuleListResponseBody'; +export { DescribeActiveMetricRuleListResponseBodyAlertList } from './DescribeActiveMetricRuleListResponseBody'; +export { DescribeActiveMetricRuleListResponseBodyDatapointsAlarm } from './DescribeActiveMetricRuleListResponseBody'; +export { DescribeActiveMetricRuleListResponseBodyDatapoints } from './DescribeActiveMetricRuleListResponseBody'; +export { DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactALIIMs } from './DescribeAlertHistoryListResponseBody'; +export { DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactGroups } from './DescribeAlertHistoryListResponseBody'; +export { DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactMails } from './DescribeAlertHistoryListResponseBody'; +export { DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactSmses } from './DescribeAlertHistoryListResponseBody'; +export { DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContacts } from './DescribeAlertHistoryListResponseBody'; +export { DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistory } from './DescribeAlertHistoryListResponseBody'; +export { DescribeAlertHistoryListResponseBodyAlarmHistoryList } from './DescribeAlertHistoryListResponseBody'; +export { DescribeAlertLogCountResponseBodyAlertLogCountLogs } from './DescribeAlertLogCountResponseBody'; +export { DescribeAlertLogCountResponseBodyAlertLogCount } from './DescribeAlertLogCountResponseBody'; +export { DescribeAlertLogHistogramResponseBodyAlertLogHistogramList } from './DescribeAlertLogHistogramResponseBody'; +export { DescribeAlertLogListResponseBodyAlertLogListDimensions } from './DescribeAlertLogListResponseBody'; +export { DescribeAlertLogListResponseBodyAlertLogListEscalation } from './DescribeAlertLogListResponseBody'; +export { DescribeAlertLogListResponseBodyAlertLogListExtendedInfo } from './DescribeAlertLogListResponseBody'; +export { DescribeAlertLogListResponseBodyAlertLogListSendDetailChannelResultListResultList } from './DescribeAlertLogListResponseBody'; +export { DescribeAlertLogListResponseBodyAlertLogListSendDetailChannelResultList } from './DescribeAlertLogListResponseBody'; +export { DescribeAlertLogListResponseBodyAlertLogListSendDetail } from './DescribeAlertLogListResponseBody'; +export { DescribeAlertLogListResponseBodyAlertLogListSendResultList } from './DescribeAlertLogListResponseBody'; +export { DescribeAlertLogListResponseBodyAlertLogListWebhookList } from './DescribeAlertLogListResponseBody'; +export { DescribeAlertLogListResponseBodyAlertLogList } from './DescribeAlertLogListResponseBody'; +export { DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResourceExpressionListExpressionList } from './DescribeAlertingMetricRuleResourcesResponseBody'; +export { DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResourceExpressionList } from './DescribeAlertingMetricRuleResourcesResponseBody'; +export { DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResource } from './DescribeAlertingMetricRuleResourcesResponseBody'; +export { DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalation } from './DescribeAlertingMetricRuleResourcesResponseBody'; +export { DescribeAlertingMetricRuleResourcesResponseBodyResourcesResource } from './DescribeAlertingMetricRuleResourcesResponseBody'; +export { DescribeAlertingMetricRuleResourcesResponseBodyResources } from './DescribeAlertingMetricRuleResourcesResponseBody'; +export { DescribeContactGroupListResponseBodyContactGroupListContactGroupContacts } from './DescribeContactGroupListResponseBody'; +export { DescribeContactGroupListResponseBodyContactGroupListContactGroup } from './DescribeContactGroupListResponseBody'; +export { DescribeContactGroupListResponseBodyContactGroupList } from './DescribeContactGroupListResponseBody'; +export { DescribeContactGroupListResponseBodyContactGroups } from './DescribeContactGroupListResponseBody'; +export { DescribeContactListResponseBodyContactsContactChannels } from './DescribeContactListResponseBody'; +export { DescribeContactListResponseBodyContactsContactChannelsState } from './DescribeContactListResponseBody'; +export { DescribeContactListResponseBodyContactsContactContactGroups } from './DescribeContactListResponseBody'; +export { DescribeContactListResponseBodyContactsContact } from './DescribeContactListResponseBody'; +export { DescribeContactListResponseBodyContacts } from './DescribeContactListResponseBody'; +export { DescribeContactListByContactGroupResponseBodyContactsContactChannels } from './DescribeContactListByContactGroupResponseBody'; +export { DescribeContactListByContactGroupResponseBodyContactsContact } from './DescribeContactListByContactGroupResponseBody'; +export { DescribeContactListByContactGroupResponseBodyContacts } from './DescribeContactListByContactGroupResponseBody'; +export { DescribeCustomEventAttributeResponseBodyCustomEventsCustomEvent } from './DescribeCustomEventAttributeResponseBody'; +export { DescribeCustomEventAttributeResponseBodyCustomEvents } from './DescribeCustomEventAttributeResponseBody'; +export { DescribeCustomEventCountResponseBodyCustomEventCountsCustomEventCount } from './DescribeCustomEventCountResponseBody'; +export { DescribeCustomEventCountResponseBodyCustomEventCounts } from './DescribeCustomEventCountResponseBody'; +export { DescribeCustomEventHistogramResponseBodyEventHistogramsEventHistogram } from './DescribeCustomEventHistogramResponseBody'; +export { DescribeCustomEventHistogramResponseBodyEventHistograms } from './DescribeCustomEventHistogramResponseBody'; +export { DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupContactGroupList } from './DescribeDynamicTagRuleListResponseBody'; +export { DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupMatchExpressMatchExpress } from './DescribeDynamicTagRuleListResponseBody'; +export { DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupMatchExpress } from './DescribeDynamicTagRuleListResponseBody'; +export { DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupTagValueBlacklist } from './DescribeDynamicTagRuleListResponseBody'; +export { DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupTemplateIdList } from './DescribeDynamicTagRuleListResponseBody'; +export { DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroup } from './DescribeDynamicTagRuleListResponseBody'; +export { DescribeDynamicTagRuleListResponseBodyTagGroupList } from './DescribeDynamicTagRuleListResponseBody'; +export { DescribeEventRuleAttributeResponseBodyResultEventPatternEventTypeList } from './DescribeEventRuleAttributeResponseBody'; +export { DescribeEventRuleAttributeResponseBodyResultEventPatternKeywordFilterObjKeywords } from './DescribeEventRuleAttributeResponseBody'; +export { DescribeEventRuleAttributeResponseBodyResultEventPatternKeywordFilterObj } from './DescribeEventRuleAttributeResponseBody'; +export { DescribeEventRuleAttributeResponseBodyResultEventPatternLevelList } from './DescribeEventRuleAttributeResponseBody'; +export { DescribeEventRuleAttributeResponseBodyResultEventPatternNameList } from './DescribeEventRuleAttributeResponseBody'; +export { DescribeEventRuleAttributeResponseBodyResultEventPatternStatusList } from './DescribeEventRuleAttributeResponseBody'; +export { DescribeEventRuleAttributeResponseBodyResultEventPattern } from './DescribeEventRuleAttributeResponseBody'; +export { DescribeEventRuleAttributeResponseBodyResult } from './DescribeEventRuleAttributeResponseBody'; +export { DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternEventTypeList } from './DescribeEventRuleListResponseBody'; +export { DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternKeywordFilterKeywords } from './DescribeEventRuleListResponseBody'; +export { DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternKeywordFilter } from './DescribeEventRuleListResponseBody'; +export { DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternLevelList } from './DescribeEventRuleListResponseBody'; +export { DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternNameList } from './DescribeEventRuleListResponseBody'; +export { DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPattern } from './DescribeEventRuleListResponseBody'; +export { DescribeEventRuleListResponseBodyEventRulesEventRuleEventPattern } from './DescribeEventRuleListResponseBody'; +export { DescribeEventRuleListResponseBodyEventRulesEventRule } from './DescribeEventRuleListResponseBody'; +export { DescribeEventRuleListResponseBodyEventRules } from './DescribeEventRuleListResponseBody'; +export { DescribeEventRuleTargetListResponseBodyContactParametersContactParameter } from './DescribeEventRuleTargetListResponseBody'; +export { DescribeEventRuleTargetListResponseBodyContactParameters } from './DescribeEventRuleTargetListResponseBody'; +export { DescribeEventRuleTargetListResponseBodyFcParametersFCParameter } from './DescribeEventRuleTargetListResponseBody'; +export { DescribeEventRuleTargetListResponseBodyFcParameters } from './DescribeEventRuleTargetListResponseBody'; +export { DescribeEventRuleTargetListResponseBodyMnsParametersMnsParameter } from './DescribeEventRuleTargetListResponseBody'; +export { DescribeEventRuleTargetListResponseBodyMnsParameters } from './DescribeEventRuleTargetListResponseBody'; +export { DescribeEventRuleTargetListResponseBodyOpenApiParametersOpenApiParameters } from './DescribeEventRuleTargetListResponseBody'; +export { DescribeEventRuleTargetListResponseBodyOpenApiParameters } from './DescribeEventRuleTargetListResponseBody'; +export { DescribeEventRuleTargetListResponseBodySlsParametersSlsParameter } from './DescribeEventRuleTargetListResponseBody'; +export { DescribeEventRuleTargetListResponseBodySlsParameters } from './DescribeEventRuleTargetListResponseBody'; +export { DescribeEventRuleTargetListResponseBodyWebhookParametersWebhookParameter } from './DescribeEventRuleTargetListResponseBody'; +export { DescribeEventRuleTargetListResponseBodyWebhookParameters } from './DescribeEventRuleTargetListResponseBody'; +export { DescribeExporterOutputListResponseBodyDatapointsDatapointConfigJson } from './DescribeExporterOutputListResponseBody'; +export { DescribeExporterOutputListResponseBodyDatapointsDatapoint } from './DescribeExporterOutputListResponseBody'; +export { DescribeExporterOutputListResponseBodyDatapoints } from './DescribeExporterOutputListResponseBody'; +export { DescribeExporterRuleListResponseBodyDatapointsDatapointDstName } from './DescribeExporterRuleListResponseBody'; +export { DescribeExporterRuleListResponseBodyDatapointsDatapoint } from './DescribeExporterRuleListResponseBody'; +export { DescribeExporterRuleListResponseBodyDatapoints } from './DescribeExporterRuleListResponseBody'; +export { DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfigTargetListTarget } from './DescribeGroupMonitoringAgentProcessResponseBody'; +export { DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfigTargetList } from './DescribeGroupMonitoringAgentProcessResponseBody'; +export { DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfig } from './DescribeGroupMonitoringAgentProcessResponseBody'; +export { DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfig } from './DescribeGroupMonitoringAgentProcessResponseBody'; +export { DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessMatchExpressMatchExpress } from './DescribeGroupMonitoringAgentProcessResponseBody'; +export { DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessMatchExpress } from './DescribeGroupMonitoringAgentProcessResponseBody'; +export { DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcess } from './DescribeGroupMonitoringAgentProcessResponseBody'; +export { DescribeGroupMonitoringAgentProcessResponseBodyProcesses } from './DescribeGroupMonitoringAgentProcessResponseBody'; +export { DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigEscalationListEscalationList } from './DescribeHostAvailabilityListResponseBody'; +export { DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigEscalationList } from './DescribeHostAvailabilityListResponseBody'; +export { DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigTargetListTarget } from './DescribeHostAvailabilityListResponseBody'; +export { DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigTargetList } from './DescribeHostAvailabilityListResponseBody'; +export { DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfig } from './DescribeHostAvailabilityListResponseBody'; +export { DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigInstances } from './DescribeHostAvailabilityListResponseBody'; +export { DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigTaskOption } from './DescribeHostAvailabilityListResponseBody'; +export { DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfig } from './DescribeHostAvailabilityListResponseBody'; +export { DescribeHostAvailabilityListResponseBodyTaskList } from './DescribeHostAvailabilityListResponseBody'; +export { DescribeHybridMonitorDataListResponseBodyTimeSeriesLabels } from './DescribeHybridMonitorDataListResponseBody'; +export { DescribeHybridMonitorDataListResponseBodyTimeSeriesValues } from './DescribeHybridMonitorDataListResponseBody'; +export { DescribeHybridMonitorDataListResponseBodyTimeSeries } from './DescribeHybridMonitorDataListResponseBody'; +export { DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricListNamespaceListMetricList } from './DescribeHybridMonitorNamespaceListResponseBody'; +export { DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricListNamespaceList } from './DescribeHybridMonitorNamespaceListResponseBody'; +export { DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricList } from './DescribeHybridMonitorNamespaceListResponseBody'; +export { DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceDetail } from './DescribeHybridMonitorNamespaceListResponseBody'; +export { DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespace } from './DescribeHybridMonitorNamespaceListResponseBody'; +export { DescribeHybridMonitorSLSGroupResponseBodyListSLSGroupConfig } from './DescribeHybridMonitorSlsgroupResponseBody'; +export { DescribeHybridMonitorSLSGroupResponseBodyList } from './DescribeHybridMonitorSlsgroupResponseBody'; +export { DescribeHybridMonitorTaskListResponseBodyTaskListAttachLabels } from './DescribeHybridMonitorTaskListResponseBody'; +export { DescribeHybridMonitorTaskListResponseBodyTaskListMatchExpress } from './DescribeHybridMonitorTaskListResponseBody'; +export { DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigExpress } from './DescribeHybridMonitorTaskListResponseBody'; +export { DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigFilterFilters } from './DescribeHybridMonitorTaskListResponseBody'; +export { DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigFilter } from './DescribeHybridMonitorTaskListResponseBody'; +export { DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigGroupBy } from './DescribeHybridMonitorTaskListResponseBody'; +export { DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigStatistics } from './DescribeHybridMonitorTaskListResponseBody'; +export { DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfig } from './DescribeHybridMonitorTaskListResponseBody'; +export { DescribeHybridMonitorTaskListResponseBodyTaskList } from './DescribeHybridMonitorTaskListResponseBody'; +export { DescribeLogMonitorAttributeResponseBodyLogMonitorAggregates } from './DescribeLogMonitorAttributeResponseBody'; +export { DescribeLogMonitorAttributeResponseBodyLogMonitorValueFilter } from './DescribeLogMonitorAttributeResponseBody'; +export { DescribeLogMonitorAttributeResponseBodyLogMonitor } from './DescribeLogMonitorAttributeResponseBody'; +export { DescribeLogMonitorListResponseBodyLogMonitorListValueFilter } from './DescribeLogMonitorListResponseBody'; +export { DescribeLogMonitorListResponseBodyLogMonitorList } from './DescribeLogMonitorListResponseBody'; +export { DescribeMetricMetaListResponseBodyResourcesResource } from './DescribeMetricMetaListResponseBody'; +export { DescribeMetricMetaListResponseBodyResources } from './DescribeMetricMetaListResponseBody'; +export { DescribeMetricRuleBlackListResponseBodyDescribeMetricRuleBlackListMetrics } from './DescribeMetricRuleBlackListResponseBody'; +export { DescribeMetricRuleBlackListResponseBodyDescribeMetricRuleBlackList } from './DescribeMetricRuleBlackListResponseBody'; +export { DescribeMetricRuleCountResponseBodyMetricRuleCount } from './DescribeMetricRuleCountResponseBody'; +export { DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionListExpressionList } from './DescribeMetricRuleListResponseBody'; +export { DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionList } from './DescribeMetricRuleListResponseBody'; +export { DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpression } from './DescribeMetricRuleListResponseBody'; +export { DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsCritical } from './DescribeMetricRuleListResponseBody'; +export { DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsInfo } from './DescribeMetricRuleListResponseBody'; +export { DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsWarn } from './DescribeMetricRuleListResponseBody'; +export { DescribeMetricRuleListResponseBodyAlarmsAlarmEscalations } from './DescribeMetricRuleListResponseBody'; +export { DescribeMetricRuleListResponseBodyAlarmsAlarmLabelsLabels } from './DescribeMetricRuleListResponseBody'; +export { DescribeMetricRuleListResponseBodyAlarmsAlarmLabels } from './DescribeMetricRuleListResponseBody'; +export { DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotationsAnnotations } from './DescribeMetricRuleListResponseBody'; +export { DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotations } from './DescribeMetricRuleListResponseBody'; +export { DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheus } from './DescribeMetricRuleListResponseBody'; +export { DescribeMetricRuleListResponseBodyAlarmsAlarm } from './DescribeMetricRuleListResponseBody'; +export { DescribeMetricRuleListResponseBodyAlarms } from './DescribeMetricRuleListResponseBody'; +export { DescribeMetricRuleTargetsResponseBodyTargetsTarget } from './DescribeMetricRuleTargetsResponseBody'; +export { DescribeMetricRuleTargetsResponseBodyTargets } from './DescribeMetricRuleTargetsResponseBody'; +export { DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsCritical } from './DescribeMetricRuleTemplateAttributeResponseBody'; +export { DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsInfo } from './DescribeMetricRuleTemplateAttributeResponseBody'; +export { DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsWarn } from './DescribeMetricRuleTemplateAttributeResponseBody'; +export { DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalations } from './DescribeMetricRuleTemplateAttributeResponseBody'; +export { DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabelsLabels } from './DescribeMetricRuleTemplateAttributeResponseBody'; +export { DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabels } from './DescribeMetricRuleTemplateAttributeResponseBody'; +export { DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplate } from './DescribeMetricRuleTemplateAttributeResponseBody'; +export { DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplates } from './DescribeMetricRuleTemplateAttributeResponseBody'; +export { DescribeMetricRuleTemplateAttributeResponseBodyResource } from './DescribeMetricRuleTemplateAttributeResponseBody'; +export { DescribeMetricRuleTemplateListResponseBodyTemplatesTemplateApplyHistoriesApplyHistory } from './DescribeMetricRuleTemplateListResponseBody'; +export { DescribeMetricRuleTemplateListResponseBodyTemplatesTemplateApplyHistories } from './DescribeMetricRuleTemplateListResponseBody'; +export { DescribeMetricRuleTemplateListResponseBodyTemplatesTemplate } from './DescribeMetricRuleTemplateListResponseBody'; +export { DescribeMetricRuleTemplateListResponseBodyTemplates } from './DescribeMetricRuleTemplateListResponseBody'; +export { DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategoriesMonitorGroupCategoryCategoryItem } from './DescribeMonitorGroupCategoriesResponseBody'; +export { DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategoriesMonitorGroupCategory } from './DescribeMonitorGroupCategoriesResponseBody'; +export { DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategories } from './DescribeMonitorGroupCategoriesResponseBody'; +export { DescribeMonitorGroupDynamicRulesResponseBodyResourceResourceFiltersFilter } from './DescribeMonitorGroupDynamicRulesResponseBody'; +export { DescribeMonitorGroupDynamicRulesResponseBodyResourceResourceFilters } from './DescribeMonitorGroupDynamicRulesResponseBody'; +export { DescribeMonitorGroupDynamicRulesResponseBodyResourceResource } from './DescribeMonitorGroupDynamicRulesResponseBody'; +export { DescribeMonitorGroupDynamicRulesResponseBodyResource } from './DescribeMonitorGroupDynamicRulesResponseBody'; +export { DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceRegion } from './DescribeMonitorGroupInstanceAttributeResponseBody'; +export { DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceTagsTag } from './DescribeMonitorGroupInstanceAttributeResponseBody'; +export { DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceTags } from './DescribeMonitorGroupInstanceAttributeResponseBody'; +export { DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceVpc } from './DescribeMonitorGroupInstanceAttributeResponseBody'; +export { DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResource } from './DescribeMonitorGroupInstanceAttributeResponseBody'; +export { DescribeMonitorGroupInstanceAttributeResponseBodyResources } from './DescribeMonitorGroupInstanceAttributeResponseBody'; +export { DescribeMonitorGroupInstancesResponseBodyResourcesResource } from './DescribeMonitorGroupInstancesResponseBody'; +export { DescribeMonitorGroupInstancesResponseBodyResources } from './DescribeMonitorGroupInstancesResponseBody'; +export { DescribeMonitorGroupNotifyPolicyListResponseBodyNotifyPolicyListNotifyPolicy } from './DescribeMonitorGroupNotifyPolicyListResponseBody'; +export { DescribeMonitorGroupNotifyPolicyListResponseBodyNotifyPolicyList } from './DescribeMonitorGroupNotifyPolicyListResponseBody'; +export { DescribeMonitorGroupsRequestTag } from './DescribeMonitorGroupsRequest'; +export { DescribeMonitorGroupsResponseBodyResourcesResourceContactGroupsContactGroup } from './DescribeMonitorGroupsResponseBody'; +export { DescribeMonitorGroupsResponseBodyResourcesResourceContactGroups } from './DescribeMonitorGroupsResponseBody'; +export { DescribeMonitorGroupsResponseBodyResourcesResourceTagsTag } from './DescribeMonitorGroupsResponseBody'; +export { DescribeMonitorGroupsResponseBodyResourcesResourceTags } from './DescribeMonitorGroupsResponseBody'; +export { DescribeMonitorGroupsResponseBodyResourcesResourceTemplateIds } from './DescribeMonitorGroupsResponseBody'; +export { DescribeMonitorGroupsResponseBodyResourcesResourceTemplateInfosTemplateInfo } from './DescribeMonitorGroupsResponseBody'; +export { DescribeMonitorGroupsResponseBodyResourcesResourceTemplateInfos } from './DescribeMonitorGroupsResponseBody'; +export { DescribeMonitorGroupsResponseBodyResourcesResource } from './DescribeMonitorGroupsResponseBody'; +export { DescribeMonitorGroupsResponseBodyResources } from './DescribeMonitorGroupsResponseBody'; +export { DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaApi } from './DescribeMonitorResourceQuotaAttributeResponseBody'; +export { DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaCustomMonitor } from './DescribeMonitorResourceQuotaAttributeResponseBody'; +export { DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaEnterpriseQuota } from './DescribeMonitorResourceQuotaAttributeResponseBody'; +export { DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaEventMonitor } from './DescribeMonitorResourceQuotaAttributeResponseBody'; +export { DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaLogMonitor } from './DescribeMonitorResourceQuotaAttributeResponseBody'; +export { DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaPhone } from './DescribeMonitorResourceQuotaAttributeResponseBody'; +export { DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSMS } from './DescribeMonitorResourceQuotaAttributeResponseBody'; +export { DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorBrowser } from './DescribeMonitorResourceQuotaAttributeResponseBody'; +export { DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorEcsProbe } from './DescribeMonitorResourceQuotaAttributeResponseBody'; +export { DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorMobile } from './DescribeMonitorResourceQuotaAttributeResponseBody'; +export { DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorOperatorProbe } from './DescribeMonitorResourceQuotaAttributeResponseBody'; +export { DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorTask } from './DescribeMonitorResourceQuotaAttributeResponseBody'; +export { DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuota } from './DescribeMonitorResourceQuotaAttributeResponseBody'; +export { DescribeMonitoringAgentHostsResponseBodyHostsHost } from './DescribeMonitoringAgentHostsResponseBody'; +export { DescribeMonitoringAgentHostsResponseBodyHosts } from './DescribeMonitoringAgentHostsResponseBody'; +export { DescribeMonitoringAgentProcessesResponseBodyNodeProcessesNodeProcess } from './DescribeMonitoringAgentProcessesResponseBody'; +export { DescribeMonitoringAgentProcessesResponseBodyNodeProcesses } from './DescribeMonitoringAgentProcessesResponseBody'; +export { DescribeMonitoringAgentStatusesResponseBodyNodeStatusListNodeStatus } from './DescribeMonitoringAgentStatusesResponseBody'; +export { DescribeMonitoringAgentStatusesResponseBodyNodeStatusList } from './DescribeMonitoringAgentStatusesResponseBody'; +export { DescribeProductResourceTagKeyListResponseBodyTagKeys } from './DescribeProductResourceTagKeyListResponseBody'; +export { DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig } from './DescribeProductsOfActiveMetricRuleResponseBody'; +export { DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigList } from './DescribeProductsOfActiveMetricRuleResponseBody'; +export { DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRule } from './DescribeProductsOfActiveMetricRuleResponseBody'; +export { DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleList } from './DescribeProductsOfActiveMetricRuleResponseBody'; +export { DescribeProjectMetaResponseBodyResourcesResource } from './DescribeProjectMetaResponseBody'; +export { DescribeProjectMetaResponseBodyResources } from './DescribeProjectMetaResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodyMetricRules } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomScheduleDays } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomSchedule } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsIspCitiesIspCity } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsIspCities } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAssertionsAssertions } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAssertions } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAuthInfoScopes } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAuthInfo } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBlockedUrlList } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserHeaders } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserHosts } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserInfoBrowserInfo } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserInfo } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonConfigVariablesConfigVariables } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonConfigVariables } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonExpectExistString } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonExpectNonExistString } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonQuicTarget } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariablesExtractedVariablesParser } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariablesExtractedVariables } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariables } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsSteps } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonSteps } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonTrafficHijackElementBlacklist } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonTrafficHijackElementWhitelist } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJson } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsVpcConfig } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitors } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorISPCityListResponseBodyIspCityListIspCityIPPool } from './DescribeSiteMonitorIspcityListResponseBody'; +export { DescribeSiteMonitorISPCityListResponseBodyIspCityListIspCity } from './DescribeSiteMonitorIspcityListResponseBody'; +export { DescribeSiteMonitorISPCityListResponseBodyIspCityList } from './DescribeSiteMonitorIspcityListResponseBody'; +export { DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJsonAssertionsAssertions } from './DescribeSiteMonitorListResponseBody'; +export { DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJsonAssertions } from './DescribeSiteMonitorListResponseBody'; +export { DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJson } from './DescribeSiteMonitorListResponseBody'; +export { DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitor } from './DescribeSiteMonitorListResponseBody'; +export { DescribeSiteMonitorListResponseBodySiteMonitors } from './DescribeSiteMonitorListResponseBody'; +export { DescribeSiteMonitorQuotaResponseBodyData } from './DescribeSiteMonitorQuotaResponseBody'; +export { DescribeSyntheticProbeListResponseBodyIspCityList } from './DescribeSyntheticProbeListResponseBody'; +export { DescribeSystemEventAttributeResponseBodySystemEventsSystemEvent } from './DescribeSystemEventAttributeResponseBody'; +export { DescribeSystemEventAttributeResponseBodySystemEvents } from './DescribeSystemEventAttributeResponseBody'; +export { DescribeSystemEventCountResponseBodySystemEventCountsSystemEventCount } from './DescribeSystemEventCountResponseBody'; +export { DescribeSystemEventCountResponseBodySystemEventCounts } from './DescribeSystemEventCountResponseBody'; +export { DescribeSystemEventHistogramResponseBodySystemEventHistogramsSystemEventHistogram } from './DescribeSystemEventHistogramResponseBody'; +export { DescribeSystemEventHistogramResponseBodySystemEventHistograms } from './DescribeSystemEventHistogramResponseBody'; +export { DescribeSystemEventMetaListResponseBodyDataResource } from './DescribeSystemEventMetaListResponseBody'; +export { DescribeSystemEventMetaListResponseBodyData } from './DescribeSystemEventMetaListResponseBody'; +export { DescribeTagKeyListResponseBodyTagKeys } from './DescribeTagKeyListResponseBody'; +export { DescribeTagValueListResponseBodyTagValues } from './DescribeTagValueListResponseBody'; +export { DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyListNodeTaskInstanceInstanceList } from './DescribeUnhealthyHostAvailabilityResponseBody'; +export { DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyListNodeTaskInstance } from './DescribeUnhealthyHostAvailabilityResponseBody'; +export { DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyList } from './DescribeUnhealthyHostAvailabilityResponseBody'; +export { DisableSiteMonitorsResponseBodyData } from './DisableSiteMonitorsResponseBody'; +export { EnableSiteMonitorsResponseBodyData } from './EnableSiteMonitorsResponseBody'; +export { ModifyGroupMonitoringAgentProcessRequestAlertConfigTargetList } from './ModifyGroupMonitoringAgentProcessRequest'; +export { ModifyGroupMonitoringAgentProcessRequestAlertConfig } from './ModifyGroupMonitoringAgentProcessRequest'; +export { ModifyHostAvailabilityRequestAlertConfig } from './ModifyHostAvailabilityRequest'; +export { ModifyHostAvailabilityRequestTaskOption } from './ModifyHostAvailabilityRequest'; +export { ModifyHostAvailabilityRequestAlertConfigEscalationList } from './ModifyHostAvailabilityRequest'; +export { ModifyHostAvailabilityRequestAlertConfigTargetList } from './ModifyHostAvailabilityRequest'; +export { ModifyHybridMonitorSLSGroupRequestSLSGroupConfig } from './ModifyHybridMonitorSlsgroupRequest'; +export { ModifyHybridMonitorTaskRequestAttachLabels } from './ModifyHybridMonitorTaskRequest'; +export { ModifyHybridMonitorTaskRequestSLSProcessConfigExpress } from './ModifyHybridMonitorTaskRequest'; +export { ModifyHybridMonitorTaskRequestSLSProcessConfigFilterFilters } from './ModifyHybridMonitorTaskRequest'; +export { ModifyHybridMonitorTaskRequestSLSProcessConfigFilter } from './ModifyHybridMonitorTaskRequest'; +export { ModifyHybridMonitorTaskRequestSLSProcessConfigGroupBy } from './ModifyHybridMonitorTaskRequest'; +export { ModifyHybridMonitorTaskRequestSLSProcessConfigStatistics } from './ModifyHybridMonitorTaskRequest'; +export { ModifyHybridMonitorTaskRequestSLSProcessConfig } from './ModifyHybridMonitorTaskRequest'; +export { ModifyMetricRuleBlackListRequestMetrics } from './ModifyMetricRuleBlackListRequest'; +export { ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsCritical } from './ModifyMetricRuleTemplateRequest'; +export { ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsInfo } from './ModifyMetricRuleTemplateRequest'; +export { ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsWarn } from './ModifyMetricRuleTemplateRequest'; +export { ModifyMetricRuleTemplateRequestAlertTemplatesEscalations } from './ModifyMetricRuleTemplateRequest'; +export { ModifyMetricRuleTemplateRequestAlertTemplates } from './ModifyMetricRuleTemplateRequest'; +export { ModifyMonitorGroupInstancesRequestInstances } from './ModifyMonitorGroupInstancesRequest'; +export { ModifySiteMonitorResponseBodyData } from './ModifySiteMonitorResponseBody'; +export { PutContactRequestChannels } from './PutContactRequest'; +export { PutCustomEventRequestEventInfo } from './PutCustomEventRequest'; +export { PutCustomMetricRequestMetricList } from './PutCustomMetricRequest'; +export { PutEventRuleRequestEventPattern } from './PutEventRuleRequest'; +export { PutEventRuleTargetsRequestContactParameters } from './PutEventRuleTargetsRequest'; +export { PutEventRuleTargetsRequestFcParameters } from './PutEventRuleTargetsRequest'; +export { PutEventRuleTargetsRequestMnsParameters } from './PutEventRuleTargetsRequest'; +export { PutEventRuleTargetsRequestOpenApiParameters } from './PutEventRuleTargetsRequest'; +export { PutEventRuleTargetsRequestSlsParameters } from './PutEventRuleTargetsRequest'; +export { PutEventRuleTargetsRequestWebhookParameters } from './PutEventRuleTargetsRequest'; +export { PutEventRuleTargetsResponseBodyFailedContactParametersContactParameter } from './PutEventRuleTargetsResponseBody'; +export { PutEventRuleTargetsResponseBodyFailedContactParameters } from './PutEventRuleTargetsResponseBody'; +export { PutEventRuleTargetsResponseBodyFailedFcParametersFcParameter } from './PutEventRuleTargetsResponseBody'; +export { PutEventRuleTargetsResponseBodyFailedFcParameters } from './PutEventRuleTargetsResponseBody'; +export { PutEventRuleTargetsResponseBodyFailedMnsParametersMnsParameter } from './PutEventRuleTargetsResponseBody'; +export { PutEventRuleTargetsResponseBodyFailedMnsParameters } from './PutEventRuleTargetsResponseBody'; +export { PutGroupMetricRuleRequestEscalationsCritical } from './PutGroupMetricRuleRequest'; +export { PutGroupMetricRuleRequestEscalationsInfo } from './PutGroupMetricRuleRequest'; +export { PutGroupMetricRuleRequestEscalationsWarn } from './PutGroupMetricRuleRequest'; +export { PutGroupMetricRuleRequestEscalations } from './PutGroupMetricRuleRequest'; +export { PutGroupMetricRuleRequestLabels } from './PutGroupMetricRuleRequest'; +export { PutGroupMetricRuleResponseBodyResult } from './PutGroupMetricRuleResponseBody'; +export { PutHybridMonitorMetricDataRequestMetricListLabels } from './PutHybridMonitorMetricDataRequest'; +export { PutHybridMonitorMetricDataRequestMetricList } from './PutHybridMonitorMetricDataRequest'; +export { PutHybridMonitorMetricDataResponseBodyErrorDetail } from './PutHybridMonitorMetricDataResponseBody'; +export { PutLogMonitorRequestAggregates } from './PutLogMonitorRequest'; +export { PutLogMonitorRequestGroupbys } from './PutLogMonitorRequest'; +export { PutLogMonitorRequestValueFilter } from './PutLogMonitorRequest'; +export { PutMetricRuleTargetsRequestTargets } from './PutMetricRuleTargetsRequest'; +export { PutMetricRuleTargetsResponseBodyFailDataTargetsTarget } from './PutMetricRuleTargetsResponseBody'; +export { PutMetricRuleTargetsResponseBodyFailDataTargets } from './PutMetricRuleTargetsResponseBody'; +export { PutMetricRuleTargetsResponseBodyFailData } from './PutMetricRuleTargetsResponseBody'; +export { PutMonitorGroupDynamicRuleRequestGroupRulesFilters } from './PutMonitorGroupDynamicRuleRequest'; +export { PutMonitorGroupDynamicRuleRequestGroupRules } from './PutMonitorGroupDynamicRuleRequest'; +export { PutResourceMetricRuleRequestEscalationsCritical } from './PutResourceMetricRuleRequest'; +export { PutResourceMetricRuleRequestEscalationsInfo } from './PutResourceMetricRuleRequest'; +export { PutResourceMetricRuleRequestEscalationsWarn } from './PutResourceMetricRuleRequest'; +export { PutResourceMetricRuleRequestEscalations } from './PutResourceMetricRuleRequest'; +export { PutResourceMetricRuleRequestCompositeExpressionExpressionList } from './PutResourceMetricRuleRequest'; +export { PutResourceMetricRuleRequestCompositeExpression } from './PutResourceMetricRuleRequest'; +export { PutResourceMetricRuleRequestLabels } from './PutResourceMetricRuleRequest'; +export { PutResourceMetricRuleRequestPrometheusAnnotations } from './PutResourceMetricRuleRequest'; +export { PutResourceMetricRuleRequestPrometheus } from './PutResourceMetricRuleRequest'; +export { PutResourceMetricRuleShrinkRequestEscalationsCritical } from './PutResourceMetricRuleShrinkRequest'; +export { PutResourceMetricRuleShrinkRequestEscalationsInfo } from './PutResourceMetricRuleShrinkRequest'; +export { PutResourceMetricRuleShrinkRequestEscalationsWarn } from './PutResourceMetricRuleShrinkRequest'; +export { PutResourceMetricRuleShrinkRequestEscalations } from './PutResourceMetricRuleShrinkRequest'; +export { PutResourceMetricRuleShrinkRequestLabels } from './PutResourceMetricRuleShrinkRequest'; +export { PutResourceMetricRulesRequestRulesEscalationsCritical } from './PutResourceMetricRulesRequest'; +export { PutResourceMetricRulesRequestRulesEscalationsInfo } from './PutResourceMetricRulesRequest'; +export { PutResourceMetricRulesRequestRulesEscalationsWarn } from './PutResourceMetricRulesRequest'; +export { PutResourceMetricRulesRequestRulesEscalations } from './PutResourceMetricRulesRequest'; +export { PutResourceMetricRulesRequestRulesLabels } from './PutResourceMetricRulesRequest'; +export { PutResourceMetricRulesRequestRules } from './PutResourceMetricRulesRequest'; +export { PutResourceMetricRulesResponseBodyFailedListResultTargetResult } from './PutResourceMetricRulesResponseBody'; +export { PutResourceMetricRulesResponseBodyFailedListResultTarget } from './PutResourceMetricRulesResponseBody'; +export { PutResourceMetricRulesResponseBodyFailedListResult } from './PutResourceMetricRulesResponseBody'; +export { RemoveTagsRequestTag } from './RemoveTagsRequest'; +export { RemoveTagsResponseBodyTag } from './RemoveTagsResponseBody'; +export { AlertEvent } from './AlertEvent'; +export { AlertStrategyRelation } from './AlertStrategyRelation'; +export { Dimension } from './Dimension'; +export { EscalationRule } from './EscalationRule'; +export { Incident } from './Incident'; +export { Matcher } from './Matcher'; +export { MetricStat } from './MetricStat'; +export { MigrationJob } from './MigrationJob'; +export { NotificationStrategy } from './NotificationStrategy'; +export { NotificationTemplate } from './NotificationTemplate'; +export { PushingTarget } from './PushingTarget'; +export { Subscription } from './Subscription'; +export { AddTagsRequest } from './AddTagsRequest'; +export { AddTagsResponseBody } from './AddTagsResponseBody'; +export { AddTagsResponse } from './AddTagsResponse'; +export { ApplyMetricRuleTemplateRequest } from './ApplyMetricRuleTemplateRequest'; +export { ApplyMetricRuleTemplateResponseBody } from './ApplyMetricRuleTemplateResponseBody'; +export { ApplyMetricRuleTemplateResponse } from './ApplyMetricRuleTemplateResponse'; +export { BatchCreateInstantSiteMonitorRequest } from './BatchCreateInstantSiteMonitorRequest'; +export { BatchCreateInstantSiteMonitorResponseBody } from './BatchCreateInstantSiteMonitorResponseBody'; +export { BatchCreateInstantSiteMonitorResponse } from './BatchCreateInstantSiteMonitorResponse'; +export { BatchExportRequest } from './BatchExportRequest'; +export { BatchExportShrinkRequest } from './BatchExportShrinkRequest'; +export { BatchExportResponseBody } from './BatchExportResponseBody'; +export { BatchExportResponse } from './BatchExportResponse'; +export { CreateDynamicTagGroupRequest } from './CreateDynamicTagGroupRequest'; +export { CreateDynamicTagGroupResponseBody } from './CreateDynamicTagGroupResponseBody'; +export { CreateDynamicTagGroupResponse } from './CreateDynamicTagGroupResponse'; +export { CreateGroupMetricRulesRequest } from './CreateGroupMetricRulesRequest'; +export { CreateGroupMetricRulesResponseBody } from './CreateGroupMetricRulesResponseBody'; +export { CreateGroupMetricRulesResponse } from './CreateGroupMetricRulesResponse'; +export { CreateGroupMonitoringAgentProcessRequest } from './CreateGroupMonitoringAgentProcessRequest'; +export { CreateGroupMonitoringAgentProcessResponseBody } from './CreateGroupMonitoringAgentProcessResponseBody'; +export { CreateGroupMonitoringAgentProcessResponse } from './CreateGroupMonitoringAgentProcessResponse'; +export { CreateHostAvailabilityRequest } from './CreateHostAvailabilityRequest'; +export { CreateHostAvailabilityResponseBody } from './CreateHostAvailabilityResponseBody'; +export { CreateHostAvailabilityResponse } from './CreateHostAvailabilityResponse'; +export { CreateHybridMonitorNamespaceRequest } from './CreateHybridMonitorNamespaceRequest'; +export { CreateHybridMonitorNamespaceResponseBody } from './CreateHybridMonitorNamespaceResponseBody'; +export { CreateHybridMonitorNamespaceResponse } from './CreateHybridMonitorNamespaceResponse'; +export { CreateHybridMonitorSLSGroupRequest } from './CreateHybridMonitorSlsgroupRequest'; +export { CreateHybridMonitorSLSGroupResponseBody } from './CreateHybridMonitorSlsgroupResponseBody'; +export { CreateHybridMonitorSLSGroupResponse } from './CreateHybridMonitorSlsgroupResponse'; +export { CreateHybridMonitorTaskRequest } from './CreateHybridMonitorTaskRequest'; +export { CreateHybridMonitorTaskResponseBody } from './CreateHybridMonitorTaskResponseBody'; +export { CreateHybridMonitorTaskResponse } from './CreateHybridMonitorTaskResponse'; +export { CreateInstantSiteMonitorRequest } from './CreateInstantSiteMonitorRequest'; +export { CreateInstantSiteMonitorResponseBody } from './CreateInstantSiteMonitorResponseBody'; +export { CreateInstantSiteMonitorResponse } from './CreateInstantSiteMonitorResponse'; +export { CreateMetricRuleBlackListRequest } from './CreateMetricRuleBlackListRequest'; +export { CreateMetricRuleBlackListResponseBody } from './CreateMetricRuleBlackListResponseBody'; +export { CreateMetricRuleBlackListResponse } from './CreateMetricRuleBlackListResponse'; +export { CreateMetricRuleResourcesRequest } from './CreateMetricRuleResourcesRequest'; +export { CreateMetricRuleResourcesResponseBody } from './CreateMetricRuleResourcesResponseBody'; +export { CreateMetricRuleResourcesResponse } from './CreateMetricRuleResourcesResponse'; +export { CreateMetricRuleTemplateRequest } from './CreateMetricRuleTemplateRequest'; +export { CreateMetricRuleTemplateResponseBody } from './CreateMetricRuleTemplateResponseBody'; +export { CreateMetricRuleTemplateResponse } from './CreateMetricRuleTemplateResponse'; +export { CreateMonitorAgentProcessRequest } from './CreateMonitorAgentProcessRequest'; +export { CreateMonitorAgentProcessResponseBody } from './CreateMonitorAgentProcessResponseBody'; +export { CreateMonitorAgentProcessResponse } from './CreateMonitorAgentProcessResponse'; +export { CreateMonitorGroupRequest } from './CreateMonitorGroupRequest'; +export { CreateMonitorGroupResponseBody } from './CreateMonitorGroupResponseBody'; +export { CreateMonitorGroupResponse } from './CreateMonitorGroupResponse'; +export { CreateMonitorGroupByResourceGroupIdRequest } from './CreateMonitorGroupByResourceGroupIdRequest'; +export { CreateMonitorGroupByResourceGroupIdResponseBody } from './CreateMonitorGroupByResourceGroupIdResponseBody'; +export { CreateMonitorGroupByResourceGroupIdResponse } from './CreateMonitorGroupByResourceGroupIdResponse'; +export { CreateMonitorGroupInstancesRequest } from './CreateMonitorGroupInstancesRequest'; +export { CreateMonitorGroupInstancesResponseBody } from './CreateMonitorGroupInstancesResponseBody'; +export { CreateMonitorGroupInstancesResponse } from './CreateMonitorGroupInstancesResponse'; +export { CreateMonitorGroupNotifyPolicyRequest } from './CreateMonitorGroupNotifyPolicyRequest'; +export { CreateMonitorGroupNotifyPolicyResponseBody } from './CreateMonitorGroupNotifyPolicyResponseBody'; +export { CreateMonitorGroupNotifyPolicyResponse } from './CreateMonitorGroupNotifyPolicyResponse'; +export { CreateMonitoringAgentProcessRequest } from './CreateMonitoringAgentProcessRequest'; +export { CreateMonitoringAgentProcessResponseBody } from './CreateMonitoringAgentProcessResponseBody'; +export { CreateMonitoringAgentProcessResponse } from './CreateMonitoringAgentProcessResponse'; +export { CreateSiteMonitorRequest } from './CreateSiteMonitorRequest'; +export { CreateSiteMonitorResponseBody } from './CreateSiteMonitorResponseBody'; +export { CreateSiteMonitorResponse } from './CreateSiteMonitorResponse'; +export { CursorRequest } from './CursorRequest'; +export { CursorShrinkRequest } from './CursorShrinkRequest'; +export { CursorResponseBody } from './CursorResponseBody'; +export { CursorResponse } from './CursorResponse'; +export { DeleteContactRequest } from './DeleteContactRequest'; +export { DeleteContactResponseBody } from './DeleteContactResponseBody'; +export { DeleteContactResponse } from './DeleteContactResponse'; +export { DeleteContactGroupRequest } from './DeleteContactGroupRequest'; +export { DeleteContactGroupResponseBody } from './DeleteContactGroupResponseBody'; +export { DeleteContactGroupResponse } from './DeleteContactGroupResponse'; +export { DeleteCustomMetricRequest } from './DeleteCustomMetricRequest'; +export { DeleteCustomMetricResponseBody } from './DeleteCustomMetricResponseBody'; +export { DeleteCustomMetricResponse } from './DeleteCustomMetricResponse'; +export { DeleteDynamicTagGroupRequest } from './DeleteDynamicTagGroupRequest'; +export { DeleteDynamicTagGroupResponseBody } from './DeleteDynamicTagGroupResponseBody'; +export { DeleteDynamicTagGroupResponse } from './DeleteDynamicTagGroupResponse'; +export { DeleteEventRuleTargetsRequest } from './DeleteEventRuleTargetsRequest'; +export { DeleteEventRuleTargetsResponseBody } from './DeleteEventRuleTargetsResponseBody'; +export { DeleteEventRuleTargetsResponse } from './DeleteEventRuleTargetsResponse'; +export { DeleteEventRulesRequest } from './DeleteEventRulesRequest'; +export { DeleteEventRulesResponseBody } from './DeleteEventRulesResponseBody'; +export { DeleteEventRulesResponse } from './DeleteEventRulesResponse'; +export { DeleteExporterOutputRequest } from './DeleteExporterOutputRequest'; +export { DeleteExporterOutputResponseBody } from './DeleteExporterOutputResponseBody'; +export { DeleteExporterOutputResponse } from './DeleteExporterOutputResponse'; +export { DeleteExporterRuleRequest } from './DeleteExporterRuleRequest'; +export { DeleteExporterRuleResponseBody } from './DeleteExporterRuleResponseBody'; +export { DeleteExporterRuleResponse } from './DeleteExporterRuleResponse'; +export { DeleteGroupMonitoringAgentProcessRequest } from './DeleteGroupMonitoringAgentProcessRequest'; +export { DeleteGroupMonitoringAgentProcessResponseBody } from './DeleteGroupMonitoringAgentProcessResponseBody'; +export { DeleteGroupMonitoringAgentProcessResponse } from './DeleteGroupMonitoringAgentProcessResponse'; +export { DeleteHostAvailabilityRequest } from './DeleteHostAvailabilityRequest'; +export { DeleteHostAvailabilityResponseBody } from './DeleteHostAvailabilityResponseBody'; +export { DeleteHostAvailabilityResponse } from './DeleteHostAvailabilityResponse'; +export { DeleteHybridMonitorNamespaceRequest } from './DeleteHybridMonitorNamespaceRequest'; +export { DeleteHybridMonitorNamespaceResponseBody } from './DeleteHybridMonitorNamespaceResponseBody'; +export { DeleteHybridMonitorNamespaceResponse } from './DeleteHybridMonitorNamespaceResponse'; +export { DeleteHybridMonitorSLSGroupRequest } from './DeleteHybridMonitorSlsgroupRequest'; +export { DeleteHybridMonitorSLSGroupResponseBody } from './DeleteHybridMonitorSlsgroupResponseBody'; +export { DeleteHybridMonitorSLSGroupResponse } from './DeleteHybridMonitorSlsgroupResponse'; +export { DeleteHybridMonitorTaskRequest } from './DeleteHybridMonitorTaskRequest'; +export { DeleteHybridMonitorTaskResponseBody } from './DeleteHybridMonitorTaskResponseBody'; +export { DeleteHybridMonitorTaskResponse } from './DeleteHybridMonitorTaskResponse'; +export { DeleteLogMonitorRequest } from './DeleteLogMonitorRequest'; +export { DeleteLogMonitorResponseBody } from './DeleteLogMonitorResponseBody'; +export { DeleteLogMonitorResponse } from './DeleteLogMonitorResponse'; +export { DeleteMetricRuleBlackListRequest } from './DeleteMetricRuleBlackListRequest'; +export { DeleteMetricRuleBlackListResponseBody } from './DeleteMetricRuleBlackListResponseBody'; +export { DeleteMetricRuleBlackListResponse } from './DeleteMetricRuleBlackListResponse'; +export { DeleteMetricRuleResourcesRequest } from './DeleteMetricRuleResourcesRequest'; +export { DeleteMetricRuleResourcesResponseBody } from './DeleteMetricRuleResourcesResponseBody'; +export { DeleteMetricRuleResourcesResponse } from './DeleteMetricRuleResourcesResponse'; +export { DeleteMetricRuleTargetsRequest } from './DeleteMetricRuleTargetsRequest'; +export { DeleteMetricRuleTargetsResponseBody } from './DeleteMetricRuleTargetsResponseBody'; +export { DeleteMetricRuleTargetsResponse } from './DeleteMetricRuleTargetsResponse'; +export { DeleteMetricRuleTemplateRequest } from './DeleteMetricRuleTemplateRequest'; +export { DeleteMetricRuleTemplateResponseBody } from './DeleteMetricRuleTemplateResponseBody'; +export { DeleteMetricRuleTemplateResponse } from './DeleteMetricRuleTemplateResponse'; +export { DeleteMetricRulesRequest } from './DeleteMetricRulesRequest'; +export { DeleteMetricRulesResponseBody } from './DeleteMetricRulesResponseBody'; +export { DeleteMetricRulesResponse } from './DeleteMetricRulesResponse'; +export { DeleteMonitorGroupRequest } from './DeleteMonitorGroupRequest'; +export { DeleteMonitorGroupResponseBody } from './DeleteMonitorGroupResponseBody'; +export { DeleteMonitorGroupResponse } from './DeleteMonitorGroupResponse'; +export { DeleteMonitorGroupDynamicRuleRequest } from './DeleteMonitorGroupDynamicRuleRequest'; +export { DeleteMonitorGroupDynamicRuleResponseBody } from './DeleteMonitorGroupDynamicRuleResponseBody'; +export { DeleteMonitorGroupDynamicRuleResponse } from './DeleteMonitorGroupDynamicRuleResponse'; +export { DeleteMonitorGroupInstancesRequest } from './DeleteMonitorGroupInstancesRequest'; +export { DeleteMonitorGroupInstancesResponseBody } from './DeleteMonitorGroupInstancesResponseBody'; +export { DeleteMonitorGroupInstancesResponse } from './DeleteMonitorGroupInstancesResponse'; +export { DeleteMonitorGroupNotifyPolicyRequest } from './DeleteMonitorGroupNotifyPolicyRequest'; +export { DeleteMonitorGroupNotifyPolicyResponseBody } from './DeleteMonitorGroupNotifyPolicyResponseBody'; +export { DeleteMonitorGroupNotifyPolicyResponse } from './DeleteMonitorGroupNotifyPolicyResponse'; +export { DeleteMonitoringAgentProcessRequest } from './DeleteMonitoringAgentProcessRequest'; +export { DeleteMonitoringAgentProcessResponseBody } from './DeleteMonitoringAgentProcessResponseBody'; +export { DeleteMonitoringAgentProcessResponse } from './DeleteMonitoringAgentProcessResponse'; +export { DeleteSiteMonitorsRequest } from './DeleteSiteMonitorsRequest'; +export { DeleteSiteMonitorsResponseBody } from './DeleteSiteMonitorsResponseBody'; +export { DeleteSiteMonitorsResponse } from './DeleteSiteMonitorsResponse'; +export { DescribeActiveMetricRuleListRequest } from './DescribeActiveMetricRuleListRequest'; +export { DescribeActiveMetricRuleListResponseBody } from './DescribeActiveMetricRuleListResponseBody'; +export { DescribeActiveMetricRuleListResponse } from './DescribeActiveMetricRuleListResponse'; +export { DescribeAlertHistoryListRequest } from './DescribeAlertHistoryListRequest'; +export { DescribeAlertHistoryListResponseBody } from './DescribeAlertHistoryListResponseBody'; +export { DescribeAlertHistoryListResponse } from './DescribeAlertHistoryListResponse'; +export { DescribeAlertLogCountRequest } from './DescribeAlertLogCountRequest'; +export { DescribeAlertLogCountResponseBody } from './DescribeAlertLogCountResponseBody'; +export { DescribeAlertLogCountResponse } from './DescribeAlertLogCountResponse'; +export { DescribeAlertLogHistogramRequest } from './DescribeAlertLogHistogramRequest'; +export { DescribeAlertLogHistogramResponseBody } from './DescribeAlertLogHistogramResponseBody'; +export { DescribeAlertLogHistogramResponse } from './DescribeAlertLogHistogramResponse'; +export { DescribeAlertLogListRequest } from './DescribeAlertLogListRequest'; +export { DescribeAlertLogListResponseBody } from './DescribeAlertLogListResponseBody'; +export { DescribeAlertLogListResponse } from './DescribeAlertLogListResponse'; +export { DescribeAlertingMetricRuleResourcesRequest } from './DescribeAlertingMetricRuleResourcesRequest'; +export { DescribeAlertingMetricRuleResourcesResponseBody } from './DescribeAlertingMetricRuleResourcesResponseBody'; +export { DescribeAlertingMetricRuleResourcesResponse } from './DescribeAlertingMetricRuleResourcesResponse'; +export { DescribeContactGroupListRequest } from './DescribeContactGroupListRequest'; +export { DescribeContactGroupListResponseBody } from './DescribeContactGroupListResponseBody'; +export { DescribeContactGroupListResponse } from './DescribeContactGroupListResponse'; +export { DescribeContactListRequest } from './DescribeContactListRequest'; +export { DescribeContactListResponseBody } from './DescribeContactListResponseBody'; +export { DescribeContactListResponse } from './DescribeContactListResponse'; +export { DescribeContactListByContactGroupRequest } from './DescribeContactListByContactGroupRequest'; +export { DescribeContactListByContactGroupResponseBody } from './DescribeContactListByContactGroupResponseBody'; +export { DescribeContactListByContactGroupResponse } from './DescribeContactListByContactGroupResponse'; +export { DescribeCustomEventAttributeRequest } from './DescribeCustomEventAttributeRequest'; +export { DescribeCustomEventAttributeResponseBody } from './DescribeCustomEventAttributeResponseBody'; +export { DescribeCustomEventAttributeResponse } from './DescribeCustomEventAttributeResponse'; +export { DescribeCustomEventCountRequest } from './DescribeCustomEventCountRequest'; +export { DescribeCustomEventCountResponseBody } from './DescribeCustomEventCountResponseBody'; +export { DescribeCustomEventCountResponse } from './DescribeCustomEventCountResponse'; +export { DescribeCustomEventHistogramRequest } from './DescribeCustomEventHistogramRequest'; +export { DescribeCustomEventHistogramResponseBody } from './DescribeCustomEventHistogramResponseBody'; +export { DescribeCustomEventHistogramResponse } from './DescribeCustomEventHistogramResponse'; +export { DescribeCustomMetricListRequest } from './DescribeCustomMetricListRequest'; +export { DescribeCustomMetricListResponseBody } from './DescribeCustomMetricListResponseBody'; +export { DescribeCustomMetricListResponse } from './DescribeCustomMetricListResponse'; +export { DescribeDynamicTagRuleListRequest } from './DescribeDynamicTagRuleListRequest'; +export { DescribeDynamicTagRuleListResponseBody } from './DescribeDynamicTagRuleListResponseBody'; +export { DescribeDynamicTagRuleListResponse } from './DescribeDynamicTagRuleListResponse'; +export { DescribeEventRuleAttributeRequest } from './DescribeEventRuleAttributeRequest'; +export { DescribeEventRuleAttributeResponseBody } from './DescribeEventRuleAttributeResponseBody'; +export { DescribeEventRuleAttributeResponse } from './DescribeEventRuleAttributeResponse'; +export { DescribeEventRuleListRequest } from './DescribeEventRuleListRequest'; +export { DescribeEventRuleListResponseBody } from './DescribeEventRuleListResponseBody'; +export { DescribeEventRuleListResponse } from './DescribeEventRuleListResponse'; +export { DescribeEventRuleTargetListRequest } from './DescribeEventRuleTargetListRequest'; +export { DescribeEventRuleTargetListResponseBody } from './DescribeEventRuleTargetListResponseBody'; +export { DescribeEventRuleTargetListResponse } from './DescribeEventRuleTargetListResponse'; +export { DescribeExporterOutputListRequest } from './DescribeExporterOutputListRequest'; +export { DescribeExporterOutputListResponseBody } from './DescribeExporterOutputListResponseBody'; +export { DescribeExporterOutputListResponse } from './DescribeExporterOutputListResponse'; +export { DescribeExporterRuleListRequest } from './DescribeExporterRuleListRequest'; +export { DescribeExporterRuleListResponseBody } from './DescribeExporterRuleListResponseBody'; +export { DescribeExporterRuleListResponse } from './DescribeExporterRuleListResponse'; +export { DescribeGroupMonitoringAgentProcessRequest } from './DescribeGroupMonitoringAgentProcessRequest'; +export { DescribeGroupMonitoringAgentProcessResponseBody } from './DescribeGroupMonitoringAgentProcessResponseBody'; +export { DescribeGroupMonitoringAgentProcessResponse } from './DescribeGroupMonitoringAgentProcessResponse'; +export { DescribeHostAvailabilityListRequest } from './DescribeHostAvailabilityListRequest'; +export { DescribeHostAvailabilityListResponseBody } from './DescribeHostAvailabilityListResponseBody'; +export { DescribeHostAvailabilityListResponse } from './DescribeHostAvailabilityListResponse'; +export { DescribeHybridMonitorDataListRequest } from './DescribeHybridMonitorDataListRequest'; +export { DescribeHybridMonitorDataListResponseBody } from './DescribeHybridMonitorDataListResponseBody'; +export { DescribeHybridMonitorDataListResponse } from './DescribeHybridMonitorDataListResponse'; +export { DescribeHybridMonitorNamespaceListRequest } from './DescribeHybridMonitorNamespaceListRequest'; +export { DescribeHybridMonitorNamespaceListResponseBody } from './DescribeHybridMonitorNamespaceListResponseBody'; +export { DescribeHybridMonitorNamespaceListResponse } from './DescribeHybridMonitorNamespaceListResponse'; +export { DescribeHybridMonitorSLSGroupRequest } from './DescribeHybridMonitorSlsgroupRequest'; +export { DescribeHybridMonitorSLSGroupResponseBody } from './DescribeHybridMonitorSlsgroupResponseBody'; +export { DescribeHybridMonitorSLSGroupResponse } from './DescribeHybridMonitorSlsgroupResponse'; +export { DescribeHybridMonitorTaskListRequest } from './DescribeHybridMonitorTaskListRequest'; +export { DescribeHybridMonitorTaskListResponseBody } from './DescribeHybridMonitorTaskListResponseBody'; +export { DescribeHybridMonitorTaskListResponse } from './DescribeHybridMonitorTaskListResponse'; +export { DescribeLogMonitorAttributeRequest } from './DescribeLogMonitorAttributeRequest'; +export { DescribeLogMonitorAttributeResponseBody } from './DescribeLogMonitorAttributeResponseBody'; +export { DescribeLogMonitorAttributeResponse } from './DescribeLogMonitorAttributeResponse'; +export { DescribeLogMonitorListRequest } from './DescribeLogMonitorListRequest'; +export { DescribeLogMonitorListResponseBody } from './DescribeLogMonitorListResponseBody'; +export { DescribeLogMonitorListResponse } from './DescribeLogMonitorListResponse'; +export { DescribeMetricDataRequest } from './DescribeMetricDataRequest'; +export { DescribeMetricDataResponseBody } from './DescribeMetricDataResponseBody'; +export { DescribeMetricDataResponse } from './DescribeMetricDataResponse'; +export { DescribeMetricLastRequest } from './DescribeMetricLastRequest'; +export { DescribeMetricLastResponseBody } from './DescribeMetricLastResponseBody'; +export { DescribeMetricLastResponse } from './DescribeMetricLastResponse'; +export { DescribeMetricListRequest } from './DescribeMetricListRequest'; +export { DescribeMetricListResponseBody } from './DescribeMetricListResponseBody'; +export { DescribeMetricListResponse } from './DescribeMetricListResponse'; +export { DescribeMetricMetaListRequest } from './DescribeMetricMetaListRequest'; +export { DescribeMetricMetaListResponseBody } from './DescribeMetricMetaListResponseBody'; +export { DescribeMetricMetaListResponse } from './DescribeMetricMetaListResponse'; +export { DescribeMetricRuleBlackListRequest } from './DescribeMetricRuleBlackListRequest'; +export { DescribeMetricRuleBlackListResponseBody } from './DescribeMetricRuleBlackListResponseBody'; +export { DescribeMetricRuleBlackListResponse } from './DescribeMetricRuleBlackListResponse'; +export { DescribeMetricRuleCountRequest } from './DescribeMetricRuleCountRequest'; +export { DescribeMetricRuleCountResponseBody } from './DescribeMetricRuleCountResponseBody'; +export { DescribeMetricRuleCountResponse } from './DescribeMetricRuleCountResponse'; +export { DescribeMetricRuleListRequest } from './DescribeMetricRuleListRequest'; +export { DescribeMetricRuleListResponseBody } from './DescribeMetricRuleListResponseBody'; +export { DescribeMetricRuleListResponse } from './DescribeMetricRuleListResponse'; +export { DescribeMetricRuleTargetsRequest } from './DescribeMetricRuleTargetsRequest'; +export { DescribeMetricRuleTargetsResponseBody } from './DescribeMetricRuleTargetsResponseBody'; +export { DescribeMetricRuleTargetsResponse } from './DescribeMetricRuleTargetsResponse'; +export { DescribeMetricRuleTemplateAttributeRequest } from './DescribeMetricRuleTemplateAttributeRequest'; +export { DescribeMetricRuleTemplateAttributeResponseBody } from './DescribeMetricRuleTemplateAttributeResponseBody'; +export { DescribeMetricRuleTemplateAttributeResponse } from './DescribeMetricRuleTemplateAttributeResponse'; +export { DescribeMetricRuleTemplateListRequest } from './DescribeMetricRuleTemplateListRequest'; +export { DescribeMetricRuleTemplateListResponseBody } from './DescribeMetricRuleTemplateListResponseBody'; +export { DescribeMetricRuleTemplateListResponse } from './DescribeMetricRuleTemplateListResponse'; +export { DescribeMetricTopRequest } from './DescribeMetricTopRequest'; +export { DescribeMetricTopResponseBody } from './DescribeMetricTopResponseBody'; +export { DescribeMetricTopResponse } from './DescribeMetricTopResponse'; +export { DescribeMonitorGroupCategoriesRequest } from './DescribeMonitorGroupCategoriesRequest'; +export { DescribeMonitorGroupCategoriesResponseBody } from './DescribeMonitorGroupCategoriesResponseBody'; +export { DescribeMonitorGroupCategoriesResponse } from './DescribeMonitorGroupCategoriesResponse'; +export { DescribeMonitorGroupDynamicRulesRequest } from './DescribeMonitorGroupDynamicRulesRequest'; +export { DescribeMonitorGroupDynamicRulesResponseBody } from './DescribeMonitorGroupDynamicRulesResponseBody'; +export { DescribeMonitorGroupDynamicRulesResponse } from './DescribeMonitorGroupDynamicRulesResponse'; +export { DescribeMonitorGroupInstanceAttributeRequest } from './DescribeMonitorGroupInstanceAttributeRequest'; +export { DescribeMonitorGroupInstanceAttributeResponseBody } from './DescribeMonitorGroupInstanceAttributeResponseBody'; +export { DescribeMonitorGroupInstanceAttributeResponse } from './DescribeMonitorGroupInstanceAttributeResponse'; +export { DescribeMonitorGroupInstancesRequest } from './DescribeMonitorGroupInstancesRequest'; +export { DescribeMonitorGroupInstancesResponseBody } from './DescribeMonitorGroupInstancesResponseBody'; +export { DescribeMonitorGroupInstancesResponse } from './DescribeMonitorGroupInstancesResponse'; +export { DescribeMonitorGroupNotifyPolicyListRequest } from './DescribeMonitorGroupNotifyPolicyListRequest'; +export { DescribeMonitorGroupNotifyPolicyListResponseBody } from './DescribeMonitorGroupNotifyPolicyListResponseBody'; +export { DescribeMonitorGroupNotifyPolicyListResponse } from './DescribeMonitorGroupNotifyPolicyListResponse'; +export { DescribeMonitorGroupsRequest } from './DescribeMonitorGroupsRequest'; +export { DescribeMonitorGroupsResponseBody } from './DescribeMonitorGroupsResponseBody'; +export { DescribeMonitorGroupsResponse } from './DescribeMonitorGroupsResponse'; +export { DescribeMonitorResourceQuotaAttributeRequest } from './DescribeMonitorResourceQuotaAttributeRequest'; +export { DescribeMonitorResourceQuotaAttributeResponseBody } from './DescribeMonitorResourceQuotaAttributeResponseBody'; +export { DescribeMonitorResourceQuotaAttributeResponse } from './DescribeMonitorResourceQuotaAttributeResponse'; +export { DescribeMonitoringAgentAccessKeyRequest } from './DescribeMonitoringAgentAccessKeyRequest'; +export { DescribeMonitoringAgentAccessKeyResponseBody } from './DescribeMonitoringAgentAccessKeyResponseBody'; +export { DescribeMonitoringAgentAccessKeyResponse } from './DescribeMonitoringAgentAccessKeyResponse'; +export { DescribeMonitoringAgentConfigRequest } from './DescribeMonitoringAgentConfigRequest'; +export { DescribeMonitoringAgentConfigResponseBody } from './DescribeMonitoringAgentConfigResponseBody'; +export { DescribeMonitoringAgentConfigResponse } from './DescribeMonitoringAgentConfigResponse'; +export { DescribeMonitoringAgentHostsRequest } from './DescribeMonitoringAgentHostsRequest'; +export { DescribeMonitoringAgentHostsResponseBody } from './DescribeMonitoringAgentHostsResponseBody'; +export { DescribeMonitoringAgentHostsResponse } from './DescribeMonitoringAgentHostsResponse'; +export { DescribeMonitoringAgentProcessesRequest } from './DescribeMonitoringAgentProcessesRequest'; +export { DescribeMonitoringAgentProcessesResponseBody } from './DescribeMonitoringAgentProcessesResponseBody'; +export { DescribeMonitoringAgentProcessesResponse } from './DescribeMonitoringAgentProcessesResponse'; +export { DescribeMonitoringAgentStatusesRequest } from './DescribeMonitoringAgentStatusesRequest'; +export { DescribeMonitoringAgentStatusesResponseBody } from './DescribeMonitoringAgentStatusesResponseBody'; +export { DescribeMonitoringAgentStatusesResponse } from './DescribeMonitoringAgentStatusesResponse'; +export { DescribeMonitoringConfigRequest } from './DescribeMonitoringConfigRequest'; +export { DescribeMonitoringConfigResponseBody } from './DescribeMonitoringConfigResponseBody'; +export { DescribeMonitoringConfigResponse } from './DescribeMonitoringConfigResponse'; +export { DescribeProductResourceTagKeyListRequest } from './DescribeProductResourceTagKeyListRequest'; +export { DescribeProductResourceTagKeyListResponseBody } from './DescribeProductResourceTagKeyListResponseBody'; +export { DescribeProductResourceTagKeyListResponse } from './DescribeProductResourceTagKeyListResponse'; +export { DescribeProductsOfActiveMetricRuleRequest } from './DescribeProductsOfActiveMetricRuleRequest'; +export { DescribeProductsOfActiveMetricRuleResponseBody } from './DescribeProductsOfActiveMetricRuleResponseBody'; +export { DescribeProductsOfActiveMetricRuleResponse } from './DescribeProductsOfActiveMetricRuleResponse'; +export { DescribeProjectMetaRequest } from './DescribeProjectMetaRequest'; +export { DescribeProjectMetaResponseBody } from './DescribeProjectMetaResponseBody'; +export { DescribeProjectMetaResponse } from './DescribeProjectMetaResponse'; +export { DescribeSiteMonitorAttributeRequest } from './DescribeSiteMonitorAttributeRequest'; +export { DescribeSiteMonitorAttributeResponseBody } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponse } from './DescribeSiteMonitorAttributeResponse'; +export { DescribeSiteMonitorDataRequest } from './DescribeSiteMonitorDataRequest'; +export { DescribeSiteMonitorDataResponseBody } from './DescribeSiteMonitorDataResponseBody'; +export { DescribeSiteMonitorDataResponse } from './DescribeSiteMonitorDataResponse'; +export { DescribeSiteMonitorISPCityListRequest } from './DescribeSiteMonitorIspcityListRequest'; +export { DescribeSiteMonitorISPCityListResponseBody } from './DescribeSiteMonitorIspcityListResponseBody'; +export { DescribeSiteMonitorISPCityListResponse } from './DescribeSiteMonitorIspcityListResponse'; +export { DescribeSiteMonitorListRequest } from './DescribeSiteMonitorListRequest'; +export { DescribeSiteMonitorListResponseBody } from './DescribeSiteMonitorListResponseBody'; +export { DescribeSiteMonitorListResponse } from './DescribeSiteMonitorListResponse'; +export { DescribeSiteMonitorLogRequest } from './DescribeSiteMonitorLogRequest'; +export { DescribeSiteMonitorLogResponseBody } from './DescribeSiteMonitorLogResponseBody'; +export { DescribeSiteMonitorLogResponse } from './DescribeSiteMonitorLogResponse'; +export { DescribeSiteMonitorQuotaRequest } from './DescribeSiteMonitorQuotaRequest'; +export { DescribeSiteMonitorQuotaResponseBody } from './DescribeSiteMonitorQuotaResponseBody'; +export { DescribeSiteMonitorQuotaResponse } from './DescribeSiteMonitorQuotaResponse'; +export { DescribeSiteMonitorStatisticsRequest } from './DescribeSiteMonitorStatisticsRequest'; +export { DescribeSiteMonitorStatisticsResponseBody } from './DescribeSiteMonitorStatisticsResponseBody'; +export { DescribeSiteMonitorStatisticsResponse } from './DescribeSiteMonitorStatisticsResponse'; +export { DescribeSyntheticProbeListRequest } from './DescribeSyntheticProbeListRequest'; +export { DescribeSyntheticProbeListResponseBody } from './DescribeSyntheticProbeListResponseBody'; +export { DescribeSyntheticProbeListResponse } from './DescribeSyntheticProbeListResponse'; +export { DescribeSystemEventAttributeRequest } from './DescribeSystemEventAttributeRequest'; +export { DescribeSystemEventAttributeResponseBody } from './DescribeSystemEventAttributeResponseBody'; +export { DescribeSystemEventAttributeResponse } from './DescribeSystemEventAttributeResponse'; +export { DescribeSystemEventCountRequest } from './DescribeSystemEventCountRequest'; +export { DescribeSystemEventCountResponseBody } from './DescribeSystemEventCountResponseBody'; +export { DescribeSystemEventCountResponse } from './DescribeSystemEventCountResponse'; +export { DescribeSystemEventHistogramRequest } from './DescribeSystemEventHistogramRequest'; +export { DescribeSystemEventHistogramResponseBody } from './DescribeSystemEventHistogramResponseBody'; +export { DescribeSystemEventHistogramResponse } from './DescribeSystemEventHistogramResponse'; +export { DescribeSystemEventMetaListRequest } from './DescribeSystemEventMetaListRequest'; +export { DescribeSystemEventMetaListResponseBody } from './DescribeSystemEventMetaListResponseBody'; +export { DescribeSystemEventMetaListResponse } from './DescribeSystemEventMetaListResponse'; +export { DescribeTagKeyListRequest } from './DescribeTagKeyListRequest'; +export { DescribeTagKeyListResponseBody } from './DescribeTagKeyListResponseBody'; +export { DescribeTagKeyListResponse } from './DescribeTagKeyListResponse'; +export { DescribeTagValueListRequest } from './DescribeTagValueListRequest'; +export { DescribeTagValueListResponseBody } from './DescribeTagValueListResponseBody'; +export { DescribeTagValueListResponse } from './DescribeTagValueListResponse'; +export { DescribeUnhealthyHostAvailabilityRequest } from './DescribeUnhealthyHostAvailabilityRequest'; +export { DescribeUnhealthyHostAvailabilityResponseBody } from './DescribeUnhealthyHostAvailabilityResponseBody'; +export { DescribeUnhealthyHostAvailabilityResponse } from './DescribeUnhealthyHostAvailabilityResponse'; +export { DisableActiveMetricRuleRequest } from './DisableActiveMetricRuleRequest'; +export { DisableActiveMetricRuleResponseBody } from './DisableActiveMetricRuleResponseBody'; +export { DisableActiveMetricRuleResponse } from './DisableActiveMetricRuleResponse'; +export { DisableEventRulesRequest } from './DisableEventRulesRequest'; +export { DisableEventRulesResponseBody } from './DisableEventRulesResponseBody'; +export { DisableEventRulesResponse } from './DisableEventRulesResponse'; +export { DisableHostAvailabilityRequest } from './DisableHostAvailabilityRequest'; +export { DisableHostAvailabilityResponseBody } from './DisableHostAvailabilityResponseBody'; +export { DisableHostAvailabilityResponse } from './DisableHostAvailabilityResponse'; +export { DisableMetricRulesRequest } from './DisableMetricRulesRequest'; +export { DisableMetricRulesResponseBody } from './DisableMetricRulesResponseBody'; +export { DisableMetricRulesResponse } from './DisableMetricRulesResponse'; +export { DisableSiteMonitorsRequest } from './DisableSiteMonitorsRequest'; +export { DisableSiteMonitorsResponseBody } from './DisableSiteMonitorsResponseBody'; +export { DisableSiteMonitorsResponse } from './DisableSiteMonitorsResponse'; +export { EnableActiveMetricRuleRequest } from './EnableActiveMetricRuleRequest'; +export { EnableActiveMetricRuleResponseBody } from './EnableActiveMetricRuleResponseBody'; +export { EnableActiveMetricRuleResponse } from './EnableActiveMetricRuleResponse'; +export { EnableEventRulesRequest } from './EnableEventRulesRequest'; +export { EnableEventRulesResponseBody } from './EnableEventRulesResponseBody'; +export { EnableEventRulesResponse } from './EnableEventRulesResponse'; +export { EnableHostAvailabilityRequest } from './EnableHostAvailabilityRequest'; +export { EnableHostAvailabilityResponseBody } from './EnableHostAvailabilityResponseBody'; +export { EnableHostAvailabilityResponse } from './EnableHostAvailabilityResponse'; +export { EnableMetricRuleBlackListRequest } from './EnableMetricRuleBlackListRequest'; +export { EnableMetricRuleBlackListResponseBody } from './EnableMetricRuleBlackListResponseBody'; +export { EnableMetricRuleBlackListResponse } from './EnableMetricRuleBlackListResponse'; +export { EnableMetricRulesRequest } from './EnableMetricRulesRequest'; +export { EnableMetricRulesResponseBody } from './EnableMetricRulesResponseBody'; +export { EnableMetricRulesResponse } from './EnableMetricRulesResponse'; +export { EnableSiteMonitorsRequest } from './EnableSiteMonitorsRequest'; +export { EnableSiteMonitorsResponseBody } from './EnableSiteMonitorsResponseBody'; +export { EnableSiteMonitorsResponse } from './EnableSiteMonitorsResponse'; +export { InstallMonitoringAgentRequest } from './InstallMonitoringAgentRequest'; +export { InstallMonitoringAgentResponseBody } from './InstallMonitoringAgentResponseBody'; +export { InstallMonitoringAgentResponse } from './InstallMonitoringAgentResponse'; +export { ModifyGroupMonitoringAgentProcessRequest } from './ModifyGroupMonitoringAgentProcessRequest'; +export { ModifyGroupMonitoringAgentProcessResponseBody } from './ModifyGroupMonitoringAgentProcessResponseBody'; +export { ModifyGroupMonitoringAgentProcessResponse } from './ModifyGroupMonitoringAgentProcessResponse'; +export { ModifyHostAvailabilityRequest } from './ModifyHostAvailabilityRequest'; +export { ModifyHostAvailabilityResponseBody } from './ModifyHostAvailabilityResponseBody'; +export { ModifyHostAvailabilityResponse } from './ModifyHostAvailabilityResponse'; +export { ModifyHostInfoRequest } from './ModifyHostInfoRequest'; +export { ModifyHostInfoResponseBody } from './ModifyHostInfoResponseBody'; +export { ModifyHostInfoResponse } from './ModifyHostInfoResponse'; +export { ModifyHybridMonitorNamespaceRequest } from './ModifyHybridMonitorNamespaceRequest'; +export { ModifyHybridMonitorNamespaceResponseBody } from './ModifyHybridMonitorNamespaceResponseBody'; +export { ModifyHybridMonitorNamespaceResponse } from './ModifyHybridMonitorNamespaceResponse'; +export { ModifyHybridMonitorSLSGroupRequest } from './ModifyHybridMonitorSlsgroupRequest'; +export { ModifyHybridMonitorSLSGroupResponseBody } from './ModifyHybridMonitorSlsgroupResponseBody'; +export { ModifyHybridMonitorSLSGroupResponse } from './ModifyHybridMonitorSlsgroupResponse'; +export { ModifyHybridMonitorTaskRequest } from './ModifyHybridMonitorTaskRequest'; +export { ModifyHybridMonitorTaskResponseBody } from './ModifyHybridMonitorTaskResponseBody'; +export { ModifyHybridMonitorTaskResponse } from './ModifyHybridMonitorTaskResponse'; +export { ModifyMetricRuleBlackListRequest } from './ModifyMetricRuleBlackListRequest'; +export { ModifyMetricRuleBlackListResponseBody } from './ModifyMetricRuleBlackListResponseBody'; +export { ModifyMetricRuleBlackListResponse } from './ModifyMetricRuleBlackListResponse'; +export { ModifyMetricRuleTemplateRequest } from './ModifyMetricRuleTemplateRequest'; +export { ModifyMetricRuleTemplateResponseBody } from './ModifyMetricRuleTemplateResponseBody'; +export { ModifyMetricRuleTemplateResponse } from './ModifyMetricRuleTemplateResponse'; +export { ModifyMonitorGroupRequest } from './ModifyMonitorGroupRequest'; +export { ModifyMonitorGroupResponseBody } from './ModifyMonitorGroupResponseBody'; +export { ModifyMonitorGroupResponse } from './ModifyMonitorGroupResponse'; +export { ModifyMonitorGroupInstancesRequest } from './ModifyMonitorGroupInstancesRequest'; +export { ModifyMonitorGroupInstancesResponseBody } from './ModifyMonitorGroupInstancesResponseBody'; +export { ModifyMonitorGroupInstancesResponse } from './ModifyMonitorGroupInstancesResponse'; +export { ModifySiteMonitorRequest } from './ModifySiteMonitorRequest'; +export { ModifySiteMonitorResponseBody } from './ModifySiteMonitorResponseBody'; +export { ModifySiteMonitorResponse } from './ModifySiteMonitorResponse'; +export { PutContactRequest } from './PutContactRequest'; +export { PutContactResponseBody } from './PutContactResponseBody'; +export { PutContactResponse } from './PutContactResponse'; +export { PutContactGroupRequest } from './PutContactGroupRequest'; +export { PutContactGroupResponseBody } from './PutContactGroupResponseBody'; +export { PutContactGroupResponse } from './PutContactGroupResponse'; +export { PutCustomEventRequest } from './PutCustomEventRequest'; +export { PutCustomEventResponseBody } from './PutCustomEventResponseBody'; +export { PutCustomEventResponse } from './PutCustomEventResponse'; +export { PutCustomEventRuleRequest } from './PutCustomEventRuleRequest'; +export { PutCustomEventRuleResponseBody } from './PutCustomEventRuleResponseBody'; +export { PutCustomEventRuleResponse } from './PutCustomEventRuleResponse'; +export { PutCustomMetricRequest } from './PutCustomMetricRequest'; +export { PutCustomMetricResponseBody } from './PutCustomMetricResponseBody'; +export { PutCustomMetricResponse } from './PutCustomMetricResponse'; +export { PutCustomMetricRuleRequest } from './PutCustomMetricRuleRequest'; +export { PutCustomMetricRuleResponseBody } from './PutCustomMetricRuleResponseBody'; +export { PutCustomMetricRuleResponse } from './PutCustomMetricRuleResponse'; +export { PutEventRuleRequest } from './PutEventRuleRequest'; +export { PutEventRuleResponseBody } from './PutEventRuleResponseBody'; +export { PutEventRuleResponse } from './PutEventRuleResponse'; +export { PutEventRuleTargetsRequest } from './PutEventRuleTargetsRequest'; +export { PutEventRuleTargetsResponseBody } from './PutEventRuleTargetsResponseBody'; +export { PutEventRuleTargetsResponse } from './PutEventRuleTargetsResponse'; +export { PutExporterOutputRequest } from './PutExporterOutputRequest'; +export { PutExporterOutputResponseBody } from './PutExporterOutputResponseBody'; +export { PutExporterOutputResponse } from './PutExporterOutputResponse'; +export { PutExporterRuleRequest } from './PutExporterRuleRequest'; +export { PutExporterRuleResponseBody } from './PutExporterRuleResponseBody'; +export { PutExporterRuleResponse } from './PutExporterRuleResponse'; +export { PutGroupMetricRuleRequest } from './PutGroupMetricRuleRequest'; +export { PutGroupMetricRuleResponseBody } from './PutGroupMetricRuleResponseBody'; +export { PutGroupMetricRuleResponse } from './PutGroupMetricRuleResponse'; +export { PutHybridMonitorMetricDataRequest } from './PutHybridMonitorMetricDataRequest'; +export { PutHybridMonitorMetricDataResponseBody } from './PutHybridMonitorMetricDataResponseBody'; +export { PutHybridMonitorMetricDataResponse } from './PutHybridMonitorMetricDataResponse'; +export { PutLogMonitorRequest } from './PutLogMonitorRequest'; +export { PutLogMonitorResponseBody } from './PutLogMonitorResponseBody'; +export { PutLogMonitorResponse } from './PutLogMonitorResponse'; +export { PutMetricRuleTargetsRequest } from './PutMetricRuleTargetsRequest'; +export { PutMetricRuleTargetsResponseBody } from './PutMetricRuleTargetsResponseBody'; +export { PutMetricRuleTargetsResponse } from './PutMetricRuleTargetsResponse'; +export { PutMonitorGroupDynamicRuleRequest } from './PutMonitorGroupDynamicRuleRequest'; +export { PutMonitorGroupDynamicRuleResponseBody } from './PutMonitorGroupDynamicRuleResponseBody'; +export { PutMonitorGroupDynamicRuleResponse } from './PutMonitorGroupDynamicRuleResponse'; +export { PutMonitoringConfigRequest } from './PutMonitoringConfigRequest'; +export { PutMonitoringConfigResponseBody } from './PutMonitoringConfigResponseBody'; +export { PutMonitoringConfigResponse } from './PutMonitoringConfigResponse'; +export { PutResourceMetricRuleRequest } from './PutResourceMetricRuleRequest'; +export { PutResourceMetricRuleShrinkRequest } from './PutResourceMetricRuleShrinkRequest'; +export { PutResourceMetricRuleResponseBody } from './PutResourceMetricRuleResponseBody'; +export { PutResourceMetricRuleResponse } from './PutResourceMetricRuleResponse'; +export { PutResourceMetricRulesRequest } from './PutResourceMetricRulesRequest'; +export { PutResourceMetricRulesResponseBody } from './PutResourceMetricRulesResponseBody'; +export { PutResourceMetricRulesResponse } from './PutResourceMetricRulesResponse'; +export { RemoveTagsRequest } from './RemoveTagsRequest'; +export { RemoveTagsResponseBody } from './RemoveTagsResponseBody'; +export { RemoveTagsResponse } from './RemoveTagsResponse'; +export { SendDryRunSystemEventRequest } from './SendDryRunSystemEventRequest'; +export { SendDryRunSystemEventResponseBody } from './SendDryRunSystemEventResponseBody'; +export { SendDryRunSystemEventResponse } from './SendDryRunSystemEventResponse'; +export { UninstallMonitoringAgentRequest } from './UninstallMonitoringAgentRequest'; +export { UninstallMonitoringAgentResponseBody } from './UninstallMonitoringAgentResponseBody'; +export { UninstallMonitoringAgentResponse } from './UninstallMonitoringAgentResponse'; diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/model.js b/backend/node_modules/@alicloud/cms20190101/dist/models/model.js new file mode 100644 index 0000000..2bc135d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/model.js @@ -0,0 +1,1906 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateGroupMetricRulesResponseBodyResourcesAlertResult = exports.CreateGroupMetricRulesRequestGroupMetricRules = exports.CreateGroupMetricRulesRequestGroupMetricRulesLabels = exports.CreateGroupMetricRulesRequestGroupMetricRulesEscalations = exports.CreateGroupMetricRulesRequestGroupMetricRulesEscalationsWarn = exports.CreateGroupMetricRulesRequestGroupMetricRulesEscalationsInfo = exports.CreateGroupMetricRulesRequestGroupMetricRulesEscalationsCritical = exports.CreateDynamicTagGroupRequestMatchExpress = exports.BatchCreateInstantSiteMonitorResponseBodyData = exports.BatchCreateInstantSiteMonitorRequestTaskList = exports.ApplyMetricRuleTemplateResponseBodyResource = exports.ApplyMetricRuleTemplateResponseBodyResourceAlertResults = exports.AddTagsRequestTag = exports.SubscriptionConditions = exports.PushingTargetHttpRequestTarget = exports.PushingTargetHttpRequestTargetHeaders = exports.NotificationStrategyRouteSetting = exports.NotificationStrategyRouteSettingRoutes = exports.NotificationStrategyRouteSettingRoutesConditions = exports.NotificationStrategyPushingSetting = exports.NotificationStrategyGroupingSetting = exports.NotificationStrategyGroupingSettingGroupingItems = exports.NotificationStrategyFilterSetting = exports.NotificationStrategyFilterSettingWhiteList = exports.NotificationStrategyFilterSettingBlackList = exports.NotificationStrategyEscalationSetting = exports.NotificationStrategyEscalationSettingCustomChannels = exports.MigrationJobSource = exports.MigrationJobSourceTargets = exports.MigrationJobSourceTargetsContent = exports.MigrationJobSourceRule = exports.MigrationJobSourceRulePrimaryFilters = exports.MigrationJobSourceRuleKeywordFilter = exports.MigrationJobPlan = exports.MigrationJobPlanTargets = exports.MigrationJobPlanTargetsHttpRequestTarget = exports.MigrationJobPlanSubscriptions = exports.MigrationJobPlanSubscriptionsConditions = exports.MigrationJobPlanStrategies = exports.MigrationJobPlanStrategiesPushingSetting = exports.MigrationJobPlanStrategiesEscalationSetting = exports.MigrationJobPlanGroups = exports.MigrationJobPlanEscalations = exports.MigrationJobPlanEscalationsEscalations = exports.MigrationJobPlanEscalationsEscalationsLevelGroups = exports.MigrationJobPlanContacts = exports.MigrationJobPlanContactsChannels = exports.EscalationRuleEscalations = exports.EscalationRuleEscalationsContactGroupsByLevel = exports.AlertEventMetrics = void 0; +exports.DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContacts = exports.DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactSmses = exports.DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactMails = exports.DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactGroups = exports.DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactALIIMs = exports.DescribeActiveMetricRuleListResponseBodyDatapoints = exports.DescribeActiveMetricRuleListResponseBodyDatapointsAlarm = exports.DescribeActiveMetricRuleListResponseBodyAlertList = exports.DescribeActiveMetricRuleListResponseBodyAlertListAlert = exports.DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalations = exports.DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsWarn = exports.DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsInfo = exports.DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsCritical = exports.DeleteSiteMonitorsResponseBodyData = exports.DeleteMonitorGroupResponseBodyGroup = exports.DeleteMonitorGroupResponseBodyGroupContactGroups = exports.DeleteMonitorGroupResponseBodyGroupContactGroupsContactGroup = exports.DeleteMetricRuleTemplateResponseBodyResource = exports.DeleteMetricRuleTargetsResponseBodyFailIds = exports.DeleteMetricRuleTargetsResponseBodyFailIdsTargetIds = exports.CreateSiteMonitorResponseBodyData = exports.CreateSiteMonitorResponseBodyDataAttachAlertResult = exports.CreateSiteMonitorResponseBodyDataAttachAlertResultContact = exports.CreateSiteMonitorResponseBodyCreateResultList = exports.CreateSiteMonitorResponseBodyCreateResultListCreateResultList = exports.CreateMonitorGroupInstancesRequestInstances = exports.CreateMetricRuleTemplateRequestAlertTemplates = exports.CreateMetricRuleTemplateRequestAlertTemplatesEscalations = exports.CreateMetricRuleTemplateRequestAlertTemplatesEscalationsWarn = exports.CreateMetricRuleTemplateRequestAlertTemplatesEscalationsInfo = exports.CreateMetricRuleTemplateRequestAlertTemplatesEscalationsCritical = exports.CreateMetricRuleBlackListRequestMetrics = exports.CreateInstantSiteMonitorResponseBodyCreateResultList = exports.CreateHybridMonitorTaskRequestSLSProcessConfig = exports.CreateHybridMonitorTaskRequestSLSProcessConfigStatistics = exports.CreateHybridMonitorTaskRequestSLSProcessConfigGroupBy = exports.CreateHybridMonitorTaskRequestSLSProcessConfigFilter = exports.CreateHybridMonitorTaskRequestSLSProcessConfigFilterFilters = exports.CreateHybridMonitorTaskRequestSLSProcessConfigExpress = exports.CreateHybridMonitorTaskRequestAttachLabels = exports.CreateHybridMonitorSLSGroupRequestSLSGroupConfig = exports.CreateHostAvailabilityRequestAlertConfigTargetList = exports.CreateHostAvailabilityRequestAlertConfigEscalationList = exports.CreateHostAvailabilityRequestTaskOption = exports.CreateHostAvailabilityRequestAlertConfig = exports.CreateGroupMonitoringAgentProcessResponseBodyResource = exports.CreateGroupMonitoringAgentProcessRequestMatchExpress = exports.CreateGroupMonitoringAgentProcessRequestAlertConfig = exports.CreateGroupMonitoringAgentProcessRequestAlertConfigTargetList = exports.CreateGroupMetricRulesResponseBodyResources = void 0; +exports.DescribeEventRuleAttributeResponseBodyResultEventPatternNameList = exports.DescribeEventRuleAttributeResponseBodyResultEventPatternLevelList = exports.DescribeEventRuleAttributeResponseBodyResultEventPatternKeywordFilterObj = exports.DescribeEventRuleAttributeResponseBodyResultEventPatternKeywordFilterObjKeywords = exports.DescribeEventRuleAttributeResponseBodyResultEventPatternEventTypeList = exports.DescribeDynamicTagRuleListResponseBodyTagGroupList = exports.DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroup = exports.DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupTemplateIdList = exports.DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupTagValueBlacklist = exports.DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupMatchExpress = exports.DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupMatchExpressMatchExpress = exports.DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupContactGroupList = exports.DescribeCustomEventHistogramResponseBodyEventHistograms = exports.DescribeCustomEventHistogramResponseBodyEventHistogramsEventHistogram = exports.DescribeCustomEventCountResponseBodyCustomEventCounts = exports.DescribeCustomEventCountResponseBodyCustomEventCountsCustomEventCount = exports.DescribeCustomEventAttributeResponseBodyCustomEvents = exports.DescribeCustomEventAttributeResponseBodyCustomEventsCustomEvent = exports.DescribeContactListByContactGroupResponseBodyContacts = exports.DescribeContactListByContactGroupResponseBodyContactsContact = exports.DescribeContactListByContactGroupResponseBodyContactsContactChannels = exports.DescribeContactListResponseBodyContacts = exports.DescribeContactListResponseBodyContactsContact = exports.DescribeContactListResponseBodyContactsContactContactGroups = exports.DescribeContactListResponseBodyContactsContactChannelsState = exports.DescribeContactListResponseBodyContactsContactChannels = exports.DescribeContactGroupListResponseBodyContactGroups = exports.DescribeContactGroupListResponseBodyContactGroupList = exports.DescribeContactGroupListResponseBodyContactGroupListContactGroup = exports.DescribeContactGroupListResponseBodyContactGroupListContactGroupContacts = exports.DescribeAlertingMetricRuleResourcesResponseBodyResources = exports.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResource = exports.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalation = exports.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResource = exports.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResourceExpressionList = exports.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResourceExpressionListExpressionList = exports.DescribeAlertLogListResponseBodyAlertLogList = exports.DescribeAlertLogListResponseBodyAlertLogListWebhookList = exports.DescribeAlertLogListResponseBodyAlertLogListSendResultList = exports.DescribeAlertLogListResponseBodyAlertLogListSendDetail = exports.DescribeAlertLogListResponseBodyAlertLogListSendDetailChannelResultList = exports.DescribeAlertLogListResponseBodyAlertLogListSendDetailChannelResultListResultList = exports.DescribeAlertLogListResponseBodyAlertLogListExtendedInfo = exports.DescribeAlertLogListResponseBodyAlertLogListEscalation = exports.DescribeAlertLogListResponseBodyAlertLogListDimensions = exports.DescribeAlertLogHistogramResponseBodyAlertLogHistogramList = exports.DescribeAlertLogCountResponseBodyAlertLogCount = exports.DescribeAlertLogCountResponseBodyAlertLogCountLogs = exports.DescribeAlertHistoryListResponseBodyAlarmHistoryList = exports.DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistory = void 0; +exports.DescribeHybridMonitorDataListResponseBodyTimeSeries = exports.DescribeHybridMonitorDataListResponseBodyTimeSeriesValues = exports.DescribeHybridMonitorDataListResponseBodyTimeSeriesLabels = exports.DescribeHostAvailabilityListResponseBodyTaskList = exports.DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfig = exports.DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigTaskOption = exports.DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigInstances = exports.DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfig = exports.DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigTargetList = exports.DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigTargetListTarget = exports.DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigEscalationList = exports.DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigEscalationListEscalationList = exports.DescribeGroupMonitoringAgentProcessResponseBodyProcesses = exports.DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcess = exports.DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessMatchExpress = exports.DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessMatchExpressMatchExpress = exports.DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfig = exports.DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfig = exports.DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfigTargetList = exports.DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfigTargetListTarget = exports.DescribeExporterRuleListResponseBodyDatapoints = exports.DescribeExporterRuleListResponseBodyDatapointsDatapoint = exports.DescribeExporterRuleListResponseBodyDatapointsDatapointDstName = exports.DescribeExporterOutputListResponseBodyDatapoints = exports.DescribeExporterOutputListResponseBodyDatapointsDatapoint = exports.DescribeExporterOutputListResponseBodyDatapointsDatapointConfigJson = exports.DescribeEventRuleTargetListResponseBodyWebhookParameters = exports.DescribeEventRuleTargetListResponseBodyWebhookParametersWebhookParameter = exports.DescribeEventRuleTargetListResponseBodySlsParameters = exports.DescribeEventRuleTargetListResponseBodySlsParametersSlsParameter = exports.DescribeEventRuleTargetListResponseBodyOpenApiParameters = exports.DescribeEventRuleTargetListResponseBodyOpenApiParametersOpenApiParameters = exports.DescribeEventRuleTargetListResponseBodyMnsParameters = exports.DescribeEventRuleTargetListResponseBodyMnsParametersMnsParameter = exports.DescribeEventRuleTargetListResponseBodyFcParameters = exports.DescribeEventRuleTargetListResponseBodyFcParametersFCParameter = exports.DescribeEventRuleTargetListResponseBodyContactParameters = exports.DescribeEventRuleTargetListResponseBodyContactParametersContactParameter = exports.DescribeEventRuleListResponseBodyEventRules = exports.DescribeEventRuleListResponseBodyEventRulesEventRule = exports.DescribeEventRuleListResponseBodyEventRulesEventRuleEventPattern = exports.DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPattern = exports.DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternNameList = exports.DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternLevelList = exports.DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternKeywordFilter = exports.DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternKeywordFilterKeywords = exports.DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternEventTypeList = exports.DescribeEventRuleAttributeResponseBodyResult = exports.DescribeEventRuleAttributeResponseBodyResultEventPattern = exports.DescribeEventRuleAttributeResponseBodyResultEventPatternStatusList = void 0; +exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplates = exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplate = exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabels = exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabelsLabels = exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalations = exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsWarn = exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsInfo = exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsCritical = exports.DescribeMetricRuleTargetsResponseBodyTargets = exports.DescribeMetricRuleTargetsResponseBodyTargetsTarget = exports.DescribeMetricRuleListResponseBodyAlarms = exports.DescribeMetricRuleListResponseBodyAlarmsAlarm = exports.DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheus = exports.DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotations = exports.DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotationsAnnotations = exports.DescribeMetricRuleListResponseBodyAlarmsAlarmLabels = exports.DescribeMetricRuleListResponseBodyAlarmsAlarmLabelsLabels = exports.DescribeMetricRuleListResponseBodyAlarmsAlarmEscalations = exports.DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsWarn = exports.DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsInfo = exports.DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsCritical = exports.DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpression = exports.DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionList = exports.DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionListExpressionList = exports.DescribeMetricRuleCountResponseBodyMetricRuleCount = exports.DescribeMetricRuleBlackListResponseBodyDescribeMetricRuleBlackList = exports.DescribeMetricRuleBlackListResponseBodyDescribeMetricRuleBlackListMetrics = exports.DescribeMetricMetaListResponseBodyResources = exports.DescribeMetricMetaListResponseBodyResourcesResource = exports.DescribeLogMonitorListResponseBodyLogMonitorList = exports.DescribeLogMonitorListResponseBodyLogMonitorListValueFilter = exports.DescribeLogMonitorAttributeResponseBodyLogMonitor = exports.DescribeLogMonitorAttributeResponseBodyLogMonitorValueFilter = exports.DescribeLogMonitorAttributeResponseBodyLogMonitorAggregates = exports.DescribeHybridMonitorTaskListResponseBodyTaskList = exports.DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfig = exports.DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigStatistics = exports.DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigGroupBy = exports.DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigFilter = exports.DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigFilterFilters = exports.DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigExpress = exports.DescribeHybridMonitorTaskListResponseBodyTaskListMatchExpress = exports.DescribeHybridMonitorTaskListResponseBodyTaskListAttachLabels = exports.DescribeHybridMonitorSLSGroupResponseBodyList = exports.DescribeHybridMonitorSLSGroupResponseBodyListSLSGroupConfig = exports.DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespace = exports.DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceDetail = exports.DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricList = exports.DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricListNamespaceList = exports.DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricListNamespaceListMetricList = void 0; +exports.DescribeMonitoringAgentStatusesResponseBodyNodeStatusListNodeStatus = exports.DescribeMonitoringAgentProcessesResponseBodyNodeProcesses = exports.DescribeMonitoringAgentProcessesResponseBodyNodeProcessesNodeProcess = exports.DescribeMonitoringAgentHostsResponseBodyHosts = exports.DescribeMonitoringAgentHostsResponseBodyHostsHost = exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuota = exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorTask = exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorOperatorProbe = exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorMobile = exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorEcsProbe = exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorBrowser = exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSMS = exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaPhone = exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaLogMonitor = exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaEventMonitor = exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaEnterpriseQuota = exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaCustomMonitor = exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaApi = exports.DescribeMonitorGroupsResponseBodyResources = exports.DescribeMonitorGroupsResponseBodyResourcesResource = exports.DescribeMonitorGroupsResponseBodyResourcesResourceTemplateInfos = exports.DescribeMonitorGroupsResponseBodyResourcesResourceTemplateInfosTemplateInfo = exports.DescribeMonitorGroupsResponseBodyResourcesResourceTemplateIds = exports.DescribeMonitorGroupsResponseBodyResourcesResourceTags = exports.DescribeMonitorGroupsResponseBodyResourcesResourceTagsTag = exports.DescribeMonitorGroupsResponseBodyResourcesResourceContactGroups = exports.DescribeMonitorGroupsResponseBodyResourcesResourceContactGroupsContactGroup = exports.DescribeMonitorGroupsRequestTag = exports.DescribeMonitorGroupNotifyPolicyListResponseBodyNotifyPolicyList = exports.DescribeMonitorGroupNotifyPolicyListResponseBodyNotifyPolicyListNotifyPolicy = exports.DescribeMonitorGroupInstancesResponseBodyResources = exports.DescribeMonitorGroupInstancesResponseBodyResourcesResource = exports.DescribeMonitorGroupInstanceAttributeResponseBodyResources = exports.DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResource = exports.DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceVpc = exports.DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceTags = exports.DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceTagsTag = exports.DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceRegion = exports.DescribeMonitorGroupDynamicRulesResponseBodyResource = exports.DescribeMonitorGroupDynamicRulesResponseBodyResourceResource = exports.DescribeMonitorGroupDynamicRulesResponseBodyResourceResourceFilters = exports.DescribeMonitorGroupDynamicRulesResponseBodyResourceResourceFiltersFilter = exports.DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategories = exports.DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategoriesMonitorGroupCategory = exports.DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategoriesMonitorGroupCategoryCategoryItem = exports.DescribeMetricRuleTemplateListResponseBodyTemplates = exports.DescribeMetricRuleTemplateListResponseBodyTemplatesTemplate = exports.DescribeMetricRuleTemplateListResponseBodyTemplatesTemplateApplyHistories = exports.DescribeMetricRuleTemplateListResponseBodyTemplatesTemplateApplyHistoriesApplyHistory = exports.DescribeMetricRuleTemplateAttributeResponseBodyResource = void 0; +exports.DescribeSystemEventAttributeResponseBodySystemEvents = exports.DescribeSystemEventAttributeResponseBodySystemEventsSystemEvent = exports.DescribeSyntheticProbeListResponseBodyIspCityList = exports.DescribeSiteMonitorQuotaResponseBodyData = exports.DescribeSiteMonitorListResponseBodySiteMonitors = exports.DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitor = exports.DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJson = exports.DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJsonAssertions = exports.DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJsonAssertionsAssertions = exports.DescribeSiteMonitorISPCityListResponseBodyIspCityList = exports.DescribeSiteMonitorISPCityListResponseBodyIspCityListIspCity = exports.DescribeSiteMonitorISPCityListResponseBodyIspCityListIspCityIPPool = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitors = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsVpcConfig = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJson = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonTrafficHijackElementWhitelist = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonTrafficHijackElementBlacklist = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonSteps = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsSteps = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariables = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariablesExtractedVariables = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariablesExtractedVariablesParser = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonQuicTarget = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonExpectNonExistString = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonExpectExistString = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonConfigVariables = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonConfigVariablesConfigVariables = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserInfo = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserInfoBrowserInfo = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserHosts = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserHeaders = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBlockedUrlList = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAuthInfo = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAuthInfoScopes = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAssertions = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAssertionsAssertions = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsIspCities = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsIspCitiesIspCity = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomSchedule = exports.DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomScheduleDays = exports.DescribeSiteMonitorAttributeResponseBodyMetricRules = exports.DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule = exports.DescribeProjectMetaResponseBodyResources = exports.DescribeProjectMetaResponseBodyResourcesResource = exports.DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleList = exports.DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRule = exports.DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigList = exports.DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig = exports.DescribeProductResourceTagKeyListResponseBodyTagKeys = exports.DescribeMonitoringAgentStatusesResponseBodyNodeStatusList = void 0; +exports.PutEventRuleTargetsResponseBodyFailedMnsParametersMnsParameter = exports.PutEventRuleTargetsResponseBodyFailedFcParameters = exports.PutEventRuleTargetsResponseBodyFailedFcParametersFcParameter = exports.PutEventRuleTargetsResponseBodyFailedContactParameters = exports.PutEventRuleTargetsResponseBodyFailedContactParametersContactParameter = exports.PutEventRuleTargetsRequestWebhookParameters = exports.PutEventRuleTargetsRequestSlsParameters = exports.PutEventRuleTargetsRequestOpenApiParameters = exports.PutEventRuleTargetsRequestMnsParameters = exports.PutEventRuleTargetsRequestFcParameters = exports.PutEventRuleTargetsRequestContactParameters = exports.PutEventRuleRequestEventPattern = exports.PutCustomMetricRequestMetricList = exports.PutCustomEventRequestEventInfo = exports.PutContactRequestChannels = exports.ModifySiteMonitorResponseBodyData = exports.ModifyMonitorGroupInstancesRequestInstances = exports.ModifyMetricRuleTemplateRequestAlertTemplates = exports.ModifyMetricRuleTemplateRequestAlertTemplatesEscalations = exports.ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsWarn = exports.ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsInfo = exports.ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsCritical = exports.ModifyMetricRuleBlackListRequestMetrics = exports.ModifyHybridMonitorTaskRequestSLSProcessConfig = exports.ModifyHybridMonitorTaskRequestSLSProcessConfigStatistics = exports.ModifyHybridMonitorTaskRequestSLSProcessConfigGroupBy = exports.ModifyHybridMonitorTaskRequestSLSProcessConfigFilter = exports.ModifyHybridMonitorTaskRequestSLSProcessConfigFilterFilters = exports.ModifyHybridMonitorTaskRequestSLSProcessConfigExpress = exports.ModifyHybridMonitorTaskRequestAttachLabels = exports.ModifyHybridMonitorSLSGroupRequestSLSGroupConfig = exports.ModifyHostAvailabilityRequestAlertConfigTargetList = exports.ModifyHostAvailabilityRequestAlertConfigEscalationList = exports.ModifyHostAvailabilityRequestTaskOption = exports.ModifyHostAvailabilityRequestAlertConfig = exports.ModifyGroupMonitoringAgentProcessRequestAlertConfig = exports.ModifyGroupMonitoringAgentProcessRequestAlertConfigTargetList = exports.EnableSiteMonitorsResponseBodyData = exports.DisableSiteMonitorsResponseBodyData = exports.DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyList = exports.DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyListNodeTaskInstance = exports.DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyListNodeTaskInstanceInstanceList = exports.DescribeTagValueListResponseBodyTagValues = exports.DescribeTagKeyListResponseBodyTagKeys = exports.DescribeSystemEventMetaListResponseBodyData = exports.DescribeSystemEventMetaListResponseBodyDataResource = exports.DescribeSystemEventHistogramResponseBodySystemEventHistograms = exports.DescribeSystemEventHistogramResponseBodySystemEventHistogramsSystemEventHistogram = exports.DescribeSystemEventCountResponseBodySystemEventCounts = exports.DescribeSystemEventCountResponseBodySystemEventCountsSystemEventCount = void 0; +exports.Matcher = exports.Incident = exports.EscalationRule = exports.Dimension = exports.AlertStrategyRelation = exports.AlertEvent = exports.RemoveTagsResponseBodyTag = exports.RemoveTagsRequestTag = exports.PutResourceMetricRulesResponseBodyFailedListResult = exports.PutResourceMetricRulesResponseBodyFailedListResultTarget = exports.PutResourceMetricRulesResponseBodyFailedListResultTargetResult = exports.PutResourceMetricRulesRequestRules = exports.PutResourceMetricRulesRequestRulesLabels = exports.PutResourceMetricRulesRequestRulesEscalations = exports.PutResourceMetricRulesRequestRulesEscalationsWarn = exports.PutResourceMetricRulesRequestRulesEscalationsInfo = exports.PutResourceMetricRulesRequestRulesEscalationsCritical = exports.PutResourceMetricRuleShrinkRequestLabels = exports.PutResourceMetricRuleShrinkRequestEscalations = exports.PutResourceMetricRuleShrinkRequestEscalationsWarn = exports.PutResourceMetricRuleShrinkRequestEscalationsInfo = exports.PutResourceMetricRuleShrinkRequestEscalationsCritical = exports.PutResourceMetricRuleRequestPrometheus = exports.PutResourceMetricRuleRequestPrometheusAnnotations = exports.PutResourceMetricRuleRequestLabels = exports.PutResourceMetricRuleRequestCompositeExpression = exports.PutResourceMetricRuleRequestCompositeExpressionExpressionList = exports.PutResourceMetricRuleRequestEscalations = exports.PutResourceMetricRuleRequestEscalationsWarn = exports.PutResourceMetricRuleRequestEscalationsInfo = exports.PutResourceMetricRuleRequestEscalationsCritical = exports.PutMonitorGroupDynamicRuleRequestGroupRules = exports.PutMonitorGroupDynamicRuleRequestGroupRulesFilters = exports.PutMetricRuleTargetsResponseBodyFailData = exports.PutMetricRuleTargetsResponseBodyFailDataTargets = exports.PutMetricRuleTargetsResponseBodyFailDataTargetsTarget = exports.PutMetricRuleTargetsRequestTargets = exports.PutLogMonitorRequestValueFilter = exports.PutLogMonitorRequestGroupbys = exports.PutLogMonitorRequestAggregates = exports.PutHybridMonitorMetricDataResponseBodyErrorDetail = exports.PutHybridMonitorMetricDataRequestMetricList = exports.PutHybridMonitorMetricDataRequestMetricListLabels = exports.PutGroupMetricRuleResponseBodyResult = exports.PutGroupMetricRuleRequestLabels = exports.PutGroupMetricRuleRequestEscalations = exports.PutGroupMetricRuleRequestEscalationsWarn = exports.PutGroupMetricRuleRequestEscalationsInfo = exports.PutGroupMetricRuleRequestEscalationsCritical = exports.PutEventRuleTargetsResponseBodyFailedMnsParameters = void 0; +exports.CreateMetricRuleTemplateRequest = exports.CreateMetricRuleResourcesResponse = exports.CreateMetricRuleResourcesResponseBody = exports.CreateMetricRuleResourcesRequest = exports.CreateMetricRuleBlackListResponse = exports.CreateMetricRuleBlackListResponseBody = exports.CreateMetricRuleBlackListRequest = exports.CreateInstantSiteMonitorResponse = exports.CreateInstantSiteMonitorResponseBody = exports.CreateInstantSiteMonitorRequest = exports.CreateHybridMonitorTaskResponse = exports.CreateHybridMonitorTaskResponseBody = exports.CreateHybridMonitorTaskRequest = exports.CreateHybridMonitorSLSGroupResponse = exports.CreateHybridMonitorSLSGroupResponseBody = exports.CreateHybridMonitorSLSGroupRequest = exports.CreateHybridMonitorNamespaceResponse = exports.CreateHybridMonitorNamespaceResponseBody = exports.CreateHybridMonitorNamespaceRequest = exports.CreateHostAvailabilityResponse = exports.CreateHostAvailabilityResponseBody = exports.CreateHostAvailabilityRequest = exports.CreateGroupMonitoringAgentProcessResponse = exports.CreateGroupMonitoringAgentProcessResponseBody = exports.CreateGroupMonitoringAgentProcessRequest = exports.CreateGroupMetricRulesResponse = exports.CreateGroupMetricRulesResponseBody = exports.CreateGroupMetricRulesRequest = exports.CreateDynamicTagGroupResponse = exports.CreateDynamicTagGroupResponseBody = exports.CreateDynamicTagGroupRequest = exports.BatchExportResponse = exports.BatchExportResponseBody = exports.BatchExportShrinkRequest = exports.BatchExportRequest = exports.BatchCreateInstantSiteMonitorResponse = exports.BatchCreateInstantSiteMonitorResponseBody = exports.BatchCreateInstantSiteMonitorRequest = exports.ApplyMetricRuleTemplateResponse = exports.ApplyMetricRuleTemplateResponseBody = exports.ApplyMetricRuleTemplateRequest = exports.AddTagsResponse = exports.AddTagsResponseBody = exports.AddTagsRequest = exports.Subscription = exports.PushingTarget = exports.NotificationTemplate = exports.NotificationStrategy = exports.MigrationJob = exports.MetricStat = void 0; +exports.DeleteExporterRuleResponseBody = exports.DeleteExporterRuleRequest = exports.DeleteExporterOutputResponse = exports.DeleteExporterOutputResponseBody = exports.DeleteExporterOutputRequest = exports.DeleteEventRulesResponse = exports.DeleteEventRulesResponseBody = exports.DeleteEventRulesRequest = exports.DeleteEventRuleTargetsResponse = exports.DeleteEventRuleTargetsResponseBody = exports.DeleteEventRuleTargetsRequest = exports.DeleteDynamicTagGroupResponse = exports.DeleteDynamicTagGroupResponseBody = exports.DeleteDynamicTagGroupRequest = exports.DeleteCustomMetricResponse = exports.DeleteCustomMetricResponseBody = exports.DeleteCustomMetricRequest = exports.DeleteContactGroupResponse = exports.DeleteContactGroupResponseBody = exports.DeleteContactGroupRequest = exports.DeleteContactResponse = exports.DeleteContactResponseBody = exports.DeleteContactRequest = exports.CursorResponse = exports.CursorResponseBody = exports.CursorShrinkRequest = exports.CursorRequest = exports.CreateSiteMonitorResponse = exports.CreateSiteMonitorResponseBody = exports.CreateSiteMonitorRequest = exports.CreateMonitoringAgentProcessResponse = exports.CreateMonitoringAgentProcessResponseBody = exports.CreateMonitoringAgentProcessRequest = exports.CreateMonitorGroupNotifyPolicyResponse = exports.CreateMonitorGroupNotifyPolicyResponseBody = exports.CreateMonitorGroupNotifyPolicyRequest = exports.CreateMonitorGroupInstancesResponse = exports.CreateMonitorGroupInstancesResponseBody = exports.CreateMonitorGroupInstancesRequest = exports.CreateMonitorGroupByResourceGroupIdResponse = exports.CreateMonitorGroupByResourceGroupIdResponseBody = exports.CreateMonitorGroupByResourceGroupIdRequest = exports.CreateMonitorGroupResponse = exports.CreateMonitorGroupResponseBody = exports.CreateMonitorGroupRequest = exports.CreateMonitorAgentProcessResponse = exports.CreateMonitorAgentProcessResponseBody = exports.CreateMonitorAgentProcessRequest = exports.CreateMetricRuleTemplateResponse = exports.CreateMetricRuleTemplateResponseBody = void 0; +exports.DeleteSiteMonitorsRequest = exports.DeleteMonitoringAgentProcessResponse = exports.DeleteMonitoringAgentProcessResponseBody = exports.DeleteMonitoringAgentProcessRequest = exports.DeleteMonitorGroupNotifyPolicyResponse = exports.DeleteMonitorGroupNotifyPolicyResponseBody = exports.DeleteMonitorGroupNotifyPolicyRequest = exports.DeleteMonitorGroupInstancesResponse = exports.DeleteMonitorGroupInstancesResponseBody = exports.DeleteMonitorGroupInstancesRequest = exports.DeleteMonitorGroupDynamicRuleResponse = exports.DeleteMonitorGroupDynamicRuleResponseBody = exports.DeleteMonitorGroupDynamicRuleRequest = exports.DeleteMonitorGroupResponse = exports.DeleteMonitorGroupResponseBody = exports.DeleteMonitorGroupRequest = exports.DeleteMetricRulesResponse = exports.DeleteMetricRulesResponseBody = exports.DeleteMetricRulesRequest = exports.DeleteMetricRuleTemplateResponse = exports.DeleteMetricRuleTemplateResponseBody = exports.DeleteMetricRuleTemplateRequest = exports.DeleteMetricRuleTargetsResponse = exports.DeleteMetricRuleTargetsResponseBody = exports.DeleteMetricRuleTargetsRequest = exports.DeleteMetricRuleResourcesResponse = exports.DeleteMetricRuleResourcesResponseBody = exports.DeleteMetricRuleResourcesRequest = exports.DeleteMetricRuleBlackListResponse = exports.DeleteMetricRuleBlackListResponseBody = exports.DeleteMetricRuleBlackListRequest = exports.DeleteLogMonitorResponse = exports.DeleteLogMonitorResponseBody = exports.DeleteLogMonitorRequest = exports.DeleteHybridMonitorTaskResponse = exports.DeleteHybridMonitorTaskResponseBody = exports.DeleteHybridMonitorTaskRequest = exports.DeleteHybridMonitorSLSGroupResponse = exports.DeleteHybridMonitorSLSGroupResponseBody = exports.DeleteHybridMonitorSLSGroupRequest = exports.DeleteHybridMonitorNamespaceResponse = exports.DeleteHybridMonitorNamespaceResponseBody = exports.DeleteHybridMonitorNamespaceRequest = exports.DeleteHostAvailabilityResponse = exports.DeleteHostAvailabilityResponseBody = exports.DeleteHostAvailabilityRequest = exports.DeleteGroupMonitoringAgentProcessResponse = exports.DeleteGroupMonitoringAgentProcessResponseBody = exports.DeleteGroupMonitoringAgentProcessRequest = exports.DeleteExporterRuleResponse = void 0; +exports.DescribeEventRuleListResponse = exports.DescribeEventRuleListResponseBody = exports.DescribeEventRuleListRequest = exports.DescribeEventRuleAttributeResponse = exports.DescribeEventRuleAttributeResponseBody = exports.DescribeEventRuleAttributeRequest = exports.DescribeDynamicTagRuleListResponse = exports.DescribeDynamicTagRuleListResponseBody = exports.DescribeDynamicTagRuleListRequest = exports.DescribeCustomMetricListResponse = exports.DescribeCustomMetricListResponseBody = exports.DescribeCustomMetricListRequest = exports.DescribeCustomEventHistogramResponse = exports.DescribeCustomEventHistogramResponseBody = exports.DescribeCustomEventHistogramRequest = exports.DescribeCustomEventCountResponse = exports.DescribeCustomEventCountResponseBody = exports.DescribeCustomEventCountRequest = exports.DescribeCustomEventAttributeResponse = exports.DescribeCustomEventAttributeResponseBody = exports.DescribeCustomEventAttributeRequest = exports.DescribeContactListByContactGroupResponse = exports.DescribeContactListByContactGroupResponseBody = exports.DescribeContactListByContactGroupRequest = exports.DescribeContactListResponse = exports.DescribeContactListResponseBody = exports.DescribeContactListRequest = exports.DescribeContactGroupListResponse = exports.DescribeContactGroupListResponseBody = exports.DescribeContactGroupListRequest = exports.DescribeAlertingMetricRuleResourcesResponse = exports.DescribeAlertingMetricRuleResourcesResponseBody = exports.DescribeAlertingMetricRuleResourcesRequest = exports.DescribeAlertLogListResponse = exports.DescribeAlertLogListResponseBody = exports.DescribeAlertLogListRequest = exports.DescribeAlertLogHistogramResponse = exports.DescribeAlertLogHistogramResponseBody = exports.DescribeAlertLogHistogramRequest = exports.DescribeAlertLogCountResponse = exports.DescribeAlertLogCountResponseBody = exports.DescribeAlertLogCountRequest = exports.DescribeAlertHistoryListResponse = exports.DescribeAlertHistoryListResponseBody = exports.DescribeAlertHistoryListRequest = exports.DescribeActiveMetricRuleListResponse = exports.DescribeActiveMetricRuleListResponseBody = exports.DescribeActiveMetricRuleListRequest = exports.DeleteSiteMonitorsResponse = exports.DeleteSiteMonitorsResponseBody = void 0; +exports.DescribeMetricRuleCountResponseBody = exports.DescribeMetricRuleCountRequest = exports.DescribeMetricRuleBlackListResponse = exports.DescribeMetricRuleBlackListResponseBody = exports.DescribeMetricRuleBlackListRequest = exports.DescribeMetricMetaListResponse = exports.DescribeMetricMetaListResponseBody = exports.DescribeMetricMetaListRequest = exports.DescribeMetricListResponse = exports.DescribeMetricListResponseBody = exports.DescribeMetricListRequest = exports.DescribeMetricLastResponse = exports.DescribeMetricLastResponseBody = exports.DescribeMetricLastRequest = exports.DescribeMetricDataResponse = exports.DescribeMetricDataResponseBody = exports.DescribeMetricDataRequest = exports.DescribeLogMonitorListResponse = exports.DescribeLogMonitorListResponseBody = exports.DescribeLogMonitorListRequest = exports.DescribeLogMonitorAttributeResponse = exports.DescribeLogMonitorAttributeResponseBody = exports.DescribeLogMonitorAttributeRequest = exports.DescribeHybridMonitorTaskListResponse = exports.DescribeHybridMonitorTaskListResponseBody = exports.DescribeHybridMonitorTaskListRequest = exports.DescribeHybridMonitorSLSGroupResponse = exports.DescribeHybridMonitorSLSGroupResponseBody = exports.DescribeHybridMonitorSLSGroupRequest = exports.DescribeHybridMonitorNamespaceListResponse = exports.DescribeHybridMonitorNamespaceListResponseBody = exports.DescribeHybridMonitorNamespaceListRequest = exports.DescribeHybridMonitorDataListResponse = exports.DescribeHybridMonitorDataListResponseBody = exports.DescribeHybridMonitorDataListRequest = exports.DescribeHostAvailabilityListResponse = exports.DescribeHostAvailabilityListResponseBody = exports.DescribeHostAvailabilityListRequest = exports.DescribeGroupMonitoringAgentProcessResponse = exports.DescribeGroupMonitoringAgentProcessResponseBody = exports.DescribeGroupMonitoringAgentProcessRequest = exports.DescribeExporterRuleListResponse = exports.DescribeExporterRuleListResponseBody = exports.DescribeExporterRuleListRequest = exports.DescribeExporterOutputListResponse = exports.DescribeExporterOutputListResponseBody = exports.DescribeExporterOutputListRequest = exports.DescribeEventRuleTargetListResponse = exports.DescribeEventRuleTargetListResponseBody = exports.DescribeEventRuleTargetListRequest = void 0; +exports.DescribeMonitoringAgentStatusesRequest = exports.DescribeMonitoringAgentProcessesResponse = exports.DescribeMonitoringAgentProcessesResponseBody = exports.DescribeMonitoringAgentProcessesRequest = exports.DescribeMonitoringAgentHostsResponse = exports.DescribeMonitoringAgentHostsResponseBody = exports.DescribeMonitoringAgentHostsRequest = exports.DescribeMonitoringAgentConfigResponse = exports.DescribeMonitoringAgentConfigResponseBody = exports.DescribeMonitoringAgentConfigRequest = exports.DescribeMonitoringAgentAccessKeyResponse = exports.DescribeMonitoringAgentAccessKeyResponseBody = exports.DescribeMonitoringAgentAccessKeyRequest = exports.DescribeMonitorResourceQuotaAttributeResponse = exports.DescribeMonitorResourceQuotaAttributeResponseBody = exports.DescribeMonitorResourceQuotaAttributeRequest = exports.DescribeMonitorGroupsResponse = exports.DescribeMonitorGroupsResponseBody = exports.DescribeMonitorGroupsRequest = exports.DescribeMonitorGroupNotifyPolicyListResponse = exports.DescribeMonitorGroupNotifyPolicyListResponseBody = exports.DescribeMonitorGroupNotifyPolicyListRequest = exports.DescribeMonitorGroupInstancesResponse = exports.DescribeMonitorGroupInstancesResponseBody = exports.DescribeMonitorGroupInstancesRequest = exports.DescribeMonitorGroupInstanceAttributeResponse = exports.DescribeMonitorGroupInstanceAttributeResponseBody = exports.DescribeMonitorGroupInstanceAttributeRequest = exports.DescribeMonitorGroupDynamicRulesResponse = exports.DescribeMonitorGroupDynamicRulesResponseBody = exports.DescribeMonitorGroupDynamicRulesRequest = exports.DescribeMonitorGroupCategoriesResponse = exports.DescribeMonitorGroupCategoriesResponseBody = exports.DescribeMonitorGroupCategoriesRequest = exports.DescribeMetricTopResponse = exports.DescribeMetricTopResponseBody = exports.DescribeMetricTopRequest = exports.DescribeMetricRuleTemplateListResponse = exports.DescribeMetricRuleTemplateListResponseBody = exports.DescribeMetricRuleTemplateListRequest = exports.DescribeMetricRuleTemplateAttributeResponse = exports.DescribeMetricRuleTemplateAttributeResponseBody = exports.DescribeMetricRuleTemplateAttributeRequest = exports.DescribeMetricRuleTargetsResponse = exports.DescribeMetricRuleTargetsResponseBody = exports.DescribeMetricRuleTargetsRequest = exports.DescribeMetricRuleListResponse = exports.DescribeMetricRuleListResponseBody = exports.DescribeMetricRuleListRequest = exports.DescribeMetricRuleCountResponse = void 0; +exports.DescribeSystemEventMetaListResponse = exports.DescribeSystemEventMetaListResponseBody = exports.DescribeSystemEventMetaListRequest = exports.DescribeSystemEventHistogramResponse = exports.DescribeSystemEventHistogramResponseBody = exports.DescribeSystemEventHistogramRequest = exports.DescribeSystemEventCountResponse = exports.DescribeSystemEventCountResponseBody = exports.DescribeSystemEventCountRequest = exports.DescribeSystemEventAttributeResponse = exports.DescribeSystemEventAttributeResponseBody = exports.DescribeSystemEventAttributeRequest = exports.DescribeSyntheticProbeListResponse = exports.DescribeSyntheticProbeListResponseBody = exports.DescribeSyntheticProbeListRequest = exports.DescribeSiteMonitorStatisticsResponse = exports.DescribeSiteMonitorStatisticsResponseBody = exports.DescribeSiteMonitorStatisticsRequest = exports.DescribeSiteMonitorQuotaResponse = exports.DescribeSiteMonitorQuotaResponseBody = exports.DescribeSiteMonitorQuotaRequest = exports.DescribeSiteMonitorLogResponse = exports.DescribeSiteMonitorLogResponseBody = exports.DescribeSiteMonitorLogRequest = exports.DescribeSiteMonitorListResponse = exports.DescribeSiteMonitorListResponseBody = exports.DescribeSiteMonitorListRequest = exports.DescribeSiteMonitorISPCityListResponse = exports.DescribeSiteMonitorISPCityListResponseBody = exports.DescribeSiteMonitorISPCityListRequest = exports.DescribeSiteMonitorDataResponse = exports.DescribeSiteMonitorDataResponseBody = exports.DescribeSiteMonitorDataRequest = exports.DescribeSiteMonitorAttributeResponse = exports.DescribeSiteMonitorAttributeResponseBody = exports.DescribeSiteMonitorAttributeRequest = exports.DescribeProjectMetaResponse = exports.DescribeProjectMetaResponseBody = exports.DescribeProjectMetaRequest = exports.DescribeProductsOfActiveMetricRuleResponse = exports.DescribeProductsOfActiveMetricRuleResponseBody = exports.DescribeProductsOfActiveMetricRuleRequest = exports.DescribeProductResourceTagKeyListResponse = exports.DescribeProductResourceTagKeyListResponseBody = exports.DescribeProductResourceTagKeyListRequest = exports.DescribeMonitoringConfigResponse = exports.DescribeMonitoringConfigResponseBody = exports.DescribeMonitoringConfigRequest = exports.DescribeMonitoringAgentStatusesResponse = exports.DescribeMonitoringAgentStatusesResponseBody = void 0; +exports.ModifyHostAvailabilityResponseBody = exports.ModifyHostAvailabilityRequest = exports.ModifyGroupMonitoringAgentProcessResponse = exports.ModifyGroupMonitoringAgentProcessResponseBody = exports.ModifyGroupMonitoringAgentProcessRequest = exports.InstallMonitoringAgentResponse = exports.InstallMonitoringAgentResponseBody = exports.InstallMonitoringAgentRequest = exports.EnableSiteMonitorsResponse = exports.EnableSiteMonitorsResponseBody = exports.EnableSiteMonitorsRequest = exports.EnableMetricRulesResponse = exports.EnableMetricRulesResponseBody = exports.EnableMetricRulesRequest = exports.EnableMetricRuleBlackListResponse = exports.EnableMetricRuleBlackListResponseBody = exports.EnableMetricRuleBlackListRequest = exports.EnableHostAvailabilityResponse = exports.EnableHostAvailabilityResponseBody = exports.EnableHostAvailabilityRequest = exports.EnableEventRulesResponse = exports.EnableEventRulesResponseBody = exports.EnableEventRulesRequest = exports.EnableActiveMetricRuleResponse = exports.EnableActiveMetricRuleResponseBody = exports.EnableActiveMetricRuleRequest = exports.DisableSiteMonitorsResponse = exports.DisableSiteMonitorsResponseBody = exports.DisableSiteMonitorsRequest = exports.DisableMetricRulesResponse = exports.DisableMetricRulesResponseBody = exports.DisableMetricRulesRequest = exports.DisableHostAvailabilityResponse = exports.DisableHostAvailabilityResponseBody = exports.DisableHostAvailabilityRequest = exports.DisableEventRulesResponse = exports.DisableEventRulesResponseBody = exports.DisableEventRulesRequest = exports.DisableActiveMetricRuleResponse = exports.DisableActiveMetricRuleResponseBody = exports.DisableActiveMetricRuleRequest = exports.DescribeUnhealthyHostAvailabilityResponse = exports.DescribeUnhealthyHostAvailabilityResponseBody = exports.DescribeUnhealthyHostAvailabilityRequest = exports.DescribeTagValueListResponse = exports.DescribeTagValueListResponseBody = exports.DescribeTagValueListRequest = exports.DescribeTagKeyListResponse = exports.DescribeTagKeyListResponseBody = exports.DescribeTagKeyListRequest = void 0; +exports.PutEventRuleTargetsRequest = exports.PutEventRuleResponse = exports.PutEventRuleResponseBody = exports.PutEventRuleRequest = exports.PutCustomMetricRuleResponse = exports.PutCustomMetricRuleResponseBody = exports.PutCustomMetricRuleRequest = exports.PutCustomMetricResponse = exports.PutCustomMetricResponseBody = exports.PutCustomMetricRequest = exports.PutCustomEventRuleResponse = exports.PutCustomEventRuleResponseBody = exports.PutCustomEventRuleRequest = exports.PutCustomEventResponse = exports.PutCustomEventResponseBody = exports.PutCustomEventRequest = exports.PutContactGroupResponse = exports.PutContactGroupResponseBody = exports.PutContactGroupRequest = exports.PutContactResponse = exports.PutContactResponseBody = exports.PutContactRequest = exports.ModifySiteMonitorResponse = exports.ModifySiteMonitorResponseBody = exports.ModifySiteMonitorRequest = exports.ModifyMonitorGroupInstancesResponse = exports.ModifyMonitorGroupInstancesResponseBody = exports.ModifyMonitorGroupInstancesRequest = exports.ModifyMonitorGroupResponse = exports.ModifyMonitorGroupResponseBody = exports.ModifyMonitorGroupRequest = exports.ModifyMetricRuleTemplateResponse = exports.ModifyMetricRuleTemplateResponseBody = exports.ModifyMetricRuleTemplateRequest = exports.ModifyMetricRuleBlackListResponse = exports.ModifyMetricRuleBlackListResponseBody = exports.ModifyMetricRuleBlackListRequest = exports.ModifyHybridMonitorTaskResponse = exports.ModifyHybridMonitorTaskResponseBody = exports.ModifyHybridMonitorTaskRequest = exports.ModifyHybridMonitorSLSGroupResponse = exports.ModifyHybridMonitorSLSGroupResponseBody = exports.ModifyHybridMonitorSLSGroupRequest = exports.ModifyHybridMonitorNamespaceResponse = exports.ModifyHybridMonitorNamespaceResponseBody = exports.ModifyHybridMonitorNamespaceRequest = exports.ModifyHostInfoResponse = exports.ModifyHostInfoResponseBody = exports.ModifyHostInfoRequest = exports.ModifyHostAvailabilityResponse = void 0; +exports.UninstallMonitoringAgentResponse = exports.UninstallMonitoringAgentResponseBody = exports.UninstallMonitoringAgentRequest = exports.SendDryRunSystemEventResponse = exports.SendDryRunSystemEventResponseBody = exports.SendDryRunSystemEventRequest = exports.RemoveTagsResponse = exports.RemoveTagsResponseBody = exports.RemoveTagsRequest = exports.PutResourceMetricRulesResponse = exports.PutResourceMetricRulesResponseBody = exports.PutResourceMetricRulesRequest = exports.PutResourceMetricRuleResponse = exports.PutResourceMetricRuleResponseBody = exports.PutResourceMetricRuleShrinkRequest = exports.PutResourceMetricRuleRequest = exports.PutMonitoringConfigResponse = exports.PutMonitoringConfigResponseBody = exports.PutMonitoringConfigRequest = exports.PutMonitorGroupDynamicRuleResponse = exports.PutMonitorGroupDynamicRuleResponseBody = exports.PutMonitorGroupDynamicRuleRequest = exports.PutMetricRuleTargetsResponse = exports.PutMetricRuleTargetsResponseBody = exports.PutMetricRuleTargetsRequest = exports.PutLogMonitorResponse = exports.PutLogMonitorResponseBody = exports.PutLogMonitorRequest = exports.PutHybridMonitorMetricDataResponse = exports.PutHybridMonitorMetricDataResponseBody = exports.PutHybridMonitorMetricDataRequest = exports.PutGroupMetricRuleResponse = exports.PutGroupMetricRuleResponseBody = exports.PutGroupMetricRuleRequest = exports.PutExporterRuleResponse = exports.PutExporterRuleResponseBody = exports.PutExporterRuleRequest = exports.PutExporterOutputResponse = exports.PutExporterOutputResponseBody = exports.PutExporterOutputRequest = exports.PutEventRuleTargetsResponse = exports.PutEventRuleTargetsResponseBody = void 0; +var AlertEvent_1 = require("./AlertEvent"); +Object.defineProperty(exports, "AlertEventMetrics", { enumerable: true, get: function () { return AlertEvent_1.AlertEventMetrics; } }); +var EscalationRule_1 = require("./EscalationRule"); +Object.defineProperty(exports, "EscalationRuleEscalationsContactGroupsByLevel", { enumerable: true, get: function () { return EscalationRule_1.EscalationRuleEscalationsContactGroupsByLevel; } }); +var EscalationRule_2 = require("./EscalationRule"); +Object.defineProperty(exports, "EscalationRuleEscalations", { enumerable: true, get: function () { return EscalationRule_2.EscalationRuleEscalations; } }); +var MigrationJob_1 = require("./MigrationJob"); +Object.defineProperty(exports, "MigrationJobPlanContactsChannels", { enumerable: true, get: function () { return MigrationJob_1.MigrationJobPlanContactsChannels; } }); +var MigrationJob_2 = require("./MigrationJob"); +Object.defineProperty(exports, "MigrationJobPlanContacts", { enumerable: true, get: function () { return MigrationJob_2.MigrationJobPlanContacts; } }); +var MigrationJob_3 = require("./MigrationJob"); +Object.defineProperty(exports, "MigrationJobPlanEscalationsEscalationsLevelGroups", { enumerable: true, get: function () { return MigrationJob_3.MigrationJobPlanEscalationsEscalationsLevelGroups; } }); +var MigrationJob_4 = require("./MigrationJob"); +Object.defineProperty(exports, "MigrationJobPlanEscalationsEscalations", { enumerable: true, get: function () { return MigrationJob_4.MigrationJobPlanEscalationsEscalations; } }); +var MigrationJob_5 = require("./MigrationJob"); +Object.defineProperty(exports, "MigrationJobPlanEscalations", { enumerable: true, get: function () { return MigrationJob_5.MigrationJobPlanEscalations; } }); +var MigrationJob_6 = require("./MigrationJob"); +Object.defineProperty(exports, "MigrationJobPlanGroups", { enumerable: true, get: function () { return MigrationJob_6.MigrationJobPlanGroups; } }); +var MigrationJob_7 = require("./MigrationJob"); +Object.defineProperty(exports, "MigrationJobPlanStrategiesEscalationSetting", { enumerable: true, get: function () { return MigrationJob_7.MigrationJobPlanStrategiesEscalationSetting; } }); +var MigrationJob_8 = require("./MigrationJob"); +Object.defineProperty(exports, "MigrationJobPlanStrategiesPushingSetting", { enumerable: true, get: function () { return MigrationJob_8.MigrationJobPlanStrategiesPushingSetting; } }); +var MigrationJob_9 = require("./MigrationJob"); +Object.defineProperty(exports, "MigrationJobPlanStrategies", { enumerable: true, get: function () { return MigrationJob_9.MigrationJobPlanStrategies; } }); +var MigrationJob_10 = require("./MigrationJob"); +Object.defineProperty(exports, "MigrationJobPlanSubscriptionsConditions", { enumerable: true, get: function () { return MigrationJob_10.MigrationJobPlanSubscriptionsConditions; } }); +var MigrationJob_11 = require("./MigrationJob"); +Object.defineProperty(exports, "MigrationJobPlanSubscriptions", { enumerable: true, get: function () { return MigrationJob_11.MigrationJobPlanSubscriptions; } }); +var MigrationJob_12 = require("./MigrationJob"); +Object.defineProperty(exports, "MigrationJobPlanTargetsHttpRequestTarget", { enumerable: true, get: function () { return MigrationJob_12.MigrationJobPlanTargetsHttpRequestTarget; } }); +var MigrationJob_13 = require("./MigrationJob"); +Object.defineProperty(exports, "MigrationJobPlanTargets", { enumerable: true, get: function () { return MigrationJob_13.MigrationJobPlanTargets; } }); +var MigrationJob_14 = require("./MigrationJob"); +Object.defineProperty(exports, "MigrationJobPlan", { enumerable: true, get: function () { return MigrationJob_14.MigrationJobPlan; } }); +var MigrationJob_15 = require("./MigrationJob"); +Object.defineProperty(exports, "MigrationJobSourceRuleKeywordFilter", { enumerable: true, get: function () { return MigrationJob_15.MigrationJobSourceRuleKeywordFilter; } }); +var MigrationJob_16 = require("./MigrationJob"); +Object.defineProperty(exports, "MigrationJobSourceRulePrimaryFilters", { enumerable: true, get: function () { return MigrationJob_16.MigrationJobSourceRulePrimaryFilters; } }); +var MigrationJob_17 = require("./MigrationJob"); +Object.defineProperty(exports, "MigrationJobSourceRule", { enumerable: true, get: function () { return MigrationJob_17.MigrationJobSourceRule; } }); +var MigrationJob_18 = require("./MigrationJob"); +Object.defineProperty(exports, "MigrationJobSourceTargetsContent", { enumerable: true, get: function () { return MigrationJob_18.MigrationJobSourceTargetsContent; } }); +var MigrationJob_19 = require("./MigrationJob"); +Object.defineProperty(exports, "MigrationJobSourceTargets", { enumerable: true, get: function () { return MigrationJob_19.MigrationJobSourceTargets; } }); +var MigrationJob_20 = require("./MigrationJob"); +Object.defineProperty(exports, "MigrationJobSource", { enumerable: true, get: function () { return MigrationJob_20.MigrationJobSource; } }); +var NotificationStrategy_1 = require("./NotificationStrategy"); +Object.defineProperty(exports, "NotificationStrategyEscalationSettingCustomChannels", { enumerable: true, get: function () { return NotificationStrategy_1.NotificationStrategyEscalationSettingCustomChannels; } }); +var NotificationStrategy_2 = require("./NotificationStrategy"); +Object.defineProperty(exports, "NotificationStrategyEscalationSetting", { enumerable: true, get: function () { return NotificationStrategy_2.NotificationStrategyEscalationSetting; } }); +var NotificationStrategy_3 = require("./NotificationStrategy"); +Object.defineProperty(exports, "NotificationStrategyFilterSettingBlackList", { enumerable: true, get: function () { return NotificationStrategy_3.NotificationStrategyFilterSettingBlackList; } }); +var NotificationStrategy_4 = require("./NotificationStrategy"); +Object.defineProperty(exports, "NotificationStrategyFilterSettingWhiteList", { enumerable: true, get: function () { return NotificationStrategy_4.NotificationStrategyFilterSettingWhiteList; } }); +var NotificationStrategy_5 = require("./NotificationStrategy"); +Object.defineProperty(exports, "NotificationStrategyFilterSetting", { enumerable: true, get: function () { return NotificationStrategy_5.NotificationStrategyFilterSetting; } }); +var NotificationStrategy_6 = require("./NotificationStrategy"); +Object.defineProperty(exports, "NotificationStrategyGroupingSettingGroupingItems", { enumerable: true, get: function () { return NotificationStrategy_6.NotificationStrategyGroupingSettingGroupingItems; } }); +var NotificationStrategy_7 = require("./NotificationStrategy"); +Object.defineProperty(exports, "NotificationStrategyGroupingSetting", { enumerable: true, get: function () { return NotificationStrategy_7.NotificationStrategyGroupingSetting; } }); +var NotificationStrategy_8 = require("./NotificationStrategy"); +Object.defineProperty(exports, "NotificationStrategyPushingSetting", { enumerable: true, get: function () { return NotificationStrategy_8.NotificationStrategyPushingSetting; } }); +var NotificationStrategy_9 = require("./NotificationStrategy"); +Object.defineProperty(exports, "NotificationStrategyRouteSettingRoutesConditions", { enumerable: true, get: function () { return NotificationStrategy_9.NotificationStrategyRouteSettingRoutesConditions; } }); +var NotificationStrategy_10 = require("./NotificationStrategy"); +Object.defineProperty(exports, "NotificationStrategyRouteSettingRoutes", { enumerable: true, get: function () { return NotificationStrategy_10.NotificationStrategyRouteSettingRoutes; } }); +var NotificationStrategy_11 = require("./NotificationStrategy"); +Object.defineProperty(exports, "NotificationStrategyRouteSetting", { enumerable: true, get: function () { return NotificationStrategy_11.NotificationStrategyRouteSetting; } }); +var PushingTarget_1 = require("./PushingTarget"); +Object.defineProperty(exports, "PushingTargetHttpRequestTargetHeaders", { enumerable: true, get: function () { return PushingTarget_1.PushingTargetHttpRequestTargetHeaders; } }); +var PushingTarget_2 = require("./PushingTarget"); +Object.defineProperty(exports, "PushingTargetHttpRequestTarget", { enumerable: true, get: function () { return PushingTarget_2.PushingTargetHttpRequestTarget; } }); +var Subscription_1 = require("./Subscription"); +Object.defineProperty(exports, "SubscriptionConditions", { enumerable: true, get: function () { return Subscription_1.SubscriptionConditions; } }); +var AddTagsRequest_1 = require("./AddTagsRequest"); +Object.defineProperty(exports, "AddTagsRequestTag", { enumerable: true, get: function () { return AddTagsRequest_1.AddTagsRequestTag; } }); +var ApplyMetricRuleTemplateResponseBody_1 = require("./ApplyMetricRuleTemplateResponseBody"); +Object.defineProperty(exports, "ApplyMetricRuleTemplateResponseBodyResourceAlertResults", { enumerable: true, get: function () { return ApplyMetricRuleTemplateResponseBody_1.ApplyMetricRuleTemplateResponseBodyResourceAlertResults; } }); +var ApplyMetricRuleTemplateResponseBody_2 = require("./ApplyMetricRuleTemplateResponseBody"); +Object.defineProperty(exports, "ApplyMetricRuleTemplateResponseBodyResource", { enumerable: true, get: function () { return ApplyMetricRuleTemplateResponseBody_2.ApplyMetricRuleTemplateResponseBodyResource; } }); +var BatchCreateInstantSiteMonitorRequest_1 = require("./BatchCreateInstantSiteMonitorRequest"); +Object.defineProperty(exports, "BatchCreateInstantSiteMonitorRequestTaskList", { enumerable: true, get: function () { return BatchCreateInstantSiteMonitorRequest_1.BatchCreateInstantSiteMonitorRequestTaskList; } }); +var BatchCreateInstantSiteMonitorResponseBody_1 = require("./BatchCreateInstantSiteMonitorResponseBody"); +Object.defineProperty(exports, "BatchCreateInstantSiteMonitorResponseBodyData", { enumerable: true, get: function () { return BatchCreateInstantSiteMonitorResponseBody_1.BatchCreateInstantSiteMonitorResponseBodyData; } }); +var CreateDynamicTagGroupRequest_1 = require("./CreateDynamicTagGroupRequest"); +Object.defineProperty(exports, "CreateDynamicTagGroupRequestMatchExpress", { enumerable: true, get: function () { return CreateDynamicTagGroupRequest_1.CreateDynamicTagGroupRequestMatchExpress; } }); +var CreateGroupMetricRulesRequest_1 = require("./CreateGroupMetricRulesRequest"); +Object.defineProperty(exports, "CreateGroupMetricRulesRequestGroupMetricRulesEscalationsCritical", { enumerable: true, get: function () { return CreateGroupMetricRulesRequest_1.CreateGroupMetricRulesRequestGroupMetricRulesEscalationsCritical; } }); +var CreateGroupMetricRulesRequest_2 = require("./CreateGroupMetricRulesRequest"); +Object.defineProperty(exports, "CreateGroupMetricRulesRequestGroupMetricRulesEscalationsInfo", { enumerable: true, get: function () { return CreateGroupMetricRulesRequest_2.CreateGroupMetricRulesRequestGroupMetricRulesEscalationsInfo; } }); +var CreateGroupMetricRulesRequest_3 = require("./CreateGroupMetricRulesRequest"); +Object.defineProperty(exports, "CreateGroupMetricRulesRequestGroupMetricRulesEscalationsWarn", { enumerable: true, get: function () { return CreateGroupMetricRulesRequest_3.CreateGroupMetricRulesRequestGroupMetricRulesEscalationsWarn; } }); +var CreateGroupMetricRulesRequest_4 = require("./CreateGroupMetricRulesRequest"); +Object.defineProperty(exports, "CreateGroupMetricRulesRequestGroupMetricRulesEscalations", { enumerable: true, get: function () { return CreateGroupMetricRulesRequest_4.CreateGroupMetricRulesRequestGroupMetricRulesEscalations; } }); +var CreateGroupMetricRulesRequest_5 = require("./CreateGroupMetricRulesRequest"); +Object.defineProperty(exports, "CreateGroupMetricRulesRequestGroupMetricRulesLabels", { enumerable: true, get: function () { return CreateGroupMetricRulesRequest_5.CreateGroupMetricRulesRequestGroupMetricRulesLabels; } }); +var CreateGroupMetricRulesRequest_6 = require("./CreateGroupMetricRulesRequest"); +Object.defineProperty(exports, "CreateGroupMetricRulesRequestGroupMetricRules", { enumerable: true, get: function () { return CreateGroupMetricRulesRequest_6.CreateGroupMetricRulesRequestGroupMetricRules; } }); +var CreateGroupMetricRulesResponseBody_1 = require("./CreateGroupMetricRulesResponseBody"); +Object.defineProperty(exports, "CreateGroupMetricRulesResponseBodyResourcesAlertResult", { enumerable: true, get: function () { return CreateGroupMetricRulesResponseBody_1.CreateGroupMetricRulesResponseBodyResourcesAlertResult; } }); +var CreateGroupMetricRulesResponseBody_2 = require("./CreateGroupMetricRulesResponseBody"); +Object.defineProperty(exports, "CreateGroupMetricRulesResponseBodyResources", { enumerable: true, get: function () { return CreateGroupMetricRulesResponseBody_2.CreateGroupMetricRulesResponseBodyResources; } }); +var CreateGroupMonitoringAgentProcessRequest_1 = require("./CreateGroupMonitoringAgentProcessRequest"); +Object.defineProperty(exports, "CreateGroupMonitoringAgentProcessRequestAlertConfigTargetList", { enumerable: true, get: function () { return CreateGroupMonitoringAgentProcessRequest_1.CreateGroupMonitoringAgentProcessRequestAlertConfigTargetList; } }); +var CreateGroupMonitoringAgentProcessRequest_2 = require("./CreateGroupMonitoringAgentProcessRequest"); +Object.defineProperty(exports, "CreateGroupMonitoringAgentProcessRequestAlertConfig", { enumerable: true, get: function () { return CreateGroupMonitoringAgentProcessRequest_2.CreateGroupMonitoringAgentProcessRequestAlertConfig; } }); +var CreateGroupMonitoringAgentProcessRequest_3 = require("./CreateGroupMonitoringAgentProcessRequest"); +Object.defineProperty(exports, "CreateGroupMonitoringAgentProcessRequestMatchExpress", { enumerable: true, get: function () { return CreateGroupMonitoringAgentProcessRequest_3.CreateGroupMonitoringAgentProcessRequestMatchExpress; } }); +var CreateGroupMonitoringAgentProcessResponseBody_1 = require("./CreateGroupMonitoringAgentProcessResponseBody"); +Object.defineProperty(exports, "CreateGroupMonitoringAgentProcessResponseBodyResource", { enumerable: true, get: function () { return CreateGroupMonitoringAgentProcessResponseBody_1.CreateGroupMonitoringAgentProcessResponseBodyResource; } }); +var CreateHostAvailabilityRequest_1 = require("./CreateHostAvailabilityRequest"); +Object.defineProperty(exports, "CreateHostAvailabilityRequestAlertConfig", { enumerable: true, get: function () { return CreateHostAvailabilityRequest_1.CreateHostAvailabilityRequestAlertConfig; } }); +var CreateHostAvailabilityRequest_2 = require("./CreateHostAvailabilityRequest"); +Object.defineProperty(exports, "CreateHostAvailabilityRequestTaskOption", { enumerable: true, get: function () { return CreateHostAvailabilityRequest_2.CreateHostAvailabilityRequestTaskOption; } }); +var CreateHostAvailabilityRequest_3 = require("./CreateHostAvailabilityRequest"); +Object.defineProperty(exports, "CreateHostAvailabilityRequestAlertConfigEscalationList", { enumerable: true, get: function () { return CreateHostAvailabilityRequest_3.CreateHostAvailabilityRequestAlertConfigEscalationList; } }); +var CreateHostAvailabilityRequest_4 = require("./CreateHostAvailabilityRequest"); +Object.defineProperty(exports, "CreateHostAvailabilityRequestAlertConfigTargetList", { enumerable: true, get: function () { return CreateHostAvailabilityRequest_4.CreateHostAvailabilityRequestAlertConfigTargetList; } }); +var CreateHybridMonitorSlsgroupRequest_1 = require("./CreateHybridMonitorSlsgroupRequest"); +Object.defineProperty(exports, "CreateHybridMonitorSLSGroupRequestSLSGroupConfig", { enumerable: true, get: function () { return CreateHybridMonitorSlsgroupRequest_1.CreateHybridMonitorSLSGroupRequestSLSGroupConfig; } }); +var CreateHybridMonitorTaskRequest_1 = require("./CreateHybridMonitorTaskRequest"); +Object.defineProperty(exports, "CreateHybridMonitorTaskRequestAttachLabels", { enumerable: true, get: function () { return CreateHybridMonitorTaskRequest_1.CreateHybridMonitorTaskRequestAttachLabels; } }); +var CreateHybridMonitorTaskRequest_2 = require("./CreateHybridMonitorTaskRequest"); +Object.defineProperty(exports, "CreateHybridMonitorTaskRequestSLSProcessConfigExpress", { enumerable: true, get: function () { return CreateHybridMonitorTaskRequest_2.CreateHybridMonitorTaskRequestSLSProcessConfigExpress; } }); +var CreateHybridMonitorTaskRequest_3 = require("./CreateHybridMonitorTaskRequest"); +Object.defineProperty(exports, "CreateHybridMonitorTaskRequestSLSProcessConfigFilterFilters", { enumerable: true, get: function () { return CreateHybridMonitorTaskRequest_3.CreateHybridMonitorTaskRequestSLSProcessConfigFilterFilters; } }); +var CreateHybridMonitorTaskRequest_4 = require("./CreateHybridMonitorTaskRequest"); +Object.defineProperty(exports, "CreateHybridMonitorTaskRequestSLSProcessConfigFilter", { enumerable: true, get: function () { return CreateHybridMonitorTaskRequest_4.CreateHybridMonitorTaskRequestSLSProcessConfigFilter; } }); +var CreateHybridMonitorTaskRequest_5 = require("./CreateHybridMonitorTaskRequest"); +Object.defineProperty(exports, "CreateHybridMonitorTaskRequestSLSProcessConfigGroupBy", { enumerable: true, get: function () { return CreateHybridMonitorTaskRequest_5.CreateHybridMonitorTaskRequestSLSProcessConfigGroupBy; } }); +var CreateHybridMonitorTaskRequest_6 = require("./CreateHybridMonitorTaskRequest"); +Object.defineProperty(exports, "CreateHybridMonitorTaskRequestSLSProcessConfigStatistics", { enumerable: true, get: function () { return CreateHybridMonitorTaskRequest_6.CreateHybridMonitorTaskRequestSLSProcessConfigStatistics; } }); +var CreateHybridMonitorTaskRequest_7 = require("./CreateHybridMonitorTaskRequest"); +Object.defineProperty(exports, "CreateHybridMonitorTaskRequestSLSProcessConfig", { enumerable: true, get: function () { return CreateHybridMonitorTaskRequest_7.CreateHybridMonitorTaskRequestSLSProcessConfig; } }); +var CreateInstantSiteMonitorResponseBody_1 = require("./CreateInstantSiteMonitorResponseBody"); +Object.defineProperty(exports, "CreateInstantSiteMonitorResponseBodyCreateResultList", { enumerable: true, get: function () { return CreateInstantSiteMonitorResponseBody_1.CreateInstantSiteMonitorResponseBodyCreateResultList; } }); +var CreateMetricRuleBlackListRequest_1 = require("./CreateMetricRuleBlackListRequest"); +Object.defineProperty(exports, "CreateMetricRuleBlackListRequestMetrics", { enumerable: true, get: function () { return CreateMetricRuleBlackListRequest_1.CreateMetricRuleBlackListRequestMetrics; } }); +var CreateMetricRuleTemplateRequest_1 = require("./CreateMetricRuleTemplateRequest"); +Object.defineProperty(exports, "CreateMetricRuleTemplateRequestAlertTemplatesEscalationsCritical", { enumerable: true, get: function () { return CreateMetricRuleTemplateRequest_1.CreateMetricRuleTemplateRequestAlertTemplatesEscalationsCritical; } }); +var CreateMetricRuleTemplateRequest_2 = require("./CreateMetricRuleTemplateRequest"); +Object.defineProperty(exports, "CreateMetricRuleTemplateRequestAlertTemplatesEscalationsInfo", { enumerable: true, get: function () { return CreateMetricRuleTemplateRequest_2.CreateMetricRuleTemplateRequestAlertTemplatesEscalationsInfo; } }); +var CreateMetricRuleTemplateRequest_3 = require("./CreateMetricRuleTemplateRequest"); +Object.defineProperty(exports, "CreateMetricRuleTemplateRequestAlertTemplatesEscalationsWarn", { enumerable: true, get: function () { return CreateMetricRuleTemplateRequest_3.CreateMetricRuleTemplateRequestAlertTemplatesEscalationsWarn; } }); +var CreateMetricRuleTemplateRequest_4 = require("./CreateMetricRuleTemplateRequest"); +Object.defineProperty(exports, "CreateMetricRuleTemplateRequestAlertTemplatesEscalations", { enumerable: true, get: function () { return CreateMetricRuleTemplateRequest_4.CreateMetricRuleTemplateRequestAlertTemplatesEscalations; } }); +var CreateMetricRuleTemplateRequest_5 = require("./CreateMetricRuleTemplateRequest"); +Object.defineProperty(exports, "CreateMetricRuleTemplateRequestAlertTemplates", { enumerable: true, get: function () { return CreateMetricRuleTemplateRequest_5.CreateMetricRuleTemplateRequestAlertTemplates; } }); +var CreateMonitorGroupInstancesRequest_1 = require("./CreateMonitorGroupInstancesRequest"); +Object.defineProperty(exports, "CreateMonitorGroupInstancesRequestInstances", { enumerable: true, get: function () { return CreateMonitorGroupInstancesRequest_1.CreateMonitorGroupInstancesRequestInstances; } }); +var CreateSiteMonitorResponseBody_1 = require("./CreateSiteMonitorResponseBody"); +Object.defineProperty(exports, "CreateSiteMonitorResponseBodyCreateResultListCreateResultList", { enumerable: true, get: function () { return CreateSiteMonitorResponseBody_1.CreateSiteMonitorResponseBodyCreateResultListCreateResultList; } }); +var CreateSiteMonitorResponseBody_2 = require("./CreateSiteMonitorResponseBody"); +Object.defineProperty(exports, "CreateSiteMonitorResponseBodyCreateResultList", { enumerable: true, get: function () { return CreateSiteMonitorResponseBody_2.CreateSiteMonitorResponseBodyCreateResultList; } }); +var CreateSiteMonitorResponseBody_3 = require("./CreateSiteMonitorResponseBody"); +Object.defineProperty(exports, "CreateSiteMonitorResponseBodyDataAttachAlertResultContact", { enumerable: true, get: function () { return CreateSiteMonitorResponseBody_3.CreateSiteMonitorResponseBodyDataAttachAlertResultContact; } }); +var CreateSiteMonitorResponseBody_4 = require("./CreateSiteMonitorResponseBody"); +Object.defineProperty(exports, "CreateSiteMonitorResponseBodyDataAttachAlertResult", { enumerable: true, get: function () { return CreateSiteMonitorResponseBody_4.CreateSiteMonitorResponseBodyDataAttachAlertResult; } }); +var CreateSiteMonitorResponseBody_5 = require("./CreateSiteMonitorResponseBody"); +Object.defineProperty(exports, "CreateSiteMonitorResponseBodyData", { enumerable: true, get: function () { return CreateSiteMonitorResponseBody_5.CreateSiteMonitorResponseBodyData; } }); +var DeleteMetricRuleTargetsResponseBody_1 = require("./DeleteMetricRuleTargetsResponseBody"); +Object.defineProperty(exports, "DeleteMetricRuleTargetsResponseBodyFailIdsTargetIds", { enumerable: true, get: function () { return DeleteMetricRuleTargetsResponseBody_1.DeleteMetricRuleTargetsResponseBodyFailIdsTargetIds; } }); +var DeleteMetricRuleTargetsResponseBody_2 = require("./DeleteMetricRuleTargetsResponseBody"); +Object.defineProperty(exports, "DeleteMetricRuleTargetsResponseBodyFailIds", { enumerable: true, get: function () { return DeleteMetricRuleTargetsResponseBody_2.DeleteMetricRuleTargetsResponseBodyFailIds; } }); +var DeleteMetricRuleTemplateResponseBody_1 = require("./DeleteMetricRuleTemplateResponseBody"); +Object.defineProperty(exports, "DeleteMetricRuleTemplateResponseBodyResource", { enumerable: true, get: function () { return DeleteMetricRuleTemplateResponseBody_1.DeleteMetricRuleTemplateResponseBodyResource; } }); +var DeleteMonitorGroupResponseBody_1 = require("./DeleteMonitorGroupResponseBody"); +Object.defineProperty(exports, "DeleteMonitorGroupResponseBodyGroupContactGroupsContactGroup", { enumerable: true, get: function () { return DeleteMonitorGroupResponseBody_1.DeleteMonitorGroupResponseBodyGroupContactGroupsContactGroup; } }); +var DeleteMonitorGroupResponseBody_2 = require("./DeleteMonitorGroupResponseBody"); +Object.defineProperty(exports, "DeleteMonitorGroupResponseBodyGroupContactGroups", { enumerable: true, get: function () { return DeleteMonitorGroupResponseBody_2.DeleteMonitorGroupResponseBodyGroupContactGroups; } }); +var DeleteMonitorGroupResponseBody_3 = require("./DeleteMonitorGroupResponseBody"); +Object.defineProperty(exports, "DeleteMonitorGroupResponseBodyGroup", { enumerable: true, get: function () { return DeleteMonitorGroupResponseBody_3.DeleteMonitorGroupResponseBodyGroup; } }); +var DeleteSiteMonitorsResponseBody_1 = require("./DeleteSiteMonitorsResponseBody"); +Object.defineProperty(exports, "DeleteSiteMonitorsResponseBodyData", { enumerable: true, get: function () { return DeleteSiteMonitorsResponseBody_1.DeleteSiteMonitorsResponseBodyData; } }); +var DescribeActiveMetricRuleListResponseBody_1 = require("./DescribeActiveMetricRuleListResponseBody"); +Object.defineProperty(exports, "DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsCritical", { enumerable: true, get: function () { return DescribeActiveMetricRuleListResponseBody_1.DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsCritical; } }); +var DescribeActiveMetricRuleListResponseBody_2 = require("./DescribeActiveMetricRuleListResponseBody"); +Object.defineProperty(exports, "DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsInfo", { enumerable: true, get: function () { return DescribeActiveMetricRuleListResponseBody_2.DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsInfo; } }); +var DescribeActiveMetricRuleListResponseBody_3 = require("./DescribeActiveMetricRuleListResponseBody"); +Object.defineProperty(exports, "DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsWarn", { enumerable: true, get: function () { return DescribeActiveMetricRuleListResponseBody_3.DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsWarn; } }); +var DescribeActiveMetricRuleListResponseBody_4 = require("./DescribeActiveMetricRuleListResponseBody"); +Object.defineProperty(exports, "DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalations", { enumerable: true, get: function () { return DescribeActiveMetricRuleListResponseBody_4.DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalations; } }); +var DescribeActiveMetricRuleListResponseBody_5 = require("./DescribeActiveMetricRuleListResponseBody"); +Object.defineProperty(exports, "DescribeActiveMetricRuleListResponseBodyAlertListAlert", { enumerable: true, get: function () { return DescribeActiveMetricRuleListResponseBody_5.DescribeActiveMetricRuleListResponseBodyAlertListAlert; } }); +var DescribeActiveMetricRuleListResponseBody_6 = require("./DescribeActiveMetricRuleListResponseBody"); +Object.defineProperty(exports, "DescribeActiveMetricRuleListResponseBodyAlertList", { enumerable: true, get: function () { return DescribeActiveMetricRuleListResponseBody_6.DescribeActiveMetricRuleListResponseBodyAlertList; } }); +var DescribeActiveMetricRuleListResponseBody_7 = require("./DescribeActiveMetricRuleListResponseBody"); +Object.defineProperty(exports, "DescribeActiveMetricRuleListResponseBodyDatapointsAlarm", { enumerable: true, get: function () { return DescribeActiveMetricRuleListResponseBody_7.DescribeActiveMetricRuleListResponseBodyDatapointsAlarm; } }); +var DescribeActiveMetricRuleListResponseBody_8 = require("./DescribeActiveMetricRuleListResponseBody"); +Object.defineProperty(exports, "DescribeActiveMetricRuleListResponseBodyDatapoints", { enumerable: true, get: function () { return DescribeActiveMetricRuleListResponseBody_8.DescribeActiveMetricRuleListResponseBodyDatapoints; } }); +var DescribeAlertHistoryListResponseBody_1 = require("./DescribeAlertHistoryListResponseBody"); +Object.defineProperty(exports, "DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactALIIMs", { enumerable: true, get: function () { return DescribeAlertHistoryListResponseBody_1.DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactALIIMs; } }); +var DescribeAlertHistoryListResponseBody_2 = require("./DescribeAlertHistoryListResponseBody"); +Object.defineProperty(exports, "DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactGroups", { enumerable: true, get: function () { return DescribeAlertHistoryListResponseBody_2.DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactGroups; } }); +var DescribeAlertHistoryListResponseBody_3 = require("./DescribeAlertHistoryListResponseBody"); +Object.defineProperty(exports, "DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactMails", { enumerable: true, get: function () { return DescribeAlertHistoryListResponseBody_3.DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactMails; } }); +var DescribeAlertHistoryListResponseBody_4 = require("./DescribeAlertHistoryListResponseBody"); +Object.defineProperty(exports, "DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactSmses", { enumerable: true, get: function () { return DescribeAlertHistoryListResponseBody_4.DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactSmses; } }); +var DescribeAlertHistoryListResponseBody_5 = require("./DescribeAlertHistoryListResponseBody"); +Object.defineProperty(exports, "DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContacts", { enumerable: true, get: function () { return DescribeAlertHistoryListResponseBody_5.DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContacts; } }); +var DescribeAlertHistoryListResponseBody_6 = require("./DescribeAlertHistoryListResponseBody"); +Object.defineProperty(exports, "DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistory", { enumerable: true, get: function () { return DescribeAlertHistoryListResponseBody_6.DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistory; } }); +var DescribeAlertHistoryListResponseBody_7 = require("./DescribeAlertHistoryListResponseBody"); +Object.defineProperty(exports, "DescribeAlertHistoryListResponseBodyAlarmHistoryList", { enumerable: true, get: function () { return DescribeAlertHistoryListResponseBody_7.DescribeAlertHistoryListResponseBodyAlarmHistoryList; } }); +var DescribeAlertLogCountResponseBody_1 = require("./DescribeAlertLogCountResponseBody"); +Object.defineProperty(exports, "DescribeAlertLogCountResponseBodyAlertLogCountLogs", { enumerable: true, get: function () { return DescribeAlertLogCountResponseBody_1.DescribeAlertLogCountResponseBodyAlertLogCountLogs; } }); +var DescribeAlertLogCountResponseBody_2 = require("./DescribeAlertLogCountResponseBody"); +Object.defineProperty(exports, "DescribeAlertLogCountResponseBodyAlertLogCount", { enumerable: true, get: function () { return DescribeAlertLogCountResponseBody_2.DescribeAlertLogCountResponseBodyAlertLogCount; } }); +var DescribeAlertLogHistogramResponseBody_1 = require("./DescribeAlertLogHistogramResponseBody"); +Object.defineProperty(exports, "DescribeAlertLogHistogramResponseBodyAlertLogHistogramList", { enumerable: true, get: function () { return DescribeAlertLogHistogramResponseBody_1.DescribeAlertLogHistogramResponseBodyAlertLogHistogramList; } }); +var DescribeAlertLogListResponseBody_1 = require("./DescribeAlertLogListResponseBody"); +Object.defineProperty(exports, "DescribeAlertLogListResponseBodyAlertLogListDimensions", { enumerable: true, get: function () { return DescribeAlertLogListResponseBody_1.DescribeAlertLogListResponseBodyAlertLogListDimensions; } }); +var DescribeAlertLogListResponseBody_2 = require("./DescribeAlertLogListResponseBody"); +Object.defineProperty(exports, "DescribeAlertLogListResponseBodyAlertLogListEscalation", { enumerable: true, get: function () { return DescribeAlertLogListResponseBody_2.DescribeAlertLogListResponseBodyAlertLogListEscalation; } }); +var DescribeAlertLogListResponseBody_3 = require("./DescribeAlertLogListResponseBody"); +Object.defineProperty(exports, "DescribeAlertLogListResponseBodyAlertLogListExtendedInfo", { enumerable: true, get: function () { return DescribeAlertLogListResponseBody_3.DescribeAlertLogListResponseBodyAlertLogListExtendedInfo; } }); +var DescribeAlertLogListResponseBody_4 = require("./DescribeAlertLogListResponseBody"); +Object.defineProperty(exports, "DescribeAlertLogListResponseBodyAlertLogListSendDetailChannelResultListResultList", { enumerable: true, get: function () { return DescribeAlertLogListResponseBody_4.DescribeAlertLogListResponseBodyAlertLogListSendDetailChannelResultListResultList; } }); +var DescribeAlertLogListResponseBody_5 = require("./DescribeAlertLogListResponseBody"); +Object.defineProperty(exports, "DescribeAlertLogListResponseBodyAlertLogListSendDetailChannelResultList", { enumerable: true, get: function () { return DescribeAlertLogListResponseBody_5.DescribeAlertLogListResponseBodyAlertLogListSendDetailChannelResultList; } }); +var DescribeAlertLogListResponseBody_6 = require("./DescribeAlertLogListResponseBody"); +Object.defineProperty(exports, "DescribeAlertLogListResponseBodyAlertLogListSendDetail", { enumerable: true, get: function () { return DescribeAlertLogListResponseBody_6.DescribeAlertLogListResponseBodyAlertLogListSendDetail; } }); +var DescribeAlertLogListResponseBody_7 = require("./DescribeAlertLogListResponseBody"); +Object.defineProperty(exports, "DescribeAlertLogListResponseBodyAlertLogListSendResultList", { enumerable: true, get: function () { return DescribeAlertLogListResponseBody_7.DescribeAlertLogListResponseBodyAlertLogListSendResultList; } }); +var DescribeAlertLogListResponseBody_8 = require("./DescribeAlertLogListResponseBody"); +Object.defineProperty(exports, "DescribeAlertLogListResponseBodyAlertLogListWebhookList", { enumerable: true, get: function () { return DescribeAlertLogListResponseBody_8.DescribeAlertLogListResponseBodyAlertLogListWebhookList; } }); +var DescribeAlertLogListResponseBody_9 = require("./DescribeAlertLogListResponseBody"); +Object.defineProperty(exports, "DescribeAlertLogListResponseBodyAlertLogList", { enumerable: true, get: function () { return DescribeAlertLogListResponseBody_9.DescribeAlertLogListResponseBodyAlertLogList; } }); +var DescribeAlertingMetricRuleResourcesResponseBody_1 = require("./DescribeAlertingMetricRuleResourcesResponseBody"); +Object.defineProperty(exports, "DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResourceExpressionListExpressionList", { enumerable: true, get: function () { return DescribeAlertingMetricRuleResourcesResponseBody_1.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResourceExpressionListExpressionList; } }); +var DescribeAlertingMetricRuleResourcesResponseBody_2 = require("./DescribeAlertingMetricRuleResourcesResponseBody"); +Object.defineProperty(exports, "DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResourceExpressionList", { enumerable: true, get: function () { return DescribeAlertingMetricRuleResourcesResponseBody_2.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResourceExpressionList; } }); +var DescribeAlertingMetricRuleResourcesResponseBody_3 = require("./DescribeAlertingMetricRuleResourcesResponseBody"); +Object.defineProperty(exports, "DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResource", { enumerable: true, get: function () { return DescribeAlertingMetricRuleResourcesResponseBody_3.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResource; } }); +var DescribeAlertingMetricRuleResourcesResponseBody_4 = require("./DescribeAlertingMetricRuleResourcesResponseBody"); +Object.defineProperty(exports, "DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalation", { enumerable: true, get: function () { return DescribeAlertingMetricRuleResourcesResponseBody_4.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalation; } }); +var DescribeAlertingMetricRuleResourcesResponseBody_5 = require("./DescribeAlertingMetricRuleResourcesResponseBody"); +Object.defineProperty(exports, "DescribeAlertingMetricRuleResourcesResponseBodyResourcesResource", { enumerable: true, get: function () { return DescribeAlertingMetricRuleResourcesResponseBody_5.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResource; } }); +var DescribeAlertingMetricRuleResourcesResponseBody_6 = require("./DescribeAlertingMetricRuleResourcesResponseBody"); +Object.defineProperty(exports, "DescribeAlertingMetricRuleResourcesResponseBodyResources", { enumerable: true, get: function () { return DescribeAlertingMetricRuleResourcesResponseBody_6.DescribeAlertingMetricRuleResourcesResponseBodyResources; } }); +var DescribeContactGroupListResponseBody_1 = require("./DescribeContactGroupListResponseBody"); +Object.defineProperty(exports, "DescribeContactGroupListResponseBodyContactGroupListContactGroupContacts", { enumerable: true, get: function () { return DescribeContactGroupListResponseBody_1.DescribeContactGroupListResponseBodyContactGroupListContactGroupContacts; } }); +var DescribeContactGroupListResponseBody_2 = require("./DescribeContactGroupListResponseBody"); +Object.defineProperty(exports, "DescribeContactGroupListResponseBodyContactGroupListContactGroup", { enumerable: true, get: function () { return DescribeContactGroupListResponseBody_2.DescribeContactGroupListResponseBodyContactGroupListContactGroup; } }); +var DescribeContactGroupListResponseBody_3 = require("./DescribeContactGroupListResponseBody"); +Object.defineProperty(exports, "DescribeContactGroupListResponseBodyContactGroupList", { enumerable: true, get: function () { return DescribeContactGroupListResponseBody_3.DescribeContactGroupListResponseBodyContactGroupList; } }); +var DescribeContactGroupListResponseBody_4 = require("./DescribeContactGroupListResponseBody"); +Object.defineProperty(exports, "DescribeContactGroupListResponseBodyContactGroups", { enumerable: true, get: function () { return DescribeContactGroupListResponseBody_4.DescribeContactGroupListResponseBodyContactGroups; } }); +var DescribeContactListResponseBody_1 = require("./DescribeContactListResponseBody"); +Object.defineProperty(exports, "DescribeContactListResponseBodyContactsContactChannels", { enumerable: true, get: function () { return DescribeContactListResponseBody_1.DescribeContactListResponseBodyContactsContactChannels; } }); +var DescribeContactListResponseBody_2 = require("./DescribeContactListResponseBody"); +Object.defineProperty(exports, "DescribeContactListResponseBodyContactsContactChannelsState", { enumerable: true, get: function () { return DescribeContactListResponseBody_2.DescribeContactListResponseBodyContactsContactChannelsState; } }); +var DescribeContactListResponseBody_3 = require("./DescribeContactListResponseBody"); +Object.defineProperty(exports, "DescribeContactListResponseBodyContactsContactContactGroups", { enumerable: true, get: function () { return DescribeContactListResponseBody_3.DescribeContactListResponseBodyContactsContactContactGroups; } }); +var DescribeContactListResponseBody_4 = require("./DescribeContactListResponseBody"); +Object.defineProperty(exports, "DescribeContactListResponseBodyContactsContact", { enumerable: true, get: function () { return DescribeContactListResponseBody_4.DescribeContactListResponseBodyContactsContact; } }); +var DescribeContactListResponseBody_5 = require("./DescribeContactListResponseBody"); +Object.defineProperty(exports, "DescribeContactListResponseBodyContacts", { enumerable: true, get: function () { return DescribeContactListResponseBody_5.DescribeContactListResponseBodyContacts; } }); +var DescribeContactListByContactGroupResponseBody_1 = require("./DescribeContactListByContactGroupResponseBody"); +Object.defineProperty(exports, "DescribeContactListByContactGroupResponseBodyContactsContactChannels", { enumerable: true, get: function () { return DescribeContactListByContactGroupResponseBody_1.DescribeContactListByContactGroupResponseBodyContactsContactChannels; } }); +var DescribeContactListByContactGroupResponseBody_2 = require("./DescribeContactListByContactGroupResponseBody"); +Object.defineProperty(exports, "DescribeContactListByContactGroupResponseBodyContactsContact", { enumerable: true, get: function () { return DescribeContactListByContactGroupResponseBody_2.DescribeContactListByContactGroupResponseBodyContactsContact; } }); +var DescribeContactListByContactGroupResponseBody_3 = require("./DescribeContactListByContactGroupResponseBody"); +Object.defineProperty(exports, "DescribeContactListByContactGroupResponseBodyContacts", { enumerable: true, get: function () { return DescribeContactListByContactGroupResponseBody_3.DescribeContactListByContactGroupResponseBodyContacts; } }); +var DescribeCustomEventAttributeResponseBody_1 = require("./DescribeCustomEventAttributeResponseBody"); +Object.defineProperty(exports, "DescribeCustomEventAttributeResponseBodyCustomEventsCustomEvent", { enumerable: true, get: function () { return DescribeCustomEventAttributeResponseBody_1.DescribeCustomEventAttributeResponseBodyCustomEventsCustomEvent; } }); +var DescribeCustomEventAttributeResponseBody_2 = require("./DescribeCustomEventAttributeResponseBody"); +Object.defineProperty(exports, "DescribeCustomEventAttributeResponseBodyCustomEvents", { enumerable: true, get: function () { return DescribeCustomEventAttributeResponseBody_2.DescribeCustomEventAttributeResponseBodyCustomEvents; } }); +var DescribeCustomEventCountResponseBody_1 = require("./DescribeCustomEventCountResponseBody"); +Object.defineProperty(exports, "DescribeCustomEventCountResponseBodyCustomEventCountsCustomEventCount", { enumerable: true, get: function () { return DescribeCustomEventCountResponseBody_1.DescribeCustomEventCountResponseBodyCustomEventCountsCustomEventCount; } }); +var DescribeCustomEventCountResponseBody_2 = require("./DescribeCustomEventCountResponseBody"); +Object.defineProperty(exports, "DescribeCustomEventCountResponseBodyCustomEventCounts", { enumerable: true, get: function () { return DescribeCustomEventCountResponseBody_2.DescribeCustomEventCountResponseBodyCustomEventCounts; } }); +var DescribeCustomEventHistogramResponseBody_1 = require("./DescribeCustomEventHistogramResponseBody"); +Object.defineProperty(exports, "DescribeCustomEventHistogramResponseBodyEventHistogramsEventHistogram", { enumerable: true, get: function () { return DescribeCustomEventHistogramResponseBody_1.DescribeCustomEventHistogramResponseBodyEventHistogramsEventHistogram; } }); +var DescribeCustomEventHistogramResponseBody_2 = require("./DescribeCustomEventHistogramResponseBody"); +Object.defineProperty(exports, "DescribeCustomEventHistogramResponseBodyEventHistograms", { enumerable: true, get: function () { return DescribeCustomEventHistogramResponseBody_2.DescribeCustomEventHistogramResponseBodyEventHistograms; } }); +var DescribeDynamicTagRuleListResponseBody_1 = require("./DescribeDynamicTagRuleListResponseBody"); +Object.defineProperty(exports, "DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupContactGroupList", { enumerable: true, get: function () { return DescribeDynamicTagRuleListResponseBody_1.DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupContactGroupList; } }); +var DescribeDynamicTagRuleListResponseBody_2 = require("./DescribeDynamicTagRuleListResponseBody"); +Object.defineProperty(exports, "DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupMatchExpressMatchExpress", { enumerable: true, get: function () { return DescribeDynamicTagRuleListResponseBody_2.DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupMatchExpressMatchExpress; } }); +var DescribeDynamicTagRuleListResponseBody_3 = require("./DescribeDynamicTagRuleListResponseBody"); +Object.defineProperty(exports, "DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupMatchExpress", { enumerable: true, get: function () { return DescribeDynamicTagRuleListResponseBody_3.DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupMatchExpress; } }); +var DescribeDynamicTagRuleListResponseBody_4 = require("./DescribeDynamicTagRuleListResponseBody"); +Object.defineProperty(exports, "DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupTagValueBlacklist", { enumerable: true, get: function () { return DescribeDynamicTagRuleListResponseBody_4.DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupTagValueBlacklist; } }); +var DescribeDynamicTagRuleListResponseBody_5 = require("./DescribeDynamicTagRuleListResponseBody"); +Object.defineProperty(exports, "DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupTemplateIdList", { enumerable: true, get: function () { return DescribeDynamicTagRuleListResponseBody_5.DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupTemplateIdList; } }); +var DescribeDynamicTagRuleListResponseBody_6 = require("./DescribeDynamicTagRuleListResponseBody"); +Object.defineProperty(exports, "DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroup", { enumerable: true, get: function () { return DescribeDynamicTagRuleListResponseBody_6.DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroup; } }); +var DescribeDynamicTagRuleListResponseBody_7 = require("./DescribeDynamicTagRuleListResponseBody"); +Object.defineProperty(exports, "DescribeDynamicTagRuleListResponseBodyTagGroupList", { enumerable: true, get: function () { return DescribeDynamicTagRuleListResponseBody_7.DescribeDynamicTagRuleListResponseBodyTagGroupList; } }); +var DescribeEventRuleAttributeResponseBody_1 = require("./DescribeEventRuleAttributeResponseBody"); +Object.defineProperty(exports, "DescribeEventRuleAttributeResponseBodyResultEventPatternEventTypeList", { enumerable: true, get: function () { return DescribeEventRuleAttributeResponseBody_1.DescribeEventRuleAttributeResponseBodyResultEventPatternEventTypeList; } }); +var DescribeEventRuleAttributeResponseBody_2 = require("./DescribeEventRuleAttributeResponseBody"); +Object.defineProperty(exports, "DescribeEventRuleAttributeResponseBodyResultEventPatternKeywordFilterObjKeywords", { enumerable: true, get: function () { return DescribeEventRuleAttributeResponseBody_2.DescribeEventRuleAttributeResponseBodyResultEventPatternKeywordFilterObjKeywords; } }); +var DescribeEventRuleAttributeResponseBody_3 = require("./DescribeEventRuleAttributeResponseBody"); +Object.defineProperty(exports, "DescribeEventRuleAttributeResponseBodyResultEventPatternKeywordFilterObj", { enumerable: true, get: function () { return DescribeEventRuleAttributeResponseBody_3.DescribeEventRuleAttributeResponseBodyResultEventPatternKeywordFilterObj; } }); +var DescribeEventRuleAttributeResponseBody_4 = require("./DescribeEventRuleAttributeResponseBody"); +Object.defineProperty(exports, "DescribeEventRuleAttributeResponseBodyResultEventPatternLevelList", { enumerable: true, get: function () { return DescribeEventRuleAttributeResponseBody_4.DescribeEventRuleAttributeResponseBodyResultEventPatternLevelList; } }); +var DescribeEventRuleAttributeResponseBody_5 = require("./DescribeEventRuleAttributeResponseBody"); +Object.defineProperty(exports, "DescribeEventRuleAttributeResponseBodyResultEventPatternNameList", { enumerable: true, get: function () { return DescribeEventRuleAttributeResponseBody_5.DescribeEventRuleAttributeResponseBodyResultEventPatternNameList; } }); +var DescribeEventRuleAttributeResponseBody_6 = require("./DescribeEventRuleAttributeResponseBody"); +Object.defineProperty(exports, "DescribeEventRuleAttributeResponseBodyResultEventPatternStatusList", { enumerable: true, get: function () { return DescribeEventRuleAttributeResponseBody_6.DescribeEventRuleAttributeResponseBodyResultEventPatternStatusList; } }); +var DescribeEventRuleAttributeResponseBody_7 = require("./DescribeEventRuleAttributeResponseBody"); +Object.defineProperty(exports, "DescribeEventRuleAttributeResponseBodyResultEventPattern", { enumerable: true, get: function () { return DescribeEventRuleAttributeResponseBody_7.DescribeEventRuleAttributeResponseBodyResultEventPattern; } }); +var DescribeEventRuleAttributeResponseBody_8 = require("./DescribeEventRuleAttributeResponseBody"); +Object.defineProperty(exports, "DescribeEventRuleAttributeResponseBodyResult", { enumerable: true, get: function () { return DescribeEventRuleAttributeResponseBody_8.DescribeEventRuleAttributeResponseBodyResult; } }); +var DescribeEventRuleListResponseBody_1 = require("./DescribeEventRuleListResponseBody"); +Object.defineProperty(exports, "DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternEventTypeList", { enumerable: true, get: function () { return DescribeEventRuleListResponseBody_1.DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternEventTypeList; } }); +var DescribeEventRuleListResponseBody_2 = require("./DescribeEventRuleListResponseBody"); +Object.defineProperty(exports, "DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternKeywordFilterKeywords", { enumerable: true, get: function () { return DescribeEventRuleListResponseBody_2.DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternKeywordFilterKeywords; } }); +var DescribeEventRuleListResponseBody_3 = require("./DescribeEventRuleListResponseBody"); +Object.defineProperty(exports, "DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternKeywordFilter", { enumerable: true, get: function () { return DescribeEventRuleListResponseBody_3.DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternKeywordFilter; } }); +var DescribeEventRuleListResponseBody_4 = require("./DescribeEventRuleListResponseBody"); +Object.defineProperty(exports, "DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternLevelList", { enumerable: true, get: function () { return DescribeEventRuleListResponseBody_4.DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternLevelList; } }); +var DescribeEventRuleListResponseBody_5 = require("./DescribeEventRuleListResponseBody"); +Object.defineProperty(exports, "DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternNameList", { enumerable: true, get: function () { return DescribeEventRuleListResponseBody_5.DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternNameList; } }); +var DescribeEventRuleListResponseBody_6 = require("./DescribeEventRuleListResponseBody"); +Object.defineProperty(exports, "DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPattern", { enumerable: true, get: function () { return DescribeEventRuleListResponseBody_6.DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPattern; } }); +var DescribeEventRuleListResponseBody_7 = require("./DescribeEventRuleListResponseBody"); +Object.defineProperty(exports, "DescribeEventRuleListResponseBodyEventRulesEventRuleEventPattern", { enumerable: true, get: function () { return DescribeEventRuleListResponseBody_7.DescribeEventRuleListResponseBodyEventRulesEventRuleEventPattern; } }); +var DescribeEventRuleListResponseBody_8 = require("./DescribeEventRuleListResponseBody"); +Object.defineProperty(exports, "DescribeEventRuleListResponseBodyEventRulesEventRule", { enumerable: true, get: function () { return DescribeEventRuleListResponseBody_8.DescribeEventRuleListResponseBodyEventRulesEventRule; } }); +var DescribeEventRuleListResponseBody_9 = require("./DescribeEventRuleListResponseBody"); +Object.defineProperty(exports, "DescribeEventRuleListResponseBodyEventRules", { enumerable: true, get: function () { return DescribeEventRuleListResponseBody_9.DescribeEventRuleListResponseBodyEventRules; } }); +var DescribeEventRuleTargetListResponseBody_1 = require("./DescribeEventRuleTargetListResponseBody"); +Object.defineProperty(exports, "DescribeEventRuleTargetListResponseBodyContactParametersContactParameter", { enumerable: true, get: function () { return DescribeEventRuleTargetListResponseBody_1.DescribeEventRuleTargetListResponseBodyContactParametersContactParameter; } }); +var DescribeEventRuleTargetListResponseBody_2 = require("./DescribeEventRuleTargetListResponseBody"); +Object.defineProperty(exports, "DescribeEventRuleTargetListResponseBodyContactParameters", { enumerable: true, get: function () { return DescribeEventRuleTargetListResponseBody_2.DescribeEventRuleTargetListResponseBodyContactParameters; } }); +var DescribeEventRuleTargetListResponseBody_3 = require("./DescribeEventRuleTargetListResponseBody"); +Object.defineProperty(exports, "DescribeEventRuleTargetListResponseBodyFcParametersFCParameter", { enumerable: true, get: function () { return DescribeEventRuleTargetListResponseBody_3.DescribeEventRuleTargetListResponseBodyFcParametersFCParameter; } }); +var DescribeEventRuleTargetListResponseBody_4 = require("./DescribeEventRuleTargetListResponseBody"); +Object.defineProperty(exports, "DescribeEventRuleTargetListResponseBodyFcParameters", { enumerable: true, get: function () { return DescribeEventRuleTargetListResponseBody_4.DescribeEventRuleTargetListResponseBodyFcParameters; } }); +var DescribeEventRuleTargetListResponseBody_5 = require("./DescribeEventRuleTargetListResponseBody"); +Object.defineProperty(exports, "DescribeEventRuleTargetListResponseBodyMnsParametersMnsParameter", { enumerable: true, get: function () { return DescribeEventRuleTargetListResponseBody_5.DescribeEventRuleTargetListResponseBodyMnsParametersMnsParameter; } }); +var DescribeEventRuleTargetListResponseBody_6 = require("./DescribeEventRuleTargetListResponseBody"); +Object.defineProperty(exports, "DescribeEventRuleTargetListResponseBodyMnsParameters", { enumerable: true, get: function () { return DescribeEventRuleTargetListResponseBody_6.DescribeEventRuleTargetListResponseBodyMnsParameters; } }); +var DescribeEventRuleTargetListResponseBody_7 = require("./DescribeEventRuleTargetListResponseBody"); +Object.defineProperty(exports, "DescribeEventRuleTargetListResponseBodyOpenApiParametersOpenApiParameters", { enumerable: true, get: function () { return DescribeEventRuleTargetListResponseBody_7.DescribeEventRuleTargetListResponseBodyOpenApiParametersOpenApiParameters; } }); +var DescribeEventRuleTargetListResponseBody_8 = require("./DescribeEventRuleTargetListResponseBody"); +Object.defineProperty(exports, "DescribeEventRuleTargetListResponseBodyOpenApiParameters", { enumerable: true, get: function () { return DescribeEventRuleTargetListResponseBody_8.DescribeEventRuleTargetListResponseBodyOpenApiParameters; } }); +var DescribeEventRuleTargetListResponseBody_9 = require("./DescribeEventRuleTargetListResponseBody"); +Object.defineProperty(exports, "DescribeEventRuleTargetListResponseBodySlsParametersSlsParameter", { enumerable: true, get: function () { return DescribeEventRuleTargetListResponseBody_9.DescribeEventRuleTargetListResponseBodySlsParametersSlsParameter; } }); +var DescribeEventRuleTargetListResponseBody_10 = require("./DescribeEventRuleTargetListResponseBody"); +Object.defineProperty(exports, "DescribeEventRuleTargetListResponseBodySlsParameters", { enumerable: true, get: function () { return DescribeEventRuleTargetListResponseBody_10.DescribeEventRuleTargetListResponseBodySlsParameters; } }); +var DescribeEventRuleTargetListResponseBody_11 = require("./DescribeEventRuleTargetListResponseBody"); +Object.defineProperty(exports, "DescribeEventRuleTargetListResponseBodyWebhookParametersWebhookParameter", { enumerable: true, get: function () { return DescribeEventRuleTargetListResponseBody_11.DescribeEventRuleTargetListResponseBodyWebhookParametersWebhookParameter; } }); +var DescribeEventRuleTargetListResponseBody_12 = require("./DescribeEventRuleTargetListResponseBody"); +Object.defineProperty(exports, "DescribeEventRuleTargetListResponseBodyWebhookParameters", { enumerable: true, get: function () { return DescribeEventRuleTargetListResponseBody_12.DescribeEventRuleTargetListResponseBodyWebhookParameters; } }); +var DescribeExporterOutputListResponseBody_1 = require("./DescribeExporterOutputListResponseBody"); +Object.defineProperty(exports, "DescribeExporterOutputListResponseBodyDatapointsDatapointConfigJson", { enumerable: true, get: function () { return DescribeExporterOutputListResponseBody_1.DescribeExporterOutputListResponseBodyDatapointsDatapointConfigJson; } }); +var DescribeExporterOutputListResponseBody_2 = require("./DescribeExporterOutputListResponseBody"); +Object.defineProperty(exports, "DescribeExporterOutputListResponseBodyDatapointsDatapoint", { enumerable: true, get: function () { return DescribeExporterOutputListResponseBody_2.DescribeExporterOutputListResponseBodyDatapointsDatapoint; } }); +var DescribeExporterOutputListResponseBody_3 = require("./DescribeExporterOutputListResponseBody"); +Object.defineProperty(exports, "DescribeExporterOutputListResponseBodyDatapoints", { enumerable: true, get: function () { return DescribeExporterOutputListResponseBody_3.DescribeExporterOutputListResponseBodyDatapoints; } }); +var DescribeExporterRuleListResponseBody_1 = require("./DescribeExporterRuleListResponseBody"); +Object.defineProperty(exports, "DescribeExporterRuleListResponseBodyDatapointsDatapointDstName", { enumerable: true, get: function () { return DescribeExporterRuleListResponseBody_1.DescribeExporterRuleListResponseBodyDatapointsDatapointDstName; } }); +var DescribeExporterRuleListResponseBody_2 = require("./DescribeExporterRuleListResponseBody"); +Object.defineProperty(exports, "DescribeExporterRuleListResponseBodyDatapointsDatapoint", { enumerable: true, get: function () { return DescribeExporterRuleListResponseBody_2.DescribeExporterRuleListResponseBodyDatapointsDatapoint; } }); +var DescribeExporterRuleListResponseBody_3 = require("./DescribeExporterRuleListResponseBody"); +Object.defineProperty(exports, "DescribeExporterRuleListResponseBodyDatapoints", { enumerable: true, get: function () { return DescribeExporterRuleListResponseBody_3.DescribeExporterRuleListResponseBodyDatapoints; } }); +var DescribeGroupMonitoringAgentProcessResponseBody_1 = require("./DescribeGroupMonitoringAgentProcessResponseBody"); +Object.defineProperty(exports, "DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfigTargetListTarget", { enumerable: true, get: function () { return DescribeGroupMonitoringAgentProcessResponseBody_1.DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfigTargetListTarget; } }); +var DescribeGroupMonitoringAgentProcessResponseBody_2 = require("./DescribeGroupMonitoringAgentProcessResponseBody"); +Object.defineProperty(exports, "DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfigTargetList", { enumerable: true, get: function () { return DescribeGroupMonitoringAgentProcessResponseBody_2.DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfigTargetList; } }); +var DescribeGroupMonitoringAgentProcessResponseBody_3 = require("./DescribeGroupMonitoringAgentProcessResponseBody"); +Object.defineProperty(exports, "DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfig", { enumerable: true, get: function () { return DescribeGroupMonitoringAgentProcessResponseBody_3.DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfig; } }); +var DescribeGroupMonitoringAgentProcessResponseBody_4 = require("./DescribeGroupMonitoringAgentProcessResponseBody"); +Object.defineProperty(exports, "DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfig", { enumerable: true, get: function () { return DescribeGroupMonitoringAgentProcessResponseBody_4.DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfig; } }); +var DescribeGroupMonitoringAgentProcessResponseBody_5 = require("./DescribeGroupMonitoringAgentProcessResponseBody"); +Object.defineProperty(exports, "DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessMatchExpressMatchExpress", { enumerable: true, get: function () { return DescribeGroupMonitoringAgentProcessResponseBody_5.DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessMatchExpressMatchExpress; } }); +var DescribeGroupMonitoringAgentProcessResponseBody_6 = require("./DescribeGroupMonitoringAgentProcessResponseBody"); +Object.defineProperty(exports, "DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessMatchExpress", { enumerable: true, get: function () { return DescribeGroupMonitoringAgentProcessResponseBody_6.DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessMatchExpress; } }); +var DescribeGroupMonitoringAgentProcessResponseBody_7 = require("./DescribeGroupMonitoringAgentProcessResponseBody"); +Object.defineProperty(exports, "DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcess", { enumerable: true, get: function () { return DescribeGroupMonitoringAgentProcessResponseBody_7.DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcess; } }); +var DescribeGroupMonitoringAgentProcessResponseBody_8 = require("./DescribeGroupMonitoringAgentProcessResponseBody"); +Object.defineProperty(exports, "DescribeGroupMonitoringAgentProcessResponseBodyProcesses", { enumerable: true, get: function () { return DescribeGroupMonitoringAgentProcessResponseBody_8.DescribeGroupMonitoringAgentProcessResponseBodyProcesses; } }); +var DescribeHostAvailabilityListResponseBody_1 = require("./DescribeHostAvailabilityListResponseBody"); +Object.defineProperty(exports, "DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigEscalationListEscalationList", { enumerable: true, get: function () { return DescribeHostAvailabilityListResponseBody_1.DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigEscalationListEscalationList; } }); +var DescribeHostAvailabilityListResponseBody_2 = require("./DescribeHostAvailabilityListResponseBody"); +Object.defineProperty(exports, "DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigEscalationList", { enumerable: true, get: function () { return DescribeHostAvailabilityListResponseBody_2.DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigEscalationList; } }); +var DescribeHostAvailabilityListResponseBody_3 = require("./DescribeHostAvailabilityListResponseBody"); +Object.defineProperty(exports, "DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigTargetListTarget", { enumerable: true, get: function () { return DescribeHostAvailabilityListResponseBody_3.DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigTargetListTarget; } }); +var DescribeHostAvailabilityListResponseBody_4 = require("./DescribeHostAvailabilityListResponseBody"); +Object.defineProperty(exports, "DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigTargetList", { enumerable: true, get: function () { return DescribeHostAvailabilityListResponseBody_4.DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigTargetList; } }); +var DescribeHostAvailabilityListResponseBody_5 = require("./DescribeHostAvailabilityListResponseBody"); +Object.defineProperty(exports, "DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfig", { enumerable: true, get: function () { return DescribeHostAvailabilityListResponseBody_5.DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfig; } }); +var DescribeHostAvailabilityListResponseBody_6 = require("./DescribeHostAvailabilityListResponseBody"); +Object.defineProperty(exports, "DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigInstances", { enumerable: true, get: function () { return DescribeHostAvailabilityListResponseBody_6.DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigInstances; } }); +var DescribeHostAvailabilityListResponseBody_7 = require("./DescribeHostAvailabilityListResponseBody"); +Object.defineProperty(exports, "DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigTaskOption", { enumerable: true, get: function () { return DescribeHostAvailabilityListResponseBody_7.DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigTaskOption; } }); +var DescribeHostAvailabilityListResponseBody_8 = require("./DescribeHostAvailabilityListResponseBody"); +Object.defineProperty(exports, "DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfig", { enumerable: true, get: function () { return DescribeHostAvailabilityListResponseBody_8.DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfig; } }); +var DescribeHostAvailabilityListResponseBody_9 = require("./DescribeHostAvailabilityListResponseBody"); +Object.defineProperty(exports, "DescribeHostAvailabilityListResponseBodyTaskList", { enumerable: true, get: function () { return DescribeHostAvailabilityListResponseBody_9.DescribeHostAvailabilityListResponseBodyTaskList; } }); +var DescribeHybridMonitorDataListResponseBody_1 = require("./DescribeHybridMonitorDataListResponseBody"); +Object.defineProperty(exports, "DescribeHybridMonitorDataListResponseBodyTimeSeriesLabels", { enumerable: true, get: function () { return DescribeHybridMonitorDataListResponseBody_1.DescribeHybridMonitorDataListResponseBodyTimeSeriesLabels; } }); +var DescribeHybridMonitorDataListResponseBody_2 = require("./DescribeHybridMonitorDataListResponseBody"); +Object.defineProperty(exports, "DescribeHybridMonitorDataListResponseBodyTimeSeriesValues", { enumerable: true, get: function () { return DescribeHybridMonitorDataListResponseBody_2.DescribeHybridMonitorDataListResponseBodyTimeSeriesValues; } }); +var DescribeHybridMonitorDataListResponseBody_3 = require("./DescribeHybridMonitorDataListResponseBody"); +Object.defineProperty(exports, "DescribeHybridMonitorDataListResponseBodyTimeSeries", { enumerable: true, get: function () { return DescribeHybridMonitorDataListResponseBody_3.DescribeHybridMonitorDataListResponseBodyTimeSeries; } }); +var DescribeHybridMonitorNamespaceListResponseBody_1 = require("./DescribeHybridMonitorNamespaceListResponseBody"); +Object.defineProperty(exports, "DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricListNamespaceListMetricList", { enumerable: true, get: function () { return DescribeHybridMonitorNamespaceListResponseBody_1.DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricListNamespaceListMetricList; } }); +var DescribeHybridMonitorNamespaceListResponseBody_2 = require("./DescribeHybridMonitorNamespaceListResponseBody"); +Object.defineProperty(exports, "DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricListNamespaceList", { enumerable: true, get: function () { return DescribeHybridMonitorNamespaceListResponseBody_2.DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricListNamespaceList; } }); +var DescribeHybridMonitorNamespaceListResponseBody_3 = require("./DescribeHybridMonitorNamespaceListResponseBody"); +Object.defineProperty(exports, "DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricList", { enumerable: true, get: function () { return DescribeHybridMonitorNamespaceListResponseBody_3.DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricList; } }); +var DescribeHybridMonitorNamespaceListResponseBody_4 = require("./DescribeHybridMonitorNamespaceListResponseBody"); +Object.defineProperty(exports, "DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceDetail", { enumerable: true, get: function () { return DescribeHybridMonitorNamespaceListResponseBody_4.DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceDetail; } }); +var DescribeHybridMonitorNamespaceListResponseBody_5 = require("./DescribeHybridMonitorNamespaceListResponseBody"); +Object.defineProperty(exports, "DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespace", { enumerable: true, get: function () { return DescribeHybridMonitorNamespaceListResponseBody_5.DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespace; } }); +var DescribeHybridMonitorSlsgroupResponseBody_1 = require("./DescribeHybridMonitorSlsgroupResponseBody"); +Object.defineProperty(exports, "DescribeHybridMonitorSLSGroupResponseBodyListSLSGroupConfig", { enumerable: true, get: function () { return DescribeHybridMonitorSlsgroupResponseBody_1.DescribeHybridMonitorSLSGroupResponseBodyListSLSGroupConfig; } }); +var DescribeHybridMonitorSlsgroupResponseBody_2 = require("./DescribeHybridMonitorSlsgroupResponseBody"); +Object.defineProperty(exports, "DescribeHybridMonitorSLSGroupResponseBodyList", { enumerable: true, get: function () { return DescribeHybridMonitorSlsgroupResponseBody_2.DescribeHybridMonitorSLSGroupResponseBodyList; } }); +var DescribeHybridMonitorTaskListResponseBody_1 = require("./DescribeHybridMonitorTaskListResponseBody"); +Object.defineProperty(exports, "DescribeHybridMonitorTaskListResponseBodyTaskListAttachLabels", { enumerable: true, get: function () { return DescribeHybridMonitorTaskListResponseBody_1.DescribeHybridMonitorTaskListResponseBodyTaskListAttachLabels; } }); +var DescribeHybridMonitorTaskListResponseBody_2 = require("./DescribeHybridMonitorTaskListResponseBody"); +Object.defineProperty(exports, "DescribeHybridMonitorTaskListResponseBodyTaskListMatchExpress", { enumerable: true, get: function () { return DescribeHybridMonitorTaskListResponseBody_2.DescribeHybridMonitorTaskListResponseBodyTaskListMatchExpress; } }); +var DescribeHybridMonitorTaskListResponseBody_3 = require("./DescribeHybridMonitorTaskListResponseBody"); +Object.defineProperty(exports, "DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigExpress", { enumerable: true, get: function () { return DescribeHybridMonitorTaskListResponseBody_3.DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigExpress; } }); +var DescribeHybridMonitorTaskListResponseBody_4 = require("./DescribeHybridMonitorTaskListResponseBody"); +Object.defineProperty(exports, "DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigFilterFilters", { enumerable: true, get: function () { return DescribeHybridMonitorTaskListResponseBody_4.DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigFilterFilters; } }); +var DescribeHybridMonitorTaskListResponseBody_5 = require("./DescribeHybridMonitorTaskListResponseBody"); +Object.defineProperty(exports, "DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigFilter", { enumerable: true, get: function () { return DescribeHybridMonitorTaskListResponseBody_5.DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigFilter; } }); +var DescribeHybridMonitorTaskListResponseBody_6 = require("./DescribeHybridMonitorTaskListResponseBody"); +Object.defineProperty(exports, "DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigGroupBy", { enumerable: true, get: function () { return DescribeHybridMonitorTaskListResponseBody_6.DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigGroupBy; } }); +var DescribeHybridMonitorTaskListResponseBody_7 = require("./DescribeHybridMonitorTaskListResponseBody"); +Object.defineProperty(exports, "DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigStatistics", { enumerable: true, get: function () { return DescribeHybridMonitorTaskListResponseBody_7.DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigStatistics; } }); +var DescribeHybridMonitorTaskListResponseBody_8 = require("./DescribeHybridMonitorTaskListResponseBody"); +Object.defineProperty(exports, "DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfig", { enumerable: true, get: function () { return DescribeHybridMonitorTaskListResponseBody_8.DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfig; } }); +var DescribeHybridMonitorTaskListResponseBody_9 = require("./DescribeHybridMonitorTaskListResponseBody"); +Object.defineProperty(exports, "DescribeHybridMonitorTaskListResponseBodyTaskList", { enumerable: true, get: function () { return DescribeHybridMonitorTaskListResponseBody_9.DescribeHybridMonitorTaskListResponseBodyTaskList; } }); +var DescribeLogMonitorAttributeResponseBody_1 = require("./DescribeLogMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeLogMonitorAttributeResponseBodyLogMonitorAggregates", { enumerable: true, get: function () { return DescribeLogMonitorAttributeResponseBody_1.DescribeLogMonitorAttributeResponseBodyLogMonitorAggregates; } }); +var DescribeLogMonitorAttributeResponseBody_2 = require("./DescribeLogMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeLogMonitorAttributeResponseBodyLogMonitorValueFilter", { enumerable: true, get: function () { return DescribeLogMonitorAttributeResponseBody_2.DescribeLogMonitorAttributeResponseBodyLogMonitorValueFilter; } }); +var DescribeLogMonitorAttributeResponseBody_3 = require("./DescribeLogMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeLogMonitorAttributeResponseBodyLogMonitor", { enumerable: true, get: function () { return DescribeLogMonitorAttributeResponseBody_3.DescribeLogMonitorAttributeResponseBodyLogMonitor; } }); +var DescribeLogMonitorListResponseBody_1 = require("./DescribeLogMonitorListResponseBody"); +Object.defineProperty(exports, "DescribeLogMonitorListResponseBodyLogMonitorListValueFilter", { enumerable: true, get: function () { return DescribeLogMonitorListResponseBody_1.DescribeLogMonitorListResponseBodyLogMonitorListValueFilter; } }); +var DescribeLogMonitorListResponseBody_2 = require("./DescribeLogMonitorListResponseBody"); +Object.defineProperty(exports, "DescribeLogMonitorListResponseBodyLogMonitorList", { enumerable: true, get: function () { return DescribeLogMonitorListResponseBody_2.DescribeLogMonitorListResponseBodyLogMonitorList; } }); +var DescribeMetricMetaListResponseBody_1 = require("./DescribeMetricMetaListResponseBody"); +Object.defineProperty(exports, "DescribeMetricMetaListResponseBodyResourcesResource", { enumerable: true, get: function () { return DescribeMetricMetaListResponseBody_1.DescribeMetricMetaListResponseBodyResourcesResource; } }); +var DescribeMetricMetaListResponseBody_2 = require("./DescribeMetricMetaListResponseBody"); +Object.defineProperty(exports, "DescribeMetricMetaListResponseBodyResources", { enumerable: true, get: function () { return DescribeMetricMetaListResponseBody_2.DescribeMetricMetaListResponseBodyResources; } }); +var DescribeMetricRuleBlackListResponseBody_1 = require("./DescribeMetricRuleBlackListResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleBlackListResponseBodyDescribeMetricRuleBlackListMetrics", { enumerable: true, get: function () { return DescribeMetricRuleBlackListResponseBody_1.DescribeMetricRuleBlackListResponseBodyDescribeMetricRuleBlackListMetrics; } }); +var DescribeMetricRuleBlackListResponseBody_2 = require("./DescribeMetricRuleBlackListResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleBlackListResponseBodyDescribeMetricRuleBlackList", { enumerable: true, get: function () { return DescribeMetricRuleBlackListResponseBody_2.DescribeMetricRuleBlackListResponseBodyDescribeMetricRuleBlackList; } }); +var DescribeMetricRuleCountResponseBody_1 = require("./DescribeMetricRuleCountResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleCountResponseBodyMetricRuleCount", { enumerable: true, get: function () { return DescribeMetricRuleCountResponseBody_1.DescribeMetricRuleCountResponseBodyMetricRuleCount; } }); +var DescribeMetricRuleListResponseBody_1 = require("./DescribeMetricRuleListResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionListExpressionList", { enumerable: true, get: function () { return DescribeMetricRuleListResponseBody_1.DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionListExpressionList; } }); +var DescribeMetricRuleListResponseBody_2 = require("./DescribeMetricRuleListResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionList", { enumerable: true, get: function () { return DescribeMetricRuleListResponseBody_2.DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionList; } }); +var DescribeMetricRuleListResponseBody_3 = require("./DescribeMetricRuleListResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpression", { enumerable: true, get: function () { return DescribeMetricRuleListResponseBody_3.DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpression; } }); +var DescribeMetricRuleListResponseBody_4 = require("./DescribeMetricRuleListResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsCritical", { enumerable: true, get: function () { return DescribeMetricRuleListResponseBody_4.DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsCritical; } }); +var DescribeMetricRuleListResponseBody_5 = require("./DescribeMetricRuleListResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsInfo", { enumerable: true, get: function () { return DescribeMetricRuleListResponseBody_5.DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsInfo; } }); +var DescribeMetricRuleListResponseBody_6 = require("./DescribeMetricRuleListResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsWarn", { enumerable: true, get: function () { return DescribeMetricRuleListResponseBody_6.DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsWarn; } }); +var DescribeMetricRuleListResponseBody_7 = require("./DescribeMetricRuleListResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleListResponseBodyAlarmsAlarmEscalations", { enumerable: true, get: function () { return DescribeMetricRuleListResponseBody_7.DescribeMetricRuleListResponseBodyAlarmsAlarmEscalations; } }); +var DescribeMetricRuleListResponseBody_8 = require("./DescribeMetricRuleListResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleListResponseBodyAlarmsAlarmLabelsLabels", { enumerable: true, get: function () { return DescribeMetricRuleListResponseBody_8.DescribeMetricRuleListResponseBodyAlarmsAlarmLabelsLabels; } }); +var DescribeMetricRuleListResponseBody_9 = require("./DescribeMetricRuleListResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleListResponseBodyAlarmsAlarmLabels", { enumerable: true, get: function () { return DescribeMetricRuleListResponseBody_9.DescribeMetricRuleListResponseBodyAlarmsAlarmLabels; } }); +var DescribeMetricRuleListResponseBody_10 = require("./DescribeMetricRuleListResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotationsAnnotations", { enumerable: true, get: function () { return DescribeMetricRuleListResponseBody_10.DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotationsAnnotations; } }); +var DescribeMetricRuleListResponseBody_11 = require("./DescribeMetricRuleListResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotations", { enumerable: true, get: function () { return DescribeMetricRuleListResponseBody_11.DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotations; } }); +var DescribeMetricRuleListResponseBody_12 = require("./DescribeMetricRuleListResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheus", { enumerable: true, get: function () { return DescribeMetricRuleListResponseBody_12.DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheus; } }); +var DescribeMetricRuleListResponseBody_13 = require("./DescribeMetricRuleListResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleListResponseBodyAlarmsAlarm", { enumerable: true, get: function () { return DescribeMetricRuleListResponseBody_13.DescribeMetricRuleListResponseBodyAlarmsAlarm; } }); +var DescribeMetricRuleListResponseBody_14 = require("./DescribeMetricRuleListResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleListResponseBodyAlarms", { enumerable: true, get: function () { return DescribeMetricRuleListResponseBody_14.DescribeMetricRuleListResponseBodyAlarms; } }); +var DescribeMetricRuleTargetsResponseBody_1 = require("./DescribeMetricRuleTargetsResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleTargetsResponseBodyTargetsTarget", { enumerable: true, get: function () { return DescribeMetricRuleTargetsResponseBody_1.DescribeMetricRuleTargetsResponseBodyTargetsTarget; } }); +var DescribeMetricRuleTargetsResponseBody_2 = require("./DescribeMetricRuleTargetsResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleTargetsResponseBodyTargets", { enumerable: true, get: function () { return DescribeMetricRuleTargetsResponseBody_2.DescribeMetricRuleTargetsResponseBodyTargets; } }); +var DescribeMetricRuleTemplateAttributeResponseBody_1 = require("./DescribeMetricRuleTemplateAttributeResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsCritical", { enumerable: true, get: function () { return DescribeMetricRuleTemplateAttributeResponseBody_1.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsCritical; } }); +var DescribeMetricRuleTemplateAttributeResponseBody_2 = require("./DescribeMetricRuleTemplateAttributeResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsInfo", { enumerable: true, get: function () { return DescribeMetricRuleTemplateAttributeResponseBody_2.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsInfo; } }); +var DescribeMetricRuleTemplateAttributeResponseBody_3 = require("./DescribeMetricRuleTemplateAttributeResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsWarn", { enumerable: true, get: function () { return DescribeMetricRuleTemplateAttributeResponseBody_3.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsWarn; } }); +var DescribeMetricRuleTemplateAttributeResponseBody_4 = require("./DescribeMetricRuleTemplateAttributeResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalations", { enumerable: true, get: function () { return DescribeMetricRuleTemplateAttributeResponseBody_4.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalations; } }); +var DescribeMetricRuleTemplateAttributeResponseBody_5 = require("./DescribeMetricRuleTemplateAttributeResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabelsLabels", { enumerable: true, get: function () { return DescribeMetricRuleTemplateAttributeResponseBody_5.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabelsLabels; } }); +var DescribeMetricRuleTemplateAttributeResponseBody_6 = require("./DescribeMetricRuleTemplateAttributeResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabels", { enumerable: true, get: function () { return DescribeMetricRuleTemplateAttributeResponseBody_6.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabels; } }); +var DescribeMetricRuleTemplateAttributeResponseBody_7 = require("./DescribeMetricRuleTemplateAttributeResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplate", { enumerable: true, get: function () { return DescribeMetricRuleTemplateAttributeResponseBody_7.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplate; } }); +var DescribeMetricRuleTemplateAttributeResponseBody_8 = require("./DescribeMetricRuleTemplateAttributeResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplates", { enumerable: true, get: function () { return DescribeMetricRuleTemplateAttributeResponseBody_8.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplates; } }); +var DescribeMetricRuleTemplateAttributeResponseBody_9 = require("./DescribeMetricRuleTemplateAttributeResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleTemplateAttributeResponseBodyResource", { enumerable: true, get: function () { return DescribeMetricRuleTemplateAttributeResponseBody_9.DescribeMetricRuleTemplateAttributeResponseBodyResource; } }); +var DescribeMetricRuleTemplateListResponseBody_1 = require("./DescribeMetricRuleTemplateListResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleTemplateListResponseBodyTemplatesTemplateApplyHistoriesApplyHistory", { enumerable: true, get: function () { return DescribeMetricRuleTemplateListResponseBody_1.DescribeMetricRuleTemplateListResponseBodyTemplatesTemplateApplyHistoriesApplyHistory; } }); +var DescribeMetricRuleTemplateListResponseBody_2 = require("./DescribeMetricRuleTemplateListResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleTemplateListResponseBodyTemplatesTemplateApplyHistories", { enumerable: true, get: function () { return DescribeMetricRuleTemplateListResponseBody_2.DescribeMetricRuleTemplateListResponseBodyTemplatesTemplateApplyHistories; } }); +var DescribeMetricRuleTemplateListResponseBody_3 = require("./DescribeMetricRuleTemplateListResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleTemplateListResponseBodyTemplatesTemplate", { enumerable: true, get: function () { return DescribeMetricRuleTemplateListResponseBody_3.DescribeMetricRuleTemplateListResponseBodyTemplatesTemplate; } }); +var DescribeMetricRuleTemplateListResponseBody_4 = require("./DescribeMetricRuleTemplateListResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleTemplateListResponseBodyTemplates", { enumerable: true, get: function () { return DescribeMetricRuleTemplateListResponseBody_4.DescribeMetricRuleTemplateListResponseBodyTemplates; } }); +var DescribeMonitorGroupCategoriesResponseBody_1 = require("./DescribeMonitorGroupCategoriesResponseBody"); +Object.defineProperty(exports, "DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategoriesMonitorGroupCategoryCategoryItem", { enumerable: true, get: function () { return DescribeMonitorGroupCategoriesResponseBody_1.DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategoriesMonitorGroupCategoryCategoryItem; } }); +var DescribeMonitorGroupCategoriesResponseBody_2 = require("./DescribeMonitorGroupCategoriesResponseBody"); +Object.defineProperty(exports, "DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategoriesMonitorGroupCategory", { enumerable: true, get: function () { return DescribeMonitorGroupCategoriesResponseBody_2.DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategoriesMonitorGroupCategory; } }); +var DescribeMonitorGroupCategoriesResponseBody_3 = require("./DescribeMonitorGroupCategoriesResponseBody"); +Object.defineProperty(exports, "DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategories", { enumerable: true, get: function () { return DescribeMonitorGroupCategoriesResponseBody_3.DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategories; } }); +var DescribeMonitorGroupDynamicRulesResponseBody_1 = require("./DescribeMonitorGroupDynamicRulesResponseBody"); +Object.defineProperty(exports, "DescribeMonitorGroupDynamicRulesResponseBodyResourceResourceFiltersFilter", { enumerable: true, get: function () { return DescribeMonitorGroupDynamicRulesResponseBody_1.DescribeMonitorGroupDynamicRulesResponseBodyResourceResourceFiltersFilter; } }); +var DescribeMonitorGroupDynamicRulesResponseBody_2 = require("./DescribeMonitorGroupDynamicRulesResponseBody"); +Object.defineProperty(exports, "DescribeMonitorGroupDynamicRulesResponseBodyResourceResourceFilters", { enumerable: true, get: function () { return DescribeMonitorGroupDynamicRulesResponseBody_2.DescribeMonitorGroupDynamicRulesResponseBodyResourceResourceFilters; } }); +var DescribeMonitorGroupDynamicRulesResponseBody_3 = require("./DescribeMonitorGroupDynamicRulesResponseBody"); +Object.defineProperty(exports, "DescribeMonitorGroupDynamicRulesResponseBodyResourceResource", { enumerable: true, get: function () { return DescribeMonitorGroupDynamicRulesResponseBody_3.DescribeMonitorGroupDynamicRulesResponseBodyResourceResource; } }); +var DescribeMonitorGroupDynamicRulesResponseBody_4 = require("./DescribeMonitorGroupDynamicRulesResponseBody"); +Object.defineProperty(exports, "DescribeMonitorGroupDynamicRulesResponseBodyResource", { enumerable: true, get: function () { return DescribeMonitorGroupDynamicRulesResponseBody_4.DescribeMonitorGroupDynamicRulesResponseBodyResource; } }); +var DescribeMonitorGroupInstanceAttributeResponseBody_1 = require("./DescribeMonitorGroupInstanceAttributeResponseBody"); +Object.defineProperty(exports, "DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceRegion", { enumerable: true, get: function () { return DescribeMonitorGroupInstanceAttributeResponseBody_1.DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceRegion; } }); +var DescribeMonitorGroupInstanceAttributeResponseBody_2 = require("./DescribeMonitorGroupInstanceAttributeResponseBody"); +Object.defineProperty(exports, "DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceTagsTag", { enumerable: true, get: function () { return DescribeMonitorGroupInstanceAttributeResponseBody_2.DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceTagsTag; } }); +var DescribeMonitorGroupInstanceAttributeResponseBody_3 = require("./DescribeMonitorGroupInstanceAttributeResponseBody"); +Object.defineProperty(exports, "DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceTags", { enumerable: true, get: function () { return DescribeMonitorGroupInstanceAttributeResponseBody_3.DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceTags; } }); +var DescribeMonitorGroupInstanceAttributeResponseBody_4 = require("./DescribeMonitorGroupInstanceAttributeResponseBody"); +Object.defineProperty(exports, "DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceVpc", { enumerable: true, get: function () { return DescribeMonitorGroupInstanceAttributeResponseBody_4.DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceVpc; } }); +var DescribeMonitorGroupInstanceAttributeResponseBody_5 = require("./DescribeMonitorGroupInstanceAttributeResponseBody"); +Object.defineProperty(exports, "DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResource", { enumerable: true, get: function () { return DescribeMonitorGroupInstanceAttributeResponseBody_5.DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResource; } }); +var DescribeMonitorGroupInstanceAttributeResponseBody_6 = require("./DescribeMonitorGroupInstanceAttributeResponseBody"); +Object.defineProperty(exports, "DescribeMonitorGroupInstanceAttributeResponseBodyResources", { enumerable: true, get: function () { return DescribeMonitorGroupInstanceAttributeResponseBody_6.DescribeMonitorGroupInstanceAttributeResponseBodyResources; } }); +var DescribeMonitorGroupInstancesResponseBody_1 = require("./DescribeMonitorGroupInstancesResponseBody"); +Object.defineProperty(exports, "DescribeMonitorGroupInstancesResponseBodyResourcesResource", { enumerable: true, get: function () { return DescribeMonitorGroupInstancesResponseBody_1.DescribeMonitorGroupInstancesResponseBodyResourcesResource; } }); +var DescribeMonitorGroupInstancesResponseBody_2 = require("./DescribeMonitorGroupInstancesResponseBody"); +Object.defineProperty(exports, "DescribeMonitorGroupInstancesResponseBodyResources", { enumerable: true, get: function () { return DescribeMonitorGroupInstancesResponseBody_2.DescribeMonitorGroupInstancesResponseBodyResources; } }); +var DescribeMonitorGroupNotifyPolicyListResponseBody_1 = require("./DescribeMonitorGroupNotifyPolicyListResponseBody"); +Object.defineProperty(exports, "DescribeMonitorGroupNotifyPolicyListResponseBodyNotifyPolicyListNotifyPolicy", { enumerable: true, get: function () { return DescribeMonitorGroupNotifyPolicyListResponseBody_1.DescribeMonitorGroupNotifyPolicyListResponseBodyNotifyPolicyListNotifyPolicy; } }); +var DescribeMonitorGroupNotifyPolicyListResponseBody_2 = require("./DescribeMonitorGroupNotifyPolicyListResponseBody"); +Object.defineProperty(exports, "DescribeMonitorGroupNotifyPolicyListResponseBodyNotifyPolicyList", { enumerable: true, get: function () { return DescribeMonitorGroupNotifyPolicyListResponseBody_2.DescribeMonitorGroupNotifyPolicyListResponseBodyNotifyPolicyList; } }); +var DescribeMonitorGroupsRequest_1 = require("./DescribeMonitorGroupsRequest"); +Object.defineProperty(exports, "DescribeMonitorGroupsRequestTag", { enumerable: true, get: function () { return DescribeMonitorGroupsRequest_1.DescribeMonitorGroupsRequestTag; } }); +var DescribeMonitorGroupsResponseBody_1 = require("./DescribeMonitorGroupsResponseBody"); +Object.defineProperty(exports, "DescribeMonitorGroupsResponseBodyResourcesResourceContactGroupsContactGroup", { enumerable: true, get: function () { return DescribeMonitorGroupsResponseBody_1.DescribeMonitorGroupsResponseBodyResourcesResourceContactGroupsContactGroup; } }); +var DescribeMonitorGroupsResponseBody_2 = require("./DescribeMonitorGroupsResponseBody"); +Object.defineProperty(exports, "DescribeMonitorGroupsResponseBodyResourcesResourceContactGroups", { enumerable: true, get: function () { return DescribeMonitorGroupsResponseBody_2.DescribeMonitorGroupsResponseBodyResourcesResourceContactGroups; } }); +var DescribeMonitorGroupsResponseBody_3 = require("./DescribeMonitorGroupsResponseBody"); +Object.defineProperty(exports, "DescribeMonitorGroupsResponseBodyResourcesResourceTagsTag", { enumerable: true, get: function () { return DescribeMonitorGroupsResponseBody_3.DescribeMonitorGroupsResponseBodyResourcesResourceTagsTag; } }); +var DescribeMonitorGroupsResponseBody_4 = require("./DescribeMonitorGroupsResponseBody"); +Object.defineProperty(exports, "DescribeMonitorGroupsResponseBodyResourcesResourceTags", { enumerable: true, get: function () { return DescribeMonitorGroupsResponseBody_4.DescribeMonitorGroupsResponseBodyResourcesResourceTags; } }); +var DescribeMonitorGroupsResponseBody_5 = require("./DescribeMonitorGroupsResponseBody"); +Object.defineProperty(exports, "DescribeMonitorGroupsResponseBodyResourcesResourceTemplateIds", { enumerable: true, get: function () { return DescribeMonitorGroupsResponseBody_5.DescribeMonitorGroupsResponseBodyResourcesResourceTemplateIds; } }); +var DescribeMonitorGroupsResponseBody_6 = require("./DescribeMonitorGroupsResponseBody"); +Object.defineProperty(exports, "DescribeMonitorGroupsResponseBodyResourcesResourceTemplateInfosTemplateInfo", { enumerable: true, get: function () { return DescribeMonitorGroupsResponseBody_6.DescribeMonitorGroupsResponseBodyResourcesResourceTemplateInfosTemplateInfo; } }); +var DescribeMonitorGroupsResponseBody_7 = require("./DescribeMonitorGroupsResponseBody"); +Object.defineProperty(exports, "DescribeMonitorGroupsResponseBodyResourcesResourceTemplateInfos", { enumerable: true, get: function () { return DescribeMonitorGroupsResponseBody_7.DescribeMonitorGroupsResponseBodyResourcesResourceTemplateInfos; } }); +var DescribeMonitorGroupsResponseBody_8 = require("./DescribeMonitorGroupsResponseBody"); +Object.defineProperty(exports, "DescribeMonitorGroupsResponseBodyResourcesResource", { enumerable: true, get: function () { return DescribeMonitorGroupsResponseBody_8.DescribeMonitorGroupsResponseBodyResourcesResource; } }); +var DescribeMonitorGroupsResponseBody_9 = require("./DescribeMonitorGroupsResponseBody"); +Object.defineProperty(exports, "DescribeMonitorGroupsResponseBodyResources", { enumerable: true, get: function () { return DescribeMonitorGroupsResponseBody_9.DescribeMonitorGroupsResponseBodyResources; } }); +var DescribeMonitorResourceQuotaAttributeResponseBody_1 = require("./DescribeMonitorResourceQuotaAttributeResponseBody"); +Object.defineProperty(exports, "DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaApi", { enumerable: true, get: function () { return DescribeMonitorResourceQuotaAttributeResponseBody_1.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaApi; } }); +var DescribeMonitorResourceQuotaAttributeResponseBody_2 = require("./DescribeMonitorResourceQuotaAttributeResponseBody"); +Object.defineProperty(exports, "DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaCustomMonitor", { enumerable: true, get: function () { return DescribeMonitorResourceQuotaAttributeResponseBody_2.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaCustomMonitor; } }); +var DescribeMonitorResourceQuotaAttributeResponseBody_3 = require("./DescribeMonitorResourceQuotaAttributeResponseBody"); +Object.defineProperty(exports, "DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaEnterpriseQuota", { enumerable: true, get: function () { return DescribeMonitorResourceQuotaAttributeResponseBody_3.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaEnterpriseQuota; } }); +var DescribeMonitorResourceQuotaAttributeResponseBody_4 = require("./DescribeMonitorResourceQuotaAttributeResponseBody"); +Object.defineProperty(exports, "DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaEventMonitor", { enumerable: true, get: function () { return DescribeMonitorResourceQuotaAttributeResponseBody_4.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaEventMonitor; } }); +var DescribeMonitorResourceQuotaAttributeResponseBody_5 = require("./DescribeMonitorResourceQuotaAttributeResponseBody"); +Object.defineProperty(exports, "DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaLogMonitor", { enumerable: true, get: function () { return DescribeMonitorResourceQuotaAttributeResponseBody_5.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaLogMonitor; } }); +var DescribeMonitorResourceQuotaAttributeResponseBody_6 = require("./DescribeMonitorResourceQuotaAttributeResponseBody"); +Object.defineProperty(exports, "DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaPhone", { enumerable: true, get: function () { return DescribeMonitorResourceQuotaAttributeResponseBody_6.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaPhone; } }); +var DescribeMonitorResourceQuotaAttributeResponseBody_7 = require("./DescribeMonitorResourceQuotaAttributeResponseBody"); +Object.defineProperty(exports, "DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSMS", { enumerable: true, get: function () { return DescribeMonitorResourceQuotaAttributeResponseBody_7.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSMS; } }); +var DescribeMonitorResourceQuotaAttributeResponseBody_8 = require("./DescribeMonitorResourceQuotaAttributeResponseBody"); +Object.defineProperty(exports, "DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorBrowser", { enumerable: true, get: function () { return DescribeMonitorResourceQuotaAttributeResponseBody_8.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorBrowser; } }); +var DescribeMonitorResourceQuotaAttributeResponseBody_9 = require("./DescribeMonitorResourceQuotaAttributeResponseBody"); +Object.defineProperty(exports, "DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorEcsProbe", { enumerable: true, get: function () { return DescribeMonitorResourceQuotaAttributeResponseBody_9.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorEcsProbe; } }); +var DescribeMonitorResourceQuotaAttributeResponseBody_10 = require("./DescribeMonitorResourceQuotaAttributeResponseBody"); +Object.defineProperty(exports, "DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorMobile", { enumerable: true, get: function () { return DescribeMonitorResourceQuotaAttributeResponseBody_10.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorMobile; } }); +var DescribeMonitorResourceQuotaAttributeResponseBody_11 = require("./DescribeMonitorResourceQuotaAttributeResponseBody"); +Object.defineProperty(exports, "DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorOperatorProbe", { enumerable: true, get: function () { return DescribeMonitorResourceQuotaAttributeResponseBody_11.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorOperatorProbe; } }); +var DescribeMonitorResourceQuotaAttributeResponseBody_12 = require("./DescribeMonitorResourceQuotaAttributeResponseBody"); +Object.defineProperty(exports, "DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorTask", { enumerable: true, get: function () { return DescribeMonitorResourceQuotaAttributeResponseBody_12.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorTask; } }); +var DescribeMonitorResourceQuotaAttributeResponseBody_13 = require("./DescribeMonitorResourceQuotaAttributeResponseBody"); +Object.defineProperty(exports, "DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuota", { enumerable: true, get: function () { return DescribeMonitorResourceQuotaAttributeResponseBody_13.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuota; } }); +var DescribeMonitoringAgentHostsResponseBody_1 = require("./DescribeMonitoringAgentHostsResponseBody"); +Object.defineProperty(exports, "DescribeMonitoringAgentHostsResponseBodyHostsHost", { enumerable: true, get: function () { return DescribeMonitoringAgentHostsResponseBody_1.DescribeMonitoringAgentHostsResponseBodyHostsHost; } }); +var DescribeMonitoringAgentHostsResponseBody_2 = require("./DescribeMonitoringAgentHostsResponseBody"); +Object.defineProperty(exports, "DescribeMonitoringAgentHostsResponseBodyHosts", { enumerable: true, get: function () { return DescribeMonitoringAgentHostsResponseBody_2.DescribeMonitoringAgentHostsResponseBodyHosts; } }); +var DescribeMonitoringAgentProcessesResponseBody_1 = require("./DescribeMonitoringAgentProcessesResponseBody"); +Object.defineProperty(exports, "DescribeMonitoringAgentProcessesResponseBodyNodeProcessesNodeProcess", { enumerable: true, get: function () { return DescribeMonitoringAgentProcessesResponseBody_1.DescribeMonitoringAgentProcessesResponseBodyNodeProcessesNodeProcess; } }); +var DescribeMonitoringAgentProcessesResponseBody_2 = require("./DescribeMonitoringAgentProcessesResponseBody"); +Object.defineProperty(exports, "DescribeMonitoringAgentProcessesResponseBodyNodeProcesses", { enumerable: true, get: function () { return DescribeMonitoringAgentProcessesResponseBody_2.DescribeMonitoringAgentProcessesResponseBodyNodeProcesses; } }); +var DescribeMonitoringAgentStatusesResponseBody_1 = require("./DescribeMonitoringAgentStatusesResponseBody"); +Object.defineProperty(exports, "DescribeMonitoringAgentStatusesResponseBodyNodeStatusListNodeStatus", { enumerable: true, get: function () { return DescribeMonitoringAgentStatusesResponseBody_1.DescribeMonitoringAgentStatusesResponseBodyNodeStatusListNodeStatus; } }); +var DescribeMonitoringAgentStatusesResponseBody_2 = require("./DescribeMonitoringAgentStatusesResponseBody"); +Object.defineProperty(exports, "DescribeMonitoringAgentStatusesResponseBodyNodeStatusList", { enumerable: true, get: function () { return DescribeMonitoringAgentStatusesResponseBody_2.DescribeMonitoringAgentStatusesResponseBodyNodeStatusList; } }); +var DescribeProductResourceTagKeyListResponseBody_1 = require("./DescribeProductResourceTagKeyListResponseBody"); +Object.defineProperty(exports, "DescribeProductResourceTagKeyListResponseBodyTagKeys", { enumerable: true, get: function () { return DescribeProductResourceTagKeyListResponseBody_1.DescribeProductResourceTagKeyListResponseBodyTagKeys; } }); +var DescribeProductsOfActiveMetricRuleResponseBody_1 = require("./DescribeProductsOfActiveMetricRuleResponseBody"); +Object.defineProperty(exports, "DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig", { enumerable: true, get: function () { return DescribeProductsOfActiveMetricRuleResponseBody_1.DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig; } }); +var DescribeProductsOfActiveMetricRuleResponseBody_2 = require("./DescribeProductsOfActiveMetricRuleResponseBody"); +Object.defineProperty(exports, "DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigList", { enumerable: true, get: function () { return DescribeProductsOfActiveMetricRuleResponseBody_2.DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigList; } }); +var DescribeProductsOfActiveMetricRuleResponseBody_3 = require("./DescribeProductsOfActiveMetricRuleResponseBody"); +Object.defineProperty(exports, "DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRule", { enumerable: true, get: function () { return DescribeProductsOfActiveMetricRuleResponseBody_3.DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRule; } }); +var DescribeProductsOfActiveMetricRuleResponseBody_4 = require("./DescribeProductsOfActiveMetricRuleResponseBody"); +Object.defineProperty(exports, "DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleList", { enumerable: true, get: function () { return DescribeProductsOfActiveMetricRuleResponseBody_4.DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleList; } }); +var DescribeProjectMetaResponseBody_1 = require("./DescribeProjectMetaResponseBody"); +Object.defineProperty(exports, "DescribeProjectMetaResponseBodyResourcesResource", { enumerable: true, get: function () { return DescribeProjectMetaResponseBody_1.DescribeProjectMetaResponseBodyResourcesResource; } }); +var DescribeProjectMetaResponseBody_2 = require("./DescribeProjectMetaResponseBody"); +Object.defineProperty(exports, "DescribeProjectMetaResponseBodyResources", { enumerable: true, get: function () { return DescribeProjectMetaResponseBody_2.DescribeProjectMetaResponseBodyResources; } }); +var DescribeSiteMonitorAttributeResponseBody_1 = require("./DescribeSiteMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule", { enumerable: true, get: function () { return DescribeSiteMonitorAttributeResponseBody_1.DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule; } }); +var DescribeSiteMonitorAttributeResponseBody_2 = require("./DescribeSiteMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorAttributeResponseBodyMetricRules", { enumerable: true, get: function () { return DescribeSiteMonitorAttributeResponseBody_2.DescribeSiteMonitorAttributeResponseBodyMetricRules; } }); +var DescribeSiteMonitorAttributeResponseBody_3 = require("./DescribeSiteMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomScheduleDays", { enumerable: true, get: function () { return DescribeSiteMonitorAttributeResponseBody_3.DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomScheduleDays; } }); +var DescribeSiteMonitorAttributeResponseBody_4 = require("./DescribeSiteMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomSchedule", { enumerable: true, get: function () { return DescribeSiteMonitorAttributeResponseBody_4.DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomSchedule; } }); +var DescribeSiteMonitorAttributeResponseBody_5 = require("./DescribeSiteMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorAttributeResponseBodySiteMonitorsIspCitiesIspCity", { enumerable: true, get: function () { return DescribeSiteMonitorAttributeResponseBody_5.DescribeSiteMonitorAttributeResponseBodySiteMonitorsIspCitiesIspCity; } }); +var DescribeSiteMonitorAttributeResponseBody_6 = require("./DescribeSiteMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorAttributeResponseBodySiteMonitorsIspCities", { enumerable: true, get: function () { return DescribeSiteMonitorAttributeResponseBody_6.DescribeSiteMonitorAttributeResponseBodySiteMonitorsIspCities; } }); +var DescribeSiteMonitorAttributeResponseBody_7 = require("./DescribeSiteMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAssertionsAssertions", { enumerable: true, get: function () { return DescribeSiteMonitorAttributeResponseBody_7.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAssertionsAssertions; } }); +var DescribeSiteMonitorAttributeResponseBody_8 = require("./DescribeSiteMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAssertions", { enumerable: true, get: function () { return DescribeSiteMonitorAttributeResponseBody_8.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAssertions; } }); +var DescribeSiteMonitorAttributeResponseBody_9 = require("./DescribeSiteMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAuthInfoScopes", { enumerable: true, get: function () { return DescribeSiteMonitorAttributeResponseBody_9.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAuthInfoScopes; } }); +var DescribeSiteMonitorAttributeResponseBody_10 = require("./DescribeSiteMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAuthInfo", { enumerable: true, get: function () { return DescribeSiteMonitorAttributeResponseBody_10.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAuthInfo; } }); +var DescribeSiteMonitorAttributeResponseBody_11 = require("./DescribeSiteMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBlockedUrlList", { enumerable: true, get: function () { return DescribeSiteMonitorAttributeResponseBody_11.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBlockedUrlList; } }); +var DescribeSiteMonitorAttributeResponseBody_12 = require("./DescribeSiteMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserHeaders", { enumerable: true, get: function () { return DescribeSiteMonitorAttributeResponseBody_12.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserHeaders; } }); +var DescribeSiteMonitorAttributeResponseBody_13 = require("./DescribeSiteMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserHosts", { enumerable: true, get: function () { return DescribeSiteMonitorAttributeResponseBody_13.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserHosts; } }); +var DescribeSiteMonitorAttributeResponseBody_14 = require("./DescribeSiteMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserInfoBrowserInfo", { enumerable: true, get: function () { return DescribeSiteMonitorAttributeResponseBody_14.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserInfoBrowserInfo; } }); +var DescribeSiteMonitorAttributeResponseBody_15 = require("./DescribeSiteMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserInfo", { enumerable: true, get: function () { return DescribeSiteMonitorAttributeResponseBody_15.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserInfo; } }); +var DescribeSiteMonitorAttributeResponseBody_16 = require("./DescribeSiteMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonConfigVariablesConfigVariables", { enumerable: true, get: function () { return DescribeSiteMonitorAttributeResponseBody_16.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonConfigVariablesConfigVariables; } }); +var DescribeSiteMonitorAttributeResponseBody_17 = require("./DescribeSiteMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonConfigVariables", { enumerable: true, get: function () { return DescribeSiteMonitorAttributeResponseBody_17.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonConfigVariables; } }); +var DescribeSiteMonitorAttributeResponseBody_18 = require("./DescribeSiteMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonExpectExistString", { enumerable: true, get: function () { return DescribeSiteMonitorAttributeResponseBody_18.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonExpectExistString; } }); +var DescribeSiteMonitorAttributeResponseBody_19 = require("./DescribeSiteMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonExpectNonExistString", { enumerable: true, get: function () { return DescribeSiteMonitorAttributeResponseBody_19.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonExpectNonExistString; } }); +var DescribeSiteMonitorAttributeResponseBody_20 = require("./DescribeSiteMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonQuicTarget", { enumerable: true, get: function () { return DescribeSiteMonitorAttributeResponseBody_20.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonQuicTarget; } }); +var DescribeSiteMonitorAttributeResponseBody_21 = require("./DescribeSiteMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariablesExtractedVariablesParser", { enumerable: true, get: function () { return DescribeSiteMonitorAttributeResponseBody_21.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariablesExtractedVariablesParser; } }); +var DescribeSiteMonitorAttributeResponseBody_22 = require("./DescribeSiteMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariablesExtractedVariables", { enumerable: true, get: function () { return DescribeSiteMonitorAttributeResponseBody_22.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariablesExtractedVariables; } }); +var DescribeSiteMonitorAttributeResponseBody_23 = require("./DescribeSiteMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariables", { enumerable: true, get: function () { return DescribeSiteMonitorAttributeResponseBody_23.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariables; } }); +var DescribeSiteMonitorAttributeResponseBody_24 = require("./DescribeSiteMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsSteps", { enumerable: true, get: function () { return DescribeSiteMonitorAttributeResponseBody_24.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsSteps; } }); +var DescribeSiteMonitorAttributeResponseBody_25 = require("./DescribeSiteMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonSteps", { enumerable: true, get: function () { return DescribeSiteMonitorAttributeResponseBody_25.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonSteps; } }); +var DescribeSiteMonitorAttributeResponseBody_26 = require("./DescribeSiteMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonTrafficHijackElementBlacklist", { enumerable: true, get: function () { return DescribeSiteMonitorAttributeResponseBody_26.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonTrafficHijackElementBlacklist; } }); +var DescribeSiteMonitorAttributeResponseBody_27 = require("./DescribeSiteMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonTrafficHijackElementWhitelist", { enumerable: true, get: function () { return DescribeSiteMonitorAttributeResponseBody_27.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonTrafficHijackElementWhitelist; } }); +var DescribeSiteMonitorAttributeResponseBody_28 = require("./DescribeSiteMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJson", { enumerable: true, get: function () { return DescribeSiteMonitorAttributeResponseBody_28.DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJson; } }); +var DescribeSiteMonitorAttributeResponseBody_29 = require("./DescribeSiteMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorAttributeResponseBodySiteMonitorsVpcConfig", { enumerable: true, get: function () { return DescribeSiteMonitorAttributeResponseBody_29.DescribeSiteMonitorAttributeResponseBodySiteMonitorsVpcConfig; } }); +var DescribeSiteMonitorAttributeResponseBody_30 = require("./DescribeSiteMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorAttributeResponseBodySiteMonitors", { enumerable: true, get: function () { return DescribeSiteMonitorAttributeResponseBody_30.DescribeSiteMonitorAttributeResponseBodySiteMonitors; } }); +var DescribeSiteMonitorIspcityListResponseBody_1 = require("./DescribeSiteMonitorIspcityListResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorISPCityListResponseBodyIspCityListIspCityIPPool", { enumerable: true, get: function () { return DescribeSiteMonitorIspcityListResponseBody_1.DescribeSiteMonitorISPCityListResponseBodyIspCityListIspCityIPPool; } }); +var DescribeSiteMonitorIspcityListResponseBody_2 = require("./DescribeSiteMonitorIspcityListResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorISPCityListResponseBodyIspCityListIspCity", { enumerable: true, get: function () { return DescribeSiteMonitorIspcityListResponseBody_2.DescribeSiteMonitorISPCityListResponseBodyIspCityListIspCity; } }); +var DescribeSiteMonitorIspcityListResponseBody_3 = require("./DescribeSiteMonitorIspcityListResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorISPCityListResponseBodyIspCityList", { enumerable: true, get: function () { return DescribeSiteMonitorIspcityListResponseBody_3.DescribeSiteMonitorISPCityListResponseBodyIspCityList; } }); +var DescribeSiteMonitorListResponseBody_1 = require("./DescribeSiteMonitorListResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJsonAssertionsAssertions", { enumerable: true, get: function () { return DescribeSiteMonitorListResponseBody_1.DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJsonAssertionsAssertions; } }); +var DescribeSiteMonitorListResponseBody_2 = require("./DescribeSiteMonitorListResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJsonAssertions", { enumerable: true, get: function () { return DescribeSiteMonitorListResponseBody_2.DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJsonAssertions; } }); +var DescribeSiteMonitorListResponseBody_3 = require("./DescribeSiteMonitorListResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJson", { enumerable: true, get: function () { return DescribeSiteMonitorListResponseBody_3.DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJson; } }); +var DescribeSiteMonitorListResponseBody_4 = require("./DescribeSiteMonitorListResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitor", { enumerable: true, get: function () { return DescribeSiteMonitorListResponseBody_4.DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitor; } }); +var DescribeSiteMonitorListResponseBody_5 = require("./DescribeSiteMonitorListResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorListResponseBodySiteMonitors", { enumerable: true, get: function () { return DescribeSiteMonitorListResponseBody_5.DescribeSiteMonitorListResponseBodySiteMonitors; } }); +var DescribeSiteMonitorQuotaResponseBody_1 = require("./DescribeSiteMonitorQuotaResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorQuotaResponseBodyData", { enumerable: true, get: function () { return DescribeSiteMonitorQuotaResponseBody_1.DescribeSiteMonitorQuotaResponseBodyData; } }); +var DescribeSyntheticProbeListResponseBody_1 = require("./DescribeSyntheticProbeListResponseBody"); +Object.defineProperty(exports, "DescribeSyntheticProbeListResponseBodyIspCityList", { enumerable: true, get: function () { return DescribeSyntheticProbeListResponseBody_1.DescribeSyntheticProbeListResponseBodyIspCityList; } }); +var DescribeSystemEventAttributeResponseBody_1 = require("./DescribeSystemEventAttributeResponseBody"); +Object.defineProperty(exports, "DescribeSystemEventAttributeResponseBodySystemEventsSystemEvent", { enumerable: true, get: function () { return DescribeSystemEventAttributeResponseBody_1.DescribeSystemEventAttributeResponseBodySystemEventsSystemEvent; } }); +var DescribeSystemEventAttributeResponseBody_2 = require("./DescribeSystemEventAttributeResponseBody"); +Object.defineProperty(exports, "DescribeSystemEventAttributeResponseBodySystemEvents", { enumerable: true, get: function () { return DescribeSystemEventAttributeResponseBody_2.DescribeSystemEventAttributeResponseBodySystemEvents; } }); +var DescribeSystemEventCountResponseBody_1 = require("./DescribeSystemEventCountResponseBody"); +Object.defineProperty(exports, "DescribeSystemEventCountResponseBodySystemEventCountsSystemEventCount", { enumerable: true, get: function () { return DescribeSystemEventCountResponseBody_1.DescribeSystemEventCountResponseBodySystemEventCountsSystemEventCount; } }); +var DescribeSystemEventCountResponseBody_2 = require("./DescribeSystemEventCountResponseBody"); +Object.defineProperty(exports, "DescribeSystemEventCountResponseBodySystemEventCounts", { enumerable: true, get: function () { return DescribeSystemEventCountResponseBody_2.DescribeSystemEventCountResponseBodySystemEventCounts; } }); +var DescribeSystemEventHistogramResponseBody_1 = require("./DescribeSystemEventHistogramResponseBody"); +Object.defineProperty(exports, "DescribeSystemEventHistogramResponseBodySystemEventHistogramsSystemEventHistogram", { enumerable: true, get: function () { return DescribeSystemEventHistogramResponseBody_1.DescribeSystemEventHistogramResponseBodySystemEventHistogramsSystemEventHistogram; } }); +var DescribeSystemEventHistogramResponseBody_2 = require("./DescribeSystemEventHistogramResponseBody"); +Object.defineProperty(exports, "DescribeSystemEventHistogramResponseBodySystemEventHistograms", { enumerable: true, get: function () { return DescribeSystemEventHistogramResponseBody_2.DescribeSystemEventHistogramResponseBodySystemEventHistograms; } }); +var DescribeSystemEventMetaListResponseBody_1 = require("./DescribeSystemEventMetaListResponseBody"); +Object.defineProperty(exports, "DescribeSystemEventMetaListResponseBodyDataResource", { enumerable: true, get: function () { return DescribeSystemEventMetaListResponseBody_1.DescribeSystemEventMetaListResponseBodyDataResource; } }); +var DescribeSystemEventMetaListResponseBody_2 = require("./DescribeSystemEventMetaListResponseBody"); +Object.defineProperty(exports, "DescribeSystemEventMetaListResponseBodyData", { enumerable: true, get: function () { return DescribeSystemEventMetaListResponseBody_2.DescribeSystemEventMetaListResponseBodyData; } }); +var DescribeTagKeyListResponseBody_1 = require("./DescribeTagKeyListResponseBody"); +Object.defineProperty(exports, "DescribeTagKeyListResponseBodyTagKeys", { enumerable: true, get: function () { return DescribeTagKeyListResponseBody_1.DescribeTagKeyListResponseBodyTagKeys; } }); +var DescribeTagValueListResponseBody_1 = require("./DescribeTagValueListResponseBody"); +Object.defineProperty(exports, "DescribeTagValueListResponseBodyTagValues", { enumerable: true, get: function () { return DescribeTagValueListResponseBody_1.DescribeTagValueListResponseBodyTagValues; } }); +var DescribeUnhealthyHostAvailabilityResponseBody_1 = require("./DescribeUnhealthyHostAvailabilityResponseBody"); +Object.defineProperty(exports, "DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyListNodeTaskInstanceInstanceList", { enumerable: true, get: function () { return DescribeUnhealthyHostAvailabilityResponseBody_1.DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyListNodeTaskInstanceInstanceList; } }); +var DescribeUnhealthyHostAvailabilityResponseBody_2 = require("./DescribeUnhealthyHostAvailabilityResponseBody"); +Object.defineProperty(exports, "DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyListNodeTaskInstance", { enumerable: true, get: function () { return DescribeUnhealthyHostAvailabilityResponseBody_2.DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyListNodeTaskInstance; } }); +var DescribeUnhealthyHostAvailabilityResponseBody_3 = require("./DescribeUnhealthyHostAvailabilityResponseBody"); +Object.defineProperty(exports, "DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyList", { enumerable: true, get: function () { return DescribeUnhealthyHostAvailabilityResponseBody_3.DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyList; } }); +var DisableSiteMonitorsResponseBody_1 = require("./DisableSiteMonitorsResponseBody"); +Object.defineProperty(exports, "DisableSiteMonitorsResponseBodyData", { enumerable: true, get: function () { return DisableSiteMonitorsResponseBody_1.DisableSiteMonitorsResponseBodyData; } }); +var EnableSiteMonitorsResponseBody_1 = require("./EnableSiteMonitorsResponseBody"); +Object.defineProperty(exports, "EnableSiteMonitorsResponseBodyData", { enumerable: true, get: function () { return EnableSiteMonitorsResponseBody_1.EnableSiteMonitorsResponseBodyData; } }); +var ModifyGroupMonitoringAgentProcessRequest_1 = require("./ModifyGroupMonitoringAgentProcessRequest"); +Object.defineProperty(exports, "ModifyGroupMonitoringAgentProcessRequestAlertConfigTargetList", { enumerable: true, get: function () { return ModifyGroupMonitoringAgentProcessRequest_1.ModifyGroupMonitoringAgentProcessRequestAlertConfigTargetList; } }); +var ModifyGroupMonitoringAgentProcessRequest_2 = require("./ModifyGroupMonitoringAgentProcessRequest"); +Object.defineProperty(exports, "ModifyGroupMonitoringAgentProcessRequestAlertConfig", { enumerable: true, get: function () { return ModifyGroupMonitoringAgentProcessRequest_2.ModifyGroupMonitoringAgentProcessRequestAlertConfig; } }); +var ModifyHostAvailabilityRequest_1 = require("./ModifyHostAvailabilityRequest"); +Object.defineProperty(exports, "ModifyHostAvailabilityRequestAlertConfig", { enumerable: true, get: function () { return ModifyHostAvailabilityRequest_1.ModifyHostAvailabilityRequestAlertConfig; } }); +var ModifyHostAvailabilityRequest_2 = require("./ModifyHostAvailabilityRequest"); +Object.defineProperty(exports, "ModifyHostAvailabilityRequestTaskOption", { enumerable: true, get: function () { return ModifyHostAvailabilityRequest_2.ModifyHostAvailabilityRequestTaskOption; } }); +var ModifyHostAvailabilityRequest_3 = require("./ModifyHostAvailabilityRequest"); +Object.defineProperty(exports, "ModifyHostAvailabilityRequestAlertConfigEscalationList", { enumerable: true, get: function () { return ModifyHostAvailabilityRequest_3.ModifyHostAvailabilityRequestAlertConfigEscalationList; } }); +var ModifyHostAvailabilityRequest_4 = require("./ModifyHostAvailabilityRequest"); +Object.defineProperty(exports, "ModifyHostAvailabilityRequestAlertConfigTargetList", { enumerable: true, get: function () { return ModifyHostAvailabilityRequest_4.ModifyHostAvailabilityRequestAlertConfigTargetList; } }); +var ModifyHybridMonitorSlsgroupRequest_1 = require("./ModifyHybridMonitorSlsgroupRequest"); +Object.defineProperty(exports, "ModifyHybridMonitorSLSGroupRequestSLSGroupConfig", { enumerable: true, get: function () { return ModifyHybridMonitorSlsgroupRequest_1.ModifyHybridMonitorSLSGroupRequestSLSGroupConfig; } }); +var ModifyHybridMonitorTaskRequest_1 = require("./ModifyHybridMonitorTaskRequest"); +Object.defineProperty(exports, "ModifyHybridMonitorTaskRequestAttachLabels", { enumerable: true, get: function () { return ModifyHybridMonitorTaskRequest_1.ModifyHybridMonitorTaskRequestAttachLabels; } }); +var ModifyHybridMonitorTaskRequest_2 = require("./ModifyHybridMonitorTaskRequest"); +Object.defineProperty(exports, "ModifyHybridMonitorTaskRequestSLSProcessConfigExpress", { enumerable: true, get: function () { return ModifyHybridMonitorTaskRequest_2.ModifyHybridMonitorTaskRequestSLSProcessConfigExpress; } }); +var ModifyHybridMonitorTaskRequest_3 = require("./ModifyHybridMonitorTaskRequest"); +Object.defineProperty(exports, "ModifyHybridMonitorTaskRequestSLSProcessConfigFilterFilters", { enumerable: true, get: function () { return ModifyHybridMonitorTaskRequest_3.ModifyHybridMonitorTaskRequestSLSProcessConfigFilterFilters; } }); +var ModifyHybridMonitorTaskRequest_4 = require("./ModifyHybridMonitorTaskRequest"); +Object.defineProperty(exports, "ModifyHybridMonitorTaskRequestSLSProcessConfigFilter", { enumerable: true, get: function () { return ModifyHybridMonitorTaskRequest_4.ModifyHybridMonitorTaskRequestSLSProcessConfigFilter; } }); +var ModifyHybridMonitorTaskRequest_5 = require("./ModifyHybridMonitorTaskRequest"); +Object.defineProperty(exports, "ModifyHybridMonitorTaskRequestSLSProcessConfigGroupBy", { enumerable: true, get: function () { return ModifyHybridMonitorTaskRequest_5.ModifyHybridMonitorTaskRequestSLSProcessConfigGroupBy; } }); +var ModifyHybridMonitorTaskRequest_6 = require("./ModifyHybridMonitorTaskRequest"); +Object.defineProperty(exports, "ModifyHybridMonitorTaskRequestSLSProcessConfigStatistics", { enumerable: true, get: function () { return ModifyHybridMonitorTaskRequest_6.ModifyHybridMonitorTaskRequestSLSProcessConfigStatistics; } }); +var ModifyHybridMonitorTaskRequest_7 = require("./ModifyHybridMonitorTaskRequest"); +Object.defineProperty(exports, "ModifyHybridMonitorTaskRequestSLSProcessConfig", { enumerable: true, get: function () { return ModifyHybridMonitorTaskRequest_7.ModifyHybridMonitorTaskRequestSLSProcessConfig; } }); +var ModifyMetricRuleBlackListRequest_1 = require("./ModifyMetricRuleBlackListRequest"); +Object.defineProperty(exports, "ModifyMetricRuleBlackListRequestMetrics", { enumerable: true, get: function () { return ModifyMetricRuleBlackListRequest_1.ModifyMetricRuleBlackListRequestMetrics; } }); +var ModifyMetricRuleTemplateRequest_1 = require("./ModifyMetricRuleTemplateRequest"); +Object.defineProperty(exports, "ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsCritical", { enumerable: true, get: function () { return ModifyMetricRuleTemplateRequest_1.ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsCritical; } }); +var ModifyMetricRuleTemplateRequest_2 = require("./ModifyMetricRuleTemplateRequest"); +Object.defineProperty(exports, "ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsInfo", { enumerable: true, get: function () { return ModifyMetricRuleTemplateRequest_2.ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsInfo; } }); +var ModifyMetricRuleTemplateRequest_3 = require("./ModifyMetricRuleTemplateRequest"); +Object.defineProperty(exports, "ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsWarn", { enumerable: true, get: function () { return ModifyMetricRuleTemplateRequest_3.ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsWarn; } }); +var ModifyMetricRuleTemplateRequest_4 = require("./ModifyMetricRuleTemplateRequest"); +Object.defineProperty(exports, "ModifyMetricRuleTemplateRequestAlertTemplatesEscalations", { enumerable: true, get: function () { return ModifyMetricRuleTemplateRequest_4.ModifyMetricRuleTemplateRequestAlertTemplatesEscalations; } }); +var ModifyMetricRuleTemplateRequest_5 = require("./ModifyMetricRuleTemplateRequest"); +Object.defineProperty(exports, "ModifyMetricRuleTemplateRequestAlertTemplates", { enumerable: true, get: function () { return ModifyMetricRuleTemplateRequest_5.ModifyMetricRuleTemplateRequestAlertTemplates; } }); +var ModifyMonitorGroupInstancesRequest_1 = require("./ModifyMonitorGroupInstancesRequest"); +Object.defineProperty(exports, "ModifyMonitorGroupInstancesRequestInstances", { enumerable: true, get: function () { return ModifyMonitorGroupInstancesRequest_1.ModifyMonitorGroupInstancesRequestInstances; } }); +var ModifySiteMonitorResponseBody_1 = require("./ModifySiteMonitorResponseBody"); +Object.defineProperty(exports, "ModifySiteMonitorResponseBodyData", { enumerable: true, get: function () { return ModifySiteMonitorResponseBody_1.ModifySiteMonitorResponseBodyData; } }); +var PutContactRequest_1 = require("./PutContactRequest"); +Object.defineProperty(exports, "PutContactRequestChannels", { enumerable: true, get: function () { return PutContactRequest_1.PutContactRequestChannels; } }); +var PutCustomEventRequest_1 = require("./PutCustomEventRequest"); +Object.defineProperty(exports, "PutCustomEventRequestEventInfo", { enumerable: true, get: function () { return PutCustomEventRequest_1.PutCustomEventRequestEventInfo; } }); +var PutCustomMetricRequest_1 = require("./PutCustomMetricRequest"); +Object.defineProperty(exports, "PutCustomMetricRequestMetricList", { enumerable: true, get: function () { return PutCustomMetricRequest_1.PutCustomMetricRequestMetricList; } }); +var PutEventRuleRequest_1 = require("./PutEventRuleRequest"); +Object.defineProperty(exports, "PutEventRuleRequestEventPattern", { enumerable: true, get: function () { return PutEventRuleRequest_1.PutEventRuleRequestEventPattern; } }); +var PutEventRuleTargetsRequest_1 = require("./PutEventRuleTargetsRequest"); +Object.defineProperty(exports, "PutEventRuleTargetsRequestContactParameters", { enumerable: true, get: function () { return PutEventRuleTargetsRequest_1.PutEventRuleTargetsRequestContactParameters; } }); +var PutEventRuleTargetsRequest_2 = require("./PutEventRuleTargetsRequest"); +Object.defineProperty(exports, "PutEventRuleTargetsRequestFcParameters", { enumerable: true, get: function () { return PutEventRuleTargetsRequest_2.PutEventRuleTargetsRequestFcParameters; } }); +var PutEventRuleTargetsRequest_3 = require("./PutEventRuleTargetsRequest"); +Object.defineProperty(exports, "PutEventRuleTargetsRequestMnsParameters", { enumerable: true, get: function () { return PutEventRuleTargetsRequest_3.PutEventRuleTargetsRequestMnsParameters; } }); +var PutEventRuleTargetsRequest_4 = require("./PutEventRuleTargetsRequest"); +Object.defineProperty(exports, "PutEventRuleTargetsRequestOpenApiParameters", { enumerable: true, get: function () { return PutEventRuleTargetsRequest_4.PutEventRuleTargetsRequestOpenApiParameters; } }); +var PutEventRuleTargetsRequest_5 = require("./PutEventRuleTargetsRequest"); +Object.defineProperty(exports, "PutEventRuleTargetsRequestSlsParameters", { enumerable: true, get: function () { return PutEventRuleTargetsRequest_5.PutEventRuleTargetsRequestSlsParameters; } }); +var PutEventRuleTargetsRequest_6 = require("./PutEventRuleTargetsRequest"); +Object.defineProperty(exports, "PutEventRuleTargetsRequestWebhookParameters", { enumerable: true, get: function () { return PutEventRuleTargetsRequest_6.PutEventRuleTargetsRequestWebhookParameters; } }); +var PutEventRuleTargetsResponseBody_1 = require("./PutEventRuleTargetsResponseBody"); +Object.defineProperty(exports, "PutEventRuleTargetsResponseBodyFailedContactParametersContactParameter", { enumerable: true, get: function () { return PutEventRuleTargetsResponseBody_1.PutEventRuleTargetsResponseBodyFailedContactParametersContactParameter; } }); +var PutEventRuleTargetsResponseBody_2 = require("./PutEventRuleTargetsResponseBody"); +Object.defineProperty(exports, "PutEventRuleTargetsResponseBodyFailedContactParameters", { enumerable: true, get: function () { return PutEventRuleTargetsResponseBody_2.PutEventRuleTargetsResponseBodyFailedContactParameters; } }); +var PutEventRuleTargetsResponseBody_3 = require("./PutEventRuleTargetsResponseBody"); +Object.defineProperty(exports, "PutEventRuleTargetsResponseBodyFailedFcParametersFcParameter", { enumerable: true, get: function () { return PutEventRuleTargetsResponseBody_3.PutEventRuleTargetsResponseBodyFailedFcParametersFcParameter; } }); +var PutEventRuleTargetsResponseBody_4 = require("./PutEventRuleTargetsResponseBody"); +Object.defineProperty(exports, "PutEventRuleTargetsResponseBodyFailedFcParameters", { enumerable: true, get: function () { return PutEventRuleTargetsResponseBody_4.PutEventRuleTargetsResponseBodyFailedFcParameters; } }); +var PutEventRuleTargetsResponseBody_5 = require("./PutEventRuleTargetsResponseBody"); +Object.defineProperty(exports, "PutEventRuleTargetsResponseBodyFailedMnsParametersMnsParameter", { enumerable: true, get: function () { return PutEventRuleTargetsResponseBody_5.PutEventRuleTargetsResponseBodyFailedMnsParametersMnsParameter; } }); +var PutEventRuleTargetsResponseBody_6 = require("./PutEventRuleTargetsResponseBody"); +Object.defineProperty(exports, "PutEventRuleTargetsResponseBodyFailedMnsParameters", { enumerable: true, get: function () { return PutEventRuleTargetsResponseBody_6.PutEventRuleTargetsResponseBodyFailedMnsParameters; } }); +var PutGroupMetricRuleRequest_1 = require("./PutGroupMetricRuleRequest"); +Object.defineProperty(exports, "PutGroupMetricRuleRequestEscalationsCritical", { enumerable: true, get: function () { return PutGroupMetricRuleRequest_1.PutGroupMetricRuleRequestEscalationsCritical; } }); +var PutGroupMetricRuleRequest_2 = require("./PutGroupMetricRuleRequest"); +Object.defineProperty(exports, "PutGroupMetricRuleRequestEscalationsInfo", { enumerable: true, get: function () { return PutGroupMetricRuleRequest_2.PutGroupMetricRuleRequestEscalationsInfo; } }); +var PutGroupMetricRuleRequest_3 = require("./PutGroupMetricRuleRequest"); +Object.defineProperty(exports, "PutGroupMetricRuleRequestEscalationsWarn", { enumerable: true, get: function () { return PutGroupMetricRuleRequest_3.PutGroupMetricRuleRequestEscalationsWarn; } }); +var PutGroupMetricRuleRequest_4 = require("./PutGroupMetricRuleRequest"); +Object.defineProperty(exports, "PutGroupMetricRuleRequestEscalations", { enumerable: true, get: function () { return PutGroupMetricRuleRequest_4.PutGroupMetricRuleRequestEscalations; } }); +var PutGroupMetricRuleRequest_5 = require("./PutGroupMetricRuleRequest"); +Object.defineProperty(exports, "PutGroupMetricRuleRequestLabels", { enumerable: true, get: function () { return PutGroupMetricRuleRequest_5.PutGroupMetricRuleRequestLabels; } }); +var PutGroupMetricRuleResponseBody_1 = require("./PutGroupMetricRuleResponseBody"); +Object.defineProperty(exports, "PutGroupMetricRuleResponseBodyResult", { enumerable: true, get: function () { return PutGroupMetricRuleResponseBody_1.PutGroupMetricRuleResponseBodyResult; } }); +var PutHybridMonitorMetricDataRequest_1 = require("./PutHybridMonitorMetricDataRequest"); +Object.defineProperty(exports, "PutHybridMonitorMetricDataRequestMetricListLabels", { enumerable: true, get: function () { return PutHybridMonitorMetricDataRequest_1.PutHybridMonitorMetricDataRequestMetricListLabels; } }); +var PutHybridMonitorMetricDataRequest_2 = require("./PutHybridMonitorMetricDataRequest"); +Object.defineProperty(exports, "PutHybridMonitorMetricDataRequestMetricList", { enumerable: true, get: function () { return PutHybridMonitorMetricDataRequest_2.PutHybridMonitorMetricDataRequestMetricList; } }); +var PutHybridMonitorMetricDataResponseBody_1 = require("./PutHybridMonitorMetricDataResponseBody"); +Object.defineProperty(exports, "PutHybridMonitorMetricDataResponseBodyErrorDetail", { enumerable: true, get: function () { return PutHybridMonitorMetricDataResponseBody_1.PutHybridMonitorMetricDataResponseBodyErrorDetail; } }); +var PutLogMonitorRequest_1 = require("./PutLogMonitorRequest"); +Object.defineProperty(exports, "PutLogMonitorRequestAggregates", { enumerable: true, get: function () { return PutLogMonitorRequest_1.PutLogMonitorRequestAggregates; } }); +var PutLogMonitorRequest_2 = require("./PutLogMonitorRequest"); +Object.defineProperty(exports, "PutLogMonitorRequestGroupbys", { enumerable: true, get: function () { return PutLogMonitorRequest_2.PutLogMonitorRequestGroupbys; } }); +var PutLogMonitorRequest_3 = require("./PutLogMonitorRequest"); +Object.defineProperty(exports, "PutLogMonitorRequestValueFilter", { enumerable: true, get: function () { return PutLogMonitorRequest_3.PutLogMonitorRequestValueFilter; } }); +var PutMetricRuleTargetsRequest_1 = require("./PutMetricRuleTargetsRequest"); +Object.defineProperty(exports, "PutMetricRuleTargetsRequestTargets", { enumerable: true, get: function () { return PutMetricRuleTargetsRequest_1.PutMetricRuleTargetsRequestTargets; } }); +var PutMetricRuleTargetsResponseBody_1 = require("./PutMetricRuleTargetsResponseBody"); +Object.defineProperty(exports, "PutMetricRuleTargetsResponseBodyFailDataTargetsTarget", { enumerable: true, get: function () { return PutMetricRuleTargetsResponseBody_1.PutMetricRuleTargetsResponseBodyFailDataTargetsTarget; } }); +var PutMetricRuleTargetsResponseBody_2 = require("./PutMetricRuleTargetsResponseBody"); +Object.defineProperty(exports, "PutMetricRuleTargetsResponseBodyFailDataTargets", { enumerable: true, get: function () { return PutMetricRuleTargetsResponseBody_2.PutMetricRuleTargetsResponseBodyFailDataTargets; } }); +var PutMetricRuleTargetsResponseBody_3 = require("./PutMetricRuleTargetsResponseBody"); +Object.defineProperty(exports, "PutMetricRuleTargetsResponseBodyFailData", { enumerable: true, get: function () { return PutMetricRuleTargetsResponseBody_3.PutMetricRuleTargetsResponseBodyFailData; } }); +var PutMonitorGroupDynamicRuleRequest_1 = require("./PutMonitorGroupDynamicRuleRequest"); +Object.defineProperty(exports, "PutMonitorGroupDynamicRuleRequestGroupRulesFilters", { enumerable: true, get: function () { return PutMonitorGroupDynamicRuleRequest_1.PutMonitorGroupDynamicRuleRequestGroupRulesFilters; } }); +var PutMonitorGroupDynamicRuleRequest_2 = require("./PutMonitorGroupDynamicRuleRequest"); +Object.defineProperty(exports, "PutMonitorGroupDynamicRuleRequestGroupRules", { enumerable: true, get: function () { return PutMonitorGroupDynamicRuleRequest_2.PutMonitorGroupDynamicRuleRequestGroupRules; } }); +var PutResourceMetricRuleRequest_1 = require("./PutResourceMetricRuleRequest"); +Object.defineProperty(exports, "PutResourceMetricRuleRequestEscalationsCritical", { enumerable: true, get: function () { return PutResourceMetricRuleRequest_1.PutResourceMetricRuleRequestEscalationsCritical; } }); +var PutResourceMetricRuleRequest_2 = require("./PutResourceMetricRuleRequest"); +Object.defineProperty(exports, "PutResourceMetricRuleRequestEscalationsInfo", { enumerable: true, get: function () { return PutResourceMetricRuleRequest_2.PutResourceMetricRuleRequestEscalationsInfo; } }); +var PutResourceMetricRuleRequest_3 = require("./PutResourceMetricRuleRequest"); +Object.defineProperty(exports, "PutResourceMetricRuleRequestEscalationsWarn", { enumerable: true, get: function () { return PutResourceMetricRuleRequest_3.PutResourceMetricRuleRequestEscalationsWarn; } }); +var PutResourceMetricRuleRequest_4 = require("./PutResourceMetricRuleRequest"); +Object.defineProperty(exports, "PutResourceMetricRuleRequestEscalations", { enumerable: true, get: function () { return PutResourceMetricRuleRequest_4.PutResourceMetricRuleRequestEscalations; } }); +var PutResourceMetricRuleRequest_5 = require("./PutResourceMetricRuleRequest"); +Object.defineProperty(exports, "PutResourceMetricRuleRequestCompositeExpressionExpressionList", { enumerable: true, get: function () { return PutResourceMetricRuleRequest_5.PutResourceMetricRuleRequestCompositeExpressionExpressionList; } }); +var PutResourceMetricRuleRequest_6 = require("./PutResourceMetricRuleRequest"); +Object.defineProperty(exports, "PutResourceMetricRuleRequestCompositeExpression", { enumerable: true, get: function () { return PutResourceMetricRuleRequest_6.PutResourceMetricRuleRequestCompositeExpression; } }); +var PutResourceMetricRuleRequest_7 = require("./PutResourceMetricRuleRequest"); +Object.defineProperty(exports, "PutResourceMetricRuleRequestLabels", { enumerable: true, get: function () { return PutResourceMetricRuleRequest_7.PutResourceMetricRuleRequestLabels; } }); +var PutResourceMetricRuleRequest_8 = require("./PutResourceMetricRuleRequest"); +Object.defineProperty(exports, "PutResourceMetricRuleRequestPrometheusAnnotations", { enumerable: true, get: function () { return PutResourceMetricRuleRequest_8.PutResourceMetricRuleRequestPrometheusAnnotations; } }); +var PutResourceMetricRuleRequest_9 = require("./PutResourceMetricRuleRequest"); +Object.defineProperty(exports, "PutResourceMetricRuleRequestPrometheus", { enumerable: true, get: function () { return PutResourceMetricRuleRequest_9.PutResourceMetricRuleRequestPrometheus; } }); +var PutResourceMetricRuleShrinkRequest_1 = require("./PutResourceMetricRuleShrinkRequest"); +Object.defineProperty(exports, "PutResourceMetricRuleShrinkRequestEscalationsCritical", { enumerable: true, get: function () { return PutResourceMetricRuleShrinkRequest_1.PutResourceMetricRuleShrinkRequestEscalationsCritical; } }); +var PutResourceMetricRuleShrinkRequest_2 = require("./PutResourceMetricRuleShrinkRequest"); +Object.defineProperty(exports, "PutResourceMetricRuleShrinkRequestEscalationsInfo", { enumerable: true, get: function () { return PutResourceMetricRuleShrinkRequest_2.PutResourceMetricRuleShrinkRequestEscalationsInfo; } }); +var PutResourceMetricRuleShrinkRequest_3 = require("./PutResourceMetricRuleShrinkRequest"); +Object.defineProperty(exports, "PutResourceMetricRuleShrinkRequestEscalationsWarn", { enumerable: true, get: function () { return PutResourceMetricRuleShrinkRequest_3.PutResourceMetricRuleShrinkRequestEscalationsWarn; } }); +var PutResourceMetricRuleShrinkRequest_4 = require("./PutResourceMetricRuleShrinkRequest"); +Object.defineProperty(exports, "PutResourceMetricRuleShrinkRequestEscalations", { enumerable: true, get: function () { return PutResourceMetricRuleShrinkRequest_4.PutResourceMetricRuleShrinkRequestEscalations; } }); +var PutResourceMetricRuleShrinkRequest_5 = require("./PutResourceMetricRuleShrinkRequest"); +Object.defineProperty(exports, "PutResourceMetricRuleShrinkRequestLabels", { enumerable: true, get: function () { return PutResourceMetricRuleShrinkRequest_5.PutResourceMetricRuleShrinkRequestLabels; } }); +var PutResourceMetricRulesRequest_1 = require("./PutResourceMetricRulesRequest"); +Object.defineProperty(exports, "PutResourceMetricRulesRequestRulesEscalationsCritical", { enumerable: true, get: function () { return PutResourceMetricRulesRequest_1.PutResourceMetricRulesRequestRulesEscalationsCritical; } }); +var PutResourceMetricRulesRequest_2 = require("./PutResourceMetricRulesRequest"); +Object.defineProperty(exports, "PutResourceMetricRulesRequestRulesEscalationsInfo", { enumerable: true, get: function () { return PutResourceMetricRulesRequest_2.PutResourceMetricRulesRequestRulesEscalationsInfo; } }); +var PutResourceMetricRulesRequest_3 = require("./PutResourceMetricRulesRequest"); +Object.defineProperty(exports, "PutResourceMetricRulesRequestRulesEscalationsWarn", { enumerable: true, get: function () { return PutResourceMetricRulesRequest_3.PutResourceMetricRulesRequestRulesEscalationsWarn; } }); +var PutResourceMetricRulesRequest_4 = require("./PutResourceMetricRulesRequest"); +Object.defineProperty(exports, "PutResourceMetricRulesRequestRulesEscalations", { enumerable: true, get: function () { return PutResourceMetricRulesRequest_4.PutResourceMetricRulesRequestRulesEscalations; } }); +var PutResourceMetricRulesRequest_5 = require("./PutResourceMetricRulesRequest"); +Object.defineProperty(exports, "PutResourceMetricRulesRequestRulesLabels", { enumerable: true, get: function () { return PutResourceMetricRulesRequest_5.PutResourceMetricRulesRequestRulesLabels; } }); +var PutResourceMetricRulesRequest_6 = require("./PutResourceMetricRulesRequest"); +Object.defineProperty(exports, "PutResourceMetricRulesRequestRules", { enumerable: true, get: function () { return PutResourceMetricRulesRequest_6.PutResourceMetricRulesRequestRules; } }); +var PutResourceMetricRulesResponseBody_1 = require("./PutResourceMetricRulesResponseBody"); +Object.defineProperty(exports, "PutResourceMetricRulesResponseBodyFailedListResultTargetResult", { enumerable: true, get: function () { return PutResourceMetricRulesResponseBody_1.PutResourceMetricRulesResponseBodyFailedListResultTargetResult; } }); +var PutResourceMetricRulesResponseBody_2 = require("./PutResourceMetricRulesResponseBody"); +Object.defineProperty(exports, "PutResourceMetricRulesResponseBodyFailedListResultTarget", { enumerable: true, get: function () { return PutResourceMetricRulesResponseBody_2.PutResourceMetricRulesResponseBodyFailedListResultTarget; } }); +var PutResourceMetricRulesResponseBody_3 = require("./PutResourceMetricRulesResponseBody"); +Object.defineProperty(exports, "PutResourceMetricRulesResponseBodyFailedListResult", { enumerable: true, get: function () { return PutResourceMetricRulesResponseBody_3.PutResourceMetricRulesResponseBodyFailedListResult; } }); +var RemoveTagsRequest_1 = require("./RemoveTagsRequest"); +Object.defineProperty(exports, "RemoveTagsRequestTag", { enumerable: true, get: function () { return RemoveTagsRequest_1.RemoveTagsRequestTag; } }); +var RemoveTagsResponseBody_1 = require("./RemoveTagsResponseBody"); +Object.defineProperty(exports, "RemoveTagsResponseBodyTag", { enumerable: true, get: function () { return RemoveTagsResponseBody_1.RemoveTagsResponseBodyTag; } }); +var AlertEvent_2 = require("./AlertEvent"); +Object.defineProperty(exports, "AlertEvent", { enumerable: true, get: function () { return AlertEvent_2.AlertEvent; } }); +var AlertStrategyRelation_1 = require("./AlertStrategyRelation"); +Object.defineProperty(exports, "AlertStrategyRelation", { enumerable: true, get: function () { return AlertStrategyRelation_1.AlertStrategyRelation; } }); +var Dimension_1 = require("./Dimension"); +Object.defineProperty(exports, "Dimension", { enumerable: true, get: function () { return Dimension_1.Dimension; } }); +var EscalationRule_3 = require("./EscalationRule"); +Object.defineProperty(exports, "EscalationRule", { enumerable: true, get: function () { return EscalationRule_3.EscalationRule; } }); +var Incident_1 = require("./Incident"); +Object.defineProperty(exports, "Incident", { enumerable: true, get: function () { return Incident_1.Incident; } }); +var Matcher_1 = require("./Matcher"); +Object.defineProperty(exports, "Matcher", { enumerable: true, get: function () { return Matcher_1.Matcher; } }); +var MetricStat_1 = require("./MetricStat"); +Object.defineProperty(exports, "MetricStat", { enumerable: true, get: function () { return MetricStat_1.MetricStat; } }); +var MigrationJob_21 = require("./MigrationJob"); +Object.defineProperty(exports, "MigrationJob", { enumerable: true, get: function () { return MigrationJob_21.MigrationJob; } }); +var NotificationStrategy_12 = require("./NotificationStrategy"); +Object.defineProperty(exports, "NotificationStrategy", { enumerable: true, get: function () { return NotificationStrategy_12.NotificationStrategy; } }); +var NotificationTemplate_1 = require("./NotificationTemplate"); +Object.defineProperty(exports, "NotificationTemplate", { enumerable: true, get: function () { return NotificationTemplate_1.NotificationTemplate; } }); +var PushingTarget_3 = require("./PushingTarget"); +Object.defineProperty(exports, "PushingTarget", { enumerable: true, get: function () { return PushingTarget_3.PushingTarget; } }); +var Subscription_2 = require("./Subscription"); +Object.defineProperty(exports, "Subscription", { enumerable: true, get: function () { return Subscription_2.Subscription; } }); +var AddTagsRequest_2 = require("./AddTagsRequest"); +Object.defineProperty(exports, "AddTagsRequest", { enumerable: true, get: function () { return AddTagsRequest_2.AddTagsRequest; } }); +var AddTagsResponseBody_1 = require("./AddTagsResponseBody"); +Object.defineProperty(exports, "AddTagsResponseBody", { enumerable: true, get: function () { return AddTagsResponseBody_1.AddTagsResponseBody; } }); +var AddTagsResponse_1 = require("./AddTagsResponse"); +Object.defineProperty(exports, "AddTagsResponse", { enumerable: true, get: function () { return AddTagsResponse_1.AddTagsResponse; } }); +var ApplyMetricRuleTemplateRequest_1 = require("./ApplyMetricRuleTemplateRequest"); +Object.defineProperty(exports, "ApplyMetricRuleTemplateRequest", { enumerable: true, get: function () { return ApplyMetricRuleTemplateRequest_1.ApplyMetricRuleTemplateRequest; } }); +var ApplyMetricRuleTemplateResponseBody_3 = require("./ApplyMetricRuleTemplateResponseBody"); +Object.defineProperty(exports, "ApplyMetricRuleTemplateResponseBody", { enumerable: true, get: function () { return ApplyMetricRuleTemplateResponseBody_3.ApplyMetricRuleTemplateResponseBody; } }); +var ApplyMetricRuleTemplateResponse_1 = require("./ApplyMetricRuleTemplateResponse"); +Object.defineProperty(exports, "ApplyMetricRuleTemplateResponse", { enumerable: true, get: function () { return ApplyMetricRuleTemplateResponse_1.ApplyMetricRuleTemplateResponse; } }); +var BatchCreateInstantSiteMonitorRequest_2 = require("./BatchCreateInstantSiteMonitorRequest"); +Object.defineProperty(exports, "BatchCreateInstantSiteMonitorRequest", { enumerable: true, get: function () { return BatchCreateInstantSiteMonitorRequest_2.BatchCreateInstantSiteMonitorRequest; } }); +var BatchCreateInstantSiteMonitorResponseBody_2 = require("./BatchCreateInstantSiteMonitorResponseBody"); +Object.defineProperty(exports, "BatchCreateInstantSiteMonitorResponseBody", { enumerable: true, get: function () { return BatchCreateInstantSiteMonitorResponseBody_2.BatchCreateInstantSiteMonitorResponseBody; } }); +var BatchCreateInstantSiteMonitorResponse_1 = require("./BatchCreateInstantSiteMonitorResponse"); +Object.defineProperty(exports, "BatchCreateInstantSiteMonitorResponse", { enumerable: true, get: function () { return BatchCreateInstantSiteMonitorResponse_1.BatchCreateInstantSiteMonitorResponse; } }); +var BatchExportRequest_1 = require("./BatchExportRequest"); +Object.defineProperty(exports, "BatchExportRequest", { enumerable: true, get: function () { return BatchExportRequest_1.BatchExportRequest; } }); +var BatchExportShrinkRequest_1 = require("./BatchExportShrinkRequest"); +Object.defineProperty(exports, "BatchExportShrinkRequest", { enumerable: true, get: function () { return BatchExportShrinkRequest_1.BatchExportShrinkRequest; } }); +var BatchExportResponseBody_1 = require("./BatchExportResponseBody"); +Object.defineProperty(exports, "BatchExportResponseBody", { enumerable: true, get: function () { return BatchExportResponseBody_1.BatchExportResponseBody; } }); +var BatchExportResponse_1 = require("./BatchExportResponse"); +Object.defineProperty(exports, "BatchExportResponse", { enumerable: true, get: function () { return BatchExportResponse_1.BatchExportResponse; } }); +var CreateDynamicTagGroupRequest_2 = require("./CreateDynamicTagGroupRequest"); +Object.defineProperty(exports, "CreateDynamicTagGroupRequest", { enumerable: true, get: function () { return CreateDynamicTagGroupRequest_2.CreateDynamicTagGroupRequest; } }); +var CreateDynamicTagGroupResponseBody_1 = require("./CreateDynamicTagGroupResponseBody"); +Object.defineProperty(exports, "CreateDynamicTagGroupResponseBody", { enumerable: true, get: function () { return CreateDynamicTagGroupResponseBody_1.CreateDynamicTagGroupResponseBody; } }); +var CreateDynamicTagGroupResponse_1 = require("./CreateDynamicTagGroupResponse"); +Object.defineProperty(exports, "CreateDynamicTagGroupResponse", { enumerable: true, get: function () { return CreateDynamicTagGroupResponse_1.CreateDynamicTagGroupResponse; } }); +var CreateGroupMetricRulesRequest_7 = require("./CreateGroupMetricRulesRequest"); +Object.defineProperty(exports, "CreateGroupMetricRulesRequest", { enumerable: true, get: function () { return CreateGroupMetricRulesRequest_7.CreateGroupMetricRulesRequest; } }); +var CreateGroupMetricRulesResponseBody_3 = require("./CreateGroupMetricRulesResponseBody"); +Object.defineProperty(exports, "CreateGroupMetricRulesResponseBody", { enumerable: true, get: function () { return CreateGroupMetricRulesResponseBody_3.CreateGroupMetricRulesResponseBody; } }); +var CreateGroupMetricRulesResponse_1 = require("./CreateGroupMetricRulesResponse"); +Object.defineProperty(exports, "CreateGroupMetricRulesResponse", { enumerable: true, get: function () { return CreateGroupMetricRulesResponse_1.CreateGroupMetricRulesResponse; } }); +var CreateGroupMonitoringAgentProcessRequest_4 = require("./CreateGroupMonitoringAgentProcessRequest"); +Object.defineProperty(exports, "CreateGroupMonitoringAgentProcessRequest", { enumerable: true, get: function () { return CreateGroupMonitoringAgentProcessRequest_4.CreateGroupMonitoringAgentProcessRequest; } }); +var CreateGroupMonitoringAgentProcessResponseBody_2 = require("./CreateGroupMonitoringAgentProcessResponseBody"); +Object.defineProperty(exports, "CreateGroupMonitoringAgentProcessResponseBody", { enumerable: true, get: function () { return CreateGroupMonitoringAgentProcessResponseBody_2.CreateGroupMonitoringAgentProcessResponseBody; } }); +var CreateGroupMonitoringAgentProcessResponse_1 = require("./CreateGroupMonitoringAgentProcessResponse"); +Object.defineProperty(exports, "CreateGroupMonitoringAgentProcessResponse", { enumerable: true, get: function () { return CreateGroupMonitoringAgentProcessResponse_1.CreateGroupMonitoringAgentProcessResponse; } }); +var CreateHostAvailabilityRequest_5 = require("./CreateHostAvailabilityRequest"); +Object.defineProperty(exports, "CreateHostAvailabilityRequest", { enumerable: true, get: function () { return CreateHostAvailabilityRequest_5.CreateHostAvailabilityRequest; } }); +var CreateHostAvailabilityResponseBody_1 = require("./CreateHostAvailabilityResponseBody"); +Object.defineProperty(exports, "CreateHostAvailabilityResponseBody", { enumerable: true, get: function () { return CreateHostAvailabilityResponseBody_1.CreateHostAvailabilityResponseBody; } }); +var CreateHostAvailabilityResponse_1 = require("./CreateHostAvailabilityResponse"); +Object.defineProperty(exports, "CreateHostAvailabilityResponse", { enumerable: true, get: function () { return CreateHostAvailabilityResponse_1.CreateHostAvailabilityResponse; } }); +var CreateHybridMonitorNamespaceRequest_1 = require("./CreateHybridMonitorNamespaceRequest"); +Object.defineProperty(exports, "CreateHybridMonitorNamespaceRequest", { enumerable: true, get: function () { return CreateHybridMonitorNamespaceRequest_1.CreateHybridMonitorNamespaceRequest; } }); +var CreateHybridMonitorNamespaceResponseBody_1 = require("./CreateHybridMonitorNamespaceResponseBody"); +Object.defineProperty(exports, "CreateHybridMonitorNamespaceResponseBody", { enumerable: true, get: function () { return CreateHybridMonitorNamespaceResponseBody_1.CreateHybridMonitorNamespaceResponseBody; } }); +var CreateHybridMonitorNamespaceResponse_1 = require("./CreateHybridMonitorNamespaceResponse"); +Object.defineProperty(exports, "CreateHybridMonitorNamespaceResponse", { enumerable: true, get: function () { return CreateHybridMonitorNamespaceResponse_1.CreateHybridMonitorNamespaceResponse; } }); +var CreateHybridMonitorSlsgroupRequest_2 = require("./CreateHybridMonitorSlsgroupRequest"); +Object.defineProperty(exports, "CreateHybridMonitorSLSGroupRequest", { enumerable: true, get: function () { return CreateHybridMonitorSlsgroupRequest_2.CreateHybridMonitorSLSGroupRequest; } }); +var CreateHybridMonitorSlsgroupResponseBody_1 = require("./CreateHybridMonitorSlsgroupResponseBody"); +Object.defineProperty(exports, "CreateHybridMonitorSLSGroupResponseBody", { enumerable: true, get: function () { return CreateHybridMonitorSlsgroupResponseBody_1.CreateHybridMonitorSLSGroupResponseBody; } }); +var CreateHybridMonitorSlsgroupResponse_1 = require("./CreateHybridMonitorSlsgroupResponse"); +Object.defineProperty(exports, "CreateHybridMonitorSLSGroupResponse", { enumerable: true, get: function () { return CreateHybridMonitorSlsgroupResponse_1.CreateHybridMonitorSLSGroupResponse; } }); +var CreateHybridMonitorTaskRequest_8 = require("./CreateHybridMonitorTaskRequest"); +Object.defineProperty(exports, "CreateHybridMonitorTaskRequest", { enumerable: true, get: function () { return CreateHybridMonitorTaskRequest_8.CreateHybridMonitorTaskRequest; } }); +var CreateHybridMonitorTaskResponseBody_1 = require("./CreateHybridMonitorTaskResponseBody"); +Object.defineProperty(exports, "CreateHybridMonitorTaskResponseBody", { enumerable: true, get: function () { return CreateHybridMonitorTaskResponseBody_1.CreateHybridMonitorTaskResponseBody; } }); +var CreateHybridMonitorTaskResponse_1 = require("./CreateHybridMonitorTaskResponse"); +Object.defineProperty(exports, "CreateHybridMonitorTaskResponse", { enumerable: true, get: function () { return CreateHybridMonitorTaskResponse_1.CreateHybridMonitorTaskResponse; } }); +var CreateInstantSiteMonitorRequest_1 = require("./CreateInstantSiteMonitorRequest"); +Object.defineProperty(exports, "CreateInstantSiteMonitorRequest", { enumerable: true, get: function () { return CreateInstantSiteMonitorRequest_1.CreateInstantSiteMonitorRequest; } }); +var CreateInstantSiteMonitorResponseBody_2 = require("./CreateInstantSiteMonitorResponseBody"); +Object.defineProperty(exports, "CreateInstantSiteMonitorResponseBody", { enumerable: true, get: function () { return CreateInstantSiteMonitorResponseBody_2.CreateInstantSiteMonitorResponseBody; } }); +var CreateInstantSiteMonitorResponse_1 = require("./CreateInstantSiteMonitorResponse"); +Object.defineProperty(exports, "CreateInstantSiteMonitorResponse", { enumerable: true, get: function () { return CreateInstantSiteMonitorResponse_1.CreateInstantSiteMonitorResponse; } }); +var CreateMetricRuleBlackListRequest_2 = require("./CreateMetricRuleBlackListRequest"); +Object.defineProperty(exports, "CreateMetricRuleBlackListRequest", { enumerable: true, get: function () { return CreateMetricRuleBlackListRequest_2.CreateMetricRuleBlackListRequest; } }); +var CreateMetricRuleBlackListResponseBody_1 = require("./CreateMetricRuleBlackListResponseBody"); +Object.defineProperty(exports, "CreateMetricRuleBlackListResponseBody", { enumerable: true, get: function () { return CreateMetricRuleBlackListResponseBody_1.CreateMetricRuleBlackListResponseBody; } }); +var CreateMetricRuleBlackListResponse_1 = require("./CreateMetricRuleBlackListResponse"); +Object.defineProperty(exports, "CreateMetricRuleBlackListResponse", { enumerable: true, get: function () { return CreateMetricRuleBlackListResponse_1.CreateMetricRuleBlackListResponse; } }); +var CreateMetricRuleResourcesRequest_1 = require("./CreateMetricRuleResourcesRequest"); +Object.defineProperty(exports, "CreateMetricRuleResourcesRequest", { enumerable: true, get: function () { return CreateMetricRuleResourcesRequest_1.CreateMetricRuleResourcesRequest; } }); +var CreateMetricRuleResourcesResponseBody_1 = require("./CreateMetricRuleResourcesResponseBody"); +Object.defineProperty(exports, "CreateMetricRuleResourcesResponseBody", { enumerable: true, get: function () { return CreateMetricRuleResourcesResponseBody_1.CreateMetricRuleResourcesResponseBody; } }); +var CreateMetricRuleResourcesResponse_1 = require("./CreateMetricRuleResourcesResponse"); +Object.defineProperty(exports, "CreateMetricRuleResourcesResponse", { enumerable: true, get: function () { return CreateMetricRuleResourcesResponse_1.CreateMetricRuleResourcesResponse; } }); +var CreateMetricRuleTemplateRequest_6 = require("./CreateMetricRuleTemplateRequest"); +Object.defineProperty(exports, "CreateMetricRuleTemplateRequest", { enumerable: true, get: function () { return CreateMetricRuleTemplateRequest_6.CreateMetricRuleTemplateRequest; } }); +var CreateMetricRuleTemplateResponseBody_1 = require("./CreateMetricRuleTemplateResponseBody"); +Object.defineProperty(exports, "CreateMetricRuleTemplateResponseBody", { enumerable: true, get: function () { return CreateMetricRuleTemplateResponseBody_1.CreateMetricRuleTemplateResponseBody; } }); +var CreateMetricRuleTemplateResponse_1 = require("./CreateMetricRuleTemplateResponse"); +Object.defineProperty(exports, "CreateMetricRuleTemplateResponse", { enumerable: true, get: function () { return CreateMetricRuleTemplateResponse_1.CreateMetricRuleTemplateResponse; } }); +var CreateMonitorAgentProcessRequest_1 = require("./CreateMonitorAgentProcessRequest"); +Object.defineProperty(exports, "CreateMonitorAgentProcessRequest", { enumerable: true, get: function () { return CreateMonitorAgentProcessRequest_1.CreateMonitorAgentProcessRequest; } }); +var CreateMonitorAgentProcessResponseBody_1 = require("./CreateMonitorAgentProcessResponseBody"); +Object.defineProperty(exports, "CreateMonitorAgentProcessResponseBody", { enumerable: true, get: function () { return CreateMonitorAgentProcessResponseBody_1.CreateMonitorAgentProcessResponseBody; } }); +var CreateMonitorAgentProcessResponse_1 = require("./CreateMonitorAgentProcessResponse"); +Object.defineProperty(exports, "CreateMonitorAgentProcessResponse", { enumerable: true, get: function () { return CreateMonitorAgentProcessResponse_1.CreateMonitorAgentProcessResponse; } }); +var CreateMonitorGroupRequest_1 = require("./CreateMonitorGroupRequest"); +Object.defineProperty(exports, "CreateMonitorGroupRequest", { enumerable: true, get: function () { return CreateMonitorGroupRequest_1.CreateMonitorGroupRequest; } }); +var CreateMonitorGroupResponseBody_1 = require("./CreateMonitorGroupResponseBody"); +Object.defineProperty(exports, "CreateMonitorGroupResponseBody", { enumerable: true, get: function () { return CreateMonitorGroupResponseBody_1.CreateMonitorGroupResponseBody; } }); +var CreateMonitorGroupResponse_1 = require("./CreateMonitorGroupResponse"); +Object.defineProperty(exports, "CreateMonitorGroupResponse", { enumerable: true, get: function () { return CreateMonitorGroupResponse_1.CreateMonitorGroupResponse; } }); +var CreateMonitorGroupByResourceGroupIdRequest_1 = require("./CreateMonitorGroupByResourceGroupIdRequest"); +Object.defineProperty(exports, "CreateMonitorGroupByResourceGroupIdRequest", { enumerable: true, get: function () { return CreateMonitorGroupByResourceGroupIdRequest_1.CreateMonitorGroupByResourceGroupIdRequest; } }); +var CreateMonitorGroupByResourceGroupIdResponseBody_1 = require("./CreateMonitorGroupByResourceGroupIdResponseBody"); +Object.defineProperty(exports, "CreateMonitorGroupByResourceGroupIdResponseBody", { enumerable: true, get: function () { return CreateMonitorGroupByResourceGroupIdResponseBody_1.CreateMonitorGroupByResourceGroupIdResponseBody; } }); +var CreateMonitorGroupByResourceGroupIdResponse_1 = require("./CreateMonitorGroupByResourceGroupIdResponse"); +Object.defineProperty(exports, "CreateMonitorGroupByResourceGroupIdResponse", { enumerable: true, get: function () { return CreateMonitorGroupByResourceGroupIdResponse_1.CreateMonitorGroupByResourceGroupIdResponse; } }); +var CreateMonitorGroupInstancesRequest_2 = require("./CreateMonitorGroupInstancesRequest"); +Object.defineProperty(exports, "CreateMonitorGroupInstancesRequest", { enumerable: true, get: function () { return CreateMonitorGroupInstancesRequest_2.CreateMonitorGroupInstancesRequest; } }); +var CreateMonitorGroupInstancesResponseBody_1 = require("./CreateMonitorGroupInstancesResponseBody"); +Object.defineProperty(exports, "CreateMonitorGroupInstancesResponseBody", { enumerable: true, get: function () { return CreateMonitorGroupInstancesResponseBody_1.CreateMonitorGroupInstancesResponseBody; } }); +var CreateMonitorGroupInstancesResponse_1 = require("./CreateMonitorGroupInstancesResponse"); +Object.defineProperty(exports, "CreateMonitorGroupInstancesResponse", { enumerable: true, get: function () { return CreateMonitorGroupInstancesResponse_1.CreateMonitorGroupInstancesResponse; } }); +var CreateMonitorGroupNotifyPolicyRequest_1 = require("./CreateMonitorGroupNotifyPolicyRequest"); +Object.defineProperty(exports, "CreateMonitorGroupNotifyPolicyRequest", { enumerable: true, get: function () { return CreateMonitorGroupNotifyPolicyRequest_1.CreateMonitorGroupNotifyPolicyRequest; } }); +var CreateMonitorGroupNotifyPolicyResponseBody_1 = require("./CreateMonitorGroupNotifyPolicyResponseBody"); +Object.defineProperty(exports, "CreateMonitorGroupNotifyPolicyResponseBody", { enumerable: true, get: function () { return CreateMonitorGroupNotifyPolicyResponseBody_1.CreateMonitorGroupNotifyPolicyResponseBody; } }); +var CreateMonitorGroupNotifyPolicyResponse_1 = require("./CreateMonitorGroupNotifyPolicyResponse"); +Object.defineProperty(exports, "CreateMonitorGroupNotifyPolicyResponse", { enumerable: true, get: function () { return CreateMonitorGroupNotifyPolicyResponse_1.CreateMonitorGroupNotifyPolicyResponse; } }); +var CreateMonitoringAgentProcessRequest_1 = require("./CreateMonitoringAgentProcessRequest"); +Object.defineProperty(exports, "CreateMonitoringAgentProcessRequest", { enumerable: true, get: function () { return CreateMonitoringAgentProcessRequest_1.CreateMonitoringAgentProcessRequest; } }); +var CreateMonitoringAgentProcessResponseBody_1 = require("./CreateMonitoringAgentProcessResponseBody"); +Object.defineProperty(exports, "CreateMonitoringAgentProcessResponseBody", { enumerable: true, get: function () { return CreateMonitoringAgentProcessResponseBody_1.CreateMonitoringAgentProcessResponseBody; } }); +var CreateMonitoringAgentProcessResponse_1 = require("./CreateMonitoringAgentProcessResponse"); +Object.defineProperty(exports, "CreateMonitoringAgentProcessResponse", { enumerable: true, get: function () { return CreateMonitoringAgentProcessResponse_1.CreateMonitoringAgentProcessResponse; } }); +var CreateSiteMonitorRequest_1 = require("./CreateSiteMonitorRequest"); +Object.defineProperty(exports, "CreateSiteMonitorRequest", { enumerable: true, get: function () { return CreateSiteMonitorRequest_1.CreateSiteMonitorRequest; } }); +var CreateSiteMonitorResponseBody_6 = require("./CreateSiteMonitorResponseBody"); +Object.defineProperty(exports, "CreateSiteMonitorResponseBody", { enumerable: true, get: function () { return CreateSiteMonitorResponseBody_6.CreateSiteMonitorResponseBody; } }); +var CreateSiteMonitorResponse_1 = require("./CreateSiteMonitorResponse"); +Object.defineProperty(exports, "CreateSiteMonitorResponse", { enumerable: true, get: function () { return CreateSiteMonitorResponse_1.CreateSiteMonitorResponse; } }); +var CursorRequest_1 = require("./CursorRequest"); +Object.defineProperty(exports, "CursorRequest", { enumerable: true, get: function () { return CursorRequest_1.CursorRequest; } }); +var CursorShrinkRequest_1 = require("./CursorShrinkRequest"); +Object.defineProperty(exports, "CursorShrinkRequest", { enumerable: true, get: function () { return CursorShrinkRequest_1.CursorShrinkRequest; } }); +var CursorResponseBody_1 = require("./CursorResponseBody"); +Object.defineProperty(exports, "CursorResponseBody", { enumerable: true, get: function () { return CursorResponseBody_1.CursorResponseBody; } }); +var CursorResponse_1 = require("./CursorResponse"); +Object.defineProperty(exports, "CursorResponse", { enumerable: true, get: function () { return CursorResponse_1.CursorResponse; } }); +var DeleteContactRequest_1 = require("./DeleteContactRequest"); +Object.defineProperty(exports, "DeleteContactRequest", { enumerable: true, get: function () { return DeleteContactRequest_1.DeleteContactRequest; } }); +var DeleteContactResponseBody_1 = require("./DeleteContactResponseBody"); +Object.defineProperty(exports, "DeleteContactResponseBody", { enumerable: true, get: function () { return DeleteContactResponseBody_1.DeleteContactResponseBody; } }); +var DeleteContactResponse_1 = require("./DeleteContactResponse"); +Object.defineProperty(exports, "DeleteContactResponse", { enumerable: true, get: function () { return DeleteContactResponse_1.DeleteContactResponse; } }); +var DeleteContactGroupRequest_1 = require("./DeleteContactGroupRequest"); +Object.defineProperty(exports, "DeleteContactGroupRequest", { enumerable: true, get: function () { return DeleteContactGroupRequest_1.DeleteContactGroupRequest; } }); +var DeleteContactGroupResponseBody_1 = require("./DeleteContactGroupResponseBody"); +Object.defineProperty(exports, "DeleteContactGroupResponseBody", { enumerable: true, get: function () { return DeleteContactGroupResponseBody_1.DeleteContactGroupResponseBody; } }); +var DeleteContactGroupResponse_1 = require("./DeleteContactGroupResponse"); +Object.defineProperty(exports, "DeleteContactGroupResponse", { enumerable: true, get: function () { return DeleteContactGroupResponse_1.DeleteContactGroupResponse; } }); +var DeleteCustomMetricRequest_1 = require("./DeleteCustomMetricRequest"); +Object.defineProperty(exports, "DeleteCustomMetricRequest", { enumerable: true, get: function () { return DeleteCustomMetricRequest_1.DeleteCustomMetricRequest; } }); +var DeleteCustomMetricResponseBody_1 = require("./DeleteCustomMetricResponseBody"); +Object.defineProperty(exports, "DeleteCustomMetricResponseBody", { enumerable: true, get: function () { return DeleteCustomMetricResponseBody_1.DeleteCustomMetricResponseBody; } }); +var DeleteCustomMetricResponse_1 = require("./DeleteCustomMetricResponse"); +Object.defineProperty(exports, "DeleteCustomMetricResponse", { enumerable: true, get: function () { return DeleteCustomMetricResponse_1.DeleteCustomMetricResponse; } }); +var DeleteDynamicTagGroupRequest_1 = require("./DeleteDynamicTagGroupRequest"); +Object.defineProperty(exports, "DeleteDynamicTagGroupRequest", { enumerable: true, get: function () { return DeleteDynamicTagGroupRequest_1.DeleteDynamicTagGroupRequest; } }); +var DeleteDynamicTagGroupResponseBody_1 = require("./DeleteDynamicTagGroupResponseBody"); +Object.defineProperty(exports, "DeleteDynamicTagGroupResponseBody", { enumerable: true, get: function () { return DeleteDynamicTagGroupResponseBody_1.DeleteDynamicTagGroupResponseBody; } }); +var DeleteDynamicTagGroupResponse_1 = require("./DeleteDynamicTagGroupResponse"); +Object.defineProperty(exports, "DeleteDynamicTagGroupResponse", { enumerable: true, get: function () { return DeleteDynamicTagGroupResponse_1.DeleteDynamicTagGroupResponse; } }); +var DeleteEventRuleTargetsRequest_1 = require("./DeleteEventRuleTargetsRequest"); +Object.defineProperty(exports, "DeleteEventRuleTargetsRequest", { enumerable: true, get: function () { return DeleteEventRuleTargetsRequest_1.DeleteEventRuleTargetsRequest; } }); +var DeleteEventRuleTargetsResponseBody_1 = require("./DeleteEventRuleTargetsResponseBody"); +Object.defineProperty(exports, "DeleteEventRuleTargetsResponseBody", { enumerable: true, get: function () { return DeleteEventRuleTargetsResponseBody_1.DeleteEventRuleTargetsResponseBody; } }); +var DeleteEventRuleTargetsResponse_1 = require("./DeleteEventRuleTargetsResponse"); +Object.defineProperty(exports, "DeleteEventRuleTargetsResponse", { enumerable: true, get: function () { return DeleteEventRuleTargetsResponse_1.DeleteEventRuleTargetsResponse; } }); +var DeleteEventRulesRequest_1 = require("./DeleteEventRulesRequest"); +Object.defineProperty(exports, "DeleteEventRulesRequest", { enumerable: true, get: function () { return DeleteEventRulesRequest_1.DeleteEventRulesRequest; } }); +var DeleteEventRulesResponseBody_1 = require("./DeleteEventRulesResponseBody"); +Object.defineProperty(exports, "DeleteEventRulesResponseBody", { enumerable: true, get: function () { return DeleteEventRulesResponseBody_1.DeleteEventRulesResponseBody; } }); +var DeleteEventRulesResponse_1 = require("./DeleteEventRulesResponse"); +Object.defineProperty(exports, "DeleteEventRulesResponse", { enumerable: true, get: function () { return DeleteEventRulesResponse_1.DeleteEventRulesResponse; } }); +var DeleteExporterOutputRequest_1 = require("./DeleteExporterOutputRequest"); +Object.defineProperty(exports, "DeleteExporterOutputRequest", { enumerable: true, get: function () { return DeleteExporterOutputRequest_1.DeleteExporterOutputRequest; } }); +var DeleteExporterOutputResponseBody_1 = require("./DeleteExporterOutputResponseBody"); +Object.defineProperty(exports, "DeleteExporterOutputResponseBody", { enumerable: true, get: function () { return DeleteExporterOutputResponseBody_1.DeleteExporterOutputResponseBody; } }); +var DeleteExporterOutputResponse_1 = require("./DeleteExporterOutputResponse"); +Object.defineProperty(exports, "DeleteExporterOutputResponse", { enumerable: true, get: function () { return DeleteExporterOutputResponse_1.DeleteExporterOutputResponse; } }); +var DeleteExporterRuleRequest_1 = require("./DeleteExporterRuleRequest"); +Object.defineProperty(exports, "DeleteExporterRuleRequest", { enumerable: true, get: function () { return DeleteExporterRuleRequest_1.DeleteExporterRuleRequest; } }); +var DeleteExporterRuleResponseBody_1 = require("./DeleteExporterRuleResponseBody"); +Object.defineProperty(exports, "DeleteExporterRuleResponseBody", { enumerable: true, get: function () { return DeleteExporterRuleResponseBody_1.DeleteExporterRuleResponseBody; } }); +var DeleteExporterRuleResponse_1 = require("./DeleteExporterRuleResponse"); +Object.defineProperty(exports, "DeleteExporterRuleResponse", { enumerable: true, get: function () { return DeleteExporterRuleResponse_1.DeleteExporterRuleResponse; } }); +var DeleteGroupMonitoringAgentProcessRequest_1 = require("./DeleteGroupMonitoringAgentProcessRequest"); +Object.defineProperty(exports, "DeleteGroupMonitoringAgentProcessRequest", { enumerable: true, get: function () { return DeleteGroupMonitoringAgentProcessRequest_1.DeleteGroupMonitoringAgentProcessRequest; } }); +var DeleteGroupMonitoringAgentProcessResponseBody_1 = require("./DeleteGroupMonitoringAgentProcessResponseBody"); +Object.defineProperty(exports, "DeleteGroupMonitoringAgentProcessResponseBody", { enumerable: true, get: function () { return DeleteGroupMonitoringAgentProcessResponseBody_1.DeleteGroupMonitoringAgentProcessResponseBody; } }); +var DeleteGroupMonitoringAgentProcessResponse_1 = require("./DeleteGroupMonitoringAgentProcessResponse"); +Object.defineProperty(exports, "DeleteGroupMonitoringAgentProcessResponse", { enumerable: true, get: function () { return DeleteGroupMonitoringAgentProcessResponse_1.DeleteGroupMonitoringAgentProcessResponse; } }); +var DeleteHostAvailabilityRequest_1 = require("./DeleteHostAvailabilityRequest"); +Object.defineProperty(exports, "DeleteHostAvailabilityRequest", { enumerable: true, get: function () { return DeleteHostAvailabilityRequest_1.DeleteHostAvailabilityRequest; } }); +var DeleteHostAvailabilityResponseBody_1 = require("./DeleteHostAvailabilityResponseBody"); +Object.defineProperty(exports, "DeleteHostAvailabilityResponseBody", { enumerable: true, get: function () { return DeleteHostAvailabilityResponseBody_1.DeleteHostAvailabilityResponseBody; } }); +var DeleteHostAvailabilityResponse_1 = require("./DeleteHostAvailabilityResponse"); +Object.defineProperty(exports, "DeleteHostAvailabilityResponse", { enumerable: true, get: function () { return DeleteHostAvailabilityResponse_1.DeleteHostAvailabilityResponse; } }); +var DeleteHybridMonitorNamespaceRequest_1 = require("./DeleteHybridMonitorNamespaceRequest"); +Object.defineProperty(exports, "DeleteHybridMonitorNamespaceRequest", { enumerable: true, get: function () { return DeleteHybridMonitorNamespaceRequest_1.DeleteHybridMonitorNamespaceRequest; } }); +var DeleteHybridMonitorNamespaceResponseBody_1 = require("./DeleteHybridMonitorNamespaceResponseBody"); +Object.defineProperty(exports, "DeleteHybridMonitorNamespaceResponseBody", { enumerable: true, get: function () { return DeleteHybridMonitorNamespaceResponseBody_1.DeleteHybridMonitorNamespaceResponseBody; } }); +var DeleteHybridMonitorNamespaceResponse_1 = require("./DeleteHybridMonitorNamespaceResponse"); +Object.defineProperty(exports, "DeleteHybridMonitorNamespaceResponse", { enumerable: true, get: function () { return DeleteHybridMonitorNamespaceResponse_1.DeleteHybridMonitorNamespaceResponse; } }); +var DeleteHybridMonitorSlsgroupRequest_1 = require("./DeleteHybridMonitorSlsgroupRequest"); +Object.defineProperty(exports, "DeleteHybridMonitorSLSGroupRequest", { enumerable: true, get: function () { return DeleteHybridMonitorSlsgroupRequest_1.DeleteHybridMonitorSLSGroupRequest; } }); +var DeleteHybridMonitorSlsgroupResponseBody_1 = require("./DeleteHybridMonitorSlsgroupResponseBody"); +Object.defineProperty(exports, "DeleteHybridMonitorSLSGroupResponseBody", { enumerable: true, get: function () { return DeleteHybridMonitorSlsgroupResponseBody_1.DeleteHybridMonitorSLSGroupResponseBody; } }); +var DeleteHybridMonitorSlsgroupResponse_1 = require("./DeleteHybridMonitorSlsgroupResponse"); +Object.defineProperty(exports, "DeleteHybridMonitorSLSGroupResponse", { enumerable: true, get: function () { return DeleteHybridMonitorSlsgroupResponse_1.DeleteHybridMonitorSLSGroupResponse; } }); +var DeleteHybridMonitorTaskRequest_1 = require("./DeleteHybridMonitorTaskRequest"); +Object.defineProperty(exports, "DeleteHybridMonitorTaskRequest", { enumerable: true, get: function () { return DeleteHybridMonitorTaskRequest_1.DeleteHybridMonitorTaskRequest; } }); +var DeleteHybridMonitorTaskResponseBody_1 = require("./DeleteHybridMonitorTaskResponseBody"); +Object.defineProperty(exports, "DeleteHybridMonitorTaskResponseBody", { enumerable: true, get: function () { return DeleteHybridMonitorTaskResponseBody_1.DeleteHybridMonitorTaskResponseBody; } }); +var DeleteHybridMonitorTaskResponse_1 = require("./DeleteHybridMonitorTaskResponse"); +Object.defineProperty(exports, "DeleteHybridMonitorTaskResponse", { enumerable: true, get: function () { return DeleteHybridMonitorTaskResponse_1.DeleteHybridMonitorTaskResponse; } }); +var DeleteLogMonitorRequest_1 = require("./DeleteLogMonitorRequest"); +Object.defineProperty(exports, "DeleteLogMonitorRequest", { enumerable: true, get: function () { return DeleteLogMonitorRequest_1.DeleteLogMonitorRequest; } }); +var DeleteLogMonitorResponseBody_1 = require("./DeleteLogMonitorResponseBody"); +Object.defineProperty(exports, "DeleteLogMonitorResponseBody", { enumerable: true, get: function () { return DeleteLogMonitorResponseBody_1.DeleteLogMonitorResponseBody; } }); +var DeleteLogMonitorResponse_1 = require("./DeleteLogMonitorResponse"); +Object.defineProperty(exports, "DeleteLogMonitorResponse", { enumerable: true, get: function () { return DeleteLogMonitorResponse_1.DeleteLogMonitorResponse; } }); +var DeleteMetricRuleBlackListRequest_1 = require("./DeleteMetricRuleBlackListRequest"); +Object.defineProperty(exports, "DeleteMetricRuleBlackListRequest", { enumerable: true, get: function () { return DeleteMetricRuleBlackListRequest_1.DeleteMetricRuleBlackListRequest; } }); +var DeleteMetricRuleBlackListResponseBody_1 = require("./DeleteMetricRuleBlackListResponseBody"); +Object.defineProperty(exports, "DeleteMetricRuleBlackListResponseBody", { enumerable: true, get: function () { return DeleteMetricRuleBlackListResponseBody_1.DeleteMetricRuleBlackListResponseBody; } }); +var DeleteMetricRuleBlackListResponse_1 = require("./DeleteMetricRuleBlackListResponse"); +Object.defineProperty(exports, "DeleteMetricRuleBlackListResponse", { enumerable: true, get: function () { return DeleteMetricRuleBlackListResponse_1.DeleteMetricRuleBlackListResponse; } }); +var DeleteMetricRuleResourcesRequest_1 = require("./DeleteMetricRuleResourcesRequest"); +Object.defineProperty(exports, "DeleteMetricRuleResourcesRequest", { enumerable: true, get: function () { return DeleteMetricRuleResourcesRequest_1.DeleteMetricRuleResourcesRequest; } }); +var DeleteMetricRuleResourcesResponseBody_1 = require("./DeleteMetricRuleResourcesResponseBody"); +Object.defineProperty(exports, "DeleteMetricRuleResourcesResponseBody", { enumerable: true, get: function () { return DeleteMetricRuleResourcesResponseBody_1.DeleteMetricRuleResourcesResponseBody; } }); +var DeleteMetricRuleResourcesResponse_1 = require("./DeleteMetricRuleResourcesResponse"); +Object.defineProperty(exports, "DeleteMetricRuleResourcesResponse", { enumerable: true, get: function () { return DeleteMetricRuleResourcesResponse_1.DeleteMetricRuleResourcesResponse; } }); +var DeleteMetricRuleTargetsRequest_1 = require("./DeleteMetricRuleTargetsRequest"); +Object.defineProperty(exports, "DeleteMetricRuleTargetsRequest", { enumerable: true, get: function () { return DeleteMetricRuleTargetsRequest_1.DeleteMetricRuleTargetsRequest; } }); +var DeleteMetricRuleTargetsResponseBody_3 = require("./DeleteMetricRuleTargetsResponseBody"); +Object.defineProperty(exports, "DeleteMetricRuleTargetsResponseBody", { enumerable: true, get: function () { return DeleteMetricRuleTargetsResponseBody_3.DeleteMetricRuleTargetsResponseBody; } }); +var DeleteMetricRuleTargetsResponse_1 = require("./DeleteMetricRuleTargetsResponse"); +Object.defineProperty(exports, "DeleteMetricRuleTargetsResponse", { enumerable: true, get: function () { return DeleteMetricRuleTargetsResponse_1.DeleteMetricRuleTargetsResponse; } }); +var DeleteMetricRuleTemplateRequest_1 = require("./DeleteMetricRuleTemplateRequest"); +Object.defineProperty(exports, "DeleteMetricRuleTemplateRequest", { enumerable: true, get: function () { return DeleteMetricRuleTemplateRequest_1.DeleteMetricRuleTemplateRequest; } }); +var DeleteMetricRuleTemplateResponseBody_2 = require("./DeleteMetricRuleTemplateResponseBody"); +Object.defineProperty(exports, "DeleteMetricRuleTemplateResponseBody", { enumerable: true, get: function () { return DeleteMetricRuleTemplateResponseBody_2.DeleteMetricRuleTemplateResponseBody; } }); +var DeleteMetricRuleTemplateResponse_1 = require("./DeleteMetricRuleTemplateResponse"); +Object.defineProperty(exports, "DeleteMetricRuleTemplateResponse", { enumerable: true, get: function () { return DeleteMetricRuleTemplateResponse_1.DeleteMetricRuleTemplateResponse; } }); +var DeleteMetricRulesRequest_1 = require("./DeleteMetricRulesRequest"); +Object.defineProperty(exports, "DeleteMetricRulesRequest", { enumerable: true, get: function () { return DeleteMetricRulesRequest_1.DeleteMetricRulesRequest; } }); +var DeleteMetricRulesResponseBody_1 = require("./DeleteMetricRulesResponseBody"); +Object.defineProperty(exports, "DeleteMetricRulesResponseBody", { enumerable: true, get: function () { return DeleteMetricRulesResponseBody_1.DeleteMetricRulesResponseBody; } }); +var DeleteMetricRulesResponse_1 = require("./DeleteMetricRulesResponse"); +Object.defineProperty(exports, "DeleteMetricRulesResponse", { enumerable: true, get: function () { return DeleteMetricRulesResponse_1.DeleteMetricRulesResponse; } }); +var DeleteMonitorGroupRequest_1 = require("./DeleteMonitorGroupRequest"); +Object.defineProperty(exports, "DeleteMonitorGroupRequest", { enumerable: true, get: function () { return DeleteMonitorGroupRequest_1.DeleteMonitorGroupRequest; } }); +var DeleteMonitorGroupResponseBody_4 = require("./DeleteMonitorGroupResponseBody"); +Object.defineProperty(exports, "DeleteMonitorGroupResponseBody", { enumerable: true, get: function () { return DeleteMonitorGroupResponseBody_4.DeleteMonitorGroupResponseBody; } }); +var DeleteMonitorGroupResponse_1 = require("./DeleteMonitorGroupResponse"); +Object.defineProperty(exports, "DeleteMonitorGroupResponse", { enumerable: true, get: function () { return DeleteMonitorGroupResponse_1.DeleteMonitorGroupResponse; } }); +var DeleteMonitorGroupDynamicRuleRequest_1 = require("./DeleteMonitorGroupDynamicRuleRequest"); +Object.defineProperty(exports, "DeleteMonitorGroupDynamicRuleRequest", { enumerable: true, get: function () { return DeleteMonitorGroupDynamicRuleRequest_1.DeleteMonitorGroupDynamicRuleRequest; } }); +var DeleteMonitorGroupDynamicRuleResponseBody_1 = require("./DeleteMonitorGroupDynamicRuleResponseBody"); +Object.defineProperty(exports, "DeleteMonitorGroupDynamicRuleResponseBody", { enumerable: true, get: function () { return DeleteMonitorGroupDynamicRuleResponseBody_1.DeleteMonitorGroupDynamicRuleResponseBody; } }); +var DeleteMonitorGroupDynamicRuleResponse_1 = require("./DeleteMonitorGroupDynamicRuleResponse"); +Object.defineProperty(exports, "DeleteMonitorGroupDynamicRuleResponse", { enumerable: true, get: function () { return DeleteMonitorGroupDynamicRuleResponse_1.DeleteMonitorGroupDynamicRuleResponse; } }); +var DeleteMonitorGroupInstancesRequest_1 = require("./DeleteMonitorGroupInstancesRequest"); +Object.defineProperty(exports, "DeleteMonitorGroupInstancesRequest", { enumerable: true, get: function () { return DeleteMonitorGroupInstancesRequest_1.DeleteMonitorGroupInstancesRequest; } }); +var DeleteMonitorGroupInstancesResponseBody_1 = require("./DeleteMonitorGroupInstancesResponseBody"); +Object.defineProperty(exports, "DeleteMonitorGroupInstancesResponseBody", { enumerable: true, get: function () { return DeleteMonitorGroupInstancesResponseBody_1.DeleteMonitorGroupInstancesResponseBody; } }); +var DeleteMonitorGroupInstancesResponse_1 = require("./DeleteMonitorGroupInstancesResponse"); +Object.defineProperty(exports, "DeleteMonitorGroupInstancesResponse", { enumerable: true, get: function () { return DeleteMonitorGroupInstancesResponse_1.DeleteMonitorGroupInstancesResponse; } }); +var DeleteMonitorGroupNotifyPolicyRequest_1 = require("./DeleteMonitorGroupNotifyPolicyRequest"); +Object.defineProperty(exports, "DeleteMonitorGroupNotifyPolicyRequest", { enumerable: true, get: function () { return DeleteMonitorGroupNotifyPolicyRequest_1.DeleteMonitorGroupNotifyPolicyRequest; } }); +var DeleteMonitorGroupNotifyPolicyResponseBody_1 = require("./DeleteMonitorGroupNotifyPolicyResponseBody"); +Object.defineProperty(exports, "DeleteMonitorGroupNotifyPolicyResponseBody", { enumerable: true, get: function () { return DeleteMonitorGroupNotifyPolicyResponseBody_1.DeleteMonitorGroupNotifyPolicyResponseBody; } }); +var DeleteMonitorGroupNotifyPolicyResponse_1 = require("./DeleteMonitorGroupNotifyPolicyResponse"); +Object.defineProperty(exports, "DeleteMonitorGroupNotifyPolicyResponse", { enumerable: true, get: function () { return DeleteMonitorGroupNotifyPolicyResponse_1.DeleteMonitorGroupNotifyPolicyResponse; } }); +var DeleteMonitoringAgentProcessRequest_1 = require("./DeleteMonitoringAgentProcessRequest"); +Object.defineProperty(exports, "DeleteMonitoringAgentProcessRequest", { enumerable: true, get: function () { return DeleteMonitoringAgentProcessRequest_1.DeleteMonitoringAgentProcessRequest; } }); +var DeleteMonitoringAgentProcessResponseBody_1 = require("./DeleteMonitoringAgentProcessResponseBody"); +Object.defineProperty(exports, "DeleteMonitoringAgentProcessResponseBody", { enumerable: true, get: function () { return DeleteMonitoringAgentProcessResponseBody_1.DeleteMonitoringAgentProcessResponseBody; } }); +var DeleteMonitoringAgentProcessResponse_1 = require("./DeleteMonitoringAgentProcessResponse"); +Object.defineProperty(exports, "DeleteMonitoringAgentProcessResponse", { enumerable: true, get: function () { return DeleteMonitoringAgentProcessResponse_1.DeleteMonitoringAgentProcessResponse; } }); +var DeleteSiteMonitorsRequest_1 = require("./DeleteSiteMonitorsRequest"); +Object.defineProperty(exports, "DeleteSiteMonitorsRequest", { enumerable: true, get: function () { return DeleteSiteMonitorsRequest_1.DeleteSiteMonitorsRequest; } }); +var DeleteSiteMonitorsResponseBody_2 = require("./DeleteSiteMonitorsResponseBody"); +Object.defineProperty(exports, "DeleteSiteMonitorsResponseBody", { enumerable: true, get: function () { return DeleteSiteMonitorsResponseBody_2.DeleteSiteMonitorsResponseBody; } }); +var DeleteSiteMonitorsResponse_1 = require("./DeleteSiteMonitorsResponse"); +Object.defineProperty(exports, "DeleteSiteMonitorsResponse", { enumerable: true, get: function () { return DeleteSiteMonitorsResponse_1.DeleteSiteMonitorsResponse; } }); +var DescribeActiveMetricRuleListRequest_1 = require("./DescribeActiveMetricRuleListRequest"); +Object.defineProperty(exports, "DescribeActiveMetricRuleListRequest", { enumerable: true, get: function () { return DescribeActiveMetricRuleListRequest_1.DescribeActiveMetricRuleListRequest; } }); +var DescribeActiveMetricRuleListResponseBody_9 = require("./DescribeActiveMetricRuleListResponseBody"); +Object.defineProperty(exports, "DescribeActiveMetricRuleListResponseBody", { enumerable: true, get: function () { return DescribeActiveMetricRuleListResponseBody_9.DescribeActiveMetricRuleListResponseBody; } }); +var DescribeActiveMetricRuleListResponse_1 = require("./DescribeActiveMetricRuleListResponse"); +Object.defineProperty(exports, "DescribeActiveMetricRuleListResponse", { enumerable: true, get: function () { return DescribeActiveMetricRuleListResponse_1.DescribeActiveMetricRuleListResponse; } }); +var DescribeAlertHistoryListRequest_1 = require("./DescribeAlertHistoryListRequest"); +Object.defineProperty(exports, "DescribeAlertHistoryListRequest", { enumerable: true, get: function () { return DescribeAlertHistoryListRequest_1.DescribeAlertHistoryListRequest; } }); +var DescribeAlertHistoryListResponseBody_8 = require("./DescribeAlertHistoryListResponseBody"); +Object.defineProperty(exports, "DescribeAlertHistoryListResponseBody", { enumerable: true, get: function () { return DescribeAlertHistoryListResponseBody_8.DescribeAlertHistoryListResponseBody; } }); +var DescribeAlertHistoryListResponse_1 = require("./DescribeAlertHistoryListResponse"); +Object.defineProperty(exports, "DescribeAlertHistoryListResponse", { enumerable: true, get: function () { return DescribeAlertHistoryListResponse_1.DescribeAlertHistoryListResponse; } }); +var DescribeAlertLogCountRequest_1 = require("./DescribeAlertLogCountRequest"); +Object.defineProperty(exports, "DescribeAlertLogCountRequest", { enumerable: true, get: function () { return DescribeAlertLogCountRequest_1.DescribeAlertLogCountRequest; } }); +var DescribeAlertLogCountResponseBody_3 = require("./DescribeAlertLogCountResponseBody"); +Object.defineProperty(exports, "DescribeAlertLogCountResponseBody", { enumerable: true, get: function () { return DescribeAlertLogCountResponseBody_3.DescribeAlertLogCountResponseBody; } }); +var DescribeAlertLogCountResponse_1 = require("./DescribeAlertLogCountResponse"); +Object.defineProperty(exports, "DescribeAlertLogCountResponse", { enumerable: true, get: function () { return DescribeAlertLogCountResponse_1.DescribeAlertLogCountResponse; } }); +var DescribeAlertLogHistogramRequest_1 = require("./DescribeAlertLogHistogramRequest"); +Object.defineProperty(exports, "DescribeAlertLogHistogramRequest", { enumerable: true, get: function () { return DescribeAlertLogHistogramRequest_1.DescribeAlertLogHistogramRequest; } }); +var DescribeAlertLogHistogramResponseBody_2 = require("./DescribeAlertLogHistogramResponseBody"); +Object.defineProperty(exports, "DescribeAlertLogHistogramResponseBody", { enumerable: true, get: function () { return DescribeAlertLogHistogramResponseBody_2.DescribeAlertLogHistogramResponseBody; } }); +var DescribeAlertLogHistogramResponse_1 = require("./DescribeAlertLogHistogramResponse"); +Object.defineProperty(exports, "DescribeAlertLogHistogramResponse", { enumerable: true, get: function () { return DescribeAlertLogHistogramResponse_1.DescribeAlertLogHistogramResponse; } }); +var DescribeAlertLogListRequest_1 = require("./DescribeAlertLogListRequest"); +Object.defineProperty(exports, "DescribeAlertLogListRequest", { enumerable: true, get: function () { return DescribeAlertLogListRequest_1.DescribeAlertLogListRequest; } }); +var DescribeAlertLogListResponseBody_10 = require("./DescribeAlertLogListResponseBody"); +Object.defineProperty(exports, "DescribeAlertLogListResponseBody", { enumerable: true, get: function () { return DescribeAlertLogListResponseBody_10.DescribeAlertLogListResponseBody; } }); +var DescribeAlertLogListResponse_1 = require("./DescribeAlertLogListResponse"); +Object.defineProperty(exports, "DescribeAlertLogListResponse", { enumerable: true, get: function () { return DescribeAlertLogListResponse_1.DescribeAlertLogListResponse; } }); +var DescribeAlertingMetricRuleResourcesRequest_1 = require("./DescribeAlertingMetricRuleResourcesRequest"); +Object.defineProperty(exports, "DescribeAlertingMetricRuleResourcesRequest", { enumerable: true, get: function () { return DescribeAlertingMetricRuleResourcesRequest_1.DescribeAlertingMetricRuleResourcesRequest; } }); +var DescribeAlertingMetricRuleResourcesResponseBody_7 = require("./DescribeAlertingMetricRuleResourcesResponseBody"); +Object.defineProperty(exports, "DescribeAlertingMetricRuleResourcesResponseBody", { enumerable: true, get: function () { return DescribeAlertingMetricRuleResourcesResponseBody_7.DescribeAlertingMetricRuleResourcesResponseBody; } }); +var DescribeAlertingMetricRuleResourcesResponse_1 = require("./DescribeAlertingMetricRuleResourcesResponse"); +Object.defineProperty(exports, "DescribeAlertingMetricRuleResourcesResponse", { enumerable: true, get: function () { return DescribeAlertingMetricRuleResourcesResponse_1.DescribeAlertingMetricRuleResourcesResponse; } }); +var DescribeContactGroupListRequest_1 = require("./DescribeContactGroupListRequest"); +Object.defineProperty(exports, "DescribeContactGroupListRequest", { enumerable: true, get: function () { return DescribeContactGroupListRequest_1.DescribeContactGroupListRequest; } }); +var DescribeContactGroupListResponseBody_5 = require("./DescribeContactGroupListResponseBody"); +Object.defineProperty(exports, "DescribeContactGroupListResponseBody", { enumerable: true, get: function () { return DescribeContactGroupListResponseBody_5.DescribeContactGroupListResponseBody; } }); +var DescribeContactGroupListResponse_1 = require("./DescribeContactGroupListResponse"); +Object.defineProperty(exports, "DescribeContactGroupListResponse", { enumerable: true, get: function () { return DescribeContactGroupListResponse_1.DescribeContactGroupListResponse; } }); +var DescribeContactListRequest_1 = require("./DescribeContactListRequest"); +Object.defineProperty(exports, "DescribeContactListRequest", { enumerable: true, get: function () { return DescribeContactListRequest_1.DescribeContactListRequest; } }); +var DescribeContactListResponseBody_6 = require("./DescribeContactListResponseBody"); +Object.defineProperty(exports, "DescribeContactListResponseBody", { enumerable: true, get: function () { return DescribeContactListResponseBody_6.DescribeContactListResponseBody; } }); +var DescribeContactListResponse_1 = require("./DescribeContactListResponse"); +Object.defineProperty(exports, "DescribeContactListResponse", { enumerable: true, get: function () { return DescribeContactListResponse_1.DescribeContactListResponse; } }); +var DescribeContactListByContactGroupRequest_1 = require("./DescribeContactListByContactGroupRequest"); +Object.defineProperty(exports, "DescribeContactListByContactGroupRequest", { enumerable: true, get: function () { return DescribeContactListByContactGroupRequest_1.DescribeContactListByContactGroupRequest; } }); +var DescribeContactListByContactGroupResponseBody_4 = require("./DescribeContactListByContactGroupResponseBody"); +Object.defineProperty(exports, "DescribeContactListByContactGroupResponseBody", { enumerable: true, get: function () { return DescribeContactListByContactGroupResponseBody_4.DescribeContactListByContactGroupResponseBody; } }); +var DescribeContactListByContactGroupResponse_1 = require("./DescribeContactListByContactGroupResponse"); +Object.defineProperty(exports, "DescribeContactListByContactGroupResponse", { enumerable: true, get: function () { return DescribeContactListByContactGroupResponse_1.DescribeContactListByContactGroupResponse; } }); +var DescribeCustomEventAttributeRequest_1 = require("./DescribeCustomEventAttributeRequest"); +Object.defineProperty(exports, "DescribeCustomEventAttributeRequest", { enumerable: true, get: function () { return DescribeCustomEventAttributeRequest_1.DescribeCustomEventAttributeRequest; } }); +var DescribeCustomEventAttributeResponseBody_3 = require("./DescribeCustomEventAttributeResponseBody"); +Object.defineProperty(exports, "DescribeCustomEventAttributeResponseBody", { enumerable: true, get: function () { return DescribeCustomEventAttributeResponseBody_3.DescribeCustomEventAttributeResponseBody; } }); +var DescribeCustomEventAttributeResponse_1 = require("./DescribeCustomEventAttributeResponse"); +Object.defineProperty(exports, "DescribeCustomEventAttributeResponse", { enumerable: true, get: function () { return DescribeCustomEventAttributeResponse_1.DescribeCustomEventAttributeResponse; } }); +var DescribeCustomEventCountRequest_1 = require("./DescribeCustomEventCountRequest"); +Object.defineProperty(exports, "DescribeCustomEventCountRequest", { enumerable: true, get: function () { return DescribeCustomEventCountRequest_1.DescribeCustomEventCountRequest; } }); +var DescribeCustomEventCountResponseBody_3 = require("./DescribeCustomEventCountResponseBody"); +Object.defineProperty(exports, "DescribeCustomEventCountResponseBody", { enumerable: true, get: function () { return DescribeCustomEventCountResponseBody_3.DescribeCustomEventCountResponseBody; } }); +var DescribeCustomEventCountResponse_1 = require("./DescribeCustomEventCountResponse"); +Object.defineProperty(exports, "DescribeCustomEventCountResponse", { enumerable: true, get: function () { return DescribeCustomEventCountResponse_1.DescribeCustomEventCountResponse; } }); +var DescribeCustomEventHistogramRequest_1 = require("./DescribeCustomEventHistogramRequest"); +Object.defineProperty(exports, "DescribeCustomEventHistogramRequest", { enumerable: true, get: function () { return DescribeCustomEventHistogramRequest_1.DescribeCustomEventHistogramRequest; } }); +var DescribeCustomEventHistogramResponseBody_3 = require("./DescribeCustomEventHistogramResponseBody"); +Object.defineProperty(exports, "DescribeCustomEventHistogramResponseBody", { enumerable: true, get: function () { return DescribeCustomEventHistogramResponseBody_3.DescribeCustomEventHistogramResponseBody; } }); +var DescribeCustomEventHistogramResponse_1 = require("./DescribeCustomEventHistogramResponse"); +Object.defineProperty(exports, "DescribeCustomEventHistogramResponse", { enumerable: true, get: function () { return DescribeCustomEventHistogramResponse_1.DescribeCustomEventHistogramResponse; } }); +var DescribeCustomMetricListRequest_1 = require("./DescribeCustomMetricListRequest"); +Object.defineProperty(exports, "DescribeCustomMetricListRequest", { enumerable: true, get: function () { return DescribeCustomMetricListRequest_1.DescribeCustomMetricListRequest; } }); +var DescribeCustomMetricListResponseBody_1 = require("./DescribeCustomMetricListResponseBody"); +Object.defineProperty(exports, "DescribeCustomMetricListResponseBody", { enumerable: true, get: function () { return DescribeCustomMetricListResponseBody_1.DescribeCustomMetricListResponseBody; } }); +var DescribeCustomMetricListResponse_1 = require("./DescribeCustomMetricListResponse"); +Object.defineProperty(exports, "DescribeCustomMetricListResponse", { enumerable: true, get: function () { return DescribeCustomMetricListResponse_1.DescribeCustomMetricListResponse; } }); +var DescribeDynamicTagRuleListRequest_1 = require("./DescribeDynamicTagRuleListRequest"); +Object.defineProperty(exports, "DescribeDynamicTagRuleListRequest", { enumerable: true, get: function () { return DescribeDynamicTagRuleListRequest_1.DescribeDynamicTagRuleListRequest; } }); +var DescribeDynamicTagRuleListResponseBody_8 = require("./DescribeDynamicTagRuleListResponseBody"); +Object.defineProperty(exports, "DescribeDynamicTagRuleListResponseBody", { enumerable: true, get: function () { return DescribeDynamicTagRuleListResponseBody_8.DescribeDynamicTagRuleListResponseBody; } }); +var DescribeDynamicTagRuleListResponse_1 = require("./DescribeDynamicTagRuleListResponse"); +Object.defineProperty(exports, "DescribeDynamicTagRuleListResponse", { enumerable: true, get: function () { return DescribeDynamicTagRuleListResponse_1.DescribeDynamicTagRuleListResponse; } }); +var DescribeEventRuleAttributeRequest_1 = require("./DescribeEventRuleAttributeRequest"); +Object.defineProperty(exports, "DescribeEventRuleAttributeRequest", { enumerable: true, get: function () { return DescribeEventRuleAttributeRequest_1.DescribeEventRuleAttributeRequest; } }); +var DescribeEventRuleAttributeResponseBody_9 = require("./DescribeEventRuleAttributeResponseBody"); +Object.defineProperty(exports, "DescribeEventRuleAttributeResponseBody", { enumerable: true, get: function () { return DescribeEventRuleAttributeResponseBody_9.DescribeEventRuleAttributeResponseBody; } }); +var DescribeEventRuleAttributeResponse_1 = require("./DescribeEventRuleAttributeResponse"); +Object.defineProperty(exports, "DescribeEventRuleAttributeResponse", { enumerable: true, get: function () { return DescribeEventRuleAttributeResponse_1.DescribeEventRuleAttributeResponse; } }); +var DescribeEventRuleListRequest_1 = require("./DescribeEventRuleListRequest"); +Object.defineProperty(exports, "DescribeEventRuleListRequest", { enumerable: true, get: function () { return DescribeEventRuleListRequest_1.DescribeEventRuleListRequest; } }); +var DescribeEventRuleListResponseBody_10 = require("./DescribeEventRuleListResponseBody"); +Object.defineProperty(exports, "DescribeEventRuleListResponseBody", { enumerable: true, get: function () { return DescribeEventRuleListResponseBody_10.DescribeEventRuleListResponseBody; } }); +var DescribeEventRuleListResponse_1 = require("./DescribeEventRuleListResponse"); +Object.defineProperty(exports, "DescribeEventRuleListResponse", { enumerable: true, get: function () { return DescribeEventRuleListResponse_1.DescribeEventRuleListResponse; } }); +var DescribeEventRuleTargetListRequest_1 = require("./DescribeEventRuleTargetListRequest"); +Object.defineProperty(exports, "DescribeEventRuleTargetListRequest", { enumerable: true, get: function () { return DescribeEventRuleTargetListRequest_1.DescribeEventRuleTargetListRequest; } }); +var DescribeEventRuleTargetListResponseBody_13 = require("./DescribeEventRuleTargetListResponseBody"); +Object.defineProperty(exports, "DescribeEventRuleTargetListResponseBody", { enumerable: true, get: function () { return DescribeEventRuleTargetListResponseBody_13.DescribeEventRuleTargetListResponseBody; } }); +var DescribeEventRuleTargetListResponse_1 = require("./DescribeEventRuleTargetListResponse"); +Object.defineProperty(exports, "DescribeEventRuleTargetListResponse", { enumerable: true, get: function () { return DescribeEventRuleTargetListResponse_1.DescribeEventRuleTargetListResponse; } }); +var DescribeExporterOutputListRequest_1 = require("./DescribeExporterOutputListRequest"); +Object.defineProperty(exports, "DescribeExporterOutputListRequest", { enumerable: true, get: function () { return DescribeExporterOutputListRequest_1.DescribeExporterOutputListRequest; } }); +var DescribeExporterOutputListResponseBody_4 = require("./DescribeExporterOutputListResponseBody"); +Object.defineProperty(exports, "DescribeExporterOutputListResponseBody", { enumerable: true, get: function () { return DescribeExporterOutputListResponseBody_4.DescribeExporterOutputListResponseBody; } }); +var DescribeExporterOutputListResponse_1 = require("./DescribeExporterOutputListResponse"); +Object.defineProperty(exports, "DescribeExporterOutputListResponse", { enumerable: true, get: function () { return DescribeExporterOutputListResponse_1.DescribeExporterOutputListResponse; } }); +var DescribeExporterRuleListRequest_1 = require("./DescribeExporterRuleListRequest"); +Object.defineProperty(exports, "DescribeExporterRuleListRequest", { enumerable: true, get: function () { return DescribeExporterRuleListRequest_1.DescribeExporterRuleListRequest; } }); +var DescribeExporterRuleListResponseBody_4 = require("./DescribeExporterRuleListResponseBody"); +Object.defineProperty(exports, "DescribeExporterRuleListResponseBody", { enumerable: true, get: function () { return DescribeExporterRuleListResponseBody_4.DescribeExporterRuleListResponseBody; } }); +var DescribeExporterRuleListResponse_1 = require("./DescribeExporterRuleListResponse"); +Object.defineProperty(exports, "DescribeExporterRuleListResponse", { enumerable: true, get: function () { return DescribeExporterRuleListResponse_1.DescribeExporterRuleListResponse; } }); +var DescribeGroupMonitoringAgentProcessRequest_1 = require("./DescribeGroupMonitoringAgentProcessRequest"); +Object.defineProperty(exports, "DescribeGroupMonitoringAgentProcessRequest", { enumerable: true, get: function () { return DescribeGroupMonitoringAgentProcessRequest_1.DescribeGroupMonitoringAgentProcessRequest; } }); +var DescribeGroupMonitoringAgentProcessResponseBody_9 = require("./DescribeGroupMonitoringAgentProcessResponseBody"); +Object.defineProperty(exports, "DescribeGroupMonitoringAgentProcessResponseBody", { enumerable: true, get: function () { return DescribeGroupMonitoringAgentProcessResponseBody_9.DescribeGroupMonitoringAgentProcessResponseBody; } }); +var DescribeGroupMonitoringAgentProcessResponse_1 = require("./DescribeGroupMonitoringAgentProcessResponse"); +Object.defineProperty(exports, "DescribeGroupMonitoringAgentProcessResponse", { enumerable: true, get: function () { return DescribeGroupMonitoringAgentProcessResponse_1.DescribeGroupMonitoringAgentProcessResponse; } }); +var DescribeHostAvailabilityListRequest_1 = require("./DescribeHostAvailabilityListRequest"); +Object.defineProperty(exports, "DescribeHostAvailabilityListRequest", { enumerable: true, get: function () { return DescribeHostAvailabilityListRequest_1.DescribeHostAvailabilityListRequest; } }); +var DescribeHostAvailabilityListResponseBody_10 = require("./DescribeHostAvailabilityListResponseBody"); +Object.defineProperty(exports, "DescribeHostAvailabilityListResponseBody", { enumerable: true, get: function () { return DescribeHostAvailabilityListResponseBody_10.DescribeHostAvailabilityListResponseBody; } }); +var DescribeHostAvailabilityListResponse_1 = require("./DescribeHostAvailabilityListResponse"); +Object.defineProperty(exports, "DescribeHostAvailabilityListResponse", { enumerable: true, get: function () { return DescribeHostAvailabilityListResponse_1.DescribeHostAvailabilityListResponse; } }); +var DescribeHybridMonitorDataListRequest_1 = require("./DescribeHybridMonitorDataListRequest"); +Object.defineProperty(exports, "DescribeHybridMonitorDataListRequest", { enumerable: true, get: function () { return DescribeHybridMonitorDataListRequest_1.DescribeHybridMonitorDataListRequest; } }); +var DescribeHybridMonitorDataListResponseBody_4 = require("./DescribeHybridMonitorDataListResponseBody"); +Object.defineProperty(exports, "DescribeHybridMonitorDataListResponseBody", { enumerable: true, get: function () { return DescribeHybridMonitorDataListResponseBody_4.DescribeHybridMonitorDataListResponseBody; } }); +var DescribeHybridMonitorDataListResponse_1 = require("./DescribeHybridMonitorDataListResponse"); +Object.defineProperty(exports, "DescribeHybridMonitorDataListResponse", { enumerable: true, get: function () { return DescribeHybridMonitorDataListResponse_1.DescribeHybridMonitorDataListResponse; } }); +var DescribeHybridMonitorNamespaceListRequest_1 = require("./DescribeHybridMonitorNamespaceListRequest"); +Object.defineProperty(exports, "DescribeHybridMonitorNamespaceListRequest", { enumerable: true, get: function () { return DescribeHybridMonitorNamespaceListRequest_1.DescribeHybridMonitorNamespaceListRequest; } }); +var DescribeHybridMonitorNamespaceListResponseBody_6 = require("./DescribeHybridMonitorNamespaceListResponseBody"); +Object.defineProperty(exports, "DescribeHybridMonitorNamespaceListResponseBody", { enumerable: true, get: function () { return DescribeHybridMonitorNamespaceListResponseBody_6.DescribeHybridMonitorNamespaceListResponseBody; } }); +var DescribeHybridMonitorNamespaceListResponse_1 = require("./DescribeHybridMonitorNamespaceListResponse"); +Object.defineProperty(exports, "DescribeHybridMonitorNamespaceListResponse", { enumerable: true, get: function () { return DescribeHybridMonitorNamespaceListResponse_1.DescribeHybridMonitorNamespaceListResponse; } }); +var DescribeHybridMonitorSlsgroupRequest_1 = require("./DescribeHybridMonitorSlsgroupRequest"); +Object.defineProperty(exports, "DescribeHybridMonitorSLSGroupRequest", { enumerable: true, get: function () { return DescribeHybridMonitorSlsgroupRequest_1.DescribeHybridMonitorSLSGroupRequest; } }); +var DescribeHybridMonitorSlsgroupResponseBody_3 = require("./DescribeHybridMonitorSlsgroupResponseBody"); +Object.defineProperty(exports, "DescribeHybridMonitorSLSGroupResponseBody", { enumerable: true, get: function () { return DescribeHybridMonitorSlsgroupResponseBody_3.DescribeHybridMonitorSLSGroupResponseBody; } }); +var DescribeHybridMonitorSlsgroupResponse_1 = require("./DescribeHybridMonitorSlsgroupResponse"); +Object.defineProperty(exports, "DescribeHybridMonitorSLSGroupResponse", { enumerable: true, get: function () { return DescribeHybridMonitorSlsgroupResponse_1.DescribeHybridMonitorSLSGroupResponse; } }); +var DescribeHybridMonitorTaskListRequest_1 = require("./DescribeHybridMonitorTaskListRequest"); +Object.defineProperty(exports, "DescribeHybridMonitorTaskListRequest", { enumerable: true, get: function () { return DescribeHybridMonitorTaskListRequest_1.DescribeHybridMonitorTaskListRequest; } }); +var DescribeHybridMonitorTaskListResponseBody_10 = require("./DescribeHybridMonitorTaskListResponseBody"); +Object.defineProperty(exports, "DescribeHybridMonitorTaskListResponseBody", { enumerable: true, get: function () { return DescribeHybridMonitorTaskListResponseBody_10.DescribeHybridMonitorTaskListResponseBody; } }); +var DescribeHybridMonitorTaskListResponse_1 = require("./DescribeHybridMonitorTaskListResponse"); +Object.defineProperty(exports, "DescribeHybridMonitorTaskListResponse", { enumerable: true, get: function () { return DescribeHybridMonitorTaskListResponse_1.DescribeHybridMonitorTaskListResponse; } }); +var DescribeLogMonitorAttributeRequest_1 = require("./DescribeLogMonitorAttributeRequest"); +Object.defineProperty(exports, "DescribeLogMonitorAttributeRequest", { enumerable: true, get: function () { return DescribeLogMonitorAttributeRequest_1.DescribeLogMonitorAttributeRequest; } }); +var DescribeLogMonitorAttributeResponseBody_4 = require("./DescribeLogMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeLogMonitorAttributeResponseBody", { enumerable: true, get: function () { return DescribeLogMonitorAttributeResponseBody_4.DescribeLogMonitorAttributeResponseBody; } }); +var DescribeLogMonitorAttributeResponse_1 = require("./DescribeLogMonitorAttributeResponse"); +Object.defineProperty(exports, "DescribeLogMonitorAttributeResponse", { enumerable: true, get: function () { return DescribeLogMonitorAttributeResponse_1.DescribeLogMonitorAttributeResponse; } }); +var DescribeLogMonitorListRequest_1 = require("./DescribeLogMonitorListRequest"); +Object.defineProperty(exports, "DescribeLogMonitorListRequest", { enumerable: true, get: function () { return DescribeLogMonitorListRequest_1.DescribeLogMonitorListRequest; } }); +var DescribeLogMonitorListResponseBody_3 = require("./DescribeLogMonitorListResponseBody"); +Object.defineProperty(exports, "DescribeLogMonitorListResponseBody", { enumerable: true, get: function () { return DescribeLogMonitorListResponseBody_3.DescribeLogMonitorListResponseBody; } }); +var DescribeLogMonitorListResponse_1 = require("./DescribeLogMonitorListResponse"); +Object.defineProperty(exports, "DescribeLogMonitorListResponse", { enumerable: true, get: function () { return DescribeLogMonitorListResponse_1.DescribeLogMonitorListResponse; } }); +var DescribeMetricDataRequest_1 = require("./DescribeMetricDataRequest"); +Object.defineProperty(exports, "DescribeMetricDataRequest", { enumerable: true, get: function () { return DescribeMetricDataRequest_1.DescribeMetricDataRequest; } }); +var DescribeMetricDataResponseBody_1 = require("./DescribeMetricDataResponseBody"); +Object.defineProperty(exports, "DescribeMetricDataResponseBody", { enumerable: true, get: function () { return DescribeMetricDataResponseBody_1.DescribeMetricDataResponseBody; } }); +var DescribeMetricDataResponse_1 = require("./DescribeMetricDataResponse"); +Object.defineProperty(exports, "DescribeMetricDataResponse", { enumerable: true, get: function () { return DescribeMetricDataResponse_1.DescribeMetricDataResponse; } }); +var DescribeMetricLastRequest_1 = require("./DescribeMetricLastRequest"); +Object.defineProperty(exports, "DescribeMetricLastRequest", { enumerable: true, get: function () { return DescribeMetricLastRequest_1.DescribeMetricLastRequest; } }); +var DescribeMetricLastResponseBody_1 = require("./DescribeMetricLastResponseBody"); +Object.defineProperty(exports, "DescribeMetricLastResponseBody", { enumerable: true, get: function () { return DescribeMetricLastResponseBody_1.DescribeMetricLastResponseBody; } }); +var DescribeMetricLastResponse_1 = require("./DescribeMetricLastResponse"); +Object.defineProperty(exports, "DescribeMetricLastResponse", { enumerable: true, get: function () { return DescribeMetricLastResponse_1.DescribeMetricLastResponse; } }); +var DescribeMetricListRequest_1 = require("./DescribeMetricListRequest"); +Object.defineProperty(exports, "DescribeMetricListRequest", { enumerable: true, get: function () { return DescribeMetricListRequest_1.DescribeMetricListRequest; } }); +var DescribeMetricListResponseBody_1 = require("./DescribeMetricListResponseBody"); +Object.defineProperty(exports, "DescribeMetricListResponseBody", { enumerable: true, get: function () { return DescribeMetricListResponseBody_1.DescribeMetricListResponseBody; } }); +var DescribeMetricListResponse_1 = require("./DescribeMetricListResponse"); +Object.defineProperty(exports, "DescribeMetricListResponse", { enumerable: true, get: function () { return DescribeMetricListResponse_1.DescribeMetricListResponse; } }); +var DescribeMetricMetaListRequest_1 = require("./DescribeMetricMetaListRequest"); +Object.defineProperty(exports, "DescribeMetricMetaListRequest", { enumerable: true, get: function () { return DescribeMetricMetaListRequest_1.DescribeMetricMetaListRequest; } }); +var DescribeMetricMetaListResponseBody_3 = require("./DescribeMetricMetaListResponseBody"); +Object.defineProperty(exports, "DescribeMetricMetaListResponseBody", { enumerable: true, get: function () { return DescribeMetricMetaListResponseBody_3.DescribeMetricMetaListResponseBody; } }); +var DescribeMetricMetaListResponse_1 = require("./DescribeMetricMetaListResponse"); +Object.defineProperty(exports, "DescribeMetricMetaListResponse", { enumerable: true, get: function () { return DescribeMetricMetaListResponse_1.DescribeMetricMetaListResponse; } }); +var DescribeMetricRuleBlackListRequest_1 = require("./DescribeMetricRuleBlackListRequest"); +Object.defineProperty(exports, "DescribeMetricRuleBlackListRequest", { enumerable: true, get: function () { return DescribeMetricRuleBlackListRequest_1.DescribeMetricRuleBlackListRequest; } }); +var DescribeMetricRuleBlackListResponseBody_3 = require("./DescribeMetricRuleBlackListResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleBlackListResponseBody", { enumerable: true, get: function () { return DescribeMetricRuleBlackListResponseBody_3.DescribeMetricRuleBlackListResponseBody; } }); +var DescribeMetricRuleBlackListResponse_1 = require("./DescribeMetricRuleBlackListResponse"); +Object.defineProperty(exports, "DescribeMetricRuleBlackListResponse", { enumerable: true, get: function () { return DescribeMetricRuleBlackListResponse_1.DescribeMetricRuleBlackListResponse; } }); +var DescribeMetricRuleCountRequest_1 = require("./DescribeMetricRuleCountRequest"); +Object.defineProperty(exports, "DescribeMetricRuleCountRequest", { enumerable: true, get: function () { return DescribeMetricRuleCountRequest_1.DescribeMetricRuleCountRequest; } }); +var DescribeMetricRuleCountResponseBody_2 = require("./DescribeMetricRuleCountResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleCountResponseBody", { enumerable: true, get: function () { return DescribeMetricRuleCountResponseBody_2.DescribeMetricRuleCountResponseBody; } }); +var DescribeMetricRuleCountResponse_1 = require("./DescribeMetricRuleCountResponse"); +Object.defineProperty(exports, "DescribeMetricRuleCountResponse", { enumerable: true, get: function () { return DescribeMetricRuleCountResponse_1.DescribeMetricRuleCountResponse; } }); +var DescribeMetricRuleListRequest_1 = require("./DescribeMetricRuleListRequest"); +Object.defineProperty(exports, "DescribeMetricRuleListRequest", { enumerable: true, get: function () { return DescribeMetricRuleListRequest_1.DescribeMetricRuleListRequest; } }); +var DescribeMetricRuleListResponseBody_15 = require("./DescribeMetricRuleListResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleListResponseBody", { enumerable: true, get: function () { return DescribeMetricRuleListResponseBody_15.DescribeMetricRuleListResponseBody; } }); +var DescribeMetricRuleListResponse_1 = require("./DescribeMetricRuleListResponse"); +Object.defineProperty(exports, "DescribeMetricRuleListResponse", { enumerable: true, get: function () { return DescribeMetricRuleListResponse_1.DescribeMetricRuleListResponse; } }); +var DescribeMetricRuleTargetsRequest_1 = require("./DescribeMetricRuleTargetsRequest"); +Object.defineProperty(exports, "DescribeMetricRuleTargetsRequest", { enumerable: true, get: function () { return DescribeMetricRuleTargetsRequest_1.DescribeMetricRuleTargetsRequest; } }); +var DescribeMetricRuleTargetsResponseBody_3 = require("./DescribeMetricRuleTargetsResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleTargetsResponseBody", { enumerable: true, get: function () { return DescribeMetricRuleTargetsResponseBody_3.DescribeMetricRuleTargetsResponseBody; } }); +var DescribeMetricRuleTargetsResponse_1 = require("./DescribeMetricRuleTargetsResponse"); +Object.defineProperty(exports, "DescribeMetricRuleTargetsResponse", { enumerable: true, get: function () { return DescribeMetricRuleTargetsResponse_1.DescribeMetricRuleTargetsResponse; } }); +var DescribeMetricRuleTemplateAttributeRequest_1 = require("./DescribeMetricRuleTemplateAttributeRequest"); +Object.defineProperty(exports, "DescribeMetricRuleTemplateAttributeRequest", { enumerable: true, get: function () { return DescribeMetricRuleTemplateAttributeRequest_1.DescribeMetricRuleTemplateAttributeRequest; } }); +var DescribeMetricRuleTemplateAttributeResponseBody_10 = require("./DescribeMetricRuleTemplateAttributeResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleTemplateAttributeResponseBody", { enumerable: true, get: function () { return DescribeMetricRuleTemplateAttributeResponseBody_10.DescribeMetricRuleTemplateAttributeResponseBody; } }); +var DescribeMetricRuleTemplateAttributeResponse_1 = require("./DescribeMetricRuleTemplateAttributeResponse"); +Object.defineProperty(exports, "DescribeMetricRuleTemplateAttributeResponse", { enumerable: true, get: function () { return DescribeMetricRuleTemplateAttributeResponse_1.DescribeMetricRuleTemplateAttributeResponse; } }); +var DescribeMetricRuleTemplateListRequest_1 = require("./DescribeMetricRuleTemplateListRequest"); +Object.defineProperty(exports, "DescribeMetricRuleTemplateListRequest", { enumerable: true, get: function () { return DescribeMetricRuleTemplateListRequest_1.DescribeMetricRuleTemplateListRequest; } }); +var DescribeMetricRuleTemplateListResponseBody_5 = require("./DescribeMetricRuleTemplateListResponseBody"); +Object.defineProperty(exports, "DescribeMetricRuleTemplateListResponseBody", { enumerable: true, get: function () { return DescribeMetricRuleTemplateListResponseBody_5.DescribeMetricRuleTemplateListResponseBody; } }); +var DescribeMetricRuleTemplateListResponse_1 = require("./DescribeMetricRuleTemplateListResponse"); +Object.defineProperty(exports, "DescribeMetricRuleTemplateListResponse", { enumerable: true, get: function () { return DescribeMetricRuleTemplateListResponse_1.DescribeMetricRuleTemplateListResponse; } }); +var DescribeMetricTopRequest_1 = require("./DescribeMetricTopRequest"); +Object.defineProperty(exports, "DescribeMetricTopRequest", { enumerable: true, get: function () { return DescribeMetricTopRequest_1.DescribeMetricTopRequest; } }); +var DescribeMetricTopResponseBody_1 = require("./DescribeMetricTopResponseBody"); +Object.defineProperty(exports, "DescribeMetricTopResponseBody", { enumerable: true, get: function () { return DescribeMetricTopResponseBody_1.DescribeMetricTopResponseBody; } }); +var DescribeMetricTopResponse_1 = require("./DescribeMetricTopResponse"); +Object.defineProperty(exports, "DescribeMetricTopResponse", { enumerable: true, get: function () { return DescribeMetricTopResponse_1.DescribeMetricTopResponse; } }); +var DescribeMonitorGroupCategoriesRequest_1 = require("./DescribeMonitorGroupCategoriesRequest"); +Object.defineProperty(exports, "DescribeMonitorGroupCategoriesRequest", { enumerable: true, get: function () { return DescribeMonitorGroupCategoriesRequest_1.DescribeMonitorGroupCategoriesRequest; } }); +var DescribeMonitorGroupCategoriesResponseBody_4 = require("./DescribeMonitorGroupCategoriesResponseBody"); +Object.defineProperty(exports, "DescribeMonitorGroupCategoriesResponseBody", { enumerable: true, get: function () { return DescribeMonitorGroupCategoriesResponseBody_4.DescribeMonitorGroupCategoriesResponseBody; } }); +var DescribeMonitorGroupCategoriesResponse_1 = require("./DescribeMonitorGroupCategoriesResponse"); +Object.defineProperty(exports, "DescribeMonitorGroupCategoriesResponse", { enumerable: true, get: function () { return DescribeMonitorGroupCategoriesResponse_1.DescribeMonitorGroupCategoriesResponse; } }); +var DescribeMonitorGroupDynamicRulesRequest_1 = require("./DescribeMonitorGroupDynamicRulesRequest"); +Object.defineProperty(exports, "DescribeMonitorGroupDynamicRulesRequest", { enumerable: true, get: function () { return DescribeMonitorGroupDynamicRulesRequest_1.DescribeMonitorGroupDynamicRulesRequest; } }); +var DescribeMonitorGroupDynamicRulesResponseBody_5 = require("./DescribeMonitorGroupDynamicRulesResponseBody"); +Object.defineProperty(exports, "DescribeMonitorGroupDynamicRulesResponseBody", { enumerable: true, get: function () { return DescribeMonitorGroupDynamicRulesResponseBody_5.DescribeMonitorGroupDynamicRulesResponseBody; } }); +var DescribeMonitorGroupDynamicRulesResponse_1 = require("./DescribeMonitorGroupDynamicRulesResponse"); +Object.defineProperty(exports, "DescribeMonitorGroupDynamicRulesResponse", { enumerable: true, get: function () { return DescribeMonitorGroupDynamicRulesResponse_1.DescribeMonitorGroupDynamicRulesResponse; } }); +var DescribeMonitorGroupInstanceAttributeRequest_1 = require("./DescribeMonitorGroupInstanceAttributeRequest"); +Object.defineProperty(exports, "DescribeMonitorGroupInstanceAttributeRequest", { enumerable: true, get: function () { return DescribeMonitorGroupInstanceAttributeRequest_1.DescribeMonitorGroupInstanceAttributeRequest; } }); +var DescribeMonitorGroupInstanceAttributeResponseBody_7 = require("./DescribeMonitorGroupInstanceAttributeResponseBody"); +Object.defineProperty(exports, "DescribeMonitorGroupInstanceAttributeResponseBody", { enumerable: true, get: function () { return DescribeMonitorGroupInstanceAttributeResponseBody_7.DescribeMonitorGroupInstanceAttributeResponseBody; } }); +var DescribeMonitorGroupInstanceAttributeResponse_1 = require("./DescribeMonitorGroupInstanceAttributeResponse"); +Object.defineProperty(exports, "DescribeMonitorGroupInstanceAttributeResponse", { enumerable: true, get: function () { return DescribeMonitorGroupInstanceAttributeResponse_1.DescribeMonitorGroupInstanceAttributeResponse; } }); +var DescribeMonitorGroupInstancesRequest_1 = require("./DescribeMonitorGroupInstancesRequest"); +Object.defineProperty(exports, "DescribeMonitorGroupInstancesRequest", { enumerable: true, get: function () { return DescribeMonitorGroupInstancesRequest_1.DescribeMonitorGroupInstancesRequest; } }); +var DescribeMonitorGroupInstancesResponseBody_3 = require("./DescribeMonitorGroupInstancesResponseBody"); +Object.defineProperty(exports, "DescribeMonitorGroupInstancesResponseBody", { enumerable: true, get: function () { return DescribeMonitorGroupInstancesResponseBody_3.DescribeMonitorGroupInstancesResponseBody; } }); +var DescribeMonitorGroupInstancesResponse_1 = require("./DescribeMonitorGroupInstancesResponse"); +Object.defineProperty(exports, "DescribeMonitorGroupInstancesResponse", { enumerable: true, get: function () { return DescribeMonitorGroupInstancesResponse_1.DescribeMonitorGroupInstancesResponse; } }); +var DescribeMonitorGroupNotifyPolicyListRequest_1 = require("./DescribeMonitorGroupNotifyPolicyListRequest"); +Object.defineProperty(exports, "DescribeMonitorGroupNotifyPolicyListRequest", { enumerable: true, get: function () { return DescribeMonitorGroupNotifyPolicyListRequest_1.DescribeMonitorGroupNotifyPolicyListRequest; } }); +var DescribeMonitorGroupNotifyPolicyListResponseBody_3 = require("./DescribeMonitorGroupNotifyPolicyListResponseBody"); +Object.defineProperty(exports, "DescribeMonitorGroupNotifyPolicyListResponseBody", { enumerable: true, get: function () { return DescribeMonitorGroupNotifyPolicyListResponseBody_3.DescribeMonitorGroupNotifyPolicyListResponseBody; } }); +var DescribeMonitorGroupNotifyPolicyListResponse_1 = require("./DescribeMonitorGroupNotifyPolicyListResponse"); +Object.defineProperty(exports, "DescribeMonitorGroupNotifyPolicyListResponse", { enumerable: true, get: function () { return DescribeMonitorGroupNotifyPolicyListResponse_1.DescribeMonitorGroupNotifyPolicyListResponse; } }); +var DescribeMonitorGroupsRequest_2 = require("./DescribeMonitorGroupsRequest"); +Object.defineProperty(exports, "DescribeMonitorGroupsRequest", { enumerable: true, get: function () { return DescribeMonitorGroupsRequest_2.DescribeMonitorGroupsRequest; } }); +var DescribeMonitorGroupsResponseBody_10 = require("./DescribeMonitorGroupsResponseBody"); +Object.defineProperty(exports, "DescribeMonitorGroupsResponseBody", { enumerable: true, get: function () { return DescribeMonitorGroupsResponseBody_10.DescribeMonitorGroupsResponseBody; } }); +var DescribeMonitorGroupsResponse_1 = require("./DescribeMonitorGroupsResponse"); +Object.defineProperty(exports, "DescribeMonitorGroupsResponse", { enumerable: true, get: function () { return DescribeMonitorGroupsResponse_1.DescribeMonitorGroupsResponse; } }); +var DescribeMonitorResourceQuotaAttributeRequest_1 = require("./DescribeMonitorResourceQuotaAttributeRequest"); +Object.defineProperty(exports, "DescribeMonitorResourceQuotaAttributeRequest", { enumerable: true, get: function () { return DescribeMonitorResourceQuotaAttributeRequest_1.DescribeMonitorResourceQuotaAttributeRequest; } }); +var DescribeMonitorResourceQuotaAttributeResponseBody_14 = require("./DescribeMonitorResourceQuotaAttributeResponseBody"); +Object.defineProperty(exports, "DescribeMonitorResourceQuotaAttributeResponseBody", { enumerable: true, get: function () { return DescribeMonitorResourceQuotaAttributeResponseBody_14.DescribeMonitorResourceQuotaAttributeResponseBody; } }); +var DescribeMonitorResourceQuotaAttributeResponse_1 = require("./DescribeMonitorResourceQuotaAttributeResponse"); +Object.defineProperty(exports, "DescribeMonitorResourceQuotaAttributeResponse", { enumerable: true, get: function () { return DescribeMonitorResourceQuotaAttributeResponse_1.DescribeMonitorResourceQuotaAttributeResponse; } }); +var DescribeMonitoringAgentAccessKeyRequest_1 = require("./DescribeMonitoringAgentAccessKeyRequest"); +Object.defineProperty(exports, "DescribeMonitoringAgentAccessKeyRequest", { enumerable: true, get: function () { return DescribeMonitoringAgentAccessKeyRequest_1.DescribeMonitoringAgentAccessKeyRequest; } }); +var DescribeMonitoringAgentAccessKeyResponseBody_1 = require("./DescribeMonitoringAgentAccessKeyResponseBody"); +Object.defineProperty(exports, "DescribeMonitoringAgentAccessKeyResponseBody", { enumerable: true, get: function () { return DescribeMonitoringAgentAccessKeyResponseBody_1.DescribeMonitoringAgentAccessKeyResponseBody; } }); +var DescribeMonitoringAgentAccessKeyResponse_1 = require("./DescribeMonitoringAgentAccessKeyResponse"); +Object.defineProperty(exports, "DescribeMonitoringAgentAccessKeyResponse", { enumerable: true, get: function () { return DescribeMonitoringAgentAccessKeyResponse_1.DescribeMonitoringAgentAccessKeyResponse; } }); +var DescribeMonitoringAgentConfigRequest_1 = require("./DescribeMonitoringAgentConfigRequest"); +Object.defineProperty(exports, "DescribeMonitoringAgentConfigRequest", { enumerable: true, get: function () { return DescribeMonitoringAgentConfigRequest_1.DescribeMonitoringAgentConfigRequest; } }); +var DescribeMonitoringAgentConfigResponseBody_1 = require("./DescribeMonitoringAgentConfigResponseBody"); +Object.defineProperty(exports, "DescribeMonitoringAgentConfigResponseBody", { enumerable: true, get: function () { return DescribeMonitoringAgentConfigResponseBody_1.DescribeMonitoringAgentConfigResponseBody; } }); +var DescribeMonitoringAgentConfigResponse_1 = require("./DescribeMonitoringAgentConfigResponse"); +Object.defineProperty(exports, "DescribeMonitoringAgentConfigResponse", { enumerable: true, get: function () { return DescribeMonitoringAgentConfigResponse_1.DescribeMonitoringAgentConfigResponse; } }); +var DescribeMonitoringAgentHostsRequest_1 = require("./DescribeMonitoringAgentHostsRequest"); +Object.defineProperty(exports, "DescribeMonitoringAgentHostsRequest", { enumerable: true, get: function () { return DescribeMonitoringAgentHostsRequest_1.DescribeMonitoringAgentHostsRequest; } }); +var DescribeMonitoringAgentHostsResponseBody_3 = require("./DescribeMonitoringAgentHostsResponseBody"); +Object.defineProperty(exports, "DescribeMonitoringAgentHostsResponseBody", { enumerable: true, get: function () { return DescribeMonitoringAgentHostsResponseBody_3.DescribeMonitoringAgentHostsResponseBody; } }); +var DescribeMonitoringAgentHostsResponse_1 = require("./DescribeMonitoringAgentHostsResponse"); +Object.defineProperty(exports, "DescribeMonitoringAgentHostsResponse", { enumerable: true, get: function () { return DescribeMonitoringAgentHostsResponse_1.DescribeMonitoringAgentHostsResponse; } }); +var DescribeMonitoringAgentProcessesRequest_1 = require("./DescribeMonitoringAgentProcessesRequest"); +Object.defineProperty(exports, "DescribeMonitoringAgentProcessesRequest", { enumerable: true, get: function () { return DescribeMonitoringAgentProcessesRequest_1.DescribeMonitoringAgentProcessesRequest; } }); +var DescribeMonitoringAgentProcessesResponseBody_3 = require("./DescribeMonitoringAgentProcessesResponseBody"); +Object.defineProperty(exports, "DescribeMonitoringAgentProcessesResponseBody", { enumerable: true, get: function () { return DescribeMonitoringAgentProcessesResponseBody_3.DescribeMonitoringAgentProcessesResponseBody; } }); +var DescribeMonitoringAgentProcessesResponse_1 = require("./DescribeMonitoringAgentProcessesResponse"); +Object.defineProperty(exports, "DescribeMonitoringAgentProcessesResponse", { enumerable: true, get: function () { return DescribeMonitoringAgentProcessesResponse_1.DescribeMonitoringAgentProcessesResponse; } }); +var DescribeMonitoringAgentStatusesRequest_1 = require("./DescribeMonitoringAgentStatusesRequest"); +Object.defineProperty(exports, "DescribeMonitoringAgentStatusesRequest", { enumerable: true, get: function () { return DescribeMonitoringAgentStatusesRequest_1.DescribeMonitoringAgentStatusesRequest; } }); +var DescribeMonitoringAgentStatusesResponseBody_3 = require("./DescribeMonitoringAgentStatusesResponseBody"); +Object.defineProperty(exports, "DescribeMonitoringAgentStatusesResponseBody", { enumerable: true, get: function () { return DescribeMonitoringAgentStatusesResponseBody_3.DescribeMonitoringAgentStatusesResponseBody; } }); +var DescribeMonitoringAgentStatusesResponse_1 = require("./DescribeMonitoringAgentStatusesResponse"); +Object.defineProperty(exports, "DescribeMonitoringAgentStatusesResponse", { enumerable: true, get: function () { return DescribeMonitoringAgentStatusesResponse_1.DescribeMonitoringAgentStatusesResponse; } }); +var DescribeMonitoringConfigRequest_1 = require("./DescribeMonitoringConfigRequest"); +Object.defineProperty(exports, "DescribeMonitoringConfigRequest", { enumerable: true, get: function () { return DescribeMonitoringConfigRequest_1.DescribeMonitoringConfigRequest; } }); +var DescribeMonitoringConfigResponseBody_1 = require("./DescribeMonitoringConfigResponseBody"); +Object.defineProperty(exports, "DescribeMonitoringConfigResponseBody", { enumerable: true, get: function () { return DescribeMonitoringConfigResponseBody_1.DescribeMonitoringConfigResponseBody; } }); +var DescribeMonitoringConfigResponse_1 = require("./DescribeMonitoringConfigResponse"); +Object.defineProperty(exports, "DescribeMonitoringConfigResponse", { enumerable: true, get: function () { return DescribeMonitoringConfigResponse_1.DescribeMonitoringConfigResponse; } }); +var DescribeProductResourceTagKeyListRequest_1 = require("./DescribeProductResourceTagKeyListRequest"); +Object.defineProperty(exports, "DescribeProductResourceTagKeyListRequest", { enumerable: true, get: function () { return DescribeProductResourceTagKeyListRequest_1.DescribeProductResourceTagKeyListRequest; } }); +var DescribeProductResourceTagKeyListResponseBody_2 = require("./DescribeProductResourceTagKeyListResponseBody"); +Object.defineProperty(exports, "DescribeProductResourceTagKeyListResponseBody", { enumerable: true, get: function () { return DescribeProductResourceTagKeyListResponseBody_2.DescribeProductResourceTagKeyListResponseBody; } }); +var DescribeProductResourceTagKeyListResponse_1 = require("./DescribeProductResourceTagKeyListResponse"); +Object.defineProperty(exports, "DescribeProductResourceTagKeyListResponse", { enumerable: true, get: function () { return DescribeProductResourceTagKeyListResponse_1.DescribeProductResourceTagKeyListResponse; } }); +var DescribeProductsOfActiveMetricRuleRequest_1 = require("./DescribeProductsOfActiveMetricRuleRequest"); +Object.defineProperty(exports, "DescribeProductsOfActiveMetricRuleRequest", { enumerable: true, get: function () { return DescribeProductsOfActiveMetricRuleRequest_1.DescribeProductsOfActiveMetricRuleRequest; } }); +var DescribeProductsOfActiveMetricRuleResponseBody_5 = require("./DescribeProductsOfActiveMetricRuleResponseBody"); +Object.defineProperty(exports, "DescribeProductsOfActiveMetricRuleResponseBody", { enumerable: true, get: function () { return DescribeProductsOfActiveMetricRuleResponseBody_5.DescribeProductsOfActiveMetricRuleResponseBody; } }); +var DescribeProductsOfActiveMetricRuleResponse_1 = require("./DescribeProductsOfActiveMetricRuleResponse"); +Object.defineProperty(exports, "DescribeProductsOfActiveMetricRuleResponse", { enumerable: true, get: function () { return DescribeProductsOfActiveMetricRuleResponse_1.DescribeProductsOfActiveMetricRuleResponse; } }); +var DescribeProjectMetaRequest_1 = require("./DescribeProjectMetaRequest"); +Object.defineProperty(exports, "DescribeProjectMetaRequest", { enumerable: true, get: function () { return DescribeProjectMetaRequest_1.DescribeProjectMetaRequest; } }); +var DescribeProjectMetaResponseBody_3 = require("./DescribeProjectMetaResponseBody"); +Object.defineProperty(exports, "DescribeProjectMetaResponseBody", { enumerable: true, get: function () { return DescribeProjectMetaResponseBody_3.DescribeProjectMetaResponseBody; } }); +var DescribeProjectMetaResponse_1 = require("./DescribeProjectMetaResponse"); +Object.defineProperty(exports, "DescribeProjectMetaResponse", { enumerable: true, get: function () { return DescribeProjectMetaResponse_1.DescribeProjectMetaResponse; } }); +var DescribeSiteMonitorAttributeRequest_1 = require("./DescribeSiteMonitorAttributeRequest"); +Object.defineProperty(exports, "DescribeSiteMonitorAttributeRequest", { enumerable: true, get: function () { return DescribeSiteMonitorAttributeRequest_1.DescribeSiteMonitorAttributeRequest; } }); +var DescribeSiteMonitorAttributeResponseBody_31 = require("./DescribeSiteMonitorAttributeResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorAttributeResponseBody", { enumerable: true, get: function () { return DescribeSiteMonitorAttributeResponseBody_31.DescribeSiteMonitorAttributeResponseBody; } }); +var DescribeSiteMonitorAttributeResponse_1 = require("./DescribeSiteMonitorAttributeResponse"); +Object.defineProperty(exports, "DescribeSiteMonitorAttributeResponse", { enumerable: true, get: function () { return DescribeSiteMonitorAttributeResponse_1.DescribeSiteMonitorAttributeResponse; } }); +var DescribeSiteMonitorDataRequest_1 = require("./DescribeSiteMonitorDataRequest"); +Object.defineProperty(exports, "DescribeSiteMonitorDataRequest", { enumerable: true, get: function () { return DescribeSiteMonitorDataRequest_1.DescribeSiteMonitorDataRequest; } }); +var DescribeSiteMonitorDataResponseBody_1 = require("./DescribeSiteMonitorDataResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorDataResponseBody", { enumerable: true, get: function () { return DescribeSiteMonitorDataResponseBody_1.DescribeSiteMonitorDataResponseBody; } }); +var DescribeSiteMonitorDataResponse_1 = require("./DescribeSiteMonitorDataResponse"); +Object.defineProperty(exports, "DescribeSiteMonitorDataResponse", { enumerable: true, get: function () { return DescribeSiteMonitorDataResponse_1.DescribeSiteMonitorDataResponse; } }); +var DescribeSiteMonitorIspcityListRequest_1 = require("./DescribeSiteMonitorIspcityListRequest"); +Object.defineProperty(exports, "DescribeSiteMonitorISPCityListRequest", { enumerable: true, get: function () { return DescribeSiteMonitorIspcityListRequest_1.DescribeSiteMonitorISPCityListRequest; } }); +var DescribeSiteMonitorIspcityListResponseBody_4 = require("./DescribeSiteMonitorIspcityListResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorISPCityListResponseBody", { enumerable: true, get: function () { return DescribeSiteMonitorIspcityListResponseBody_4.DescribeSiteMonitorISPCityListResponseBody; } }); +var DescribeSiteMonitorIspcityListResponse_1 = require("./DescribeSiteMonitorIspcityListResponse"); +Object.defineProperty(exports, "DescribeSiteMonitorISPCityListResponse", { enumerable: true, get: function () { return DescribeSiteMonitorIspcityListResponse_1.DescribeSiteMonitorISPCityListResponse; } }); +var DescribeSiteMonitorListRequest_1 = require("./DescribeSiteMonitorListRequest"); +Object.defineProperty(exports, "DescribeSiteMonitorListRequest", { enumerable: true, get: function () { return DescribeSiteMonitorListRequest_1.DescribeSiteMonitorListRequest; } }); +var DescribeSiteMonitorListResponseBody_6 = require("./DescribeSiteMonitorListResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorListResponseBody", { enumerable: true, get: function () { return DescribeSiteMonitorListResponseBody_6.DescribeSiteMonitorListResponseBody; } }); +var DescribeSiteMonitorListResponse_1 = require("./DescribeSiteMonitorListResponse"); +Object.defineProperty(exports, "DescribeSiteMonitorListResponse", { enumerable: true, get: function () { return DescribeSiteMonitorListResponse_1.DescribeSiteMonitorListResponse; } }); +var DescribeSiteMonitorLogRequest_1 = require("./DescribeSiteMonitorLogRequest"); +Object.defineProperty(exports, "DescribeSiteMonitorLogRequest", { enumerable: true, get: function () { return DescribeSiteMonitorLogRequest_1.DescribeSiteMonitorLogRequest; } }); +var DescribeSiteMonitorLogResponseBody_1 = require("./DescribeSiteMonitorLogResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorLogResponseBody", { enumerable: true, get: function () { return DescribeSiteMonitorLogResponseBody_1.DescribeSiteMonitorLogResponseBody; } }); +var DescribeSiteMonitorLogResponse_1 = require("./DescribeSiteMonitorLogResponse"); +Object.defineProperty(exports, "DescribeSiteMonitorLogResponse", { enumerable: true, get: function () { return DescribeSiteMonitorLogResponse_1.DescribeSiteMonitorLogResponse; } }); +var DescribeSiteMonitorQuotaRequest_1 = require("./DescribeSiteMonitorQuotaRequest"); +Object.defineProperty(exports, "DescribeSiteMonitorQuotaRequest", { enumerable: true, get: function () { return DescribeSiteMonitorQuotaRequest_1.DescribeSiteMonitorQuotaRequest; } }); +var DescribeSiteMonitorQuotaResponseBody_2 = require("./DescribeSiteMonitorQuotaResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorQuotaResponseBody", { enumerable: true, get: function () { return DescribeSiteMonitorQuotaResponseBody_2.DescribeSiteMonitorQuotaResponseBody; } }); +var DescribeSiteMonitorQuotaResponse_1 = require("./DescribeSiteMonitorQuotaResponse"); +Object.defineProperty(exports, "DescribeSiteMonitorQuotaResponse", { enumerable: true, get: function () { return DescribeSiteMonitorQuotaResponse_1.DescribeSiteMonitorQuotaResponse; } }); +var DescribeSiteMonitorStatisticsRequest_1 = require("./DescribeSiteMonitorStatisticsRequest"); +Object.defineProperty(exports, "DescribeSiteMonitorStatisticsRequest", { enumerable: true, get: function () { return DescribeSiteMonitorStatisticsRequest_1.DescribeSiteMonitorStatisticsRequest; } }); +var DescribeSiteMonitorStatisticsResponseBody_1 = require("./DescribeSiteMonitorStatisticsResponseBody"); +Object.defineProperty(exports, "DescribeSiteMonitorStatisticsResponseBody", { enumerable: true, get: function () { return DescribeSiteMonitorStatisticsResponseBody_1.DescribeSiteMonitorStatisticsResponseBody; } }); +var DescribeSiteMonitorStatisticsResponse_1 = require("./DescribeSiteMonitorStatisticsResponse"); +Object.defineProperty(exports, "DescribeSiteMonitorStatisticsResponse", { enumerable: true, get: function () { return DescribeSiteMonitorStatisticsResponse_1.DescribeSiteMonitorStatisticsResponse; } }); +var DescribeSyntheticProbeListRequest_1 = require("./DescribeSyntheticProbeListRequest"); +Object.defineProperty(exports, "DescribeSyntheticProbeListRequest", { enumerable: true, get: function () { return DescribeSyntheticProbeListRequest_1.DescribeSyntheticProbeListRequest; } }); +var DescribeSyntheticProbeListResponseBody_2 = require("./DescribeSyntheticProbeListResponseBody"); +Object.defineProperty(exports, "DescribeSyntheticProbeListResponseBody", { enumerable: true, get: function () { return DescribeSyntheticProbeListResponseBody_2.DescribeSyntheticProbeListResponseBody; } }); +var DescribeSyntheticProbeListResponse_1 = require("./DescribeSyntheticProbeListResponse"); +Object.defineProperty(exports, "DescribeSyntheticProbeListResponse", { enumerable: true, get: function () { return DescribeSyntheticProbeListResponse_1.DescribeSyntheticProbeListResponse; } }); +var DescribeSystemEventAttributeRequest_1 = require("./DescribeSystemEventAttributeRequest"); +Object.defineProperty(exports, "DescribeSystemEventAttributeRequest", { enumerable: true, get: function () { return DescribeSystemEventAttributeRequest_1.DescribeSystemEventAttributeRequest; } }); +var DescribeSystemEventAttributeResponseBody_3 = require("./DescribeSystemEventAttributeResponseBody"); +Object.defineProperty(exports, "DescribeSystemEventAttributeResponseBody", { enumerable: true, get: function () { return DescribeSystemEventAttributeResponseBody_3.DescribeSystemEventAttributeResponseBody; } }); +var DescribeSystemEventAttributeResponse_1 = require("./DescribeSystemEventAttributeResponse"); +Object.defineProperty(exports, "DescribeSystemEventAttributeResponse", { enumerable: true, get: function () { return DescribeSystemEventAttributeResponse_1.DescribeSystemEventAttributeResponse; } }); +var DescribeSystemEventCountRequest_1 = require("./DescribeSystemEventCountRequest"); +Object.defineProperty(exports, "DescribeSystemEventCountRequest", { enumerable: true, get: function () { return DescribeSystemEventCountRequest_1.DescribeSystemEventCountRequest; } }); +var DescribeSystemEventCountResponseBody_3 = require("./DescribeSystemEventCountResponseBody"); +Object.defineProperty(exports, "DescribeSystemEventCountResponseBody", { enumerable: true, get: function () { return DescribeSystemEventCountResponseBody_3.DescribeSystemEventCountResponseBody; } }); +var DescribeSystemEventCountResponse_1 = require("./DescribeSystemEventCountResponse"); +Object.defineProperty(exports, "DescribeSystemEventCountResponse", { enumerable: true, get: function () { return DescribeSystemEventCountResponse_1.DescribeSystemEventCountResponse; } }); +var DescribeSystemEventHistogramRequest_1 = require("./DescribeSystemEventHistogramRequest"); +Object.defineProperty(exports, "DescribeSystemEventHistogramRequest", { enumerable: true, get: function () { return DescribeSystemEventHistogramRequest_1.DescribeSystemEventHistogramRequest; } }); +var DescribeSystemEventHistogramResponseBody_3 = require("./DescribeSystemEventHistogramResponseBody"); +Object.defineProperty(exports, "DescribeSystemEventHistogramResponseBody", { enumerable: true, get: function () { return DescribeSystemEventHistogramResponseBody_3.DescribeSystemEventHistogramResponseBody; } }); +var DescribeSystemEventHistogramResponse_1 = require("./DescribeSystemEventHistogramResponse"); +Object.defineProperty(exports, "DescribeSystemEventHistogramResponse", { enumerable: true, get: function () { return DescribeSystemEventHistogramResponse_1.DescribeSystemEventHistogramResponse; } }); +var DescribeSystemEventMetaListRequest_1 = require("./DescribeSystemEventMetaListRequest"); +Object.defineProperty(exports, "DescribeSystemEventMetaListRequest", { enumerable: true, get: function () { return DescribeSystemEventMetaListRequest_1.DescribeSystemEventMetaListRequest; } }); +var DescribeSystemEventMetaListResponseBody_3 = require("./DescribeSystemEventMetaListResponseBody"); +Object.defineProperty(exports, "DescribeSystemEventMetaListResponseBody", { enumerable: true, get: function () { return DescribeSystemEventMetaListResponseBody_3.DescribeSystemEventMetaListResponseBody; } }); +var DescribeSystemEventMetaListResponse_1 = require("./DescribeSystemEventMetaListResponse"); +Object.defineProperty(exports, "DescribeSystemEventMetaListResponse", { enumerable: true, get: function () { return DescribeSystemEventMetaListResponse_1.DescribeSystemEventMetaListResponse; } }); +var DescribeTagKeyListRequest_1 = require("./DescribeTagKeyListRequest"); +Object.defineProperty(exports, "DescribeTagKeyListRequest", { enumerable: true, get: function () { return DescribeTagKeyListRequest_1.DescribeTagKeyListRequest; } }); +var DescribeTagKeyListResponseBody_2 = require("./DescribeTagKeyListResponseBody"); +Object.defineProperty(exports, "DescribeTagKeyListResponseBody", { enumerable: true, get: function () { return DescribeTagKeyListResponseBody_2.DescribeTagKeyListResponseBody; } }); +var DescribeTagKeyListResponse_1 = require("./DescribeTagKeyListResponse"); +Object.defineProperty(exports, "DescribeTagKeyListResponse", { enumerable: true, get: function () { return DescribeTagKeyListResponse_1.DescribeTagKeyListResponse; } }); +var DescribeTagValueListRequest_1 = require("./DescribeTagValueListRequest"); +Object.defineProperty(exports, "DescribeTagValueListRequest", { enumerable: true, get: function () { return DescribeTagValueListRequest_1.DescribeTagValueListRequest; } }); +var DescribeTagValueListResponseBody_2 = require("./DescribeTagValueListResponseBody"); +Object.defineProperty(exports, "DescribeTagValueListResponseBody", { enumerable: true, get: function () { return DescribeTagValueListResponseBody_2.DescribeTagValueListResponseBody; } }); +var DescribeTagValueListResponse_1 = require("./DescribeTagValueListResponse"); +Object.defineProperty(exports, "DescribeTagValueListResponse", { enumerable: true, get: function () { return DescribeTagValueListResponse_1.DescribeTagValueListResponse; } }); +var DescribeUnhealthyHostAvailabilityRequest_1 = require("./DescribeUnhealthyHostAvailabilityRequest"); +Object.defineProperty(exports, "DescribeUnhealthyHostAvailabilityRequest", { enumerable: true, get: function () { return DescribeUnhealthyHostAvailabilityRequest_1.DescribeUnhealthyHostAvailabilityRequest; } }); +var DescribeUnhealthyHostAvailabilityResponseBody_4 = require("./DescribeUnhealthyHostAvailabilityResponseBody"); +Object.defineProperty(exports, "DescribeUnhealthyHostAvailabilityResponseBody", { enumerable: true, get: function () { return DescribeUnhealthyHostAvailabilityResponseBody_4.DescribeUnhealthyHostAvailabilityResponseBody; } }); +var DescribeUnhealthyHostAvailabilityResponse_1 = require("./DescribeUnhealthyHostAvailabilityResponse"); +Object.defineProperty(exports, "DescribeUnhealthyHostAvailabilityResponse", { enumerable: true, get: function () { return DescribeUnhealthyHostAvailabilityResponse_1.DescribeUnhealthyHostAvailabilityResponse; } }); +var DisableActiveMetricRuleRequest_1 = require("./DisableActiveMetricRuleRequest"); +Object.defineProperty(exports, "DisableActiveMetricRuleRequest", { enumerable: true, get: function () { return DisableActiveMetricRuleRequest_1.DisableActiveMetricRuleRequest; } }); +var DisableActiveMetricRuleResponseBody_1 = require("./DisableActiveMetricRuleResponseBody"); +Object.defineProperty(exports, "DisableActiveMetricRuleResponseBody", { enumerable: true, get: function () { return DisableActiveMetricRuleResponseBody_1.DisableActiveMetricRuleResponseBody; } }); +var DisableActiveMetricRuleResponse_1 = require("./DisableActiveMetricRuleResponse"); +Object.defineProperty(exports, "DisableActiveMetricRuleResponse", { enumerable: true, get: function () { return DisableActiveMetricRuleResponse_1.DisableActiveMetricRuleResponse; } }); +var DisableEventRulesRequest_1 = require("./DisableEventRulesRequest"); +Object.defineProperty(exports, "DisableEventRulesRequest", { enumerable: true, get: function () { return DisableEventRulesRequest_1.DisableEventRulesRequest; } }); +var DisableEventRulesResponseBody_1 = require("./DisableEventRulesResponseBody"); +Object.defineProperty(exports, "DisableEventRulesResponseBody", { enumerable: true, get: function () { return DisableEventRulesResponseBody_1.DisableEventRulesResponseBody; } }); +var DisableEventRulesResponse_1 = require("./DisableEventRulesResponse"); +Object.defineProperty(exports, "DisableEventRulesResponse", { enumerable: true, get: function () { return DisableEventRulesResponse_1.DisableEventRulesResponse; } }); +var DisableHostAvailabilityRequest_1 = require("./DisableHostAvailabilityRequest"); +Object.defineProperty(exports, "DisableHostAvailabilityRequest", { enumerable: true, get: function () { return DisableHostAvailabilityRequest_1.DisableHostAvailabilityRequest; } }); +var DisableHostAvailabilityResponseBody_1 = require("./DisableHostAvailabilityResponseBody"); +Object.defineProperty(exports, "DisableHostAvailabilityResponseBody", { enumerable: true, get: function () { return DisableHostAvailabilityResponseBody_1.DisableHostAvailabilityResponseBody; } }); +var DisableHostAvailabilityResponse_1 = require("./DisableHostAvailabilityResponse"); +Object.defineProperty(exports, "DisableHostAvailabilityResponse", { enumerable: true, get: function () { return DisableHostAvailabilityResponse_1.DisableHostAvailabilityResponse; } }); +var DisableMetricRulesRequest_1 = require("./DisableMetricRulesRequest"); +Object.defineProperty(exports, "DisableMetricRulesRequest", { enumerable: true, get: function () { return DisableMetricRulesRequest_1.DisableMetricRulesRequest; } }); +var DisableMetricRulesResponseBody_1 = require("./DisableMetricRulesResponseBody"); +Object.defineProperty(exports, "DisableMetricRulesResponseBody", { enumerable: true, get: function () { return DisableMetricRulesResponseBody_1.DisableMetricRulesResponseBody; } }); +var DisableMetricRulesResponse_1 = require("./DisableMetricRulesResponse"); +Object.defineProperty(exports, "DisableMetricRulesResponse", { enumerable: true, get: function () { return DisableMetricRulesResponse_1.DisableMetricRulesResponse; } }); +var DisableSiteMonitorsRequest_1 = require("./DisableSiteMonitorsRequest"); +Object.defineProperty(exports, "DisableSiteMonitorsRequest", { enumerable: true, get: function () { return DisableSiteMonitorsRequest_1.DisableSiteMonitorsRequest; } }); +var DisableSiteMonitorsResponseBody_2 = require("./DisableSiteMonitorsResponseBody"); +Object.defineProperty(exports, "DisableSiteMonitorsResponseBody", { enumerable: true, get: function () { return DisableSiteMonitorsResponseBody_2.DisableSiteMonitorsResponseBody; } }); +var DisableSiteMonitorsResponse_1 = require("./DisableSiteMonitorsResponse"); +Object.defineProperty(exports, "DisableSiteMonitorsResponse", { enumerable: true, get: function () { return DisableSiteMonitorsResponse_1.DisableSiteMonitorsResponse; } }); +var EnableActiveMetricRuleRequest_1 = require("./EnableActiveMetricRuleRequest"); +Object.defineProperty(exports, "EnableActiveMetricRuleRequest", { enumerable: true, get: function () { return EnableActiveMetricRuleRequest_1.EnableActiveMetricRuleRequest; } }); +var EnableActiveMetricRuleResponseBody_1 = require("./EnableActiveMetricRuleResponseBody"); +Object.defineProperty(exports, "EnableActiveMetricRuleResponseBody", { enumerable: true, get: function () { return EnableActiveMetricRuleResponseBody_1.EnableActiveMetricRuleResponseBody; } }); +var EnableActiveMetricRuleResponse_1 = require("./EnableActiveMetricRuleResponse"); +Object.defineProperty(exports, "EnableActiveMetricRuleResponse", { enumerable: true, get: function () { return EnableActiveMetricRuleResponse_1.EnableActiveMetricRuleResponse; } }); +var EnableEventRulesRequest_1 = require("./EnableEventRulesRequest"); +Object.defineProperty(exports, "EnableEventRulesRequest", { enumerable: true, get: function () { return EnableEventRulesRequest_1.EnableEventRulesRequest; } }); +var EnableEventRulesResponseBody_1 = require("./EnableEventRulesResponseBody"); +Object.defineProperty(exports, "EnableEventRulesResponseBody", { enumerable: true, get: function () { return EnableEventRulesResponseBody_1.EnableEventRulesResponseBody; } }); +var EnableEventRulesResponse_1 = require("./EnableEventRulesResponse"); +Object.defineProperty(exports, "EnableEventRulesResponse", { enumerable: true, get: function () { return EnableEventRulesResponse_1.EnableEventRulesResponse; } }); +var EnableHostAvailabilityRequest_1 = require("./EnableHostAvailabilityRequest"); +Object.defineProperty(exports, "EnableHostAvailabilityRequest", { enumerable: true, get: function () { return EnableHostAvailabilityRequest_1.EnableHostAvailabilityRequest; } }); +var EnableHostAvailabilityResponseBody_1 = require("./EnableHostAvailabilityResponseBody"); +Object.defineProperty(exports, "EnableHostAvailabilityResponseBody", { enumerable: true, get: function () { return EnableHostAvailabilityResponseBody_1.EnableHostAvailabilityResponseBody; } }); +var EnableHostAvailabilityResponse_1 = require("./EnableHostAvailabilityResponse"); +Object.defineProperty(exports, "EnableHostAvailabilityResponse", { enumerable: true, get: function () { return EnableHostAvailabilityResponse_1.EnableHostAvailabilityResponse; } }); +var EnableMetricRuleBlackListRequest_1 = require("./EnableMetricRuleBlackListRequest"); +Object.defineProperty(exports, "EnableMetricRuleBlackListRequest", { enumerable: true, get: function () { return EnableMetricRuleBlackListRequest_1.EnableMetricRuleBlackListRequest; } }); +var EnableMetricRuleBlackListResponseBody_1 = require("./EnableMetricRuleBlackListResponseBody"); +Object.defineProperty(exports, "EnableMetricRuleBlackListResponseBody", { enumerable: true, get: function () { return EnableMetricRuleBlackListResponseBody_1.EnableMetricRuleBlackListResponseBody; } }); +var EnableMetricRuleBlackListResponse_1 = require("./EnableMetricRuleBlackListResponse"); +Object.defineProperty(exports, "EnableMetricRuleBlackListResponse", { enumerable: true, get: function () { return EnableMetricRuleBlackListResponse_1.EnableMetricRuleBlackListResponse; } }); +var EnableMetricRulesRequest_1 = require("./EnableMetricRulesRequest"); +Object.defineProperty(exports, "EnableMetricRulesRequest", { enumerable: true, get: function () { return EnableMetricRulesRequest_1.EnableMetricRulesRequest; } }); +var EnableMetricRulesResponseBody_1 = require("./EnableMetricRulesResponseBody"); +Object.defineProperty(exports, "EnableMetricRulesResponseBody", { enumerable: true, get: function () { return EnableMetricRulesResponseBody_1.EnableMetricRulesResponseBody; } }); +var EnableMetricRulesResponse_1 = require("./EnableMetricRulesResponse"); +Object.defineProperty(exports, "EnableMetricRulesResponse", { enumerable: true, get: function () { return EnableMetricRulesResponse_1.EnableMetricRulesResponse; } }); +var EnableSiteMonitorsRequest_1 = require("./EnableSiteMonitorsRequest"); +Object.defineProperty(exports, "EnableSiteMonitorsRequest", { enumerable: true, get: function () { return EnableSiteMonitorsRequest_1.EnableSiteMonitorsRequest; } }); +var EnableSiteMonitorsResponseBody_2 = require("./EnableSiteMonitorsResponseBody"); +Object.defineProperty(exports, "EnableSiteMonitorsResponseBody", { enumerable: true, get: function () { return EnableSiteMonitorsResponseBody_2.EnableSiteMonitorsResponseBody; } }); +var EnableSiteMonitorsResponse_1 = require("./EnableSiteMonitorsResponse"); +Object.defineProperty(exports, "EnableSiteMonitorsResponse", { enumerable: true, get: function () { return EnableSiteMonitorsResponse_1.EnableSiteMonitorsResponse; } }); +var InstallMonitoringAgentRequest_1 = require("./InstallMonitoringAgentRequest"); +Object.defineProperty(exports, "InstallMonitoringAgentRequest", { enumerable: true, get: function () { return InstallMonitoringAgentRequest_1.InstallMonitoringAgentRequest; } }); +var InstallMonitoringAgentResponseBody_1 = require("./InstallMonitoringAgentResponseBody"); +Object.defineProperty(exports, "InstallMonitoringAgentResponseBody", { enumerable: true, get: function () { return InstallMonitoringAgentResponseBody_1.InstallMonitoringAgentResponseBody; } }); +var InstallMonitoringAgentResponse_1 = require("./InstallMonitoringAgentResponse"); +Object.defineProperty(exports, "InstallMonitoringAgentResponse", { enumerable: true, get: function () { return InstallMonitoringAgentResponse_1.InstallMonitoringAgentResponse; } }); +var ModifyGroupMonitoringAgentProcessRequest_3 = require("./ModifyGroupMonitoringAgentProcessRequest"); +Object.defineProperty(exports, "ModifyGroupMonitoringAgentProcessRequest", { enumerable: true, get: function () { return ModifyGroupMonitoringAgentProcessRequest_3.ModifyGroupMonitoringAgentProcessRequest; } }); +var ModifyGroupMonitoringAgentProcessResponseBody_1 = require("./ModifyGroupMonitoringAgentProcessResponseBody"); +Object.defineProperty(exports, "ModifyGroupMonitoringAgentProcessResponseBody", { enumerable: true, get: function () { return ModifyGroupMonitoringAgentProcessResponseBody_1.ModifyGroupMonitoringAgentProcessResponseBody; } }); +var ModifyGroupMonitoringAgentProcessResponse_1 = require("./ModifyGroupMonitoringAgentProcessResponse"); +Object.defineProperty(exports, "ModifyGroupMonitoringAgentProcessResponse", { enumerable: true, get: function () { return ModifyGroupMonitoringAgentProcessResponse_1.ModifyGroupMonitoringAgentProcessResponse; } }); +var ModifyHostAvailabilityRequest_5 = require("./ModifyHostAvailabilityRequest"); +Object.defineProperty(exports, "ModifyHostAvailabilityRequest", { enumerable: true, get: function () { return ModifyHostAvailabilityRequest_5.ModifyHostAvailabilityRequest; } }); +var ModifyHostAvailabilityResponseBody_1 = require("./ModifyHostAvailabilityResponseBody"); +Object.defineProperty(exports, "ModifyHostAvailabilityResponseBody", { enumerable: true, get: function () { return ModifyHostAvailabilityResponseBody_1.ModifyHostAvailabilityResponseBody; } }); +var ModifyHostAvailabilityResponse_1 = require("./ModifyHostAvailabilityResponse"); +Object.defineProperty(exports, "ModifyHostAvailabilityResponse", { enumerable: true, get: function () { return ModifyHostAvailabilityResponse_1.ModifyHostAvailabilityResponse; } }); +var ModifyHostInfoRequest_1 = require("./ModifyHostInfoRequest"); +Object.defineProperty(exports, "ModifyHostInfoRequest", { enumerable: true, get: function () { return ModifyHostInfoRequest_1.ModifyHostInfoRequest; } }); +var ModifyHostInfoResponseBody_1 = require("./ModifyHostInfoResponseBody"); +Object.defineProperty(exports, "ModifyHostInfoResponseBody", { enumerable: true, get: function () { return ModifyHostInfoResponseBody_1.ModifyHostInfoResponseBody; } }); +var ModifyHostInfoResponse_1 = require("./ModifyHostInfoResponse"); +Object.defineProperty(exports, "ModifyHostInfoResponse", { enumerable: true, get: function () { return ModifyHostInfoResponse_1.ModifyHostInfoResponse; } }); +var ModifyHybridMonitorNamespaceRequest_1 = require("./ModifyHybridMonitorNamespaceRequest"); +Object.defineProperty(exports, "ModifyHybridMonitorNamespaceRequest", { enumerable: true, get: function () { return ModifyHybridMonitorNamespaceRequest_1.ModifyHybridMonitorNamespaceRequest; } }); +var ModifyHybridMonitorNamespaceResponseBody_1 = require("./ModifyHybridMonitorNamespaceResponseBody"); +Object.defineProperty(exports, "ModifyHybridMonitorNamespaceResponseBody", { enumerable: true, get: function () { return ModifyHybridMonitorNamespaceResponseBody_1.ModifyHybridMonitorNamespaceResponseBody; } }); +var ModifyHybridMonitorNamespaceResponse_1 = require("./ModifyHybridMonitorNamespaceResponse"); +Object.defineProperty(exports, "ModifyHybridMonitorNamespaceResponse", { enumerable: true, get: function () { return ModifyHybridMonitorNamespaceResponse_1.ModifyHybridMonitorNamespaceResponse; } }); +var ModifyHybridMonitorSlsgroupRequest_2 = require("./ModifyHybridMonitorSlsgroupRequest"); +Object.defineProperty(exports, "ModifyHybridMonitorSLSGroupRequest", { enumerable: true, get: function () { return ModifyHybridMonitorSlsgroupRequest_2.ModifyHybridMonitorSLSGroupRequest; } }); +var ModifyHybridMonitorSlsgroupResponseBody_1 = require("./ModifyHybridMonitorSlsgroupResponseBody"); +Object.defineProperty(exports, "ModifyHybridMonitorSLSGroupResponseBody", { enumerable: true, get: function () { return ModifyHybridMonitorSlsgroupResponseBody_1.ModifyHybridMonitorSLSGroupResponseBody; } }); +var ModifyHybridMonitorSlsgroupResponse_1 = require("./ModifyHybridMonitorSlsgroupResponse"); +Object.defineProperty(exports, "ModifyHybridMonitorSLSGroupResponse", { enumerable: true, get: function () { return ModifyHybridMonitorSlsgroupResponse_1.ModifyHybridMonitorSLSGroupResponse; } }); +var ModifyHybridMonitorTaskRequest_8 = require("./ModifyHybridMonitorTaskRequest"); +Object.defineProperty(exports, "ModifyHybridMonitorTaskRequest", { enumerable: true, get: function () { return ModifyHybridMonitorTaskRequest_8.ModifyHybridMonitorTaskRequest; } }); +var ModifyHybridMonitorTaskResponseBody_1 = require("./ModifyHybridMonitorTaskResponseBody"); +Object.defineProperty(exports, "ModifyHybridMonitorTaskResponseBody", { enumerable: true, get: function () { return ModifyHybridMonitorTaskResponseBody_1.ModifyHybridMonitorTaskResponseBody; } }); +var ModifyHybridMonitorTaskResponse_1 = require("./ModifyHybridMonitorTaskResponse"); +Object.defineProperty(exports, "ModifyHybridMonitorTaskResponse", { enumerable: true, get: function () { return ModifyHybridMonitorTaskResponse_1.ModifyHybridMonitorTaskResponse; } }); +var ModifyMetricRuleBlackListRequest_2 = require("./ModifyMetricRuleBlackListRequest"); +Object.defineProperty(exports, "ModifyMetricRuleBlackListRequest", { enumerable: true, get: function () { return ModifyMetricRuleBlackListRequest_2.ModifyMetricRuleBlackListRequest; } }); +var ModifyMetricRuleBlackListResponseBody_1 = require("./ModifyMetricRuleBlackListResponseBody"); +Object.defineProperty(exports, "ModifyMetricRuleBlackListResponseBody", { enumerable: true, get: function () { return ModifyMetricRuleBlackListResponseBody_1.ModifyMetricRuleBlackListResponseBody; } }); +var ModifyMetricRuleBlackListResponse_1 = require("./ModifyMetricRuleBlackListResponse"); +Object.defineProperty(exports, "ModifyMetricRuleBlackListResponse", { enumerable: true, get: function () { return ModifyMetricRuleBlackListResponse_1.ModifyMetricRuleBlackListResponse; } }); +var ModifyMetricRuleTemplateRequest_6 = require("./ModifyMetricRuleTemplateRequest"); +Object.defineProperty(exports, "ModifyMetricRuleTemplateRequest", { enumerable: true, get: function () { return ModifyMetricRuleTemplateRequest_6.ModifyMetricRuleTemplateRequest; } }); +var ModifyMetricRuleTemplateResponseBody_1 = require("./ModifyMetricRuleTemplateResponseBody"); +Object.defineProperty(exports, "ModifyMetricRuleTemplateResponseBody", { enumerable: true, get: function () { return ModifyMetricRuleTemplateResponseBody_1.ModifyMetricRuleTemplateResponseBody; } }); +var ModifyMetricRuleTemplateResponse_1 = require("./ModifyMetricRuleTemplateResponse"); +Object.defineProperty(exports, "ModifyMetricRuleTemplateResponse", { enumerable: true, get: function () { return ModifyMetricRuleTemplateResponse_1.ModifyMetricRuleTemplateResponse; } }); +var ModifyMonitorGroupRequest_1 = require("./ModifyMonitorGroupRequest"); +Object.defineProperty(exports, "ModifyMonitorGroupRequest", { enumerable: true, get: function () { return ModifyMonitorGroupRequest_1.ModifyMonitorGroupRequest; } }); +var ModifyMonitorGroupResponseBody_1 = require("./ModifyMonitorGroupResponseBody"); +Object.defineProperty(exports, "ModifyMonitorGroupResponseBody", { enumerable: true, get: function () { return ModifyMonitorGroupResponseBody_1.ModifyMonitorGroupResponseBody; } }); +var ModifyMonitorGroupResponse_1 = require("./ModifyMonitorGroupResponse"); +Object.defineProperty(exports, "ModifyMonitorGroupResponse", { enumerable: true, get: function () { return ModifyMonitorGroupResponse_1.ModifyMonitorGroupResponse; } }); +var ModifyMonitorGroupInstancesRequest_2 = require("./ModifyMonitorGroupInstancesRequest"); +Object.defineProperty(exports, "ModifyMonitorGroupInstancesRequest", { enumerable: true, get: function () { return ModifyMonitorGroupInstancesRequest_2.ModifyMonitorGroupInstancesRequest; } }); +var ModifyMonitorGroupInstancesResponseBody_1 = require("./ModifyMonitorGroupInstancesResponseBody"); +Object.defineProperty(exports, "ModifyMonitorGroupInstancesResponseBody", { enumerable: true, get: function () { return ModifyMonitorGroupInstancesResponseBody_1.ModifyMonitorGroupInstancesResponseBody; } }); +var ModifyMonitorGroupInstancesResponse_1 = require("./ModifyMonitorGroupInstancesResponse"); +Object.defineProperty(exports, "ModifyMonitorGroupInstancesResponse", { enumerable: true, get: function () { return ModifyMonitorGroupInstancesResponse_1.ModifyMonitorGroupInstancesResponse; } }); +var ModifySiteMonitorRequest_1 = require("./ModifySiteMonitorRequest"); +Object.defineProperty(exports, "ModifySiteMonitorRequest", { enumerable: true, get: function () { return ModifySiteMonitorRequest_1.ModifySiteMonitorRequest; } }); +var ModifySiteMonitorResponseBody_2 = require("./ModifySiteMonitorResponseBody"); +Object.defineProperty(exports, "ModifySiteMonitorResponseBody", { enumerable: true, get: function () { return ModifySiteMonitorResponseBody_2.ModifySiteMonitorResponseBody; } }); +var ModifySiteMonitorResponse_1 = require("./ModifySiteMonitorResponse"); +Object.defineProperty(exports, "ModifySiteMonitorResponse", { enumerable: true, get: function () { return ModifySiteMonitorResponse_1.ModifySiteMonitorResponse; } }); +var PutContactRequest_2 = require("./PutContactRequest"); +Object.defineProperty(exports, "PutContactRequest", { enumerable: true, get: function () { return PutContactRequest_2.PutContactRequest; } }); +var PutContactResponseBody_1 = require("./PutContactResponseBody"); +Object.defineProperty(exports, "PutContactResponseBody", { enumerable: true, get: function () { return PutContactResponseBody_1.PutContactResponseBody; } }); +var PutContactResponse_1 = require("./PutContactResponse"); +Object.defineProperty(exports, "PutContactResponse", { enumerable: true, get: function () { return PutContactResponse_1.PutContactResponse; } }); +var PutContactGroupRequest_1 = require("./PutContactGroupRequest"); +Object.defineProperty(exports, "PutContactGroupRequest", { enumerable: true, get: function () { return PutContactGroupRequest_1.PutContactGroupRequest; } }); +var PutContactGroupResponseBody_1 = require("./PutContactGroupResponseBody"); +Object.defineProperty(exports, "PutContactGroupResponseBody", { enumerable: true, get: function () { return PutContactGroupResponseBody_1.PutContactGroupResponseBody; } }); +var PutContactGroupResponse_1 = require("./PutContactGroupResponse"); +Object.defineProperty(exports, "PutContactGroupResponse", { enumerable: true, get: function () { return PutContactGroupResponse_1.PutContactGroupResponse; } }); +var PutCustomEventRequest_2 = require("./PutCustomEventRequest"); +Object.defineProperty(exports, "PutCustomEventRequest", { enumerable: true, get: function () { return PutCustomEventRequest_2.PutCustomEventRequest; } }); +var PutCustomEventResponseBody_1 = require("./PutCustomEventResponseBody"); +Object.defineProperty(exports, "PutCustomEventResponseBody", { enumerable: true, get: function () { return PutCustomEventResponseBody_1.PutCustomEventResponseBody; } }); +var PutCustomEventResponse_1 = require("./PutCustomEventResponse"); +Object.defineProperty(exports, "PutCustomEventResponse", { enumerable: true, get: function () { return PutCustomEventResponse_1.PutCustomEventResponse; } }); +var PutCustomEventRuleRequest_1 = require("./PutCustomEventRuleRequest"); +Object.defineProperty(exports, "PutCustomEventRuleRequest", { enumerable: true, get: function () { return PutCustomEventRuleRequest_1.PutCustomEventRuleRequest; } }); +var PutCustomEventRuleResponseBody_1 = require("./PutCustomEventRuleResponseBody"); +Object.defineProperty(exports, "PutCustomEventRuleResponseBody", { enumerable: true, get: function () { return PutCustomEventRuleResponseBody_1.PutCustomEventRuleResponseBody; } }); +var PutCustomEventRuleResponse_1 = require("./PutCustomEventRuleResponse"); +Object.defineProperty(exports, "PutCustomEventRuleResponse", { enumerable: true, get: function () { return PutCustomEventRuleResponse_1.PutCustomEventRuleResponse; } }); +var PutCustomMetricRequest_2 = require("./PutCustomMetricRequest"); +Object.defineProperty(exports, "PutCustomMetricRequest", { enumerable: true, get: function () { return PutCustomMetricRequest_2.PutCustomMetricRequest; } }); +var PutCustomMetricResponseBody_1 = require("./PutCustomMetricResponseBody"); +Object.defineProperty(exports, "PutCustomMetricResponseBody", { enumerable: true, get: function () { return PutCustomMetricResponseBody_1.PutCustomMetricResponseBody; } }); +var PutCustomMetricResponse_1 = require("./PutCustomMetricResponse"); +Object.defineProperty(exports, "PutCustomMetricResponse", { enumerable: true, get: function () { return PutCustomMetricResponse_1.PutCustomMetricResponse; } }); +var PutCustomMetricRuleRequest_1 = require("./PutCustomMetricRuleRequest"); +Object.defineProperty(exports, "PutCustomMetricRuleRequest", { enumerable: true, get: function () { return PutCustomMetricRuleRequest_1.PutCustomMetricRuleRequest; } }); +var PutCustomMetricRuleResponseBody_1 = require("./PutCustomMetricRuleResponseBody"); +Object.defineProperty(exports, "PutCustomMetricRuleResponseBody", { enumerable: true, get: function () { return PutCustomMetricRuleResponseBody_1.PutCustomMetricRuleResponseBody; } }); +var PutCustomMetricRuleResponse_1 = require("./PutCustomMetricRuleResponse"); +Object.defineProperty(exports, "PutCustomMetricRuleResponse", { enumerable: true, get: function () { return PutCustomMetricRuleResponse_1.PutCustomMetricRuleResponse; } }); +var PutEventRuleRequest_2 = require("./PutEventRuleRequest"); +Object.defineProperty(exports, "PutEventRuleRequest", { enumerable: true, get: function () { return PutEventRuleRequest_2.PutEventRuleRequest; } }); +var PutEventRuleResponseBody_1 = require("./PutEventRuleResponseBody"); +Object.defineProperty(exports, "PutEventRuleResponseBody", { enumerable: true, get: function () { return PutEventRuleResponseBody_1.PutEventRuleResponseBody; } }); +var PutEventRuleResponse_1 = require("./PutEventRuleResponse"); +Object.defineProperty(exports, "PutEventRuleResponse", { enumerable: true, get: function () { return PutEventRuleResponse_1.PutEventRuleResponse; } }); +var PutEventRuleTargetsRequest_7 = require("./PutEventRuleTargetsRequest"); +Object.defineProperty(exports, "PutEventRuleTargetsRequest", { enumerable: true, get: function () { return PutEventRuleTargetsRequest_7.PutEventRuleTargetsRequest; } }); +var PutEventRuleTargetsResponseBody_7 = require("./PutEventRuleTargetsResponseBody"); +Object.defineProperty(exports, "PutEventRuleTargetsResponseBody", { enumerable: true, get: function () { return PutEventRuleTargetsResponseBody_7.PutEventRuleTargetsResponseBody; } }); +var PutEventRuleTargetsResponse_1 = require("./PutEventRuleTargetsResponse"); +Object.defineProperty(exports, "PutEventRuleTargetsResponse", { enumerable: true, get: function () { return PutEventRuleTargetsResponse_1.PutEventRuleTargetsResponse; } }); +var PutExporterOutputRequest_1 = require("./PutExporterOutputRequest"); +Object.defineProperty(exports, "PutExporterOutputRequest", { enumerable: true, get: function () { return PutExporterOutputRequest_1.PutExporterOutputRequest; } }); +var PutExporterOutputResponseBody_1 = require("./PutExporterOutputResponseBody"); +Object.defineProperty(exports, "PutExporterOutputResponseBody", { enumerable: true, get: function () { return PutExporterOutputResponseBody_1.PutExporterOutputResponseBody; } }); +var PutExporterOutputResponse_1 = require("./PutExporterOutputResponse"); +Object.defineProperty(exports, "PutExporterOutputResponse", { enumerable: true, get: function () { return PutExporterOutputResponse_1.PutExporterOutputResponse; } }); +var PutExporterRuleRequest_1 = require("./PutExporterRuleRequest"); +Object.defineProperty(exports, "PutExporterRuleRequest", { enumerable: true, get: function () { return PutExporterRuleRequest_1.PutExporterRuleRequest; } }); +var PutExporterRuleResponseBody_1 = require("./PutExporterRuleResponseBody"); +Object.defineProperty(exports, "PutExporterRuleResponseBody", { enumerable: true, get: function () { return PutExporterRuleResponseBody_1.PutExporterRuleResponseBody; } }); +var PutExporterRuleResponse_1 = require("./PutExporterRuleResponse"); +Object.defineProperty(exports, "PutExporterRuleResponse", { enumerable: true, get: function () { return PutExporterRuleResponse_1.PutExporterRuleResponse; } }); +var PutGroupMetricRuleRequest_6 = require("./PutGroupMetricRuleRequest"); +Object.defineProperty(exports, "PutGroupMetricRuleRequest", { enumerable: true, get: function () { return PutGroupMetricRuleRequest_6.PutGroupMetricRuleRequest; } }); +var PutGroupMetricRuleResponseBody_2 = require("./PutGroupMetricRuleResponseBody"); +Object.defineProperty(exports, "PutGroupMetricRuleResponseBody", { enumerable: true, get: function () { return PutGroupMetricRuleResponseBody_2.PutGroupMetricRuleResponseBody; } }); +var PutGroupMetricRuleResponse_1 = require("./PutGroupMetricRuleResponse"); +Object.defineProperty(exports, "PutGroupMetricRuleResponse", { enumerable: true, get: function () { return PutGroupMetricRuleResponse_1.PutGroupMetricRuleResponse; } }); +var PutHybridMonitorMetricDataRequest_3 = require("./PutHybridMonitorMetricDataRequest"); +Object.defineProperty(exports, "PutHybridMonitorMetricDataRequest", { enumerable: true, get: function () { return PutHybridMonitorMetricDataRequest_3.PutHybridMonitorMetricDataRequest; } }); +var PutHybridMonitorMetricDataResponseBody_2 = require("./PutHybridMonitorMetricDataResponseBody"); +Object.defineProperty(exports, "PutHybridMonitorMetricDataResponseBody", { enumerable: true, get: function () { return PutHybridMonitorMetricDataResponseBody_2.PutHybridMonitorMetricDataResponseBody; } }); +var PutHybridMonitorMetricDataResponse_1 = require("./PutHybridMonitorMetricDataResponse"); +Object.defineProperty(exports, "PutHybridMonitorMetricDataResponse", { enumerable: true, get: function () { return PutHybridMonitorMetricDataResponse_1.PutHybridMonitorMetricDataResponse; } }); +var PutLogMonitorRequest_4 = require("./PutLogMonitorRequest"); +Object.defineProperty(exports, "PutLogMonitorRequest", { enumerable: true, get: function () { return PutLogMonitorRequest_4.PutLogMonitorRequest; } }); +var PutLogMonitorResponseBody_1 = require("./PutLogMonitorResponseBody"); +Object.defineProperty(exports, "PutLogMonitorResponseBody", { enumerable: true, get: function () { return PutLogMonitorResponseBody_1.PutLogMonitorResponseBody; } }); +var PutLogMonitorResponse_1 = require("./PutLogMonitorResponse"); +Object.defineProperty(exports, "PutLogMonitorResponse", { enumerable: true, get: function () { return PutLogMonitorResponse_1.PutLogMonitorResponse; } }); +var PutMetricRuleTargetsRequest_2 = require("./PutMetricRuleTargetsRequest"); +Object.defineProperty(exports, "PutMetricRuleTargetsRequest", { enumerable: true, get: function () { return PutMetricRuleTargetsRequest_2.PutMetricRuleTargetsRequest; } }); +var PutMetricRuleTargetsResponseBody_4 = require("./PutMetricRuleTargetsResponseBody"); +Object.defineProperty(exports, "PutMetricRuleTargetsResponseBody", { enumerable: true, get: function () { return PutMetricRuleTargetsResponseBody_4.PutMetricRuleTargetsResponseBody; } }); +var PutMetricRuleTargetsResponse_1 = require("./PutMetricRuleTargetsResponse"); +Object.defineProperty(exports, "PutMetricRuleTargetsResponse", { enumerable: true, get: function () { return PutMetricRuleTargetsResponse_1.PutMetricRuleTargetsResponse; } }); +var PutMonitorGroupDynamicRuleRequest_3 = require("./PutMonitorGroupDynamicRuleRequest"); +Object.defineProperty(exports, "PutMonitorGroupDynamicRuleRequest", { enumerable: true, get: function () { return PutMonitorGroupDynamicRuleRequest_3.PutMonitorGroupDynamicRuleRequest; } }); +var PutMonitorGroupDynamicRuleResponseBody_1 = require("./PutMonitorGroupDynamicRuleResponseBody"); +Object.defineProperty(exports, "PutMonitorGroupDynamicRuleResponseBody", { enumerable: true, get: function () { return PutMonitorGroupDynamicRuleResponseBody_1.PutMonitorGroupDynamicRuleResponseBody; } }); +var PutMonitorGroupDynamicRuleResponse_1 = require("./PutMonitorGroupDynamicRuleResponse"); +Object.defineProperty(exports, "PutMonitorGroupDynamicRuleResponse", { enumerable: true, get: function () { return PutMonitorGroupDynamicRuleResponse_1.PutMonitorGroupDynamicRuleResponse; } }); +var PutMonitoringConfigRequest_1 = require("./PutMonitoringConfigRequest"); +Object.defineProperty(exports, "PutMonitoringConfigRequest", { enumerable: true, get: function () { return PutMonitoringConfigRequest_1.PutMonitoringConfigRequest; } }); +var PutMonitoringConfigResponseBody_1 = require("./PutMonitoringConfigResponseBody"); +Object.defineProperty(exports, "PutMonitoringConfigResponseBody", { enumerable: true, get: function () { return PutMonitoringConfigResponseBody_1.PutMonitoringConfigResponseBody; } }); +var PutMonitoringConfigResponse_1 = require("./PutMonitoringConfigResponse"); +Object.defineProperty(exports, "PutMonitoringConfigResponse", { enumerable: true, get: function () { return PutMonitoringConfigResponse_1.PutMonitoringConfigResponse; } }); +var PutResourceMetricRuleRequest_10 = require("./PutResourceMetricRuleRequest"); +Object.defineProperty(exports, "PutResourceMetricRuleRequest", { enumerable: true, get: function () { return PutResourceMetricRuleRequest_10.PutResourceMetricRuleRequest; } }); +var PutResourceMetricRuleShrinkRequest_6 = require("./PutResourceMetricRuleShrinkRequest"); +Object.defineProperty(exports, "PutResourceMetricRuleShrinkRequest", { enumerable: true, get: function () { return PutResourceMetricRuleShrinkRequest_6.PutResourceMetricRuleShrinkRequest; } }); +var PutResourceMetricRuleResponseBody_1 = require("./PutResourceMetricRuleResponseBody"); +Object.defineProperty(exports, "PutResourceMetricRuleResponseBody", { enumerable: true, get: function () { return PutResourceMetricRuleResponseBody_1.PutResourceMetricRuleResponseBody; } }); +var PutResourceMetricRuleResponse_1 = require("./PutResourceMetricRuleResponse"); +Object.defineProperty(exports, "PutResourceMetricRuleResponse", { enumerable: true, get: function () { return PutResourceMetricRuleResponse_1.PutResourceMetricRuleResponse; } }); +var PutResourceMetricRulesRequest_7 = require("./PutResourceMetricRulesRequest"); +Object.defineProperty(exports, "PutResourceMetricRulesRequest", { enumerable: true, get: function () { return PutResourceMetricRulesRequest_7.PutResourceMetricRulesRequest; } }); +var PutResourceMetricRulesResponseBody_4 = require("./PutResourceMetricRulesResponseBody"); +Object.defineProperty(exports, "PutResourceMetricRulesResponseBody", { enumerable: true, get: function () { return PutResourceMetricRulesResponseBody_4.PutResourceMetricRulesResponseBody; } }); +var PutResourceMetricRulesResponse_1 = require("./PutResourceMetricRulesResponse"); +Object.defineProperty(exports, "PutResourceMetricRulesResponse", { enumerable: true, get: function () { return PutResourceMetricRulesResponse_1.PutResourceMetricRulesResponse; } }); +var RemoveTagsRequest_2 = require("./RemoveTagsRequest"); +Object.defineProperty(exports, "RemoveTagsRequest", { enumerable: true, get: function () { return RemoveTagsRequest_2.RemoveTagsRequest; } }); +var RemoveTagsResponseBody_2 = require("./RemoveTagsResponseBody"); +Object.defineProperty(exports, "RemoveTagsResponseBody", { enumerable: true, get: function () { return RemoveTagsResponseBody_2.RemoveTagsResponseBody; } }); +var RemoveTagsResponse_1 = require("./RemoveTagsResponse"); +Object.defineProperty(exports, "RemoveTagsResponse", { enumerable: true, get: function () { return RemoveTagsResponse_1.RemoveTagsResponse; } }); +var SendDryRunSystemEventRequest_1 = require("./SendDryRunSystemEventRequest"); +Object.defineProperty(exports, "SendDryRunSystemEventRequest", { enumerable: true, get: function () { return SendDryRunSystemEventRequest_1.SendDryRunSystemEventRequest; } }); +var SendDryRunSystemEventResponseBody_1 = require("./SendDryRunSystemEventResponseBody"); +Object.defineProperty(exports, "SendDryRunSystemEventResponseBody", { enumerable: true, get: function () { return SendDryRunSystemEventResponseBody_1.SendDryRunSystemEventResponseBody; } }); +var SendDryRunSystemEventResponse_1 = require("./SendDryRunSystemEventResponse"); +Object.defineProperty(exports, "SendDryRunSystemEventResponse", { enumerable: true, get: function () { return SendDryRunSystemEventResponse_1.SendDryRunSystemEventResponse; } }); +var UninstallMonitoringAgentRequest_1 = require("./UninstallMonitoringAgentRequest"); +Object.defineProperty(exports, "UninstallMonitoringAgentRequest", { enumerable: true, get: function () { return UninstallMonitoringAgentRequest_1.UninstallMonitoringAgentRequest; } }); +var UninstallMonitoringAgentResponseBody_1 = require("./UninstallMonitoringAgentResponseBody"); +Object.defineProperty(exports, "UninstallMonitoringAgentResponseBody", { enumerable: true, get: function () { return UninstallMonitoringAgentResponseBody_1.UninstallMonitoringAgentResponseBody; } }); +var UninstallMonitoringAgentResponse_1 = require("./UninstallMonitoringAgentResponse"); +Object.defineProperty(exports, "UninstallMonitoringAgentResponse", { enumerable: true, get: function () { return UninstallMonitoringAgentResponse_1.UninstallMonitoringAgentResponse; } }); +//# sourceMappingURL=model.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/dist/models/model.js.map b/backend/node_modules/@alicloud/cms20190101/dist/models/model.js.map new file mode 100644 index 0000000..28d80c0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/dist/models/model.js.map @@ -0,0 +1 @@ +{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/models/model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,2CAAiD;AAAxC,+GAAA,iBAAiB,OAAA;AAC1B,mDAAiF;AAAxE,+IAAA,6CAA6C,OAAA;AACtD,mDAA6D;AAApD,2HAAA,yBAAyB,OAAA;AAClC,+CAAkE;AAAzD,gIAAA,gCAAgC,OAAA;AACzC,+CAA0D;AAAjD,wHAAA,wBAAwB,OAAA;AACjC,+CAAmF;AAA1E,iJAAA,iDAAiD,OAAA;AAC1D,+CAAwE;AAA/D,sIAAA,sCAAsC,OAAA;AAC/C,+CAA6D;AAApD,2HAAA,2BAA2B,OAAA;AACpC,+CAAwD;AAA/C,sHAAA,sBAAsB,OAAA;AAC/B,+CAA6E;AAApE,2IAAA,2CAA2C,OAAA;AACpD,+CAA0E;AAAjE,wIAAA,wCAAwC,OAAA;AACjD,+CAA4D;AAAnD,0HAAA,0BAA0B,OAAA;AACnC,gDAAyE;AAAhE,wIAAA,uCAAuC,OAAA;AAChD,gDAA+D;AAAtD,8HAAA,6BAA6B,OAAA;AACtC,gDAA0E;AAAjE,yIAAA,wCAAwC,OAAA;AACjD,gDAAyD;AAAhD,wHAAA,uBAAuB,OAAA;AAChC,gDAAkD;AAAzC,iHAAA,gBAAgB,OAAA;AACzB,gDAAqE;AAA5D,oIAAA,mCAAmC,OAAA;AAC5C,gDAAsE;AAA7D,qIAAA,oCAAoC,OAAA;AAC7C,gDAAwD;AAA/C,uHAAA,sBAAsB,OAAA;AAC/B,gDA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,0BAA0B,OAAA;AACnC,qFAAoF;AAA3E,kJAAA,+BAA+B,OAAA;AACxC,6EAA4E;AAAnE,0IAAA,2BAA2B,OAAA;AACpC,gFAA8E;AAArE,6IAAA,4BAA4B,OAAA;AACrC,2FAA0F;AAAjF,wJAAA,kCAAkC,OAAA;AAC3C,yFAAwF;AAA/E,sJAAA,iCAAiC,OAAA;AAC1C,iFAAgF;AAAvE,8IAAA,6BAA6B,OAAA;AACtC,iFAAgF;AAAvE,8IAAA,6BAA6B,OAAA;AACtC,2FAA0F;AAAjF,wJAAA,kCAAkC,OAAA;AAC3C,mFAAkF;AAAzE,gJAAA,8BAA8B,OAAA;AACvC,yDAAwD;AAA/C,sHAAA,iBAAiB,OAAA;AAC1B,mEAAkE;AAAzD,gIAAA,sBAAsB,OAAA;AAC/B,2DAA0D;AAAjD,wHAAA,kBAAkB,OAAA;AAC3B,+EAA8E;AAArE,4IAAA,4BAA4B,OAAA;AACrC,yFAAwF;AAA/E,sJAAA,iCAAiC,OAAA;AAC1C,iFAAgF;AAAvE,8IAAA,6BAA6B,OAAA;AACtC,qFAAoF;AAA3E,kJAAA,+BAA+B,OAAA;AACxC,+FAA8F;AAArF,4JAAA,oCAAoC,OAAA;AAC7C,uFAAsF;AAA7E,oJAAA,gCAAgC,OAAA"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/package.json b/backend/node_modules/@alicloud/cms20190101/package.json new file mode 100644 index 0000000..aaf7cd3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/package.json @@ -0,0 +1,29 @@ +{ + "name": "@alicloud/cms20190101", + "version": "4.0.7", + "description": "", + "main": "dist/client.js", + "scripts": { + "test": "mocha --reporter spec --timeout 3000 test/*.test.js", + "test-cov": "nyc -e .ts -r=html -r=text -r=lcov npm run test", + "build": "tsc", + "prepublishOnly": "tsc" + }, + "author": "Alibaba Cloud SDK", + "license": "Apache-2.0", + "devDependencies": { + "@types/node": "^16.0.0", + "nyc": "^15.0.0", + "source-map-support": "^0.5.16", + "ts-node": "^10.0.0", + "typescript": "^5" + }, + "dependencies": { + "@darabonba/typescript": "^1.0.0", + "@alicloud/openapi-core": "^1.0.0" + }, + "files": [ + "dist", + "src" + ] +} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/cms20190101/src/client.ts b/backend/node_modules/@alicloud/cms20190101/src/client.ts new file mode 100644 index 0000000..b2a4270 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/client.ts @@ -0,0 +1,9663 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import OpenApi from '@alicloud/openapi-core'; +import { OpenApiUtil, $OpenApiUtil }from '@alicloud/openapi-core'; + + +import * as $_model from './models/model'; +export * from './models/model'; + +export default class Client extends OpenApi { + + constructor(config: $OpenApiUtil.Config) { + super(config); + this._endpointRule = ""; + this.checkConfig(config); + this._endpoint = this.getEndpoint("cms", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint); + } + + + getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {[key: string ]: string}, endpoint: string): string { + if (!$dara.isNull(endpoint)) { + return endpoint; + } + + if (!$dara.isNull(endpointMap) && !$dara.isNull(endpointMap[regionId])) { + return endpointMap[regionId]; + } + + return OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix); + } + + /** + * Adds tags to an application group. + * + * @remarks + * This topic provides an example on how to add a tag to an application group whose ID is `7301****`. In this example, the key of the tag is `key1` and the value of the tag is `value1`. + * + * @param request - AddTagsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns AddTagsResponse + */ + async addTagsWithOptions(request: $_model.AddTagsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.AddTagsResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.groupIds)) { + query["GroupIds"] = request.groupIds; + } + + if (!$dara.isNull(request.tag)) { + query["Tag"] = request.tag; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "AddTags", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.AddTagsResponse>(await this.callApi(params, req, runtime), new $_model.AddTagsResponse({})); + } + + /** + * Adds tags to an application group. + * + * @remarks + * This topic provides an example on how to add a tag to an application group whose ID is `7301****`. In this example, the key of the tag is `key1` and the value of the tag is `value1`. + * + * @param request - AddTagsRequest + * @returns AddTagsResponse + */ + async addTags(request: $_model.AddTagsRequest): Promise<$_model.AddTagsResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.addTagsWithOptions(request, runtime); + } + + /** + * Applies an alert template to an application group to generate an alert rule. + * + * @remarks + * In this example, the `700****` alert template is applied to the `123456` application group. For the generated alert rule, the ID is `applyTemplate8ab74c6b-9f27-47ab-8841-de01dc08****`, and the name is `test123`. + * + * @param request - ApplyMetricRuleTemplateRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ApplyMetricRuleTemplateResponse + */ + async applyMetricRuleTemplateWithOptions(request: $_model.ApplyMetricRuleTemplateRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ApplyMetricRuleTemplateResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.appendMode)) { + query["AppendMode"] = request.appendMode; + } + + if (!$dara.isNull(request.applyMode)) { + query["ApplyMode"] = request.applyMode; + } + + if (!$dara.isNull(request.enableEndTime)) { + query["EnableEndTime"] = request.enableEndTime; + } + + if (!$dara.isNull(request.enableStartTime)) { + query["EnableStartTime"] = request.enableStartTime; + } + + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.notifyLevel)) { + query["NotifyLevel"] = request.notifyLevel; + } + + if (!$dara.isNull(request.silenceTime)) { + query["SilenceTime"] = request.silenceTime; + } + + if (!$dara.isNull(request.templateIds)) { + query["TemplateIds"] = request.templateIds; + } + + if (!$dara.isNull(request.webhook)) { + query["Webhook"] = request.webhook; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "ApplyMetricRuleTemplate", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.ApplyMetricRuleTemplateResponse>(await this.callApi(params, req, runtime), new $_model.ApplyMetricRuleTemplateResponse({})); + } + + /** + * Applies an alert template to an application group to generate an alert rule. + * + * @remarks + * In this example, the `700****` alert template is applied to the `123456` application group. For the generated alert rule, the ID is `applyTemplate8ab74c6b-9f27-47ab-8841-de01dc08****`, and the name is `test123`. + * + * @param request - ApplyMetricRuleTemplateRequest + * @returns ApplyMetricRuleTemplateResponse + */ + async applyMetricRuleTemplate(request: $_model.ApplyMetricRuleTemplateRequest): Promise<$_model.ApplyMetricRuleTemplateResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.applyMetricRuleTemplateWithOptions(request, runtime); + } + + /** + * Creates site monitoring tasks. + * + * @remarks + * This topic provides an example on how to create a site monitoring task named `HangZhou_ECS1`. The URL that is monitored by the task is `https://www.aliyun.com` and the type of the task is `HTTP`. The returned result shows that the site monitoring task is created. The name of the site monitoring task is `HangZhou_ECS1` and the task ID is `679fbe4f-b80b-4706-91b2-5427b43e****`. + * + * @param request - BatchCreateInstantSiteMonitorRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns BatchCreateInstantSiteMonitorResponse + */ + async batchCreateInstantSiteMonitorWithOptions(request: $_model.BatchCreateInstantSiteMonitorRequest, runtime: $dara.RuntimeOptions): Promise<$_model.BatchCreateInstantSiteMonitorResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.taskList)) { + query["TaskList"] = request.taskList; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "BatchCreateInstantSiteMonitor", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.BatchCreateInstantSiteMonitorResponse>(await this.callApi(params, req, runtime), new $_model.BatchCreateInstantSiteMonitorResponse({})); + } + + /** + * Creates site monitoring tasks. + * + * @remarks + * This topic provides an example on how to create a site monitoring task named `HangZhou_ECS1`. The URL that is monitored by the task is `https://www.aliyun.com` and the type of the task is `HTTP`. The returned result shows that the site monitoring task is created. The name of the site monitoring task is `HangZhou_ECS1` and the task ID is `679fbe4f-b80b-4706-91b2-5427b43e****`. + * + * @param request - BatchCreateInstantSiteMonitorRequest + * @returns BatchCreateInstantSiteMonitorResponse + */ + async batchCreateInstantSiteMonitor(request: $_model.BatchCreateInstantSiteMonitorRequest): Promise<$_model.BatchCreateInstantSiteMonitorResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.batchCreateInstantSiteMonitorWithOptions(request, runtime); + } + + /** + * Exports the monitoring data that is defined in the Cursor operation. + * + * @remarks + * ### [](#)Prerequisites + * The `Cursor` information is returned by calling the [Cursor](https://help.aliyun.com/document_detail/2330730.html) operation. + * ### [](#)Description + * This topic provides an example on how to export the monitoring data of the `cpu_idle` metric for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. The `Cursor` information is specified. A maximum of 1,000 data entries can be returned in each response. + * + * @param tmpReq - BatchExportRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns BatchExportResponse + */ + async batchExportWithOptions(tmpReq: $_model.BatchExportRequest, runtime: $dara.RuntimeOptions): Promise<$_model.BatchExportResponse> { + tmpReq.validate(); + let request = new $_model.BatchExportShrinkRequest({ }); + OpenApiUtil.convert(tmpReq, request); + if (!$dara.isNull(tmpReq.measurements)) { + request.measurementsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.measurements, "Measurements", "json"); + } + + let body : {[key: string ]: any} = { }; + if (!$dara.isNull(request.cursor)) { + body["Cursor"] = request.cursor; + } + + if (!$dara.isNull(request.length)) { + body["Length"] = request.length; + } + + if (!$dara.isNull(request.measurementsShrink)) { + body["Measurements"] = request.measurementsShrink; + } + + if (!$dara.isNull(request.metric)) { + body["Metric"] = request.metric; + } + + if (!$dara.isNull(request.namespace)) { + body["Namespace"] = request.namespace; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + body: OpenApiUtil.parseToMap(body), + }); + let params = new $OpenApiUtil.Params({ + action: "BatchExport", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.BatchExportResponse>(await this.callApi(params, req, runtime), new $_model.BatchExportResponse({})); + } + + /** + * Exports the monitoring data that is defined in the Cursor operation. + * + * @remarks + * ### [](#)Prerequisites + * The `Cursor` information is returned by calling the [Cursor](https://help.aliyun.com/document_detail/2330730.html) operation. + * ### [](#)Description + * This topic provides an example on how to export the monitoring data of the `cpu_idle` metric for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. The `Cursor` information is specified. A maximum of 1,000 data entries can be returned in each response. + * + * @param request - BatchExportRequest + * @returns BatchExportResponse + */ + async batchExport(request: $_model.BatchExportRequest): Promise<$_model.BatchExportResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.batchExportWithOptions(request, runtime); + } + + /** + * Creates an application group based on the tags of cloud resources. + * + * @remarks + * This operation is available for Elastic Compute Service (ECS), ApsaraDB RDS, and Server Load Balancer (SLB). + * This topic provides an example to show how to create an application group for resources whose tag key is `ecs_instance`. In this example, the alert contact group of the application group is `ECS_Group`. + * + * @param request - CreateDynamicTagGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateDynamicTagGroupResponse + */ + async createDynamicTagGroupWithOptions(request: $_model.CreateDynamicTagGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateDynamicTagGroupResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.contactGroupList)) { + query["ContactGroupList"] = request.contactGroupList; + } + + if (!$dara.isNull(request.enableInstallAgent)) { + query["EnableInstallAgent"] = request.enableInstallAgent; + } + + if (!$dara.isNull(request.enableSubscribeEvent)) { + query["EnableSubscribeEvent"] = request.enableSubscribeEvent; + } + + if (!$dara.isNull(request.matchExpress)) { + query["MatchExpress"] = request.matchExpress; + } + + if (!$dara.isNull(request.matchExpressFilterRelation)) { + query["MatchExpressFilterRelation"] = request.matchExpressFilterRelation; + } + + if (!$dara.isNull(request.tagKey)) { + query["TagKey"] = request.tagKey; + } + + if (!$dara.isNull(request.tagRegionId)) { + query["TagRegionId"] = request.tagRegionId; + } + + if (!$dara.isNull(request.templateIdList)) { + query["TemplateIdList"] = request.templateIdList; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "CreateDynamicTagGroup", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.CreateDynamicTagGroupResponse>(await this.callApi(params, req, runtime), new $_model.CreateDynamicTagGroupResponse({})); + } + + /** + * Creates an application group based on the tags of cloud resources. + * + * @remarks + * This operation is available for Elastic Compute Service (ECS), ApsaraDB RDS, and Server Load Balancer (SLB). + * This topic provides an example to show how to create an application group for resources whose tag key is `ecs_instance`. In this example, the alert contact group of the application group is `ECS_Group`. + * + * @param request - CreateDynamicTagGroupRequest + * @returns CreateDynamicTagGroupResponse + */ + async createDynamicTagGroup(request: $_model.CreateDynamicTagGroupRequest): Promise<$_model.CreateDynamicTagGroupResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.createDynamicTagGroupWithOptions(request, runtime); + } + + /** + * Creates one or more alert rules for a specified application group. + * + * @remarks + * This topic provides an example to show how to create an alert rule for the `cpu_total` metric of Elastic Compute Service (ECS) in the `123456` application group. The ID of the alert rule is `456789`. The name of the alert rule is `ECS_Rule1`. The alert level is `Critical`. The statistical method is `Average`. The comparison operator is `GreaterThanOrEqualToThreshold`. The alert threshold is `90`. The number of alert retries is `3`. The response shows that the alert rule named `ECS_Rule1` is created. + * + * @param request - CreateGroupMetricRulesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateGroupMetricRulesResponse + */ + async createGroupMetricRulesWithOptions(request: $_model.CreateGroupMetricRulesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateGroupMetricRulesResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.groupMetricRules)) { + query["GroupMetricRules"] = request.groupMetricRules; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "CreateGroupMetricRules", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.CreateGroupMetricRulesResponse>(await this.callApi(params, req, runtime), new $_model.CreateGroupMetricRulesResponse({})); + } + + /** + * Creates one or more alert rules for a specified application group. + * + * @remarks + * This topic provides an example to show how to create an alert rule for the `cpu_total` metric of Elastic Compute Service (ECS) in the `123456` application group. The ID of the alert rule is `456789`. The name of the alert rule is `ECS_Rule1`. The alert level is `Critical`. The statistical method is `Average`. The comparison operator is `GreaterThanOrEqualToThreshold`. The alert threshold is `90`. The number of alert retries is `3`. The response shows that the alert rule named `ECS_Rule1` is created. + * + * @param request - CreateGroupMetricRulesRequest + * @returns CreateGroupMetricRulesResponse + */ + async createGroupMetricRules(request: $_model.CreateGroupMetricRulesRequest): Promise<$_model.CreateGroupMetricRulesResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.createGroupMetricRulesWithOptions(request, runtime); + } + + /** + * Creates a process monitoring task for an application group. + * + * @param request - CreateGroupMonitoringAgentProcessRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateGroupMonitoringAgentProcessResponse + */ + async createGroupMonitoringAgentProcessWithOptions(request: $_model.CreateGroupMonitoringAgentProcessRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateGroupMonitoringAgentProcessResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.alertConfig)) { + query["AlertConfig"] = request.alertConfig; + } + + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.matchExpress)) { + query["MatchExpress"] = request.matchExpress; + } + + if (!$dara.isNull(request.matchExpressFilterRelation)) { + query["MatchExpressFilterRelation"] = request.matchExpressFilterRelation; + } + + if (!$dara.isNull(request.processName)) { + query["ProcessName"] = request.processName; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "CreateGroupMonitoringAgentProcess", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.CreateGroupMonitoringAgentProcessResponse>(await this.callApi(params, req, runtime), new $_model.CreateGroupMonitoringAgentProcessResponse({})); + } + + /** + * Creates a process monitoring task for an application group. + * + * @param request - CreateGroupMonitoringAgentProcessRequest + * @returns CreateGroupMonitoringAgentProcessResponse + */ + async createGroupMonitoringAgentProcess(request: $_model.CreateGroupMonitoringAgentProcessRequest): Promise<$_model.CreateGroupMonitoringAgentProcessResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.createGroupMonitoringAgentProcessWithOptions(request, runtime); + } + + /** + * Creates an availability monitoring task. + * + * @remarks + * This topic provides an example on how to create an availability monitoring task named `task1` in an application group named `123456`. The TaskType parameter of the task is set to `HTTP`. After you start the task, the system sends alerts by using the specified email address and DingTalk chatbot. + * + * @param request - CreateHostAvailabilityRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateHostAvailabilityResponse + */ + async createHostAvailabilityWithOptions(request: $_model.CreateHostAvailabilityRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateHostAvailabilityResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.alertConfigEscalationList)) { + query["AlertConfigEscalationList"] = request.alertConfigEscalationList; + } + + if (!$dara.isNull(request.alertConfigTargetList)) { + query["AlertConfigTargetList"] = request.alertConfigTargetList; + } + + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.instanceList)) { + query["InstanceList"] = request.instanceList; + } + + if (!$dara.isNull(request.taskName)) { + query["TaskName"] = request.taskName; + } + + if (!$dara.isNull(request.taskScope)) { + query["TaskScope"] = request.taskScope; + } + + if (!$dara.isNull(request.taskType)) { + query["TaskType"] = request.taskType; + } + + if (!$dara.isNull(request.alertConfig)) { + query["AlertConfig"] = request.alertConfig; + } + + if (!$dara.isNull(request.taskOption)) { + query["TaskOption"] = request.taskOption; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "CreateHostAvailability", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.CreateHostAvailabilityResponse>(await this.callApi(params, req, runtime), new $_model.CreateHostAvailabilityResponse({})); + } + + /** + * Creates an availability monitoring task. + * + * @remarks + * This topic provides an example on how to create an availability monitoring task named `task1` in an application group named `123456`. The TaskType parameter of the task is set to `HTTP`. After you start the task, the system sends alerts by using the specified email address and DingTalk chatbot. + * + * @param request - CreateHostAvailabilityRequest + * @returns CreateHostAvailabilityResponse + */ + async createHostAvailability(request: $_model.CreateHostAvailabilityRequest): Promise<$_model.CreateHostAvailabilityResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.createHostAvailabilityWithOptions(request, runtime); + } + + /** + * Creates a namespace. + * + * @remarks + * ## [](#)Prerequisites + * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](https://help.aliyun.com/document_detail/250773.html). + * ## [](#)Operation description + * This topic provides an example on how to create a namespace named `aliyun`. In this example, the data retention period of the namespace is set to `cms.s1.3xlarge`. The returned result indicates that the namespace is created. + * + * @param request - CreateHybridMonitorNamespaceRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateHybridMonitorNamespaceResponse + */ + async createHybridMonitorNamespaceWithOptions(request: $_model.CreateHybridMonitorNamespaceRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateHybridMonitorNamespaceResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.description)) { + query["Description"] = request.description; + } + + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + + if (!$dara.isNull(request.namespaceRegion)) { + query["NamespaceRegion"] = request.namespaceRegion; + } + + if (!$dara.isNull(request.namespaceType)) { + query["NamespaceType"] = request.namespaceType; + } + + if (!$dara.isNull(request.spec)) { + query["Spec"] = request.spec; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "CreateHybridMonitorNamespace", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.CreateHybridMonitorNamespaceResponse>(await this.callApi(params, req, runtime), new $_model.CreateHybridMonitorNamespaceResponse({})); + } + + /** + * Creates a namespace. + * + * @remarks + * ## [](#)Prerequisites + * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](https://help.aliyun.com/document_detail/250773.html). + * ## [](#)Operation description + * This topic provides an example on how to create a namespace named `aliyun`. In this example, the data retention period of the namespace is set to `cms.s1.3xlarge`. The returned result indicates that the namespace is created. + * + * @param request - CreateHybridMonitorNamespaceRequest + * @returns CreateHybridMonitorNamespaceResponse + */ + async createHybridMonitorNamespace(request: $_model.CreateHybridMonitorNamespaceRequest): Promise<$_model.CreateHybridMonitorNamespaceResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.createHybridMonitorNamespaceWithOptions(request, runtime); + } + + /** + * Creates a Logstore group of Hybrid Cloud Monitoring. + * + * @remarks + * ### [](#)Prerequisites + * Simple Log Service is activated. A project and a Logstore are created in Simple Log Service. For more information, see [Getting Started](https://help.aliyun.com/document_detail/54604.html). + * ### [](#)Operation description + * This topic provides an example on how to create a Logstore group named `Logstore_test`. The region ID is `cn-hangzhou`. The project is `aliyun-project`. The Logstore is `Logstore-ECS`. The response shows that the Logstore group is created. + * + * @param request - CreateHybridMonitorSLSGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateHybridMonitorSLSGroupResponse + */ + async createHybridMonitorSLSGroupWithOptions(request: $_model.CreateHybridMonitorSLSGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateHybridMonitorSLSGroupResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.SLSGroupConfig)) { + query["SLSGroupConfig"] = request.SLSGroupConfig; + } + + if (!$dara.isNull(request.SLSGroupDescription)) { + query["SLSGroupDescription"] = request.SLSGroupDescription; + } + + if (!$dara.isNull(request.SLSGroupName)) { + query["SLSGroupName"] = request.SLSGroupName; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "CreateHybridMonitorSLSGroup", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.CreateHybridMonitorSLSGroupResponse>(await this.callApi(params, req, runtime), new $_model.CreateHybridMonitorSLSGroupResponse({})); + } + + /** + * Creates a Logstore group of Hybrid Cloud Monitoring. + * + * @remarks + * ### [](#)Prerequisites + * Simple Log Service is activated. A project and a Logstore are created in Simple Log Service. For more information, see [Getting Started](https://help.aliyun.com/document_detail/54604.html). + * ### [](#)Operation description + * This topic provides an example on how to create a Logstore group named `Logstore_test`. The region ID is `cn-hangzhou`. The project is `aliyun-project`. The Logstore is `Logstore-ECS`. The response shows that the Logstore group is created. + * + * @param request - CreateHybridMonitorSLSGroupRequest + * @returns CreateHybridMonitorSLSGroupResponse + */ + async createHybridMonitorSLSGroup(request: $_model.CreateHybridMonitorSLSGroupRequest): Promise<$_model.CreateHybridMonitorSLSGroupResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.createHybridMonitorSLSGroupWithOptions(request, runtime); + } + + /** + * Creates a metric import task for an Alibaba Cloud service or creates a metric for logs imported from Simple Log Service. + * + * @remarks + * # [](#)Prerequisites + * * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](https://help.aliyun.com/document_detail/250773.html). + * * If you want to create a metric for logs imported from Simple Log Service, make sure that you have activated Simple Log Service and created a project and a Logstore. For more information, see [Getting Started](https://help.aliyun.com/document_detail/54604.html). + * # [](#)Description + * This topic provides an example on how to create a metric import task named `aliyun_task` for Elastic Compute Service (ECS). The task imports the `cpu_total` metric to the `aliyun` namespace. The response shows that the metric import task is created. + * + * @param request - CreateHybridMonitorTaskRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateHybridMonitorTaskResponse + */ + async createHybridMonitorTaskWithOptions(request: $_model.CreateHybridMonitorTaskRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateHybridMonitorTaskResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.attachLabels)) { + query["AttachLabels"] = request.attachLabels; + } + + if (!$dara.isNull(request.cloudAccessId)) { + query["CloudAccessId"] = request.cloudAccessId; + } + + if (!$dara.isNull(request.collectInterval)) { + query["CollectInterval"] = request.collectInterval; + } + + if (!$dara.isNull(request.collectTargetType)) { + query["CollectTargetType"] = request.collectTargetType; + } + + if (!$dara.isNull(request.description)) { + query["Description"] = request.description; + } + + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + + if (!$dara.isNull(request.SLSProcessConfig)) { + query["SLSProcessConfig"] = request.SLSProcessConfig; + } + + if (!$dara.isNull(request.targetUserId)) { + query["TargetUserId"] = request.targetUserId; + } + + if (!$dara.isNull(request.targetUserIdList)) { + query["TargetUserIdList"] = request.targetUserIdList; + } + + if (!$dara.isNull(request.taskName)) { + query["TaskName"] = request.taskName; + } + + if (!$dara.isNull(request.taskType)) { + query["TaskType"] = request.taskType; + } + + if (!$dara.isNull(request.YARMConfig)) { + query["YARMConfig"] = request.YARMConfig; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "CreateHybridMonitorTask", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.CreateHybridMonitorTaskResponse>(await this.callApi(params, req, runtime), new $_model.CreateHybridMonitorTaskResponse({})); + } + + /** + * Creates a metric import task for an Alibaba Cloud service or creates a metric for logs imported from Simple Log Service. + * + * @remarks + * # [](#)Prerequisites + * * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](https://help.aliyun.com/document_detail/250773.html). + * * If you want to create a metric for logs imported from Simple Log Service, make sure that you have activated Simple Log Service and created a project and a Logstore. For more information, see [Getting Started](https://help.aliyun.com/document_detail/54604.html). + * # [](#)Description + * This topic provides an example on how to create a metric import task named `aliyun_task` for Elastic Compute Service (ECS). The task imports the `cpu_total` metric to the `aliyun` namespace. The response shows that the metric import task is created. + * + * @param request - CreateHybridMonitorTaskRequest + * @returns CreateHybridMonitorTaskResponse + */ + async createHybridMonitorTask(request: $_model.CreateHybridMonitorTaskRequest): Promise<$_model.CreateHybridMonitorTaskResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.createHybridMonitorTaskWithOptions(request, runtime); + } + + /** + * Creates an instant test task. + * + * @remarks + * You can create an instant test task only by using the Alibaba Cloud account that you used to enable Network Analysis and Monitoring. + * This topic provides an example to show how to create an instant test task. The name of the task is `task1`. The tested address is `http://www.aliyun.com`. The test type is `HTTP`. The number of detection points is `1`. + * + * @param request - CreateInstantSiteMonitorRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateInstantSiteMonitorResponse + */ + async createInstantSiteMonitorWithOptions(request: $_model.CreateInstantSiteMonitorRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateInstantSiteMonitorResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.address)) { + query["Address"] = request.address; + } + + if (!$dara.isNull(request.agentGroup)) { + query["AgentGroup"] = request.agentGroup; + } + + if (!$dara.isNull(request.ispCities)) { + query["IspCities"] = request.ispCities; + } + + if (!$dara.isNull(request.optionsJson)) { + query["OptionsJson"] = request.optionsJson; + } + + if (!$dara.isNull(request.randomIspCity)) { + query["RandomIspCity"] = request.randomIspCity; + } + + if (!$dara.isNull(request.taskName)) { + query["TaskName"] = request.taskName; + } + + if (!$dara.isNull(request.taskType)) { + query["TaskType"] = request.taskType; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "CreateInstantSiteMonitor", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.CreateInstantSiteMonitorResponse>(await this.callApi(params, req, runtime), new $_model.CreateInstantSiteMonitorResponse({})); + } + + /** + * Creates an instant test task. + * + * @remarks + * You can create an instant test task only by using the Alibaba Cloud account that you used to enable Network Analysis and Monitoring. + * This topic provides an example to show how to create an instant test task. The name of the task is `task1`. The tested address is `http://www.aliyun.com`. The test type is `HTTP`. The number of detection points is `1`. + * + * @param request - CreateInstantSiteMonitorRequest + * @returns CreateInstantSiteMonitorResponse + */ + async createInstantSiteMonitor(request: $_model.CreateInstantSiteMonitorRequest): Promise<$_model.CreateInstantSiteMonitorResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.createInstantSiteMonitorWithOptions(request, runtime); + } + + /** + * Creates a blacklist policy. + * + * @remarks + * ### Background information + * * CloudMonitor blocks alert notifications based on the blacklist policies that take effect. To block alert notifications when the value of a metric that belongs to a cloud service reaches the threshold that you specified, add the metric to a blacklist policy. + * * CloudMonitor allows you to create blacklist policies only based on threshold metrics. You cannot create blacklist policies based on system events. For more information about the cloud services and the thresholds of the metrics that are supported by CloudMonitor, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @param request - CreateMetricRuleBlackListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateMetricRuleBlackListResponse + */ + async createMetricRuleBlackListWithOptions(request: $_model.CreateMetricRuleBlackListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateMetricRuleBlackListResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.category)) { + query["Category"] = request.category; + } + + if (!$dara.isNull(request.effectiveTime)) { + query["EffectiveTime"] = request.effectiveTime; + } + + if (!$dara.isNull(request.enableEndTime)) { + query["EnableEndTime"] = request.enableEndTime; + } + + if (!$dara.isNull(request.enableStartTime)) { + query["EnableStartTime"] = request.enableStartTime; + } + + if (!$dara.isNull(request.instances)) { + query["Instances"] = request.instances; + } + + if (!$dara.isNull(request.metrics)) { + query["Metrics"] = request.metrics; + } + + if (!$dara.isNull(request.name)) { + query["Name"] = request.name; + } + + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + + if (!$dara.isNull(request.scopeType)) { + query["ScopeType"] = request.scopeType; + } + + if (!$dara.isNull(request.scopeValue)) { + query["ScopeValue"] = request.scopeValue; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "CreateMetricRuleBlackList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.CreateMetricRuleBlackListResponse>(await this.callApi(params, req, runtime), new $_model.CreateMetricRuleBlackListResponse({})); + } + + /** + * Creates a blacklist policy. + * + * @remarks + * ### Background information + * * CloudMonitor blocks alert notifications based on the blacklist policies that take effect. To block alert notifications when the value of a metric that belongs to a cloud service reaches the threshold that you specified, add the metric to a blacklist policy. + * * CloudMonitor allows you to create blacklist policies only based on threshold metrics. You cannot create blacklist policies based on system events. For more information about the cloud services and the thresholds of the metrics that are supported by CloudMonitor, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @param request - CreateMetricRuleBlackListRequest + * @returns CreateMetricRuleBlackListResponse + */ + async createMetricRuleBlackList(request: $_model.CreateMetricRuleBlackListRequest): Promise<$_model.CreateMetricRuleBlackListResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.createMetricRuleBlackListWithOptions(request, runtime); + } + + /** + * Associates resources with an alert rule. + * + * @param request - CreateMetricRuleResourcesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateMetricRuleResourcesResponse + */ + async createMetricRuleResourcesWithOptions(request: $_model.CreateMetricRuleResourcesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateMetricRuleResourcesResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.overwrite)) { + query["Overwrite"] = request.overwrite; + } + + if (!$dara.isNull(request.resources)) { + query["Resources"] = request.resources; + } + + if (!$dara.isNull(request.ruleId)) { + query["RuleId"] = request.ruleId; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "CreateMetricRuleResources", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.CreateMetricRuleResourcesResponse>(await this.callApi(params, req, runtime), new $_model.CreateMetricRuleResourcesResponse({})); + } + + /** + * Associates resources with an alert rule. + * + * @param request - CreateMetricRuleResourcesRequest + * @returns CreateMetricRuleResourcesResponse + */ + async createMetricRuleResources(request: $_model.CreateMetricRuleResourcesRequest): Promise<$_model.CreateMetricRuleResourcesResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.createMetricRuleResourcesWithOptions(request, runtime); + } + + /** + * Creates an alert template. + * + * @param request - CreateMetricRuleTemplateRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateMetricRuleTemplateResponse + */ + async createMetricRuleTemplateWithOptions(request: $_model.CreateMetricRuleTemplateRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateMetricRuleTemplateResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.alertTemplates)) { + query["AlertTemplates"] = request.alertTemplates; + } + + if (!$dara.isNull(request.description)) { + query["Description"] = request.description; + } + + if (!$dara.isNull(request.name)) { + query["Name"] = request.name; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "CreateMetricRuleTemplate", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.CreateMetricRuleTemplateResponse>(await this.callApi(params, req, runtime), new $_model.CreateMetricRuleTemplateResponse({})); + } + + /** + * Creates an alert template. + * + * @param request - CreateMetricRuleTemplateRequest + * @returns CreateMetricRuleTemplateResponse + */ + async createMetricRuleTemplate(request: $_model.CreateMetricRuleTemplateRequest): Promise<$_model.CreateMetricRuleTemplateResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.createMetricRuleTemplateWithOptions(request, runtime); + } + + /** + * Creates a task to monitor a process. + * + * @param request - CreateMonitorAgentProcessRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateMonitorAgentProcessResponse + */ + async createMonitorAgentProcessWithOptions(request: $_model.CreateMonitorAgentProcessRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateMonitorAgentProcessResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.instanceId)) { + query["InstanceId"] = request.instanceId; + } + + if (!$dara.isNull(request.processName)) { + query["ProcessName"] = request.processName; + } + + if (!$dara.isNull(request.processUser)) { + query["ProcessUser"] = request.processUser; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "CreateMonitorAgentProcess", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.CreateMonitorAgentProcessResponse>(await this.callApi(params, req, runtime), new $_model.CreateMonitorAgentProcessResponse({})); + } + + /** + * Creates a task to monitor a process. + * + * @param request - CreateMonitorAgentProcessRequest + * @returns CreateMonitorAgentProcessResponse + */ + async createMonitorAgentProcess(request: $_model.CreateMonitorAgentProcessRequest): Promise<$_model.CreateMonitorAgentProcessResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.createMonitorAgentProcessWithOptions(request, runtime); + } + + /** + * Creates an application group. + * + * @remarks + * In this example, an application group named `ECS_Group` is created. + * + * @param request - CreateMonitorGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateMonitorGroupResponse + */ + async createMonitorGroupWithOptions(request: $_model.CreateMonitorGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateMonitorGroupResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.contactGroups)) { + query["ContactGroups"] = request.contactGroups; + } + + if (!$dara.isNull(request.groupName)) { + query["GroupName"] = request.groupName; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "CreateMonitorGroup", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.CreateMonitorGroupResponse>(await this.callApi(params, req, runtime), new $_model.CreateMonitorGroupResponse({})); + } + + /** + * Creates an application group. + * + * @remarks + * In this example, an application group named `ECS_Group` is created. + * + * @param request - CreateMonitorGroupRequest + * @returns CreateMonitorGroupResponse + */ + async createMonitorGroup(request: $_model.CreateMonitorGroupRequest): Promise<$_model.CreateMonitorGroupResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.createMonitorGroupWithOptions(request, runtime); + } + + /** + * Creates an application group by using a resource group. + * + * @remarks + * This topic provides an example on how to create an application group by using the resource group `CloudMonitor` and the alert contact group `ECS_Group`. The region ID of the resource group is `cn-hangzhou`. + * + * @param request - CreateMonitorGroupByResourceGroupIdRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateMonitorGroupByResourceGroupIdResponse + */ + async createMonitorGroupByResourceGroupIdWithOptions(request: $_model.CreateMonitorGroupByResourceGroupIdRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateMonitorGroupByResourceGroupIdResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.contactGroupList)) { + query["ContactGroupList"] = request.contactGroupList; + } + + if (!$dara.isNull(request.enableInstallAgent)) { + query["EnableInstallAgent"] = request.enableInstallAgent; + } + + if (!$dara.isNull(request.enableSubscribeEvent)) { + query["EnableSubscribeEvent"] = request.enableSubscribeEvent; + } + + if (!$dara.isNull(request.regionId)) { + query["RegionId"] = request.regionId; + } + + if (!$dara.isNull(request.resourceGroupId)) { + query["ResourceGroupId"] = request.resourceGroupId; + } + + if (!$dara.isNull(request.resourceGroupName)) { + query["ResourceGroupName"] = request.resourceGroupName; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "CreateMonitorGroupByResourceGroupId", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.CreateMonitorGroupByResourceGroupIdResponse>(await this.callApi(params, req, runtime), new $_model.CreateMonitorGroupByResourceGroupIdResponse({})); + } + + /** + * Creates an application group by using a resource group. + * + * @remarks + * This topic provides an example on how to create an application group by using the resource group `CloudMonitor` and the alert contact group `ECS_Group`. The region ID of the resource group is `cn-hangzhou`. + * + * @param request - CreateMonitorGroupByResourceGroupIdRequest + * @returns CreateMonitorGroupByResourceGroupIdResponse + */ + async createMonitorGroupByResourceGroupId(request: $_model.CreateMonitorGroupByResourceGroupIdRequest): Promise<$_model.CreateMonitorGroupByResourceGroupIdResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.createMonitorGroupByResourceGroupIdWithOptions(request, runtime); + } + + /** + * Adds resources to an application group. + * + * @remarks + * You can add a maximum of 1,000 instances to an application group at a time. You can add a maximum of 3,000 instances of an Alibaba Cloud service to an application group. The total number of instances that you can add to an application group is unlimited. + * In this example, an Elastic Compute Service (ECS) instance in the `China (Hangzhou)` region is added to the `3607****` application group. The instance ID is `i-2ze26xj5wwy12****` and the instance name is `test-instance-ecs`. + * + * @param request - CreateMonitorGroupInstancesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateMonitorGroupInstancesResponse + */ + async createMonitorGroupInstancesWithOptions(request: $_model.CreateMonitorGroupInstancesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateMonitorGroupInstancesResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.instances)) { + query["Instances"] = request.instances; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "CreateMonitorGroupInstances", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.CreateMonitorGroupInstancesResponse>(await this.callApi(params, req, runtime), new $_model.CreateMonitorGroupInstancesResponse({})); + } + + /** + * Adds resources to an application group. + * + * @remarks + * You can add a maximum of 1,000 instances to an application group at a time. You can add a maximum of 3,000 instances of an Alibaba Cloud service to an application group. The total number of instances that you can add to an application group is unlimited. + * In this example, an Elastic Compute Service (ECS) instance in the `China (Hangzhou)` region is added to the `3607****` application group. The instance ID is `i-2ze26xj5wwy12****` and the instance name is `test-instance-ecs`. + * + * @param request - CreateMonitorGroupInstancesRequest + * @returns CreateMonitorGroupInstancesResponse + */ + async createMonitorGroupInstances(request: $_model.CreateMonitorGroupInstancesRequest): Promise<$_model.CreateMonitorGroupInstancesResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.createMonitorGroupInstancesWithOptions(request, runtime); + } + + /** + * Creates a policy to pause alert notifications for an application group. + * + * @remarks + * If the policy is valid, no alert notifications are sent for the application group. + * This topic describes how to create a `PauseNotify` policy to pause alert notifications for the `7301****` application group. The StartTime parameter is set to `1622949300000` and the EndTime parameter is set to `1623208500000`. This indicates that the policy is valid from `2021-06-06 11:15:00 UTC+8` to `2021-06-09 11:15:00 UTC+8`. + * + * @param request - CreateMonitorGroupNotifyPolicyRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateMonitorGroupNotifyPolicyResponse + */ + async createMonitorGroupNotifyPolicyWithOptions(request: $_model.CreateMonitorGroupNotifyPolicyRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateMonitorGroupNotifyPolicyResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.endTime)) { + query["EndTime"] = request.endTime; + } + + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.policyType)) { + query["PolicyType"] = request.policyType; + } + + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "CreateMonitorGroupNotifyPolicy", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.CreateMonitorGroupNotifyPolicyResponse>(await this.callApi(params, req, runtime), new $_model.CreateMonitorGroupNotifyPolicyResponse({})); + } + + /** + * Creates a policy to pause alert notifications for an application group. + * + * @remarks + * If the policy is valid, no alert notifications are sent for the application group. + * This topic describes how to create a `PauseNotify` policy to pause alert notifications for the `7301****` application group. The StartTime parameter is set to `1622949300000` and the EndTime parameter is set to `1623208500000`. This indicates that the policy is valid from `2021-06-06 11:15:00 UTC+8` to `2021-06-09 11:15:00 UTC+8`. + * + * @param request - CreateMonitorGroupNotifyPolicyRequest + * @returns CreateMonitorGroupNotifyPolicyResponse + */ + async createMonitorGroupNotifyPolicy(request: $_model.CreateMonitorGroupNotifyPolicyRequest): Promise<$_model.CreateMonitorGroupNotifyPolicyResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.createMonitorGroupNotifyPolicyWithOptions(request, runtime); + } + + /** + * Creates a task to monitor a process. + * + * @param request - CreateMonitoringAgentProcessRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateMonitoringAgentProcessResponse + */ + async createMonitoringAgentProcessWithOptions(request: $_model.CreateMonitoringAgentProcessRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateMonitoringAgentProcessResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.instanceId)) { + query["InstanceId"] = request.instanceId; + } + + if (!$dara.isNull(request.processName)) { + query["ProcessName"] = request.processName; + } + + if (!$dara.isNull(request.processUser)) { + query["ProcessUser"] = request.processUser; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "CreateMonitoringAgentProcess", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.CreateMonitoringAgentProcessResponse>(await this.callApi(params, req, runtime), new $_model.CreateMonitoringAgentProcessResponse({})); + } + + /** + * Creates a task to monitor a process. + * + * @param request - CreateMonitoringAgentProcessRequest + * @returns CreateMonitoringAgentProcessResponse + */ + async createMonitoringAgentProcess(request: $_model.CreateMonitoringAgentProcessRequest): Promise<$_model.CreateMonitoringAgentProcessResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.createMonitoringAgentProcessWithOptions(request, runtime); + } + + /** + * Creates a site monitoring task. + * + * @remarks + * This topic provides an example on how to create a site monitoring task named `HanZhou_ECS1`. The URL that is monitored by the task is `https://www.aliyun.com` and the type of the task is `HTTPS`. + * + * @param request - CreateSiteMonitorRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CreateSiteMonitorResponse + */ + async createSiteMonitorWithOptions(request: $_model.CreateSiteMonitorRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateSiteMonitorResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.address)) { + query["Address"] = request.address; + } + + if (!$dara.isNull(request.agentGroup)) { + query["AgentGroup"] = request.agentGroup; + } + + if (!$dara.isNull(request.alertIds)) { + query["AlertIds"] = request.alertIds; + } + + if (!$dara.isNull(request.customSchedule)) { + query["CustomSchedule"] = request.customSchedule; + } + + if (!$dara.isNull(request.interval)) { + query["Interval"] = request.interval; + } + + if (!$dara.isNull(request.ispCities)) { + query["IspCities"] = request.ispCities; + } + + if (!$dara.isNull(request.optionsJson)) { + query["OptionsJson"] = request.optionsJson; + } + + if (!$dara.isNull(request.taskName)) { + query["TaskName"] = request.taskName; + } + + if (!$dara.isNull(request.taskType)) { + query["TaskType"] = request.taskType; + } + + if (!$dara.isNull(request.vpcConfig)) { + query["VpcConfig"] = request.vpcConfig; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "CreateSiteMonitor", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.CreateSiteMonitorResponse>(await this.callApi(params, req, runtime), new $_model.CreateSiteMonitorResponse({})); + } + + /** + * Creates a site monitoring task. + * + * @remarks + * This topic provides an example on how to create a site monitoring task named `HanZhou_ECS1`. The URL that is monitored by the task is `https://www.aliyun.com` and the type of the task is `HTTPS`. + * + * @param request - CreateSiteMonitorRequest + * @returns CreateSiteMonitorResponse + */ + async createSiteMonitor(request: $_model.CreateSiteMonitorRequest): Promise<$_model.CreateSiteMonitorResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.createSiteMonitorWithOptions(request, runtime); + } + + /** + * Defines the range of monitoring data that you want to export. The Cursor information is returned. When you call the BatchExport operation for the first time, you must specify the Cursor information. + * + * @remarks + * ### [](#)Prerequisites + * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](https://help.aliyun.com/document_detail/250773.html). + * ### [](#)Background information + * You can call this operation to obtain the Cursor information and then call the [BatchExport](https://help.aliyun.com/document_detail/2329847.html) operation to export the monitoring data. + * ### [](#)Description + * This topic provides an example on how to define the monitoring data of a specified metric for a specified cloud service. In this example, the namespace of the cloud service is set to `acs_ecs_dashboard`, the metric is set to `cpu_idle`, the start time is set to `1641627000000`, and the end time is set to `1641645000000`. The number of idle CPU cores on your Elastic Compute Service (ECS) instances is measured every 60 seconds from 15:30:00, January 8, 2022 to 20:30:00, January 8, 2022. The `Cursor` information is returned. + * + * @param tmpReq - CursorRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns CursorResponse + */ + async cursorWithOptions(tmpReq: $_model.CursorRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CursorResponse> { + tmpReq.validate(); + let request = new $_model.CursorShrinkRequest({ }); + OpenApiUtil.convert(tmpReq, request); + if (!$dara.isNull(tmpReq.matchers)) { + request.matchersShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.matchers, "Matchers", "json"); + } + + let body : {[key: string ]: any} = { }; + if (!$dara.isNull(request.endTime)) { + body["EndTime"] = request.endTime; + } + + if (!$dara.isNull(request.matchersShrink)) { + body["Matchers"] = request.matchersShrink; + } + + if (!$dara.isNull(request.metric)) { + body["Metric"] = request.metric; + } + + if (!$dara.isNull(request.namespace)) { + body["Namespace"] = request.namespace; + } + + if (!$dara.isNull(request.period)) { + body["Period"] = request.period; + } + + if (!$dara.isNull(request.startTime)) { + body["StartTime"] = request.startTime; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + body: OpenApiUtil.parseToMap(body), + }); + let params = new $OpenApiUtil.Params({ + action: "Cursor", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.CursorResponse>(await this.callApi(params, req, runtime), new $_model.CursorResponse({})); + } + + /** + * Defines the range of monitoring data that you want to export. The Cursor information is returned. When you call the BatchExport operation for the first time, you must specify the Cursor information. + * + * @remarks + * ### [](#)Prerequisites + * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](https://help.aliyun.com/document_detail/250773.html). + * ### [](#)Background information + * You can call this operation to obtain the Cursor information and then call the [BatchExport](https://help.aliyun.com/document_detail/2329847.html) operation to export the monitoring data. + * ### [](#)Description + * This topic provides an example on how to define the monitoring data of a specified metric for a specified cloud service. In this example, the namespace of the cloud service is set to `acs_ecs_dashboard`, the metric is set to `cpu_idle`, the start time is set to `1641627000000`, and the end time is set to `1641645000000`. The number of idle CPU cores on your Elastic Compute Service (ECS) instances is measured every 60 seconds from 15:30:00, January 8, 2022 to 20:30:00, January 8, 2022. The `Cursor` information is returned. + * + * @param request - CursorRequest + * @returns CursorResponse + */ + async cursor(request: $_model.CursorRequest): Promise<$_model.CursorResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.cursorWithOptions(request, runtime); + } + + /** + * Deletes an alert contact. + * + * @param request - DeleteContactRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteContactResponse + */ + async deleteContactWithOptions(request: $_model.DeleteContactRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteContactResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.contactName)) { + query["ContactName"] = request.contactName; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DeleteContact", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DeleteContactResponse>(await this.callApi(params, req, runtime), new $_model.DeleteContactResponse({})); + } + + /** + * Deletes an alert contact. + * + * @param request - DeleteContactRequest + * @returns DeleteContactResponse + */ + async deleteContact(request: $_model.DeleteContactRequest): Promise<$_model.DeleteContactResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.deleteContactWithOptions(request, runtime); + } + + /** + * Deletes an alert contact group. + * + * @param request - DeleteContactGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteContactGroupResponse + */ + async deleteContactGroupWithOptions(request: $_model.DeleteContactGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteContactGroupResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.contactGroupName)) { + query["ContactGroupName"] = request.contactGroupName; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DeleteContactGroup", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DeleteContactGroupResponse>(await this.callApi(params, req, runtime), new $_model.DeleteContactGroupResponse({})); + } + + /** + * Deletes an alert contact group. + * + * @param request - DeleteContactGroupRequest + * @returns DeleteContactGroupResponse + */ + async deleteContactGroup(request: $_model.DeleteContactGroupRequest): Promise<$_model.DeleteContactGroupResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.deleteContactGroupWithOptions(request, runtime); + } + + /** + * Deletes the reported monitoring data of a metric. + * + * @param request - DeleteCustomMetricRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteCustomMetricResponse + */ + async deleteCustomMetricWithOptions(request: $_model.DeleteCustomMetricRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteCustomMetricResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.md5)) { + query["Md5"] = request.md5; + } + + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + + if (!$dara.isNull(request.UUID)) { + query["UUID"] = request.UUID; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DeleteCustomMetric", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DeleteCustomMetricResponse>(await this.callApi(params, req, runtime), new $_model.DeleteCustomMetricResponse({})); + } + + /** + * Deletes the reported monitoring data of a metric. + * + * @param request - DeleteCustomMetricRequest + * @returns DeleteCustomMetricResponse + */ + async deleteCustomMetric(request: $_model.DeleteCustomMetricRequest): Promise<$_model.DeleteCustomMetricResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.deleteCustomMetricWithOptions(request, runtime); + } + + /** + * Deletes a tag rule. + * + * @param request - DeleteDynamicTagGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteDynamicTagGroupResponse + */ + async deleteDynamicTagGroupWithOptions(request: $_model.DeleteDynamicTagGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteDynamicTagGroupResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.dynamicTagRuleId)) { + query["DynamicTagRuleId"] = request.dynamicTagRuleId; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DeleteDynamicTagGroup", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DeleteDynamicTagGroupResponse>(await this.callApi(params, req, runtime), new $_model.DeleteDynamicTagGroupResponse({})); + } + + /** + * Deletes a tag rule. + * + * @param request - DeleteDynamicTagGroupRequest + * @returns DeleteDynamicTagGroupResponse + */ + async deleteDynamicTagGroup(request: $_model.DeleteDynamicTagGroupRequest): Promise<$_model.DeleteDynamicTagGroupResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.deleteDynamicTagGroupWithOptions(request, runtime); + } + + /** + * Deletes the push channels of an event-triggered alert rule. + * + * @param request - DeleteEventRuleTargetsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteEventRuleTargetsResponse + */ + async deleteEventRuleTargetsWithOptions(request: $_model.DeleteEventRuleTargetsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteEventRuleTargetsResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.ids)) { + query["Ids"] = request.ids; + } + + if (!$dara.isNull(request.ruleName)) { + query["RuleName"] = request.ruleName; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DeleteEventRuleTargets", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DeleteEventRuleTargetsResponse>(await this.callApi(params, req, runtime), new $_model.DeleteEventRuleTargetsResponse({})); + } + + /** + * Deletes the push channels of an event-triggered alert rule. + * + * @param request - DeleteEventRuleTargetsRequest + * @returns DeleteEventRuleTargetsResponse + */ + async deleteEventRuleTargets(request: $_model.DeleteEventRuleTargetsRequest): Promise<$_model.DeleteEventRuleTargetsResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.deleteEventRuleTargetsWithOptions(request, runtime); + } + + /** + * Deletes event-triggered alert rules. + * + * @param request - DeleteEventRulesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteEventRulesResponse + */ + async deleteEventRulesWithOptions(request: $_model.DeleteEventRulesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteEventRulesResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.ruleNames)) { + query["RuleNames"] = request.ruleNames; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DeleteEventRules", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DeleteEventRulesResponse>(await this.callApi(params, req, runtime), new $_model.DeleteEventRulesResponse({})); + } + + /** + * Deletes event-triggered alert rules. + * + * @param request - DeleteEventRulesRequest + * @returns DeleteEventRulesResponse + */ + async deleteEventRules(request: $_model.DeleteEventRulesRequest): Promise<$_model.DeleteEventRulesResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.deleteEventRulesWithOptions(request, runtime); + } + + /** + * Deletes a configuration set that is used to export monitoring data. + * + * @param request - DeleteExporterOutputRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteExporterOutputResponse + */ + async deleteExporterOutputWithOptions(request: $_model.DeleteExporterOutputRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteExporterOutputResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.destName)) { + query["DestName"] = request.destName; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DeleteExporterOutput", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DeleteExporterOutputResponse>(await this.callApi(params, req, runtime), new $_model.DeleteExporterOutputResponse({})); + } + + /** + * Deletes a configuration set that is used to export monitoring data. + * + * @param request - DeleteExporterOutputRequest + * @returns DeleteExporterOutputResponse + */ + async deleteExporterOutput(request: $_model.DeleteExporterOutputRequest): Promise<$_model.DeleteExporterOutputResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.deleteExporterOutputWithOptions(request, runtime); + } + + /** + * Deletes a data export rule. + * + * @param request - DeleteExporterRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteExporterRuleResponse + */ + async deleteExporterRuleWithOptions(request: $_model.DeleteExporterRuleRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteExporterRuleResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.ruleName)) { + query["RuleName"] = request.ruleName; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DeleteExporterRule", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DeleteExporterRuleResponse>(await this.callApi(params, req, runtime), new $_model.DeleteExporterRuleResponse({})); + } + + /** + * Deletes a data export rule. + * + * @param request - DeleteExporterRuleRequest + * @returns DeleteExporterRuleResponse + */ + async deleteExporterRule(request: $_model.DeleteExporterRuleRequest): Promise<$_model.DeleteExporterRuleResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.deleteExporterRuleWithOptions(request, runtime); + } + + /** + * Deletes a process monitoring task for an application group. + * + * @param request - DeleteGroupMonitoringAgentProcessRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteGroupMonitoringAgentProcessResponse + */ + async deleteGroupMonitoringAgentProcessWithOptions(request: $_model.DeleteGroupMonitoringAgentProcessRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteGroupMonitoringAgentProcessResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.id)) { + query["Id"] = request.id; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DeleteGroupMonitoringAgentProcess", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DeleteGroupMonitoringAgentProcessResponse>(await this.callApi(params, req, runtime), new $_model.DeleteGroupMonitoringAgentProcessResponse({})); + } + + /** + * Deletes a process monitoring task for an application group. + * + * @param request - DeleteGroupMonitoringAgentProcessRequest + * @returns DeleteGroupMonitoringAgentProcessResponse + */ + async deleteGroupMonitoringAgentProcess(request: $_model.DeleteGroupMonitoringAgentProcessRequest): Promise<$_model.DeleteGroupMonitoringAgentProcessResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.deleteGroupMonitoringAgentProcessWithOptions(request, runtime); + } + + /** + * Deletes availability monitoring tasks. + * + * @param request - DeleteHostAvailabilityRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteHostAvailabilityResponse + */ + async deleteHostAvailabilityWithOptions(request: $_model.DeleteHostAvailabilityRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteHostAvailabilityResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.id)) { + query["Id"] = request.id; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DeleteHostAvailability", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DeleteHostAvailabilityResponse>(await this.callApi(params, req, runtime), new $_model.DeleteHostAvailabilityResponse({})); + } + + /** + * Deletes availability monitoring tasks. + * + * @param request - DeleteHostAvailabilityRequest + * @returns DeleteHostAvailabilityResponse + */ + async deleteHostAvailability(request: $_model.DeleteHostAvailabilityRequest): Promise<$_model.DeleteHostAvailabilityResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.deleteHostAvailabilityWithOptions(request, runtime); + } + + /** + * Deletes a namespace. + * + * @remarks + * > If a metric import task is created for metrics in a namespace, you cannot delete the namespace unless you delete the task first. + * This topic provides an example on how to delete a namespace named `aliyun`. The response shows that the namespace is deleted. + * + * @param request - DeleteHybridMonitorNamespaceRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteHybridMonitorNamespaceResponse + */ + async deleteHybridMonitorNamespaceWithOptions(request: $_model.DeleteHybridMonitorNamespaceRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteHybridMonitorNamespaceResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DeleteHybridMonitorNamespace", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DeleteHybridMonitorNamespaceResponse>(await this.callApi(params, req, runtime), new $_model.DeleteHybridMonitorNamespaceResponse({})); + } + + /** + * Deletes a namespace. + * + * @remarks + * > If a metric import task is created for metrics in a namespace, you cannot delete the namespace unless you delete the task first. + * This topic provides an example on how to delete a namespace named `aliyun`. The response shows that the namespace is deleted. + * + * @param request - DeleteHybridMonitorNamespaceRequest + * @returns DeleteHybridMonitorNamespaceResponse + */ + async deleteHybridMonitorNamespace(request: $_model.DeleteHybridMonitorNamespaceRequest): Promise<$_model.DeleteHybridMonitorNamespaceResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.deleteHybridMonitorNamespaceWithOptions(request, runtime); + } + + /** + * Deletes a Logstore group. + * + * @remarks + * This topic provides an example on how to delete a Logstore group named `Logstore_test`. The response shows that the Logstore group is deleted. + * + * @param request - DeleteHybridMonitorSLSGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteHybridMonitorSLSGroupResponse + */ + async deleteHybridMonitorSLSGroupWithOptions(request: $_model.DeleteHybridMonitorSLSGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteHybridMonitorSLSGroupResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.SLSGroupName)) { + query["SLSGroupName"] = request.SLSGroupName; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DeleteHybridMonitorSLSGroup", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DeleteHybridMonitorSLSGroupResponse>(await this.callApi(params, req, runtime), new $_model.DeleteHybridMonitorSLSGroupResponse({})); + } + + /** + * Deletes a Logstore group. + * + * @remarks + * This topic provides an example on how to delete a Logstore group named `Logstore_test`. The response shows that the Logstore group is deleted. + * + * @param request - DeleteHybridMonitorSLSGroupRequest + * @returns DeleteHybridMonitorSLSGroupResponse + */ + async deleteHybridMonitorSLSGroup(request: $_model.DeleteHybridMonitorSLSGroupRequest): Promise<$_model.DeleteHybridMonitorSLSGroupResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.deleteHybridMonitorSLSGroupWithOptions(request, runtime); + } + + /** + * Deletes a metric import task for Alibaba Cloud services or a metric for the logs that are imported from Log Service. + * + * @remarks + * This topic provides an example on how to delete a metric import task whose ID is `36****`. The returned result indicates that the metric import task is deleted. + * + * @param request - DeleteHybridMonitorTaskRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteHybridMonitorTaskResponse + */ + async deleteHybridMonitorTaskWithOptions(request: $_model.DeleteHybridMonitorTaskRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteHybridMonitorTaskResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + + if (!$dara.isNull(request.targetUserId)) { + query["TargetUserId"] = request.targetUserId; + } + + if (!$dara.isNull(request.taskId)) { + query["TaskId"] = request.taskId; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DeleteHybridMonitorTask", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DeleteHybridMonitorTaskResponse>(await this.callApi(params, req, runtime), new $_model.DeleteHybridMonitorTaskResponse({})); + } + + /** + * Deletes a metric import task for Alibaba Cloud services or a metric for the logs that are imported from Log Service. + * + * @remarks + * This topic provides an example on how to delete a metric import task whose ID is `36****`. The returned result indicates that the metric import task is deleted. + * + * @param request - DeleteHybridMonitorTaskRequest + * @returns DeleteHybridMonitorTaskResponse + */ + async deleteHybridMonitorTask(request: $_model.DeleteHybridMonitorTaskRequest): Promise<$_model.DeleteHybridMonitorTaskResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.deleteHybridMonitorTaskWithOptions(request, runtime); + } + + /** + * Deletes a log monitoring metric. + * + * @param request - DeleteLogMonitorRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteLogMonitorResponse + */ + async deleteLogMonitorWithOptions(request: $_model.DeleteLogMonitorRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteLogMonitorResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.logId)) { + query["LogId"] = request.logId; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DeleteLogMonitor", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DeleteLogMonitorResponse>(await this.callApi(params, req, runtime), new $_model.DeleteLogMonitorResponse({})); + } + + /** + * Deletes a log monitoring metric. + * + * @param request - DeleteLogMonitorRequest + * @returns DeleteLogMonitorResponse + */ + async deleteLogMonitor(request: $_model.DeleteLogMonitorRequest): Promise<$_model.DeleteLogMonitorResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.deleteLogMonitorWithOptions(request, runtime); + } + + /** + * Deletes multiple blacklist policies at a time. + * + * @param request - DeleteMetricRuleBlackListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteMetricRuleBlackListResponse + */ + async deleteMetricRuleBlackListWithOptions(request: $_model.DeleteMetricRuleBlackListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteMetricRuleBlackListResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.id)) { + query["Id"] = request.id; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DeleteMetricRuleBlackList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DeleteMetricRuleBlackListResponse>(await this.callApi(params, req, runtime), new $_model.DeleteMetricRuleBlackListResponse({})); + } + + /** + * Deletes multiple blacklist policies at a time. + * + * @param request - DeleteMetricRuleBlackListRequest + * @returns DeleteMetricRuleBlackListResponse + */ + async deleteMetricRuleBlackList(request: $_model.DeleteMetricRuleBlackListRequest): Promise<$_model.DeleteMetricRuleBlackListResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.deleteMetricRuleBlackListWithOptions(request, runtime); + } + + /** + * Disassociates resources from an alert rule. + * + * @param request - DeleteMetricRuleResourcesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteMetricRuleResourcesResponse + */ + async deleteMetricRuleResourcesWithOptions(request: $_model.DeleteMetricRuleResourcesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteMetricRuleResourcesResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.resources)) { + query["Resources"] = request.resources; + } + + if (!$dara.isNull(request.ruleId)) { + query["RuleId"] = request.ruleId; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DeleteMetricRuleResources", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DeleteMetricRuleResourcesResponse>(await this.callApi(params, req, runtime), new $_model.DeleteMetricRuleResourcesResponse({})); + } + + /** + * Disassociates resources from an alert rule. + * + * @param request - DeleteMetricRuleResourcesRequest + * @returns DeleteMetricRuleResourcesResponse + */ + async deleteMetricRuleResources(request: $_model.DeleteMetricRuleResourcesRequest): Promise<$_model.DeleteMetricRuleResourcesResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.deleteMetricRuleResourcesWithOptions(request, runtime); + } + + /** + * Delete the push channels of an alert rule. + * + * @param request - DeleteMetricRuleTargetsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteMetricRuleTargetsResponse + */ + async deleteMetricRuleTargetsWithOptions(request: $_model.DeleteMetricRuleTargetsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteMetricRuleTargetsResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.ruleId)) { + query["RuleId"] = request.ruleId; + } + + if (!$dara.isNull(request.targetIds)) { + query["TargetIds"] = request.targetIds; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DeleteMetricRuleTargets", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DeleteMetricRuleTargetsResponse>(await this.callApi(params, req, runtime), new $_model.DeleteMetricRuleTargetsResponse({})); + } + + /** + * Delete the push channels of an alert rule. + * + * @param request - DeleteMetricRuleTargetsRequest + * @returns DeleteMetricRuleTargetsResponse + */ + async deleteMetricRuleTargets(request: $_model.DeleteMetricRuleTargetsRequest): Promise<$_model.DeleteMetricRuleTargetsResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.deleteMetricRuleTargetsWithOptions(request, runtime); + } + + /** + * Deletes an alert template. + * + * @param request - DeleteMetricRuleTemplateRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteMetricRuleTemplateResponse + */ + async deleteMetricRuleTemplateWithOptions(request: $_model.DeleteMetricRuleTemplateRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteMetricRuleTemplateResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.templateId)) { + query["TemplateId"] = request.templateId; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DeleteMetricRuleTemplate", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DeleteMetricRuleTemplateResponse>(await this.callApi(params, req, runtime), new $_model.DeleteMetricRuleTemplateResponse({})); + } + + /** + * Deletes an alert template. + * + * @param request - DeleteMetricRuleTemplateRequest + * @returns DeleteMetricRuleTemplateResponse + */ + async deleteMetricRuleTemplate(request: $_model.DeleteMetricRuleTemplateRequest): Promise<$_model.DeleteMetricRuleTemplateResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.deleteMetricRuleTemplateWithOptions(request, runtime); + } + + /** + * Deletes one or more alert rules. + * + * @param request - DeleteMetricRulesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteMetricRulesResponse + */ + async deleteMetricRulesWithOptions(request: $_model.DeleteMetricRulesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteMetricRulesResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.id)) { + query["Id"] = request.id; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DeleteMetricRules", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DeleteMetricRulesResponse>(await this.callApi(params, req, runtime), new $_model.DeleteMetricRulesResponse({})); + } + + /** + * Deletes one or more alert rules. + * + * @param request - DeleteMetricRulesRequest + * @returns DeleteMetricRulesResponse + */ + async deleteMetricRules(request: $_model.DeleteMetricRulesRequest): Promise<$_model.DeleteMetricRulesResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.deleteMetricRulesWithOptions(request, runtime); + } + + /** + * Deletes an application group. + * + * @param request - DeleteMonitorGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteMonitorGroupResponse + */ + async deleteMonitorGroupWithOptions(request: $_model.DeleteMonitorGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteMonitorGroupResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DeleteMonitorGroup", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DeleteMonitorGroupResponse>(await this.callApi(params, req, runtime), new $_model.DeleteMonitorGroupResponse({})); + } + + /** + * Deletes an application group. + * + * @param request - DeleteMonitorGroupRequest + * @returns DeleteMonitorGroupResponse + */ + async deleteMonitorGroup(request: $_model.DeleteMonitorGroupRequest): Promise<$_model.DeleteMonitorGroupResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.deleteMonitorGroupWithOptions(request, runtime); + } + + /** + * Deletes a rule that is used to dynamically add the instances of a service to an application group. + * + * @param request - DeleteMonitorGroupDynamicRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteMonitorGroupDynamicRuleResponse + */ + async deleteMonitorGroupDynamicRuleWithOptions(request: $_model.DeleteMonitorGroupDynamicRuleRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteMonitorGroupDynamicRuleResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.category)) { + query["Category"] = request.category; + } + + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DeleteMonitorGroupDynamicRule", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DeleteMonitorGroupDynamicRuleResponse>(await this.callApi(params, req, runtime), new $_model.DeleteMonitorGroupDynamicRuleResponse({})); + } + + /** + * Deletes a rule that is used to dynamically add the instances of a service to an application group. + * + * @param request - DeleteMonitorGroupDynamicRuleRequest + * @returns DeleteMonitorGroupDynamicRuleResponse + */ + async deleteMonitorGroupDynamicRule(request: $_model.DeleteMonitorGroupDynamicRuleRequest): Promise<$_model.DeleteMonitorGroupDynamicRuleResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.deleteMonitorGroupDynamicRuleWithOptions(request, runtime); + } + + /** + * Removes instances from an application group. + * + * @param request - DeleteMonitorGroupInstancesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteMonitorGroupInstancesResponse + */ + async deleteMonitorGroupInstancesWithOptions(request: $_model.DeleteMonitorGroupInstancesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteMonitorGroupInstancesResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.category)) { + query["Category"] = request.category; + } + + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.instanceIdList)) { + query["InstanceIdList"] = request.instanceIdList; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DeleteMonitorGroupInstances", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DeleteMonitorGroupInstancesResponse>(await this.callApi(params, req, runtime), new $_model.DeleteMonitorGroupInstancesResponse({})); + } + + /** + * Removes instances from an application group. + * + * @param request - DeleteMonitorGroupInstancesRequest + * @returns DeleteMonitorGroupInstancesResponse + */ + async deleteMonitorGroupInstances(request: $_model.DeleteMonitorGroupInstancesRequest): Promise<$_model.DeleteMonitorGroupInstancesResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.deleteMonitorGroupInstancesWithOptions(request, runtime); + } + + /** + * Deletes a policy that is used to pause alert notifications for an application group. + * + * @param request - DeleteMonitorGroupNotifyPolicyRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteMonitorGroupNotifyPolicyResponse + */ + async deleteMonitorGroupNotifyPolicyWithOptions(request: $_model.DeleteMonitorGroupNotifyPolicyRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteMonitorGroupNotifyPolicyResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.policyType)) { + query["PolicyType"] = request.policyType; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DeleteMonitorGroupNotifyPolicy", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DeleteMonitorGroupNotifyPolicyResponse>(await this.callApi(params, req, runtime), new $_model.DeleteMonitorGroupNotifyPolicyResponse({})); + } + + /** + * Deletes a policy that is used to pause alert notifications for an application group. + * + * @param request - DeleteMonitorGroupNotifyPolicyRequest + * @returns DeleteMonitorGroupNotifyPolicyResponse + */ + async deleteMonitorGroupNotifyPolicy(request: $_model.DeleteMonitorGroupNotifyPolicyRequest): Promise<$_model.DeleteMonitorGroupNotifyPolicyResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.deleteMonitorGroupNotifyPolicyWithOptions(request, runtime); + } + + /** + * Disables monitoring on a process. + * + * @param request - DeleteMonitoringAgentProcessRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteMonitoringAgentProcessResponse + */ + async deleteMonitoringAgentProcessWithOptions(request: $_model.DeleteMonitoringAgentProcessRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteMonitoringAgentProcessResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.instanceId)) { + query["InstanceId"] = request.instanceId; + } + + if (!$dara.isNull(request.processId)) { + query["ProcessId"] = request.processId; + } + + if (!$dara.isNull(request.processName)) { + query["ProcessName"] = request.processName; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DeleteMonitoringAgentProcess", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DeleteMonitoringAgentProcessResponse>(await this.callApi(params, req, runtime), new $_model.DeleteMonitoringAgentProcessResponse({})); + } + + /** + * Disables monitoring on a process. + * + * @param request - DeleteMonitoringAgentProcessRequest + * @returns DeleteMonitoringAgentProcessResponse + */ + async deleteMonitoringAgentProcess(request: $_model.DeleteMonitoringAgentProcessRequest): Promise<$_model.DeleteMonitoringAgentProcessResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.deleteMonitoringAgentProcessWithOptions(request, runtime); + } + + /** + * Deletes one or more site monitoring tasks. + * + * @param request - DeleteSiteMonitorsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DeleteSiteMonitorsResponse + */ + async deleteSiteMonitorsWithOptions(request: $_model.DeleteSiteMonitorsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteSiteMonitorsResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.isDeleteAlarms)) { + query["IsDeleteAlarms"] = request.isDeleteAlarms; + } + + if (!$dara.isNull(request.taskIds)) { + query["TaskIds"] = request.taskIds; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DeleteSiteMonitors", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DeleteSiteMonitorsResponse>(await this.callApi(params, req, runtime), new $_model.DeleteSiteMonitorsResponse({})); + } + + /** + * Deletes one or more site monitoring tasks. + * + * @param request - DeleteSiteMonitorsRequest + * @returns DeleteSiteMonitorsResponse + */ + async deleteSiteMonitors(request: $_model.DeleteSiteMonitorsRequest): Promise<$_model.DeleteSiteMonitorsResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.deleteSiteMonitorsWithOptions(request, runtime); + } + + /** + * Queries the details of initiative alert rules. + * + * @param request - DescribeActiveMetricRuleListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeActiveMetricRuleListResponse + */ + async describeActiveMetricRuleListWithOptions(request: $_model.DescribeActiveMetricRuleListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeActiveMetricRuleListResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.product)) { + query["Product"] = request.product; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeActiveMetricRuleList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeActiveMetricRuleListResponse>(await this.callApi(params, req, runtime), new $_model.DescribeActiveMetricRuleListResponse({})); + } + + /** + * Queries the details of initiative alert rules. + * + * @param request - DescribeActiveMetricRuleListRequest + * @returns DescribeActiveMetricRuleListResponse + */ + async describeActiveMetricRuleList(request: $_model.DescribeActiveMetricRuleListRequest): Promise<$_model.DescribeActiveMetricRuleListResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeActiveMetricRuleListWithOptions(request, runtime); + } + + /** + * Queries historical alerts. + * + * @remarks + * This API operation is no longer maintained. We recommend that you call the [DescribeAlertLogList](https://help.aliyun.com/document_detail/201087.html) operation. + * + * @deprecated OpenAPI DescribeAlertHistoryList is deprecated, please use Cms::2019-01-01::DescribeAlertLogList instead. + * + * @param request - DescribeAlertHistoryListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeAlertHistoryListResponse + */ + async describeAlertHistoryListWithOptions(request: $_model.DescribeAlertHistoryListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeAlertHistoryListResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.ascending)) { + query["Ascending"] = request.ascending; + } + + if (!$dara.isNull(request.endTime)) { + query["EndTime"] = request.endTime; + } + + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + + if (!$dara.isNull(request.page)) { + query["Page"] = request.page; + } + + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + + if (!$dara.isNull(request.ruleId)) { + query["RuleId"] = request.ruleId; + } + + if (!$dara.isNull(request.ruleName)) { + query["RuleName"] = request.ruleName; + } + + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + + if (!$dara.isNull(request.state)) { + query["State"] = request.state; + } + + if (!$dara.isNull(request.status)) { + query["Status"] = request.status; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeAlertHistoryList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeAlertHistoryListResponse>(await this.callApi(params, req, runtime), new $_model.DescribeAlertHistoryListResponse({})); + } + + /** + * Queries historical alerts. + * + * @remarks + * This API operation is no longer maintained. We recommend that you call the [DescribeAlertLogList](https://help.aliyun.com/document_detail/201087.html) operation. + * + * @deprecated OpenAPI DescribeAlertHistoryList is deprecated, please use Cms::2019-01-01::DescribeAlertLogList instead. + * + * @param request - DescribeAlertHistoryListRequest + * @returns DescribeAlertHistoryListResponse + */ + // Deprecated + async describeAlertHistoryList(request: $_model.DescribeAlertHistoryListRequest): Promise<$_model.DescribeAlertHistoryListResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeAlertHistoryListWithOptions(request, runtime); + } + + /** + * Queries the statistics of alert logs. + * + * @remarks + * Queries the statistics of alert logs. + * This topic provides an example on how to query the statistics of alert logs for Elastic Compute Service (ECS) based on the `product` dimension. + * + * @param request - DescribeAlertLogCountRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeAlertLogCountResponse + */ + async describeAlertLogCountWithOptions(request: $_model.DescribeAlertLogCountRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeAlertLogCountResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.contactGroup)) { + query["ContactGroup"] = request.contactGroup; + } + + if (!$dara.isNull(request.endTime)) { + query["EndTime"] = request.endTime; + } + + if (!$dara.isNull(request.eventType)) { + query["EventType"] = request.eventType; + } + + if (!$dara.isNull(request.groupBy)) { + query["GroupBy"] = request.groupBy; + } + + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.lastMin)) { + query["LastMin"] = request.lastMin; + } + + if (!$dara.isNull(request.level)) { + query["Level"] = request.level; + } + + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + + if (!$dara.isNull(request.product)) { + query["Product"] = request.product; + } + + if (!$dara.isNull(request.ruleId)) { + query["RuleId"] = request.ruleId; + } + + if (!$dara.isNull(request.ruleName)) { + query["RuleName"] = request.ruleName; + } + + if (!$dara.isNull(request.searchKey)) { + query["SearchKey"] = request.searchKey; + } + + if (!$dara.isNull(request.sendStatus)) { + query["SendStatus"] = request.sendStatus; + } + + if (!$dara.isNull(request.sourceType)) { + query["SourceType"] = request.sourceType; + } + + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeAlertLogCount", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeAlertLogCountResponse>(await this.callApi(params, req, runtime), new $_model.DescribeAlertLogCountResponse({})); + } + + /** + * Queries the statistics of alert logs. + * + * @remarks + * Queries the statistics of alert logs. + * This topic provides an example on how to query the statistics of alert logs for Elastic Compute Service (ECS) based on the `product` dimension. + * + * @param request - DescribeAlertLogCountRequest + * @returns DescribeAlertLogCountResponse + */ + async describeAlertLogCount(request: $_model.DescribeAlertLogCountRequest): Promise<$_model.DescribeAlertLogCountResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeAlertLogCountWithOptions(request, runtime); + } + + /** + * Queries the number of alert logs that are generated during each interval within a period of time. + * + * @remarks + * This topic provides an example on how to query the number of alert logs for Elastic Compute Service (ECS) based on the `product` dimension. + * + * @param request - DescribeAlertLogHistogramRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeAlertLogHistogramResponse + */ + async describeAlertLogHistogramWithOptions(request: $_model.DescribeAlertLogHistogramRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeAlertLogHistogramResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.contactGroup)) { + query["ContactGroup"] = request.contactGroup; + } + + if (!$dara.isNull(request.endTime)) { + query["EndTime"] = request.endTime; + } + + if (!$dara.isNull(request.eventType)) { + query["EventType"] = request.eventType; + } + + if (!$dara.isNull(request.groupBy)) { + query["GroupBy"] = request.groupBy; + } + + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.lastMin)) { + query["LastMin"] = request.lastMin; + } + + if (!$dara.isNull(request.level)) { + query["Level"] = request.level; + } + + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + + if (!$dara.isNull(request.product)) { + query["Product"] = request.product; + } + + if (!$dara.isNull(request.ruleId)) { + query["RuleId"] = request.ruleId; + } + + if (!$dara.isNull(request.ruleName)) { + query["RuleName"] = request.ruleName; + } + + if (!$dara.isNull(request.searchKey)) { + query["SearchKey"] = request.searchKey; + } + + if (!$dara.isNull(request.sendStatus)) { + query["SendStatus"] = request.sendStatus; + } + + if (!$dara.isNull(request.sourceType)) { + query["SourceType"] = request.sourceType; + } + + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeAlertLogHistogram", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeAlertLogHistogramResponse>(await this.callApi(params, req, runtime), new $_model.DescribeAlertLogHistogramResponse({})); + } + + /** + * Queries the number of alert logs that are generated during each interval within a period of time. + * + * @remarks + * This topic provides an example on how to query the number of alert logs for Elastic Compute Service (ECS) based on the `product` dimension. + * + * @param request - DescribeAlertLogHistogramRequest + * @returns DescribeAlertLogHistogramResponse + */ + async describeAlertLogHistogram(request: $_model.DescribeAlertLogHistogramRequest): Promise<$_model.DescribeAlertLogHistogramResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeAlertLogHistogramWithOptions(request, runtime); + } + + /** + * Queries alert logs. + * + * @remarks + * You can call the operation to query only the alert logs within the last year. + * This topic provides an example to show how to query the alert logs of Elastic Compute Service (ECS) based on the `product` dimension. + * + * @param request - DescribeAlertLogListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeAlertLogListResponse + */ + async describeAlertLogListWithOptions(request: $_model.DescribeAlertLogListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeAlertLogListResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.contactGroup)) { + query["ContactGroup"] = request.contactGroup; + } + + if (!$dara.isNull(request.endTime)) { + query["EndTime"] = request.endTime; + } + + if (!$dara.isNull(request.eventType)) { + query["EventType"] = request.eventType; + } + + if (!$dara.isNull(request.groupBy)) { + query["GroupBy"] = request.groupBy; + } + + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.lastMin)) { + query["LastMin"] = request.lastMin; + } + + if (!$dara.isNull(request.level)) { + query["Level"] = request.level; + } + + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + + if (!$dara.isNull(request.product)) { + query["Product"] = request.product; + } + + if (!$dara.isNull(request.ruleId)) { + query["RuleId"] = request.ruleId; + } + + if (!$dara.isNull(request.ruleName)) { + query["RuleName"] = request.ruleName; + } + + if (!$dara.isNull(request.searchKey)) { + query["SearchKey"] = request.searchKey; + } + + if (!$dara.isNull(request.sendStatus)) { + query["SendStatus"] = request.sendStatus; + } + + if (!$dara.isNull(request.sourceType)) { + query["SourceType"] = request.sourceType; + } + + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeAlertLogList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeAlertLogListResponse>(await this.callApi(params, req, runtime), new $_model.DescribeAlertLogListResponse({})); + } + + /** + * Queries alert logs. + * + * @remarks + * You can call the operation to query only the alert logs within the last year. + * This topic provides an example to show how to query the alert logs of Elastic Compute Service (ECS) based on the `product` dimension. + * + * @param request - DescribeAlertLogListRequest + * @returns DescribeAlertLogListResponse + */ + async describeAlertLogList(request: $_model.DescribeAlertLogListRequest): Promise<$_model.DescribeAlertLogListResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeAlertLogListWithOptions(request, runtime); + } + + /** + * Queries the resources for which active alerts are triggered based on an alert rule. + * + * @param request - DescribeAlertingMetricRuleResourcesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeAlertingMetricRuleResourcesResponse + */ + async describeAlertingMetricRuleResourcesWithOptions(request: $_model.DescribeAlertingMetricRuleResourcesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeAlertingMetricRuleResourcesResponse> { + request.validate(); + let query = OpenApiUtil.query(request.toMap()); + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeAlertingMetricRuleResources", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "GET", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeAlertingMetricRuleResourcesResponse>(await this.callApi(params, req, runtime), new $_model.DescribeAlertingMetricRuleResourcesResponse({})); + } + + /** + * Queries the resources for which active alerts are triggered based on an alert rule. + * + * @param request - DescribeAlertingMetricRuleResourcesRequest + * @returns DescribeAlertingMetricRuleResourcesResponse + */ + async describeAlertingMetricRuleResources(request: $_model.DescribeAlertingMetricRuleResourcesRequest): Promise<$_model.DescribeAlertingMetricRuleResourcesResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeAlertingMetricRuleResourcesWithOptions(request, runtime); + } + + /** + * Call the DescribeContactGroupList interface to query the list of alarm contact groups. + * + * @param request - DescribeContactGroupListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeContactGroupListResponse + */ + async describeContactGroupListWithOptions(request: $_model.DescribeContactGroupListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeContactGroupListResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeContactGroupList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeContactGroupListResponse>(await this.callApi(params, req, runtime), new $_model.DescribeContactGroupListResponse({})); + } + + /** + * Call the DescribeContactGroupList interface to query the list of alarm contact groups. + * + * @param request - DescribeContactGroupListRequest + * @returns DescribeContactGroupListResponse + */ + async describeContactGroupList(request: $_model.DescribeContactGroupListRequest): Promise<$_model.DescribeContactGroupListResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeContactGroupListWithOptions(request, runtime); + } + + /** + * Queries alert contacts. + * + * @param request - DescribeContactListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeContactListResponse + */ + async describeContactListWithOptions(request: $_model.DescribeContactListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeContactListResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.chanelType)) { + query["ChanelType"] = request.chanelType; + } + + if (!$dara.isNull(request.chanelValue)) { + query["ChanelValue"] = request.chanelValue; + } + + if (!$dara.isNull(request.contactName)) { + query["ContactName"] = request.contactName; + } + + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeContactList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeContactListResponse>(await this.callApi(params, req, runtime), new $_model.DescribeContactListResponse({})); + } + + /** + * Queries alert contacts. + * + * @param request - DescribeContactListRequest + * @returns DescribeContactListResponse + */ + async describeContactList(request: $_model.DescribeContactListRequest): Promise<$_model.DescribeContactListResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeContactListWithOptions(request, runtime); + } + + /** + * Queries the alert contacts in an alert contact group. + * + * @param request - DescribeContactListByContactGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeContactListByContactGroupResponse + */ + async describeContactListByContactGroupWithOptions(request: $_model.DescribeContactListByContactGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeContactListByContactGroupResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.contactGroupName)) { + query["ContactGroupName"] = request.contactGroupName; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeContactListByContactGroup", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeContactListByContactGroupResponse>(await this.callApi(params, req, runtime), new $_model.DescribeContactListByContactGroupResponse({})); + } + + /** + * Queries the alert contacts in an alert contact group. + * + * @param request - DescribeContactListByContactGroupRequest + * @returns DescribeContactListByContactGroupResponse + */ + async describeContactListByContactGroup(request: $_model.DescribeContactListByContactGroupRequest): Promise<$_model.DescribeContactListByContactGroupResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeContactListByContactGroupWithOptions(request, runtime); + } + + /** + * Queries the details of a custom event. + * + * @param request - DescribeCustomEventAttributeRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeCustomEventAttributeResponse + */ + async describeCustomEventAttributeWithOptions(request: $_model.DescribeCustomEventAttributeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeCustomEventAttributeResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.endTime)) { + query["EndTime"] = request.endTime; + } + + if (!$dara.isNull(request.eventId)) { + query["EventId"] = request.eventId; + } + + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.name)) { + query["Name"] = request.name; + } + + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + + if (!$dara.isNull(request.searchKeywords)) { + query["SearchKeywords"] = request.searchKeywords; + } + + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeCustomEventAttribute", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeCustomEventAttributeResponse>(await this.callApi(params, req, runtime), new $_model.DescribeCustomEventAttributeResponse({})); + } + + /** + * Queries the details of a custom event. + * + * @param request - DescribeCustomEventAttributeRequest + * @returns DescribeCustomEventAttributeResponse + */ + async describeCustomEventAttribute(request: $_model.DescribeCustomEventAttributeRequest): Promise<$_model.DescribeCustomEventAttributeResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeCustomEventAttributeWithOptions(request, runtime); + } + + /** + * Queries the number of times that a custom event occurred within a period of time. + * + * @remarks + * > This operation queries the number of times that a custom event occurred for each service. + * + * @param request - DescribeCustomEventCountRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeCustomEventCountResponse + */ + async describeCustomEventCountWithOptions(request: $_model.DescribeCustomEventCountRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeCustomEventCountResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.endTime)) { + query["EndTime"] = request.endTime; + } + + if (!$dara.isNull(request.eventId)) { + query["EventId"] = request.eventId; + } + + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.name)) { + query["Name"] = request.name; + } + + if (!$dara.isNull(request.searchKeywords)) { + query["SearchKeywords"] = request.searchKeywords; + } + + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeCustomEventCount", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeCustomEventCountResponse>(await this.callApi(params, req, runtime), new $_model.DescribeCustomEventCountResponse({})); + } + + /** + * Queries the number of times that a custom event occurred within a period of time. + * + * @remarks + * > This operation queries the number of times that a custom event occurred for each service. + * + * @param request - DescribeCustomEventCountRequest + * @returns DescribeCustomEventCountResponse + */ + async describeCustomEventCount(request: $_model.DescribeCustomEventCountRequest): Promise<$_model.DescribeCustomEventCountResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeCustomEventCountWithOptions(request, runtime); + } + + /** + * Queries the number of times that a custom event occurred during each interval within a period of time. + * + * @param request - DescribeCustomEventHistogramRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeCustomEventHistogramResponse + */ + async describeCustomEventHistogramWithOptions(request: $_model.DescribeCustomEventHistogramRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeCustomEventHistogramResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.endTime)) { + query["EndTime"] = request.endTime; + } + + if (!$dara.isNull(request.eventId)) { + query["EventId"] = request.eventId; + } + + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.level)) { + query["Level"] = request.level; + } + + if (!$dara.isNull(request.name)) { + query["Name"] = request.name; + } + + if (!$dara.isNull(request.searchKeywords)) { + query["SearchKeywords"] = request.searchKeywords; + } + + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeCustomEventHistogram", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeCustomEventHistogramResponse>(await this.callApi(params, req, runtime), new $_model.DescribeCustomEventHistogramResponse({})); + } + + /** + * Queries the number of times that a custom event occurred during each interval within a period of time. + * + * @param request - DescribeCustomEventHistogramRequest + * @returns DescribeCustomEventHistogramResponse + */ + async describeCustomEventHistogram(request: $_model.DescribeCustomEventHistogramRequest): Promise<$_model.DescribeCustomEventHistogramResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeCustomEventHistogramWithOptions(request, runtime); + } + + /** + * Queries the reported monitoring data. + * + * @remarks + * > You can call the DescribeMetricList operation to query the metrics of cloud services. For more information, see [DescribeMetricList](https://help.aliyun.com/document_detail/51936.html). + * + * @param request - DescribeCustomMetricListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeCustomMetricListResponse + */ + async describeCustomMetricListWithOptions(request: $_model.DescribeCustomMetricListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeCustomMetricListResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.dimension)) { + query["Dimension"] = request.dimension; + } + + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.md5)) { + query["Md5"] = request.md5; + } + + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeCustomMetricList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeCustomMetricListResponse>(await this.callApi(params, req, runtime), new $_model.DescribeCustomMetricListResponse({})); + } + + /** + * Queries the reported monitoring data. + * + * @remarks + * > You can call the DescribeMetricList operation to query the metrics of cloud services. For more information, see [DescribeMetricList](https://help.aliyun.com/document_detail/51936.html). + * + * @param request - DescribeCustomMetricListRequest + * @returns DescribeCustomMetricListResponse + */ + async describeCustomMetricList(request: $_model.DescribeCustomMetricListRequest): Promise<$_model.DescribeCustomMetricListResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeCustomMetricListWithOptions(request, runtime); + } + + /** + * Queries tag rules. + * + * @remarks + * This topic provides an example to show how to query tag rules that are related to `tagkey1`. The sample responses indicate that two tag rules are found. The rule IDs are `1536df65-a719-429d-8813-73cc40d7****` and `56e8cebb-b3d7-4a91-9880-78a8c84f****`. + * + * @param request - DescribeDynamicTagRuleListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeDynamicTagRuleListResponse + */ + async describeDynamicTagRuleListWithOptions(request: $_model.DescribeDynamicTagRuleListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeDynamicTagRuleListResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.dynamicTagRuleId)) { + query["DynamicTagRuleId"] = request.dynamicTagRuleId; + } + + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + + if (!$dara.isNull(request.tagKey)) { + query["TagKey"] = request.tagKey; + } + + if (!$dara.isNull(request.tagRegionId)) { + query["TagRegionId"] = request.tagRegionId; + } + + if (!$dara.isNull(request.tagValue)) { + query["TagValue"] = request.tagValue; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeDynamicTagRuleList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeDynamicTagRuleListResponse>(await this.callApi(params, req, runtime), new $_model.DescribeDynamicTagRuleListResponse({})); + } + + /** + * Queries tag rules. + * + * @remarks + * This topic provides an example to show how to query tag rules that are related to `tagkey1`. The sample responses indicate that two tag rules are found. The rule IDs are `1536df65-a719-429d-8813-73cc40d7****` and `56e8cebb-b3d7-4a91-9880-78a8c84f****`. + * + * @param request - DescribeDynamicTagRuleListRequest + * @returns DescribeDynamicTagRuleListResponse + */ + async describeDynamicTagRuleList(request: $_model.DescribeDynamicTagRuleListRequest): Promise<$_model.DescribeDynamicTagRuleListResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeDynamicTagRuleListWithOptions(request, runtime); + } + + /** + * Queries the details of an event-triggered alert rule. + * + * @remarks + * This topic provides an example to show how to query the details of an event-triggered alert rule named `testRule`. + * + * @param request - DescribeEventRuleAttributeRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeEventRuleAttributeResponse + */ + async describeEventRuleAttributeWithOptions(request: $_model.DescribeEventRuleAttributeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeEventRuleAttributeResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.ruleName)) { + query["RuleName"] = request.ruleName; + } + + if (!$dara.isNull(request.silenceTime)) { + query["SilenceTime"] = request.silenceTime; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeEventRuleAttribute", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeEventRuleAttributeResponse>(await this.callApi(params, req, runtime), new $_model.DescribeEventRuleAttributeResponse({})); + } + + /** + * Queries the details of an event-triggered alert rule. + * + * @remarks + * This topic provides an example to show how to query the details of an event-triggered alert rule named `testRule`. + * + * @param request - DescribeEventRuleAttributeRequest + * @returns DescribeEventRuleAttributeResponse + */ + async describeEventRuleAttribute(request: $_model.DescribeEventRuleAttributeRequest): Promise<$_model.DescribeEventRuleAttributeResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeEventRuleAttributeWithOptions(request, runtime); + } + + /** + * Queries event-triggered alert rules. + * + * @param request - DescribeEventRuleListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeEventRuleListResponse + */ + async describeEventRuleListWithOptions(request: $_model.DescribeEventRuleListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeEventRuleListResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.isEnable)) { + query["IsEnable"] = request.isEnable; + } + + if (!$dara.isNull(request.namePrefix)) { + query["NamePrefix"] = request.namePrefix; + } + + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeEventRuleList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeEventRuleListResponse>(await this.callApi(params, req, runtime), new $_model.DescribeEventRuleListResponse({})); + } + + /** + * Queries event-triggered alert rules. + * + * @param request - DescribeEventRuleListRequest + * @returns DescribeEventRuleListResponse + */ + async describeEventRuleList(request: $_model.DescribeEventRuleListRequest): Promise<$_model.DescribeEventRuleListResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeEventRuleListWithOptions(request, runtime); + } + + /** + * Queries event-triggered alert rules. + * + * @remarks + * This topic provides an example to show how to query the details of an event-triggered alert rule named `testRule`. + * + * @param request - DescribeEventRuleTargetListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeEventRuleTargetListResponse + */ + async describeEventRuleTargetListWithOptions(request: $_model.DescribeEventRuleTargetListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeEventRuleTargetListResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.ruleName)) { + query["RuleName"] = request.ruleName; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeEventRuleTargetList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeEventRuleTargetListResponse>(await this.callApi(params, req, runtime), new $_model.DescribeEventRuleTargetListResponse({})); + } + + /** + * Queries event-triggered alert rules. + * + * @remarks + * This topic provides an example to show how to query the details of an event-triggered alert rule named `testRule`. + * + * @param request - DescribeEventRuleTargetListRequest + * @returns DescribeEventRuleTargetListResponse + */ + async describeEventRuleTargetList(request: $_model.DescribeEventRuleTargetListRequest): Promise<$_model.DescribeEventRuleTargetListResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeEventRuleTargetListWithOptions(request, runtime); + } + + /** + * Queries configuration sets that are used to export monitoring data. + * + * @param request - DescribeExporterOutputListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeExporterOutputListResponse + */ + async describeExporterOutputListWithOptions(request: $_model.DescribeExporterOutputListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeExporterOutputListResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeExporterOutputList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeExporterOutputListResponse>(await this.callApi(params, req, runtime), new $_model.DescribeExporterOutputListResponse({})); + } + + /** + * Queries configuration sets that are used to export monitoring data. + * + * @param request - DescribeExporterOutputListRequest + * @returns DescribeExporterOutputListResponse + */ + async describeExporterOutputList(request: $_model.DescribeExporterOutputListRequest): Promise<$_model.DescribeExporterOutputListResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeExporterOutputListWithOptions(request, runtime); + } + + /** + * Queries data export rules. + * + * @param request - DescribeExporterRuleListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeExporterRuleListResponse + */ + async describeExporterRuleListWithOptions(request: $_model.DescribeExporterRuleListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeExporterRuleListResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeExporterRuleList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeExporterRuleListResponse>(await this.callApi(params, req, runtime), new $_model.DescribeExporterRuleListResponse({})); + } + + /** + * Queries data export rules. + * + * @param request - DescribeExporterRuleListRequest + * @returns DescribeExporterRuleListResponse + */ + async describeExporterRuleList(request: $_model.DescribeExporterRuleListRequest): Promise<$_model.DescribeExporterRuleListResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeExporterRuleListWithOptions(request, runtime); + } + + /** + * Queries the process monitoring tasks for an application group. + * + * @remarks + * You can create a process monitoring task to monitor all or the specified Elastic Compute Service (ECS) instances in an application group and configure alert rules for the process monitoring task. + * + * @param request - DescribeGroupMonitoringAgentProcessRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeGroupMonitoringAgentProcessResponse + */ + async describeGroupMonitoringAgentProcessWithOptions(request: $_model.DescribeGroupMonitoringAgentProcessRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeGroupMonitoringAgentProcessResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + + if (!$dara.isNull(request.processName)) { + query["ProcessName"] = request.processName; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeGroupMonitoringAgentProcess", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeGroupMonitoringAgentProcessResponse>(await this.callApi(params, req, runtime), new $_model.DescribeGroupMonitoringAgentProcessResponse({})); + } + + /** + * Queries the process monitoring tasks for an application group. + * + * @remarks + * You can create a process monitoring task to monitor all or the specified Elastic Compute Service (ECS) instances in an application group and configure alert rules for the process monitoring task. + * + * @param request - DescribeGroupMonitoringAgentProcessRequest + * @returns DescribeGroupMonitoringAgentProcessResponse + */ + async describeGroupMonitoringAgentProcess(request: $_model.DescribeGroupMonitoringAgentProcessRequest): Promise<$_model.DescribeGroupMonitoringAgentProcessResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeGroupMonitoringAgentProcessWithOptions(request, runtime); + } + + /** + * Queries availability monitoring tasks. + * + * @remarks + * This topic provides an example to show how to query all the availability monitoring tasks of your Alibaba Cloud account. The sample responses indicate that the account has one availability monitoring task named `ecs_instance`. + * + * @param request - DescribeHostAvailabilityListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeHostAvailabilityListResponse + */ + async describeHostAvailabilityListWithOptions(request: $_model.DescribeHostAvailabilityListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeHostAvailabilityListResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.id)) { + query["Id"] = request.id; + } + + if (!$dara.isNull(request.ids)) { + query["Ids"] = request.ids; + } + + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + + if (!$dara.isNull(request.taskName)) { + query["TaskName"] = request.taskName; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeHostAvailabilityList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeHostAvailabilityListResponse>(await this.callApi(params, req, runtime), new $_model.DescribeHostAvailabilityListResponse({})); + } + + /** + * Queries availability monitoring tasks. + * + * @remarks + * This topic provides an example to show how to query all the availability monitoring tasks of your Alibaba Cloud account. The sample responses indicate that the account has one availability monitoring task named `ecs_instance`. + * + * @param request - DescribeHostAvailabilityListRequest + * @returns DescribeHostAvailabilityListResponse + */ + async describeHostAvailabilityList(request: $_model.DescribeHostAvailabilityListRequest): Promise<$_model.DescribeHostAvailabilityListResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeHostAvailabilityListWithOptions(request, runtime); + } + + /** + * Queries the monitoring data in a namespace. + * + * @remarks + * ## [](#)Prerequisites + * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](https://help.aliyun.com/document_detail/250773.html). + * ## [](#)Limits + * The size of monitoring data that is returned in each call cannot exceed 1.5 MB. If the returned data reaches the upper limit, the query fails. You must reset the query conditions. + * ## [](#)Operation description + * This topic provides an example to show how to query the monitoring data of the `AliyunEcs_cpu_total` metric in the `default-aliyun` namespace from `1653804865` (14:14:25 on May 29, 2022) to `1653805225` (14:20:25 on May 29, 2022). + * + * @param request - DescribeHybridMonitorDataListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeHybridMonitorDataListResponse + */ + async describeHybridMonitorDataListWithOptions(request: $_model.DescribeHybridMonitorDataListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeHybridMonitorDataListResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.end)) { + query["End"] = request.end; + } + + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + + if (!$dara.isNull(request.period)) { + query["Period"] = request.period; + } + + if (!$dara.isNull(request.promSQL)) { + query["PromSQL"] = request.promSQL; + } + + if (!$dara.isNull(request.start)) { + query["Start"] = request.start; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeHybridMonitorDataList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeHybridMonitorDataListResponse>(await this.callApi(params, req, runtime), new $_model.DescribeHybridMonitorDataListResponse({})); + } + + /** + * Queries the monitoring data in a namespace. + * + * @remarks + * ## [](#)Prerequisites + * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](https://help.aliyun.com/document_detail/250773.html). + * ## [](#)Limits + * The size of monitoring data that is returned in each call cannot exceed 1.5 MB. If the returned data reaches the upper limit, the query fails. You must reset the query conditions. + * ## [](#)Operation description + * This topic provides an example to show how to query the monitoring data of the `AliyunEcs_cpu_total` metric in the `default-aliyun` namespace from `1653804865` (14:14:25 on May 29, 2022) to `1653805225` (14:20:25 on May 29, 2022). + * + * @param request - DescribeHybridMonitorDataListRequest + * @returns DescribeHybridMonitorDataListResponse + */ + async describeHybridMonitorDataList(request: $_model.DescribeHybridMonitorDataListRequest): Promise<$_model.DescribeHybridMonitorDataListResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeHybridMonitorDataListWithOptions(request, runtime); + } + + /** + * Queries namespaces and the details of the related metric import tasks. + * + * @remarks + * In this example, all namespaces within the current account are queried. The response shows that the current account has only one namespace named `aliyun-test`. + * + * @param request - DescribeHybridMonitorNamespaceListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeHybridMonitorNamespaceListResponse + */ + async describeHybridMonitorNamespaceListWithOptions(request: $_model.DescribeHybridMonitorNamespaceListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeHybridMonitorNamespaceListResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.keyword)) { + query["Keyword"] = request.keyword; + } + + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + + if (!$dara.isNull(request.showTaskStatistic)) { + query["ShowTaskStatistic"] = request.showTaskStatistic; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeHybridMonitorNamespaceList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeHybridMonitorNamespaceListResponse>(await this.callApi(params, req, runtime), new $_model.DescribeHybridMonitorNamespaceListResponse({})); + } + + /** + * Queries namespaces and the details of the related metric import tasks. + * + * @remarks + * In this example, all namespaces within the current account are queried. The response shows that the current account has only one namespace named `aliyun-test`. + * + * @param request - DescribeHybridMonitorNamespaceListRequest + * @returns DescribeHybridMonitorNamespaceListResponse + */ + async describeHybridMonitorNamespaceList(request: $_model.DescribeHybridMonitorNamespaceListRequest): Promise<$_model.DescribeHybridMonitorNamespaceListResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeHybridMonitorNamespaceListWithOptions(request, runtime); + } + + /** + * Queries Logstore groups. + * + * @remarks + * In this example, all Logstore groups within the current account are queried. The response shows that the current account has two Logstore groups: `Logstore_test` and `Logstore_aliyun`. + * + * @param request - DescribeHybridMonitorSLSGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeHybridMonitorSLSGroupResponse + */ + async describeHybridMonitorSLSGroupWithOptions(request: $_model.DescribeHybridMonitorSLSGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeHybridMonitorSLSGroupResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.keyword)) { + query["Keyword"] = request.keyword; + } + + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + + if (!$dara.isNull(request.SLSGroupName)) { + query["SLSGroupName"] = request.SLSGroupName; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeHybridMonitorSLSGroup", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeHybridMonitorSLSGroupResponse>(await this.callApi(params, req, runtime), new $_model.DescribeHybridMonitorSLSGroupResponse({})); + } + + /** + * Queries Logstore groups. + * + * @remarks + * In this example, all Logstore groups within the current account are queried. The response shows that the current account has two Logstore groups: `Logstore_test` and `Logstore_aliyun`. + * + * @param request - DescribeHybridMonitorSLSGroupRequest + * @returns DescribeHybridMonitorSLSGroupResponse + */ + async describeHybridMonitorSLSGroup(request: $_model.DescribeHybridMonitorSLSGroupRequest): Promise<$_model.DescribeHybridMonitorSLSGroupResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeHybridMonitorSLSGroupWithOptions(request, runtime); + } + + /** + * Queries metric import tasks. + * + * @remarks + * This topic provides an example on how to query all metric import tasks that belong to the current Alibaba Cloud account. The returned result indicates that the current account has only one metric import task. The metric import task is named `aliyun_task`. + * + * @param request - DescribeHybridMonitorTaskListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeHybridMonitorTaskListResponse + */ + async describeHybridMonitorTaskListWithOptions(request: $_model.DescribeHybridMonitorTaskListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeHybridMonitorTaskListResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.includeAliyunTask)) { + query["IncludeAliyunTask"] = request.includeAliyunTask; + } + + if (!$dara.isNull(request.keyword)) { + query["Keyword"] = request.keyword; + } + + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + + if (!$dara.isNull(request.targetUserId)) { + query["TargetUserId"] = request.targetUserId; + } + + if (!$dara.isNull(request.taskId)) { + query["TaskId"] = request.taskId; + } + + if (!$dara.isNull(request.taskType)) { + query["TaskType"] = request.taskType; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeHybridMonitorTaskList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeHybridMonitorTaskListResponse>(await this.callApi(params, req, runtime), new $_model.DescribeHybridMonitorTaskListResponse({})); + } + + /** + * Queries metric import tasks. + * + * @remarks + * This topic provides an example on how to query all metric import tasks that belong to the current Alibaba Cloud account. The returned result indicates that the current account has only one metric import task. The metric import task is named `aliyun_task`. + * + * @param request - DescribeHybridMonitorTaskListRequest + * @returns DescribeHybridMonitorTaskListResponse + */ + async describeHybridMonitorTaskList(request: $_model.DescribeHybridMonitorTaskListRequest): Promise<$_model.DescribeHybridMonitorTaskListResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeHybridMonitorTaskListWithOptions(request, runtime); + } + + /** + * Queries the details of a log monitoring metric. + * + * @param request - DescribeLogMonitorAttributeRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeLogMonitorAttributeResponse + */ + async describeLogMonitorAttributeWithOptions(request: $_model.DescribeLogMonitorAttributeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeLogMonitorAttributeResponse> { + request.validate(); + let query = OpenApiUtil.query(request.toMap()); + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeLogMonitorAttribute", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "GET", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeLogMonitorAttributeResponse>(await this.callApi(params, req, runtime), new $_model.DescribeLogMonitorAttributeResponse({})); + } + + /** + * Queries the details of a log monitoring metric. + * + * @param request - DescribeLogMonitorAttributeRequest + * @returns DescribeLogMonitorAttributeResponse + */ + async describeLogMonitorAttribute(request: $_model.DescribeLogMonitorAttributeRequest): Promise<$_model.DescribeLogMonitorAttributeResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeLogMonitorAttributeWithOptions(request, runtime); + } + + /** + * Queries log monitoring metrics. + * + * @param request - DescribeLogMonitorListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeLogMonitorListResponse + */ + async describeLogMonitorListWithOptions(request: $_model.DescribeLogMonitorListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeLogMonitorListResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + + if (!$dara.isNull(request.searchValue)) { + query["SearchValue"] = request.searchValue; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeLogMonitorList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeLogMonitorListResponse>(await this.callApi(params, req, runtime), new $_model.DescribeLogMonitorListResponse({})); + } + + /** + * Queries log monitoring metrics. + * + * @param request - DescribeLogMonitorListRequest + * @returns DescribeLogMonitorListResponse + */ + async describeLogMonitorList(request: $_model.DescribeLogMonitorListRequest): Promise<$_model.DescribeLogMonitorListResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeLogMonitorListWithOptions(request, runtime); + } + + /** + * Queries the monitoring data of a metric for a cloud service. + * + * @remarks + * ### [](#)Limits + * * The total free quota is 1 million calls per month for the DescribeMetricLast, DescribeMetricList, DescribeMetricData, and DescribeMetricTop operations. If the free quota is used up and CloudMonitor Basic (pay-as-you-go) is not activated, these API operations can no longer be called as expected. If you have activated CloudMonitor Basic (pay-as-you-go), these API operations can still be called even if the free quota is used up. If the free quota is used up, you are automatically charged for the excess usage based on the pay-as-you-go billing method. For more information about how to activate CloudMonitor Basic (pay-as-you-go), see [Enable the pay-as-you-go billing method](https://common-buy.aliyun.com/?spm=a2c4g.11186623.0.0.6c8f3481IbSHgG\\&commodityCode=cms_basic_public_cn\\&from_biz_channel=help_bill). + * * Each API operation can be called up to 10 times per second. An Alibaba Cloud account and the Resource Access Management (RAM) users within the account share the quota. + * ### [](#)Description + * > Different from [DescribeMetricList](https://help.aliyun.com/document_detail/51936.html), the DescribeMetricData operation provides statistical features. You can set the Dimension parameter to `{"instanceId": "i-abcdefgh12****"}` to aggregate all data of your Alibaba Cloud account. + * This topic provides an example on how to query the monitoring data of the `cpu_idle` metric for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. + * + * @param request - DescribeMetricDataRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMetricDataResponse + */ + async describeMetricDataWithOptions(request: $_model.DescribeMetricDataRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMetricDataResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.dimensions)) { + query["Dimensions"] = request.dimensions; + } + + if (!$dara.isNull(request.endTime)) { + query["EndTime"] = request.endTime; + } + + if (!$dara.isNull(request.express)) { + query["Express"] = request.express; + } + + if (!$dara.isNull(request.length)) { + query["Length"] = request.length; + } + + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + + if (!$dara.isNull(request.period)) { + query["Period"] = request.period; + } + + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeMetricData", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeMetricDataResponse>(await this.callApi(params, req, runtime), new $_model.DescribeMetricDataResponse({})); + } + + /** + * Queries the monitoring data of a metric for a cloud service. + * + * @remarks + * ### [](#)Limits + * * The total free quota is 1 million calls per month for the DescribeMetricLast, DescribeMetricList, DescribeMetricData, and DescribeMetricTop operations. If the free quota is used up and CloudMonitor Basic (pay-as-you-go) is not activated, these API operations can no longer be called as expected. If you have activated CloudMonitor Basic (pay-as-you-go), these API operations can still be called even if the free quota is used up. If the free quota is used up, you are automatically charged for the excess usage based on the pay-as-you-go billing method. For more information about how to activate CloudMonitor Basic (pay-as-you-go), see [Enable the pay-as-you-go billing method](https://common-buy.aliyun.com/?spm=a2c4g.11186623.0.0.6c8f3481IbSHgG\\&commodityCode=cms_basic_public_cn\\&from_biz_channel=help_bill). + * * Each API operation can be called up to 10 times per second. An Alibaba Cloud account and the Resource Access Management (RAM) users within the account share the quota. + * ### [](#)Description + * > Different from [DescribeMetricList](https://help.aliyun.com/document_detail/51936.html), the DescribeMetricData operation provides statistical features. You can set the Dimension parameter to `{"instanceId": "i-abcdefgh12****"}` to aggregate all data of your Alibaba Cloud account. + * This topic provides an example on how to query the monitoring data of the `cpu_idle` metric for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. + * + * @param request - DescribeMetricDataRequest + * @returns DescribeMetricDataResponse + */ + async describeMetricData(request: $_model.DescribeMetricDataRequest): Promise<$_model.DescribeMetricDataResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeMetricDataWithOptions(request, runtime); + } + + /** + * Queries the latest monitoring data of a metric. + * + * @remarks + * ### [](#)Limits + * * The total free quota is 1 million calls per month for the DescribeMetricLast, DescribeMetricList, DescribeMetricData, and DescribeMetricTop operations. If the free quota is used up and CloudMonitor Basic (pay-as-you-go) is not activated, these API operations can no longer be called as expected. If you have activated CloudMonitor Basic (pay-as-you-go), these API operations can still be called even if the free quota is used up. After the free quota is used up, you are charged for the excess usage based on the pay-as-you-go billing method. For more information about how to activate CloudMonitor Basic (pay-as-you-go), see [Enable the pay-as-you-go billing method](https://common-buy.aliyun.com/?spm=a2c4g.11186623.0.0.6c8f3481IbSHgG\\&commodityCode=cms_basic_public_cn\\&from_biz_channel=help_bill). + * * Each API operation can be called up to 50 times per second. An Alibaba Cloud account and the Resource Access Management (RAM) users within the account share the quota. + * > If `Throttling.User` or `Request was denied due to user flow control` is returned when you call an API operation, the API operation is throttled. For more information about how to handle the issue, see [How do I handle the throttling of a query API?](https://help.aliyun.com/document_detail/2615031.html) + * ### [](#)Precautions + * The storage duration of the monitoring data of each cloud service is related to the `Period` parameter (statistical period). A larger value of the `Period` parameter indicates that the monitoring data is distributed in a larger time range and the storage duration of the monitoring data is longer. The following list describes the specific relationships: + * * The storage duration is 7 days if the value of the `Period` parameter is less than 60 seconds. + * * The storage duration is 31 days if the value of the `Period` parameter is 60 seconds. + * * The storage duration is 91 days if the value of the `Period` parameter is greater than or equal to 300 seconds. + * ### [](#)Operation description + * This topic provides an example on how to query the latest monitoring data of the `CPUUtilization` metric for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. The returned result indicates that the monitoring data for the instance `i-abcdefgh12****` of the account `123456789876****` is queried at an interval of 60 seconds. The maximum, minimum, and average values of the metric are 100, 93.1, and 99.52. + * + * @param request - DescribeMetricLastRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMetricLastResponse + */ + async describeMetricLastWithOptions(request: $_model.DescribeMetricLastRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMetricLastResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.dimensions)) { + query["Dimensions"] = request.dimensions; + } + + if (!$dara.isNull(request.endTime)) { + query["EndTime"] = request.endTime; + } + + if (!$dara.isNull(request.express)) { + query["Express"] = request.express; + } + + if (!$dara.isNull(request.length)) { + query["Length"] = request.length; + } + + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + + if (!$dara.isNull(request.nextToken)) { + query["NextToken"] = request.nextToken; + } + + if (!$dara.isNull(request.period)) { + query["Period"] = request.period; + } + + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeMetricLast", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeMetricLastResponse>(await this.callApi(params, req, runtime), new $_model.DescribeMetricLastResponse({})); + } + + /** + * Queries the latest monitoring data of a metric. + * + * @remarks + * ### [](#)Limits + * * The total free quota is 1 million calls per month for the DescribeMetricLast, DescribeMetricList, DescribeMetricData, and DescribeMetricTop operations. If the free quota is used up and CloudMonitor Basic (pay-as-you-go) is not activated, these API operations can no longer be called as expected. If you have activated CloudMonitor Basic (pay-as-you-go), these API operations can still be called even if the free quota is used up. After the free quota is used up, you are charged for the excess usage based on the pay-as-you-go billing method. For more information about how to activate CloudMonitor Basic (pay-as-you-go), see [Enable the pay-as-you-go billing method](https://common-buy.aliyun.com/?spm=a2c4g.11186623.0.0.6c8f3481IbSHgG\\&commodityCode=cms_basic_public_cn\\&from_biz_channel=help_bill). + * * Each API operation can be called up to 50 times per second. An Alibaba Cloud account and the Resource Access Management (RAM) users within the account share the quota. + * > If `Throttling.User` or `Request was denied due to user flow control` is returned when you call an API operation, the API operation is throttled. For more information about how to handle the issue, see [How do I handle the throttling of a query API?](https://help.aliyun.com/document_detail/2615031.html) + * ### [](#)Precautions + * The storage duration of the monitoring data of each cloud service is related to the `Period` parameter (statistical period). A larger value of the `Period` parameter indicates that the monitoring data is distributed in a larger time range and the storage duration of the monitoring data is longer. The following list describes the specific relationships: + * * The storage duration is 7 days if the value of the `Period` parameter is less than 60 seconds. + * * The storage duration is 31 days if the value of the `Period` parameter is 60 seconds. + * * The storage duration is 91 days if the value of the `Period` parameter is greater than or equal to 300 seconds. + * ### [](#)Operation description + * This topic provides an example on how to query the latest monitoring data of the `CPUUtilization` metric for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. The returned result indicates that the monitoring data for the instance `i-abcdefgh12****` of the account `123456789876****` is queried at an interval of 60 seconds. The maximum, minimum, and average values of the metric are 100, 93.1, and 99.52. + * + * @param request - DescribeMetricLastRequest + * @returns DescribeMetricLastResponse + */ + async describeMetricLast(request: $_model.DescribeMetricLastRequest): Promise<$_model.DescribeMetricLastResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeMetricLastWithOptions(request, runtime); + } + + /** + * Queries the monitoring data of a metric for a specified cloud service. + * + * @remarks + * ## Limits + * Each API operation can be called up to 50 times per second. An Alibaba Cloud account and the RAM users within the account share the quota. + * >This topic provides an example to show how to query the monitoring data of the `cpu_idle` metric for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. The returned result indicates that the monitoring data for the instance `i-abcdefgh12****` of the account `120886317861****` is queried at an interval of 60 seconds. The maximum, minimum, and average values of the metric are 100, 93.1, and 99.52. + * + * @param request - DescribeMetricListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMetricListResponse + */ + async describeMetricListWithOptions(request: $_model.DescribeMetricListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMetricListResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.dimensions)) { + query["Dimensions"] = request.dimensions; + } + + if (!$dara.isNull(request.endTime)) { + query["EndTime"] = request.endTime; + } + + if (!$dara.isNull(request.express)) { + query["Express"] = request.express; + } + + if (!$dara.isNull(request.length)) { + query["Length"] = request.length; + } + + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + + if (!$dara.isNull(request.nextToken)) { + query["NextToken"] = request.nextToken; + } + + if (!$dara.isNull(request.period)) { + query["Period"] = request.period; + } + + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeMetricList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeMetricListResponse>(await this.callApi(params, req, runtime), new $_model.DescribeMetricListResponse({})); + } + + /** + * Queries the monitoring data of a metric for a specified cloud service. + * + * @remarks + * ## Limits + * Each API operation can be called up to 50 times per second. An Alibaba Cloud account and the RAM users within the account share the quota. + * >This topic provides an example to show how to query the monitoring data of the `cpu_idle` metric for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. The returned result indicates that the monitoring data for the instance `i-abcdefgh12****` of the account `120886317861****` is queried at an interval of 60 seconds. The maximum, minimum, and average values of the metric are 100, 93.1, and 99.52. + * + * @param request - DescribeMetricListRequest + * @returns DescribeMetricListResponse + */ + async describeMetricList(request: $_model.DescribeMetricListRequest): Promise<$_model.DescribeMetricListResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeMetricListWithOptions(request, runtime); + } + + /** + * Queries the details of metrics that are supported in CloudMonitor. + * + * @remarks + * This operation is used together with DescribeMetricList and DescribeMetricLast. For more information, see [DescribeMetricList](https://help.aliyun.com/document_detail/51936.html) and [DescribeMetricLast](https://help.aliyun.com/document_detail/51939.html). + * + * @param request - DescribeMetricMetaListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMetricMetaListResponse + */ + async describeMetricMetaListWithOptions(request: $_model.DescribeMetricMetaListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMetricMetaListResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.labels)) { + query["Labels"] = request.labels; + } + + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeMetricMetaList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeMetricMetaListResponse>(await this.callApi(params, req, runtime), new $_model.DescribeMetricMetaListResponse({})); + } + + /** + * Queries the details of metrics that are supported in CloudMonitor. + * + * @remarks + * This operation is used together with DescribeMetricList and DescribeMetricLast. For more information, see [DescribeMetricList](https://help.aliyun.com/document_detail/51936.html) and [DescribeMetricLast](https://help.aliyun.com/document_detail/51939.html). + * + * @param request - DescribeMetricMetaListRequest + * @returns DescribeMetricMetaListResponse + */ + async describeMetricMetaList(request: $_model.DescribeMetricMetaListRequest): Promise<$_model.DescribeMetricMetaListResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeMetricMetaListWithOptions(request, runtime); + } + + /** + * @param request - DescribeMetricRuleBlackListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMetricRuleBlackListResponse + */ + async describeMetricRuleBlackListWithOptions(request: $_model.DescribeMetricRuleBlackListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMetricRuleBlackListResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.category)) { + query["Category"] = request.category; + } + + if (!$dara.isNull(request.ids)) { + query["Ids"] = request.ids; + } + + if (!$dara.isNull(request.instanceIds)) { + query["InstanceIds"] = request.instanceIds; + } + + if (!$dara.isNull(request.isEnable)) { + query["IsEnable"] = request.isEnable; + } + + if (!$dara.isNull(request.name)) { + query["Name"] = request.name; + } + + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + + if (!$dara.isNull(request.order)) { + query["Order"] = request.order; + } + + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + + if (!$dara.isNull(request.scopeType)) { + query["ScopeType"] = request.scopeType; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeMetricRuleBlackList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeMetricRuleBlackListResponse>(await this.callApi(params, req, runtime), new $_model.DescribeMetricRuleBlackListResponse({})); + } + + /** + * @param request - DescribeMetricRuleBlackListRequest + * @returns DescribeMetricRuleBlackListResponse + */ + async describeMetricRuleBlackList(request: $_model.DescribeMetricRuleBlackListRequest): Promise<$_model.DescribeMetricRuleBlackListResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeMetricRuleBlackListWithOptions(request, runtime); + } + + /** + * Queries the number of alert rules in each state. + * + * @param request - DescribeMetricRuleCountRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMetricRuleCountResponse + */ + async describeMetricRuleCountWithOptions(request: $_model.DescribeMetricRuleCountRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMetricRuleCountResponse> { + request.validate(); + let query = OpenApiUtil.query(request.toMap()); + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeMetricRuleCount", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "GET", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeMetricRuleCountResponse>(await this.callApi(params, req, runtime), new $_model.DescribeMetricRuleCountResponse({})); + } + + /** + * Queries the number of alert rules in each state. + * + * @param request - DescribeMetricRuleCountRequest + * @returns DescribeMetricRuleCountResponse + */ + async describeMetricRuleCount(request: $_model.DescribeMetricRuleCountRequest): Promise<$_model.DescribeMetricRuleCountResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeMetricRuleCountWithOptions(request, runtime); + } + + /** + * Queries alert rules. + * + * @remarks + * This topic provides an example on how to query all alert rules within your Alibaba Cloud account. The returned result shows that only one alert rule is found. The name of the alert rule is `Rule_01` and the ID is `applyTemplate344cfd42-0f32-4fd6-805a-88d7908a****`. + * + * @param request - DescribeMetricRuleListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMetricRuleListResponse + */ + async describeMetricRuleListWithOptions(request: $_model.DescribeMetricRuleListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMetricRuleListResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.alertState)) { + query["AlertState"] = request.alertState; + } + + if (!$dara.isNull(request.dimensions)) { + query["Dimensions"] = request.dimensions; + } + + if (!$dara.isNull(request.enableState)) { + query["EnableState"] = request.enableState; + } + + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + + if (!$dara.isNull(request.page)) { + query["Page"] = request.page; + } + + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + + if (!$dara.isNull(request.ruleIds)) { + query["RuleIds"] = request.ruleIds; + } + + if (!$dara.isNull(request.ruleName)) { + query["RuleName"] = request.ruleName; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeMetricRuleList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeMetricRuleListResponse>(await this.callApi(params, req, runtime), new $_model.DescribeMetricRuleListResponse({})); + } + + /** + * Queries alert rules. + * + * @remarks + * This topic provides an example on how to query all alert rules within your Alibaba Cloud account. The returned result shows that only one alert rule is found. The name of the alert rule is `Rule_01` and the ID is `applyTemplate344cfd42-0f32-4fd6-805a-88d7908a****`. + * + * @param request - DescribeMetricRuleListRequest + * @returns DescribeMetricRuleListResponse + */ + async describeMetricRuleList(request: $_model.DescribeMetricRuleListRequest): Promise<$_model.DescribeMetricRuleListResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeMetricRuleListWithOptions(request, runtime); + } + + /** + * Queries the resources that are associated with a specified alert rule. + * + * @remarks + * ## Limit + * This operation supports only Message Service (MNS) resources. + * >This topic provides an example on how to query the resources that are associated with an alert rule whose ID is `ae06917_75a8c43178ab66****`. + * + * @param request - DescribeMetricRuleTargetsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMetricRuleTargetsResponse + */ + async describeMetricRuleTargetsWithOptions(request: $_model.DescribeMetricRuleTargetsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMetricRuleTargetsResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.ruleId)) { + query["RuleId"] = request.ruleId; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeMetricRuleTargets", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeMetricRuleTargetsResponse>(await this.callApi(params, req, runtime), new $_model.DescribeMetricRuleTargetsResponse({})); + } + + /** + * Queries the resources that are associated with a specified alert rule. + * + * @remarks + * ## Limit + * This operation supports only Message Service (MNS) resources. + * >This topic provides an example on how to query the resources that are associated with an alert rule whose ID is `ae06917_75a8c43178ab66****`. + * + * @param request - DescribeMetricRuleTargetsRequest + * @returns DescribeMetricRuleTargetsResponse + */ + async describeMetricRuleTargets(request: $_model.DescribeMetricRuleTargetsRequest): Promise<$_model.DescribeMetricRuleTargetsResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeMetricRuleTargetsWithOptions(request, runtime); + } + + /** + * Queries the details of an alert template. + * + * @remarks + * This topic provides an example on how to query the details of an alert template whose ID is `70****`. + * + * @param request - DescribeMetricRuleTemplateAttributeRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMetricRuleTemplateAttributeResponse + */ + async describeMetricRuleTemplateAttributeWithOptions(request: $_model.DescribeMetricRuleTemplateAttributeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMetricRuleTemplateAttributeResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.name)) { + query["Name"] = request.name; + } + + if (!$dara.isNull(request.templateId)) { + query["TemplateId"] = request.templateId; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeMetricRuleTemplateAttribute", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeMetricRuleTemplateAttributeResponse>(await this.callApi(params, req, runtime), new $_model.DescribeMetricRuleTemplateAttributeResponse({})); + } + + /** + * Queries the details of an alert template. + * + * @remarks + * This topic provides an example on how to query the details of an alert template whose ID is `70****`. + * + * @param request - DescribeMetricRuleTemplateAttributeRequest + * @returns DescribeMetricRuleTemplateAttributeResponse + */ + async describeMetricRuleTemplateAttribute(request: $_model.DescribeMetricRuleTemplateAttributeRequest): Promise<$_model.DescribeMetricRuleTemplateAttributeResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeMetricRuleTemplateAttributeWithOptions(request, runtime); + } + + /** + * Queries alert templates. + * + * @remarks + * This topic provides an example on how to query alert templates. In this example, the following alert templates are returned in the response: `ECS_Template1` and `ECS_Template2`. + * + * @param request - DescribeMetricRuleTemplateListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMetricRuleTemplateListResponse + */ + async describeMetricRuleTemplateListWithOptions(request: $_model.DescribeMetricRuleTemplateListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMetricRuleTemplateListResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.history)) { + query["History"] = request.history; + } + + if (!$dara.isNull(request.keyword)) { + query["Keyword"] = request.keyword; + } + + if (!$dara.isNull(request.name)) { + query["Name"] = request.name; + } + + if (!$dara.isNull(request.order)) { + query["Order"] = request.order; + } + + if (!$dara.isNull(request.orderBy)) { + query["OrderBy"] = request.orderBy; + } + + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + + if (!$dara.isNull(request.templateId)) { + query["TemplateId"] = request.templateId; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeMetricRuleTemplateList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeMetricRuleTemplateListResponse>(await this.callApi(params, req, runtime), new $_model.DescribeMetricRuleTemplateListResponse({})); + } + + /** + * Queries alert templates. + * + * @remarks + * This topic provides an example on how to query alert templates. In this example, the following alert templates are returned in the response: `ECS_Template1` and `ECS_Template2`. + * + * @param request - DescribeMetricRuleTemplateListRequest + * @returns DescribeMetricRuleTemplateListResponse + */ + async describeMetricRuleTemplateList(request: $_model.DescribeMetricRuleTemplateListRequest): Promise<$_model.DescribeMetricRuleTemplateListResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeMetricRuleTemplateListWithOptions(request, runtime); + } + + /** + * Queries the latest monitoring data of a metric for a cloud service. The data can be sorted by a specified order. + * + * @remarks + * ### [](#)Limits + * * The total free quota is 1 million calls per month for the DescribeMetricLast, DescribeMetricList, DescribeMetricData, and DescribeMetricTop operations. If the free quota is used up and CloudMonitor Basic (pay-as-you-go) is not activated, these API operations can no longer be called as expected. If you have activated CloudMonitor Basic (pay-as-you-go), these API operations can still be called even if the free quota is used up. After the free quota is used up, you are charged for the excess usage based on the pay-as-you-go billing method. For more information about how to activate CloudMonitor Basic (pay-as-you-go), see [Enable the pay-as-you-go billing method](https://common-buy.aliyun.com/?spm=a2c4g.11186623.0.0.6c8f3481IbSHgG\\&commodityCode=cms_basic_public_cn\\&from_biz_channel=help_bill). + * * Each API operation can be called up to 10 times per second. An Alibaba Cloud account and the Resource Access Management (RAM) users within the account share the quota. + * ### [](#)Precautions + * The storage duration of the monitoring data of each cloud service is related to the `Period` parameter (statistical period). A larger value of the `Period` parameter indicates that the monitoring data is distributed in a larger time range and the storage duration of the monitoring data is longer. The following list describes the specific relationships: + * * The storage duration is 7 days if the value of the `Period` parameter is less than 60 seconds. + * * The storage duration is 31 days if the value of the `Period` parameter is 60 seconds. + * * The storage duration is 91 days if the value of the `Period` is greater than or equal to 300 seconds. + * ### [](#)Operation description + * This topic provides an example on how to query the monitoring data of the `cpu_idle` metric in the last 60 seconds for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. The monitoring data is sorted in descending order based on the `Average` field. + * + * @param request - DescribeMetricTopRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMetricTopResponse + */ + async describeMetricTopWithOptions(request: $_model.DescribeMetricTopRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMetricTopResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.dimensions)) { + query["Dimensions"] = request.dimensions; + } + + if (!$dara.isNull(request.endTime)) { + query["EndTime"] = request.endTime; + } + + if (!$dara.isNull(request.express)) { + query["Express"] = request.express; + } + + if (!$dara.isNull(request.length)) { + query["Length"] = request.length; + } + + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + + if (!$dara.isNull(request.orderDesc)) { + query["OrderDesc"] = request.orderDesc; + } + + if (!$dara.isNull(request.orderby)) { + query["Orderby"] = request.orderby; + } + + if (!$dara.isNull(request.period)) { + query["Period"] = request.period; + } + + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeMetricTop", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeMetricTopResponse>(await this.callApi(params, req, runtime), new $_model.DescribeMetricTopResponse({})); + } + + /** + * Queries the latest monitoring data of a metric for a cloud service. The data can be sorted by a specified order. + * + * @remarks + * ### [](#)Limits + * * The total free quota is 1 million calls per month for the DescribeMetricLast, DescribeMetricList, DescribeMetricData, and DescribeMetricTop operations. If the free quota is used up and CloudMonitor Basic (pay-as-you-go) is not activated, these API operations can no longer be called as expected. If you have activated CloudMonitor Basic (pay-as-you-go), these API operations can still be called even if the free quota is used up. After the free quota is used up, you are charged for the excess usage based on the pay-as-you-go billing method. For more information about how to activate CloudMonitor Basic (pay-as-you-go), see [Enable the pay-as-you-go billing method](https://common-buy.aliyun.com/?spm=a2c4g.11186623.0.0.6c8f3481IbSHgG\\&commodityCode=cms_basic_public_cn\\&from_biz_channel=help_bill). + * * Each API operation can be called up to 10 times per second. An Alibaba Cloud account and the Resource Access Management (RAM) users within the account share the quota. + * ### [](#)Precautions + * The storage duration of the monitoring data of each cloud service is related to the `Period` parameter (statistical period). A larger value of the `Period` parameter indicates that the monitoring data is distributed in a larger time range and the storage duration of the monitoring data is longer. The following list describes the specific relationships: + * * The storage duration is 7 days if the value of the `Period` parameter is less than 60 seconds. + * * The storage duration is 31 days if the value of the `Period` parameter is 60 seconds. + * * The storage duration is 91 days if the value of the `Period` is greater than or equal to 300 seconds. + * ### [](#)Operation description + * This topic provides an example on how to query the monitoring data of the `cpu_idle` metric in the last 60 seconds for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. The monitoring data is sorted in descending order based on the `Average` field. + * + * @param request - DescribeMetricTopRequest + * @returns DescribeMetricTopResponse + */ + async describeMetricTop(request: $_model.DescribeMetricTopRequest): Promise<$_model.DescribeMetricTopResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeMetricTopWithOptions(request, runtime); + } + + /** + * Queries the cloud services to which the resources in an application group belong and the number of resources that belong to each cloud service in the application group. + * + * @param request - DescribeMonitorGroupCategoriesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitorGroupCategoriesResponse + */ + async describeMonitorGroupCategoriesWithOptions(request: $_model.DescribeMonitorGroupCategoriesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMonitorGroupCategoriesResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeMonitorGroupCategories", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeMonitorGroupCategoriesResponse>(await this.callApi(params, req, runtime), new $_model.DescribeMonitorGroupCategoriesResponse({})); + } + + /** + * Queries the cloud services to which the resources in an application group belong and the number of resources that belong to each cloud service in the application group. + * + * @param request - DescribeMonitorGroupCategoriesRequest + * @returns DescribeMonitorGroupCategoriesResponse + */ + async describeMonitorGroupCategories(request: $_model.DescribeMonitorGroupCategoriesRequest): Promise<$_model.DescribeMonitorGroupCategoriesResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeMonitorGroupCategoriesWithOptions(request, runtime); + } + + /** + * Queries the dynamic rules of an application group. + * + * @param request - DescribeMonitorGroupDynamicRulesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitorGroupDynamicRulesResponse + */ + async describeMonitorGroupDynamicRulesWithOptions(request: $_model.DescribeMonitorGroupDynamicRulesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMonitorGroupDynamicRulesResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeMonitorGroupDynamicRules", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeMonitorGroupDynamicRulesResponse>(await this.callApi(params, req, runtime), new $_model.DescribeMonitorGroupDynamicRulesResponse({})); + } + + /** + * Queries the dynamic rules of an application group. + * + * @param request - DescribeMonitorGroupDynamicRulesRequest + * @returns DescribeMonitorGroupDynamicRulesResponse + */ + async describeMonitorGroupDynamicRules(request: $_model.DescribeMonitorGroupDynamicRulesRequest): Promise<$_model.DescribeMonitorGroupDynamicRulesResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeMonitorGroupDynamicRulesWithOptions(request, runtime); + } + + /** + * Queries the details of the resources in an application group. + * + * @param request - DescribeMonitorGroupInstanceAttributeRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitorGroupInstanceAttributeResponse + */ + async describeMonitorGroupInstanceAttributeWithOptions(request: $_model.DescribeMonitorGroupInstanceAttributeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMonitorGroupInstanceAttributeResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.category)) { + query["Category"] = request.category; + } + + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.instanceIds)) { + query["InstanceIds"] = request.instanceIds; + } + + if (!$dara.isNull(request.keyword)) { + query["Keyword"] = request.keyword; + } + + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + + if (!$dara.isNull(request.total)) { + query["Total"] = request.total; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeMonitorGroupInstanceAttribute", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeMonitorGroupInstanceAttributeResponse>(await this.callApi(params, req, runtime), new $_model.DescribeMonitorGroupInstanceAttributeResponse({})); + } + + /** + * Queries the details of the resources in an application group. + * + * @param request - DescribeMonitorGroupInstanceAttributeRequest + * @returns DescribeMonitorGroupInstanceAttributeResponse + */ + async describeMonitorGroupInstanceAttribute(request: $_model.DescribeMonitorGroupInstanceAttributeRequest): Promise<$_model.DescribeMonitorGroupInstanceAttributeResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeMonitorGroupInstanceAttributeWithOptions(request, runtime); + } + + /** + * Queries the resources in an application group. + * + * @param request - DescribeMonitorGroupInstancesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitorGroupInstancesResponse + */ + async describeMonitorGroupInstancesWithOptions(request: $_model.DescribeMonitorGroupInstancesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMonitorGroupInstancesResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.category)) { + query["Category"] = request.category; + } + + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.instanceIds)) { + query["InstanceIds"] = request.instanceIds; + } + + if (!$dara.isNull(request.keyword)) { + query["Keyword"] = request.keyword; + } + + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeMonitorGroupInstances", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeMonitorGroupInstancesResponse>(await this.callApi(params, req, runtime), new $_model.DescribeMonitorGroupInstancesResponse({})); + } + + /** + * Queries the resources in an application group. + * + * @param request - DescribeMonitorGroupInstancesRequest + * @returns DescribeMonitorGroupInstancesResponse + */ + async describeMonitorGroupInstances(request: $_model.DescribeMonitorGroupInstancesRequest): Promise<$_model.DescribeMonitorGroupInstancesResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeMonitorGroupInstancesWithOptions(request, runtime); + } + + /** + * Queries the policies that are used to pause alert notifications for an application group. + * + * @param request - DescribeMonitorGroupNotifyPolicyListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitorGroupNotifyPolicyListResponse + */ + async describeMonitorGroupNotifyPolicyListWithOptions(request: $_model.DescribeMonitorGroupNotifyPolicyListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMonitorGroupNotifyPolicyListResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + + if (!$dara.isNull(request.policyType)) { + query["PolicyType"] = request.policyType; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeMonitorGroupNotifyPolicyList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeMonitorGroupNotifyPolicyListResponse>(await this.callApi(params, req, runtime), new $_model.DescribeMonitorGroupNotifyPolicyListResponse({})); + } + + /** + * Queries the policies that are used to pause alert notifications for an application group. + * + * @param request - DescribeMonitorGroupNotifyPolicyListRequest + * @returns DescribeMonitorGroupNotifyPolicyListResponse + */ + async describeMonitorGroupNotifyPolicyList(request: $_model.DescribeMonitorGroupNotifyPolicyListRequest): Promise<$_model.DescribeMonitorGroupNotifyPolicyListResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeMonitorGroupNotifyPolicyListWithOptions(request, runtime); + } + + /** + * Queries application groups. + * + * @remarks + * This topic provides an example of how to query the application groups of the current account. The response shows that the current account has two application groups: `testGroup124` and `test123`. + * + * @param request - DescribeMonitorGroupsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitorGroupsResponse + */ + async describeMonitorGroupsWithOptions(request: $_model.DescribeMonitorGroupsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMonitorGroupsResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.dynamicTagRuleId)) { + query["DynamicTagRuleId"] = request.dynamicTagRuleId; + } + + if (!$dara.isNull(request.groupFounderTagKey)) { + query["GroupFounderTagKey"] = request.groupFounderTagKey; + } + + if (!$dara.isNull(request.groupFounderTagValue)) { + query["GroupFounderTagValue"] = request.groupFounderTagValue; + } + + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.groupName)) { + query["GroupName"] = request.groupName; + } + + if (!$dara.isNull(request.includeTemplateHistory)) { + query["IncludeTemplateHistory"] = request.includeTemplateHistory; + } + + if (!$dara.isNull(request.instanceId)) { + query["InstanceId"] = request.instanceId; + } + + if (!$dara.isNull(request.keyword)) { + query["Keyword"] = request.keyword; + } + + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + + if (!$dara.isNull(request.selectContactGroups)) { + query["SelectContactGroups"] = request.selectContactGroups; + } + + if (!$dara.isNull(request.tag)) { + query["Tag"] = request.tag; + } + + if (!$dara.isNull(request.type)) { + query["Type"] = request.type; + } + + if (!$dara.isNull(request.types)) { + query["Types"] = request.types; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeMonitorGroups", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeMonitorGroupsResponse>(await this.callApi(params, req, runtime), new $_model.DescribeMonitorGroupsResponse({})); + } + + /** + * Queries application groups. + * + * @remarks + * This topic provides an example of how to query the application groups of the current account. The response shows that the current account has two application groups: `testGroup124` and `test123`. + * + * @param request - DescribeMonitorGroupsRequest + * @returns DescribeMonitorGroupsResponse + */ + async describeMonitorGroups(request: $_model.DescribeMonitorGroupsRequest): Promise<$_model.DescribeMonitorGroupsResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeMonitorGroupsWithOptions(request, runtime); + } + + /** + * Queries the resource quotas of CloudMonitor. + * + * @param request - DescribeMonitorResourceQuotaAttributeRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitorResourceQuotaAttributeResponse + */ + async describeMonitorResourceQuotaAttributeWithOptions(request: $_model.DescribeMonitorResourceQuotaAttributeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMonitorResourceQuotaAttributeResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.showUsed)) { + query["ShowUsed"] = request.showUsed; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeMonitorResourceQuotaAttribute", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeMonitorResourceQuotaAttributeResponse>(await this.callApi(params, req, runtime), new $_model.DescribeMonitorResourceQuotaAttributeResponse({})); + } + + /** + * Queries the resource quotas of CloudMonitor. + * + * @param request - DescribeMonitorResourceQuotaAttributeRequest + * @returns DescribeMonitorResourceQuotaAttributeResponse + */ + async describeMonitorResourceQuotaAttribute(request: $_model.DescribeMonitorResourceQuotaAttributeRequest): Promise<$_model.DescribeMonitorResourceQuotaAttributeResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeMonitorResourceQuotaAttributeWithOptions(request, runtime); + } + + /** + * Queries the AccessKey ID and AccessKey secret that are required to install the CloudMonitor agent on a third-party host. + * + * @param request - DescribeMonitoringAgentAccessKeyRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitoringAgentAccessKeyResponse + */ + async describeMonitoringAgentAccessKeyWithOptions(request: $_model.DescribeMonitoringAgentAccessKeyRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMonitoringAgentAccessKeyResponse> { + request.validate(); + let req = new $OpenApiUtil.OpenApiRequest({ }); + let params = new $OpenApiUtil.Params({ + action: "DescribeMonitoringAgentAccessKey", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeMonitoringAgentAccessKeyResponse>(await this.callApi(params, req, runtime), new $_model.DescribeMonitoringAgentAccessKeyResponse({})); + } + + /** + * Queries the AccessKey ID and AccessKey secret that are required to install the CloudMonitor agent on a third-party host. + * + * @param request - DescribeMonitoringAgentAccessKeyRequest + * @returns DescribeMonitoringAgentAccessKeyResponse + */ + async describeMonitoringAgentAccessKey(request: $_model.DescribeMonitoringAgentAccessKeyRequest): Promise<$_model.DescribeMonitoringAgentAccessKeyResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeMonitoringAgentAccessKeyWithOptions(request, runtime); + } + + /** + * Queries the configurations of the CloudMonitor agent. + * + * @param request - DescribeMonitoringAgentConfigRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitoringAgentConfigResponse + */ + async describeMonitoringAgentConfigWithOptions(request: $_model.DescribeMonitoringAgentConfigRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMonitoringAgentConfigResponse> { + request.validate(); + let req = new $OpenApiUtil.OpenApiRequest({ }); + let params = new $OpenApiUtil.Params({ + action: "DescribeMonitoringAgentConfig", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeMonitoringAgentConfigResponse>(await this.callApi(params, req, runtime), new $_model.DescribeMonitoringAgentConfigResponse({})); + } + + /** + * Queries the configurations of the CloudMonitor agent. + * + * @param request - DescribeMonitoringAgentConfigRequest + * @returns DescribeMonitoringAgentConfigResponse + */ + async describeMonitoringAgentConfig(request: $_model.DescribeMonitoringAgentConfigRequest): Promise<$_model.DescribeMonitoringAgentConfigResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeMonitoringAgentConfigWithOptions(request, runtime); + } + + /** + * Queries all hosts within the current Alibaba Cloud account, including hosts on which the CloudMonitor agent is installed and uninstalled. + * + * @param request - DescribeMonitoringAgentHostsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitoringAgentHostsResponse + */ + async describeMonitoringAgentHostsWithOptions(request: $_model.DescribeMonitoringAgentHostsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMonitoringAgentHostsResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.aliyunHost)) { + query["AliyunHost"] = request.aliyunHost; + } + + if (!$dara.isNull(request.hostName)) { + query["HostName"] = request.hostName; + } + + if (!$dara.isNull(request.instanceIds)) { + query["InstanceIds"] = request.instanceIds; + } + + if (!$dara.isNull(request.instanceRegionId)) { + query["InstanceRegionId"] = request.instanceRegionId; + } + + if (!$dara.isNull(request.keyWord)) { + query["KeyWord"] = request.keyWord; + } + + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + + if (!$dara.isNull(request.serialNumbers)) { + query["SerialNumbers"] = request.serialNumbers; + } + + if (!$dara.isNull(request.status)) { + query["Status"] = request.status; + } + + if (!$dara.isNull(request.sysomStatus)) { + query["SysomStatus"] = request.sysomStatus; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeMonitoringAgentHosts", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeMonitoringAgentHostsResponse>(await this.callApi(params, req, runtime), new $_model.DescribeMonitoringAgentHostsResponse({})); + } + + /** + * Queries all hosts within the current Alibaba Cloud account, including hosts on which the CloudMonitor agent is installed and uninstalled. + * + * @param request - DescribeMonitoringAgentHostsRequest + * @returns DescribeMonitoringAgentHostsResponse + */ + async describeMonitoringAgentHosts(request: $_model.DescribeMonitoringAgentHostsRequest): Promise<$_model.DescribeMonitoringAgentHostsResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeMonitoringAgentHostsWithOptions(request, runtime); + } + + /** + * 查询指定资源的进程数列表 + * + * @remarks + * > Before you call this operation, call the CreateMonitoringAgentProcess operation to create processes. For more information, see [CreateMonitoringAgentProcess](https://help.aliyun.com/document_detail/114951.html~). + * This topic provides an example of how to query the processes of the `i-hp3hl3cx1pbahzy8****` instance. The response indicates the details of the `NGINX` and `HTTP` processes. + * + * @param request - DescribeMonitoringAgentProcessesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitoringAgentProcessesResponse + */ + async describeMonitoringAgentProcessesWithOptions(request: $_model.DescribeMonitoringAgentProcessesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMonitoringAgentProcessesResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.instanceId)) { + query["InstanceId"] = request.instanceId; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeMonitoringAgentProcesses", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeMonitoringAgentProcessesResponse>(await this.callApi(params, req, runtime), new $_model.DescribeMonitoringAgentProcessesResponse({})); + } + + /** + * 查询指定资源的进程数列表 + * + * @remarks + * > Before you call this operation, call the CreateMonitoringAgentProcess operation to create processes. For more information, see [CreateMonitoringAgentProcess](https://help.aliyun.com/document_detail/114951.html~). + * This topic provides an example of how to query the processes of the `i-hp3hl3cx1pbahzy8****` instance. The response indicates the details of the `NGINX` and `HTTP` processes. + * + * @param request - DescribeMonitoringAgentProcessesRequest + * @returns DescribeMonitoringAgentProcessesResponse + */ + async describeMonitoringAgentProcesses(request: $_model.DescribeMonitoringAgentProcessesRequest): Promise<$_model.DescribeMonitoringAgentProcessesResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeMonitoringAgentProcessesWithOptions(request, runtime); + } + + /** + * Queries the status of the CloudMonitor agent. + * + * @remarks + * This topic describes how to query the status of the CloudMonitor agent that is installed on the `i-hp3dunahluwajv6f****` instance. The result indicates that the CloudMonitor agent is in the `running` state. + * + * @param request - DescribeMonitoringAgentStatusesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitoringAgentStatusesResponse + */ + async describeMonitoringAgentStatusesWithOptions(request: $_model.DescribeMonitoringAgentStatusesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMonitoringAgentStatusesResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.hostAvailabilityTaskId)) { + query["HostAvailabilityTaskId"] = request.hostAvailabilityTaskId; + } + + if (!$dara.isNull(request.instanceIds)) { + query["InstanceIds"] = request.instanceIds; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeMonitoringAgentStatuses", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeMonitoringAgentStatusesResponse>(await this.callApi(params, req, runtime), new $_model.DescribeMonitoringAgentStatusesResponse({})); + } + + /** + * Queries the status of the CloudMonitor agent. + * + * @remarks + * This topic describes how to query the status of the CloudMonitor agent that is installed on the `i-hp3dunahluwajv6f****` instance. The result indicates that the CloudMonitor agent is in the `running` state. + * + * @param request - DescribeMonitoringAgentStatusesRequest + * @returns DescribeMonitoringAgentStatusesResponse + */ + async describeMonitoringAgentStatuses(request: $_model.DescribeMonitoringAgentStatusesRequest): Promise<$_model.DescribeMonitoringAgentStatusesResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeMonitoringAgentStatusesWithOptions(request, runtime); + } + + /** + * Queries the global configurations of the CloudMonitor agent. + * + * @param request - DescribeMonitoringConfigRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeMonitoringConfigResponse + */ + async describeMonitoringConfigWithOptions(request: $_model.DescribeMonitoringConfigRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeMonitoringConfigResponse> { + request.validate(); + let req = new $OpenApiUtil.OpenApiRequest({ }); + let params = new $OpenApiUtil.Params({ + action: "DescribeMonitoringConfig", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeMonitoringConfigResponse>(await this.callApi(params, req, runtime), new $_model.DescribeMonitoringConfigResponse({})); + } + + /** + * Queries the global configurations of the CloudMonitor agent. + * + * @param request - DescribeMonitoringConfigRequest + * @returns DescribeMonitoringConfigResponse + */ + async describeMonitoringConfig(request: $_model.DescribeMonitoringConfigRequest): Promise<$_model.DescribeMonitoringConfigResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeMonitoringConfigWithOptions(request, runtime); + } + + /** + * Queries the keys of all tags that are attached to cloud resources in a region. + * + * @remarks + * > If a tag is attached to multiple cloud resources in the region, the key of the tag is returned only once. + * + * @param request - DescribeProductResourceTagKeyListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeProductResourceTagKeyListResponse + */ + async describeProductResourceTagKeyListWithOptions(request: $_model.DescribeProductResourceTagKeyListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeProductResourceTagKeyListResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.nextToken)) { + query["NextToken"] = request.nextToken; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeProductResourceTagKeyList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeProductResourceTagKeyListResponse>(await this.callApi(params, req, runtime), new $_model.DescribeProductResourceTagKeyListResponse({})); + } + + /** + * Queries the keys of all tags that are attached to cloud resources in a region. + * + * @remarks + * > If a tag is attached to multiple cloud resources in the region, the key of the tag is returned only once. + * + * @param request - DescribeProductResourceTagKeyListRequest + * @returns DescribeProductResourceTagKeyListResponse + */ + async describeProductResourceTagKeyList(request: $_model.DescribeProductResourceTagKeyListRequest): Promise<$_model.DescribeProductResourceTagKeyListResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeProductResourceTagKeyListWithOptions(request, runtime); + } + + /** + * Queries the cloud services for which the initiative alert feature is enabled. + * + * @param request - DescribeProductsOfActiveMetricRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeProductsOfActiveMetricRuleResponse + */ + async describeProductsOfActiveMetricRuleWithOptions(request: $_model.DescribeProductsOfActiveMetricRuleRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeProductsOfActiveMetricRuleResponse> { + request.validate(); + let req = new $OpenApiUtil.OpenApiRequest({ }); + let params = new $OpenApiUtil.Params({ + action: "DescribeProductsOfActiveMetricRule", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeProductsOfActiveMetricRuleResponse>(await this.callApi(params, req, runtime), new $_model.DescribeProductsOfActiveMetricRuleResponse({})); + } + + /** + * Queries the cloud services for which the initiative alert feature is enabled. + * + * @param request - DescribeProductsOfActiveMetricRuleRequest + * @returns DescribeProductsOfActiveMetricRuleResponse + */ + async describeProductsOfActiveMetricRule(request: $_model.DescribeProductsOfActiveMetricRuleRequest): Promise<$_model.DescribeProductsOfActiveMetricRuleResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeProductsOfActiveMetricRuleWithOptions(request, runtime); + } + + /** + * Queries the information about monitored services in CloudMonitor. + * + * @remarks + * The information obtained by this operation includes the service description, namespace, and tags. + * + * @param request - DescribeProjectMetaRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeProjectMetaResponse + */ + async describeProjectMetaWithOptions(request: $_model.DescribeProjectMetaRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeProjectMetaResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.labels)) { + query["Labels"] = request.labels; + } + + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeProjectMeta", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeProjectMetaResponse>(await this.callApi(params, req, runtime), new $_model.DescribeProjectMetaResponse({})); + } + + /** + * Queries the information about monitored services in CloudMonitor. + * + * @remarks + * The information obtained by this operation includes the service description, namespace, and tags. + * + * @param request - DescribeProjectMetaRequest + * @returns DescribeProjectMetaResponse + */ + async describeProjectMeta(request: $_model.DescribeProjectMetaRequest): Promise<$_model.DescribeProjectMetaResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeProjectMetaWithOptions(request, runtime); + } + + /** + * Queries the details of a site monitoring task. + * + * @remarks + * This topic provides an example on how to query the details of a site monitoring task whose ID is `cc641dff-c19d-45f3-ad0a-818a0c4f****`. The returned result indicates that the task name is `test123`, the URL that is monitored by the task is `https://aliyun.com`, and the name of the carrier is `Alibaba`. + * + * @param request - DescribeSiteMonitorAttributeRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSiteMonitorAttributeResponse + */ + async describeSiteMonitorAttributeWithOptions(request: $_model.DescribeSiteMonitorAttributeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeSiteMonitorAttributeResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.includeAlert)) { + query["IncludeAlert"] = request.includeAlert; + } + + if (!$dara.isNull(request.taskId)) { + query["TaskId"] = request.taskId; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeSiteMonitorAttribute", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeSiteMonitorAttributeResponse>(await this.callApi(params, req, runtime), new $_model.DescribeSiteMonitorAttributeResponse({})); + } + + /** + * Queries the details of a site monitoring task. + * + * @remarks + * This topic provides an example on how to query the details of a site monitoring task whose ID is `cc641dff-c19d-45f3-ad0a-818a0c4f****`. The returned result indicates that the task name is `test123`, the URL that is monitored by the task is `https://aliyun.com`, and the name of the carrier is `Alibaba`. + * + * @param request - DescribeSiteMonitorAttributeRequest + * @returns DescribeSiteMonitorAttributeResponse + */ + async describeSiteMonitorAttribute(request: $_model.DescribeSiteMonitorAttributeRequest): Promise<$_model.DescribeSiteMonitorAttributeResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeSiteMonitorAttributeWithOptions(request, runtime); + } + + /** + * Queries the fine-grained monitoring data of a site monitoring task. + * + * @param request - DescribeSiteMonitorDataRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSiteMonitorDataResponse + */ + async describeSiteMonitorDataWithOptions(request: $_model.DescribeSiteMonitorDataRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeSiteMonitorDataResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.endTime)) { + query["EndTime"] = request.endTime; + } + + if (!$dara.isNull(request.length)) { + query["Length"] = request.length; + } + + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + + if (!$dara.isNull(request.nextToken)) { + query["NextToken"] = request.nextToken; + } + + if (!$dara.isNull(request.period)) { + query["Period"] = request.period; + } + + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + + if (!$dara.isNull(request.taskId)) { + query["TaskId"] = request.taskId; + } + + if (!$dara.isNull(request.type)) { + query["Type"] = request.type; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeSiteMonitorData", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeSiteMonitorDataResponse>(await this.callApi(params, req, runtime), new $_model.DescribeSiteMonitorDataResponse({})); + } + + /** + * Queries the fine-grained monitoring data of a site monitoring task. + * + * @param request - DescribeSiteMonitorDataRequest + * @returns DescribeSiteMonitorDataResponse + */ + async describeSiteMonitorData(request: $_model.DescribeSiteMonitorDataRequest): Promise<$_model.DescribeSiteMonitorDataResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeSiteMonitorDataWithOptions(request, runtime); + } + + /** + * Queries the detection points that are provided by carriers. + * + * @remarks + * This topic provides an example on how to query the detection points that are provided by China Unicom in Guiyang. + * + * @param request - DescribeSiteMonitorISPCityListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSiteMonitorISPCityListResponse + */ + async describeSiteMonitorISPCityListWithOptions(request: $_model.DescribeSiteMonitorISPCityListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeSiteMonitorISPCityListResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.city)) { + query["City"] = request.city; + } + + if (!$dara.isNull(request.IPV4)) { + query["IPV4"] = request.IPV4; + } + + if (!$dara.isNull(request.IPV6)) { + query["IPV6"] = request.IPV6; + } + + if (!$dara.isNull(request.isp)) { + query["Isp"] = request.isp; + } + + if (!$dara.isNull(request.viewAll)) { + query["ViewAll"] = request.viewAll; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeSiteMonitorISPCityList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeSiteMonitorISPCityListResponse>(await this.callApi(params, req, runtime), new $_model.DescribeSiteMonitorISPCityListResponse({})); + } + + /** + * Queries the detection points that are provided by carriers. + * + * @remarks + * This topic provides an example on how to query the detection points that are provided by China Unicom in Guiyang. + * + * @param request - DescribeSiteMonitorISPCityListRequest + * @returns DescribeSiteMonitorISPCityListResponse + */ + async describeSiteMonitorISPCityList(request: $_model.DescribeSiteMonitorISPCityListRequest): Promise<$_model.DescribeSiteMonitorISPCityListResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeSiteMonitorISPCityListWithOptions(request, runtime); + } + + /** + * Queries site monitoring tasks. + * + * @remarks + * This topic provides an example on how to query all the site monitoring tasks of your Alibaba Cloud account. In this example, the returned result indicates that the Alibaba Cloud account has one site monitoring task named `HanZhou_ECS2`. + * + * @param request - DescribeSiteMonitorListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSiteMonitorListResponse + */ + async describeSiteMonitorListWithOptions(request: $_model.DescribeSiteMonitorListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeSiteMonitorListResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.agentGroup)) { + query["AgentGroup"] = request.agentGroup; + } + + if (!$dara.isNull(request.keyword)) { + query["Keyword"] = request.keyword; + } + + if (!$dara.isNull(request.page)) { + query["Page"] = request.page; + } + + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + + if (!$dara.isNull(request.taskId)) { + query["TaskId"] = request.taskId; + } + + if (!$dara.isNull(request.taskState)) { + query["TaskState"] = request.taskState; + } + + if (!$dara.isNull(request.taskType)) { + query["TaskType"] = request.taskType; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeSiteMonitorList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeSiteMonitorListResponse>(await this.callApi(params, req, runtime), new $_model.DescribeSiteMonitorListResponse({})); + } + + /** + * Queries site monitoring tasks. + * + * @remarks + * This topic provides an example on how to query all the site monitoring tasks of your Alibaba Cloud account. In this example, the returned result indicates that the Alibaba Cloud account has one site monitoring task named `HanZhou_ECS2`. + * + * @param request - DescribeSiteMonitorListRequest + * @returns DescribeSiteMonitorListResponse + */ + async describeSiteMonitorList(request: $_model.DescribeSiteMonitorListRequest): Promise<$_model.DescribeSiteMonitorListResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeSiteMonitorListWithOptions(request, runtime); + } + + /** + * Queries the logs of one or more instant test tasks. + * + * @remarks + * You can create an instant test task only by using the Alibaba Cloud account that you used to enable Network Analysis and Monitoring. + * This topic provides an example to show how to query the logs of an instant test task whose ID is `afa5c3ce-f944-4363-9edb-ce919a29****`. + * + * @param request - DescribeSiteMonitorLogRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSiteMonitorLogResponse + */ + async describeSiteMonitorLogWithOptions(request: $_model.DescribeSiteMonitorLogRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeSiteMonitorLogResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.browser)) { + query["Browser"] = request.browser; + } + + if (!$dara.isNull(request.browserInfo)) { + query["BrowserInfo"] = request.browserInfo; + } + + if (!$dara.isNull(request.city)) { + query["City"] = request.city; + } + + if (!$dara.isNull(request.device)) { + query["Device"] = request.device; + } + + if (!$dara.isNull(request.endTime)) { + query["EndTime"] = request.endTime; + } + + if (!$dara.isNull(request.filter)) { + query["Filter"] = request.filter; + } + + if (!$dara.isNull(request.isp)) { + query["Isp"] = request.isp; + } + + if (!$dara.isNull(request.length)) { + query["Length"] = request.length; + } + + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + + if (!$dara.isNull(request.nextToken)) { + query["NextToken"] = request.nextToken; + } + + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + + if (!$dara.isNull(request.taskIds)) { + query["TaskIds"] = request.taskIds; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeSiteMonitorLog", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeSiteMonitorLogResponse>(await this.callApi(params, req, runtime), new $_model.DescribeSiteMonitorLogResponse({})); + } + + /** + * Queries the logs of one or more instant test tasks. + * + * @remarks + * You can create an instant test task only by using the Alibaba Cloud account that you used to enable Network Analysis and Monitoring. + * This topic provides an example to show how to query the logs of an instant test task whose ID is `afa5c3ce-f944-4363-9edb-ce919a29****`. + * + * @param request - DescribeSiteMonitorLogRequest + * @returns DescribeSiteMonitorLogResponse + */ + async describeSiteMonitorLog(request: $_model.DescribeSiteMonitorLogRequest): Promise<$_model.DescribeSiteMonitorLogResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeSiteMonitorLogWithOptions(request, runtime); + } + + /** + * Queries the quotas and version of site monitoring. + * + * @param request - DescribeSiteMonitorQuotaRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSiteMonitorQuotaResponse + */ + async describeSiteMonitorQuotaWithOptions(request: $_model.DescribeSiteMonitorQuotaRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeSiteMonitorQuotaResponse> { + request.validate(); + let req = new $OpenApiUtil.OpenApiRequest({ }); + let params = new $OpenApiUtil.Params({ + action: "DescribeSiteMonitorQuota", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeSiteMonitorQuotaResponse>(await this.callApi(params, req, runtime), new $_model.DescribeSiteMonitorQuotaResponse({})); + } + + /** + * Queries the quotas and version of site monitoring. + * + * @param request - DescribeSiteMonitorQuotaRequest + * @returns DescribeSiteMonitorQuotaResponse + */ + async describeSiteMonitorQuota(request: $_model.DescribeSiteMonitorQuotaRequest): Promise<$_model.DescribeSiteMonitorQuotaResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeSiteMonitorQuotaWithOptions(request, runtime); + } + + /** + * Queries the statistics of a specified metric for a specified site monitoring task. + * + * @remarks + * This topic provides an example on how to query the statistics of the `Availability` metric for a site monitoring task whose ID is `ef4cdc8b-9dc7-43e7-810e-f950e56c****`. The result indicates that the availability rate of the site is `100%`. + * + * @param request - DescribeSiteMonitorStatisticsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSiteMonitorStatisticsResponse + */ + async describeSiteMonitorStatisticsWithOptions(request: $_model.DescribeSiteMonitorStatisticsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeSiteMonitorStatisticsResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + + if (!$dara.isNull(request.taskId)) { + query["TaskId"] = request.taskId; + } + + if (!$dara.isNull(request.timeRange)) { + query["TimeRange"] = request.timeRange; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeSiteMonitorStatistics", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeSiteMonitorStatisticsResponse>(await this.callApi(params, req, runtime), new $_model.DescribeSiteMonitorStatisticsResponse({})); + } + + /** + * Queries the statistics of a specified metric for a specified site monitoring task. + * + * @remarks + * This topic provides an example on how to query the statistics of the `Availability` metric for a site monitoring task whose ID is `ef4cdc8b-9dc7-43e7-810e-f950e56c****`. The result indicates that the availability rate of the site is `100%`. + * + * @param request - DescribeSiteMonitorStatisticsRequest + * @returns DescribeSiteMonitorStatisticsResponse + */ + async describeSiteMonitorStatistics(request: $_model.DescribeSiteMonitorStatisticsRequest): Promise<$_model.DescribeSiteMonitorStatisticsResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeSiteMonitorStatisticsWithOptions(request, runtime); + } + + /** + * 查询拨测探测节点列表 + * + * @param request - DescribeSyntheticProbeListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSyntheticProbeListResponse + */ + async describeSyntheticProbeListWithOptions(request: $_model.DescribeSyntheticProbeListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeSyntheticProbeListResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.city)) { + query["City"] = request.city; + } + + if (!$dara.isNull(request.idcProbe)) { + query["IdcProbe"] = request.idcProbe; + } + + if (!$dara.isNull(request.ipv4)) { + query["Ipv4"] = request.ipv4; + } + + if (!$dara.isNull(request.ipv6)) { + query["Ipv6"] = request.ipv6; + } + + if (!$dara.isNull(request.isp)) { + query["Isp"] = request.isp; + } + + if (!$dara.isNull(request.lmProbe)) { + query["LmProbe"] = request.lmProbe; + } + + if (!$dara.isNull(request.mbProbe)) { + query["MbProbe"] = request.mbProbe; + } + + if (!$dara.isNull(request.viewAll)) { + query["ViewAll"] = request.viewAll; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeSyntheticProbeList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeSyntheticProbeListResponse>(await this.callApi(params, req, runtime), new $_model.DescribeSyntheticProbeListResponse({})); + } + + /** + * 查询拨测探测节点列表 + * + * @param request - DescribeSyntheticProbeListRequest + * @returns DescribeSyntheticProbeListResponse + */ + async describeSyntheticProbeList(request: $_model.DescribeSyntheticProbeListRequest): Promise<$_model.DescribeSyntheticProbeListResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeSyntheticProbeListWithOptions(request, runtime); + } + + /** + * Queries the details of a system event. + * + * @param request - DescribeSystemEventAttributeRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSystemEventAttributeResponse + */ + async describeSystemEventAttributeWithOptions(request: $_model.DescribeSystemEventAttributeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeSystemEventAttributeResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.endTime)) { + query["EndTime"] = request.endTime; + } + + if (!$dara.isNull(request.eventType)) { + query["EventType"] = request.eventType; + } + + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.level)) { + query["Level"] = request.level; + } + + if (!$dara.isNull(request.name)) { + query["Name"] = request.name; + } + + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + + if (!$dara.isNull(request.product)) { + query["Product"] = request.product; + } + + if (!$dara.isNull(request.searchKeywords)) { + query["SearchKeywords"] = request.searchKeywords; + } + + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + + if (!$dara.isNull(request.status)) { + query["Status"] = request.status; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeSystemEventAttribute", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeSystemEventAttributeResponse>(await this.callApi(params, req, runtime), new $_model.DescribeSystemEventAttributeResponse({})); + } + + /** + * Queries the details of a system event. + * + * @param request - DescribeSystemEventAttributeRequest + * @returns DescribeSystemEventAttributeResponse + */ + async describeSystemEventAttribute(request: $_model.DescribeSystemEventAttributeRequest): Promise<$_model.DescribeSystemEventAttributeResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeSystemEventAttributeWithOptions(request, runtime); + } + + /** + * Queries the number of times that a system event of a cloud service has occurred. + * + * @remarks + * ### [](#)Background information + * You can call the [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html) operation to query the cloud services supported by CloudMonitor and their system events. + * ### [](#)Description + * This topic provides an example on how to query the number of times that a system event of `Elastic Compute Service (ECS)` has occurred. The returned result shows that the specified system event has occurred three times. + * + * @param request - DescribeSystemEventCountRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSystemEventCountResponse + */ + async describeSystemEventCountWithOptions(request: $_model.DescribeSystemEventCountRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeSystemEventCountResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.endTime)) { + query["EndTime"] = request.endTime; + } + + if (!$dara.isNull(request.eventType)) { + query["EventType"] = request.eventType; + } + + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.level)) { + query["Level"] = request.level; + } + + if (!$dara.isNull(request.name)) { + query["Name"] = request.name; + } + + if (!$dara.isNull(request.product)) { + query["Product"] = request.product; + } + + if (!$dara.isNull(request.searchKeywords)) { + query["SearchKeywords"] = request.searchKeywords; + } + + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + + if (!$dara.isNull(request.status)) { + query["Status"] = request.status; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeSystemEventCount", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeSystemEventCountResponse>(await this.callApi(params, req, runtime), new $_model.DescribeSystemEventCountResponse({})); + } + + /** + * Queries the number of times that a system event of a cloud service has occurred. + * + * @remarks + * ### [](#)Background information + * You can call the [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html) operation to query the cloud services supported by CloudMonitor and their system events. + * ### [](#)Description + * This topic provides an example on how to query the number of times that a system event of `Elastic Compute Service (ECS)` has occurred. The returned result shows that the specified system event has occurred three times. + * + * @param request - DescribeSystemEventCountRequest + * @returns DescribeSystemEventCountResponse + */ + async describeSystemEventCount(request: $_model.DescribeSystemEventCountRequest): Promise<$_model.DescribeSystemEventCountResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeSystemEventCountWithOptions(request, runtime); + } + + /** + * Queries the number of times a system event occurred during each interval within a period of time. + * + * @param request - DescribeSystemEventHistogramRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSystemEventHistogramResponse + */ + async describeSystemEventHistogramWithOptions(request: $_model.DescribeSystemEventHistogramRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeSystemEventHistogramResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.endTime)) { + query["EndTime"] = request.endTime; + } + + if (!$dara.isNull(request.eventType)) { + query["EventType"] = request.eventType; + } + + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.level)) { + query["Level"] = request.level; + } + + if (!$dara.isNull(request.name)) { + query["Name"] = request.name; + } + + if (!$dara.isNull(request.product)) { + query["Product"] = request.product; + } + + if (!$dara.isNull(request.searchKeywords)) { + query["SearchKeywords"] = request.searchKeywords; + } + + if (!$dara.isNull(request.startTime)) { + query["StartTime"] = request.startTime; + } + + if (!$dara.isNull(request.status)) { + query["Status"] = request.status; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeSystemEventHistogram", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeSystemEventHistogramResponse>(await this.callApi(params, req, runtime), new $_model.DescribeSystemEventHistogramResponse({})); + } + + /** + * Queries the number of times a system event occurred during each interval within a period of time. + * + * @param request - DescribeSystemEventHistogramRequest + * @returns DescribeSystemEventHistogramResponse + */ + async describeSystemEventHistogram(request: $_model.DescribeSystemEventHistogramRequest): Promise<$_model.DescribeSystemEventHistogramResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeSystemEventHistogramWithOptions(request, runtime); + } + + /** + * Queries the meta information about system events. + * + * @param request - DescribeSystemEventMetaListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeSystemEventMetaListResponse + */ + async describeSystemEventMetaListWithOptions(request: $_model.DescribeSystemEventMetaListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeSystemEventMetaListResponse> { + request.validate(); + let req = new $OpenApiUtil.OpenApiRequest({ }); + let params = new $OpenApiUtil.Params({ + action: "DescribeSystemEventMetaList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeSystemEventMetaListResponse>(await this.callApi(params, req, runtime), new $_model.DescribeSystemEventMetaListResponse({})); + } + + /** + * Queries the meta information about system events. + * + * @param request - DescribeSystemEventMetaListRequest + * @returns DescribeSystemEventMetaListResponse + */ + async describeSystemEventMetaList(request: $_model.DescribeSystemEventMetaListRequest): Promise<$_model.DescribeSystemEventMetaListResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeSystemEventMetaListWithOptions(request, runtime); + } + + /** + * Queries tag keys. + * + * @param request - DescribeTagKeyListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeTagKeyListResponse + */ + async describeTagKeyListWithOptions(request: $_model.DescribeTagKeyListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeTagKeyListResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeTagKeyList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeTagKeyListResponse>(await this.callApi(params, req, runtime), new $_model.DescribeTagKeyListResponse({})); + } + + /** + * Queries tag keys. + * + * @param request - DescribeTagKeyListRequest + * @returns DescribeTagKeyListResponse + */ + async describeTagKeyList(request: $_model.DescribeTagKeyListRequest): Promise<$_model.DescribeTagKeyListResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeTagKeyListWithOptions(request, runtime); + } + + /** + * Queries the tag values corresponding to a specified tag key. + * + * @remarks + * This topic provides an example of how to query the tag values corresponding to `tagKey1`. The return results are `tagValue1` and `tagValue2`. + * + * @param request - DescribeTagValueListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeTagValueListResponse + */ + async describeTagValueListWithOptions(request: $_model.DescribeTagValueListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeTagValueListResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.pageNumber)) { + query["PageNumber"] = request.pageNumber; + } + + if (!$dara.isNull(request.pageSize)) { + query["PageSize"] = request.pageSize; + } + + if (!$dara.isNull(request.tagKey)) { + query["TagKey"] = request.tagKey; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeTagValueList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeTagValueListResponse>(await this.callApi(params, req, runtime), new $_model.DescribeTagValueListResponse({})); + } + + /** + * Queries the tag values corresponding to a specified tag key. + * + * @remarks + * This topic provides an example of how to query the tag values corresponding to `tagKey1`. The return results are `tagValue1` and `tagValue2`. + * + * @param request - DescribeTagValueListRequest + * @returns DescribeTagValueListResponse + */ + async describeTagValueList(request: $_model.DescribeTagValueListRequest): Promise<$_model.DescribeTagValueListResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeTagValueListWithOptions(request, runtime); + } + + /** + * Queries unhealthy instances detected by availability monitoring tasks. + * + * @param request - DescribeUnhealthyHostAvailabilityRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DescribeUnhealthyHostAvailabilityResponse + */ + async describeUnhealthyHostAvailabilityWithOptions(request: $_model.DescribeUnhealthyHostAvailabilityRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeUnhealthyHostAvailabilityResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.id)) { + query["Id"] = request.id; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DescribeUnhealthyHostAvailability", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DescribeUnhealthyHostAvailabilityResponse>(await this.callApi(params, req, runtime), new $_model.DescribeUnhealthyHostAvailabilityResponse({})); + } + + /** + * Queries unhealthy instances detected by availability monitoring tasks. + * + * @param request - DescribeUnhealthyHostAvailabilityRequest + * @returns DescribeUnhealthyHostAvailabilityResponse + */ + async describeUnhealthyHostAvailability(request: $_model.DescribeUnhealthyHostAvailabilityRequest): Promise<$_model.DescribeUnhealthyHostAvailabilityResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.describeUnhealthyHostAvailabilityWithOptions(request, runtime); + } + + /** + * Disables the initiative alert feature for a cloud service. + * + * @param request - DisableActiveMetricRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DisableActiveMetricRuleResponse + */ + async disableActiveMetricRuleWithOptions(request: $_model.DisableActiveMetricRuleRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DisableActiveMetricRuleResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.product)) { + query["Product"] = request.product; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DisableActiveMetricRule", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DisableActiveMetricRuleResponse>(await this.callApi(params, req, runtime), new $_model.DisableActiveMetricRuleResponse({})); + } + + /** + * Disables the initiative alert feature for a cloud service. + * + * @param request - DisableActiveMetricRuleRequest + * @returns DisableActiveMetricRuleResponse + */ + async disableActiveMetricRule(request: $_model.DisableActiveMetricRuleRequest): Promise<$_model.DisableActiveMetricRuleResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.disableActiveMetricRuleWithOptions(request, runtime); + } + + /** + * @param request - DisableEventRulesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DisableEventRulesResponse + */ + async disableEventRulesWithOptions(request: $_model.DisableEventRulesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DisableEventRulesResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.ruleNames)) { + query["RuleNames"] = request.ruleNames; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DisableEventRules", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DisableEventRulesResponse>(await this.callApi(params, req, runtime), new $_model.DisableEventRulesResponse({})); + } + + /** + * @param request - DisableEventRulesRequest + * @returns DisableEventRulesResponse + */ + async disableEventRules(request: $_model.DisableEventRulesRequest): Promise<$_model.DisableEventRulesResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.disableEventRulesWithOptions(request, runtime); + } + + /** + * Disables availability monitoring tasks. + * + * @param request - DisableHostAvailabilityRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DisableHostAvailabilityResponse + */ + async disableHostAvailabilityWithOptions(request: $_model.DisableHostAvailabilityRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DisableHostAvailabilityResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.id)) { + query["Id"] = request.id; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DisableHostAvailability", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DisableHostAvailabilityResponse>(await this.callApi(params, req, runtime), new $_model.DisableHostAvailabilityResponse({})); + } + + /** + * Disables availability monitoring tasks. + * + * @param request - DisableHostAvailabilityRequest + * @returns DisableHostAvailabilityResponse + */ + async disableHostAvailability(request: $_model.DisableHostAvailabilityRequest): Promise<$_model.DisableHostAvailabilityResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.disableHostAvailabilityWithOptions(request, runtime); + } + + /** + * Disables alert rules. + * + * @param request - DisableMetricRulesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DisableMetricRulesResponse + */ + async disableMetricRulesWithOptions(request: $_model.DisableMetricRulesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DisableMetricRulesResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.ruleId)) { + query["RuleId"] = request.ruleId; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DisableMetricRules", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DisableMetricRulesResponse>(await this.callApi(params, req, runtime), new $_model.DisableMetricRulesResponse({})); + } + + /** + * Disables alert rules. + * + * @param request - DisableMetricRulesRequest + * @returns DisableMetricRulesResponse + */ + async disableMetricRules(request: $_model.DisableMetricRulesRequest): Promise<$_model.DisableMetricRulesResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.disableMetricRulesWithOptions(request, runtime); + } + + /** + * Disables site monitoring tasks. + * + * @param request - DisableSiteMonitorsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns DisableSiteMonitorsResponse + */ + async disableSiteMonitorsWithOptions(request: $_model.DisableSiteMonitorsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DisableSiteMonitorsResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.taskIds)) { + query["TaskIds"] = request.taskIds; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "DisableSiteMonitors", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.DisableSiteMonitorsResponse>(await this.callApi(params, req, runtime), new $_model.DisableSiteMonitorsResponse({})); + } + + /** + * Disables site monitoring tasks. + * + * @param request - DisableSiteMonitorsRequest + * @returns DisableSiteMonitorsResponse + */ + async disableSiteMonitors(request: $_model.DisableSiteMonitorsRequest): Promise<$_model.DisableSiteMonitorsResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.disableSiteMonitorsWithOptions(request, runtime); + } + + /** + * Enables the initiative alert feature for a cloud service. + * + * @param request - EnableActiveMetricRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns EnableActiveMetricRuleResponse + */ + async enableActiveMetricRuleWithOptions(request: $_model.EnableActiveMetricRuleRequest, runtime: $dara.RuntimeOptions): Promise<$_model.EnableActiveMetricRuleResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.product)) { + query["Product"] = request.product; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "EnableActiveMetricRule", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.EnableActiveMetricRuleResponse>(await this.callApi(params, req, runtime), new $_model.EnableActiveMetricRuleResponse({})); + } + + /** + * Enables the initiative alert feature for a cloud service. + * + * @param request - EnableActiveMetricRuleRequest + * @returns EnableActiveMetricRuleResponse + */ + async enableActiveMetricRule(request: $_model.EnableActiveMetricRuleRequest): Promise<$_model.EnableActiveMetricRuleResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.enableActiveMetricRuleWithOptions(request, runtime); + } + + /** + * @param request - EnableEventRulesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns EnableEventRulesResponse + */ + async enableEventRulesWithOptions(request: $_model.EnableEventRulesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.EnableEventRulesResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.ruleNames)) { + query["RuleNames"] = request.ruleNames; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "EnableEventRules", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.EnableEventRulesResponse>(await this.callApi(params, req, runtime), new $_model.EnableEventRulesResponse({})); + } + + /** + * @param request - EnableEventRulesRequest + * @returns EnableEventRulesResponse + */ + async enableEventRules(request: $_model.EnableEventRulesRequest): Promise<$_model.EnableEventRulesResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.enableEventRulesWithOptions(request, runtime); + } + + /** + * Enables availability monitoring tasks. + * + * @param request - EnableHostAvailabilityRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns EnableHostAvailabilityResponse + */ + async enableHostAvailabilityWithOptions(request: $_model.EnableHostAvailabilityRequest, runtime: $dara.RuntimeOptions): Promise<$_model.EnableHostAvailabilityResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.id)) { + query["Id"] = request.id; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "EnableHostAvailability", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.EnableHostAvailabilityResponse>(await this.callApi(params, req, runtime), new $_model.EnableHostAvailabilityResponse({})); + } + + /** + * Enables availability monitoring tasks. + * + * @param request - EnableHostAvailabilityRequest + * @returns EnableHostAvailabilityResponse + */ + async enableHostAvailability(request: $_model.EnableHostAvailabilityRequest): Promise<$_model.EnableHostAvailabilityResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.enableHostAvailabilityWithOptions(request, runtime); + } + + /** + * Enables or disables multiple blacklist policies at a time. + * + * @param request - EnableMetricRuleBlackListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns EnableMetricRuleBlackListResponse + */ + async enableMetricRuleBlackListWithOptions(request: $_model.EnableMetricRuleBlackListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.EnableMetricRuleBlackListResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.id)) { + query["Id"] = request.id; + } + + if (!$dara.isNull(request.isEnable)) { + query["IsEnable"] = request.isEnable; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "EnableMetricRuleBlackList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.EnableMetricRuleBlackListResponse>(await this.callApi(params, req, runtime), new $_model.EnableMetricRuleBlackListResponse({})); + } + + /** + * Enables or disables multiple blacklist policies at a time. + * + * @param request - EnableMetricRuleBlackListRequest + * @returns EnableMetricRuleBlackListResponse + */ + async enableMetricRuleBlackList(request: $_model.EnableMetricRuleBlackListRequest): Promise<$_model.EnableMetricRuleBlackListResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.enableMetricRuleBlackListWithOptions(request, runtime); + } + + /** + * Enables alert rules. + * + * @param request - EnableMetricRulesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns EnableMetricRulesResponse + */ + async enableMetricRulesWithOptions(request: $_model.EnableMetricRulesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.EnableMetricRulesResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.ruleId)) { + query["RuleId"] = request.ruleId; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "EnableMetricRules", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.EnableMetricRulesResponse>(await this.callApi(params, req, runtime), new $_model.EnableMetricRulesResponse({})); + } + + /** + * Enables alert rules. + * + * @param request - EnableMetricRulesRequest + * @returns EnableMetricRulesResponse + */ + async enableMetricRules(request: $_model.EnableMetricRulesRequest): Promise<$_model.EnableMetricRulesResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.enableMetricRulesWithOptions(request, runtime); + } + + /** + * Enables site monitoring tasks. + * + * @param request - EnableSiteMonitorsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns EnableSiteMonitorsResponse + */ + async enableSiteMonitorsWithOptions(request: $_model.EnableSiteMonitorsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.EnableSiteMonitorsResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.taskIds)) { + query["TaskIds"] = request.taskIds; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "EnableSiteMonitors", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.EnableSiteMonitorsResponse>(await this.callApi(params, req, runtime), new $_model.EnableSiteMonitorsResponse({})); + } + + /** + * Enables site monitoring tasks. + * + * @param request - EnableSiteMonitorsRequest + * @returns EnableSiteMonitorsResponse + */ + async enableSiteMonitors(request: $_model.EnableSiteMonitorsRequest): Promise<$_model.EnableSiteMonitorsResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.enableSiteMonitorsWithOptions(request, runtime); + } + + /** + * InstallMonitoringAgent + * + * @remarks + * ## Prerequisites + * The Cloud Assistant client is installed on an ECS instance. For more information about how to install the Cloud Assistant client, see [Overview](https://help.aliyun.com/document_detail/64601.html). + * + * @param request - InstallMonitoringAgentRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns InstallMonitoringAgentResponse + */ + async installMonitoringAgentWithOptions(request: $_model.InstallMonitoringAgentRequest, runtime: $dara.RuntimeOptions): Promise<$_model.InstallMonitoringAgentResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.force)) { + query["Force"] = request.force; + } + + if (!$dara.isNull(request.installCommand)) { + query["InstallCommand"] = request.installCommand; + } + + if (!$dara.isNull(request.instanceIds)) { + query["InstanceIds"] = request.instanceIds; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "InstallMonitoringAgent", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.InstallMonitoringAgentResponse>(await this.callApi(params, req, runtime), new $_model.InstallMonitoringAgentResponse({})); + } + + /** + * InstallMonitoringAgent + * + * @remarks + * ## Prerequisites + * The Cloud Assistant client is installed on an ECS instance. For more information about how to install the Cloud Assistant client, see [Overview](https://help.aliyun.com/document_detail/64601.html). + * + * @param request - InstallMonitoringAgentRequest + * @returns InstallMonitoringAgentResponse + */ + async installMonitoringAgent(request: $_model.InstallMonitoringAgentRequest): Promise<$_model.InstallMonitoringAgentResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.installMonitoringAgentWithOptions(request, runtime); + } + + /** + * 修改应用分组内的进程监控 + * + * @param request - ModifyGroupMonitoringAgentProcessRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ModifyGroupMonitoringAgentProcessResponse + */ + async modifyGroupMonitoringAgentProcessWithOptions(request: $_model.ModifyGroupMonitoringAgentProcessRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyGroupMonitoringAgentProcessResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.alertConfig)) { + query["AlertConfig"] = request.alertConfig; + } + + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.id)) { + query["Id"] = request.id; + } + + if (!$dara.isNull(request.matchExpressFilterRelation)) { + query["MatchExpressFilterRelation"] = request.matchExpressFilterRelation; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "ModifyGroupMonitoringAgentProcess", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.ModifyGroupMonitoringAgentProcessResponse>(await this.callApi(params, req, runtime), new $_model.ModifyGroupMonitoringAgentProcessResponse({})); + } + + /** + * 修改应用分组内的进程监控 + * + * @param request - ModifyGroupMonitoringAgentProcessRequest + * @returns ModifyGroupMonitoringAgentProcessResponse + */ + async modifyGroupMonitoringAgentProcess(request: $_model.ModifyGroupMonitoringAgentProcessRequest): Promise<$_model.ModifyGroupMonitoringAgentProcessResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.modifyGroupMonitoringAgentProcessWithOptions(request, runtime); + } + + /** + * Modifies an availability monitoring task. + * + * @remarks + * This topic provides an example on how to change the name of an availability monitoring task named `12345` in an application group named `123456` to `task2`. + * + * @param request - ModifyHostAvailabilityRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ModifyHostAvailabilityResponse + */ + async modifyHostAvailabilityWithOptions(request: $_model.ModifyHostAvailabilityRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyHostAvailabilityResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.alertConfigEscalationList)) { + query["AlertConfigEscalationList"] = request.alertConfigEscalationList; + } + + if (!$dara.isNull(request.alertConfigTargetList)) { + query["AlertConfigTargetList"] = request.alertConfigTargetList; + } + + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.id)) { + query["Id"] = request.id; + } + + if (!$dara.isNull(request.instanceList)) { + query["InstanceList"] = request.instanceList; + } + + if (!$dara.isNull(request.taskName)) { + query["TaskName"] = request.taskName; + } + + if (!$dara.isNull(request.taskScope)) { + query["TaskScope"] = request.taskScope; + } + + if (!$dara.isNull(request.alertConfig)) { + query["AlertConfig"] = request.alertConfig; + } + + if (!$dara.isNull(request.taskOption)) { + query["TaskOption"] = request.taskOption; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "ModifyHostAvailability", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.ModifyHostAvailabilityResponse>(await this.callApi(params, req, runtime), new $_model.ModifyHostAvailabilityResponse({})); + } + + /** + * Modifies an availability monitoring task. + * + * @remarks + * This topic provides an example on how to change the name of an availability monitoring task named `12345` in an application group named `123456` to `task2`. + * + * @param request - ModifyHostAvailabilityRequest + * @returns ModifyHostAvailabilityResponse + */ + async modifyHostAvailability(request: $_model.ModifyHostAvailabilityRequest): Promise<$_model.ModifyHostAvailabilityResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.modifyHostAvailabilityWithOptions(request, runtime); + } + + /** + * 修改非阿里云的主机显示信息 + * + * @remarks + * *** + * + * @param request - ModifyHostInfoRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ModifyHostInfoResponse + */ + async modifyHostInfoWithOptions(request: $_model.ModifyHostInfoRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyHostInfoResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.hostName)) { + query["HostName"] = request.hostName; + } + + if (!$dara.isNull(request.instanceId)) { + query["InstanceId"] = request.instanceId; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "ModifyHostInfo", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.ModifyHostInfoResponse>(await this.callApi(params, req, runtime), new $_model.ModifyHostInfoResponse({})); + } + + /** + * 修改非阿里云的主机显示信息 + * + * @remarks + * *** + * + * @param request - ModifyHostInfoRequest + * @returns ModifyHostInfoResponse + */ + async modifyHostInfo(request: $_model.ModifyHostInfoRequest): Promise<$_model.ModifyHostInfoResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.modifyHostInfoWithOptions(request, runtime); + } + + /** + * Modifies a namespace. + * + * @remarks + * This topic provides an example on how to change the data retention period of the `aliyun` namespace to `cms.s1.2xlarge`. The response shows that the namespace is modified. + * + * @param request - ModifyHybridMonitorNamespaceRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ModifyHybridMonitorNamespaceResponse + */ + async modifyHybridMonitorNamespaceWithOptions(request: $_model.ModifyHybridMonitorNamespaceRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyHybridMonitorNamespaceResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.description)) { + query["Description"] = request.description; + } + + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + + if (!$dara.isNull(request.spec)) { + query["Spec"] = request.spec; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "ModifyHybridMonitorNamespace", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.ModifyHybridMonitorNamespaceResponse>(await this.callApi(params, req, runtime), new $_model.ModifyHybridMonitorNamespaceResponse({})); + } + + /** + * Modifies a namespace. + * + * @remarks + * This topic provides an example on how to change the data retention period of the `aliyun` namespace to `cms.s1.2xlarge`. The response shows that the namespace is modified. + * + * @param request - ModifyHybridMonitorNamespaceRequest + * @returns ModifyHybridMonitorNamespaceResponse + */ + async modifyHybridMonitorNamespace(request: $_model.ModifyHybridMonitorNamespaceRequest): Promise<$_model.ModifyHybridMonitorNamespaceResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.modifyHybridMonitorNamespaceWithOptions(request, runtime); + } + + /** + * Modifies a Logstore group. + * + * @remarks + * In this example, a Logstore group named `Logstore_test` is modified. The Logstore of the `aliyun-project` project in the `cn-hangzhou` region is changed to `Logstore-aliyun-all`. The response shows that the Logstore group is modified. + * + * @param request - ModifyHybridMonitorSLSGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ModifyHybridMonitorSLSGroupResponse + */ + async modifyHybridMonitorSLSGroupWithOptions(request: $_model.ModifyHybridMonitorSLSGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyHybridMonitorSLSGroupResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.SLSGroupConfig)) { + query["SLSGroupConfig"] = request.SLSGroupConfig; + } + + if (!$dara.isNull(request.SLSGroupDescription)) { + query["SLSGroupDescription"] = request.SLSGroupDescription; + } + + if (!$dara.isNull(request.SLSGroupName)) { + query["SLSGroupName"] = request.SLSGroupName; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "ModifyHybridMonitorSLSGroup", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.ModifyHybridMonitorSLSGroupResponse>(await this.callApi(params, req, runtime), new $_model.ModifyHybridMonitorSLSGroupResponse({})); + } + + /** + * Modifies a Logstore group. + * + * @remarks + * In this example, a Logstore group named `Logstore_test` is modified. The Logstore of the `aliyun-project` project in the `cn-hangzhou` region is changed to `Logstore-aliyun-all`. The response shows that the Logstore group is modified. + * + * @param request - ModifyHybridMonitorSLSGroupRequest + * @returns ModifyHybridMonitorSLSGroupResponse + */ + async modifyHybridMonitorSLSGroup(request: $_model.ModifyHybridMonitorSLSGroupRequest): Promise<$_model.ModifyHybridMonitorSLSGroupResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.modifyHybridMonitorSLSGroupWithOptions(request, runtime); + } + + /** + * Modifies a metric for the logs that are imported from Log Service. + * + * @remarks + * This topic provides an example on how to change the collection period of a metric import task whose ID is `36****` to `15` seconds. The task is used to monitor the logs that are imported from Log Service. The returned result indicates that the metric is modified. + * + * @param request - ModifyHybridMonitorTaskRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ModifyHybridMonitorTaskResponse + */ + async modifyHybridMonitorTaskWithOptions(request: $_model.ModifyHybridMonitorTaskRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyHybridMonitorTaskResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.attachLabels)) { + query["AttachLabels"] = request.attachLabels; + } + + if (!$dara.isNull(request.collectInterval)) { + query["CollectInterval"] = request.collectInterval; + } + + if (!$dara.isNull(request.description)) { + query["Description"] = request.description; + } + + if (!$dara.isNull(request.SLSProcessConfig)) { + query["SLSProcessConfig"] = request.SLSProcessConfig; + } + + if (!$dara.isNull(request.taskId)) { + query["TaskId"] = request.taskId; + } + + if (!$dara.isNull(request.taskName)) { + query["TaskName"] = request.taskName; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "ModifyHybridMonitorTask", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.ModifyHybridMonitorTaskResponse>(await this.callApi(params, req, runtime), new $_model.ModifyHybridMonitorTaskResponse({})); + } + + /** + * Modifies a metric for the logs that are imported from Log Service. + * + * @remarks + * This topic provides an example on how to change the collection period of a metric import task whose ID is `36****` to `15` seconds. The task is used to monitor the logs that are imported from Log Service. The returned result indicates that the metric is modified. + * + * @param request - ModifyHybridMonitorTaskRequest + * @returns ModifyHybridMonitorTaskResponse + */ + async modifyHybridMonitorTask(request: $_model.ModifyHybridMonitorTaskRequest): Promise<$_model.ModifyHybridMonitorTaskResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.modifyHybridMonitorTaskWithOptions(request, runtime); + } + + /** + * Modifies a blacklist policy. + * + * @param request - ModifyMetricRuleBlackListRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ModifyMetricRuleBlackListResponse + */ + async modifyMetricRuleBlackListWithOptions(request: $_model.ModifyMetricRuleBlackListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyMetricRuleBlackListResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.category)) { + query["Category"] = request.category; + } + + if (!$dara.isNull(request.effectiveTime)) { + query["EffectiveTime"] = request.effectiveTime; + } + + if (!$dara.isNull(request.enableEndTime)) { + query["EnableEndTime"] = request.enableEndTime; + } + + if (!$dara.isNull(request.enableStartTime)) { + query["EnableStartTime"] = request.enableStartTime; + } + + if (!$dara.isNull(request.id)) { + query["Id"] = request.id; + } + + if (!$dara.isNull(request.instances)) { + query["Instances"] = request.instances; + } + + if (!$dara.isNull(request.metrics)) { + query["Metrics"] = request.metrics; + } + + if (!$dara.isNull(request.name)) { + query["Name"] = request.name; + } + + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + + if (!$dara.isNull(request.scopeType)) { + query["ScopeType"] = request.scopeType; + } + + if (!$dara.isNull(request.scopeValue)) { + query["ScopeValue"] = request.scopeValue; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "ModifyMetricRuleBlackList", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.ModifyMetricRuleBlackListResponse>(await this.callApi(params, req, runtime), new $_model.ModifyMetricRuleBlackListResponse({})); + } + + /** + * Modifies a blacklist policy. + * + * @param request - ModifyMetricRuleBlackListRequest + * @returns ModifyMetricRuleBlackListResponse + */ + async modifyMetricRuleBlackList(request: $_model.ModifyMetricRuleBlackListRequest): Promise<$_model.ModifyMetricRuleBlackListResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.modifyMetricRuleBlackListWithOptions(request, runtime); + } + + /** + * Modifies an alert template. + * + * @remarks + * This topic provides an example on how to modify an alert template whose version is `1` and ID is `123456`. The alert level is changed to `Critical`. The statistical method is changed to `Average`. The alert threshold comparator is changed to `GreaterThanOrEqualToThreshold`. The alert threshold is changed to `90`. The number of alert retries is changed to `3`. The response shows that the alert template is modified. + * + * @param request - ModifyMetricRuleTemplateRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ModifyMetricRuleTemplateResponse + */ + async modifyMetricRuleTemplateWithOptions(request: $_model.ModifyMetricRuleTemplateRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyMetricRuleTemplateResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.alertTemplates)) { + query["AlertTemplates"] = request.alertTemplates; + } + + if (!$dara.isNull(request.description)) { + query["Description"] = request.description; + } + + if (!$dara.isNull(request.name)) { + query["Name"] = request.name; + } + + if (!$dara.isNull(request.restVersion)) { + query["RestVersion"] = request.restVersion; + } + + if (!$dara.isNull(request.templateId)) { + query["TemplateId"] = request.templateId; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "ModifyMetricRuleTemplate", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.ModifyMetricRuleTemplateResponse>(await this.callApi(params, req, runtime), new $_model.ModifyMetricRuleTemplateResponse({})); + } + + /** + * Modifies an alert template. + * + * @remarks + * This topic provides an example on how to modify an alert template whose version is `1` and ID is `123456`. The alert level is changed to `Critical`. The statistical method is changed to `Average`. The alert threshold comparator is changed to `GreaterThanOrEqualToThreshold`. The alert threshold is changed to `90`. The number of alert retries is changed to `3`. The response shows that the alert template is modified. + * + * @param request - ModifyMetricRuleTemplateRequest + * @returns ModifyMetricRuleTemplateResponse + */ + async modifyMetricRuleTemplate(request: $_model.ModifyMetricRuleTemplateRequest): Promise<$_model.ModifyMetricRuleTemplateResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.modifyMetricRuleTemplateWithOptions(request, runtime); + } + + /** + * 修改应用分组 + * + * @param request - ModifyMonitorGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ModifyMonitorGroupResponse + */ + async modifyMonitorGroupWithOptions(request: $_model.ModifyMonitorGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyMonitorGroupResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.contactGroups)) { + query["ContactGroups"] = request.contactGroups; + } + + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.groupName)) { + query["GroupName"] = request.groupName; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "ModifyMonitorGroup", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.ModifyMonitorGroupResponse>(await this.callApi(params, req, runtime), new $_model.ModifyMonitorGroupResponse({})); + } + + /** + * 修改应用分组 + * + * @param request - ModifyMonitorGroupRequest + * @returns ModifyMonitorGroupResponse + */ + async modifyMonitorGroup(request: $_model.ModifyMonitorGroupRequest): Promise<$_model.ModifyMonitorGroupResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.modifyMonitorGroupWithOptions(request, runtime); + } + + /** + * 修改应用分组中的资源 + * + * @param request - ModifyMonitorGroupInstancesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ModifyMonitorGroupInstancesResponse + */ + async modifyMonitorGroupInstancesWithOptions(request: $_model.ModifyMonitorGroupInstancesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyMonitorGroupInstancesResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.instances)) { + query["Instances"] = request.instances; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "ModifyMonitorGroupInstances", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.ModifyMonitorGroupInstancesResponse>(await this.callApi(params, req, runtime), new $_model.ModifyMonitorGroupInstancesResponse({})); + } + + /** + * 修改应用分组中的资源 + * + * @param request - ModifyMonitorGroupInstancesRequest + * @returns ModifyMonitorGroupInstancesResponse + */ + async modifyMonitorGroupInstances(request: $_model.ModifyMonitorGroupInstancesRequest): Promise<$_model.ModifyMonitorGroupInstancesResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.modifyMonitorGroupInstancesWithOptions(request, runtime); + } + + /** + * Modifies a site monitoring task. + * + * @remarks + * The number of site monitoring tasks. + * + * @param request - ModifySiteMonitorRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns ModifySiteMonitorResponse + */ + async modifySiteMonitorWithOptions(request: $_model.ModifySiteMonitorRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifySiteMonitorResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.address)) { + query["Address"] = request.address; + } + + if (!$dara.isNull(request.alertIds)) { + query["AlertIds"] = request.alertIds; + } + + if (!$dara.isNull(request.customSchedule)) { + query["CustomSchedule"] = request.customSchedule; + } + + if (!$dara.isNull(request.interval)) { + query["Interval"] = request.interval; + } + + if (!$dara.isNull(request.intervalUnit)) { + query["IntervalUnit"] = request.intervalUnit; + } + + if (!$dara.isNull(request.ispCities)) { + query["IspCities"] = request.ispCities; + } + + if (!$dara.isNull(request.optionsJson)) { + query["OptionsJson"] = request.optionsJson; + } + + if (!$dara.isNull(request.taskId)) { + query["TaskId"] = request.taskId; + } + + if (!$dara.isNull(request.taskName)) { + query["TaskName"] = request.taskName; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "ModifySiteMonitor", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.ModifySiteMonitorResponse>(await this.callApi(params, req, runtime), new $_model.ModifySiteMonitorResponse({})); + } + + /** + * Modifies a site monitoring task. + * + * @remarks + * The number of site monitoring tasks. + * + * @param request - ModifySiteMonitorRequest + * @returns ModifySiteMonitorResponse + */ + async modifySiteMonitor(request: $_model.ModifySiteMonitorRequest): Promise<$_model.ModifySiteMonitorResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.modifySiteMonitorWithOptions(request, runtime); + } + + /** + * Creates or modifies an alert contact. + * + * @param request - PutContactRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutContactResponse + */ + async putContactWithOptions(request: $_model.PutContactRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutContactResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.contactName)) { + query["ContactName"] = request.contactName; + } + + if (!$dara.isNull(request.describe)) { + query["Describe"] = request.describe; + } + + if (!$dara.isNull(request.lang)) { + query["Lang"] = request.lang; + } + + if (!$dara.isNull(request.channels)) { + query["Channels"] = request.channels; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "PutContact", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.PutContactResponse>(await this.callApi(params, req, runtime), new $_model.PutContactResponse({})); + } + + /** + * Creates or modifies an alert contact. + * + * @param request - PutContactRequest + * @returns PutContactResponse + */ + async putContact(request: $_model.PutContactRequest): Promise<$_model.PutContactResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.putContactWithOptions(request, runtime); + } + + /** + * Creates or modifies an alert contact group. + * + * @remarks + * This topic provides an example on how to create an alert contact group named `ECS_Group`. + * + * @param request - PutContactGroupRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutContactGroupResponse + */ + async putContactGroupWithOptions(request: $_model.PutContactGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutContactGroupResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.contactGroupName)) { + query["ContactGroupName"] = request.contactGroupName; + } + + if (!$dara.isNull(request.contactNames)) { + query["ContactNames"] = request.contactNames; + } + + if (!$dara.isNull(request.describe)) { + query["Describe"] = request.describe; + } + + if (!$dara.isNull(request.enableSubscribed)) { + query["EnableSubscribed"] = request.enableSubscribed; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "PutContactGroup", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.PutContactGroupResponse>(await this.callApi(params, req, runtime), new $_model.PutContactGroupResponse({})); + } + + /** + * Creates or modifies an alert contact group. + * + * @remarks + * This topic provides an example on how to create an alert contact group named `ECS_Group`. + * + * @param request - PutContactGroupRequest + * @returns PutContactGroupResponse + */ + async putContactGroup(request: $_model.PutContactGroupRequest): Promise<$_model.PutContactGroupResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.putContactGroupWithOptions(request, runtime); + } + + /** + * Reports custom events. + * + * @param request - PutCustomEventRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutCustomEventResponse + */ + async putCustomEventWithOptions(request: $_model.PutCustomEventRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutCustomEventResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.eventInfo)) { + query["EventInfo"] = request.eventInfo; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "PutCustomEvent", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.PutCustomEventResponse>(await this.callApi(params, req, runtime), new $_model.PutCustomEventResponse({})); + } + + /** + * Reports custom events. + * + * @param request - PutCustomEventRequest + * @returns PutCustomEventResponse + */ + async putCustomEvent(request: $_model.PutCustomEventRequest): Promise<$_model.PutCustomEventResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.putCustomEventWithOptions(request, runtime); + } + + /** + * @remarks + * Before you call this operation, call the PutCustomEvent operation to report the monitoring data of the custom event. For more information, see [PutCustomEvent](https://help.aliyun.com/document_detail/115012.html). + * + * @param request - PutCustomEventRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutCustomEventRuleResponse + */ + async putCustomEventRuleWithOptions(request: $_model.PutCustomEventRuleRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutCustomEventRuleResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.contactGroups)) { + query["ContactGroups"] = request.contactGroups; + } + + if (!$dara.isNull(request.effectiveInterval)) { + query["EffectiveInterval"] = request.effectiveInterval; + } + + if (!$dara.isNull(request.emailSubject)) { + query["EmailSubject"] = request.emailSubject; + } + + if (!$dara.isNull(request.eventName)) { + query["EventName"] = request.eventName; + } + + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.level)) { + query["Level"] = request.level; + } + + if (!$dara.isNull(request.period)) { + query["Period"] = request.period; + } + + if (!$dara.isNull(request.ruleId)) { + query["RuleId"] = request.ruleId; + } + + if (!$dara.isNull(request.ruleName)) { + query["RuleName"] = request.ruleName; + } + + if (!$dara.isNull(request.threshold)) { + query["Threshold"] = request.threshold; + } + + if (!$dara.isNull(request.webhook)) { + query["Webhook"] = request.webhook; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "PutCustomEventRule", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.PutCustomEventRuleResponse>(await this.callApi(params, req, runtime), new $_model.PutCustomEventRuleResponse({})); + } + + /** + * @remarks + * Before you call this operation, call the PutCustomEvent operation to report the monitoring data of the custom event. For more information, see [PutCustomEvent](https://help.aliyun.com/document_detail/115012.html). + * + * @param request - PutCustomEventRuleRequest + * @returns PutCustomEventRuleResponse + */ + async putCustomEventRule(request: $_model.PutCustomEventRuleRequest): Promise<$_model.PutCustomEventRuleResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.putCustomEventRuleWithOptions(request, runtime); + } + + /** + * Reports monitoring data. + * + * @remarks + * > We recommend that you call the [PutHybridMonitorMetricData](https://help.aliyun.com/document_detail/383455.html) operation of Hybrid Cloud Monitoring to report monitoring data. + * + * @param request - PutCustomMetricRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutCustomMetricResponse + */ + async putCustomMetricWithOptions(request: $_model.PutCustomMetricRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutCustomMetricResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.metricList)) { + query["MetricList"] = request.metricList; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "PutCustomMetric", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.PutCustomMetricResponse>(await this.callApi(params, req, runtime), new $_model.PutCustomMetricResponse({})); + } + + /** + * Reports monitoring data. + * + * @remarks + * > We recommend that you call the [PutHybridMonitorMetricData](https://help.aliyun.com/document_detail/383455.html) operation of Hybrid Cloud Monitoring to report monitoring data. + * + * @param request - PutCustomMetricRequest + * @returns PutCustomMetricResponse + */ + async putCustomMetric(request: $_model.PutCustomMetricRequest): Promise<$_model.PutCustomMetricResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.putCustomMetricWithOptions(request, runtime); + } + + /** + * Creates a custom alert rule. + * + * @remarks + * Before you call this operation, call the PutCustomMetric operation to report custom monitoring data. For more information, see [PutCustomMetric](https://help.aliyun.com/document_detail/115004.html). + * + * @param request - PutCustomMetricRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutCustomMetricRuleResponse + */ + async putCustomMetricRuleWithOptions(request: $_model.PutCustomMetricRuleRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutCustomMetricRuleResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.comparisonOperator)) { + query["ComparisonOperator"] = request.comparisonOperator; + } + + if (!$dara.isNull(request.contactGroups)) { + query["ContactGroups"] = request.contactGroups; + } + + if (!$dara.isNull(request.effectiveInterval)) { + query["EffectiveInterval"] = request.effectiveInterval; + } + + if (!$dara.isNull(request.emailSubject)) { + query["EmailSubject"] = request.emailSubject; + } + + if (!$dara.isNull(request.evaluationCount)) { + query["EvaluationCount"] = request.evaluationCount; + } + + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.level)) { + query["Level"] = request.level; + } + + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + + if (!$dara.isNull(request.period)) { + query["Period"] = request.period; + } + + if (!$dara.isNull(request.resources)) { + query["Resources"] = request.resources; + } + + if (!$dara.isNull(request.ruleId)) { + query["RuleId"] = request.ruleId; + } + + if (!$dara.isNull(request.ruleName)) { + query["RuleName"] = request.ruleName; + } + + if (!$dara.isNull(request.silenceTime)) { + query["SilenceTime"] = request.silenceTime; + } + + if (!$dara.isNull(request.statistics)) { + query["Statistics"] = request.statistics; + } + + if (!$dara.isNull(request.threshold)) { + query["Threshold"] = request.threshold; + } + + if (!$dara.isNull(request.webhook)) { + query["Webhook"] = request.webhook; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "PutCustomMetricRule", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.PutCustomMetricRuleResponse>(await this.callApi(params, req, runtime), new $_model.PutCustomMetricRuleResponse({})); + } + + /** + * Creates a custom alert rule. + * + * @remarks + * Before you call this operation, call the PutCustomMetric operation to report custom monitoring data. For more information, see [PutCustomMetric](https://help.aliyun.com/document_detail/115004.html). + * + * @param request - PutCustomMetricRuleRequest + * @returns PutCustomMetricRuleResponse + */ + async putCustomMetricRule(request: $_model.PutCustomMetricRuleRequest): Promise<$_model.PutCustomMetricRuleResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.putCustomMetricRuleWithOptions(request, runtime); + } + + /** + * 创建或者修改事件监控 + * + * @remarks + * If the specified rule name does not exist, an event-triggered alert rule is created. If the specified rule name exists, the specified event-triggered alert rule is modified. + * In this example, the `myRuleName` alert rule is created for the `ecs` cloud service. + * + * @param request - PutEventRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutEventRuleResponse + */ + async putEventRuleWithOptions(request: $_model.PutEventRuleRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutEventRuleResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.description)) { + query["Description"] = request.description; + } + + if (!$dara.isNull(request.eventPattern)) { + query["EventPattern"] = request.eventPattern; + } + + if (!$dara.isNull(request.eventType)) { + query["EventType"] = request.eventType; + } + + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.ruleName)) { + query["RuleName"] = request.ruleName; + } + + if (!$dara.isNull(request.silenceTime)) { + query["SilenceTime"] = request.silenceTime; + } + + if (!$dara.isNull(request.state)) { + query["State"] = request.state; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "PutEventRule", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.PutEventRuleResponse>(await this.callApi(params, req, runtime), new $_model.PutEventRuleResponse({})); + } + + /** + * 创建或者修改事件监控 + * + * @remarks + * If the specified rule name does not exist, an event-triggered alert rule is created. If the specified rule name exists, the specified event-triggered alert rule is modified. + * In this example, the `myRuleName` alert rule is created for the `ecs` cloud service. + * + * @param request - PutEventRuleRequest + * @returns PutEventRuleResponse + */ + async putEventRule(request: $_model.PutEventRuleRequest): Promise<$_model.PutEventRuleResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.putEventRuleWithOptions(request, runtime); + } + + /** + * Adds or modifies the push channels of an event-triggered alert rule. + * + * @param request - PutEventRuleTargetsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutEventRuleTargetsResponse + */ + async putEventRuleTargetsWithOptions(request: $_model.PutEventRuleTargetsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutEventRuleTargetsResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.contactParameters)) { + query["ContactParameters"] = request.contactParameters; + } + + if (!$dara.isNull(request.fcParameters)) { + query["FcParameters"] = request.fcParameters; + } + + if (!$dara.isNull(request.mnsParameters)) { + query["MnsParameters"] = request.mnsParameters; + } + + if (!$dara.isNull(request.openApiParameters)) { + query["OpenApiParameters"] = request.openApiParameters; + } + + if (!$dara.isNull(request.ruleName)) { + query["RuleName"] = request.ruleName; + } + + if (!$dara.isNull(request.slsParameters)) { + query["SlsParameters"] = request.slsParameters; + } + + if (!$dara.isNull(request.webhookParameters)) { + query["WebhookParameters"] = request.webhookParameters; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "PutEventRuleTargets", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.PutEventRuleTargetsResponse>(await this.callApi(params, req, runtime), new $_model.PutEventRuleTargetsResponse({})); + } + + /** + * Adds or modifies the push channels of an event-triggered alert rule. + * + * @param request - PutEventRuleTargetsRequest + * @returns PutEventRuleTargetsResponse + */ + async putEventRuleTargets(request: $_model.PutEventRuleTargetsRequest): Promise<$_model.PutEventRuleTargetsResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.putEventRuleTargetsWithOptions(request, runtime); + } + + /** + * Creates or modifies a configuration set for exporting monitoring data. + * + * @remarks + * > The monitoring data can be exported only to Log Service. More services will be supported in the future. + * + * @param request - PutExporterOutputRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutExporterOutputResponse + */ + async putExporterOutputWithOptions(request: $_model.PutExporterOutputRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutExporterOutputResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.configJson)) { + query["ConfigJson"] = request.configJson; + } + + if (!$dara.isNull(request.desc)) { + query["Desc"] = request.desc; + } + + if (!$dara.isNull(request.destName)) { + query["DestName"] = request.destName; + } + + if (!$dara.isNull(request.destType)) { + query["DestType"] = request.destType; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "PutExporterOutput", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.PutExporterOutputResponse>(await this.callApi(params, req, runtime), new $_model.PutExporterOutputResponse({})); + } + + /** + * Creates or modifies a configuration set for exporting monitoring data. + * + * @remarks + * > The monitoring data can be exported only to Log Service. More services will be supported in the future. + * + * @param request - PutExporterOutputRequest + * @returns PutExporterOutputResponse + */ + async putExporterOutput(request: $_model.PutExporterOutputRequest): Promise<$_model.PutExporterOutputResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.putExporterOutputWithOptions(request, runtime); + } + + /** + * Creates or modifies a data export rule. + * + * @param request - PutExporterRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutExporterRuleResponse + */ + async putExporterRuleWithOptions(request: $_model.PutExporterRuleRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutExporterRuleResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.describe)) { + query["Describe"] = request.describe; + } + + if (!$dara.isNull(request.dstNames)) { + query["DstNames"] = request.dstNames; + } + + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + + if (!$dara.isNull(request.ruleName)) { + query["RuleName"] = request.ruleName; + } + + if (!$dara.isNull(request.targetWindows)) { + query["TargetWindows"] = request.targetWindows; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "PutExporterRule", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.PutExporterRuleResponse>(await this.callApi(params, req, runtime), new $_model.PutExporterRuleResponse({})); + } + + /** + * Creates or modifies a data export rule. + * + * @param request - PutExporterRuleRequest + * @returns PutExporterRuleResponse + */ + async putExporterRule(request: $_model.PutExporterRuleRequest): Promise<$_model.PutExporterRuleResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.putExporterRuleWithOptions(request, runtime); + } + + /** + * Creates or modifies an alert rule for an application group. + * + * @remarks + * This topic provides an example on how to create an alert rule for the `cpu_total` metric of Elastic Compute Service (ECS) in the `17285****` application group. The ID of the alert rule is `123456`. The name of the alert rule is `Rule_test`. The alert level is `Critical`. The statistical method is `Average`. The alert threshold comparator is `GreaterThanOrEqualToThreshold`. The alert threshold is `90`. The number of alert retries is `3`. The returned result shows that the alert rule is created and the alert rule ID is `123456`. + * + * @param request - PutGroupMetricRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutGroupMetricRuleResponse + */ + async putGroupMetricRuleWithOptions(request: $_model.PutGroupMetricRuleRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutGroupMetricRuleResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.category)) { + query["Category"] = request.category; + } + + if (!$dara.isNull(request.contactGroups)) { + query["ContactGroups"] = request.contactGroups; + } + + if (!$dara.isNull(request.dimensions)) { + query["Dimensions"] = request.dimensions; + } + + if (!$dara.isNull(request.effectiveInterval)) { + query["EffectiveInterval"] = request.effectiveInterval; + } + + if (!$dara.isNull(request.emailSubject)) { + query["EmailSubject"] = request.emailSubject; + } + + if (!$dara.isNull(request.extraDimensionJson)) { + query["ExtraDimensionJson"] = request.extraDimensionJson; + } + + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.interval)) { + query["Interval"] = request.interval; + } + + if (!$dara.isNull(request.labels)) { + query["Labels"] = request.labels; + } + + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + + if (!$dara.isNull(request.noDataPolicy)) { + query["NoDataPolicy"] = request.noDataPolicy; + } + + if (!$dara.isNull(request.noEffectiveInterval)) { + query["NoEffectiveInterval"] = request.noEffectiveInterval; + } + + if (!$dara.isNull(request.options)) { + query["Options"] = request.options; + } + + if (!$dara.isNull(request.period)) { + query["Period"] = request.period; + } + + if (!$dara.isNull(request.ruleId)) { + query["RuleId"] = request.ruleId; + } + + if (!$dara.isNull(request.ruleName)) { + query["RuleName"] = request.ruleName; + } + + if (!$dara.isNull(request.silenceTime)) { + query["SilenceTime"] = request.silenceTime; + } + + if (!$dara.isNull(request.webhook)) { + query["Webhook"] = request.webhook; + } + + if (!$dara.isNull(request.escalations)) { + query["Escalations"] = request.escalations; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "PutGroupMetricRule", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.PutGroupMetricRuleResponse>(await this.callApi(params, req, runtime), new $_model.PutGroupMetricRuleResponse({})); + } + + /** + * Creates or modifies an alert rule for an application group. + * + * @remarks + * This topic provides an example on how to create an alert rule for the `cpu_total` metric of Elastic Compute Service (ECS) in the `17285****` application group. The ID of the alert rule is `123456`. The name of the alert rule is `Rule_test`. The alert level is `Critical`. The statistical method is `Average`. The alert threshold comparator is `GreaterThanOrEqualToThreshold`. The alert threshold is `90`. The number of alert retries is `3`. The returned result shows that the alert rule is created and the alert rule ID is `123456`. + * + * @param request - PutGroupMetricRuleRequest + * @returns PutGroupMetricRuleResponse + */ + async putGroupMetricRule(request: $_model.PutGroupMetricRuleRequest): Promise<$_model.PutGroupMetricRuleResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.putGroupMetricRuleWithOptions(request, runtime); + } + + /** + * Imports the monitoring data of a metric to a namespace of Hybrid Cloud Monitoring. + * + * @remarks + * ## [](#)Prerequisites + * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](https://help.aliyun.com/document_detail/250773.html). + * ## [](#)Limits + * The size of the monitoring data that you import at a time must be less than or equal to 1 MB. + * ## [](#)Operation description + * This topic provides an example on how to import the monitoring data of the `CPU_Usage` metric to the `default-aliyun` namespace of Hybrid Cloud Monitoring. + * + * @param request - PutHybridMonitorMetricDataRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutHybridMonitorMetricDataResponse + */ + async putHybridMonitorMetricDataWithOptions(request: $_model.PutHybridMonitorMetricDataRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutHybridMonitorMetricDataResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.metricList)) { + query["MetricList"] = request.metricList; + } + + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "PutHybridMonitorMetricData", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.PutHybridMonitorMetricDataResponse>(await this.callApi(params, req, runtime), new $_model.PutHybridMonitorMetricDataResponse({})); + } + + /** + * Imports the monitoring data of a metric to a namespace of Hybrid Cloud Monitoring. + * + * @remarks + * ## [](#)Prerequisites + * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](https://help.aliyun.com/document_detail/250773.html). + * ## [](#)Limits + * The size of the monitoring data that you import at a time must be less than or equal to 1 MB. + * ## [](#)Operation description + * This topic provides an example on how to import the monitoring data of the `CPU_Usage` metric to the `default-aliyun` namespace of Hybrid Cloud Monitoring. + * + * @param request - PutHybridMonitorMetricDataRequest + * @returns PutHybridMonitorMetricDataResponse + */ + async putHybridMonitorMetricData(request: $_model.PutHybridMonitorMetricDataRequest): Promise<$_model.PutHybridMonitorMetricDataResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.putHybridMonitorMetricDataWithOptions(request, runtime); + } + + /** + * Creates or modifies a log monitoring metric. + * + * @remarks + * In the example of this topic, the `cpu_total` log monitoring metric is created. The response shows that the log monitoring metric is created and the metric ID is `16****`. + * + * @param request - PutLogMonitorRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutLogMonitorResponse + */ + async putLogMonitorWithOptions(request: $_model.PutLogMonitorRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutLogMonitorResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.aggregates)) { + query["Aggregates"] = request.aggregates; + } + + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.groupbys)) { + query["Groupbys"] = request.groupbys; + } + + if (!$dara.isNull(request.logId)) { + query["LogId"] = request.logId; + } + + if (!$dara.isNull(request.metricExpress)) { + query["MetricExpress"] = request.metricExpress; + } + + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + + if (!$dara.isNull(request.slsLogstore)) { + query["SlsLogstore"] = request.slsLogstore; + } + + if (!$dara.isNull(request.slsProject)) { + query["SlsProject"] = request.slsProject; + } + + if (!$dara.isNull(request.slsRegionId)) { + query["SlsRegionId"] = request.slsRegionId; + } + + if (!$dara.isNull(request.tumblingwindows)) { + query["Tumblingwindows"] = request.tumblingwindows; + } + + if (!$dara.isNull(request.unit)) { + query["Unit"] = request.unit; + } + + if (!$dara.isNull(request.valueFilter)) { + query["ValueFilter"] = request.valueFilter; + } + + if (!$dara.isNull(request.valueFilterRelation)) { + query["ValueFilterRelation"] = request.valueFilterRelation; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "PutLogMonitor", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.PutLogMonitorResponse>(await this.callApi(params, req, runtime), new $_model.PutLogMonitorResponse({})); + } + + /** + * Creates or modifies a log monitoring metric. + * + * @remarks + * In the example of this topic, the `cpu_total` log monitoring metric is created. The response shows that the log monitoring metric is created and the metric ID is `16****`. + * + * @param request - PutLogMonitorRequest + * @returns PutLogMonitorResponse + */ + async putLogMonitor(request: $_model.PutLogMonitorRequest): Promise<$_model.PutLogMonitorResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.putLogMonitorWithOptions(request, runtime); + } + + /** + * Adds or modifies the push channels of an alert rule. + * + * @remarks + * # [](#) + * This topic provides an example on how to associate an alert rule with a resource. In this example, the alert rule is `ae06917_75a8c43178ab66****`, the resource is `acs:mns:cn-hangzhou:120886317861****:/queues/test/message`, and the ID of the resource for which alerts are triggered is `1`. The response indicates that the resource is associated with the specified alert rule. + * + * @param request - PutMetricRuleTargetsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutMetricRuleTargetsResponse + */ + async putMetricRuleTargetsWithOptions(request: $_model.PutMetricRuleTargetsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutMetricRuleTargetsResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.ruleId)) { + query["RuleId"] = request.ruleId; + } + + if (!$dara.isNull(request.targets)) { + query["Targets"] = request.targets; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "PutMetricRuleTargets", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.PutMetricRuleTargetsResponse>(await this.callApi(params, req, runtime), new $_model.PutMetricRuleTargetsResponse({})); + } + + /** + * Adds or modifies the push channels of an alert rule. + * + * @remarks + * # [](#) + * This topic provides an example on how to associate an alert rule with a resource. In this example, the alert rule is `ae06917_75a8c43178ab66****`, the resource is `acs:mns:cn-hangzhou:120886317861****:/queues/test/message`, and the ID of the resource for which alerts are triggered is `1`. The response indicates that the resource is associated with the specified alert rule. + * + * @param request - PutMetricRuleTargetsRequest + * @returns PutMetricRuleTargetsResponse + */ + async putMetricRuleTargets(request: $_model.PutMetricRuleTargetsRequest): Promise<$_model.PutMetricRuleTargetsResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.putMetricRuleTargetsWithOptions(request, runtime); + } + + /** + * Creates or modifies an alert rule to dynamically add instances that meet the rule to an application group. + * + * @param request - PutMonitorGroupDynamicRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutMonitorGroupDynamicRuleResponse + */ + async putMonitorGroupDynamicRuleWithOptions(request: $_model.PutMonitorGroupDynamicRuleRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutMonitorGroupDynamicRuleResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.groupRules)) { + query["GroupRules"] = request.groupRules; + } + + if (!$dara.isNull(request.isAsync)) { + query["IsAsync"] = request.isAsync; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "PutMonitorGroupDynamicRule", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.PutMonitorGroupDynamicRuleResponse>(await this.callApi(params, req, runtime), new $_model.PutMonitorGroupDynamicRuleResponse({})); + } + + /** + * Creates or modifies an alert rule to dynamically add instances that meet the rule to an application group. + * + * @param request - PutMonitorGroupDynamicRuleRequest + * @returns PutMonitorGroupDynamicRuleResponse + */ + async putMonitorGroupDynamicRule(request: $_model.PutMonitorGroupDynamicRuleRequest): Promise<$_model.PutMonitorGroupDynamicRuleResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.putMonitorGroupDynamicRuleWithOptions(request, runtime); + } + + /** + * Configures global settings for the CloudMonitor agent. + * + * @param request - PutMonitoringConfigRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutMonitoringConfigResponse + */ + async putMonitoringConfigWithOptions(request: $_model.PutMonitoringConfigRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutMonitoringConfigResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.autoInstall)) { + query["AutoInstall"] = request.autoInstall; + } + + if (!$dara.isNull(request.enableInstallAgentNewECS)) { + query["EnableInstallAgentNewECS"] = request.enableInstallAgentNewECS; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "PutMonitoringConfig", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.PutMonitoringConfigResponse>(await this.callApi(params, req, runtime), new $_model.PutMonitoringConfigResponse({})); + } + + /** + * Configures global settings for the CloudMonitor agent. + * + * @param request - PutMonitoringConfigRequest + * @returns PutMonitoringConfigResponse + */ + async putMonitoringConfig(request: $_model.PutMonitoringConfigRequest): Promise<$_model.PutMonitoringConfigResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.putMonitoringConfigWithOptions(request, runtime); + } + + /** + * Configures an alert rule. + * + * @remarks + * This topic provides an example on how to create a threshold-triggered alert rule for the `cpu_total` metric of an Elastic Compute Service (ECS) instance whose ID is `i-uf6j91r34rnwawoo****`. The namespace of ECS metrics is `acs_ecs_dashboard`. The alert contact group of the alert rule is `ECS_Group`. The name of the alert rule is `test123`. The ID of the alert rule is `a151cd6023eacee2f0978e03863cc1697c89508****`. The statistical method for Critical-level alerts is `Average`. The comparison operator for Critical-level alerts is `GreaterThanOrEqualToThreshold`. The threshold for Critical-level alerts is `90`. The consecutive number of times for which the metric value meets the trigger condition before a Critical-level alert is triggered is `3`. + * > Statistics verification was added on August 15, 2024. Only the statistical value of the corresponding metric can be set for the Statistics parameter. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://www.alibabacloud.com/help/en/cms/support/appendix-1-metrics). + * + * @param tmpReq - PutResourceMetricRuleRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutResourceMetricRuleResponse + */ + async putResourceMetricRuleWithOptions(tmpReq: $_model.PutResourceMetricRuleRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutResourceMetricRuleResponse> { + tmpReq.validate(); + let request = new $_model.PutResourceMetricRuleShrinkRequest({ }); + OpenApiUtil.convert(tmpReq, request); + if (!$dara.isNull(tmpReq.compositeExpression)) { + request.compositeExpressionShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.compositeExpression, "CompositeExpression", "json"); + } + + if (!$dara.isNull(tmpReq.prometheus)) { + request.prometheusShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.prometheus, "Prometheus", "json"); + } + + let query = { }; + if (!$dara.isNull(request.compositeExpressionShrink)) { + query["CompositeExpression"] = request.compositeExpressionShrink; + } + + if (!$dara.isNull(request.contactGroups)) { + query["ContactGroups"] = request.contactGroups; + } + + if (!$dara.isNull(request.effectiveInterval)) { + query["EffectiveInterval"] = request.effectiveInterval; + } + + if (!$dara.isNull(request.emailSubject)) { + query["EmailSubject"] = request.emailSubject; + } + + if (!$dara.isNull(request.interval)) { + query["Interval"] = request.interval; + } + + if (!$dara.isNull(request.labels)) { + query["Labels"] = request.labels; + } + + if (!$dara.isNull(request.metricName)) { + query["MetricName"] = request.metricName; + } + + if (!$dara.isNull(request.namespace)) { + query["Namespace"] = request.namespace; + } + + if (!$dara.isNull(request.noDataPolicy)) { + query["NoDataPolicy"] = request.noDataPolicy; + } + + if (!$dara.isNull(request.noEffectiveInterval)) { + query["NoEffectiveInterval"] = request.noEffectiveInterval; + } + + if (!$dara.isNull(request.period)) { + query["Period"] = request.period; + } + + if (!$dara.isNull(request.prometheusShrink)) { + query["Prometheus"] = request.prometheusShrink; + } + + if (!$dara.isNull(request.resources)) { + query["Resources"] = request.resources; + } + + if (!$dara.isNull(request.ruleId)) { + query["RuleId"] = request.ruleId; + } + + if (!$dara.isNull(request.ruleName)) { + query["RuleName"] = request.ruleName; + } + + if (!$dara.isNull(request.silenceTime)) { + query["SilenceTime"] = request.silenceTime; + } + + if (!$dara.isNull(request.webhook)) { + query["Webhook"] = request.webhook; + } + + if (!$dara.isNull(request.escalations)) { + query["Escalations"] = request.escalations; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "PutResourceMetricRule", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.PutResourceMetricRuleResponse>(await this.callApi(params, req, runtime), new $_model.PutResourceMetricRuleResponse({})); + } + + /** + * Configures an alert rule. + * + * @remarks + * This topic provides an example on how to create a threshold-triggered alert rule for the `cpu_total` metric of an Elastic Compute Service (ECS) instance whose ID is `i-uf6j91r34rnwawoo****`. The namespace of ECS metrics is `acs_ecs_dashboard`. The alert contact group of the alert rule is `ECS_Group`. The name of the alert rule is `test123`. The ID of the alert rule is `a151cd6023eacee2f0978e03863cc1697c89508****`. The statistical method for Critical-level alerts is `Average`. The comparison operator for Critical-level alerts is `GreaterThanOrEqualToThreshold`. The threshold for Critical-level alerts is `90`. The consecutive number of times for which the metric value meets the trigger condition before a Critical-level alert is triggered is `3`. + * > Statistics verification was added on August 15, 2024. Only the statistical value of the corresponding metric can be set for the Statistics parameter. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://www.alibabacloud.com/help/en/cms/support/appendix-1-metrics). + * + * @param request - PutResourceMetricRuleRequest + * @returns PutResourceMetricRuleResponse + */ + async putResourceMetricRule(request: $_model.PutResourceMetricRuleRequest): Promise<$_model.PutResourceMetricRuleResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.putResourceMetricRuleWithOptions(request, runtime); + } + + /** + * Creates multiple alert rules for the specified metric of a specified resource. + * + * @remarks + * This topic provides an example on how to create a threshold-triggered alert rule for the `cpu_total` metric of an Elastic Compute Service (ECS) instance whose ID is `i-uf6j91r34rnwawoo****`. The namespace of ECS metrics is `acs_ecs_dashboard`. The alert contact group of the alert rule is `ECS_Group`. The name of the alert rule is `test123`. The ID of the alert rule is `a151cd6023eacee2f0978e03863cc1697c89508****`. The statistical method for Critical-level alerts is `Average`. The comparison operator for Critical-level alerts is `GreaterThanOrEqualToThreshold`. The threshold for Critical-level alerts is `90`. The consecutive number of times for which the metric value meets the trigger condition before a Critical-level alert is triggered is `3`. + * > Statistics verification was added on August 15, 2024. Only the statistical value of the corresponding metric can be set for the Statistics parameter. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://www.alibabacloud.com/help/en/cms/support/appendix-1-metrics). + * + * @param request - PutResourceMetricRulesRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns PutResourceMetricRulesResponse + */ + async putResourceMetricRulesWithOptions(request: $_model.PutResourceMetricRulesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutResourceMetricRulesResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.rules)) { + query["Rules"] = request.rules; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "PutResourceMetricRules", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.PutResourceMetricRulesResponse>(await this.callApi(params, req, runtime), new $_model.PutResourceMetricRulesResponse({})); + } + + /** + * Creates multiple alert rules for the specified metric of a specified resource. + * + * @remarks + * This topic provides an example on how to create a threshold-triggered alert rule for the `cpu_total` metric of an Elastic Compute Service (ECS) instance whose ID is `i-uf6j91r34rnwawoo****`. The namespace of ECS metrics is `acs_ecs_dashboard`. The alert contact group of the alert rule is `ECS_Group`. The name of the alert rule is `test123`. The ID of the alert rule is `a151cd6023eacee2f0978e03863cc1697c89508****`. The statistical method for Critical-level alerts is `Average`. The comparison operator for Critical-level alerts is `GreaterThanOrEqualToThreshold`. The threshold for Critical-level alerts is `90`. The consecutive number of times for which the metric value meets the trigger condition before a Critical-level alert is triggered is `3`. + * > Statistics verification was added on August 15, 2024. Only the statistical value of the corresponding metric can be set for the Statistics parameter. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://www.alibabacloud.com/help/en/cms/support/appendix-1-metrics). + * + * @param request - PutResourceMetricRulesRequest + * @returns PutResourceMetricRulesResponse + */ + async putResourceMetricRules(request: $_model.PutResourceMetricRulesRequest): Promise<$_model.PutResourceMetricRulesResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.putResourceMetricRulesWithOptions(request, runtime); + } + + /** + * Deletes tags. + * + * @param request - RemoveTagsRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns RemoveTagsResponse + */ + async removeTagsWithOptions(request: $_model.RemoveTagsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.RemoveTagsResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.groupIds)) { + query["GroupIds"] = request.groupIds; + } + + if (!$dara.isNull(request.tag)) { + query["Tag"] = request.tag; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "RemoveTags", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.RemoveTagsResponse>(await this.callApi(params, req, runtime), new $_model.RemoveTagsResponse({})); + } + + /** + * Deletes tags. + * + * @param request - RemoveTagsRequest + * @returns RemoveTagsResponse + */ + async removeTags(request: $_model.RemoveTagsRequest): Promise<$_model.RemoveTagsResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.removeTagsWithOptions(request, runtime); + } + + /** + * Debugs a system event of an Alibaba Cloud service. + * + * @remarks + * This operation is used to test whether a system event can be triggered as expected. You can call this operation to simulate a system event and check whether an expected response is returned after the system event triggers an alert. + * + * @param request - SendDryRunSystemEventRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns SendDryRunSystemEventResponse + */ + async sendDryRunSystemEventWithOptions(request: $_model.SendDryRunSystemEventRequest, runtime: $dara.RuntimeOptions): Promise<$_model.SendDryRunSystemEventResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.eventContent)) { + query["EventContent"] = request.eventContent; + } + + if (!$dara.isNull(request.eventName)) { + query["EventName"] = request.eventName; + } + + if (!$dara.isNull(request.groupId)) { + query["GroupId"] = request.groupId; + } + + if (!$dara.isNull(request.product)) { + query["Product"] = request.product; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "SendDryRunSystemEvent", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.SendDryRunSystemEventResponse>(await this.callApi(params, req, runtime), new $_model.SendDryRunSystemEventResponse({})); + } + + /** + * Debugs a system event of an Alibaba Cloud service. + * + * @remarks + * This operation is used to test whether a system event can be triggered as expected. You can call this operation to simulate a system event and check whether an expected response is returned after the system event triggers an alert. + * + * @param request - SendDryRunSystemEventRequest + * @returns SendDryRunSystemEventResponse + */ + async sendDryRunSystemEvent(request: $_model.SendDryRunSystemEventRequest): Promise<$_model.SendDryRunSystemEventResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.sendDryRunSystemEventWithOptions(request, runtime); + } + + /** + * Uninstalls the CloudMonitor agent from a third-party host. + * + * @remarks + * > This API operation is not applicable to Elastic Compute Service (ECS) instances. To uninstall the agent from an ECS instance, see [Install and uninstall the CloudMonitor agent](https://help.aliyun.com/document_detail/183482.html). + * + * @param request - UninstallMonitoringAgentRequest + * @param runtime - runtime options for this request RuntimeOptions + * @returns UninstallMonitoringAgentResponse + */ + async uninstallMonitoringAgentWithOptions(request: $_model.UninstallMonitoringAgentRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UninstallMonitoringAgentResponse> { + request.validate(); + let query = { }; + if (!$dara.isNull(request.instanceId)) { + query["InstanceId"] = request.instanceId; + } + + let req = new $OpenApiUtil.OpenApiRequest({ + query: OpenApiUtil.query(query), + }); + let params = new $OpenApiUtil.Params({ + action: "UninstallMonitoringAgent", + version: "2019-01-01", + protocol: "HTTPS", + pathname: "/", + method: "POST", + authType: "AK", + style: "RPC", + reqBodyType: "formData", + bodyType: "json", + }); + return $dara.cast<$_model.UninstallMonitoringAgentResponse>(await this.callApi(params, req, runtime), new $_model.UninstallMonitoringAgentResponse({})); + } + + /** + * Uninstalls the CloudMonitor agent from a third-party host. + * + * @remarks + * > This API operation is not applicable to Elastic Compute Service (ECS) instances. To uninstall the agent from an ECS instance, see [Install and uninstall the CloudMonitor agent](https://help.aliyun.com/document_detail/183482.html). + * + * @param request - UninstallMonitoringAgentRequest + * @returns UninstallMonitoringAgentResponse + */ + async uninstallMonitoringAgent(request: $_model.UninstallMonitoringAgentRequest): Promise<$_model.UninstallMonitoringAgentResponse> { + let runtime = new $dara.RuntimeOptions({ }); + return await this.uninstallMonitoringAgentWithOptions(request, runtime); + } + +} diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/AddTagsRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/AddTagsRequest.ts new file mode 100644 index 0000000..9382c44 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/AddTagsRequest.ts @@ -0,0 +1,114 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class AddTagsRequestTag extends $dara.Model { + /** + * @remarks + * The tag key. + * + * Valid values of N: 1 to 3. A tag key can be 1 to 64 characters in length. + * + * You can create a tag key or specify an existing tag key. For more information about how to obtain a tag key, see [DescribeTagKeyList](https://help.aliyun.com/document_detail/2513189.html). + * + * > The tag key cannot start with `aliyun` or `acs:`. The tag key (`Tag.N.Key`) and tag value (`Tag.N.Value`) must be specified at the same time. + * + * This parameter is required. + * + * @example + * key1 + */ + key?: string; + /** + * @remarks + * The tag value. + * + * Valid values of N: 1 to 3. A tag value can be 1 to 64 characters in length. + * + * You can create a tag value or specify an existing tag value. For more information about how to obtain a tag value, see [DescribeTagValueList](https://help.aliyun.com/document_detail/2513188.html). + * + * > The tag value cannot start with `aliyun` or `acs:`. The tag key (`Tag.N.Key`) and tag value (`Tag.N.Value`) must be specified at the same time. + * + * This parameter is required. + * + * @example + * value1 + */ + value?: string; + static names(): { [key: string]: string } { + return { + key: 'Key', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + key: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class AddTagsRequest extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * Valid values of N: 1 to 20. + * + * For information about how to query the IDs of application groups, see [DescribeMonitorGroups](https://help.aliyun.com/document_detail/2513168.html). + * + * This parameter is required. + * + * @example + * 7301**** + */ + groupIds?: string[]; + regionId?: string; + /** + * @remarks + * The tags. + * + * This parameter is required. + */ + tag?: AddTagsRequestTag[]; + static names(): { [key: string]: string } { + return { + groupIds: 'GroupIds', + regionId: 'RegionId', + tag: 'Tag', + }; + } + + static types(): { [key: string]: any } { + return { + groupIds: { 'type': 'array', 'itemType': 'string' }, + regionId: 'string', + tag: { 'type': 'array', 'itemType': AddTagsRequestTag }, + }; + } + + validate() { + if(Array.isArray(this.groupIds)) { + $dara.Model.validateArray(this.groupIds); + } + if(Array.isArray(this.tag)) { + $dara.Model.validateArray(this.tag); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/AddTagsResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/AddTagsResponse.ts new file mode 100644 index 0000000..a84ae4d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/AddTagsResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { AddTagsResponseBody } from "./AddTagsResponseBody"; + + +export class AddTagsResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: AddTagsResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: AddTagsResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/AddTagsResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/AddTagsResponseBody.ts new file mode 100644 index 0000000..c3a50bb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/AddTagsResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class AddTagsResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * DAE4B115-3847-5438-8709-423627F0A3A3 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/AlertEvent.ts b/backend/node_modules/@alicloud/cms20190101/src/models/AlertEvent.ts new file mode 100644 index 0000000..645465a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/AlertEvent.ts @@ -0,0 +1,142 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +/** + */ +export class AlertEventMetrics extends $dara.Model { + curValue?: string; + metricName?: string; + metricNameEn?: string; + metricNameZh?: string; + operator?: string; + statistics?: string; + threshold?: string; + unit?: string; + unitFactor?: number; + static names(): { [key: string]: string } { + return { + curValue: 'CurValue', + metricName: 'MetricName', + metricNameEn: 'MetricNameEn', + metricNameZh: 'MetricNameZh', + operator: 'Operator', + statistics: 'Statistics', + threshold: 'Threshold', + unit: 'Unit', + unitFactor: 'UnitFactor', + }; + } + + static types(): { [key: string]: any } { + return { + curValue: 'string', + metricName: 'string', + metricNameEn: 'string', + metricNameZh: 'string', + operator: 'string', + statistics: 'string', + threshold: 'string', + unit: 'string', + unitFactor: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class AlertEvent extends $dara.Model { + alertName?: string; + alertStatus?: string; + arn?: string; + content?: string; + customLabels?: { [key: string]: any }; + deDupId?: string; + details?: string; + eventName?: string; + eventType?: string; + expression?: string; + metrics?: AlertEventMetrics[]; + product?: string; + resourceInfo?: { [key: string]: any }; + ruleName?: string; + severity?: string; + source?: string; + summary?: string; + timestamp?: number; + traceId?: string; + userId?: string; + static names(): { [key: string]: string } { + return { + alertName: 'AlertName', + alertStatus: 'AlertStatus', + arn: 'Arn', + content: 'Content', + customLabels: 'CustomLabels', + deDupId: 'DeDupId', + details: 'Details', + eventName: 'EventName', + eventType: 'EventType', + expression: 'Expression', + metrics: 'Metrics', + product: 'Product', + resourceInfo: 'ResourceInfo', + ruleName: 'RuleName', + severity: 'Severity', + source: 'Source', + summary: 'Summary', + timestamp: 'Timestamp', + traceId: 'TraceId', + userId: 'UserId', + }; + } + + static types(): { [key: string]: any } { + return { + alertName: 'string', + alertStatus: 'string', + arn: 'string', + content: 'string', + customLabels: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' }, + deDupId: 'string', + details: 'string', + eventName: 'string', + eventType: 'string', + expression: 'string', + metrics: { 'type': 'array', 'itemType': AlertEventMetrics }, + product: 'string', + resourceInfo: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' }, + ruleName: 'string', + severity: 'string', + source: 'string', + summary: 'string', + timestamp: 'number', + traceId: 'string', + userId: 'string', + }; + } + + validate() { + if(this.customLabels) { + $dara.Model.validateMap(this.customLabels); + } + if(Array.isArray(this.metrics)) { + $dara.Model.validateArray(this.metrics); + } + if(this.resourceInfo) { + $dara.Model.validateMap(this.resourceInfo); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/AlertStrategyRelation.ts b/backend/node_modules/@alicloud/cms20190101/src/models/AlertStrategyRelation.ts new file mode 100644 index 0000000..99640a3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/AlertStrategyRelation.ts @@ -0,0 +1,30 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class AlertStrategyRelation extends $dara.Model { + alertName?: string; + strategyUuid?: string; + static names(): { [key: string]: string } { + return { + alertName: 'AlertName', + strategyUuid: 'StrategyUuid', + }; + } + + static types(): { [key: string]: any } { + return { + alertName: 'string', + strategyUuid: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ApplyMetricRuleTemplateRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ApplyMetricRuleTemplateRequest.ts new file mode 100644 index 0000000..b07f36b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ApplyMetricRuleTemplateRequest.ts @@ -0,0 +1,132 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class ApplyMetricRuleTemplateRequest extends $dara.Model { + /** + * @remarks + * The template application policy. Valid values: + * + * * all (default): deletes all the rules that are created by using the alert template from the selected application group, and then creates alert rules based on the template. + * * append: deletes the rules that are created by using the alert template from the selected application group, and then creates alert rules based on the existing template. + * + * @example + * all + */ + appendMode?: string; + /** + * @remarks + * The mode in which the alert template is applied. Valid values: + * + * * GROUP_INSTANCE_FIRST: The metrics in the application group take precedence. If a metric specified in the alert template does not exist in the application group, the system does not generate an alert rule for the metric based on the alert template. + * * ALARM_TEMPLATE_FIRST: The metrics specified in the alert template take precedence. If a metric specified in the alert template does not exist in the application group, the system still generates an alert rule for the metric based on the alert template. + * + * @example + * GROUP_INSTANCE_FIRST + */ + applyMode?: string; + /** + * @remarks + * The end of the time period during which the alert rule is effective. Valid values: 00 to 23. A value of 00 indicates 00:59 and a value of 23 indicates 23:59. + * + * @example + * 23 + */ + enableEndTime?: number; + /** + * @remarks + * The beginning of the time period during which the alert rule is effective. Valid values: 00 to 23. A value of 00 indicates 00:00 and a value of 23 indicates 23:00. + * + * @example + * 00 + */ + enableStartTime?: number; + /** + * @remarks + * The ID of the application group to which the alert template is applied. + * + * For more information about how to query the ID of an application group, see [DescribeMonitorGroups](https://help.aliyun.com/document_detail/115032.html). + * + * This parameter is required. + * + * @example + * 123456 + */ + groupId?: number; + /** + * @remarks + * The alert notification method. Valid values: + * + * Set the value to 4. A value of 4 indicates that alert notifications are sent by using TradeManager and DingTalk chatbots. + * + * @example + * 4 + */ + notifyLevel?: number; + /** + * @remarks + * The mute period during which notifications are not repeatedly sent for an alert. Unit: seconds. Default value: 86400. + * + * > Only one alert notification is sent during each mute period even if the metric value exceeds the alert threshold several times. + * + * @example + * 86400 + */ + silenceTime?: number; + /** + * @remarks + * The ID of the alert template. + * + * For more information about how to query the IDs of alert templates, see [DescribeMetricRuleTemplateList](https://help.aliyun.com/document_detail/114982.html). + * + * This parameter is required. + * + * @example + * 700**** + */ + templateIds?: string; + /** + * @remarks + * The callback URL to which a POST request is sent when an alert is triggered based on the alert rule. + * + * @example + * https://www.aliyun.com + */ + webhook?: string; + static names(): { [key: string]: string } { + return { + appendMode: 'AppendMode', + applyMode: 'ApplyMode', + enableEndTime: 'EnableEndTime', + enableStartTime: 'EnableStartTime', + groupId: 'GroupId', + notifyLevel: 'NotifyLevel', + silenceTime: 'SilenceTime', + templateIds: 'TemplateIds', + webhook: 'Webhook', + }; + } + + static types(): { [key: string]: any } { + return { + appendMode: 'string', + applyMode: 'string', + enableEndTime: 'number', + enableStartTime: 'number', + groupId: 'number', + notifyLevel: 'number', + silenceTime: 'number', + templateIds: 'string', + webhook: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ApplyMetricRuleTemplateResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ApplyMetricRuleTemplateResponse.ts new file mode 100644 index 0000000..115c4bf --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ApplyMetricRuleTemplateResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { ApplyMetricRuleTemplateResponseBody } from "./ApplyMetricRuleTemplateResponseBody"; + + +export class ApplyMetricRuleTemplateResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: ApplyMetricRuleTemplateResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: ApplyMetricRuleTemplateResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ApplyMetricRuleTemplateResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ApplyMetricRuleTemplateResponseBody.ts new file mode 100644 index 0000000..bb8b011 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ApplyMetricRuleTemplateResponseBody.ts @@ -0,0 +1,194 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class ApplyMetricRuleTemplateResponseBodyResourceAlertResults extends $dara.Model { + /** + * @remarks + * The responses code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * alert rule is creating, please wait a few minutes. + */ + message?: string; + /** + * @remarks + * The ID of the alert rule. + * + * @example + * applyTemplate8ab74c6b-9f27-47ab-8841-de01dc08**** + */ + ruleId?: string; + /** + * @remarks + * The name of the alert rule. + * + * @example + * test123 + */ + ruleName?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + ruleId: 'RuleId', + ruleName: 'RuleName', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + ruleId: 'string', + ruleName: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class ApplyMetricRuleTemplateResponseBodyResource extends $dara.Model { + /** + * @remarks + * The details of the generated alert rule. + */ + alertResults?: ApplyMetricRuleTemplateResponseBodyResourceAlertResults[]; + /** + * @remarks + * The ID of the application group. + * + * @example + * 123456 + */ + groupId?: number; + static names(): { [key: string]: string } { + return { + alertResults: 'AlertResults', + groupId: 'GroupId', + }; + } + + static types(): { [key: string]: any } { + return { + alertResults: { 'type': 'array', 'itemType': ApplyMetricRuleTemplateResponseBodyResourceAlertResults }, + groupId: 'number', + }; + } + + validate() { + if(Array.isArray(this.alertResults)) { + $dara.Model.validateArray(this.alertResults); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class ApplyMetricRuleTemplateResponseBody extends $dara.Model { + /** + * @remarks + * The responses code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The returned message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 3F897F3C-020A-4993-95B4-63ABB84F83E6 + */ + requestId?: string; + /** + * @remarks + * The resources that are affected by the alert rule. + */ + resource?: ApplyMetricRuleTemplateResponseBodyResource; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + resource: 'Resource', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'number', + message: 'string', + requestId: 'string', + resource: ApplyMetricRuleTemplateResponseBodyResource, + success: 'boolean', + }; + } + + validate() { + if(this.resource && typeof (this.resource as any).validate === 'function') { + (this.resource as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/BatchCreateInstantSiteMonitorRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/BatchCreateInstantSiteMonitorRequest.ts new file mode 100644 index 0000000..f3b3b65 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/BatchCreateInstantSiteMonitorRequest.ts @@ -0,0 +1,125 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class BatchCreateInstantSiteMonitorRequestTaskList extends $dara.Model { + /** + * @remarks + * The URL or IP address that is monitored by the task. + * + * > You must create at least one site monitoring task. You must specify all of the `Address`, `TaskName`, and `TaskType` parameters in each request. + * + * @example + * https://www.aliyun.com + */ + address?: string; + /** + * @remarks + * The detection points. If you leave this parameter empty, the system randomly selects three detection points. + * + * The value is a `JSON array`. Example: `{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}`. The values of the city field indicate Beijing, Hangzhou, and Qingdao. + * + * For information about how to obtain detection points, see [DescribeSiteMonitorISPCityList](https://help.aliyun.com/document_detail/115045.html). + * + * @example + * [{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}] + */ + ispCities?: string; + /** + * @remarks + * The extended options of the protocol that is used by the site monitoring task. The options vary based on the protocol. + * + * @example + * {"time_out":5000} + */ + optionsJson?: string; + /** + * @remarks + * The name of the site monitoring task. + * + * The name must be 4 to 100 characters in length, and can contain letters, digits, and underscores (_). + * + * > You must create at least one site monitoring task. You must specify all of the `Address`, `TaskName`, and `TaskType` parameters in each request. + * + * @example + * HangZhou_ECS1 + */ + taskName?: string; + /** + * @remarks + * The type of the site monitoring task. + * + * Valid values: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP. + * + * > You must create at least one site monitoring task. You must specify all of the `Address`, `TaskName`, and `TaskType` parameters in each request. + * + * @example + * HTTP + */ + taskType?: string; + static names(): { [key: string]: string } { + return { + address: 'Address', + ispCities: 'IspCities', + optionsJson: 'OptionsJson', + taskName: 'TaskName', + taskType: 'TaskType', + }; + } + + static types(): { [key: string]: any } { + return { + address: 'string', + ispCities: 'string', + optionsJson: 'string', + taskName: 'string', + taskType: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class BatchCreateInstantSiteMonitorRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * The site monitoring tasks. + * + * > You must create at least one site monitoring task. You must specify all of the `Address`, `TaskName`, and `TaskType` parameters in each request. + * + * This parameter is required. + */ + taskList?: BatchCreateInstantSiteMonitorRequestTaskList[]; + static names(): { [key: string]: string } { + return { + regionId: 'RegionId', + taskList: 'TaskList', + }; + } + + static types(): { [key: string]: any } { + return { + regionId: 'string', + taskList: { 'type': 'array', 'itemType': BatchCreateInstantSiteMonitorRequestTaskList }, + }; + } + + validate() { + if(Array.isArray(this.taskList)) { + $dara.Model.validateArray(this.taskList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/BatchCreateInstantSiteMonitorResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/BatchCreateInstantSiteMonitorResponse.ts new file mode 100644 index 0000000..6dec0ac --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/BatchCreateInstantSiteMonitorResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { BatchCreateInstantSiteMonitorResponseBody } from "./BatchCreateInstantSiteMonitorResponseBody"; + + +export class BatchCreateInstantSiteMonitorResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: BatchCreateInstantSiteMonitorResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: BatchCreateInstantSiteMonitorResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/BatchCreateInstantSiteMonitorResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/BatchCreateInstantSiteMonitorResponseBody.ts new file mode 100644 index 0000000..d4c8030 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/BatchCreateInstantSiteMonitorResponseBody.ts @@ -0,0 +1,122 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class BatchCreateInstantSiteMonitorResponseBodyData extends $dara.Model { + /** + * @remarks + * The ID of the site monitoring task. + * + * @example + * 679fbe4f-b80b-4706-91b2-5427b43e**** + */ + taskId?: string; + /** + * @remarks + * The name of the site monitoring task. + * + * @example + * HangZhou_ECS1 + */ + taskName?: string; + static names(): { [key: string]: string } { + return { + taskId: 'TaskId', + taskName: 'TaskName', + }; + } + + static types(): { [key: string]: any } { + return { + taskId: 'string', + taskName: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class BatchCreateInstantSiteMonitorResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The information about the site monitoring task. + * + * @example + * [{"taskName": "HangZhou_ECS1", "taskId": "679fbe4f-b80b-4706-91b2-5427b43e****"}] + */ + data?: BatchCreateInstantSiteMonitorResponseBodyData[]; + /** + * @remarks + * The returned message. + * + * @example + * successful + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 7AE72720-2C96-5446-9F2B-308C7CEDFF1A + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + data: 'Data', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + data: { 'type': 'array', 'itemType': BatchCreateInstantSiteMonitorResponseBodyData }, + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + if(Array.isArray(this.data)) { + $dara.Model.validateArray(this.data); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/BatchExportRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/BatchExportRequest.ts new file mode 100644 index 0000000..9ce4824 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/BatchExportRequest.ts @@ -0,0 +1,99 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class BatchExportRequest extends $dara.Model { + /** + * @remarks + * When you call this operation to export data, you must specify the `Cursor` parameter. You can obtain the value of the `Cursor` parameter by using one of the following methods: + * + * * When you call this operation for the first time, you must call the Cursor operation to obtain the `Cursor` value. For more information, see [Cursor](https://help.aliyun.com/document_detail/2330730.html). + * * When you call this operation again, you can obtain the `Cursor` value from the returned data of the last call. + * + * This parameter is required. + * + * @example + * eyJidWNrZXRzIjo0LCJjdXJzb3IiOiIxNjQxNDU0MzIwMDAwMWUxY2YxNWY0NTU0MTliZjllYTY4OWQ2ODI1OTU1Yzc1NmZjMDQ2OTMxMzczMzM2MzUzMTMxMzEzMzM0MzMzODM5MzEzMTMwMjQyYzY5MmQ3NTY2MzYzMjY3NmI2ZjM5MzU2YjY4MzAzMTYyNzg3MTcwNjkzMTM3MjQyYyIsImN1cnNvclZlcnNpb24iOiJxdWVyeSIsImVuZFRpbWUiOjE2NDE0NTQ3OTU4MjMsImV4cG9ydEVuZFRpbWUiOjE2NDE0NTQ3OTU4MjMsImV4cG9ydFN0YXJ0VGltZSI6MTY0MTQ1NDE5NTgyMywiZXhwcmVzc1JhbmdlIjpmYWxzZSwiaGFzTmV4dCI6dHJ1ZSwiaW5wdXRNZXRyaWMiOiJDUFVVdGlsaXphdGlvbiIsImlucHV0TmFtZXNwYWNlIjoiYWNzX2Vjc19kYXNoYm9hcmQiLCJsaW1pdCI6MTAwMCwibG9nVGltZU1vZGUiOnRydWUsIm1hdGNoZXJzIjp7ImNoYWluIjpbeyJsYWJlbCI6InVzZXJJZCIsIm9wZXJhdG9yIjoiRVFVQUxTIiwidmFsdWUiOiIxNzM2NTExMTM0Mzg5MTEwIn1dfSwibWV0cmljIjoiQ1BVVXRpbGl6YXRpb24iLCJtZXRyaWNUeXBlIjoiTUVUUklDIiwibmFtZXNwYWNlIjoiYWNzX2Vjc19kYXNoYm9hcmQiLCJuZXh0UGtBZGFwdGVyIjp7fSwib2Zmc2V0IjowLCJwYXJlbnRVaWQiOjEyNzA2NzY2Nzk1NDY3MDQsInN0YXJ0VGltZSI6MTY0MTQ1NDE5NTgyMywic3RlcCI6LTEsInRpbWVvdXQiOjEyMCwid2luZG93Ijo2**** + */ + cursor?: string; + /** + * @remarks + * The maximum number of data entries that can be returned in each response. + * + * Valid values: 1 to 10000. + * + * This parameter is required. + * + * @example + * 1000 + */ + length?: number; + /** + * @remarks + * The statistical methods used to customize the returned data. By default, the measurements based on all statistical methods are returned. + * + * For example, the `cpu_idle` metric of ECS (`acs_ecs_dashboard`) has three statistical methods: `Average`, `Maximum`, and `Minimum`. If you want to return only the measurements based on the `Average` and `Maximum` statistical methods, set this parameter to `["Average", "Maximum"]`. + * + * The statistical methods of metrics are displayed in the `Statistics` column on the Metrics page of each cloud service. For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + */ + measurements?: string[]; + /** + * @remarks + * The metric that is used to monitor the cloud service. + * + * For more information about the metrics of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * > The value of this parameter must be the same as the value of the request parameter `Metric` in the Cursor operation. + * + * This parameter is required. + * + * @example + * cpu_idle + */ + metric?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * For more information about the namespaces of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * > The value of this parameter must be the same as the value of the request parameter `Namespace` in the Cursor operation. + * + * This parameter is required. + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + static names(): { [key: string]: string } { + return { + cursor: 'Cursor', + length: 'Length', + measurements: 'Measurements', + metric: 'Metric', + namespace: 'Namespace', + }; + } + + static types(): { [key: string]: any } { + return { + cursor: 'string', + length: 'number', + measurements: { 'type': 'array', 'itemType': 'string' }, + metric: 'string', + namespace: 'string', + }; + } + + validate() { + if(Array.isArray(this.measurements)) { + $dara.Model.validateArray(this.measurements); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/BatchExportResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/BatchExportResponse.ts new file mode 100644 index 0000000..82001a2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/BatchExportResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { BatchExportResponseBody } from "./BatchExportResponseBody"; + + +export class BatchExportResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: BatchExportResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: BatchExportResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/BatchExportResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/BatchExportResponseBody.ts new file mode 100644 index 0000000..a8172b8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/BatchExportResponseBody.ts @@ -0,0 +1,125 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { MetricStat } from "./MetricStat"; + + +export class BatchExportResponseBody extends $dara.Model { + /** + * @remarks + * The timestamp of the data requested by the backend. A larger timestamp indicates that the data export time is closer to the current time. + * + * @example + * 1678781819000 + */ + anchor?: number; + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The Cursor information that is used to call this operation again. + * + * > If `null` is returned, the monitoring data is exported. + * + * @example + * v2.5eyJidWNrZXRzIjo0LCJjdXJzb3IiOiIxNjQxNDU0ODAwMDAwMWUxY2YxNWY0NTU0MTliZjllYTY4OWQ2ODI1OTU1Yzc1NmZjMDQ2OTMxMzczMzM2MzUzMTMxMzEzMzM0MzMzODM5MzEzMTMwMjQyYzY5MmQzMjdhNjU2MjY3N2E2NjZhNzczOTY2NmM3Mjc0NjM3MzY5Njg3NDcyMjQyYyIsImN1cnNvclZlcnNpb24iOiJxdWVyeSIsImVuZFRpbWUiOjE2NDE0NTUyMzYxMTIsImV4cG9ydEVuZFRpbWUiOjE2NDE0NTUyMzYxMTIsImV4cG9ydFN0YXJ0VGltZSI6MTY0MTQ1NDYzNjExMiwiZXhwcmVzc1JhbmdlIjpmYWxzZSwiaGFzTmV4dCI6dHJ1ZSwiaW5wdXRNZXRyaWMiOiJDUFVVdGlsaXphdGlvbiIsImlucHV0TmFtZXNwYWNlIjoiYWNzX2Vjc19kYXNoYm9hcmQiLCJsaW1pdCI6MTAwMCwibG9nVGltZU1vZGUiOnRydWUsIm1hdGNoZXJzIjp7ImNoYWluIjpbeyJsYWJlbCI6InVzZXJJZCIsIm9wZXJhdG9yIjoiRVFVQUxTIiwidmFsdWUiOiIxNzM2NTExMTM0Mzg5MTEwIn1dfSwibWV0cmljIjoiQ1BVVXRpbGl6YXRpb24iLCJtZXRyaWNUeXBlIjoiTUVUUklDIiwibmFtZXNwYWNlIjoiYWNzX2Vjc19kYXNoYm9hcmQiLCJuZXh0UGtBZGFwdGVyIjp7fSwib2Zmc2V0IjowLCJwYXJlbnRVaWQiOjEyNzA2NzY2Nzk1NDY3MDQsInN0YXJ0VGltZSI6MTY0MTQ1NDYzNjExMiwic3RlcCI6LTEsInRpbWVvdXQiOjEyMCwid2luZG93Ijo2MH0*** + */ + cursor?: string; + /** + * @remarks + * The data returned in this call. + */ + dataResults?: MetricStat[]; + /** + * @remarks + * Indicates whether the data has been exported. Valid values: + * + * * true: Some data is not exported. + * * false: All the data is exported. + * + * @example + * true + */ + hasNext?: boolean; + /** + * @remarks + * The number of data entries returned in this call. + * + * @example + * 1000 + */ + length?: number; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 251402CD-305C-1617-808E-D8C11FC8138D + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + anchor: 'Anchor', + code: 'Code', + cursor: 'Cursor', + dataResults: 'DataResults', + hasNext: 'HasNext', + length: 'Length', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + anchor: 'number', + code: 'number', + cursor: 'string', + dataResults: { 'type': 'array', 'itemType': MetricStat }, + hasNext: 'boolean', + length: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + if(Array.isArray(this.dataResults)) { + $dara.Model.validateArray(this.dataResults); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/BatchExportShrinkRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/BatchExportShrinkRequest.ts new file mode 100644 index 0000000..da6224e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/BatchExportShrinkRequest.ts @@ -0,0 +1,96 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class BatchExportShrinkRequest extends $dara.Model { + /** + * @remarks + * When you call this operation to export data, you must specify the `Cursor` parameter. You can obtain the value of the `Cursor` parameter by using one of the following methods: + * + * * When you call this operation for the first time, you must call the Cursor operation to obtain the `Cursor` value. For more information, see [Cursor](https://help.aliyun.com/document_detail/2330730.html). + * * When you call this operation again, you can obtain the `Cursor` value from the returned data of the last call. + * + * This parameter is required. + * + * @example + * eyJidWNrZXRzIjo0LCJjdXJzb3IiOiIxNjQxNDU0MzIwMDAwMWUxY2YxNWY0NTU0MTliZjllYTY4OWQ2ODI1OTU1Yzc1NmZjMDQ2OTMxMzczMzM2MzUzMTMxMzEzMzM0MzMzODM5MzEzMTMwMjQyYzY5MmQ3NTY2MzYzMjY3NmI2ZjM5MzU2YjY4MzAzMTYyNzg3MTcwNjkzMTM3MjQyYyIsImN1cnNvclZlcnNpb24iOiJxdWVyeSIsImVuZFRpbWUiOjE2NDE0NTQ3OTU4MjMsImV4cG9ydEVuZFRpbWUiOjE2NDE0NTQ3OTU4MjMsImV4cG9ydFN0YXJ0VGltZSI6MTY0MTQ1NDE5NTgyMywiZXhwcmVzc1JhbmdlIjpmYWxzZSwiaGFzTmV4dCI6dHJ1ZSwiaW5wdXRNZXRyaWMiOiJDUFVVdGlsaXphdGlvbiIsImlucHV0TmFtZXNwYWNlIjoiYWNzX2Vjc19kYXNoYm9hcmQiLCJsaW1pdCI6MTAwMCwibG9nVGltZU1vZGUiOnRydWUsIm1hdGNoZXJzIjp7ImNoYWluIjpbeyJsYWJlbCI6InVzZXJJZCIsIm9wZXJhdG9yIjoiRVFVQUxTIiwidmFsdWUiOiIxNzM2NTExMTM0Mzg5MTEwIn1dfSwibWV0cmljIjoiQ1BVVXRpbGl6YXRpb24iLCJtZXRyaWNUeXBlIjoiTUVUUklDIiwibmFtZXNwYWNlIjoiYWNzX2Vjc19kYXNoYm9hcmQiLCJuZXh0UGtBZGFwdGVyIjp7fSwib2Zmc2V0IjowLCJwYXJlbnRVaWQiOjEyNzA2NzY2Nzk1NDY3MDQsInN0YXJ0VGltZSI6MTY0MTQ1NDE5NTgyMywic3RlcCI6LTEsInRpbWVvdXQiOjEyMCwid2luZG93Ijo2**** + */ + cursor?: string; + /** + * @remarks + * The maximum number of data entries that can be returned in each response. + * + * Valid values: 1 to 10000. + * + * This parameter is required. + * + * @example + * 1000 + */ + length?: number; + /** + * @remarks + * The statistical methods used to customize the returned data. By default, the measurements based on all statistical methods are returned. + * + * For example, the `cpu_idle` metric of ECS (`acs_ecs_dashboard`) has three statistical methods: `Average`, `Maximum`, and `Minimum`. If you want to return only the measurements based on the `Average` and `Maximum` statistical methods, set this parameter to `["Average", "Maximum"]`. + * + * The statistical methods of metrics are displayed in the `Statistics` column on the Metrics page of each cloud service. For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + */ + measurementsShrink?: string; + /** + * @remarks + * The metric that is used to monitor the cloud service. + * + * For more information about the metrics of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * > The value of this parameter must be the same as the value of the request parameter `Metric` in the Cursor operation. + * + * This parameter is required. + * + * @example + * cpu_idle + */ + metric?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * For more information about the namespaces of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * > The value of this parameter must be the same as the value of the request parameter `Namespace` in the Cursor operation. + * + * This parameter is required. + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + static names(): { [key: string]: string } { + return { + cursor: 'Cursor', + length: 'Length', + measurementsShrink: 'Measurements', + metric: 'Metric', + namespace: 'Namespace', + }; + } + + static types(): { [key: string]: any } { + return { + cursor: 'string', + length: 'number', + measurementsShrink: 'string', + metric: 'string', + namespace: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateDynamicTagGroupRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateDynamicTagGroupRequest.ts new file mode 100644 index 0000000..fd5163c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateDynamicTagGroupRequest.ts @@ -0,0 +1,186 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateDynamicTagGroupRequestMatchExpress extends $dara.Model { + /** + * @remarks + * The keys of the tags that are used to create the application group. If a specified key is attached to multiple resources, the resources that have the same key-value pair are added to the same group. + * + * @example + * appname + */ + tagName?: string; + /** + * @remarks + * The tag values of the cloud resources. Set the value of N to 1. + * + * > If you set the `MatchExpress.N.TagValueMatchFunction` parameter, you must also set the `MatchExpress.N.TagValue` parameter. + * + * @example + * instance + */ + tagValue?: string; + /** + * @remarks + * The method that is used to match the tag values of the cloud resources. Set the value of N to 1. Valid values: + * + * * contains: contains + * * startWith: starts with a prefix + * * endWith: ends with a suffix + * * notContains: does not contain + * * equals: equals + * * all: matches all + * + * > If you set the `MatchExpress.N.TagValueMatchFunction` parameter, you must also set the `MatchExpress.N.TagValue` parameter. + * + * @example + * contains + */ + tagValueMatchFunction?: string; + static names(): { [key: string]: string } { + return { + tagName: 'TagName', + tagValue: 'TagValue', + tagValueMatchFunction: 'TagValueMatchFunction', + }; + } + + static types(): { [key: string]: any } { + return { + tagName: 'string', + tagValue: 'string', + tagValueMatchFunction: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateDynamicTagGroupRequest extends $dara.Model { + /** + * @remarks + * This parameter is required. + * + * @example + * ECS_Group + */ + contactGroupList?: string[]; + /** + * @remarks + * Specifies whether the CloudMonitor agent is automatically installed for the application group. CloudMonitor determines whether to automatically install the CloudMonitor agent for the hosts in an application group based on the value of this parameter. Valid values: + * + * * true: The CloudMonitor agent is automatically installed. + * * false (default value): The CloudMonitor agent is not automatically installed. + * + * @example + * true + */ + enableInstallAgent?: boolean; + /** + * @remarks + * Specifies whether the application group automatically subscribes to event notifications. If events whose severity level is critical or warning occur on resources in an application group, CloudMonitor sends alert notifications. Valid values: + * + * * true: The application group automatically subscribes to event notifications. + * * false (default value): The application group does not automatically subscribe to event notifications. + * + * @example + * true + */ + enableSubscribeEvent?: boolean; + /** + * @remarks + * The conditional expressions used to create an application group based on the tag. + * + * This parameter is required. + */ + matchExpress?: CreateDynamicTagGroupRequestMatchExpress[]; + /** + * @remarks + * The relationship between the conditional expressions for the tag values of the cloud resources. Valid values: + * + * * and (default) + * * or + * + * @example + * and + */ + matchExpressFilterRelation?: string; + regionId?: string; + /** + * @remarks + * The tag keys of the cloud resources. + * + * For more information about how to obtain tag keys, see [DescribeTagKeyList](https://help.aliyun.com/document_detail/145558.html). + * + * This parameter is required. + * + * @example + * ecs_instance + */ + tagKey?: string; + /** + * @remarks + * The ID of the region to which the tags belong. + * + * @example + * cn-hangzhou + */ + tagRegionId?: string; + /** + * @example + * 85**** + */ + templateIdList?: string[]; + static names(): { [key: string]: string } { + return { + contactGroupList: 'ContactGroupList', + enableInstallAgent: 'EnableInstallAgent', + enableSubscribeEvent: 'EnableSubscribeEvent', + matchExpress: 'MatchExpress', + matchExpressFilterRelation: 'MatchExpressFilterRelation', + regionId: 'RegionId', + tagKey: 'TagKey', + tagRegionId: 'TagRegionId', + templateIdList: 'TemplateIdList', + }; + } + + static types(): { [key: string]: any } { + return { + contactGroupList: { 'type': 'array', 'itemType': 'string' }, + enableInstallAgent: 'boolean', + enableSubscribeEvent: 'boolean', + matchExpress: { 'type': 'array', 'itemType': CreateDynamicTagGroupRequestMatchExpress }, + matchExpressFilterRelation: 'string', + regionId: 'string', + tagKey: 'string', + tagRegionId: 'string', + templateIdList: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.contactGroupList)) { + $dara.Model.validateArray(this.contactGroupList); + } + if(Array.isArray(this.matchExpress)) { + $dara.Model.validateArray(this.matchExpress); + } + if(Array.isArray(this.templateIdList)) { + $dara.Model.validateArray(this.templateIdList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateDynamicTagGroupResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateDynamicTagGroupResponse.ts new file mode 100644 index 0000000..d0ea1b8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateDynamicTagGroupResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { CreateDynamicTagGroupResponseBody } from "./CreateDynamicTagGroupResponseBody"; + + +export class CreateDynamicTagGroupResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: CreateDynamicTagGroupResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateDynamicTagGroupResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateDynamicTagGroupResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateDynamicTagGroupResponseBody.ts new file mode 100644 index 0000000..67ec695 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateDynamicTagGroupResponseBody.ts @@ -0,0 +1,79 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateDynamicTagGroupResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call is successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The ID of the tag matching rule. + * + * @example + * 2534dc0a-e3e5-4ae1-a2fc-75ef166c**** + */ + id?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * 84AC6F0B-7945-466A-AA44-99BB5A561F86 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call is successful. Valid values: + * + * * true: The call is successful. + * * false: The call fails. + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + id: 'Id', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + id: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateGroupMetricRulesRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateGroupMetricRulesRequest.ts new file mode 100644 index 0000000..ac78fa3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateGroupMetricRulesRequest.ts @@ -0,0 +1,591 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateGroupMetricRulesRequestGroupMetricRulesEscalationsCritical extends $dara.Model { + comparisonOperator?: string; + n?: string; + preCondition?: string; + statistics?: string; + threshold?: string; + times?: number; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + n: 'N', + preCondition: 'PreCondition', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + n: 'string', + preCondition: 'string', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateGroupMetricRulesRequestGroupMetricRulesEscalationsInfo extends $dara.Model { + comparisonOperator?: string; + n?: string; + preCondition?: string; + statistics?: string; + threshold?: string; + times?: number; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + n: 'N', + preCondition: 'PreCondition', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + n: 'string', + preCondition: 'string', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateGroupMetricRulesRequestGroupMetricRulesEscalationsWarn extends $dara.Model { + comparisonOperator?: string; + n?: string; + preCondition?: string; + statistics?: string; + threshold?: string; + times?: number; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + n: 'N', + preCondition: 'PreCondition', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + n: 'string', + preCondition: 'string', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateGroupMetricRulesRequestGroupMetricRulesEscalations extends $dara.Model { + critical?: CreateGroupMetricRulesRequestGroupMetricRulesEscalationsCritical; + info?: CreateGroupMetricRulesRequestGroupMetricRulesEscalationsInfo; + warn?: CreateGroupMetricRulesRequestGroupMetricRulesEscalationsWarn; + static names(): { [key: string]: string } { + return { + critical: 'Critical', + info: 'Info', + warn: 'Warn', + }; + } + + static types(): { [key: string]: any } { + return { + critical: CreateGroupMetricRulesRequestGroupMetricRulesEscalationsCritical, + info: CreateGroupMetricRulesRequestGroupMetricRulesEscalationsInfo, + warn: CreateGroupMetricRulesRequestGroupMetricRulesEscalationsWarn, + }; + } + + validate() { + if(this.critical && typeof (this.critical as any).validate === 'function') { + (this.critical as any).validate(); + } + if(this.info && typeof (this.info as any).validate === 'function') { + (this.info as any).validate(); + } + if(this.warn && typeof (this.warn as any).validate === 'function') { + (this.warn as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateGroupMetricRulesRequestGroupMetricRulesLabels extends $dara.Model { + /** + * @remarks + * The tag key of the alert rule. The specified tag is contained in alert notifications. + * + * Valid values of N: 1 to 200. + * + * @example + * key1 + */ + key?: string; + /** + * @remarks + * The tag value of the alert rule. The specified tag is contained in alert notifications. + * + * Valid values of N: 1 to 200. + * + * @example + * value1 + */ + value?: string; + static names(): { [key: string]: string } { + return { + key: 'Key', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + key: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateGroupMetricRulesRequestGroupMetricRules extends $dara.Model { + escalations?: CreateGroupMetricRulesRequestGroupMetricRulesEscalations; + /** + * @remarks + * The name of the cloud service. Valid values of N: 1 to 200. Valid value: + * + * * PolarDB: PolarDB + * * NewBGPDDoS: Anti-DDoS Pro + * * IoTDevice: IoT Platform + * * DRDS: Distributed Relational Database Service (DRDS) + * * VS: Video Surveillance System + * * AMQP: Alibaba Cloud Message Queue for AMQP + * * ADS: AnalyticDB + * * APIGateway: API Gateway + * * InternetSharedBandwidth: EIP Bandwidth Plan + * * CDN: Alibaba Cloud Content Delivery Network (CDN) + * * CEN: Cloud Enterprise Network (CEN) + * * DCDN: Dynamic Route for CDN (DCDN) + * * DDoS: Anti-DDoS + * * ECS: Elastic Compute Service (ECS) + * * DirectMail: Direct Mail + * * Elasticsearch: Elasticsearch + * * EMR: E-MapReduce (EMR) + * * ESS: Auto Scaling + * * FunctionCompute: Function Compute + * * RealtimeCompute: Realtime Compute for Apache Flink + * * GlobalAcceleration: Global Accelerator (GA) + * * Hbase: ApsaraDB for HBase + * * TSDB: Time Series Database (TSDB) + * * IPv6trans: IPv6 Translation Service + * * Kafka: Message Queue for Apache Kafka + * * Kubernetes: Container Service for Kubernetes (ACK) + * * KVstore: ApsaraDB for Redis + * * MNS: Message Service (MNS) + * * MongoDB: ApsaraDB for MongoDB + * * MQ: Message Queue + * * NAT: NAT Gateway + * * OpenAd: Open Ad + * * OpenSearch: Open Search + * * OSS: Object Storage Service (OSS) + * * PCDN: P2P CDN + * * petadata: HybridDB for MySQL + * * RDS: ApsaraDB RDS + * * SCDN: Secure CDN + * * SLB: Server Load Balancer (SLB) + * * SLS: Log Service + * * VideoLive: ApsaraVideo Live + * * VOD: ApsaraVideo VOD + * * EIP: Elastic IP Address (EIP) + * * VPN: VPN Gateway + * * AIRec: Artificial Intelligence Recommendation + * * GPDB: AnalyticDB for PostgreSQL + * * DBS: Database Backup (DBS) + * * SAG: Smart Access Gateway (SAG) + * * Memcache: ApsaraDB for Memcache + * * IOT_EDGE: Link IoT Edge + * * OCS: ApsaraDB for Memcache (previous version) + * * VPC: Express Connect + * * EHPC: Elastic High Performance Computing (E-HPC) + * * MPS: ApsaraVideo Media Processing + * * ENS: Edge Node Service (ENS) + * * MaxCompute_Prepay: MaxCompute + * * IoT_Kubernetes: Edge Application Hosting + * * CMS: CloudMonitor + * * batchcomputenew: Batch Compute + * * HBaseUE: ApsaraDB for HBase Performance-enhanced Edition + * * UIS: Ultimate Internet Service (UIS) + * * nls: Intelligent Speech Interaction + * * ots: Tablestore + * * NAS: File Storage NAS + * * ECI: Elastic Container Instance (ECI) + * * OpenAPI: OpenAPI Explorer + * * pvtzpost: Alibaba Cloud DNS PrivateZone + * * blinkonk8s: Flink on Kubernetes + * * FunctionFlow: Serverless Workflow (SWF) + * * SMC: Server Migration Center (SMC) + * * ddosbgp: Anti-DDoS Origin + * * baas: Blockchain as a Service + * * privatelink: PrivateLink + * * cds: ApsaraDB for Cassandra + * * DDH: Dedicated Host + * * RocketMQ: Message Queue for Apache RocketMQ + * * ECC: Express Cloud Connect + * * hbaseserverless: ApsaraDB for HBase Serverless Edition + * * mns_tmp: Message Service + * * hdr: Hybrid Disaster Recovery (HDR) + * * hbr: Hybrid Backup Recovery (HBR) + * * ADB: AnalyticDB for MySQL V3.0 + * * tag: Tag Service + * * GDB: Graph Database + * * WAF: Web Application Firewall (WAF) + * * hcs_sgw: Cloud Storage Gateway (CSG) + * * ipv6gateway: IPv6 Gateway + * * RDS_SAR: ApsaraDB Exclusive Host Group + * * learn: Machine Learning Platform for AI + * * ROS: Resource Orchestration Service (ROS) + * * OOS: Operation Orchestration Service (OOS) + * * bds: Data Synchronization for HBase + * * cfw: Cloud Firewall + * * ddosDip: Anti-DDoS Premium + * * datahub: DataHub + * * hologres: Hologres + * * ExpressConnect: Express Connect + * * dbfs: Database File System (DBFS) + * * clickhouse: ApsaraDB for ClickHouse + * * k8s: Container Service for Kubernetes (ACK) + * * DTS: Data Transmission Service (DTS) + * * AnycastEIP: Anycast Elastic IP Address + * * Lindorm: ApsaraDB for Lindorm + * * config: Cloud Config + * * spark: Databricks DataInsight (DDI) + * * serverless: Serverless App Engine (SAE) + * * alb: Application Load Balancer (ALB) + * * oceanbase: ApsaraDB for OceanBase + * * KMS: Key Management Service (KMS) + * * lvwang: Content Moderation + * * LinkVisual: LinkVisual + * * tair: ApsaraDB for Redis Enhanced Edition (Tair) + * * dlf: Data Lake Formation (DLF) + * * networkmonitor: Site Monitoring + * * pnc: Physical Network Change + * * AIS: Alibaba Cloud Infrastructure + * * cloudgame: Cloud Gaming Platform + * * RTC: Real-Time Communication + * * cloudbox: CloudBox + * * actiontrail: ActionTrail + * * cc: Cloud Connector + * * disk: Elastic Block Storage (EBS) + * * easygene: Genomics Computing Platform + * * cloudphone: Elastic Cloud Phone + * * BMS: Bare Metal Management Service + * * swas: Simple Application Server + * * AvailabilityMonitoring: Availability Monitoring of CloudMonitor + * + * This parameter is required. + * + * @example + * ECS + */ + category?: string; + /** + * @remarks + * The alert contact groups. Valid values of N: 1 to 200. + * + * For information about how to obtain alert contact groups, see [DescribeContactGroupList](https://help.aliyun.com/document_detail/114922.html). + * + * @example + * ECS_Group + */ + contactGroups?: string; + /** + * @remarks + * The dimension of the alert rule. Valid values of N: 1 to 200. + * + * Set the value to a set of key-value pairs, for example, `userId:120886317861****` or `instanceId:i-m5e1qg6uo38rztr4****`. + * + * @example + * [{"instanceId":"i-m5e1qg6uo38rztr4****"}] + */ + dimensions?: string; + /** + * @remarks + * The time period during which the alert rule is effective. Valid values of N: 1 to 200. + * + * @example + * 05:31-23:59 + */ + effectiveInterval?: string; + /** + * @remarks + * The subject of the alert notification email. Valid values of N: 1 to 200. + */ + emailSubject?: string; + /** + * @remarks + * The interval at which CloudMonitor checks whether the alert rule is triggered. Valid values of N: 1 to 200. + * + * Unit: seconds. The default value is the lowest frequency at which the metric is polled. + * + * > We recommend that you set the interval to the data aggregation period. If the interval is shorter than the data aggregation period, alerts cannot be triggered due to insufficient data. + * + * @example + * 60 + */ + interval?: string; + labels?: CreateGroupMetricRulesRequestGroupMetricRulesLabels[]; + /** + * @remarks + * The name of the metric. 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 [Appendix 1: 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 method that is used to handle alerts when no monitoring data is found. Valid values of N: 1 to 200. Valid value: + * + * * KEEP_LAST_STATE (default value): No operation is performed. + * * INSUFFICIENT_DATA: An alert whose content is "Insufficient data" is triggered. + * * OK: The alert rule has no active alerts. + * + * @example + * KEEP_LAST_STATE + */ + noDataPolicy?: string; + /** + * @remarks + * The time period during which the alert rule is ineffective. Valid values of N: 1 to 200. + * + * @example + * 00:00-05:30 + */ + noEffectiveInterval?: string; + /** + * @example + * { + * "NotSendOK": true + * } + */ + options?: string; + /** + * @remarks + * The aggregation period of the metric data. Valid values of N: 1 to 200. + * + * Set the `Period` parameter to an integral multiple of 60. Unit: seconds. Default value: 300. + * + * @example + * 60 + */ + period?: string; + /** + * @remarks + * The ID of the alert rule. Valid values of N: 1 to 200. + * + * This parameter is required. + * + * @example + * 456789 + */ + ruleId?: string; + /** + * @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 mute period during which new alerts are not sent even if the trigger conditions are met. Valid values of N: 1 to 200. + * + * Unit: seconds. Default value: 86400. Minimum value: 3600. + * + * @example + * 86400 + */ + silenceTime?: number; + /** + * @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 + * https://www.aliyun.com + */ + webhook?: string; + static names(): { [key: string]: string } { + return { + escalations: 'Escalations', + category: 'Category', + contactGroups: 'ContactGroups', + dimensions: 'Dimensions', + effectiveInterval: 'EffectiveInterval', + emailSubject: 'EmailSubject', + interval: 'Interval', + labels: 'Labels', + metricName: 'MetricName', + namespace: 'Namespace', + noDataPolicy: 'NoDataPolicy', + noEffectiveInterval: 'NoEffectiveInterval', + options: 'Options', + period: 'Period', + ruleId: 'RuleId', + ruleName: 'RuleName', + silenceTime: 'SilenceTime', + webhook: 'Webhook', + }; + } + + static types(): { [key: string]: any } { + return { + escalations: CreateGroupMetricRulesRequestGroupMetricRulesEscalations, + category: 'string', + contactGroups: 'string', + dimensions: 'string', + effectiveInterval: 'string', + emailSubject: 'string', + interval: 'string', + labels: { 'type': 'array', 'itemType': CreateGroupMetricRulesRequestGroupMetricRulesLabels }, + metricName: 'string', + namespace: 'string', + noDataPolicy: 'string', + noEffectiveInterval: 'string', + options: 'string', + period: 'string', + ruleId: 'string', + ruleName: 'string', + silenceTime: 'number', + webhook: 'string', + }; + } + + validate() { + if(this.escalations && typeof (this.escalations as any).validate === 'function') { + (this.escalations as any).validate(); + } + if(Array.isArray(this.labels)) { + $dara.Model.validateArray(this.labels); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateGroupMetricRulesRequest extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * For information about how to obtain the ID of an application group, see [DescribeMonitorGroups](https://help.aliyun.com/document_detail/115032.html). + * + * This parameter is required. + * + * @example + * 123456 + */ + groupId?: number; + groupMetricRules?: CreateGroupMetricRulesRequestGroupMetricRules[]; + regionId?: string; + static names(): { [key: string]: string } { + return { + groupId: 'GroupId', + groupMetricRules: 'GroupMetricRules', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + groupId: 'number', + groupMetricRules: { 'type': 'array', 'itemType': CreateGroupMetricRulesRequestGroupMetricRules }, + regionId: 'string', + }; + } + + validate() { + if(Array.isArray(this.groupMetricRules)) { + $dara.Model.validateArray(this.groupMetricRules); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateGroupMetricRulesResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateGroupMetricRulesResponse.ts new file mode 100644 index 0000000..294702d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateGroupMetricRulesResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { CreateGroupMetricRulesResponseBody } from "./CreateGroupMetricRulesResponseBody"; + + +export class CreateGroupMetricRulesResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: CreateGroupMetricRulesResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateGroupMetricRulesResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateGroupMetricRulesResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateGroupMetricRulesResponseBody.ts new file mode 100644 index 0000000..c432d66 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateGroupMetricRulesResponseBody.ts @@ -0,0 +1,180 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateGroupMetricRulesResponseBodyResourcesAlertResult extends $dara.Model { + /** + * @remarks + * The status code that is returned for the alert rule. + * + * > The status code 200 indicates that the call is successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The error message that is returned for the alert rule. + * + * @example + * Metric not found. + */ + message?: string; + /** + * @remarks + * The ID of the alert rule. + * + * @example + * 456789 + */ + ruleId?: string; + /** + * @remarks + * The name of the alert rule. + * + * @example + * ECS_Rule1 + */ + ruleName?: string; + /** + * @remarks + * Indicates whether the alert rule was created. Valid value: + * + * - true: The alert rule was created. + * - false: The alert rule failed to be created. + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + ruleId: 'RuleId', + ruleName: 'RuleName', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'number', + message: 'string', + ruleId: 'string', + ruleName: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateGroupMetricRulesResponseBodyResources extends $dara.Model { + alertResult?: CreateGroupMetricRulesResponseBodyResourcesAlertResult[]; + static names(): { [key: string]: string } { + return { + alertResult: 'AlertResult', + }; + } + + static types(): { [key: string]: any } { + return { + alertResult: { 'type': 'array', 'itemType': CreateGroupMetricRulesResponseBodyResourcesAlertResult }, + }; + } + + validate() { + if(Array.isArray(this.alertResult)) { + $dara.Model.validateArray(this.alertResult); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateGroupMetricRulesResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call is successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * 461CF2CD-2FC3-4B26-8645-7BD27E7D0F1D + */ + requestId?: string; + /** + * @remarks + * The details of the alert rules. + */ + resources?: CreateGroupMetricRulesResponseBodyResources; + /** + * @remarks + * Indicates whether the call is successful. Valid value: + * + * - true: The call is successful. + * - false: The call fails. + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + resources: 'Resources', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'number', + message: 'string', + requestId: 'string', + resources: CreateGroupMetricRulesResponseBodyResources, + success: 'boolean', + }; + } + + validate() { + if(this.resources && typeof (this.resources as any).validate === 'function') { + (this.resources as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateGroupMonitoringAgentProcessRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateGroupMonitoringAgentProcessRequest.ts new file mode 100644 index 0000000..e326581 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateGroupMonitoringAgentProcessRequest.ts @@ -0,0 +1,412 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateGroupMonitoringAgentProcessRequestAlertConfigTargetList extends $dara.Model { + /** + * @remarks + * The Alibaba Cloud Resource Name (ARN) of the resource. + * + * For more information about how to query the ARN of a resource, see [DescribeMetricRuleTargets](https://help.aliyun.com/document_detail/121592.html). + * + * Format: `acs:{Service name abbreviation}:{regionId}:{userId}:/{Resource type}/{Resource name}/message`. Example: `acs:mns:cn-hangzhou:120886317861****:/queues/test123/message`. Fields: + * + * * {Service name abbreviation}: the abbreviation of the service name. Set the value to Simple Message Queue (formerly MNS) (SMQ). + * + * * {userId}: the ID of the Alibaba Cloud account. + * + * * {regionId}: the region ID of the SMQ queue or topic. + * + * * {Resource type}: the type of the resource that triggers the alert. Valid values: + * + * * **queues** + * * **topics** + * + * * {Resource name}: the resource name. + * + * * If the resource type is **queues**, the resource name is the queue name. + * * If the resource type is **topics**, the resource name is the topic name. + * + * @example + * acs:mns:cn-hangzhou:120886317861****:/queues/test/message + */ + arn?: string; + /** + * @remarks + * The ID of the resource for which alerts are triggered. + * + * For more information about how to obtain the ID of a resource for which alerts are triggered, see [DescribeMetricRuleTargets](https://help.aliyun.com/document_detail/121592.html). + * + * @example + * 1 + */ + id?: string; + /** + * @remarks + * The parameters of the alert callback. The parameters are in the JSON format. + * + * @example + * {"customField1":"value1","customField2":"$.name"} + */ + jsonParams?: string; + /** + * @remarks + * The alert level. Valid values: + * + * * INFO + * * WARN + * * CRITICAL + * + * @example + * ["INFO", "WARN", "CRITICAL"] + */ + level?: string; + static names(): { [key: string]: string } { + return { + arn: 'Arn', + id: 'Id', + jsonParams: 'JsonParams', + level: 'Level', + }; + } + + static types(): { [key: string]: any } { + return { + arn: 'string', + id: 'string', + jsonParams: 'string', + level: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateGroupMonitoringAgentProcessRequestAlertConfig extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the previous monitoring cycle + * + * Valid values of N: 1 to 3. + * + * This parameter is required. + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The period of time during which the alert rule is effective. + * + * Valid values of N: 1 to 3. + * + * @example + * 00:00-23:59 + */ + effectiveInterval?: string; + /** + * @remarks + * The alert level. Valid values: + * + * * critical (default) + * * warn + * * info + * + * Valid values of N: 1 to 3. + * + * This parameter is required. + * + * @example + * warn + */ + escalationsLevel?: string; + /** + * @remarks + * This parameter is deprecated. + * + * @example + * 00:00-23:59 + */ + noEffectiveInterval?: string; + /** + * @remarks + * The mute period during which new alert notifications are not sent even if the trigger conditions are met. Unit: seconds. Minimum value: 3600, which is equivalent to one hour. Default value: 86400, which is equivalent to one day. + * + * Valid values of N: 1 to 3. + * + * > Only one alert notification is sent during a mute period even if the metric value exceeds the alert threshold during consecutive checks. + * + * @example + * 86400 + */ + silenceTime?: string; + /** + * @remarks + * The statistical aggregation method that is used to calculate the metric values. + * + * Valid values of N: 1 to 3. + * + * > Set the value to Average. + * + * This parameter is required. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The alert triggers. + */ + targetList?: CreateGroupMonitoringAgentProcessRequestAlertConfigTargetList[]; + /** + * @remarks + * The alert threshold. + * + * Valid values of N: 1 to 3. + * + * This parameter is required. + * + * @example + * 5 + */ + threshold?: string; + /** + * @remarks + * The number of times for which the threshold can be consecutively exceeded. Default value: 3. + * + * Valid values of N: 1 to 3. + * + * > A metric triggers an alert only after the metric value reaches the threshold consecutively for the specified times. + * + * This parameter is required. + * + * @example + * 3 + */ + times?: string; + /** + * @remarks + * The callback URL. + * + * Valid values of N: 1 to 3. + * + * @example + * http://www.aliyun.com + */ + webhook?: string; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + effectiveInterval: 'EffectiveInterval', + escalationsLevel: 'EscalationsLevel', + noEffectiveInterval: 'NoEffectiveInterval', + silenceTime: 'SilenceTime', + statistics: 'Statistics', + targetList: 'TargetList', + threshold: 'Threshold', + times: 'Times', + webhook: 'Webhook', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + effectiveInterval: 'string', + escalationsLevel: 'string', + noEffectiveInterval: 'string', + silenceTime: 'string', + statistics: 'string', + targetList: { 'type': 'array', 'itemType': CreateGroupMonitoringAgentProcessRequestAlertConfigTargetList }, + threshold: 'string', + times: 'string', + webhook: 'string', + }; + } + + validate() { + if(Array.isArray(this.targetList)) { + $dara.Model.validateArray(this.targetList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateGroupMonitoringAgentProcessRequestMatchExpress extends $dara.Model { + /** + * @remarks + * The matching condition. Valid values: + * + * * all (default value): matches all + * * startWith: starts with a prefix + * * endWith: ends with a suffix + * * contains: contains + * * notContains: does not contain + * * equals: equals + * + * Valid values of N: 1 to 3. + * + * @example + * startWith + */ + function?: string; + /** + * @remarks + * The criteria based on which the instances are matched. + * + * Valid values of N: 1 to 3. + * + * > Set the value to name. The value name indicates that the instances are matched based on the instance name. + * + * @example + * name1 + */ + name?: string; + /** + * @remarks + * The keyword used to match the instance name. + * + * Valid values of N: 1 to 3. + * + * @example + * portalHost + */ + value?: string; + static names(): { [key: string]: string } { + return { + function: 'Function', + name: 'Name', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + function: 'string', + name: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateGroupMonitoringAgentProcessRequest extends $dara.Model { + /** + * @remarks + * The alert rule configurations. + * + * Valid values of N: 1 to 3. + * + * This parameter is required. + */ + alertConfig?: CreateGroupMonitoringAgentProcessRequestAlertConfig[]; + /** + * @remarks + * The ID of the application group. + * + * For more information about how to obtain the ID of an application group, see [DescribeMonitorGroups](https://help.aliyun.com/document_detail/115032.html). + * + * This parameter is required. + * + * @example + * 123456 + */ + groupId?: string; + /** + * @remarks + * The expressions used to match instances. + * + * Valid values of N: 1 to 3. + */ + matchExpress?: CreateGroupMonitoringAgentProcessRequestMatchExpress[]; + /** + * @remarks + * The logical operator used between conditional expressions that are used to match instances. Valid values: + * + * * all + * * and + * * or + * + * @example + * and + */ + matchExpressFilterRelation?: string; + /** + * @remarks + * The process name. + * + * This parameter is required. + * + * @example + * test1 + */ + processName?: string; + regionId?: string; + static names(): { [key: string]: string } { + return { + alertConfig: 'AlertConfig', + groupId: 'GroupId', + matchExpress: 'MatchExpress', + matchExpressFilterRelation: 'MatchExpressFilterRelation', + processName: 'ProcessName', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + alertConfig: { 'type': 'array', 'itemType': CreateGroupMonitoringAgentProcessRequestAlertConfig }, + groupId: 'string', + matchExpress: { 'type': 'array', 'itemType': CreateGroupMonitoringAgentProcessRequestMatchExpress }, + matchExpressFilterRelation: 'string', + processName: 'string', + regionId: 'string', + }; + } + + validate() { + if(Array.isArray(this.alertConfig)) { + $dara.Model.validateArray(this.alertConfig); + } + if(Array.isArray(this.matchExpress)) { + $dara.Model.validateArray(this.matchExpress); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateGroupMonitoringAgentProcessResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateGroupMonitoringAgentProcessResponse.ts new file mode 100644 index 0000000..58f63e1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateGroupMonitoringAgentProcessResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { CreateGroupMonitoringAgentProcessResponseBody } from "./CreateGroupMonitoringAgentProcessResponseBody"; + + +export class CreateGroupMonitoringAgentProcessResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: CreateGroupMonitoringAgentProcessResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateGroupMonitoringAgentProcessResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateGroupMonitoringAgentProcessResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateGroupMonitoringAgentProcessResponseBody.ts new file mode 100644 index 0000000..bc26527 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateGroupMonitoringAgentProcessResponseBody.ts @@ -0,0 +1,109 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateGroupMonitoringAgentProcessResponseBodyResource extends $dara.Model { + /** + * @remarks + * The ID of the group process. + * + * @example + * 7F2B0024-4F21-48B9-A764-211CEC48**** + */ + groupProcessId?: string; + static names(): { [key: string]: string } { + return { + groupProcessId: 'GroupProcessId', + }; + } + + static types(): { [key: string]: any } { + return { + groupProcessId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateGroupMonitoringAgentProcessResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the call is successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 3F6150F9-45C7-43F9-9578-A58B2E726C90 + */ + requestId?: string; + /** + * @remarks + * The group process information. + */ + resource?: CreateGroupMonitoringAgentProcessResponseBodyResource; + /** + * @remarks + * Indicates whether the call is successful. Valid values: + * + * * true: The call is successful. + * * false: The call fails. + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + resource: 'Resource', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + resource: CreateGroupMonitoringAgentProcessResponseBodyResource, + success: 'boolean', + }; + } + + validate() { + if(this.resource && typeof (this.resource as any).validate === 'function') { + (this.resource as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateHostAvailabilityRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateHostAvailabilityRequest.ts new file mode 100644 index 0000000..634c9fd --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateHostAvailabilityRequest.ts @@ -0,0 +1,513 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateHostAvailabilityRequestAlertConfig extends $dara.Model { + /** + * @remarks + * The end of the time range during which the alert rule is effective. Valid values: 0 to 23. + * + * For example, if the `AlertConfig.StartTime` parameter is set to 0 and the `AlertConfig.EndTime` parameter is set to 22, the alert rule is effective from 00:00:00 to 22:00:00. + * + * > Alert notifications are sent based on the specified threshold only if the alert rule is effective. + * + * @example + * 22 + */ + endTime?: number; + /** + * @remarks + * The alert notification methods. Valid values: + * + * 0: Alert notifications are sent by using emails and DingTalk chatbots. + * + * This parameter is required. + * + * @example + * 0 + */ + notifyType?: number; + /** + * @remarks + * The mute period during which new alerts are not sent even if the trigger conditions are met. Unit: seconds. Default value: 86400. The default value indicates one day. + * + * @example + * 86400 + */ + silenceTime?: number; + /** + * @remarks + * The beginning of the time range during which the alert rule is effective. Valid values: 0 to 23. + * + * For example, if the `AlertConfig.StartTime` parameter is set to 0 and the `AlertConfig.EndTime` parameter is set to 22, the alert rule is effective from 00:00:00 to 22:00:00. + * + * > Alert notifications are sent based on the specified threshold only if the alert rule is effective. + * + * @example + * 0 + */ + startTime?: number; + /** + * @remarks + * The callback URL. + * + * @example + * https://www.aliyun.com/webhook.json + */ + webHook?: string; + static names(): { [key: string]: string } { + return { + endTime: 'EndTime', + notifyType: 'NotifyType', + silenceTime: 'SilenceTime', + startTime: 'StartTime', + webHook: 'WebHook', + }; + } + + static types(): { [key: string]: any } { + return { + endTime: 'number', + notifyType: 'number', + silenceTime: 'number', + startTime: 'number', + webHook: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateHostAvailabilityRequestTaskOption extends $dara.Model { + /** + * @remarks + * The header of the HTTP request. Format: `Parameter name:Parameter value`. Separate multiple parameters with carriage return characters. Example: + * + * params1:value1 + * params2:value2 + * + * @example + * token:testTokenValue + */ + httpHeader?: string; + /** + * @remarks + * The HTTP request method. Valid values: + * + * * GET + * * POST + * * HEAD + * + * > This parameter must be specified when TaskType is set to HTTP. + * + * @example + * GET + */ + httpMethod?: string; + /** + * @remarks + * The method to trigger an alert. The alert can be triggered based on whether the specified alert rule is included in the response body. Valid values: + * + * * true: If the HTTP response body includes the alert rule, an alert is triggered. + * * false: If the HTTP response does not include the alert rule, an alert is triggered. + * + * > This parameter must be specified when TaskType is set to HTTP. + * + * @example + * true + */ + httpNegative?: boolean; + /** + * @remarks + * The content of the HTTP POST request. + * + * @example + * params1=paramsValue1 + */ + httpPostContent?: string; + /** + * @remarks + * The character set that is used in the HTTP response. + * + * > Only UTF-8 is supported. + * + * @example + * UTF-8 + */ + httpResponseCharset?: string; + /** + * @remarks + * The response to the HTTP request. + * + * @example + * ok + */ + httpResponseMatchContent?: string; + /** + * @remarks + * The URI that you want to monitor. This parameter is required if the TaskType parameter is set to HTTP or Telnet. + * + * @example + * https://www.aliyun.com + */ + httpURI?: string; + /** + * @remarks + * The interval at which detection requests are sent. Unit: seconds. Valid values: 15, 30, 60, 120, 300, 900, 1800, and 3600. + * + * > This parameter is available only for the CloudMonitor agent V3.5.1 or later. + * + * @example + * 60 + */ + interval?: number; + /** + * @remarks + * The domain name or IP address that you want to monitor. + * + * > This parameter is required if the TaskType parameter is set to PING. + * + * @example + * www.aliyun.com + */ + telnetOrPingHost?: string; + static names(): { [key: string]: string } { + return { + httpHeader: 'HttpHeader', + httpMethod: 'HttpMethod', + httpNegative: 'HttpNegative', + httpPostContent: 'HttpPostContent', + httpResponseCharset: 'HttpResponseCharset', + httpResponseMatchContent: 'HttpResponseMatchContent', + httpURI: 'HttpURI', + interval: 'Interval', + telnetOrPingHost: 'TelnetOrPingHost', + }; + } + + static types(): { [key: string]: any } { + return { + httpHeader: 'string', + httpMethod: 'string', + httpNegative: 'boolean', + httpPostContent: 'string', + httpResponseCharset: 'string', + httpResponseMatchContent: 'string', + httpURI: 'string', + interval: 'number', + telnetOrPingHost: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateHostAvailabilityRequestAlertConfigEscalationList extends $dara.Model { + /** + * @remarks + * The method used to calculate the metric values that trigger alerts. Valid values of N: 1 to 21. Valid values: + * + * * HttpStatus: Value + * * HttpLatency: Average + * * TelnetStatus: Value + * * TelnetLatency: Average + * * PingLostRate: Average + * + * > The value Value indicates the original value and is used for metrics such as status codes. The value Average indicates the average value and is used for metrics such as the latency and packet loss rate. + * + * @example + * Value + */ + aggregate?: string; + /** + * @remarks + * The metric for which the alert feature is enabled. Valid values of N: 1 to 21. Valid values: + * + * * HttpStatus: HTTP status code + * * HttpLatency: HTTP response time + * * TelnetStatus: Telnet status code + * * TelnetLatency: Telnet response time + * * PingLostRate: Ping packet loss rate + * + * This parameter is required. + * + * @example + * HttpStatus + */ + metricName?: string; + /** + * @remarks + * The comparison operator that is used in the alert rule. Valid values of N: 1 to 21. Valid values: + * + * * `>` + * * `>=` + * * `<` + * * `<=` + * * `=` + * + * @example + * > + */ + operator?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before an alert is triggered. Valid values of N: 1 to 21. + * + * @example + * 3 + */ + times?: number; + /** + * @remarks + * The alert threshold. Valid values of N: 1 to 21. + * + * @example + * 90 + */ + value?: string; + static names(): { [key: string]: string } { + return { + aggregate: 'Aggregate', + metricName: 'MetricName', + operator: 'Operator', + times: 'Times', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + aggregate: 'string', + metricName: 'string', + operator: 'string', + times: 'number', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateHostAvailabilityRequestAlertConfigTargetList extends $dara.Model { + /** + * @remarks + * The Alibaba Cloud Resource Name (ARN) of the resource. Format: `acs:{Service name abbreviation}:{regionId}:{userId}:/{Resource type}/{Resource name}/message`. Example: `acs:mns:cn-hangzhou:120886317861****:/queues/test123/message`. Fields: + * + * * {Service name abbreviation}: the abbreviation of the service name. Set the value to Simple Message Queue (formerly MNS) (SMQ). + * + * * {userId}: the ID of the Alibaba Cloud account. + * + * * {regionId}: the region ID of the SMQ queue or topic. + * + * * {Resource type}: the type of the resource for which alerts are triggered. Valid values: + * + * * **queues** + * * **topics** + * + * * {Resource name}: the resource name. + * + * * If the resource type is **queues**, the resource name is the queue name. + * * If the resource type is **topics**, the resource name is the topic name. + * + * @example + * acs:mns:cn-hangzhou:120886317861****:/queues/test/message + */ + arn?: string; + /** + * @remarks + * The ID of the resource for which alerts are triggered. + * + * @example + * 1 + */ + id?: string; + /** + * @remarks + * The parameters of the alert callback. The parameters are in the JSON format. + * + * @example + * {"customField1":"value1","customField2":"$.name"} + */ + jsonParams?: string; + /** + * @remarks + * The alert level. Valid values: + * + * * INFO + * * WARN + * * CRITICAL + * + * @example + * ["INFO", "WARN", "CRITICAL"] + */ + level?: string; + static names(): { [key: string]: string } { + return { + arn: 'Arn', + id: 'Id', + jsonParams: 'JsonParams', + level: 'Level', + }; + } + + static types(): { [key: string]: any } { + return { + arn: 'string', + id: 'string', + jsonParams: 'string', + level: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateHostAvailabilityRequest extends $dara.Model { + alertConfig?: CreateHostAvailabilityRequestAlertConfig; + taskOption?: CreateHostAvailabilityRequestTaskOption; + /** + * @remarks + * None + * + * This parameter is required. + */ + alertConfigEscalationList?: CreateHostAvailabilityRequestAlertConfigEscalationList[]; + /** + * @remarks + * The resources for which alerts are triggered. + */ + alertConfigTargetList?: CreateHostAvailabilityRequestAlertConfigTargetList[]; + /** + * @remarks + * The ID of the application group. + * + * This parameter is required. + * + * @example + * 123456 + */ + groupId?: number; + /** + * @remarks + * The ECS instances that are monitored. Valid values of N: 1 to 21. + * + * > This parameter must be specified when `TaskScope` is set to `GROUP_SPEC_INSTANCE`. + * + * @example + * i-absdfkwl321**** + */ + instanceList?: string[]; + regionId?: string; + /** + * @remarks + * The name of the availability monitoring task. The name must be 4 to 100 characters in length, and can contain letters, digits, and underscores (_). + * + * This parameter is required. + * + * @example + * task1 + */ + taskName?: string; + /** + * @remarks + * The range of instances that are monitored by the availability monitoring task. Valid values: + * + * * GROUP: All ECS instances in the application group are monitored. + * * GROUP_SPEC_INSTANCE: Specified ECS instances in the application group are monitored. The TaskScope parameter must be used in combination with the InstanceList parameter. The InstanceList parameter specifies the ECS instances to be monitored. + * + * @example + * GROUP + */ + taskScope?: string; + /** + * @remarks + * The monitoring type of the availability monitoring task. Valid values: + * + * * PING + * * TELNET + * * HTTP + * + * This parameter is required. + * + * @example + * HTTP + */ + taskType?: string; + static names(): { [key: string]: string } { + return { + alertConfig: 'AlertConfig', + taskOption: 'TaskOption', + alertConfigEscalationList: 'AlertConfigEscalationList', + alertConfigTargetList: 'AlertConfigTargetList', + groupId: 'GroupId', + instanceList: 'InstanceList', + regionId: 'RegionId', + taskName: 'TaskName', + taskScope: 'TaskScope', + taskType: 'TaskType', + }; + } + + static types(): { [key: string]: any } { + return { + alertConfig: CreateHostAvailabilityRequestAlertConfig, + taskOption: CreateHostAvailabilityRequestTaskOption, + alertConfigEscalationList: { 'type': 'array', 'itemType': CreateHostAvailabilityRequestAlertConfigEscalationList }, + alertConfigTargetList: { 'type': 'array', 'itemType': CreateHostAvailabilityRequestAlertConfigTargetList }, + groupId: 'number', + instanceList: { 'type': 'array', 'itemType': 'string' }, + regionId: 'string', + taskName: 'string', + taskScope: 'string', + taskType: 'string', + }; + } + + validate() { + if(this.alertConfig && typeof (this.alertConfig as any).validate === 'function') { + (this.alertConfig as any).validate(); + } + if(this.taskOption && typeof (this.taskOption as any).validate === 'function') { + (this.taskOption as any).validate(); + } + if(Array.isArray(this.alertConfigEscalationList)) { + $dara.Model.validateArray(this.alertConfigEscalationList); + } + if(Array.isArray(this.alertConfigTargetList)) { + $dara.Model.validateArray(this.alertConfigTargetList); + } + if(Array.isArray(this.instanceList)) { + $dara.Model.validateArray(this.instanceList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateHostAvailabilityResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateHostAvailabilityResponse.ts new file mode 100644 index 0000000..84f118c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateHostAvailabilityResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { CreateHostAvailabilityResponseBody } from "./CreateHostAvailabilityResponseBody"; + + +export class CreateHostAvailabilityResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: CreateHostAvailabilityResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateHostAvailabilityResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateHostAvailabilityResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateHostAvailabilityResponseBody.ts new file mode 100644 index 0000000..7cb2f9b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateHostAvailabilityResponseBody.ts @@ -0,0 +1,79 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateHostAvailabilityResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * ACBDBB40-DFB6-4F4C-8957-51FFB233969C + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The ID of the availability monitoring task. + * + * @example + * 12345 + */ + taskId?: number; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + taskId: 'TaskId', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + taskId: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorNamespaceRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorNamespaceRequest.ts new file mode 100644 index 0000000..5d32618 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorNamespaceRequest.ts @@ -0,0 +1,92 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateHybridMonitorNamespaceRequest extends $dara.Model { + /** + * @remarks + * The description of the namespace. + */ + description?: string; + /** + * @remarks + * The name of the namespace. + * + * The name can contain lowercase letters, digits, and hyphens (-). + * + * This parameter is required. + * + * @example + * aliyun + */ + namespace?: string; + /** + * @remarks + * The region where the metric data is stored. + * + * @example + * cn-hangzhou + */ + namespaceRegion?: string; + /** + * @remarks + * The storage scheme of metric data. Valid values: + * + * * m_prom_user: The metric data is stored in Simple Log Service. + * * m_prom_pool: The metric data is stored in the private storage space provided by CloudMonitor. + * + * > For more information about the storage schemes of metric data, see [Data storage schemes for Hybrid Cloud Monitoring](https://help.aliyun.com/document_detail/2594921.html). + * + * @example + * m_prometheus + */ + namespaceType?: string; + regionId?: string; + /** + * @remarks + * The data retention period. Valid values: + * + * * cms.s1.large (Retention Period 15 Days) + * * cms.s1.xlarge (Retention Period 32 Days) + * * cms.s1.2xlarge (Retention Period 63 Days) + * * cms.s1.3xlarge (Retention Period 93 Days) (default) + * * cms.s1.6xlarge (Retention Period 185 Days) + * * cms.s1.12xlarge (Retention Period 367 Days) + * + * For information about the pricing for different retention periods, see the **Pricing** section in [Billing of the dashboard feature](https://help.aliyun.com/document_detail/223532.html). + * + * @example + * cms.s1.3xlarge + */ + spec?: string; + static names(): { [key: string]: string } { + return { + description: 'Description', + namespace: 'Namespace', + namespaceRegion: 'NamespaceRegion', + namespaceType: 'NamespaceType', + regionId: 'RegionId', + spec: 'Spec', + }; + } + + static types(): { [key: string]: any } { + return { + description: 'string', + namespace: 'string', + namespaceRegion: 'string', + namespaceType: 'string', + regionId: 'string', + spec: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorNamespaceResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorNamespaceResponse.ts new file mode 100644 index 0000000..bf8442d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorNamespaceResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { CreateHybridMonitorNamespaceResponseBody } from "./CreateHybridMonitorNamespaceResponseBody"; + + +export class CreateHybridMonitorNamespaceResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: CreateHybridMonitorNamespaceResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateHybridMonitorNamespaceResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorNamespaceResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorNamespaceResponseBody.ts new file mode 100644 index 0000000..cbb86fb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorNamespaceResponseBody.ts @@ -0,0 +1,67 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateHybridMonitorNamespaceResponseBody extends $dara.Model { + /** + * @remarks + * The response code. + * + * @example + * Success + */ + code?: string; + /** + * @remarks + * The error message returned. + * + * @example + * Namespace.Existed + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 3843D23A-FB9E-5DC8-BCCC-458768B79296 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorSlsgroupRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorSlsgroupRequest.ts new file mode 100644 index 0000000..fdb5d39 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorSlsgroupRequest.ts @@ -0,0 +1,140 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateHybridMonitorSLSGroupRequestSLSGroupConfig extends $dara.Model { + /** + * @remarks + * The Logstore. + * + * Valid values of N: 1 to 25. + * + * This parameter is required. + * + * @example + * Logstore-ECS + */ + SLSLogstore?: string; + /** + * @remarks + * The Simple Log Service project. + * + * Valid values of N: 1 to 25. + * + * This parameter is required. + * + * @example + * aliyun-project + */ + SLSProject?: string; + /** + * @remarks + * The region ID. + * + * Valid values of N: 1 to 25. + * + * This parameter is required. + * + * @example + * cn-hangzhou + */ + SLSRegion?: string; + /** + * @remarks + * The member ID. + * + * Valid values of N: 1 to 25. + * + * If you call this operation by using the management account of a resource directory, you can connect the Alibaba Cloud services that are activated for all members in the resource directory to Hybrid Cloud Monitoring. You can use the resource directory to monitor Alibaba Cloud services across enterprise accounts. + * + * > If a member uses CloudMonitor for the first time, you must make sure that the service-linked role AliyunServiceRoleForCloudMonitor is attached to the member. For more information, see [Manage the service-linked role for CloudMonitor](https://help.aliyun.com/document_detail/170423.html). + * + * @example + * 120886317861**** + */ + SLSUserId?: string; + static names(): { [key: string]: string } { + return { + SLSLogstore: 'SLSLogstore', + SLSProject: 'SLSProject', + SLSRegion: 'SLSRegion', + SLSUserId: 'SLSUserId', + }; + } + + static types(): { [key: string]: any } { + return { + SLSLogstore: 'string', + SLSProject: 'string', + SLSRegion: 'string', + SLSUserId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateHybridMonitorSLSGroupRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * The configurations of the Logstore group. + * + * Valid values of N: 1 to 25. + * + * This parameter is required. + */ + SLSGroupConfig?: CreateHybridMonitorSLSGroupRequestSLSGroupConfig[]; + /** + * @remarks + * The description of the Logstore group. + */ + SLSGroupDescription?: string; + /** + * @remarks + * The name of the Logstore group. + * + * The name must be 2 to 32 characters in length and can contain uppercase letters, lowercase letters, digits, and underscores (_). The name must start with a letter. + * + * This parameter is required. + * + * @example + * Logstore_test + */ + SLSGroupName?: string; + static names(): { [key: string]: string } { + return { + regionId: 'RegionId', + SLSGroupConfig: 'SLSGroupConfig', + SLSGroupDescription: 'SLSGroupDescription', + SLSGroupName: 'SLSGroupName', + }; + } + + static types(): { [key: string]: any } { + return { + regionId: 'string', + SLSGroupConfig: { 'type': 'array', 'itemType': CreateHybridMonitorSLSGroupRequestSLSGroupConfig }, + SLSGroupDescription: 'string', + SLSGroupName: 'string', + }; + } + + validate() { + if(Array.isArray(this.SLSGroupConfig)) { + $dara.Model.validateArray(this.SLSGroupConfig); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorSlsgroupResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorSlsgroupResponse.ts new file mode 100644 index 0000000..ff21393 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorSlsgroupResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { CreateHybridMonitorSLSGroupResponseBody } from "./CreateHybridMonitorSlsgroupResponseBody"; + + +export class CreateHybridMonitorSLSGroupResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: CreateHybridMonitorSLSGroupResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateHybridMonitorSLSGroupResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorSlsgroupResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorSlsgroupResponseBody.ts new file mode 100644 index 0000000..67fbf56 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorSlsgroupResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateHybridMonitorSLSGroupResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * Duplicate.SLSGroup + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 66683237-7126-50F8-BBF8-D67ACC919A17 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorTaskRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorTaskRequest.ts new file mode 100644 index 0000000..5df5972 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorTaskRequest.ts @@ -0,0 +1,582 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateHybridMonitorTaskRequestAttachLabels extends $dara.Model { + /** + * @remarks + * The tag key of the metric. + * + * @example + * app_service + */ + name?: string; + /** + * @remarks + * The tag value of the metric. + * + * @example + * testValue + */ + value?: string; + static names(): { [key: string]: string } { + return { + name: 'Name', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + name: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateHybridMonitorTaskRequestSLSProcessConfigExpress extends $dara.Model { + /** + * @remarks + * The alias of the extended field that specifies the result of basic operations performed on aggregation results. + * + * @example + * SuccRate + */ + alias?: string; + /** + * @remarks + * The extended field that specifies the result of basic operations performed on aggregation results. + * + * @example + * success_count + */ + express?: string; + static names(): { [key: string]: string } { + return { + alias: 'Alias', + express: 'Express', + }; + } + + static types(): { [key: string]: any } { + return { + alias: 'string', + express: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateHybridMonitorTaskRequestSLSProcessConfigFilterFilters extends $dara.Model { + /** + * @remarks + * The method that is used to filter logs imported from Simple Log Service. Valid values: + * + * * `contain`: contains + * * `notContain`: does not contain + * * `>`: greater than + * * `<`: less than + * * `=`: equal to + * * `! =`: not equal to + * * `>=`: greater than or equal to + * * `<=`: less than or equal to + * + * @example + * = + */ + operator?: string; + /** + * @remarks + * The name of the key that is used to filter logs imported from Simple Log Service. + * + * @example + * code + */ + SLSKeyName?: string; + /** + * @remarks + * The value of the key that is used to filter logs imported from Simple Log Service. + * + * @example + * 200 + */ + value?: string; + static names(): { [key: string]: string } { + return { + operator: 'Operator', + SLSKeyName: 'SLSKeyName', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + operator: 'string', + SLSKeyName: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateHybridMonitorTaskRequestSLSProcessConfigFilter extends $dara.Model { + /** + * @remarks + * The conditions that are used to filter logs imported from Simple Log Service. + */ + filters?: CreateHybridMonitorTaskRequestSLSProcessConfigFilterFilters[]; + /** + * @remarks + * The relationship between multiple filter conditions. Valid values: + * + * * and (default): Logs are processed only if all filter conditions are met. + * * or: Logs are processed if one of the filter conditions is met. + * + * @example + * and + */ + relation?: string; + static names(): { [key: string]: string } { + return { + filters: 'Filters', + relation: 'Relation', + }; + } + + static types(): { [key: string]: any } { + return { + filters: { 'type': 'array', 'itemType': CreateHybridMonitorTaskRequestSLSProcessConfigFilterFilters }, + relation: 'string', + }; + } + + validate() { + if(Array.isArray(this.filters)) { + $dara.Model.validateArray(this.filters); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateHybridMonitorTaskRequestSLSProcessConfigGroupBy extends $dara.Model { + /** + * @remarks + * The alias of the aggregation result. + * + * @example + * ApiResult + */ + alias?: string; + /** + * @remarks + * The name of the key that is used to aggregate logs imported from Simple Log Service. + * + * @example + * code + */ + SLSKeyName?: string; + static names(): { [key: string]: string } { + return { + alias: 'Alias', + SLSKeyName: 'SLSKeyName', + }; + } + + static types(): { [key: string]: any } { + return { + alias: 'string', + SLSKeyName: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateHybridMonitorTaskRequestSLSProcessConfigStatistics extends $dara.Model { + /** + * @remarks + * The alias of the aggregation result. + * + * @example + * level_count + */ + alias?: string; + /** + * @remarks + * The function that is used to aggregate the log data of a statistical period. Valid values: + * + * * count: counts the number. + * * sum: calculates the total value. + * * avg: calculates the average value. + * * max: calculates the maximum value. + * * min: calculates the minimum value. + * * value: collects samples within the statistical period. + * * countps: calculates the number of values of the specified field divided by the total number of seconds within a statistical period. + * * sumps: calculates the sum of the values of the specified field divided by the total number of seconds within a statistical period. + * * distinct: calculates the number of unique values of the specified field within a statistical period. + * * distribution: calculates the number of logs that meet a specified condition within the statistical period. + * * percentile: sorts the values of the specified field in ascending order, and then returns the value that is at the specified percentile within the statistical period. Example: P50. + * + * @example + * count + */ + function?: string; + /** + * @remarks + * The value of the function that is used to aggregate logs imported from Simple Log Service. + * + * * If the `Function` parameter is set to `distribution`, this parameter specifies the lower limit of the statistical interval. For example, if you want to calculate the number of HTTP requests whose status code is 2XX, set this parameter to 200. + * * If the `Function` parameter is set to `percentile`, this parameter specifies the percentile at which the expected value is. For example, 0.5 specifies P50. + * + * @example + * 200 + */ + parameter1?: string; + /** + * @remarks + * The value of the function that is used to aggregate logs imported from Simple Log Service. + * + * > This parameter is required only if the `Function` parameter is set to `distribution`. This parameter specifies the upper limit of the statistical interval. For example, if you want to calculate the number of HTTP requests whose status code is 2XX, set this parameter to 299. + * + * @example + * 299 + */ + parameter2?: string; + /** + * @remarks + * The name of the key that is used to aggregate logs imported from Simple Log Service. + * + * @example + * name + */ + SLSKeyName?: string; + static names(): { [key: string]: string } { + return { + alias: 'Alias', + function: 'Function', + parameter1: 'Parameter1', + parameter2: 'Parameter2', + SLSKeyName: 'SLSKeyName', + }; + } + + static types(): { [key: string]: any } { + return { + alias: 'string', + function: 'string', + parameter1: 'string', + parameter2: 'string', + SLSKeyName: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateHybridMonitorTaskRequestSLSProcessConfig extends $dara.Model { + /** + * @remarks + * The extended fields that specify the results of basic operations performed on aggregation results. + */ + express?: CreateHybridMonitorTaskRequestSLSProcessConfigExpress[]; + /** + * @remarks + * The conditions that are used to filter logs imported from Simple Log Service. + */ + filter?: CreateHybridMonitorTaskRequestSLSProcessConfigFilter; + /** + * @remarks + * The dimension based on which data is aggregated. This parameter is equivalent to the GROUP BY clause in SQL. + */ + groupBy?: CreateHybridMonitorTaskRequestSLSProcessConfigGroupBy[]; + /** + * @remarks + * The method that is used to aggregate logs imported from Simple Log Service. + */ + statistics?: CreateHybridMonitorTaskRequestSLSProcessConfigStatistics[]; + static names(): { [key: string]: string } { + return { + express: 'Express', + filter: 'Filter', + groupBy: 'GroupBy', + statistics: 'Statistics', + }; + } + + static types(): { [key: string]: any } { + return { + express: { 'type': 'array', 'itemType': CreateHybridMonitorTaskRequestSLSProcessConfigExpress }, + filter: CreateHybridMonitorTaskRequestSLSProcessConfigFilter, + groupBy: { 'type': 'array', 'itemType': CreateHybridMonitorTaskRequestSLSProcessConfigGroupBy }, + statistics: { 'type': 'array', 'itemType': CreateHybridMonitorTaskRequestSLSProcessConfigStatistics }, + }; + } + + validate() { + if(Array.isArray(this.express)) { + $dara.Model.validateArray(this.express); + } + if(this.filter && typeof (this.filter as any).validate === 'function') { + (this.filter as any).validate(); + } + if(Array.isArray(this.groupBy)) { + $dara.Model.validateArray(this.groupBy); + } + if(Array.isArray(this.statistics)) { + $dara.Model.validateArray(this.statistics); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateHybridMonitorTaskRequest extends $dara.Model { + /** + * @remarks + * The tags of the metric. + * + * > This parameter is required only if the `TaskType` parameter is set to `aliyun_sls`. + */ + attachLabels?: CreateHybridMonitorTaskRequestAttachLabels[]; + cloudAccessId?: string[]; + /** + * @remarks + * The collection period of the metric. Valid values: + * + * * 15 + * * 60 (default) + * + * Unit: seconds. + * + * > This parameter is required only if the `TaskType` parameter is set to `aliyun_sls`. + * + * @example + * 60 + */ + collectInterval?: string; + /** + * @remarks + * The type of the collection target. + * + * * If the `TaskType` parameter is set to `aliyun_fc`, enter `aliyun_fc`. + * * If the `TaskType` parameter is set to `aliyun_sls`, enter the name of the Logstore group. + * + * This parameter is required. + * + * @example + * aliyun_fc + */ + collectTargetType?: string; + /** + * @remarks + * The description of the metric import task. + */ + description?: string; + /** + * @remarks + * The ID of the application group. + * + * For information about how to obtain the ID of an application group, see [DescribeMonitorGroups](https://help.aliyun.com/document_detail/115032.html). + * + * > This parameter is required only if the `TaskType` parameter is set to `aliyun_sls`. + * + * @example + * 3607**** + */ + groupId?: string; + /** + * @remarks + * The name of the namespace. + * + * For information about how to obtain the name of a namespace, see [DescribeHybridMonitorNamespaceList](https://help.aliyun.com/document_detail/428880.html). + * + * This parameter is required. + * + * @example + * aliyun + */ + namespace?: string; + regionId?: string; + /** + * @remarks + * The configurations of the logs that are imported from Simple Log Service. + * + * > This parameter is required only if the `TaskType` parameter is set to `aliyun_sls`. + */ + SLSProcessConfig?: CreateHybridMonitorTaskRequestSLSProcessConfig; + /** + * @remarks + * The ID of the member account. + * + * If you call this operation by using the management account of a resource directory, you can connect the Alibaba Cloud services that are activated for all members in the resource directory to Hybrid Cloud Monitoring. You can use the resource directory to monitor Alibaba Cloud services across enterprise accounts. + * + * > This parameter is required only if the `TaskType` parameter is set to `aliyun_fc`. + * + * @example + * 120886317861**** + */ + targetUserId?: string; + /** + * @remarks + * The IDs of the member accounts. Separate multiple member account IDs with commas (,). + * + * > This parameter is required only if you call this operation by using the management account. + * + * @example + * 120886317861**** + */ + targetUserIdList?: string; + /** + * @remarks + * The name of the metric import task. + * + * * If the `TaskType` parameter is set to `aliyun_fc`, enter the name of the metric import task. + * * If the `TaskType` parameter is set to `aliyun_sls`, enter the name of the metric for logs imported from Simple Log Service. + * + * @example + * aliyun_task + */ + taskName?: string; + /** + * @remarks + * The type of the metric import task. Valid values: + * + * * aliyun_fc: metric import tasks for Alibaba Cloud services. + * * aliyun_sls: metrics for logs imported from Simple Log Service. + * + * This parameter is required. + * + * @example + * aliyun_fc + */ + taskType?: string; + /** + * @remarks + * The configuration file of the Alibaba Cloud service that you want to monitor by using Hybrid Cloud Monitoring. + * + * * namespace: the namespace of the Alibaba Cloud service. For information about how to query the namespace of an Alibaba Cloud service, see [DescribeMetricMetaList](https://help.aliyun.com/document_detail/98846.html). + * * metric_list: the metrics of the Alibaba Cloud service. For information about how to query the metrics of an Alibaba Cloud service, see [DescribeMetricMetaList](https://help.aliyun.com/document_detail/98846.html). + * + * The following code shows a sample configuration file: + * + * products: + * - namespace: acs_ecs_dashboard + * metric_info: + * - metric_list: + * - cpu_total + * - cpu_idle + * - diskusage_utilization + * - CPUUtilization + * - DiskReadBPS + * - InternetOut + * - IntranetOut + * - cpu_system + * - namespace: acs_rds_dashboard + * metric_info: + * - metric_list: + * - MySQL_QPS + * - MySQL_TPS + * + * > This parameter is required only if the `TaskType` parameter is set to `aliyun_fc`. + * + * @example + * products:- namespace: acs_ecs_dashboard metric_info: - metric_list: - cpu_total + */ + YARMConfig?: string; + static names(): { [key: string]: string } { + return { + attachLabels: 'AttachLabels', + cloudAccessId: 'CloudAccessId', + collectInterval: 'CollectInterval', + collectTargetType: 'CollectTargetType', + description: 'Description', + groupId: 'GroupId', + namespace: 'Namespace', + regionId: 'RegionId', + SLSProcessConfig: 'SLSProcessConfig', + targetUserId: 'TargetUserId', + targetUserIdList: 'TargetUserIdList', + taskName: 'TaskName', + taskType: 'TaskType', + YARMConfig: 'YARMConfig', + }; + } + + static types(): { [key: string]: any } { + return { + attachLabels: { 'type': 'array', 'itemType': CreateHybridMonitorTaskRequestAttachLabels }, + cloudAccessId: { 'type': 'array', 'itemType': 'string' }, + collectInterval: 'string', + collectTargetType: 'string', + description: 'string', + groupId: 'string', + namespace: 'string', + regionId: 'string', + SLSProcessConfig: CreateHybridMonitorTaskRequestSLSProcessConfig, + targetUserId: 'string', + targetUserIdList: 'string', + taskName: 'string', + taskType: 'string', + YARMConfig: 'string', + }; + } + + validate() { + if(Array.isArray(this.attachLabels)) { + $dara.Model.validateArray(this.attachLabels); + } + if(Array.isArray(this.cloudAccessId)) { + $dara.Model.validateArray(this.cloudAccessId); + } + if(this.SLSProcessConfig && typeof (this.SLSProcessConfig as any).validate === 'function') { + (this.SLSProcessConfig as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorTaskResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorTaskResponse.ts new file mode 100644 index 0000000..98eb68d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorTaskResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { CreateHybridMonitorTaskResponseBody } from "./CreateHybridMonitorTaskResponseBody"; + + +export class CreateHybridMonitorTaskResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: CreateHybridMonitorTaskResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateHybridMonitorTaskResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorTaskResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorTaskResponseBody.ts new file mode 100644 index 0000000..64ab17d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateHybridMonitorTaskResponseBody.ts @@ -0,0 +1,79 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateHybridMonitorTaskResponseBody extends $dara.Model { + /** + * @remarks + * The response code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message returned. + * + * @example + * yamlConfigFail + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 28CEA2E0-3E90-51B2-A7E8-B1ED75534E49 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + /** + * @remarks + * The ID of the monitoring task. + * + * @example + * 36**** + */ + taskId?: number; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + taskId: 'TaskId', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'string', + taskId: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateInstantSiteMonitorRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateInstantSiteMonitorRequest.ts new file mode 100644 index 0000000..06c3062 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateInstantSiteMonitorRequest.ts @@ -0,0 +1,108 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateInstantSiteMonitorRequest extends $dara.Model { + /** + * @remarks + * The URL or IP address that you want to test. + * + * This parameter is required. + * + * @example + * http://www.aliyun.com + */ + address?: string; + agentGroup?: string; + /** + * @remarks + * The detection points. If you leave this parameter empty, the system randomly selects three detection points. + * + * The value is a `JSON array`. Example: {"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}. The values of the city field indicate Beijing, Hangzhou, and Qingdao. + * + * For information about how to obtain detection points, see [DescribeSiteMonitorISPCityList](https://help.aliyun.com/document_detail/115045.html). + * + * > You must specify one of the `IspCities` and `RandomIspCity` parameters. + * + * @example + * [{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}] + */ + ispCities?: string; + /** + * @remarks + * The extended options of the protocol that is used by the instant test task. The options vary based on the protocol. + * + * @example + * {"time_out":5000} + */ + optionsJson?: string; + /** + * @remarks + * The number of detection points. + * + * > + * + * * You must specify one of the `IspCities` and `RandomIspCity` parameters. If you specify the `RandomIspCity` parameter, the `IspCities` parameter automatically becomes invalid. + * + * @example + * 1 + */ + randomIspCity?: number; + regionId?: string; + /** + * @remarks + * The name of the instant test task. + * + * The name must be 4 to 100 characters in length, and can contain letters, digits, and underscores (_). + * + * This parameter is required. + * + * @example + * task1 + */ + taskName?: string; + /** + * @remarks + * The type of the instant test task. Valid values: HTTP, PING, TCP, UDP, and DNS. + * + * This parameter is required. + * + * @example + * HTTP + */ + taskType?: string; + static names(): { [key: string]: string } { + return { + address: 'Address', + agentGroup: 'AgentGroup', + ispCities: 'IspCities', + optionsJson: 'OptionsJson', + randomIspCity: 'RandomIspCity', + regionId: 'RegionId', + taskName: 'TaskName', + taskType: 'TaskType', + }; + } + + static types(): { [key: string]: any } { + return { + address: 'string', + agentGroup: 'string', + ispCities: 'string', + optionsJson: 'string', + randomIspCity: 'number', + regionId: 'string', + taskName: 'string', + taskType: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateInstantSiteMonitorResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateInstantSiteMonitorResponse.ts new file mode 100644 index 0000000..e22ccf6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateInstantSiteMonitorResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { CreateInstantSiteMonitorResponseBody } from "./CreateInstantSiteMonitorResponseBody"; + + +export class CreateInstantSiteMonitorResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: CreateInstantSiteMonitorResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateInstantSiteMonitorResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateInstantSiteMonitorResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateInstantSiteMonitorResponseBody.ts new file mode 100644 index 0000000..1ca5df6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateInstantSiteMonitorResponseBody.ts @@ -0,0 +1,118 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateInstantSiteMonitorResponseBodyCreateResultList extends $dara.Model { + /** + * @remarks + * The ID of the instant test task. + * + * @example + * 2c8dbdf9-a3ab-46a1-85a4-f094965e**** + */ + taskId?: string; + /** + * @remarks + * The name of the instant test task. + * + * @example + * task1 + */ + taskName?: string; + static names(): { [key: string]: string } { + return { + taskId: 'TaskId', + taskName: 'TaskName', + }; + } + + static types(): { [key: string]: any } { + return { + taskId: 'string', + taskName: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateInstantSiteMonitorResponseBody extends $dara.Model { + /** + * @remarks + * The error code. + * + * > The status code 200 indicates that the call was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The results for creating the instant test task. + */ + createResultList?: CreateInstantSiteMonitorResponseBodyCreateResultList[]; + /** + * @remarks + * The returned message. + * + * @example + * successful + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * 68192f5d-0d45-4b98-9724-892813f86c71 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * * true: The request was successful. + * * false: The request failed. + * + * @example + * true + */ + success?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + createResultList: 'CreateResultList', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + createResultList: { 'type': 'array', 'itemType': CreateInstantSiteMonitorResponseBodyCreateResultList }, + message: 'string', + requestId: 'string', + success: 'string', + }; + } + + validate() { + if(Array.isArray(this.createResultList)) { + $dara.Model.validateArray(this.createResultList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleBlackListRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleBlackListRequest.ts new file mode 100644 index 0000000..de77d83 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleBlackListRequest.ts @@ -0,0 +1,202 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateMetricRuleBlackListRequestMetrics extends $dara.Model { + /** + * @remarks + * The metric name. + * + * Valid values of N: 1 to 10. + * + * This parameter is required. + * + * @example + * disk_utilization + */ + metricName?: string; + /** + * @remarks + * The extended dimension of the instance. For example, `{"device":"C:"}` specifies that the blacklist policy is applied to all C disks of the specified Elastic Compute Service (ECS) instance. + * + * Valid values of N: 1 to 10. + * + * @example + * {"device":"C:"} + */ + resource?: string; + static names(): { [key: string]: string } { + return { + metricName: 'MetricName', + resource: 'Resource', + }; + } + + static types(): { [key: string]: any } { + return { + metricName: 'string', + resource: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateMetricRuleBlackListRequest extends $dara.Model { + /** + * @remarks + * The category of the cloud service. For example, ApsaraDB for Redis includes the following categories: ApsaraDB for Redis (standard architecture), ApsaraDB for Redis (cluster architecture), and ApsaraDB for Redis (read/write splitting architecture). In this case, the valid values of this parameter for ApsaraDB for Redis include `kvstore_standard`, `kvstore_sharding`, and `kvstore_splitrw`. + * + * This parameter is required. + * + * @example + * ecs + */ + category?: string; + /** + * @remarks + * The time range within which the blacklist policy is effective. + * + * * If you do not configure this parameter, the blacklist policy is permanently effective. + * + * * If you configure this parameter, the blacklist policy is effective only within the specified time range. Examples: + * + * * `03:00-04:59`: The blacklist policy is effective from 03:00 to 05:00 local time. 05:00 local time is excluded. + * * `03:00-04:59 UTC+0700`: The blacklist policy is effective from 03:00 to 05:00 (UTC+7). 05:00 (UTC+7) is excluded. + * + * @example + * 03:00-04:59 + */ + effectiveTime?: string; + /** + * @remarks + * The timestamp when the blacklist policy expires. + * + * Unit: milliseconds. + * + * @example + * 1640608200000 + */ + enableEndTime?: string; + /** + * @remarks + * The timestamp when the blacklist policy starts to take effect. + * + * Unit: milliseconds. + * + * @example + * 1640237400000 + */ + enableStartTime?: string; + /** + * @remarks + * The IDs of the instances that belong to the specified cloud service. + * + * This parameter is required. + */ + instances?: string[]; + /** + * @remarks + * The metrics of the instance. + * + * * If you do not configure this parameter, the blacklist policy applies to all metrics of the specified cloud service. + * * If you configure this parameter, the blacklist policy applies only to the current metric. + */ + metrics?: CreateMetricRuleBlackListRequestMetrics[]; + /** + * @remarks + * The name of the blacklist policy. + * + * This parameter is required. + * + * @example + * Blacklist-01 + */ + name?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * For more information about the namespaces of different cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + regionId?: string; + /** + * @remarks + * The effective scope of the blacklist policy. Valid values: + * + * * USER (default): The blacklist policy takes effect only for the current Alibaba Cloud account. + * * GROUP: The blacklist policy takes effect only for the specified application group. For information about how to query the IDs of application groups, see [DescribeMonitorGroups](https://help.aliyun.com/document_detail/115032.html). + * + * @example + * USER + */ + scopeType?: string; + /** + * @remarks + * The ID of the application group. The value of this parameter is a JSON array. + * + * > This parameter must be specified when `ScopeType` is set to `GROUP`. + * + * @example + * ["67****","78****"] + */ + scopeValue?: string; + static names(): { [key: string]: string } { + return { + category: 'Category', + effectiveTime: 'EffectiveTime', + enableEndTime: 'EnableEndTime', + enableStartTime: 'EnableStartTime', + instances: 'Instances', + metrics: 'Metrics', + name: 'Name', + namespace: 'Namespace', + regionId: 'RegionId', + scopeType: 'ScopeType', + scopeValue: 'ScopeValue', + }; + } + + static types(): { [key: string]: any } { + return { + category: 'string', + effectiveTime: 'string', + enableEndTime: 'string', + enableStartTime: 'string', + instances: { 'type': 'array', 'itemType': 'string' }, + metrics: { 'type': 'array', 'itemType': CreateMetricRuleBlackListRequestMetrics }, + name: 'string', + namespace: 'string', + regionId: 'string', + scopeType: 'string', + scopeValue: 'string', + }; + } + + validate() { + if(Array.isArray(this.instances)) { + $dara.Model.validateArray(this.instances); + } + if(Array.isArray(this.metrics)) { + $dara.Model.validateArray(this.metrics); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleBlackListResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleBlackListResponse.ts new file mode 100644 index 0000000..275d1b3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleBlackListResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { CreateMetricRuleBlackListResponseBody } from "./CreateMetricRuleBlackListResponseBody"; + + +export class CreateMetricRuleBlackListResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: CreateMetricRuleBlackListResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateMetricRuleBlackListResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleBlackListResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleBlackListResponseBody.ts new file mode 100644 index 0000000..6053d73 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleBlackListResponseBody.ts @@ -0,0 +1,79 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateMetricRuleBlackListResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The ID of the blacklist policy. + * + * @example + * 93514c96-ceb8-47d8-8ee3-93b6d98b**** + */ + id?: string; + /** + * @remarks + * The error message. + * + * @example + * The request has failed due to a temporary failure of the server. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 5C637FA3-3959-3352-8BE6-78CE2ED2D33D + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + id: 'Id', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + id: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleResourcesRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleResourcesRequest.ts new file mode 100644 index 0000000..f43d440 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleResourcesRequest.ts @@ -0,0 +1,61 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateMetricRuleResourcesRequest extends $dara.Model { + /** + * @remarks + * Specifies whether to overwrite existing resources. Valid values: + * + * * true: The resources submitted this time overwrite the previously associated resources. + * * false: The resources submitted this time do not overwrite the previously associated resources. The associated resources after submission include the previously associated resources and the resources submitted this time. + * + * @example + * false + */ + overwrite?: string; + /** + * @remarks + * The resources that are associated with the alert rule. Set the value to a JSON array. + * + * > You can add up to 100 resources each time. An alert rule can be associated with up to 3,000 resources. + * + * This parameter is required. + * + * @example + * [{"instanceId":"i-a2d5q7pm3f9yr29e****"}] + */ + resources?: string; + /** + * @remarks + * The ID of the alert rule. + * + * @example + * i-2ze3w55tr2rcpejpcfap_59c96b85-0339-4f35-ba66-ae4e34d3**** + */ + ruleId?: string; + static names(): { [key: string]: string } { + return { + overwrite: 'Overwrite', + resources: 'Resources', + ruleId: 'RuleId', + }; + } + + static types(): { [key: string]: any } { + return { + overwrite: 'string', + resources: 'string', + ruleId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleResourcesResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleResourcesResponse.ts new file mode 100644 index 0000000..57f9cae --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleResourcesResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { CreateMetricRuleResourcesResponseBody } from "./CreateMetricRuleResourcesResponseBody"; + + +export class CreateMetricRuleResourcesResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: CreateMetricRuleResourcesResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateMetricRuleResourcesResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleResourcesResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleResourcesResponseBody.ts new file mode 100644 index 0000000..f594fb9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleResourcesResponseBody.ts @@ -0,0 +1,66 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateMetricRuleResourcesResponseBody extends $dara.Model { + /** + * @remarks + * The response code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 0671A721-0D7A-4F11-BB77-2416325D65AB + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: true: The request was successful. false: The request failed. + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleTemplateRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleTemplateRequest.ts new file mode 100644 index 0000000..075d458 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleTemplateRequest.ts @@ -0,0 +1,334 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateMetricRuleTemplateRequestAlertTemplatesEscalationsCritical extends $dara.Model { + comparisonOperator?: string; + n?: number; + statistics?: string; + threshold?: string; + times?: number; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + n: 'N', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + n: 'number', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateMetricRuleTemplateRequestAlertTemplatesEscalationsInfo extends $dara.Model { + comparisonOperator?: string; + n?: number; + statistics?: string; + threshold?: string; + times?: number; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + n: 'N', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + n: 'number', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateMetricRuleTemplateRequestAlertTemplatesEscalationsWarn extends $dara.Model { + comparisonOperator?: string; + n?: number; + statistics?: string; + threshold?: string; + times?: number; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + n: 'N', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + n: 'number', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateMetricRuleTemplateRequestAlertTemplatesEscalations extends $dara.Model { + critical?: CreateMetricRuleTemplateRequestAlertTemplatesEscalationsCritical; + info?: CreateMetricRuleTemplateRequestAlertTemplatesEscalationsInfo; + warn?: CreateMetricRuleTemplateRequestAlertTemplatesEscalationsWarn; + static names(): { [key: string]: string } { + return { + critical: 'Critical', + info: 'Info', + warn: 'Warn', + }; + } + + static types(): { [key: string]: any } { + return { + critical: CreateMetricRuleTemplateRequestAlertTemplatesEscalationsCritical, + info: CreateMetricRuleTemplateRequestAlertTemplatesEscalationsInfo, + warn: CreateMetricRuleTemplateRequestAlertTemplatesEscalationsWarn, + }; + } + + validate() { + if(this.critical && typeof (this.critical as any).validate === 'function') { + (this.critical as any).validate(); + } + if(this.info && typeof (this.info as any).validate === 'function') { + (this.info as any).validate(); + } + if(this.warn && typeof (this.warn as any).validate === 'function') { + (this.warn as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export 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 } { + return { + escalations: 'Escalations', + category: 'Category', + metricName: 'MetricName', + namespace: 'Namespace', + period: 'Period', + ruleName: 'RuleName', + selector: 'Selector', + webhook: 'Webhook', + }; + } + + static types(): { [key: string]: any } { + return { + escalations: CreateMetricRuleTemplateRequestAlertTemplatesEscalations, + category: 'string', + metricName: 'string', + namespace: 'string', + period: 'number', + ruleName: 'string', + selector: 'string', + webhook: 'string', + }; + } + + validate() { + if(this.escalations && typeof (this.escalations as any).validate === 'function') { + (this.escalations as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export 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 } { + return { + alertTemplates: 'AlertTemplates', + description: 'Description', + name: 'Name', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + alertTemplates: { 'type': 'array', 'itemType': CreateMetricRuleTemplateRequestAlertTemplates }, + description: 'string', + name: 'string', + regionId: 'string', + }; + } + + validate() { + if(Array.isArray(this.alertTemplates)) { + $dara.Model.validateArray(this.alertTemplates); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleTemplateResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleTemplateResponse.ts new file mode 100644 index 0000000..ea6842c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleTemplateResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { CreateMetricRuleTemplateResponseBody } from "./CreateMetricRuleTemplateResponseBody"; + + +export class CreateMetricRuleTemplateResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: CreateMetricRuleTemplateResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateMetricRuleTemplateResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleTemplateResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleTemplateResponseBody.ts new file mode 100644 index 0000000..c752c82 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMetricRuleTemplateResponseBody.ts @@ -0,0 +1,79 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateMetricRuleTemplateResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The ID of the alert template. + * + * @example + * 12345 + */ + id?: number; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 9763ED1A-4D09-41BF-851E-310421750204 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + id: 'Id', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'number', + id: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorAgentProcessRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorAgentProcessRequest.ts new file mode 100644 index 0000000..7ece002 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorAgentProcessRequest.ts @@ -0,0 +1,61 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateMonitorAgentProcessRequest extends $dara.Model { + /** + * @remarks + * The instance ID. + * + * This parameter is required. + * + * @example + * i-2ze2d6j5uhg20x47**** + */ + instanceId?: string; + /** + * @remarks + * The process name. + * + * This parameter is required. + * + * @example + * AliYunDun + */ + processName?: string; + /** + * @remarks + * The user who launches the process. + * + * @example + * admin + */ + processUser?: string; + regionId?: string; + static names(): { [key: string]: string } { + return { + instanceId: 'InstanceId', + processName: 'ProcessName', + processUser: 'ProcessUser', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + instanceId: 'string', + processName: 'string', + processUser: 'string', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorAgentProcessResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorAgentProcessResponse.ts new file mode 100644 index 0000000..2ac1737 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorAgentProcessResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { CreateMonitorAgentProcessResponseBody } from "./CreateMonitorAgentProcessResponseBody"; + + +export class CreateMonitorAgentProcessResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: CreateMonitorAgentProcessResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateMonitorAgentProcessResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorAgentProcessResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorAgentProcessResponseBody.ts new file mode 100644 index 0000000..a301fa7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorAgentProcessResponseBody.ts @@ -0,0 +1,79 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateMonitorAgentProcessResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The process ID. + * + * @example + * 123456 + */ + id?: number; + /** + * @remarks + * The error message. + * + * @example + * User not authorized to operate on the specified resource. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 971CC023-5A96-452A-BB7C-2483F948BCFD + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + id: 'Id', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + id: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupByResourceGroupIdRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupByResourceGroupIdRequest.ts new file mode 100644 index 0000000..279cf59 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupByResourceGroupIdRequest.ts @@ -0,0 +1,109 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateMonitorGroupByResourceGroupIdRequest extends $dara.Model { + /** + * @remarks + * The alert contact groups. The alert notifications of the application group are sent to the alert contacts that belong to the specified alert contact groups. + * + * 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). For information about how to obtain alert contact groups, see [DescribeContactGroupList](https://help.aliyun.com/document_detail/114922.html). + * + * This parameter is required. + * + * @example + * ECS_Group + */ + contactGroupList?: string[]; + /** + * @remarks + * Specifies whether the CloudMonitor agent is automatically installed for the application group. CloudMonitor determines whether to automatically install the CloudMonitor agent for the hosts in an application group based on the value of this parameter. Valid values: + * + * * true: The CloudMonitor agent is automatically installed. + * * false (default): The CloudMonitor agent is not automatically installed. + * + * @example + * true + */ + enableInstallAgent?: boolean; + /** + * @remarks + * Specifies whether the application group automatically subscribes to event notifications. If events whose severity level is critical or warning occur on resources in an application group, CloudMonitor sends alert notifications. Valid values: + * + * * true: The application group automatically subscribes to event notifications. + * * false (default): The application group does not automatically subscribe to event notifications. + * + * @example + * true + */ + enableSubscribeEvent?: boolean; + /** + * @remarks + * The ID of the region where the resource group resides. + * + * For information about how to obtain the ID of the region where a resource group resides, see [GetResourceGroup](https://help.aliyun.com/document_detail/158866.html). + * + * This parameter is required. + * + * @example + * cn-hangzhou + */ + regionId?: string; + /** + * @remarks + * The ID of the resource group. + * + * For information about how to obtain the ID of a resource group, see [ListResourceGroups](https://help.aliyun.com/document_detail/158855.html). + * + * This parameter is required. + * + * @example + * rg-acfmw3ty5y7**** + */ + resourceGroupId?: string; + /** + * @remarks + * The name of the resource group. + * + * For information about how to obtain the name of a resource group, see [ListResourceGroups](https://help.aliyun.com/document_detail/158855.html). + * + * This parameter is required. + * + * @example + * CloudMonitor + */ + resourceGroupName?: string; + static names(): { [key: string]: string } { + return { + contactGroupList: 'ContactGroupList', + enableInstallAgent: 'EnableInstallAgent', + enableSubscribeEvent: 'EnableSubscribeEvent', + regionId: 'RegionId', + resourceGroupId: 'ResourceGroupId', + resourceGroupName: 'ResourceGroupName', + }; + } + + static types(): { [key: string]: any } { + return { + contactGroupList: { 'type': 'array', 'itemType': 'string' }, + enableInstallAgent: 'boolean', + enableSubscribeEvent: 'boolean', + regionId: 'string', + resourceGroupId: 'string', + resourceGroupName: 'string', + }; + } + + validate() { + if(Array.isArray(this.contactGroupList)) { + $dara.Model.validateArray(this.contactGroupList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupByResourceGroupIdResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupByResourceGroupIdResponse.ts new file mode 100644 index 0000000..f3566b0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupByResourceGroupIdResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { CreateMonitorGroupByResourceGroupIdResponseBody } from "./CreateMonitorGroupByResourceGroupIdResponseBody"; + + +export class CreateMonitorGroupByResourceGroupIdResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: CreateMonitorGroupByResourceGroupIdResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateMonitorGroupByResourceGroupIdResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupByResourceGroupIdResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupByResourceGroupIdResponseBody.ts new file mode 100644 index 0000000..51bd7f2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupByResourceGroupIdResponseBody.ts @@ -0,0 +1,79 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateMonitorGroupByResourceGroupIdResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 3607**** + */ + id?: number; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 784CAB3C-F613-5BCE-8469-6DCB29B18A20 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + id: 'Id', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + id: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupInstancesRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupInstancesRequest.ts new file mode 100644 index 0000000..a10ad85 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupInstancesRequest.ts @@ -0,0 +1,121 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateMonitorGroupInstancesRequestInstances extends $dara.Model { + /** + * @remarks + * The abbreviation of the Alibaba Cloud service name. + * + * To obtain the abbreviation of an Alibaba Cloud service name, call the [DescribeProjectMeta](https://help.aliyun.com/document_detail/114916.html) operation. The `metricCategory` tag in the `Labels` response parameter indicates the abbreviation of the Alibaba Cloud service name. + * + * This parameter is required. + * + * @example + * ecs + */ + category?: string; + /** + * @remarks + * The instance ID. + * + * This parameter is required. + * + * @example + * i-2ze26xj5wwy12**** + */ + instanceId?: string; + /** + * @remarks + * The instance name. + * + * This parameter is required. + * + * @example + * test-instance-ecs + */ + instanceName?: string; + /** + * @remarks + * The region ID of the instance. + * + * This parameter is required. + * + * @example + * cn-hangzhou + */ + regionId?: string; + static names(): { [key: string]: string } { + return { + category: 'Category', + instanceId: 'InstanceId', + instanceName: 'InstanceName', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + category: 'string', + instanceId: 'string', + instanceName: 'string', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateMonitorGroupInstancesRequest extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * This parameter is required. + * + * @example + * 3607**** + */ + groupId?: string; + /** + * @remarks + * The instances that you want to add to the application group. + * + * This parameter is required. + */ + instances?: CreateMonitorGroupInstancesRequestInstances[]; + regionId?: string; + static names(): { [key: string]: string } { + return { + groupId: 'GroupId', + instances: 'Instances', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + groupId: 'string', + instances: { 'type': 'array', 'itemType': CreateMonitorGroupInstancesRequestInstances }, + regionId: 'string', + }; + } + + validate() { + if(Array.isArray(this.instances)) { + $dara.Model.validateArray(this.instances); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupInstancesResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupInstancesResponse.ts new file mode 100644 index 0000000..9397307 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupInstancesResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { CreateMonitorGroupInstancesResponseBody } from "./CreateMonitorGroupInstancesResponseBody"; + + +export class CreateMonitorGroupInstancesResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: CreateMonitorGroupInstancesResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateMonitorGroupInstancesResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupInstancesResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupInstancesResponseBody.ts new file mode 100644 index 0000000..7c4a07a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupInstancesResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateMonitorGroupInstancesResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 1BC69FEB-56CD-4555-A0E2-02536A24A946 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupNotifyPolicyRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupNotifyPolicyRequest.ts new file mode 100644 index 0000000..3bb0ff6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupNotifyPolicyRequest.ts @@ -0,0 +1,79 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateMonitorGroupNotifyPolicyRequest extends $dara.Model { + /** + * @remarks + * The end time of the validity period for the policy. + * + * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * This parameter is required. + * + * @example + * 1623208500000 + */ + endTime?: number; + /** + * @remarks + * The ID of the application group. + * + * This parameter is required. + * + * @example + * 7301**** + */ + groupId?: string; + /** + * @remarks + * The policy type. Valid value: PauseNotify. + * + * This parameter is required. + * + * @example + * PauseNotify + */ + policyType?: string; + regionId?: string; + /** + * @remarks + * The start time of the validity period for the policy. + * + * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * This parameter is required. + * + * @example + * 1622949300000 + */ + startTime?: number; + static names(): { [key: string]: string } { + return { + endTime: 'EndTime', + groupId: 'GroupId', + policyType: 'PolicyType', + regionId: 'RegionId', + startTime: 'StartTime', + }; + } + + static types(): { [key: string]: any } { + return { + endTime: 'number', + groupId: 'string', + policyType: 'string', + regionId: 'string', + startTime: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupNotifyPolicyResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupNotifyPolicyResponse.ts new file mode 100644 index 0000000..0c6df38 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupNotifyPolicyResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { CreateMonitorGroupNotifyPolicyResponseBody } from "./CreateMonitorGroupNotifyPolicyResponseBody"; + + +export class CreateMonitorGroupNotifyPolicyResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: CreateMonitorGroupNotifyPolicyResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateMonitorGroupNotifyPolicyResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupNotifyPolicyResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupNotifyPolicyResponseBody.ts new file mode 100644 index 0000000..d23ac81 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupNotifyPolicyResponseBody.ts @@ -0,0 +1,79 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateMonitorGroupNotifyPolicyResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 13356BCA-3EC3-4748-A771-2064DA69AEF1 + */ + requestId?: string; + /** + * @remarks + * The total number of entries returned. + * + * @example + * 1 + */ + result?: number; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + result: 'Result', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + result: 'number', + success: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupRequest.ts new file mode 100644 index 0000000..bb78604 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupRequest.ts @@ -0,0 +1,51 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateMonitorGroupRequest extends $dara.Model { + /** + * @remarks + * The alert contact group. The alert notifications of the application group are sent to the alert contacts that belong to the alert contact group. + * + * > 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](~~PutContact~~) and [PutContactGroup](~~PutContactGroup~~). + * + * @example + * ECS_Alert_Group + */ + contactGroups?: string; + /** + * @remarks + * The name of the application group. + * + * This parameter is required. + * + * @example + * ECS_Group + */ + groupName?: string; + regionId?: string; + static names(): { [key: string]: string } { + return { + contactGroups: 'ContactGroups', + groupName: 'GroupName', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + contactGroups: 'string', + groupName: 'string', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupResponse.ts new file mode 100644 index 0000000..118b2e5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { CreateMonitorGroupResponseBody } from "./CreateMonitorGroupResponseBody"; + + +export class CreateMonitorGroupResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: CreateMonitorGroupResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateMonitorGroupResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupResponseBody.ts new file mode 100644 index 0000000..8acc0f7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitorGroupResponseBody.ts @@ -0,0 +1,79 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateMonitorGroupResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The ID of the application group. + * + * @example + * 1234567 + */ + groupId?: number; + /** + * @remarks + * The returned message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 83C89BA6-ABD4-4398-A175-83E86C47A001 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + groupId: 'GroupId', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'number', + groupId: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitoringAgentProcessRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitoringAgentProcessRequest.ts new file mode 100644 index 0000000..d240ee1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitoringAgentProcessRequest.ts @@ -0,0 +1,59 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateMonitoringAgentProcessRequest extends $dara.Model { + /** + * @remarks + * The instance ID. + * + * This parameter is required. + * + * @example + * i-2ze51wjtwox01r8g**** + */ + instanceId?: string; + /** + * @remarks + * The name of the process. + * + * @example + * java + */ + processName?: string; + /** + * @remarks + * The user who launches the process. + * + * @example + * admin + */ + processUser?: string; + regionId?: string; + static names(): { [key: string]: string } { + return { + instanceId: 'InstanceId', + processName: 'ProcessName', + processUser: 'ProcessUser', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + instanceId: 'string', + processName: 'string', + processUser: 'string', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitoringAgentProcessResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitoringAgentProcessResponse.ts new file mode 100644 index 0000000..1463cad --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitoringAgentProcessResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { CreateMonitoringAgentProcessResponseBody } from "./CreateMonitoringAgentProcessResponseBody"; + + +export class CreateMonitoringAgentProcessResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: CreateMonitoringAgentProcessResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateMonitoringAgentProcessResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitoringAgentProcessResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitoringAgentProcessResponseBody.ts new file mode 100644 index 0000000..44f9b88 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateMonitoringAgentProcessResponseBody.ts @@ -0,0 +1,79 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateMonitoringAgentProcessResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The process ID. + * + * @example + * 12345 + */ + id?: number; + /** + * @remarks + * The error message. + * + * @example + * User not authorized to operate on the specified resource. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 0DFCB47D-E7E1-4CBE-A381-8339F7B300EF + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + id: 'Id', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + id: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateSiteMonitorRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateSiteMonitorRequest.ts new file mode 100644 index 0000000..9ffb278 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateSiteMonitorRequest.ts @@ -0,0 +1,137 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateSiteMonitorRequest extends $dara.Model { + /** + * @remarks + * The URL or IP address that is monitored by the task. + * + * This parameter is required. + * + * @example + * https://www.aliyun.com + */ + address?: string; + agentGroup?: string; + /** + * @remarks + * The ID of the alert rule. + * + * For more information about how to obtain the ID of an alert rule, see [DescribeMetricRuleList](https://help.aliyun.com/document_detail/114941.html). + * + * @example + * SystemDefault_acs_ecs_dashboard_InternetOutRate_Percent + */ + alertIds?: string; + /** + * @remarks + * The custom detection period. You can only select a time period from Monday to Sunday for detection. + * + * @example + * {"start_hour":0,"end_hour":24, "days":[0], "time_zone":"Local"} + */ + customSchedule?: string; + /** + * @remarks + * The interval at which detection requests are sent. + * + * Valid values: 1, 5, 15, 30, and 60. Unit: minutes. + * + * Default value: 1. + * + * @example + * 1 + */ + interval?: string; + /** + * @remarks + * The information of the detection points. If you leave this parameter empty, the system randomly selects three detection points. + * + * The value is a JSON array. Example: `[{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}]`. The values of the city field indicate Beijing, Hangzhou, and Qingdao. + * + * For information about how to obtain detection points, see [DescribeSiteMonitorISPCityList](https://help.aliyun.com/document_detail/115045.html). + * + * @example + * [{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}] + */ + ispCities?: string; + /** + * @remarks + * The extended options of the protocol that is used by the site monitoring task. The options vary based on the protocol. + * + * @example + * {"time_out":5000} + */ + optionsJson?: string; + regionId?: string; + /** + * @remarks + * The name of the site monitoring task. + * + * The name must be 4 to 100 characters in length, and can contain letters, digits, and underscores (_). + * + * This parameter is required. + * + * @example + * HanZhou_ECS1 + */ + taskName?: string; + /** + * @remarks + * The protocol that is used by the site monitoring task. + * + * Valid values: HTTP, HTTPS, PING, TCP, UDP, DNS, SMTP, POP3, FTP, and WEBSOCKET. + * + * This parameter is required. + * + * @example + * HTTPS + */ + taskType?: string; + /** + * @example + * {"vpcId": "vpc-xxxxxx", "vswitchId": "vsw-xxxxxx", "securityGroupId": "sg-xxxxxx", "region": "cn-beijing"} + */ + vpcConfig?: string; + static names(): { [key: string]: string } { + return { + address: 'Address', + agentGroup: 'AgentGroup', + alertIds: 'AlertIds', + customSchedule: 'CustomSchedule', + interval: 'Interval', + ispCities: 'IspCities', + optionsJson: 'OptionsJson', + regionId: 'RegionId', + taskName: 'TaskName', + taskType: 'TaskType', + vpcConfig: 'VpcConfig', + }; + } + + static types(): { [key: string]: any } { + return { + address: 'string', + agentGroup: 'string', + alertIds: 'string', + customSchedule: 'string', + interval: 'string', + ispCities: 'string', + optionsJson: 'string', + regionId: 'string', + taskName: 'string', + taskType: 'string', + vpcConfig: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateSiteMonitorResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateSiteMonitorResponse.ts new file mode 100644 index 0000000..e2c05ff --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateSiteMonitorResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { CreateSiteMonitorResponseBody } from "./CreateSiteMonitorResponseBody"; + + +export class CreateSiteMonitorResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: CreateSiteMonitorResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CreateSiteMonitorResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CreateSiteMonitorResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CreateSiteMonitorResponseBody.ts new file mode 100644 index 0000000..8ccf3c4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CreateSiteMonitorResponseBody.ts @@ -0,0 +1,288 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CreateSiteMonitorResponseBodyCreateResultListCreateResultList extends $dara.Model { + /** + * @remarks + * The ID of the site monitoring task. + * + * @example + * 2c8dbdf9-a3ab-46a1-85a4-f094965e**** + */ + taskId?: string; + /** + * @remarks + * The name of the site monitoring task. + * + * @example + * HanZhou_ECS1 + */ + taskName?: string; + static names(): { [key: string]: string } { + return { + taskId: 'TaskId', + taskName: 'TaskName', + }; + } + + static types(): { [key: string]: any } { + return { + taskId: 'string', + taskName: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateSiteMonitorResponseBodyCreateResultList extends $dara.Model { + createResultList?: CreateSiteMonitorResponseBodyCreateResultListCreateResultList[]; + static names(): { [key: string]: string } { + return { + createResultList: 'CreateResultList', + }; + } + + static types(): { [key: string]: any } { + return { + createResultList: { 'type': 'array', 'itemType': CreateSiteMonitorResponseBodyCreateResultListCreateResultList }, + }; + } + + validate() { + if(Array.isArray(this.createResultList)) { + $dara.Model.validateArray(this.createResultList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateSiteMonitorResponseBodyDataAttachAlertResultContact extends $dara.Model { + /** + * @remarks + * The status code that is returned after you associate the existing alert rule with the site monitoring task. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The message that is returned after you associate the existing alert rule with the site monitoring task. + * + * @example + * successful + */ + message?: string; + /** + * @remarks + * The ID of the request that was sent to associate the existing alert rule with the site monitoring task. + * + * @example + * 5dd33455-4f65-4b0c-9200-33d66f3f340b + */ + requestId?: string; + /** + * @remarks + * The ID of the alert rule. + * + * @example + * SystemDefault_acs_ecs_dashboard_InternetOutRate_Percent + */ + ruleId?: string; + /** + * @remarks + * Indicates whether the existing alert rule was associated with the site monitoring task. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + ruleId: 'RuleId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + ruleId: 'string', + success: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateSiteMonitorResponseBodyDataAttachAlertResult extends $dara.Model { + contact?: CreateSiteMonitorResponseBodyDataAttachAlertResultContact[]; + static names(): { [key: string]: string } { + return { + contact: 'Contact', + }; + } + + static types(): { [key: string]: any } { + return { + contact: { 'type': 'array', 'itemType': CreateSiteMonitorResponseBodyDataAttachAlertResultContact }, + }; + } + + validate() { + if(Array.isArray(this.contact)) { + $dara.Model.validateArray(this.contact); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateSiteMonitorResponseBodyData extends $dara.Model { + /** + * @remarks + * The result that is returned after you associate the existing alert rule with the site monitoring task. + */ + attachAlertResult?: CreateSiteMonitorResponseBodyDataAttachAlertResult; + static names(): { [key: string]: string } { + return { + attachAlertResult: 'AttachAlertResult', + }; + } + + static types(): { [key: string]: any } { + return { + attachAlertResult: CreateSiteMonitorResponseBodyDataAttachAlertResult, + }; + } + + validate() { + if(this.attachAlertResult && typeof (this.attachAlertResult as any).validate === 'function') { + (this.attachAlertResult as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class CreateSiteMonitorResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned result. + * + * If a site monitoring task is created, the result is returned. If a site monitoring task fails to be created, no result is returned. + */ + createResultList?: CreateSiteMonitorResponseBodyCreateResultList; + /** + * @remarks + * The result of the site monitoring task. + */ + data?: CreateSiteMonitorResponseBodyData; + /** + * @remarks + * The returned message. + * + * @example + * Successful + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 68192f5d-0d45-4b98-9724-892813f86c71 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + createResultList: 'CreateResultList', + data: 'Data', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + createResultList: CreateSiteMonitorResponseBodyCreateResultList, + data: CreateSiteMonitorResponseBodyData, + message: 'string', + requestId: 'string', + success: 'string', + }; + } + + validate() { + if(this.createResultList && typeof (this.createResultList as any).validate === 'function') { + (this.createResultList as any).validate(); + } + if(this.data && typeof (this.data as any).validate === 'function') { + (this.data as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CursorRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CursorRequest.ts new file mode 100644 index 0000000..01ce308 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CursorRequest.ts @@ -0,0 +1,114 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { Matcher } from "./Matcher"; + + +export class CursorRequest extends $dara.Model { + /** + * @remarks + * The end of the time range to query. + * + * Unit: milliseconds. + * + * > + * + * * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. For example, 2023-01-01T00:00:00Z indicates January 1, 2023, 00:00:00 UTC. + * + * * If you do not set the end time, the end time is infinite. You can leave this parameter empty in real-time export scenarios. + * * In CloudMonitor, the TTL of monitoring data varies with the time granularity. Specify a proper time interval based on the TTL corresponding to the value of the `Period` parameter. + * + * @example + * 1641645000000 + */ + endTime?: string; + /** + * @remarks + * The dimension information of the metric. + */ + matchers?: Matcher[]; + /** + * @remarks + * The metric that is used to monitor the cloud service. + * + * For more information about the metrics of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * cpu_idle + */ + metric?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * For more information about the namespaces of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The time interval based on which the metric value is measured. + * + * Unit: seconds. + * + * > Generally, the time interval is 60 seconds. For more information about specific values, see the `Period` parameter in [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * 60 + */ + period?: number; + /** + * @remarks + * The beginning of the time range to query. + * + * Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. For example, 2023-01-01T00:00:00Z indicates January 1, 2023, 00:00:00 UTC. + * + * > In CloudMonitor, the TTL of monitoring data varies with the time granularity. Specify a proper time interval based on the TTL corresponding to the value of the `Period` parameter. + * + * This parameter is required. + * + * @example + * 1641627000000 + */ + startTime?: string; + static names(): { [key: string]: string } { + return { + endTime: 'EndTime', + matchers: 'Matchers', + metric: 'Metric', + namespace: 'Namespace', + period: 'Period', + startTime: 'StartTime', + }; + } + + static types(): { [key: string]: any } { + return { + endTime: 'string', + matchers: { 'type': 'array', 'itemType': Matcher }, + metric: 'string', + namespace: 'string', + period: 'number', + startTime: 'string', + }; + } + + validate() { + if(Array.isArray(this.matchers)) { + $dara.Model.validateArray(this.matchers); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CursorResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CursorResponse.ts new file mode 100644 index 0000000..165f8f1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CursorResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { CursorResponseBody } from "./CursorResponseBody"; + + +export class CursorResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: CursorResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: CursorResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CursorResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CursorResponseBody.ts new file mode 100644 index 0000000..001e1a8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CursorResponseBody.ts @@ -0,0 +1,79 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CursorResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * Cursor is used as an input parameter for data export in the [BatchExport](https://help.aliyun.com/document_detail/2329847.html) operation. + * + * @example + * v2.5eyJiYXRjaGVzIjoxLCJidWNrZXRCeXRlcyI6IndBPT0iLCJidWNrZXRzIjo0LCJjdXJyZW50QnVja2V0IjotNjQsImN1cnJlbnRUYXJnZXRUaW1lU2xvdCI6MTY3ODc1MjAwMCwiZW5kVGltZSI6MTY3ODc4MjQxOTAwMCwiZXhwb3J0RW5kVGltZSI6MTY3ODc4MjQxOTAwMCwiZXhwb3J0U3RhcnRUaW1lIjoxNjc4NzgxODE5MDAwLCJleHByZXNzUmFuZ2UiOmZhbHNlLCJoYXNOZXh0Ijp0cnVlLCJpbmRleCI6MCwibGF0ZXN0TG9nVGltZSI6MCwibWF0Y2hlcnMiOnsiY2hhaW4iOlt7ImxhYmVsIjoidXNlcklkIiwib3BlcmF0b3IiOiJFUVVBTFMiLCJ2YWx1ZSI6IjEyNzA2NzY2Nzk1NDY3MDQifV0sImxvY2tlZCI6dHJ1ZX0sIm1ldHJpYyI6IlNwbGl0cndQcm94eU1heFJlc3BvbnNlU2l6ZSIsIm1ldHJpY1R5cGUiOiJNRVRSSUMiLCJuYW1lc3BhY2UiOiJhY3Nfa3ZzdG9yZV9leCIsIm5leHRQa0FkYXB0ZXIiOnsiZGltIjoiVjowXG5EOmB1c2VySWRgPTEyNzA2NzY2Nzk1NDY3MDQsYGluc3RhbmNlSWRgPXItcmo5ZjlzMTlsc3V1MXd1bnVyLGBub2RlSWRgPXItcmo5ZjlzMTlsc3V1MXd1bnVyLXByb3h5LTIsXG4iLCJtZXRhIjoiXG5WOjBcbk06YWNzX2t2c3RvcmVfZXgvU3BsaXRyd1Byb3h5TWF4UmVzcG9uc2VTaXplXG5XOjYwXG5COjRcbkk6LTFcblQ6MFxuQzpgQXZlcmFnZWAsYE1heGltdW1gLGBfX2NvdW50X19gLGBfX3RzX19gXG4iLCJyZCI6InN1YkFMU0RwWXY2K0t6aENQQUFBWkErNUFKMEpjbGErRGd2V0hFNWxDSHMvbGtqR2FXYTFJTkVwdFE9PSIsInRhZyI6IiJ9LCJvZmZzZXQiOjAsIm9mZnNldERpZ2l0Ijo0NTU0NTczNDQyMTc4NDIxMjIsInN0YXJ0VGltZSI6MTY3ODc4MTgxOTAwMCwic3RlcCI6LTEsInRhZ01hdGNoZXJzIjp7ImNoYWluIjpbXSwibG9ja2VkIjp0cnVlfSwidGFyZ2V0VGltZVNsb3RzIjpbMTY3ODY2NTYwMCwxNjc4NzUyMDAwXSwidXVpZCI6ImQwMmFhZmY1LWU3ZGQtNDUyYy0*********** + */ + cursor?: string; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 915C2D7A-E6A4-17C3-8E13-4DBDD61E7919 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + cursor: 'Cursor', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'number', + cursor: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/CursorShrinkRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/CursorShrinkRequest.ts new file mode 100644 index 0000000..d27f744 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/CursorShrinkRequest.ts @@ -0,0 +1,110 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class CursorShrinkRequest extends $dara.Model { + /** + * @remarks + * The end of the time range to query. + * + * Unit: milliseconds. + * + * > + * + * * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. For example, 2023-01-01T00:00:00Z indicates January 1, 2023, 00:00:00 UTC. + * + * * If you do not set the end time, the end time is infinite. You can leave this parameter empty in real-time export scenarios. + * * In CloudMonitor, the TTL of monitoring data varies with the time granularity. Specify a proper time interval based on the TTL corresponding to the value of the `Period` parameter. + * + * @example + * 1641645000000 + */ + endTime?: string; + /** + * @remarks + * The dimension information of the metric. + */ + matchersShrink?: string; + /** + * @remarks + * The metric that is used to monitor the cloud service. + * + * For more information about the metrics of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * cpu_idle + */ + metric?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * For more information about the namespaces of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The time interval based on which the metric value is measured. + * + * Unit: seconds. + * + * > Generally, the time interval is 60 seconds. For more information about specific values, see the `Period` parameter in [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * 60 + */ + period?: number; + /** + * @remarks + * The beginning of the time range to query. + * + * Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. For example, 2023-01-01T00:00:00Z indicates January 1, 2023, 00:00:00 UTC. + * + * > In CloudMonitor, the TTL of monitoring data varies with the time granularity. Specify a proper time interval based on the TTL corresponding to the value of the `Period` parameter. + * + * This parameter is required. + * + * @example + * 1641627000000 + */ + startTime?: string; + static names(): { [key: string]: string } { + return { + endTime: 'EndTime', + matchersShrink: 'Matchers', + metric: 'Metric', + namespace: 'Namespace', + period: 'Period', + startTime: 'StartTime', + }; + } + + static types(): { [key: string]: any } { + return { + endTime: 'string', + matchersShrink: 'string', + metric: 'string', + namespace: 'string', + period: 'number', + startTime: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteContactGroupRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteContactGroupRequest.ts new file mode 100644 index 0000000..72e29ec --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteContactGroupRequest.ts @@ -0,0 +1,36 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteContactGroupRequest extends $dara.Model { + /** + * @remarks + * The name of the alert contact group. + * + * This parameter is required. + * + * @example + * contact_group_2019_templatedfkXQ + */ + contactGroupName?: string; + static names(): { [key: string]: string } { + return { + contactGroupName: 'ContactGroupName', + }; + } + + static types(): { [key: string]: any } { + return { + contactGroupName: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteContactGroupResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteContactGroupResponse.ts new file mode 100644 index 0000000..e9a7726 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteContactGroupResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DeleteContactGroupResponseBody } from "./DeleteContactGroupResponseBody"; + + +export class DeleteContactGroupResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DeleteContactGroupResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteContactGroupResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteContactGroupResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteContactGroupResponseBody.ts new file mode 100644 index 0000000..25a1bab --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteContactGroupResponseBody.ts @@ -0,0 +1,66 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteContactGroupResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * F722BE59-2400-4A64-9C1A-AD886AED9A69 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: true and false. + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteContactRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteContactRequest.ts new file mode 100644 index 0000000..9cf884f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteContactRequest.ts @@ -0,0 +1,36 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteContactRequest extends $dara.Model { + /** + * @remarks + * The name of the alert contact. + * + * This parameter is required. + * + * @example + * test-01 + */ + contactName?: string; + static names(): { [key: string]: string } { + return { + contactName: 'ContactName', + }; + } + + static types(): { [key: string]: any } { + return { + contactName: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteContactResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteContactResponse.ts new file mode 100644 index 0000000..bcfadee --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteContactResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DeleteContactResponseBody } from "./DeleteContactResponseBody"; + + +export class DeleteContactResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DeleteContactResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteContactResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteContactResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteContactResponseBody.ts new file mode 100644 index 0000000..a66a2b6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteContactResponseBody.ts @@ -0,0 +1,66 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteContactResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 50D4CFE1-01E5-4543-939C-18BC01E3EC1C + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: true and false. + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteCustomMetricRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteCustomMetricRequest.ts new file mode 100644 index 0000000..0933748 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteCustomMetricRequest.ts @@ -0,0 +1,75 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteCustomMetricRequest extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * This parameter is required. + * + * @example + * 3607**** + */ + groupId?: string; + /** + * @remarks + * The MD5 value of the HTTP request body. The MD5 value is a 128-bit hash value used to verify the uniqueness of the reported monitoring data. + * + * > `Md5` is returned when you query the reported monitoring data of a metric. + * + * @example + * 38796C8CFFEB8F89BB2A626C7BD7**** + */ + md5?: string; + /** + * @remarks + * The name of the metric. + * + * This parameter is required. + * + * @example + * AdvanceCredit + */ + metricName?: string; + regionId?: string; + /** + * @remarks + * The ID of the request for reporting monitoring data. + * + * > `UUID` is returned when you query the reported monitoring data of a metric. We recommend that you specify the `Md5` parameter. + * + * @example + * 5497633c-66c5-4eae-abaa-89db5adb**** + */ + UUID?: string; + static names(): { [key: string]: string } { + return { + groupId: 'GroupId', + md5: 'Md5', + metricName: 'MetricName', + regionId: 'RegionId', + UUID: 'UUID', + }; + } + + static types(): { [key: string]: any } { + return { + groupId: 'string', + md5: 'string', + metricName: 'string', + regionId: 'string', + UUID: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteCustomMetricResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteCustomMetricResponse.ts new file mode 100644 index 0000000..946c5b7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteCustomMetricResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DeleteCustomMetricResponseBody } from "./DeleteCustomMetricResponseBody"; + + +export class DeleteCustomMetricResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DeleteCustomMetricResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteCustomMetricResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteCustomMetricResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteCustomMetricResponseBody.ts new file mode 100644 index 0000000..ccfcaa5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteCustomMetricResponseBody.ts @@ -0,0 +1,56 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteCustomMetricResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call is successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * 05B36C2C-5F6E-48D5-8B41-CE36DD7EE8E0 + */ + requestId?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteDynamicTagGroupRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteDynamicTagGroupRequest.ts new file mode 100644 index 0000000..cd79096 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteDynamicTagGroupRequest.ts @@ -0,0 +1,41 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteDynamicTagGroupRequest extends $dara.Model { + /** + * @remarks + * The ID of the tag rule. + * + * For information about how to obtain the ID of a tag rule, see [DescribeDynamicTagRuleList](https://help.aliyun.com/document_detail/150126.html). + * + * This parameter is required. + * + * @example + * 6b882d9a-5117-42e2-9d0c-4749a0c6**** + */ + dynamicTagRuleId?: string; + regionId?: string; + static names(): { [key: string]: string } { + return { + dynamicTagRuleId: 'DynamicTagRuleId', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + dynamicTagRuleId: 'string', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteDynamicTagGroupResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteDynamicTagGroupResponse.ts new file mode 100644 index 0000000..715397a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteDynamicTagGroupResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DeleteDynamicTagGroupResponseBody } from "./DeleteDynamicTagGroupResponseBody"; + + +export class DeleteDynamicTagGroupResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DeleteDynamicTagGroupResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteDynamicTagGroupResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteDynamicTagGroupResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteDynamicTagGroupResponseBody.ts new file mode 100644 index 0000000..daf2c0b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteDynamicTagGroupResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteDynamicTagGroupResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 08AAE67E-77B5-485B-9C79-D7C8C059150A + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteEventRuleTargetsRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteEventRuleTargetsRequest.ts new file mode 100644 index 0000000..6c0fbe3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteEventRuleTargetsRequest.ts @@ -0,0 +1,56 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteEventRuleTargetsRequest extends $dara.Model { + /** + * @remarks + * The IDs of event-triggered alert rules. + * + * This parameter is required. + * + * @example + * 1 + */ + ids?: string[]; + regionId?: string; + /** + * @remarks + * The name of the event-triggered alert rule. + * + * For information about how to obtain the name of an event-triggered alert rule, see [DescribeEventRuleList](https://help.aliyun.com/document_detail/114996.html). + * + * This parameter is required. + * + * @example + * testRule + */ + ruleName?: string; + static names(): { [key: string]: string } { + return { + ids: 'Ids', + regionId: 'RegionId', + ruleName: 'RuleName', + }; + } + + static types(): { [key: string]: any } { + return { + ids: { 'type': 'array', 'itemType': 'string' }, + regionId: 'string', + ruleName: 'string', + }; + } + + validate() { + if(Array.isArray(this.ids)) { + $dara.Model.validateArray(this.ids); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteEventRuleTargetsResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteEventRuleTargetsResponse.ts new file mode 100644 index 0000000..5d98a67 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteEventRuleTargetsResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DeleteEventRuleTargetsResponseBody } from "./DeleteEventRuleTargetsResponseBody"; + + +export class DeleteEventRuleTargetsResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DeleteEventRuleTargetsResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteEventRuleTargetsResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteEventRuleTargetsResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteEventRuleTargetsResponseBody.ts new file mode 100644 index 0000000..f36a932 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteEventRuleTargetsResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteEventRuleTargetsResponseBody extends $dara.Model { + /** + * @remarks + * The response code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * Success + */ + message?: string; + /** + * @remarks + * The request ID. You can use the request ID to query logs and troubleshoot issues. + * + * @example + * 7ADD7EFB-7555-4EC1-A3D9-F9955C189CCF + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * `true` + * * `false` + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteEventRulesRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteEventRulesRequest.ts new file mode 100644 index 0000000..2fe5362 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteEventRulesRequest.ts @@ -0,0 +1,39 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteEventRulesRequest extends $dara.Model { + /** + * @remarks + * The name of the alert rule. Valid values of N: 1 to 20. + * + * This parameter is required. + * + * @example + * rule1 + */ + ruleNames?: string[]; + static names(): { [key: string]: string } { + return { + ruleNames: 'RuleNames', + }; + } + + static types(): { [key: string]: any } { + return { + ruleNames: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.ruleNames)) { + $dara.Model.validateArray(this.ruleNames); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteEventRulesResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteEventRulesResponse.ts new file mode 100644 index 0000000..d606881 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteEventRulesResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DeleteEventRulesResponseBody } from "./DeleteEventRulesResponseBody"; + + +export class DeleteEventRulesResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DeleteEventRulesResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteEventRulesResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteEventRulesResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteEventRulesResponseBody.ts new file mode 100644 index 0000000..7a2d492 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteEventRulesResponseBody.ts @@ -0,0 +1,66 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteEventRulesResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * E5A72B5B-4F44-438C-B68A-147FD5DC53A8 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: true and false. + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteExporterOutputRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteExporterOutputRequest.ts new file mode 100644 index 0000000..23804b0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteExporterOutputRequest.ts @@ -0,0 +1,39 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteExporterOutputRequest extends $dara.Model { + /** + * @remarks + * The name of the configuration set. + * + * This parameter is required. + * + * @example + * testName + */ + destName?: string; + regionId?: string; + static names(): { [key: string]: string } { + return { + destName: 'DestName', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + destName: 'string', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteExporterOutputResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteExporterOutputResponse.ts new file mode 100644 index 0000000..85e9dc4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteExporterOutputResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DeleteExporterOutputResponseBody } from "./DeleteExporterOutputResponseBody"; + + +export class DeleteExporterOutputResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DeleteExporterOutputResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteExporterOutputResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteExporterOutputResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteExporterOutputResponseBody.ts new file mode 100644 index 0000000..4e68fa1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteExporterOutputResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteExporterOutputResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. Other status codes indicate that the request failed. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * Success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 2DECF751-7AFA-43BB-8C63-2B6B07E51AE1 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * `true` + * * `false` + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteExporterRuleRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteExporterRuleRequest.ts new file mode 100644 index 0000000..630ba4b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteExporterRuleRequest.ts @@ -0,0 +1,39 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteExporterRuleRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * The name of the data export rule. + * + * This parameter is required. + * + * @example + * myRuleName + */ + ruleName?: string; + static names(): { [key: string]: string } { + return { + regionId: 'RegionId', + ruleName: 'RuleName', + }; + } + + static types(): { [key: string]: any } { + return { + regionId: 'string', + ruleName: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteExporterRuleResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteExporterRuleResponse.ts new file mode 100644 index 0000000..5049b59 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteExporterRuleResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DeleteExporterRuleResponseBody } from "./DeleteExporterRuleResponseBody"; + + +export class DeleteExporterRuleResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DeleteExporterRuleResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteExporterRuleResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteExporterRuleResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteExporterRuleResponseBody.ts new file mode 100644 index 0000000..1f69271 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteExporterRuleResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteExporterRuleResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. Other status codes indicate that the request failed. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 6A5F022D-AC7C-460E-94AE-B9E75083D023 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * `true` + * * `false` + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteGroupMonitoringAgentProcessRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteGroupMonitoringAgentProcessRequest.ts new file mode 100644 index 0000000..318cf78 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteGroupMonitoringAgentProcessRequest.ts @@ -0,0 +1,51 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteGroupMonitoringAgentProcessRequest extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * This parameter is required. + * + * @example + * 123456 + */ + groupId?: string; + /** + * @remarks + * The ID of the process monitoring task. + * + * This parameter is required. + * + * @example + * 48F83746-C817-478C-9B06-7158F56B**** + */ + id?: string; + regionId?: string; + static names(): { [key: string]: string } { + return { + groupId: 'GroupId', + id: 'Id', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + groupId: 'string', + id: 'string', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteGroupMonitoringAgentProcessResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteGroupMonitoringAgentProcessResponse.ts new file mode 100644 index 0000000..faa94d9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteGroupMonitoringAgentProcessResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DeleteGroupMonitoringAgentProcessResponseBody } from "./DeleteGroupMonitoringAgentProcessResponseBody"; + + +export class DeleteGroupMonitoringAgentProcessResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DeleteGroupMonitoringAgentProcessResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteGroupMonitoringAgentProcessResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteGroupMonitoringAgentProcessResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteGroupMonitoringAgentProcessResponseBody.ts new file mode 100644 index 0000000..70b25ec --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteGroupMonitoringAgentProcessResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteGroupMonitoringAgentProcessResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 3F6150F9-45C7-43F9-9578-A58B2E726C90 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHostAvailabilityRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHostAvailabilityRequest.ts new file mode 100644 index 0000000..93535de --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHostAvailabilityRequest.ts @@ -0,0 +1,42 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteHostAvailabilityRequest extends $dara.Model { + /** + * @remarks + * The task ID. Valid values of N: 1 to 20. + * + * This parameter is required. + * + * @example + * 12456 + */ + id?: number[]; + regionId?: string; + static names(): { [key: string]: string } { + return { + id: 'Id', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + id: { 'type': 'array', 'itemType': 'number' }, + regionId: 'string', + }; + } + + validate() { + if(Array.isArray(this.id)) { + $dara.Model.validateArray(this.id); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHostAvailabilityResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHostAvailabilityResponse.ts new file mode 100644 index 0000000..85306d8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHostAvailabilityResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DeleteHostAvailabilityResponseBody } from "./DeleteHostAvailabilityResponseBody"; + + +export class DeleteHostAvailabilityResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DeleteHostAvailabilityResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteHostAvailabilityResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHostAvailabilityResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHostAvailabilityResponseBody.ts new file mode 100644 index 0000000..a0322b3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHostAvailabilityResponseBody.ts @@ -0,0 +1,66 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteHostAvailabilityResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 57C782E6-B235-4842-AD2B-DB94961761EB + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: true and false. + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorNamespaceRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorNamespaceRequest.ts new file mode 100644 index 0000000..388b4d0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorNamespaceRequest.ts @@ -0,0 +1,41 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteHybridMonitorNamespaceRequest extends $dara.Model { + /** + * @remarks + * The name of the namespace. + * + * For information about how to obtain the name of a namespace, see [DescribeHybridMonitorNamespaceList](https://help.aliyun.com/document_detail/428880.html). + * + * This parameter is required. + * + * @example + * aliyun + */ + namespace?: string; + regionId?: string; + static names(): { [key: string]: string } { + return { + namespace: 'Namespace', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + namespace: 'string', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorNamespaceResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorNamespaceResponse.ts new file mode 100644 index 0000000..81632f8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorNamespaceResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DeleteHybridMonitorNamespaceResponseBody } from "./DeleteHybridMonitorNamespaceResponseBody"; + + +export class DeleteHybridMonitorNamespaceResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DeleteHybridMonitorNamespaceResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteHybridMonitorNamespaceResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorNamespaceResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorNamespaceResponseBody.ts new file mode 100644 index 0000000..0661422 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorNamespaceResponseBody.ts @@ -0,0 +1,67 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteHybridMonitorNamespaceResponseBody extends $dara.Model { + /** + * @remarks + * The returned message. + * + * @example + * Success + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * Namespace.NotFound + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 3843D23A-FB9E-5DC8-BCCC-458768B79296 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorSlsgroupRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorSlsgroupRequest.ts new file mode 100644 index 0000000..f5523fd --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorSlsgroupRequest.ts @@ -0,0 +1,41 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteHybridMonitorSLSGroupRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * The name of the Logstore group. + * + * For information about how to obtain the name of a Logstore group, see [DescribeHybridMonitorSLSGroup](https://help.aliyun.com/document_detail/429526.html). + * + * This parameter is required. + * + * @example + * Logstore_test + */ + SLSGroupName?: string; + static names(): { [key: string]: string } { + return { + regionId: 'RegionId', + SLSGroupName: 'SLSGroupName', + }; + } + + static types(): { [key: string]: any } { + return { + regionId: 'string', + SLSGroupName: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorSlsgroupResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorSlsgroupResponse.ts new file mode 100644 index 0000000..f79b915 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorSlsgroupResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DeleteHybridMonitorSLSGroupResponseBody } from "./DeleteHybridMonitorSlsgroupResponseBody"; + + +export class DeleteHybridMonitorSLSGroupResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DeleteHybridMonitorSLSGroupResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteHybridMonitorSLSGroupResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorSlsgroupResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorSlsgroupResponseBody.ts new file mode 100644 index 0000000..af1eafd --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorSlsgroupResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteHybridMonitorSLSGroupResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * RESOURCE_NOT_FOUND + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 85198BFF-1DE6-556E-B6A4-C77C51C62B8D + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorTaskRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorTaskRequest.ts new file mode 100644 index 0000000..459690c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorTaskRequest.ts @@ -0,0 +1,67 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteHybridMonitorTaskRequest extends $dara.Model { + /** + * @remarks + * The name of the namespace. + * + * The name can contain uppercase letters, lowercase letters, digits, and hyphens (-). + * + * > This parameter is required only if you call this operation to delete metric import tasks for Alibaba Cloud services. In this case, the `TaskType` parameter is set to `aliyun_fc`. + * + * @example + * aliyun + */ + namespace?: string; + regionId?: string; + /** + * @remarks + * The ID of the member account. + * + * > This parameter is required only if you use a management account to call this operation to query metric import tasks that belong to a member in a resource directory. In this case, the `TaskType` parameter is set to `aliyun_fc`. + * + * @example + * 120886317861**** + */ + targetUserId?: string; + /** + * @remarks + * The ID of the metric import task. + * + * For information about how to obtain the ID of a metric import task, see [DescribeHybridMonitorTaskList](https://help.aliyun.com/document_detail/428624.html). + * + * > This parameter is required only if you call this operation to delete metrics for the logs that are imported from Log Service. In this case, the `TaskType` parameter is set to `aliyun_sls`. + * + * @example + * 36**** + */ + taskId?: string; + static names(): { [key: string]: string } { + return { + namespace: 'Namespace', + regionId: 'RegionId', + targetUserId: 'TargetUserId', + taskId: 'TaskId', + }; + } + + static types(): { [key: string]: any } { + return { + namespace: 'string', + regionId: 'string', + targetUserId: 'string', + taskId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorTaskResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorTaskResponse.ts new file mode 100644 index 0000000..63edce0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorTaskResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DeleteHybridMonitorTaskResponseBody } from "./DeleteHybridMonitorTaskResponseBody"; + + +export class DeleteHybridMonitorTaskResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DeleteHybridMonitorTaskResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteHybridMonitorTaskResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorTaskResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorTaskResponseBody.ts new file mode 100644 index 0000000..e5eba19 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteHybridMonitorTaskResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteHybridMonitorTaskResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * null + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * D6B8103F-7BAD-5FEB-945F-71D991AB8834 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteLogMonitorRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteLogMonitorRequest.ts new file mode 100644 index 0000000..7f83ecf --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteLogMonitorRequest.ts @@ -0,0 +1,39 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteLogMonitorRequest extends $dara.Model { + /** + * @remarks + * The ID of the log monitoring metric. + * + * This parameter is required. + * + * @example + * 12345 + */ + logId?: number; + regionId?: string; + static names(): { [key: string]: string } { + return { + logId: 'LogId', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + logId: 'number', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteLogMonitorResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteLogMonitorResponse.ts new file mode 100644 index 0000000..b5afc4b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteLogMonitorResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DeleteLogMonitorResponseBody } from "./DeleteLogMonitorResponseBody"; + + +export class DeleteLogMonitorResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DeleteLogMonitorResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteLogMonitorResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteLogMonitorResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteLogMonitorResponseBody.ts new file mode 100644 index 0000000..9bc2cdc --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteLogMonitorResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteLogMonitorResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * metric not exist. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 42BFFC2B-5E4D-4FDE-BCC6-E91EE33C5967 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleBlackListRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleBlackListRequest.ts new file mode 100644 index 0000000..0c7a90c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleBlackListRequest.ts @@ -0,0 +1,43 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteMetricRuleBlackListRequest extends $dara.Model { + /** + * @remarks + * The IDs of the blacklist policies. Separate multiple IDs with commas (,). You can specify up to 50 IDs. + * + * For more information about how to obtain the ID of a blacklist policy, see [DescribeMetricRuleBlackList](https://help.aliyun.com/document_detail/457257.html). + * + * > You can also set this parameter to a JSON array. Example: `["a9ad2ac2-3ed9-11ed-b878-0242ac12****","5cb8a9a4-198f-4651-a353-f8b28788****"]`. + * + * This parameter is required. + * + * @example + * a9ad2ac2-3ed9-11ed-b878-0242ac12**** + */ + id?: string; + regionId?: string; + static names(): { [key: string]: string } { + return { + id: 'Id', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + id: 'string', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleBlackListResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleBlackListResponse.ts new file mode 100644 index 0000000..56b9398 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleBlackListResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DeleteMetricRuleBlackListResponseBody } from "./DeleteMetricRuleBlackListResponseBody"; + + +export class DeleteMetricRuleBlackListResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DeleteMetricRuleBlackListResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteMetricRuleBlackListResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleBlackListResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleBlackListResponseBody.ts new file mode 100644 index 0000000..34cf2bc --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleBlackListResponseBody.ts @@ -0,0 +1,79 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteMetricRuleBlackListResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The number of blacklist policies that are deleted. + * + * @example + * 1 + */ + count?: number; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * B88D233C-A004-3AB8-AD9C-30CBDD4440C5 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + count: 'Count', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + count: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleResourcesRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleResourcesRequest.ts new file mode 100644 index 0000000..3b9f04a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleResourcesRequest.ts @@ -0,0 +1,48 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteMetricRuleResourcesRequest extends $dara.Model { + /** + * @remarks + * The resources that are associated with the alert rule. + * + * This parameter is required. + * + * @example + * [{"instanceId":"i-uf6hm9lnlzsarrc7****"}] + */ + resources?: string; + /** + * @remarks + * The ID of the alert rule. + * + * This parameter is required. + * + * @example + * rr-bp18017n6iolv**** + */ + ruleId?: string; + static names(): { [key: string]: string } { + return { + resources: 'Resources', + ruleId: 'RuleId', + }; + } + + static types(): { [key: string]: any } { + return { + resources: 'string', + ruleId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleResourcesResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleResourcesResponse.ts new file mode 100644 index 0000000..6b39092 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleResourcesResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DeleteMetricRuleResourcesResponseBody } from "./DeleteMetricRuleResourcesResponseBody"; + + +export class DeleteMetricRuleResourcesResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DeleteMetricRuleResourcesResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteMetricRuleResourcesResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleResourcesResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleResourcesResponseBody.ts new file mode 100644 index 0000000..d2b4e15 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleResourcesResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteMetricRuleResourcesResponseBody extends $dara.Model { + /** + * @remarks + * The responses code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The alert does not exist. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * D8A35882-90C6-4F03-BBEB-153C180398EA + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleTargetsRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleTargetsRequest.ts new file mode 100644 index 0000000..c273ddc --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleTargetsRequest.ts @@ -0,0 +1,54 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteMetricRuleTargetsRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * The ID of the alert rule. + * + * This parameter is required. + * + * @example + * ruleId-xxxxxx + */ + ruleId?: string; + /** + * @remarks + * The resource IDs. + * + * This parameter is required. + * + * @example + * 12345 + */ + targetIds?: string[]; + static names(): { [key: string]: string } { + return { + regionId: 'RegionId', + ruleId: 'RuleId', + targetIds: 'TargetIds', + }; + } + + static types(): { [key: string]: any } { + return { + regionId: 'string', + ruleId: 'string', + targetIds: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.targetIds)) { + $dara.Model.validateArray(this.targetIds); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleTargetsResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleTargetsResponse.ts new file mode 100644 index 0000000..854a78d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleTargetsResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DeleteMetricRuleTargetsResponseBody } from "./DeleteMetricRuleTargetsResponseBody"; + + +export class DeleteMetricRuleTargetsResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DeleteMetricRuleTargetsResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteMetricRuleTargetsResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleTargetsResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleTargetsResponseBody.ts new file mode 100644 index 0000000..2820f8e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleTargetsResponseBody.ts @@ -0,0 +1,137 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteMetricRuleTargetsResponseBodyFailIdsTargetIds extends $dara.Model { + targetId?: string[]; + static names(): { [key: string]: string } { + return { + targetId: 'TargetId', + }; + } + + static types(): { [key: string]: any } { + return { + targetId: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.targetId)) { + $dara.Model.validateArray(this.targetId); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DeleteMetricRuleTargetsResponseBodyFailIds extends $dara.Model { + /** + * @remarks + * The IDs of the resources that failed to be deleted. + */ + targetIds?: DeleteMetricRuleTargetsResponseBodyFailIdsTargetIds; + static names(): { [key: string]: string } { + return { + targetIds: 'TargetIds', + }; + } + + static types(): { [key: string]: any } { + return { + targetIds: DeleteMetricRuleTargetsResponseBodyFailIdsTargetIds, + }; + } + + validate() { + if(this.targetIds && typeof (this.targetIds as any).validate === 'function') { + (this.targetIds as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DeleteMetricRuleTargetsResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * ** + * + * **Description** The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The IDs of the resources that failed to be deleted. + */ + failIds?: DeleteMetricRuleTargetsResponseBodyFailIds; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 786E92D2-AC66-4250-B76F-F1E2FCDDBA1C + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + failIds: 'FailIds', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + failIds: DeleteMetricRuleTargetsResponseBodyFailIds, + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + if(this.failIds && typeof (this.failIds as any).validate === 'function') { + (this.failIds as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleTemplateRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleTemplateRequest.ts new file mode 100644 index 0000000..ccec47d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleTemplateRequest.ts @@ -0,0 +1,39 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteMetricRuleTemplateRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * The ID of the alert template. + * + * This parameter is required. + * + * @example + * 123**** + */ + templateId?: string; + static names(): { [key: string]: string } { + return { + regionId: 'RegionId', + templateId: 'TemplateId', + }; + } + + static types(): { [key: string]: any } { + return { + regionId: 'string', + templateId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleTemplateResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleTemplateResponse.ts new file mode 100644 index 0000000..0def9ff --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleTemplateResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DeleteMetricRuleTemplateResponseBody } from "./DeleteMetricRuleTemplateResponseBody"; + + +export class DeleteMetricRuleTemplateResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DeleteMetricRuleTemplateResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteMetricRuleTemplateResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleTemplateResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleTemplateResponseBody.ts new file mode 100644 index 0000000..2aa9948 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRuleTemplateResponseBody.ts @@ -0,0 +1,106 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteMetricRuleTemplateResponseBodyResource extends $dara.Model { + /** + * @remarks + * The ID of the template. + * + * @example + * 123**** + */ + templateId?: string; + static names(): { [key: string]: string } { + return { + templateId: 'TemplateId', + }; + } + + static types(): { [key: string]: any } { + return { + templateId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DeleteMetricRuleTemplateResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 7B63F8CF-D48D-4608-A402-04FB5B2B4B6A + */ + requestId?: string; + /** + * @remarks + * The template information. + */ + resource?: DeleteMetricRuleTemplateResponseBodyResource; + /** + * @remarks + * Indicates whether the request was successful. Valid values: true and false. + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + resource: 'Resource', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'number', + message: 'string', + requestId: 'string', + resource: DeleteMetricRuleTemplateResponseBodyResource, + success: 'boolean', + }; + } + + validate() { + if(this.resource && typeof (this.resource as any).validate === 'function') { + (this.resource as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRulesRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRulesRequest.ts new file mode 100644 index 0000000..a883b82 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRulesRequest.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteMetricRulesRequest extends $dara.Model { + /** + * @remarks + * This parameter is required. + * + * @example + * ab05733c97b7ce239fb1b53393dc1697c7e12**** + */ + id?: string[]; + regionId?: string; + static names(): { [key: string]: string } { + return { + id: 'Id', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + id: { 'type': 'array', 'itemType': 'string' }, + regionId: 'string', + }; + } + + validate() { + if(Array.isArray(this.id)) { + $dara.Model.validateArray(this.id); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRulesResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRulesResponse.ts new file mode 100644 index 0000000..0f426f8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRulesResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DeleteMetricRulesResponseBody } from "./DeleteMetricRulesResponseBody"; + + +export class DeleteMetricRulesResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DeleteMetricRulesResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteMetricRulesResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRulesResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRulesResponseBody.ts new file mode 100644 index 0000000..b12c55e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMetricRulesResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteMetricRulesResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates a success. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * E5599964-8D0D-40DC-8E90-27A619384B81 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the operation was successful. Valid values: + * + * * true: successful. + * * false: failed. + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupDynamicRuleRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupDynamicRuleRequest.ts new file mode 100644 index 0000000..f3bcc5f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupDynamicRuleRequest.ts @@ -0,0 +1,51 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteMonitorGroupDynamicRuleRequest extends $dara.Model { + /** + * @remarks + * The service to which the rule applies. Valid values: ecs, rds, and slb. + * + * This parameter is required. + * + * @example + * ecs + */ + category?: string; + /** + * @remarks + * The ID of the application group. + * + * This parameter is required. + * + * @example + * 123456 + */ + groupId?: number; + regionId?: string; + static names(): { [key: string]: string } { + return { + category: 'Category', + groupId: 'GroupId', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + category: 'string', + groupId: 'number', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupDynamicRuleResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupDynamicRuleResponse.ts new file mode 100644 index 0000000..c967510 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupDynamicRuleResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DeleteMonitorGroupDynamicRuleResponseBody } from "./DeleteMonitorGroupDynamicRuleResponseBody"; + + +export class DeleteMonitorGroupDynamicRuleResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DeleteMonitorGroupDynamicRuleResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteMonitorGroupDynamicRuleResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupDynamicRuleResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupDynamicRuleResponseBody.ts new file mode 100644 index 0000000..b868e3d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupDynamicRuleResponseBody.ts @@ -0,0 +1,66 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteMonitorGroupDynamicRuleResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 56B4516A-EB44-4C66-8854-0393B35F636B + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: true and false. + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupInstancesRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupInstancesRequest.ts new file mode 100644 index 0000000..3e7cb5c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupInstancesRequest.ts @@ -0,0 +1,65 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteMonitorGroupInstancesRequest extends $dara.Model { + /** + * @remarks + * The abbreviation of the cloud service name. + * + * > 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 ID of the application group. + * + * This parameter is required. + * + * @example + * 123456 + */ + groupId?: number; + /** + * @remarks + * The instances to be removed from the application group. Separate multiple instances with commas (,). You can remove a maximum of 20 instances from an application group at a time. + * + * This parameter is required. + * + * @example + * i-a2d5q7pm3f912****,i-a2d5q7pm3f222**** + */ + instanceIdList?: string; + regionId?: string; + static names(): { [key: string]: string } { + return { + category: 'Category', + groupId: 'GroupId', + instanceIdList: 'InstanceIdList', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + category: 'string', + groupId: 'number', + instanceIdList: 'string', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupInstancesResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupInstancesResponse.ts new file mode 100644 index 0000000..535128c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupInstancesResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DeleteMonitorGroupInstancesResponseBody } from "./DeleteMonitorGroupInstancesResponseBody"; + + +export class DeleteMonitorGroupInstancesResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DeleteMonitorGroupInstancesResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteMonitorGroupInstancesResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupInstancesResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupInstancesResponseBody.ts new file mode 100644 index 0000000..1934c97 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupInstancesResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteMonitorGroupInstancesResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 5351B0F2-26A9-4BC9-87FF-1B74034D12C3 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupNotifyPolicyRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupNotifyPolicyRequest.ts new file mode 100644 index 0000000..a5b6fa7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupNotifyPolicyRequest.ts @@ -0,0 +1,51 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteMonitorGroupNotifyPolicyRequest extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * @example + * 6780**** + */ + groupId?: string; + /** + * @remarks + * The type of the policy. + * + * Valid value: PauseNotify. + * + * This parameter is required. + * + * @example + * PauseNotify + */ + policyType?: string; + regionId?: string; + static names(): { [key: string]: string } { + return { + groupId: 'GroupId', + policyType: 'PolicyType', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + groupId: 'string', + policyType: 'string', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupNotifyPolicyResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupNotifyPolicyResponse.ts new file mode 100644 index 0000000..02e08f3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupNotifyPolicyResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DeleteMonitorGroupNotifyPolicyResponseBody } from "./DeleteMonitorGroupNotifyPolicyResponseBody"; + + +export class DeleteMonitorGroupNotifyPolicyResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DeleteMonitorGroupNotifyPolicyResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteMonitorGroupNotifyPolicyResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupNotifyPolicyResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupNotifyPolicyResponseBody.ts new file mode 100644 index 0000000..77087b9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupNotifyPolicyResponseBody.ts @@ -0,0 +1,79 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteMonitorGroupNotifyPolicyResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * B7AF834D-D38B-4A46-920B-FE974EB7E135 + */ + requestId?: string; + /** + * @remarks + * The number of affected rows. + * + * @example + * 1 + */ + result?: number; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + result: 'Result', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + result: 'number', + success: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupRequest.ts new file mode 100644 index 0000000..b19a610 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupRequest.ts @@ -0,0 +1,39 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteMonitorGroupRequest extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * This parameter is required. + * + * @example + * 123456 + */ + groupId?: number; + regionId?: string; + static names(): { [key: string]: string } { + return { + groupId: 'GroupId', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + groupId: 'number', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupResponse.ts new file mode 100644 index 0000000..f85ea45 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DeleteMonitorGroupResponseBody } from "./DeleteMonitorGroupResponseBody"; + + +export class DeleteMonitorGroupResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DeleteMonitorGroupResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteMonitorGroupResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupResponseBody.ts new file mode 100644 index 0000000..c44c48d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitorGroupResponseBody.ts @@ -0,0 +1,172 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteMonitorGroupResponseBodyGroupContactGroupsContactGroup extends $dara.Model { + /** + * @remarks + * The name of the alert group. + * + * @example + * ECS_Group + */ + name?: string; + static names(): { [key: string]: string } { + return { + name: 'Name', + }; + } + + static types(): { [key: string]: any } { + return { + name: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DeleteMonitorGroupResponseBodyGroupContactGroups extends $dara.Model { + contactGroup?: DeleteMonitorGroupResponseBodyGroupContactGroupsContactGroup[]; + static names(): { [key: string]: string } { + return { + contactGroup: 'ContactGroup', + }; + } + + static types(): { [key: string]: any } { + return { + contactGroup: { 'type': 'array', 'itemType': DeleteMonitorGroupResponseBodyGroupContactGroupsContactGroup }, + }; + } + + validate() { + if(Array.isArray(this.contactGroup)) { + $dara.Model.validateArray(this.contactGroup); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DeleteMonitorGroupResponseBodyGroup extends $dara.Model { + /** + * @remarks + * The alert groups that receive alert notifications for the application group. + */ + contactGroups?: DeleteMonitorGroupResponseBodyGroupContactGroups; + /** + * @remarks + * The name of the application group. + * + * @example + * ECS_test + */ + groupName?: string; + static names(): { [key: string]: string } { + return { + contactGroups: 'ContactGroups', + groupName: 'GroupName', + }; + } + + static types(): { [key: string]: any } { + return { + contactGroups: DeleteMonitorGroupResponseBodyGroupContactGroups, + groupName: 'string', + }; + } + + validate() { + if(this.contactGroups && typeof (this.contactGroups as any).validate === 'function') { + (this.contactGroups as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DeleteMonitorGroupResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The deleted application group. + */ + group?: DeleteMonitorGroupResponseBodyGroup; + /** + * @remarks + * The returned message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * CA35B3AE-4FFD-4A33-AE67-67EF68711EFA + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call was successful. The value true indicates a success. The value false indicates a failure. + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + group: 'Group', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'number', + group: DeleteMonitorGroupResponseBodyGroup, + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + if(this.group && typeof (this.group as any).validate === 'function') { + (this.group as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitoringAgentProcessRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitoringAgentProcessRequest.ts new file mode 100644 index 0000000..47bbc80 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitoringAgentProcessRequest.ts @@ -0,0 +1,63 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteMonitoringAgentProcessRequest extends $dara.Model { + /** + * @remarks + * The instance ID. + * + * This parameter is required. + * + * @example + * i-KpVny6l**** + */ + instanceId?: string; + /** + * @remarks + * The process ID. + * + * > You must configure either `ProcessId` or `ProcessName`. + * + * @example + * 123**** + */ + processId?: string; + /** + * @remarks + * The process name. + * + * > You must configure either `ProcessId` or `ProcessName`. + * + * @example + * http + */ + processName?: string; + regionId?: string; + static names(): { [key: string]: string } { + return { + instanceId: 'InstanceId', + processId: 'ProcessId', + processName: 'ProcessName', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + instanceId: 'string', + processId: 'string', + processName: 'string', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitoringAgentProcessResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitoringAgentProcessResponse.ts new file mode 100644 index 0000000..490595e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitoringAgentProcessResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DeleteMonitoringAgentProcessResponseBody } from "./DeleteMonitoringAgentProcessResponseBody"; + + +export class DeleteMonitoringAgentProcessResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DeleteMonitoringAgentProcessResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteMonitoringAgentProcessResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitoringAgentProcessResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitoringAgentProcessResponseBody.ts new file mode 100644 index 0000000..60ee2a1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteMonitoringAgentProcessResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteMonitoringAgentProcessResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 971CC023-5A96-452A-BB7C-2483F948BCFD + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteSiteMonitorsRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteSiteMonitorsRequest.ts new file mode 100644 index 0000000..fc1fe4f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteSiteMonitorsRequest.ts @@ -0,0 +1,52 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteSiteMonitorsRequest extends $dara.Model { + /** + * @remarks + * Specifies whether to delete the alert rules configured for the site monitoring tasks. Valid values: + * + * * true (default value) + * * false + * + * @example + * true + */ + isDeleteAlarms?: boolean; + regionId?: string; + /** + * @remarks + * The IDs of the site monitoring tasks that you want to delete. Separate multiple task IDs with commas (,). + * + * This parameter is required. + * + * @example + * 01adacc2-ece5-41b6-afa2-3143ab5d****,43bd1ead-514f-4524-813e-228ce091**** + */ + taskIds?: string; + static names(): { [key: string]: string } { + return { + isDeleteAlarms: 'IsDeleteAlarms', + regionId: 'RegionId', + taskIds: 'TaskIds', + }; + } + + static types(): { [key: string]: any } { + return { + isDeleteAlarms: 'boolean', + regionId: 'string', + taskIds: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteSiteMonitorsResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteSiteMonitorsResponse.ts new file mode 100644 index 0000000..308a20a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteSiteMonitorsResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DeleteSiteMonitorsResponseBody } from "./DeleteSiteMonitorsResponseBody"; + + +export class DeleteSiteMonitorsResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DeleteSiteMonitorsResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DeleteSiteMonitorsResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DeleteSiteMonitorsResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteSiteMonitorsResponseBody.ts new file mode 100644 index 0000000..b273ea8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DeleteSiteMonitorsResponseBody.ts @@ -0,0 +1,106 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DeleteSiteMonitorsResponseBodyData extends $dara.Model { + /** + * @remarks + * The number of the site monitoring tasks that were deleted. + * + * @example + * 0 + */ + count?: number; + static names(): { [key: string]: string } { + return { + count: 'count', + }; + } + + static types(): { [key: string]: any } { + return { + count: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DeleteSiteMonitorsResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The information about the site monitoring tasks that were deleted. + */ + data?: DeleteSiteMonitorsResponseBodyData; + /** + * @remarks + * The returned message. If the call was successful, the value success is returned. If the call failed, an error message such as `TaskId not found` is returned. + * + * @example + * successful + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * 123BCC5D-8B63-48EA-B747-9A8995BE7AA6 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call was successful. The value true indicates success. The value false indicates failure. + * + * @example + * true + */ + success?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + data: 'Data', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + data: DeleteSiteMonitorsResponseBodyData, + message: 'string', + requestId: 'string', + success: 'string', + }; + } + + validate() { + if(this.data && typeof (this.data as any).validate === 'function') { + (this.data as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeActiveMetricRuleListRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeActiveMetricRuleListRequest.ts new file mode 100644 index 0000000..a654a10 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeActiveMetricRuleListRequest.ts @@ -0,0 +1,38 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeActiveMetricRuleListRequest extends $dara.Model { + /** + * @remarks + * The abbreviation of the cloud service that supports initiative alert rules. + * + * For more information about how to obtain the name of a cloud service, see [DescribeProductsOfActiveMetricRule](https://help.aliyun.com/document_detail/114930.html). + * + * This parameter is required. + * + * @example + * ecs + */ + product?: string; + static names(): { [key: string]: string } { + return { + product: 'Product', + }; + } + + static types(): { [key: string]: any } { + return { + product: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeActiveMetricRuleListResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeActiveMetricRuleListResponse.ts new file mode 100644 index 0000000..7668e1f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeActiveMetricRuleListResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeActiveMetricRuleListResponseBody } from "./DescribeActiveMetricRuleListResponseBody"; + + +export class DescribeActiveMetricRuleListResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeActiveMetricRuleListResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeActiveMetricRuleListResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeActiveMetricRuleListResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeActiveMetricRuleListResponseBody.ts new file mode 100644 index 0000000..cd9cb4b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeActiveMetricRuleListResponseBody.ts @@ -0,0 +1,800 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsCritical extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold for Critical-level alerts. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The statistical methods for Critical-level alerts. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Critical-level alerts. + * + * @example + * 99 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before a Critical-level alert is triggered. + * + * @example + * 3 + */ + times?: string; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + statistics: 'string', + threshold: 'string', + times: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsInfo extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold for Info-level alerts. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The statistical methods for Info-level alerts. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Info-level alerts. + * + * @example + * 95 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times + * + * for which the metric value meets the alert condition before an Info-level alert is triggered. + * + * @example + * 3 + */ + times?: string; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + statistics: 'string', + threshold: 'string', + times: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsWarn extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold for Warn-level alerts. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The statistical methods for Warn-level alerts. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Warn-level alerts. + * + * @example + * 80 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times + * + * for which the metric value meets the alert condition before a Warn-level alert is triggered. + * + * @example + * 3 + */ + times?: string; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + statistics: 'string', + threshold: 'string', + times: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalations extends $dara.Model { + /** + * @remarks + * The trigger condition for Critical-level alerts. + */ + critical?: DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsCritical; + /** + * @remarks + * The conditions for triggering Info-level alerts. + */ + info?: DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsInfo; + /** + * @remarks + * The conditions for triggering Warn-level alerts. + */ + warn?: DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsWarn; + static names(): { [key: string]: string } { + return { + critical: 'Critical', + info: 'Info', + warn: 'Warn', + }; + } + + static types(): { [key: string]: any } { + return { + critical: DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsCritical, + info: DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsInfo, + warn: DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsWarn, + }; + } + + validate() { + if(this.critical && typeof (this.critical as any).validate === 'function') { + (this.critical as any).validate(); + } + if(this.info && typeof (this.info as any).validate === 'function') { + (this.info as any).validate(); + } + if(this.warn && typeof (this.warn as any).validate === 'function') { + (this.warn as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeActiveMetricRuleListResponseBodyAlertListAlert extends $dara.Model { + /** + * @remarks + * The status of the alert rule. Valid values: + * + * * OK: The alert rule has no active alerts. + * * ALARM: The alert rule has active alerts. + * * INSUFFICIENT_DATA: No data is found. + * + * @example + * OK + */ + alertState?: string; + /** + * @remarks + * The alert contact group. + * + * @example + * ECS_Group + */ + contactGroups?: string; + /** + * @remarks + * The monitoring data of the specified resource. + * + * @example + * "" + */ + dimensions?: string; + /** + * @remarks + * The time period during which the alert rule is effective. + * + * @example + * 00:00-23:59 + */ + effectiveInterval?: string; + /** + * @remarks + * Indicates whether the alert rule is enabled. Valid values: + * + * * true: The alert rule is enabled. + * * false: The alert rule is disabled. + * + * @example + * true + */ + enableState?: boolean; + /** + * @remarks + * The conditions for triggering different levels of alerts. + */ + escalations?: DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalations; + /** + * @remarks + * The subject of the alert notification email. + * + * @example + * ECS_Bucket + */ + mailSubject?: string; + /** + * @remarks + * The name of the metric. + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The namespace of the Alibaba Cloud service. + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The time period during which the alert rule is ineffective. + * + * @example + * 00:00-06:00 + */ + noEffectiveInterval?: string; + /** + * @remarks + * The aggregation period of monitoring data. + * + * Unit: seconds. + * + * @example + * 60 + */ + period?: string; + /** + * @remarks + * The resources that are associated with the alert rule. + * + * @example + * [{"resource":"_ALL"}] + */ + resources?: string; + /** + * @remarks + * The ID of the alert rule. + * + * @example + * ruleIdxxxx + */ + ruleId?: string; + /** + * @remarks + * The name of the alert rule. + * + * @example + * myAlert + */ + ruleName?: string; + /** + * @remarks + * The mute period during which new alerts are not sent even if the trigger conditions are met. + * + * Unit: seconds. + * + * @example + * 86400 + */ + silenceTime?: string; + /** + * @remarks + * The callback URL. + * + * @example + * http://www.aliyun.com + */ + webhook?: string; + static names(): { [key: string]: string } { + return { + alertState: 'AlertState', + contactGroups: 'ContactGroups', + dimensions: 'Dimensions', + effectiveInterval: 'EffectiveInterval', + enableState: 'EnableState', + escalations: 'Escalations', + mailSubject: 'MailSubject', + metricName: 'MetricName', + namespace: 'Namespace', + noEffectiveInterval: 'NoEffectiveInterval', + period: 'Period', + resources: 'Resources', + ruleId: 'RuleId', + ruleName: 'RuleName', + silenceTime: 'SilenceTime', + webhook: 'Webhook', + }; + } + + static types(): { [key: string]: any } { + return { + alertState: 'string', + contactGroups: 'string', + dimensions: 'string', + effectiveInterval: 'string', + enableState: 'boolean', + escalations: DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalations, + mailSubject: 'string', + metricName: 'string', + namespace: 'string', + noEffectiveInterval: 'string', + period: 'string', + resources: 'string', + ruleId: 'string', + ruleName: 'string', + silenceTime: 'string', + webhook: 'string', + }; + } + + validate() { + if(this.escalations && typeof (this.escalations as any).validate === 'function') { + (this.escalations as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeActiveMetricRuleListResponseBodyAlertList extends $dara.Model { + alert?: DescribeActiveMetricRuleListResponseBodyAlertListAlert[]; + static names(): { [key: string]: string } { + return { + alert: 'Alert', + }; + } + + static types(): { [key: string]: any } { + return { + alert: { 'type': 'array', 'itemType': DescribeActiveMetricRuleListResponseBodyAlertListAlert }, + }; + } + + validate() { + if(Array.isArray(this.alert)) { + $dara.Model.validateArray(this.alert); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeActiveMetricRuleListResponseBodyDatapointsAlarm extends $dara.Model { + /** + * @remarks + * The comparison operator that is used in the alert rule. Valid values: + * + * * `>` + * * `<` + * * `>=` + * * `<=` + * * `=` + * * `=` + * + * @example + * > + */ + comparisonOperator?: string; + /** + * @remarks + * The alert contact group. + * + * @example + * ECS_Group + */ + contactGroups?: string; + /** + * @remarks + * Indicates whether the alert rule is enabled. Valid values: + * + * * true: The alert rule is enabled. + * * false: The alert rule is disabled. + * + * @example + * true + */ + enable?: string; + /** + * @remarks + * The end of the time period during which the alert rule is effective. + * + * Unit: hours. For example, the value 23 indicates `23:59:59`. + * + * @example + * 24 + */ + endTime?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before an alert is triggered. + * + * @example + * 3 + */ + evaluationCount?: string; + /** + * @remarks + * The metric name. + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The aggregation period of monitoring data. + * + * Unit: seconds. + * + * @example + * 60 + */ + period?: string; + /** + * @remarks + * The ID of the alert rule. + * + * @example + * a151cd6023eacee2f0978e03863cc1697c89508**** + */ + ruleId?: string; + /** + * @remarks + * The name of the alert rule. + * + * @example + * SystemDefault_acs_rds_dashboard_CpuUsage + */ + ruleName?: string; + /** + * @remarks + * The mute period during which new alerts are not sent even if the trigger conditions are met. + * + * Unit: seconds. + * + * @example + * 86400 + */ + silenceTime?: string; + /** + * @remarks + * The beginning of the time period during which the alert rule is effective. + * + * Unit: hours. For example, the value 00 indicates `00:00:00`. + * + * @example + * 00 + */ + startTime?: string; + /** + * @remarks + * Indicates whether the alert rule is enabled. + * + * @example + * Enable + */ + state?: string; + /** + * @remarks + * The statistical method. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The alert threshold. + * + * @example + * 90 + */ + threshold?: string; + /** + * @remarks + * The callback URL. + * + * @example + * http://www.aliyun.com + */ + webhook?: string; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + contactGroups: 'ContactGroups', + enable: 'Enable', + endTime: 'EndTime', + evaluationCount: 'EvaluationCount', + metricName: 'MetricName', + namespace: 'Namespace', + period: 'Period', + ruleId: 'RuleId', + ruleName: 'RuleName', + silenceTime: 'SilenceTime', + startTime: 'StartTime', + state: 'State', + statistics: 'Statistics', + threshold: 'Threshold', + webhook: 'Webhook', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + contactGroups: 'string', + enable: 'string', + endTime: 'string', + evaluationCount: 'string', + metricName: 'string', + namespace: 'string', + period: 'string', + ruleId: 'string', + ruleName: 'string', + silenceTime: 'string', + startTime: 'string', + state: 'string', + statistics: 'string', + threshold: 'string', + webhook: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeActiveMetricRuleListResponseBodyDatapoints extends $dara.Model { + alarm?: DescribeActiveMetricRuleListResponseBodyDatapointsAlarm[]; + static names(): { [key: string]: string } { + return { + alarm: 'Alarm', + }; + } + + static types(): { [key: string]: any } { + return { + alarm: { 'type': 'array', 'itemType': DescribeActiveMetricRuleListResponseBodyDatapointsAlarm }, + }; + } + + validate() { + if(Array.isArray(this.alarm)) { + $dara.Model.validateArray(this.alarm); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeActiveMetricRuleListResponseBody extends $dara.Model { + /** + * @remarks + * The details of the alert rules. The result is in the same structure as that returned by the DescribeMetricRuleList operation. + */ + alertList?: DescribeActiveMetricRuleListResponseBodyAlertList; + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The details of the alert rules. + */ + datapoints?: DescribeActiveMetricRuleListResponseBodyDatapoints; + /** + * @remarks + * The returned message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * F82E6667-7811-4BA0-842F-5B2DC42BBAAD + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + alertList: 'AlertList', + code: 'Code', + datapoints: 'Datapoints', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + alertList: DescribeActiveMetricRuleListResponseBodyAlertList, + code: 'string', + datapoints: DescribeActiveMetricRuleListResponseBodyDatapoints, + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + if(this.alertList && typeof (this.alertList as any).validate === 'function') { + (this.alertList as any).validate(); + } + if(this.datapoints && typeof (this.datapoints as any).validate === 'function') { + (this.datapoints as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertHistoryListRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertHistoryListRequest.ts new file mode 100644 index 0000000..cfb9e61 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertHistoryListRequest.ts @@ -0,0 +1,175 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeAlertHistoryListRequest extends $dara.Model { + /** + * @remarks + * The order of alerts. Valid values: + * + * * true (default value): reverse chronological order + * * false: chronological order + * + * @example + * true + */ + ascending?: boolean; + /** + * @remarks + * The end timestamp of the historical alerts that you want to query. + * + * Unit: milliseconds. + * + * @example + * 1640608200000 + */ + endTime?: string; + /** + * @remarks + * The ID of the application group. + * + * For information about how to obtain the ID of an application group, see [DescribeMonitorGroups](https://help.aliyun.com/document_detail/115032.html). + * + * @example + * 7671**** + */ + groupId?: string; + /** + * @remarks + * The metric that is used to monitor the cloud service. + * + * 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. + * + * For information about how to query the namespace of a cloud service, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The number of the page to return. + * + * Default value: 1. + * + * @example + * 1 + */ + page?: number; + /** + * @remarks + * The number of entries to return on each page. + * + * Default value: 10. + * + * @example + * 10 + */ + pageSize?: number; + regionId?: string; + /** + * @remarks + * The ID of the alert rule. + * + * For information about how to obtain the ID of an alert rule, see [DescribeMetricRuleList](https://help.aliyun.com/document_detail/114941.html). + * + * @example + * applyTemplate61dc81b5-d357-4cf6-a9b7-9f83c1d5**** + */ + ruleId?: string; + /** + * @remarks + * The name of the alert rule. + * + * For information about how to query the name of an alert rule, see [DescribeMetricRuleList](https://help.aliyun.com/document_detail/114941.html). + * + * @example + * ECS_Rule + */ + ruleName?: string; + /** + * @remarks + * The start timestamp of the historical alerts that you want to query. + * + * Unit: milliseconds. + * + * @example + * 1640237400000 + */ + startTime?: string; + /** + * @remarks + * The status of the alert. Valid values: + * + * * ALARM (default value): Alerts are triggered. + * * OK: No alerts are triggered. + * + * @example + * ALARM + */ + state?: string; + /** + * @remarks + * Specifies whether alerts are muted. Valid values: + * + * * 2 (default value): Alerts are muted and are not triggered within the mute period, even if the condition specified in the alert rule is met. + * * 0: Alerts are triggered or cleared. + * * 1: The alert rule is ineffective. + * + * @example + * 2 + */ + status?: string; + static names(): { [key: string]: string } { + return { + ascending: 'Ascending', + endTime: 'EndTime', + groupId: 'GroupId', + metricName: 'MetricName', + namespace: 'Namespace', + page: 'Page', + pageSize: 'PageSize', + regionId: 'RegionId', + ruleId: 'RuleId', + ruleName: 'RuleName', + startTime: 'StartTime', + state: 'State', + status: 'Status', + }; + } + + static types(): { [key: string]: any } { + return { + ascending: 'boolean', + endTime: 'string', + groupId: 'string', + metricName: 'string', + namespace: 'string', + page: 'number', + pageSize: 'number', + regionId: 'string', + ruleId: 'string', + ruleName: 'string', + startTime: 'string', + state: 'string', + status: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertHistoryListResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertHistoryListResponse.ts new file mode 100644 index 0000000..a701ed0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertHistoryListResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeAlertHistoryListResponseBody } from "./DescribeAlertHistoryListResponseBody"; + + +export class DescribeAlertHistoryListResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeAlertHistoryListResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeAlertHistoryListResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertHistoryListResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertHistoryListResponseBody.ts new file mode 100644 index 0000000..c17b01e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertHistoryListResponseBody.ts @@ -0,0 +1,489 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactALIIMs extends $dara.Model { + contactALIIM?: string[]; + static names(): { [key: string]: string } { + return { + contactALIIM: 'ContactALIIM', + }; + } + + static types(): { [key: string]: any } { + return { + contactALIIM: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.contactALIIM)) { + $dara.Model.validateArray(this.contactALIIM); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactGroups extends $dara.Model { + contactGroup?: string[]; + static names(): { [key: string]: string } { + return { + contactGroup: 'ContactGroup', + }; + } + + static types(): { [key: string]: any } { + return { + contactGroup: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.contactGroup)) { + $dara.Model.validateArray(this.contactGroup); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactMails extends $dara.Model { + contactMail?: string[]; + static names(): { [key: string]: string } { + return { + contactMail: 'ContactMail', + }; + } + + static types(): { [key: string]: any } { + return { + contactMail: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.contactMail)) { + $dara.Model.validateArray(this.contactMail); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactSmses extends $dara.Model { + contactSms?: string[]; + static names(): { [key: string]: string } { + return { + contactSms: 'ContactSms', + }; + } + + static types(): { [key: string]: any } { + return { + contactSms: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.contactSms)) { + $dara.Model.validateArray(this.contactSms); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContacts extends $dara.Model { + contact?: string[]; + static names(): { [key: string]: string } { + return { + contact: 'Contact', + }; + } + + static types(): { [key: string]: any } { + return { + contact: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.contact)) { + $dara.Model.validateArray(this.contact); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistory extends $dara.Model { + /** + * @remarks + * The timestamp when the alert was triggered. Unit: milliseconds. + * + * @example + * 1640586600000 + */ + alertTime?: number; + /** + * @remarks + * The TradeManager IDs of the alert contacts. + * + * > This parameter is valid only on the China site (aliyun.com). + */ + contactALIIMs?: DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactALIIMs; + /** + * @remarks + * The alert contact groups. + */ + contactGroups?: DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactGroups; + /** + * @remarks + * The email addresses of the alert contacts. + */ + contactMails?: DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactMails; + /** + * @remarks + * The mobile numbers of the alert contacts. + * + * > This parameter is valid only on the China site (aliyun.com). + */ + contactSmses?: DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactSmses; + /** + * @remarks + * The alert contacts that receive alert notifications. + */ + contacts?: DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContacts; + /** + * @remarks + * The resources that are monitored. + * + * @example + * {\\"instanceId\\":\\"i-bp1cqhiw1za2****\\"} + */ + dimensions?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before an alert is triggered. + * + * @example + * 3 + */ + evaluationCount?: number; + /** + * @remarks + * The expression that is used to trigger alerts. + * + * @example + * $Average>=10 + */ + expression?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 7671**** + */ + groupId?: string; + /** + * @remarks + * The instance name. + * + * @example + * i-bp1cqhiw1za2**** + */ + instanceName?: string; + /** + * @remarks + * The duration of the alert. Unit: milliseconds. + * + * @example + * 360133 + */ + lastTime?: number; + /** + * @remarks + * The severity level and notification methods of the alert. Valid values: + * + * * P4: Alert notifications are sent by using emails and DingTalk chatbots. + * * OK: No alert is generated. + * + * @example + * P4 + */ + level?: string; + /** + * @remarks + * The metric name. + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The ID of the alert rule. + * + * @example + * applyTemplate61dc81b5-d357-4cf6-a9b7-9f83c1d5**** + */ + ruleId?: string; + /** + * @remarks + * The name of the alert rule. + * + * @example + * ECS_Rule + */ + ruleName?: string; + /** + * @remarks + * The alert status. Valid values: + * + * * ALARM: Alerts are triggered. + * * OK: No alerts are triggered. + * + * @example + * ALARM + */ + state?: string; + /** + * @remarks + * Indicates whether alerts are muted. Valid values: + * + * * 2 (default): Alerts are muted and are not triggered within the mute period, even if the condition specified in the alert rule is met. + * * 0: Alerts are triggered or cleared. + * * 1: The alert rule is ineffective. + * + * @example + * 2 + */ + status?: number; + /** + * @remarks + * The threshold of the metric value to trigger or clear an alert. + * + * @example + * 10.58 + */ + value?: string; + /** + * @remarks + * The callback URL. + * + * @example + * https://www.aliyun.com + */ + webhooks?: string; + static names(): { [key: string]: string } { + return { + alertTime: 'AlertTime', + contactALIIMs: 'ContactALIIMs', + contactGroups: 'ContactGroups', + contactMails: 'ContactMails', + contactSmses: 'ContactSmses', + contacts: 'Contacts', + dimensions: 'Dimensions', + evaluationCount: 'EvaluationCount', + expression: 'Expression', + groupId: 'GroupId', + instanceName: 'InstanceName', + lastTime: 'LastTime', + level: 'Level', + metricName: 'MetricName', + namespace: 'Namespace', + ruleId: 'RuleId', + ruleName: 'RuleName', + state: 'State', + status: 'Status', + value: 'Value', + webhooks: 'Webhooks', + }; + } + + static types(): { [key: string]: any } { + return { + alertTime: 'number', + contactALIIMs: DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactALIIMs, + contactGroups: DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactGroups, + contactMails: DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactMails, + contactSmses: DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactSmses, + contacts: DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContacts, + dimensions: 'string', + evaluationCount: 'number', + expression: 'string', + groupId: 'string', + instanceName: 'string', + lastTime: 'number', + level: 'string', + metricName: 'string', + namespace: 'string', + ruleId: 'string', + ruleName: 'string', + state: 'string', + status: 'number', + value: 'string', + webhooks: 'string', + }; + } + + validate() { + if(this.contactALIIMs && typeof (this.contactALIIMs as any).validate === 'function') { + (this.contactALIIMs as any).validate(); + } + if(this.contactGroups && typeof (this.contactGroups as any).validate === 'function') { + (this.contactGroups as any).validate(); + } + if(this.contactMails && typeof (this.contactMails as any).validate === 'function') { + (this.contactMails as any).validate(); + } + if(this.contactSmses && typeof (this.contactSmses as any).validate === 'function') { + (this.contactSmses as any).validate(); + } + if(this.contacts && typeof (this.contacts as any).validate === 'function') { + (this.contacts as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeAlertHistoryListResponseBodyAlarmHistoryList extends $dara.Model { + alarmHistory?: DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistory[]; + static names(): { [key: string]: string } { + return { + alarmHistory: 'AlarmHistory', + }; + } + + static types(): { [key: string]: any } { + return { + alarmHistory: { 'type': 'array', 'itemType': DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistory }, + }; + } + + validate() { + if(Array.isArray(this.alarmHistory)) { + $dara.Model.validateArray(this.alarmHistory); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeAlertHistoryListResponseBody extends $dara.Model { + /** + * @remarks + * The details of historical alerts. + */ + alarmHistoryList?: DescribeAlertHistoryListResponseBodyAlarmHistoryList; + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * C3C69FBE-2262-541F-A409-C52F380BAE63 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The total number of entries returned. + * + * @example + * 2 + */ + total?: string; + static names(): { [key: string]: string } { + return { + alarmHistoryList: 'AlarmHistoryList', + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + total: 'Total', + }; + } + + static types(): { [key: string]: any } { + return { + alarmHistoryList: DescribeAlertHistoryListResponseBodyAlarmHistoryList, + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + total: 'string', + }; + } + + validate() { + if(this.alarmHistoryList && typeof (this.alarmHistoryList as any).validate === 'function') { + (this.alarmHistoryList as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogCountRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogCountRequest.ts new file mode 100644 index 0000000..1f45dc4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogCountRequest.ts @@ -0,0 +1,253 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeAlertLogCountRequest extends $dara.Model { + /** + * @remarks + * The alert group. + * + * @example + * ECS_Group + */ + contactGroup?: string; + /** + * @remarks + * The end timestamp of the alert logs to be queried. + * + * Unit: milliseconds. + * + * You can query only the alert logs within the last year. If the query time is longer than one year, the return value of the `AlertLogCount` parameter is empty. + * + * > The interval between the start time (StartTime) and end time (EndTime) must be less than or equal to 15 days. The start time and end time must be specified or left empty at the same time. If you do not specify the start time and end time, the alert logs within the last 15 minutes are queried by default. + * + * @example + * 1610074409694 + */ + endTime?: number; + /** + * @remarks + * The type of the alert event. Valid values: + * + * * TRIGGERED: The alert is triggered. + * * RESOLVED: The alert is resolved. + * + * @example + * TRIGGERED + */ + eventType?: string; + /** + * @remarks + * The dimension based on which data is aggregated. This parameter is similar to the Group By clause of SQL statements. Valid values: + * + * * `product`: aggregates data by cloud service. + * * `level`: aggregates data by alert level. + * * `groupId`: aggregates data by application group. + * * `contactGroup`: aggregates data by alert group. + * * `product,metricName`: aggregates data both by cloud service and by metric. + * + * This parameter is required. + * + * @example + * product + */ + groupBy?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 7301**** + */ + groupId?: string; + /** + * @remarks + * The statistical period of alert logs. Unit: minutes. + * + * @example + * 360 + */ + lastMin?: string; + /** + * @remarks + * The level and notification method of the alert. Valid values: + * + * * P4: Alert notifications are sent by using emails and DingTalk chatbots. + * * OK: No alert is generated. + * + * @example + * P4 + */ + level?: string; + /** + * @remarks + * The name of the metric. + * + * > For more information about the metrics of different cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * > For more information about the namespaces of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The dimension based on which data is aggregated. This parameter is equivalent to the GROUP BY clause in SQL. Valid values: + * + * * `product`: aggregates data by cloud service. + * * `level`: aggregates data by alert level. + * * `groupId`: aggregates data by application group. + * * `contactGroup`: aggregates data by alert contact group. + * * `product,metricName`: aggregates data both by cloud service and by metric. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries to return on each page. Default value: 10. + * + * @example + * 10 + */ + pageSize?: number; + /** + * @remarks + * The abbreviation of the service name. + * + * @example + * ECS + */ + product?: string; + regionId?: string; + /** + * @remarks + * The ID of the alert rule. + * + * For more information about how to obtain the ID of an alert rule, see [DescribeMetricRuleList](https://help.aliyun.com/document_detail/114941.html). + * + * @example + * bfae2ca5b4e07d2c7278772e*********** + */ + ruleId?: string; + /** + * @remarks + * The name of the alert rule. + * + * @example + * test123 + */ + ruleName?: string; + /** + * @remarks + * The keyword based on which the alert logs to be counted are searched. + * + * @example + * test + */ + searchKey?: string; + /** + * @remarks + * The status of the alert. Valid values: + * + * * 0: The alert is triggered or cleared. + * * 1: The alert is generated not during the effective period. + * * 2: The alert is muted and not triggered in a specified period. + * * 3: The host is restarting. + * * 4: Notifications are not sent for the alert. + * + * When the value of the SendStatus parameter is 0, the value P4 of the Level parameter indicates a triggered alert and the value OK indicates a cleared alert. + * + * @example + * 0 + */ + sendStatus?: string; + /** + * @remarks + * This parameter is deprecated. + * + * @example + * None + */ + sourceType?: string; + /** + * @remarks + * The start timestamp of the alert logs to be queried. + * + * Unit: milliseconds. + * + * You can query only the alert logs within the last year. If the query time is longer than one year, the return value of the `AlertLogCount` parameter is empty. + * + * > The interval between the start time (StartTime) and end time (EndTime) must be less than or equal to 15 days. The start time and end time must be specified or left empty at the same time. If you do not specify the start time and end time, the alert logs within the last 15 minutes are queried by default. + * + * @example + * 1609988009694 + */ + startTime?: number; + static names(): { [key: string]: string } { + return { + contactGroup: 'ContactGroup', + endTime: 'EndTime', + eventType: 'EventType', + groupBy: 'GroupBy', + groupId: 'GroupId', + lastMin: 'LastMin', + level: 'Level', + metricName: 'MetricName', + namespace: 'Namespace', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + product: 'Product', + regionId: 'RegionId', + ruleId: 'RuleId', + ruleName: 'RuleName', + searchKey: 'SearchKey', + sendStatus: 'SendStatus', + sourceType: 'SourceType', + startTime: 'StartTime', + }; + } + + static types(): { [key: string]: any } { + return { + contactGroup: 'string', + endTime: 'number', + eventType: 'string', + groupBy: 'string', + groupId: 'string', + lastMin: 'string', + level: 'string', + metricName: 'string', + namespace: 'string', + pageNumber: 'number', + pageSize: 'number', + product: 'string', + regionId: 'string', + ruleId: 'string', + ruleName: 'string', + searchKey: 'string', + sendStatus: 'string', + sourceType: 'string', + startTime: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogCountResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogCountResponse.ts new file mode 100644 index 0000000..c83820d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogCountResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeAlertLogCountResponseBody } from "./DescribeAlertLogCountResponseBody"; + + +export class DescribeAlertLogCountResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeAlertLogCountResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeAlertLogCountResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogCountResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogCountResponseBody.ts new file mode 100644 index 0000000..aedf238 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogCountResponseBody.ts @@ -0,0 +1,159 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeAlertLogCountResponseBodyAlertLogCountLogs extends $dara.Model { + /** + * @remarks + * The name of the dimension field based on which alert logs are aggregated. + * + * @example + * product + */ + name?: string; + /** + * @remarks + * The value of the dimension field based on which alert logs are aggregated. + * + * @example + * ECS + */ + value?: string; + static names(): { [key: string]: string } { + return { + name: 'Name', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + name: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeAlertLogCountResponseBodyAlertLogCount extends $dara.Model { + /** + * @remarks + * The number of alert logs. + * + * @example + * 1 + */ + count?: number; + /** + * @remarks + * The details about alert logs. + */ + logs?: DescribeAlertLogCountResponseBodyAlertLogCountLogs[]; + static names(): { [key: string]: string } { + return { + count: 'Count', + logs: 'Logs', + }; + } + + static types(): { [key: string]: any } { + return { + count: 'number', + logs: { 'type': 'array', 'itemType': DescribeAlertLogCountResponseBodyAlertLogCountLogs }, + }; + } + + validate() { + if(Array.isArray(this.logs)) { + $dara.Model.validateArray(this.logs); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeAlertLogCountResponseBody extends $dara.Model { + /** + * @remarks + * The statistics of alert logs. + */ + alertLogCount?: DescribeAlertLogCountResponseBodyAlertLogCount[]; + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 1C4A3709-BF52-42EE-87B5-7435F0929585 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + alertLogCount: 'AlertLogCount', + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + alertLogCount: { 'type': 'array', 'itemType': DescribeAlertLogCountResponseBodyAlertLogCount }, + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + if(Array.isArray(this.alertLogCount)) { + $dara.Model.validateArray(this.alertLogCount); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogHistogramRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogHistogramRequest.ts new file mode 100644 index 0000000..7b684d5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogHistogramRequest.ts @@ -0,0 +1,253 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeAlertLogHistogramRequest extends $dara.Model { + /** + * @remarks + * The alert contact group. + * + * @example + * ECS_Group + */ + contactGroup?: string; + /** + * @remarks + * The end timestamp of the alert logs to be queried. + * + * Unit: milliseconds. + * + * > + * + * * You can query only the alert logs within the last year. + * + * * The interval between the start time (`StartTime`) and end time (`EndTime`) must be less than or equal to 15 days. + * + * @example + * 1609989009694 + */ + endTime?: number; + /** + * @remarks + * The type of the alert event. Valid values: + * + * * TRIGGERED: The alert is triggered. + * * RESOLVED: The alert is resolved. + * + * @example + * RESOLVED + */ + eventType?: string; + /** + * @remarks + * The dimensions based on which data is aggregated. This parameter is equivalent to the GROUP BY clause in SQL. Valid values: + * + * * `product`: aggregates data by cloud service. + * * `level`: aggregates data by alert level. + * * `groupId`: aggregates data by application group. + * * `contactGroup`: aggregates data by alert contact group. + * * `product,metricName`: aggregates data both by cloud service and by metric. + * + * @example + * product + */ + groupBy?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 7301**** + */ + groupId?: string; + /** + * @remarks + * The statistical period of alert logs. Unit: minutes. + * + * @example + * 360 + */ + lastMin?: string; + /** + * @remarks + * The severity level and notification methods of the alert. Valid values: + * + * * P4: Alert notifications are sent by using emails and DingTalk chatbots. + * * OK: No alert is generated. + * + * @example + * P4 + */ + level?: string; + /** + * @remarks + * The metric name. + * + * > For more information about the metrics of different cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The namespace of the Alibaba Cloud service. + * + * > For more information about the namespaces of different cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The page number. + * + * Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * Default value: 10. + * + * @example + * 10 + */ + pageSize?: number; + /** + * @remarks + * The abbreviation of the Alibaba Cloud service name. + * + * @example + * ECS + */ + product?: string; + regionId?: string; + /** + * @remarks + * The ID of the alert rule. + * + * For more information about how to obtain the ID of an alert rule, see [DescribeMetricRuleList](https://help.aliyun.com/document_detail/114941.html). + * + * @example + * ae06917_75a8c43178ab66**** + */ + ruleId?: string; + /** + * @remarks + * The name of the alert rule. + * + * @example + * test123 + */ + ruleName?: string; + /** + * @remarks + * The keyword that is used to query alert logs. + * + * @example + * alert + */ + searchKey?: string; + /** + * @remarks + * The alert status. Valid values: + * + * * 0: The alert is triggered or cleared. + * * 1: The alert is ineffective. + * * 2: The alert is muted and not triggered in a specified period. + * * 3: The host is restarting. + * * 4: No alert notification is sent. + * + * If the value of the SendStatus parameter is 0, the value P4 of the Level parameter indicates a triggered alert and the value OK indicates a cleared alert. + * + * @example + * 0 + */ + sendStatus?: string; + /** + * @remarks + * This parameter is deprecated. + * + * @example + * None + */ + sourceType?: string; + /** + * @remarks + * The start timestamp of the alert logs to be queried. + * + * Unit: milliseconds. + * + * > + * + * * You can query only the alert logs within the last year. + * + * * The interval between the start time (`StartTime`) and end time (`EndTime`) must be less than or equal to 15 days. + * + * @example + * 1609988009694 + */ + startTime?: number; + static names(): { [key: string]: string } { + return { + contactGroup: 'ContactGroup', + endTime: 'EndTime', + eventType: 'EventType', + groupBy: 'GroupBy', + groupId: 'GroupId', + lastMin: 'LastMin', + level: 'Level', + metricName: 'MetricName', + namespace: 'Namespace', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + product: 'Product', + regionId: 'RegionId', + ruleId: 'RuleId', + ruleName: 'RuleName', + searchKey: 'SearchKey', + sendStatus: 'SendStatus', + sourceType: 'SourceType', + startTime: 'StartTime', + }; + } + + static types(): { [key: string]: any } { + return { + contactGroup: 'string', + endTime: 'number', + eventType: 'string', + groupBy: 'string', + groupId: 'string', + lastMin: 'string', + level: 'string', + metricName: 'string', + namespace: 'string', + pageNumber: 'number', + pageSize: 'number', + product: 'string', + regionId: 'string', + ruleId: 'string', + ruleName: 'string', + searchKey: 'string', + sendStatus: 'string', + sourceType: 'string', + startTime: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogHistogramResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogHistogramResponse.ts new file mode 100644 index 0000000..2f76a3e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogHistogramResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeAlertLogHistogramResponseBody } from "./DescribeAlertLogHistogramResponseBody"; + + +export class DescribeAlertLogHistogramResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeAlertLogHistogramResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeAlertLogHistogramResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogHistogramResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogHistogramResponseBody.ts new file mode 100644 index 0000000..eb49811 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogHistogramResponseBody.ts @@ -0,0 +1,133 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeAlertLogHistogramResponseBodyAlertLogHistogramList extends $dara.Model { + /** + * @remarks + * The number of alert logs. + * + * @example + * 20 + */ + count?: number; + /** + * @remarks + * The start timestamp of the queried alert logs. + * + * Unit: seconds. + * + * @example + * 1610074791 + */ + from?: number; + /** + * @remarks + * The end timestamp of the queried alert logs. + * + * Unit: seconds. + * + * @example + * 1610074800 + */ + to?: number; + static names(): { [key: string]: string } { + return { + count: 'Count', + from: 'From', + to: 'To', + }; + } + + static types(): { [key: string]: any } { + return { + count: 'number', + from: 'number', + to: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeAlertLogHistogramResponseBody extends $dara.Model { + /** + * @remarks + * The number of alert logs that were generated during each interval of a time period. + */ + alertLogHistogramList?: DescribeAlertLogHistogramResponseBodyAlertLogHistogramList[]; + /** + * @remarks + * The response code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 1C4A3709-BF52-42EE-87B5-7435F0929585 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + alertLogHistogramList: 'AlertLogHistogramList', + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + alertLogHistogramList: { 'type': 'array', 'itemType': DescribeAlertLogHistogramResponseBodyAlertLogHistogramList }, + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + if(Array.isArray(this.alertLogHistogramList)) { + $dara.Model.validateArray(this.alertLogHistogramList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogListRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogListRequest.ts new file mode 100644 index 0000000..62732b1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogListRequest.ts @@ -0,0 +1,251 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeAlertLogListRequest extends $dara.Model { + /** + * @remarks + * The alert contact group. + * + * @example + * ECS_Group + */ + contactGroup?: string; + /** + * @remarks + * The end timestamp of the alert logs to be queried. + * + * Unit: milliseconds. + * + * You can query only the alert logs within the last year. If the query time is longer than one year, the return value of the `AlertLogList` parameter is empty. + * + * > The time period between the start time specified by `StartTime` and end time specified by `EndTime` must be less than or equal to 15 days. You must specify StartTime and EndTime at the same time, or leave StartTime and EndTime empty at the same time. If you do not specify this parameter, the alert logs within the last 15 minutes are queried by default. + * + * @example + * 1610074409694 + */ + endTime?: number; + /** + * @remarks + * The type of the alert event. Valid values: + * + * * TRIGGERED: The alert is triggered. + * * RESOLVED: The alert is resolved. + * + * @example + * TRIGGERED + */ + eventType?: string; + /** + * @remarks + * The dimensions based on which data is aggregated. This parameter is equivalent to the GROUP BY clause in SQL. Valid values: + * + * * `product`: aggregates data by cloud service. + * * `level`: aggregates data by alert level. + * * `groupId`: aggregates data by application group. + * * `contactGroup`: aggregates data by alert contact group. + * * `product,metricName`: aggregates data both by cloud service and by metric. + * + * @example + * product + */ + groupBy?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 7301**** + */ + groupId?: string; + /** + * @remarks + * The statistical period of alert logs. Unit: minutes. + * + * @example + * 360 + */ + lastMin?: string; + /** + * @remarks + * The severity level and notification methods of the alert. Valid values: + * + * * P4: Alert notifications are sent by using emails and DingTalk chatbots. + * * OK: No alert is generated. + * + * @example + * P4 + */ + level?: string; + /** + * @remarks + * The metric name. + * + * > For more information about the metrics of different cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * IntranetInRate + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * > For information about how to query the namespace of a cloud service, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The page number. + * + * Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * Default value: 10. + * + * @example + * 10 + */ + pageSize?: number; + /** + * @remarks + * The abbreviation of the service name. + * + * For information about how to obtain the abbreviation of a cloud service name, see [DescribeProductsOfActiveMetricRule](https://help.aliyun.com/document_detail/114930.html). + * + * @example + * ECS + */ + product?: string; + regionId?: string; + /** + * @remarks + * The ID of the alert rule. + * + * For information about how to obtain the ID of an alert rule, see [DescribeMetricRuleList](https://help.aliyun.com/document_detail/114941.html). + * + * @example + * bc369e8_30f87e517ed2fc**** + */ + ruleId?: string; + /** + * @remarks + * The name of the alert rule. + * + * @example + * test123 + */ + ruleName?: string; + /** + * @remarks + * The search keyword that is used to query alert logs. + * + * @example + * alert + */ + searchKey?: string; + /** + * @remarks + * The status of the alert. Valid values: + * + * * 0: The alert is triggered or cleared. + * * 1: The alert is ineffective. + * * 2: The alert is muted. + * * 3: The host is restarting. + * * 4: No alert notification is sent. + * + * If the value of the SendStatus parameter is 0, the value P4 of the Level parameter indicates a triggered alert and the value OK indicates a cleared alert. + * + * @example + * 0 + */ + sendStatus?: string; + /** + * @remarks + * The type of the alert rule. Valid value: METRIC. This value indicates an alert rule for time series metrics. + * + * @example + * METRIC + */ + sourceType?: string; + /** + * @remarks + * The start timestamp of the alert logs to be queried. + * + * Unit: milliseconds. + * + * You can query only the alert logs within the last year. If the query time is longer than one year, the return value of the `AlertLogList` parameter is empty. + * + * > The time period between the start time specified by `StartTime` and the end time specified by `EndTime` must be less than or equal to 15 days. You must specify StartTime and EndTime at the same time, or leave StartTime and EndTime empty at the same time. If you do not specify this parameter, the alert logs within the last 15 minutes are queried by default. + * + * @example + * 1609988009694 + */ + startTime?: number; + static names(): { [key: string]: string } { + return { + contactGroup: 'ContactGroup', + endTime: 'EndTime', + eventType: 'EventType', + groupBy: 'GroupBy', + groupId: 'GroupId', + lastMin: 'LastMin', + level: 'Level', + metricName: 'MetricName', + namespace: 'Namespace', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + product: 'Product', + regionId: 'RegionId', + ruleId: 'RuleId', + ruleName: 'RuleName', + searchKey: 'SearchKey', + sendStatus: 'SendStatus', + sourceType: 'SourceType', + startTime: 'StartTime', + }; + } + + static types(): { [key: string]: any } { + return { + contactGroup: 'string', + endTime: 'number', + eventType: 'string', + groupBy: 'string', + groupId: 'string', + lastMin: 'string', + level: 'string', + metricName: 'string', + namespace: 'string', + pageNumber: 'number', + pageSize: 'number', + product: 'string', + regionId: 'string', + ruleId: 'string', + ruleName: 'string', + searchKey: 'string', + sendStatus: 'string', + sourceType: 'string', + startTime: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogListResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogListResponse.ts new file mode 100644 index 0000000..0096cdd --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogListResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeAlertLogListResponseBody } from "./DescribeAlertLogListResponseBody"; + + +export class DescribeAlertLogListResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeAlertLogListResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeAlertLogListResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogListResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogListResponseBody.ts new file mode 100644 index 0000000..fb33828 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertLogListResponseBody.ts @@ -0,0 +1,822 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeAlertLogListResponseBodyAlertLogListDimensions extends $dara.Model { + /** + * @remarks + * The key of the dimension. + * + * @example + * instanceId + */ + key?: string; + /** + * @remarks + * The value of the dimension. + * + * @example + * i-m5e1qg6uo38rztr4**** + */ + value?: string; + static names(): { [key: string]: string } { + return { + key: 'Key', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + key: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeAlertLogListResponseBodyAlertLogListEscalation extends $dara.Model { + /** + * @remarks + * The description of the alert rule. + * + * > The content of the alert rule. This parameter indicates the conditions that trigger an alert. + * + * @example + * $Average<90 + */ + expression?: string; + /** + * @remarks + * The alert level and the methods that are used to send alert notifications. Valid values: + * + * * P4: Alert notifications are sent by using emails and DingTalk chatbots. + * * OK: No alert is generated. + * + * @example + * P4 + */ + level?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before an alert is triggered. + * + * @example + * 1 + */ + times?: number; + static names(): { [key: string]: string } { + return { + expression: 'Expression', + level: 'Level', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + return { + expression: 'string', + level: 'string', + times: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeAlertLogListResponseBodyAlertLogListExtendedInfo extends $dara.Model { + /** + * @remarks + * The name of the extended field. + * + * @example + * userId + */ + name?: string; + /** + * @remarks + * The value of the extended field. + * + * @example + * 120886317861**** + */ + value?: string; + static names(): { [key: string]: string } { + return { + name: 'Name', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + name: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeAlertLogListResponseBodyAlertLogListSendDetailChannelResultListResultList extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * * If the value of the `Channel` parameter is `WEBHOOK`, the status code is 200 or 500. + * * If the value of the `Channel` parameter is `MAIL`, `SMS`, `SLS`, `ONCALL`, `FC`, or `MNS`, this parameter is empty or not returned. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The details of the returned results. + * + * @example + * { } + */ + detail?: string; + /** + * @remarks + * The request ID returned when CloudMonitor calls another cloud service. + * + * @example + * 0BDAF8A8-04DC-5F0C-90E4-724D42C4**** + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + notifyTargetList?: string[]; + static names(): { [key: string]: string } { + return { + code: 'Code', + detail: 'Detail', + requestId: 'RequestId', + success: 'Success', + notifyTargetList: 'notifyTargetList', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + detail: 'string', + requestId: 'string', + success: 'boolean', + notifyTargetList: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.notifyTargetList)) { + $dara.Model.validateArray(this.notifyTargetList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeAlertLogListResponseBodyAlertLogListSendDetailChannelResultList extends $dara.Model { + /** + * @remarks + * The method that is used to send alert notifications. Valid values: + * + * * MAIL: email + * * SMS: text message + * * WEBHOOK: alert callback + * * SLS: Simple Log Service + * * ONCALL: phone call + * * FC: Function Compute + * * MNS: Message Service queue + * + * @example + * MAIL + */ + channel?: string; + /** + * @remarks + * The sending results of alert notifications. + */ + resultList?: DescribeAlertLogListResponseBodyAlertLogListSendDetailChannelResultListResultList[]; + static names(): { [key: string]: string } { + return { + channel: 'Channel', + resultList: 'ResultList', + }; + } + + static types(): { [key: string]: any } { + return { + channel: 'string', + resultList: { 'type': 'array', 'itemType': DescribeAlertLogListResponseBodyAlertLogListSendDetailChannelResultListResultList }, + }; + } + + validate() { + if(Array.isArray(this.resultList)) { + $dara.Model.validateArray(this.resultList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeAlertLogListResponseBodyAlertLogListSendDetail extends $dara.Model { + /** + * @remarks + * The list of sending results that are categorized by notification method. + */ + channelResultList?: DescribeAlertLogListResponseBodyAlertLogListSendDetailChannelResultList[]; + /** + * @remarks + * Indicates whether the alert notifications are sent. + * + * * If the alert notifications are sent, the value "success" is returned. + * * If the configuration is invalid, no alert notification is sent and an error code is returned. + * + * @example + * success + */ + resultCode?: string; + static names(): { [key: string]: string } { + return { + channelResultList: 'ChannelResultList', + resultCode: 'ResultCode', + }; + } + + static types(): { [key: string]: any } { + return { + channelResultList: { 'type': 'array', 'itemType': DescribeAlertLogListResponseBodyAlertLogListSendDetailChannelResultList }, + resultCode: 'string', + }; + } + + validate() { + if(Array.isArray(this.channelResultList)) { + $dara.Model.validateArray(this.channelResultList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeAlertLogListResponseBodyAlertLogListSendResultList extends $dara.Model { + /** + * @remarks + * The category of the alert notification method. Valid values: + * + * * MAIL: email + * * ALIIM: TradeManager + * * SMS: text message + * * CALL: phone call + * * DING: DingTalk chatbot + * * Merged: alert merging + * + * @example + * Mail + */ + key?: string; + /** + * @remarks + * The notification object corresponding to the alert notification method. + */ + value?: string[]; + static names(): { [key: string]: string } { + return { + key: 'Key', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + key: 'string', + value: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.value)) { + $dara.Model.validateArray(this.value); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeAlertLogListResponseBodyAlertLogListWebhookList extends $dara.Model { + /** + * @remarks + * The status code of the alert callback. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The message returned for the alert callback. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The callback URL. + * + * @example + * https://www.aliyun.com/webhook.html + */ + url?: string; + static names(): { [key: string]: string } { + return { + code: 'code', + message: 'message', + url: 'url', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + url: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeAlertLogListResponseBodyAlertLogList extends $dara.Model { + /** + * @remarks + * The timestamp that was generated when the alert was triggered. + * + * Unit: milliseconds. + * + * @example + * 1610043776621 + */ + alertTime?: string; + /** + * @remarks + * The details of the blacklist policy. + * + * @example + * BlackListDetail + */ + blackListDetail?: string; + /** + * @remarks + * The name of the blacklist policy. + * + * @example + * {"id":123,"metricProject":"acs_ecs_dashboard","userId":1736511134389110,"uuid":"8410dbbd-7d30-41c5-94cb-***","name":"alert-***","productCategory":"ecs","instances":[{"instanceId":"host-***"}],"metrics":null,"scopeType":"USER","scopeValue":"","startTime":"0001-01-01T00:00:00Z","endTime":"9999-12-31T23:59:59.999999999+08:00","effectiveTime":null,"isEnable":true,"status":1,"gmtCreate":"2021-11-02T16:35:59+08:00","gmtModified":"2021-11-02T16:35:59+08:00","loadTime":"2021-11-02T16:36:15.213072177+08:00"} + */ + blackListName?: string; + /** + * @remarks + * The ID of the blacklist policy. + * + * @example + * 8410dbbd-7d30-41c5-94cb-***** + */ + blackListUUID?: string; + contactALIIWWList?: string[]; + contactDingList?: string[]; + contactGroups?: string[]; + contactMailList?: string[]; + contactOnCallList?: string[]; + contactSMSList?: string[]; + /** + * @remarks + * The dimensions of the resource that triggered alerts. + */ + dimensions?: DescribeAlertLogListResponseBodyAlertLogListDimensions[]; + dingdingWebhookList?: string[]; + /** + * @remarks + * The alert rule based on which the alert is triggered. + */ + escalation?: DescribeAlertLogListResponseBodyAlertLogListEscalation; + /** + * @remarks + * The event name. + * + * @example + * IOHang + */ + eventName?: string; + /** + * @remarks + * The extended fields. + */ + extendedInfo?: DescribeAlertLogListResponseBodyAlertLogListExtendedInfo[]; + /** + * @remarks + * The ID of the application group. + * + * @example + * 7301**** + */ + groupId?: string; + /** + * @remarks + * The name of the application group. + * + * @example + * ECS_Instances + */ + groupName?: string; + /** + * @remarks + * The resource ID. + * + * @example + * i-m5e1qg6uo38rztr4**** + */ + instanceId?: string; + /** + * @remarks + * The resource name. + * + * @example + * portalHost + */ + instanceName?: string; + /** + * @remarks + * The alert level and the methods that are used to send alert notifications. Valid values: + * + * * P4: Alert notifications are sent by using emails and DingTalk chatbots. + * * OK: No alert is generated. + * + * @example + * P4 + */ + level?: string; + /** + * @remarks + * Indicates whether the alert level was changed. Valid values: + * + * * `P4->OK`: The alert level was changed from P4 to OK. + * * `P4->P4`: The alert level was still P4. + * + * @example + * P4->OK + */ + levelChange?: string; + /** + * @remarks + * The log ID. + * + * @example + * 7818361[1523]@1671593992[1] + */ + logId?: string; + /** + * @remarks + * The alert information in a JSON string. + * + * @example + * {"alertName":"e47aa0ac-4076-44db-a47d-d1083968****_Availability"} + */ + message?: string; + /** + * @remarks + * The metric name. + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The identifier of the cloud service. Valid values: + * + * * If the cloud service is provided by Alibaba Cloud, the abbreviation of the service name is returned. Example: ECS. + * * If the cloud service is not provided by Alibaba Cloud, a value in the `acs_Service keyword` format is returned. Example: acs_networkmonitor. + * + * @example + * ECS + */ + product?: string; + /** + * @remarks + * The ID of the alert rule. + * + * @example + * d582b9e9-b1c1-4f17-9279-0fe7333a****_ResponseTime + */ + ruleId?: string; + /** + * @remarks + * The name of the alert rule. + */ + ruleName?: string; + /** + * @remarks + * The details about the sending results of alert notifications. + */ + sendDetail?: DescribeAlertLogListResponseBodyAlertLogListSendDetail; + /** + * @remarks + * The sending results of alert notifications. + */ + sendResultList?: DescribeAlertLogListResponseBodyAlertLogListSendResultList[]; + /** + * @remarks + * The status of the alert. Valid values: + * + * * 0: The alert is triggered or cleared. + * * 1: The alert is ineffective. + * * 2: The alert is muted. + * * 3: The host is restarting. + * * 4: No alert notification is sent. + * + * If the value of the SendStatus parameter is 0, the value P4 of the Level parameter indicates a triggered alert and the value OK indicates a cleared alert. + * + * @example + * 0 + */ + sendStatus?: string; + /** + * @remarks + * The callback URLs. + */ + webhookList?: DescribeAlertLogListResponseBodyAlertLogListWebhookList[]; + static names(): { [key: string]: string } { + return { + alertTime: 'AlertTime', + blackListDetail: 'BlackListDetail', + blackListName: 'BlackListName', + blackListUUID: 'BlackListUUID', + contactALIIWWList: 'ContactALIIWWList', + contactDingList: 'ContactDingList', + contactGroups: 'ContactGroups', + contactMailList: 'ContactMailList', + contactOnCallList: 'ContactOnCallList', + contactSMSList: 'ContactSMSList', + dimensions: 'Dimensions', + dingdingWebhookList: 'DingdingWebhookList', + escalation: 'Escalation', + eventName: 'EventName', + extendedInfo: 'ExtendedInfo', + groupId: 'GroupId', + groupName: 'GroupName', + instanceId: 'InstanceId', + instanceName: 'InstanceName', + level: 'Level', + levelChange: 'LevelChange', + logId: 'LogId', + message: 'Message', + metricName: 'MetricName', + namespace: 'Namespace', + product: 'Product', + ruleId: 'RuleId', + ruleName: 'RuleName', + sendDetail: 'SendDetail', + sendResultList: 'SendResultList', + sendStatus: 'SendStatus', + webhookList: 'WebhookList', + }; + } + + static types(): { [key: string]: any } { + return { + alertTime: 'string', + blackListDetail: 'string', + blackListName: 'string', + blackListUUID: 'string', + contactALIIWWList: { 'type': 'array', 'itemType': 'string' }, + contactDingList: { 'type': 'array', 'itemType': 'string' }, + contactGroups: { 'type': 'array', 'itemType': 'string' }, + contactMailList: { 'type': 'array', 'itemType': 'string' }, + contactOnCallList: { 'type': 'array', 'itemType': 'string' }, + contactSMSList: { 'type': 'array', 'itemType': 'string' }, + dimensions: { 'type': 'array', 'itemType': DescribeAlertLogListResponseBodyAlertLogListDimensions }, + dingdingWebhookList: { 'type': 'array', 'itemType': 'string' }, + escalation: DescribeAlertLogListResponseBodyAlertLogListEscalation, + eventName: 'string', + extendedInfo: { 'type': 'array', 'itemType': DescribeAlertLogListResponseBodyAlertLogListExtendedInfo }, + groupId: 'string', + groupName: 'string', + instanceId: 'string', + instanceName: 'string', + level: 'string', + levelChange: 'string', + logId: 'string', + message: 'string', + metricName: 'string', + namespace: 'string', + product: 'string', + ruleId: 'string', + ruleName: 'string', + sendDetail: DescribeAlertLogListResponseBodyAlertLogListSendDetail, + sendResultList: { 'type': 'array', 'itemType': DescribeAlertLogListResponseBodyAlertLogListSendResultList }, + sendStatus: 'string', + webhookList: { 'type': 'array', 'itemType': DescribeAlertLogListResponseBodyAlertLogListWebhookList }, + }; + } + + validate() { + if(Array.isArray(this.contactALIIWWList)) { + $dara.Model.validateArray(this.contactALIIWWList); + } + if(Array.isArray(this.contactDingList)) { + $dara.Model.validateArray(this.contactDingList); + } + if(Array.isArray(this.contactGroups)) { + $dara.Model.validateArray(this.contactGroups); + } + if(Array.isArray(this.contactMailList)) { + $dara.Model.validateArray(this.contactMailList); + } + if(Array.isArray(this.contactOnCallList)) { + $dara.Model.validateArray(this.contactOnCallList); + } + if(Array.isArray(this.contactSMSList)) { + $dara.Model.validateArray(this.contactSMSList); + } + if(Array.isArray(this.dimensions)) { + $dara.Model.validateArray(this.dimensions); + } + if(Array.isArray(this.dingdingWebhookList)) { + $dara.Model.validateArray(this.dingdingWebhookList); + } + if(this.escalation && typeof (this.escalation as any).validate === 'function') { + (this.escalation as any).validate(); + } + if(Array.isArray(this.extendedInfo)) { + $dara.Model.validateArray(this.extendedInfo); + } + if(this.sendDetail && typeof (this.sendDetail as any).validate === 'function') { + (this.sendDetail as any).validate(); + } + if(Array.isArray(this.sendResultList)) { + $dara.Model.validateArray(this.sendResultList); + } + if(Array.isArray(this.webhookList)) { + $dara.Model.validateArray(this.webhookList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeAlertLogListResponseBody extends $dara.Model { + /** + * @remarks + * The queried alert logs. + */ + alertLogList?: DescribeAlertLogListResponseBodyAlertLogList[]; + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The page number. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * @example + * 10 + */ + pageSize?: number; + /** + * @remarks + * The request ID. + * + * @example + * 1C4A3709-BF52-42EE-87B5-7435F0929585 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + alertLogList: 'AlertLogList', + code: 'Code', + message: 'Message', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + alertLogList: { 'type': 'array', 'itemType': DescribeAlertLogListResponseBodyAlertLogList }, + code: 'string', + message: 'string', + pageNumber: 'number', + pageSize: 'number', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + if(Array.isArray(this.alertLogList)) { + $dara.Model.validateArray(this.alertLogList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertingMetricRuleResourcesRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertingMetricRuleResourcesRequest.ts new file mode 100644 index 0000000..4b0a394 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertingMetricRuleResourcesRequest.ts @@ -0,0 +1,103 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeAlertingMetricRuleResourcesRequest extends $dara.Model { + /** + * @remarks + * Queries the alerts that were triggered before the specified time. Timestamps in milliseconds are supported. + * + * @example + * 1698827400000 + */ + alertBeforeTime?: string; + /** + * @remarks + * The dimensions that specify the resources whose monitoring data you want to query. + * + * @example + * {\\"userId\\":\\"120886317861****\\",\\"region\\":\\"cn-huhehaote\\",\\"queue\\":\\"test-0128\\"} + */ + dimensions?: string; + /** + * @remarks + * The ID of the application group. For information about how to obtain the ID of an application group, see [DescribeMonitorGroups](https://help.aliyun.com/document_detail/115032.html). + * + * @example + * 7671**** + */ + groupId?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * For more information about the namespaces of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * acs_mns_new + */ + namespace?: string; + /** + * @remarks + * The page number. + * + * Default value: 1. + * + * @example + * 1 + */ + page?: number; + /** + * @remarks + * The number of entries per page. + * + * Default value: 10. + * + * @example + * 10 + */ + pageSize?: number; + regionId?: string; + /** + * @remarks + * The ID of the alert rule. For information about how to obtain the ID of an alert rule, see [DescribeMetricRuleList](https://help.aliyun.com/document_detail/114941.html). + * + * @example + * putNewAlarm_user_7e78d765-0e3e-4671-ba6d-7ce39108**** + */ + ruleId?: string; + static names(): { [key: string]: string } { + return { + alertBeforeTime: 'AlertBeforeTime', + dimensions: 'Dimensions', + groupId: 'GroupId', + namespace: 'Namespace', + page: 'Page', + pageSize: 'PageSize', + regionId: 'RegionId', + ruleId: 'RuleId', + }; + } + + static types(): { [key: string]: any } { + return { + alertBeforeTime: 'string', + dimensions: 'string', + groupId: 'string', + namespace: 'string', + page: 'number', + pageSize: 'number', + regionId: 'string', + ruleId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertingMetricRuleResourcesResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertingMetricRuleResourcesResponse.ts new file mode 100644 index 0000000..2556c85 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertingMetricRuleResourcesResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeAlertingMetricRuleResourcesResponseBody } from "./DescribeAlertingMetricRuleResourcesResponseBody"; + + +export class DescribeAlertingMetricRuleResourcesResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeAlertingMetricRuleResourcesResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeAlertingMetricRuleResourcesResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertingMetricRuleResourcesResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertingMetricRuleResourcesResponseBody.ts new file mode 100644 index 0000000..9ad1869 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeAlertingMetricRuleResourcesResponseBody.ts @@ -0,0 +1,618 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResourceExpressionListExpressionList extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The metric name. + * + * @example + * cpu_total + */ + metricName?: 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. + * + * @example + * 60 + */ + period?: string; + /** + * @remarks + * The statistical method of the alert level. Valid values: + * + * * Maximum + * * Minimum + * * Average + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The alert threshold. + * + * @example + * 90 + */ + threshold?: string; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + metricName: 'MetricName', + period: 'Period', + statistics: 'Statistics', + threshold: 'Threshold', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + metricName: 'string', + period: 'string', + statistics: 'string', + threshold: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResourceExpressionList extends $dara.Model { + expressionList?: DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResourceExpressionListExpressionList[]; + static names(): { [key: string]: string } { + return { + expressionList: 'ExpressionList', + }; + } + + static types(): { [key: string]: any } { + return { + expressionList: { 'type': 'array', 'itemType': DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResourceExpressionListExpressionList }, + }; + } + + validate() { + if(Array.isArray(this.expressionList)) { + $dara.Model.validateArray(this.expressionList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResource extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The description of the alert rule. + * + * > This parameter indicates the content of the alert rule. If the metric value meets the alert condition, an alert is triggered. + * + * @example + * $Average>=10 + */ + expression?: string; + /** + * @remarks + * The description of the multi-metric alert rule. + */ + expressionList?: DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResourceExpressionList; + /** + * @remarks + * The relationship between multiple metrics. Valid values: + * + * * &&: If all metrics meet the alert conditions, CloudMonitor sends alert notifications. + * * ||: If one of the metrics meets the alert conditions, CloudMonitor sends alert notifications. + * + * @example + * && + */ + expressionListJoin?: string; + /** + * @remarks + * The trigger conditions that are created by using expressions. You can use expressions to create trigger conditions in the following scenarios: + * + * * Set an alert blacklist for specific resources. For example, if you specify `$instanceId != \\"i-io8kfvcpp7x5****\\" ``&&`` $Average > 50`, no alert is triggered when the `average metric value` of the `i-io8kfvcpp7x5****` instance exceeds 50. + * * Set a special alert threshold for a specified instance in the rule. For example, if you specify `$Average > ($instanceId == \\"i-io8kfvcpp7x5****\\"? 80: 50)`, an alert is triggered when the `average metric value` of the `i-io8kfvcpp7x5****` instance exceeds 80 or the `average metric value` of other instances exceeds 50. + * * Limit the number of instances whose metric values exceed the threshold. For example, if you specify `count($Average > 20) > 3`, an alert is triggered only when the `average metric value` of more than three instances exceeds 20. + * + * @example + * $Average > ($instanceId == \\"i-io8kfvcpp7x5****\\"? 80: 50) + */ + expressionRaw?: string; + /** + * @remarks + * The severity level and notification methods of the alert. Valid values: + * + * * 4: Alert notifications are sent by using emails and DingTalk chatbots. + * * OK: No alert is generated. + * + * @example + * 3 + */ + level?: number; + /** + * @remarks + * The operator that is used to compare the metric value with the threshold. Valid values: + * + * * `>=` + * * `=` + * * `<=` + * * `>` + * * `<` + * * `!=` + * + * @example + * >= + */ + preCondition?: string; + /** + * @remarks + * This parameter is deprecated. + * + * @example + * mns + */ + tag?: string; + /** + * @remarks + * The alert threshold. + * + * @example + * 10 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before an alert is triggered. + * + * @example + * 1 + */ + times?: number; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + expression: 'Expression', + expressionList: 'ExpressionList', + expressionListJoin: 'ExpressionListJoin', + expressionRaw: 'ExpressionRaw', + level: 'Level', + preCondition: 'PreCondition', + tag: 'Tag', + threshold: 'Threshold', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + expression: 'string', + expressionList: DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResourceExpressionList, + expressionListJoin: 'string', + expressionRaw: 'string', + level: 'number', + preCondition: 'string', + tag: 'string', + threshold: 'string', + times: 'number', + }; + } + + validate() { + if(this.expressionList && typeof (this.expressionList as any).validate === 'function') { + (this.expressionList as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalation extends $dara.Model { + resource?: DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResource[]; + static names(): { [key: string]: string } { + return { + resource: 'Resource', + }; + } + + static types(): { [key: string]: any } { + return { + resource: { 'type': 'array', 'itemType': DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResource }, + }; + } + + validate() { + if(Array.isArray(this.resource)) { + $dara.Model.validateArray(this.resource); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeAlertingMetricRuleResourcesResponseBodyResourcesResource extends $dara.Model { + /** + * @remarks + * The dimensions based on which the resources are queried. + * + * @example + * {\\"region\\":\\"cn-huhehaote\\",\\"queue\\":\\"test-0128\\",\\"userId\\":\\"120886317861****\\"} + */ + dimensions?: string; + /** + * @remarks + * Indicates whether the alert rule is enabled. Valid values: + * + * * true: The alert rule is enabled. + * * false: The alert rule is disabled. + * + * @example + * true + */ + enable?: string; + /** + * @remarks + * The alert rule based on which the alert is triggered. + */ + escalation?: DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalation; + /** + * @remarks + * The ID of the application group. + * + * > If the alert rule is associated with an application group, the ID of the application group is returned in this parameter. + * + * @example + * 7671**** + */ + groupId?: string; + /** + * @remarks + * The time when the last alert was triggered for the resource based on the alert rule. The value is a timestamp. + * + * Unit: milliseconds. + * + * @example + * 1622427900000 + */ + lastAlertTime?: string; + /** + * @remarks + * The time when the alert rule was last modified. The value is a timestamp. + * + * Unit: milliseconds. + * + * @example + * 1622827900000 + */ + lastModifyTime?: string; + /** + * @remarks + * The severity level and notification methods of the alert. Valid values: + * + * * 4: Alert notifications are sent by using emails and DingTalk chatbots. + * * OK: No alert is generated. + * + * @example + * 3 + */ + level?: number; + /** + * @remarks + * The metric name. + * + * @example + * ActiveMessages + */ + metricName?: string; + /** + * @remarks + * The metric value that triggered the alert based on the alert rule. The value is a JSON string. + * + * @example + * {\\"timestamp\\":1623727500000,\\"Sum\\":926,\\"value\\":463,\\"Maximum\\":463,\\"Minimum\\":463,\\"Average\\":463,\\"SampleCount\\":2,\\"userId\\":\\"120886317861****\\",\\"region\\":\\"cn-huhehaote\\",\\"queue\\":\\"test-0128\\"} + */ + metricValues?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * @example + * acs_mns_new + */ + namespace?: string; + /** + * @remarks + * The type of the cloud service. + * + * @example + * mns + */ + productCategory?: string; + /** + * @remarks + * The resources that are monitored. + * + * @example + * userId=120886317861****,region=cn-huhehaote,queue=test-0128 + */ + resource?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before an alert is triggered. + * + * @example + * 3 + */ + retryTimes?: string; + /** + * @remarks + * The ID of the alert rule. + * + * @example + * putNewAlarm_user_7e78d765-0e3e-4671-ba6d-7ce39108**** + */ + ruleId?: string; + /** + * @remarks + * The name of the alert rule. + * + * @example + * test123456789 + */ + ruleName?: string; + /** + * @remarks + * The time when the resource was associated with the alert rule. The value is a timestamp. + * + * Unit: milliseconds. + * + * @example + * 1622427900000 + */ + startTime?: string; + /** + * @remarks + * The method used to calculate the metric values that trigger alerts. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The alert threshold. + * + * @example + * 10 + */ + threshold?: string; + static names(): { [key: string]: string } { + return { + dimensions: 'Dimensions', + enable: 'Enable', + escalation: 'Escalation', + groupId: 'GroupId', + lastAlertTime: 'LastAlertTime', + lastModifyTime: 'LastModifyTime', + level: 'Level', + metricName: 'MetricName', + metricValues: 'MetricValues', + namespace: 'Namespace', + productCategory: 'ProductCategory', + resource: 'Resource', + retryTimes: 'RetryTimes', + ruleId: 'RuleId', + ruleName: 'RuleName', + startTime: 'StartTime', + statistics: 'Statistics', + threshold: 'Threshold', + }; + } + + static types(): { [key: string]: any } { + return { + dimensions: 'string', + enable: 'string', + escalation: DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalation, + groupId: 'string', + lastAlertTime: 'string', + lastModifyTime: 'string', + level: 'number', + metricName: 'string', + metricValues: 'string', + namespace: 'string', + productCategory: 'string', + resource: 'string', + retryTimes: 'string', + ruleId: 'string', + ruleName: 'string', + startTime: 'string', + statistics: 'string', + threshold: 'string', + }; + } + + validate() { + if(this.escalation && typeof (this.escalation as any).validate === 'function') { + (this.escalation as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeAlertingMetricRuleResourcesResponseBodyResources extends $dara.Model { + resource?: DescribeAlertingMetricRuleResourcesResponseBodyResourcesResource[]; + static names(): { [key: string]: string } { + return { + resource: 'Resource', + }; + } + + static types(): { [key: string]: any } { + return { + resource: { 'type': 'array', 'itemType': DescribeAlertingMetricRuleResourcesResponseBodyResourcesResource }, + }; + } + + validate() { + if(Array.isArray(this.resource)) { + $dara.Model.validateArray(this.resource); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeAlertingMetricRuleResourcesResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The error message. + * + * @example + * The request processing has failed due to some unknown error. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 0724011B-D9E0-4B2F-8C51-F17A894CC42C + */ + requestId?: string; + /** + * @remarks + * The resources that are associated with the alert rule. + */ + resources?: DescribeAlertingMetricRuleResourcesResponseBodyResources; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The total number of entries returned. + * + * @example + * 2 + */ + total?: number; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + resources: 'Resources', + success: 'Success', + total: 'Total', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'number', + message: 'string', + requestId: 'string', + resources: DescribeAlertingMetricRuleResourcesResponseBodyResources, + success: 'boolean', + total: 'number', + }; + } + + validate() { + if(this.resources && typeof (this.resources as any).validate === 'function') { + (this.resources as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactGroupListRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactGroupListRequest.ts new file mode 100644 index 0000000..6c9640f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactGroupListRequest.ts @@ -0,0 +1,47 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeContactGroupListRequest extends $dara.Model { + /** + * @remarks + * Page number. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * Number of records per page. + * + * @example + * 10 + */ + pageSize?: number; + regionId?: string; + static names(): { [key: string]: string } { + return { + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + pageNumber: 'number', + pageSize: 'number', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactGroupListResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactGroupListResponse.ts new file mode 100644 index 0000000..e0b7984 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactGroupListResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeContactGroupListResponseBody } from "./DescribeContactGroupListResponseBody"; + + +export class DescribeContactGroupListResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeContactGroupListResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeContactGroupListResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactGroupListResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactGroupListResponseBody.ts new file mode 100644 index 0000000..1629499 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactGroupListResponseBody.ts @@ -0,0 +1,270 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeContactGroupListResponseBodyContactGroupListContactGroupContacts extends $dara.Model { + contact?: string[]; + static names(): { [key: string]: string } { + return { + contact: 'Contact', + }; + } + + static types(): { [key: string]: any } { + return { + contact: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.contact)) { + $dara.Model.validateArray(this.contact); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeContactGroupListResponseBodyContactGroupListContactGroup extends $dara.Model { + /** + * @remarks + * List of contacts. + */ + contacts?: DescribeContactGroupListResponseBodyContactGroupListContactGroupContacts; + /** + * @remarks + * Creation time. + * + * @example + * 2023-06-07T03:52:30Z + */ + createTime?: number; + /** + * @remarks + * Description information of the alarm contact group. + * + * @example + * Devops-运维组 + */ + describe?: string; + /** + * @remarks + * Indicates whether the weekly report subscription function is enabled. Values: + * + * - true: Yes. + * + * - false: No. + * + * @example + * false + */ + enableSubscribed?: boolean; + /** + * @remarks + * Indicates whether the weekly report function is enabled. + * + * @example + * false + */ + enabledWeeklyReport?: boolean; + /** + * @remarks + * Name. + * + * @example + * name + */ + name?: string; + /** + * @remarks + * Update time. + * + * @example + * 2025-03-04T02:12:06Z + */ + updateTime?: number; + static names(): { [key: string]: string } { + return { + contacts: 'Contacts', + createTime: 'CreateTime', + describe: 'Describe', + enableSubscribed: 'EnableSubscribed', + enabledWeeklyReport: 'EnabledWeeklyReport', + name: 'Name', + updateTime: 'UpdateTime', + }; + } + + static types(): { [key: string]: any } { + return { + contacts: DescribeContactGroupListResponseBodyContactGroupListContactGroupContacts, + createTime: 'number', + describe: 'string', + enableSubscribed: 'boolean', + enabledWeeklyReport: 'boolean', + name: 'string', + updateTime: 'number', + }; + } + + validate() { + if(this.contacts && typeof (this.contacts as any).validate === 'function') { + (this.contacts as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeContactGroupListResponseBodyContactGroupList extends $dara.Model { + contactGroup?: DescribeContactGroupListResponseBodyContactGroupListContactGroup[]; + static names(): { [key: string]: string } { + return { + contactGroup: 'ContactGroup', + }; + } + + static types(): { [key: string]: any } { + return { + contactGroup: { 'type': 'array', 'itemType': DescribeContactGroupListResponseBodyContactGroupListContactGroup }, + }; + } + + validate() { + if(Array.isArray(this.contactGroup)) { + $dara.Model.validateArray(this.contactGroup); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeContactGroupListResponseBodyContactGroups extends $dara.Model { + contactGroup?: string[]; + static names(): { [key: string]: string } { + return { + contactGroup: 'ContactGroup', + }; + } + + static types(): { [key: string]: any } { + return { + contactGroup: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.contactGroup)) { + $dara.Model.validateArray(this.contactGroup); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeContactGroupListResponseBody extends $dara.Model { + /** + * @remarks + * Status code. Note that 200 indicates success. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * List of alarm contact groups. + */ + contactGroupList?: DescribeContactGroupListResponseBodyContactGroupList; + /** + * @remarks + * List of alarm contact groups. + */ + contactGroups?: DescribeContactGroupListResponseBodyContactGroups; + /** + * @remarks + * Return message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The ID of this call request, which is a unique identifier generated by Alibaba Cloud for the request and can be used for troubleshooting and problem localization. + * + * @example + * 916EE694-03C2-47B6-85EE-5054E3C168D3 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the operation was successful. Values: + * + * - true: Success. + * + * - false: Failure. + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * Total number of records. + * + * @example + * 22 + */ + total?: number; + static names(): { [key: string]: string } { + return { + code: 'Code', + contactGroupList: 'ContactGroupList', + contactGroups: 'ContactGroups', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + total: 'Total', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + contactGroupList: DescribeContactGroupListResponseBodyContactGroupList, + contactGroups: DescribeContactGroupListResponseBodyContactGroups, + message: 'string', + requestId: 'string', + success: 'boolean', + total: 'number', + }; + } + + validate() { + if(this.contactGroupList && typeof (this.contactGroupList as any).validate === 'function') { + (this.contactGroupList as any).validate(); + } + if(this.contactGroups && typeof (this.contactGroups as any).validate === 'function') { + (this.contactGroups as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactListByContactGroupRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactListByContactGroupRequest.ts new file mode 100644 index 0000000..ef74388 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactListByContactGroupRequest.ts @@ -0,0 +1,39 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeContactListByContactGroupRequest extends $dara.Model { + /** + * @remarks + * The name of the alert contact group. + * + * This parameter is required. + * + * @example + * CloudMonitor + */ + contactGroupName?: string; + regionId?: string; + static names(): { [key: string]: string } { + return { + contactGroupName: 'ContactGroupName', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + contactGroupName: 'string', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactListByContactGroupResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactListByContactGroupResponse.ts new file mode 100644 index 0000000..f7aab80 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactListByContactGroupResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeContactListByContactGroupResponseBody } from "./DescribeContactListByContactGroupResponseBody"; + + +export class DescribeContactListByContactGroupResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeContactListByContactGroupResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeContactListByContactGroupResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactListByContactGroupResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactListByContactGroupResponseBody.ts new file mode 100644 index 0000000..3c3b1eb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactListByContactGroupResponseBody.ts @@ -0,0 +1,243 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeContactListByContactGroupResponseBodyContactsContactChannels extends $dara.Model { + /** + * @remarks + * The TradeManager ID of the alert contact. + * + * > This parameter can be returned only on the China site (aliyun.com). + * + * @example + * Alice + */ + aliIM?: string; + /** + * @remarks + * The webhook URL of the DingTalk chatbot. + * + * @example + * https://oapi.dingtalk.com/robot/send?access_token=9bf44f8189597d07dfdd7a123455ffc112**** + */ + dingWebHook?: string; + /** + * @remarks + * The email address of the alert contact. + * + * @example + * alice@example.com + */ + mail?: string; + /** + * @remarks + * The mobile number of the alert contact. + * + * > This parameter can be returned only on the China site (aliyun.com). + * + * @example + * 1333333**** + */ + SMS?: string; + static names(): { [key: string]: string } { + return { + aliIM: 'AliIM', + dingWebHook: 'DingWebHook', + mail: 'Mail', + SMS: 'SMS', + }; + } + + static types(): { [key: string]: any } { + return { + aliIM: 'string', + dingWebHook: 'string', + mail: 'string', + SMS: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeContactListByContactGroupResponseBodyContactsContact extends $dara.Model { + /** + * @remarks + * The alert notification methods. + */ + channels?: DescribeContactListByContactGroupResponseBodyContactsContactChannels; + /** + * @remarks + * The time when the alert contact was created. + * + * Unit: milliseconds. + * + * @example + * 1552314252000 + */ + createTime?: number; + /** + * @remarks + * The description of the alert contact. + * + * @example + * ECS + */ + desc?: string; + /** + * @remarks + * The name of the alert contact. + * + * @example + * Alice + */ + name?: string; + /** + * @remarks + * The time when the alert contact was modified. + * + * Unit: milliseconds. + * + * @example + * 1552314252000 + */ + updateTime?: number; + static names(): { [key: string]: string } { + return { + channels: 'Channels', + createTime: 'CreateTime', + desc: 'Desc', + name: 'Name', + updateTime: 'UpdateTime', + }; + } + + static types(): { [key: string]: any } { + return { + channels: DescribeContactListByContactGroupResponseBodyContactsContactChannels, + createTime: 'number', + desc: 'string', + name: 'string', + updateTime: 'number', + }; + } + + validate() { + if(this.channels && typeof (this.channels as any).validate === 'function') { + (this.channels as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeContactListByContactGroupResponseBodyContacts extends $dara.Model { + contact?: DescribeContactListByContactGroupResponseBodyContactsContact[]; + static names(): { [key: string]: string } { + return { + contact: 'Contact', + }; + } + + static types(): { [key: string]: any } { + return { + contact: { 'type': 'array', 'itemType': DescribeContactListByContactGroupResponseBodyContactsContact }, + }; + } + + validate() { + if(Array.isArray(this.contact)) { + $dara.Model.validateArray(this.contact); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeContactListByContactGroupResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The alert contacts that receive alert notifications. + */ + contacts?: DescribeContactListByContactGroupResponseBodyContacts; + /** + * @remarks + * The returned message. + * + * @example + * The group is not exists. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 06D5ECC2-B9BE-42A4-8FA3-1A610FB08B83 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + contacts: 'Contacts', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + contacts: DescribeContactListByContactGroupResponseBodyContacts, + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + if(this.contacts && typeof (this.contacts as any).validate === 'function') { + (this.contacts as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactListRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactListRequest.ts new file mode 100644 index 0000000..d1a2f9b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactListRequest.ts @@ -0,0 +1,86 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeContactListRequest extends $dara.Model { + /** + * @remarks + * The alert notification method. Valid values: + * + * * Mail: emails + * * DingWebHook: DingTalk chatbots + * + * @example + * Mail + */ + chanelType?: string; + /** + * @remarks + * The value specified for the alert notification method. + * + * > This parameter is required only if you set the `ChanelType` parameter to `Mail`. + * + * @example + * Alice@example.com + */ + chanelValue?: string; + /** + * @remarks + * The name of the alert contact. + * + * @example + * Alice + */ + contactName?: string; + /** + * @remarks + * The page number. + * + * Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * Default value: 100. + * + * @example + * 10 + */ + pageSize?: number; + regionId?: string; + static names(): { [key: string]: string } { + return { + chanelType: 'ChanelType', + chanelValue: 'ChanelValue', + contactName: 'ContactName', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + chanelType: 'string', + chanelValue: 'string', + contactName: 'string', + pageNumber: 'number', + pageSize: 'number', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactListResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactListResponse.ts new file mode 100644 index 0000000..1553afa --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactListResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeContactListResponseBody } from "./DescribeContactListResponseBody"; + + +export class DescribeContactListResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeContactListResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeContactListResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactListResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactListResponseBody.ts new file mode 100644 index 0000000..5ac083b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeContactListResponseBody.ts @@ -0,0 +1,381 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeContactListResponseBodyContactsContactChannels extends $dara.Model { + /** + * @remarks + * The TradeManager ID of the alert contact. + * + * @example + * Alice + */ + aliIM?: string; + /** + * @remarks + * The webhook URL of the DingTalk chatbot. + * + * @example + * https://oapi.dingtalk.com/robot/send?access_token=9bf44f8189597d07dfdd7a123455ffc112**** + */ + dingWebHook?: string; + /** + * @remarks + * The email address of the alert contact. + * + * @example + * Alice@example.com + */ + mail?: string; + /** + * @remarks + * The phone number of the alert contac. + * + * @example + * 1333333**** + */ + SMS?: string; + static names(): { [key: string]: string } { + return { + aliIM: 'AliIM', + dingWebHook: 'DingWebHook', + mail: 'Mail', + SMS: 'SMS', + }; + } + + static types(): { [key: string]: any } { + return { + aliIM: 'string', + dingWebHook: 'string', + mail: 'string', + SMS: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeContactListResponseBodyContactsContactChannelsState extends $dara.Model { + /** + * @remarks + * The status of the TradeManager ID. + * + * Valid value: OK. The value OK indicates that the TradeManager ID is valid and can receive alert notifications. + * + * > This parameter applies only to the Alibaba Cloud China site (aliyun.com). + * + * @example + * OK + */ + aliIM?: string; + /** + * @remarks + * The status of the DingTalk chatbot. + * + * Valid value: OK. The value OK indicates that the DingTalk chatbot is normal and alert notifications can be received in a DingTalk group. + * + * @example + * OK + */ + dingWebHook?: string; + /** + * @remarks + * The status of the email address. Valid values: + * + * * PENDING: The phone number is not activated. Alert notifications can be sent to the phone number by using text messages only after the phone number is activated. + * * OK: The phone number is activated and can receive alert notifications. + * + * @example + * PENDING + */ + mail?: string; + /** + * @remarks + * The status of the phone number. Valid values: + * + * * PENDING: The phone number is not activated. Alert notifications can be sent to the phone number by using text messages only after the phone number is activated. + * * OK: The phone number is activated and can receive alert notifications. + * + * > This parameter applies only to the Alibaba Cloud China site (aliyun.com). + * + * @example + * OK + */ + SMS?: string; + static names(): { [key: string]: string } { + return { + aliIM: 'AliIM', + dingWebHook: 'DingWebHook', + mail: 'Mail', + SMS: 'SMS', + }; + } + + static types(): { [key: string]: any } { + return { + aliIM: 'string', + dingWebHook: 'string', + mail: 'string', + SMS: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeContactListResponseBodyContactsContactContactGroups extends $dara.Model { + contactGroup?: string[]; + static names(): { [key: string]: string } { + return { + contactGroup: 'ContactGroup', + }; + } + + static types(): { [key: string]: any } { + return { + contactGroup: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.contactGroup)) { + $dara.Model.validateArray(this.contactGroup); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeContactListResponseBodyContactsContact extends $dara.Model { + /** + * @remarks + * The alert notification method. + */ + channels?: DescribeContactListResponseBodyContactsContactChannels; + /** + * @remarks + * The status of the alert notification method. Valid values: PENDING and OK. + * + * The email address must be activated after it is added as the value specified for the alert notification method. The value PENDING indicates that the email address is not activated. The value OK indicates that the email address is activated. + */ + channelsState?: DescribeContactListResponseBodyContactsContactChannelsState; + /** + * @remarks + * None. + */ + contactGroups?: DescribeContactListResponseBodyContactsContactContactGroups; + /** + * @remarks + * The timestamp when the alert contact was created. + * + * Unit: milliseconds. + * + * @example + * 1552356159000 + */ + createTime?: number; + /** + * @remarks + * The description. + */ + desc?: string; + /** + * @remarks + * The language in which the alert information is displayed. Valid values: + * + * * zh-cn: simplified Chinese + * * en: English + * + * @example + * zh-cn + */ + lang?: string; + /** + * @remarks + * The name of the alert contact. + * + * @example + * Alice + */ + name?: string; + /** + * @remarks + * The timestamp when the alert contact was updated. + * + * Unit: milliseconds. + * + * @example + * 1552356159000 + */ + updateTime?: number; + static names(): { [key: string]: string } { + return { + channels: 'Channels', + channelsState: 'ChannelsState', + contactGroups: 'ContactGroups', + createTime: 'CreateTime', + desc: 'Desc', + lang: 'Lang', + name: 'Name', + updateTime: 'UpdateTime', + }; + } + + static types(): { [key: string]: any } { + return { + channels: DescribeContactListResponseBodyContactsContactChannels, + channelsState: DescribeContactListResponseBodyContactsContactChannelsState, + contactGroups: DescribeContactListResponseBodyContactsContactContactGroups, + createTime: 'number', + desc: 'string', + lang: 'string', + name: 'string', + updateTime: 'number', + }; + } + + validate() { + if(this.channels && typeof (this.channels as any).validate === 'function') { + (this.channels as any).validate(); + } + if(this.channelsState && typeof (this.channelsState as any).validate === 'function') { + (this.channelsState as any).validate(); + } + if(this.contactGroups && typeof (this.contactGroups as any).validate === 'function') { + (this.contactGroups as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeContactListResponseBodyContacts extends $dara.Model { + contact?: DescribeContactListResponseBodyContactsContact[]; + static names(): { [key: string]: string } { + return { + contact: 'Contact', + }; + } + + static types(): { [key: string]: any } { + return { + contact: { 'type': 'array', 'itemType': DescribeContactListResponseBodyContactsContact }, + }; + } + + validate() { + if(Array.isArray(this.contact)) { + $dara.Model.validateArray(this.contact); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeContactListResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The alert contacts. + */ + contacts?: DescribeContactListResponseBodyContacts; + /** + * @remarks + * The error message returned. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 06D5ECC2-B9BE-42A4-8FA3-1A610FB08B83 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true: The request was successful. + * * false: The request failed. + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The total number of entries returned. + * + * @example + * 15 + */ + total?: number; + static names(): { [key: string]: string } { + return { + code: 'Code', + contacts: 'Contacts', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + total: 'Total', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + contacts: DescribeContactListResponseBodyContacts, + message: 'string', + requestId: 'string', + success: 'boolean', + total: 'number', + }; + } + + validate() { + if(this.contacts && typeof (this.contacts as any).validate === 'function') { + (this.contacts as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventAttributeRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventAttributeRequest.ts new file mode 100644 index 0000000..ac59467 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventAttributeRequest.ts @@ -0,0 +1,114 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeCustomEventAttributeRequest extends $dara.Model { + /** + * @remarks + * The end of the time range to query. + * + * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * @example + * 1552227965971 + */ + endTime?: string; + /** + * @remarks + * The event ID. + * + * @example + * 123**** + */ + eventId?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 123**** + */ + groupId?: string; + /** + * @remarks + * The event name. + * + * @example + * test123 + */ + name?: string; + /** + * @remarks + * The page number. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * @example + * 50 + */ + pageSize?: number; + regionId?: string; + /** + * @remarks + * The keywords that are used to search for the event. + * + * * If you need to query the custom event whose content contains a and b, set the value to a and b. + * * If you need to query the custom event whose content contains a or b, set the value to a or b. + * + * @example + * cms + */ + searchKeywords?: string; + /** + * @remarks + * The beginning of the time range to query. + * + * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * @example + * 1552224365971 + */ + startTime?: string; + static names(): { [key: string]: string } { + return { + endTime: 'EndTime', + eventId: 'EventId', + groupId: 'GroupId', + name: 'Name', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + searchKeywords: 'SearchKeywords', + startTime: 'StartTime', + }; + } + + static types(): { [key: string]: any } { + return { + endTime: 'string', + eventId: 'string', + groupId: 'string', + name: 'string', + pageNumber: 'number', + pageSize: 'number', + regionId: 'string', + searchKeywords: 'string', + startTime: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventAttributeResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventAttributeResponse.ts new file mode 100644 index 0000000..323f535 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventAttributeResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeCustomEventAttributeResponseBody } from "./DescribeCustomEventAttributeResponseBody"; + + +export class DescribeCustomEventAttributeResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeCustomEventAttributeResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeCustomEventAttributeResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventAttributeResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventAttributeResponseBody.ts new file mode 100644 index 0000000..e25cec7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventAttributeResponseBody.ts @@ -0,0 +1,177 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeCustomEventAttributeResponseBodyCustomEventsCustomEvent extends $dara.Model { + /** + * @remarks + * The content of the event. + * + * @example + * requestId:4975A6F3-19AC-4C01-BAD2-034DA07FEBB5, info:{"autoPay":false,"autoUseCoupon":false,"bid":"26842","buyerId":118935342242****,"commodities":[{"aliyunProduceCode":"cms","chargeType":"PREPAY","commodityCode":"cms_call_num","components":[{"componentCode":"phone_count","instanceProperty":[{"code":"phone_count","value":"500"}],"moduleAttrStatus":1}],"duration":6,"free":false,"orderParams":{"aliyunProduceCode":"cms"},"orderType":"BUY","prePayPostCharge":false,"pricingCycle":"Month","quantity":1,"refundSpecCode":"","renewChange":false,"specCode":"cms_call_num","specUpdate":false,"syncToSubscription":false,"upgradeInquireFinancialValue":true}],"fromApp":"commonbuy","orderParams":{"priceCheck":"true"},"payerId":118935342242****,"requestId":"ade3ad32-f58b-45d7-add4-ac542be3d8ec","skipChannel":false,"userId":118935342242****} + */ + content?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 12345 + */ + groupId?: string; + /** + * @remarks + * The event ID. + * + * @example + * 123 + */ + id?: string; + /** + * @remarks + * The event name. + * + * @example + * BABEL_CHECK + */ + name?: string; + /** + * @remarks + * The time when the event occurred. + * + * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * @example + * 1552199984000 + */ + time?: string; + static names(): { [key: string]: string } { + return { + content: 'Content', + groupId: 'GroupId', + id: 'Id', + name: 'Name', + time: 'Time', + }; + } + + static types(): { [key: string]: any } { + return { + content: 'string', + groupId: 'string', + id: 'string', + name: 'string', + time: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeCustomEventAttributeResponseBodyCustomEvents extends $dara.Model { + customEvent?: DescribeCustomEventAttributeResponseBodyCustomEventsCustomEvent[]; + static names(): { [key: string]: string } { + return { + customEvent: 'CustomEvent', + }; + } + + static types(): { [key: string]: any } { + return { + customEvent: { 'type': 'array', 'itemType': DescribeCustomEventAttributeResponseBodyCustomEventsCustomEvent }, + }; + } + + validate() { + if(Array.isArray(this.customEvent)) { + $dara.Model.validateArray(this.customEvent); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeCustomEventAttributeResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The event details. + */ + customEvents?: DescribeCustomEventAttributeResponseBodyCustomEvents; + /** + * @remarks + * The returned message. + * + * @example + * userId:173651113438**** and name:"BABEL_CHECK" + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 60912C8D-B340-4253-ADE7-61ACDFD25CFC + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + customEvents: 'CustomEvents', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + customEvents: DescribeCustomEventAttributeResponseBodyCustomEvents, + message: 'string', + requestId: 'string', + success: 'string', + }; + } + + validate() { + if(this.customEvents && typeof (this.customEvents as any).validate === 'function') { + (this.customEvents as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventCountRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventCountRequest.ts new file mode 100644 index 0000000..638e126 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventCountRequest.ts @@ -0,0 +1,94 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeCustomEventCountRequest extends $dara.Model { + /** + * @remarks + * The end of the time range to query. + * + * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * @example + * 1552220485596 + */ + endTime?: string; + /** + * @remarks + * The event ID. + * + * @example + * 123 + */ + eventId?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 12345 + */ + groupId?: string; + /** + * @remarks + * The event name. + * + * @example + * BABEL_BUY + */ + name?: string; + regionId?: string; + /** + * @remarks + * The keywords that are used to search for the event. + * + * * If you need to query the custom event whose content contains a and b, set the value to a and b. + * * If you need to query the custom event whose content contains a or b, set the value to a or b. + * + * @example + * cms + */ + searchKeywords?: string; + /** + * @remarks + * The beginning of the time range to query. + * + * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * @example + * 1552209685596 + */ + startTime?: string; + static names(): { [key: string]: string } { + return { + endTime: 'EndTime', + eventId: 'EventId', + groupId: 'GroupId', + name: 'Name', + regionId: 'RegionId', + searchKeywords: 'SearchKeywords', + startTime: 'StartTime', + }; + } + + static types(): { [key: string]: any } { + return { + endTime: 'string', + eventId: 'string', + groupId: 'string', + name: 'string', + regionId: 'string', + searchKeywords: 'string', + startTime: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventCountResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventCountResponse.ts new file mode 100644 index 0000000..2476dcd --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventCountResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeCustomEventCountResponseBody } from "./DescribeCustomEventCountResponseBody"; + + +export class DescribeCustomEventCountResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeCustomEventCountResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeCustomEventCountResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventCountResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventCountResponseBody.ts new file mode 100644 index 0000000..d0c500e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventCountResponseBody.ts @@ -0,0 +1,154 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeCustomEventCountResponseBodyCustomEventCountsCustomEventCount extends $dara.Model { + /** + * @remarks + * The event name. + * + * @example + * BABEL_BUY + */ + name?: string; + /** + * @remarks + * The number of times that the custom event occurred. + * + * @example + * 20 + */ + num?: number; + /** + * @remarks + * The time when the event occurred. + * + * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * @example + * 1552267615000 + */ + time?: number; + static names(): { [key: string]: string } { + return { + name: 'Name', + num: 'Num', + time: 'Time', + }; + } + + static types(): { [key: string]: any } { + return { + name: 'string', + num: 'number', + time: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeCustomEventCountResponseBodyCustomEventCounts extends $dara.Model { + customEventCount?: DescribeCustomEventCountResponseBodyCustomEventCountsCustomEventCount[]; + static names(): { [key: string]: string } { + return { + customEventCount: 'CustomEventCount', + }; + } + + static types(): { [key: string]: any } { + return { + customEventCount: { 'type': 'array', 'itemType': DescribeCustomEventCountResponseBodyCustomEventCountsCustomEventCount }, + }; + } + + validate() { + if(Array.isArray(this.customEventCount)) { + $dara.Model.validateArray(this.customEventCount); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeCustomEventCountResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The details of the custom event. + */ + customEventCounts?: DescribeCustomEventCountResponseBodyCustomEventCounts; + /** + * @remarks + * The returned message. If the request was successful, a success message is returned. If the request failed, an error message is returned. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 60912C8D-B340-4253-ADE7-61ACDFD25CFC + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: true and false. + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + customEventCounts: 'CustomEventCounts', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + customEventCounts: DescribeCustomEventCountResponseBodyCustomEventCounts, + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + if(this.customEventCounts && typeof (this.customEventCounts as any).validate === 'function') { + (this.customEventCounts as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventHistogramRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventHistogramRequest.ts new file mode 100644 index 0000000..d7d2c98 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventHistogramRequest.ts @@ -0,0 +1,108 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeCustomEventHistogramRequest extends $dara.Model { + /** + * @remarks + * The end of the time range to query. + * + * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * @example + * 1552220485596 + */ + endTime?: string; + /** + * @remarks + * The event ID. + * + * @example + * 123 + */ + eventId?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 12345 + */ + groupId?: string; + /** + * @remarks + * The severity level of the event. Valid values: + * + * * CRITICAL + * * WARN + * * INFO + * + * @example + * CRITICAL + */ + level?: string; + /** + * @remarks + * The event name. + * + * @example + * BucketIngressBandwidth + */ + name?: string; + regionId?: string; + /** + * @remarks + * The keywords that are used to search for the event. + * + * * If you need to query the custom event whose content contains a and b, set the value to "a and b". + * * If you need to query the custom event whose content contains a or b, set the value to "a or b". + * + * @example + * cms + */ + searchKeywords?: string; + /** + * @remarks + * The beginning of the time range to query. + * + * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * @example + * 1552209685596 + */ + startTime?: string; + static names(): { [key: string]: string } { + return { + endTime: 'EndTime', + eventId: 'EventId', + groupId: 'GroupId', + level: 'Level', + name: 'Name', + regionId: 'RegionId', + searchKeywords: 'SearchKeywords', + startTime: 'StartTime', + }; + } + + static types(): { [key: string]: any } { + return { + endTime: 'string', + eventId: 'string', + groupId: 'string', + level: 'string', + name: 'string', + regionId: 'string', + searchKeywords: 'string', + startTime: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventHistogramResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventHistogramResponse.ts new file mode 100644 index 0000000..6028b15 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventHistogramResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeCustomEventHistogramResponseBody } from "./DescribeCustomEventHistogramResponseBody"; + + +export class DescribeCustomEventHistogramResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeCustomEventHistogramResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeCustomEventHistogramResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventHistogramResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventHistogramResponseBody.ts new file mode 100644 index 0000000..b5a1feb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomEventHistogramResponseBody.ts @@ -0,0 +1,156 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeCustomEventHistogramResponseBodyEventHistogramsEventHistogram extends $dara.Model { + /** + * @remarks + * The information about the number of times that the custom event occurred during an interval of the specified time period. + * + * @example + * 3 + */ + count?: number; + /** + * @remarks + * The end time. + * + * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * @example + * 1552226750000 + */ + endTime?: number; + /** + * @remarks + * The start time. + * + * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * @example + * 1552226740000 + */ + startTime?: number; + static names(): { [key: string]: string } { + return { + count: 'Count', + endTime: 'EndTime', + startTime: 'StartTime', + }; + } + + static types(): { [key: string]: any } { + return { + count: 'number', + endTime: 'number', + startTime: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeCustomEventHistogramResponseBodyEventHistograms extends $dara.Model { + eventHistogram?: DescribeCustomEventHistogramResponseBodyEventHistogramsEventHistogram[]; + static names(): { [key: string]: string } { + return { + eventHistogram: 'EventHistogram', + }; + } + + static types(): { [key: string]: any } { + return { + eventHistogram: { 'type': 'array', 'itemType': DescribeCustomEventHistogramResponseBodyEventHistogramsEventHistogram }, + }; + } + + validate() { + if(Array.isArray(this.eventHistogram)) { + $dara.Model.validateArray(this.eventHistogram); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeCustomEventHistogramResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The information about the number of times that the custom event occurred during each interval of the specified time period. + */ + eventHistograms?: DescribeCustomEventHistogramResponseBodyEventHistograms; + /** + * @remarks + * The returned message. If the request was successful, a success message is returned. If the request failed, an error message is returned. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 486029C9-53E1-44B4-85A8-16A571A043FD + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: true and false. + * + * @example + * true + */ + success?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + eventHistograms: 'EventHistograms', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + eventHistograms: DescribeCustomEventHistogramResponseBodyEventHistograms, + message: 'string', + requestId: 'string', + success: 'string', + }; + } + + validate() { + if(this.eventHistograms && typeof (this.eventHistograms as any).validate === 'function') { + (this.eventHistograms as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomMetricListRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomMetricListRequest.ts new file mode 100644 index 0000000..0ae052a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomMetricListRequest.ts @@ -0,0 +1,93 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeCustomMetricListRequest extends $dara.Model { + /** + * @remarks + * The dimensions based on which the resources are queried. + * + * @example + * {sampleName1=value1&sampleName2=value2} + */ + dimension?: string; + /** + * @remarks + * The ID of the application group. + * + * For information about how to query the IDs of application groups, see [DescribeMonitorGroups](https://help.aliyun.com/document_detail/115032.html). + * + * @example + * 7378**** + */ + groupId?: string; + /** + * @remarks + * The MD5 value of the HTTP request body. The MD5 value is a 128-bit hash value used to verify the uniqueness of the reported monitoring data. + * + * @example + * 97c25982d9745a231276bff27469**** + */ + md5?: string; + /** + * @remarks + * The name of the custom metric. + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The page number. + * + * Pages start from page 1. Default value: 1. + * + * @example + * 1 + */ + pageNumber?: string; + /** + * @remarks + * The number of entries per page. + * + * Pages start from page 1. Default value: 10. + * + * @example + * 10 + */ + pageSize?: string; + regionId?: string; + static names(): { [key: string]: string } { + return { + dimension: 'Dimension', + groupId: 'GroupId', + md5: 'Md5', + metricName: 'MetricName', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + dimension: 'string', + groupId: 'string', + md5: 'string', + metricName: 'string', + pageNumber: 'string', + pageSize: 'string', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomMetricListResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomMetricListResponse.ts new file mode 100644 index 0000000..cc654fd --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomMetricListResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeCustomMetricListResponseBody } from "./DescribeCustomMetricListResponseBody"; + + +export class DescribeCustomMetricListResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeCustomMetricListResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeCustomMetricListResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomMetricListResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomMetricListResponseBody.ts new file mode 100644 index 0000000..56dd298 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeCustomMetricListResponseBody.ts @@ -0,0 +1,66 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeCustomMetricListResponseBody extends $dara.Model { + /** + * @remarks + * The responses code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 1AF425E4-1DEA-54F2-910A-8117C9686140 + */ + requestId?: string; + /** + * @remarks + * The reported custom metrics that are found in the query. + * + * @example + * {\\"all\\":0,\\"size\\":10,\\"param\\":{\\"metric\\":\\"{\\\\\\"metricName\\\\\\":\\\\\\"cpu_total\\\\\\",\\\\\\"groupId\\\\\\":7378****,\\\\\\"project\\\\\\":\\\\\\"acs_customMetric_120886317861****\\\\\\",\\\\\\"dimension\\\\\\":\\\\\\"sampleName1=value1&sampleName2=value2\\\\\\",\\\\\\"status\\\\\\":1}\\",\\"service\\":\\"metric-center.aliyun-inc.com\\"},\\"page\\":1,\\"list\\":[]} + */ + result?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + result: 'Result', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + result: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeDynamicTagRuleListRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeDynamicTagRuleListRequest.ts new file mode 100644 index 0000000..0139e53 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeDynamicTagRuleListRequest.ts @@ -0,0 +1,92 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeDynamicTagRuleListRequest extends $dara.Model { + /** + * @remarks + * The ID of the tag rule. + * + * @example + * 004155fa-15ba-466d-b61a-*********** + */ + dynamicTagRuleId?: string; + /** + * @remarks + * The number of the page to return. + * + * Pages start from page 1. Default value: 1. + * + * @example + * 1 + */ + pageNumber?: string; + /** + * @remarks + * The number of entries to return on each page. + * + * Minimum value: 1. Default value: 30. + * + * @example + * 30 + */ + pageSize?: string; + /** + * @remarks + * The tag key. + * + * For more information about how to obtain a tag key, see [DescribeTagKeyList](https://help.aliyun.com/document_detail/145558.html). + * + * @example + * tagkey1 + */ + tagKey?: string; + /** + * @remarks + * The ID of the region to which the tags belong. + * + * @example + * cn-hangzhou + */ + tagRegionId?: string; + /** + * @remarks + * The tag value. + * + * For more information about how to obtain a tag value, see [DescribeTagKeyList](https://help.aliyun.com/document_detail/145557.html). + * + * @example + * * + */ + tagValue?: string; + static names(): { [key: string]: string } { + return { + dynamicTagRuleId: 'DynamicTagRuleId', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + tagKey: 'TagKey', + tagRegionId: 'TagRegionId', + tagValue: 'TagValue', + }; + } + + static types(): { [key: string]: any } { + return { + dynamicTagRuleId: 'string', + pageNumber: 'string', + pageSize: 'string', + tagKey: 'string', + tagRegionId: 'string', + tagValue: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeDynamicTagRuleListResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeDynamicTagRuleListResponse.ts new file mode 100644 index 0000000..48c95f5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeDynamicTagRuleListResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeDynamicTagRuleListResponseBody } from "./DescribeDynamicTagRuleListResponseBody"; + + +export class DescribeDynamicTagRuleListResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeDynamicTagRuleListResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeDynamicTagRuleListResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeDynamicTagRuleListResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeDynamicTagRuleListResponseBody.ts new file mode 100644 index 0000000..0d0e525 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeDynamicTagRuleListResponseBody.ts @@ -0,0 +1,412 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupContactGroupList extends $dara.Model { + contactGroupList?: string[]; + static names(): { [key: string]: string } { + return { + contactGroupList: 'ContactGroupList', + }; + } + + static types(): { [key: string]: any } { + return { + contactGroupList: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.contactGroupList)) { + $dara.Model.validateArray(this.contactGroupList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupMatchExpressMatchExpress extends $dara.Model { + /** + * @remarks + * The tag key. + * + * @example + * azone-version + */ + tagKey?: string; + /** + * @remarks + * The tag value. + * + * The `TagValue` and `TagValueMatchFunction` parameters must be used in pairs. + * + * @example + * * + */ + tagValue?: string; + /** + * @remarks + * The method that is used to match tag values. Valid values: + * + * * all: includes all + * * startWith: starts with a prefix + * * endWith: ends with a suffix + * * contains: contains + * * notContains: does not contain + * * equals: equals + * + * @example + * all + */ + tagValueMatchFunction?: string; + static names(): { [key: string]: string } { + return { + tagKey: 'TagKey', + tagValue: 'TagValue', + tagValueMatchFunction: 'TagValueMatchFunction', + }; + } + + static types(): { [key: string]: any } { + return { + tagKey: 'string', + tagValue: 'string', + tagValueMatchFunction: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupMatchExpress extends $dara.Model { + matchExpress?: DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupMatchExpressMatchExpress[]; + static names(): { [key: string]: string } { + return { + matchExpress: 'MatchExpress', + }; + } + + static types(): { [key: string]: any } { + return { + matchExpress: { 'type': 'array', 'itemType': DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupMatchExpressMatchExpress }, + }; + } + + validate() { + if(Array.isArray(this.matchExpress)) { + $dara.Model.validateArray(this.matchExpress); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupTagValueBlacklist extends $dara.Model { + tagValueBlacklist?: string[]; + static names(): { [key: string]: string } { + return { + tagValueBlacklist: 'TagValueBlacklist', + }; + } + + static types(): { [key: string]: any } { + return { + tagValueBlacklist: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.tagValueBlacklist)) { + $dara.Model.validateArray(this.tagValueBlacklist); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupTemplateIdList extends $dara.Model { + templateIdList?: string[]; + static names(): { [key: string]: string } { + return { + templateIdList: 'TemplateIdList', + }; + } + + static types(): { [key: string]: any } { + return { + templateIdList: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.templateIdList)) { + $dara.Model.validateArray(this.templateIdList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroup extends $dara.Model { + /** + * @remarks + * The alert contact group. + */ + contactGroupList?: DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupContactGroupList; + /** + * @remarks + * The ID of the tag rule. + * + * @example + * 1536df65-a719-429d-8813-73cc40d7**** + */ + dynamicTagRuleId?: string; + /** + * @remarks + * The conditional expressions used to create an application group based on the tag. + */ + matchExpress?: DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupMatchExpress; + /** + * @remarks + * The logical operator that is used between conditional expressions. Valid values: + * + * * `and` + * * `or` + * + * > Only one logical operator can be used in a request. + * + * @example + * or + */ + matchExpressFilterRelation?: string; + /** + * @remarks + * The ID of the region to which the tags belong. + * + * @example + * cn-hangzhou + */ + regionId?: string; + /** + * @remarks + * The status of adding instances that meet the tag rule to the application group. Valid values: + * + * * `RUNNING` + * * `FINISH` + * + * @example + * FINISH + */ + status?: string; + /** + * @remarks + * The tag key. + * + * @example + * tagkey1 + */ + tagKey?: string; + tagValueBlacklist?: DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupTagValueBlacklist; + /** + * @remarks + * The IDs of the alert templates. + */ + templateIdList?: DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupTemplateIdList; + static names(): { [key: string]: string } { + return { + contactGroupList: 'ContactGroupList', + dynamicTagRuleId: 'DynamicTagRuleId', + matchExpress: 'MatchExpress', + matchExpressFilterRelation: 'MatchExpressFilterRelation', + regionId: 'RegionId', + status: 'Status', + tagKey: 'TagKey', + tagValueBlacklist: 'TagValueBlacklist', + templateIdList: 'TemplateIdList', + }; + } + + static types(): { [key: string]: any } { + return { + contactGroupList: DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupContactGroupList, + dynamicTagRuleId: 'string', + matchExpress: DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupMatchExpress, + matchExpressFilterRelation: 'string', + regionId: 'string', + status: 'string', + tagKey: 'string', + tagValueBlacklist: DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupTagValueBlacklist, + templateIdList: DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupTemplateIdList, + }; + } + + validate() { + if(this.contactGroupList && typeof (this.contactGroupList as any).validate === 'function') { + (this.contactGroupList as any).validate(); + } + if(this.matchExpress && typeof (this.matchExpress as any).validate === 'function') { + (this.matchExpress as any).validate(); + } + if(this.tagValueBlacklist && typeof (this.tagValueBlacklist as any).validate === 'function') { + (this.tagValueBlacklist as any).validate(); + } + if(this.templateIdList && typeof (this.templateIdList as any).validate === 'function') { + (this.templateIdList as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeDynamicTagRuleListResponseBodyTagGroupList extends $dara.Model { + tagGroup?: DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroup[]; + static names(): { [key: string]: string } { + return { + tagGroup: 'TagGroup', + }; + } + + static types(): { [key: string]: any } { + return { + tagGroup: { 'type': 'array', 'itemType': DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroup }, + }; + } + + validate() { + if(Array.isArray(this.tagGroup)) { + $dara.Model.validateArray(this.tagGroup); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeDynamicTagRuleListResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The page number of the returned page. + * + * @example + * 1 + */ + pageNumber?: string; + /** + * @remarks + * The number of entries returned per page. + * + * @example + * 30 + */ + pageSize?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * 0D50523D-8D59-4A61-B58E-E2286ECFB3A9 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call was successful. Valid values: + * + * * true: The call was successful. + * * false: The call failed. + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The tag rules of application groups. + */ + tagGroupList?: DescribeDynamicTagRuleListResponseBodyTagGroupList; + /** + * @remarks + * The total number of returned entries. + * + * @example + * 2 + */ + total?: number; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + requestId: 'RequestId', + success: 'Success', + tagGroupList: 'TagGroupList', + total: 'Total', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + pageNumber: 'string', + pageSize: 'string', + requestId: 'string', + success: 'boolean', + tagGroupList: DescribeDynamicTagRuleListResponseBodyTagGroupList, + total: 'number', + }; + } + + validate() { + if(this.tagGroupList && typeof (this.tagGroupList as any).validate === 'function') { + (this.tagGroupList as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleAttributeRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleAttributeRequest.ts new file mode 100644 index 0000000..bdbddb9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleAttributeRequest.ts @@ -0,0 +1,55 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeEventRuleAttributeRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * The name of the event-triggered alert rule. + * + * For information about how to obtain the name of an event-triggered alert rule, see [DescribeEventRuleList](https://help.aliyun.com/document_detail/114996.html). + * + * This parameter is required. + * + * @example + * testRule + */ + 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, which indicates one day. + * + * > Only one alert notification is sent during each mute period even if the metric value exceeds the alert threshold several times. + * + * @example + * 86400 + */ + silenceTime?: string; + static names(): { [key: string]: string } { + return { + regionId: 'RegionId', + ruleName: 'RuleName', + silenceTime: 'SilenceTime', + }; + } + + static types(): { [key: string]: any } { + return { + regionId: 'string', + ruleName: 'string', + silenceTime: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleAttributeResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleAttributeResponse.ts new file mode 100644 index 0000000..a946036 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleAttributeResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeEventRuleAttributeResponseBody } from "./DescribeEventRuleAttributeResponseBody"; + + +export class DescribeEventRuleAttributeResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeEventRuleAttributeResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeEventRuleAttributeResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleAttributeResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleAttributeResponseBody.ts new file mode 100644 index 0000000..a9c9d67 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleAttributeResponseBody.ts @@ -0,0 +1,416 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeEventRuleAttributeResponseBodyResultEventPatternEventTypeList extends $dara.Model { + eventTypeList?: string[]; + static names(): { [key: string]: string } { + return { + eventTypeList: 'EventTypeList', + }; + } + + static types(): { [key: string]: any } { + return { + eventTypeList: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.eventTypeList)) { + $dara.Model.validateArray(this.eventTypeList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeEventRuleAttributeResponseBodyResultEventPatternKeywordFilterObjKeywords extends $dara.Model { + keyword?: string[]; + static names(): { [key: string]: string } { + return { + keyword: 'keyword', + }; + } + + static types(): { [key: string]: any } { + return { + keyword: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.keyword)) { + $dara.Model.validateArray(this.keyword); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeEventRuleAttributeResponseBodyResultEventPatternKeywordFilterObj extends $dara.Model { + /** + * @remarks + * The keywords that are used to match events. + */ + keywords?: DescribeEventRuleAttributeResponseBodyResultEventPatternKeywordFilterObjKeywords; + /** + * @remarks + * The relationship between multiple keywords in a condition. Valid values: + * + * * OR: The relationship between keywords is OR. + * * NOT: The keyword is excluded. The value NOT indicates that all events that do not contain the keywords are matched. + * + * @example + * OR + */ + relation?: string; + static names(): { [key: string]: string } { + return { + keywords: 'Keywords', + relation: 'Relation', + }; + } + + static types(): { [key: string]: any } { + return { + keywords: DescribeEventRuleAttributeResponseBodyResultEventPatternKeywordFilterObjKeywords, + relation: 'string', + }; + } + + validate() { + if(this.keywords && typeof (this.keywords as any).validate === 'function') { + (this.keywords as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeEventRuleAttributeResponseBodyResultEventPatternLevelList extends $dara.Model { + levelList?: string[]; + static names(): { [key: string]: string } { + return { + levelList: 'LevelList', + }; + } + + static types(): { [key: string]: any } { + return { + levelList: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.levelList)) { + $dara.Model.validateArray(this.levelList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeEventRuleAttributeResponseBodyResultEventPatternNameList extends $dara.Model { + nameList?: string[]; + static names(): { [key: string]: string } { + return { + nameList: 'NameList', + }; + } + + static types(): { [key: string]: any } { + return { + nameList: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.nameList)) { + $dara.Model.validateArray(this.nameList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeEventRuleAttributeResponseBodyResultEventPatternStatusList extends $dara.Model { + statusList?: string[]; + static names(): { [key: string]: string } { + return { + statusList: 'StatusList', + }; + } + + static types(): { [key: string]: any } { + return { + statusList: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.statusList)) { + $dara.Model.validateArray(this.statusList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeEventRuleAttributeResponseBodyResultEventPattern extends $dara.Model { + /** + * @remarks + * The types of the event-triggered alert rules. + */ + eventTypeList?: DescribeEventRuleAttributeResponseBodyResultEventPatternEventTypeList; + /** + * @remarks + * The keyword for filtering. + */ + keywordFilterObj?: DescribeEventRuleAttributeResponseBodyResultEventPatternKeywordFilterObj; + levelList?: DescribeEventRuleAttributeResponseBodyResultEventPatternLevelList; + nameList?: DescribeEventRuleAttributeResponseBodyResultEventPatternNameList; + /** + * @remarks + * The name of the cloud service. + * + * @example + * CloudMonitor + */ + product?: string; + /** + * @remarks + * Indicates that logs are filtered based on the specified SQL statement. If the specified conditions are met, an alert is triggered. + * + * @example + * ycccluster1 and (i-23ij0o82612 or Executed1) or Asimulated not 222 + */ + SQLFilter?: string; + statusList?: DescribeEventRuleAttributeResponseBodyResultEventPatternStatusList; + static names(): { [key: string]: string } { + return { + eventTypeList: 'EventTypeList', + keywordFilterObj: 'KeywordFilterObj', + levelList: 'LevelList', + nameList: 'NameList', + product: 'Product', + SQLFilter: 'SQLFilter', + statusList: 'StatusList', + }; + } + + static types(): { [key: string]: any } { + return { + eventTypeList: DescribeEventRuleAttributeResponseBodyResultEventPatternEventTypeList, + keywordFilterObj: DescribeEventRuleAttributeResponseBodyResultEventPatternKeywordFilterObj, + levelList: DescribeEventRuleAttributeResponseBodyResultEventPatternLevelList, + nameList: DescribeEventRuleAttributeResponseBodyResultEventPatternNameList, + product: 'string', + SQLFilter: 'string', + statusList: DescribeEventRuleAttributeResponseBodyResultEventPatternStatusList, + }; + } + + validate() { + if(this.eventTypeList && typeof (this.eventTypeList as any).validate === 'function') { + (this.eventTypeList as any).validate(); + } + if(this.keywordFilterObj && typeof (this.keywordFilterObj as any).validate === 'function') { + (this.keywordFilterObj as any).validate(); + } + if(this.levelList && typeof (this.levelList as any).validate === 'function') { + (this.levelList as any).validate(); + } + if(this.nameList && typeof (this.nameList as any).validate === 'function') { + (this.nameList as any).validate(); + } + if(this.statusList && typeof (this.statusList as any).validate === 'function') { + (this.statusList as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeEventRuleAttributeResponseBodyResult extends $dara.Model { + /** + * @remarks + * The description of the event-triggered alert rule. + * + * @example + * Default group event rule. + */ + description?: string; + /** + * @remarks + * The event pattern. This parameter describes the trigger conditions of an event. + */ + eventPattern?: DescribeEventRuleAttributeResponseBodyResultEventPattern; + /** + * @remarks + * The event type. Valid values: + * + * * SYSTEM: system event + * * CUSTOM: custom event + * + * @example + * SYSTEM + */ + eventType?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 3607**** + */ + groupId?: string; + /** + * @remarks + * The name of the event-triggered alert rule. + * + * @example + * test_DefaultEventRule_7378**** + */ + name?: string; + /** + * @remarks + * The status of the event-triggered alert rule. Valid values: + * + * * ENABLED + * * DISABLED + * + * @example + * ENABLED + */ + state?: string; + static names(): { [key: string]: string } { + return { + description: 'Description', + eventPattern: 'EventPattern', + eventType: 'EventType', + groupId: 'GroupId', + name: 'Name', + state: 'State', + }; + } + + static types(): { [key: string]: any } { + return { + description: 'string', + eventPattern: DescribeEventRuleAttributeResponseBodyResultEventPattern, + eventType: 'string', + groupId: 'string', + name: 'string', + state: 'string', + }; + } + + validate() { + if(this.eventPattern && typeof (this.eventPattern as any).validate === 'function') { + (this.eventPattern as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeEventRuleAttributeResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The alert does not exist. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 9AA3F210-C03D-4C86-8DB6-21C84FF692A1 + */ + requestId?: string; + /** + * @remarks + * The details of the event-triggered alert rule. + */ + result?: DescribeEventRuleAttributeResponseBodyResult; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + result: 'Result', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + result: DescribeEventRuleAttributeResponseBodyResult, + success: 'boolean', + }; + } + + validate() { + if(this.result && typeof (this.result as any).validate === 'function') { + (this.result as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleListRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleListRequest.ts new file mode 100644 index 0000000..968ff35 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleListRequest.ts @@ -0,0 +1,84 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeEventRuleListRequest extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * @example + * 7378**** + */ + groupId?: string; + /** + * @remarks + * Specifies whether to enable the event-triggered alert rule. Valid values: + * + * - true (default) + * - false + * + * @example + * true + */ + isEnable?: boolean; + /** + * @remarks + * The prefix in the name of the event-triggered alert rule. + * + * @example + * test + */ + namePrefix?: string; + /** + * @remarks + * The page number. + * + * Pages start from page 1. Default value: 1. + * + * @example + * 1 + */ + pageNumber?: string; + /** + * @remarks + * The number of entries per page. + * + * Pages start from page 1. Default value: 10. + * + * @example + * 10 + */ + pageSize?: string; + regionId?: string; + static names(): { [key: string]: string } { + return { + groupId: 'GroupId', + isEnable: 'IsEnable', + namePrefix: 'NamePrefix', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + groupId: 'string', + isEnable: 'boolean', + namePrefix: 'string', + pageNumber: 'string', + pageSize: 'string', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleListResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleListResponse.ts new file mode 100644 index 0000000..88d8fdb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleListResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeEventRuleListResponseBody } from "./DescribeEventRuleListResponseBody"; + + +export class DescribeEventRuleListResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeEventRuleListResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeEventRuleListResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleListResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleListResponseBody.ts new file mode 100644 index 0000000..389c01a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleListResponseBody.ts @@ -0,0 +1,474 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternEventTypeList extends $dara.Model { + eventTypeList?: string[]; + static names(): { [key: string]: string } { + return { + eventTypeList: 'EventTypeList', + }; + } + + static types(): { [key: string]: any } { + return { + eventTypeList: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.eventTypeList)) { + $dara.Model.validateArray(this.eventTypeList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternKeywordFilterKeywords extends $dara.Model { + keywords?: string[]; + static names(): { [key: string]: string } { + return { + keywords: 'Keywords', + }; + } + + static types(): { [key: string]: any } { + return { + keywords: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.keywords)) { + $dara.Model.validateArray(this.keywords); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternKeywordFilter extends $dara.Model { + /** + * @remarks + * The keywords that are used to match events. + */ + keywords?: DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternKeywordFilterKeywords; + /** + * @remarks + * The relationship between multiple keywords in a condition. Valid values: + * + * * OR: The relationship between keywords is OR. + * * NOT: The keyword is excluded. The value NOT indicates that all events that do not contain the keywords are matched. + * + * @example + * OR + */ + relation?: string; + static names(): { [key: string]: string } { + return { + keywords: 'Keywords', + relation: 'Relation', + }; + } + + static types(): { [key: string]: any } { + return { + keywords: DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternKeywordFilterKeywords, + relation: 'string', + }; + } + + validate() { + if(this.keywords && typeof (this.keywords as any).validate === 'function') { + (this.keywords as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternLevelList extends $dara.Model { + levelList?: string[]; + static names(): { [key: string]: string } { + return { + levelList: 'LevelList', + }; + } + + static types(): { [key: string]: any } { + return { + levelList: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.levelList)) { + $dara.Model.validateArray(this.levelList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternNameList extends $dara.Model { + nameList?: string[]; + static names(): { [key: string]: string } { + return { + nameList: 'NameList', + }; + } + + static types(): { [key: string]: any } { + return { + nameList: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.nameList)) { + $dara.Model.validateArray(this.nameList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPattern extends $dara.Model { + /** + * @remarks + * The custom filter conditions. + * + * @example + * ECS123 + */ + customFilters?: string; + /** + * @remarks + * The types of the event-triggered alert rules. + */ + eventTypeList?: DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternEventTypeList; + /** + * @remarks + * The keyword for filtering. + */ + keywordFilter?: DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternKeywordFilter; + /** + * @remarks + * The levels of the event-triggered alerts. + */ + levelList?: DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternLevelList; + /** + * @remarks + * The event names. + */ + nameList?: DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternNameList; + /** + * @remarks + * The abbreviation of the Alibaba Cloud service name. + * + * @example + * CloudMonitor + */ + product?: string; + /** + * @remarks + * Indicates that logs are filtered based on the specified SQL statement. If the specified conditions are met, an alert is triggered. + * + * @example + * ycccluster1 and (i-23ij0o82612 or Executed1) or Asimulated not 222 + */ + SQLFilter?: string; + static names(): { [key: string]: string } { + return { + customFilters: 'CustomFilters', + eventTypeList: 'EventTypeList', + keywordFilter: 'KeywordFilter', + levelList: 'LevelList', + nameList: 'NameList', + product: 'Product', + SQLFilter: 'SQLFilter', + }; + } + + static types(): { [key: string]: any } { + return { + customFilters: 'string', + eventTypeList: DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternEventTypeList, + keywordFilter: DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternKeywordFilter, + levelList: DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternLevelList, + nameList: DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternNameList, + product: 'string', + SQLFilter: 'string', + }; + } + + validate() { + if(this.eventTypeList && typeof (this.eventTypeList as any).validate === 'function') { + (this.eventTypeList as any).validate(); + } + if(this.keywordFilter && typeof (this.keywordFilter as any).validate === 'function') { + (this.keywordFilter as any).validate(); + } + if(this.levelList && typeof (this.levelList as any).validate === 'function') { + (this.levelList as any).validate(); + } + if(this.nameList && typeof (this.nameList as any).validate === 'function') { + (this.nameList as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeEventRuleListResponseBodyEventRulesEventRuleEventPattern extends $dara.Model { + eventPattern?: DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPattern[]; + static names(): { [key: string]: string } { + return { + eventPattern: 'EventPattern', + }; + } + + static types(): { [key: string]: any } { + return { + eventPattern: { 'type': 'array', 'itemType': DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPattern }, + }; + } + + validate() { + if(Array.isArray(this.eventPattern)) { + $dara.Model.validateArray(this.eventPattern); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeEventRuleListResponseBodyEventRulesEventRule extends $dara.Model { + /** + * @remarks + * The description of the event-triggered alert rule. + * + * @example + * Default group event rule. + */ + description?: string; + /** + * @remarks + * The mode of the event-triggered alert rule. + */ + eventPattern?: DescribeEventRuleListResponseBodyEventRulesEventRuleEventPattern; + /** + * @remarks + * The type of the event-triggered alert rule. Valid values: + * + * * SYSTEM: system event-triggered alert rule + * * CUSTOM: custom event-triggered alert rule + * + * @example + * SYSTEM + */ + eventType?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 7378**** + */ + groupId?: string; + /** + * @remarks + * The name of the event-triggered alert rule. + * + * @example + * test_DefaultEventRule_7378**** + */ + name?: string; + /** + * @remarks + * The mute period during which new alert notifications are not sent even if the trigger conditions are met. + * + * @example + * 86400 + */ + silenceTime?: number; + /** + * @remarks + * The status of the event-triggered alert rule. Valid values: + * + * * ENABLED + * * DISABLED + * + * @example + * ENABLED + */ + state?: string; + static names(): { [key: string]: string } { + return { + description: 'Description', + eventPattern: 'EventPattern', + eventType: 'EventType', + groupId: 'GroupId', + name: 'Name', + silenceTime: 'SilenceTime', + state: 'State', + }; + } + + static types(): { [key: string]: any } { + return { + description: 'string', + eventPattern: DescribeEventRuleListResponseBodyEventRulesEventRuleEventPattern, + eventType: 'string', + groupId: 'string', + name: 'string', + silenceTime: 'number', + state: 'string', + }; + } + + validate() { + if(this.eventPattern && typeof (this.eventPattern as any).validate === 'function') { + (this.eventPattern as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeEventRuleListResponseBodyEventRules extends $dara.Model { + eventRule?: DescribeEventRuleListResponseBodyEventRulesEventRule[]; + static names(): { [key: string]: string } { + return { + eventRule: 'EventRule', + }; + } + + static types(): { [key: string]: any } { + return { + eventRule: { 'type': 'array', 'itemType': DescribeEventRuleListResponseBodyEventRulesEventRule }, + }; + } + + validate() { + if(Array.isArray(this.eventRule)) { + $dara.Model.validateArray(this.eventRule); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeEventRuleListResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The event-triggered alert rule. + */ + eventRules?: DescribeEventRuleListResponseBodyEventRules; + /** + * @remarks + * The error message returned. + * + * @example + * User not authorized to operate on the specified resource. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * D0E6D82B-16B5-422A-8136-EE5BDC01E415 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The total number of entries returned. + * + * @example + * 21 + */ + total?: number; + static names(): { [key: string]: string } { + return { + code: 'Code', + eventRules: 'EventRules', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + total: 'Total', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + eventRules: DescribeEventRuleListResponseBodyEventRules, + message: 'string', + requestId: 'string', + success: 'boolean', + total: 'number', + }; + } + + validate() { + if(this.eventRules && typeof (this.eventRules as any).validate === 'function') { + (this.eventRules as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleTargetListRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleTargetListRequest.ts new file mode 100644 index 0000000..c2dc5ce --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleTargetListRequest.ts @@ -0,0 +1,39 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeEventRuleTargetListRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * The name of the event-triggered alert rule. + * + * This parameter is required. + * + * @example + * testRule + */ + ruleName?: string; + static names(): { [key: string]: string } { + return { + regionId: 'RegionId', + ruleName: 'RuleName', + }; + } + + static types(): { [key: string]: any } { + return { + regionId: 'string', + ruleName: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleTargetListResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleTargetListResponse.ts new file mode 100644 index 0000000..f582f79 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleTargetListResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeEventRuleTargetListResponseBody } from "./DescribeEventRuleTargetListResponseBody"; + + +export class DescribeEventRuleTargetListResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeEventRuleTargetListResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeEventRuleTargetListResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleTargetListResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleTargetListResponseBody.ts new file mode 100644 index 0000000..ca00533 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeEventRuleTargetListResponseBody.ts @@ -0,0 +1,708 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeEventRuleTargetListResponseBodyContactParametersContactParameter extends $dara.Model { + /** + * @remarks + * The name of the alert group. + */ + contactGroupName?: string; + /** + * @remarks + * The ID of the recipient. + * + * @example + * 1 + */ + id?: string; + /** + * @remarks + * The alert notification methods. Valid values: + * + * 4: Alert notifications are sent by using DingTalk chatbots and emails. + * + * @example + * 3 + */ + level?: string; + static names(): { [key: string]: string } { + return { + contactGroupName: 'ContactGroupName', + id: 'Id', + level: 'Level', + }; + } + + static types(): { [key: string]: any } { + return { + contactGroupName: 'string', + id: 'string', + level: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeEventRuleTargetListResponseBodyContactParameters extends $dara.Model { + contactParameter?: DescribeEventRuleTargetListResponseBodyContactParametersContactParameter[]; + static names(): { [key: string]: string } { + return { + contactParameter: 'ContactParameter', + }; + } + + static types(): { [key: string]: any } { + return { + contactParameter: { 'type': 'array', 'itemType': DescribeEventRuleTargetListResponseBodyContactParametersContactParameter }, + }; + } + + validate() { + if(Array.isArray(this.contactParameter)) { + $dara.Model.validateArray(this.contactParameter); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeEventRuleTargetListResponseBodyFcParametersFCParameter extends $dara.Model { + /** + * @remarks + * The Alibaba Cloud Resource Name (ARN) of the function. + * + * Format: `arn:acs:${Service}:${Region}:${Account}:${ResourceType}/${ResourceId}`. Fields: + * + * - Service: the code of an Alibaba Cloud service + * - Region: the region ID + * - Account: the ID of an Alibaba Cloud account + * - ResourceType: the resource type + * - ResourceId: the resource ID + */ + arn?: string; + /** + * @remarks + * The name of the function. + * + * @example + * fcTest1 + */ + functionName?: string; + /** + * @remarks + * The ID of the recipient. + * + * @example + * 3 + */ + id?: string; + /** + * @remarks + * The region where Function Compute is deployed. + * + * @example + * cn-qingdao + */ + region?: string; + /** + * @remarks + * The name of the Function Compute service. + * + * @example + * service1 + */ + serviceName?: string; + static names(): { [key: string]: string } { + return { + arn: 'Arn', + functionName: 'FunctionName', + id: 'Id', + region: 'Region', + serviceName: 'ServiceName', + }; + } + + static types(): { [key: string]: any } { + return { + arn: 'string', + functionName: 'string', + id: 'string', + region: 'string', + serviceName: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeEventRuleTargetListResponseBodyFcParameters extends $dara.Model { + FCParameter?: DescribeEventRuleTargetListResponseBodyFcParametersFCParameter[]; + static names(): { [key: string]: string } { + return { + FCParameter: 'FCParameter', + }; + } + + static types(): { [key: string]: any } { + return { + FCParameter: { 'type': 'array', 'itemType': DescribeEventRuleTargetListResponseBodyFcParametersFCParameter }, + }; + } + + validate() { + if(Array.isArray(this.FCParameter)) { + $dara.Model.validateArray(this.FCParameter); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeEventRuleTargetListResponseBodyMnsParametersMnsParameter extends $dara.Model { + /** + * @remarks + * The ARN of the MNS queue. + * + * Format: `arn:acs:${Service}:${Region}:${Account}:${ResourceType}/${ResourceId}`. Fields: + * + * - Service: the code of an Alibaba Cloud service + * - Region: the region ID + * - Account: the ID of an Alibaba Cloud account + * - ResourceType: the resource type + * - ResourceId: the resource ID + */ + arn?: string; + /** + * @remarks + * The ID of the recipient. + * + * @example + * 2 + */ + id?: string; + /** + * @remarks + * The name of the SMQ queue. + * + * @example + * testQueue + */ + queue?: string; + /** + * @remarks + * The region for SMQ. + * + * @example + * cn-hangzhou + */ + region?: string; + /** + * @remarks + * The SMQ topic. + * + * @example + * topic_sample + */ + topic?: string; + static names(): { [key: string]: string } { + return { + arn: 'Arn', + id: 'Id', + queue: 'Queue', + region: 'Region', + topic: 'Topic', + }; + } + + static types(): { [key: string]: any } { + return { + arn: 'string', + id: 'string', + queue: 'string', + region: 'string', + topic: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeEventRuleTargetListResponseBodyMnsParameters extends $dara.Model { + mnsParameter?: DescribeEventRuleTargetListResponseBodyMnsParametersMnsParameter[]; + static names(): { [key: string]: string } { + return { + mnsParameter: 'MnsParameter', + }; + } + + static types(): { [key: string]: any } { + return { + mnsParameter: { 'type': 'array', 'itemType': DescribeEventRuleTargetListResponseBodyMnsParametersMnsParameter }, + }; + } + + validate() { + if(Array.isArray(this.mnsParameter)) { + $dara.Model.validateArray(this.mnsParameter); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeEventRuleTargetListResponseBodyOpenApiParametersOpenApiParameters extends $dara.Model { + /** + * @remarks + * The name of the API operation. + * + * @example + * PutLogs + */ + action?: string; + /** + * @remarks + * The ARN of the API operation. + * + * Format: `arn:acs:${Service}:${Region}:${Account}:${ResourceType}/${ResourceId}`. Fields: + * + * - Service: the code of an Alibaba Cloud service + * - Region: the region ID + * - Account: the ID of an Alibaba Cloud account + * - ResourceType: the resource type + * - ResourceId: the resource ID The ARN of the Log Service Logstore. + * + * Format: `arn:acs:${Service}:${Region}:${Account}:${ResourceType}/${ResourceId}`. Fields: + * - Service: the code of an Alibaba Cloud service + * - Region: the region ID + * - Account: the ID of an Alibaba Cloud account + * - ResourceType: the resource type + * - ResourceId: the resource ID + */ + arn?: string; + /** + * @remarks + * The ID of the recipient. + * + * @example + * 3 + */ + id?: string; + /** + * @remarks + * The ID of the cloud service to which the API operation belongs. + * + * @example + * log + */ + product?: string; + /** + * @remarks + * The region where the resource resides. + * + * @example + * cn-hangzhou + */ + region?: string; + /** + * @remarks + * The name of the role. + * + * @example + * MyRole + */ + role?: string; + /** + * @remarks + * The version of the API. + * + * @example + * 2019-01-01 + */ + version?: string; + static names(): { [key: string]: string } { + return { + action: 'Action', + arn: 'Arn', + id: 'Id', + product: 'Product', + region: 'Region', + role: 'Role', + version: 'Version', + }; + } + + static types(): { [key: string]: any } { + return { + action: 'string', + arn: 'string', + id: 'string', + product: 'string', + region: 'string', + role: 'string', + version: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeEventRuleTargetListResponseBodyOpenApiParameters extends $dara.Model { + openApiParameters?: DescribeEventRuleTargetListResponseBodyOpenApiParametersOpenApiParameters[]; + static names(): { [key: string]: string } { + return { + openApiParameters: 'OpenApiParameters', + }; + } + + static types(): { [key: string]: any } { + return { + openApiParameters: { 'type': 'array', 'itemType': DescribeEventRuleTargetListResponseBodyOpenApiParametersOpenApiParameters }, + }; + } + + validate() { + if(Array.isArray(this.openApiParameters)) { + $dara.Model.validateArray(this.openApiParameters); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeEventRuleTargetListResponseBodySlsParametersSlsParameter extends $dara.Model { + /** + * @remarks + * The ARN of the Log Service Logstore. + * + * Format: `arn:acs:${Service}:${Region}:${Account}:${ResourceType}/${ResourceId}`. Fields: + * + * - Service: the code of an Alibaba Cloud service + * - Region: the region ID + * - Account: the ID of an Alibaba Cloud account + * - ResourceType: the resource type + * - ResourceId: the resource ID + */ + arn?: string; + /** + * @remarks + * The ID of the recipient. + * + * @example + * 4 + */ + id?: string; + /** + * @remarks + * The name of the Logstore. + * + * @example + * logstore_test + */ + logStore?: string; + /** + * @remarks + * The name of the project. + * + * @example + * project_test + */ + project?: string; + /** + * @remarks + * The ID of the region where the Log Service project resides. + * + * @example + * cn-hangzhou + */ + region?: string; + static names(): { [key: string]: string } { + return { + arn: 'Arn', + id: 'Id', + logStore: 'LogStore', + project: 'Project', + region: 'Region', + }; + } + + static types(): { [key: string]: any } { + return { + arn: 'string', + id: 'string', + logStore: 'string', + project: 'string', + region: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeEventRuleTargetListResponseBodySlsParameters extends $dara.Model { + slsParameter?: DescribeEventRuleTargetListResponseBodySlsParametersSlsParameter[]; + static names(): { [key: string]: string } { + return { + slsParameter: 'SlsParameter', + }; + } + + static types(): { [key: string]: any } { + return { + slsParameter: { 'type': 'array', 'itemType': DescribeEventRuleTargetListResponseBodySlsParametersSlsParameter }, + }; + } + + validate() { + if(Array.isArray(this.slsParameter)) { + $dara.Model.validateArray(this.slsParameter); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeEventRuleTargetListResponseBodyWebhookParametersWebhookParameter extends $dara.Model { + /** + * @remarks + * The ID of the recipient. + * + * @example + * 5 + */ + id?: string; + /** + * @remarks + * The HTTP request method. Valid values: GET and POST. + * + * @example + * GET + */ + method?: string; + /** + * @remarks + * The protocol type. + * + * @example + * HTTP + */ + protocol?: string; + /** + * @remarks + * The callback URL. + * + * @example + * http://www.aliyun.com + */ + url?: string; + static names(): { [key: string]: string } { + return { + id: 'Id', + method: 'Method', + protocol: 'Protocol', + url: 'Url', + }; + } + + static types(): { [key: string]: any } { + return { + id: 'string', + method: 'string', + protocol: 'string', + url: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeEventRuleTargetListResponseBodyWebhookParameters extends $dara.Model { + webhookParameter?: DescribeEventRuleTargetListResponseBodyWebhookParametersWebhookParameter[]; + static names(): { [key: string]: string } { + return { + webhookParameter: 'WebhookParameter', + }; + } + + static types(): { [key: string]: any } { + return { + webhookParameter: { 'type': 'array', 'itemType': DescribeEventRuleTargetListResponseBodyWebhookParametersWebhookParameter }, + }; + } + + validate() { + if(Array.isArray(this.webhookParameter)) { + $dara.Model.validateArray(this.webhookParameter); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeEventRuleTargetListResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The information about the recipients if alert notifications are sent to the alert contacts of an alert contact group. + */ + contactParameters?: DescribeEventRuleTargetListResponseBodyContactParameters; + /** + * @remarks + * The information about the recipients in Function Compute. + */ + fcParameters?: DescribeEventRuleTargetListResponseBodyFcParameters; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The notifications of Simple Message Queue (formerly MNS) (SMQ). + */ + mnsParameters?: DescribeEventRuleTargetListResponseBodyMnsParameters; + /** + * @remarks + * The information about the recipients in OpenAPI Explorer. + */ + openApiParameters?: DescribeEventRuleTargetListResponseBodyOpenApiParameters; + /** + * @remarks + * The ID of the request. + * + * @example + * 87170bc7-e28a-4c93-b9bf-90a1dbe84736 + */ + requestId?: string; + /** + * @remarks + * The information about the recipients in Log Service. + */ + slsParameters?: DescribeEventRuleTargetListResponseBodySlsParameters; + /** + * @remarks + * The information about the recipients if alert notifications are sent by sending a request to a callback URL. + */ + webhookParameters?: DescribeEventRuleTargetListResponseBodyWebhookParameters; + static names(): { [key: string]: string } { + return { + code: 'Code', + contactParameters: 'ContactParameters', + fcParameters: 'FcParameters', + message: 'Message', + mnsParameters: 'MnsParameters', + openApiParameters: 'OpenApiParameters', + requestId: 'RequestId', + slsParameters: 'SlsParameters', + webhookParameters: 'WebhookParameters', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + contactParameters: DescribeEventRuleTargetListResponseBodyContactParameters, + fcParameters: DescribeEventRuleTargetListResponseBodyFcParameters, + message: 'string', + mnsParameters: DescribeEventRuleTargetListResponseBodyMnsParameters, + openApiParameters: DescribeEventRuleTargetListResponseBodyOpenApiParameters, + requestId: 'string', + slsParameters: DescribeEventRuleTargetListResponseBodySlsParameters, + webhookParameters: DescribeEventRuleTargetListResponseBodyWebhookParameters, + }; + } + + validate() { + if(this.contactParameters && typeof (this.contactParameters as any).validate === 'function') { + (this.contactParameters as any).validate(); + } + if(this.fcParameters && typeof (this.fcParameters as any).validate === 'function') { + (this.fcParameters as any).validate(); + } + if(this.mnsParameters && typeof (this.mnsParameters as any).validate === 'function') { + (this.mnsParameters as any).validate(); + } + if(this.openApiParameters && typeof (this.openApiParameters as any).validate === 'function') { + (this.openApiParameters as any).validate(); + } + if(this.slsParameters && typeof (this.slsParameters as any).validate === 'function') { + (this.slsParameters as any).validate(); + } + if(this.webhookParameters && typeof (this.webhookParameters as any).validate === 'function') { + (this.webhookParameters as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeExporterOutputListRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeExporterOutputListRequest.ts new file mode 100644 index 0000000..1b47eb8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeExporterOutputListRequest.ts @@ -0,0 +1,47 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeExporterOutputListRequest extends $dara.Model { + /** + * @remarks + * The page number. Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. Default value: 10. + * + * @example + * 10 + */ + pageSize?: number; + regionId?: string; + static names(): { [key: string]: string } { + return { + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + pageNumber: 'number', + pageSize: 'number', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeExporterOutputListResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeExporterOutputListResponse.ts new file mode 100644 index 0000000..22da961 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeExporterOutputListResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeExporterOutputListResponseBody } from "./DescribeExporterOutputListResponseBody"; + + +export class DescribeExporterOutputListResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeExporterOutputListResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeExporterOutputListResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeExporterOutputListResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeExporterOutputListResponseBody.ts new file mode 100644 index 0000000..021be0b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeExporterOutputListResponseBody.ts @@ -0,0 +1,247 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeExporterOutputListResponseBodyDatapointsDatapointConfigJson extends $dara.Model { + /** + * @remarks + * The AccessKey ID. + * + * @example + * LTAIpY33******** + */ + ak?: string; + /** + * @remarks + * The Log Service endpoint to which the monitoring data is exported. + * + * @example + * http://cn-qingdao-share.log.aliyuncs.com + */ + endpoint?: string; + /** + * @remarks + * The Logstore. + * + * @example + * monitorlogstore + */ + logstore?: string; + /** + * @remarks + * The Log Service project to which the monitoring data is exported. + * + * @example + * exporter + */ + project?: string; + static names(): { [key: string]: string } { + return { + ak: 'ak', + endpoint: 'endpoint', + logstore: 'logstore', + project: 'project', + }; + } + + static types(): { [key: string]: any } { + return { + ak: 'string', + endpoint: 'string', + logstore: 'string', + project: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeExporterOutputListResponseBodyDatapointsDatapoint extends $dara.Model { + /** + * @remarks + * The JSON object that contains the details about the destination to which the monitoring data is exported. + */ + configJson?: DescribeExporterOutputListResponseBodyDatapointsDatapointConfigJson; + /** + * @remarks + * The time when the configuration set was created. The value is a UNIX timestamp. + * + * @example + * 1584016495498 + */ + createTime?: number; + /** + * @remarks + * The name of the configuration set. + * + * @example + * exporterOut + */ + destName?: string; + /** + * @remarks + * The service to which the monitoring data is exported. + * + * > Only Log Service is supported. More services will be supported in the future. + * + * @example + * SLS + */ + destType?: string; + static names(): { [key: string]: string } { + return { + configJson: 'ConfigJson', + createTime: 'CreateTime', + destName: 'DestName', + destType: 'DestType', + }; + } + + static types(): { [key: string]: any } { + return { + configJson: DescribeExporterOutputListResponseBodyDatapointsDatapointConfigJson, + createTime: 'number', + destName: 'string', + destType: 'string', + }; + } + + validate() { + if(this.configJson && typeof (this.configJson as any).validate === 'function') { + (this.configJson as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeExporterOutputListResponseBodyDatapoints extends $dara.Model { + datapoint?: DescribeExporterOutputListResponseBodyDatapointsDatapoint[]; + static names(): { [key: string]: string } { + return { + datapoint: 'Datapoint', + }; + } + + static types(): { [key: string]: any } { + return { + datapoint: { 'type': 'array', 'itemType': DescribeExporterOutputListResponseBodyDatapointsDatapoint }, + }; + } + + validate() { + if(Array.isArray(this.datapoint)) { + $dara.Model.validateArray(this.datapoint); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeExporterOutputListResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. Other status codes indicate that the request failed. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The configuration sets for exporting monitoring data. + */ + datapoints?: DescribeExporterOutputListResponseBodyDatapoints; + /** + * @remarks + * The returned message. + * + * @example + * sucess + */ + message?: string; + /** + * @remarks + * The page number of the returned page. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The request ID. + * + * @example + * 0E657631-CD6C-4C24-9637-98D000B9272C + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * `true` + * * `false` + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The total number of returned entries. + * + * @example + * 25 + */ + total?: number; + static names(): { [key: string]: string } { + return { + code: 'Code', + datapoints: 'Datapoints', + message: 'Message', + pageNumber: 'PageNumber', + requestId: 'RequestId', + success: 'Success', + total: 'Total', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + datapoints: DescribeExporterOutputListResponseBodyDatapoints, + message: 'string', + pageNumber: 'number', + requestId: 'string', + success: 'boolean', + total: 'number', + }; + } + + validate() { + if(this.datapoints && typeof (this.datapoints as any).validate === 'function') { + (this.datapoints as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeExporterRuleListRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeExporterRuleListRequest.ts new file mode 100644 index 0000000..eb6fec0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeExporterRuleListRequest.ts @@ -0,0 +1,47 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeExporterRuleListRequest extends $dara.Model { + /** + * @remarks + * The page number. Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. Default value: 1000. + * + * @example + * 1000 + */ + pageSize?: number; + regionId?: string; + static names(): { [key: string]: string } { + return { + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + pageNumber: 'number', + pageSize: 'number', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeExporterRuleListResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeExporterRuleListResponse.ts new file mode 100644 index 0000000..cda6e7e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeExporterRuleListResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeExporterRuleListResponseBody } from "./DescribeExporterRuleListResponseBody"; + + +export class DescribeExporterRuleListResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeExporterRuleListResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeExporterRuleListResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeExporterRuleListResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeExporterRuleListResponseBody.ts new file mode 100644 index 0000000..8ba0c2a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeExporterRuleListResponseBody.ts @@ -0,0 +1,264 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeExporterRuleListResponseBodyDatapointsDatapointDstName extends $dara.Model { + dstName?: string[]; + static names(): { [key: string]: string } { + return { + dstName: 'DstName', + }; + } + + static types(): { [key: string]: any } { + return { + dstName: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.dstName)) { + $dara.Model.validateArray(this.dstName); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeExporterRuleListResponseBodyDatapointsDatapoint extends $dara.Model { + /** + * @remarks + * The time when the rule was created. The value is a UNIX timestamp. + * + * @example + * 1584024616228 + */ + createTime?: number; + /** + * @remarks + * The description of the rule. + * + * @example + * Export monitoring data + */ + describe?: string; + /** + * @remarks + * The associated dimensions. + * + * @example + * {"instanceId":"xxxxx"} + */ + dimension?: string; + dstName?: DescribeExporterRuleListResponseBodyDatapointsDatapointDstName; + /** + * @remarks + * Indicates whether the rule is enabled. + * + * @example + * true + */ + enabled?: boolean; + /** + * @remarks + * The name of the metric. + * + * > For more information, see [DescribeMetricMetaList](https://help.aliyun.com/document_detail/98846.html) or [Appendix 1: Metrics](https://help.aliyun.com/document_detail/28619.html). + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The namespace of the service. + * + * > For more information, see [DescribeMetricMetaList](https://help.aliyun.com/document_detail/98846.html) or [Appendix 1: Metrics](https://help.aliyun.com/document_detail/28619.html). + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The name of the data export rule. + * + * @example + * myRuleName + */ + ruleName?: string; + /** + * @remarks + * The time window of the exported data.\\ + * Multiple windows are separated with commas (,). + * + * > Data in a time window of less than 60 seconds cannot be exported. + * + * @example + * 60,300 + */ + targetWindows?: string; + static names(): { [key: string]: string } { + return { + createTime: 'CreateTime', + describe: 'Describe', + dimension: 'Dimension', + dstName: 'DstName', + enabled: 'Enabled', + metricName: 'MetricName', + namespace: 'Namespace', + ruleName: 'RuleName', + targetWindows: 'TargetWindows', + }; + } + + static types(): { [key: string]: any } { + return { + createTime: 'number', + describe: 'string', + dimension: 'string', + dstName: DescribeExporterRuleListResponseBodyDatapointsDatapointDstName, + enabled: 'boolean', + metricName: 'string', + namespace: 'string', + ruleName: 'string', + targetWindows: 'string', + }; + } + + validate() { + if(this.dstName && typeof (this.dstName as any).validate === 'function') { + (this.dstName as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeExporterRuleListResponseBodyDatapoints extends $dara.Model { + datapoint?: DescribeExporterRuleListResponseBodyDatapointsDatapoint[]; + static names(): { [key: string]: string } { + return { + datapoint: 'Datapoint', + }; + } + + static types(): { [key: string]: any } { + return { + datapoint: { 'type': 'array', 'itemType': DescribeExporterRuleListResponseBodyDatapointsDatapoint }, + }; + } + + validate() { + if(Array.isArray(this.datapoint)) { + $dara.Model.validateArray(this.datapoint); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeExporterRuleListResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. Other status codes indicate that the request failed. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The details of the data export rules. + */ + datapoints?: DescribeExporterRuleListResponseBodyDatapoints; + /** + * @remarks + * The returned message. + * + * @example + * susscess + */ + message?: string; + /** + * @remarks + * The page number of the returned page. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The request ID. + * + * @example + * 6BA047CA-8BC6-40BC-BC8F-FBECF35F1993 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * `true` + * * `false` + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The total number of returned entries. + * + * @example + * 1000 + */ + total?: number; + static names(): { [key: string]: string } { + return { + code: 'Code', + datapoints: 'Datapoints', + message: 'Message', + pageNumber: 'PageNumber', + requestId: 'RequestId', + success: 'Success', + total: 'Total', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + datapoints: DescribeExporterRuleListResponseBodyDatapoints, + message: 'string', + pageNumber: 'number', + requestId: 'string', + success: 'boolean', + total: 'number', + }; + } + + validate() { + if(this.datapoints && typeof (this.datapoints as any).validate === 'function') { + (this.datapoints as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeGroupMonitoringAgentProcessRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeGroupMonitoringAgentProcessRequest.ts new file mode 100644 index 0000000..2544b95 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeGroupMonitoringAgentProcessRequest.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeGroupMonitoringAgentProcessRequest extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * This parameter is required. + * + * @example + * 12345 + */ + groupId?: string; + /** + * @remarks + * The page number. Default value: 1 + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. Default value: 10. + * + * @example + * 10 + */ + pageSize?: number; + /** + * @remarks + * The process name. + * + * @example + * sshd + */ + processName?: string; + regionId?: string; + static names(): { [key: string]: string } { + return { + groupId: 'GroupId', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + processName: 'ProcessName', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + groupId: 'string', + pageNumber: 'number', + pageSize: 'number', + processName: 'string', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeGroupMonitoringAgentProcessResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeGroupMonitoringAgentProcessResponse.ts new file mode 100644 index 0000000..b3a3b89 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeGroupMonitoringAgentProcessResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeGroupMonitoringAgentProcessResponseBody } from "./DescribeGroupMonitoringAgentProcessResponseBody"; + + +export class DescribeGroupMonitoringAgentProcessResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeGroupMonitoringAgentProcessResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeGroupMonitoringAgentProcessResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeGroupMonitoringAgentProcessResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeGroupMonitoringAgentProcessResponseBody.ts new file mode 100644 index 0000000..d5f65a7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeGroupMonitoringAgentProcessResponseBody.ts @@ -0,0 +1,577 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfigTargetListTarget extends $dara.Model { + /** + * @remarks + * The Alibaba Cloud Resource Name (ARN) of the resource. Format: acs:{Service name abbreviation}:{regionId}:{userId}:/{Resource type}/{Resource name}/message. Example: acs:mns:cn-hangzhou:120886317861\\*\\*\\*\\*:/queues/test123/message. Fields: + * + * * {Service name abbreviation}: the abbreviation of the service name. Set the value to Simple Message Queue (formerly MNS) (SMQ). + * + * * {userId}: the ID of the Alibaba Cloud account. + * + * * {regionId}: the region ID of the SMQ queue or topic. + * + * * {Resource type}: the type of the resource for which alerts are triggered. Valid values: + * + * * **queues** + * * **topics** + * + * * {Resource name}: the resource name. + * + * * If the resource type is **queues**, the resource name is the queue name. + * * If the resource type is **topics**, the resource name is the topic name. + * + * @example + * acs:mns:cn-hangzhou:120886317861****:/queues/test/message + */ + arn?: string; + /** + * @remarks + * The ID of the resource for which alerts are triggered. + * + * @example + * 123 + */ + id?: string; + /** + * @remarks + * The parameters of the alert callback. The parameters are in the JSON format. + * + * @example + * {"customField1":"value1","customField2":"$.name"} + */ + jsonParmas?: string; + /** + * @remarks + * The alert level. Valid values: + * + * * INFO + * * WARN + * * CRITICAL + * + * @example + * CRITICAL + */ + level?: string; + static names(): { [key: string]: string } { + return { + arn: 'Arn', + id: 'Id', + jsonParmas: 'JsonParmas', + level: 'Level', + }; + } + + static types(): { [key: string]: any } { + return { + arn: 'string', + id: 'string', + jsonParmas: 'string', + level: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfigTargetList extends $dara.Model { + target?: DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfigTargetListTarget[]; + static names(): { [key: string]: string } { + return { + target: 'Target', + }; + } + + static types(): { [key: string]: any } { + return { + target: { 'type': 'array', 'itemType': DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfigTargetListTarget }, + }; + } + + validate() { + if(Array.isArray(this.target)) { + $dara.Model.validateArray(this.target); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfig extends $dara.Model { + /** + * @remarks + * The comparison operator that is used to compare the metric value with the threshold. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday. + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The time period during which the alert rule is effective. + * + * @example + * 00:00-23:59 + */ + effectiveInterval?: string; + /** + * @remarks + * The level of the alert. Valid values: + * + * * critical + * * warn + * * Info + * + * @example + * warn + */ + escalationsLevel?: string; + /** + * @remarks + * The time period during which the alert rule is ineffective. + * + * @example + * 00:00-23:59 + */ + noEffectiveInterval?: string; + /** + * @remarks + * The mute period during which new alert notifications are not sent even if the trigger conditions are met. Unit: seconds. Minimum value: 3600, which is equivalent to one hour. Default value: 86400, which is equivalent to one day. + * + * > Only one alert notification is sent during each mute period even if the metric value exceeds the alert threshold several times. + * + * @example + * 86400 + */ + silenceTime?: string; + /** + * @remarks + * The method used to calculate metric values that trigger alerts. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The resources for which alerts are triggered. + */ + targetList?: DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfigTargetList; + /** + * @remarks + * The alert threshold. + * + * @example + * 5 + */ + threshold?: string; + /** + * @remarks + * The number of times for which the threshold can be consecutively exceeded. + * + * > A metric triggers an alert only after the metric value reaches the threshold consecutively for the specified times. + * + * @example + * 3 + */ + times?: string; + /** + * @remarks + * The callback URL to which a POST request is sent when an alert is triggered based on the alert rule. + * + * @example + * http://www.aliyun.com + */ + webhook?: string; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + effectiveInterval: 'EffectiveInterval', + escalationsLevel: 'EscalationsLevel', + noEffectiveInterval: 'NoEffectiveInterval', + silenceTime: 'SilenceTime', + statistics: 'Statistics', + targetList: 'TargetList', + threshold: 'Threshold', + times: 'Times', + webhook: 'Webhook', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + effectiveInterval: 'string', + escalationsLevel: 'string', + noEffectiveInterval: 'string', + silenceTime: 'string', + statistics: 'string', + targetList: DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfigTargetList, + threshold: 'string', + times: 'string', + webhook: 'string', + }; + } + + validate() { + if(this.targetList && typeof (this.targetList as any).validate === 'function') { + (this.targetList as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfig extends $dara.Model { + alertConfig?: DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfig[]; + static names(): { [key: string]: string } { + return { + alertConfig: 'AlertConfig', + }; + } + + static types(): { [key: string]: any } { + return { + alertConfig: { 'type': 'array', 'itemType': DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfig }, + }; + } + + validate() { + if(Array.isArray(this.alertConfig)) { + $dara.Model.validateArray(this.alertConfig); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessMatchExpressMatchExpress extends $dara.Model { + /** + * @remarks + * The matching condition. Valid values: + * + * * all (default): matches all + * * startWith: starts with a prefix + * * endWith: ends with a suffix + * * contains: contains + * * notContains: excludes + * * equals: equals + * + * > The matched instances are monitored by the process monitoring task. + * + * @example + * all + */ + function?: string; + /** + * @remarks + * The criteria based on which the instances are matched. + * + * > Set the value to `name`. The value name indicates that the instances are matched based on the instance name. + * + * @example + * name + */ + name?: string; + /** + * @remarks + * The keyword used to match the instance name. + * + * @example + * portalHost + */ + value?: string; + static names(): { [key: string]: string } { + return { + function: 'Function', + name: 'Name', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + function: 'string', + name: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessMatchExpress extends $dara.Model { + matchExpress?: DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessMatchExpressMatchExpress[]; + static names(): { [key: string]: string } { + return { + matchExpress: 'MatchExpress', + }; + } + + static types(): { [key: string]: any } { + return { + matchExpress: { 'type': 'array', 'itemType': DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessMatchExpressMatchExpress }, + }; + } + + validate() { + if(Array.isArray(this.matchExpress)) { + $dara.Model.validateArray(this.matchExpress); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcess extends $dara.Model { + /** + * @remarks + * The alert rule configurations. + */ + alertConfig?: DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfig; + /** + * @remarks + * The ID of the application group. + * + * @example + * 12345 + */ + groupId?: string; + /** + * @remarks + * The ID of the process monitoring task. + * + * @example + * 3F6150F9-45C7-43F9-9578-A58B2E72**** + */ + id?: string; + /** + * @remarks + * The matching conditions. + * + * > Only the instances that meet the conditional expressions are monitored by the process monitoring task. + */ + matchExpress?: DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessMatchExpress; + /** + * @remarks + * The logical operator used between conditional expressions that are used to match instances. Valid values: + * + * * all + * * and + * * or + * + * @example + * and + */ + matchExpressFilterRelation?: string; + /** + * @remarks + * The process name. + * + * @example + * sshd + */ + processName?: string; + static names(): { [key: string]: string } { + return { + alertConfig: 'AlertConfig', + groupId: 'GroupId', + id: 'Id', + matchExpress: 'MatchExpress', + matchExpressFilterRelation: 'MatchExpressFilterRelation', + processName: 'ProcessName', + }; + } + + static types(): { [key: string]: any } { + return { + alertConfig: DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfig, + groupId: 'string', + id: 'string', + matchExpress: DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessMatchExpress, + matchExpressFilterRelation: 'string', + processName: 'string', + }; + } + + validate() { + if(this.alertConfig && typeof (this.alertConfig as any).validate === 'function') { + (this.alertConfig as any).validate(); + } + if(this.matchExpress && typeof (this.matchExpress as any).validate === 'function') { + (this.matchExpress as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeGroupMonitoringAgentProcessResponseBodyProcesses extends $dara.Model { + process?: DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcess[]; + static names(): { [key: string]: string } { + return { + process: 'Process', + }; + } + + static types(): { [key: string]: any } { + return { + process: { 'type': 'array', 'itemType': DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcess }, + }; + } + + validate() { + if(Array.isArray(this.process)) { + $dara.Model.validateArray(this.process); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeGroupMonitoringAgentProcessResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status codes. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The page number. Default value: 1 + * + * @example + * 1 + */ + pageNumber?: string; + /** + * @remarks + * The number of entries per page. Default value: 10. + * + * @example + * 10 + */ + pageSize?: string; + /** + * @remarks + * The process monitoring tasks. + */ + processes?: DescribeGroupMonitoringAgentProcessResponseBodyProcesses; + /** + * @remarks + * The request ID. + * + * @example + * 7985D471-3FA8-4EE9-8F4B-45C19DF3D36F + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: Valid values: true and false. + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The total number of returned entries. + * + * @example + * 28 + */ + total?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + processes: 'Processes', + requestId: 'RequestId', + success: 'Success', + total: 'Total', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + pageNumber: 'string', + pageSize: 'string', + processes: DescribeGroupMonitoringAgentProcessResponseBodyProcesses, + requestId: 'string', + success: 'boolean', + total: 'string', + }; + } + + validate() { + if(this.processes && typeof (this.processes as any).validate === 'function') { + (this.processes as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHostAvailabilityListRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHostAvailabilityListRequest.ts new file mode 100644 index 0000000..6c20fee --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHostAvailabilityListRequest.ts @@ -0,0 +1,91 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeHostAvailabilityListRequest extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * @example + * 12345 + */ + groupId?: number; + /** + * @remarks + * The ID of the availability monitoring task. + * + * @example + * 123456 + */ + id?: number; + /** + * @remarks + * The IDs of the availability monitoring tasks. Separate multiple IDs with commas (,). + * + * @example + * 123456,345678 + */ + ids?: string; + /** + * @remarks + * The page number. + * + * Pages start from page 1. Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * Minimum value: 1. Default value: 10 + * + * @example + * 10 + */ + pageSize?: number; + regionId?: string; + /** + * @remarks + * The name of the availability monitoring task. + * + * @example + * ecs_instance + */ + taskName?: string; + static names(): { [key: string]: string } { + return { + groupId: 'GroupId', + id: 'Id', + ids: 'Ids', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + taskName: 'TaskName', + }; + } + + static types(): { [key: string]: any } { + return { + groupId: 'number', + id: 'number', + ids: 'string', + pageNumber: 'number', + pageSize: 'number', + regionId: 'string', + taskName: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHostAvailabilityListResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHostAvailabilityListResponse.ts new file mode 100644 index 0000000..ad6c0a2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHostAvailabilityListResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeHostAvailabilityListResponseBody } from "./DescribeHostAvailabilityListResponseBody"; + + +export class DescribeHostAvailabilityListResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeHostAvailabilityListResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeHostAvailabilityListResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHostAvailabilityListResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHostAvailabilityListResponseBody.ts new file mode 100644 index 0000000..078322e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHostAvailabilityListResponseBody.ts @@ -0,0 +1,694 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigEscalationListEscalationList extends $dara.Model { + /** + * @remarks + * The method used to calculate metric values that trigger alerts. Valid values: + * + * * Value: the value of the HTTP status code + * * Average: the average HTTP response time + * * Value: the value of the Telnet status code + * * TelnetLatency: the average Telnet response time + * * Average: the average Ping packet loss rate + * + * @example + * Value + */ + aggregate?: string; + /** + * @remarks + * The name of the metric. Valid values: + * + * * HttpStatus + * * HttpLatency + * * TelnetStatus + * * TelnetLatency + * * PingLostRate + * + * @example + * HttpStatus + */ + metricName?: string; + /** + * @remarks + * The comparison operator that is used in the alert rule. Valid values: + * + * * `>` + * * `>=` + * * `<` + * * `<=` + * * `=` + * + * @example + * = + */ + operator?: string; + /** + * @remarks + * The consecutive number of times for which the metric value is measured before an alert is triggered. + * + * @example + * 3 + */ + times?: string; + /** + * @remarks + * The alert threshold. + * + * @example + * 400 + */ + value?: string; + static names(): { [key: string]: string } { + return { + aggregate: 'Aggregate', + metricName: 'MetricName', + operator: 'Operator', + times: 'Times', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + aggregate: 'string', + metricName: 'string', + operator: 'string', + times: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigEscalationList extends $dara.Model { + escalationList?: DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigEscalationListEscalationList[]; + static names(): { [key: string]: string } { + return { + escalationList: 'escalationList', + }; + } + + static types(): { [key: string]: any } { + return { + escalationList: { 'type': 'array', 'itemType': DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigEscalationListEscalationList }, + }; + } + + validate() { + if(Array.isArray(this.escalationList)) { + $dara.Model.validateArray(this.escalationList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigTargetListTarget extends $dara.Model { + /** + * @remarks + * The Alibaba Cloud Resource Name (ARN) of the function. + * + * Format: `arn:acs:${Service}:${Region}:${Account}:${ResourceType}/${ResourceId}`. Fields: + * + * * Service: the service code + * * Region: the region ID + * * Account: the ID of the Alibaba Cloud account + * * ResourceType: the resource type + * * ResourceId: the resource ID. + * + * @example + * acs:mns:cn-hangzhou:17754132319*****:/queues/test/messages + */ + arn?: string; + /** + * @remarks + * The ID of the resource that triggers the alert. + * + * @example + * 1 + */ + id?: string; + /** + * @remarks + * The JSON-formatted parameters of the alert callback. + * + * @example + * {"key1":"value1"} + */ + jsonParams?: string; + /** + * @remarks + * The alert level. Valid values: + * + * * INFO + * * WARN + * * CRITICAL + * + * @example + * INFO + */ + level?: string; + static names(): { [key: string]: string } { + return { + arn: 'Arn', + id: 'Id', + jsonParams: 'JsonParams', + level: 'Level', + }; + } + + static types(): { [key: string]: any } { + return { + arn: 'string', + id: 'string', + jsonParams: 'string', + level: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigTargetList extends $dara.Model { + target?: DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigTargetListTarget[]; + static names(): { [key: string]: string } { + return { + target: 'Target', + }; + } + + static types(): { [key: string]: any } { + return { + target: { 'type': 'array', 'itemType': DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigTargetListTarget }, + }; + } + + validate() { + if(Array.isArray(this.target)) { + $dara.Model.validateArray(this.target); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfig extends $dara.Model { + /** + * @remarks + * The end of the time period during which the alert rule is effective. Valid values: 0 to 23. + * + * For example, if the `AlertConfig.StartTime` parameter is set to 0 and the `AlertConfig.EndTime` parameter is set to 22, the alert rule is effective from 00:00:00 to 22:00:00. + * + * > Alert notifications are sent based on the specified threshold only if the alert rule is effective. + * + * @example + * 22 + */ + endTime?: number; + /** + * @remarks + * The trigger conditions of the alert rule. + */ + escalationList?: DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigEscalationList; + /** + * @remarks + * The alert notification methods. Valid values: + * + * * 2: Alert notifications are sent by using emails and DingTalk chatbots. + * * 1: Alert notifications are sent by using emails and DingTalk chatbots. + * * 0: Alert notifications are sent by using emails and DingTalk chatbots. + * + * @example + * 0 + */ + notifyType?: number; + /** + * @remarks + * The mute period during which new alerts are not sent even if the trigger conditions are met. Unit: seconds. Default value: 86400. + * + * @example + * 86400 + */ + silenceTime?: number; + /** + * @remarks + * The beginning of the time period during which the alert rule is effective. Valid values: 0 to 23. + * + * For example, if the `AlertConfig.StartTime` parameter is set to 0 and the `AlertConfig.EndTime` parameter is set to 22, the alert rule is effective from 00:00:00 to 22:00:00. + * + * > Alert notifications are sent based on the specified threshold only if the alert rule is effective. + * + * @example + * 0 + */ + startTime?: number; + /** + * @remarks + * The monitored resources. + */ + targetList?: DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigTargetList; + /** + * @remarks + * The callback URL. + * + * CloudMonitor pushes an alert notification to the specified callback URL by sending an HTTP POST request. Only the HTTP protocol is supported. + * + * @example + * https://www.aliyun.com + */ + webHook?: string; + static names(): { [key: string]: string } { + return { + endTime: 'EndTime', + escalationList: 'EscalationList', + notifyType: 'NotifyType', + silenceTime: 'SilenceTime', + startTime: 'StartTime', + targetList: 'TargetList', + webHook: 'WebHook', + }; + } + + static types(): { [key: string]: any } { + return { + endTime: 'number', + escalationList: DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigEscalationList, + notifyType: 'number', + silenceTime: 'number', + startTime: 'number', + targetList: DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigTargetList, + webHook: 'string', + }; + } + + validate() { + if(this.escalationList && typeof (this.escalationList as any).validate === 'function') { + (this.escalationList as any).validate(); + } + if(this.targetList && typeof (this.targetList as any).validate === 'function') { + (this.targetList as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigInstances extends $dara.Model { + instance?: string[]; + static names(): { [key: string]: string } { + return { + instance: 'Instance', + }; + } + + static types(): { [key: string]: any } { + return { + instance: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.instance)) { + $dara.Model.validateArray(this.instance); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigTaskOption extends $dara.Model { + /** + * @remarks + * The response to the HTTP request. + * + * @example + * OK + */ + httpKeyword?: string; + /** + * @remarks + * The HTTP request method. Valid values: + * + * * GET + * * POST + * * HEAD + * + * @example + * GET + */ + httpMethod?: string; + /** + * @remarks + * The method to trigger an alert. The alert can be triggered based on whether the specified alert rule is included in the response body. Valid values: + * + * * true: If the HTTP response body includes the alert rule, an alert is triggered. + * * false: If the HTTP response does not include the alert rule, an alert is triggered. + * + * @example + * true + */ + httpNegative?: boolean; + /** + * @remarks + * The content of the HTTP POST request. + * + * @example + * params1=paramsValue1 + */ + httpPostContent?: string; + /** + * @remarks + * The character set that is used in the HTTP response. + * + * @example + * UTF-8 + */ + httpResponseCharset?: string; + /** + * @remarks + * The URI that you want to monitor. If the TaskType parameter is set to HTTP, this parameter is required. + * + * @example + * https://www.aliyun.com + */ + httpURI?: string; + /** + * @remarks + * The interval at which detection requests are sent. Unit: seconds. + * + * @example + * 60 + */ + interval?: number; + /** + * @remarks + * The domain name or IP address that you want to monitor. + * + * @example + * ssh.aliyun.com + */ + telnetOrPingHost?: string; + static names(): { [key: string]: string } { + return { + httpKeyword: 'HttpKeyword', + httpMethod: 'HttpMethod', + httpNegative: 'HttpNegative', + httpPostContent: 'HttpPostContent', + httpResponseCharset: 'HttpResponseCharset', + httpURI: 'HttpURI', + interval: 'Interval', + telnetOrPingHost: 'TelnetOrPingHost', + }; + } + + static types(): { [key: string]: any } { + return { + httpKeyword: 'string', + httpMethod: 'string', + httpNegative: 'boolean', + httpPostContent: 'string', + httpResponseCharset: 'string', + httpURI: 'string', + interval: 'number', + telnetOrPingHost: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfig extends $dara.Model { + /** + * @remarks + * The configurations of the alert rule. + */ + alertConfig?: DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfig; + /** + * @remarks + * Indicates whether the availability monitoring task is disabled. Valid values: + * + * * true: The availability monitoring task is disabled. + * * false: The availability monitoring task is enabled. + * + * @example + * false + */ + disabled?: boolean; + /** + * @remarks + * The ID of the application group. + * + * @example + * 12345 + */ + groupId?: number; + /** + * @remarks + * The name of the application group. + * + * @example + * Group_ECS + */ + groupName?: string; + /** + * @remarks + * The ID of the availability monitoring task. + * + * @example + * 123456 + */ + id?: number; + /** + * @remarks + * The ECS instances that are monitored. + */ + instances?: DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigInstances; + /** + * @remarks + * The name of the availability monitoring task. + * + * @example + * ecs_instance + */ + taskName?: string; + /** + * @remarks + * The optional parameters of the availability monitoring task. + */ + taskOption?: DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigTaskOption; + /** + * @remarks + * The range of instances that are monitored by the availability monitoring task. Valid values: + * + * * GROUP: All ECS instances in the application group are monitored. + * * GROUP_SPEC_INSTANCE: Specified ECS instances in the application group are monitored. + * + * @example + * GROUP + */ + taskScope?: string; + /** + * @remarks + * The task type. Valid values: + * + * * PING + * * TELNET + * * HTTP + * + * @example + * HTTP + */ + taskType?: string; + static names(): { [key: string]: string } { + return { + alertConfig: 'AlertConfig', + disabled: 'Disabled', + groupId: 'GroupId', + groupName: 'GroupName', + id: 'Id', + instances: 'Instances', + taskName: 'TaskName', + taskOption: 'TaskOption', + taskScope: 'TaskScope', + taskType: 'TaskType', + }; + } + + static types(): { [key: string]: any } { + return { + alertConfig: DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfig, + disabled: 'boolean', + groupId: 'number', + groupName: 'string', + id: 'number', + instances: DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigInstances, + taskName: 'string', + taskOption: DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigTaskOption, + taskScope: 'string', + taskType: 'string', + }; + } + + validate() { + if(this.alertConfig && typeof (this.alertConfig as any).validate === 'function') { + (this.alertConfig as any).validate(); + } + if(this.instances && typeof (this.instances as any).validate === 'function') { + (this.instances as any).validate(); + } + if(this.taskOption && typeof (this.taskOption as any).validate === 'function') { + (this.taskOption as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeHostAvailabilityListResponseBodyTaskList extends $dara.Model { + nodeTaskConfig?: DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfig[]; + static names(): { [key: string]: string } { + return { + nodeTaskConfig: 'NodeTaskConfig', + }; + } + + static types(): { [key: string]: any } { + return { + nodeTaskConfig: { 'type': 'array', 'itemType': DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfig }, + }; + } + + validate() { + if(Array.isArray(this.nodeTaskConfig)) { + $dara.Model.validateArray(this.nodeTaskConfig); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeHostAvailabilityListResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 4A288E86-45C3-4858-9DB0-6D85B10BD92A + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The details of the availability monitoring tasks. + */ + taskList?: DescribeHostAvailabilityListResponseBodyTaskList; + /** + * @remarks + * The total number of returned entries. + * + * @example + * 1 + */ + total?: number; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + taskList: 'TaskList', + total: 'Total', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + taskList: DescribeHostAvailabilityListResponseBodyTaskList, + total: 'number', + }; + } + + validate() { + if(this.taskList && typeof (this.taskList as any).validate === 'function') { + (this.taskList as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorDataListRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorDataListRequest.ts new file mode 100644 index 0000000..f432d9f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorDataListRequest.ts @@ -0,0 +1,95 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeHybridMonitorDataListRequest extends $dara.Model { + /** + * @remarks + * The end of the time range to query. + * + * Unit: seconds. + * + * This parameter is required. + * + * @example + * 1653805225 + */ + end?: number; + /** + * @remarks + * The name of the namespace. + * + * For more information about how to query the names of namespaces, see [DescribeHybridMonitorNamespaceList](https://help.aliyun.com/document_detail/428880.html). + * + * This parameter is required. + * + * @example + * default-aliyun + */ + namespace?: string; + /** + * @remarks + * The statistical period of the monitoring data. + * + * Unit: seconds. + * + * @example + * 60 + */ + period?: string; + /** + * @remarks + * The metric name. + * + * > PromQL statements are supported. + * + * This parameter is required. + * + * @example + * AliyunEcs_cpu_total + */ + promSQL?: string; + regionId?: string; + /** + * @remarks + * The start of the time range to query. + * + * Unit: seconds. + * + * This parameter is required. + * + * @example + * 1653804865 + */ + start?: number; + static names(): { [key: string]: string } { + return { + end: 'End', + namespace: 'Namespace', + period: 'Period', + promSQL: 'PromSQL', + regionId: 'RegionId', + start: 'Start', + }; + } + + static types(): { [key: string]: any } { + return { + end: 'number', + namespace: 'string', + period: 'string', + promSQL: 'string', + regionId: 'string', + start: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorDataListResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorDataListResponse.ts new file mode 100644 index 0000000..903908e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorDataListResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeHybridMonitorDataListResponseBody } from "./DescribeHybridMonitorDataListResponseBody"; + + +export class DescribeHybridMonitorDataListResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeHybridMonitorDataListResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeHybridMonitorDataListResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorDataListResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorDataListResponseBody.ts new file mode 100644 index 0000000..5bcb0c5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorDataListResponseBody.ts @@ -0,0 +1,211 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeHybridMonitorDataListResponseBodyTimeSeriesLabels extends $dara.Model { + /** + * @remarks + * The tag key. + * + * @example + * instanceId + */ + k?: string; + /** + * @remarks + * The tag value. + * + * @example + * i-rj99xc6cptkk64ml**** + */ + v?: string; + static names(): { [key: string]: string } { + return { + k: 'K', + v: 'V', + }; + } + + static types(): { [key: string]: any } { + return { + k: 'string', + v: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeHybridMonitorDataListResponseBodyTimeSeriesValues extends $dara.Model { + /** + * @remarks + * The timestamp that indicates the time when the metric value is collected. + * + * Unit: seconds. + * + * @example + * 1653804865 + */ + ts?: string; + /** + * @remarks + * The metric value. + * + * @example + * 0.13 + */ + v?: string; + static names(): { [key: string]: string } { + return { + ts: 'Ts', + v: 'V', + }; + } + + static types(): { [key: string]: any } { + return { + ts: 'string', + v: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeHybridMonitorDataListResponseBodyTimeSeries extends $dara.Model { + /** + * @remarks + * The tags of the time dimension. + */ + labels?: DescribeHybridMonitorDataListResponseBodyTimeSeriesLabels[]; + /** + * @remarks + * The metric name. + * + * @example + * AliyunEcs_cpu_total + */ + metricName?: string; + /** + * @remarks + * The metric values that are collected at different timestamps. + */ + values?: DescribeHybridMonitorDataListResponseBodyTimeSeriesValues[]; + static names(): { [key: string]: string } { + return { + labels: 'Labels', + metricName: 'MetricName', + values: 'Values', + }; + } + + static types(): { [key: string]: any } { + return { + labels: { 'type': 'array', 'itemType': DescribeHybridMonitorDataListResponseBodyTimeSeriesLabels }, + metricName: 'string', + values: { 'type': 'array', 'itemType': DescribeHybridMonitorDataListResponseBodyTimeSeriesValues }, + }; + } + + validate() { + if(Array.isArray(this.labels)) { + $dara.Model.validateArray(this.labels); + } + if(Array.isArray(this.values)) { + $dara.Model.validateArray(this.values); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeHybridMonitorDataListResponseBody extends $dara.Model { + /** + * @remarks + * The response code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * end timestamp must not be before start time. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * C240412F-3F5F-50E2-ACEC-DE808EF9C4BE + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + /** + * @remarks + * The returned monitoring data. + */ + timeSeries?: DescribeHybridMonitorDataListResponseBodyTimeSeries[]; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + timeSeries: 'TimeSeries', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'string', + timeSeries: { 'type': 'array', 'itemType': DescribeHybridMonitorDataListResponseBodyTimeSeries }, + }; + } + + validate() { + if(Array.isArray(this.timeSeries)) { + $dara.Model.validateArray(this.timeSeries); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorNamespaceListRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorNamespaceListRequest.ts new file mode 100644 index 0000000..4e318f4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorNamespaceListRequest.ts @@ -0,0 +1,86 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeHybridMonitorNamespaceListRequest extends $dara.Model { + /** + * @remarks + * The search keyword. + * + * @example + * aliyun + */ + keyword?: string; + /** + * @remarks + * The name of the namespace. + * + * The name can contain letters, digits, and hyphens (-). + * + * @example + * aliyun-test + */ + namespace?: string; + /** + * @remarks + * The page number. + * + * Page numbers start from 1. Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * Page numbers start from 1. Default value: 10. + * + * @example + * 10 + */ + pageSize?: number; + regionId?: string; + /** + * @remarks + * Specifies whether to return the configuration details of metric import tasks for Alibaba Cloud services and the number of metric import tasks for third-party services. Valid values: + * + * * true + * * false (default) + * + * @example + * false + */ + showTaskStatistic?: boolean; + static names(): { [key: string]: string } { + return { + keyword: 'Keyword', + namespace: 'Namespace', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + showTaskStatistic: 'ShowTaskStatistic', + }; + } + + static types(): { [key: string]: any } { + return { + keyword: 'string', + namespace: 'string', + pageNumber: 'number', + pageSize: 'number', + regionId: 'string', + showTaskStatistic: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorNamespaceListResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorNamespaceListResponse.ts new file mode 100644 index 0000000..45cb2da --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorNamespaceListResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeHybridMonitorNamespaceListResponseBody } from "./DescribeHybridMonitorNamespaceListResponseBody"; + + +export class DescribeHybridMonitorNamespaceListResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeHybridMonitorNamespaceListResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeHybridMonitorNamespaceListResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorNamespaceListResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorNamespaceListResponseBody.ts new file mode 100644 index 0000000..c717d7c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorNamespaceListResponseBody.ts @@ -0,0 +1,435 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricListNamespaceListMetricList extends $dara.Model { + /** + * @remarks + * The metrics. + */ + list?: string[]; + /** + * @remarks + * The collection period of the metric. + * + * Unit: seconds. + * + * @example + * 60 + */ + period?: number; + static names(): { [key: string]: string } { + return { + list: 'List', + period: 'Period', + }; + } + + static types(): { [key: string]: any } { + return { + list: { 'type': 'array', 'itemType': 'string' }, + period: 'number', + }; + } + + validate() { + if(Array.isArray(this.list)) { + $dara.Model.validateArray(this.list); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricListNamespaceList extends $dara.Model { + /** + * @remarks + * The metrics for the Alibaba Cloud service. + */ + metricList?: DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricListNamespaceListMetricList[]; + /** + * @remarks + * The namespace for the Alibaba Cloud service. + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + static names(): { [key: string]: string } { + return { + metricList: 'MetricList', + namespace: 'Namespace', + }; + } + + static types(): { [key: string]: any } { + return { + metricList: { 'type': 'array', 'itemType': DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricListNamespaceListMetricList }, + namespace: 'string', + }; + } + + validate() { + if(Array.isArray(this.metricList)) { + $dara.Model.validateArray(this.metricList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricList extends $dara.Model { + /** + * @remarks + * The namespaces. + */ + namespaceList?: DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricListNamespaceList[]; + /** + * @remarks + * The account that is used to create the namespace. + * + * @example + * 120886317861**** + */ + userId?: number; + /** + * @remarks + * The configuration file of the Alibaba Cloud service that you want to monitor by using Hybrid Cloud Monitoring. + * + * * namespace: the namespace of the Alibaba Cloud service. + * * metric_list: the metrics of the Alibaba Cloud service. + * * dimension: the resources of the Alibaba Cloud service that you want to monitor by using Hybrid Cloud Monitoring. If you do not specify a dimension, all resources of the Alibaba Cloud service are monitored. + * + * @example + * products:- namespace: acs_ecs_dashboard metric_info: - metric_list: - cpu_total dimension: \\"\\" + */ + YAMLConfig?: string; + static names(): { [key: string]: string } { + return { + namespaceList: 'NamespaceList', + userId: 'UserId', + YAMLConfig: 'YAMLConfig', + }; + } + + static types(): { [key: string]: any } { + return { + namespaceList: { 'type': 'array', 'itemType': DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricListNamespaceList }, + userId: 'number', + YAMLConfig: 'string', + }; + } + + validate() { + if(Array.isArray(this.namespaceList)) { + $dara.Model.validateArray(this.namespaceList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceDetail extends $dara.Model { + /** + * @remarks + * The region where the metric data is stored. + * + * > This parameter is returned if you select `m_prom_user` for `NamespaceType` when you create a namespace. + * + * @example + * cn-hangzhou + */ + namespaceRegion?: string; + prometheusInstanceId?: string; + /** + * @remarks + * The project where the metric data is located. + * + * > This parameter is returned if you select `m_prom_user` for `NamespaceType` when you create a namespace. + * + * @example + * cms-hybrid-120886317861****-cn-hangzhou-a83d + */ + SLSProject?: string; + /** + * @remarks + * The data retention period. Valid values: + * + * * cms.s1.large (Retention Period 15 Days) + * * cms.s1.xlarge (Retention Period 32 Days) + * * cms.s1.2xlarge (Retention Period 63 Days) + * * cms.s1.3xlarge (Retention Period 93 Days) + * * cms.s1.6xlarge (Retention Period 185 Days) + * * cms.s1.12xlarge (Retention Period 367 Days) + * + * @example + * cms.s1.3xlarge + */ + spec?: string; + static names(): { [key: string]: string } { + return { + namespaceRegion: 'NamespaceRegion', + prometheusInstanceId: 'PrometheusInstanceId', + SLSProject: 'SLSProject', + spec: 'Spec', + }; + } + + static types(): { [key: string]: any } { + return { + namespaceRegion: 'string', + prometheusInstanceId: 'string', + SLSProject: 'string', + spec: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespace extends $dara.Model { + /** + * @remarks + * The configuration details of metric import tasks for Alibaba Cloud services. + */ + aliyunProductMetricList?: DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricList[]; + /** + * @remarks + * The timestamp that was generated when the namespace was created. + * + * Unit: milliseconds. + * + * @example + * 1652682744000 + */ + createTime?: string; + /** + * @remarks + * The description of the namespace. + * + * @example + * aliyun-test + */ + description?: string; + /** + * @remarks + * The details of the data retention period. + */ + detail?: DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceDetail; + /** + * @remarks + * The ID of the namespace. + * + * @example + * 3**** + */ + id?: string; + /** + * @remarks + * Indicates whether the namespace is deleted. Valid values: + * + * * 0: The namespace is not deleted. + * * 1: The namespace is deleted. + * + * @example + * 0 + */ + isDelete?: number; + /** + * @remarks + * The timestamp that was generated when the namespace was last modified. + * + * @example + * 1652682744000 + */ + modifyTime?: string; + /** + * @remarks + * The name of the namespace. + * + * @example + * aliyun-test + */ + namespace?: string; + /** + * @remarks + * The storage scheme of metric data. Valid values: + * + * * m_prom_user: The metric data is stored in Simple Log Service. + * * m_prom_pool: The metric data is stored in the storage space provided by CloudMonitor. + * + * @example + * m_prom_user + */ + namespaceType?: string; + /** + * @remarks + * The number of metric import tasks for third-party services. + * + * @example + * 0 + */ + notAliyunTaskNumber?: number; + static names(): { [key: string]: string } { + return { + aliyunProductMetricList: 'AliyunProductMetricList', + createTime: 'CreateTime', + description: 'Description', + detail: 'Detail', + id: 'Id', + isDelete: 'IsDelete', + modifyTime: 'ModifyTime', + namespace: 'Namespace', + namespaceType: 'NamespaceType', + notAliyunTaskNumber: 'NotAliyunTaskNumber', + }; + } + + static types(): { [key: string]: any } { + return { + aliyunProductMetricList: { 'type': 'array', 'itemType': DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricList }, + createTime: 'string', + description: 'string', + detail: DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceDetail, + id: 'string', + isDelete: 'number', + modifyTime: 'string', + namespace: 'string', + namespaceType: 'string', + notAliyunTaskNumber: 'number', + }; + } + + validate() { + if(Array.isArray(this.aliyunProductMetricList)) { + $dara.Model.validateArray(this.aliyunProductMetricList); + } + if(this.detail && typeof (this.detail as any).validate === 'function') { + (this.detail as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeHybridMonitorNamespaceListResponseBody extends $dara.Model { + /** + * @remarks + * The response code. + * + * @example + * Success + */ + code?: string; + /** + * @remarks + * The details of the namespaces. + */ + describeHybridMonitorNamespace?: DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespace[]; + /** + * @remarks + * The returned message. + * + * @example + * Specified parameter PageSize is not valid. + */ + message?: string; + /** + * @remarks + * The page number. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * @example + * 10 + */ + pageSize?: number; + /** + * @remarks + * The request ID. + * + * @example + * 1EC450A4-3221-5148-B77E-2827576CFE48 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + /** + * @remarks + * The total number of entries returned. + * + * @example + * 1 + */ + total?: number; + static names(): { [key: string]: string } { + return { + code: 'Code', + describeHybridMonitorNamespace: 'DescribeHybridMonitorNamespace', + message: 'Message', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + requestId: 'RequestId', + success: 'Success', + total: 'Total', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + describeHybridMonitorNamespace: { 'type': 'array', 'itemType': DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespace }, + message: 'string', + pageNumber: 'number', + pageSize: 'number', + requestId: 'string', + success: 'string', + total: 'number', + }; + } + + validate() { + if(Array.isArray(this.describeHybridMonitorNamespace)) { + $dara.Model.validateArray(this.describeHybridMonitorNamespace); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorSlsgroupRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorSlsgroupRequest.ts new file mode 100644 index 0000000..6a93567 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorSlsgroupRequest.ts @@ -0,0 +1,71 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeHybridMonitorSLSGroupRequest extends $dara.Model { + /** + * @remarks + * The keyword that is used to search for Logstore groups. + * + * @example + * Logstore + */ + keyword?: string; + /** + * @remarks + * The page number. + * + * Pages start from page 1. Default value: 1. + * + * @example + * 1 + */ + pageNumber?: string; + /** + * @remarks + * The number of entries per page. + * + * Minimum value: 1. Default value: 10. + * + * @example + * 10 + */ + pageSize?: string; + regionId?: string; + /** + * @remarks + * The name of the Logstore group. + * + * @example + * Logstore_test + */ + SLSGroupName?: string; + static names(): { [key: string]: string } { + return { + keyword: 'Keyword', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + SLSGroupName: 'SLSGroupName', + }; + } + + static types(): { [key: string]: any } { + return { + keyword: 'string', + pageNumber: 'string', + pageSize: 'string', + regionId: 'string', + SLSGroupName: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorSlsgroupResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorSlsgroupResponse.ts new file mode 100644 index 0000000..411e89c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorSlsgroupResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeHybridMonitorSLSGroupResponseBody } from "./DescribeHybridMonitorSlsgroupResponseBody"; + + +export class DescribeHybridMonitorSLSGroupResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeHybridMonitorSLSGroupResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeHybridMonitorSLSGroupResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorSlsgroupResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorSlsgroupResponseBody.ts new file mode 100644 index 0000000..ec21972 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorSlsgroupResponseBody.ts @@ -0,0 +1,239 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeHybridMonitorSLSGroupResponseBodyListSLSGroupConfig extends $dara.Model { + /** + * @remarks + * The Logstore. + * + * @example + * Logstore-aliyun-all + */ + SLSLogstore?: string; + /** + * @remarks + * The Simple Log Service project. + * + * @example + * aliyun-project + */ + SLSProject?: string; + /** + * @remarks + * The region ID. + * + * @example + * cn-hangzhou + */ + SLSRegion?: string; + /** + * @remarks + * The member ID. + * + * **Description** This parameter is returned when you call the operation by using an administrative account. + * + * @example + * 120886317861**** + */ + SLSUserId?: string; + static names(): { [key: string]: string } { + return { + SLSLogstore: 'SLSLogstore', + SLSProject: 'SLSProject', + SLSRegion: 'SLSRegion', + SLSUserId: 'SLSUserId', + }; + } + + static types(): { [key: string]: any } { + return { + SLSLogstore: 'string', + SLSProject: 'string', + SLSRegion: 'string', + SLSUserId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeHybridMonitorSLSGroupResponseBodyList extends $dara.Model { + /** + * @remarks + * The time when the Logstore group was created. + * + * Unit: milliseconds. + * + * @example + * 1652845630000 + */ + createTime?: string; + /** + * @remarks + * The configurations of the Logstore group. + */ + SLSGroupConfig?: DescribeHybridMonitorSLSGroupResponseBodyListSLSGroupConfig[]; + /** + * @remarks + * The description of the Logstore group. + */ + SLSGroupDescription?: string; + /** + * @remarks + * The name of the Logstore group. + * + * @example + * Logstore_test + */ + SLSGroupName?: string; + /** + * @remarks + * The time when the Logstore group was modified. + * + * Unit: milliseconds. + * + * @example + * 1652845630000 + */ + updateTime?: string; + static names(): { [key: string]: string } { + return { + createTime: 'CreateTime', + SLSGroupConfig: 'SLSGroupConfig', + SLSGroupDescription: 'SLSGroupDescription', + SLSGroupName: 'SLSGroupName', + updateTime: 'UpdateTime', + }; + } + + static types(): { [key: string]: any } { + return { + createTime: 'string', + SLSGroupConfig: { 'type': 'array', 'itemType': DescribeHybridMonitorSLSGroupResponseBodyListSLSGroupConfig }, + SLSGroupDescription: 'string', + SLSGroupName: 'string', + updateTime: 'string', + }; + } + + validate() { + if(Array.isArray(this.SLSGroupConfig)) { + $dara.Model.validateArray(this.SLSGroupConfig); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeHybridMonitorSLSGroupResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The queried Logstore groups. + */ + list?: DescribeHybridMonitorSLSGroupResponseBodyList[]; + /** + * @remarks + * The error message. + * + * @example + * NotFound.SLSGroup + */ + message?: string; + /** + * @remarks + * The page number. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * @example + * 10 + */ + pageSize?: number; + /** + * @remarks + * The request ID. + * + * @example + * 66683237-7126-50F8-BBF8-D67ACC919A17 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + */ + success?: string; + /** + * @remarks + * The total number of entries returned. + * + * @example + * 2 + */ + total?: number; + static names(): { [key: string]: string } { + return { + code: 'Code', + list: 'List', + message: 'Message', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + requestId: 'RequestId', + success: 'Success', + total: 'Total', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + list: { 'type': 'array', 'itemType': DescribeHybridMonitorSLSGroupResponseBodyList }, + message: 'string', + pageNumber: 'number', + pageSize: 'number', + requestId: 'string', + success: 'string', + total: 'number', + }; + } + + validate() { + if(Array.isArray(this.list)) { + $dara.Model.validateArray(this.list); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorTaskListRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorTaskListRequest.ts new file mode 100644 index 0000000..09e3a67 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorTaskListRequest.ts @@ -0,0 +1,133 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeHybridMonitorTaskListRequest extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * For information about how to obtain the ID of an application group, see [DescribeMonitorGroups](https://help.aliyun.com/document_detail/115032.html). + * + * @example + * 3607**** + */ + groupId?: string; + /** + * @remarks + * Specifies whether the returned result includes metric import tasks for Alibaba Cloud services. Valid values: + * + * * true (default): The returned result includes metric import tasks for Alibaba Cloud services. + * * false: The returned result excludes metric import tasks for Alibaba Cloud services. + * + * @example + * true + */ + includeAliyunTask?: boolean; + /** + * @remarks + * The keyword that is used for the search. + * + * @example + * task + */ + keyword?: string; + /** + * @remarks + * The name of the namespace. + * + * For information about how to obtain the name of a namespace, see [DescribeHybridMonitorNamespaceList](https://help.aliyun.com/document_detail/428880.html). + * + * @example + * aliyun + */ + namespace?: string; + /** + * @remarks + * The page number. + * + * Pages start from page 1. Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * Pages start from page 1. Default value: 10. + * + * @example + * 10 + */ + pageSize?: number; + regionId?: string; + /** + * @remarks + * The ID of the member account. + * + * > This parameter is required only if you use a management account to call this operation to delete the metric import tasks that belong to a member in a resource directory. In this case, the `TaskType` parameter is set to `aliyun_fc`. + * + * @example + * 120886317861**** + */ + targetUserId?: number; + /** + * @remarks + * The ID of the metric import task. + * + * @example + * 36**** + */ + taskId?: string; + /** + * @remarks + * The type of the metric import task. Valid values: + * + * * aliyun_fc: metric import tasks for Alibaba Cloud services + * * aliyun_sls: metrics for logs imported from Log Service + * + * @example + * aliyun_fc + */ + taskType?: string; + static names(): { [key: string]: string } { + return { + groupId: 'GroupId', + includeAliyunTask: 'IncludeAliyunTask', + keyword: 'Keyword', + namespace: 'Namespace', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + targetUserId: 'TargetUserId', + taskId: 'TaskId', + taskType: 'TaskType', + }; + } + + static types(): { [key: string]: any } { + return { + groupId: 'string', + includeAliyunTask: 'boolean', + keyword: 'string', + namespace: 'string', + pageNumber: 'number', + pageSize: 'number', + regionId: 'string', + targetUserId: 'number', + taskId: 'string', + taskType: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorTaskListResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorTaskListResponse.ts new file mode 100644 index 0000000..9921d74 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorTaskListResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeHybridMonitorTaskListResponseBody } from "./DescribeHybridMonitorTaskListResponseBody"; + + +export class DescribeHybridMonitorTaskListResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeHybridMonitorTaskListResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeHybridMonitorTaskListResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorTaskListResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorTaskListResponseBody.ts new file mode 100644 index 0000000..9dcb162 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeHybridMonitorTaskListResponseBody.ts @@ -0,0 +1,858 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeHybridMonitorTaskListResponseBodyTaskListAttachLabels extends $dara.Model { + /** + * @remarks + * The tag key. + * + * @example + * key1 + */ + name?: string; + /** + * @remarks + * The tag value. + * + * @example + * value1 + */ + value?: string; + static names(): { [key: string]: string } { + return { + name: 'Name', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + name: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeHybridMonitorTaskListResponseBodyTaskListMatchExpress extends $dara.Model { + /** + * @remarks + * The method that is used to match the instance name. Valid values: + * + * * startWith: starts with a prefix + * * endWith: ends with a suffix + * * all: matches all + * * equals: equals + * * contains: contains + * * notContains: does not contain + * + * @example + * all + */ + function?: string; + /** + * @remarks + * The instance name. + * + * @example + * name + */ + name?: string; + /** + * @remarks + * The keyword that corresponds to the instance name. + * + * @example + * ECS_instance1 + */ + value?: string; + static names(): { [key: string]: string } { + return { + function: 'Function', + name: 'Name', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + function: 'string', + name: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigExpress extends $dara.Model { + /** + * @remarks + * The alias of the extended field that indicates the result of basic operations that are performed on aggregation results. + * + * @example + * SuccRate + */ + alias?: string; + /** + * @remarks + * The extended field that indicates the result of basic operations that are performed on aggregation results. + * + * @example + * success_count + */ + express?: string; + static names(): { [key: string]: string } { + return { + alias: 'Alias', + express: 'Express', + }; + } + + static types(): { [key: string]: any } { + return { + alias: 'string', + express: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigFilterFilters extends $dara.Model { + /** + * @remarks + * The method that is used to filter logs imported from Log Service. Valid values: + * + * * `contain`: contains + * * `notContain`: does not contain + * * `>`: greater than + * * `<`: less than + * * `=`: equal to + * * `! =`: not equal to + * * `>=`: greater than or equal to + * * `<=`: less than or equal to + * + * @example + * = + */ + operator?: string; + /** + * @remarks + * The name of the key that is used to filter logs imported from Log Service. + * + * @example + * host + */ + SLSKeyName?: string; + /** + * @remarks + * The value of the key that is used to filter logs imported from Log Service. + * + * @example + * 200 + */ + value?: string; + static names(): { [key: string]: string } { + return { + operator: 'Operator', + SLSKeyName: 'SLSKeyName', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + operator: 'string', + SLSKeyName: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigFilter extends $dara.Model { + /** + * @remarks + * The conditions that are used to filter logs imported from Log Service. + */ + filters?: DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigFilterFilters[]; + /** + * @remarks + * The relationship between multiple filter conditions. Valid values: + * + * * and (default): Logs are processed only if all filter conditions are met. + * * or: Logs are processed if one of the filter conditions is met. + * + * @example + * and + */ + relation?: string; + static names(): { [key: string]: string } { + return { + filters: 'Filters', + relation: 'Relation', + }; + } + + static types(): { [key: string]: any } { + return { + filters: { 'type': 'array', 'itemType': DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigFilterFilters }, + relation: 'string', + }; + } + + validate() { + if(Array.isArray(this.filters)) { + $dara.Model.validateArray(this.filters); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigGroupBy extends $dara.Model { + /** + * @remarks + * The alias of the aggregation result. + * + * @example + * ApiResult + */ + alias?: string; + /** + * @remarks + * The name of the key that is used to aggregate logs imported from Log Service. + * + * @example + * code + */ + SLSKeyName?: string; + static names(): { [key: string]: string } { + return { + alias: 'Alias', + SLSKeyName: 'SLSKeyName', + }; + } + + static types(): { [key: string]: any } { + return { + alias: 'string', + SLSKeyName: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigStatistics extends $dara.Model { + /** + * @remarks + * The alias of the aggregation result. + * + * @example + * level_count + */ + alias?: string; + /** + * @remarks + * The function that is used to aggregate log data within a statistical period. Valid values: + * + * * count: counts the number. + * * sum: calculates the total value. + * * avg: calculates the average value. + * * max: calculates the maximum value. + * * min: calculates the minimum value. + * * value: collects samples within the statistical period. + * * countps: calculates the average number of the specified field per second by using the following formula: Counted number of the specified field/Total number of seconds within the statistical period. + * * sumps: calculates the average number of the specified field per second by using the following formula: Total value of the specified field/Total number of seconds within the statistical period. + * * distinct: counts the number of logs where the specified field appears within the statistical period. + * * distribution: counts the number of logs that meet a specified condition within the statistical period. + * * percentile: sorts the values of the specified field in ascending order, and then returns the value that is at the specified percentile within the statistical period. Example: P50. + * + * @example + * count + */ + function?: string; + /** + * @remarks + * The value of the function that is used to aggregate logs imported from Log Service. + * + * * If the `Function` parameter is set to `distribution`, this parameter indicates the lower limit of the statistical interval. For example, 200 indicates that the number of HTTP requests whose status code is 2XX is calculated. + * * If the `Function` parameter is set to `percentile`, this parameter specifies the percentile at which the expected value is. For example, 0.5 specifies P50. + * + * @example + * 200 + */ + parameter1?: string; + /** + * @remarks + * The value of the function that is used to aggregate logs imported from Log Service. + * + * > This parameter is returned only if the `Function` parameter is set to `distribution`. This parameter indicates the upper limit of the statistical interval. For example, 299 indicates that the number of HTTP requests whose status code is 2XX is calculated. + * + * @example + * 299 + */ + parameter2?: string; + /** + * @remarks + * The name of the key that is used to aggregate logs imported from Log Service. + * + * @example + * name + */ + SLSKeyName?: string; + static names(): { [key: string]: string } { + return { + alias: 'Alias', + function: 'Function', + parameter1: 'Parameter1', + parameter2: 'Parameter2', + SLSKeyName: 'SLSKeyName', + }; + } + + static types(): { [key: string]: any } { + return { + alias: 'string', + function: 'string', + parameter1: 'string', + parameter2: 'string', + SLSKeyName: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfig extends $dara.Model { + /** + * @remarks + * The extended fields that indicate the results of basic operations that are performed on aggregation results. + */ + express?: DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigExpress[]; + /** + * @remarks + * The conditions that are used to filter logs imported from Log Service. + */ + filter?: DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigFilter; + /** + * @remarks + * The dimensions based on which data is aggregated. This parameter is equivalent to the GROUP BY clause in SQL. + */ + groupBy?: DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigGroupBy[]; + /** + * @remarks + * The methods that are used to aggregate logs imported from Log Service. + */ + statistics?: DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigStatistics[]; + static names(): { [key: string]: string } { + return { + express: 'Express', + filter: 'Filter', + groupBy: 'GroupBy', + statistics: 'Statistics', + }; + } + + static types(): { [key: string]: any } { + return { + express: { 'type': 'array', 'itemType': DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigExpress }, + filter: DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigFilter, + groupBy: { 'type': 'array', 'itemType': DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigGroupBy }, + statistics: { 'type': 'array', 'itemType': DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigStatistics }, + }; + } + + validate() { + if(Array.isArray(this.express)) { + $dara.Model.validateArray(this.express); + } + if(this.filter && typeof (this.filter as any).validate === 'function') { + (this.filter as any).validate(); + } + if(Array.isArray(this.groupBy)) { + $dara.Model.validateArray(this.groupBy); + } + if(Array.isArray(this.statistics)) { + $dara.Model.validateArray(this.statistics); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeHybridMonitorTaskListResponseBodyTaskList extends $dara.Model { + /** + * @remarks + * The tags of the metric import task. + */ + attachLabels?: DescribeHybridMonitorTaskListResponseBodyTaskListAttachLabels[]; + /** + * @remarks + * The interval at which the CloudMonitor agent collects host monitoring data. Valid values: + * + * * 15 + * * 30 + * * 60 + * + * Unit: seconds. + * + * @example + * 60 + */ + collectInterval?: number; + /** + * @remarks + * The URL of the destination from which the CloudMonitor agent collects host monitoring data. + * + * @example + * http://localhost + */ + collectTargetEndpoint?: string; + /** + * @remarks + * The relative path from which the CloudMonitor agent collects monitoring data. + * + * @example + * /metrics + */ + collectTargetPath?: string; + /** + * @remarks + * The type of the monitoring data. Valid values: Spring, Tomcat, Nginx, Tengine, JVM, Redis, and MySQL. + * + * @example + * nginx + */ + collectTargetType?: string; + /** + * @remarks + * The timeout period during which the CloudMonitor agent collects host monitoring data. Valid values: + * + * * 0 + * * 15 + * * 30 + * * 60 + * + * Unit: seconds. + * + * @example + * 15 + */ + collectTimout?: number; + /** + * @remarks + * The timestamp when the metric import task was created. + * + * Unit: milliseconds. + * + * @example + * 1639382496000 + */ + createTime?: string; + /** + * @remarks + * The description of the metric import task. + * + * @example + * aliyun + */ + description?: string; + /** + * @remarks + * The additional information of the instance. + * + * @example + * test + */ + extraInfo?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 3607**** + */ + groupId?: string; + /** + * @remarks + * The instances where monitoring data is collected in batches. + */ + instances?: string[]; + /** + * @example + * C:\\UserData\\log\\*.Log + */ + logFilePath?: string; + /** + * @remarks + * The method that is used to aggregate on-premises log data. + * + * @example + * [{"metric": "metric1","filters": [{"column": "filed2","type": "include","values": ["222222"]}],"groupBys": [{"column": "filed3","name": "filed3"}],"calculates": [{"column": "field1","name": "avg","type": "avg"}]},{"metric": "metric2","filters": [{"column": "field1","type": "include","values": ["11111"]}],"groupBys": [{"column": "filed2","name": "filed2"}],"calculates": [{"column": "field1","name": "avg","type": "avg"}]}] + */ + logProcess?: string; + /** + * @remarks + * The sample on-premises log. + * + * @example + * {"logContent":"100.116.134.26 1119 - [13/Aug/2019:16:55:46 +0800] POST metrichub-cn-hongkong.aliyun.com /agent/metrics/putLines 200 0 \\"-\\" \\"127.0.0.1:7001\\" \\"Go-http-client/1.1\\" \\"-\\" \\"-\\" \\"0a98a21a15656865460656276e\\"","addData":{"field1":["1119","1119"],"filed2":["POSTx","POST"],"filed3":["true","200"]}} + */ + logSample?: string; + /** + * @remarks + * The result that is returned after on-premises log data is split based on the specified matching mode. + * + * > The matching modes of on-premises log data include full regex mode, delimiter mode, and JSON mode. + * + * @example + * {"type": "regex","regex": "\\\\d+\\\\.\\\\d+\\\\.\\\\d+\\\\.\\\\d+\\\\s+(\\\\d+)\\\\s+\\\\S+\\\\s+\[\\\\d+/\\\\S+/\\\\d+:\\\\d+:\\\\d+:\\\\d+\\\\s+\\\\+\\\\d+\\\\]\\\\s+(\\\\S+)\\\\s+\\\\S+\\\\s+/\\\\S+/\\\\S+/\\\\S+\\\\s+(\\\\d+)","columns": [{"name": "field1"},{"name": "filed2","translate": {"default": "-","mappings": [{"from": "(\\\\w+)","to": "$1x","type": "regex"}]}},{"name": "filed3","translate": {"default": "-","mappings": [{"from": "NumberRange(100,300)","to": "true","type": "function"}]}}]} + */ + logSplit?: string; + /** + * @remarks + * The conditions that are used to match the instances in the application group. + */ + matchExpress?: DescribeHybridMonitorTaskListResponseBodyTaskListMatchExpress[]; + /** + * @remarks + * The relationship between the conditions that are used to filter metric import tasks. Valid values: + * + * * or + * * and + * + * @example + * or + */ + matchExpressRelation?: string; + /** + * @remarks + * The namespace to which the host belongs. + * + * @example + * aliyun + */ + namespace?: string; + /** + * @remarks + * The network type of the host. Valid values: + * + * * `vpc` + * * `Internet` + * + * @example + * vpc + */ + networkType?: string; + /** + * @remarks + * The configurations of the logs that are imported from Log Service. + * + * @example + * {"express": [],"filter": {"filters": [{"key": "task_type","operator": "=","value": "1"}]},"groupby": [{"alias": "isp","key": "isp","sqlKey": "t.`isp`","valueKey": "isp"}],"interval": 60,"labels": [{"name": "__cms_app__","type": 0,"value": "sitemonitor"}],"statistics": [{"alias": "http_dns_time_avg","function": "avg","key": "http_dns_time"}]} + */ + SLSProcess?: string; + /** + * @remarks + * The configurations of the logs that are imported from Log Service. + * + * > This parameter is returned only if the `TaskType` parameter is set to `aliyun_sls`. + */ + SLSProcessConfig?: DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfig; + /** + * @remarks + * The ID of the member account. + * + * > This parameter is displayed only when you call this operation by using a management account. + * + * @example + * 120886317861**** + */ + targetUserId?: string; + /** + * @remarks + * The ID of the metric import task. + * + * @example + * 36**** + */ + taskId?: string; + /** + * @remarks + * The name of the metric import task. + * + * @example + * aliyun_task + */ + taskName?: string; + /** + * @remarks + * The type of the metric import task. Valid values: + * + * * aliyun_fc: metric import tasks for Alibaba Cloud services + * * aliyun_sls: metrics for logs imported from Log Service + * + * @example + * aliyun_sls + */ + taskType?: string; + /** + * @remarks + * The region where the host resides. + * + * @example + * cn-hangzhou + */ + uploadRegion?: string; + /** + * @remarks + * The configuration file of the Alibaba Cloud service that you want to monitor by using Hybrid Cloud Monitoring. + * + * * namespace: the namespace of the Alibaba Cloud service. + * * metric_list: the metrics of the Alibaba Cloud service. + * + * @example + * products:- namespace: acs_ecs_dashboard metric_info: - metric_list: - cpu_total + */ + YARMConfig?: string; + static names(): { [key: string]: string } { + return { + attachLabels: 'AttachLabels', + collectInterval: 'CollectInterval', + collectTargetEndpoint: 'CollectTargetEndpoint', + collectTargetPath: 'CollectTargetPath', + collectTargetType: 'CollectTargetType', + collectTimout: 'CollectTimout', + createTime: 'CreateTime', + description: 'Description', + extraInfo: 'ExtraInfo', + groupId: 'GroupId', + instances: 'Instances', + logFilePath: 'LogFilePath', + logProcess: 'LogProcess', + logSample: 'LogSample', + logSplit: 'LogSplit', + matchExpress: 'MatchExpress', + matchExpressRelation: 'MatchExpressRelation', + namespace: 'Namespace', + networkType: 'NetworkType', + SLSProcess: 'SLSProcess', + SLSProcessConfig: 'SLSProcessConfig', + targetUserId: 'TargetUserId', + taskId: 'TaskId', + taskName: 'TaskName', + taskType: 'TaskType', + uploadRegion: 'UploadRegion', + YARMConfig: 'YARMConfig', + }; + } + + static types(): { [key: string]: any } { + return { + attachLabels: { 'type': 'array', 'itemType': DescribeHybridMonitorTaskListResponseBodyTaskListAttachLabels }, + collectInterval: 'number', + collectTargetEndpoint: 'string', + collectTargetPath: 'string', + collectTargetType: 'string', + collectTimout: 'number', + createTime: 'string', + description: 'string', + extraInfo: 'string', + groupId: 'string', + instances: { 'type': 'array', 'itemType': 'string' }, + logFilePath: 'string', + logProcess: 'string', + logSample: 'string', + logSplit: 'string', + matchExpress: { 'type': 'array', 'itemType': DescribeHybridMonitorTaskListResponseBodyTaskListMatchExpress }, + matchExpressRelation: 'string', + namespace: 'string', + networkType: 'string', + SLSProcess: 'string', + SLSProcessConfig: DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfig, + targetUserId: 'string', + taskId: 'string', + taskName: 'string', + taskType: 'string', + uploadRegion: 'string', + YARMConfig: 'string', + }; + } + + validate() { + if(Array.isArray(this.attachLabels)) { + $dara.Model.validateArray(this.attachLabels); + } + if(Array.isArray(this.instances)) { + $dara.Model.validateArray(this.instances); + } + if(Array.isArray(this.matchExpress)) { + $dara.Model.validateArray(this.matchExpress); + } + if(this.SLSProcessConfig && typeof (this.SLSProcessConfig as any).validate === 'function') { + (this.SLSProcessConfig as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeHybridMonitorTaskListResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * * If the request was successful, the value `successful` is returned. + * * If the request failed, an error message is returned. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The page number. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * @example + * 10 + */ + pageSize?: number; + /** + * @remarks + * The request ID. + * + * @example + * 11145B76-566A-5D80-A8A3-FAD98D310079 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + /** + * @remarks + * The metric import tasks. + */ + taskList?: DescribeHybridMonitorTaskListResponseBodyTaskList[]; + /** + * @remarks + * The total number of entries returned. + * + * @example + * 1 + */ + total?: number; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + requestId: 'RequestId', + success: 'Success', + taskList: 'TaskList', + total: 'Total', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + pageNumber: 'number', + pageSize: 'number', + requestId: 'string', + success: 'string', + taskList: { 'type': 'array', 'itemType': DescribeHybridMonitorTaskListResponseBodyTaskList }, + total: 'number', + }; + } + + validate() { + if(Array.isArray(this.taskList)) { + $dara.Model.validateArray(this.taskList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeLogMonitorAttributeRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeLogMonitorAttributeRequest.ts new file mode 100644 index 0000000..7d310a4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeLogMonitorAttributeRequest.ts @@ -0,0 +1,41 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeLogMonitorAttributeRequest extends $dara.Model { + /** + * @remarks + * The metric name. Exact match is supported. + * + * For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * cpu_total + */ + metricName?: string; + regionId?: string; + static names(): { [key: string]: string } { + return { + metricName: 'MetricName', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + metricName: 'string', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeLogMonitorAttributeResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeLogMonitorAttributeResponse.ts new file mode 100644 index 0000000..003565e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeLogMonitorAttributeResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeLogMonitorAttributeResponseBody } from "./DescribeLogMonitorAttributeResponseBody"; + + +export class DescribeLogMonitorAttributeResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeLogMonitorAttributeResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeLogMonitorAttributeResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeLogMonitorAttributeResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeLogMonitorAttributeResponseBody.ts new file mode 100644 index 0000000..cec0797 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeLogMonitorAttributeResponseBody.ts @@ -0,0 +1,366 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeLogMonitorAttributeResponseBodyLogMonitorAggregates extends $dara.Model { + /** + * @remarks + * The alias of the field. + * + * @example + * HostName + */ + alias?: string; + /** + * @remarks + * The name of the field in logs. + * + * @example + * hostName + */ + fieldName?: string; + /** + * @remarks + * The function that is used to aggregate the monitoring data of logs within a statistical period. Valid values: + * + * * count: counts the number + * * sum: calculates the total value + * * avg: calculates the average value + * * max: calculates the maximum value + * * min: calculates the minimum value + * * countps: calculates the number of values of the specified field divided by the total number of seconds within a statistical period + * * sumps: calculates the sum of the values of the specified field divided by the total number of seconds within a statistical period + * * distinct: calculates the number of unique values of the specified field within a statistical period + * + * @example + * count + */ + function?: string; + /** + * @remarks + * The maximum value. + * + * @example + * 10 + */ + max?: string; + /** + * @remarks + * The minimum value. + * + * @example + * 0 + */ + min?: string; + static names(): { [key: string]: string } { + return { + alias: 'Alias', + fieldName: 'FieldName', + function: 'Function', + max: 'Max', + min: 'Min', + }; + } + + static types(): { [key: string]: any } { + return { + alias: 'string', + fieldName: 'string', + function: 'string', + max: 'string', + min: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeLogMonitorAttributeResponseBodyLogMonitorValueFilter extends $dara.Model { + /** + * @remarks + * The name of the log field used for matching in the filter condition. + * + * @example + * hostName + */ + key?: string; + /** + * @remarks + * The method that is used to match the field value. Valid values: + * + * * `contain`: contains + * * `notContain`: does not contain + * * `>`: greater than + * * `<`: less than + * * `>=`: greater than or equal to + * * `<=`: less than or equal to + * + * @example + * contain + */ + operator?: string; + /** + * @remarks + * The field value to be matched in the filter condition. + * + * @example + * portal + */ + value?: string; + static names(): { [key: string]: string } { + return { + key: 'Key', + operator: 'Operator', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + key: 'string', + operator: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeLogMonitorAttributeResponseBodyLogMonitor extends $dara.Model { + /** + * @remarks + * The aggregation logic. + */ + aggregates?: DescribeLogMonitorAttributeResponseBodyLogMonitorAggregates[]; + /** + * @remarks + * The time when the metric was created. + * + * This value is a UNIX timestamp that represents the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * @example + * 1547431398000 + */ + gmtCreate?: number; + /** + * @remarks + * The ID of the application group. + * + * @example + * 12345 + */ + groupId?: number; + groupbys?: string[]; + /** + * @remarks + * The ID of the log. + * + * @example + * 1234 + */ + logId?: number; + /** + * @remarks + * The extended field. The extended field allows you to perform basic operations on the aggregation results. + * + * For example, if you have calculated TotalNumber and 5XXNumber by aggregating the data. TotalNumber indicates the total number of HTTP requests, and 5XXNumber indicates the number of HTTP requests whose status code is greater than 499. You can calculate the server error rate by adding the following formula to the extended field: 5XXNumber/TotalNumber\\*100. + * + * @example + * {"extend":{"errorPercent":"5XXNumber/TotalNumber*100"}} + */ + metricExpress?: string; + /** + * @remarks + * The metric name. For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The name of the Simple Log Service Logstore. + * + * @example + * test-logstore + */ + slsLogstore?: string; + /** + * @remarks + * The name of the SLS project. + * + * @example + * test-project + */ + slsProject?: string; + /** + * @remarks + * The ID of the region where the Simple Log Service (SLS) Logstore resides. + * + * @example + * cn-hangzhou + */ + slsRegionId?: string; + tumblingwindows?: string[]; + /** + * @remarks + * The condition that is used to filter logs. The ValueFilter and ValueFilterRelation parameters are used in pair. The filter condition is equivalent to the WHERE clause in SQL statements. + * + * If no filter condition is specified, all logs are processed. For example, logs contain the Level and Error fields. If you need to calculate the number of times that logs of the Error level appear every minute, you can set the filter condition to Level=Error and count the number of logs that meet this condition. + */ + valueFilter?: DescribeLogMonitorAttributeResponseBodyLogMonitorValueFilter[]; + /** + * @remarks + * The logical operator that is used between log filter conditions. The ValueFilter and ValueFilterRelation parameters must be used in pair. Valid values: + * + * * and + * * or + * + * @example + * and + */ + valueFilterRelation?: string; + static names(): { [key: string]: string } { + return { + aggregates: 'Aggregates', + gmtCreate: 'GmtCreate', + groupId: 'GroupId', + groupbys: 'Groupbys', + logId: 'LogId', + metricExpress: 'MetricExpress', + metricName: 'MetricName', + slsLogstore: 'SlsLogstore', + slsProject: 'SlsProject', + slsRegionId: 'SlsRegionId', + tumblingwindows: 'Tumblingwindows', + valueFilter: 'ValueFilter', + valueFilterRelation: 'ValueFilterRelation', + }; + } + + static types(): { [key: string]: any } { + return { + aggregates: { 'type': 'array', 'itemType': DescribeLogMonitorAttributeResponseBodyLogMonitorAggregates }, + gmtCreate: 'number', + groupId: 'number', + groupbys: { 'type': 'array', 'itemType': 'string' }, + logId: 'number', + metricExpress: 'string', + metricName: 'string', + slsLogstore: 'string', + slsProject: 'string', + slsRegionId: 'string', + tumblingwindows: { 'type': 'array', 'itemType': 'string' }, + valueFilter: { 'type': 'array', 'itemType': DescribeLogMonitorAttributeResponseBodyLogMonitorValueFilter }, + valueFilterRelation: 'string', + }; + } + + validate() { + if(Array.isArray(this.aggregates)) { + $dara.Model.validateArray(this.aggregates); + } + if(Array.isArray(this.groupbys)) { + $dara.Model.validateArray(this.groupbys); + } + if(Array.isArray(this.tumblingwindows)) { + $dara.Model.validateArray(this.tumblingwindows); + } + if(Array.isArray(this.valueFilter)) { + $dara.Model.validateArray(this.valueFilter); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeLogMonitorAttributeResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The details of the log monitoring metric. + */ + logMonitor?: DescribeLogMonitorAttributeResponseBodyLogMonitor; + /** + * @remarks + * The returned message. If the request was successful, a success message is returned. If the request failed, an error message is returned. + * + * @example + * successful + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * C6718537-E673-4A58-8EE1-24B8B38C7AAE + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + logMonitor: 'LogMonitor', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + logMonitor: DescribeLogMonitorAttributeResponseBodyLogMonitor, + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + if(this.logMonitor && typeof (this.logMonitor as any).validate === 'function') { + (this.logMonitor as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeLogMonitorListRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeLogMonitorListRequest.ts new file mode 100644 index 0000000..c78ce44 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeLogMonitorListRequest.ts @@ -0,0 +1,67 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeLogMonitorListRequest extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * @example + * 123456 + */ + groupId?: number; + /** + * @remarks + * The page number. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. Default value: 10. + * + * @example + * 10 + */ + pageSize?: number; + regionId?: string; + /** + * @remarks + * The keyword that is used to search for log monitoring metrics. Fuzzy match is supported. + * + * @example + * test + */ + searchValue?: string; + static names(): { [key: string]: string } { + return { + groupId: 'GroupId', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + searchValue: 'SearchValue', + }; + } + + static types(): { [key: string]: any } { + return { + groupId: 'number', + pageNumber: 'number', + pageSize: 'number', + regionId: 'string', + searchValue: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeLogMonitorListResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeLogMonitorListResponse.ts new file mode 100644 index 0000000..284e0c6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeLogMonitorListResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeLogMonitorListResponseBody } from "./DescribeLogMonitorListResponseBody"; + + +export class DescribeLogMonitorListResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeLogMonitorListResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeLogMonitorListResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeLogMonitorListResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeLogMonitorListResponseBody.ts new file mode 100644 index 0000000..cd4baa6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeLogMonitorListResponseBody.ts @@ -0,0 +1,281 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeLogMonitorListResponseBodyLogMonitorListValueFilter extends $dara.Model { + /** + * @remarks + * The name of the log field used for matching in the filter condition. + * + * @example + * hostName + */ + key?: string; + /** + * @remarks + * The method that is used to match the field value. Valid values: + * + * * contain: contains + * * notContain: does not contain + * * `>`: greater than + * * `<`: less than + * * `>=`: greater than or equal to + * * `<=`: less than or equal to + * + * @example + * contain + */ + operator?: string; + /** + * @remarks + * The field value to be matched in the filter condition. + * + * @example + * portal + */ + value?: string; + static names(): { [key: string]: string } { + return { + key: 'Key', + operator: 'Operator', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + key: 'string', + operator: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeLogMonitorListResponseBodyLogMonitorList extends $dara.Model { + /** + * @remarks + * The time when the log monitoring metric was created. + * + * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * @example + * 1577766395000 + */ + gmtCreate?: number; + /** + * @remarks + * The ID of the application group. + * + * @example + * 12345 + */ + groupId?: number; + /** + * @remarks + * The ID of the log monitoring metric. + * + * @example + * 12345 + */ + logId?: number; + /** + * @remarks + * The metric name. For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The name of the Simple Log Service (SLS) Logstore. + * + * @example + * testSlS**** + */ + slsLogstore?: string; + /** + * @remarks + * The name of the SLS project. + * + * @example + * sls-project-test**** + */ + slsProject?: string; + /** + * @remarks + * The ID of the region where the SLS Logstore resides. + * + * @example + * cn-hangzhou + */ + slsRegionId?: string; + /** + * @remarks + * The condition that is used to filter logs. The ValueFilter and ValueFilterRelation parameters are used in pair. The filter condition is equivalent to the WHERE clause in SQL statements. If no filter condition is specified, all logs are processed. For example, logs contain the Level and Error fields. If you need to calculate the number of times that logs of the Error level appear every minute, you can set the filter condition to Level=Error and count the number of logs that meet this condition. + */ + valueFilter?: DescribeLogMonitorListResponseBodyLogMonitorListValueFilter[]; + /** + * @remarks + * The logical operator that is used between log filter conditions. The ValueFilter and ValueFilterRelation parameters are used in pair. Valid values: + * + * * and + * * or + * + * @example + * and + */ + valueFilterRelation?: string; + static names(): { [key: string]: string } { + return { + gmtCreate: 'GmtCreate', + groupId: 'GroupId', + logId: 'LogId', + metricName: 'MetricName', + slsLogstore: 'SlsLogstore', + slsProject: 'SlsProject', + slsRegionId: 'SlsRegionId', + valueFilter: 'ValueFilter', + valueFilterRelation: 'ValueFilterRelation', + }; + } + + static types(): { [key: string]: any } { + return { + gmtCreate: 'number', + groupId: 'number', + logId: 'number', + metricName: 'string', + slsLogstore: 'string', + slsProject: 'string', + slsRegionId: 'string', + valueFilter: { 'type': 'array', 'itemType': DescribeLogMonitorListResponseBodyLogMonitorListValueFilter }, + valueFilterRelation: 'string', + }; + } + + validate() { + if(Array.isArray(this.valueFilter)) { + $dara.Model.validateArray(this.valueFilter); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeLogMonitorListResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The log monitoring metrics. + */ + logMonitorList?: DescribeLogMonitorListResponseBodyLogMonitorList[]; + /** + * @remarks + * The returned message. + * + * @example + * successful + */ + message?: string; + /** + * @remarks + * The page number. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * @example + * 10 + */ + pageSize?: number; + /** + * @remarks + * The request ID. + * + * @example + * 01E90080-4300-4FAA-B9AE-161956BC350D + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The total number of entries returned. + * + * @example + * 15 + */ + total?: number; + static names(): { [key: string]: string } { + return { + code: 'Code', + logMonitorList: 'LogMonitorList', + message: 'Message', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + requestId: 'RequestId', + success: 'Success', + total: 'Total', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + logMonitorList: { 'type': 'array', 'itemType': DescribeLogMonitorListResponseBodyLogMonitorList }, + message: 'string', + pageNumber: 'number', + pageSize: 'number', + requestId: 'string', + success: 'boolean', + total: 'number', + }; + } + + validate() { + if(Array.isArray(this.logMonitorList)) { + $dara.Model.validateArray(this.logMonitorList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricDataRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricDataRequest.ts new file mode 100644 index 0000000..944396c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricDataRequest.ts @@ -0,0 +1,169 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMetricDataRequest extends $dara.Model { + /** + * @remarks + * The dimensions based on which the resources are queried. + * + * Set the value to a collection of key-value pairs. A typical key-value pair is `instanceId:i-2ze2d6j5uhg20x47****`. + * + * > You can query a maximum of 50 instances in a single request. + * + * @example + * [{"instanceId": "i-abcdefgh12****"}] + */ + dimensions?: string; + /** + * @remarks + * The end of the time range to query monitoring data. + * + * * If the `StartTime` and `EndTime` parameters are not specified, the monitoring data of the last statistical period is queried.`` + * + * * If the `StartTime` and `EndTime` parameters are specified, the monitoring data of the last statistical period in the specified time range is queried.```` The following examples demonstrate how to determine the period in which monitoring data is queried: + * + * * If you set the `Period` parameter to 15, the specified time range must be less than or equal to 20 minutes. For example, if you set the StartTime parameter to 2021-05-08 08:10:00 and the EndTime parameter to 2021-05-08 08:30:00, the monitoring data of the last 15 seconds in the time range is queried. + * * If you set the `Period` to 60 or 900, the specified time range must be less than or equal to 2 hours. For example, if you set the Period parameter to 60, the StartTime parameter to 2021-05-08 08:00:00, and the EndTime parameter to 2021-05-08 10:00:00, the monitoring data of the last 60 seconds in the time range is queried. + * * If you set the `Period` parameter to 3600, the specified time range must be less than or equal to 2 days. For example, if you set the StartTime parameter to 2021-05-08 08:00:00 and the EndTime parameter to 2021-05-10 08:00:00, the monitoring data of the last 3,600 seconds in the time range is queried. + * + * The following formats are supported: + * + * * UNIX timestamp: the number of milliseconds that have elapsed since 00:00:00 UTC on Thursday, January 1, 1970. + * * UTC time: the UTC time that follows the YYYY-MM-DDThh:mm:ssZ format. + * + * > We recommend that you use UNIX timestamps to prevent time zone-related issues. + * + * @example + * 1618368960000 + */ + endTime?: string; + /** + * @remarks + * The expression that is used to compute the query results in real time. + * + * > Only the `groupby` expression is supported. This expression is similar to the `GROUP BY` statement that is used in databases. + * + * @example + * {"groupby":["userId","instanceId"]} + */ + express?: string; + /** + * @remarks + * The number of entries per page. + * + * Default value: 1000. + * + * > The maximum value of the Length parameter in a request is 1440. + * + * @example + * 1000 + */ + length?: string; + /** + * @remarks + * The metric that is used to monitor the cloud service. + * + * For more information about the metrics of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * cpu_idle + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * For more information about the namespaces of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The statistical period of the metric. + * + * Valid values: 15, 60, 900, and 3600. + * + * Unit: seconds. + * + * > + * + * * If this parameter is not specified, monitoring data is queried based on the period in which metric values are reported. + * + * * For more information about the statistical period of a metric that is specified by the `MetricName` parameter, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * 60 + */ + period?: string; + regionId?: string; + /** + * @remarks + * The start of the time range to query monitoring data. + * + * * If the `StartTime` and `EndTime` parameters are not specified, the monitoring data of the last statistical period is queried.`` + * + * * If the `StartTime` and `EndTime` parameters are specified, the monitoring data of the last statistical period in the specified time range is queried.```` The following examples demonstrate how to determine the period in which monitoring data is queried: + * + * * If you set the `Period` parameter to 15, the specified time range must be less than or equal to 20 minutes. For example, if you set the StartTime parameter to 2021-05-08 08:10:00 and the EndTime parameter to 2021-05-08 08:30:00, the monitoring data of the last 15 seconds in the time range is queried. + * * If you set the `Period` to 60 or 900, the specified time range must be less than or equal to 2 hours. For example, if you set the Period parameter to 60, the StartTime parameter to 2021-05-08 08:00:00, and the EndTime parameter to 2021-05-08 10:00:00, the monitoring data of the last 60 seconds in the time range is queried. + * * If you set the `Period` parameter to 3600, the specified time range must be less than or equal to 2 days. For example, if you set the StartTime parameter to 2021-05-08 08:00:00 and the EndTime parameter to 2021-05-10 08:00:00, the monitoring data of the last 3,600 seconds in the time range is queried. + * + * The following formats are supported: + * + * * UNIX timestamp: the number of milliseconds that have elapsed since 00:00:00 UTC on Thursday, January 1, 1970. + * * UTC time: the UTC time that follows the YYYY-MM-DDThh:mm:ssZ format. + * + * > + * + * * You must set the `StartTime` parameter to a point in time that is later than 00:00:00 UTC on Thursday, January 1, 1970. Otherwise, this parameter is invalid. + * + * * We recommend that you use UNIX timestamps to prevent time zone-related issues. + * + * @example + * 1618368900000 + */ + startTime?: string; + static names(): { [key: string]: string } { + return { + dimensions: 'Dimensions', + endTime: 'EndTime', + express: 'Express', + length: 'Length', + metricName: 'MetricName', + namespace: 'Namespace', + period: 'Period', + regionId: 'RegionId', + startTime: 'StartTime', + }; + } + + static types(): { [key: string]: any } { + return { + dimensions: 'string', + endTime: 'string', + express: 'string', + length: 'string', + metricName: 'string', + namespace: 'string', + period: 'string', + regionId: 'string', + startTime: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricDataResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricDataResponse.ts new file mode 100644 index 0000000..7708e66 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricDataResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeMetricDataResponseBody } from "./DescribeMetricDataResponseBody"; + + +export class DescribeMetricDataResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeMetricDataResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMetricDataResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricDataResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricDataResponseBody.ts new file mode 100644 index 0000000..468a4cd --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricDataResponseBody.ts @@ -0,0 +1,85 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMetricDataResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The monitoring data. The value includes the following fields: + * + * * `timestamp`: the time when the alert was triggered. + * * `userId`: the ID of the user for which the alert was triggered. + * * `instanceId`: the ID of the instance for which the alert was triggered. + * * `Minimum`, `Average`, and `Maximum`: the aggregation methods. + * + * @example + * [{\\"timestamp\\":1618368900000,\\"Average\\":95.8291666666667,\\"Minimum\\":65.48,\\"Maximum\\":100.0},{\\"timestamp\\":1618368960000,\\"Average\\":95.8683333333333,\\"Minimum\\":67.84,\\"Maximum\\":100.0}] + */ + datapoints?: string; + /** + * @remarks + * The returned message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The statistical period of the monitoring data. + * + * Valid values: 15, 60, 900, and 3600. + * + * Unit: seconds. + * + * @example + * 60 + */ + period?: string; + /** + * @remarks + * The request ID. + * + * @example + * 6A5F022D-AC7C-460E-94AE-B9E75083D027 + */ + requestId?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + datapoints: 'Datapoints', + message: 'Message', + period: 'Period', + requestId: 'RequestId', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + datapoints: 'string', + message: 'string', + period: 'string', + requestId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricLastRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricLastRequest.ts new file mode 100644 index 0000000..05ae9a2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricLastRequest.ts @@ -0,0 +1,148 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMetricLastRequest extends $dara.Model { + /** + * @remarks + * The monitoring dimensions of the specified resource. + * + * Set the value to a collection of `key:value` pairs. Example: `{"userId":"120886317861****"}` or `{"instanceId":"i-2ze2d6j5uhg20x47****"}`. + * + * > You can query a maximum of 50 instances in each request. + * + * @example + * [{"instanceId":"i-abcdefgh12****"}] + */ + dimensions?: string; + /** + * @remarks + * The end of the time range to query monitoring data. + * + * * For second-level data, the start time is obtained by comparing the time that is specified by the StartTime parameter and 20 minutes earlier of the time that is specified by the EndTime parameter. The earlier one of the compared points in time is used as the start time. + * * For minute-level data, the start time is obtained by comparing the time that is specified by the StartTime parameter and 2 hours earlier of the time that is specified by the EndTime parameter. The earlier one of the compared points in time is used as the start time. + * * For hour-level data, the start time is obtained by comparing the time that is specified by the StartTime parameter and two days earlier of the time that is specified by the EndTime parameter. The earlier one of the compared points in time is used as the start time. + * + * @example + * 2019-01-31 10:10:00 + */ + endTime?: string; + /** + * @remarks + * The expression that is used to calculate the query results in real time. + * + * @example + * {"groupby":["userId","instanceId"]} + */ + express?: string; + /** + * @remarks + * The number of entries per page. + * + * Default value: 1000. This value indicates that a maximum of 1,000 entries of monitoring data can be returned on each page. + * + * > The maximum value of the Length parameter for each request is 1440. + * + * @example + * 1000 + */ + length?: string; + /** + * @remarks + * The metric that is used to monitor the cloud service. + * + * For more information about metric names, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * CPUUtilization + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * For more information about the namespaces of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The pagination token. + * + * * If the number of results exceeds the maximum number of entries allowed on a single page, a pagination token is returned. + * * This token can be used as an input parameter to obtain the next page of results. If all results are obtained, no token is returned. + * + * @example + * 15761432850009dd70bb64cff1f0fff6c0b08ffff073be5fb1e785e2b020f7fed9b5e137bd810a6d6cff5ae**** + */ + nextToken?: string; + /** + * @remarks + * The statistical period of the monitoring data. + * + * Valid values: 15, 60, 900, and 3600. + * + * Unit: seconds. + * + * > + * + * * If this parameter is not specified, monitoring data is queried based on the period in which metric values are reported. The statistical period of metrics (`MetricName`) varies for each cloud service. The statistical period of metrics is displayed in the `MinPeriods` column on the **Metrics** page for each cloud service. For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * 60 + */ + period?: string; + regionId?: string; + /** + * @remarks + * The start of the time range to query monitoring data. + * + * @example + * 2019-01-31 10:00:00 + */ + startTime?: string; + static names(): { [key: string]: string } { + return { + dimensions: 'Dimensions', + endTime: 'EndTime', + express: 'Express', + length: 'Length', + metricName: 'MetricName', + namespace: 'Namespace', + nextToken: 'NextToken', + period: 'Period', + regionId: 'RegionId', + startTime: 'StartTime', + }; + } + + static types(): { [key: string]: any } { + return { + dimensions: 'string', + endTime: 'string', + express: 'string', + length: 'string', + metricName: 'string', + namespace: 'string', + nextToken: 'string', + period: 'string', + regionId: 'string', + startTime: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricLastResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricLastResponse.ts new file mode 100644 index 0000000..56d1179 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricLastResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeMetricLastResponseBody } from "./DescribeMetricLastResponseBody"; + + +export class DescribeMetricLastResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeMetricLastResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMetricLastResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricLastResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricLastResponseBody.ts new file mode 100644 index 0000000..4190887 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricLastResponseBody.ts @@ -0,0 +1,101 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMetricLastResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The monitoring data. + * + * @example + * [{"timestamp":1548777660000,"userId":"123456789876****","instanceId":"i-abcdefgh12****","Minimum":93.1,"Average":99.52,"Maximum":100}] + */ + datapoints?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The pagination token. + * + * @example + * xxxxxx + */ + nextToken?: string; + /** + * @remarks + * The time interval. + * + * Unit: seconds. + * + * @example + * 60 + */ + period?: string; + /** + * @remarks + * The request ID. + * + * @example + * 021472A6-25E3-4094-8D00-BA4B6A5486C3 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + datapoints: 'Datapoints', + message: 'Message', + nextToken: 'NextToken', + period: 'Period', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + datapoints: 'string', + message: 'string', + nextToken: 'string', + period: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricListRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricListRequest.ts new file mode 100644 index 0000000..7f27373 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricListRequest.ts @@ -0,0 +1,149 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMetricListRequest extends $dara.Model { + /** + * @remarks + * The dimensions that specify the resources whose monitoring data you want to query. + * + * Set the value to a collection of key-value pairs. A typical key-value pair is `instanceId:i-2ze2d6j5uhg20x47****`. + * + * > You can query a maximum of 50 instances in a single request. + * + * @example + * [{"instanceId": "i-abcdefgh12****"}] + */ + dimensions?: string; + /** + * @remarks + * The end of the time range to query. The following formats are supported: + * + * * UNIX timestamp: the number of milliseconds that have elapsed since 00:00:00 Thursday, January 1, 1970 + * * UTC time: the UTC time that follows the YYYY-MM-DDThh:mm:ssZ format + * + * @example + * 2019-01-30 00:10:00 + */ + endTime?: string; + /** + * @remarks + * The expression that is used to compute the query results in real time. + * + * > Only the groupby expression is supported. This expression is similar to the GROUP BY statement that is used in databases. + * + * @example + * {"groupby":["userId","instanceId"]} + */ + express?: string; + /** + * @remarks + * The number of entries to return on each page. + * + * > The maximum value of the Length parameter in a request is 1440. + * + * @example + * 1000 + */ + length?: string; + /** + * @remarks + * The name of the metric. + * + * For more information about metric names, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * cpu_idle + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. Format: acs_service name. + * + * For more information about the namespaces of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The paging token. + * + * > If this parameter is not specified, the data on the first page is returned. A return value other than Null of this parameter indicates that not all entries have been returned. You can use this value as an input parameter to obtain entries on the next page. The value Null indicates that all query results have been returned. + * + * @example + * 15761485350009dd70bb64cff1f0fff750b08ffff073be5fb1e785e2b020f1a949d5ea14aea7fed82f01dd8**** + */ + nextToken?: string; + /** + * @remarks + * The interval at which the monitoring data is queried. + * + * Valid values: 60, 300, and 900. + * + * Unit: seconds. + * + * > Configure this parameter based on your business scenario. + * + * @example + * 60 + */ + period?: string; + regionId?: string; + /** + * @remarks + * The beginning of the time range to query. The following formats are supported: + * + * * UNIX timestamp: the number of milliseconds that have elapsed since 00:00:00 Thursday, January 1, 1970 + * * UTC time: the UTC time that follows the YYYY-MM-DDThh:mm:ssZ format + * + * > The specified period includes the end time and excludes the start time. The start time must be earlier than the end time. + * + * @example + * 2019-01-30 00:00:00 + */ + startTime?: string; + static names(): { [key: string]: string } { + return { + dimensions: 'Dimensions', + endTime: 'EndTime', + express: 'Express', + length: 'Length', + metricName: 'MetricName', + namespace: 'Namespace', + nextToken: 'NextToken', + period: 'Period', + regionId: 'RegionId', + startTime: 'StartTime', + }; + } + + static types(): { [key: string]: any } { + return { + dimensions: 'string', + endTime: 'string', + express: 'string', + length: 'string', + metricName: 'string', + namespace: 'string', + nextToken: 'string', + period: 'string', + regionId: 'string', + startTime: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricListResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricListResponse.ts new file mode 100644 index 0000000..3e705c6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricListResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeMetricListResponseBody } from "./DescribeMetricListResponseBody"; + + +export class DescribeMetricListResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeMetricListResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMetricListResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricListResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricListResponseBody.ts new file mode 100644 index 0000000..d94054a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricListResponseBody.ts @@ -0,0 +1,99 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMetricListResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The monitoring data. + * + * @example + * [{"timestamp":1548777660000,"userId":"120886317861****","instanceId":"i-abc","Minimum":9.92,"Average":9.92,"Maximum":9.92}] + */ + datapoints?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The paging token. + * + * @example + * 15761441850009dd70bb64cff1f0fff6d0b08ffff073be5fb1e785e2b020f7fed9b5e137bd810a6d6cff5ae**** + */ + nextToken?: string; + /** + * @remarks + * The interval at which the monitoring data is queried. Unit: seconds. Valid values: 60, 300, and 900. + * + * @example + * 60 + */ + period?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * 3121AE7D-4AFF-4C25-8F1D-C8226EBB1F42 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call was successful. Valid values: + * + * * true: The call was successful. + * * false: The call failed. + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + datapoints: 'Datapoints', + message: 'Message', + nextToken: 'NextToken', + period: 'Period', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + datapoints: 'string', + message: 'string', + nextToken: 'string', + period: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricMetaListRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricMetaListRequest.ts new file mode 100644 index 0000000..35b67fb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricMetaListRequest.ts @@ -0,0 +1,85 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMetricMetaListRequest extends $dara.Model { + /** + * @remarks + * The tags for filtering metrics. Specify a JSON string. + * + * Format: ` [{"name":"tag key","value":"tag value"},{"name":"tag key","value":"tag value"}] `. The following tags are available: + * + * * metricCategory: the category of the metric. + * * alertEnable: specifies whether to report alerts for the metric. + * * alertUnit: the unit of the metric in the alerts. + * * unitFactor: the factor for metric unit conversion. + * * minAlertPeriod: the minimum interval at which the alert is reported. + * * productCategory: the category of the service. + * + * @example + * [{"name":"productCategory","value":"kvstore_old"}] + */ + labels?: string; + /** + * @remarks + * The metric name. For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * CPUUtilization + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * For more information about the namespaces of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * acs_kvstore + */ + namespace?: string; + /** + * @remarks + * The page number. Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. Default value: 30. + * + * @example + * 30 + */ + pageSize?: number; + static names(): { [key: string]: string } { + return { + labels: 'Labels', + metricName: 'MetricName', + namespace: 'Namespace', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + }; + } + + static types(): { [key: string]: any } { + return { + labels: 'string', + metricName: 'string', + namespace: 'string', + pageNumber: 'number', + pageSize: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricMetaListResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricMetaListResponse.ts new file mode 100644 index 0000000..3800807 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricMetaListResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeMetricMetaListResponseBody } from "./DescribeMetricMetaListResponseBody"; + + +export class DescribeMetricMetaListResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeMetricMetaListResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMetricMetaListResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricMetaListResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricMetaListResponseBody.ts new file mode 100644 index 0000000..c574948 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricMetaListResponseBody.ts @@ -0,0 +1,226 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMetricMetaListResponseBodyResourcesResource extends $dara.Model { + /** + * @remarks + * The metric description. + * + * @example + * CPUUtilization + */ + description?: string; + /** + * @remarks + * The monitoring dimensions of the resource. Multiple monitoring dimensions are separated with commas (,). + * + * @example + * instanceId + */ + dimensions?: string; + /** + * @remarks + * The tags of the metric, including one or more JSON strings. + * + * Format: `[{"name":"tag key","value":"tag value"}]`. The `name` can be repeated. The following tags are available: + * + * * metricCategory: the category of the metric. + * * alertEnable: indicates whether to report alerts for the metric. + * * alertUnit: the unit of the metric in the alerts. + * * unitFactor: the factor for metric unit conversion. + * * minAlertPeriod: the minimum interval at which the alert is reported. + * * productCategory: the category of the service. + * + * @example + * [{\\"name\\":\\"alertUnit\\",\\"value\\":\\"Bytes\\"},{\\"name\\":\\"minAlertPeriod\\",\\"value\\":\\"60\\"},{\\"name\\":\\"metricCategory\\",\\"value\\":\\"instanceId\\"},{\\"name\\":\\"instanceType\\",\\"value\\":\\"disaster\\"},{\\"name\\":\\"is_alarm\\",\\"value\\":\\"true\\"},{\\"name\\":\\"productCategory\\",\\"value\\":\\"kvstore_old\\"}] + */ + labels?: string; + /** + * @remarks + * The metric name. + * + * @example + * CPUUtilization + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * @example + * acs_kvstore + */ + namespace?: string; + /** + * @remarks + * The statistical periods of the metric. Multiple statistical periods are separated with commas (,). + * + * Unit: seconds. + * + * @example + * 60,300 + */ + periods?: string; + /** + * @remarks + * The statistical method. Multiple statistical methods are separated with commas (,). + * + * @example + * Average,Minimum,Maximum + */ + statistics?: string; + /** + * @remarks + * The unit of the metric. + * + * @example + * % + */ + unit?: string; + static names(): { [key: string]: string } { + return { + description: 'Description', + dimensions: 'Dimensions', + labels: 'Labels', + metricName: 'MetricName', + namespace: 'Namespace', + periods: 'Periods', + statistics: 'Statistics', + unit: 'Unit', + }; + } + + static types(): { [key: string]: any } { + return { + description: 'string', + dimensions: 'string', + labels: 'string', + metricName: 'string', + namespace: 'string', + periods: 'string', + statistics: 'string', + unit: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMetricMetaListResponseBodyResources extends $dara.Model { + resource?: DescribeMetricMetaListResponseBodyResourcesResource[]; + static names(): { [key: string]: string } { + return { + resource: 'Resource', + }; + } + + static types(): { [key: string]: any } { + return { + resource: { 'type': 'array', 'itemType': DescribeMetricMetaListResponseBodyResourcesResource }, + }; + } + + validate() { + if(Array.isArray(this.resource)) { + $dara.Model.validateArray(this.resource); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMetricMetaListResponseBody extends $dara.Model { + /** + * @remarks + * The response code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 0CCE0AF0-053C-4B13-A583-DC9A85785D49 + */ + requestId?: string; + /** + * @remarks + * The configuration of the metrics in the resources. + */ + resources?: DescribeMetricMetaListResponseBodyResources; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The total number of entries returned. + * + * @example + * 12 + */ + totalCount?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + resources: 'Resources', + success: 'Success', + totalCount: 'TotalCount', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + resources: DescribeMetricMetaListResponseBodyResources, + success: 'boolean', + totalCount: 'string', + }; + } + + validate() { + if(this.resources && typeof (this.resources as any).validate === 'function') { + (this.resources as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleBlackListRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleBlackListRequest.ts new file mode 100644 index 0000000..97c1f5e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleBlackListRequest.ts @@ -0,0 +1,137 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMetricRuleBlackListRequest extends $dara.Model { + /** + * @remarks + * The ID of the blacklist policy. + * + * @example + * ecs + */ + category?: string; + ids?: string[]; + /** + * @remarks + * The IDs of the instances in the blacklist policy. + * + * Valid values of N: 0 to 10. + */ + instanceIds?: string[]; + /** + * @remarks + * The status of the blacklist policy. Valid values: + * + * * true: The blacklist policy is enabled. + * * false: The blacklist policy is disabled. + * + * @example + * true + */ + isEnable?: boolean; + /** + * @remarks + * The name of the blacklist policy. + * + * This parameter supports fuzzy match. + * + * @example + * Blacklist-01 + */ + name?: string; + /** + * @remarks + * The timestamp when the blacklist policy expired. + * + * Unit: milliseconds. + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call was successful. + * + * @example + * DESC + */ + order?: number; + /** + * @remarks + * The name of the metric. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The categories of the Alibaba Cloud service. For example, ApsaraDB for Redis includes the following categories: ApsaraDB for Redis (standard architecture), ApsaraDB for Redis (cluster architecture), and ApsaraDB for Redis (read/write splitting architecture). In this case, the valid values of this parameter for ApsaraDB for Redis include `kvstore_standard`, `kvstore_sharding`, and `kvstore_splitrw`. + * + * @example + * 100 + */ + pageSize?: number; + regionId?: string; + /** + * @remarks + * The effective scope of the blacklist policy. Valid values: + * + * * USER: The blacklist policy takes effect only within the current Alibaba Cloud account. + * * GROUP: The blacklist policy takes effect only within the specified application group. + * + * @example + * USER + */ + scopeType?: string; + static names(): { [key: string]: string } { + return { + category: 'Category', + ids: 'Ids', + instanceIds: 'InstanceIds', + isEnable: 'IsEnable', + name: 'Name', + namespace: 'Namespace', + order: 'Order', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + scopeType: 'ScopeType', + }; + } + + static types(): { [key: string]: any } { + return { + category: 'string', + ids: { 'type': 'array', 'itemType': 'string' }, + instanceIds: { 'type': 'array', 'itemType': 'string' }, + isEnable: 'boolean', + name: 'string', + namespace: 'string', + order: 'number', + pageNumber: 'number', + pageSize: 'number', + regionId: 'string', + scopeType: 'string', + }; + } + + validate() { + if(Array.isArray(this.ids)) { + $dara.Model.validateArray(this.ids); + } + if(Array.isArray(this.instanceIds)) { + $dara.Model.validateArray(this.instanceIds); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleBlackListResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleBlackListResponse.ts new file mode 100644 index 0000000..3c4c02b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleBlackListResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeMetricRuleBlackListResponseBody } from "./DescribeMetricRuleBlackListResponseBody"; + + +export class DescribeMetricRuleBlackListResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeMetricRuleBlackListResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMetricRuleBlackListResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleBlackListResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleBlackListResponseBody.ts new file mode 100644 index 0000000..1c36d81 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleBlackListResponseBody.ts @@ -0,0 +1,302 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMetricRuleBlackListResponseBodyDescribeMetricRuleBlackListMetrics extends $dara.Model { + /** + * @remarks + * The metric name. + * + * @example + * disk_utilization + */ + metricName?: string; + /** + * @remarks + * The extended dimension of the instance. For example, `{"device":"C:"}` specifies that the blacklist policy is applied to all C disks of the specified Elastic Compute Service (ECS) instance. + * + * @example + * [{"device":"C:"}] + */ + resource?: string; + static names(): { [key: string]: string } { + return { + metricName: 'MetricName', + resource: 'Resource', + }; + } + + static types(): { [key: string]: any } { + return { + metricName: 'string', + resource: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMetricRuleBlackListResponseBodyDescribeMetricRuleBlackList extends $dara.Model { + /** + * @remarks + * The category of the cloud service. For example, ApsaraDB for Redis includes the following categories: ApsaraDB for Redis (standard architecture), ApsaraDB for Redis (cluster architecture), and ApsaraDB for Redis (read/write splitting architecture). In this case, the valid values of this parameter for ApsaraDB for Redis include `kvstore_standard`, `kvstore_sharding`, and `kvstore_splitrw`. + * + * @example + * ecs + */ + category?: string; + /** + * @remarks + * The timestamp when the blacklist policy was created. + * + * Unit: milliseconds. + * + * @example + * 1665714561000 + */ + createTime?: string; + /** + * @remarks + * The time range within which the blacklist policy is effective. + * + * @example + * 00:00-23:59 + */ + effectiveTime?: string; + /** + * @remarks + * The timestamp when the blacklist policy started to take effect. + * + * Unit: milliseconds. + * + * @example + * 1640608200000 + */ + enableEndTime?: number; + /** + * @remarks + * The timestamp when the blacklist policy expired. + * + * Unit: milliseconds. + * + * @example + * 1640237400000 + */ + enableStartTime?: number; + /** + * @remarks + * The ID of the blacklist policy. + * + * @example + * 93514c96-ceb8-47d8-8ee3-93b6d98b**** + */ + id?: string; + /** + * @remarks + * The IDs of the instances that belong to the specified cloud service. + */ + instances?: string[]; + /** + * @remarks + * The status of the blacklist policy. Valid values: + * + * * true: The blacklist policy is enabled. + * * false: The blacklist policy is disabled. + * + * @example + * true + */ + isEnable?: boolean; + /** + * @remarks + * The metrics of the instance. + */ + metrics?: DescribeMetricRuleBlackListResponseBodyDescribeMetricRuleBlackListMetrics[]; + /** + * @remarks + * The name of the blacklist policy. + * + * @example + * Blacklist-01 + */ + name?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The effective scope of the blacklist policy. Valid values: + * + * * USER: The blacklist policy takes effect only within the current Alibaba Cloud account. + * * GROUP: The blacklist policy takes effect only within the specified application group. + * + * @example + * USER + */ + scopeType?: string; + /** + * @remarks + * The IDs of the application groups. + */ + scopeValue?: string[]; + /** + * @remarks + * The timestamp when the blacklist policy was modified. + * + * Unit: milliseconds. + * + * @example + * 1665718373000 + */ + updateTime?: string; + static names(): { [key: string]: string } { + return { + category: 'Category', + createTime: 'CreateTime', + effectiveTime: 'EffectiveTime', + enableEndTime: 'EnableEndTime', + enableStartTime: 'EnableStartTime', + id: 'Id', + instances: 'Instances', + isEnable: 'IsEnable', + metrics: 'Metrics', + name: 'Name', + namespace: 'Namespace', + scopeType: 'ScopeType', + scopeValue: 'ScopeValue', + updateTime: 'UpdateTime', + }; + } + + static types(): { [key: string]: any } { + return { + category: 'string', + createTime: 'string', + effectiveTime: 'string', + enableEndTime: 'number', + enableStartTime: 'number', + id: 'string', + instances: { 'type': 'array', 'itemType': 'string' }, + isEnable: 'boolean', + metrics: { 'type': 'array', 'itemType': DescribeMetricRuleBlackListResponseBodyDescribeMetricRuleBlackListMetrics }, + name: 'string', + namespace: 'string', + scopeType: 'string', + scopeValue: { 'type': 'array', 'itemType': 'string' }, + updateTime: 'string', + }; + } + + validate() { + if(Array.isArray(this.instances)) { + $dara.Model.validateArray(this.instances); + } + if(Array.isArray(this.metrics)) { + $dara.Model.validateArray(this.metrics); + } + if(Array.isArray(this.scopeValue)) { + $dara.Model.validateArray(this.scopeValue); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMetricRuleBlackListResponseBody extends $dara.Model { + /** + * @remarks + * The categories of the Alibaba Cloud service. For example, ApsaraDB for Redis includes the following categories: ApsaraDB for Redis (standard architecture), ApsaraDB for Redis (cluster architecture), and ApsaraDB for Redis (read/write splitting architecture). In this case, the valid values of this parameter for ApsaraDB for Redis include `kvstore_standard`, `kvstore_sharding`, and `kvstore_splitrw`. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The queried blacklist policies. + */ + describeMetricRuleBlackList?: DescribeMetricRuleBlackListResponseBodyDescribeMetricRuleBlackList[]; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * @example + * D63E76CB-29AA-5B9F-88CE-400A6F28D428 + */ + requestId?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * For more information about the namespaces of different cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The timestamp when the blacklist policy was created. + * + * Unit: milliseconds. + * + * @example + * 1 + */ + total?: number; + static names(): { [key: string]: string } { + return { + code: 'Code', + describeMetricRuleBlackList: 'DescribeMetricRuleBlackList', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + total: 'Total', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + describeMetricRuleBlackList: { 'type': 'array', 'itemType': DescribeMetricRuleBlackListResponseBodyDescribeMetricRuleBlackList }, + message: 'string', + requestId: 'string', + success: 'boolean', + total: 'number', + }; + } + + validate() { + if(Array.isArray(this.describeMetricRuleBlackList)) { + $dara.Model.validateArray(this.describeMetricRuleBlackList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleCountRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleCountRequest.ts new file mode 100644 index 0000000..204e608 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleCountRequest.ts @@ -0,0 +1,47 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMetricRuleCountRequest extends $dara.Model { + /** + * @remarks + * The metric name. For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + regionId?: string; + static names(): { [key: string]: string } { + return { + metricName: 'MetricName', + namespace: 'Namespace', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + metricName: 'string', + namespace: 'string', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleCountResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleCountResponse.ts new file mode 100644 index 0000000..580696e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleCountResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeMetricRuleCountResponseBody } from "./DescribeMetricRuleCountResponseBody"; + + +export class DescribeMetricRuleCountResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeMetricRuleCountResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMetricRuleCountResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleCountResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleCountResponseBody.ts new file mode 100644 index 0000000..8814444 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleCountResponseBody.ts @@ -0,0 +1,149 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMetricRuleCountResponseBodyMetricRuleCount extends $dara.Model { + /** + * @remarks + * The number of alert rules with active alerts. + * + * @example + * 5 + */ + alarm?: number; + /** + * @remarks + * The number of disabled alert rules. + * + * @example + * 0 + */ + disable?: number; + /** + * @remarks + * The number of alert rules without data. + * + * @example + * 0 + */ + nodata?: number; + /** + * @remarks + * The number of alert rules without active alerts. + * + * @example + * 40 + */ + ok?: number; + /** + * @remarks + * The total number of alert rules. + * + * @example + * 45 + */ + total?: number; + static names(): { [key: string]: string } { + return { + alarm: 'Alarm', + disable: 'Disable', + nodata: 'Nodata', + ok: 'Ok', + total: 'Total', + }; + } + + static types(): { [key: string]: any } { + return { + alarm: 'number', + disable: 'number', + nodata: 'number', + ok: 'number', + total: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMetricRuleCountResponseBody extends $dara.Model { + /** + * @remarks + * The responses code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The number of alert rules in each state. + */ + metricRuleCount?: DescribeMetricRuleCountResponseBodyMetricRuleCount; + /** + * @remarks + * The request ID. + * + * @example + * FF38D33A-67C1-40EB-AB65-FAEE51EDB644 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + metricRuleCount: 'MetricRuleCount', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + metricRuleCount: DescribeMetricRuleCountResponseBodyMetricRuleCount, + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + if(this.metricRuleCount && typeof (this.metricRuleCount as any).validate === 'function') { + (this.metricRuleCount as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleListRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleListRequest.ts new file mode 100644 index 0000000..0829aee --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleListRequest.ts @@ -0,0 +1,148 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMetricRuleListRequest extends $dara.Model { + /** + * @remarks + * The status of the alert rule. Valid values: + * + * * OK: The alert rule has no active alerts. + * * ALARM: The alert rule has active alerts. + * * INSUFFICIENT_DATA: No data is available. + * + * @example + * OK + */ + alertState?: string; + /** + * @remarks + * The monitoring dimensions of the specified resource. + * + * Set the value to a collection of `key:value` pairs. Example: `{"userId":"120886317861****"}` or `{"instanceId":"i-2ze2d6j5uhg20x47****"}`. + * + * @example + * {"instanceId":"i-2ze2d6j5uhg20x47****"} + */ + dimensions?: string; + /** + * @remarks + * Specifies whether to query enabled or disabled alert rules. Valid values: + * + * * true: queries enabled alert rules. + * * false: queries disabled alert rules. + * + * @example + * true + */ + enableState?: boolean; + /** + * @remarks + * The ID of the application group. + * + * For information about how to obtain the ID of an application group, see [DescribeMonitorGroups](https://help.aliyun.com/document_detail/115032.html). + * + * @example + * 7301**** + */ + groupId?: string; + /** + * @remarks + * The name of the metric. + * + * For information about how to obtain the name of a metric, see [DescribeMetricMetaList](https://help.aliyun.com/document_detail/98846.html) or [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * 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). + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The page number of the page to return. + * + * Minimum value: 1. Default value: 1. + * + * @example + * 1 + */ + page?: number; + /** + * @remarks + * The number of entries to return on each page. + * + * Minimum value: 1. Default value: 10. + * + * @example + * 10 + */ + pageSize?: number; + regionId?: string; + /** + * @remarks + * The ID of the alert rule. You can specify up to 20 IDs at a time. Separate multiple IDs with commas (,). + * + * @example + * applyTemplate344cfd42-0f32-4fd6-805a-88d7908a**** + */ + ruleIds?: string; + /** + * @remarks + * The name of the alert rule. + * + * This parameter supports fuzzy match. + * + * @example + * Rule_01 + */ + ruleName?: string; + static names(): { [key: string]: string } { + return { + alertState: 'AlertState', + dimensions: 'Dimensions', + enableState: 'EnableState', + groupId: 'GroupId', + metricName: 'MetricName', + namespace: 'Namespace', + page: 'Page', + pageSize: 'PageSize', + regionId: 'RegionId', + ruleIds: 'RuleIds', + ruleName: 'RuleName', + }; + } + + static types(): { [key: string]: any } { + return { + alertState: 'string', + dimensions: 'string', + enableState: 'boolean', + groupId: 'string', + metricName: 'string', + namespace: 'string', + page: 'number', + pageSize: 'number', + regionId: 'string', + ruleIds: 'string', + ruleName: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleListResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleListResponse.ts new file mode 100644 index 0000000..7956e6f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleListResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeMetricRuleListResponseBody } from "./DescribeMetricRuleListResponseBody"; + + +export class DescribeMetricRuleListResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeMetricRuleListResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMetricRuleListResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleListResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleListResponseBody.ts new file mode 100644 index 0000000..7f722d8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleListResponseBody.ts @@ -0,0 +1,1099 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionListExpressionList extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The metric that is used to monitor the cloud service. + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The aggregation period of the metric. + * + * Unit: seconds. + * + * @example + * 60 + */ + period?: number; + /** + * @remarks + * The statistical method of the metric. Valid values: + * + * * $Maximum: the maximum value + * * $Minimum: the minimum value + * * $Average: the average value + * * $Availability: the availability rate (usually used for site monitoring) + * + * > `$` is the prefix of the metric. For information about the Alibaba Cloud services that are supported by CloudMonitor, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * $Maximum + */ + statistics?: string; + /** + * @remarks + * The alert threshold. + * + * @example + * 90 + */ + threshold?: string; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + metricName: 'MetricName', + period: 'Period', + statistics: 'Statistics', + threshold: 'Threshold', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + metricName: 'string', + period: 'number', + statistics: 'string', + threshold: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionList extends $dara.Model { + expressionList?: DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionListExpressionList[]; + static names(): { [key: string]: string } { + return { + expressionList: 'ExpressionList', + }; + } + + static types(): { [key: string]: any } { + return { + expressionList: { 'type': 'array', 'itemType': DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionListExpressionList }, + }; + } + + validate() { + if(Array.isArray(this.expressionList)) { + $dara.Model.validateArray(this.expressionList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpression extends $dara.Model { + /** + * @remarks + * The trigger conditions that are created in standard mode. + */ + expressionList?: DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionList; + /** + * @remarks + * The relationship between the trigger conditions for multiple metrics. Valid values: + * + * * `&&`: An alert is triggered only if all metrics meet the trigger conditions. An alert is triggered only if the results of all expressions specified in the ExpressionList parameter are `true`. + * * `||`: An alert is triggered if one of the metrics meets the trigger conditions. + * + * @example + * || + */ + expressionListJoin?: string; + /** + * @remarks + * The trigger conditions that are created by using expressions. You can use expressions to create trigger conditions in the following scenarios: + * + * * Set an alert blacklist for specific resources. For example, if you specify `$instanceId != \\"i-io8kfvcpp7x5****\\" ``&&`` $Average > 50`, no alert is triggered when the `average metric value` of the `i-io8kfvcpp7x5****` instance exceeds 50. + * * Set a special alert threshold for a specified instance in the rule. For example, if you specify `$Average > ($instanceId == \\"i-io8kfvcpp7x5****\\"? 80: 50)`, an alert is triggered when the `average metric value` of the `i-io8kfvcpp7x5****` instance exceeds 80 or the `average metric value` of other instances exceeds 50. + * * Limit the number of instances whose metric values exceed the threshold. For example, if you specify `count($Average > 20) > 3`, an alert is triggered only when the number of instances whose `average metric value` exceeds 20 exceeds three. + * + * @example + * $Average > ($instanceId == \\"i-io8kfvcpp7x5****\\"? 80: 50) + */ + expressionRaw?: string; + /** + * @remarks + * The alert level. Valid values: + * + * * CRITICAL + * * WARN + * * INFO + * + * @example + * Critical + */ + level?: string; + /** + * @remarks + * The number of consecutive triggers. If the number of times that the metric values meet the trigger conditions reaches the value of this parameter, CloudMonitor sends alert notifications. + * + * @example + * 3 + */ + times?: number; + static names(): { [key: string]: string } { + return { + expressionList: 'ExpressionList', + expressionListJoin: 'ExpressionListJoin', + expressionRaw: 'ExpressionRaw', + level: 'Level', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + return { + expressionList: DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionList, + expressionListJoin: 'string', + expressionRaw: 'string', + level: 'string', + times: 'number', + }; + } + + validate() { + if(this.expressionList && typeof (this.expressionList as any).validate === 'function') { + (this.expressionList as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsCritical extends $dara.Model { + /** + * @remarks + * The comparison operator that is used to compare the metric value with the threshold. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The additional conditions for triggering Critical-level alerts. The additional conditions take effect when the value of the ComparisonOperator parameter is GreaterThanYesterday, LessThanYesterday, GreaterThanLastWeek, LessThanLastWeek, GreaterThanLastPeriod, or LessThanLastPeriod. + * + * For example, the values of the PreCondition, ComparisonOperator, and Threshold parameters are set to $Average>80, GreaterThanYesterday, and 10, respectively. An alert is triggered only when the average metric value is greater than 80 and 10% greater than the average metric value at the same time yesterday. + * + * > $Average is a placeholder that consists of `a dollar sign ($) and the statistical method`. CloudMonitor replaces the placeholder with the aggregated value or original value before value comparison. + * + * @example + * $Average>80 + */ + preCondition?: string; + /** + * @remarks + * The statistical methods for Critical-level alerts. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Critical-level alerts. + * + * @example + * 90 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before a Critical-level alert is triggered. + * + * @example + * 3 + */ + times?: number; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + preCondition: 'PreCondition', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + preCondition: 'string', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsInfo extends $dara.Model { + /** + * @remarks + * The comparison operator that is used to compare the metric value with the threshold. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The additional conditions for triggering Info-level alerts. The additional conditions take effect when the value of the ComparisonOperator parameter is GreaterThanYesterday, LessThanYesterday, GreaterThanLastWeek, LessThanLastWeek, GreaterThanLastPeriod, or LessThanLastPeriod. + * + * For example, the values of the PreCondition, ComparisonOperator, and Threshold parameters are set to $Average>80, GreaterThanYesterday, and 10, respectively. An alert is triggered only when the average metric value is greater than 80 and 10% greater than the average metric value at the same time yesterday. + * + * > $Average is a placeholder that consists of `a dollar sign ($) and the statistical method`. CloudMonitor replaces the placeholder with the aggregated value or original value before value comparison. + * + * @example + * $Average>80 + */ + preCondition?: string; + /** + * @remarks + * The statistical methods for Info-level alerts. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Info-level alerts. + * + * @example + * 90 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before an Info-level alert is triggered. + * + * @example + * 3 + */ + times?: number; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + preCondition: 'PreCondition', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + preCondition: 'string', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsWarn extends $dara.Model { + /** + * @remarks + * The comparison operator that is used to compare the metric value with the threshold. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The additional conditions for triggering Warn-level alerts. The additional conditions take effect when the value of the ComparisonOperator parameter is GreaterThanYesterday, LessThanYesterday, GreaterThanLastWeek, LessThanLastWeek, GreaterThanLastPeriod, or LessThanLastPeriod. + * + * For example, the values of the PreCondition, ComparisonOperator, and Threshold parameters are set to $Average>80, GreaterThanYesterday, and 10, respectively. An alert is triggered only when the average metric value is greater than 80 and 10% greater than the average metric value at the same time yesterday. + * + * > $Average is a placeholder that consists of `a dollar sign ($) and the statistical method`. CloudMonitor replaces the placeholder with the aggregated value or original value before value comparison. + * + * @example + * $Average>80 + */ + preCondition?: string; + /** + * @remarks + * The statistical methods for Warn-level alerts. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Warn-level alerts. + * + * @example + * 90 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before a Warn-level alert is triggered. + * + * @example + * 3 + */ + times?: number; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + preCondition: 'PreCondition', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + preCondition: 'string', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMetricRuleListResponseBodyAlarmsAlarmEscalations extends $dara.Model { + /** + * @remarks + * The conditions for triggering Critical-level alerts. + */ + critical?: DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsCritical; + /** + * @remarks + * The conditions for triggering Info-level alerts. + */ + info?: DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsInfo; + /** + * @remarks + * The conditions for triggering Warn-level alerts. + */ + warn?: DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsWarn; + static names(): { [key: string]: string } { + return { + critical: 'Critical', + info: 'Info', + warn: 'Warn', + }; + } + + static types(): { [key: string]: any } { + return { + critical: DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsCritical, + info: DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsInfo, + warn: DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsWarn, + }; + } + + validate() { + if(this.critical && typeof (this.critical as any).validate === 'function') { + (this.critical as any).validate(); + } + if(this.info && typeof (this.info as any).validate === 'function') { + (this.info as any).validate(); + } + if(this.warn && typeof (this.warn as any).validate === 'function') { + (this.warn as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMetricRuleListResponseBodyAlarmsAlarmLabelsLabels extends $dara.Model { + /** + * @remarks + * The tag key of the alert rule. + * + * @example + * cmsRuleKey + */ + key?: string; + /** + * @remarks + * The tag value of the alert rule. + * + * @example + * cmsRuleValue + */ + value?: string; + static names(): { [key: string]: string } { + return { + key: 'Key', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + key: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMetricRuleListResponseBodyAlarmsAlarmLabels extends $dara.Model { + labels?: DescribeMetricRuleListResponseBodyAlarmsAlarmLabelsLabels[]; + static names(): { [key: string]: string } { + return { + labels: 'Labels', + }; + } + + static types(): { [key: string]: any } { + return { + labels: { 'type': 'array', 'itemType': DescribeMetricRuleListResponseBodyAlarmsAlarmLabelsLabels }, + }; + } + + validate() { + if(Array.isArray(this.labels)) { + $dara.Model.validateArray(this.labels); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotationsAnnotations extends $dara.Model { + /** + * @remarks + * The key of the annotation. + * + * @example + * summary + */ + key?: string; + /** + * @remarks + * The value of the annotation. + * + * @example + * {{ $labels.instance }} CPU usage above 10% {current value: {{ humanizePercentage $value }} } + */ + value?: string; + static names(): { [key: string]: string } { + return { + key: 'Key', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + key: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotations extends $dara.Model { + annotations?: DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotationsAnnotations[]; + static names(): { [key: string]: string } { + return { + annotations: 'Annotations', + }; + } + + static types(): { [key: string]: any } { + return { + annotations: { 'type': 'array', 'itemType': DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotationsAnnotations }, + }; + } + + validate() { + if(Array.isArray(this.annotations)) { + $dara.Model.validateArray(this.annotations); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheus extends $dara.Model { + /** + * @remarks + * The annotations of the Prometheus alert rule. When a Prometheus alert is triggered, the system renders the annotated keys and values to help you understand the metrics and alert rule. + * + * > This parameter is equivalent to the annotations parameter of open source Prometheus. + */ + annotations?: DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotations; + /** + * @remarks + * The alert level. Valid values: + * + * * CRITICAL + * * WARN + * * INFO + * + * @example + * Critical + */ + level?: string; + /** + * @remarks + * The PromQL query statement. + * + * > The data obtained by using the PromQL query statement is the monitoring data. You must include the alert threshold in this statement. + * + * @example + * CpuUsage{instanceId="xxxx"}[1m]>90 + */ + promQL?: string; + /** + * @remarks + * The number of consecutive triggers. If the number of times that the metric values meet the trigger conditions reaches the value of this parameter, CloudMonitor sends alert notifications. + * + * @example + * 3 + */ + times?: number; + static names(): { [key: string]: string } { + return { + annotations: 'Annotations', + level: 'Level', + promQL: 'PromQL', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + return { + annotations: DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotations, + level: 'string', + promQL: 'string', + times: 'number', + }; + } + + validate() { + if(this.annotations && typeof (this.annotations as any).validate === 'function') { + (this.annotations as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMetricRuleListResponseBodyAlarmsAlarm extends $dara.Model { + /** + * @remarks + * The status of the alert rule. Valid values: + * + * * OK: The alert rule has no active alerts. + * * ALARM: The alert rule has active alerts. + * * INSUFFICIENT_DATA: No data is available. + * + * @example + * OK + */ + alertState?: string; + /** + * @remarks + * The trigger conditions for multiple metrics. + * + * > The trigger conditions for a single metric and multiple metrics are mutually exclusive. You cannot specify trigger conditions for a single metric and multiple metrics at the same time. + */ + compositeExpression?: DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpression; + /** + * @remarks + * The alert contact group. + * + * @example + * ECS_Alarm + */ + contactGroups?: string; + /** + * @remarks + * The dimensions of the alert rule. + * + * @example + * [{"instanceId":"i-2ze2d6j5uhg20x47****"}] + */ + dimensions?: string; + /** + * @remarks + * The time period during which the alert rule is effective. + * + * @example + * 05:31-23:59 + */ + effectiveInterval?: string; + /** + * @remarks + * Indicates whether the alert rule is enabled. Valid values: + * + * * true: The alert rule is enabled. + * * false: The alert rule is disabled. + * + * @example + * true + */ + enableState?: boolean; + /** + * @remarks + * The conditions for triggering different levels of alerts. + */ + escalations?: DescribeMetricRuleListResponseBodyAlarmsAlarmEscalations; + gmtCreate?: number; + gmtUpdate?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 7301**** + */ + groupId?: string; + /** + * @remarks + * The name of the application group. + * + * > If the alert rule is associated with an application group, the name of the application group is returned in this parameter. + * + * @example + * ECS_Group + */ + groupName?: string; + /** + * @remarks + * The tags of the alert rule. + */ + labels?: DescribeMetricRuleListResponseBodyAlarmsAlarmLabels; + /** + * @remarks + * The subject of the alert notification email. + * + * @example + * "${serviceType}-${metricName}-${levelDescription}Notification(${dimensions})" + */ + mailSubject?: string; + /** + * @remarks + * The name of the metric. + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * @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 value): No operation is performed. + * * INSUFFICIENT_DATA: An alert whose content is "Insufficient data" is triggered. + * * OK: The status is considered normal. + * + * @example + * KEEP_LAST_STATE + */ + noDataPolicy?: string; + /** + * @remarks + * The time period during which the alert rule is ineffective. + * + * @example + * 00:00-05:30 + */ + noEffectiveInterval?: string; + /** + * @remarks + * The statistical period. + * + * @example + * 60 + */ + period?: string; + productCategory?: string; + /** + * @remarks + * The Prometheus alerts. + * + * > This parameter is required only if you create a Prometheus alert rule for Hybrid Cloud Monitoring. + */ + prometheus?: DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheus; + /** + * @remarks + * The resources that are associated with the alert rule. + * + * @example + * [{\\"instanceId\\":\\"i-2ze2d6j5uhg20x47****\\"}] + */ + resources?: string; + /** + * @remarks + * The ID of the alert rule. + * + * @example + * applyTemplate344cfd42-0f32-4fd6-805a-88d7908a**** + */ + ruleId?: string; + /** + * @remarks + * The name of the alert rule. + * + * @example + * Rule_01 + */ + 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. Minimum value: 3600. + * + * Only one alert is reported during each mute period even if the metric value consecutively exceeds the alert rule threshold several times. + * + * @example + * 86400 + */ + silenceTime?: number; + /** + * @remarks + * The type of the alert rule. Valid value: METRIC. This value indicates an alert rule for time series metrics. + * + * @example + * METRIC + */ + sourceType?: string; + /** + * @remarks + * The callback URL. CloudMonitor pushes an alert notification to the specified callback URL by sending an HTTP POST request. Only the HTTP protocol is supported. + * + * @example + * https://www.aliyun.com + */ + webhook?: string; + static names(): { [key: string]: string } { + return { + alertState: 'AlertState', + compositeExpression: 'CompositeExpression', + contactGroups: 'ContactGroups', + dimensions: 'Dimensions', + effectiveInterval: 'EffectiveInterval', + enableState: 'EnableState', + escalations: 'Escalations', + gmtCreate: 'GmtCreate', + gmtUpdate: 'GmtUpdate', + groupId: 'GroupId', + groupName: 'GroupName', + labels: 'Labels', + mailSubject: 'MailSubject', + metricName: 'MetricName', + namespace: 'Namespace', + noDataPolicy: 'NoDataPolicy', + noEffectiveInterval: 'NoEffectiveInterval', + period: 'Period', + productCategory: 'ProductCategory', + prometheus: 'Prometheus', + resources: 'Resources', + ruleId: 'RuleId', + ruleName: 'RuleName', + silenceTime: 'SilenceTime', + sourceType: 'SourceType', + webhook: 'Webhook', + }; + } + + static types(): { [key: string]: any } { + return { + alertState: 'string', + compositeExpression: DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpression, + contactGroups: 'string', + dimensions: 'string', + effectiveInterval: 'string', + enableState: 'boolean', + escalations: DescribeMetricRuleListResponseBodyAlarmsAlarmEscalations, + gmtCreate: 'number', + gmtUpdate: 'string', + groupId: 'string', + groupName: 'string', + labels: DescribeMetricRuleListResponseBodyAlarmsAlarmLabels, + mailSubject: 'string', + metricName: 'string', + namespace: 'string', + noDataPolicy: 'string', + noEffectiveInterval: 'string', + period: 'string', + productCategory: 'string', + prometheus: DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheus, + resources: 'string', + ruleId: 'string', + ruleName: 'string', + silenceTime: 'number', + sourceType: 'string', + webhook: 'string', + }; + } + + validate() { + if(this.compositeExpression && typeof (this.compositeExpression as any).validate === 'function') { + (this.compositeExpression as any).validate(); + } + if(this.escalations && typeof (this.escalations as any).validate === 'function') { + (this.escalations as any).validate(); + } + if(this.labels && typeof (this.labels as any).validate === 'function') { + (this.labels as any).validate(); + } + if(this.prometheus && typeof (this.prometheus as any).validate === 'function') { + (this.prometheus as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMetricRuleListResponseBodyAlarms extends $dara.Model { + alarm?: DescribeMetricRuleListResponseBodyAlarmsAlarm[]; + static names(): { [key: string]: string } { + return { + alarm: 'Alarm', + }; + } + + static types(): { [key: string]: any } { + return { + alarm: { 'type': 'array', 'itemType': DescribeMetricRuleListResponseBodyAlarmsAlarm }, + }; + } + + validate() { + if(Array.isArray(this.alarm)) { + $dara.Model.validateArray(this.alarm); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMetricRuleListResponseBody extends $dara.Model { + /** + * @remarks + * The queried alert rules. + */ + alarms?: DescribeMetricRuleListResponseBodyAlarms; + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call is successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * 386C6712-335F-5054-930A-CC92B851ECBA + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call is successful. Valid values: + * + * * true: The call is successful. + * * false: The call fails. + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The total number of returned entries. + * + * @example + * 1 + */ + total?: string; + static names(): { [key: string]: string } { + return { + alarms: 'Alarms', + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + total: 'Total', + }; + } + + static types(): { [key: string]: any } { + return { + alarms: DescribeMetricRuleListResponseBodyAlarms, + code: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + total: 'string', + }; + } + + validate() { + if(this.alarms && typeof (this.alarms as any).validate === 'function') { + (this.alarms as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTargetsRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTargetsRequest.ts new file mode 100644 index 0000000..dda9cd5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTargetsRequest.ts @@ -0,0 +1,41 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMetricRuleTargetsRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * The ID of the alert rule. + * + * For information about how to obtain the ID of an alert rule, see [DescribeMetricRuleList](https://help.aliyun.com/document_detail/114941.html). + * + * This parameter is required. + * + * @example + * ae06917_75a8c43178ab66**** + */ + ruleId?: string; + static names(): { [key: string]: string } { + return { + regionId: 'RegionId', + ruleId: 'RuleId', + }; + } + + static types(): { [key: string]: any } { + return { + regionId: 'string', + ruleId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTargetsResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTargetsResponse.ts new file mode 100644 index 0000000..fbc5a3c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTargetsResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeMetricRuleTargetsResponseBody } from "./DescribeMetricRuleTargetsResponseBody"; + + +export class DescribeMetricRuleTargetsResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeMetricRuleTargetsResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMetricRuleTargetsResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTargetsResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTargetsResponseBody.ts new file mode 100644 index 0000000..6f56644 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTargetsResponseBody.ts @@ -0,0 +1,174 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMetricRuleTargetsResponseBodyTargetsTarget extends $dara.Model { + /** + * @remarks + * The Alibaba Cloud Resource Name (ARN) of the resource. Format: `acs:{Service name abbreviation}:{regionId}:{userId}:/{Resource type}/{Resource name}/message`. Example: `acs:mns:cn-hangzhou:120886317861****:/queues/test123/message`. Fields: + * + * * {Service name abbreviation}: the abbreviation of the service name. Valid value: mns. + * * {userId}: the ID of the Alibaba Cloud account. + * * {regionId}: the region ID of the message queue or topic. + * * {Resource type}`: the type of the resource for which alerts are triggered. Valid values: - **queues** - **topics** {Resource name}: the name of the resource. - If the resource type is set to **queues**, the resource name is the name of the message queue. - If the resource type is set to **topics**, the resource name is the name of the topic.` + * + * @example + * acs:mns:cn-hangzhou:120886317861****:/queues/test/message + */ + arn?: string; + /** + * @remarks + * The ID of the resource for which alerts are triggered. + * + * @example + * 1 + */ + id?: string; + /** + * @remarks + * The parameters of the alert callback. The parameters are in the JSON format. + * + * @example + * {"customField1":"value1","customField2":"$.name"} + */ + jsonParams?: string; + /** + * @remarks + * The level of the alert. Valid values: + * + * * INFO: information + * * WARN: warning + * * CRITICAL: critical + * + * @example + * ["INFO", "WARN", "CRITICAL"] + */ + level?: string; + static names(): { [key: string]: string } { + return { + arn: 'Arn', + id: 'Id', + jsonParams: 'JsonParams', + level: 'Level', + }; + } + + static types(): { [key: string]: any } { + return { + arn: 'string', + id: 'string', + jsonParams: 'string', + level: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMetricRuleTargetsResponseBodyTargets extends $dara.Model { + target?: DescribeMetricRuleTargetsResponseBodyTargetsTarget[]; + static names(): { [key: string]: string } { + return { + target: 'Target', + }; + } + + static types(): { [key: string]: any } { + return { + target: { 'type': 'array', 'itemType': DescribeMetricRuleTargetsResponseBodyTargetsTarget }, + }; + } + + validate() { + if(Array.isArray(this.target)) { + $dara.Model.validateArray(this.target); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMetricRuleTargetsResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * User not authorized to operate on the specified resource. + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * 786E92D2-AC66-4250-B76F-F1E2FCDDBA1C + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call was successful. Valid values: + * + * * true: The call was successful. + * * false: The call failed. + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The information about the resource for which alerts are triggered. + */ + targets?: DescribeMetricRuleTargetsResponseBodyTargets; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + targets: 'Targets', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + targets: DescribeMetricRuleTargetsResponseBodyTargets, + }; + } + + validate() { + if(this.targets && typeof (this.targets as any).validate === 'function') { + (this.targets as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTemplateAttributeRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTemplateAttributeRequest.ts new file mode 100644 index 0000000..995f9bd --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTemplateAttributeRequest.ts @@ -0,0 +1,51 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMetricRuleTemplateAttributeRequest extends $dara.Model { + /** + * @remarks + * The name of the alert template. You must specify at least one of the `Name` and `TemplateId` parameters. + * + * For information about how to obtain the name of an alert template, see [DescribeMetricRuleTemplateList](https://help.aliyun.com/document_detail/114982.html). + * + * @example + * ECS_Template1 + */ + name?: string; + regionId?: string; + /** + * @remarks + * The ID of the alert template. You must specify at least one of the `Name` and `TemplateId` parameters. + * + * For information about how to obtain the ID of an alert template, see [DescribeMetricRuleTemplateList](https://help.aliyun.com/document_detail/114982.html). + * + * @example + * 70**** + */ + templateId?: string; + static names(): { [key: string]: string } { + return { + name: 'Name', + regionId: 'RegionId', + templateId: 'TemplateId', + }; + } + + static types(): { [key: string]: any } { + return { + name: 'string', + regionId: 'string', + templateId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTemplateAttributeResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTemplateAttributeResponse.ts new file mode 100644 index 0000000..3bf4378 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTemplateAttributeResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeMetricRuleTemplateAttributeResponseBody } from "./DescribeMetricRuleTemplateAttributeResponseBody"; + + +export class DescribeMetricRuleTemplateAttributeResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeMetricRuleTemplateAttributeResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMetricRuleTemplateAttributeResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTemplateAttributeResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTemplateAttributeResponseBody.ts new file mode 100644 index 0000000..cf8d778 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTemplateAttributeResponseBody.ts @@ -0,0 +1,627 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsCritical extends $dara.Model { + /** + * @remarks + * The comparison operator that is used to compare the metric value with the threshold for Critical-level alerts. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The statistical method for Critical-level alerts. + * + * The value of the `Statistics` parameter varies with the cloud service. For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Critical-level alerts. + * + * @example + * 90 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before a Critical-level alert is triggered. + * + * @example + * 5 + */ + times?: number; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsInfo extends $dara.Model { + /** + * @remarks + * The comparison operator that is used to compare the metric value with the threshold for Info-level alerts. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The statistical method for Info-level alerts. + * + * The value of the `Statistics` parameter varies with the cloud service. For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Info-level alerts. + * + * @example + * 90 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before an Info-level alert is triggered. + * + * @example + * 3 + */ + times?: number; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsWarn extends $dara.Model { + /** + * @remarks + * The comparison operator that is used to compare the metric value with the threshold for Warn-level alerts. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The statistical method for Warn-level alerts. + * + * The value of the `Statistics` parameter varies with the cloud service. For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Warn-level alerts. + * + * @example + * 90 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before a Warn-level alert is triggered. + * + * @example + * 3 + */ + times?: number; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalations extends $dara.Model { + /** + * @remarks + * The conditions for triggering Critical-level alerts. + */ + critical?: DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsCritical; + /** + * @remarks + * The conditions for triggering Info-level alerts. + */ + info?: DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsInfo; + /** + * @remarks + * The conditions for triggering Warn-level alerts. + */ + warn?: DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsWarn; + static names(): { [key: string]: string } { + return { + critical: 'Critical', + info: 'Info', + warn: 'Warn', + }; + } + + static types(): { [key: string]: any } { + return { + critical: DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsCritical, + info: DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsInfo, + warn: DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsWarn, + }; + } + + validate() { + if(this.critical && typeof (this.critical as any).validate === 'function') { + (this.critical as any).validate(); + } + if(this.info && typeof (this.info as any).validate === 'function') { + (this.info as any).validate(); + } + if(this.warn && typeof (this.warn as any).validate === 'function') { + (this.warn as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabelsLabels extends $dara.Model { + /** + * @remarks + * The tag key of the alert template. + * + * @example + * label1 + */ + key?: string; + /** + * @remarks + * The tag value of the alert template. + * + * @example + * value1 + */ + value?: string; + static names(): { [key: string]: string } { + return { + key: 'Key', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + key: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabels extends $dara.Model { + labels?: DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabelsLabels[]; + static names(): { [key: string]: string } { + return { + labels: 'Labels', + }; + } + + static types(): { [key: string]: any } { + return { + labels: { 'type': 'array', 'itemType': DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabelsLabels }, + }; + } + + validate() { + if(Array.isArray(this.labels)) { + $dara.Model.validateArray(this.labels); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplate extends $dara.Model { + /** + * @remarks + * The abbreviation of the Alibaba Cloud service name. + * + * @example + * ecs + */ + category?: string; + /** + * @remarks + * The threshold and the alert level. + */ + escalations?: DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalations; + /** + * @remarks + * The tags of the alert template. + */ + labels?: DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabels; + /** + * @remarks + * The metric name. + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The namespace of the Alibaba Cloud service. + * + * @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. + * + * @example + * KEEP_LAST_STATE + */ + noDataPolicy?: string; + /** + * @remarks + * The name of the alert rule. + * + * @example + * ECS_Rule + */ + ruleName?: string; + /** + * @remarks + * The dimension of the alert. It is an extended field. + * + * @example + * {"disk":"/"} + */ + selector?: string; + silenceTime?: number; + /** + * @remarks + * The callback URL to which a request is sent when an alert is triggered. + * + * @example + * https://www.aliyun.com + */ + webhook?: string; + static names(): { [key: string]: string } { + return { + category: 'Category', + escalations: 'Escalations', + labels: 'Labels', + metricName: 'MetricName', + namespace: 'Namespace', + noDataPolicy: 'NoDataPolicy', + ruleName: 'RuleName', + selector: 'Selector', + silenceTime: 'SilenceTime', + webhook: 'Webhook', + }; + } + + static types(): { [key: string]: any } { + return { + category: 'string', + escalations: DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalations, + labels: DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabels, + metricName: 'string', + namespace: 'string', + noDataPolicy: 'string', + ruleName: 'string', + selector: 'string', + silenceTime: 'number', + webhook: 'string', + }; + } + + validate() { + if(this.escalations && typeof (this.escalations as any).validate === 'function') { + (this.escalations as any).validate(); + } + if(this.labels && typeof (this.labels as any).validate === 'function') { + (this.labels as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplates extends $dara.Model { + alertTemplate?: DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplate[]; + static names(): { [key: string]: string } { + return { + alertTemplate: 'AlertTemplate', + }; + } + + static types(): { [key: string]: any } { + return { + alertTemplate: { 'type': 'array', 'itemType': DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplate }, + }; + } + + validate() { + if(Array.isArray(this.alertTemplate)) { + $dara.Model.validateArray(this.alertTemplate); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMetricRuleTemplateAttributeResponseBodyResource extends $dara.Model { + /** + * @remarks + * The queried alert templates. + */ + alertTemplates?: DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplates; + /** + * @remarks + * The description of the alert template. + */ + description?: string; + /** + * @remarks + * The name of the alert template. + * + * @example + * ECS_Template1 + */ + name?: string; + /** + * @remarks + * The version of the alert template. + * + * @example + * 1 + */ + restVersion?: string; + /** + * @remarks + * The ID of the alert template. + * + * @example + * 70**** + */ + templateId?: string; + static names(): { [key: string]: string } { + return { + alertTemplates: 'AlertTemplates', + description: 'Description', + name: 'Name', + restVersion: 'RestVersion', + templateId: 'TemplateId', + }; + } + + static types(): { [key: string]: any } { + return { + alertTemplates: DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplates, + description: 'string', + name: 'string', + restVersion: 'string', + templateId: 'string', + }; + } + + validate() { + if(this.alertTemplates && typeof (this.alertTemplates as any).validate === 'function') { + (this.alertTemplates as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMetricRuleTemplateAttributeResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The error message returned. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 8F3A82AD-DA92-52B0-8EC6-C059D1C3839F + */ + requestId?: string; + /** + * @remarks + * The details of the alert template. + */ + resource?: DescribeMetricRuleTemplateAttributeResponseBodyResource; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + resource: 'Resource', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'number', + message: 'string', + requestId: 'string', + resource: DescribeMetricRuleTemplateAttributeResponseBodyResource, + success: 'boolean', + }; + } + + validate() { + if(this.resource && typeof (this.resource as any).validate === 'function') { + (this.resource as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTemplateListRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTemplateListRequest.ts new file mode 100644 index 0000000..d9dafc8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTemplateListRequest.ts @@ -0,0 +1,118 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMetricRuleTemplateListRequest extends $dara.Model { + /** + * @remarks + * Specifies whether to display the history of applying the alert templates to application groups. Valid values: + * + * * true + * * false (default) + * + * @example + * false + */ + history?: boolean; + /** + * @remarks + * The keyword of the alert template name. + * + * @example + * ECS + */ + keyword?: string; + /** + * @remarks + * The name of the alert template. + * + * @example + * ECS_Template1 + */ + name?: string; + /** + * @remarks + * The sorting order. Valid values: + * + * * true (default): ascending order + * * false: descending order + * + * @example + * true + */ + order?: boolean; + /** + * @remarks + * The sorting basis. Valid values: + * + * * gmtMotified: sorts alert templates by modification time + * * gmtCreate (default): sorts alert templates by creation time + * + * @example + * gmtCreate + */ + orderBy?: string; + /** + * @remarks + * The page number. + * + * Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * @example + * 10 + */ + pageSize?: number; + regionId?: string; + /** + * @remarks + * The ID of the alert template. + * + * @example + * 70**** + */ + templateId?: number; + static names(): { [key: string]: string } { + return { + history: 'History', + keyword: 'Keyword', + name: 'Name', + order: 'Order', + orderBy: 'OrderBy', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + templateId: 'TemplateId', + }; + } + + static types(): { [key: string]: any } { + return { + history: 'boolean', + keyword: 'string', + name: 'string', + order: 'boolean', + orderBy: 'string', + pageNumber: 'number', + pageSize: 'number', + regionId: 'string', + templateId: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTemplateListResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTemplateListResponse.ts new file mode 100644 index 0000000..0802dc2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTemplateListResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeMetricRuleTemplateListResponseBody } from "./DescribeMetricRuleTemplateListResponseBody"; + + +export class DescribeMetricRuleTemplateListResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeMetricRuleTemplateListResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMetricRuleTemplateListResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTemplateListResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTemplateListResponseBody.ts new file mode 100644 index 0000000..4b2dc53 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricRuleTemplateListResponseBody.ts @@ -0,0 +1,286 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMetricRuleTemplateListResponseBodyTemplatesTemplateApplyHistoriesApplyHistory extends $dara.Model { + /** + * @remarks + * The timestamp when the alert template was applied to the application group. + * + * Unit: milliseconds. + * + * @example + * 1646055898000 + */ + applyTime?: number; + /** + * @remarks + * The ID of the application group. + * + * @example + * 3607**** + */ + groupId?: number; + /** + * @remarks + * The name of the application group. + * + * @example + * ECS_Group + */ + groupName?: string; + static names(): { [key: string]: string } { + return { + applyTime: 'ApplyTime', + groupId: 'GroupId', + groupName: 'GroupName', + }; + } + + static types(): { [key: string]: any } { + return { + applyTime: 'number', + groupId: 'number', + groupName: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMetricRuleTemplateListResponseBodyTemplatesTemplateApplyHistories extends $dara.Model { + applyHistory?: DescribeMetricRuleTemplateListResponseBodyTemplatesTemplateApplyHistoriesApplyHistory[]; + static names(): { [key: string]: string } { + return { + applyHistory: 'ApplyHistory', + }; + } + + static types(): { [key: string]: any } { + return { + applyHistory: { 'type': 'array', 'itemType': DescribeMetricRuleTemplateListResponseBodyTemplatesTemplateApplyHistoriesApplyHistory }, + }; + } + + validate() { + if(Array.isArray(this.applyHistory)) { + $dara.Model.validateArray(this.applyHistory); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMetricRuleTemplateListResponseBodyTemplatesTemplate extends $dara.Model { + /** + * @remarks + * The history of applying the alert templates to application groups. + */ + applyHistories?: DescribeMetricRuleTemplateListResponseBodyTemplatesTemplateApplyHistories; + /** + * @remarks + * The description of the alert template. + */ + description?: string; + /** + * @remarks + * The timestamp when the alert template was created. + * + * Unit: milliseconds. + * + * @example + * 1646018798000 + */ + gmtCreate?: number; + /** + * @remarks + * The timestamp when the alert template was modified. + * + * Unit: milliseconds. + * + * @example + * 1646054798000 + */ + gmtModified?: number; + /** + * @remarks + * The name of the alert template. + * + * @example + * ECS_Template1 + */ + name?: string; + /** + * @remarks + * The version of the alert template. + * + * Default value: 0. + * + * @example + * 0 + */ + restVersion?: number; + /** + * @remarks + * The ID of the alert template. + * + * @example + * 70**** + */ + templateId?: number; + static names(): { [key: string]: string } { + return { + applyHistories: 'ApplyHistories', + description: 'Description', + gmtCreate: 'GmtCreate', + gmtModified: 'GmtModified', + name: 'Name', + restVersion: 'RestVersion', + templateId: 'TemplateId', + }; + } + + static types(): { [key: string]: any } { + return { + applyHistories: DescribeMetricRuleTemplateListResponseBodyTemplatesTemplateApplyHistories, + description: 'string', + gmtCreate: 'number', + gmtModified: 'number', + name: 'string', + restVersion: 'number', + templateId: 'number', + }; + } + + validate() { + if(this.applyHistories && typeof (this.applyHistories as any).validate === 'function') { + (this.applyHistories as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMetricRuleTemplateListResponseBodyTemplates extends $dara.Model { + template?: DescribeMetricRuleTemplateListResponseBodyTemplatesTemplate[]; + static names(): { [key: string]: string } { + return { + template: 'Template', + }; + } + + static types(): { [key: string]: any } { + return { + template: { 'type': 'array', 'itemType': DescribeMetricRuleTemplateListResponseBodyTemplatesTemplate }, + }; + } + + validate() { + if(Array.isArray(this.template)) { + $dara.Model.validateArray(this.template); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMetricRuleTemplateListResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 659401C0-6214-5C02-972A-CFA929D717B7 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The queried alert templates. + */ + templates?: DescribeMetricRuleTemplateListResponseBodyTemplates; + /** + * @remarks + * The total number of entries returned. + * + * @example + * 2 + */ + total?: number; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + templates: 'Templates', + total: 'Total', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + templates: DescribeMetricRuleTemplateListResponseBodyTemplates, + total: 'number', + }; + } + + validate() { + if(this.templates && typeof (this.templates as any).validate === 'function') { + (this.templates as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricTopRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricTopRequest.ts new file mode 100644 index 0000000..7ab3f73 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricTopRequest.ts @@ -0,0 +1,198 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMetricTopRequest extends $dara.Model { + /** + * @remarks + * The monitoring dimensions of the specified resource. + * + * Set the value to a collection of `key:value` pairs. Example: `{"userId":"120886317861****"}` or `{"instanceId":"i-2ze2d6j5uhg20x47****"}`. + * + * > You can query a maximum of 50 instances in each request. + * + * @example + * [{"instanceId": "i-abcdefgh12****"}] + */ + dimensions?: string; + /** + * @remarks + * The end of the time range to query monitoring data. + * + * * If the `StartTime` and `EndTime` parameters are not specified, the monitoring data of the last statistical period is queried.`` + * + * * If the `StartTime` and `EndTime` parameters are specified, the monitoring data of the last statistical period in the specified time range is queried.```` + * + * * If you set the `Period` parameter to 15, the specified time range must be less than or equal to 20 minutes. For example, if you set the StartTime parameter to 2021-05-08 08:10:00 and the EndTime parameter to 2021-05-08 08:30:00, the monitoring data of the last 15 seconds in the time range is queried. + * * If you set the `Period` parameter to 60 or 900, the specified time range must be less than or equal to 2 hours. For example, if you set the Period parameter to 60, the StartTime parameter to 2021-05-08 08:00:00, and the EndTime parameter to 2021-05-08 10:00:00, the monitoring data of the last 60 seconds in the time range is queried. + * * If you set the `Period` parameter to 3600, the specified time range must be less than or equal to two days. For example, if you set the StartTime parameter to 2021-05-08 08:00:00 and the EndTime parameter to 2021-05-10 08:00:00, the monitoring data of the last 3,600 seconds in the time range is queried. + * + * The following formats are supported: + * + * * UNIX timestamp: the number of milliseconds that have elapsed since 00:00:00 Thursday, January 1, 1970 + * * Time format: YYYY-MM-DDThh:mm:ssZ + * + * > We recommend that you use UNIX timestamps to prevent time zone-related issues. + * + * @example + * 2021-05-08 10:00:00 + */ + endTime?: string; + /** + * @remarks + * The expression that is used to compute the query results in real time. + * + * > Only the `groupby` expression is supported. This expression is similar to the GROUP BY statement used in databases. + * + * @example + * {"groupby":["userId","instanceId"]} + */ + express?: string; + /** + * @remarks + * The number of entries per page. + * + * Default value: 10. + * + * > The maximum value of the Length parameter in a request is 1440. + * + * @example + * 10 + */ + length?: string; + /** + * @remarks + * The metric that is used to monitor the cloud service. + * + * For more information about metric names, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * cpu_idle + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * For more information about the namespaces of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The order in which data is sorted. Valid values: + * + * * True: sorts data in ascending order. + * * False (default): sorts data in descending order. + * + * @example + * False + */ + orderDesc?: string; + /** + * @remarks + * The field based on which data is sorted. Valid values: + * + * * Average + * * Minimum + * * Maximum + * + * This parameter is required. + * + * @example + * Average + */ + orderby?: string; + /** + * @remarks + * The statistical period of the monitoring data. + * + * Valid values: 15, 60, 900, and 3600. + * + * Unit: seconds. + * + * > + * + * * If this parameter is not specified, monitoring data is queried based on the period in which metric values are reported. + * + * * Statistical periods vary based on the metrics that are specified by `MetricName`. For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * 60 + */ + period?: string; + regionId?: string; + /** + * @remarks + * The start of the time range to query monitoring data. + * + * * If the `StartTime` and `EndTime` parameters are not specified, the monitoring data of the last statistical period is queried.`` + * + * * If the `StartTime` and `EndTime` parameters are specified, the monitoring data of the last statistical period in the specified time range is queried.```` + * + * * If you set the `Period` parameter to 15, the specified time range must be less than or equal to 20 minutes. For example, if you set the StartTime parameter to 2021-05-08 08:10:00 and the EndTime parameter to 2021-05-08 08:30:00, the monitoring data of the last 15 seconds in the time range is queried. + * * If you set the `Period` parameter to 60 or 900, the specified time range must be less than or equal to 2 hours. For example, if you set the Period parameter to 60, the StartTime parameter to 2021-05-08 08:00:00, and the EndTime parameter to 2021-05-08 10:00:00, the monitoring data of the last 60 seconds in the time range is queried. + * * If you set the `Period` parameter to 3600, the specified time range must be less than or equal to two days. For example, if you set the StartTime parameter to 2021-05-08 08:00:00 and the EndTime parameter to 2021-05-10 08:00:00, the monitoring data of the last 3,600 seconds in the time range is queried. + * + * The following formats are supported: + * + * * UNIX timestamp: the number of milliseconds that have elapsed since 00:00:00 Thursday, January 1, 1970 + * * Time format: YYYY-MM-DDThh:mm:ssZ + * + * > + * + * * You must set the `StartTime` parameter to a point in time that is later than 00:00:00 Thursday, January 1, 1970. Otherwise, this parameter is invalid. + * + * * We recommend that you use UNIX timestamps to prevent time zone-related issues. + * + * @example + * 2021-05-08 08:00:00 + */ + startTime?: string; + static names(): { [key: string]: string } { + return { + dimensions: 'Dimensions', + endTime: 'EndTime', + express: 'Express', + length: 'Length', + metricName: 'MetricName', + namespace: 'Namespace', + orderDesc: 'OrderDesc', + orderby: 'Orderby', + period: 'Period', + regionId: 'RegionId', + startTime: 'StartTime', + }; + } + + static types(): { [key: string]: any } { + return { + dimensions: 'string', + endTime: 'string', + express: 'string', + length: 'string', + metricName: 'string', + namespace: 'string', + orderDesc: 'string', + orderby: 'string', + period: 'string', + regionId: 'string', + startTime: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricTopResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricTopResponse.ts new file mode 100644 index 0000000..7c71209 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricTopResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeMetricTopResponseBody } from "./DescribeMetricTopResponseBody"; + + +export class DescribeMetricTopResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeMetricTopResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMetricTopResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricTopResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricTopResponseBody.ts new file mode 100644 index 0000000..46814b4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMetricTopResponseBody.ts @@ -0,0 +1,76 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMetricTopResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The monitoring data. + * + * @example + * [{\\"order\\":1,\\"timestamp\\":1620287520000,\\"userId\\":\\"120886317861****\\",\\"instanceId\\":\\"i-j6ccf7d5fn335qpo****\\",\\"Average\\":99.92,\\"Minimum\\":99.5,\\"Maximum\\":100.0,\\"_count\\":1.0},{\\"order\\":2,\\"timestamp\\":1620287520000,\\"userId\\":\\"120886317861****\\",\\"instanceId\\":\\"i-0xii2bvf42iqvxbp****\\",\\"Average\\":99.91,\\"Minimum\\":99.0,\\"Maximum\\":100.0,\\"_count\\":1.0}] + */ + datapoints?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The statistical period of the monitoring data. Unit: seconds. Valid values: 15, 60, 900, and 3600. + * + * @example + * 60 + */ + period?: string; + /** + * @remarks + * The request ID. + * + * @example + * 3121AE7D-4AFF-4C25-8F1D-C8226EBB1F42 + */ + requestId?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + datapoints: 'Datapoints', + message: 'Message', + period: 'Period', + requestId: 'RequestId', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + datapoints: 'string', + message: 'string', + period: 'string', + requestId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupCategoriesRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupCategoriesRequest.ts new file mode 100644 index 0000000..3839970 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupCategoriesRequest.ts @@ -0,0 +1,39 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMonitorGroupCategoriesRequest extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * This parameter is required. + * + * @example + * 123456 + */ + groupId?: number; + regionId?: string; + static names(): { [key: string]: string } { + return { + groupId: 'GroupId', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + groupId: 'number', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupCategoriesResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupCategoriesResponse.ts new file mode 100644 index 0000000..986b560 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupCategoriesResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeMonitorGroupCategoriesResponseBody } from "./DescribeMonitorGroupCategoriesResponseBody"; + + +export class DescribeMonitorGroupCategoriesResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeMonitorGroupCategoriesResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMonitorGroupCategoriesResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupCategoriesResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupCategoriesResponseBody.ts new file mode 100644 index 0000000..a66bcc5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupCategoriesResponseBody.ts @@ -0,0 +1,187 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategoriesMonitorGroupCategoryCategoryItem extends $dara.Model { + /** + * @remarks + * The abbreviation of the cloud service name. + * + * > 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. + * + * @example + * ECS + */ + category?: string; + /** + * @remarks + * The number of resources that belong to the cloud service. + * + * @example + * 1 + */ + count?: number; + static names(): { [key: string]: string } { + return { + category: 'Category', + count: 'Count', + }; + } + + static types(): { [key: string]: any } { + return { + category: 'string', + count: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategoriesMonitorGroupCategory extends $dara.Model { + categoryItem?: DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategoriesMonitorGroupCategoryCategoryItem[]; + static names(): { [key: string]: string } { + return { + categoryItem: 'CategoryItem', + }; + } + + static types(): { [key: string]: any } { + return { + categoryItem: { 'type': 'array', 'itemType': DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategoriesMonitorGroupCategoryCategoryItem }, + }; + } + + validate() { + if(Array.isArray(this.categoryItem)) { + $dara.Model.validateArray(this.categoryItem); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategories extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * @example + * 123456 + */ + groupId?: number; + /** + * @remarks + * The cloud services to which the resources in the application group belong and the number of resources that belong to the cloud service. + */ + monitorGroupCategory?: DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategoriesMonitorGroupCategory; + static names(): { [key: string]: string } { + return { + groupId: 'GroupId', + monitorGroupCategory: 'MonitorGroupCategory', + }; + } + + static types(): { [key: string]: any } { + return { + groupId: 'number', + monitorGroupCategory: DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategoriesMonitorGroupCategory, + }; + } + + validate() { + if(this.monitorGroupCategory && typeof (this.monitorGroupCategory as any).validate === 'function') { + (this.monitorGroupCategory as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorGroupCategoriesResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The error message returned. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The cloud services to which the resources in the application group belong and the number of resources that belong to the cloud service. + */ + monitorGroupCategories?: DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategories; + /** + * @remarks + * The request ID. + * + * @example + * 9E0347B0-EBC3-4769-A78D-D96F21C6BB52 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true: The request was successful. + * * false: The request failed. + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + monitorGroupCategories: 'MonitorGroupCategories', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'number', + message: 'string', + monitorGroupCategories: DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategories, + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + if(this.monitorGroupCategories && typeof (this.monitorGroupCategories as any).validate === 'function') { + (this.monitorGroupCategories as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupDynamicRulesRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupDynamicRulesRequest.ts new file mode 100644 index 0000000..8bdf097 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupDynamicRulesRequest.ts @@ -0,0 +1,39 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMonitorGroupDynamicRulesRequest extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * This parameter is required. + * + * @example + * 123456 + */ + groupId?: number; + regionId?: string; + static names(): { [key: string]: string } { + return { + groupId: 'GroupId', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + groupId: 'number', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupDynamicRulesResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupDynamicRulesResponse.ts new file mode 100644 index 0000000..70ef399 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupDynamicRulesResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeMonitorGroupDynamicRulesResponseBody } from "./DescribeMonitorGroupDynamicRulesResponseBody"; + + +export class DescribeMonitorGroupDynamicRulesResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeMonitorGroupDynamicRulesResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMonitorGroupDynamicRulesResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupDynamicRulesResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupDynamicRulesResponseBody.ts new file mode 100644 index 0000000..bbe5b84 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupDynamicRulesResponseBody.ts @@ -0,0 +1,242 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMonitorGroupDynamicRulesResponseBodyResourceResourceFiltersFilter extends $dara.Model { + /** + * @remarks + * The method that is used to filter the instances. Valid values: + * + * * contains: contains + * * startWith: starts with a prefix + * * endWith: ends with a suffix + * + * @example + * contains + */ + function?: string; + /** + * @remarks + * The instance name. + * + * @example + * hostName + */ + name?: string; + /** + * @remarks + * The value of the dynamic rule. + * + * @example + * 1 + */ + value?: string; + static names(): { [key: string]: string } { + return { + function: 'Function', + name: 'Name', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + function: 'string', + name: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorGroupDynamicRulesResponseBodyResourceResourceFilters extends $dara.Model { + filter?: DescribeMonitorGroupDynamicRulesResponseBodyResourceResourceFiltersFilter[]; + static names(): { [key: string]: string } { + return { + filter: 'Filter', + }; + } + + static types(): { [key: string]: any } { + return { + filter: { 'type': 'array', 'itemType': DescribeMonitorGroupDynamicRulesResponseBodyResourceResourceFiltersFilter }, + }; + } + + validate() { + if(Array.isArray(this.filter)) { + $dara.Model.validateArray(this.filter); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorGroupDynamicRulesResponseBodyResourceResource extends $dara.Model { + /** + * @remarks + * The type of the cloud service to which the dynamic rule belongs. Valid values: + * + * * ecs: Elastic Compute Service (ECS) + * * rds: ApsaraDB RDS + * * slb: Server Load Balancer (SLB) + * + * @example + * ecs + */ + category?: string; + /** + * @remarks + * The filter condition. Valid values: + * + * * and: queries the instances that meet all alert rules. + * * or: queries the instances that meet any alert rule. + * + * @example + * and + */ + filterRelation?: string; + /** + * @remarks + * The dynamic rules of the application group. + */ + filters?: DescribeMonitorGroupDynamicRulesResponseBodyResourceResourceFilters; + static names(): { [key: string]: string } { + return { + category: 'Category', + filterRelation: 'FilterRelation', + filters: 'Filters', + }; + } + + static types(): { [key: string]: any } { + return { + category: 'string', + filterRelation: 'string', + filters: DescribeMonitorGroupDynamicRulesResponseBodyResourceResourceFilters, + }; + } + + validate() { + if(this.filters && typeof (this.filters as any).validate === 'function') { + (this.filters as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorGroupDynamicRulesResponseBodyResource extends $dara.Model { + resource?: DescribeMonitorGroupDynamicRulesResponseBodyResourceResource[]; + static names(): { [key: string]: string } { + return { + resource: 'Resource', + }; + } + + static types(): { [key: string]: any } { + return { + resource: { 'type': 'array', 'itemType': DescribeMonitorGroupDynamicRulesResponseBodyResourceResource }, + }; + } + + validate() { + if(Array.isArray(this.resource)) { + $dara.Model.validateArray(this.resource); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorGroupDynamicRulesResponseBody extends $dara.Model { + /** + * @remarks + * The responses code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The returned message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 2170B94A-1576-4D65-900E-2093037CDAF3 + */ + requestId?: string; + /** + * @remarks + * The resources that are associated with the application group. + */ + resource?: DescribeMonitorGroupDynamicRulesResponseBodyResource; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + resource: 'Resource', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'number', + message: 'string', + requestId: 'string', + resource: DescribeMonitorGroupDynamicRulesResponseBodyResource, + success: 'boolean', + }; + } + + validate() { + if(this.resource && typeof (this.resource as any).validate === 'function') { + (this.resource as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupInstanceAttributeRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupInstanceAttributeRequest.ts new file mode 100644 index 0000000..002fa15 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupInstanceAttributeRequest.ts @@ -0,0 +1,112 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMonitorGroupInstanceAttributeRequest extends $dara.Model { + /** + * @remarks + * The abbreviation of the cloud service name. + * + * 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/2513265.html) operation. + * + * @example + * ecs + */ + category?: string; + /** + * @remarks + * The ID of the application group. + * + * This parameter is required. + * + * @example + * 123456 + */ + groupId?: number; + /** + * @remarks + * The resource ID. Separate multiple resource IDs with commas (,). You can query the details about a maximum of 20 resources at a time. + * + * @example + * i-m5e0k0bexac8tykr**** + */ + instanceIds?: string; + /** + * @remarks + * The keyword that is used to search for resources. + * + * @example + * portal + */ + keyword?: string; + /** + * @remarks + * The page number. + * + * Valid values: 1 to 1000000000. + * + * Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * Valid values: 1 to 1000000000. + * + * Default value: 10. + * + * @example + * 10 + */ + pageSize?: number; + regionId?: string; + /** + * @remarks + * Specifies whether to return the total number of resources in the specified application group. Valid values: + * + * * true (default) + * * false + * + * @example + * true + */ + total?: boolean; + static names(): { [key: string]: string } { + return { + category: 'Category', + groupId: 'GroupId', + instanceIds: 'InstanceIds', + keyword: 'Keyword', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + total: 'Total', + }; + } + + static types(): { [key: string]: any } { + return { + category: 'string', + groupId: 'number', + instanceIds: 'string', + keyword: 'string', + pageNumber: 'number', + pageSize: 'number', + regionId: 'string', + total: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupInstanceAttributeResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupInstanceAttributeResponse.ts new file mode 100644 index 0000000..09dabbc --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupInstanceAttributeResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeMonitorGroupInstanceAttributeResponseBody } from "./DescribeMonitorGroupInstanceAttributeResponseBody"; + + +export class DescribeMonitorGroupInstanceAttributeResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeMonitorGroupInstanceAttributeResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMonitorGroupInstanceAttributeResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupInstanceAttributeResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupInstanceAttributeResponseBody.ts new file mode 100644 index 0000000..b08e9c7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupInstanceAttributeResponseBody.ts @@ -0,0 +1,391 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceRegion extends $dara.Model { + /** + * @remarks + * The zone. + * + * @example + * cn-hangzhou-f + */ + availabilityZone?: string; + /** + * @remarks + * The region ID. + * + * @example + * cn-hangzhou + */ + regionId?: string; + static names(): { [key: string]: string } { + return { + availabilityZone: 'AvailabilityZone', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + availabilityZone: 'string', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceTagsTag extends $dara.Model { + /** + * @remarks + * The tag key. + * + * @example + * instanceNetworkType + */ + key?: string; + /** + * @remarks + * The tag value. + * + * @example + * VPC + */ + value?: string; + static names(): { [key: string]: string } { + return { + key: 'Key', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + key: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceTags extends $dara.Model { + tag?: DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceTagsTag[]; + static names(): { [key: string]: string } { + return { + tag: 'Tag', + }; + } + + static types(): { [key: string]: any } { + return { + tag: { 'type': 'array', 'itemType': DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceTagsTag }, + }; + } + + validate() { + if(Array.isArray(this.tag)) { + $dara.Model.validateArray(this.tag); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceVpc extends $dara.Model { + /** + * @remarks + * The VPC ID. + * + * @example + * vpc-2zew7etgiceg21**** + */ + vpcInstanceId?: string; + /** + * @remarks + * The vSwitch ID. + * + * @example + * vsw-2ze36seq79n992**** + */ + vswitchInstanceId?: string; + static names(): { [key: string]: string } { + return { + vpcInstanceId: 'VpcInstanceId', + vswitchInstanceId: 'VswitchInstanceId', + }; + } + + static types(): { [key: string]: any } { + return { + vpcInstanceId: 'string', + vswitchInstanceId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResource extends $dara.Model { + /** + * @remarks + * The name of the cloud service. + * + * @example + * ecs + */ + category?: string; + /** + * @remarks + * The resource description. + * + * @example + * desc_test + */ + desc?: string; + /** + * @remarks + * The dimensions of the resource that is associated with the application group. + * + * @example + * {"instanceId":"i-m5e0k0bexac8tykr****"} + */ + dimension?: string; + /** + * @remarks + * The instance ID. + * + * @example + * i-m5e0k0bexac8tykr**** + */ + instanceId?: string; + /** + * @remarks + * The instance name. + * + * @example + * hostName + */ + instanceName?: string; + /** + * @remarks + * The network type. + * + * @example + * vpc + */ + networkType?: string; + /** + * @remarks + * The region. + */ + region?: DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceRegion; + /** + * @remarks + * The tag of the resource. + */ + tags?: DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceTags; + /** + * @remarks + * The VPC description. + */ + vpc?: DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceVpc; + static names(): { [key: string]: string } { + return { + category: 'Category', + desc: 'Desc', + dimension: 'Dimension', + instanceId: 'InstanceId', + instanceName: 'InstanceName', + networkType: 'NetworkType', + region: 'Region', + tags: 'Tags', + vpc: 'Vpc', + }; + } + + static types(): { [key: string]: any } { + return { + category: 'string', + desc: 'string', + dimension: 'string', + instanceId: 'string', + instanceName: 'string', + networkType: 'string', + region: DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceRegion, + tags: DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceTags, + vpc: DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceVpc, + }; + } + + validate() { + if(this.region && typeof (this.region as any).validate === 'function') { + (this.region as any).validate(); + } + if(this.tags && typeof (this.tags as any).validate === 'function') { + (this.tags as any).validate(); + } + if(this.vpc && typeof (this.vpc as any).validate === 'function') { + (this.vpc as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorGroupInstanceAttributeResponseBodyResources extends $dara.Model { + resource?: DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResource[]; + static names(): { [key: string]: string } { + return { + resource: 'Resource', + }; + } + + static types(): { [key: string]: any } { + return { + resource: { 'type': 'array', 'itemType': DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResource }, + }; + } + + validate() { + if(Array.isArray(this.resource)) { + $dara.Model.validateArray(this.resource); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorGroupInstanceAttributeResponseBody extends $dara.Model { + /** + * @remarks + * The responses code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The returned message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The page number. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * @example + * 2 + */ + pageSize?: number; + /** + * @remarks + * The request ID. + * + * @example + * 9FB8EA79-7279-4482-8D6D-3D28EEDD871A + */ + requestId?: string; + /** + * @remarks + * The resources that are associated with the application group. + */ + resources?: DescribeMonitorGroupInstanceAttributeResponseBodyResources; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The total number of entries returned. + * + * @example + * 12 + */ + total?: number; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + requestId: 'RequestId', + resources: 'Resources', + success: 'Success', + total: 'Total', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'number', + message: 'string', + pageNumber: 'number', + pageSize: 'number', + requestId: 'string', + resources: DescribeMonitorGroupInstanceAttributeResponseBodyResources, + success: 'boolean', + total: 'number', + }; + } + + validate() { + if(this.resources && typeof (this.resources as any).validate === 'function') { + (this.resources as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupInstancesRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupInstancesRequest.ts new file mode 100644 index 0000000..226085e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupInstancesRequest.ts @@ -0,0 +1,91 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMonitorGroupInstancesRequest extends $dara.Model { + /** + * @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. + * + * @example + * ecs + */ + category?: string; + /** + * @remarks + * The ID of the application group. + * + * This parameter is required. + * + * @example + * 12345 + */ + groupId?: number; + /** + * @remarks + * The instance ID. You can query multiple instances by specifying multiple IDs. + * + * @example + * i-x1234568 + */ + instanceIds?: string; + /** + * @remarks + * The keyword used to search for instances. Fuzzy search based on instance names is supported. + * + * @example + * s1 + */ + keyword?: string; + /** + * @remarks + * The page number. Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. Default value: 10. + * + * @example + * 10 + */ + pageSize?: number; + regionId?: string; + static names(): { [key: string]: string } { + return { + category: 'Category', + groupId: 'GroupId', + instanceIds: 'InstanceIds', + keyword: 'Keyword', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + category: 'string', + groupId: 'number', + instanceIds: 'string', + keyword: 'string', + pageNumber: 'number', + pageSize: 'number', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupInstancesResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupInstancesResponse.ts new file mode 100644 index 0000000..3f79927 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupInstancesResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeMonitorGroupInstancesResponseBody } from "./DescribeMonitorGroupInstancesResponseBody"; + + +export class DescribeMonitorGroupInstancesResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeMonitorGroupInstancesResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMonitorGroupInstancesResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupInstancesResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupInstancesResponseBody.ts new file mode 100644 index 0000000..183783b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupInstancesResponseBody.ts @@ -0,0 +1,202 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMonitorGroupInstancesResponseBodyResourcesResource extends $dara.Model { + /** + * @remarks + * The abbreviation of the service name. + * + * @example + * ecs + */ + category?: string; + /** + * @remarks + * The resource ID. + * + * @example + * 12345 + */ + id?: number; + /** + * @remarks + * The instance ID. + * + * @example + * i-2ze3w55tr2r**** + */ + instanceId?: string; + /** + * @remarks + * The instance name. + * + * @example + * hostIP + */ + instanceName?: string; + /** + * @remarks + * The ID of the region where the instance resides. + * + * @example + * cn-hangzhou + */ + regionId?: string; + static names(): { [key: string]: string } { + return { + category: 'Category', + id: 'Id', + instanceId: 'InstanceId', + instanceName: 'InstanceName', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + category: 'string', + id: 'number', + instanceId: 'string', + instanceName: 'string', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorGroupInstancesResponseBodyResources extends $dara.Model { + resource?: DescribeMonitorGroupInstancesResponseBodyResourcesResource[]; + static names(): { [key: string]: string } { + return { + resource: 'Resource', + }; + } + + static types(): { [key: string]: any } { + return { + resource: { 'type': 'array', 'itemType': DescribeMonitorGroupInstancesResponseBodyResourcesResource }, + }; + } + + validate() { + if(Array.isArray(this.resource)) { + $dara.Model.validateArray(this.resource); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorGroupInstancesResponseBody extends $dara.Model { + /** + * @remarks + * The responses code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The page number. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * @example + * 10 + */ + pageSize?: number; + /** + * @remarks + * The request ID. + * + * @example + * 97F2A410-9412-499C-9AD1-76EF7EC02DF2 + */ + requestId?: string; + /** + * @remarks + * The information about the resources in the application group. + */ + resources?: DescribeMonitorGroupInstancesResponseBodyResources; + /** + * @remarks + * Indicates whether the request was successful. + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The total number of entries returned. + * + * @example + * 12 + */ + total?: number; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + requestId: 'RequestId', + resources: 'Resources', + success: 'Success', + total: 'Total', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'number', + message: 'string', + pageNumber: 'number', + pageSize: 'number', + requestId: 'string', + resources: DescribeMonitorGroupInstancesResponseBodyResources, + success: 'boolean', + total: 'number', + }; + } + + validate() { + if(this.resources && typeof (this.resources as any).validate === 'function') { + (this.resources as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupNotifyPolicyListRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupNotifyPolicyListRequest.ts new file mode 100644 index 0000000..d0e5890 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupNotifyPolicyListRequest.ts @@ -0,0 +1,71 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMonitorGroupNotifyPolicyListRequest extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * @example + * 6780**** + */ + groupId?: string; + /** + * @remarks + * The page number. Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. Default value: 10. + * + * @example + * 100 + */ + pageSize?: number; + /** + * @remarks + * The type of the policy. + * + * Valid value: PauseNotify. + * + * This parameter is required. + * + * @example + * PauseNotify + */ + policyType?: string; + regionId?: string; + static names(): { [key: string]: string } { + return { + groupId: 'GroupId', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + policyType: 'PolicyType', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + groupId: 'string', + pageNumber: 'number', + pageSize: 'number', + policyType: 'string', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupNotifyPolicyListResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupNotifyPolicyListResponse.ts new file mode 100644 index 0000000..92150a1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupNotifyPolicyListResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeMonitorGroupNotifyPolicyListResponseBody } from "./DescribeMonitorGroupNotifyPolicyListResponseBody"; + + +export class DescribeMonitorGroupNotifyPolicyListResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeMonitorGroupNotifyPolicyListResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMonitorGroupNotifyPolicyListResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupNotifyPolicyListResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupNotifyPolicyListResponseBody.ts new file mode 100644 index 0000000..7b66539 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupNotifyPolicyListResponseBody.ts @@ -0,0 +1,189 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMonitorGroupNotifyPolicyListResponseBodyNotifyPolicyListNotifyPolicy extends $dara.Model { + /** + * @remarks + * The end of the time range to query. + * + * Unit: milliseconds. + * + * @example + * 1551761781273 + */ + endTime?: number; + /** + * @remarks + * The ID of the application group. + * + * @example + * 6780**** + */ + groupId?: string; + /** + * @remarks + * The policy ID. + * + * @example + * 123**** + */ + id?: string; + /** + * @remarks + * The beginning of the time range to query. + * + * Unit: milliseconds. + * + * @example + * 1551761781273 + */ + startTime?: number; + /** + * @remarks + * The policy type. + * + * @example + * PauseNotify + */ + type?: string; + static names(): { [key: string]: string } { + return { + endTime: 'EndTime', + groupId: 'GroupId', + id: 'Id', + startTime: 'StartTime', + type: 'Type', + }; + } + + static types(): { [key: string]: any } { + return { + endTime: 'number', + groupId: 'string', + id: 'string', + startTime: 'number', + type: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorGroupNotifyPolicyListResponseBodyNotifyPolicyList extends $dara.Model { + notifyPolicy?: DescribeMonitorGroupNotifyPolicyListResponseBodyNotifyPolicyListNotifyPolicy[]; + static names(): { [key: string]: string } { + return { + notifyPolicy: 'NotifyPolicy', + }; + } + + static types(): { [key: string]: any } { + return { + notifyPolicy: { 'type': 'array', 'itemType': DescribeMonitorGroupNotifyPolicyListResponseBodyNotifyPolicyListNotifyPolicy }, + }; + } + + validate() { + if(Array.isArray(this.notifyPolicy)) { + $dara.Model.validateArray(this.notifyPolicy); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorGroupNotifyPolicyListResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The returned policies. + */ + notifyPolicyList?: DescribeMonitorGroupNotifyPolicyListResponseBodyNotifyPolicyList; + /** + * @remarks + * The request ID. + * + * @example + * 6072F026-C441-41A6-B114-35A1E8F8FDD3 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + /** + * @remarks + * The total number of entries returned. + * + * @example + * 11 + */ + total?: number; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + notifyPolicyList: 'NotifyPolicyList', + requestId: 'RequestId', + success: 'Success', + total: 'Total', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + notifyPolicyList: DescribeMonitorGroupNotifyPolicyListResponseBodyNotifyPolicyList, + requestId: 'string', + success: 'string', + total: 'number', + }; + } + + validate() { + if(this.notifyPolicyList && typeof (this.notifyPolicyList as any).validate === 'function') { + (this.notifyPolicyList as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupsRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupsRequest.ts new file mode 100644 index 0000000..312c8ca --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupsRequest.ts @@ -0,0 +1,228 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMonitorGroupsRequestTag extends $dara.Model { + /** + * @remarks + * The tag key of the application group. Valid values of N: 1 to 5. + * + * @example + * tagKey1 + */ + key?: string; + /** + * @remarks + * The tag value of the application group. Valid values of N: 1 to 5. + * + * @example + * tagValue1 + */ + value?: string; + static names(): { [key: string]: string } { + return { + key: 'Key', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + key: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorGroupsRequest extends $dara.Model { + /** + * @remarks + * The ID of the tag rule. + * + * @example + * 6b882d9a-5117-42e2-9d0c-4749a0c6**** + */ + dynamicTagRuleId?: string; + /** + * @remarks + * The tag key that is created for the application group by using the tag rule. + * + * @example + * GroupKey1 + */ + groupFounderTagKey?: string; + /** + * @remarks + * The tag value that is created for the application group by using the tag rule. + * + * @example + * GroupValue1 + */ + groupFounderTagValue?: string; + /** + * @remarks + * The ID of the application group. Separate multiple application group IDs with commas (,). + * + * @example + * 92**** + */ + groupId?: string; + /** + * @remarks + * The name of the application group. + * + * @example + * testGroup124 + */ + groupName?: string; + /** + * @remarks + * Specifies whether to include the historical alert templates that are applied to the application group in the response. Valid values: + * + * * true + * * false + * + * @example + * true + */ + includeTemplateHistory?: boolean; + /** + * @remarks + * The instance ID. This parameter is used to query the application group to which the specified instance belongs. + * + * @example + * i-abcdefgh12**** + */ + instanceId?: string; + /** + * @remarks + * The keyword that is used for the search. + * + * @example + * test + */ + keyword?: string; + /** + * @remarks + * The number of the page to return. + * + * Pages start from page 1. Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries to return on each page. + * + * Pages start from page 1. Default value: 30. + * + * @example + * 30 + */ + pageSize?: number; + regionId?: string; + /** + * @remarks + * Specifies whether to include the alert contact groups in the response. Valid values: + * + * * true + * * false + * + * @example + * true + */ + selectContactGroups?: boolean; + /** + * @remarks + * The tags of the application group. + */ + tag?: DescribeMonitorGroupsRequestTag[]; + /** + * @remarks + * The type of the application group. Valid values: + * + * * custom: a self-managed application group + * * ehpc_cluster: an application group that is synchronized from an E-HPC cluster + * * kubernetes: an application group that is synchronized from an ACK cluster + * + * @example + * custom + */ + type?: string; + /** + * @remarks + * The type of the application group. Valid values: + * + * * custom: a self-managed application group + * * ehpc_cluster: an application group that is synchronized from an Elastic High Performance Computing (E-HPC) cluster + * * kubernetes: an application group that is synchronized from a Container Service for Kubernetes (ACK) cluster + * * tag: an application group that is automatically created by using tags + * * resMgr: an application group that is created by using resource groups + * * ess: an application group that is synchronized from Auto Scaling (ESS) + * + * @example + * custom + */ + types?: string; + static names(): { [key: string]: string } { + return { + dynamicTagRuleId: 'DynamicTagRuleId', + groupFounderTagKey: 'GroupFounderTagKey', + groupFounderTagValue: 'GroupFounderTagValue', + groupId: 'GroupId', + groupName: 'GroupName', + includeTemplateHistory: 'IncludeTemplateHistory', + instanceId: 'InstanceId', + keyword: 'Keyword', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + selectContactGroups: 'SelectContactGroups', + tag: 'Tag', + type: 'Type', + types: 'Types', + }; + } + + static types(): { [key: string]: any } { + return { + dynamicTagRuleId: 'string', + groupFounderTagKey: 'string', + groupFounderTagValue: 'string', + groupId: 'string', + groupName: 'string', + includeTemplateHistory: 'boolean', + instanceId: 'string', + keyword: 'string', + pageNumber: 'number', + pageSize: 'number', + regionId: 'string', + selectContactGroups: 'boolean', + tag: { 'type': 'array', 'itemType': DescribeMonitorGroupsRequestTag }, + type: 'string', + types: 'string', + }; + } + + validate() { + if(Array.isArray(this.tag)) { + $dara.Model.validateArray(this.tag); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupsResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupsResponse.ts new file mode 100644 index 0000000..4d9703a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupsResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeMonitorGroupsResponseBody } from "./DescribeMonitorGroupsResponseBody"; + + +export class DescribeMonitorGroupsResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeMonitorGroupsResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMonitorGroupsResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupsResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupsResponseBody.ts new file mode 100644 index 0000000..5753c4d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorGroupsResponseBody.ts @@ -0,0 +1,508 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMonitorGroupsResponseBodyResourcesResourceContactGroupsContactGroup extends $dara.Model { + /** + * @remarks + * The name of the alert contact group. + * + * @example + * CloudMonitor + */ + name?: string; + static names(): { [key: string]: string } { + return { + name: 'Name', + }; + } + + static types(): { [key: string]: any } { + return { + name: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorGroupsResponseBodyResourcesResourceContactGroups extends $dara.Model { + contactGroup?: DescribeMonitorGroupsResponseBodyResourcesResourceContactGroupsContactGroup[]; + static names(): { [key: string]: string } { + return { + contactGroup: 'ContactGroup', + }; + } + + static types(): { [key: string]: any } { + return { + contactGroup: { 'type': 'array', 'itemType': DescribeMonitorGroupsResponseBodyResourcesResourceContactGroupsContactGroup }, + }; + } + + validate() { + if(Array.isArray(this.contactGroup)) { + $dara.Model.validateArray(this.contactGroup); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorGroupsResponseBodyResourcesResourceTagsTag extends $dara.Model { + /** + * @remarks + * The tag key of the application group. + * + * @example + * tagKey1 + */ + key?: string; + /** + * @remarks + * The tag value of the application group. + * + * @example + * tagValue1 + */ + value?: string; + static names(): { [key: string]: string } { + return { + key: 'Key', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + key: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorGroupsResponseBodyResourcesResourceTags extends $dara.Model { + tag?: DescribeMonitorGroupsResponseBodyResourcesResourceTagsTag[]; + static names(): { [key: string]: string } { + return { + tag: 'Tag', + }; + } + + static types(): { [key: string]: any } { + return { + tag: { 'type': 'array', 'itemType': DescribeMonitorGroupsResponseBodyResourcesResourceTagsTag }, + }; + } + + validate() { + if(Array.isArray(this.tag)) { + $dara.Model.validateArray(this.tag); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorGroupsResponseBodyResourcesResourceTemplateIds extends $dara.Model { + templateId?: string[]; + static names(): { [key: string]: string } { + return { + templateId: 'TemplateId', + }; + } + + static types(): { [key: string]: any } { + return { + templateId: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.templateId)) { + $dara.Model.validateArray(this.templateId); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorGroupsResponseBodyResourcesResourceTemplateInfosTemplateInfo extends $dara.Model { + effectTime?: number; + templateId?: string; + ver?: string; + static names(): { [key: string]: string } { + return { + effectTime: 'EffectTime', + templateId: 'TemplateId', + ver: 'Ver', + }; + } + + static types(): { [key: string]: any } { + return { + effectTime: 'number', + templateId: 'string', + ver: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorGroupsResponseBodyResourcesResourceTemplateInfos extends $dara.Model { + templateInfo?: DescribeMonitorGroupsResponseBodyResourcesResourceTemplateInfosTemplateInfo[]; + static names(): { [key: string]: string } { + return { + templateInfo: 'TemplateInfo', + }; + } + + static types(): { [key: string]: any } { + return { + templateInfo: { 'type': 'array', 'itemType': DescribeMonitorGroupsResponseBodyResourcesResourceTemplateInfosTemplateInfo }, + }; + } + + validate() { + if(Array.isArray(this.templateInfo)) { + $dara.Model.validateArray(this.templateInfo); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorGroupsResponseBodyResourcesResource extends $dara.Model { + /** + * @remarks + * The URL of the ACK cluster from which the application group is synchronized. + * + * @example + * https://aliyun.com + */ + bindUrl?: string; + /** + * @remarks + * The alert contact groups. + */ + contactGroups?: DescribeMonitorGroupsResponseBodyResourcesResourceContactGroups; + /** + * @remarks + * The ID of the tag rule. + * + * @example + * 6b882d9a-5117-42e2-9d0c-4749a0c6**** + */ + dynamicTagRuleId?: string; + /** + * @remarks + * The timestamp when the application group was created. Unit: milliseconds. + * + * @example + * 1603181891000 + */ + gmtCreate?: number; + /** + * @remarks + * The timestamp when the application group was modified. Unit: milliseconds. + * + * @example + * 1603181891000 + */ + gmtModified?: number; + /** + * @remarks + * The tag key that is created for the application group by using the tag rule. + * + * @example + * GroupKey1 + */ + groupFounderTagKey?: string; + /** + * @remarks + * The tag value that is created for the application group by using the tag rule. + * + * @example + * GroupValue1 + */ + groupFounderTagValue?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 12345 + */ + groupId?: number; + /** + * @remarks + * The name of the application group. + * + * @example + * test123 + */ + groupName?: string; + /** + * @remarks + * The resource ID. + * + * @example + * rg-aek2hopjh******* + */ + resourceGroupId?: string; + /** + * @remarks + * The ID of the Alibaba Cloud service. + * + * @example + * 49**** + */ + serviceId?: string; + /** + * @remarks + * The tags that are attached to the application group. + */ + tags?: DescribeMonitorGroupsResponseBodyResourcesResourceTags; + /** + * @remarks + * The ID of the template. + */ + templateIds?: DescribeMonitorGroupsResponseBodyResourcesResourceTemplateIds; + templateInfos?: DescribeMonitorGroupsResponseBodyResourcesResourceTemplateInfos; + /** + * @remarks + * The type of the application group. Valid values: + * + * * custom: a self-managed application group + * * ehpc_cluster: an application group that is synchronized from an E-HPC cluster + * * kubernetes: an application group that is synchronized from an ACK cluster + * + * @example + * custom + */ + type?: string; + static names(): { [key: string]: string } { + return { + bindUrl: 'BindUrl', + contactGroups: 'ContactGroups', + dynamicTagRuleId: 'DynamicTagRuleId', + gmtCreate: 'GmtCreate', + gmtModified: 'GmtModified', + groupFounderTagKey: 'GroupFounderTagKey', + groupFounderTagValue: 'GroupFounderTagValue', + groupId: 'GroupId', + groupName: 'GroupName', + resourceGroupId: 'ResourceGroupId', + serviceId: 'ServiceId', + tags: 'Tags', + templateIds: 'TemplateIds', + templateInfos: 'TemplateInfos', + type: 'Type', + }; + } + + static types(): { [key: string]: any } { + return { + bindUrl: 'string', + contactGroups: DescribeMonitorGroupsResponseBodyResourcesResourceContactGroups, + dynamicTagRuleId: 'string', + gmtCreate: 'number', + gmtModified: 'number', + groupFounderTagKey: 'string', + groupFounderTagValue: 'string', + groupId: 'number', + groupName: 'string', + resourceGroupId: 'string', + serviceId: 'string', + tags: DescribeMonitorGroupsResponseBodyResourcesResourceTags, + templateIds: DescribeMonitorGroupsResponseBodyResourcesResourceTemplateIds, + templateInfos: DescribeMonitorGroupsResponseBodyResourcesResourceTemplateInfos, + type: 'string', + }; + } + + validate() { + if(this.contactGroups && typeof (this.contactGroups as any).validate === 'function') { + (this.contactGroups as any).validate(); + } + if(this.tags && typeof (this.tags as any).validate === 'function') { + (this.tags as any).validate(); + } + if(this.templateIds && typeof (this.templateIds as any).validate === 'function') { + (this.templateIds as any).validate(); + } + if(this.templateInfos && typeof (this.templateInfos as any).validate === 'function') { + (this.templateInfos as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorGroupsResponseBodyResources extends $dara.Model { + resource?: DescribeMonitorGroupsResponseBodyResourcesResource[]; + static names(): { [key: string]: string } { + return { + resource: 'Resource', + }; + } + + static types(): { [key: string]: any } { + return { + resource: { 'type': 'array', 'itemType': DescribeMonitorGroupsResponseBodyResourcesResource }, + }; + } + + validate() { + if(Array.isArray(this.resource)) { + $dara.Model.validateArray(this.resource); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorGroupsResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The returned message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The page number of the returned page. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries returned per page. + * + * @example + * 30 + */ + pageSize?: number; + /** + * @remarks + * The request ID. + * + * @example + * F02B299A-D374-4595-9F55-7534D604F132 + */ + requestId?: string; + /** + * @remarks + * The resources that are associated with the application group. + */ + resources?: DescribeMonitorGroupsResponseBodyResources; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The total number of returned entries. + * + * @example + * 10 + */ + total?: number; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + requestId: 'RequestId', + resources: 'Resources', + success: 'Success', + total: 'Total', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'number', + message: 'string', + pageNumber: 'number', + pageSize: 'number', + requestId: 'string', + resources: DescribeMonitorGroupsResponseBodyResources, + success: 'boolean', + total: 'number', + }; + } + + validate() { + if(this.resources && typeof (this.resources as any).validate === 'function') { + (this.resources as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorResourceQuotaAttributeRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorResourceQuotaAttributeRequest.ts new file mode 100644 index 0000000..529a0de --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorResourceQuotaAttributeRequest.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMonitorResourceQuotaAttributeRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * Specifies whether to return information about used quotas. Valid values: + * + * * true (default): yes + * * false: no + * + * @example + * true + */ + showUsed?: boolean; + static names(): { [key: string]: string } { + return { + regionId: 'RegionId', + showUsed: 'ShowUsed', + }; + } + + static types(): { [key: string]: any } { + return { + regionId: 'string', + showUsed: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorResourceQuotaAttributeResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorResourceQuotaAttributeResponse.ts new file mode 100644 index 0000000..c275290 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorResourceQuotaAttributeResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeMonitorResourceQuotaAttributeResponseBody } from "./DescribeMonitorResourceQuotaAttributeResponseBody"; + + +export class DescribeMonitorResourceQuotaAttributeResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeMonitorResourceQuotaAttributeResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMonitorResourceQuotaAttributeResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorResourceQuotaAttributeResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorResourceQuotaAttributeResponseBody.ts new file mode 100644 index 0000000..788673d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitorResourceQuotaAttributeResponseBody.ts @@ -0,0 +1,834 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaApi extends $dara.Model { + /** + * @remarks + * The total quota of API calls. Unit: 10,000 calls. + * + * @example + * 500 + */ + quotaLimit?: number; + /** + * @remarks + * The quota of API calls in your resource plan. Unit: 10,000 calls. + * + * @example + * 500 + */ + quotaPackage?: number; + /** + * @remarks + * The used quota of API calls in your resource plan. Unit: calls. + * + * @example + * 9987 + */ + quotaUsed?: number; + static names(): { [key: string]: string } { + return { + quotaLimit: 'QuotaLimit', + quotaPackage: 'QuotaPackage', + quotaUsed: 'QuotaUsed', + }; + } + + static types(): { [key: string]: any } { + return { + quotaLimit: 'number', + quotaPackage: 'number', + quotaUsed: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaCustomMonitor extends $dara.Model { + /** + * @remarks + * The total quota of the time series for custom monitoring. + * + * @example + * 1200 + */ + quotaLimit?: number; + /** + * @remarks + * The quota of the time series for custom monitoring in your resource plan. + * + * @example + * 1000 + */ + quotaPackage?: number; + /** + * @remarks + * The used quota of the time series for custom monitoring in your resource plan. + * + * @example + * 8 + */ + quotaUsed?: number; + static names(): { [key: string]: string } { + return { + quotaLimit: 'QuotaLimit', + quotaPackage: 'QuotaPackage', + quotaUsed: 'QuotaUsed', + }; + } + + static types(): { [key: string]: any } { + return { + quotaLimit: 'number', + quotaPackage: 'number', + quotaUsed: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaEnterpriseQuota extends $dara.Model { + /** + * @remarks + * The ID of the instance monitored by Hybrid Cloud Monitoring. + * + * @example + * cms_enterprise_public_cn-7mz27pd**** + */ + instanceId?: string; + /** + * @remarks + * The description of Hybrid Cloud Monitoring. + * + * @example + * ENTERPRISE + */ + suitInfo?: string; + static names(): { [key: string]: string } { + return { + instanceId: 'InstanceId', + suitInfo: 'SuitInfo', + }; + } + + static types(): { [key: string]: any } { + return { + instanceId: 'string', + suitInfo: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaEventMonitor extends $dara.Model { + /** + * @remarks + * The total quota of events that can be reported in event monitoring. The total quota is the value that is multiplied by 10,000. + * + * @example + * 55 + */ + quotaLimit?: number; + /** + * @remarks + * The quota of events that can be reported in event monitoring in your resource plan. The total quota is the value that is multiplied by 10,000. + * + * @example + * 50 + */ + quotaPackage?: number; + /** + * @remarks + * The used quota of events that can be reported in event monitoring in your resource plan. The total quota is the value that is multiplied by 10,000. + * + * @example + * 2 + */ + quotaUsed?: number; + static names(): { [key: string]: string } { + return { + quotaLimit: 'QuotaLimit', + quotaPackage: 'QuotaPackage', + quotaUsed: 'QuotaUsed', + }; + } + + static types(): { [key: string]: any } { + return { + quotaLimit: 'number', + quotaPackage: 'number', + quotaUsed: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaLogMonitor extends $dara.Model { + /** + * @remarks + * The total quota of processed log data in log monitoring. Unit: MB/min. + * + * @example + * 150 + */ + quotaLimit?: number; + /** + * @remarks + * The quota of processed log data in log monitoring in your resource plan. Unit: MB/min. + * + * @example + * 150 + */ + quotaPackage?: number; + /** + * @remarks + * The used quota of processed log data in log monitoring in your resource plan. Unit: MB/min. + * + * @example + * 80 + */ + quotaUsed?: number; + static names(): { [key: string]: string } { + return { + quotaLimit: 'QuotaLimit', + quotaPackage: 'QuotaPackage', + quotaUsed: 'QuotaUsed', + }; + } + + static types(): { [key: string]: any } { + return { + quotaLimit: 'number', + quotaPackage: 'number', + quotaUsed: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaPhone extends $dara.Model { + /** + * @remarks + * The total quota of alert phone calls. Unit: calls. + * + * @example + * 550 + */ + quotaLimit?: number; + /** + * @remarks + * The quota of alert phone calls in your resource plan. Unit: calls. + * + * @example + * 500 + */ + quotaPackage?: number; + /** + * @remarks + * The used quota of alert phone calls in your resource plan. Unit: calls. + * + * @example + * 100 + */ + quotaUsed?: number; + static names(): { [key: string]: string } { + return { + quotaLimit: 'QuotaLimit', + quotaPackage: 'QuotaPackage', + quotaUsed: 'QuotaUsed', + }; + } + + static types(): { [key: string]: any } { + return { + quotaLimit: 'number', + quotaPackage: 'number', + quotaUsed: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSMS extends $dara.Model { + /** + * @remarks + * The total quota of alert text messages. Unit: messages. + * + * @example + * 550 + */ + quotaLimit?: number; + /** + * @remarks + * The quota of alert text messages in your resource plan. Unit: messages. + * + * @example + * 500 + */ + quotaPackage?: number; + /** + * @remarks + * The used quota of alert text messages in your resource plan. Unit: messages. + * + * @example + * 38 + */ + quotaUsed?: number; + static names(): { [key: string]: string } { + return { + quotaLimit: 'QuotaLimit', + quotaPackage: 'QuotaPackage', + quotaUsed: 'QuotaUsed', + }; + } + + static types(): { [key: string]: any } { + return { + quotaLimit: 'number', + quotaPackage: 'number', + quotaUsed: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorBrowser extends $dara.Model { + /** + * @remarks + * The total quota of browser detection tasks. + * + * @example + * 50 + */ + quotaLimit?: number; + /** + * @remarks + * The quota of browser detection tasks in your resource plan. + * + * @example + * 50 + */ + quotaPackage?: number; + /** + * @remarks + * The used quota of browser detection tasks in your resource plan. + * + * @example + * 15 + */ + quotaUsed?: number; + static names(): { [key: string]: string } { + return { + quotaLimit: 'QuotaLimit', + quotaPackage: 'QuotaPackage', + quotaUsed: 'QuotaUsed', + }; + } + + static types(): { [key: string]: any } { + return { + quotaLimit: 'number', + quotaPackage: 'number', + quotaUsed: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorEcsProbe extends $dara.Model { + /** + * @remarks + * The total quota of ECS detection points for site monitoring. + * + * > The value indicates the maximum number of ECS detection points that you can select for a site monitoring task. + * + * @example + * 5 + */ + quotaLimit?: number; + /** + * @remarks + * The quota of ECS detection points for site monitoring in your resource plan. + * + * @example + * 5 + */ + quotaPackage?: number; + /** + * @remarks + * The used quota of ECS detection points for site monitoring in your resource plan. + * + * > The value indicates the total number of ECS detection points that are used by existing site monitoring tasks. + * + * @example + * 20 + */ + quotaUsed?: number; + static names(): { [key: string]: string } { + return { + quotaLimit: 'QuotaLimit', + quotaPackage: 'QuotaPackage', + quotaUsed: 'QuotaUsed', + }; + } + + static types(): { [key: string]: any } { + return { + quotaLimit: 'number', + quotaPackage: 'number', + quotaUsed: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorMobile extends $dara.Model { + /** + * @remarks + * The total quota of mobile detection tasks. + * + * @example + * 50 + */ + quotaLimit?: number; + /** + * @remarks + * The quota of mobile detection tasks in your resource plan. + * + * @example + * 50 + */ + quotaPackage?: number; + /** + * @remarks + * The used quota of mobile detection tasks in your resource plan. + * + * @example + * 15 + */ + quotaUsed?: number; + static names(): { [key: string]: string } { + return { + quotaLimit: 'QuotaLimit', + quotaPackage: 'QuotaPackage', + quotaUsed: 'QuotaUsed', + }; + } + + static types(): { [key: string]: any } { + return { + quotaLimit: 'number', + quotaPackage: 'number', + quotaUsed: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorOperatorProbe extends $dara.Model { + /** + * @remarks + * The total quota of carrier detection points for site monitoring. + * + * @example + * 5 + */ + quotaLimit?: number; + /** + * @remarks + * The quota of carrier detection points for site monitoring in your resource plan. + * + * @example + * 5 + */ + quotaPackage?: number; + /** + * @remarks + * The used quota of carrier detection points for site monitoring in your resource plan. + * + * @example + * 0 + */ + quotaUsed?: number; + static names(): { [key: string]: string } { + return { + quotaLimit: 'QuotaLimit', + quotaPackage: 'QuotaPackage', + quotaUsed: 'QuotaUsed', + }; + } + + static types(): { [key: string]: any } { + return { + quotaLimit: 'number', + quotaPackage: 'number', + quotaUsed: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorTask extends $dara.Model { + /** + * @remarks + * The total quota of site monitoring tasks. + * + * @example + * 25 + */ + quotaLimit?: number; + /** + * @remarks + * The quota of site monitoring tasks in your resource plan. + * + * @example + * 20 + */ + quotaPackage?: number; + /** + * @remarks + * The used quota of site monitoring tasks in your resource plan. + * + * @example + * 15 + */ + quotaUsed?: number; + static names(): { [key: string]: string } { + return { + quotaLimit: 'QuotaLimit', + quotaPackage: 'QuotaPackage', + quotaUsed: 'QuotaUsed', + }; + } + + static types(): { [key: string]: any } { + return { + quotaLimit: 'number', + quotaPackage: 'number', + quotaUsed: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuota extends $dara.Model { + /** + * @remarks + * The details about the quota of API calls. + */ + api?: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaApi; + /** + * @remarks + * The details about the quota for custom monitoring. + */ + customMonitor?: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaCustomMonitor; + /** + * @remarks + * The details about the quota of Hybrid Cloud Monitoring. + */ + enterpriseQuota?: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaEnterpriseQuota; + /** + * @remarks + * The details about the quota for event monitoring. + */ + eventMonitor?: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaEventMonitor; + /** + * @remarks + * The time when the resource plan expires. + * + * @example + * 2021-02-28 + */ + expireTime?: string; + /** + * @remarks + * The ID of the resource plan. + * + * @example + * cms_edition-cn-n6w20rn**** + */ + instanceId?: string; + /** + * @remarks + * The details about the quota for log monitoring. + */ + logMonitor?: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaLogMonitor; + /** + * @remarks + * The details about the quota of alert phone calls. + */ + phone?: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaPhone; + /** + * @remarks + * The details about the quota of alert text messages. + */ + SMS?: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSMS; + /** + * @remarks + * The quota of browser detection tasks. + */ + siteMonitorBrowser?: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorBrowser; + /** + * @remarks + * The details about the quota of ECS detection points for site monitoring. + */ + siteMonitorEcsProbe?: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorEcsProbe; + /** + * @remarks + * The quota of mobile detection tasks. + */ + siteMonitorMobile?: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorMobile; + /** + * @remarks + * The details about the quota of carrier detection points for site monitoring. + */ + siteMonitorOperatorProbe?: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorOperatorProbe; + /** + * @remarks + * The quota of site monitoring tasks. + */ + siteMonitorTask?: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorTask; + /** + * @remarks + * The current edition of CloudMonitor. Valid values: + * + * * free: Free Edition + * * pro: Pro Edition + * * cms_post: pay-as-you-go + * + * @example + * pro + */ + suitInfo?: string; + static names(): { [key: string]: string } { + return { + api: 'Api', + customMonitor: 'CustomMonitor', + enterpriseQuota: 'EnterpriseQuota', + eventMonitor: 'EventMonitor', + expireTime: 'ExpireTime', + instanceId: 'InstanceId', + logMonitor: 'LogMonitor', + phone: 'Phone', + SMS: 'SMS', + siteMonitorBrowser: 'SiteMonitorBrowser', + siteMonitorEcsProbe: 'SiteMonitorEcsProbe', + siteMonitorMobile: 'SiteMonitorMobile', + siteMonitorOperatorProbe: 'SiteMonitorOperatorProbe', + siteMonitorTask: 'SiteMonitorTask', + suitInfo: 'SuitInfo', + }; + } + + static types(): { [key: string]: any } { + return { + api: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaApi, + customMonitor: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaCustomMonitor, + enterpriseQuota: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaEnterpriseQuota, + eventMonitor: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaEventMonitor, + expireTime: 'string', + instanceId: 'string', + logMonitor: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaLogMonitor, + phone: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaPhone, + SMS: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSMS, + siteMonitorBrowser: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorBrowser, + siteMonitorEcsProbe: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorEcsProbe, + siteMonitorMobile: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorMobile, + siteMonitorOperatorProbe: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorOperatorProbe, + siteMonitorTask: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorTask, + suitInfo: 'string', + }; + } + + validate() { + if(this.api && typeof (this.api as any).validate === 'function') { + (this.api as any).validate(); + } + if(this.customMonitor && typeof (this.customMonitor as any).validate === 'function') { + (this.customMonitor as any).validate(); + } + if(this.enterpriseQuota && typeof (this.enterpriseQuota as any).validate === 'function') { + (this.enterpriseQuota as any).validate(); + } + if(this.eventMonitor && typeof (this.eventMonitor as any).validate === 'function') { + (this.eventMonitor as any).validate(); + } + if(this.logMonitor && typeof (this.logMonitor as any).validate === 'function') { + (this.logMonitor as any).validate(); + } + if(this.phone && typeof (this.phone as any).validate === 'function') { + (this.phone as any).validate(); + } + if(this.SMS && typeof (this.SMS as any).validate === 'function') { + (this.SMS as any).validate(); + } + if(this.siteMonitorBrowser && typeof (this.siteMonitorBrowser as any).validate === 'function') { + (this.siteMonitorBrowser as any).validate(); + } + if(this.siteMonitorEcsProbe && typeof (this.siteMonitorEcsProbe as any).validate === 'function') { + (this.siteMonitorEcsProbe as any).validate(); + } + if(this.siteMonitorMobile && typeof (this.siteMonitorMobile as any).validate === 'function') { + (this.siteMonitorMobile as any).validate(); + } + if(this.siteMonitorOperatorProbe && typeof (this.siteMonitorOperatorProbe as any).validate === 'function') { + (this.siteMonitorOperatorProbe as any).validate(); + } + if(this.siteMonitorTask && typeof (this.siteMonitorTask as any).validate === 'function') { + (this.siteMonitorTask as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitorResourceQuotaAttributeResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 31BC7201-00F2-47B2-B7B9-6A173076ACE + */ + requestId?: string; + /** + * @remarks + * The details about the resource quotas of CloudMonitor. + */ + resourceQuota?: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuota; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + resourceQuota: 'ResourceQuota', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + resourceQuota: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuota, + }; + } + + validate() { + if(this.resourceQuota && typeof (this.resourceQuota as any).validate === 'function') { + (this.resourceQuota as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentAccessKeyRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentAccessKeyRequest.ts new file mode 100644 index 0000000..e81f710 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentAccessKeyRequest.ts @@ -0,0 +1,27 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMonitoringAgentAccessKeyRequest extends $dara.Model { + regionId?: string; + static names(): { [key: string]: string } { + return { + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentAccessKeyResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentAccessKeyResponse.ts new file mode 100644 index 0000000..0a0d4a3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentAccessKeyResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeMonitoringAgentAccessKeyResponseBody } from "./DescribeMonitoringAgentAccessKeyResponseBody"; + + +export class DescribeMonitoringAgentAccessKeyResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeMonitoringAgentAccessKeyResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMonitoringAgentAccessKeyResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentAccessKeyResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentAccessKeyResponseBody.ts new file mode 100644 index 0000000..73737ff --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentAccessKeyResponseBody.ts @@ -0,0 +1,89 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMonitoringAgentAccessKeyResponseBody extends $dara.Model { + /** + * @remarks + * The AccessKey ID that is required to install the agent. + * + * @example + * E7A27f9**** + */ + accessKey?: string; + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * C0F655E9-D793-51E6-BD78-CABBCCFC1047 + */ + requestId?: string; + /** + * @remarks + * The AccessKey secret that is required to install the agent. + * + * @example + * sBjNOUhLylrxMX-Xv1**** + */ + secretKey?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + accessKey: 'AccessKey', + code: 'Code', + message: 'Message', + requestId: 'RequestId', + secretKey: 'SecretKey', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + accessKey: 'string', + code: 'number', + message: 'string', + requestId: 'string', + secretKey: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentConfigRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentConfigRequest.ts new file mode 100644 index 0000000..c186546 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentConfigRequest.ts @@ -0,0 +1,27 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMonitoringAgentConfigRequest extends $dara.Model { + regionId?: string; + static names(): { [key: string]: string } { + return { + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentConfigResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentConfigResponse.ts new file mode 100644 index 0000000..3ca715f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentConfigResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeMonitoringAgentConfigResponseBody } from "./DescribeMonitoringAgentConfigResponseBody"; + + +export class DescribeMonitoringAgentConfigResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeMonitoringAgentConfigResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMonitoringAgentConfigResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentConfigResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentConfigResponseBody.ts new file mode 100644 index 0000000..c68a8a6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentConfigResponseBody.ts @@ -0,0 +1,105 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMonitoringAgentConfigResponseBody extends $dara.Model { + /** + * @remarks + * Indicates whether the CloudMonitor agent is automatically installed on existing Elastic Compute Service (ECS) instances. Valid values: + * + * * true + * * false + * + * @example + * true + */ + autoInstall?: boolean; + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The cloud services for which proactive alerting is enabled. + * + * @example + * redis,rds,ecs + */ + enableActiveAlert?: string; + /** + * @remarks + * Indicates whether the CloudMonitor agent is automatically installed on newly purchased ECS instances. Valid values: + * + * * true + * * false + * + * @example + * true + */ + enableInstallAgentNewECS?: boolean; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * E9F4FA2A-54BE-4EF9-9D1D-1A0B1DC86B8D + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + autoInstall: 'AutoInstall', + code: 'Code', + enableActiveAlert: 'EnableActiveAlert', + enableInstallAgentNewECS: 'EnableInstallAgentNewECS', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + autoInstall: 'boolean', + code: 'string', + enableActiveAlert: 'string', + enableInstallAgentNewECS: 'boolean', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentHostsRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentHostsRequest.ts new file mode 100644 index 0000000..63a4856 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentHostsRequest.ts @@ -0,0 +1,149 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMonitoringAgentHostsRequest extends $dara.Model { + /** + * @remarks + * Specifies whether to query Elastic Compute Service (ECS) instances that are provided by Alibaba Cloud or to query hosts that are not provided by Alibaba Cloud. Valid values: + * + * * true (default value): queries all the ECS instances that are provided by Alibaba Cloud. + * * false: queries all the hosts that are not provided by Alibaba Cloud. + * + * @example + * true + */ + aliyunHost?: boolean; + /** + * @remarks + * The name of the host. + * + * @example + * hostNam1 + */ + hostName?: string; + /** + * @remarks + * The ID of the instance. + * + * @example + * i-a3d1q1pm2f9yr29e**** + */ + instanceIds?: string; + /** + * @remarks + * The region ID of the instance. + * + * @example + * cn-hangzhou + */ + instanceRegionId?: string; + /** + * @remarks + * The keyword that is used in fuzzy match. + * + * @example + * host1 + */ + keyWord?: string; + /** + * @remarks + * The number of the page to return. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries to return on each page. Valid values: + * + * * 10 + * * 20 + * * 50 + * * 100 + * + * > Although Alibaba Cloud does not limit the maximum value of this parameter, we recommend that you do not set it to an excessively large value. If you set it to an excessively large value, a timeout error may occur. + * + * @example + * 10 + */ + pageSize?: number; + regionId?: string; + /** + * @remarks + * The serial number of the host. + * + * After the CloudMonitor agent is installed on a host, a globally unique serial number is generated. A host that is not provided by Alibaba Cloud has a serial number instead of an instance ID. + * + * > This parameter can be used to accurately search for a monitored host. + * + * @example + * a1ab31a3-1234-40f2-9e95-c8caa8f0**** + */ + serialNumbers?: string; + /** + * @remarks + * The status of the hosts that you want to query. Valid values: + * + * * Running: queries the hosts that are running. + * * Stopped: queries the hosts that are stopped, are not installed, or fail to be installed. + * + * @example + * Running + */ + status?: string; + /** + * @remarks + * The status of SysOM. Valid values: + * + * * installing: SysOM is being installed. + * * running: SysOM is running. + * * stopped: SysOM is stopped. + * * uninstalling: SysOM is being uninstalled. + * + * @example + * running + */ + sysomStatus?: string; + static names(): { [key: string]: string } { + return { + aliyunHost: 'AliyunHost', + hostName: 'HostName', + instanceIds: 'InstanceIds', + instanceRegionId: 'InstanceRegionId', + keyWord: 'KeyWord', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + serialNumbers: 'SerialNumbers', + status: 'Status', + sysomStatus: 'SysomStatus', + }; + } + + static types(): { [key: string]: any } { + return { + aliyunHost: 'boolean', + hostName: 'string', + instanceIds: 'string', + instanceRegionId: 'string', + keyWord: 'string', + pageNumber: 'number', + pageSize: 'number', + regionId: 'string', + serialNumbers: 'string', + status: 'string', + sysomStatus: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentHostsResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentHostsResponse.ts new file mode 100644 index 0000000..741c621 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentHostsResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeMonitoringAgentHostsResponseBody } from "./DescribeMonitoringAgentHostsResponseBody"; + + +export class DescribeMonitoringAgentHostsResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeMonitoringAgentHostsResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMonitoringAgentHostsResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentHostsResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentHostsResponseBody.ts new file mode 100644 index 0000000..7b3ac21 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentHostsResponseBody.ts @@ -0,0 +1,312 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMonitoringAgentHostsResponseBodyHostsHost extends $dara.Model { + /** + * @remarks + * The version of the CloudMonitor agent. + * + * @example + * 3.4.6 + */ + agentVersion?: string; + /** + * @remarks + * The ID of the Alibaba Cloud account. + * + * @example + * 103201326074**** + */ + aliUid?: number; + /** + * @remarks + * The elastic IP address (EIP) of the host. + * + * @example + * 192.168.XX.XX + */ + eipAddress?: string; + /** + * @remarks + * The ID of the EIP. + * + * @example + * eip-bp16i16k9gcezyfrp**** + */ + eipId?: string; + /** + * @remarks + * The name of the host. + * + * @example + * hostIP + */ + hostName?: string; + /** + * @remarks + * The ID of the instance. + * + * @example + * i-a2d5q7pm3f9yr212**** + */ + instanceId?: string; + /** + * @remarks + * The type of the ECS instance. + * + * @example + * ecs.n4 + */ + instanceTypeFamily?: string; + /** + * @remarks + * The IP address of the host. + * + * > Multiple IP addresses are separated with commas (,). + * + * @example + * 192.168.XX.XX + */ + ipGroup?: string; + /** + * @remarks + * The IP address of the Network Address Translation (NAT) gateway. + * + * @example + * 192.168.XX.XX + */ + natIp?: string; + /** + * @remarks + * The network type. + * + * @example + * vpc + */ + networkType?: string; + /** + * @remarks + * The operating system. + * + * @example + * Linux + */ + operatingSystem?: string; + /** + * @remarks + * The ID of the region. + * + * @example + * cn-hangzhou + */ + region?: string; + /** + * @remarks + * The serial number of the host. A host that is not provided by Alibaba Cloud has a serial number instead of an instance ID. + * + * > This parameter can be used to accurately search for a monitored host. + * + * @example + * x12335-6cc8-4a22-9f21-1a00a719**** + */ + serialNumber?: string; + /** + * @remarks + * Indicates whether the host is provided by Alibaba Cloud. Valid values: + * + * * true: The host is provided by Alibaba Cloud. + * * false: The host is not provided by Alibaba Cloud. + * + * @example + * true + */ + isAliyunHost?: boolean; + static names(): { [key: string]: string } { + return { + agentVersion: 'AgentVersion', + aliUid: 'AliUid', + eipAddress: 'EipAddress', + eipId: 'EipId', + hostName: 'HostName', + instanceId: 'InstanceId', + instanceTypeFamily: 'InstanceTypeFamily', + ipGroup: 'IpGroup', + natIp: 'NatIp', + networkType: 'NetworkType', + operatingSystem: 'OperatingSystem', + region: 'Region', + serialNumber: 'SerialNumber', + isAliyunHost: 'isAliyunHost', + }; + } + + static types(): { [key: string]: any } { + return { + agentVersion: 'string', + aliUid: 'number', + eipAddress: 'string', + eipId: 'string', + hostName: 'string', + instanceId: 'string', + instanceTypeFamily: 'string', + ipGroup: 'string', + natIp: 'string', + networkType: 'string', + operatingSystem: 'string', + region: 'string', + serialNumber: 'string', + isAliyunHost: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitoringAgentHostsResponseBodyHosts extends $dara.Model { + host?: DescribeMonitoringAgentHostsResponseBodyHostsHost[]; + static names(): { [key: string]: string } { + return { + host: 'Host', + }; + } + + static types(): { [key: string]: any } { + return { + host: { 'type': 'array', 'itemType': DescribeMonitoringAgentHostsResponseBodyHostsHost }, + }; + } + + validate() { + if(Array.isArray(this.host)) { + $dara.Model.validateArray(this.host); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitoringAgentHostsResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call is successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The information about the hosts. + */ + hosts?: DescribeMonitoringAgentHostsResponseBodyHosts; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The page number of the returned page. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries returned per page. + * + * @example + * 10 + */ + pageSize?: number; + /** + * @remarks + * The total number of returned pages. + * + * @example + * 50 + */ + pageTotal?: number; + /** + * @remarks + * The ID of the request. + * + * @example + * 63EEBB2A-9E51-41E4-9E83-5DE7F3B292E0 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call is successful. Valid values: + * + * * true: The call is successful. + * * false: The call fails. + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The total number of returned entries. + * + * @example + * 10 + */ + total?: number; + static names(): { [key: string]: string } { + return { + code: 'Code', + hosts: 'Hosts', + message: 'Message', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + pageTotal: 'PageTotal', + requestId: 'RequestId', + success: 'Success', + total: 'Total', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + hosts: DescribeMonitoringAgentHostsResponseBodyHosts, + message: 'string', + pageNumber: 'number', + pageSize: 'number', + pageTotal: 'number', + requestId: 'string', + success: 'boolean', + total: 'number', + }; + } + + validate() { + if(this.hosts && typeof (this.hosts as any).validate === 'function') { + (this.hosts as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentProcessesRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentProcessesRequest.ts new file mode 100644 index 0000000..c399c3a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentProcessesRequest.ts @@ -0,0 +1,39 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMonitoringAgentProcessesRequest extends $dara.Model { + /** + * @remarks + * The ID of the instance. + * + * This parameter is required. + * + * @example + * i-hp3hl3cx1pbahzy8**** + */ + instanceId?: string; + regionId?: string; + static names(): { [key: string]: string } { + return { + instanceId: 'InstanceId', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + instanceId: 'string', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentProcessesResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentProcessesResponse.ts new file mode 100644 index 0000000..5f1658d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentProcessesResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeMonitoringAgentProcessesResponseBody } from "./DescribeMonitoringAgentProcessesResponseBody"; + + +export class DescribeMonitoringAgentProcessesResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeMonitoringAgentProcessesResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMonitoringAgentProcessesResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentProcessesResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentProcessesResponseBody.ts new file mode 100644 index 0000000..96c9837 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentProcessesResponseBody.ts @@ -0,0 +1,187 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMonitoringAgentProcessesResponseBodyNodeProcessesNodeProcess extends $dara.Model { + /** + * @remarks + * The command used to obtain the number of processes. Valid value: `number`. + * + * > The `number` command obtains the number of processes that match the condition. + * + * @example + * number + */ + command?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 3619**** + */ + groupId?: string; + /** + * @remarks + * The ID of the instance. + * + * @example + * i-hp3hl3cx1pbahzy8**** + */ + instanceId?: string; + /** + * @remarks + * The ID of the process. + * + * @example + * 234567 + */ + processId?: number; + /** + * @remarks + * The name of the process. + * + * @example + * Nginx + */ + processName?: string; + /** + * @remarks + * The user who launched the process. + * + * @example + * alice + */ + processUser?: string; + static names(): { [key: string]: string } { + return { + command: 'Command', + groupId: 'GroupId', + instanceId: 'InstanceId', + processId: 'ProcessId', + processName: 'ProcessName', + processUser: 'ProcessUser', + }; + } + + static types(): { [key: string]: any } { + return { + command: 'string', + groupId: 'string', + instanceId: 'string', + processId: 'number', + processName: 'string', + processUser: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitoringAgentProcessesResponseBodyNodeProcesses extends $dara.Model { + nodeProcess?: DescribeMonitoringAgentProcessesResponseBodyNodeProcessesNodeProcess[]; + static names(): { [key: string]: string } { + return { + nodeProcess: 'NodeProcess', + }; + } + + static types(): { [key: string]: any } { + return { + nodeProcess: { 'type': 'array', 'itemType': DescribeMonitoringAgentProcessesResponseBodyNodeProcessesNodeProcess }, + }; + } + + validate() { + if(Array.isArray(this.nodeProcess)) { + $dara.Model.validateArray(this.nodeProcess); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitoringAgentProcessesResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The value 200 indicates that the call was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The information about the processes. + */ + nodeProcesses?: DescribeMonitoringAgentProcessesResponseBodyNodeProcesses; + /** + * @remarks + * The request ID. + * + * @example + * C11C0E85-6862-4F25-8D66-D6A5E0882984 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call was successful. Valid values: + * + * * true: The call was successful. + * * false: The call failed. + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + nodeProcesses: 'NodeProcesses', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + nodeProcesses: DescribeMonitoringAgentProcessesResponseBodyNodeProcesses, + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + if(this.nodeProcesses && typeof (this.nodeProcesses as any).validate === 'function') { + (this.nodeProcesses as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentStatusesRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentStatusesRequest.ts new file mode 100644 index 0000000..b236115 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentStatusesRequest.ts @@ -0,0 +1,47 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMonitoringAgentStatusesRequest extends $dara.Model { + /** + * @remarks + * The ID of the availability monitoring task. + * + * @example + * 126**** + */ + hostAvailabilityTaskId?: string; + /** + * @remarks + * The instance IDs. Separate multiple instance IDs with commas (,). + * + * @example + * i-hp3dunahluwajv6f**** + */ + instanceIds?: string; + regionId?: string; + static names(): { [key: string]: string } { + return { + hostAvailabilityTaskId: 'HostAvailabilityTaskId', + instanceIds: 'InstanceIds', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + hostAvailabilityTaskId: 'string', + instanceIds: 'string', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentStatusesResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentStatusesResponse.ts new file mode 100644 index 0000000..d9ae76f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentStatusesResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeMonitoringAgentStatusesResponseBody } from "./DescribeMonitoringAgentStatusesResponseBody"; + + +export class DescribeMonitoringAgentStatusesResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeMonitoringAgentStatusesResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMonitoringAgentStatusesResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentStatusesResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentStatusesResponseBody.ts new file mode 100644 index 0000000..5942104 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringAgentStatusesResponseBody.ts @@ -0,0 +1,256 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMonitoringAgentStatusesResponseBodyNodeStatusListNodeStatus extends $dara.Model { + /** + * @remarks + * The error code returned when the CloudMonitor agent is installed. Valid values: + * + * * Common.Timeout: The installation timed out. + * * Common.SLR: The service-linked role for CloudMonitor is unauthorized. + * * Common.OS: The operating system is not supported. + * * Assist.Invalid: Cloud Assistant is not running. + * * Assist.Invoke: An error occurred when the installation program is started. + * * Assist.Execute: An error occurred when the installation program is running. + */ + agentInstallErrorCode?: string; + /** + * @remarks + * Indicates whether the CloudMonitor agent is automatically installed. Valid values: + * + * * true: The CloudMonitor agent is automatically installed. + * * false: The CloudMonitor agent is not automatically installed. + * + * @example + * true + */ + autoInstall?: boolean; + /** + * @remarks + * The instance ID. + * + * @example + * i-hp3dunahluwajv6f**** + */ + instanceId?: string; + loongCollectorStatus?: string; + loongCollectorVersion?: string; + /** + * @remarks + * Indicates whether the SysAK monitoring feature is enabled.`` Valid values: + * + * * `true`: The SysAK monitoring feature is enabled. + * * `false`: the SysAK monitoring feature is disabled. + * + * @example + * {"sysak":true} + */ + osMonitorConfig?: string; + /** + * @remarks + * The error status of SysOM. Valid values: + * + * * `install_fail`: SysOM fails to be installed or an unknown error occurs. + * * `install_assist_invalid`: SysOM fails to be installed because the status of Cloud Assistant is invalid. + * * `install_assist_command_fail`: SysOM fails to be installed because the installation command fails to run. + * * `uninstall_fail`: SysOM fails to be uninstalled or an unknown error occurs. + * * `uninstall_assist_invalid`: SysOM fails to be uninstalled because the status of Cloud Assistant is invalid. + * * `uninstall_assist_command_fail`: SysOM fails to be uninstalled because the uninstallation command fails to run. + * + * @example + * install_fail + */ + osMonitorErrorCode?: string; + /** + * @remarks + * The details of the execution error. Valid values: + * + * * `Command.ErrorCode.Fail.Downlaod.REGIN_ID`: Failed to obtain the region ID. + * * `Command.ErrorCode.Fail.Downlaod.SYSAK`: Failed to download the .rpm package of System Analyse Kit (SysAK). + * * `Command.ErrorCode.Fail.Downlaod.CMON_FILE`: Failed to download the CMON file. + * * `Command.ErrorCode.Fail.Downlaod.BTF`: Failed to start SysAK because the BTF file is not found. + * * `Command.ErrorCode.Fail.Start.SYSAK`: Failed to start SysAK due to an unknown error. + * + * @example + * Command.ErrorCode.Fail.Downlaod.REGIN_ID + */ + osMonitorErrorDetail?: string; + /** + * @remarks + * The status of SysOM. Valid values: + * + * * installing: SysOM is being installed. + * * running: SysOM is running. + * * stopped: SysOM is stopped. + * * uninstalling: SysOM is being uninstalled. + * + * @example + * running + */ + osMonitorStatus?: string; + /** + * @remarks + * The SysOM version. + * + * @example + * 1.3.0-12 + */ + osMonitorVersion?: string; + /** + * @remarks + * The status of the CloudMonitor agent. Valid values: + * + * * running: The CloudMonitor agent is running. + * * stopped: The CloudMonitor agent is stopped. + * * installing: The CloudMonitor agent is being installed. + * * install_faild: The CloudMonitor agent fails to be installed. + * * abnormal: The CloudMonitor agent is not properly installed. + * * not_installed: The CloudMonitor agent is not installed. + * + * @example + * running + */ + status?: string; + static names(): { [key: string]: string } { + return { + agentInstallErrorCode: 'AgentInstallErrorCode', + autoInstall: 'AutoInstall', + instanceId: 'InstanceId', + loongCollectorStatus: 'LoongCollectorStatus', + loongCollectorVersion: 'LoongCollectorVersion', + osMonitorConfig: 'OsMonitorConfig', + osMonitorErrorCode: 'OsMonitorErrorCode', + osMonitorErrorDetail: 'OsMonitorErrorDetail', + osMonitorStatus: 'OsMonitorStatus', + osMonitorVersion: 'OsMonitorVersion', + status: 'Status', + }; + } + + static types(): { [key: string]: any } { + return { + agentInstallErrorCode: 'string', + autoInstall: 'boolean', + instanceId: 'string', + loongCollectorStatus: 'string', + loongCollectorVersion: 'string', + osMonitorConfig: 'string', + osMonitorErrorCode: 'string', + osMonitorErrorDetail: 'string', + osMonitorStatus: 'string', + osMonitorVersion: 'string', + status: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitoringAgentStatusesResponseBodyNodeStatusList extends $dara.Model { + nodeStatus?: DescribeMonitoringAgentStatusesResponseBodyNodeStatusListNodeStatus[]; + static names(): { [key: string]: string } { + return { + nodeStatus: 'NodeStatus', + }; + } + + static types(): { [key: string]: any } { + return { + nodeStatus: { 'type': 'array', 'itemType': DescribeMonitoringAgentStatusesResponseBodyNodeStatusListNodeStatus }, + }; + } + + validate() { + if(Array.isArray(this.nodeStatus)) { + $dara.Model.validateArray(this.nodeStatus); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeMonitoringAgentStatusesResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The host status information. + */ + nodeStatusList?: DescribeMonitoringAgentStatusesResponseBodyNodeStatusList; + /** + * @remarks + * The request ID. + * + * @example + * 6F8371DF-AB81-41B8-9E1B-5493B3FF0E4F + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + nodeStatusList: 'NodeStatusList', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + nodeStatusList: DescribeMonitoringAgentStatusesResponseBodyNodeStatusList, + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + if(this.nodeStatusList && typeof (this.nodeStatusList as any).validate === 'function') { + (this.nodeStatusList as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringConfigRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringConfigRequest.ts new file mode 100644 index 0000000..63882de --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringConfigRequest.ts @@ -0,0 +1,27 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMonitoringConfigRequest extends $dara.Model { + regionId?: string; + static names(): { [key: string]: string } { + return { + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringConfigResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringConfigResponse.ts new file mode 100644 index 0000000..287b802 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringConfigResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeMonitoringConfigResponseBody } from "./DescribeMonitoringConfigResponseBody"; + + +export class DescribeMonitoringConfigResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeMonitoringConfigResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeMonitoringConfigResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringConfigResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringConfigResponseBody.ts new file mode 100644 index 0000000..7e790a6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeMonitoringConfigResponseBody.ts @@ -0,0 +1,95 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeMonitoringConfigResponseBody extends $dara.Model { + /** + * @remarks + * Indicates whether the CloudMonitor agent is automatically installed on existing Elastic Compute Service (ECS) instances. Valid values: + * + * * true + * * false + * + * @example + * false + */ + autoInstall?: boolean; + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * Indicates whether the CloudMonitor agent is automatically installed on new ECS instances. Valid values: Valid values: + * + * * true + * * false + * + * @example + * true + */ + enableInstallAgentNewECS?: boolean; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * F35654DB-0C9D-4FB3-903F-479BA7663061 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + autoInstall: 'AutoInstall', + code: 'Code', + enableInstallAgentNewECS: 'EnableInstallAgentNewECS', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + autoInstall: 'boolean', + code: 'string', + enableInstallAgentNewECS: 'boolean', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeProductResourceTagKeyListRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeProductResourceTagKeyListRequest.ts new file mode 100644 index 0000000..e2f2eae --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeProductResourceTagKeyListRequest.ts @@ -0,0 +1,37 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeProductResourceTagKeyListRequest extends $dara.Model { + /** + * @remarks + * The pagination token. + * + * @example + * dbc2826f237e**** + */ + nextToken?: string; + regionId?: string; + static names(): { [key: string]: string } { + return { + nextToken: 'NextToken', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + nextToken: 'string', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeProductResourceTagKeyListResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeProductResourceTagKeyListResponse.ts new file mode 100644 index 0000000..e103314 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeProductResourceTagKeyListResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeProductResourceTagKeyListResponseBody } from "./DescribeProductResourceTagKeyListResponseBody"; + + +export class DescribeProductResourceTagKeyListResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeProductResourceTagKeyListResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeProductResourceTagKeyListResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeProductResourceTagKeyListResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeProductResourceTagKeyListResponseBody.ts new file mode 100644 index 0000000..eeda39a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeProductResourceTagKeyListResponseBody.ts @@ -0,0 +1,110 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeProductResourceTagKeyListResponseBodyTagKeys extends $dara.Model { + tagKey?: string[]; + static names(): { [key: string]: string } { + return { + tagKey: 'TagKey', + }; + } + + static types(): { [key: string]: any } { + return { + tagKey: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.tagKey)) { + $dara.Model.validateArray(this.tagKey); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeProductResourceTagKeyListResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The request processing has failed due to some unknown error. + */ + message?: string; + /** + * @remarks + * The pagination token. If more entries are to be returned on the next page, a pagination token is returned. + * + * > If the value of this parameter is not null, more entries are to be returned on the next page. You can use the returned pagination token as a request parameter to retrieve a new page of results. If the value of this parameter is null, all the entries have been returned. + * + * @example + * dbc2826f237e**** + */ + nextToken?: string; + /** + * @remarks + * The request ID. + * + * @example + * 945ACAA9-89F2-4A62-8913-076FDEDAA8DB + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: true and false. + * + * @example + * true + */ + success?: boolean; + tagKeys?: DescribeProductResourceTagKeyListResponseBodyTagKeys; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + nextToken: 'NextToken', + requestId: 'RequestId', + success: 'Success', + tagKeys: 'TagKeys', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + nextToken: 'string', + requestId: 'string', + success: 'boolean', + tagKeys: DescribeProductResourceTagKeyListResponseBodyTagKeys, + }; + } + + validate() { + if(this.tagKeys && typeof (this.tagKeys as any).validate === 'function') { + (this.tagKeys as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeProductsOfActiveMetricRuleRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeProductsOfActiveMetricRuleRequest.ts new file mode 100644 index 0000000..e35877c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeProductsOfActiveMetricRuleRequest.ts @@ -0,0 +1,27 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeProductsOfActiveMetricRuleRequest extends $dara.Model { + regionId?: string; + static names(): { [key: string]: string } { + return { + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeProductsOfActiveMetricRuleResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeProductsOfActiveMetricRuleResponse.ts new file mode 100644 index 0000000..ae2f8ca --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeProductsOfActiveMetricRuleResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeProductsOfActiveMetricRuleResponseBody } from "./DescribeProductsOfActiveMetricRuleResponseBody"; + + +export class DescribeProductsOfActiveMetricRuleResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeProductsOfActiveMetricRuleResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeProductsOfActiveMetricRuleResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeProductsOfActiveMetricRuleResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeProductsOfActiveMetricRuleResponseBody.ts new file mode 100644 index 0000000..7341509 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeProductsOfActiveMetricRuleResponseBody.ts @@ -0,0 +1,343 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold for Warn-level alerts. + * + * Valid values: + * + * * LessThanThreshold: less than the threshold + * + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * + * * NotEqualToThreshold: does not equal to the threshold + * + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * + * * LessThanYesterday: less than the metric value at the same time yesterday + * + * * LessThanLastWeek: less than the metric value at the same time last week + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * + * * GreaterThanThreshold: greater than the threshold + * + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before an alert is triggered. + * + * @example + * 3 + */ + evaluationCount?: string; + /** + * @remarks + * The alert level. + * + * Valid values: + * + * * INFO + * + * + * + * + * + * + * + * * WARN + * + * + * + * + * + * + * + * * CRITICAL + * + * + * + * + * + * + * + * @example + * CRITICAL + */ + level?: string; + /** + * @remarks + * The metric name. For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The namespace of the service. For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * acs_rds_dashboard + */ + namespace?: string; + /** + * @remarks + * The aggregation period of monitoring data. Unit: minutes. For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * 1m + */ + period?: string; + /** + * @remarks + * The method used to calculate metric values that trigger alerts. For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The alert threshold. + * + * @example + * 90 + */ + threshold?: string; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + evaluationCount: 'EvaluationCount', + level: 'Level', + metricName: 'MetricName', + namespace: 'Namespace', + period: 'Period', + statistics: 'Statistics', + threshold: 'Threshold', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + evaluationCount: 'string', + level: 'string', + metricName: 'string', + namespace: 'string', + period: 'string', + statistics: 'string', + threshold: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigList extends $dara.Model { + alertInitConfig?: DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig[]; + static names(): { [key: string]: string } { + return { + alertInitConfig: 'AlertInitConfig', + }; + } + + static types(): { [key: string]: any } { + return { + alertInitConfig: { 'type': 'array', 'itemType': DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig }, + }; + } + + validate() { + if(Array.isArray(this.alertInitConfig)) { + $dara.Model.validateArray(this.alertInitConfig); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRule extends $dara.Model { + /** + * @remarks + * The initial alert rules that are generated after one-click alert is enabled for a service. + */ + alertInitConfigList?: DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigList; + /** + * @remarks + * The abbreviation of the service name. + * + * @example + * ecs + */ + product?: string; + static names(): { [key: string]: string } { + return { + alertInitConfigList: 'AlertInitConfigList', + product: 'Product', + }; + } + + static types(): { [key: string]: any } { + return { + alertInitConfigList: DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigList, + product: 'string', + }; + } + + validate() { + if(this.alertInitConfigList && typeof (this.alertInitConfigList as any).validate === 'function') { + (this.alertInitConfigList as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleList extends $dara.Model { + allProductInitMetricRule?: DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRule[]; + static names(): { [key: string]: string } { + return { + allProductInitMetricRule: 'AllProductInitMetricRule', + }; + } + + static types(): { [key: string]: any } { + return { + allProductInitMetricRule: { 'type': 'array', 'itemType': DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRule }, + }; + } + + validate() { + if(Array.isArray(this.allProductInitMetricRule)) { + $dara.Model.validateArray(this.allProductInitMetricRule); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeProductsOfActiveMetricRuleResponseBody extends $dara.Model { + /** + * @remarks + * The information about the services for which one-click alert is enabled. + */ + allProductInitMetricRuleList?: DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleList; + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The information about the services for which the initiative alert feature is enabled. Services are separated with commas (,). Valid values: + * + * * ECS: Elastic Compute Service (ECS) + * * rds: ApsaraDB RDS + * * slb: Server Load Balancer (SLB) + * * redis_standard: Redis Open-Source Edition (standard architecture) + * * redis_sharding: Redis Open-Source Edition (cluster architecture) + * * redis_splitrw: Redis Open-Source Edition (read/write splitting architecture) + * * mongodb: ApsaraDB for MongoDB of the replica set architecture + * * mongodb_sharding: ApsaraDB for MongoDB of the sharded cluster architecture + * * hbase: ApsaraDB for HBase + * * elasticsearch: Elasticsearch + * * opensearch: OpenSearch + * + * @example + * ecs,rds + */ + datapoints?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * F82E6667-7811-4BA0-842F-5B2DC42BBAAD + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true: The request was successful. + * * false: The request failed. + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + allProductInitMetricRuleList: 'AllProductInitMetricRuleList', + code: 'Code', + datapoints: 'Datapoints', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + allProductInitMetricRuleList: DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleList, + code: 'number', + datapoints: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + if(this.allProductInitMetricRuleList && typeof (this.allProductInitMetricRuleList as any).validate === 'function') { + (this.allProductInitMetricRuleList as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeProjectMetaRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeProjectMetaRequest.ts new file mode 100644 index 0000000..74eb347 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeProjectMetaRequest.ts @@ -0,0 +1,68 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeProjectMetaRequest extends $dara.Model { + /** + * @remarks + * The tags. Tags are used to filter services. + * + * You can filter services only by the tag whose `name` is `product`. Example: {"name":"product","value":"ECS"}. + * + * > We recommend that you do not use the special tags in the CloudMonitor console. + * + * @example + * [{"name":"product","value":"ECS"}] + */ + labels?: string; + /** + * @remarks + * The page number. + * + * Valid values: 1 to 100. + * + * Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * Valid values: 1 to 10000. + * + * Default value: 30. + * + * > The value of this parameter is not limited. You can view a large number of entries per page. + * + * @example + * 30 + */ + pageSize?: number; + static names(): { [key: string]: string } { + return { + labels: 'Labels', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + }; + } + + static types(): { [key: string]: any } { + return { + labels: 'string', + pageNumber: 'number', + pageSize: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeProjectMetaResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeProjectMetaResponse.ts new file mode 100644 index 0000000..ad35ce5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeProjectMetaResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeProjectMetaResponseBody } from "./DescribeProjectMetaResponseBody"; + + +export class DescribeProjectMetaResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeProjectMetaResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeProjectMetaResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeProjectMetaResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeProjectMetaResponseBody.ts new file mode 100644 index 0000000..d5df5e4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeProjectMetaResponseBody.ts @@ -0,0 +1,189 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeProjectMetaResponseBodyResourcesResource extends $dara.Model { + /** + * @remarks + * The description. + * + * @example + * CDN + */ + description?: string; + /** + * @remarks + * The tags. Tags are used to filter services. + * + * Tags are returned in the following format: `[{"name":"Tag key","value":"Tag value"}, {"name":"Tag key","value":"Tag value"}]`. The following tags are commonly used: + * + * * alertUnit: the unit of the metric value in alerts. If the unit is small, the original metric value may be too large. In this case, you can use the `alertUnit` tag to specify an appropriate unit. This tag is used in CloudMonitor. + * * minAlertPeriod: the minimum time interval to report a new alert. The interval at which monitoring data is reported. The value is usually 1 minute. + * * metricCategory: the service specification. Example: kvstore_sharding. Some Alibaba Cloud services have multiple specifications that are defined in the same namespace. This parameter is used to identify the specifications. + * * is_alarm: indicates whether an alert rule can be configured. We recommend that you do not use the special tags in the CloudMonitor console. + * + * @example + * [{"groupFlag":true}] + */ + labels?: string; + /** + * @remarks + * The namespace of the cloud service. Format: `acs_Service name abbreviation`. For more information about namespaces, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * acs_cdn + */ + namespace?: string; + static names(): { [key: string]: string } { + return { + description: 'Description', + labels: 'Labels', + namespace: 'Namespace', + }; + } + + static types(): { [key: string]: any } { + return { + description: 'string', + labels: 'string', + namespace: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeProjectMetaResponseBodyResources extends $dara.Model { + resource?: DescribeProjectMetaResponseBodyResourcesResource[]; + static names(): { [key: string]: string } { + return { + resource: 'Resource', + }; + } + + static types(): { [key: string]: any } { + return { + resource: { 'type': 'array', 'itemType': DescribeProjectMetaResponseBodyResourcesResource }, + }; + } + + validate() { + if(Array.isArray(this.resource)) { + $dara.Model.validateArray(this.resource); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeProjectMetaResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The page number. + * + * @example + * 1 + */ + pageNumber?: string; + /** + * @remarks + * The number of entries per page. + * + * @example + * 5 + */ + pageSize?: string; + /** + * @remarks + * The request ID. + * + * @example + * 4C2061B2-3B1B-43BF-A4A4-C53426F479C0 + */ + requestId?: string; + /** + * @remarks + * The details of the cloud service. + */ + resources?: DescribeProjectMetaResponseBodyResources; + /** + * @remarks + * Indicates whether the request was successful. Valid values: true: The request was successful. false: The request failed. + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The total number of entries returned. + * + * @example + * 12 + */ + total?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + requestId: 'RequestId', + resources: 'Resources', + success: 'Success', + total: 'Total', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + pageNumber: 'string', + pageSize: 'string', + requestId: 'string', + resources: DescribeProjectMetaResponseBodyResources, + success: 'boolean', + total: 'string', + }; + } + + validate() { + if(this.resources && typeof (this.resources as any).validate === 'function') { + (this.resources as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorAttributeRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorAttributeRequest.ts new file mode 100644 index 0000000..67b5547 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorAttributeRequest.ts @@ -0,0 +1,52 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeSiteMonitorAttributeRequest extends $dara.Model { + /** + * @remarks + * Specifies whether to return the information of the alert rules that are configured for the site monitoring task. Valid values: + * + * * true: The system returns the information of the alert rules that are configured for the site monitoring task. + * * false (default): The system does not return the information of the alert rules that are configured for the site monitoring task. + * + * @example + * false + */ + includeAlert?: boolean; + regionId?: string; + /** + * @remarks + * The ID of the site monitoring task. + * + * This parameter is required. + * + * @example + * cc641dff-c19d-45f3-ad0a-818a0c4f**** + */ + taskId?: string; + static names(): { [key: string]: string } { + return { + includeAlert: 'IncludeAlert', + regionId: 'RegionId', + taskId: 'TaskId', + }; + } + + static types(): { [key: string]: any } { + return { + includeAlert: 'boolean', + regionId: 'string', + taskId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorAttributeResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorAttributeResponse.ts new file mode 100644 index 0000000..592aba9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorAttributeResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeSiteMonitorAttributeResponseBody } from "./DescribeSiteMonitorAttributeResponseBody"; + + +export class DescribeSiteMonitorAttributeResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeSiteMonitorAttributeResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeSiteMonitorAttributeResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorAttributeResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorAttributeResponseBody.ts new file mode 100644 index 0000000..165f93e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorAttributeResponseBody.ts @@ -0,0 +1,2027 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule extends $dara.Model { + /** + * @remarks + * Indicates whether the alert rule is enabled. Valid values: + * + * * true: The alert rule is enabled. + * * false: The alert rule is disabled. + * + * @example + * true + */ + actionEnable?: string; + /** + * @remarks + * The alert contact group to which alert notifications are sent. + * + * @example + * CloudMonitor + */ + alarmActions?: string; + /** + * @remarks + * The operator that is used to compare the metric value with the threshold in the alert rule. Valid values: + * + * * `>=` + * * `>` + * * `<=` + * * `<` + * * `=` + * * `!=` + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanYesterday + */ + comparisonOperator?: string; + /** + * @remarks + * The dimension of the alert rule. + * + * @example + * [{"taskId": "cc641dff-c19d-45f3-ad0a-818a0c4f****" }] + */ + dimensions?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before an alert is triggered. + * + * @example + * 3 + */ + evaluationCount?: string; + /** + * @remarks + * The expression that is used to trigger alerts. + * + * @example + * $Availability=30 + */ + expression?: string; + /** + * @remarks + * The alert severity. Valid values: + * + * * 1: critical + * * 2: warning + * * 3: information + * + * @example + * 2 + */ + level?: string; + /** + * @remarks + * The metric name. + * + * @example + * Availability + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * The value is in the following format: acs_service name. + * + * @example + * acs_networkmonitor + */ + namespace?: string; + /** + * @remarks + * The alert contact group that receives alert notifications. + * + * @example + * [ "CloudMonitor"] + */ + okActions?: string; + /** + * @remarks + * The time interval. The value is the same as the interval at which metric data is reported. Unit: seconds. + * + * > If you specify a statistical period for the alert rule, data is queried based on the statistical period. + * + * @example + * 15s + */ + period?: string; + /** + * @remarks + * The ID of the alert rule. + * + * @example + * bf071ae_7b7aec3817b0fdf**** + */ + ruleId?: string; + /** + * @remarks + * The name of the alert rule. + * + * @example + * rule1 + */ + ruleName?: string; + /** + * @remarks + * The alert status. Valid values: + * + * * OK: The alert rule has no active alerts. + * * ALARM: The alert rule has active alerts. + * + * @example + * OK + */ + stateValue?: string; + /** + * @remarks + * The statistical method of the alert rule. Valid values: + * + * * Availability: the percentage of available detection points + * * AvailableNumber: the number of available detection points + * * ErrorCodeMaximum: a status code for an alert + * * ErrorCodeMinimum: all status codes for a set of alerts + * * Average: response time + * + * @example + * Availability + */ + statistics?: string; + /** + * @remarks + * The alert threshold. + * + * @example + * 30 + */ + threshold?: string; + static names(): { [key: string]: string } { + return { + actionEnable: 'ActionEnable', + alarmActions: 'AlarmActions', + comparisonOperator: 'ComparisonOperator', + dimensions: 'Dimensions', + evaluationCount: 'EvaluationCount', + expression: 'Expression', + level: 'Level', + metricName: 'MetricName', + namespace: 'Namespace', + okActions: 'OkActions', + period: 'Period', + ruleId: 'RuleId', + ruleName: 'RuleName', + stateValue: 'StateValue', + statistics: 'Statistics', + threshold: 'Threshold', + }; + } + + static types(): { [key: string]: any } { + return { + actionEnable: 'string', + alarmActions: 'string', + comparisonOperator: 'string', + dimensions: 'string', + evaluationCount: 'string', + expression: 'string', + level: 'string', + metricName: 'string', + namespace: 'string', + okActions: 'string', + period: 'string', + ruleId: 'string', + ruleName: 'string', + stateValue: 'string', + statistics: 'string', + threshold: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorAttributeResponseBodyMetricRules extends $dara.Model { + metricRule?: DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule[]; + static names(): { [key: string]: string } { + return { + metricRule: 'MetricRule', + }; + } + + static types(): { [key: string]: any } { + return { + metricRule: { 'type': 'array', 'itemType': DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule }, + }; + } + + validate() { + if(Array.isArray(this.metricRule)) { + $dara.Model.validateArray(this.metricRule); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomScheduleDays extends $dara.Model { + days?: number[]; + static names(): { [key: string]: string } { + return { + days: 'days', + }; + } + + static types(): { [key: string]: any } { + return { + days: { 'type': 'array', 'itemType': 'number' }, + }; + } + + validate() { + if(Array.isArray(this.days)) { + $dara.Model.validateArray(this.days); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomSchedule extends $dara.Model { + /** + * @remarks + * The days in a week. + */ + days?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomScheduleDays; + /** + * @remarks + * The end time of the detection. Unit: hours. + * + * @example + * 18 + */ + endHour?: number; + /** + * @remarks + * The start time of the detection. Unit: hours. + * + * @example + * 8 + */ + startHour?: number; + /** + * @remarks + * The time zone of the detection. + * + * @example + * local + */ + timeZone?: string; + static names(): { [key: string]: string } { + return { + days: 'days', + endHour: 'end_hour', + startHour: 'start_hour', + timeZone: 'time_zone', + }; + } + + static types(): { [key: string]: any } { + return { + days: DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomScheduleDays, + endHour: 'number', + startHour: 'number', + timeZone: 'string', + }; + } + + validate() { + if(this.days && typeof (this.days as any).validate === 'function') { + (this.days as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorAttributeResponseBodySiteMonitorsIspCitiesIspCity extends $dara.Model { + /** + * @remarks + * The city ID. + * + * @example + * 738 + */ + city?: string; + /** + * @remarks + * The city name. + */ + cityName?: string; + /** + * @remarks + * The carrier ID. + * + * @example + * 465 + */ + isp?: string; + /** + * @remarks + * The carrier name. + */ + ispName?: string; + /** + * @remarks + * The network type of the detection point. Valid values: IDC, LASTMILE, and MOBILE. + * + * @example + * IDC + */ + type?: string; + static names(): { [key: string]: string } { + return { + city: 'City', + cityName: 'CityName', + isp: 'Isp', + ispName: 'IspName', + type: 'Type', + }; + } + + static types(): { [key: string]: any } { + return { + city: 'string', + cityName: 'string', + isp: 'string', + ispName: 'string', + type: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorAttributeResponseBodySiteMonitorsIspCities extends $dara.Model { + ispCity?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsIspCitiesIspCity[]; + static names(): { [key: string]: string } { + return { + ispCity: 'IspCity', + }; + } + + static types(): { [key: string]: any } { + return { + ispCity: { 'type': 'array', 'itemType': DescribeSiteMonitorAttributeResponseBodySiteMonitorsIspCitiesIspCity }, + }; + } + + validate() { + if(Array.isArray(this.ispCity)) { + $dara.Model.validateArray(this.ispCity); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAssertionsAssertions extends $dara.Model { + /** + * @remarks + * The operator. Valid values: + * - contains: contains + * - doesNotContain: does not contain + * - matches: matches a regular expression + * - doesNotMatch: does not match a regular expression + * - is: equal to + * - isNot: not equal to + * - lessThan: less than + * - moreThan: greater than + * + * @example + * lessThan + */ + operator?: string; + /** + * @remarks + * The path to the assertion. + * - If the assertion type is body_json, the path is json path. + * - If the assertion type is body_xml, the path is xml path. + * + * @example + * json path + */ + property?: string; + /** + * @remarks + * The value or character to which the condition of the assertion is compared. + * + * @example + * 0 + */ + target?: string; + /** + * @remarks + * The assertion type. Valid values: + * - response_time: checks whether the response time meets expectations. + * - status_code: checks whether the HTTP status code meets expectations. + * - header: checks whether the fields in the response header meet expectations. + * - body_text: check whether the content in the response body meets expectations by using text matching. + * - body_json: check whether the content in the response body meets expectations by using JSON parsing (JSONPath). + * - body_xml: check whether the content in the response body meets expectations by using XML parsing (XPath). + * + * @example + * response_time + */ + type?: string; + static names(): { [key: string]: string } { + return { + operator: 'operator', + property: 'property', + target: 'target', + type: 'type', + }; + } + + static types(): { [key: string]: any } { + return { + operator: 'string', + property: 'string', + target: 'string', + type: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAssertions extends $dara.Model { + assertions?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAssertionsAssertions[]; + static names(): { [key: string]: string } { + return { + assertions: 'assertions', + }; + } + + static types(): { [key: string]: any } { + return { + assertions: { 'type': 'array', 'itemType': DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAssertionsAssertions }, + }; + } + + validate() { + if(Array.isArray(this.assertions)) { + $dara.Model.validateArray(this.assertions); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAuthInfoScopes extends $dara.Model { + scopes?: string[]; + static names(): { [key: string]: string } { + return { + scopes: 'scopes', + }; + } + + static types(): { [key: string]: any } { + return { + scopes: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.scopes)) { + $dara.Model.validateArray(this.scopes); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAuthInfo extends $dara.Model { + accessKeyId?: string; + accessKeySecret?: string; + apiAction?: string; + apiVersion?: string; + authStyle?: string; + clientId?: string; + clientSecret?: string; + grantType?: string; + password?: string; + regionId?: string; + scopes?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAuthInfoScopes; + serviceName?: string; + sessionToken?: string; + tokenUrl?: string; + type?: string; + useCookieSessionKey?: boolean; + username?: string; + withAddonResources?: boolean; + static names(): { [key: string]: string } { + return { + accessKeyId: 'access_key_id', + accessKeySecret: 'access_key_secret', + apiAction: 'api_action', + apiVersion: 'api_version', + authStyle: 'auth_style', + clientId: 'client_id', + clientSecret: 'client_secret', + grantType: 'grant_type', + password: 'password', + regionId: 'region_id', + scopes: 'scopes', + serviceName: 'service_name', + sessionToken: 'session_token', + tokenUrl: 'token_url', + type: 'type', + useCookieSessionKey: 'use_cookie_session_key', + username: 'username', + withAddonResources: 'with_addon_resources', + }; + } + + static types(): { [key: string]: any } { + return { + accessKeyId: 'string', + accessKeySecret: 'string', + apiAction: 'string', + apiVersion: 'string', + authStyle: 'string', + clientId: 'string', + clientSecret: 'string', + grantType: 'string', + password: 'string', + regionId: 'string', + scopes: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAuthInfoScopes, + serviceName: 'string', + sessionToken: 'string', + tokenUrl: 'string', + type: 'string', + useCookieSessionKey: 'boolean', + username: 'string', + withAddonResources: 'boolean', + }; + } + + validate() { + if(this.scopes && typeof (this.scopes as any).validate === 'function') { + (this.scopes as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBlockedUrlList extends $dara.Model { + blockedUrlList?: string[]; + static names(): { [key: string]: string } { + return { + blockedUrlList: 'blocked_url_list', + }; + } + + static types(): { [key: string]: any } { + return { + blockedUrlList: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.blockedUrlList)) { + $dara.Model.validateArray(this.blockedUrlList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserHeaders extends $dara.Model { + browserHeaders?: { [key: string]: any }[]; + static names(): { [key: string]: string } { + return { + browserHeaders: 'browser_headers', + }; + } + + static types(): { [key: string]: any } { + return { + browserHeaders: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } }, + }; + } + + validate() { + if(Array.isArray(this.browserHeaders)) { + $dara.Model.validateArray(this.browserHeaders); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserHosts extends $dara.Model { + browserHosts?: string[]; + static names(): { [key: string]: string } { + return { + browserHosts: 'browser_hosts', + }; + } + + static types(): { [key: string]: any } { + return { + browserHosts: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.browserHosts)) { + $dara.Model.validateArray(this.browserHosts); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserInfoBrowserInfo extends $dara.Model { + /** + * @remarks + * The browser type. + * + * @example + * Chrome + */ + browser?: string; + /** + * @remarks + * The device type. + * + * @example + * laptop + */ + device?: string; + static names(): { [key: string]: string } { + return { + browser: 'browser', + device: 'device', + }; + } + + static types(): { [key: string]: any } { + return { + browser: 'string', + device: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserInfo extends $dara.Model { + browserInfo?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserInfoBrowserInfo[]; + static names(): { [key: string]: string } { + return { + browserInfo: 'browser_info', + }; + } + + static types(): { [key: string]: any } { + return { + browserInfo: { 'type': 'array', 'itemType': DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserInfoBrowserInfo }, + }; + } + + validate() { + if(Array.isArray(this.browserInfo)) { + $dara.Model.validateArray(this.browserInfo); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonConfigVariablesConfigVariables extends $dara.Model { + name?: string; + secure?: boolean; + value?: string; + static names(): { [key: string]: string } { + return { + name: 'name', + secure: 'secure', + value: 'value', + }; + } + + static types(): { [key: string]: any } { + return { + name: 'string', + secure: 'boolean', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonConfigVariables extends $dara.Model { + configVariables?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonConfigVariablesConfigVariables[]; + static names(): { [key: string]: string } { + return { + configVariables: 'config_variables', + }; + } + + static types(): { [key: string]: any } { + return { + configVariables: { 'type': 'array', 'itemType': DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonConfigVariablesConfigVariables }, + }; + } + + validate() { + if(Array.isArray(this.configVariables)) { + $dara.Model.validateArray(this.configVariables); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonExpectExistString extends $dara.Model { + expectExistString?: string[]; + static names(): { [key: string]: string } { + return { + expectExistString: 'expect_exist_string', + }; + } + + static types(): { [key: string]: any } { + return { + expectExistString: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.expectExistString)) { + $dara.Model.validateArray(this.expectExistString); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonExpectNonExistString extends $dara.Model { + expectNonExistString?: string[]; + static names(): { [key: string]: string } { + return { + expectNonExistString: 'expect_non_exist_string', + }; + } + + static types(): { [key: string]: any } { + return { + expectNonExistString: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.expectNonExistString)) { + $dara.Model.validateArray(this.expectNonExistString); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonQuicTarget extends $dara.Model { + quicTarget?: string[]; + static names(): { [key: string]: string } { + return { + quicTarget: 'quic_target', + }; + } + + static types(): { [key: string]: any } { + return { + quicTarget: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.quicTarget)) { + $dara.Model.validateArray(this.quicTarget); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariablesExtractedVariablesParser extends $dara.Model { + parserType?: string; + value?: string; + static names(): { [key: string]: string } { + return { + parserType: 'parser_type', + value: 'value', + }; + } + + static types(): { [key: string]: any } { + return { + parserType: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariablesExtractedVariables extends $dara.Model { + extractedType?: string; + field?: string; + name?: string; + parser?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariablesExtractedVariablesParser; + static names(): { [key: string]: string } { + return { + extractedType: 'extracted_type', + field: 'field', + name: 'name', + parser: 'parser', + }; + } + + static types(): { [key: string]: any } { + return { + extractedType: 'string', + field: 'string', + name: 'string', + parser: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariablesExtractedVariablesParser, + }; + } + + validate() { + if(this.parser && typeof (this.parser as any).validate === 'function') { + (this.parser as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariables extends $dara.Model { + extractedVariables?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariablesExtractedVariables[]; + static names(): { [key: string]: string } { + return { + extractedVariables: 'extracted_variables', + }; + } + + static types(): { [key: string]: any } { + return { + extractedVariables: { 'type': 'array', 'itemType': DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariablesExtractedVariables }, + }; + } + + validate() { + if(Array.isArray(this.extractedVariables)) { + $dara.Model.validateArray(this.extractedVariables); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsSteps extends $dara.Model { + allowFailure?: boolean; + autoExtractCookie?: boolean; + extractedVariables?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariables; + isCritical?: boolean; + /** + * @deprecated + */ + name?: string; + option?: string; + stepName?: string; + stepType?: string; + url?: string; + useGeneratedCookie?: boolean; + waitTimeInSecs?: number; + static names(): { [key: string]: string } { + return { + allowFailure: 'allow_failure', + autoExtractCookie: 'auto_extract_cookie', + extractedVariables: 'extracted_variables', + isCritical: 'is_critical', + name: 'name', + option: 'option', + stepName: 'step_name', + stepType: 'step_type', + url: 'url', + useGeneratedCookie: 'use_generated_cookie', + waitTimeInSecs: 'wait_time_in_secs', + }; + } + + static types(): { [key: string]: any } { + return { + allowFailure: 'boolean', + autoExtractCookie: 'boolean', + extractedVariables: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariables, + isCritical: 'boolean', + name: 'string', + option: 'string', + stepName: 'string', + stepType: 'string', + url: 'string', + useGeneratedCookie: 'boolean', + waitTimeInSecs: 'number', + }; + } + + validate() { + if(this.extractedVariables && typeof (this.extractedVariables as any).validate === 'function') { + (this.extractedVariables as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonSteps extends $dara.Model { + steps?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsSteps[]; + static names(): { [key: string]: string } { + return { + steps: 'steps', + }; + } + + static types(): { [key: string]: any } { + return { + steps: { 'type': 'array', 'itemType': DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsSteps }, + }; + } + + validate() { + if(Array.isArray(this.steps)) { + $dara.Model.validateArray(this.steps); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonTrafficHijackElementBlacklist extends $dara.Model { + trafficHijackElementBlacklist?: string[]; + static names(): { [key: string]: string } { + return { + trafficHijackElementBlacklist: 'traffic_hijack_element_blacklist', + }; + } + + static types(): { [key: string]: any } { + return { + trafficHijackElementBlacklist: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.trafficHijackElementBlacklist)) { + $dara.Model.validateArray(this.trafficHijackElementBlacklist); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonTrafficHijackElementWhitelist extends $dara.Model { + trafficHijackElementWhitelist?: string[]; + static names(): { [key: string]: string } { + return { + trafficHijackElementWhitelist: 'traffic_hijack_element_whitelist', + }; + } + + static types(): { [key: string]: any } { + return { + trafficHijackElementWhitelist: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.trafficHijackElementWhitelist)) { + $dara.Model.validateArray(this.trafficHijackElementWhitelist); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJson extends $dara.Model { + /** + * @remarks + * The assertions. + */ + assertions?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAssertions; + /** + * @remarks + * The number of retries after a DNS failure occurred. + * + * @example + * 3 + */ + attempts?: number; + authInfo?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAuthInfo; + /** + * @remarks + * The blocked URLs. Wildcards are supported in paths. + */ + blockedUrlList?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBlockedUrlList; + /** + * @remarks + * The custom headers. Format: {"key": "somekey", "value":"somevalue"}. + */ + browserHeaders?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserHeaders; + /** + * @remarks + * The custom hosts. Format: {"key": "somekey", "value":"somevalue"}. + */ + browserHosts?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserHosts; + /** + * @remarks + * The browser information. + */ + browserInfo?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserInfo; + /** + * @remarks + * Indicates whether certificate errors are ignored. Valid values: + * - false: Certificate errors are not ignored. + * - true: Certificate errors are ignored. + * + * @example + * false + */ + browserInsecure?: boolean; + /** + * @remarks + * The version of the browser test task. Valid values: + * - 1: browser test for a single page + * - 2: browser test for multiple pages + * + * @example + * 1 + */ + browserTaskVersion?: string; + configVariables?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonConfigVariables; + /** + * @remarks + * The cookie of the HTTP request. + * + * @example + * lang=en + */ + cookie?: string; + /** + * @remarks + * Indicates whether the automatic MTR diagnostics feature is enabled for a failed task. Valid values: + * - false: The automatic MTR diagnostics feature is disabled for a failed task. + * - true: The automatic MTR diagnostics feature is enabled for a failed task. + * + * @example + * false + */ + diagnosisMtr?: boolean; + /** + * @remarks + * Indicates whether the automatic ping latency detection feature is enabled for a failed task. Valid values: + * - false: The automatic ping latency detection feature is disabled for a failed task. + * - true: The automatic ping latency detection feature is enabled for a failed task. + * + * @example + * false + */ + diagnosisPing?: boolean; + /** + * @remarks + * The DNS hijack whitelist. + * + * @example + * www.taobao.com:www.taobao.com.danuoyi.tbcache.com + */ + dnsHijackWhitelist?: string; + /** + * @remarks + * The relationship between the list of expected aliases or IP addresses and the list of DNS results. Valid values: + * + * * IN_DNS: The list of expected values is a subset of the list of DNS results. + * * DNS_IN: The list of DNS results is a subset of the list of expected values. + * * EQUAL: The list of DNS results is the same as the list of expected values. + * * ANY: The list of DNS results intersects with the list of expected values. + * + * @example + * IN_DNS + */ + dnsMatchRule?: string; + /** + * @remarks + * The IP address of the DNS server. + * + * > This parameter is returned only if the TaskType parameter is set to DNS. + * + * @example + * 192.168.XX.XX + */ + dnsServer?: string; + /** + * @remarks + * The type of the DNS record. This parameter is returned only if the TaskType parameter is set to DNS. Valid values: + * + * * A (default): a record that specifies an IP address related to the specified host name or domain name. + * * CNAME: a record that maps multiple domain names to a domain name. + * * NS: a record that specifies a DNS server used to parse domain names. + * * MX: a record that links domain names to the address of a mail server. + * * TXT: a record that stores the text information of host name or domain names. The text must be 1 to 512 bytes in length. The TXT record serves as a Sender Policy Framework (SPF) record to fight against spam. + * + * @example + * A + */ + dnsType?: string; + /** + * @remarks + * Indicates whether the WebSocket task is allowed to return no response or return an empty response. Default value: false. Valid values: false and true. + * + * @example + * false + */ + emptyMessage?: boolean; + enablePacketCapture?: boolean; + /** + * @remarks + * The string that is expected to exist on the page. + */ + expectExistString?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonExpectExistString; + /** + * @remarks + * The string that is not expected to exist on the page. + */ + expectNonExistString?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonExpectNonExistString; + /** + * @remarks + * The domain name or alias to be parsed. + * + * > This parameter is returned only if the TaskType parameter is set to DNS. + * + * @example + * dns_server + */ + expectValue?: string; + /** + * @remarks + * The packet loss rate. + * + * > This parameter is returned only if the TaskType parameter is set to PING. + * + * @example + * 0.4 + */ + failureRate?: number; + /** + * @remarks + * The header of the HTTP request. + * + * @example + * testKey:testValue + */ + header?: string; + /** + * @remarks + * The number of hops to perform traceroute diagnostics if the PING task fails. + * + * @example + * 20 + */ + hops?: number; + /** + * @remarks + * The custom hosts for the HTTP test task. Format: ip1,ip2:address. You can specify values in multiple lines. Specify the A record or CNAME record that can be resolved by the domain name at the left of the colon. Separate multiple records with commas (,). Specify the domain name at the right of the colon. + * + * @example + * 127.0.0.1:www.aliyun.com + */ + hostBinding?: string; + /** + * @remarks + * The host binding type. Valid values: 0 and 1. 0 indicates random. 1 indicates polling. + * + * @example + * 0 + */ + hostBindingType?: number; + /** + * @remarks + * The HTTP request method. Valid values: + * + * * get + * * post + * * head + * + * @example + * get + */ + httpMethod?: string; + /** + * @remarks + * The timeout period of a PING task that uses ICMP. Unit: milliseconds. + * + * @example + * 3000 + */ + icmpTimeoutMillis?: number; + /** + * @remarks + * ip_network indicates the network type of the task. Valid values: v4, v6, and auto. Default value: v4. + * + * @example + * v4 + */ + ipNetwork?: string; + /** + * @remarks + * Indicates whether to perform Base64 decoding and then store the password. Valid values: true and false. + * + * @example + * true + */ + isBase64Encode?: string; + /** + * @remarks + * Indicates whether the alert rule is included. Valid values: + * + * * 0: The alert rule is included. + * * 1: The alert rule is excluded. + * + * @example + * 1 + */ + matchRule?: number; + /** + * @remarks + * The minimum TLS version. By default, TLS 1.2 and later versions are supported. TLS 1.0 and 1.1 are disabled. If you still require TLS 1.0 or 1.1, you can change the configuration. + * + * @example + * tlsv1.2 + */ + minTlsVersion?: string; + /** + * @remarks + * The password of the SMTP, POP3, or FTP protocol. + * + * @example + * 123**** + */ + password?: string; + /** + * @remarks + * The heartbeat of the PING protocol. + * + * @example + * 29 + */ + pingNum?: number; + /** + * @remarks + * The port number for TCP pings. + * + * @example + * 80 + */ + pingPort?: number; + /** + * @remarks + * The PING protocol type. Valid values: + * + * * icmp + * * tcp + * * udp + * + * @example + * icmp,tcp,udp + */ + pingType?: string; + /** + * @remarks + * The port number of the TCP, UDP, SMTP, or POP3 protocol. + * + * @example + * 110 + */ + port?: number; + /** + * @example + * cert.pem + */ + privateCrtFileName?: string; + /** + * @remarks + * The protocol that is used to send the request. + * + * @example + * TCP + */ + protocol?: string; + /** + * @remarks + * Indicates whether the Quick UDP Internet Connections (QUIC) protocol is used for browser detection. Valid values: true false Default value: false. + * + * @example + * true + */ + quicEnabled?: boolean; + /** + * @remarks + * The sites for which the QUIC protocol is forcibly used. + */ + quicTarget?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonQuicTarget; + /** + * @remarks + * The content of the HTTP request. + * + * @example + * aa=bb + */ + requestContent?: string; + /** + * @remarks + * The format of the HTTP request. Valid values: + * + * * hex: hexadecimal + * * txt: text + * + * @example + * txt + */ + requestFormat?: string; + /** + * @remarks + * The response to the HTTP request. + * + * @example + * txt + */ + responseContent?: string; + /** + * @remarks + * The format of the HTTP response. Valid values: + * + * * hex: hexadecimal + * * txt: text + * + * @example + * txt + */ + responseFormat?: string; + /** + * @remarks + * The number of retries for failed detections. + * + * @example + * 0 + */ + retryDelay?: number; + safeLink?: number; + /** + * @remarks + * Indicates whether page screenshot is enabled. + * + * @example + * false + */ + screenShot?: boolean; + /** + * @remarks + * Indicates whether to scroll to the bottom of the page after opening the page. This parameter is valid for a browser test task. + * + * @example + * false + */ + scrollEnd?: boolean; + steps?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonSteps; + /** + * @remarks + * Indicates whether to allow the loading failures of some page elements. Valid values: false and true. + * + * @example + * false + */ + strictMode?: boolean; + /** + * @remarks + * The timeout period. Unit: milliseconds. + * + * @example + * 3 + */ + timeOut?: number; + traceRegion?: string; + traceType?: string; + /** + * @remarks + * The traffic hijacking blacklist. When redirection occurs, if the URL of the resource loaded by the browser matches the expression in the blacklist, traffic hijacking is considered to have occurred. + */ + trafficHijackElementBlacklist?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonTrafficHijackElementBlacklist; + /** + * @remarks + * When redirection occurs, if the browser loads more than the specified number of resources, traffic hijacking is considered to have occurred. If you set the value to 0, no validation is performed. Default value: 0. + * + * @example + * 0 + */ + trafficHijackElementCount?: number; + /** + * @remarks + * The traffic hijacking whitelist. When redirection occurs, if the URL of the resource loaded by the browser does not match any expression in the whitelist, traffic hijacking is considered to have occurred. + */ + trafficHijackElementWhitelist?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonTrafficHijackElementWhitelist; + usePrivateCrt?: boolean; + /** + * @remarks + * The username of the FTP, SMTP, or POP3 protocol. + * + * @example + * testUser + */ + username?: string; + /** + * @remarks + * The additional waiting time after a page is opened in a browser test task. + * + * @example + * 3 + */ + waitTimeAfterCompletion?: number; + static names(): { [key: string]: string } { + return { + assertions: 'assertions', + attempts: 'attempts', + authInfo: 'auth_info', + blockedUrlList: 'blocked_url_list', + browserHeaders: 'browser_headers', + browserHosts: 'browser_hosts', + browserInfo: 'browser_info', + browserInsecure: 'browser_insecure', + browserTaskVersion: 'browser_task_version', + configVariables: 'config_variables', + cookie: 'cookie', + diagnosisMtr: 'diagnosis_mtr', + diagnosisPing: 'diagnosis_ping', + dnsHijackWhitelist: 'dns_hijack_whitelist', + dnsMatchRule: 'dns_match_rule', + dnsServer: 'dns_server', + dnsType: 'dns_type', + emptyMessage: 'empty_message', + enablePacketCapture: 'enable_packet_capture', + expectExistString: 'expect_exist_string', + expectNonExistString: 'expect_non_exist_string', + expectValue: 'expect_value', + failureRate: 'failure_rate', + header: 'header', + hops: 'hops', + hostBinding: 'host_binding', + hostBindingType: 'host_binding_type', + httpMethod: 'http_method', + icmpTimeoutMillis: 'icmp_timeout_millis', + ipNetwork: 'ip_network', + isBase64Encode: 'isBase64Encode', + matchRule: 'match_rule', + minTlsVersion: 'min_tls_version', + password: 'password', + pingNum: 'ping_num', + pingPort: 'ping_port', + pingType: 'ping_type', + port: 'port', + privateCrtFileName: 'private_crt_file_name', + protocol: 'protocol', + quicEnabled: 'quic_enabled', + quicTarget: 'quic_target', + requestContent: 'request_content', + requestFormat: 'request_format', + responseContent: 'response_content', + responseFormat: 'response_format', + retryDelay: 'retry_delay', + safeLink: 'safe_link', + screenShot: 'screen_shot', + scrollEnd: 'scroll_end', + steps: 'steps', + strictMode: 'strict_mode', + timeOut: 'time_out', + traceRegion: 'trace_region', + traceType: 'trace_type', + trafficHijackElementBlacklist: 'traffic_hijack_element_blacklist', + trafficHijackElementCount: 'traffic_hijack_element_count', + trafficHijackElementWhitelist: 'traffic_hijack_element_whitelist', + usePrivateCrt: 'use_private_crt', + username: 'username', + waitTimeAfterCompletion: 'waitTime_after_completion', + }; + } + + static types(): { [key: string]: any } { + return { + assertions: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAssertions, + attempts: 'number', + authInfo: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAuthInfo, + blockedUrlList: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBlockedUrlList, + browserHeaders: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserHeaders, + browserHosts: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserHosts, + browserInfo: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserInfo, + browserInsecure: 'boolean', + browserTaskVersion: 'string', + configVariables: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonConfigVariables, + cookie: 'string', + diagnosisMtr: 'boolean', + diagnosisPing: 'boolean', + dnsHijackWhitelist: 'string', + dnsMatchRule: 'string', + dnsServer: 'string', + dnsType: 'string', + emptyMessage: 'boolean', + enablePacketCapture: 'boolean', + expectExistString: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonExpectExistString, + expectNonExistString: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonExpectNonExistString, + expectValue: 'string', + failureRate: 'number', + header: 'string', + hops: 'number', + hostBinding: 'string', + hostBindingType: 'number', + httpMethod: 'string', + icmpTimeoutMillis: 'number', + ipNetwork: 'string', + isBase64Encode: 'string', + matchRule: 'number', + minTlsVersion: 'string', + password: 'string', + pingNum: 'number', + pingPort: 'number', + pingType: 'string', + port: 'number', + privateCrtFileName: 'string', + protocol: 'string', + quicEnabled: 'boolean', + quicTarget: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonQuicTarget, + requestContent: 'string', + requestFormat: 'string', + responseContent: 'string', + responseFormat: 'string', + retryDelay: 'number', + safeLink: 'number', + screenShot: 'boolean', + scrollEnd: 'boolean', + steps: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonSteps, + strictMode: 'boolean', + timeOut: 'number', + traceRegion: 'string', + traceType: 'string', + trafficHijackElementBlacklist: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonTrafficHijackElementBlacklist, + trafficHijackElementCount: 'number', + trafficHijackElementWhitelist: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonTrafficHijackElementWhitelist, + usePrivateCrt: 'boolean', + username: 'string', + waitTimeAfterCompletion: 'number', + }; + } + + validate() { + if(this.assertions && typeof (this.assertions as any).validate === 'function') { + (this.assertions as any).validate(); + } + if(this.authInfo && typeof (this.authInfo as any).validate === 'function') { + (this.authInfo as any).validate(); + } + if(this.blockedUrlList && typeof (this.blockedUrlList as any).validate === 'function') { + (this.blockedUrlList as any).validate(); + } + if(this.browserHeaders && typeof (this.browserHeaders as any).validate === 'function') { + (this.browserHeaders as any).validate(); + } + if(this.browserHosts && typeof (this.browserHosts as any).validate === 'function') { + (this.browserHosts as any).validate(); + } + if(this.browserInfo && typeof (this.browserInfo as any).validate === 'function') { + (this.browserInfo as any).validate(); + } + if(this.configVariables && typeof (this.configVariables as any).validate === 'function') { + (this.configVariables as any).validate(); + } + if(this.expectExistString && typeof (this.expectExistString as any).validate === 'function') { + (this.expectExistString as any).validate(); + } + if(this.expectNonExistString && typeof (this.expectNonExistString as any).validate === 'function') { + (this.expectNonExistString as any).validate(); + } + if(this.quicTarget && typeof (this.quicTarget as any).validate === 'function') { + (this.quicTarget as any).validate(); + } + if(this.steps && typeof (this.steps as any).validate === 'function') { + (this.steps as any).validate(); + } + if(this.trafficHijackElementBlacklist && typeof (this.trafficHijackElementBlacklist as any).validate === 'function') { + (this.trafficHijackElementBlacklist as any).validate(); + } + if(this.trafficHijackElementWhitelist && typeof (this.trafficHijackElementWhitelist as any).validate === 'function') { + (this.trafficHijackElementWhitelist as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorAttributeResponseBodySiteMonitorsVpcConfig extends $dara.Model { + /** + * @remarks + * The region of the website for synthetic monitoring. + * + * @example + * cn-beijing + */ + region?: string; + /** + * @remarks + * The ID of the security group. + * + * @example + * sg-xxxxxx + */ + securityGroupId?: string; + /** + * @remarks + * The ID of the VPC used by the synthetic test task. + * + * @example + * vpc-xxxxxx + */ + vpcId?: string; + /** + * @remarks + * The ID of the vSwitch used by the synthetic test task. + * + * @example + * vsw-xxxxxx + */ + vswitchId?: string; + static names(): { [key: string]: string } { + return { + region: 'Region', + securityGroupId: 'SecurityGroupId', + vpcId: 'VpcId', + vswitchId: 'VswitchId', + }; + } + + static types(): { [key: string]: any } { + return { + region: 'string', + securityGroupId: 'string', + vpcId: 'string', + vswitchId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorAttributeResponseBodySiteMonitors extends $dara.Model { + /** + * @remarks + * The URL that is monitored by the site monitoring task. + * + * @example + * https://aliyun.com + */ + address?: string; + /** + * @remarks + * The type of the detection point. Default value: PC. Valid values: + * - PC + * - MOBILE + * + * @example + * PC + */ + agentGroup?: string; + /** + * @remarks + * The custom detection cycle. You can specify only a time range within a week (from Monday to Sunday). + */ + customSchedule?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomSchedule; + /** + * @remarks + * The interval at which the site monitoring task is executed. Unit: minutes. Valid values: 1, 5, 15, 30, and 60. + * + * @example + * 1 + */ + interval?: string; + /** + * @remarks + * The information of detection points. The information includes the carriers that provide the detection points and the cities where the detection points reside. + */ + ispCities?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsIspCities; + /** + * @remarks + * The extended options of the site monitoring task. The options vary based on the specified protocol. For more information, see [CreateSiteMonitor](https://help.aliyun.com/document_detail/115048.html). + */ + optionJson?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJson; + /** + * @remarks + * The ID of the site monitoring task. + * + * @example + * cc641dff-c19d-45f3-ad0a-818a0c4f**** + */ + taskId?: string; + /** + * @remarks + * The name of the site monitoring task. + * + * @example + * test123 + */ + taskName?: string; + /** + * @remarks + * The status of the site monitoring task. Valid values: + * + * * 1: The task is enabled. + * * 2: The task is disabled. + * + * @example + * 1 + */ + taskState?: string; + /** + * @remarks + * The protocol that is used by the site monitoring task. Valid values: HTTP, HTTPS, PING, TCP, UDP, DNS, SMTP, POP3, and FTP. + * + * @example + * HTTP + */ + taskType?: string; + /** + * @remarks + * The VPC configurations of the synthetic test task. + */ + vpcConfig?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsVpcConfig; + static names(): { [key: string]: string } { + return { + address: 'Address', + agentGroup: 'AgentGroup', + customSchedule: 'CustomSchedule', + interval: 'Interval', + ispCities: 'IspCities', + optionJson: 'OptionJson', + taskId: 'TaskId', + taskName: 'TaskName', + taskState: 'TaskState', + taskType: 'TaskType', + vpcConfig: 'VpcConfig', + }; + } + + static types(): { [key: string]: any } { + return { + address: 'string', + agentGroup: 'string', + customSchedule: DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomSchedule, + interval: 'string', + ispCities: DescribeSiteMonitorAttributeResponseBodySiteMonitorsIspCities, + optionJson: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJson, + taskId: 'string', + taskName: 'string', + taskState: 'string', + taskType: 'string', + vpcConfig: DescribeSiteMonitorAttributeResponseBodySiteMonitorsVpcConfig, + }; + } + + validate() { + if(this.customSchedule && typeof (this.customSchedule as any).validate === 'function') { + (this.customSchedule as any).validate(); + } + if(this.ispCities && typeof (this.ispCities as any).validate === 'function') { + (this.ispCities as any).validate(); + } + if(this.optionJson && typeof (this.optionJson as any).validate === 'function') { + (this.optionJson as any).validate(); + } + if(this.vpcConfig && typeof (this.vpcConfig as any).validate === 'function') { + (this.vpcConfig as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorAttributeResponseBody extends $dara.Model { + /** + * @remarks + * The response code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * successful + */ + message?: string; + /** + * @remarks + * The alert rules that are configured for the site monitoring task. + */ + metricRules?: DescribeSiteMonitorAttributeResponseBodyMetricRules; + /** + * @remarks + * The request ID. + * + * @example + * D17DF650-7EBD-54D0-903A-1D4E624D7402 + */ + requestId?: string; + /** + * @remarks + * The details of the site monitoring task. + */ + siteMonitors?: DescribeSiteMonitorAttributeResponseBodySiteMonitors; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + metricRules: 'MetricRules', + requestId: 'RequestId', + siteMonitors: 'SiteMonitors', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + metricRules: DescribeSiteMonitorAttributeResponseBodyMetricRules, + requestId: 'string', + siteMonitors: DescribeSiteMonitorAttributeResponseBodySiteMonitors, + success: 'boolean', + }; + } + + validate() { + if(this.metricRules && typeof (this.metricRules as any).validate === 'function') { + (this.metricRules as any).validate(); + } + if(this.siteMonitors && typeof (this.siteMonitors as any).validate === 'function') { + (this.siteMonitors as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorDataRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorDataRequest.ts new file mode 100644 index 0000000..c450599 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorDataRequest.ts @@ -0,0 +1,125 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeSiteMonitorDataRequest extends $dara.Model { + /** + * @remarks + * The end of the time range to query. The following formats are supported: + * + * * UNIX timestamp: the number of milliseconds that have elapsed since 00:00:00 UTC on Thursday, January 1, 1970. + * * UTC time: the UTC time that follows the YYYY-MM-DDThh:mm:ssZ format. + * + * @example + * 1551581437000 + */ + endTime?: string; + /** + * @remarks + * The number of data points to return. + * + * @example + * 1000 + */ + length?: number; + /** + * @remarks + * The metric name. Valid values: + * + * * Availability + * * ResponseTime + * + * This parameter is required. + * + * @example + * Availability + */ + metricName?: string; + /** + * @remarks + * The pagination token. + * + * @example + * 49f7b317-7645-4cc9-94fd-ea42e5220930ea42e5220930ea42e522**** + */ + nextToken?: string; + /** + * @remarks + * The statistical period. The value is an integral multiple of 60. Unit: seconds. + * + * > The default value equals the minimum interval at which detection requests are sent to the monitored address. + * + * @example + * 60 + */ + period?: string; + regionId?: string; + /** + * @remarks + * The start of the time range to query. The following formats are supported: + * + * * UNIX timestamp: the number of milliseconds that have elapsed since 00:00:00 UTC on Thursday, January 1, 1970. + * * UTC time: the UTC time that follows the YYYY-MM-DDThh:mm:ssZ format. + * + * @example + * 1551579637000 + */ + startTime?: string; + /** + * @remarks + * The job ID. + * + * This parameter is required. + * + * @example + * 49f7b317-7645-4cc9-94fd-ea42e522**** + */ + taskId?: string; + /** + * @remarks + * The type of the monitored object whose monitoring data is to be queried. Valid values: + * + * * metric + * * event + * + * @example + * metric + */ + type?: string; + static names(): { [key: string]: string } { + return { + endTime: 'EndTime', + length: 'Length', + metricName: 'MetricName', + nextToken: 'NextToken', + period: 'Period', + regionId: 'RegionId', + startTime: 'StartTime', + taskId: 'TaskId', + type: 'Type', + }; + } + + static types(): { [key: string]: any } { + return { + endTime: 'string', + length: 'number', + metricName: 'string', + nextToken: 'string', + period: 'string', + regionId: 'string', + startTime: 'string', + taskId: 'string', + type: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorDataResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorDataResponse.ts new file mode 100644 index 0000000..f6ae8cb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorDataResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeSiteMonitorDataResponseBody } from "./DescribeSiteMonitorDataResponseBody"; + + +export class DescribeSiteMonitorDataResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeSiteMonitorDataResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeSiteMonitorDataResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorDataResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorDataResponseBody.ts new file mode 100644 index 0000000..9017f85 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorDataResponseBody.ts @@ -0,0 +1,86 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeSiteMonitorDataResponseBody extends $dara.Model { + /** + * @remarks + * The responses code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The monitoring data. + * + * @example + * [{"Maximum":247,"Mimimum":61,"Average":154,"userId":"127067667954****","taskId":"49f7b317-7645-4cc9-94fd-ea42e522****","timestamp":1551581760000}] + */ + data?: string; + /** + * @remarks + * The returned message. + * + * @example + * Successful + */ + message?: string; + /** + * @remarks + * The pagination token. + * + * @example + * ea42e5220930ea42e522**** + */ + nextToken?: string; + /** + * @remarks + * The request ID. + * + * @example + * 3febb181-0d98-4af9-8b04-7faf36b048b9 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: true: The request was successful. false: The request failed. + * + * @example + * true + */ + success?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + data: 'Data', + message: 'Message', + nextToken: 'NextToken', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + data: 'string', + message: 'string', + nextToken: 'string', + requestId: 'string', + success: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorIspcityListRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorIspcityListRequest.ts new file mode 100644 index 0000000..1873567 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorIspcityListRequest.ts @@ -0,0 +1,84 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeSiteMonitorISPCityListRequest extends $dara.Model { + /** + * @remarks + * The name or ID of the city. + * + * > City names support fuzzy match. + */ + city?: string; + /** + * @remarks + * Specifies whether to query IPv4 probes. Valid values: + * + * * true (default): IPv4 probes are queried. + * * false: IPv4 probes are not queried. + * + * @example + * true + */ + IPV4?: boolean; + /** + * @remarks + * Specifies whether to query IPv6 probes. Valid values: + * + * * true (default): IPv6 probes are queried. + * * false: IPv6 probes are not queried. + * + * @example + * true + */ + IPV6?: boolean; + /** + * @remarks + * The name or ID of the carrier. + * + * > Carrier names support fuzzy match. + */ + isp?: string; + regionId?: string; + /** + * @remarks + * Specifies whether to return all detection points. Valid values: + * + * * true (default): returns all detection points. + * * false: returns only available detection points. + * + * @example + * true + */ + viewAll?: boolean; + static names(): { [key: string]: string } { + return { + city: 'City', + IPV4: 'IPV4', + IPV6: 'IPV6', + isp: 'Isp', + regionId: 'RegionId', + viewAll: 'ViewAll', + }; + } + + static types(): { [key: string]: any } { + return { + city: 'string', + IPV4: 'boolean', + IPV6: 'boolean', + isp: 'string', + regionId: 'string', + viewAll: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorIspcityListResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorIspcityListResponse.ts new file mode 100644 index 0000000..d6de267 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorIspcityListResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeSiteMonitorISPCityListResponseBody } from "./DescribeSiteMonitorIspcityListResponseBody"; + + +export class DescribeSiteMonitorISPCityListResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeSiteMonitorISPCityListResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeSiteMonitorISPCityListResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorIspcityListResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorIspcityListResponseBody.ts new file mode 100644 index 0000000..40747a3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorIspcityListResponseBody.ts @@ -0,0 +1,253 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeSiteMonitorISPCityListResponseBodyIspCityListIspCityIPPool extends $dara.Model { + IPPool?: string[]; + static names(): { [key: string]: string } { + return { + IPPool: 'IPPool', + }; + } + + static types(): { [key: string]: any } { + return { + IPPool: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.IPPool)) { + $dara.Model.validateArray(this.IPPool); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorISPCityListResponseBodyIspCityListIspCity extends $dara.Model { + area_en?: string; + area_zh_cN?: string; + /** + * @remarks + * The city ID. + * + * @example + * 4 + */ + city?: string; + cityName_en?: string; + cityName_zh_cN?: string; + /** + * @remarks + * The country name. + * + * > This parameter is valid only on the China site (aliyun.com). + * + * @example + * 629 + */ + country?: string; + country_en?: string; + country_zh_cN?: string; + /** + * @remarks + * The IP address pool. + */ + IPPool?: DescribeSiteMonitorISPCityListResponseBodyIspCityListIspCityIPPool; + /** + * @remarks + * The number of IPv4 probes. + * + * @example + * 4 + */ + IPV4ProbeCount?: string; + /** + * @remarks + * The number of IPv6 probes. + * + * @example + * 3 + */ + IPV6ProbeCount?: string; + /** + * @remarks + * The carrier ID. + * + * @example + * 232 + */ + isp?: string; + ispName_en?: string; + ispName_zh_cN?: string; + /** + * @remarks + * The province name. + * + * @example + * 264 + */ + region?: string; + region_en?: string; + region_zh_cN?: string; + static names(): { [key: string]: string } { + return { + area_en: 'Area.en', + area_zh_cN: 'Area.zh_CN', + city: 'City', + cityName_en: 'CityName.en', + cityName_zh_cN: 'CityName.zh_CN', + country: 'Country', + country_en: 'Country.en', + country_zh_cN: 'Country.zh_CN', + IPPool: 'IPPool', + IPV4ProbeCount: 'IPV4ProbeCount', + IPV6ProbeCount: 'IPV6ProbeCount', + isp: 'Isp', + ispName_en: 'IspName.en', + ispName_zh_cN: 'IspName.zh_CN', + region: 'Region', + region_en: 'Region.en', + region_zh_cN: 'Region.zh_CN', + }; + } + + static types(): { [key: string]: any } { + return { + area_en: 'string', + area_zh_cN: 'string', + city: 'string', + cityName_en: 'string', + cityName_zh_cN: 'string', + country: 'string', + country_en: 'string', + country_zh_cN: 'string', + IPPool: DescribeSiteMonitorISPCityListResponseBodyIspCityListIspCityIPPool, + IPV4ProbeCount: 'string', + IPV6ProbeCount: 'string', + isp: 'string', + ispName_en: 'string', + ispName_zh_cN: 'string', + region: 'string', + region_en: 'string', + region_zh_cN: 'string', + }; + } + + validate() { + if(this.IPPool && typeof (this.IPPool as any).validate === 'function') { + (this.IPPool as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorISPCityListResponseBodyIspCityList extends $dara.Model { + ispCity?: DescribeSiteMonitorISPCityListResponseBodyIspCityListIspCity[]; + static names(): { [key: string]: string } { + return { + ispCity: 'IspCity', + }; + } + + static types(): { [key: string]: any } { + return { + ispCity: { 'type': 'array', 'itemType': DescribeSiteMonitorISPCityListResponseBodyIspCityListIspCity }, + }; + } + + validate() { + if(Array.isArray(this.ispCity)) { + $dara.Model.validateArray(this.ispCity); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorISPCityListResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The queried detection points. + */ + ispCityList?: DescribeSiteMonitorISPCityListResponseBodyIspCityList; + /** + * @remarks + * The returned message. + * + * @example + * successful + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * B35D7D84-547B-4E61-B909-48A1F8A0C756 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + ispCityList: 'IspCityList', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + ispCityList: DescribeSiteMonitorISPCityListResponseBodyIspCityList, + message: 'string', + requestId: 'string', + success: 'string', + }; + } + + validate() { + if(this.ispCityList && typeof (this.ispCityList as any).validate === 'function') { + (this.ispCityList as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorListRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorListRequest.ts new file mode 100644 index 0000000..46e95dd --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorListRequest.ts @@ -0,0 +1,108 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeSiteMonitorListRequest extends $dara.Model { + /** + * @remarks + * Task network type. Valid values: + * + * - PC: Cable Network + * + * - MOBILE: Mobile Cellular Network + * + * - FC: Alibaba Cloud VPC Network + * + * @example + * PC + */ + agentGroup?: string; + /** + * @remarks + * The keyword to be matched. + * + * > You can search for tasks by name or address. Fuzzy search is supported. + * + * @example + * site + */ + keyword?: string; + /** + * @remarks + * The page number. Default value: 1. + * + * @example + * 1 + */ + page?: number; + /** + * @remarks + * The number of entries per page. Default value: 10. + * + * @example + * 10 + */ + pageSize?: number; + regionId?: string; + /** + * @remarks + * The ID of the site monitoring task. + * + * @example + * a1ecd34a-8157-44d9-b060-14950837**** + */ + taskId?: string; + /** + * @remarks + * The task status. Valid values: + * + * * 1: The task is enabled. + * * 2: The task is disabled. + * + * @example + * 1 + */ + taskState?: string; + /** + * @remarks + * The protocol that is used by the site monitoring task. Valid values: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP. + * + * @example + * HTTP + */ + taskType?: string; + static names(): { [key: string]: string } { + return { + agentGroup: 'AgentGroup', + keyword: 'Keyword', + page: 'Page', + pageSize: 'PageSize', + regionId: 'RegionId', + taskId: 'TaskId', + taskState: 'TaskState', + taskType: 'TaskType', + }; + } + + static types(): { [key: string]: any } { + return { + agentGroup: 'string', + keyword: 'string', + page: 'number', + pageSize: 'number', + regionId: 'string', + taskId: 'string', + taskState: 'string', + taskType: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorListResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorListResponse.ts new file mode 100644 index 0000000..caa63b8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorListResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeSiteMonitorListResponseBody } from "./DescribeSiteMonitorListResponseBody"; + + +export class DescribeSiteMonitorListResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeSiteMonitorListResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeSiteMonitorListResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorListResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorListResponseBody.ts new file mode 100644 index 0000000..2989c25 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorListResponseBody.ts @@ -0,0 +1,746 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJsonAssertionsAssertions extends $dara.Model { + /** + * @remarks + * The comparison operator of the assertion. Valid values: + * + * * contains: contains + * * doesNotContain: does not contain + * * matches: matches regular expressions + * * doesNotMatch: does not match regular expressions + * * is: equal to a numeric value or matches a character + * * isNot: not equal to + * * lessThan: less than + * * moreThan: greater than + * + * @example + * lessThan + */ + operator?: string; + /** + * @remarks + * The parsing path of the assertion. + * + * * If the assertion type is `body_json`, the path is `json path`. + * * If the assertion type is `body_xml`, the path is `xml path`. + * + * @example + * json path + */ + property?: string; + /** + * @remarks + * The numeric value or character used for matching. + * + * @example + * 1000 + */ + target?: string; + /** + * @remarks + * The assertion type. Valid values: + * + * * response_time: checks whether the response time meets expectations. + * * status_code: checks whether the HTTP status code meets expectations. + * * header: checks whether the fields in the response header meet expectations. + * * body_text: checks whether the content in the response body meets expectations by using text matching. + * * body_json: checks whether the content in the response body meets expectations by using JSON parsing (JSONPath). + * * body_xml: checks whether the content in the response body meets expectations by using XML parsing (XPath). + * + * @example + * response_time + */ + type?: string; + static names(): { [key: string]: string } { + return { + operator: 'operator', + property: 'property', + target: 'target', + type: 'type', + }; + } + + static types(): { [key: string]: any } { + return { + operator: 'string', + property: 'string', + target: 'string', + type: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJsonAssertions extends $dara.Model { + assertions?: DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJsonAssertionsAssertions[]; + static names(): { [key: string]: string } { + return { + assertions: 'assertions', + }; + } + + static types(): { [key: string]: any } { + return { + assertions: { 'type': 'array', 'itemType': DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJsonAssertionsAssertions }, + }; + } + + validate() { + if(Array.isArray(this.assertions)) { + $dara.Model.validateArray(this.assertions); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJson extends $dara.Model { + /** + * @remarks + * The acceptable status code. + * + * > We recommend that you configure assertions. + * + * @example + * 400 + */ + acceptableResponseCode?: string; + /** + * @remarks + * The assertions. + */ + assertions?: DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJsonAssertions; + /** + * @remarks + * The number of retries after a DNS failure occurred. + * + * @example + * 3 + */ + attempts?: number; + /** + * @remarks + * Indicates whether the security authentication feature is enabled. Valid values: + * + * * 0: The feature is enabled. + * * 1: The feature is disabled. + * + * @example + * 1 + */ + authentication?: number; + /** + * @remarks + * Indicates whether the certificate is verified. Valid values: + * + * * false (default): The certificate is not verified. + * * true: The certificate is verified. + * + * @example + * false + */ + certVerify?: boolean; + /** + * @remarks + * The cookie of the HTTP request. + * + * @example + * lang=en + */ + cookie?: string; + /** + * @remarks + * Indicates whether MTR is automatically used to diagnose network issues if a task fails. Valid values: + * + * * false (default): MTR is not automatically used to diagnose network issues if a task fails. + * * true: MTR is automatically used to diagnose network issues if a task fails. + * + * @example + * false + */ + diagnosisMtr?: boolean; + /** + * @remarks + * Indicates whether ping requests are automatically sent to detect network latency if a detection task fails. Valid values: + * + * * false (default): Ping requests are not automatically sent to detect network latency if a detection task fails. + * * true: Ping requests are automatically sent to detect network latency if a detection task fails. + * + * @example + * false + */ + diagnosisPing?: boolean; + /** + * @remarks + * The relationship between the list of expected aliases or IP addresses and the list of DNS results. Valid values: + * + * * IN_DNS: The list of expected values is a subset of the list of DNS results. + * * DNS_IN: The list of DNS results is a subset of the list of expected values. + * * EQUAL: The list of DNS results is the same as the list of expected values. + * * ANY: The list of DNS results intersects with the list of expected values. + * + * @example + * IN_DNS + */ + dnsMatchRule?: string; + /** + * @remarks + * The domain name or IP address of the DNS server. + * + * @example + * 192.168.XX.XX + */ + dnsServer?: string; + /** + * @remarks + * The type of the DNS record. This parameter is returned only if the TaskType parameter is set to DNS. Valid values: + * + * * A (default): a record that specifies an IP address related to the specified host name or domain name. + * * CNAME: a record that maps multiple domain names to a domain name. + * * NS: a record that specifies a DNS server used to parse domain names. + * * MX: a record that links domain names to the address of a mail server. + * * TXT: a record that stores the text information of host name or domain names. The text must be 1 to 512 bytes in length. The TXT record serves as a Sender Policy Framework (SPF) record to fight against spam. + * * AAAA: a record that maps a domain name to the relevant IPv6 address. + * + * @example + * A + */ + dnsType?: string; + /** + * @remarks + * Indicates whether the DNS server of the carrier is used. + * + * * true (default): The DNS server of the carrier is used. + * * false: The DNS server of the carrier is not used. The default DNS server or the specified DNS server is used. + * + * @example + * true + */ + enableOperatorDns?: boolean; + /** + * @remarks + * The packet loss rate. + * + * > This parameter is returned only if the TaskType parameter is set to PING. + * + * @example + * 0.5 + */ + failureRate?: number; + /** + * @remarks + * The header of the HTTP request. An HTTP header is a key-value pair in which the key and the value are separated by a colon (:). The format is `key1:value1`. Each HTTP header occupies a line. + * + * @example + * testKey:testValue + */ + header?: string; + /** + * @remarks + * The HTTP request method. Valid values: + * + * * get + * * post + * * head + * + * @example + * get + */ + httpMethod?: string; + /** + * @remarks + * Indicates whether the password is decoded by using the Base64 algorithm. Valid values: + * + * * true: The password is decoded by using the Base64 algorithm. + * * false (default): The password is not decoded by using the Base64 algorithm. + * + * @example + * false + */ + isBase64Encode?: string; + /** + * @remarks + * Indicates whether the alert rule is included. Valid values: + * + * * 0: The alert rule is included. + * * 1: The alert rule is not included. + * + * @example + * 0 + */ + matchRule?: number; + /** + * @remarks + * The password of the SMTP, POP3, or FTP protocol. + * + * @example + * 123**** + */ + password?: string; + /** + * @remarks + * The number of hops for the PING protocol. + * + * @example + * 20 + */ + pingNum?: number; + /** + * @remarks + * The port number of the TCP, UDP, SMTP, or POP3 protocol. + * + * @example + * 80 + */ + port?: number; + /** + * @remarks + * The protocol type of DNS detection. Valid values: + * + * * udp (default) + * * tcp + * * tcp-tls + * + * @example + * udp + */ + protocol?: string; + /** + * @remarks + * Indicates whether the PROXY protocol is enabled. Valid values: + * + * * false (default): The PROXY protocol is disabled. + * * true: The PROXY protocol is enabled. + * + * @example + * false + */ + proxyProtocol?: boolean; + /** + * @remarks + * The content of the HTTP request. + * + * @example + * cf0f85 + */ + requestContent?: string; + /** + * @remarks + * The format of the HTTP request. Valid values: + * + * * hex: hexadecimal + * * txt: text + * + * @example + * hex + */ + requestFormat?: string; + /** + * @remarks + * The response to the HTTP request. + * + * * Hexadecimal format: If the request content is a byte string and cannot be represented in printable characters, you can convert the byte string to printable characters in the hexadecimal format. If you convert the byte string to printable characters in the hexadecimal format, one byte is converted to two hexadecimal characters. For example, (byte)1 is converted to `01` and (byte)27 is converted to `1B`. If the request content is a binary array in the Java format, for example, `{(byte)1, (byte)27}`, you can convert the binary array to `011b` or `011B`. Hexadecimal characters are not case-sensitive in site monitoring tasks. You can enter `011B` in the request content and set the request_format parameter to hex. + * * Text format: Common text refers to strings that consist of printable characters. + * + * @example + * cf0f85 + */ + responseContent?: string; + /** + * @remarks + * The format of the HTTP response. Valid values: + * + * * hex: hexadecimal + * * txt: text + * + * @example + * hex + */ + responseFormat?: string; + /** + * @remarks + * The number of times a failed detection request is retried. + * + * @example + * 1 + */ + retryDelay?: number; + /** + * @remarks + * The timeout period. Unit: milliseconds. + * + * @example + * 3000 + */ + timeOut?: number; + /** + * @remarks + * Indicates whether redirects are followed if the status code 301 or 302 is returned. Valid values: + * + * * true: Redirects are not followed. + * * false (default): Redirects are followed. + * + * @example + * false + */ + unfollowRedirect?: boolean; + /** + * @remarks + * The username of the FTP, SMTP, or POP3 protocol. + * + * @example + * testUser + */ + username?: string; + static names(): { [key: string]: string } { + return { + acceptableResponseCode: 'acceptable_response_code', + assertions: 'assertions', + attempts: 'attempts', + authentication: 'authentication', + certVerify: 'cert_verify', + cookie: 'cookie', + diagnosisMtr: 'diagnosis_mtr', + diagnosisPing: 'diagnosis_ping', + dnsMatchRule: 'dns_match_rule', + dnsServer: 'dns_server', + dnsType: 'dns_type', + enableOperatorDns: 'enable_operator_dns', + failureRate: 'failure_rate', + header: 'header', + httpMethod: 'http_method', + isBase64Encode: 'isBase64Encode', + matchRule: 'match_rule', + password: 'password', + pingNum: 'ping_num', + port: 'port', + protocol: 'protocol', + proxyProtocol: 'proxy_protocol', + requestContent: 'request_content', + requestFormat: 'request_format', + responseContent: 'response_content', + responseFormat: 'response_format', + retryDelay: 'retry_delay', + timeOut: 'time_out', + unfollowRedirect: 'unfollow_redirect', + username: 'username', + }; + } + + static types(): { [key: string]: any } { + return { + acceptableResponseCode: 'string', + assertions: DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJsonAssertions, + attempts: 'number', + authentication: 'number', + certVerify: 'boolean', + cookie: 'string', + diagnosisMtr: 'boolean', + diagnosisPing: 'boolean', + dnsMatchRule: 'string', + dnsServer: 'string', + dnsType: 'string', + enableOperatorDns: 'boolean', + failureRate: 'number', + header: 'string', + httpMethod: 'string', + isBase64Encode: 'string', + matchRule: 'number', + password: 'string', + pingNum: 'number', + port: 'number', + protocol: 'string', + proxyProtocol: 'boolean', + requestContent: 'string', + requestFormat: 'string', + responseContent: 'string', + responseFormat: 'string', + retryDelay: 'number', + timeOut: 'number', + unfollowRedirect: 'boolean', + username: 'string', + }; + } + + validate() { + if(this.assertions && typeof (this.assertions as any).validate === 'function') { + (this.assertions as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitor extends $dara.Model { + /** + * @remarks + * The URL or IP address that is monitored by the site monitoring task. + * + * @example + * https://aliyun.com + */ + address?: string; + /** + * @remarks + * The detection point type. Valid values: + * + * * PC + * * MOBILE + * + * @example + * PC + */ + agentGroup?: string; + /** + * @remarks + * The time when the site monitoring task was created. + * + * @example + * 2021-11-01 11:05:18 + */ + createTime?: string; + /** + * @remarks + * The interval at which detection requests are sent. Unit: minutes. + * + * @example + * 1 + */ + interval?: string; + /** + * @remarks + * The extended options of the site monitoring task. The options vary based on the specified protocol. For more information, see [CreateSiteMonitor](https://help.aliyun.com/document_detail/115048.html). + */ + optionsJson?: DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJson; + /** + * @remarks + * The ID of the site monitoring task. + * + * @example + * f5783760-1b39-4b6b-80e8-453d962a**** + */ + taskId?: string; + /** + * @remarks + * The name of the site monitoring task. + * + * @example + * 域名检测_example.com.cn + */ + taskName?: string; + /** + * @remarks + * The task status. Valid values: + * + * * 1: The task is enabled. + * * 2: The task is disabled. + * + * @example + * 1 + */ + taskState?: string; + /** + * @remarks + * The protocol that is used by the site monitoring task. Valid values: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP. + * + * @example + * TCP + */ + taskType?: string; + /** + * @remarks + * The time when the site monitoring task was updated. + * + * @example + * 2022-03-08 17:14:31 + */ + updateTime?: string; + static names(): { [key: string]: string } { + return { + address: 'Address', + agentGroup: 'AgentGroup', + createTime: 'CreateTime', + interval: 'Interval', + optionsJson: 'OptionsJson', + taskId: 'TaskId', + taskName: 'TaskName', + taskState: 'TaskState', + taskType: 'TaskType', + updateTime: 'UpdateTime', + }; + } + + static types(): { [key: string]: any } { + return { + address: 'string', + agentGroup: 'string', + createTime: 'string', + interval: 'string', + optionsJson: DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJson, + taskId: 'string', + taskName: 'string', + taskState: 'string', + taskType: 'string', + updateTime: 'string', + }; + } + + validate() { + if(this.optionsJson && typeof (this.optionsJson as any).validate === 'function') { + (this.optionsJson as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorListResponseBodySiteMonitors extends $dara.Model { + siteMonitor?: DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitor[]; + static names(): { [key: string]: string } { + return { + siteMonitor: 'SiteMonitor', + }; + } + + static types(): { [key: string]: any } { + return { + siteMonitor: { 'type': 'array', 'itemType': DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitor }, + }; + } + + validate() { + if(Array.isArray(this.siteMonitor)) { + $dara.Model.validateArray(this.siteMonitor); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorListResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * successful + */ + message?: string; + /** + * @remarks + * The page number. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * @example + * 10 + */ + pageSize?: number; + /** + * @remarks + * The request ID. + * + * @example + * A80DB41C-AF6C-50E1-ADB5-66DCBA3D266B + */ + requestId?: string; + /** + * @remarks + * The site monitoring tasks that are returned. + */ + siteMonitors?: DescribeSiteMonitorListResponseBodySiteMonitors; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + /** + * @remarks + * The total number of entries returned. + * + * @example + * 1 + */ + totalCount?: number; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + requestId: 'RequestId', + siteMonitors: 'SiteMonitors', + success: 'Success', + totalCount: 'TotalCount', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + pageNumber: 'number', + pageSize: 'number', + requestId: 'string', + siteMonitors: DescribeSiteMonitorListResponseBodySiteMonitors, + success: 'string', + totalCount: 'number', + }; + } + + validate() { + if(this.siteMonitors && typeof (this.siteMonitors as any).validate === 'function') { + (this.siteMonitors as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorLogRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorLogRequest.ts new file mode 100644 index 0000000..a802cd4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorLogRequest.ts @@ -0,0 +1,153 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeSiteMonitorLogRequest extends $dara.Model { + /** + * @example + * Chrome + */ + browser?: string; + browserInfo?: string; + /** + * @remarks + * The city identification code. + * + * @example + * 546 + */ + city?: string; + /** + * @example + * laptop + */ + device?: string; + /** + * @remarks + * The end of the time range to query. Valid values: + * + * * UNIX timestamp: the number of milliseconds that have elapsed since 00:00:00 Thursday, January 1, 1970 + * * UTC time: the UTC time that follows the YYYY-MM-DDThh:mm:ssZ format + * + * > We recommend that you use UNIX timestamps to prevent time zone-related issues. + * + * @example + * 1638422475687 + */ + endTime?: string; + /** + * @remarks + * The filter condition. + * + * You can specify a simple expression, for example, `TotalTime>100`. In this case, the operation returns only the data for instant test tasks whose total response time exceeds 100 milliseconds. + * + * @example + * TotalTime>100 + */ + filter?: string; + /** + * @remarks + * The carrier identification code. + * + * @example + * 465 + */ + isp?: string; + /** + * @remarks + * The number of entries to return on each page. Valid values: 1 to 1440. + * + * @example + * 1000 + */ + length?: number; + /** + * @remarks + * The name of the metric. + * + * Only the `ProbeLog` metric is supported. + * + * @example + * ProbeLog + */ + metricName?: string; + /** + * @remarks + * The token that is used to initiate the next request if the response of the current request is truncated. You can use the token to initiate another request and obtain the remaining records.`` + * + * @example + * IWBjqMYSy0is7zSMGu16**** + */ + nextToken?: string; + regionId?: string; + /** + * @remarks + * The start of the time range to query. The following formats are supported: + * + * * UNIX timestamp: the number of milliseconds that have elapsed since 00:00:00 Thursday, January 1, 1970 + * * UTC time: the UTC time that follows the YYYY-MM-DDThh:mm:ssZ format + * + * > + * + * * The specified time range includes the end time and excludes the start time. The start time must be earlier than the end time.\\ + * We recommend that you use UNIX timestamps to prevent time zone-related issues. + * + * @example + * 1638422474389 + */ + startTime?: string; + /** + * @remarks + * The IDs of the instant test tasks. Separate multiple task IDs with commas (,). + * + * This parameter is required. + * + * @example + * afa5c3ce-f944-4363-9edb-ce919a29**** + */ + taskIds?: string; + static names(): { [key: string]: string } { + return { + browser: 'Browser', + browserInfo: 'BrowserInfo', + city: 'City', + device: 'Device', + endTime: 'EndTime', + filter: 'Filter', + isp: 'Isp', + length: 'Length', + metricName: 'MetricName', + nextToken: 'NextToken', + regionId: 'RegionId', + startTime: 'StartTime', + taskIds: 'TaskIds', + }; + } + + static types(): { [key: string]: any } { + return { + browser: 'string', + browserInfo: 'string', + city: 'string', + device: 'string', + endTime: 'string', + filter: 'string', + isp: 'string', + length: 'number', + metricName: 'string', + nextToken: 'string', + regionId: 'string', + startTime: 'string', + taskIds: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorLogResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorLogResponse.ts new file mode 100644 index 0000000..bb7ca0a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorLogResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeSiteMonitorLogResponseBody } from "./DescribeSiteMonitorLogResponseBody"; + + +export class DescribeSiteMonitorLogResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeSiteMonitorLogResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeSiteMonitorLogResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorLogResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorLogResponseBody.ts new file mode 100644 index 0000000..0ffaed2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorLogResponseBody.ts @@ -0,0 +1,91 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeSiteMonitorLogResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * ** + * + * **Description** The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The logs of the instant test tasks. + * + * @example + * [{\\\\"redirectCount\\\\":0.0,\\\\"SSLConnectTime\\\\":0.0,\\\\"pingDetail\\\\":\\\\"\\\\",\\\\"HTTPConnectTime\\\\":0.0,\\\\"isp\\\\":\\\\"465\\\\",\\\\"errorCode\\\\":611,\\\\"ispCN\\\\":\\\\"Alibaba\\\\",\\\\"resolution\\\\":\\\\"\\\\",\\\\"areaEN\\\\":\\\\"HuaBei\\\\",\\\\"taskEndTimestamp\\\\":1638422475687,\\\\"targetIspEN\\\\":\\\\"\\\\",\\\\"TotalTime\\\\":1.0,\\\\"taskStartTimestamp\\\\":1638422474389,\\\\"countryCN\\\\":\\\\"China\\\\",\\\\"provinceEN\\\\":\\\\"Beijing\\\\",\\\\"countryEN\\\\":\\\\"China\\\\",\\\\"targetCityEN\\\\":\\\\"\\\\",\\\\"curlConnectTime\\\\":0.0,\\\\"ips\\\\":\\\\"\\\\",\\\\"route\\\\":\\\\"\\\\",\\\\"tcpConnectTime\\\\":0.0,\\\\"cityEN\\\\":\\\\"Beijing\\\\",\\\\"HTTPDownloadSpeed\\\\":0.0,\\\\"HTTPDownloadTime\\\\":0.0,\\\\"HTTPResponseCode\\\\":0.0,\\\\"areaCN\\\\":\\\\"North China\\\\",\\\\"city\\\\":\\\\"546\\\\",\\\\"expection\\\\":\\\\"\\\\",\\\\"suorceIp\\\\":\\\\"192.168.XX.XX \\\\",\\\\"ispEN\\\\":\\\\"Alibaba\\\\",\\\\"HTTPDNSTime\\\\":1.0,\\\\"targetIsp\\\\":\\\\"\\\\",\\\\"curlStarttransferTime\\\\":0.0,\\\\"provinceCN\\\\":\\\\"Beijing\\\\",\\\\"timestamp\\\\":1638422474000,\\\\"redirectTime\\\\":0.0,\\\\"targetCity\\\\":\\\\"\\\\", \\\\"expect\\\\":\\\\"\\\\",\\\\"HTTPDownloadSize\\\\":0.0,\\\\"localDns\\\\":\\\\"192.168.XX.XX\\\\",\\\\"cityCN\\\\":\\\\"Beijing\\\\",\\\\"taskId\\\\":\\\\"afa5c3ce-f944-4363-9edb-ce919a29\\*\\*\\*\\*\\\\"}] + */ + data?: string; + /** + * @remarks + * The returned message. + * + * @example + * successful + */ + message?: string; + /** + * @remarks + * A pagination token. It can be used in the next request to retrieve a new page of results. + * + * @example + * IWBjqMYSy0is7zSMGu16**** + */ + nextToken?: string; + /** + * @remarks + * The request ID. + * + * @example + * 67F646FA-ED8A-58C2-B461-451DB52C8B14 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + data: 'Data', + message: 'Message', + nextToken: 'NextToken', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + data: 'string', + message: 'string', + nextToken: 'string', + requestId: 'string', + success: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorQuotaRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorQuotaRequest.ts new file mode 100644 index 0000000..6e76784 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorQuotaRequest.ts @@ -0,0 +1,27 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeSiteMonitorQuotaRequest extends $dara.Model { + regionId?: string; + static names(): { [key: string]: string } { + return { + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorQuotaResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorQuotaResponse.ts new file mode 100644 index 0000000..ce29b1a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorQuotaResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeSiteMonitorQuotaResponseBody } from "./DescribeSiteMonitorQuotaResponseBody"; + + +export class DescribeSiteMonitorQuotaResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeSiteMonitorQuotaResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeSiteMonitorQuotaResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorQuotaResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorQuotaResponseBody.ts new file mode 100644 index 0000000..77ad057 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorQuotaResponseBody.ts @@ -0,0 +1,162 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeSiteMonitorQuotaResponseBodyData extends $dara.Model { + /** + * @remarks + * Indicates whether second-level monitoring is enabled. Valid values: + * + * * true: Second-level monitoring is enabled. + * * false: Second-level monitoring is disabled. + * + * @example + * false + */ + secondMonitor?: boolean; + /** + * @remarks + * The quota of detection points that are provided by Alibaba Cloud. Five detection points are provided for free. + * + * @example + * 5 + */ + siteMonitorIdcQuota?: number; + /** + * @remarks + * The quota of detection points that are not provided by Alibaba Cloud. Default value: 0. + * + * @example + * 0 + */ + siteMonitorOperatorQuotaQuota?: number; + /** + * @remarks + * The used quota of site monitoring tasks. + * + * @example + * 6 + */ + siteMonitorQuotaTaskUsed?: number; + /** + * @remarks + * The quota of site monitoring tasks. + * + * @example + * 10 + */ + siteMonitorTaskQuota?: number; + /** + * @remarks + * The version of site monitoring. Valid values: + * + * * V1 + * * V2 + * + * @example + * V1 + */ + siteMonitorVersion?: string; + static names(): { [key: string]: string } { + return { + secondMonitor: 'SecondMonitor', + siteMonitorIdcQuota: 'SiteMonitorIdcQuota', + siteMonitorOperatorQuotaQuota: 'SiteMonitorOperatorQuotaQuota', + siteMonitorQuotaTaskUsed: 'SiteMonitorQuotaTaskUsed', + siteMonitorTaskQuota: 'SiteMonitorTaskQuota', + siteMonitorVersion: 'SiteMonitorVersion', + }; + } + + static types(): { [key: string]: any } { + return { + secondMonitor: 'boolean', + siteMonitorIdcQuota: 'number', + siteMonitorOperatorQuotaQuota: 'number', + siteMonitorQuotaTaskUsed: 'number', + siteMonitorTaskQuota: 'number', + siteMonitorVersion: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSiteMonitorQuotaResponseBody extends $dara.Model { + /** + * @remarks + * The responses code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The quota. + */ + data?: DescribeSiteMonitorQuotaResponseBodyData; + /** + * @remarks + * The returned message. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 26860260-76C6-404E-AB7A-EB98D36A6885 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + data: 'Data', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + data: DescribeSiteMonitorQuotaResponseBodyData, + message: 'string', + requestId: 'string', + success: 'string', + }; + } + + validate() { + if(this.data && typeof (this.data as any).validate === 'function') { + (this.data as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorStatisticsRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorStatisticsRequest.ts new file mode 100644 index 0000000..b553041 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorStatisticsRequest.ts @@ -0,0 +1,81 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeSiteMonitorStatisticsRequest extends $dara.Model { + /** + * @remarks + * The metric name. Valid values: + * + * * Availability + * * ErrorRate + * * ResponseTime + * + * This parameter is required. + * + * @example + * Availability + */ + metricName?: string; + regionId?: string; + /** + * @remarks + * The beginning of the time range to query. + * + * Unit: milliseconds. The default value is 1 hour ahead of the current time. + * + * @example + * 1576142850527 + */ + startTime?: string; + /** + * @remarks + * The ID of the site monitoring task. + * + * For more information about how to obtain the ID of a site monitoring task, see [DescribeSiteMonitorList](https://help.aliyun.com/document_detail/115052.html). + * + * This parameter is required. + * + * @example + * ef4cdc8b-9dc7-43e7-810e-f950e56c**** + */ + taskId?: string; + /** + * @remarks + * The statistical period. + * + * Unit: minutes. Default value: 1440 (one day). Maximum value: 43200 (30 days). + * + * @example + * 1440 + */ + timeRange?: string; + static names(): { [key: string]: string } { + return { + metricName: 'MetricName', + regionId: 'RegionId', + startTime: 'StartTime', + taskId: 'TaskId', + timeRange: 'TimeRange', + }; + } + + static types(): { [key: string]: any } { + return { + metricName: 'string', + regionId: 'string', + startTime: 'string', + taskId: 'string', + timeRange: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorStatisticsResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorStatisticsResponse.ts new file mode 100644 index 0000000..8f9df27 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorStatisticsResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeSiteMonitorStatisticsResponseBody } from "./DescribeSiteMonitorStatisticsResponseBody"; + + +export class DescribeSiteMonitorStatisticsResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeSiteMonitorStatisticsResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeSiteMonitorStatisticsResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorStatisticsResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorStatisticsResponseBody.ts new file mode 100644 index 0000000..936c219 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSiteMonitorStatisticsResponseBody.ts @@ -0,0 +1,79 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeSiteMonitorStatisticsResponseBody extends $dara.Model { + /** + * @remarks + * The responses code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The statistics. + * + * @example + * 100 + */ + data?: string; + /** + * @remarks + * The returned message. + * + * @example + * Succcessful + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 3AD2724D-E317-4BFB-B422-D6691D071BE1 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + data: 'Data', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + data: 'string', + message: 'string', + requestId: 'string', + success: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSyntheticProbeListRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSyntheticProbeListRequest.ts new file mode 100644 index 0000000..d92250a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSyntheticProbeListRequest.ts @@ -0,0 +1,75 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeSyntheticProbeListRequest extends $dara.Model { + city?: string; + /** + * @example + * false + */ + idcProbe?: boolean; + /** + * @example + * false + */ + ipv4?: boolean; + /** + * @example + * false + */ + ipv6?: boolean; + isp?: string; + /** + * @example + * false + */ + lmProbe?: boolean; + /** + * @example + * false + */ + mbProbe?: boolean; + regionId?: string; + /** + * @example + * true + */ + viewAll?: boolean; + static names(): { [key: string]: string } { + return { + city: 'City', + idcProbe: 'IdcProbe', + ipv4: 'Ipv4', + ipv6: 'Ipv6', + isp: 'Isp', + lmProbe: 'LmProbe', + mbProbe: 'MbProbe', + regionId: 'RegionId', + viewAll: 'ViewAll', + }; + } + + static types(): { [key: string]: any } { + return { + city: 'string', + idcProbe: 'boolean', + ipv4: 'boolean', + ipv6: 'boolean', + isp: 'string', + lmProbe: 'boolean', + mbProbe: 'boolean', + regionId: 'string', + viewAll: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSyntheticProbeListResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSyntheticProbeListResponse.ts new file mode 100644 index 0000000..2d1ec27 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSyntheticProbeListResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeSyntheticProbeListResponseBody } from "./DescribeSyntheticProbeListResponseBody"; + + +export class DescribeSyntheticProbeListResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeSyntheticProbeListResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeSyntheticProbeListResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSyntheticProbeListResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSyntheticProbeListResponseBody.ts new file mode 100644 index 0000000..f1a5e10 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSyntheticProbeListResponseBody.ts @@ -0,0 +1,201 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeSyntheticProbeListResponseBodyIspCityList extends $dara.Model { + areaCn?: string; + /** + * @example + * Huabei + */ + areaEn?: string; + /** + * @example + * 738 + */ + city?: string; + cityCn?: string; + /** + * @example + * Beijing + */ + cityEn?: string; + /** + * @example + * 629 + */ + country?: string; + countryCn?: string; + /** + * @example + * China + */ + countryEn?: string; + /** + * @example + * 1 + */ + idcV4ProbeCount?: number; + /** + * @remarks + * The number of IPv6 nodes in data centers. + * + * @example + * 1 + */ + idcV6ProbeCount?: number; + /** + * @remarks + * The IP addresses of the monitored nodes. + */ + ipPool?: string[]; + /** + * @example + * 232 + */ + isp?: string; + ispCn?: string; + /** + * @example + * China-Unicom + */ + ispEn?: string; + /** + * @example + * 1 + */ + lmProbeCount?: number; + /** + * @example + * 1 + */ + mbProbeCount?: number; + /** + * @example + * 264 + */ + region?: string; + regionCn?: string; + /** + * @example + * Jiangxi + */ + regionEn?: string; + static names(): { [key: string]: string } { + return { + areaCn: 'AreaCn', + areaEn: 'AreaEn', + city: 'City', + cityCn: 'CityCn', + cityEn: 'CityEn', + country: 'Country', + countryCn: 'CountryCn', + countryEn: 'CountryEn', + idcV4ProbeCount: 'IdcV4ProbeCount', + idcV6ProbeCount: 'IdcV6ProbeCount', + ipPool: 'IpPool', + isp: 'Isp', + ispCn: 'IspCn', + ispEn: 'IspEn', + lmProbeCount: 'LmProbeCount', + mbProbeCount: 'MbProbeCount', + region: 'Region', + regionCn: 'RegionCn', + regionEn: 'RegionEn', + }; + } + + static types(): { [key: string]: any } { + return { + areaCn: 'string', + areaEn: 'string', + city: 'string', + cityCn: 'string', + cityEn: 'string', + country: 'string', + countryCn: 'string', + countryEn: 'string', + idcV4ProbeCount: 'number', + idcV6ProbeCount: 'number', + ipPool: { 'type': 'array', 'itemType': 'string' }, + isp: 'string', + ispCn: 'string', + ispEn: 'string', + lmProbeCount: 'number', + mbProbeCount: 'number', + region: 'string', + regionCn: 'string', + regionEn: 'string', + }; + } + + validate() { + if(Array.isArray(this.ipPool)) { + $dara.Model.validateArray(this.ipPool); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSyntheticProbeListResponseBody extends $dara.Model { + /** + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The queried detection points. + */ + ispCityList?: DescribeSyntheticProbeListResponseBodyIspCityList[]; + /** + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @example + * 87170bc7-e28a-4c93-b9bf-90a1dbe84736 + */ + requestId?: string; + /** + * @example + * true + */ + success?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + ispCityList: 'IspCityList', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + ispCityList: { 'type': 'array', 'itemType': DescribeSyntheticProbeListResponseBodyIspCityList }, + message: 'string', + requestId: 'string', + success: 'string', + }; + } + + validate() { + if(Array.isArray(this.ispCityList)) { + $dara.Model.validateArray(this.ispCityList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventAttributeRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventAttributeRequest.ts new file mode 100644 index 0000000..5e35060 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventAttributeRequest.ts @@ -0,0 +1,164 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeSystemEventAttributeRequest extends $dara.Model { + /** + * @remarks + * The end of the time range to query. + * + * The value must be a UNIX timestamp. It is the number of seconds that have elapsed since 00:00:00 UTC, January 1, 1970. + * + * @example + * 1552221584949 + */ + endTime?: string; + /** + * @remarks + * The type of the system event. + * + * > You can call the [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html) operation to query the types of system events. + * + * @example + * Exception + */ + eventType?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 12346 + */ + groupId?: string; + /** + * @remarks + * The level of the system event. Valid values: + * + * * CRITICAL: critical + * * WARN: warning + * * INFO: information + * + * @example + * CRITICAL + */ + level?: string; + /** + * @remarks + * The name of the system event. + * + * > You can call the [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html) operation to query the names of system events. + * + * @example + * BucketIngressBandwidth + */ + name?: string; + /** + * @remarks + * The number of the page to return. + * + * Valid values: 1 to 100000000. + * + * Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries to return on each page. + * + * Valid values: 1 to 100. + * + * Default value: 10 + * + * @example + * 10 + */ + pageSize?: number; + /** + * @remarks + * The abbreviation of the service name. + * + * > You can call the [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html) operation to query the abbreviations of service names. + * + * @example + * oss + */ + product?: string; + regionId?: string; + /** + * @remarks + * The keywords that are used to search for the system event. Valid values: + * + * * If you want to search for the system event whose content contains a and b, set the value to `a and b`. + * * If you want to search for the system event whose content contains a or b, set the value to `a or b`. + * + * @example + * cms + */ + searchKeywords?: string; + /** + * @remarks + * The beginning of the time range to query. + * + * The value must be a UNIX timestamp. It is the number of seconds that have elapsed since 00:00:00 UTC, January 1, 1970. + * + * @example + * 1552199984949 + */ + startTime?: string; + /** + * @remarks + * The status of the system event. + * + * > You can call the [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html) operation to query the statuses of system events. + * + * @example + * normal + */ + status?: string; + static names(): { [key: string]: string } { + return { + endTime: 'EndTime', + eventType: 'EventType', + groupId: 'GroupId', + level: 'Level', + name: 'Name', + pageNumber: 'PageNumber', + pageSize: 'PageSize', + product: 'Product', + regionId: 'RegionId', + searchKeywords: 'SearchKeywords', + startTime: 'StartTime', + status: 'Status', + }; + } + + static types(): { [key: string]: any } { + return { + endTime: 'string', + eventType: 'string', + groupId: 'string', + level: 'string', + name: 'string', + pageNumber: 'number', + pageSize: 'number', + product: 'string', + regionId: 'string', + searchKeywords: 'string', + startTime: 'string', + status: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventAttributeResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventAttributeResponse.ts new file mode 100644 index 0000000..f6e9363 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventAttributeResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeSystemEventAttributeResponseBody } from "./DescribeSystemEventAttributeResponseBody"; + + +export class DescribeSystemEventAttributeResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeSystemEventAttributeResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeSystemEventAttributeResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventAttributeResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventAttributeResponseBody.ts new file mode 100644 index 0000000..aead588 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventAttributeResponseBody.ts @@ -0,0 +1,238 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeSystemEventAttributeResponseBodySystemEventsSystemEvent extends $dara.Model { + /** + * @remarks + * The details of the event. + * + * @example + * [{"product":"CloudMonitor","content":"{\\"ipGroup\\":\\"112.126.XX.XX,10.163.XX.XX\\",\\"tianjimonVersion\\":\\"1.2.22\\"}","groupId":"176,177,178,179,180,692,120812,1663836,96,2028302","time":"1552209568000","resourceId":"acs:ecs:cn-beijing:173651113438****:instance/i-25k35****","level":"CRITICAL","status":"stopped","instanceName":"cmssiteprobebj-6","name":"Agent_Status_Stopped","regionId":"cn-beijing"}] + */ + content?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 12345 + */ + groupId?: string; + /** + * @remarks + * The event ID. + * + * @example + * b936efc9-f621-4e8a-a6eb-076be40e**** + */ + id?: string; + /** + * @remarks + * The instance name. + * + * @example + * instanceId1 + */ + instanceName?: string; + /** + * @remarks + * The level of the event. Valid values: + * + * * CRITICAL + * * WARN + * * INFO + * + * @example + * WARN + */ + level?: string; + /** + * @remarks + * The event name. + * + * @example + * Agent_Status_Stopped + */ + name?: string; + /** + * @remarks + * The abbreviation of the service name. + * + * @example + * CloudMonitor + */ + product?: string; + /** + * @remarks + * The region ID. + * + * @example + * cn-hangzhou + */ + regionId?: string; + /** + * @remarks + * The resource ID. + * + * @example + * xxxxx-1 + */ + resourceId?: string; + /** + * @remarks + * The status of the event. + * + * @example + * normal + */ + status?: string; + /** + * @remarks + * The time when the event occurred. The value is a timestamp. + * + * Unit: milliseconds. + * + * @example + * 1552199984000 + */ + time?: number; + static names(): { [key: string]: string } { + return { + content: 'Content', + groupId: 'GroupId', + id: 'Id', + instanceName: 'InstanceName', + level: 'Level', + name: 'Name', + product: 'Product', + regionId: 'RegionId', + resourceId: 'ResourceId', + status: 'Status', + time: 'Time', + }; + } + + static types(): { [key: string]: any } { + return { + content: 'string', + groupId: 'string', + id: 'string', + instanceName: 'string', + level: 'string', + name: 'string', + product: 'string', + regionId: 'string', + resourceId: 'string', + status: 'string', + time: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSystemEventAttributeResponseBodySystemEvents extends $dara.Model { + systemEvent?: DescribeSystemEventAttributeResponseBodySystemEventsSystemEvent[]; + static names(): { [key: string]: string } { + return { + systemEvent: 'SystemEvent', + }; + } + + static types(): { [key: string]: any } { + return { + systemEvent: { 'type': 'array', 'itemType': DescribeSystemEventAttributeResponseBodySystemEventsSystemEvent }, + }; + } + + validate() { + if(Array.isArray(this.systemEvent)) { + $dara.Model.validateArray(this.systemEvent); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSystemEventAttributeResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call is successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The message that is returned. If the call is successful, `success` is returned. If the call fails, an error message is returned. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * 60912C8D-B340-4253-ADE7-61ACDFD25CFC + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call is successful. Valid values: True: The call is successful. false: The call fails. + * + * @example + * true + */ + success?: string; + /** + * @remarks + * The details of the event. + */ + systemEvents?: DescribeSystemEventAttributeResponseBodySystemEvents; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + systemEvents: 'SystemEvents', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'string', + systemEvents: DescribeSystemEventAttributeResponseBodySystemEvents, + }; + } + + validate() { + if(this.systemEvents && typeof (this.systemEvents as any).validate === 'function') { + (this.systemEvents as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventCountRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventCountRequest.ts new file mode 100644 index 0000000..e4aa18e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventCountRequest.ts @@ -0,0 +1,134 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeSystemEventCountRequest extends $dara.Model { + /** + * @remarks + * The end of the time range to query. Unit: milliseconds. + * + * @example + * 1635993921000 + */ + endTime?: string; + /** + * @remarks + * The type of the system event. + * + * You can call the DescribeSystemEventMetaList operation to obtain the value of the response parameter `EventType`. The value of the EventType parameter indicates the types of system events that occurred for all cloud services in your Alibaba Cloud account. For more information, see [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html). + * + * @example + * StatusNotification + */ + eventType?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 17285**** + */ + groupId?: string; + /** + * @remarks + * The level of the system event. Valid values: + * + * * Critical + * * Warn + * * Info + * + * You can call the DescribeSystemEventMetaList operation to obtain the value of the response parameter `Level`. The value of the Level parameter indicates the levels of system events that occurred for all cloud services in your Alibaba Cloud account. For more information, see [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html). + * + * @example + * Info + */ + level?: string; + /** + * @remarks + * The name of the system event. + * + * You can call the DescribeSystemEventMetaList operation to obtain the value of the response parameter `Name`. The value of the Name parameter indicates the names of system events that occurred for all cloud services in your Alibaba Cloud account. For more information, see [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html). + * + * @example + * Instance:StateChange + */ + name?: string; + /** + * @remarks + * The name of the cloud service. + * + * You can call the DescribeSystemEventMetaList operation to obtain the value of the response parameter `Product`. The value of the Product parameter indicates the names of all cloud services in which the system events of your Alibaba Cloud account occurred. For more information, see [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html). + * + * @example + * ECS + */ + product?: string; + regionId?: string; + /** + * @remarks + * The keywords that are used to search for the system event. Valid values: + * + * * If you want to search for the system event whose content contains a and b, set the value to `a and b`. + * * If you want to search for the system event whose content contains a or b, set the value to `a or b`. + * + * @example + * ECS + */ + searchKeywords?: string; + /** + * @remarks + * The beginning of the time range to query. Unit: milliseconds. + * + * @example + * 1635993541000 + */ + startTime?: string; + /** + * @remarks + * The status of the system event. + * + * You can call the DescribeSystemEventMetaList operation to obtain the value of the response parameter `Status`. The value of the Status parameter indicates the status of system events that occurred for all cloud services in your Alibaba Cloud account. For more information, see [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html). + * + * @example + * Normal + */ + status?: string; + static names(): { [key: string]: string } { + return { + endTime: 'EndTime', + eventType: 'EventType', + groupId: 'GroupId', + level: 'Level', + name: 'Name', + product: 'Product', + regionId: 'RegionId', + searchKeywords: 'SearchKeywords', + startTime: 'StartTime', + status: 'Status', + }; + } + + static types(): { [key: string]: any } { + return { + endTime: 'string', + eventType: 'string', + groupId: 'string', + level: 'string', + name: 'string', + product: 'string', + regionId: 'string', + searchKeywords: 'string', + startTime: 'string', + status: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventCountResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventCountResponse.ts new file mode 100644 index 0000000..4f394d8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventCountResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeSystemEventCountResponseBody } from "./DescribeSystemEventCountResponseBody"; + + +export class DescribeSystemEventCountResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeSystemEventCountResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeSystemEventCountResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventCountResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventCountResponseBody.ts new file mode 100644 index 0000000..8c63037 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventCountResponseBody.ts @@ -0,0 +1,238 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeSystemEventCountResponseBodySystemEventCountsSystemEventCount extends $dara.Model { + /** + * @remarks + * The description of the system event. + */ + content?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 17285**** + */ + groupId?: string; + /** + * @remarks + * The name of the instance. + * + * @example + * ECS-test + */ + instanceName?: string; + /** + * @remarks + * The level of the system event. Valid values: + * + * * Critical + * * Warn + * * Info + * + * @example + * Info + */ + level?: string; + /** + * @remarks + * The name of the system event. + * + * @example + * Instance:StateChange + */ + name?: string; + /** + * @remarks + * The number of times that the system event has occurred. + * + * @example + * 3 + */ + num?: number; + /** + * @remarks + * The name of the cloud service in which the system event occurred. + * + * @example + * ECS + */ + product?: string; + /** + * @remarks + * The region ID. + * + * @example + * cn-hangzhou + */ + regionId?: string; + /** + * @remarks + * The resource ID. + * + * @example + * i-rj99xc6cptkk64ml**** + */ + resourceId?: string; + /** + * @remarks + * The status of the system event. + * + * @example + * Normal + */ + status?: string; + /** + * @remarks + * The time when the system event occurred. The value is a timestamp. Unit: milliseconds. + * + * @example + * 1635993751000 + */ + time?: number; + static names(): { [key: string]: string } { + return { + content: 'Content', + groupId: 'GroupId', + instanceName: 'InstanceName', + level: 'Level', + name: 'Name', + num: 'Num', + product: 'Product', + regionId: 'RegionId', + resourceId: 'ResourceId', + status: 'Status', + time: 'Time', + }; + } + + static types(): { [key: string]: any } { + return { + content: 'string', + groupId: 'string', + instanceName: 'string', + level: 'string', + name: 'string', + num: 'number', + product: 'string', + regionId: 'string', + resourceId: 'string', + status: 'string', + time: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSystemEventCountResponseBodySystemEventCounts extends $dara.Model { + systemEventCount?: DescribeSystemEventCountResponseBodySystemEventCountsSystemEventCount[]; + static names(): { [key: string]: string } { + return { + systemEventCount: 'SystemEventCount', + }; + } + + static types(): { [key: string]: any } { + return { + systemEventCount: { 'type': 'array', 'itemType': DescribeSystemEventCountResponseBodySystemEventCountsSystemEventCount }, + }; + } + + validate() { + if(Array.isArray(this.systemEventCount)) { + $dara.Model.validateArray(this.systemEventCount); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSystemEventCountResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status codes. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * If the request was successful, a success message is returned. If the request failed, an error message is returned. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * C7A7B776-0ACE-5A93-9B07-DE8008D9CCDF + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + /** + * @remarks + * The details of the system event. + */ + systemEventCounts?: DescribeSystemEventCountResponseBodySystemEventCounts; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + systemEventCounts: 'SystemEventCounts', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'string', + systemEventCounts: DescribeSystemEventCountResponseBodySystemEventCounts, + }; + } + + validate() { + if(this.systemEventCounts && typeof (this.systemEventCounts as any).validate === 'function') { + (this.systemEventCounts as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventHistogramRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventHistogramRequest.ts new file mode 100644 index 0000000..79e636f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventHistogramRequest.ts @@ -0,0 +1,136 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeSystemEventHistogramRequest extends $dara.Model { + /** + * @remarks + * The end time. + * + * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * @example + * 1552220485596 + */ + endTime?: string; + /** + * @remarks + * The event type. + * + * > You can call the [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html) operation to query the types of system events. + * + * @example + * Exception + */ + eventType?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 12345 + */ + groupId?: string; + /** + * @remarks + * The level of the event. Valid values: + * + * * CRITICAL + * * WARN + * * INFO + * + * @example + * CRITICAL + */ + level?: string; + /** + * @remarks + * The event name. + * + * > You can call the [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html) operation to query the names of system events. + * + * @example + * BucketIngressBandwidth + */ + name?: string; + /** + * @remarks + * The abbreviation of the service name. + * + * > You can call the [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html) operation to query the abbreviations of service names. + * + * @example + * OSS + */ + product?: string; + regionId?: string; + /** + * @remarks + * The keywords that are used to search for the system event. Valid values: + * + * * If you want to search for the system event whose content contains a and b, set the value to `a and b`. + * * If you want to search for the system event whose content contains a or b, set the value to `a or b`. + * + * @example + * cms + */ + searchKeywords?: string; + /** + * @remarks + * The start time. + * + * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * @example + * 1552209685596 + */ + startTime?: string; + /** + * @remarks + * The event status. + * + * > You can call the [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html) operation to query the status of system events. + * + * @example + * normal + */ + status?: string; + static names(): { [key: string]: string } { + return { + endTime: 'EndTime', + eventType: 'EventType', + groupId: 'GroupId', + level: 'Level', + name: 'Name', + product: 'Product', + regionId: 'RegionId', + searchKeywords: 'SearchKeywords', + startTime: 'StartTime', + status: 'Status', + }; + } + + static types(): { [key: string]: any } { + return { + endTime: 'string', + eventType: 'string', + groupId: 'string', + level: 'string', + name: 'string', + product: 'string', + regionId: 'string', + searchKeywords: 'string', + startTime: 'string', + status: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventHistogramResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventHistogramResponse.ts new file mode 100644 index 0000000..12bdb1a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventHistogramResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeSystemEventHistogramResponseBody } from "./DescribeSystemEventHistogramResponseBody"; + + +export class DescribeSystemEventHistogramResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeSystemEventHistogramResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeSystemEventHistogramResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventHistogramResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventHistogramResponseBody.ts new file mode 100644 index 0000000..f87f1ae --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventHistogramResponseBody.ts @@ -0,0 +1,156 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeSystemEventHistogramResponseBodySystemEventHistogramsSystemEventHistogram extends $dara.Model { + /** + * @remarks + * The number of times the system event occurred. + * + * @example + * 2 + */ + count?: number; + /** + * @remarks + * The end time. + * + * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * @example + * 1552225753000 + */ + endTime?: number; + /** + * @remarks + * The start time. + * + * This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. + * + * @example + * 1552225770000 + */ + startTime?: number; + static names(): { [key: string]: string } { + return { + count: 'Count', + endTime: 'EndTime', + startTime: 'StartTime', + }; + } + + static types(): { [key: string]: any } { + return { + count: 'number', + endTime: 'number', + startTime: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSystemEventHistogramResponseBodySystemEventHistograms extends $dara.Model { + systemEventHistogram?: DescribeSystemEventHistogramResponseBodySystemEventHistogramsSystemEventHistogram[]; + static names(): { [key: string]: string } { + return { + systemEventHistogram: 'SystemEventHistogram', + }; + } + + static types(): { [key: string]: any } { + return { + systemEventHistogram: { 'type': 'array', 'itemType': DescribeSystemEventHistogramResponseBodySystemEventHistogramsSystemEventHistogram }, + }; + } + + validate() { + if(Array.isArray(this.systemEventHistogram)) { + $dara.Model.validateArray(this.systemEventHistogram); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSystemEventHistogramResponseBody extends $dara.Model { + /** + * @remarks + * The response code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 486029C9-53E1-44B4-85A8-16A571A043FD + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: true: The request was successful. false: The request failed. + * + * @example + * true + */ + success?: string; + /** + * @remarks + * The information about the number of times the system event occurred during each interval of a time period. + */ + systemEventHistograms?: DescribeSystemEventHistogramResponseBodySystemEventHistograms; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + systemEventHistograms: 'SystemEventHistograms', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'string', + systemEventHistograms: DescribeSystemEventHistogramResponseBodySystemEventHistograms, + }; + } + + validate() { + if(this.systemEventHistograms && typeof (this.systemEventHistograms as any).validate === 'function') { + (this.systemEventHistograms as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventMetaListRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventMetaListRequest.ts new file mode 100644 index 0000000..3e648ee --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventMetaListRequest.ts @@ -0,0 +1,27 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeSystemEventMetaListRequest extends $dara.Model { + regionId?: string; + static names(): { [key: string]: string } { + return { + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventMetaListResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventMetaListResponse.ts new file mode 100644 index 0000000..a971b6d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventMetaListResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeSystemEventMetaListResponseBody } from "./DescribeSystemEventMetaListResponseBody"; + + +export class DescribeSystemEventMetaListResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeSystemEventMetaListResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeSystemEventMetaListResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventMetaListResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventMetaListResponseBody.ts new file mode 100644 index 0000000..dad2f50 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeSystemEventMetaListResponseBody.ts @@ -0,0 +1,206 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeSystemEventMetaListResponseBodyDataResource extends $dara.Model { + /** + * @remarks + * The type of the system event. Valid values: + * + * * StatusNotification: fault notifications + * * Exception: exceptions + * * Maintenance: O\\&M + * + * @example + * Exception + */ + eventType?: string; + /** + * @remarks + * The alert level. Valid values: + * + * * CRITICAL + * * WARN + * * INFO + * + * @example + * INFO + */ + level?: string; + /** + * @remarks + * The name of the system event. + * + * @example + * SelectFailureRate + */ + name?: string; + /** + * @remarks + * The description of the event name. + * + * @example + * High query failure rate + */ + nameDesc?: string; + nameDesc_en?: string; + /** + * @remarks + * The abbreviation of the service name. + * + * @example + * ADS + */ + product?: string; + /** + * @remarks + * The status of the system event. + * + * @example + * failed + */ + status?: string; + /** + * @remarks + * The description of the event status. + * + * @example + * Operation Failed + */ + statusDesc?: string; + static names(): { [key: string]: string } { + return { + eventType: 'EventType', + level: 'Level', + name: 'Name', + nameDesc: 'NameDesc', + nameDesc_en: 'NameDesc.En', + product: 'Product', + status: 'Status', + statusDesc: 'StatusDesc', + }; + } + + static types(): { [key: string]: any } { + return { + eventType: 'string', + level: 'string', + name: 'string', + nameDesc: 'string', + nameDesc_en: 'string', + product: 'string', + status: 'string', + statusDesc: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSystemEventMetaListResponseBodyData extends $dara.Model { + resource?: DescribeSystemEventMetaListResponseBodyDataResource[]; + static names(): { [key: string]: string } { + return { + resource: 'Resource', + }; + } + + static types(): { [key: string]: any } { + return { + resource: { 'type': 'array', 'itemType': DescribeSystemEventMetaListResponseBodyDataResource }, + }; + } + + validate() { + if(Array.isArray(this.resource)) { + $dara.Model.validateArray(this.resource); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeSystemEventMetaListResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The queried meta information. + */ + data?: DescribeSystemEventMetaListResponseBodyData; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * A6582C8B-E67C-4A19-BC15-EAEFEBDC7995 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + data: 'Data', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'number', + data: DescribeSystemEventMetaListResponseBodyData, + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + if(this.data && typeof (this.data as any).validate === 'function') { + (this.data as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeTagKeyListRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeTagKeyListRequest.ts new file mode 100644 index 0000000..6fd2a83 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeTagKeyListRequest.ts @@ -0,0 +1,51 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeTagKeyListRequest extends $dara.Model { + /** + * @remarks + * The page number. + * + * Pages start from page 1. Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * Maximum value: 100. Default value: 10. + * + * @example + * 10 + */ + pageSize?: number; + regionId?: string; + static names(): { [key: string]: string } { + return { + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + pageNumber: 'number', + pageSize: 'number', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeTagKeyListResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeTagKeyListResponse.ts new file mode 100644 index 0000000..8579413 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeTagKeyListResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeTagKeyListResponseBody } from "./DescribeTagKeyListResponseBody"; + + +export class DescribeTagKeyListResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeTagKeyListResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeTagKeyListResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeTagKeyListResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeTagKeyListResponseBody.ts new file mode 100644 index 0000000..8280710 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeTagKeyListResponseBody.ts @@ -0,0 +1,101 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeTagKeyListResponseBodyTagKeys extends $dara.Model { + tagKey?: string[]; + static names(): { [key: string]: string } { + return { + tagKey: 'TagKey', + }; + } + + static types(): { [key: string]: any } { + return { + tagKey: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.tagKey)) { + $dara.Model.validateArray(this.tagKey); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeTagKeyListResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * Specified parameter PageSize is not valid. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * B04B8CF3-4489-432D-83BA-6F128E5F2293 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + tagKeys?: DescribeTagKeyListResponseBodyTagKeys; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + tagKeys: 'TagKeys', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + tagKeys: DescribeTagKeyListResponseBodyTagKeys, + }; + } + + validate() { + if(this.tagKeys && typeof (this.tagKeys as any).validate === 'function') { + (this.tagKeys as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeTagValueListRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeTagValueListRequest.ts new file mode 100644 index 0000000..2617eea --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeTagValueListRequest.ts @@ -0,0 +1,65 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeTagValueListRequest extends $dara.Model { + /** + * @remarks + * The page number. + * + * Pages start from page 1. Default value: 1. + * + * @example + * 1 + */ + pageNumber?: number; + /** + * @remarks + * The number of entries per page. + * + * Valid values: 1 to 100. Default value: 50. + * + * @example + * 10 + */ + pageSize?: number; + regionId?: string; + /** + * @remarks + * The tag key. + * + * For more information about how to obtain a tag key, see [DescribeTagKeyList](https://help.aliyun.com/document_detail/145558.html). + * + * This parameter is required. + * + * @example + * tagKey1 + */ + tagKey?: string; + static names(): { [key: string]: string } { + return { + pageNumber: 'PageNumber', + pageSize: 'PageSize', + regionId: 'RegionId', + tagKey: 'TagKey', + }; + } + + static types(): { [key: string]: any } { + return { + pageNumber: 'number', + pageSize: 'number', + regionId: 'string', + tagKey: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeTagValueListResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeTagValueListResponse.ts new file mode 100644 index 0000000..71672d9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeTagValueListResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeTagValueListResponseBody } from "./DescribeTagValueListResponseBody"; + + +export class DescribeTagValueListResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeTagValueListResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeTagValueListResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeTagValueListResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeTagValueListResponseBody.ts new file mode 100644 index 0000000..e05af18 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeTagValueListResponseBody.ts @@ -0,0 +1,101 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeTagValueListResponseBodyTagValues extends $dara.Model { + tagValue?: string[]; + static names(): { [key: string]: string } { + return { + tagValue: 'TagValue', + }; + } + + static types(): { [key: string]: any } { + return { + tagValue: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.tagValue)) { + $dara.Model.validateArray(this.tagValue); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeTagValueListResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * B04B8CF3-4489-432D-83BA-6F128E4F2295 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + tagValues?: DescribeTagValueListResponseBodyTagValues; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + tagValues: 'TagValues', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + tagValues: DescribeTagValueListResponseBodyTagValues, + }; + } + + validate() { + if(this.tagValues && typeof (this.tagValues as any).validate === 'function') { + (this.tagValues as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeUnhealthyHostAvailabilityRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeUnhealthyHostAvailabilityRequest.ts new file mode 100644 index 0000000..a95a650 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeUnhealthyHostAvailabilityRequest.ts @@ -0,0 +1,42 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeUnhealthyHostAvailabilityRequest extends $dara.Model { + /** + * @remarks + * The ID of the availability monitoring task. Valid values of N: 1 to 20. + * + * This parameter is required. + * + * @example + * 123456 + */ + id?: number[]; + regionId?: string; + static names(): { [key: string]: string } { + return { + id: 'Id', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + id: { 'type': 'array', 'itemType': 'number' }, + regionId: 'string', + }; + } + + validate() { + if(Array.isArray(this.id)) { + $dara.Model.validateArray(this.id); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeUnhealthyHostAvailabilityResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeUnhealthyHostAvailabilityResponse.ts new file mode 100644 index 0000000..13f7a26 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeUnhealthyHostAvailabilityResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DescribeUnhealthyHostAvailabilityResponseBody } from "./DescribeUnhealthyHostAvailabilityResponseBody"; + + +export class DescribeUnhealthyHostAvailabilityResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DescribeUnhealthyHostAvailabilityResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DescribeUnhealthyHostAvailabilityResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DescribeUnhealthyHostAvailabilityResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeUnhealthyHostAvailabilityResponseBody.ts new file mode 100644 index 0000000..cc1121e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DescribeUnhealthyHostAvailabilityResponseBody.ts @@ -0,0 +1,167 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyListNodeTaskInstanceInstanceList extends $dara.Model { + string?: string[]; + static names(): { [key: string]: string } { + return { + string: 'String', + }; + } + + static types(): { [key: string]: any } { + return { + string: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.string)) { + $dara.Model.validateArray(this.string); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyListNodeTaskInstance extends $dara.Model { + /** + * @remarks + * The ID of the availability monitoring task. + * + * @example + * 123456 + */ + id?: number; + instanceList?: DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyListNodeTaskInstanceInstanceList; + static names(): { [key: string]: string } { + return { + id: 'Id', + instanceList: 'InstanceList', + }; + } + + static types(): { [key: string]: any } { + return { + id: 'number', + instanceList: DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyListNodeTaskInstanceInstanceList, + }; + } + + validate() { + if(this.instanceList && typeof (this.instanceList as any).validate === 'function') { + (this.instanceList as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyList extends $dara.Model { + nodeTaskInstance?: DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyListNodeTaskInstance[]; + static names(): { [key: string]: string } { + return { + nodeTaskInstance: 'NodeTaskInstance', + }; + } + + static types(): { [key: string]: any } { + return { + nodeTaskInstance: { 'type': 'array', 'itemType': DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyListNodeTaskInstance }, + }; + } + + validate() { + if(Array.isArray(this.nodeTaskInstance)) { + $dara.Model.validateArray(this.nodeTaskInstance); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DescribeUnhealthyHostAvailabilityResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * User not authorized to operate on the specified resource. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * ACBDBB40-DFB6-4F4C-8957-51FFB233969C + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The unhealthy instances that are detected by the specified availability monitoring tasks. + */ + unhealthyList?: DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyList; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + unhealthyList: 'UnhealthyList', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + unhealthyList: DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyList, + }; + } + + validate() { + if(this.unhealthyList && typeof (this.unhealthyList as any).validate === 'function') { + (this.unhealthyList as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/Dimension.ts b/backend/node_modules/@alicloud/cms20190101/src/models/Dimension.ts new file mode 100644 index 0000000..b2781af --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/Dimension.ts @@ -0,0 +1,30 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class Dimension extends $dara.Model { + label?: string; + value?: string; + static names(): { [key: string]: string } { + return { + label: 'Label', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + label: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DisableActiveMetricRuleRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DisableActiveMetricRuleRequest.ts new file mode 100644 index 0000000..dbf3109 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DisableActiveMetricRuleRequest.ts @@ -0,0 +1,51 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DisableActiveMetricRuleRequest extends $dara.Model { + /** + * @remarks + * The cloud service for which you want to disable proactive alerting. Valid values: + * + * * ECS: Elastic Compute Service (ECS) + * * rds: ApsaraDB RDS + * * slb: Server Load Balancer (SLB) + * * redis_standard: Redis Open-Source Edition (standard architecture) + * * redis_sharding: Redis Open-Source Edition (cluster architecture) + * * redis_splitrw: Redis Open-Source Edition (read/write splitting architecture) + * * mongodb: ApsaraDB for MongoDB of the replica set architecture + * * mongodb_sharding: ApsaraDB for MongoDB of the sharded cluster architecture + * * hbase: ApsaraDB for HBase + * * elasticsearch: Elasticsearch + * * opensearch: OpenSearch + * + * This parameter is required. + * + * @example + * ecs + */ + product?: string; + regionId?: string; + static names(): { [key: string]: string } { + return { + product: 'Product', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + product: 'string', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DisableActiveMetricRuleResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DisableActiveMetricRuleResponse.ts new file mode 100644 index 0000000..2a48249 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DisableActiveMetricRuleResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DisableActiveMetricRuleResponseBody } from "./DisableActiveMetricRuleResponseBody"; + + +export class DisableActiveMetricRuleResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DisableActiveMetricRuleResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DisableActiveMetricRuleResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DisableActiveMetricRuleResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DisableActiveMetricRuleResponseBody.ts new file mode 100644 index 0000000..c0db1ef --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DisableActiveMetricRuleResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DisableActiveMetricRuleResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * F82E6667-7811-4BA0-842F-5B2DC42BBAAD + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DisableEventRulesRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DisableEventRulesRequest.ts new file mode 100644 index 0000000..3414a36 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DisableEventRulesRequest.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DisableEventRulesRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * This parameter is required. + * + * @example + * ruleName1 + */ + ruleNames?: string[]; + static names(): { [key: string]: string } { + return { + regionId: 'RegionId', + ruleNames: 'RuleNames', + }; + } + + static types(): { [key: string]: any } { + return { + regionId: 'string', + ruleNames: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.ruleNames)) { + $dara.Model.validateArray(this.ruleNames); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DisableEventRulesResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DisableEventRulesResponse.ts new file mode 100644 index 0000000..62e21a5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DisableEventRulesResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DisableEventRulesResponseBody } from "./DisableEventRulesResponseBody"; + + +export class DisableEventRulesResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DisableEventRulesResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DisableEventRulesResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DisableEventRulesResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DisableEventRulesResponseBody.ts new file mode 100644 index 0000000..83d3c62 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DisableEventRulesResponseBody.ts @@ -0,0 +1,66 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DisableEventRulesResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * 3FD0E8B5-F132-4F4E-A081-2878AF378B12 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call was successful. The value true indicates a success. The value false indicates a failure. + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DisableHostAvailabilityRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DisableHostAvailabilityRequest.ts new file mode 100644 index 0000000..3668e03 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DisableHostAvailabilityRequest.ts @@ -0,0 +1,42 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DisableHostAvailabilityRequest extends $dara.Model { + /** + * @remarks + * The ID of the availability monitoring task. Valid values of N: 1 to 20. + * + * This parameter is required. + * + * @example + * 12345 + */ + id?: number[]; + regionId?: string; + static names(): { [key: string]: string } { + return { + id: 'Id', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + id: { 'type': 'array', 'itemType': 'number' }, + regionId: 'string', + }; + } + + validate() { + if(Array.isArray(this.id)) { + $dara.Model.validateArray(this.id); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DisableHostAvailabilityResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DisableHostAvailabilityResponse.ts new file mode 100644 index 0000000..baa8d8f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DisableHostAvailabilityResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DisableHostAvailabilityResponseBody } from "./DisableHostAvailabilityResponseBody"; + + +export class DisableHostAvailabilityResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DisableHostAvailabilityResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DisableHostAvailabilityResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DisableHostAvailabilityResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DisableHostAvailabilityResponseBody.ts new file mode 100644 index 0000000..97a1c07 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DisableHostAvailabilityResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DisableHostAvailabilityResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * User not authorized to operate on the specified resource. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * ACBDBB40-DFB6-4F4C-8957-51FFB233969C + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DisableMetricRulesRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DisableMetricRulesRequest.ts new file mode 100644 index 0000000..a3b1959 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DisableMetricRulesRequest.ts @@ -0,0 +1,42 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DisableMetricRulesRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * The ID of the alert rule. Valid values of N: 1 to 20. + * + * This parameter is required. + * + * @example + * detect_87****_HTTP_HttpLatency + */ + ruleId?: string[]; + static names(): { [key: string]: string } { + return { + regionId: 'RegionId', + ruleId: 'RuleId', + }; + } + + static types(): { [key: string]: any } { + return { + regionId: 'string', + ruleId: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.ruleId)) { + $dara.Model.validateArray(this.ruleId); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DisableMetricRulesResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DisableMetricRulesResponse.ts new file mode 100644 index 0000000..1f79918 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DisableMetricRulesResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DisableMetricRulesResponseBody } from "./DisableMetricRulesResponseBody"; + + +export class DisableMetricRulesResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DisableMetricRulesResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DisableMetricRulesResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DisableMetricRulesResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DisableMetricRulesResponseBody.ts new file mode 100644 index 0000000..19fc2d2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DisableMetricRulesResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DisableMetricRulesResponseBody extends $dara.Model { + /** + * @remarks + * The responses code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * RuleId is mandatory for this action. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * FF38D33A-67C1-40EB-AB65-FAEE51EDB644 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DisableSiteMonitorsRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DisableSiteMonitorsRequest.ts new file mode 100644 index 0000000..6ba819e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DisableSiteMonitorsRequest.ts @@ -0,0 +1,39 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DisableSiteMonitorsRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * The ID of the site monitoring task. Separate multiple IDs with commas (,). + * + * This parameter is required. + * + * @example + * 49f7b317-7645-4cc9-94fd-ea42e522****,49f7b317-7645-4cc9-94fd-ea42e522**** + */ + taskIds?: string; + static names(): { [key: string]: string } { + return { + regionId: 'RegionId', + taskIds: 'TaskIds', + }; + } + + static types(): { [key: string]: any } { + return { + regionId: 'string', + taskIds: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DisableSiteMonitorsResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DisableSiteMonitorsResponse.ts new file mode 100644 index 0000000..4b15ea5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DisableSiteMonitorsResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { DisableSiteMonitorsResponseBody } from "./DisableSiteMonitorsResponseBody"; + + +export class DisableSiteMonitorsResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: DisableSiteMonitorsResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: DisableSiteMonitorsResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/DisableSiteMonitorsResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/DisableSiteMonitorsResponseBody.ts new file mode 100644 index 0000000..37dc2d6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/DisableSiteMonitorsResponseBody.ts @@ -0,0 +1,109 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class DisableSiteMonitorsResponseBodyData extends $dara.Model { + /** + * @remarks + * The number of detection points. + * + * @example + * 0 + */ + count?: number; + static names(): { [key: string]: string } { + return { + count: 'count', + }; + } + + static types(): { [key: string]: any } { + return { + count: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class DisableSiteMonitorsResponseBody extends $dara.Model { + /** + * @remarks + * The responses code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The number of detection points that are affected by the site monitoring tasks. + */ + data?: DisableSiteMonitorsResponseBodyData; + /** + * @remarks + * The returned message. + * + * @example + * successful + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 3fcd12e7-d387-42ee-b77e-661c775bb17f + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + data: 'Data', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + data: DisableSiteMonitorsResponseBodyData, + message: 'string', + requestId: 'string', + success: 'string', + }; + } + + validate() { + if(this.data && typeof (this.data as any).validate === 'function') { + (this.data as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/EnableActiveMetricRuleRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/EnableActiveMetricRuleRequest.ts new file mode 100644 index 0000000..9900b90 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/EnableActiveMetricRuleRequest.ts @@ -0,0 +1,51 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class EnableActiveMetricRuleRequest extends $dara.Model { + /** + * @remarks + * The cloud service for which you want to enable initiative alert. Valid values: + * + * * ECS: Elastic Compute Service (ECS) + * * rds: ApsaraDB RDS + * * slb: Server Load Balancer (SLB) + * * redis_standard: Redis Open-Source Edition (standard architecture) + * * redis_sharding: Redis Open-Source Edition (cluster architecture) + * * redis_splitrw: Redis Open-Source Edition (read/write splitting architecture) + * * mongodb: ApsaraDB for MongoDB of the replica set architecture + * * mongodb_sharding: ApsaraDB for MongoDB of the sharded cluster architecture + * * hbase: ApsaraDB for HBase + * * elasticsearch: Elasticsearch + * * opensearch: OpenSearch + * + * This parameter is required. + * + * @example + * ecs + */ + product?: string; + regionId?: string; + static names(): { [key: string]: string } { + return { + product: 'Product', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + product: 'string', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/EnableActiveMetricRuleResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/EnableActiveMetricRuleResponse.ts new file mode 100644 index 0000000..53bf56c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/EnableActiveMetricRuleResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { EnableActiveMetricRuleResponseBody } from "./EnableActiveMetricRuleResponseBody"; + + +export class EnableActiveMetricRuleResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: EnableActiveMetricRuleResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: EnableActiveMetricRuleResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/EnableActiveMetricRuleResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/EnableActiveMetricRuleResponseBody.ts new file mode 100644 index 0000000..b3295be --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/EnableActiveMetricRuleResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class EnableActiveMetricRuleResponseBody extends $dara.Model { + /** + * @remarks + * The responses code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * F82E6667-7811-4BA0-842F-5B2DC42BBAAD + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/EnableEventRulesRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/EnableEventRulesRequest.ts new file mode 100644 index 0000000..792ecc0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/EnableEventRulesRequest.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class EnableEventRulesRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * This parameter is required. + * + * @example + * ruleName1 + */ + ruleNames?: string[]; + static names(): { [key: string]: string } { + return { + regionId: 'RegionId', + ruleNames: 'RuleNames', + }; + } + + static types(): { [key: string]: any } { + return { + regionId: 'string', + ruleNames: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.ruleNames)) { + $dara.Model.validateArray(this.ruleNames); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/EnableEventRulesResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/EnableEventRulesResponse.ts new file mode 100644 index 0000000..bd31cb4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/EnableEventRulesResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { EnableEventRulesResponseBody } from "./EnableEventRulesResponseBody"; + + +export class EnableEventRulesResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: EnableEventRulesResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: EnableEventRulesResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/EnableEventRulesResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/EnableEventRulesResponseBody.ts new file mode 100644 index 0000000..3746722 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/EnableEventRulesResponseBody.ts @@ -0,0 +1,66 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class EnableEventRulesResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * 20F2896A-6684-4A04-8255-4155B1593C70 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call was successful. The value true indicates a success. The value false indicates a failure. + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/EnableHostAvailabilityRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/EnableHostAvailabilityRequest.ts new file mode 100644 index 0000000..aba8119 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/EnableHostAvailabilityRequest.ts @@ -0,0 +1,42 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class EnableHostAvailabilityRequest extends $dara.Model { + /** + * @remarks + * The ID of the availability monitoring task. Valid values of N: 1 to 20. + * + * This parameter is required. + * + * @example + * 123456 + */ + id?: number[]; + regionId?: string; + static names(): { [key: string]: string } { + return { + id: 'Id', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + id: { 'type': 'array', 'itemType': 'number' }, + regionId: 'string', + }; + } + + validate() { + if(Array.isArray(this.id)) { + $dara.Model.validateArray(this.id); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/EnableHostAvailabilityResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/EnableHostAvailabilityResponse.ts new file mode 100644 index 0000000..e75f8cc --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/EnableHostAvailabilityResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { EnableHostAvailabilityResponseBody } from "./EnableHostAvailabilityResponseBody"; + + +export class EnableHostAvailabilityResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: EnableHostAvailabilityResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: EnableHostAvailabilityResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/EnableHostAvailabilityResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/EnableHostAvailabilityResponseBody.ts new file mode 100644 index 0000000..b9eb99d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/EnableHostAvailabilityResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class EnableHostAvailabilityResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * User not authorized to operate on the specified resource. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * ACBDBB40-DFB6-4F4C-8957-51FFB233969C + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/EnableMetricRuleBlackListRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/EnableMetricRuleBlackListRequest.ts new file mode 100644 index 0000000..66b67eb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/EnableMetricRuleBlackListRequest.ts @@ -0,0 +1,58 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class EnableMetricRuleBlackListRequest extends $dara.Model { + /** + * @remarks + * The IDs of the blacklist policies. Separate multiple IDs with commas (,). You can specify up to 50 IDs. + * + * For information about how to obtain the ID of a blacklist policy, see [DescribeMetricRuleBlackList](https://help.aliyun.com/document_detail/457257.html). + * + * > You can also set this parameter to a JSON array. Example: `["a9ad2ac2-3ed9-11ed-b878-0242ac12****","5cb8a9a4-198f-4651-a353-f8b28788****"]`. + * + * This parameter is required. + * + * @example + * a9ad2ac2-3ed9-11ed-b878-0242ac12**** + */ + id?: string; + /** + * @remarks + * Specifies whether to enable the blacklist policy. Valid values: + * + * * true: The blacklist policy is enabled. + * * false (default): The blacklist policy is disabled. + * + * This parameter is required. + * + * @example + * true + */ + isEnable?: boolean; + regionId?: string; + static names(): { [key: string]: string } { + return { + id: 'Id', + isEnable: 'IsEnable', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + id: 'string', + isEnable: 'boolean', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/EnableMetricRuleBlackListResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/EnableMetricRuleBlackListResponse.ts new file mode 100644 index 0000000..0c986bb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/EnableMetricRuleBlackListResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { EnableMetricRuleBlackListResponseBody } from "./EnableMetricRuleBlackListResponseBody"; + + +export class EnableMetricRuleBlackListResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: EnableMetricRuleBlackListResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: EnableMetricRuleBlackListResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/EnableMetricRuleBlackListResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/EnableMetricRuleBlackListResponseBody.ts new file mode 100644 index 0000000..916298d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/EnableMetricRuleBlackListResponseBody.ts @@ -0,0 +1,79 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class EnableMetricRuleBlackListResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The number of blacklist policies that are enabled or disabled. + * + * @example + * 1 + */ + count?: number; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 94869866-1621-3652-BBC9-72A47B2AC2F5 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + count: 'Count', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + count: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/EnableMetricRulesRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/EnableMetricRulesRequest.ts new file mode 100644 index 0000000..91cd160 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/EnableMetricRulesRequest.ts @@ -0,0 +1,46 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class EnableMetricRulesRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * The IDs of the alert rules. + * + * Valid values of N: 1 to 100. + * + * For information about how to obtain the ID of an alert rule, see [DescribeMetricRuleList](https://help.aliyun.com/document_detail/114941.html). + * + * This parameter is required. + * + * @example + * ab05733c97b7ce239fb1b53393dc1697c123**** + */ + ruleId?: string[]; + static names(): { [key: string]: string } { + return { + regionId: 'RegionId', + ruleId: 'RuleId', + }; + } + + static types(): { [key: string]: any } { + return { + regionId: 'string', + ruleId: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.ruleId)) { + $dara.Model.validateArray(this.ruleId); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/EnableMetricRulesResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/EnableMetricRulesResponse.ts new file mode 100644 index 0000000..abca52a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/EnableMetricRulesResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { EnableMetricRulesResponseBody } from "./EnableMetricRulesResponseBody"; + + +export class EnableMetricRulesResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: EnableMetricRulesResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: EnableMetricRulesResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/EnableMetricRulesResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/EnableMetricRulesResponseBody.ts new file mode 100644 index 0000000..5f0ec02 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/EnableMetricRulesResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class EnableMetricRulesResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * FF38D33A-67C1-40EB-AB65-FAEE51EDB644 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/EnableSiteMonitorsRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/EnableSiteMonitorsRequest.ts new file mode 100644 index 0000000..c99599b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/EnableSiteMonitorsRequest.ts @@ -0,0 +1,39 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class EnableSiteMonitorsRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * The ID of the site monitoring task. Separate multiple IDs with commas (,). + * + * This parameter is required. + * + * @example + * 49f7b317-7645-4cc9-94fd-ea42e522****,49f7b317-7645-4cc9-94fd-ea42e522**** + */ + taskIds?: string; + static names(): { [key: string]: string } { + return { + regionId: 'RegionId', + taskIds: 'TaskIds', + }; + } + + static types(): { [key: string]: any } { + return { + regionId: 'string', + taskIds: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/EnableSiteMonitorsResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/EnableSiteMonitorsResponse.ts new file mode 100644 index 0000000..ef7bd4f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/EnableSiteMonitorsResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { EnableSiteMonitorsResponseBody } from "./EnableSiteMonitorsResponseBody"; + + +export class EnableSiteMonitorsResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: EnableSiteMonitorsResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: EnableSiteMonitorsResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/EnableSiteMonitorsResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/EnableSiteMonitorsResponseBody.ts new file mode 100644 index 0000000..68006f9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/EnableSiteMonitorsResponseBody.ts @@ -0,0 +1,109 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class EnableSiteMonitorsResponseBodyData extends $dara.Model { + /** + * @remarks + * The number of detection points. + * + * @example + * 0 + */ + count?: number; + static names(): { [key: string]: string } { + return { + count: 'count', + }; + } + + static types(): { [key: string]: any } { + return { + count: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class EnableSiteMonitorsResponseBody extends $dara.Model { + /** + * @remarks + * The responses code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The number of detection points that are affected by the site monitoring tasks. + */ + data?: EnableSiteMonitorsResponseBodyData; + /** + * @remarks + * The returned message. + * + * @example + * successful + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 3fcd12e7-d387-42ee-b77e-661c775bb17f + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + data: 'Data', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + data: EnableSiteMonitorsResponseBodyData, + message: 'string', + requestId: 'string', + success: 'string', + }; + } + + validate() { + if(this.data && typeof (this.data as any).validate === 'function') { + (this.data as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/EscalationRule.ts b/backend/node_modules/@alicloud/cms20190101/src/models/EscalationRule.ts new file mode 100644 index 0000000..031a3ab --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/EscalationRule.ts @@ -0,0 +1,147 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class EscalationRuleEscalationsContactGroupsByLevel extends $dara.Model { + critical?: string[]; + error?: string[]; + info?: string[]; + resolve?: string[]; + warning?: string[]; + static names(): { [key: string]: string } { + return { + critical: 'Critical', + error: 'Error', + info: 'Info', + resolve: 'Resolve', + warning: 'Warning', + }; + } + + static types(): { [key: string]: any } { + return { + critical: { 'type': 'array', 'itemType': 'string' }, + error: { 'type': 'array', 'itemType': 'string' }, + info: { 'type': 'array', 'itemType': 'string' }, + resolve: { 'type': 'array', 'itemType': 'string' }, + warning: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.critical)) { + $dara.Model.validateArray(this.critical); + } + if(Array.isArray(this.error)) { + $dara.Model.validateArray(this.error); + } + if(Array.isArray(this.info)) { + $dara.Model.validateArray(this.info); + } + if(Array.isArray(this.resolve)) { + $dara.Model.validateArray(this.resolve); + } + if(Array.isArray(this.warning)) { + $dara.Model.validateArray(this.warning); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class EscalationRuleEscalations extends $dara.Model { + backupContactGroups?: string[]; + contactGroups?: string[]; + contactGroupsByLevel?: EscalationRuleEscalationsContactGroupsByLevel; + escalateMin?: number; + static names(): { [key: string]: string } { + return { + backupContactGroups: 'BackupContactGroups', + contactGroups: 'ContactGroups', + contactGroupsByLevel: 'ContactGroupsByLevel', + escalateMin: 'EscalateMin', + }; + } + + static types(): { [key: string]: any } { + return { + backupContactGroups: { 'type': 'array', 'itemType': 'string' }, + contactGroups: { 'type': 'array', 'itemType': 'string' }, + contactGroupsByLevel: EscalationRuleEscalationsContactGroupsByLevel, + escalateMin: 'number', + }; + } + + validate() { + if(Array.isArray(this.backupContactGroups)) { + $dara.Model.validateArray(this.backupContactGroups); + } + if(Array.isArray(this.contactGroups)) { + $dara.Model.validateArray(this.contactGroups); + } + if(this.contactGroupsByLevel && typeof (this.contactGroupsByLevel as any).validate === 'function') { + (this.contactGroupsByLevel as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class EscalationRule extends $dara.Model { + createTime?: string; + description?: string; + /** + * @remarks + * This parameter is required. + */ + escalations?: EscalationRuleEscalations[]; + /** + * @remarks + * This parameter is required. + */ + name?: string; + updateTime?: string; + userId?: string; + uuid?: string; + static names(): { [key: string]: string } { + return { + createTime: 'CreateTime', + description: 'Description', + escalations: 'Escalations', + name: 'Name', + updateTime: 'UpdateTime', + userId: 'UserId', + uuid: 'Uuid', + }; + } + + static types(): { [key: string]: any } { + return { + createTime: 'string', + description: 'string', + escalations: { 'type': 'array', 'itemType': EscalationRuleEscalations }, + name: 'string', + updateTime: 'string', + userId: 'string', + uuid: 'string', + }; + } + + validate() { + if(Array.isArray(this.escalations)) { + $dara.Model.validateArray(this.escalations); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/Incident.ts b/backend/node_modules/@alicloud/cms20190101/src/models/Incident.ts new file mode 100644 index 0000000..ea71fc9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/Incident.ts @@ -0,0 +1,63 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class Incident extends $dara.Model { + actionTime?: number; + alertCount?: number; + endTime?: number; + groupingData?: { [key: string]: any }; + groupingId?: string; + groupingKey?: string; + incidentId?: string; + incidentStatus?: string; + severity?: string; + startTime?: number; + strategyUuid?: string; + userId?: string; + static names(): { [key: string]: string } { + return { + actionTime: 'ActionTime', + alertCount: 'AlertCount', + endTime: 'EndTime', + groupingData: 'GroupingData', + groupingId: 'GroupingId', + groupingKey: 'GroupingKey', + incidentId: 'IncidentId', + incidentStatus: 'IncidentStatus', + severity: 'Severity', + startTime: 'StartTime', + strategyUuid: 'StrategyUuid', + userId: 'UserId', + }; + } + + static types(): { [key: string]: any } { + return { + actionTime: 'number', + alertCount: 'number', + endTime: 'number', + groupingData: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' }, + groupingId: 'string', + groupingKey: 'string', + incidentId: 'string', + incidentStatus: 'string', + severity: 'string', + startTime: 'number', + strategyUuid: 'string', + userId: 'string', + }; + } + + validate() { + if(this.groupingData) { + $dara.Model.validateMap(this.groupingData); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/InstallMonitoringAgentRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/InstallMonitoringAgentRequest.ts new file mode 100644 index 0000000..a183f21 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/InstallMonitoringAgentRequest.ts @@ -0,0 +1,66 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class InstallMonitoringAgentRequest extends $dara.Model { + /** + * @remarks + * Specifies whether to install the CloudMonitor agent. Valid values: + * + * * true (default value): yes + * * false: no + * + * @example + * true + */ + force?: boolean; + /** + * @remarks + * Specifies whether to install the CloudMonitor agent on all ECS instances that belong to the current Alibaba Cloud account. Valid values: + * + * * `onlyInstallNotHasAgent`: installs the latest version of the CloudMonitor agent only on ECS instances on which the agent is not installed. + * * `onlyUpgradeAgent`: upgrades the CloudMonitor agent to the latest version only for ECS instances on which an earlier version of the agent is installed. + * * `installAndUpgrade`: installs the latest version of the CloudMonitor agent on ECS instances on which the agent is not installed, and upgrades the CloudMonitor agent to the latest version for ECS instances on which an earlier version of the agent is installed. + * + * > If you set the InstallCommand parameter, the `InstanceIds` parameter does not take effect. + * + * @example + * onlyInstallNotHasAgent + */ + installCommand?: string; + /** + * @example + * i-m5e0k0bexac8tykr**** + */ + instanceIds?: string[]; + regionId?: string; + static names(): { [key: string]: string } { + return { + force: 'Force', + installCommand: 'InstallCommand', + instanceIds: 'InstanceIds', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + force: 'boolean', + installCommand: 'string', + instanceIds: { 'type': 'array', 'itemType': 'string' }, + regionId: 'string', + }; + } + + validate() { + if(Array.isArray(this.instanceIds)) { + $dara.Model.validateArray(this.instanceIds); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/InstallMonitoringAgentResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/InstallMonitoringAgentResponse.ts new file mode 100644 index 0000000..0752d89 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/InstallMonitoringAgentResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { InstallMonitoringAgentResponseBody } from "./InstallMonitoringAgentResponseBody"; + + +export class InstallMonitoringAgentResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: InstallMonitoringAgentResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: InstallMonitoringAgentResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/InstallMonitoringAgentResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/InstallMonitoringAgentResponseBody.ts new file mode 100644 index 0000000..eff2e4b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/InstallMonitoringAgentResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class InstallMonitoringAgentResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * 0BDAF8A8-04DC-5F0C-90E4-724D42C41945 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call was successful. Valid values: + * + * * true: The call was successful. + * * false: The call failed. + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/Matcher.ts b/backend/node_modules/@alicloud/cms20190101/src/models/Matcher.ts new file mode 100644 index 0000000..bc6d595 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/Matcher.ts @@ -0,0 +1,33 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class Matcher extends $dara.Model { + label?: string; + operator?: string; + value?: string; + static names(): { [key: string]: string } { + return { + label: 'Label', + operator: 'Operator', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + label: 'string', + operator: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/MetricStat.ts b/backend/node_modules/@alicloud/cms20190101/src/models/MetricStat.ts new file mode 100644 index 0000000..310e3e2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/MetricStat.ts @@ -0,0 +1,58 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { Dimension } from "./Dimension"; + + +export class MetricStat extends $dara.Model { + associated?: { [key: string]: string }; + dimensions?: Dimension[]; + logTime?: number; + measurements?: { [key: string]: any }; + metric?: string; + namespace?: string; + period?: number; + timestamp?: number; + static names(): { [key: string]: string } { + return { + associated: 'Associated', + dimensions: 'Dimensions', + logTime: 'LogTime', + measurements: 'Measurements', + metric: 'Metric', + namespace: 'Namespace', + period: 'Period', + timestamp: 'Timestamp', + }; + } + + static types(): { [key: string]: any } { + return { + associated: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + dimensions: { 'type': 'array', 'itemType': Dimension }, + logTime: 'number', + measurements: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' }, + metric: 'string', + namespace: 'string', + period: 'number', + timestamp: 'number', + }; + } + + validate() { + if(this.associated) { + $dara.Model.validateMap(this.associated); + } + if(Array.isArray(this.dimensions)) { + $dara.Model.validateArray(this.dimensions); + } + if(this.measurements) { + $dara.Model.validateMap(this.measurements); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/MigrationJob.ts b/backend/node_modules/@alicloud/cms20190101/src/models/MigrationJob.ts new file mode 100644 index 0000000..6f338e5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/MigrationJob.ts @@ -0,0 +1,718 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class MigrationJobPlanContactsChannels extends $dara.Model { + level?: number; + type?: string; + value?: string; + static names(): { [key: string]: string } { + return { + level: 'Level', + type: 'Type', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + level: 'number', + type: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class MigrationJobPlanContacts extends $dara.Model { + channels?: MigrationJobPlanContactsChannels[]; + name?: string; + static names(): { [key: string]: string } { + return { + channels: 'Channels', + name: 'Name', + }; + } + + static types(): { [key: string]: any } { + return { + channels: { 'type': 'array', 'itemType': MigrationJobPlanContactsChannels }, + name: 'string', + }; + } + + validate() { + if(Array.isArray(this.channels)) { + $dara.Model.validateArray(this.channels); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class MigrationJobPlanEscalationsEscalationsLevelGroups extends $dara.Model { + critical?: string[]; + info?: string[]; + resolved?: string[]; + warning?: string[]; + static names(): { [key: string]: string } { + return { + critical: 'Critical', + info: 'Info', + resolved: 'Resolved', + warning: 'Warning', + }; + } + + static types(): { [key: string]: any } { + return { + critical: { 'type': 'array', 'itemType': 'string' }, + info: { 'type': 'array', 'itemType': 'string' }, + resolved: { 'type': 'array', 'itemType': 'string' }, + warning: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.critical)) { + $dara.Model.validateArray(this.critical); + } + if(Array.isArray(this.info)) { + $dara.Model.validateArray(this.info); + } + if(Array.isArray(this.resolved)) { + $dara.Model.validateArray(this.resolved); + } + if(Array.isArray(this.warning)) { + $dara.Model.validateArray(this.warning); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class MigrationJobPlanEscalationsEscalations extends $dara.Model { + groups?: string[]; + levelGroups?: MigrationJobPlanEscalationsEscalationsLevelGroups; + static names(): { [key: string]: string } { + return { + groups: 'Groups', + levelGroups: 'LevelGroups', + }; + } + + static types(): { [key: string]: any } { + return { + groups: { 'type': 'array', 'itemType': 'string' }, + levelGroups: MigrationJobPlanEscalationsEscalationsLevelGroups, + }; + } + + validate() { + if(Array.isArray(this.groups)) { + $dara.Model.validateArray(this.groups); + } + if(this.levelGroups && typeof (this.levelGroups as any).validate === 'function') { + (this.levelGroups as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class MigrationJobPlanEscalations extends $dara.Model { + escalations?: MigrationJobPlanEscalationsEscalations[]; + name?: string; + uuid?: string; + static names(): { [key: string]: string } { + return { + escalations: 'Escalations', + name: 'Name', + uuid: 'Uuid', + }; + } + + static types(): { [key: string]: any } { + return { + escalations: { 'type': 'array', 'itemType': MigrationJobPlanEscalationsEscalations }, + name: 'string', + uuid: 'string', + }; + } + + validate() { + if(Array.isArray(this.escalations)) { + $dara.Model.validateArray(this.escalations); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class MigrationJobPlanGroups extends $dara.Model { + contacts?: string[]; + name?: string; + static names(): { [key: string]: string } { + return { + contacts: 'Contacts', + name: 'Name', + }; + } + + static types(): { [key: string]: any } { + return { + contacts: { 'type': 'array', 'itemType': 'string' }, + name: 'string', + }; + } + + validate() { + if(Array.isArray(this.contacts)) { + $dara.Model.validateArray(this.contacts); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class MigrationJobPlanStrategiesEscalationSetting extends $dara.Model { + escalationUuid?: string; + static names(): { [key: string]: string } { + return { + escalationUuid: 'escalationUuid', + }; + } + + static types(): { [key: string]: any } { + return { + escalationUuid: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class MigrationJobPlanStrategiesPushingSetting extends $dara.Model { + targetUuids?: string[]; + static names(): { [key: string]: string } { + return { + targetUuids: 'TargetUuids', + }; + } + + static types(): { [key: string]: any } { + return { + targetUuids: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.targetUuids)) { + $dara.Model.validateArray(this.targetUuids); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class MigrationJobPlanStrategies extends $dara.Model { + escalationSetting?: MigrationJobPlanStrategiesEscalationSetting; + name?: string; + pushingSetting?: MigrationJobPlanStrategiesPushingSetting; + static names(): { [key: string]: string } { + return { + escalationSetting: 'EscalationSetting', + name: 'Name', + pushingSetting: 'PushingSetting', + }; + } + + static types(): { [key: string]: any } { + return { + escalationSetting: MigrationJobPlanStrategiesEscalationSetting, + name: 'string', + pushingSetting: MigrationJobPlanStrategiesPushingSetting, + }; + } + + validate() { + if(this.escalationSetting && typeof (this.escalationSetting as any).validate === 'function') { + (this.escalationSetting as any).validate(); + } + if(this.pushingSetting && typeof (this.pushingSetting as any).validate === 'function') { + (this.pushingSetting as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class MigrationJobPlanSubscriptionsConditions extends $dara.Model { + field?: string; + op?: string; + value?: string; + static names(): { [key: string]: string } { + return { + field: 'Field', + op: 'Op', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + field: 'string', + op: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class MigrationJobPlanSubscriptions extends $dara.Model { + conditions?: MigrationJobPlanSubscriptionsConditions[]; + name?: string; + strategyUuid?: string; + static names(): { [key: string]: string } { + return { + conditions: 'Conditions', + name: 'Name', + strategyUuid: 'StrategyUuid', + }; + } + + static types(): { [key: string]: any } { + return { + conditions: { 'type': 'array', 'itemType': MigrationJobPlanSubscriptionsConditions }, + name: 'string', + strategyUuid: 'string', + }; + } + + validate() { + if(Array.isArray(this.conditions)) { + $dara.Model.validateArray(this.conditions); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class MigrationJobPlanTargetsHttpRequestTarget extends $dara.Model { + contentType?: string; + method?: string; + url?: string; + static names(): { [key: string]: string } { + return { + contentType: 'ContentType', + method: 'Method', + url: 'Url', + }; + } + + static types(): { [key: string]: any } { + return { + contentType: 'string', + method: 'string', + url: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class MigrationJobPlanTargets extends $dara.Model { + arn?: string; + httpRequestTarget?: MigrationJobPlanTargetsHttpRequestTarget; + name?: string; + type?: string; + uuid?: string; + static names(): { [key: string]: string } { + return { + arn: 'Arn', + httpRequestTarget: 'HttpRequestTarget', + name: 'Name', + type: 'Type', + uuid: 'Uuid', + }; + } + + static types(): { [key: string]: any } { + return { + arn: 'string', + httpRequestTarget: MigrationJobPlanTargetsHttpRequestTarget, + name: 'string', + type: 'string', + uuid: 'string', + }; + } + + validate() { + if(this.httpRequestTarget && typeof (this.httpRequestTarget as any).validate === 'function') { + (this.httpRequestTarget as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class MigrationJobPlan extends $dara.Model { + contacts?: MigrationJobPlanContacts[]; + escalations?: MigrationJobPlanEscalations[]; + groups?: MigrationJobPlanGroups[]; + ruleNames?: string[]; + strategies?: MigrationJobPlanStrategies[]; + subscriptions?: MigrationJobPlanSubscriptions[]; + targets?: MigrationJobPlanTargets[]; + static names(): { [key: string]: string } { + return { + contacts: 'Contacts', + escalations: 'Escalations', + groups: 'Groups', + ruleNames: 'RuleNames', + strategies: 'Strategies', + subscriptions: 'Subscriptions', + targets: 'Targets', + }; + } + + static types(): { [key: string]: any } { + return { + contacts: { 'type': 'array', 'itemType': MigrationJobPlanContacts }, + escalations: { 'type': 'array', 'itemType': MigrationJobPlanEscalations }, + groups: { 'type': 'array', 'itemType': MigrationJobPlanGroups }, + ruleNames: { 'type': 'array', 'itemType': 'string' }, + strategies: { 'type': 'array', 'itemType': MigrationJobPlanStrategies }, + subscriptions: { 'type': 'array', 'itemType': MigrationJobPlanSubscriptions }, + targets: { 'type': 'array', 'itemType': MigrationJobPlanTargets }, + }; + } + + validate() { + if(Array.isArray(this.contacts)) { + $dara.Model.validateArray(this.contacts); + } + if(Array.isArray(this.escalations)) { + $dara.Model.validateArray(this.escalations); + } + if(Array.isArray(this.groups)) { + $dara.Model.validateArray(this.groups); + } + if(Array.isArray(this.ruleNames)) { + $dara.Model.validateArray(this.ruleNames); + } + if(Array.isArray(this.strategies)) { + $dara.Model.validateArray(this.strategies); + } + if(Array.isArray(this.subscriptions)) { + $dara.Model.validateArray(this.subscriptions); + } + if(Array.isArray(this.targets)) { + $dara.Model.validateArray(this.targets); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class MigrationJobSourceRuleKeywordFilter extends $dara.Model { + keywords?: string[]; + relation?: string; + static names(): { [key: string]: string } { + return { + keywords: 'Keywords', + relation: 'Relation', + }; + } + + static types(): { [key: string]: any } { + return { + keywords: { 'type': 'array', 'itemType': 'string' }, + relation: 'string', + }; + } + + validate() { + if(Array.isArray(this.keywords)) { + $dara.Model.validateArray(this.keywords); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class MigrationJobSourceRulePrimaryFilters extends $dara.Model { + field?: string; + opType?: string; + value?: string; + static names(): { [key: string]: string } { + return { + field: 'Field', + opType: 'OpType', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + field: 'string', + opType: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class MigrationJobSourceRule extends $dara.Model { + keywordFilter?: MigrationJobSourceRuleKeywordFilter; + name?: string; + primaryFilters?: MigrationJobSourceRulePrimaryFilters[]; + static names(): { [key: string]: string } { + return { + keywordFilter: 'KeywordFilter', + name: 'Name', + primaryFilters: 'PrimaryFilters', + }; + } + + static types(): { [key: string]: any } { + return { + keywordFilter: MigrationJobSourceRuleKeywordFilter, + name: 'string', + primaryFilters: { 'type': 'array', 'itemType': MigrationJobSourceRulePrimaryFilters }, + }; + } + + validate() { + if(this.keywordFilter && typeof (this.keywordFilter as any).validate === 'function') { + (this.keywordFilter as any).validate(); + } + if(Array.isArray(this.primaryFilters)) { + $dara.Model.validateArray(this.primaryFilters); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class MigrationJobSourceTargetsContent extends $dara.Model { + group?: string; + level?: string; + method?: string; + region?: string; + resourcePath?: string; + url?: string; + static names(): { [key: string]: string } { + return { + group: 'Group', + level: 'Level', + method: 'Method', + region: 'Region', + resourcePath: 'ResourcePath', + url: 'Url', + }; + } + + static types(): { [key: string]: any } { + return { + group: 'string', + level: 'string', + method: 'string', + region: 'string', + resourcePath: 'string', + url: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class MigrationJobSourceTargets extends $dara.Model { + content?: MigrationJobSourceTargetsContent; + type?: string; + static names(): { [key: string]: string } { + return { + content: 'Content', + type: 'Type', + }; + } + + static types(): { [key: string]: any } { + return { + content: MigrationJobSourceTargetsContent, + type: 'string', + }; + } + + validate() { + if(this.content && typeof (this.content as any).validate === 'function') { + (this.content as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class MigrationJobSource extends $dara.Model { + rule?: MigrationJobSourceRule; + targets?: MigrationJobSourceTargets[]; + static names(): { [key: string]: string } { + return { + rule: 'Rule', + targets: 'Targets', + }; + } + + static types(): { [key: string]: any } { + return { + rule: MigrationJobSourceRule, + targets: { 'type': 'array', 'itemType': MigrationJobSourceTargets }, + }; + } + + validate() { + if(this.rule && typeof (this.rule as any).validate === 'function') { + (this.rule as any).validate(); + } + if(Array.isArray(this.targets)) { + $dara.Model.validateArray(this.targets); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class MigrationJob extends $dara.Model { + createTime?: string; + detail?: string; + jobStatus?: string; + plan?: MigrationJobPlan; + ruleNames?: string[]; + source?: MigrationJobSource[]; + updateTime?: string; + uuid?: string; + static names(): { [key: string]: string } { + return { + createTime: 'CreateTime', + detail: 'Detail', + jobStatus: 'JobStatus', + plan: 'Plan', + ruleNames: 'RuleNames', + source: 'Source', + updateTime: 'UpdateTime', + uuid: 'Uuid', + }; + } + + static types(): { [key: string]: any } { + return { + createTime: 'string', + detail: 'string', + jobStatus: 'string', + plan: MigrationJobPlan, + ruleNames: { 'type': 'array', 'itemType': 'string' }, + source: { 'type': 'array', 'itemType': MigrationJobSource }, + updateTime: 'string', + uuid: 'string', + }; + } + + validate() { + if(this.plan && typeof (this.plan as any).validate === 'function') { + (this.plan as any).validate(); + } + if(Array.isArray(this.ruleNames)) { + $dara.Model.validateArray(this.ruleNames); + } + if(Array.isArray(this.source)) { + $dara.Model.validateArray(this.source); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ModifyGroupMonitoringAgentProcessRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyGroupMonitoringAgentProcessRequest.ts new file mode 100644 index 0000000..1fb43d2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyGroupMonitoringAgentProcessRequest.ts @@ -0,0 +1,309 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class ModifyGroupMonitoringAgentProcessRequestAlertConfigTargetList extends $dara.Model { + /** + * @remarks + * The Alibaba Cloud Resource Name (ARN) of the resource. + * + * For information about how to obtain the ARN of a resource, see [DescribeMetricRuleTargets](https://help.aliyun.com/document_detail/121592.html). + * + * Format: `acs:{Service name abbreviation}:{regionId}:{userId}:/{Resource type}/{Resource name}/message`. Example: `acs:mns:cn-hangzhou:120886317861****:/queues/test123/message`. Fields: + * + * - {Service name abbreviation}: the abbreviation of the service name. Valid value: mns. + * - {userId}: the ID of the Alibaba Cloud account. + * - {regionId}: the region ID of the message queue or topic. + * - {Resource type}: the type of the resource for which alerts are triggered. Valid values: + * - **queues** + * - **topics** + * - {Resourcename}: the name of the resource. + * - If the resource type is set to **queues**, the resource name is the name of the message queue. + * - If the resource type is set to **topics**, the resource name is the name of the topic.` + * + * @example + * acs:mns:cn-hangzhou:120886317861****:/queues/test/message + */ + arn?: string; + /** + * @remarks + * The ID of the resource for which alerts are triggered. + * + * For information about how to obtain the ID of a resource for which alerts are triggered, see [DescribeMetricRuleTargets](https://help.aliyun.com/document_detail/121592.html). + * + * @example + * 1 + */ + id?: string; + /** + * @remarks + * The parameters of the alert callback. The parameters are in the JSON format. + * + * @example + * {"customField1":"value1","customField2":"$.name"} + */ + jsonParams?: string; + /** + * @remarks + * The level of the alert. Valid values: + * + * * INFO: information + * * WARN: warning + * * CRITICAL: critical + * + * @example + * ["INFO", "WARN", "CRITICAL"] + */ + level?: string; + static names(): { [key: string]: string } { + return { + arn: 'Arn', + id: 'Id', + jsonParams: 'JsonParams', + level: 'Level', + }; + } + + static types(): { [key: string]: any } { + return { + arn: 'string', + id: 'string', + jsonParams: 'string', + level: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class ModifyGroupMonitoringAgentProcessRequestAlertConfig extends $dara.Model { + /** + * @remarks + * The comparison operator that is used to compare the metric value with the threshold. Valid values of N: 1 to 200. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold. + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday. + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * This parameter is required. + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The time period during which the alert rule is effective. Valid values of N: 1 to 200. + * + * @example + * 00:00-22:59 + */ + effectiveInterval?: string; + /** + * @remarks + * The level of the alert. Valid values of N: 1 to 200. Valid values: + * + * * critical (default value): critical + * * warn: warning + * * info: information + * + * This parameter is required. + * + * @example + * warn + */ + escalationsLevel?: string; + /** + * @remarks + * The time period during which the alert rule is ineffective. Valid values of N: 1 to 200. + * + * @example + * 23:00-23:59 + */ + noEffectiveInterval?: string; + /** + * @remarks + * The mute period during which new alerts are not sent even if the trigger conditions are met. Valid values of N: 1 to 200. + * + * Unit: seconds. Minimum value: 3600, which is equivalent to one hour. Default value: 86400, which is equivalent to one day. + * + * > Only one alert notification is sent during a mute period even if the metric value exceeds the alert threshold during consecutive checks. + * + * @example + * 86400 + */ + silenceTime?: string; + /** + * @remarks + * The statistical aggregation method that is used to calculate the metric values. Valid values of N: 1 to 200. + * + * > Set the value to Average. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The alert trigger. + */ + targetList?: ModifyGroupMonitoringAgentProcessRequestAlertConfigTargetList[]; + /** + * @remarks + * The alert threshold. Valid values of N: 1 to 200. + * + * This parameter is required. + * + * @example + * 5 + */ + threshold?: string; + /** + * @remarks + * The number of times for which the threshold can be consecutively exceeded. Valid values of N: 1 to 200. Default value: 3. + * + * > A metric triggers an alert only after the metric value reaches the threshold consecutively for the specified times. + * + * This parameter is required. + * + * @example + * 3 + */ + times?: string; + /** + * @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 200. + * + * @example + * http://www.aliyun.com + */ + webhook?: string; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + effectiveInterval: 'EffectiveInterval', + escalationsLevel: 'EscalationsLevel', + noEffectiveInterval: 'NoEffectiveInterval', + silenceTime: 'SilenceTime', + statistics: 'Statistics', + targetList: 'TargetList', + threshold: 'Threshold', + times: 'Times', + webhook: 'Webhook', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + effectiveInterval: 'string', + escalationsLevel: 'string', + noEffectiveInterval: 'string', + silenceTime: 'string', + statistics: 'string', + targetList: { 'type': 'array', 'itemType': ModifyGroupMonitoringAgentProcessRequestAlertConfigTargetList }, + threshold: 'string', + times: 'string', + webhook: 'string', + }; + } + + validate() { + if(Array.isArray(this.targetList)) { + $dara.Model.validateArray(this.targetList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class ModifyGroupMonitoringAgentProcessRequest extends $dara.Model { + /** + * @remarks + * The alert rule configurations. + * + * This parameter is required. + */ + alertConfig?: ModifyGroupMonitoringAgentProcessRequestAlertConfig[]; + /** + * @remarks + * The ID of the application group. + * + * This parameter is required. + * + * @example + * 6780**** + */ + groupId?: string; + /** + * @remarks + * The ID of the process monitoring task. + * + * This parameter is required. + * + * @example + * 92E3065F-0980-4E31-9AA0-BA6**** + */ + id?: string; + /** + * @remarks + * The logical operator used between conditional expressions that are used to match instances. Valid values: + * + * * all + * * and + * * or + * + * @example + * and + */ + matchExpressFilterRelation?: string; + regionId?: string; + static names(): { [key: string]: string } { + return { + alertConfig: 'AlertConfig', + groupId: 'GroupId', + id: 'Id', + matchExpressFilterRelation: 'MatchExpressFilterRelation', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + alertConfig: { 'type': 'array', 'itemType': ModifyGroupMonitoringAgentProcessRequestAlertConfig }, + groupId: 'string', + id: 'string', + matchExpressFilterRelation: 'string', + regionId: 'string', + }; + } + + validate() { + if(Array.isArray(this.alertConfig)) { + $dara.Model.validateArray(this.alertConfig); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ModifyGroupMonitoringAgentProcessResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyGroupMonitoringAgentProcessResponse.ts new file mode 100644 index 0000000..8a59636 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyGroupMonitoringAgentProcessResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { ModifyGroupMonitoringAgentProcessResponseBody } from "./ModifyGroupMonitoringAgentProcessResponseBody"; + + +export class ModifyGroupMonitoringAgentProcessResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: ModifyGroupMonitoringAgentProcessResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: ModifyGroupMonitoringAgentProcessResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ModifyGroupMonitoringAgentProcessResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyGroupMonitoringAgentProcessResponseBody.ts new file mode 100644 index 0000000..9246109 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyGroupMonitoringAgentProcessResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class ModifyGroupMonitoringAgentProcessResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * 7985D471-3FA8-4EE9-8F4B-45C19DF3D36F + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call was successful. Valid values: + * + * * true: The call was successful. + * * false: The call failed. + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHostAvailabilityRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHostAvailabilityRequest.ts new file mode 100644 index 0000000..8d1e9a8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHostAvailabilityRequest.ts @@ -0,0 +1,511 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class ModifyHostAvailabilityRequestAlertConfig extends $dara.Model { + /** + * @remarks + * The end of the time range during which the alert rule is effective. Valid values: 0 to 23. + * + * For example, if the `AlertConfig.StartTime` parameter is set to 0 and the `AlertConfig.EndTime` parameter is set to 22, the alert rule is effective from 00:00:00 to 22:00:00. + * + * > Alert notifications are sent based on the specified threshold only if the alert rule is effective. + * + * @example + * 22 + */ + endTime?: number; + /** + * @remarks + * The alert notification methods. Valid values: + * + * 0: Alert notifications are sent by using emails and DingTalk chatbots. + * + * This parameter is required. + * + * @example + * 0 + */ + notifyType?: number; + /** + * @remarks + * The mute period during which new alerts are not sent even if the trigger conditions are met. Unit: seconds. Default value: 86400. The default value indicates one day. + * + * @example + * 86400 + */ + silenceTime?: number; + /** + * @remarks + * The beginning of the time range during which the alert rule is effective. Valid values: 0 to 23. + * + * For example, if the `AlertConfig.StartTime` parameter is set to 0 and the `AlertConfig.EndTime` parameter is set to 22, the alert rule is effective from 00:00:00 to 22:00:00. + * + * > Alert notifications are sent based on the specified threshold only if the alert rule is effective. + * + * @example + * 0 + */ + startTime?: number; + /** + * @remarks + * The callback URL. + * + * @example + * https://www.aliyun.com/webhook.json + */ + webHook?: string; + static names(): { [key: string]: string } { + return { + endTime: 'EndTime', + notifyType: 'NotifyType', + silenceTime: 'SilenceTime', + startTime: 'StartTime', + webHook: 'WebHook', + }; + } + + static types(): { [key: string]: any } { + return { + endTime: 'number', + notifyType: 'number', + silenceTime: 'number', + startTime: 'number', + webHook: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class ModifyHostAvailabilityRequestTaskOption extends $dara.Model { + /** + * @remarks + * The header of the HTTP request. Format: `Parameter name:Parameter value`. Separate multiple parameters with carriage return characters. Example: + * + * params1:value1 + * params2:value2 + * + * @example + * params1:value1 + */ + httpHeader?: string; + /** + * @remarks + * The HTTP request method. Valid values: + * + * * GET + * * POST + * * HEAD + * + * > This parameter must be specified when TaskType is set to HTTP. For more information about how to configure the TaskType parameter, see [CreateHostAvailability](https://help.aliyun.com/document_detail/115317.html). + * + * @example + * GET + */ + httpMethod?: string; + /** + * @remarks + * The method to trigger an alert. The alert can be triggered based on whether the specified alert rule is included in the response body. Valid values: + * + * * true: If the HTTP response body includes the alert rule, an alert is triggered. + * * false: If the HTTP response does not include the alert rule, an alert is triggered. + * + * > This parameter must be specified when TaskType is set to HTTP. For more information about how to configure the TaskType parameter, see [CreateHostAvailability](https://help.aliyun.com/document_detail/115317.html). + * + * @example + * true + */ + httpNegative?: boolean; + /** + * @remarks + * The content of the HTTP POST request. + * + * @example + * params1=value1 + */ + httpPostContent?: string; + /** + * @remarks + * The character set that is used in the HTTP response. + * + * > Only UTF-8 is supported. + * + * @example + * UTF-8 + */ + httpResponseCharset?: string; + /** + * @remarks + * The response to the HTTP request. + * + * @example + * ok + */ + httpResponseMatchContent?: string; + /** + * @remarks + * The URI that you want to monitor. This parameter is required if the TaskType parameter is set to HTTP or Telnet. + * + * @example + * https://www.aliyun.com + */ + httpURI?: string; + /** + * @remarks + * The interval at which detection requests are sent. Unit: seconds. Valid values: 15, 30, 60, 120, 300, 900, 1800, and 3600. + * + * > This parameter is available only for the CloudMonitor agent V3.5.1 or later. + * + * @example + * 60 + */ + interval?: number; + /** + * @remarks + * The domain name or IP address that you want to monitor. + * + * > This parameter is required if the TaskType parameter is set to PING. For more information about how to set the TaskType parameter, see [CreateHostAvailability](https://help.aliyun.com/document_detail/115317.html). + * + * @example + * www.aliyun.com + */ + telnetOrPingHost?: string; + static names(): { [key: string]: string } { + return { + httpHeader: 'HttpHeader', + httpMethod: 'HttpMethod', + httpNegative: 'HttpNegative', + httpPostContent: 'HttpPostContent', + httpResponseCharset: 'HttpResponseCharset', + httpResponseMatchContent: 'HttpResponseMatchContent', + httpURI: 'HttpURI', + interval: 'Interval', + telnetOrPingHost: 'TelnetOrPingHost', + }; + } + + static types(): { [key: string]: any } { + return { + httpHeader: 'string', + httpMethod: 'string', + httpNegative: 'boolean', + httpPostContent: 'string', + httpResponseCharset: 'string', + httpResponseMatchContent: 'string', + httpURI: 'string', + interval: 'number', + telnetOrPingHost: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class ModifyHostAvailabilityRequestAlertConfigEscalationList extends $dara.Model { + /** + * @remarks + * The method used to calculate the metric values that trigger alerts. Valid values of N: 1 to 21. The value of this parameter varies based on the metric. The following items show the correspondence between metrics and calculation methods: + * + * * HttpStatus: Value + * * HttpLatency: Average + * * TelnetStatus: Value + * * TelnetLatency: Average + * * PingLostRate: Average + * + * > The value Value indicates the original value and is used for metrics such as status codes. The value Average indicates the average value and is used for metrics such as the latency and packet loss rate. + * + * @example + * Value + */ + aggregate?: string; + /** + * @remarks + * The metric for which the alert feature is enabled. Valid values of N: 1 to 21. Valid values: + * + * * HttpStatus: HTTP status code + * * HttpLatency: HTTP response time + * * TelnetStatus: Telnet status code + * * TelnetLatency: Telnet response time + * * PingLostRate: Ping packet loss rate + * + * This parameter is required. + * + * @example + * HttpStatus + */ + metricName?: string; + /** + * @remarks + * The comparison operator that is used in the alert rule. Valid values of N: 1 to 21. Valid values: + * + * * `>` + * * `>=` + * * `<` + * * `<=` + * * `=` + * + * @example + * > + */ + operator?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before an alert is triggered. Valid values of N: 1 to 21. + * + * @example + * 3 + */ + times?: number; + /** + * @remarks + * The alert threshold. Valid values of N: 1 to 21. + * + * @example + * 3 + */ + value?: string; + static names(): { [key: string]: string } { + return { + aggregate: 'Aggregate', + metricName: 'MetricName', + operator: 'Operator', + times: 'Times', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + aggregate: 'string', + metricName: 'string', + operator: 'string', + times: 'number', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class ModifyHostAvailabilityRequestAlertConfigTargetList extends $dara.Model { + /** + * @remarks + * The Alibaba Cloud Resource Name (ARN) of the resource. + * + * Format: `acs:{Service name abbreviation}:{regionId}:{userId}:/{Resource type}/{Resource name}/message`. Example: `acs:mns:cn-hangzhou:120886317861****:/queues/test123/message`. Fields: + * + * * {Service name abbreviation}: the abbreviation of the service name. Set the value to Simple Message Queue (formerly MNS) (SMQ). + * + * * {userId}: the ID of the Alibaba Cloud account. + * + * * {regionId}: the region ID of the SMQ queue or topic. + * + * * {Resource type}: the type of the resource for which alerts are triggered. Valid values: + * + * * **queues** + * * **topics** + * + * * {Resource name}: the resource name. + * + * * If the resource type is **queues**, the resource name is the queue name. + * * If the resource type is **topics**, the resource name is the topic name. + * + * @example + * acs:mns:cn-hangzhou:111:/queues/test/message + */ + arn?: string; + /** + * @remarks + * The ID of the resource for which alerts are triggered. + * + * @example + * 1 + */ + id?: string; + /** + * @remarks + * The parameters of the alert callback. The parameters are in the JSON format. + * + * @example + * {"customField1":"value1","customField2":"$.name"} + */ + jsonParams?: string; + /** + * @remarks + * The alert level. Valid values: + * + * * INFO + * * WARN + * * CRITICAL + * + * @example + * ["INFO", "WARN", "CRITICAL"] + */ + level?: string; + static names(): { [key: string]: string } { + return { + arn: 'Arn', + id: 'Id', + jsonParams: 'JsonParams', + level: 'Level', + }; + } + + static types(): { [key: string]: any } { + return { + arn: 'string', + id: 'string', + jsonParams: 'string', + level: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class ModifyHostAvailabilityRequest extends $dara.Model { + alertConfig?: ModifyHostAvailabilityRequestAlertConfig; + taskOption?: ModifyHostAvailabilityRequestTaskOption; + /** + * @remarks + * The alert configurations. + * + * This parameter is required. + */ + alertConfigEscalationList?: ModifyHostAvailabilityRequestAlertConfigEscalationList[]; + /** + * @remarks + * The information about the resources for which alerts are triggered. + */ + alertConfigTargetList?: ModifyHostAvailabilityRequestAlertConfigTargetList[]; + /** + * @remarks + * The ID of the application group. + * + * This parameter is required. + * + * @example + * 123456 + */ + groupId?: number; + /** + * @remarks + * The ID of the availability monitoring task. + * + * This parameter is required. + * + * @example + * 12345 + */ + id?: number; + /** + * @remarks + * The ECS instances that are monitored. Valid values of N: 1 to 21. + * + * > This parameter must be specified when `TaskScope` is set to `GROUP_SPEC_INSTANCE`. + * + * @example + * i-absdfkwl321**** + */ + instanceList?: string[]; + regionId?: string; + /** + * @remarks + * The name of the availability monitoring task. + * + * This parameter is required. + * + * @example + * task2 + */ + taskName?: string; + /** + * @remarks + * The range of instances that are monitored by the availability monitoring task. Valid values: + * + * * GROUP: All ECS instances in the application group are monitored. + * * GROUP_SPEC_INSTANCE: Specified ECS instances in the application group are monitored. The TaskScope parameter must be used in combination with the InstanceList parameter. The InstanceList parameter specifies the ECS instances to be monitored. + * + * @example + * GROUP + */ + taskScope?: string; + static names(): { [key: string]: string } { + return { + alertConfig: 'AlertConfig', + taskOption: 'TaskOption', + alertConfigEscalationList: 'AlertConfigEscalationList', + alertConfigTargetList: 'AlertConfigTargetList', + groupId: 'GroupId', + id: 'Id', + instanceList: 'InstanceList', + regionId: 'RegionId', + taskName: 'TaskName', + taskScope: 'TaskScope', + }; + } + + static types(): { [key: string]: any } { + return { + alertConfig: ModifyHostAvailabilityRequestAlertConfig, + taskOption: ModifyHostAvailabilityRequestTaskOption, + alertConfigEscalationList: { 'type': 'array', 'itemType': ModifyHostAvailabilityRequestAlertConfigEscalationList }, + alertConfigTargetList: { 'type': 'array', 'itemType': ModifyHostAvailabilityRequestAlertConfigTargetList }, + groupId: 'number', + id: 'number', + instanceList: { 'type': 'array', 'itemType': 'string' }, + regionId: 'string', + taskName: 'string', + taskScope: 'string', + }; + } + + validate() { + if(this.alertConfig && typeof (this.alertConfig as any).validate === 'function') { + (this.alertConfig as any).validate(); + } + if(this.taskOption && typeof (this.taskOption as any).validate === 'function') { + (this.taskOption as any).validate(); + } + if(Array.isArray(this.alertConfigEscalationList)) { + $dara.Model.validateArray(this.alertConfigEscalationList); + } + if(Array.isArray(this.alertConfigTargetList)) { + $dara.Model.validateArray(this.alertConfigTargetList); + } + if(Array.isArray(this.instanceList)) { + $dara.Model.validateArray(this.instanceList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHostAvailabilityResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHostAvailabilityResponse.ts new file mode 100644 index 0000000..5ffaaf8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHostAvailabilityResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { ModifyHostAvailabilityResponseBody } from "./ModifyHostAvailabilityResponseBody"; + + +export class ModifyHostAvailabilityResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: ModifyHostAvailabilityResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: ModifyHostAvailabilityResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHostAvailabilityResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHostAvailabilityResponseBody.ts new file mode 100644 index 0000000..ddb5d79 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHostAvailabilityResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class ModifyHostAvailabilityResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 16E815A3-47E1-4290-87F9-D5C99471FF45 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHostInfoRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHostInfoRequest.ts new file mode 100644 index 0000000..0912be5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHostInfoRequest.ts @@ -0,0 +1,49 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class ModifyHostInfoRequest extends $dara.Model { + /** + * @remarks + * The name of the host. + * + * @example + * portalHost + */ + hostName?: string; + /** + * @remarks + * The ID of the instance. Only hosts not on Alibaba Cloud are supported. + * + * This parameter is required. + * + * @example + * host-R_NSWNV**** + */ + instanceId?: string; + regionId?: string; + static names(): { [key: string]: string } { + return { + hostName: 'HostName', + instanceId: 'InstanceId', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + hostName: 'string', + instanceId: 'string', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHostInfoResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHostInfoResponse.ts new file mode 100644 index 0000000..84caa50 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHostInfoResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { ModifyHostInfoResponseBody } from "./ModifyHostInfoResponseBody"; + + +export class ModifyHostInfoResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: ModifyHostInfoResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: ModifyHostInfoResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHostInfoResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHostInfoResponseBody.ts new file mode 100644 index 0000000..b8a27b7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHostInfoResponseBody.ts @@ -0,0 +1,66 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class ModifyHostInfoResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * EBB5215C-44AB-4000-A2D7-48634FDC4F04 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call was successful. The value true indicates a success. The value false indicates a failure. + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorNamespaceRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorNamespaceRequest.ts new file mode 100644 index 0000000..5636f92 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorNamespaceRequest.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class ModifyHybridMonitorNamespaceRequest extends $dara.Model { + /** + * @remarks + * The description of the namespace. + */ + description?: string; + /** + * @remarks + * The name of the namespace. + * + * The name can contain letters, digits, and hyphens (-). + * + * For information about how to obtain the name of a namespace, see [DescribeHybridMonitorNamespaceList](https://help.aliyun.com/document_detail/428880.html). + * + * This parameter is required. + * + * @example + * aliyun + */ + namespace?: string; + regionId?: string; + /** + * @remarks + * The data retention period. Valid values: + * + * * cms.s1.large: Data is stored for 15 days. + * * cms.s1.xlarge: Data is stored for 32 days. + * * cms.s1.2xlarge: Data is stored for 63 days. + * * cms.s1.3xlarge: Data is stored for 93 days. + * * cms.s1.6xlarge: Data is stored for 185 days. + * * cms.s1.12xlarge: Data is stored for 376 days. + * + * For information about the pricing for different retention periods, see the **Pricing** section in [Billing of the dashboard feature](https://help.aliyun.com/document_detail/223532.html). + * + * @example + * cms.s1.2xlarge + */ + spec?: string; + static names(): { [key: string]: string } { + return { + description: 'Description', + namespace: 'Namespace', + regionId: 'RegionId', + spec: 'Spec', + }; + } + + static types(): { [key: string]: any } { + return { + description: 'string', + namespace: 'string', + regionId: 'string', + spec: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorNamespaceResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorNamespaceResponse.ts new file mode 100644 index 0000000..f4fe3a5 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorNamespaceResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { ModifyHybridMonitorNamespaceResponseBody } from "./ModifyHybridMonitorNamespaceResponseBody"; + + +export class ModifyHybridMonitorNamespaceResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: ModifyHybridMonitorNamespaceResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: ModifyHybridMonitorNamespaceResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorNamespaceResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorNamespaceResponseBody.ts new file mode 100644 index 0000000..39c51e3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorNamespaceResponseBody.ts @@ -0,0 +1,67 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class ModifyHybridMonitorNamespaceResponseBody extends $dara.Model { + /** + * @remarks + * The returned message. + * + * @example + * Success + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * %s + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * E190AB2E-7BF9-59B7-9DDC-7CB1782C5ECD + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorSlsgroupRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorSlsgroupRequest.ts new file mode 100644 index 0000000..f636552 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorSlsgroupRequest.ts @@ -0,0 +1,140 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class ModifyHybridMonitorSLSGroupRequestSLSGroupConfig extends $dara.Model { + /** + * @remarks + * The Logstore. + * + * Valid values of N: 1 to 25. + * + * This parameter is required. + * + * @example + * Logstore-aliyun-all + */ + SLSLogstore?: string; + /** + * @remarks + * The Simple Log Service project. + * + * Valid values of N: 1 to 25. + * + * This parameter is required. + * + * @example + * aliyun-project + */ + SLSProject?: string; + /** + * @remarks + * The region ID. + * + * Valid values of N: 1 to 25. + * + * This parameter is required. + * + * @example + * cn-hangzhou + */ + SLSRegion?: string; + /** + * @remarks + * The member ID. + * + * Valid values of N: 1 to 25. + * + * If you call this operation by using the management account of a resource directory, you can connect the Alibaba Cloud services that are activated for all members in the resource directory to Hybrid Cloud Monitoring. You can use the resource directory to monitor Alibaba Cloud services across enterprise accounts. + * + * > If a member uses CloudMonitor for the first time, you must make sure that the service-linked role AliyunServiceRoleForCloudMonitor is attached to the member. For more information, see [Manage the service-linked role for CloudMonitor](https://help.aliyun.com/document_detail/170423.html). + * + * @example + * 120886317861**** + */ + SLSUserId?: string; + static names(): { [key: string]: string } { + return { + SLSLogstore: 'SLSLogstore', + SLSProject: 'SLSProject', + SLSRegion: 'SLSRegion', + SLSUserId: 'SLSUserId', + }; + } + + static types(): { [key: string]: any } { + return { + SLSLogstore: 'string', + SLSProject: 'string', + SLSRegion: 'string', + SLSUserId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class ModifyHybridMonitorSLSGroupRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * The configurations of the Logstore group. + * + * Valid values of N: 1 to 25. + * + * This parameter is required. + */ + SLSGroupConfig?: ModifyHybridMonitorSLSGroupRequestSLSGroupConfig[]; + /** + * @remarks + * The description of the Logstore group. + */ + SLSGroupDescription?: string; + /** + * @remarks + * The name of the Logstore group. + * + * For information about how to obtain the name of a Logstore group, see [DescribeHybridMonitorSLSGroup](https://help.aliyun.com/document_detail/429526.html). + * + * This parameter is required. + * + * @example + * Logstore_test + */ + SLSGroupName?: string; + static names(): { [key: string]: string } { + return { + regionId: 'RegionId', + SLSGroupConfig: 'SLSGroupConfig', + SLSGroupDescription: 'SLSGroupDescription', + SLSGroupName: 'SLSGroupName', + }; + } + + static types(): { [key: string]: any } { + return { + regionId: 'string', + SLSGroupConfig: { 'type': 'array', 'itemType': ModifyHybridMonitorSLSGroupRequestSLSGroupConfig }, + SLSGroupDescription: 'string', + SLSGroupName: 'string', + }; + } + + validate() { + if(Array.isArray(this.SLSGroupConfig)) { + $dara.Model.validateArray(this.SLSGroupConfig); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorSlsgroupResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorSlsgroupResponse.ts new file mode 100644 index 0000000..a12df98 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorSlsgroupResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { ModifyHybridMonitorSLSGroupResponseBody } from "./ModifyHybridMonitorSlsgroupResponseBody"; + + +export class ModifyHybridMonitorSLSGroupResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: ModifyHybridMonitorSLSGroupResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: ModifyHybridMonitorSLSGroupResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorSlsgroupResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorSlsgroupResponseBody.ts new file mode 100644 index 0000000..24bf8c3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorSlsgroupResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class ModifyHybridMonitorSLSGroupResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * NotFound.SLSGroup + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 66683237-7126-50F8-BBF8-D67ACC919A17 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorTaskRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorTaskRequest.ts new file mode 100644 index 0000000..31ca26f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorTaskRequest.ts @@ -0,0 +1,464 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class ModifyHybridMonitorTaskRequestAttachLabels extends $dara.Model { + /** + * @remarks + * The tag key of the metric. + * + * @example + * app_service + */ + name?: string; + /** + * @remarks + * The tag value of the metric. + * + * @example + * testValue + */ + value?: string; + static names(): { [key: string]: string } { + return { + name: 'Name', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + name: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class ModifyHybridMonitorTaskRequestSLSProcessConfigExpress extends $dara.Model { + /** + * @remarks + * The alias of the extended field that specifies the result of basic operations performed on aggregation results. + * + * @example + * SuccRate + */ + alias?: string; + /** + * @remarks + * The extended field that specifies the result of basic operations performed on aggregation results. + * + * @example + * success_count + */ + express?: string; + static names(): { [key: string]: string } { + return { + alias: 'Alias', + express: 'Express', + }; + } + + static types(): { [key: string]: any } { + return { + alias: 'string', + express: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class ModifyHybridMonitorTaskRequestSLSProcessConfigFilterFilters extends $dara.Model { + /** + * @remarks + * The method that is used to filter logs imported from Simple Log Service. Valid values: + * + * * `contain`: contains + * * `notContain`: does not contain + * * `>`: greater than + * * `<`: less than + * * `=`: equal to + * * `! =`: not equal to + * * `>=`: greater than or equal to + * * `<=`: less than or equal to + * + * @example + * = + */ + operator?: string; + /** + * @remarks + * The name of the key that is used to filter logs imported from Simple Log Service. + * + * @example + * code + */ + SLSKeyName?: string; + /** + * @remarks + * The value of the key that is used to filter logs imported from Simple Log Service. + * + * @example + * 200 + */ + value?: string; + static names(): { [key: string]: string } { + return { + operator: 'Operator', + SLSKeyName: 'SLSKeyName', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + operator: 'string', + SLSKeyName: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class ModifyHybridMonitorTaskRequestSLSProcessConfigFilter extends $dara.Model { + /** + * @remarks + * None. + */ + filters?: ModifyHybridMonitorTaskRequestSLSProcessConfigFilterFilters[]; + /** + * @remarks + * The relationship between multiple filter conditions. Valid values: + * + * * and (default): Logs are processed only if all filter conditions are met. + * * or: Logs are processed if one of the filter conditions is met. + * + * @example + * and + */ + relation?: string; + static names(): { [key: string]: string } { + return { + filters: 'Filters', + relation: 'Relation', + }; + } + + static types(): { [key: string]: any } { + return { + filters: { 'type': 'array', 'itemType': ModifyHybridMonitorTaskRequestSLSProcessConfigFilterFilters }, + relation: 'string', + }; + } + + validate() { + if(Array.isArray(this.filters)) { + $dara.Model.validateArray(this.filters); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class ModifyHybridMonitorTaskRequestSLSProcessConfigGroupBy extends $dara.Model { + /** + * @remarks + * The alias of the aggregation result. + * + * @example + * ApiResult + */ + alias?: string; + /** + * @remarks + * The name of the key that is used to aggregate logs imported from Simple Log Service. + * + * @example + * code + */ + SLSKeyName?: string; + static names(): { [key: string]: string } { + return { + alias: 'Alias', + SLSKeyName: 'SLSKeyName', + }; + } + + static types(): { [key: string]: any } { + return { + alias: 'string', + SLSKeyName: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class ModifyHybridMonitorTaskRequestSLSProcessConfigStatistics extends $dara.Model { + /** + * @remarks + * The alias of the aggregation result. + * + * @example + * level_count + */ + alias?: string; + /** + * @remarks + * The function that is used to aggregate the log data of a statistical period. Valid values: + * + * * count: counts the number. + * * sum: calculates the total value. + * * avg: calculates the average value. + * * max: calculates the maximum value. + * * min: calculates the minimum value. + * * value: collects samples within the statistical period. + * * countps: calculates the number of values of the specified field divided by the total number of seconds within the statistical period. + * * sumps: calculates the sum of the values of the specified field divided by the total number of seconds within the statistical period. + * * distinct: calculates the number of unique values of the specified field within the statistical period. + * * distribution: calculates the number of logs that meet a specified condition within the statistical period. + * * percentile: sorts the values of the specified field in ascending order, and then returns the value that is at the specified percentile within the statistical period. Example: P50. + * + * @example + * count + */ + function?: string; + /** + * @remarks + * The value of the function that is used to aggregate logs imported from Simple Log Service. + * + * * If the `Function` parameter is set to `distribution`, this parameter specifies the lower limit of the statistical interval. For example, if you want to calculate the number of HTTP requests whose status code is 2XX, set this parameter to 200. + * * If the `Function` parameter is set to `percentile`, this parameter specifies the percentile at which the expected value is. For example, 0.5 specifies P50. + * + * @example + * 200 + */ + parameter1?: string; + /** + * @remarks + * The value of the function that is used to aggregate logs imported from Simple Log Service. + * + * > This parameter is required only if the `Function` parameter is set to `distribution`. This parameter specifies the upper limit of the statistical interval. For example, if you want to calculate the number of HTTP requests whose status code is 2XX, set this parameter to 299. + * + * @example + * 299 + */ + parameter2?: string; + /** + * @remarks + * The name of the key that is used to aggregate logs imported from Simple Log Service. + * + * @example + * name + */ + SLSKeyName?: string; + static names(): { [key: string]: string } { + return { + alias: 'Alias', + function: 'Function', + parameter1: 'Parameter1', + parameter2: 'Parameter2', + SLSKeyName: 'SLSKeyName', + }; + } + + static types(): { [key: string]: any } { + return { + alias: 'string', + function: 'string', + parameter1: 'string', + parameter2: 'string', + SLSKeyName: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class ModifyHybridMonitorTaskRequestSLSProcessConfig extends $dara.Model { + /** + * @remarks + * The extended fields that specify the results of basic operations performed on aggregation results. + */ + express?: ModifyHybridMonitorTaskRequestSLSProcessConfigExpress[]; + /** + * @remarks + * The conditions that are used to filter logs imported from Simple Log Service. + */ + filter?: ModifyHybridMonitorTaskRequestSLSProcessConfigFilter; + /** + * @remarks + * The dimension based on which data is aggregated. This parameter is equivalent to the GROUP BY clause in SQL. + */ + groupBy?: ModifyHybridMonitorTaskRequestSLSProcessConfigGroupBy[]; + /** + * @remarks + * None. + */ + statistics?: ModifyHybridMonitorTaskRequestSLSProcessConfigStatistics[]; + static names(): { [key: string]: string } { + return { + express: 'Express', + filter: 'Filter', + groupBy: 'GroupBy', + statistics: 'Statistics', + }; + } + + static types(): { [key: string]: any } { + return { + express: { 'type': 'array', 'itemType': ModifyHybridMonitorTaskRequestSLSProcessConfigExpress }, + filter: ModifyHybridMonitorTaskRequestSLSProcessConfigFilter, + groupBy: { 'type': 'array', 'itemType': ModifyHybridMonitorTaskRequestSLSProcessConfigGroupBy }, + statistics: { 'type': 'array', 'itemType': ModifyHybridMonitorTaskRequestSLSProcessConfigStatistics }, + }; + } + + validate() { + if(Array.isArray(this.express)) { + $dara.Model.validateArray(this.express); + } + if(this.filter && typeof (this.filter as any).validate === 'function') { + (this.filter as any).validate(); + } + if(Array.isArray(this.groupBy)) { + $dara.Model.validateArray(this.groupBy); + } + if(Array.isArray(this.statistics)) { + $dara.Model.validateArray(this.statistics); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class ModifyHybridMonitorTaskRequest extends $dara.Model { + /** + * @remarks + * The tags of the metric. + */ + attachLabels?: ModifyHybridMonitorTaskRequestAttachLabels[]; + /** + * @remarks + * The collection period of the metric. Valid values: + * + * * 15 + * * 60 + * + * Unit: seconds. + * + * @example + * 15 + */ + collectInterval?: string; + /** + * @remarks + * The description of the metric import task. + */ + description?: string; + regionId?: string; + /** + * @remarks + * The configurations of the logs that are imported from Simple Log Service. + */ + SLSProcessConfig?: ModifyHybridMonitorTaskRequestSLSProcessConfig; + /** + * @remarks + * The ID of the metric import task. + * + * For information about how to obtain the ID of a metric import task, see [DescribeHybridMonitorTaskList](https://help.aliyun.com/document_detail/428624.html). + * + * This parameter is required. + * + * @example + * 36**** + */ + taskId?: string; + /** + * @remarks + * The name of the metric import task. + * + * For information about how to obtain the ID of a metric import task, see [DescribeHybridMonitorTaskList](https://help.aliyun.com/document_detail/428624.html). + * + * @example + * SLS_task + */ + taskName?: string; + static names(): { [key: string]: string } { + return { + attachLabels: 'AttachLabels', + collectInterval: 'CollectInterval', + description: 'Description', + regionId: 'RegionId', + SLSProcessConfig: 'SLSProcessConfig', + taskId: 'TaskId', + taskName: 'TaskName', + }; + } + + static types(): { [key: string]: any } { + return { + attachLabels: { 'type': 'array', 'itemType': ModifyHybridMonitorTaskRequestAttachLabels }, + collectInterval: 'string', + description: 'string', + regionId: 'string', + SLSProcessConfig: ModifyHybridMonitorTaskRequestSLSProcessConfig, + taskId: 'string', + taskName: 'string', + }; + } + + validate() { + if(Array.isArray(this.attachLabels)) { + $dara.Model.validateArray(this.attachLabels); + } + if(this.SLSProcessConfig && typeof (this.SLSProcessConfig as any).validate === 'function') { + (this.SLSProcessConfig as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorTaskResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorTaskResponse.ts new file mode 100644 index 0000000..33b3f98 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorTaskResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { ModifyHybridMonitorTaskResponseBody } from "./ModifyHybridMonitorTaskResponseBody"; + + +export class ModifyHybridMonitorTaskResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: ModifyHybridMonitorTaskResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: ModifyHybridMonitorTaskResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorTaskResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorTaskResponseBody.ts new file mode 100644 index 0000000..47515f4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyHybridMonitorTaskResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class ModifyHybridMonitorTaskResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * Invalid.SLSConfig + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 11145B76-566A-5D80-A8A3-FAD98D310079 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMetricRuleBlackListRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMetricRuleBlackListRequest.ts new file mode 100644 index 0000000..888ee49 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMetricRuleBlackListRequest.ts @@ -0,0 +1,216 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class ModifyMetricRuleBlackListRequestMetrics extends $dara.Model { + /** + * @remarks + * The name of the metric. + * + * Valid values of N: 1 to 10. + * + * This parameter is required. + * + * @example + * disk_utilization + */ + metricName?: string; + /** + * @remarks + * The extended dimension of the instance. For example, `{"device":"C:"}` specifies that the blacklist policy is applied to all C disks of the specified Elastic Compute Service (ECS) instance. + * + * Valid values of N: 1 to 10. + * + * @example + * {"device":"C:"} + */ + resource?: string; + static names(): { [key: string]: string } { + return { + metricName: 'MetricName', + resource: 'Resource', + }; + } + + static types(): { [key: string]: any } { + return { + metricName: 'string', + resource: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class ModifyMetricRuleBlackListRequest extends $dara.Model { + /** + * @remarks + * The category of the cloud service. For example, ApsaraDB for Redis supports the standard architecture, the cluster architecture, and the read/write splitting architecture. In this case, the valid values of this parameter for ApsaraDB for Redis include `kvstore_standard`, `kvstore_sharding`, and `kvstore_splitrw`. + * + * This parameter is required. + * + * @example + * ecs + */ + category?: string; + /** + * @remarks + * The time range within which the blacklist policy is effective. Take note of the following information: + * + * * If you do not configure this parameter, the blacklist policy is permanently effective. + * + * * If you configure this parameter, the blacklist policy is effective only within the specified time range. Examples: + * + * * `03:00-04:59`: The blacklist policy is effective from 03:00 to 05:00 local time. 05:00 local time is excluded. + * * `03:00-04:59 UTC+0700`: The blacklist policy is effective from 03:00 to 05:00 (UTC+7). 05:00 (UTC+7) is excluded. + * + * @example + * 03:00-04:59 + */ + effectiveTime?: string; + /** + * @remarks + * The timestamp when the blacklist policy expires. + * + * Unit: milliseconds. + * + * @example + * 1640608200000 + */ + enableEndTime?: string; + /** + * @remarks + * The timestamp when the blacklist policy starts to take effect. + * + * Unit: milliseconds. + * + * @example + * 1640237400000 + */ + enableStartTime?: string; + /** + * @remarks + * The ID of the blacklist policy. + * + * For information about how to obtain the ID of a blacklist policy, see [DescribeMetricRuleBlackList](https://help.aliyun.com/document_detail/457257.html). + * + * This parameter is required. + * + * @example + * 93514c96-ceb8-47d8-8ee3-93b6d98b**** + */ + id?: string; + /** + * @remarks + * The IDs of the instances that belong to the specified cloud service. + * + * This parameter is required. + */ + instances?: string[]; + /** + * @remarks + * The metrics of the instance. + * + * * If you do not configure this parameter, the blacklist policy applies to all metrics of the specified cloud service. + * * If you configure this parameter, the blacklist policy applies only to the current metric. + */ + metrics?: ModifyMetricRuleBlackListRequestMetrics[]; + /** + * @remarks + * The name of the blacklist policy. + * + * This parameter is required. + * + * @example + * Blacklist-02 + */ + name?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * For more information about the namespaces of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + regionId?: string; + /** + * @remarks + * The effective scope of the blacklist policy. Valid values: + * + * * USER: The blacklist policy takes effect only within the current Alibaba Cloud account. + * * GROUP (default): The blacklist policy takes effect only within the specified application group. For information about how to obtain the ID of an application group, see [DescribeMonitorGroups](https://help.aliyun.com/document_detail/115032.html). + * + * @example + * USER + */ + scopeType?: string; + /** + * @remarks + * The IDs of the application groups. + * + * > This parameter is required only when `ScopeType` is set to `GROUP`. + * + * @example + * ["67****","78****"] + */ + scopeValue?: string; + static names(): { [key: string]: string } { + return { + category: 'Category', + effectiveTime: 'EffectiveTime', + enableEndTime: 'EnableEndTime', + enableStartTime: 'EnableStartTime', + id: 'Id', + instances: 'Instances', + metrics: 'Metrics', + name: 'Name', + namespace: 'Namespace', + regionId: 'RegionId', + scopeType: 'ScopeType', + scopeValue: 'ScopeValue', + }; + } + + static types(): { [key: string]: any } { + return { + category: 'string', + effectiveTime: 'string', + enableEndTime: 'string', + enableStartTime: 'string', + id: 'string', + instances: { 'type': 'array', 'itemType': 'string' }, + metrics: { 'type': 'array', 'itemType': ModifyMetricRuleBlackListRequestMetrics }, + name: 'string', + namespace: 'string', + regionId: 'string', + scopeType: 'string', + scopeValue: 'string', + }; + } + + validate() { + if(Array.isArray(this.instances)) { + $dara.Model.validateArray(this.instances); + } + if(Array.isArray(this.metrics)) { + $dara.Model.validateArray(this.metrics); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMetricRuleBlackListResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMetricRuleBlackListResponse.ts new file mode 100644 index 0000000..4e4b1b9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMetricRuleBlackListResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { ModifyMetricRuleBlackListResponseBody } from "./ModifyMetricRuleBlackListResponseBody"; + + +export class ModifyMetricRuleBlackListResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: ModifyMetricRuleBlackListResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: ModifyMetricRuleBlackListResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMetricRuleBlackListResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMetricRuleBlackListResponseBody.ts new file mode 100644 index 0000000..8197805 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMetricRuleBlackListResponseBody.ts @@ -0,0 +1,79 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class ModifyMetricRuleBlackListResponseBody extends $dara.Model { + /** + * @remarks + * The error code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The number of blacklist policies that are modified. + * + * @example + * 1 + */ + count?: string; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 008773AE-1D86-3231-90F9-1AF7F808F9CE + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + count: 'Count', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + count: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMetricRuleTemplateRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMetricRuleTemplateRequest.ts new file mode 100644 index 0000000..7078d81 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMetricRuleTemplateRequest.ts @@ -0,0 +1,354 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsCritical extends $dara.Model { + comparisonOperator?: string; + n?: number; + statistics?: string; + threshold?: string; + times?: number; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + n: 'N', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + n: 'number', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsInfo extends $dara.Model { + comparisonOperator?: string; + n?: number; + statistics?: string; + threshold?: string; + times?: number; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + n: 'N', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + n: 'number', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsWarn extends $dara.Model { + comparisonOperator?: string; + n?: number; + statistics?: string; + threshold?: string; + times?: number; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + n: 'N', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + n: 'number', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class ModifyMetricRuleTemplateRequestAlertTemplatesEscalations extends $dara.Model { + critical?: ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsCritical; + info?: ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsInfo; + warn?: ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsWarn; + static names(): { [key: string]: string } { + return { + critical: 'Critical', + info: 'Info', + warn: 'Warn', + }; + } + + static types(): { [key: string]: any } { + return { + critical: ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsCritical, + info: ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsInfo, + warn: ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsWarn, + }; + } + + validate() { + if(this.critical && typeof (this.critical as any).validate === 'function') { + (this.critical as any).validate(); + } + if(this.info && typeof (this.info as any).validate === 'function') { + (this.info as any).validate(); + } + if(this.warn && typeof (this.warn as any).validate === 'function') { + (this.warn as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class ModifyMetricRuleTemplateRequestAlertTemplates extends $dara.Model { + escalations?: ModifyMetricRuleTemplateRequestAlertTemplatesEscalations; + /** + * @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. + * + * @example + * ecs + */ + category?: string; + /** + * @remarks + * The metric name. + * + * Valid values of N: 1 to 200. + * + * For information about how to obtain metrics, see [DescribeMetricMetaList](https://help.aliyun.com/document_detail/98846.html) or [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 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). + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + /** + * @remarks + * The statistical period of the monitoring data. + * + * Valid values of N: 1 to 200. + * + * > If the value is set to 300 seconds, the monitoring data is collected every 300 seconds. If the monitoring data is reported every 1 minute, the alert system calculates the average, maximum, and minimum values of the monitoring data of 5 minutes and checks whether the aggregated values exceed the threshold. To prevent unexpected alerts, we recommend that you set this parameter together with other parameters. + * + * @example + * 60 + */ + period?: number; + /** + * @remarks + * The name of the alert rule. + * + * Valid values of N: 1 to 200. + * + * @example + * 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 + * https://apiwebhook.hipac.cn/api/v1/alarm/aly/eregfeeferrtbnmkdszp + */ + webhook?: string; + static names(): { [key: string]: string } { + return { + escalations: 'Escalations', + category: 'Category', + metricName: 'MetricName', + namespace: 'Namespace', + period: 'Period', + ruleName: 'RuleName', + selector: 'Selector', + webhook: 'Webhook', + }; + } + + static types(): { [key: string]: any } { + return { + escalations: ModifyMetricRuleTemplateRequestAlertTemplatesEscalations, + category: 'string', + metricName: 'string', + namespace: 'string', + period: 'number', + ruleName: 'string', + selector: 'string', + webhook: 'string', + }; + } + + validate() { + if(this.escalations && typeof (this.escalations as any).validate === 'function') { + (this.escalations as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class ModifyMetricRuleTemplateRequest extends $dara.Model { + /** + * @remarks + * The details of the alert template. + */ + alertTemplates?: ModifyMetricRuleTemplateRequestAlertTemplates[]; + /** + * @remarks + * The description of the alert template. + * + * @example + * ECS_template1 + */ + description?: string; + /** + * @remarks + * The name of the alert template. + * + * For information about how to obtain the name of an alert template, see [DescribeMetricRuleTemplateList](https://help.aliyun.com/document_detail/114982.html). + * + * @example + * test123 + */ + name?: string; + regionId?: string; + /** + * @remarks + * The version of the alert template. The version changes with the number of times that the alert template is modified. + * + * For information about how to obtain the version of an alert template, see [DescribeMetricRuleTemplateList](https://help.aliyun.com/document_detail/114982.html). + * + * This parameter is required. + * + * @example + * 0 + */ + restVersion?: number; + /** + * @remarks + * The ID of the alert template. + * + * For information about how to obtain the ID of an alert template, see [DescribeMetricRuleTemplateList](https://help.aliyun.com/document_detail/114982.html). + * + * This parameter is required. + * + * @example + * 123456 + */ + templateId?: number; + static names(): { [key: string]: string } { + return { + alertTemplates: 'AlertTemplates', + description: 'Description', + name: 'Name', + regionId: 'RegionId', + restVersion: 'RestVersion', + templateId: 'TemplateId', + }; + } + + static types(): { [key: string]: any } { + return { + alertTemplates: { 'type': 'array', 'itemType': ModifyMetricRuleTemplateRequestAlertTemplates }, + description: 'string', + name: 'string', + regionId: 'string', + restVersion: 'number', + templateId: 'number', + }; + } + + validate() { + if(Array.isArray(this.alertTemplates)) { + $dara.Model.validateArray(this.alertTemplates); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMetricRuleTemplateResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMetricRuleTemplateResponse.ts new file mode 100644 index 0000000..545efdd --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMetricRuleTemplateResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { ModifyMetricRuleTemplateResponseBody } from "./ModifyMetricRuleTemplateResponseBody"; + + +export class ModifyMetricRuleTemplateResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: ModifyMetricRuleTemplateResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: ModifyMetricRuleTemplateResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMetricRuleTemplateResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMetricRuleTemplateResponseBody.ts new file mode 100644 index 0000000..15f8934 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMetricRuleTemplateResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class ModifyMetricRuleTemplateResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 9E07117F-F6AE-4F1C-81E8-36FBB4892235 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMonitorGroupInstancesRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMonitorGroupInstancesRequest.ts new file mode 100644 index 0000000..95ff4ce --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMonitorGroupInstancesRequest.ts @@ -0,0 +1,189 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class ModifyMonitorGroupInstancesRequestInstances extends $dara.Model { + /** + * @remarks + * The abbreviation of the name of the service to which the instances to be added to the application group belong. Valid values: + * + * * ECS: Elastic Compute Service (ECS) instances provided by Alibaba Cloud and hosts not provided by Alibaba Cloud + * + * * RDS: ApsaraDB for RDS + * + * * ADS: AnalyticDB + * + * * SLB: Server Load Balancer (SLB) + * + * * VPC: Virtual Private Cloud (VPC) + * + * * APIGATEWAY: API Gateway + * + * * CDN: Alibaba Cloud Content Delivery Network (CDN) + * + * * CS: Container Service for Swarm + * + * * DCDN: Dynamic Route for CDN + * + * * DDoS: Anti-DDoS Pro + * + * * EIP: Elastic IP Address (EIP) + * + * * ELASTICSEARCH: Elasticsearch + * + * * EMR: E-MapReduce + * + * * ESS: Auto Scaling + * + * * HBASE: ApsaraDB for Hbase + * + * * IOT_EDGE: IoT Edge + * + * * K8S_POD: pods in Container Service for Kubernetes + * + * * KVSTORE_SHARDING: ApsaraDB for Redis of the cluster architecture + * + * * KVSTORE_SPLITRW: ApsaraDB for Redis of the read/write splitting architecture + * + * * KVSTORE_STANDARD: ApsaraDB for Redis of the standard architecture + * + * * MEMCACHE: ApsaraDB for Memcache + * + * * MNS: Message Service (MNS) + * + * * MONGODB: ApsaraDB for MongoDB of the replica set architecture + * + * * MONGODB_CLUSTER: ApsaraDB for MongoDB of the cluster architecture + * + * * MONGODB_SHARDING: ApsaraDB for MongoDB of the sharded cluster architecture + * + * * MQ_TOPIC: MNS topics + * + * * OCS: ApsaraDB for Memcache of earlier versions + * + * * OPENSEARCH: Open Search + * + * * OSS: Object Storage Service (OSS) + * + * * POLARDB: PolarDB + * + * * PETADATA: HybridDB for MySQL + * + * * SCDN: Secure Content Delivery Network (SCDN) + * + * * SHAREBANDWIDTHPACKAGES: EIP Bandwidth Plan + * + * * SLS: Log Service + * + * * VPN: VPN Gateway + * + * Valid values of N: 1 to 2000. + * + * This parameter is required. + * + * @example + * ECS + */ + category?: string; + /** + * @remarks + * The ID of the instance. Valid values of N: 1 to 2000. + * + * This parameter is required. + * + * @example + * i-a2d5q7pm12**** + */ + instanceId?: string; + /** + * @remarks + * The name of the instance. Valid values of N: 1 to 2000. + * + * This parameter is required. + * + * @example + * HostName + */ + instanceName?: string; + /** + * @remarks + * The ID of the region where the instance resides. Valid values of N: 1 to 2000. + * + * This parameter is required. + * + * @example + * cn-hangzhou + */ + regionId?: string; + static names(): { [key: string]: string } { + return { + category: 'Category', + instanceId: 'InstanceId', + instanceName: 'InstanceName', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + category: 'string', + instanceId: 'string', + instanceName: 'string', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class ModifyMonitorGroupInstancesRequest extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * This parameter is required. + * + * @example + * 12345 + */ + groupId?: number; + /** + * @remarks + * This parameter is required. + */ + instances?: ModifyMonitorGroupInstancesRequestInstances[]; + regionId?: string; + static names(): { [key: string]: string } { + return { + groupId: 'GroupId', + instances: 'Instances', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + groupId: 'number', + instances: { 'type': 'array', 'itemType': ModifyMonitorGroupInstancesRequestInstances }, + regionId: 'string', + }; + } + + validate() { + if(Array.isArray(this.instances)) { + $dara.Model.validateArray(this.instances); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMonitorGroupInstancesResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMonitorGroupInstancesResponse.ts new file mode 100644 index 0000000..45bcca9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMonitorGroupInstancesResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { ModifyMonitorGroupInstancesResponseBody } from "./ModifyMonitorGroupInstancesResponseBody"; + + +export class ModifyMonitorGroupInstancesResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: ModifyMonitorGroupInstancesResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: ModifyMonitorGroupInstancesResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMonitorGroupInstancesResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMonitorGroupInstancesResponseBody.ts new file mode 100644 index 0000000..69b8ff8 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMonitorGroupInstancesResponseBody.ts @@ -0,0 +1,66 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class ModifyMonitorGroupInstancesResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * FEC7EDB3-9B08-4AC0-A42A-329F5D14B95A + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call was successful. The value true indicates a success. The value false indicates a failure. + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMonitorGroupRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMonitorGroupRequest.ts new file mode 100644 index 0000000..5b691c2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMonitorGroupRequest.ts @@ -0,0 +1,59 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class ModifyMonitorGroupRequest extends $dara.Model { + /** + * @remarks + * The alert groups that can receive alert notifications for the application group. + * + * @example + * alarm_ecs_group + */ + contactGroups?: string; + /** + * @remarks + * The ID of the application group. + * + * This parameter is required. + * + * @example + * 123456 + */ + groupId?: string; + /** + * @remarks + * The name of the application group. + * + * @example + * ecs_group + */ + groupName?: string; + regionId?: string; + static names(): { [key: string]: string } { + return { + contactGroups: 'ContactGroups', + groupId: 'GroupId', + groupName: 'GroupName', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + contactGroups: 'string', + groupId: 'string', + groupName: 'string', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMonitorGroupResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMonitorGroupResponse.ts new file mode 100644 index 0000000..0d184c7 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMonitorGroupResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { ModifyMonitorGroupResponseBody } from "./ModifyMonitorGroupResponseBody"; + + +export class ModifyMonitorGroupResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: ModifyMonitorGroupResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: ModifyMonitorGroupResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMonitorGroupResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMonitorGroupResponseBody.ts new file mode 100644 index 0000000..35217d4 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ModifyMonitorGroupResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class ModifyMonitorGroupResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * C85A2870-5DF4-4269-BC50-ECB5E4591A80 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call was successful. Valid values: + * + * * true: The call was successful. + * * false: The call failed. + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ModifySiteMonitorRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ModifySiteMonitorRequest.ts new file mode 100644 index 0000000..d555f24 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ModifySiteMonitorRequest.ts @@ -0,0 +1,123 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class ModifySiteMonitorRequest extends $dara.Model { + /** + * @remarks + * The URL or IP address that is monitored by the task. + * + * @example + * http://www.aliyun.com + */ + address?: string; + /** + * @remarks + * The ID of the alert rule. You can call the DescribeMetricRuleList operation to query the IDs of existing alert rules in CloudMonitor. For more information, see [DescribeMetricRuleList](https://help.aliyun.com/document_detail/114941.html). + * + * @example + * 49f7c317-7645-4cc9-94fd-ea42e122**** + */ + alertIds?: string; + /** + * @remarks + * The custom detection period. You can only select a time period from Monday to Sunday for detection. + * + * @example + * {"start_hour":0,"end_hour":24, "days":[0], "time_zone":"Local"} + */ + customSchedule?: string; + /** + * @remarks + * The interval at which detection requests are sent. Valid values: 1, 5, and 15. Unit: minutes. Default value: 1. + * + * @example + * 1 + */ + interval?: string; + /** + * @remarks + * The unit of the metric. + * + * Unit: milliseconds. + * + * @example + * ms + */ + intervalUnit?: string; + /** + * @remarks + * The information of the detection points. The value is a JSON array. Example: `[{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}]`. The values of the `city` field indicate Beijing, Hangzhou, and Qingdao. + * + * > You can call the DescribeSiteMonitorISPCityList operation to query the detection points. For more information, see [DescribeSiteMonitorISPCityList](https://help.aliyun.com/document_detail/115045.html). If you leave this parameter empty, the system randomly selects three detection points. + * + * @example + * [{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}] + */ + ispCities?: string; + /** + * @remarks + * The extended options of the protocol that is used by the site monitoring task. The options vary based on the protocol. + * + * @example + * {"time_out":5000} + */ + optionsJson?: string; + regionId?: string; + /** + * @remarks + * The ID of the site monitoring task. + * + * This parameter is required. + * + * @example + * 2c8dbdf9-a3ab-46a1-85a4-f094965e**** + */ + taskId?: string; + /** + * @remarks + * The name of the site monitoring task. The name must be 4 to 100 characters in length, and can contain letters, digits, and underscores (_). + * + * @example + * HanZhou_ECS2 + */ + taskName?: string; + static names(): { [key: string]: string } { + return { + address: 'Address', + alertIds: 'AlertIds', + customSchedule: 'CustomSchedule', + interval: 'Interval', + intervalUnit: 'IntervalUnit', + ispCities: 'IspCities', + optionsJson: 'OptionsJson', + regionId: 'RegionId', + taskId: 'TaskId', + taskName: 'TaskName', + }; + } + + static types(): { [key: string]: any } { + return { + address: 'string', + alertIds: 'string', + customSchedule: 'string', + interval: 'string', + intervalUnit: 'string', + ispCities: 'string', + optionsJson: 'string', + regionId: 'string', + taskId: 'string', + taskName: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ModifySiteMonitorResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ModifySiteMonitorResponse.ts new file mode 100644 index 0000000..387a1f9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ModifySiteMonitorResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { ModifySiteMonitorResponseBody } from "./ModifySiteMonitorResponseBody"; + + +export class ModifySiteMonitorResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: ModifySiteMonitorResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: ModifySiteMonitorResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/ModifySiteMonitorResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/ModifySiteMonitorResponseBody.ts new file mode 100644 index 0000000..b1a14ae --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/ModifySiteMonitorResponseBody.ts @@ -0,0 +1,109 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class ModifySiteMonitorResponseBodyData extends $dara.Model { + /** + * @remarks + * The number of site monitoring tasks. + * + * @example + * 1 + */ + count?: number; + static names(): { [key: string]: string } { + return { + count: 'count', + }; + } + + static types(): { [key: string]: any } { + return { + count: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class ModifySiteMonitorResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The result of modifying the task. + */ + data?: ModifySiteMonitorResponseBodyData; + /** + * @remarks + * The returned message. + * + * @example + * successful + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 68192f5d-0d45-4b98-9724-892813f86c71 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + data: 'Data', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + data: ModifySiteMonitorResponseBodyData, + message: 'string', + requestId: 'string', + success: 'string', + }; + } + + validate() { + if(this.data && typeof (this.data as any).validate === 'function') { + (this.data as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/NotificationStrategy.ts b/backend/node_modules/@alicloud/cms20190101/src/models/NotificationStrategy.ts new file mode 100644 index 0000000..c5addf0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/NotificationStrategy.ts @@ -0,0 +1,456 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class NotificationStrategyEscalationSettingCustomChannels extends $dara.Model { + /** + * @remarks + * This parameter is required. + */ + channelType?: string; + severities?: string[]; + templateUuid?: string; + static names(): { [key: string]: string } { + return { + channelType: 'ChannelType', + severities: 'Severities', + templateUuid: 'TemplateUuid', + }; + } + + static types(): { [key: string]: any } { + 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?: { [key: string]: any }) { + super(map); + } +} + +export class NotificationStrategyEscalationSetting extends $dara.Model { + autoResolveMin?: number; + customChannels?: NotificationStrategyEscalationSettingCustomChannels[]; + escalationLevel?: string; + escalationUuid?: string; + range?: string; + retriggerMin?: number; + static names(): { [key: string]: string } { + return { + autoResolveMin: 'AutoResolveMin', + customChannels: 'CustomChannels', + escalationLevel: 'EscalationLevel', + escalationUuid: 'EscalationUuid', + range: 'Range', + retriggerMin: 'RetriggerMin', + }; + } + + static types(): { [key: string]: any } { + 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?: { [key: string]: any }) { + super(map); + } +} + +export class NotificationStrategyFilterSettingBlackList extends $dara.Model { + /** + * @remarks + * This parameter is required. + */ + field?: string; + /** + * @remarks + * This parameter is required. + */ + op?: string; + /** + * @remarks + * This parameter is required. + */ + value?: string; + static names(): { [key: string]: string } { + return { + field: 'Field', + op: 'Op', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + field: 'string', + op: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class NotificationStrategyFilterSettingWhiteList extends $dara.Model { + /** + * @remarks + * This parameter is required. + */ + field?: string; + /** + * @remarks + * This parameter is required. + */ + op?: string; + /** + * @remarks + * This parameter is required. + */ + value?: string; + static names(): { [key: string]: string } { + return { + field: 'Field', + op: 'Op', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + field: 'string', + op: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class NotificationStrategyFilterSetting extends $dara.Model { + blackList?: NotificationStrategyFilterSettingBlackList[][]; + whiteList?: NotificationStrategyFilterSettingWhiteList[][]; + static names(): { [key: string]: string } { + return { + blackList: 'BlackList', + whiteList: 'WhiteList', + }; + } + + static types(): { [key: string]: any } { + 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?: { [key: string]: any }) { + super(map); + } +} + +export class NotificationStrategyGroupingSettingGroupingItems extends $dara.Model { + keys?: string[]; + type?: string; + static names(): { [key: string]: string } { + return { + keys: 'Keys', + type: 'Type', + }; + } + + static types(): { [key: string]: any } { + return { + keys: { 'type': 'array', 'itemType': 'string' }, + type: 'string', + }; + } + + validate() { + if(Array.isArray(this.keys)) { + $dara.Model.validateArray(this.keys); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class NotificationStrategyGroupingSetting extends $dara.Model { + enableRawAlertDispatching?: boolean; + groupingItems?: NotificationStrategyGroupingSettingGroupingItems[]; + periodMin?: number; + silenceSec?: number; + times?: number; + static names(): { [key: string]: string } { + return { + enableRawAlertDispatching: 'EnableRawAlertDispatching', + groupingItems: 'GroupingItems', + periodMin: 'PeriodMin', + silenceSec: 'SilenceSec', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + 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?: { [key: string]: any }) { + super(map); + } +} + +export class NotificationStrategyPushingSetting extends $dara.Model { + pushingDataFormat?: string; + range?: string; + targetUuids?: string[]; + templateUuid?: string; + static names(): { [key: string]: string } { + return { + pushingDataFormat: 'PushingDataFormat', + range: 'Range', + targetUuids: 'TargetUuids', + templateUuid: 'TemplateUuid', + }; + } + + static types(): { [key: string]: any } { + 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?: { [key: string]: any }) { + super(map); + } +} + +export class NotificationStrategyRouteSettingRoutesConditions extends $dara.Model { + field?: string; + op?: string; + value?: string; + static names(): { [key: string]: string } { + return { + field: 'Field', + op: 'Op', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + field: 'string', + op: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class NotificationStrategyRouteSettingRoutes extends $dara.Model { + conditions?: NotificationStrategyRouteSettingRoutesConditions[]; + escalationUuid?: string; + static names(): { [key: string]: string } { + return { + conditions: 'Conditions', + escalationUuid: 'EscalationUuid', + }; + } + + static types(): { [key: string]: any } { + return { + conditions: { 'type': 'array', 'itemType': NotificationStrategyRouteSettingRoutesConditions }, + escalationUuid: 'string', + }; + } + + validate() { + if(Array.isArray(this.conditions)) { + $dara.Model.validateArray(this.conditions); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class NotificationStrategyRouteSetting extends $dara.Model { + routes?: NotificationStrategyRouteSettingRoutes[]; + static names(): { [key: string]: string } { + return { + routes: 'Routes', + }; + } + + static types(): { [key: string]: any } { + return { + routes: { 'type': 'array', 'itemType': NotificationStrategyRouteSettingRoutes }, + }; + } + + validate() { + if(Array.isArray(this.routes)) { + $dara.Model.validateArray(this.routes); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class NotificationStrategy extends $dara.Model { + createTime?: string; + description?: string; + escalationSetting?: NotificationStrategyEscalationSetting; + filterSetting?: NotificationStrategyFilterSetting; + groupingSetting?: NotificationStrategyGroupingSetting; + /** + * @remarks + * This parameter is required. + */ + name?: string; + product?: string; + pushingSetting?: NotificationStrategyPushingSetting; + routeSetting?: NotificationStrategyRouteSetting; + updateTime?: string; + userId?: string; + uuid?: string; + static names(): { [key: string]: string } { + 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(): { [key: string]: any } { + 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 as any).validate === 'function') { + (this.escalationSetting as any).validate(); + } + if(this.filterSetting && typeof (this.filterSetting as any).validate === 'function') { + (this.filterSetting as any).validate(); + } + if(this.groupingSetting && typeof (this.groupingSetting as any).validate === 'function') { + (this.groupingSetting as any).validate(); + } + if(this.pushingSetting && typeof (this.pushingSetting as any).validate === 'function') { + (this.pushingSetting as any).validate(); + } + if(this.routeSetting && typeof (this.routeSetting as any).validate === 'function') { + (this.routeSetting as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/NotificationTemplate.ts b/backend/node_modules/@alicloud/cms20190101/src/models/NotificationTemplate.ts new file mode 100644 index 0000000..26b6aaf --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/NotificationTemplate.ts @@ -0,0 +1,102 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class NotificationTemplate extends $dara.Model { + createTime?: string; + description?: string; + /** + * @example + * Alarm $.alertName + */ + enContent?: string; + /** + * @example + * Alarm $.alertName + */ + enItemContent?: string; + /** + * @example + * Alarm $.alertName + */ + enTitle?: string; + /** + * @remarks + * This parameter is required. + */ + name?: string; + /** + * @example + * DATA, SMS, ONCALL, MAIL, DING, WEIXIN, FEISHU, SLACK + */ + type?: string; + updateTime?: string; + userId?: string; + uuid?: string; + /** + * @example + * TEXT, MARKDOWN,CARD + */ + wraperType?: string; + /** + * @example + * 报警 $.alertName + */ + zhContent?: string; + /** + * @example + * 报警 $.alertName + */ + zhItemContent?: string; + /** + * @example + * 报警通知 $.alertName + */ + zhTitle?: string; + static names(): { [key: string]: string } { + return { + createTime: 'CreateTime', + description: 'Description', + enContent: 'EnContent', + enItemContent: 'EnItemContent', + enTitle: 'EnTitle', + name: 'Name', + type: 'Type', + updateTime: 'UpdateTime', + userId: 'UserId', + uuid: 'Uuid', + wraperType: 'WraperType', + zhContent: 'ZhContent', + zhItemContent: 'ZhItemContent', + zhTitle: 'ZhTitle', + }; + } + + static types(): { [key: string]: any } { + return { + createTime: 'string', + description: 'string', + enContent: 'string', + enItemContent: 'string', + enTitle: 'string', + name: 'string', + type: 'string', + updateTime: 'string', + userId: 'string', + uuid: 'string', + wraperType: 'string', + zhContent: 'string', + zhItemContent: 'string', + zhTitle: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PushingTarget.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PushingTarget.ts new file mode 100644 index 0000000..a112859 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PushingTarget.ts @@ -0,0 +1,134 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PushingTargetHttpRequestTargetHeaders extends $dara.Model { + key?: string; + value?: string; + static names(): { [key: string]: string } { + return { + key: 'Key', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + key: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PushingTargetHttpRequestTarget extends $dara.Model { + contentType?: string; + encryptSignatureKey?: string; + encryptString?: string; + encryptTimestampKey?: string; + headers?: PushingTargetHttpRequestTargetHeaders[]; + method?: string; + url?: string; + static names(): { [key: string]: string } { + return { + contentType: 'ContentType', + encryptSignatureKey: 'EncryptSignatureKey', + encryptString: 'EncryptString', + encryptTimestampKey: 'EncryptTimestampKey', + headers: 'Headers', + method: 'Method', + url: 'Url', + }; + } + + static types(): { [key: string]: any } { + return { + contentType: 'string', + encryptSignatureKey: 'string', + encryptString: 'string', + encryptTimestampKey: 'string', + headers: { 'type': 'array', 'itemType': PushingTargetHttpRequestTargetHeaders }, + method: 'string', + url: 'string', + }; + } + + validate() { + if(Array.isArray(this.headers)) { + $dara.Model.validateArray(this.headers); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PushingTarget extends $dara.Model { + arn?: string; + createTime?: string; + description?: string; + httpRequestTarget?: PushingTargetHttpRequestTarget; + /** + * @remarks + * This parameter is required. + */ + name?: string; + range?: string; + templateUuid?: string; + type?: string; + updateTime?: string; + userId?: string; + uuid?: string; + static names(): { [key: string]: string } { + return { + arn: 'Arn', + createTime: 'CreateTime', + description: 'Description', + httpRequestTarget: 'HttpRequestTarget', + name: 'Name', + range: 'Range', + templateUuid: 'TemplateUuid', + type: 'Type', + updateTime: 'UpdateTime', + userId: 'UserId', + uuid: 'Uuid', + }; + } + + static types(): { [key: string]: any } { + return { + arn: 'string', + createTime: 'string', + description: 'string', + httpRequestTarget: PushingTargetHttpRequestTarget, + name: 'string', + range: 'string', + templateUuid: 'string', + type: 'string', + updateTime: 'string', + userId: 'string', + uuid: 'string', + }; + } + + validate() { + if(this.httpRequestTarget && typeof (this.httpRequestTarget as any).validate === 'function') { + (this.httpRequestTarget as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutContactGroupRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutContactGroupRequest.ts new file mode 100644 index 0000000..f775212 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutContactGroupRequest.ts @@ -0,0 +1,76 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutContactGroupRequest extends $dara.Model { + /** + * @remarks + * The name of the alert contact group. + * + * For information about how to obtain the name of an alert contact group, see [DescribeContactGroupList](https://help.aliyun.com/document_detail/114922.html). + * + * This parameter is required. + * + * @example + * ECS_Group + */ + contactGroupName?: string; + /** + * @remarks + * The name of the alert contact. Valid values of N: 1 to 100. + * + * @example + * Alice + */ + contactNames?: string[]; + /** + * @remarks + * The description of the alert contact group. + * + * @example + * ECS_Alert_Group + */ + describe?: string; + /** + * @remarks + * Specifies whether to enable the weekly report subscription feature. Valid values: + * + * * true: The weekly report subscription feature is enabled. + * * false: The weekly report subscription feature is disabled. + * + * > You can enable the weekly report subscription feature only for an Alibaba Cloud account that has at least five Elastic Compute Service (ECS) instances. + * + * @example + * true + */ + enableSubscribed?: boolean; + static names(): { [key: string]: string } { + return { + contactGroupName: 'ContactGroupName', + contactNames: 'ContactNames', + describe: 'Describe', + enableSubscribed: 'EnableSubscribed', + }; + } + + static types(): { [key: string]: any } { + return { + contactGroupName: 'string', + contactNames: { 'type': 'array', 'itemType': 'string' }, + describe: 'string', + enableSubscribed: 'boolean', + }; + } + + validate() { + if(Array.isArray(this.contactNames)) { + $dara.Model.validateArray(this.contactNames); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutContactGroupResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutContactGroupResponse.ts new file mode 100644 index 0000000..3119e11 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutContactGroupResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { PutContactGroupResponseBody } from "./PutContactGroupResponseBody"; + + +export class PutContactGroupResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: PutContactGroupResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutContactGroupResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutContactGroupResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutContactGroupResponseBody.ts new file mode 100644 index 0000000..41fcb47 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutContactGroupResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutContactGroupResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * Illegal parameters. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * B4E30DB6-F069-5D0B-A589-2A89F7D62A57 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutContactRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutContactRequest.ts new file mode 100644 index 0000000..2aac506 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutContactRequest.ts @@ -0,0 +1,137 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutContactRequestChannels extends $dara.Model { + /** + * @remarks + * The TradeManager ID of the alert contact. + * + * Specify at least one of the following alert notification methods: email address and DingTalk chatbot. + * + * @example + * Jim + */ + aliIM?: string; + /** + * @remarks + * The webhook URL of the DingTalk chatbot. + * + * Specify at least one of the following alert notification methods: email address and DingTalk chatbot. + * + * @example + * https://oapi.dingtalk.com/robot/send?access_token=7d49515e8ebf21106a80a9cc4bb3d247771305d52fb15d6201234565**** + */ + dingWebHook?: string; + /** + * @remarks + * The email address. After you add or modify an email address, the recipient receives an email that contains an activation link. The system adds the recipient to the list of alert contacts only after the recipient activates the email address. + * + * Specify at least one of the following alert notification methods: email address and DingTalk chatbot. + * + * @example + * test@aliyun.com + */ + mail?: string; + /** + * @remarks + * The phone number of the alert contact. After you add or modify a phone number, the recipient receives a text message that contains an activation link. The system adds the recipient to the list of alert contacts only after the recipient activates the phone number. + * + * Specify at least one of the following alert notification methods: email address and DingTalk chatbot. + * + * @example + * 1333333**** + */ + SMS?: string; + static names(): { [key: string]: string } { + return { + aliIM: 'AliIM', + dingWebHook: 'DingWebHook', + mail: 'Mail', + SMS: 'SMS', + }; + } + + static types(): { [key: string]: any } { + return { + aliIM: 'string', + dingWebHook: 'string', + mail: 'string', + SMS: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutContactRequest extends $dara.Model { + channels?: PutContactRequestChannels; + /** + * @remarks + * The name of the alert contact. + * + * This parameter is required. + * + * @example + * Alice + */ + contactName?: string; + /** + * @remarks + * The description of the alert contact. + * + * This parameter is required. + * + * @example + * ECS_Instance + */ + describe?: string; + /** + * @remarks + * The language in which the alert information is displayed. Valid values: + * + * * zh-cn: simplified Chinese + * * en: English + * + * > If you do not specify this parameter, CloudMonitor identifies the language of the alert information based on the region of your Alibaba Cloud account. + * + * @example + * zh-cn + */ + lang?: string; + static names(): { [key: string]: string } { + return { + channels: 'Channels', + contactName: 'ContactName', + describe: 'Describe', + lang: 'Lang', + }; + } + + static types(): { [key: string]: any } { + return { + channels: PutContactRequestChannels, + contactName: 'string', + describe: 'string', + lang: 'string', + }; + } + + validate() { + if(this.channels && typeof (this.channels as any).validate === 'function') { + (this.channels as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutContactResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutContactResponse.ts new file mode 100644 index 0000000..169f0cb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutContactResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { PutContactResponseBody } from "./PutContactResponseBody"; + + +export class PutContactResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: PutContactResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutContactResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutContactResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutContactResponseBody.ts new file mode 100644 index 0000000..f0ef40d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutContactResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutContactResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 181C406E-9DE4-484C-9C61-37AE9A1A12EE + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomEventRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomEventRequest.ts new file mode 100644 index 0000000..21dbe70 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomEventRequest.ts @@ -0,0 +1,111 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutCustomEventRequestEventInfo extends $dara.Model { + /** + * @remarks + * The event content. Valid values of N: 1 to 50. + * + * This parameter is required. + * + * @example + * IOException + */ + content?: string; + /** + * @remarks + * The event name. Valid values of N: 1 to 50. + * + * This parameter is required. + * + * @example + * myEvent + */ + eventName?: string; + /** + * @remarks + * The ID of the application group. Valid values of N: 1 to 50. + * + * Default value: 0. This value indicates that the event to be reported does not belong to any application group. + * + * @example + * 123456 + */ + groupId?: string; + /** + * @remarks + * The time when the event occurred. + * + * Format: `yyyyMMddTHHmmss.SSSZ`. + * + * Valid values of N: 1 to 50. + * + * > You can also specify a UNIX timestamp. Example: 1552199984000. Unit: milliseconds. + * + * @example + * 20171013T170923.456+0800 + */ + time?: string; + static names(): { [key: string]: string } { + return { + content: 'Content', + eventName: 'EventName', + groupId: 'GroupId', + time: 'Time', + }; + } + + static types(): { [key: string]: any } { + return { + content: 'string', + eventName: 'string', + groupId: 'string', + time: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutCustomEventRequest extends $dara.Model { + /** + * @remarks + * The event details. + * + * This parameter is required. + */ + eventInfo?: PutCustomEventRequestEventInfo[]; + regionId?: string; + static names(): { [key: string]: string } { + return { + eventInfo: 'EventInfo', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + eventInfo: { 'type': 'array', 'itemType': PutCustomEventRequestEventInfo }, + regionId: 'string', + }; + } + + validate() { + if(Array.isArray(this.eventInfo)) { + $dara.Model.validateArray(this.eventInfo); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomEventResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomEventResponse.ts new file mode 100644 index 0000000..aee7bdb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomEventResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { PutCustomEventResponseBody } from "./PutCustomEventResponseBody"; + + +export class PutCustomEventResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: PutCustomEventResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutCustomEventResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomEventResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomEventResponseBody.ts new file mode 100644 index 0000000..400589d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomEventResponseBody.ts @@ -0,0 +1,56 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutCustomEventResponseBody extends $dara.Model { + /** + * @remarks + * The responses code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 131DD9C8-9A32-4428-AD2E-4E3013B6E3A7 + */ + requestId?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomEventRuleRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomEventRuleRequest.ts new file mode 100644 index 0000000..865b69d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomEventRuleRequest.ts @@ -0,0 +1,153 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutCustomEventRuleRequest extends $dara.Model { + /** + * @remarks + * The alert contact group that receives alert notifications. Separate multiple contact groups with commas (,). + * + * This parameter is required. + * + * @example + * ECS_Group + */ + contactGroups?: string; + /** + * @remarks + * The time period during which the alert rule is effective. Valid values: 00:00 to 23:59. + * + * @example + * 00:00-23:59 + */ + effectiveInterval?: string; + /** + * @remarks + * The subject of the alert notification email. + */ + emailSubject?: string; + /** + * @remarks + * The name of the custom event. For more information about how to obtain the event name, see [DescribeCustomEventAttribute](https://help.aliyun.com/document_detail/115262.html). + * + * This parameter is required. + * + * @example + * HostDown + */ + eventName?: string; + /** + * @remarks + * The ID of the application group. For more information about how to obtain the group ID, see [DescribeCustomEventAttribute](https://help.aliyun.com/document_detail/115262.html). + * + * > The value 0 indicates that the reported custom event does not belong to any application Group. + * + * This parameter is required. + * + * @example + * 7378**** + */ + groupId?: string; + /** + * @remarks + * The level of the alert. Valid values: + * + * * CRITICAL: critical issue + * * WARN: warning + * * INFO: information + * + * This parameter is required. + * + * @example + * CRITICAL + */ + level?: string; + /** + * @remarks + * The cycle that is used to aggregate monitoring data of the custom event. Unit: seconds. Set the value to an integral multiple of 60. Default value: 300. + * + * @example + * 60 + */ + period?: string; + /** + * @remarks + * The ID of the alert rule. + * + * > You can specify an existing ID to modify the corresponding alert rule or specify a new ID to create an alert rule. + * + * This parameter is required. + * + * @example + * CustomRuleId1 + */ + ruleId?: string; + /** + * @remarks + * The name of the alert rule. + * + * This parameter is required. + * + * @example + * CustomeRule + */ + ruleName?: string; + /** + * @remarks + * The alert threshold. + * + * This parameter is required. + * + * @example + * 99 + */ + threshold?: string; + /** + * @remarks + * The callback URL to which a POST request is sent when an alert is triggered based on the alert rule. + * + * @example + * https://www.aliyun.com + */ + webhook?: string; + static names(): { [key: string]: string } { + return { + contactGroups: 'ContactGroups', + effectiveInterval: 'EffectiveInterval', + emailSubject: 'EmailSubject', + eventName: 'EventName', + groupId: 'GroupId', + level: 'Level', + period: 'Period', + ruleId: 'RuleId', + ruleName: 'RuleName', + threshold: 'Threshold', + webhook: 'Webhook', + }; + } + + static types(): { [key: string]: any } { + return { + contactGroups: 'string', + effectiveInterval: 'string', + emailSubject: 'string', + eventName: 'string', + groupId: 'string', + level: 'string', + period: 'string', + ruleId: 'string', + ruleName: 'string', + threshold: 'string', + webhook: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomEventRuleResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomEventRuleResponse.ts new file mode 100644 index 0000000..48ff7d6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomEventRuleResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { PutCustomEventRuleResponseBody } from "./PutCustomEventRuleResponseBody"; + + +export class PutCustomEventRuleResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: PutCustomEventRuleResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutCustomEventRuleResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomEventRuleResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomEventRuleResponseBody.ts new file mode 100644 index 0000000..b210f9d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomEventRuleResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutCustomEventRuleResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The value 200 indicates that the call was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The request has failed due to a temporary failure of the server. + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * AD5DCD82-BD1C-405F-BAED-32302DE9F498 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call was successful. Valid values: + * + * * true: The call was successful. + * * false: The call failed. + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomMetricRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomMetricRequest.ts new file mode 100644 index 0000000..0520caf --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomMetricRequest.ts @@ -0,0 +1,161 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutCustomMetricRequestMetricList extends $dara.Model { + /** + * @remarks + * The dimensions based on which the resources are queried. Valid values of N: 1 to 21. + * + * Set this parameter to a collection of key-value pairs. Format: `{"Key":"Value"}`. + * + * The key or value must be 1 to 64 bytes in length. Excessive characters are truncated. + * + * The key or value can contain letters, digits, periods (.), hyphens (-), underscores (_), forward slashes (/), and backslashes (\\\\). + * + * > Dimensions must be formatted as a JSON string in a specified order. + * + * This parameter is required. + * + * @example + * {"sampleName1":"value1","sampleName2":"value2"} + */ + dimensions?: string; + /** + * @remarks + * The ID of the application group. Valid values of N: 1 to 21. + * + * > If the metric does not belong to any application group, enter 0. + * + * This parameter is required. + * + * @example + * 12345 + */ + groupId?: string; + /** + * @remarks + * The metric name. Valid values of N: 1 to 21. For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The aggregation period. Valid values of N: 1 to 21. Unit: seconds. Valid values: 60 and 300. + * + * > If the Type parameter is set to 1, the Period parameter is required. + * + * @example + * 60 + */ + period?: string; + /** + * @remarks + * The timestamp when the metric data is generated. Valid values of N: 1 to 21. The timestamp can be in one of the following formats: + * + * * A UTC timestamp in the YYYY-MM-DDThh:mm:ssZ format. Example: 20171012T132456.888+0800. + * * A UNIX timestamp of the LONG type. Example: 1508136760000. + * + * @example + * 1508136760000 + */ + time?: string; + /** + * @remarks + * The type of the monitoring data. Valid values of N: 1 to 21. Valid values: + * + * * 0: raw data + * * 1: aggregate data + * + * > We recommend that you report aggregate data in both the aggregation periods of 60 seconds and 300 seconds. Otherwise, you cannot query monitoring data in a time span that is more than seven days. + * + * This parameter is required. + * + * @example + * 0 + */ + type?: string; + /** + * @remarks + * The collection of metric values. Valid values of N: 1 to 21. + * + * > If the Type parameter is set to 0, the keys in this parameter must be set to the specified value. CloudMonitor aggregates raw data in each aggregation period to generate multiple statistical values, such as the maximum value, the count, and the total value. + * + * This parameter is required. + * + * @example + * {"value":10.5} + */ + values?: string; + static names(): { [key: string]: string } { + return { + dimensions: 'Dimensions', + groupId: 'GroupId', + metricName: 'MetricName', + period: 'Period', + time: 'Time', + type: 'Type', + values: 'Values', + }; + } + + static types(): { [key: string]: any } { + return { + dimensions: 'string', + groupId: 'string', + metricName: 'string', + period: 'string', + time: 'string', + type: 'string', + values: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutCustomMetricRequest extends $dara.Model { + /** + * @remarks + * The monitoring data. + * + * This parameter is required. + */ + metricList?: PutCustomMetricRequestMetricList[]; + regionId?: string; + static names(): { [key: string]: string } { + return { + metricList: 'MetricList', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + metricList: { 'type': 'array', 'itemType': PutCustomMetricRequestMetricList }, + regionId: 'string', + }; + } + + validate() { + if(Array.isArray(this.metricList)) { + $dara.Model.validateArray(this.metricList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomMetricResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomMetricResponse.ts new file mode 100644 index 0000000..a6bf837 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomMetricResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { PutCustomMetricResponseBody } from "./PutCustomMetricResponseBody"; + + +export class PutCustomMetricResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: PutCustomMetricResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutCustomMetricResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomMetricResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomMetricResponseBody.ts new file mode 100644 index 0000000..9fae82d --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomMetricResponseBody.ts @@ -0,0 +1,56 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutCustomMetricResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The request has failed due to a temporary failure of the server. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 05B36C2C-5F6E-48D5-8B41-CE36DD7EE8E0 + */ + requestId?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomMetricRuleRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomMetricRuleRequest.ts new file mode 100644 index 0000000..5932801 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomMetricRuleRequest.ts @@ -0,0 +1,218 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutCustomMetricRuleRequest extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold. Valid values: + * + * * `>=` + * * `=` + * * `<=` + * * `>` + * * `<` + * * `!=` + * + * This parameter is required. + * + * @example + * >= + */ + comparisonOperator?: string; + /** + * @remarks + * The alert contact groups. Separate multiple alert contact groups with commas (,). + * + * This parameter is required. + * + * @example + * ECS_Group + */ + contactGroups?: string; + /** + * @remarks + * The period of time during which the alert rule is effective. Valid values: 00:00 to 23:59. + * + * @example + * 00:00-23:59 + */ + effectiveInterval?: string; + /** + * @remarks + * The subject of the alert notification email. + */ + emailSubject?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before an alert is triggered. + * + * This parameter is required. + * + * @example + * 3 + */ + evaluationCount?: number; + /** + * @remarks + * The ID of the application group to which the custom monitoring data belongs. + * + * > The value 0 indicates that the reported custom monitoring data does not belong to an application group. + * + * @example + * 7378**** + */ + groupId?: string; + /** + * @remarks + * The alert level. Valid values: + * + * * CRITICAL + * * WARN + * * INFO + * + * This parameter is required. + * + * @example + * CRITICAL + */ + level?: string; + /** + * @remarks + * The metric name. + * + * > For more information about how to obtain the metric name, see [DescribeCustomMetricList](https://help.aliyun.com/document_detail/115005.html). + * + * This parameter is required. + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The cycle that is used to aggregate custom monitoring data. Unit: seconds Set the value to an integral multiple of 60. The original reporting cycle of custom monitoring data is used by default. + * + * @example + * 300 + */ + period?: string; + /** + * @remarks + * The custom monitoring data to which the alert rule applies. The value includes the application group ID to which the custom monitoring data belongs and the dimension to which the metric belongs. + * + * This parameter is required. + * + * @example + * [{"groupId":7378****,"dimension":"instanceId=i-hp3543t5e4sudb3s****"}] + */ + resources?: string; + /** + * @remarks + * The ID of the alert rule. + * + * > You can specify an existing ID to modify the corresponding alert rule or specify a new ID to create an alert rule. + * + * This parameter is required. + * + * @example + * MyRuleId1 + */ + ruleId?: string; + /** + * @remarks + * The name of the alert rule. + * + * @example + * CpuUsage + */ + 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, which is equivalent to one day. + * + * > Only one alert notification is sent during each mute period even if the metric value exceeds the alert threshold several times. + * + * @example + * 86400 + */ + silenceTime?: number; + /** + * @remarks + * The method used to calculate the metric value based on which alerts are triggered. + * + * This parameter is required. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The alert threshold. + * + * This parameter is required. + * + * @example + * 90 + */ + threshold?: string; + /** + * @remarks + * The callback URL to which a POST request is sent when an alert is triggered based on the alert rule. + * + * @example + * https://www.aliyun.com + */ + webhook?: string; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + contactGroups: 'ContactGroups', + effectiveInterval: 'EffectiveInterval', + emailSubject: 'EmailSubject', + evaluationCount: 'EvaluationCount', + groupId: 'GroupId', + level: 'Level', + metricName: 'MetricName', + period: 'Period', + resources: 'Resources', + ruleId: 'RuleId', + ruleName: 'RuleName', + silenceTime: 'SilenceTime', + statistics: 'Statistics', + threshold: 'Threshold', + webhook: 'Webhook', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + contactGroups: 'string', + effectiveInterval: 'string', + emailSubject: 'string', + evaluationCount: 'number', + groupId: 'string', + level: 'string', + metricName: 'string', + period: 'string', + resources: 'string', + ruleId: 'string', + ruleName: 'string', + silenceTime: 'number', + statistics: 'string', + threshold: 'string', + webhook: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomMetricRuleResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomMetricRuleResponse.ts new file mode 100644 index 0000000..ad43e8a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomMetricRuleResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { PutCustomMetricRuleResponseBody } from "./PutCustomMetricRuleResponseBody"; + + +export class PutCustomMetricRuleResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: PutCustomMetricRuleResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutCustomMetricRuleResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomMetricRuleResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomMetricRuleResponseBody.ts new file mode 100644 index 0000000..aefbd49 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutCustomMetricRuleResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutCustomMetricRuleResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. If the request was successful, the return value is null. If the request failed, an error message is returned. + * + * @example + * ComparisonOperator is mandatory for this action. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 65D50468-ECEF-48F1-A6E1-D952E89D9432 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutEventRuleRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutEventRuleRequest.ts new file mode 100644 index 0000000..f657701 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutEventRuleRequest.ts @@ -0,0 +1,198 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutEventRuleRequestEventPattern extends $dara.Model { + /** + * @remarks + * The keyword that is used to filter events. If the content of an event contains the specified keyword, an alert is automatically triggered. + * + * @example + * Stopping + */ + customFilters?: string; + /** + * @example + * Exception + */ + eventTypeList?: string[]; + /** + * @example + * CRITICAL + */ + levelList?: string[]; + /** + * @example + * Agent_Status_Stopped + */ + nameList?: string[]; + /** + * @remarks + * The type of the cloud service. Valid values of N: 1 to 50. + * + * > You can call the DescribeSystemEventMetaList operation to query the cloud services that support event-triggered alerts. For more information, see [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html). + * + * This parameter is required. + * + * @example + * ecs + */ + product?: string; + /** + * @remarks + * The SQL condition that is used to filter events. If the content of an event meets the specified SQL condition, an alert is automatically triggered. + * + * > The syntax of SQL event filtering is consistent with the query syntax of Log Service. + * + * @example + * 192.168.XX.XX and Executed + */ + SQLFilter?: string; + /** + * @example + * Failed + */ + statusList?: string[]; + static names(): { [key: string]: string } { + return { + customFilters: 'CustomFilters', + eventTypeList: 'EventTypeList', + levelList: 'LevelList', + nameList: 'NameList', + product: 'Product', + SQLFilter: 'SQLFilter', + statusList: 'StatusList', + }; + } + + static types(): { [key: string]: any } { + return { + customFilters: 'string', + eventTypeList: { 'type': 'array', 'itemType': 'string' }, + levelList: { 'type': 'array', 'itemType': 'string' }, + nameList: { 'type': 'array', 'itemType': 'string' }, + product: 'string', + SQLFilter: 'string', + statusList: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.eventTypeList)) { + $dara.Model.validateArray(this.eventTypeList); + } + if(Array.isArray(this.levelList)) { + $dara.Model.validateArray(this.levelList); + } + if(Array.isArray(this.nameList)) { + $dara.Model.validateArray(this.nameList); + } + if(Array.isArray(this.statusList)) { + $dara.Model.validateArray(this.statusList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutEventRuleRequest extends $dara.Model { + /** + * @remarks + * The description of the event-triggered alert rule. + */ + description?: string; + /** + * @remarks + * This parameter is required. + */ + eventPattern?: PutEventRuleRequestEventPattern[]; + /** + * @remarks + * The type of the event-triggered alert rule. Valid values: + * + * * SYSTEM: system event-triggered alert rule + * * CUSTOM: custom event-triggered alert rule + * + * @example + * SYSTEM + */ + eventType?: string; + /** + * @remarks + * The ID of the application group to which the event-triggered alert rule belongs. + * + * @example + * 7378**** + */ + groupId?: string; + regionId?: string; + /** + * @remarks + * The name of the event-triggered alert rule. + * + * This parameter is required. + * + * @example + * myRuleName + */ + ruleName?: string; + /** + * @remarks + * The mute period during which new alerts are not sent even if the trigger conditions are met. Unit: seconds. + * + * @example + * 86400 + */ + silenceTime?: number; + /** + * @remarks + * The status of the event-triggered alert rule. Valid values: + * + * * ENABLED: enabled + * * DISABLED: disabled + * + * @example + * ENABLED + */ + state?: string; + static names(): { [key: string]: string } { + return { + description: 'Description', + eventPattern: 'EventPattern', + eventType: 'EventType', + groupId: 'GroupId', + regionId: 'RegionId', + ruleName: 'RuleName', + silenceTime: 'SilenceTime', + state: 'State', + }; + } + + static types(): { [key: string]: any } { + return { + description: 'string', + eventPattern: { 'type': 'array', 'itemType': PutEventRuleRequestEventPattern }, + eventType: 'string', + groupId: 'string', + regionId: 'string', + ruleName: 'string', + silenceTime: 'number', + state: 'string', + }; + } + + validate() { + if(Array.isArray(this.eventPattern)) { + $dara.Model.validateArray(this.eventPattern); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutEventRuleResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutEventRuleResponse.ts new file mode 100644 index 0000000..1dba47b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutEventRuleResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { PutEventRuleResponseBody } from "./PutEventRuleResponseBody"; + + +export class PutEventRuleResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: PutEventRuleResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutEventRuleResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutEventRuleResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutEventRuleResponseBody.ts new file mode 100644 index 0000000..a9109a2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutEventRuleResponseBody.ts @@ -0,0 +1,79 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutEventRuleResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the call was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The number of event-triggered alert rules that were created or modified. + * + * @example + * 1 + */ + data?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The ID of the request. + * + * @example + * 0B47C47B-E68A-4429-BB23-370E91889C7D + */ + requestId?: string; + /** + * @remarks + * Indicates whether the call was successful. Valid values: + * + * * true: The call was successful. + * * false: The call failed. + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + data: 'Data', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + data: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutEventRuleTargetsRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutEventRuleTargetsRequest.ts new file mode 100644 index 0000000..41d161f --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutEventRuleTargetsRequest.ts @@ -0,0 +1,497 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutEventRuleTargetsRequestContactParameters extends $dara.Model { + /** + * @remarks + * The name of the alert contact group. Valid values of N: 1 to 5. + */ + contactGroupName?: string; + /** + * @remarks + * The ID of the recipient that receives alert notifications. Valid values of N: 1 to 5. + * + * @example + * 2 + */ + id?: string; + /** + * @remarks + * The alert notification methods. Valid values of N: 1 to 5. Valid values: + * + * 4: Alert notifications are sent by using DingTalk and emails. + * + * @example + * 3 + */ + level?: string; + static names(): { [key: string]: string } { + return { + contactGroupName: 'ContactGroupName', + id: 'Id', + level: 'Level', + }; + } + + static types(): { [key: string]: any } { + return { + contactGroupName: 'string', + id: 'string', + level: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutEventRuleTargetsRequestFcParameters extends $dara.Model { + /** + * @remarks + * The name of the function. Valid values of N: 1 to 5. + * + * @example + * fc-test + */ + functionName?: string; + /** + * @remarks + * The ID of the recipient that receives alert notifications. Valid values of N: 1 to 5. + * + * @example + * 1 + */ + id?: string; + /** + * @remarks + * The region where Function Compute is deployed. Valid values of N: 1 to 5. + * + * @example + * cn-hangzhou + */ + region?: string; + /** + * @remarks + * The name of the Function Compute service. Valid values of N: 1 to 5. + * + * @example + * fc-test + */ + serviceName?: string; + static names(): { [key: string]: string } { + return { + functionName: 'FunctionName', + id: 'Id', + region: 'Region', + serviceName: 'ServiceName', + }; + } + + static types(): { [key: string]: any } { + return { + functionName: 'string', + id: 'string', + region: 'string', + serviceName: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutEventRuleTargetsRequestMnsParameters extends $dara.Model { + /** + * @remarks + * The ID of the recipient that receives alert notifications. Valid values of N: 1 to 5. + * + * @example + * 3 + */ + id?: string; + /** + * @remarks + * The name of the SMQ queue. Valid values of N: 1 to 5. + * + * @example + * queue1 + */ + queue?: string; + /** + * @remarks + * The region for SMQ. Valid values of N: 1 to 5. + * + * @example + * cn-hangzhou + */ + region?: string; + /** + * @remarks + * The SMQ topic. + * + * @example + * topic_sample + */ + topic?: string; + static names(): { [key: string]: string } { + return { + id: 'Id', + queue: 'Queue', + region: 'Region', + topic: 'Topic', + }; + } + + static types(): { [key: string]: any } { + return { + id: 'string', + queue: 'string', + region: 'string', + topic: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutEventRuleTargetsRequestOpenApiParameters extends $dara.Model { + /** + * @remarks + * The API name. + * + * @example + * PutLogs + */ + action?: string; + /** + * @remarks + * The Alibaba Cloud Resource Name (ARN) of the resource. Valid values of N: 1 to 5. Format: `arn:acs:${Service}:${Region}:${Account}:${ResourceType}/${ResourceId}`. Fields: + * + * * Service: the code of a cloud service + * * Region: the region ID + * * Account: the ID of an Alibaba Cloud account + * * ResourceType: the resource type + * * ResourceId: the resource ID + */ + arn?: string; + /** + * @remarks + * The ID of the recipient that receives alert notifications sent by an API callback. + * + * @example + * 3 + */ + id?: string; + /** + * @remarks + * The parameters of the alert callback. Specify the parameters in the JSON format. + * + * @example + * {"customField1":"value1","customField2":"$.name"} + */ + jsonParams?: string; + /** + * @remarks + * The ID of the cloud service to which the API operation belongs. + * + * @example + * log + */ + product?: string; + /** + * @remarks + * The region where the resource resides. + * + * @example + * cn-hangzhou + */ + region?: string; + /** + * @remarks + * The name of the role. + * + * @example + * MyRole + */ + role?: string; + /** + * @remarks + * The version of the API. + * + * @example + * 2019-01-01 + */ + version?: string; + static names(): { [key: string]: string } { + return { + action: 'Action', + arn: 'Arn', + id: 'Id', + jsonParams: 'JsonParams', + product: 'Product', + region: 'Region', + role: 'Role', + version: 'Version', + }; + } + + static types(): { [key: string]: any } { + return { + action: 'string', + arn: 'string', + id: 'string', + jsonParams: 'string', + product: 'string', + region: 'string', + role: 'string', + version: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutEventRuleTargetsRequestSlsParameters extends $dara.Model { + /** + * @remarks + * The ID of the recipient that receives alert notifications. Valid values of N: 1 to 5. + * + * @example + * 5 + */ + id?: string; + /** + * @remarks + * The name of the Simple Log Service Logstore. Valid values of N: 1 to 5. + * + * @example + * testlogstore + */ + logStore?: string; + /** + * @remarks + * The name of the Simple Log Service project. Valid values of N: 1 to 5. + * + * @example + * testproject + */ + project?: string; + /** + * @remarks + * The region where Simple Log Service is deployed. Valid values of N: 1 to 5. + * + * @example + * cn-hangzhou + */ + region?: string; + static names(): { [key: string]: string } { + return { + id: 'Id', + logStore: 'LogStore', + project: 'Project', + region: 'Region', + }; + } + + static types(): { [key: string]: any } { + return { + id: 'string', + logStore: 'string', + project: 'string', + region: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutEventRuleTargetsRequestWebhookParameters extends $dara.Model { + /** + * @remarks + * The ID of the recipient that receives alert notifications. Valid values of N: 1 to 5. + * + * @example + * 4 + */ + id?: string; + /** + * @remarks + * The HTTP request method. Valid values of N: 1 to 5. + * + * Valid values: GET and POST. + * + * @example + * GET + */ + method?: string; + /** + * @remarks + * The name of the protocol. Valid values of N: 1 to 5. Valid values: + * + * * http + * * telnet + * * ping + * + * @example + * http + */ + protocol?: string; + /** + * @remarks + * The callback URL. Valid values of N: 1 to 5. + * + * @example + * http://www.aliyun.com + */ + url?: string; + static names(): { [key: string]: string } { + return { + id: 'Id', + method: 'Method', + protocol: 'Protocol', + url: 'Url', + }; + } + + static types(): { [key: string]: any } { + return { + id: 'string', + method: 'string', + protocol: 'string', + url: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutEventRuleTargetsRequest extends $dara.Model { + /** + * @remarks + * The information about the alert contact groups that receive alert notifications. + */ + contactParameters?: PutEventRuleTargetsRequestContactParameters[]; + /** + * @remarks + * The information about the recipients in Function Compute. + */ + fcParameters?: PutEventRuleTargetsRequestFcParameters[]; + /** + * @remarks + * The notifications of Simple Message Queue (formerly MNS) (SMQ). + */ + mnsParameters?: PutEventRuleTargetsRequestMnsParameters[]; + /** + * @remarks + * The parameters of API callback notification. + */ + openApiParameters?: PutEventRuleTargetsRequestOpenApiParameters[]; + regionId?: string; + /** + * @remarks + * The name of the alert rule. + * + * This parameter is required. + * + * @example + * testEventRule + */ + ruleName?: string; + /** + * @remarks + * The information about the recipients in Simple Log Service. + */ + slsParameters?: PutEventRuleTargetsRequestSlsParameters[]; + /** + * @remarks + * The information about the callback URLs that are used to receive alert notifications. + */ + webhookParameters?: PutEventRuleTargetsRequestWebhookParameters[]; + static names(): { [key: string]: string } { + return { + contactParameters: 'ContactParameters', + fcParameters: 'FcParameters', + mnsParameters: 'MnsParameters', + openApiParameters: 'OpenApiParameters', + regionId: 'RegionId', + ruleName: 'RuleName', + slsParameters: 'SlsParameters', + webhookParameters: 'WebhookParameters', + }; + } + + static types(): { [key: string]: any } { + return { + contactParameters: { 'type': 'array', 'itemType': PutEventRuleTargetsRequestContactParameters }, + fcParameters: { 'type': 'array', 'itemType': PutEventRuleTargetsRequestFcParameters }, + mnsParameters: { 'type': 'array', 'itemType': PutEventRuleTargetsRequestMnsParameters }, + openApiParameters: { 'type': 'array', 'itemType': PutEventRuleTargetsRequestOpenApiParameters }, + regionId: 'string', + ruleName: 'string', + slsParameters: { 'type': 'array', 'itemType': PutEventRuleTargetsRequestSlsParameters }, + webhookParameters: { 'type': 'array', 'itemType': PutEventRuleTargetsRequestWebhookParameters }, + }; + } + + validate() { + if(Array.isArray(this.contactParameters)) { + $dara.Model.validateArray(this.contactParameters); + } + if(Array.isArray(this.fcParameters)) { + $dara.Model.validateArray(this.fcParameters); + } + if(Array.isArray(this.mnsParameters)) { + $dara.Model.validateArray(this.mnsParameters); + } + if(Array.isArray(this.openApiParameters)) { + $dara.Model.validateArray(this.openApiParameters); + } + if(Array.isArray(this.slsParameters)) { + $dara.Model.validateArray(this.slsParameters); + } + if(Array.isArray(this.webhookParameters)) { + $dara.Model.validateArray(this.webhookParameters); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutEventRuleTargetsResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutEventRuleTargetsResponse.ts new file mode 100644 index 0000000..6e607a2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutEventRuleTargetsResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { PutEventRuleTargetsResponseBody } from "./PutEventRuleTargetsResponseBody"; + + +export class PutEventRuleTargetsResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: PutEventRuleTargetsResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutEventRuleTargetsResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutEventRuleTargetsResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutEventRuleTargetsResponseBody.ts new file mode 100644 index 0000000..2a4c7f0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutEventRuleTargetsResponseBody.ts @@ -0,0 +1,343 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutEventRuleTargetsResponseBodyFailedContactParametersContactParameter extends $dara.Model { + /** + * @remarks + * The name of the alert contact group. + */ + contactGroupName?: string; + /** + * @remarks + * The ID of the recipient. + * + * @example + * 2 + */ + id?: number; + /** + * @remarks + * The alert notification methods. Valid values: + * + * 4: Alert notifications are sent by using DingTalk and emails. + * + * @example + * 3 + */ + level?: string; + static names(): { [key: string]: string } { + return { + contactGroupName: 'ContactGroupName', + id: 'Id', + level: 'Level', + }; + } + + static types(): { [key: string]: any } { + return { + contactGroupName: 'string', + id: 'number', + level: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutEventRuleTargetsResponseBodyFailedContactParameters extends $dara.Model { + contactParameter?: PutEventRuleTargetsResponseBodyFailedContactParametersContactParameter[]; + static names(): { [key: string]: string } { + return { + contactParameter: 'ContactParameter', + }; + } + + static types(): { [key: string]: any } { + return { + contactParameter: { 'type': 'array', 'itemType': PutEventRuleTargetsResponseBodyFailedContactParametersContactParameter }, + }; + } + + validate() { + if(Array.isArray(this.contactParameter)) { + $dara.Model.validateArray(this.contactParameter); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutEventRuleTargetsResponseBodyFailedFcParametersFcParameter extends $dara.Model { + /** + * @remarks + * The name of the function. + * + * @example + * functionTest1 + */ + functionName?: string; + /** + * @remarks + * The ID of the recipient. + * + * @example + * 1 + */ + id?: number; + /** + * @remarks + * The region ID. + * + * @example + * cn-hangzhou + */ + region?: string; + /** + * @remarks + * The name of the Function Compute service. + * + * @example + * serviceTest1 + */ + serviceName?: string; + static names(): { [key: string]: string } { + return { + functionName: 'FunctionName', + id: 'Id', + region: 'Region', + serviceName: 'ServiceName', + }; + } + + static types(): { [key: string]: any } { + return { + functionName: 'string', + id: 'number', + region: 'string', + serviceName: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutEventRuleTargetsResponseBodyFailedFcParameters extends $dara.Model { + fcParameter?: PutEventRuleTargetsResponseBodyFailedFcParametersFcParameter[]; + static names(): { [key: string]: string } { + return { + fcParameter: 'FcParameter', + }; + } + + static types(): { [key: string]: any } { + return { + fcParameter: { 'type': 'array', 'itemType': PutEventRuleTargetsResponseBodyFailedFcParametersFcParameter }, + }; + } + + validate() { + if(Array.isArray(this.fcParameter)) { + $dara.Model.validateArray(this.fcParameter); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutEventRuleTargetsResponseBodyFailedMnsParametersMnsParameter extends $dara.Model { + /** + * @remarks + * The ID of the recipient. + * + * @example + * 2 + */ + id?: number; + /** + * @remarks + * The name of the MNS queue. + * + * @example + * testQueue + */ + queue?: string; + /** + * @remarks + * The region ID. + * + * @example + * cn-hangzhou + */ + region?: string; + static names(): { [key: string]: string } { + return { + id: 'Id', + queue: 'Queue', + region: 'Region', + }; + } + + static types(): { [key: string]: any } { + return { + id: 'number', + queue: 'string', + region: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutEventRuleTargetsResponseBodyFailedMnsParameters extends $dara.Model { + mnsParameter?: PutEventRuleTargetsResponseBodyFailedMnsParametersMnsParameter[]; + static names(): { [key: string]: string } { + return { + mnsParameter: 'MnsParameter', + }; + } + + static types(): { [key: string]: any } { + return { + mnsParameter: { 'type': 'array', 'itemType': PutEventRuleTargetsResponseBodyFailedMnsParametersMnsParameter }, + }; + } + + validate() { + if(Array.isArray(this.mnsParameter)) { + $dara.Model.validateArray(this.mnsParameter); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutEventRuleTargetsResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * This parameter is returned if the specified alert contact groups in the request failed to be created or modified. + */ + failedContactParameters?: PutEventRuleTargetsResponseBodyFailedContactParameters; + /** + * @remarks + * This parameter is returned if the specified functions in the request failed to be created or modified in Function Compute. + */ + failedFcParameters?: PutEventRuleTargetsResponseBodyFailedFcParameters; + /** + * @remarks + * This parameter is returned if the specified queues in the request failed to be created or modified in SMQ. + */ + failedMnsParameters?: PutEventRuleTargetsResponseBodyFailedMnsParameters; + /** + * @remarks + * The number of resources that failed to be created or modified. + * + * @example + * 2 + */ + failedParameterCount?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 409C64DA-CF14-45DF-B463-471C790DD15A + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: true and false. + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + failedContactParameters: 'FailedContactParameters', + failedFcParameters: 'FailedFcParameters', + failedMnsParameters: 'FailedMnsParameters', + failedParameterCount: 'FailedParameterCount', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + failedContactParameters: PutEventRuleTargetsResponseBodyFailedContactParameters, + failedFcParameters: PutEventRuleTargetsResponseBodyFailedFcParameters, + failedMnsParameters: PutEventRuleTargetsResponseBodyFailedMnsParameters, + failedParameterCount: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + if(this.failedContactParameters && typeof (this.failedContactParameters as any).validate === 'function') { + (this.failedContactParameters as any).validate(); + } + if(this.failedFcParameters && typeof (this.failedFcParameters as any).validate === 'function') { + (this.failedFcParameters as any).validate(); + } + if(this.failedMnsParameters && typeof (this.failedMnsParameters as any).validate === 'function') { + (this.failedMnsParameters as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutExporterOutputRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutExporterOutputRequest.ts new file mode 100644 index 0000000..5f9163b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutExporterOutputRequest.ts @@ -0,0 +1,77 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutExporterOutputRequest extends $dara.Model { + /** + * @remarks + * The configuration set for exporting monitoring data. It is a JSON object string. The string must include the following fields: + * + * * endpoint: the endpoint of Log Service. + * * project: the Log Service project to which monitoring data is exported. + * * logstore: the Log Service Logstore to which the monitoring data is exported. + * * ak: the AccessKey ID. + * * as: the AccessKey secret. + * + * This parameter is required. + * + * @example + * { "endpoint": "http://cn-qingdao-share.log.aliyuncs.com", "project": "exporter", "logstore": "exporter","ak": "LTAIp*******", "userId": "17754********", "as": "TxHwuJ8yAb3AU******"} + */ + configJson?: string; + /** + * @remarks + * The description of the configuration set. + * + * @example + * Export CPU metrics + */ + desc?: string; + /** + * @remarks + * The name of the configuration set. + * + * This parameter is required. + * + * @example + * exporterConfig + */ + destName?: string; + /** + * @remarks + * The service to which the monitoring data is exported. + * + * @example + * sls + */ + destType?: string; + regionId?: string; + static names(): { [key: string]: string } { + return { + configJson: 'ConfigJson', + desc: 'Desc', + destName: 'DestName', + destType: 'DestType', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + configJson: 'string', + desc: 'string', + destName: 'string', + destType: 'string', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutExporterOutputResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutExporterOutputResponse.ts new file mode 100644 index 0000000..20bb731 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutExporterOutputResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { PutExporterOutputResponseBody } from "./PutExporterOutputResponseBody"; + + +export class PutExporterOutputResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: PutExporterOutputResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutExporterOutputResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutExporterOutputResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutExporterOutputResponseBody.ts new file mode 100644 index 0000000..38140ee --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutExporterOutputResponseBody.ts @@ -0,0 +1,66 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutExporterOutputResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 6A5F022D-AC7C-460E-94AE-B9E75083D027 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. true: The request was successful. false: The request failed. + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutExporterRuleRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutExporterRuleRequest.ts new file mode 100644 index 0000000..fe4935e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutExporterRuleRequest.ts @@ -0,0 +1,106 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutExporterRuleRequest extends $dara.Model { + /** + * @remarks + * The description of the data export rule. + * + * @example + * Export CPU metrics + */ + describe?: string; + /** + * @remarks + * The destination to which the data is exported. Valid values of N: 1 to 20. + * + * This parameter is required. + * + * @example + * distName1 + */ + dstNames?: string[]; + /** + * @remarks + * The name of the metric. + * + * > + * + * For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * > For more information, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * acs_ecs_dashboard + */ + namespace?: string; + regionId?: string; + /** + * @remarks + * The name of the rule. + * + * > If the specified rule exists, the existing rule is modified. Otherwise, a rule is created. + * + * @example + * MyRuleName + */ + ruleName?: string; + /** + * @remarks + * The time window of the exported data. Unit: seconds. + * + * > + * + * * Separate multiple time windows with commas (,). + * + * * Data in a time window of less than 60 seconds cannot be exported. + * + * @example + * 60,300 + */ + targetWindows?: string; + static names(): { [key: string]: string } { + return { + describe: 'Describe', + dstNames: 'DstNames', + metricName: 'MetricName', + namespace: 'Namespace', + regionId: 'RegionId', + ruleName: 'RuleName', + targetWindows: 'TargetWindows', + }; + } + + static types(): { [key: string]: any } { + return { + describe: 'string', + dstNames: { 'type': 'array', 'itemType': 'string' }, + metricName: 'string', + namespace: 'string', + regionId: 'string', + ruleName: 'string', + targetWindows: 'string', + }; + } + + validate() { + if(Array.isArray(this.dstNames)) { + $dara.Model.validateArray(this.dstNames); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutExporterRuleResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutExporterRuleResponse.ts new file mode 100644 index 0000000..47b5e67 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutExporterRuleResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { PutExporterRuleResponseBody } from "./PutExporterRuleResponseBody"; + + +export class PutExporterRuleResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: PutExporterRuleResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutExporterRuleResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutExporterRuleResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutExporterRuleResponseBody.ts new file mode 100644 index 0000000..8e6dca0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutExporterRuleResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutExporterRuleResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. If the request was successful, "successful" is returned. If the request failed, an error message is returned. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 461CF2CD-2FC3-4B26-8645-7BD27E7D0F1D + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutGroupMetricRuleRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutGroupMetricRuleRequest.ts new file mode 100644 index 0000000..020e032 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutGroupMetricRuleRequest.ts @@ -0,0 +1,554 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutGroupMetricRuleRequestEscalationsCritical extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold for Critical-level alerts. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The statistical methods for Critical-level alerts. Separate multiple statistical methods with commas (,). + * + * The value of this parameter is determined by the `Statistics` column corresponding to the `MetricName` parameter of the specified cloud service. The value of this parameter can be Maximum, Minimum, or Average. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Critical-level alerts. + * + * @example + * 90 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before a Critical-level alert is triggered. + * + * @example + * 3 + */ + times?: number; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutGroupMetricRuleRequestEscalationsInfo extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold for Info-level alerts. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The statistical methods for Info-level alerts. Separate multiple statistical methods with commas (,). + * + * The value of this parameter is determined by the `Statistics` column corresponding to the `MetricName` parameter of the specified cloud service. The value of this parameter can be Maximum, Minimum, or Average. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Info-level alerts. + * + * @example + * 90 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before an Info-level alert is triggered. + * + * @example + * 3 + */ + times?: number; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutGroupMetricRuleRequestEscalationsWarn extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold for Warn-level alerts. Valid values: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The statistical methods for Warn-level alerts. Separate multiple statistical methods with commas (,). + * + * The value of this parameter is determined by the `Statistics` column corresponding to the `MetricName` parameter of the specified cloud service. The value of this parameter can be Maximum, Minimum, or Average. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Warn-level alerts. + * + * @example + * 90 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before a Warn-level alert is triggered. + * + * @example + * 3 + */ + times?: number; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutGroupMetricRuleRequestEscalations extends $dara.Model { + critical?: PutGroupMetricRuleRequestEscalationsCritical; + info?: PutGroupMetricRuleRequestEscalationsInfo; + warn?: PutGroupMetricRuleRequestEscalationsWarn; + static names(): { [key: string]: string } { + return { + critical: 'Critical', + info: 'Info', + warn: 'Warn', + }; + } + + static types(): { [key: string]: any } { + return { + critical: PutGroupMetricRuleRequestEscalationsCritical, + info: PutGroupMetricRuleRequestEscalationsInfo, + warn: PutGroupMetricRuleRequestEscalationsWarn, + }; + } + + validate() { + if(this.critical && typeof (this.critical as any).validate === 'function') { + (this.critical as any).validate(); + } + if(this.info && typeof (this.info as any).validate === 'function') { + (this.info as any).validate(); + } + if(this.warn && typeof (this.warn as any).validate === 'function') { + (this.warn as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutGroupMetricRuleRequestLabels extends $dara.Model { + /** + * @remarks + * The tag key of the alert rule. + * + * @example + * key1 + */ + key?: string; + /** + * @remarks + * The tag value of the alert rule. + * + * @example + * value1 + */ + value?: string; + static names(): { [key: string]: string } { + return { + key: 'Key', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + key: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutGroupMetricRuleRequest extends $dara.Model { + escalations?: PutGroupMetricRuleRequestEscalations; + /** + * @remarks + * The abbreviation of the cloud service name. + * + * 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. + * + * @example + * ECS + */ + category?: string; + /** + * @remarks + * The alert contact group. + * + * @example + * ECS_Group + */ + contactGroups?: string; + /** + * @remarks + * The first-level dimension of the alert rule in the application group. + * + * Set the value to a set of key-value pairs, for example, `userId:120886317861****` or `instanceId:i-m5e1qg6uo38rztr4****`. + * + * @example + * [{"instanceId":"i-m5e1qg6uo38rztr4****"}] + */ + dimensions?: string; + /** + * @remarks + * The time period during which the alert rule is effective. + * + * @example + * 05:31-23:59 + */ + effectiveInterval?: string; + /** + * @remarks + * The subject of the alert notification email. + */ + emailSubject?: string; + /** + * @remarks + * The second-level or third-level dimension of the alert rule in the application group. + * + * Set the value to a set of key-value pairs, for example, `port:80` or `/dev/xvda:d-m5e6yphgzn3aprwu****`. + * + * If the first-level dimension of the alert rule is `instanceId:i-m5e1qg6uo38rztr4****`, its second-level dimension is the `/dev/xvda:d-m5e6yphgzn3aprwu****` disk in the instance. + * + * @example + * {"/dev/xvda":"d-m5e6yphgzn3aprwu****"} + */ + extraDimensionJson?: string; + /** + * @remarks + * The application group ID. + * + * For more information about how to obtain the ID of an application group, see [DescribeMonitorGroups](https://help.aliyun.com/document_detail/115032.html). + * + * This parameter is required. + * + * @example + * 17285**** + */ + groupId?: string; + /** + * @remarks + * The interval at which CloudMonitor checks whether the alert rule is triggered. Unit: seconds. + * + * > We recommend that you set the interval to the data aggregation period. If the interval is shorter than the data aggregation period, alerts cannot be triggered due to insufficient data. + * + * @example + * 60 + */ + interval?: string; + /** + * @remarks + * The tags of the alert rule. + * + * The specified tag is contained in alert notifications. + */ + labels?: PutGroupMetricRuleRequestLabels[]; + /** + * @remarks + * The metric name. + * + * For more information about how to obtain the name of a metric, 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 + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. + * + * For more 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 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. + * + * @example + * KEEP_LAST_STATE + */ + noDataPolicy?: string; + /** + * @remarks + * The time period during which the alert rule is ineffective. + * + * @example + * 00:00-05:30 + */ + noEffectiveInterval?: string; + options?: string; + /** + * @remarks + * The aggregation period of the metric data. + * + * Set the `Period` parameter to an integral multiple of 60. Unit: seconds. Default value: 300. + * + * @example + * 60 + */ + period?: string; + /** + * @remarks + * The ID of the alert rule. + * + * * When you create an alert rule for the application group, enter the ID of the alert rule. + * * When you modify a specified alert rule in the application group, you must obtain the ID of the alert rule. For information about how to obtain the ID of an alert rule, see [DescribeMetricRuleList](https://help.aliyun.com/document_detail/114941.html). + * + * This parameter is required. + * + * @example + * 123456 + */ + ruleId?: string; + /** + * @remarks + * The name of the alert rule. + * + * * When you create an alert rule for the application group, enter the name of the alert rule. + * * When you modify a specified alert rule in the application group, you must obtain the name of the alert rule. For more information about how to obtain the name of an alert rule, see [DescribeMetricRuleList](https://help.aliyun.com/document_detail/114941.html). + * + * This parameter is required. + * + * @example + * Rule_01 + */ + ruleName?: string; + /** + * @remarks + * The mute period during which new alerts are not sent even if the trigger conditions are met. + * + * Unit: seconds. Default value: 86400. + * + * @example + * 86400 + */ + silenceTime?: number; + /** + * @remarks + * The callback URL. + * + * The callback URL must be accessible over the Internet. CloudMonitor sends a POST request to push an alert notification to the callback URL that you specify. Only HTTP requests are supported. + * + * @example + * https://www.aliyun.com + */ + webhook?: string; + static names(): { [key: string]: string } { + return { + escalations: 'Escalations', + category: 'Category', + contactGroups: 'ContactGroups', + dimensions: 'Dimensions', + effectiveInterval: 'EffectiveInterval', + emailSubject: 'EmailSubject', + extraDimensionJson: 'ExtraDimensionJson', + groupId: 'GroupId', + interval: 'Interval', + labels: 'Labels', + metricName: 'MetricName', + namespace: 'Namespace', + noDataPolicy: 'NoDataPolicy', + noEffectiveInterval: 'NoEffectiveInterval', + options: 'Options', + period: 'Period', + ruleId: 'RuleId', + ruleName: 'RuleName', + silenceTime: 'SilenceTime', + webhook: 'Webhook', + }; + } + + static types(): { [key: string]: any } { + return { + escalations: PutGroupMetricRuleRequestEscalations, + category: 'string', + contactGroups: 'string', + dimensions: 'string', + effectiveInterval: 'string', + emailSubject: 'string', + extraDimensionJson: 'string', + groupId: 'string', + interval: 'string', + labels: { 'type': 'array', 'itemType': PutGroupMetricRuleRequestLabels }, + metricName: 'string', + namespace: 'string', + noDataPolicy: 'string', + noEffectiveInterval: 'string', + options: 'string', + period: 'string', + ruleId: 'string', + ruleName: 'string', + silenceTime: 'number', + webhook: 'string', + }; + } + + validate() { + if(this.escalations && typeof (this.escalations as any).validate === 'function') { + (this.escalations as any).validate(); + } + if(Array.isArray(this.labels)) { + $dara.Model.validateArray(this.labels); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutGroupMetricRuleResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutGroupMetricRuleResponse.ts new file mode 100644 index 0000000..f377df3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutGroupMetricRuleResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { PutGroupMetricRuleResponseBody } from "./PutGroupMetricRuleResponseBody"; + + +export class PutGroupMetricRuleResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: PutGroupMetricRuleResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutGroupMetricRuleResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutGroupMetricRuleResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutGroupMetricRuleResponseBody.ts new file mode 100644 index 0000000..1413d3e --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutGroupMetricRuleResponseBody.ts @@ -0,0 +1,109 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutGroupMetricRuleResponseBodyResult extends $dara.Model { + /** + * @remarks + * The ID of the alert rule. + * + * @example + * 123456 + */ + ruleId?: string; + static names(): { [key: string]: string } { + return { + ruleId: 'RuleId', + }; + } + + static types(): { [key: string]: any } { + return { + ruleId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutGroupMetricRuleResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * The Request is not authorization. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 461CF2CD-2FC3-4B26-8645-7BD27E7D0F1D + */ + requestId?: string; + /** + * @remarks + * The result of the request. + */ + result?: PutGroupMetricRuleResponseBodyResult; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + result: 'Result', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + result: PutGroupMetricRuleResponseBodyResult, + success: 'boolean', + }; + } + + validate() { + if(this.result && typeof (this.result as any).validate === 'function') { + (this.result as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutHybridMonitorMetricDataRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutHybridMonitorMetricDataRequest.ts new file mode 100644 index 0000000..e5b5743 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutHybridMonitorMetricDataRequest.ts @@ -0,0 +1,186 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutHybridMonitorMetricDataRequestMetricListLabels extends $dara.Model { + /** + * @remarks + * The tag key of the metric. + * + * Valid values of N: 1 to 100. + * + * The key can contain letters, digits, and underscores (_). The key must start with a letter or an underscore (_). + * + * > You must specify both the Key and Value parameters. + * + * @example + * IP + */ + key?: string; + /** + * @remarks + * The tag value of the metric. + * + * Valid values of N: 1 to 100. + * + * > You must specify both the Key and Value parameters. + * + * @example + * 192.168.XX.XX + */ + value?: string; + static names(): { [key: string]: string } { + return { + key: 'Key', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + key: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutHybridMonitorMetricDataRequestMetricList extends $dara.Model { + /** + * @remarks + * The tags of the metric. + * + * Valid values of N: 1 to 100. + * + * @example + * app、ip、hostName等标识信息 + */ + labels?: PutHybridMonitorMetricDataRequestMetricListLabels[]; + /** + * @remarks + * The metric name. + * + * Valid values of N: 1 to 100. + * + * The name can contain letters, digits, and underscores (_). The name must start with a letter. + * + * This parameter is required. + * + * @example + * CPU_Usage + */ + name?: string; + /** + * @remarks + * The time when the monitoring data is imported. The value is a timestamp. + * + * Valid values of N: 1 to 100. + * + * Unit: milliseconds. By default, the current time is used. + * + * @example + * 1640776119473 + */ + TS?: number; + /** + * @remarks + * The value of the metric. + * + * Valid values of N: 1 to 100. + * + * The value must be an integer or a floating-point number. + * + * This parameter is required. + * + * @example + * 90 + */ + value?: string; + static names(): { [key: string]: string } { + return { + labels: 'Labels', + name: 'Name', + TS: 'TS', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + labels: { 'type': 'array', 'itemType': PutHybridMonitorMetricDataRequestMetricListLabels }, + name: 'string', + TS: 'number', + value: 'string', + }; + } + + validate() { + if(Array.isArray(this.labels)) { + $dara.Model.validateArray(this.labels); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutHybridMonitorMetricDataRequest extends $dara.Model { + /** + * @remarks + * The monitoring data. + * + * Valid values of N: 1 to 100. + * + * This parameter is required. + */ + metricList?: PutHybridMonitorMetricDataRequestMetricList[]; + /** + * @remarks + * The name of the namespace. + * + * For information about how to obtain the name of a namespace, see [DescribeHybridMonitorNamespaceList](https://help.aliyun.com/document_detail/428880.html). + * + * This parameter is required. + * + * @example + * default-aliyun + */ + namespace?: string; + regionId?: string; + static names(): { [key: string]: string } { + return { + metricList: 'MetricList', + namespace: 'Namespace', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + metricList: { 'type': 'array', 'itemType': PutHybridMonitorMetricDataRequestMetricList }, + namespace: 'string', + regionId: 'string', + }; + } + + validate() { + if(Array.isArray(this.metricList)) { + $dara.Model.validateArray(this.metricList); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutHybridMonitorMetricDataResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutHybridMonitorMetricDataResponse.ts new file mode 100644 index 0000000..2e95e71 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutHybridMonitorMetricDataResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { PutHybridMonitorMetricDataResponseBody } from "./PutHybridMonitorMetricDataResponseBody"; + + +export class PutHybridMonitorMetricDataResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: PutHybridMonitorMetricDataResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutHybridMonitorMetricDataResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutHybridMonitorMetricDataResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutHybridMonitorMetricDataResponseBody.ts new file mode 100644 index 0000000..60d07b1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutHybridMonitorMetricDataResponseBody.ts @@ -0,0 +1,98 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutHybridMonitorMetricDataResponseBodyErrorDetail extends $dara.Model { + /** + * @remarks + * The error message of the invalid parameter. + * + * @example + * label name :123 not match [a-zA-Z_][a-zA-Z0-9_]* + */ + errorMessage?: string; + /** + * @remarks + * The position of the error message in the array. + * + * @example + * 0 + */ + index?: number; + static names(): { [key: string]: string } { + return { + errorMessage: 'ErrorMessage', + index: 'Index', + }; + } + + static types(): { [key: string]: any } { + return { + errorMessage: 'string', + index: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutHybridMonitorMetricDataResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The details of invalid parameters. + * + * If a request parameter is invalid, the details of the invalid parameter are returned. + */ + errorDetail?: PutHybridMonitorMetricDataResponseBodyErrorDetail[]; + /** + * @remarks + * The request ID. + * + * @example + * 5DB1CBCA-D14A-55FA-814F-B4DBD9735F68 + */ + requestId?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + errorDetail: 'ErrorDetail', + requestId: 'RequestId', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + errorDetail: { 'type': 'array', 'itemType': PutHybridMonitorMetricDataResponseBodyErrorDetail }, + requestId: 'string', + }; + } + + validate() { + if(Array.isArray(this.errorDetail)) { + $dara.Model.validateArray(this.errorDetail); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutLogMonitorRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutLogMonitorRequest.ts new file mode 100644 index 0000000..5f245a0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutLogMonitorRequest.ts @@ -0,0 +1,344 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutLogMonitorRequestAggregates extends $dara.Model { + /** + * @remarks + * The alias of the aggregate function. Valid values of N: 1 to 10. + * + * This parameter is required. + * + * @example + * Count + */ + alias?: string; + /** + * @remarks + * The name of the field to be aggregated. Valid values of N: 1 to 10. + * + * This parameter is required. + * + * @example + * sourceCount + */ + fieldName?: string; + /** + * @remarks + * The function that is used to aggregate log data within a statistical period. Valid values of N: 1 to 10. Valid values: + * + * * count: counts the number. + * * sum: calculates the total value. + * * avg: calculates the average value. + * * max: calculates the maximum value. + * * min: calculates the minimum value. + * * countps: calculates the number of values of the specified field divided by the total number of seconds within a statistical period. + * * sumps: calculates the sum of the values of the specified field divided by the total number of seconds within a statistical period. + * * distinct: calculates the number of unique values of the specified field within a statistical period. + * + * This parameter is required. + * + * @example + * count + */ + function?: string; + static names(): { [key: string]: string } { + return { + alias: 'Alias', + fieldName: 'FieldName', + function: 'Function', + }; + } + + static types(): { [key: string]: any } { + return { + alias: 'string', + fieldName: 'string', + function: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutLogMonitorRequestGroupbys extends $dara.Model { + /** + * @remarks + * The alias of the dimension based on which the data is grouped. Valid values of N: 1 to 10. + * + * @example + * CPUUtilization + */ + alias?: string; + /** + * @remarks + * The name of the field that is specified as the dimension. Valid values of N: 1 to 10. + * + * @example + * cpu + */ + fieldName?: string; + static names(): { [key: string]: string } { + return { + alias: 'Alias', + fieldName: 'FieldName', + }; + } + + static types(): { [key: string]: any } { + return { + alias: 'string', + fieldName: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutLogMonitorRequestValueFilter extends $dara.Model { + /** + * @remarks + * The name of the log field that is used for matching in the filter condition. Valid values of N: 1 to 10. + * + * @example + * lh_source + */ + key?: string; + /** + * @remarks + * The method that is used to match the field value. Valid values of N: 1 to 10. Valid values: + * + * * `contain`: contains + * * `notContain`: does not contain + * * `>`: greater than + * * `<`: less than + * * `>=`: greater than or equal to + * * `<=`: less than or equal to + * + * @example + * contain + */ + operator?: string; + /** + * @remarks + * The field value to be matched in the filter condition. Valid values of N: 1 to 10. + * + * @example + * test + */ + value?: string; + static names(): { [key: string]: string } { + return { + key: 'Key', + operator: 'Operator', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + key: 'string', + operator: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutLogMonitorRequest extends $dara.Model { + /** + * @remarks + * The aggregation logic. + * + * This parameter is required. + */ + aggregates?: PutLogMonitorRequestAggregates[]; + /** + * @remarks + * The ID of the application group. + * + * @example + * 7301**** + */ + groupId?: string; + /** + * @remarks + * The dimension based on which the data is grouped. This parameter is equivalent to the GROUP BY clause in SQL statements. If no dimension is specified, all data is aggregated based on the aggregate function. + */ + groupbys?: PutLogMonitorRequestGroupbys[]; + /** + * @remarks + * The ID of the log monitoring metric. + * + * @example + * 16**** + */ + logId?: string; + /** + * @remarks + * The extended field. The extended field allows you to perform basic operations on the aggregation results. + * + * For example, you have calculated TotalNumber and 5XXNumber by aggregating the data. TotalNumber indicates the total number of HTTP requests, and 5XXNumber indicates the number of HTTP requests whose status code is greater than 499. You can calculate the server error rate by adding the following formula to the extended field: 5XXNumber/TotalNumber\\*100. + * + * JSON format: {"extend":{"errorPercent":"5XXNumber/TotalNumber\\*100"}}. Description: + * + * * extend: required. + * * errorPercent: the alias of the field generated in the calculation result. You can specify the alias as needed. + * * 5XXNumber/TotalNumber\\*100: the calculation expression. + * + * @example + * {"extend":{"errorPercent":"5XXNumber/TotalNumber*100"}} + */ + metricExpress?: string; + /** + * @remarks + * The metric name. For more information about the metrics for cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * This parameter is required. + * + * @example + * cpu_total + */ + metricName?: string; + regionId?: string; + /** + * @remarks + * The name of the Simple Log Service Logstore. + * + * This parameter is required. + * + * @example + * test-logstore + */ + slsLogstore?: string; + /** + * @remarks + * The name of the Simple Log Service project. + * + * This parameter is required. + * + * @example + * test-project + */ + slsProject?: string; + /** + * @remarks + * The region in which the Simple Log Service project resides. + * + * This parameter is required. + * + * @example + * cn-hangzhou + */ + slsRegionId?: string; + /** + * @remarks + * The size of the tumbling window for calculation. Unit: seconds. CloudMonitor performs aggregation for each tumbling window. + * + * @example + * 60,300 + */ + tumblingwindows?: string; + /** + * @remarks + * The unit. + * + * @example + * Percent + */ + unit?: string; + /** + * @remarks + * The condition that is used to filter logs. The ValueFilter and ValueFilterRelation parameters are used in pair. The filter condition is equivalent to the WHERE clause in SQL statements. If no filter condition is specified, all logs are processed. For example, logs contain the Level and Error fields. If you need to calculate the number of times that logs of the Error level appear every minute, you can set the filter condition to Level=Error and count the number of logs that meet this condition. + */ + valueFilter?: PutLogMonitorRequestValueFilter[]; + /** + * @remarks + * The logical operator that is used between log filter conditions. Valid values: + * + * * and + * * or + * + * > The ValueFilterRelation and `ValueFilter.N.Key` parameters must be used in pair. + * + * This parameter is required. + * + * @example + * and + */ + valueFilterRelation?: string; + static names(): { [key: string]: string } { + return { + aggregates: 'Aggregates', + groupId: 'GroupId', + groupbys: 'Groupbys', + logId: 'LogId', + metricExpress: 'MetricExpress', + metricName: 'MetricName', + regionId: 'RegionId', + slsLogstore: 'SlsLogstore', + slsProject: 'SlsProject', + slsRegionId: 'SlsRegionId', + tumblingwindows: 'Tumblingwindows', + unit: 'Unit', + valueFilter: 'ValueFilter', + valueFilterRelation: 'ValueFilterRelation', + }; + } + + static types(): { [key: string]: any } { + return { + aggregates: { 'type': 'array', 'itemType': PutLogMonitorRequestAggregates }, + groupId: 'string', + groupbys: { 'type': 'array', 'itemType': PutLogMonitorRequestGroupbys }, + logId: 'string', + metricExpress: 'string', + metricName: 'string', + regionId: 'string', + slsLogstore: 'string', + slsProject: 'string', + slsRegionId: 'string', + tumblingwindows: 'string', + unit: 'string', + valueFilter: { 'type': 'array', 'itemType': PutLogMonitorRequestValueFilter }, + valueFilterRelation: 'string', + }; + } + + validate() { + if(Array.isArray(this.aggregates)) { + $dara.Model.validateArray(this.aggregates); + } + if(Array.isArray(this.groupbys)) { + $dara.Model.validateArray(this.groupbys); + } + if(Array.isArray(this.valueFilter)) { + $dara.Model.validateArray(this.valueFilter); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutLogMonitorResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutLogMonitorResponse.ts new file mode 100644 index 0000000..0374ffb --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutLogMonitorResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { PutLogMonitorResponseBody } from "./PutLogMonitorResponseBody"; + + +export class PutLogMonitorResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: PutLogMonitorResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutLogMonitorResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutLogMonitorResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutLogMonitorResponseBody.ts new file mode 100644 index 0000000..b183048 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutLogMonitorResponseBody.ts @@ -0,0 +1,82 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutLogMonitorResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The ID of the log monitoring metric. + * + * @example + * 16**** + */ + logId?: string; + /** + * @remarks + * The returned message. + * + * * If the request was successful, `successful` is returned. + * * If the request failed, an error message is returned. Example: `alias of aggreate must be set value.` + * + * @example + * successful + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 91561287-0802-5F9C-9BDE-404C50D41B06 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + logId: 'LogId', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + logId: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutMetricRuleTargetsRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutMetricRuleTargetsRequest.ts new file mode 100644 index 0000000..facd0b2 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutMetricRuleTargetsRequest.ts @@ -0,0 +1,153 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutMetricRuleTargetsRequestTargets extends $dara.Model { + /** + * @remarks + * The Alibaba Cloud Resource Name (ARN) of the resource. Simple Message Queue (formerly MNS) (SMQ), Auto Scaling, Simple Log Service, and Function Compute are supported. + * + * The following part describes the ARN of SMQ and the parameters in the ARN: + * + * `acs:mns:{regionId}:{userId}:/{Resource type}/{Resource name}/message`. + * + * * {regionId}: the region ID of the SMQ queue or topic. + * + * * {userId}: the ID of the Alibaba Cloud account that owns the resource. + * + * * {Resource type}: the type of the resource for which alerts are triggered. Valid values: + * + * * **queues** + * * **topics** + * + * * {Resource name}: the resource name. + * + * * If the resource type is **queues**, the resource name is the queue name. + * * If the resource type is **topics**, the resource name is the topic name. + * + * ARN of Auto Scaling: + * + * acs:ess:{regionId}:{userId}:scalingGroupId/{Scaling group ID}:scalingRuleId/{Scaling rule ID} + * + * ARN of Simple Log Service: + * + * acs:log:{regionId}:{userId}:project/{Project name}/logstore/{Logstore name} + * + * ARN of Function Compute: + * + * acs:fc:{regionId}:{userId}:services/{Service name}/functions/{Function name} + * + * This parameter is required. + * + * @example + * acs:mns:cn-hangzhou:120886317861****:/queues/test/message + */ + arn?: string; + /** + * @remarks + * The ID of the resource for which alerts are triggered. + * + * For more information about how to obtain the ID of the resource for which alerts are triggered, see [DescribeMetricRuleTargets](https://help.aliyun.com/document_detail/121592.html). + * + * This parameter is required. + * + * @example + * 1 + */ + id?: string; + /** + * @remarks + * The parameters of the alert callback. The parameters are in the JSON format. + * + * @example + * {"customField1":"value1","customField2":"$.name"} + */ + jsonParams?: string; + /** + * @remarks + * The alert level. Valid values: + * + * * INFO + * * WARN + * * CRITICAL + * + * @example + * ["INFO", "WARN", "CRITICAL"] + */ + level?: string; + static names(): { [key: string]: string } { + return { + arn: 'Arn', + id: 'Id', + jsonParams: 'JsonParams', + level: 'Level', + }; + } + + static types(): { [key: string]: any } { + return { + arn: 'string', + id: 'string', + jsonParams: 'string', + level: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutMetricRuleTargetsRequest extends $dara.Model { + regionId?: string; + /** + * @remarks + * The ID of the alert rule. + * + * For information about how to obtain the ID of an alert rule, see [DescribeMetricRuleList](https://help.aliyun.com/document_detail/114941.html). + * + * This parameter is required. + * + * @example + * ae06917_75a8c43178ab66**** + */ + ruleId?: string; + /** + * @remarks + * None. + * + * This parameter is required. + */ + targets?: PutMetricRuleTargetsRequestTargets[]; + static names(): { [key: string]: string } { + return { + regionId: 'RegionId', + ruleId: 'RuleId', + targets: 'Targets', + }; + } + + static types(): { [key: string]: any } { + return { + regionId: 'string', + ruleId: 'string', + targets: { 'type': 'array', 'itemType': PutMetricRuleTargetsRequestTargets }, + }; + } + + validate() { + if(Array.isArray(this.targets)) { + $dara.Model.validateArray(this.targets); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutMetricRuleTargetsResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutMetricRuleTargetsResponse.ts new file mode 100644 index 0000000..3c7a8e3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutMetricRuleTargetsResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { PutMetricRuleTargetsResponseBody } from "./PutMetricRuleTargetsResponseBody"; + + +export class PutMetricRuleTargetsResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: PutMetricRuleTargetsResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutMetricRuleTargetsResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutMetricRuleTargetsResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutMetricRuleTargetsResponseBody.ts new file mode 100644 index 0000000..f59cb33 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutMetricRuleTargetsResponseBody.ts @@ -0,0 +1,205 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutMetricRuleTargetsResponseBodyFailDataTargetsTarget extends $dara.Model { + /** + * @remarks + * The ARN of the resource. Format: `acs:{Service name abbreviation}:{regionId}:{userId}:/{Resource type}/{Resource name}/message`. SMQ, Auto Scaling, Simple Log Service, and Function Compute are supported. Example: `acs:mns:cn-hangzhou:120886317861****:/queues/test123/message`. The following part describes the ARN of SMQ and the parameters in the ARN: + * + * * {Service name abbreviation}: mns. + * + * * {userId}: the ID of the Alibaba Cloud account. + * + * * {regionId}: the region ID of the SMQ queue or topic. + * + * * {Resource type}: the type of the resource for which alerts are triggered. Valid values: + * + * * **queues** + * * **topics** + * + * * {Resource name}: the resource name. + * + * * If the resource type is **queues**, the resource name is the queue name. + * * If the resource type is **topics**, the resource name is the topic name. + * + * @example + * acs:mns:cn-hangzhou:111:/queues/test/message + */ + arn?: string; + /** + * @remarks + * The ID of the resource for which alerts are triggered. + * + * @example + * 1 + */ + id?: string; + /** + * @remarks + * The alert level. Valid values: + * + * * INFO + * * WARN + * * CRITICAL + * + * @example + * ["INFO", "WARN", "CRITICAL"] + */ + level?: string; + static names(): { [key: string]: string } { + return { + arn: 'Arn', + id: 'Id', + level: 'Level', + }; + } + + static types(): { [key: string]: any } { + return { + arn: 'string', + id: 'string', + level: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutMetricRuleTargetsResponseBodyFailDataTargets extends $dara.Model { + target?: PutMetricRuleTargetsResponseBodyFailDataTargetsTarget[]; + static names(): { [key: string]: string } { + return { + target: 'Target', + }; + } + + static types(): { [key: string]: any } { + return { + target: { 'type': 'array', 'itemType': PutMetricRuleTargetsResponseBodyFailDataTargetsTarget }, + }; + } + + validate() { + if(Array.isArray(this.target)) { + $dara.Model.validateArray(this.target); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutMetricRuleTargetsResponseBodyFailData extends $dara.Model { + /** + * @remarks + * The information about the resources for which alerts are triggered. + */ + targets?: PutMetricRuleTargetsResponseBodyFailDataTargets; + static names(): { [key: string]: string } { + return { + targets: 'Targets', + }; + } + + static types(): { [key: string]: any } { + return { + targets: PutMetricRuleTargetsResponseBodyFailDataTargets, + }; + } + + validate() { + if(this.targets && typeof (this.targets as any).validate === 'function') { + (this.targets as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutMetricRuleTargetsResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The failed data. + */ + failData?: PutMetricRuleTargetsResponseBodyFailData; + /** + * @remarks + * The error message returned. + * + * @example + * The request processing has failed due to some unknown error. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 6A569B0D-9055-58AF-9E82-BAEAF95C0FD5 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true: The request was successful. + * * false: The request failed. + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + failData: 'FailData', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + failData: PutMetricRuleTargetsResponseBodyFailData, + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + if(this.failData && typeof (this.failData as any).validate === 'function') { + (this.failData as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutMonitorGroupDynamicRuleRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutMonitorGroupDynamicRuleRequest.ts new file mode 100644 index 0000000..eda4ed9 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutMonitorGroupDynamicRuleRequest.ts @@ -0,0 +1,190 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutMonitorGroupDynamicRuleRequestGroupRulesFilters extends $dara.Model { + /** + * @remarks + * The method that is used to filter instances. Valid values of N: 1 to 3. Valid values: + * + * * contains: contains + * * notContains: does not contain + * * startWith: starts with a prefix + * * endWith: ends with a suffix + * + * This parameter is required. + * + * @example + * contains + */ + function?: string; + /** + * @remarks + * The name of the field based on which instances are filtered. Valid values of N: 1 to 3. + * + * Only hostnames are supported. Example: hostName. + * + * This parameter is required. + * + * @example + * hostName + */ + name?: string; + /** + * @remarks + * The value to be matched with the specified field. Valid values of N: 1 to 3. + * + * This parameter is required. + * + * @example + * nginx + */ + value?: string; + static names(): { [key: string]: string } { + return { + function: 'Function', + name: 'Name', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + function: 'string', + name: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutMonitorGroupDynamicRuleRequestGroupRules extends $dara.Model { + /** + * @remarks + * The cloud service to which the alert rule is applied. Valid values of N: 1 to 3. Valid values: + * + * * ecs: Elastic Compute Service (ECS) + * * rds: ApsaraDB RDS + * * slb: Server Load Balancer (SLB) + * + * This parameter is required. + * + * @example + * ecs + */ + category?: string; + /** + * @remarks + * The logical operator used between conditional expressions in the alert rule. Valid values of N: 1 to 3. Valid values: + * + * * and: The instances that meet all the conditional expressions are automatically added to the application group. + * * or: The instances that meet one of the conditional expressions are automatically added to the application group. + * + * This parameter is required. + * + * @example + * and + */ + filterRelation?: string; + /** + * @remarks + * None. + * + * This parameter is required. + */ + filters?: PutMonitorGroupDynamicRuleRequestGroupRulesFilters[]; + static names(): { [key: string]: string } { + return { + category: 'Category', + filterRelation: 'FilterRelation', + filters: 'Filters', + }; + } + + static types(): { [key: string]: any } { + return { + category: 'string', + filterRelation: 'string', + filters: { 'type': 'array', 'itemType': PutMonitorGroupDynamicRuleRequestGroupRulesFilters }, + }; + } + + validate() { + if(Array.isArray(this.filters)) { + $dara.Model.validateArray(this.filters); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutMonitorGroupDynamicRuleRequest extends $dara.Model { + /** + * @remarks + * The ID of the application group. + * + * This parameter is required. + * + * @example + * 123456 + */ + groupId?: number; + /** + * @remarks + * None. + * + * This parameter is required. + */ + groupRules?: PutMonitorGroupDynamicRuleRequestGroupRules[]; + /** + * @remarks + * The mode for creating the alert rule. Valid values: + * + * * true: creates asynchronously + * * false (default): creates synchronously + * + * @example + * false + */ + isAsync?: boolean; + regionId?: string; + static names(): { [key: string]: string } { + return { + groupId: 'GroupId', + groupRules: 'GroupRules', + isAsync: 'IsAsync', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + groupId: 'number', + groupRules: { 'type': 'array', 'itemType': PutMonitorGroupDynamicRuleRequestGroupRules }, + isAsync: 'boolean', + regionId: 'string', + }; + } + + validate() { + if(Array.isArray(this.groupRules)) { + $dara.Model.validateArray(this.groupRules); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutMonitorGroupDynamicRuleResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutMonitorGroupDynamicRuleResponse.ts new file mode 100644 index 0000000..4d9ca50 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutMonitorGroupDynamicRuleResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { PutMonitorGroupDynamicRuleResponseBody } from "./PutMonitorGroupDynamicRuleResponseBody"; + + +export class PutMonitorGroupDynamicRuleResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: PutMonitorGroupDynamicRuleResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutMonitorGroupDynamicRuleResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutMonitorGroupDynamicRuleResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutMonitorGroupDynamicRuleResponseBody.ts new file mode 100644 index 0000000..c1e95b1 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutMonitorGroupDynamicRuleResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutMonitorGroupDynamicRuleResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The error message. + * + * @example + * The specified resource is not found. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 3E73F1AB-D195-438A-BCA7-2F4355789C58 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutMonitoringConfigRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutMonitoringConfigRequest.ts new file mode 100644 index 0000000..19f076b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutMonitoringConfigRequest.ts @@ -0,0 +1,50 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutMonitoringConfigRequest extends $dara.Model { + /** + * @remarks + * This parameter is deprecated. + * + * @example + * true + */ + autoInstall?: boolean; + /** + * @remarks + * Specifies whether to automatically install the CloudMonitor agent on new ECS instances. Valid values: + * + * * true (default): The CloudMonitor agent is automatically installed on new ECS instances. + * * false: The CloudMonitor agent is not automatically installed on new ECS instances. + * + * @example + * true + */ + enableInstallAgentNewECS?: boolean; + regionId?: string; + static names(): { [key: string]: string } { + return { + autoInstall: 'AutoInstall', + enableInstallAgentNewECS: 'EnableInstallAgentNewECS', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + autoInstall: 'boolean', + enableInstallAgentNewECS: 'boolean', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutMonitoringConfigResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutMonitoringConfigResponse.ts new file mode 100644 index 0000000..6b71ef3 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutMonitoringConfigResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { PutMonitoringConfigResponseBody } from "./PutMonitoringConfigResponseBody"; + + +export class PutMonitoringConfigResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: PutMonitoringConfigResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutMonitoringConfigResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutMonitoringConfigResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutMonitoringConfigResponseBody.ts new file mode 100644 index 0000000..f0e8a60 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutMonitoringConfigResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutMonitoringConfigResponseBody extends $dara.Model { + /** + * @remarks + * The HTTP status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: number; + /** + * @remarks + * The returned message. + * + * @example + * Specified parameter EnableInstallAgentNewECS is not valid. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 109C8095-6FAD-4DBB-B013-6ED18CE4C0B1 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'number', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutResourceMetricRuleRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutResourceMetricRuleRequest.ts new file mode 100644 index 0000000..54c9c62 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutResourceMetricRuleRequest.ts @@ -0,0 +1,849 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutResourceMetricRuleRequestEscalationsCritical extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold for Critical-level alerts. Valid value: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * EqualToThreshold: equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The statistical methods for Critical-level alerts. + * + * The value of this parameter is determined by the `Statistics` column corresponding to the `MetricName` parameter of the specified cloud service. The value of this parameter can be Maximum, Minimum, or Average. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Critical-level alerts. + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * 90 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before a Critical-level alert is triggered. + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * 3 + */ + times?: number; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutResourceMetricRuleRequestEscalationsInfo extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold for Info-level alerts. Valid value: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * EqualToThreshold: equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The statistical methods for Info-level alerts. + * + * The value of this parameter is determined by the `Statistics` column corresponding to the `MetricName` parameter of the specified cloud service. The value of this parameter can be Maximum, Minimum, or Average. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Info-level alerts. + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * 90 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before an Info-level alert is triggered. + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * 3 + */ + times?: number; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutResourceMetricRuleRequestEscalationsWarn extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold for Warn-level alerts. Valid value: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * EqualToThreshold: equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The statistical methods for Warn-level alerts. + * + * The value of this parameter is determined by the `Statistics` column corresponding to the `MetricName` parameter of the specified cloud service. The value of this parameter can be Maximum, Minimum, or Average. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Warn-level alerts. + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * 90 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before a Warn-level alert is triggered. + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * 3 + */ + times?: number; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutResourceMetricRuleRequestEscalations extends $dara.Model { + critical?: PutResourceMetricRuleRequestEscalationsCritical; + info?: PutResourceMetricRuleRequestEscalationsInfo; + warn?: PutResourceMetricRuleRequestEscalationsWarn; + static names(): { [key: string]: string } { + return { + critical: 'Critical', + info: 'Info', + warn: 'Warn', + }; + } + + static types(): { [key: string]: any } { + return { + critical: PutResourceMetricRuleRequestEscalationsCritical, + info: PutResourceMetricRuleRequestEscalationsInfo, + warn: PutResourceMetricRuleRequestEscalationsWarn, + }; + } + + validate() { + if(this.critical && typeof (this.critical as any).validate === 'function') { + (this.critical as any).validate(); + } + if(this.info && typeof (this.info as any).validate === 'function') { + (this.info as any).validate(); + } + if(this.warn && typeof (this.warn as any).validate === 'function') { + (this.warn as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutResourceMetricRuleRequestCompositeExpressionExpressionList extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold. Valid value: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * EqualToThreshold: equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The metric that is used to monitor the cloud service. + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The aggregation period of the metric. + * + * Unit: seconds. + * + * @example + * 60 + */ + period?: number; + /** + * @remarks + * The statistical method of the metric. Valid value: + * + * * $Maximum: the maximum value + * * $Minimum: the minimum value + * * $Average: the average value + * * $Availability: the availability rate (usually used for site monitoring) + * + * > `$` is the prefix of the metric. For information about the Alibaba Cloud services that are supported by CloudMonitor, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * $Maximum + */ + statistics?: string; + /** + * @remarks + * The alert threshold. + * + * @example + * 90 + */ + threshold?: string; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + metricName: 'MetricName', + period: 'Period', + statistics: 'Statistics', + threshold: 'Threshold', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + metricName: 'string', + period: 'number', + statistics: 'string', + threshold: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutResourceMetricRuleRequestCompositeExpression extends $dara.Model { + /** + * @remarks + * The trigger conditions that are created in standard mode. + */ + expressionList?: PutResourceMetricRuleRequestCompositeExpressionExpressionList[]; + /** + * @remarks + * The relationship between the trigger conditions for multiple metrics. Valid value: + * + * * `&&`: An alert is triggered only if all metrics meet the trigger conditions. An alert is triggered only if the results of all expressions specified in the ExpressionList parameter are `true`. + * * `||`: An alert is triggered if one of the metrics meets the trigger conditions. + * + * @example + * || + */ + expressionListJoin?: string; + /** + * @remarks + * The trigger conditions that are created by using expressions. You can use expressions to create trigger conditions in the following scenarios: + * + * * Set an alert blacklist for specific resources. For example, if you specify `$instanceId != \\"i-io8kfvcpp7x5****\\" ``&&`` $Average > 50`, no alert is triggered when the `average metric value` of the `i-io8kfvcpp7x5****` instance exceeds 50. + * * Set a special alert threshold for a specified instance in the rule. For example, if you specify `$Average > ($instanceId == \\"i-io8kfvcpp7x5****\\"? 80: 50)`, an alert is triggered when the `average metric value` of the `i-io8kfvcpp7x5****` instance exceeds 80 or the `average metric value` of other instances exceeds 50. + * * Limit the number of instances whose metric values exceed the threshold. For example, if you specify `count($Average > 20) > 3`, an alert is triggered only when the `average metric value` of more than three instances exceeds 20. + * + * @example + * $Average > ($instanceId == \\"i-io8kfvcpp7x5****\\"? 80: 50) + */ + expressionRaw?: string; + /** + * @remarks + * The alert level. Valid values: + * + * * Critical + * * Warn + * * Info + * + * @example + * Critical + */ + level?: string; + /** + * @remarks + * The number of consecutive triggers. If the number of times that the metric values meet the trigger conditions reaches the value of this parameter, CloudMonitor sends alert notifications. + * + * @example + * 3 + */ + times?: number; + static names(): { [key: string]: string } { + return { + expressionList: 'ExpressionList', + expressionListJoin: 'ExpressionListJoin', + expressionRaw: 'ExpressionRaw', + level: 'Level', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + 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?: { [key: string]: any }) { + super(map); + } +} + +export class PutResourceMetricRuleRequestLabels 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 } { + return { + key: 'Key', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + key: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutResourceMetricRuleRequestPrometheusAnnotations extends $dara.Model { + /** + * @remarks + * The key of the annotation. + * + * @example + * summary + */ + key?: string; + /** + * @remarks + * The value of the annotation. + * + * @example + * {{ $labels.instance }} CPU usage above 10% {current value: {{ humanizePercentage $value }} } + */ + value?: string; + static names(): { [key: string]: string } { + return { + key: 'Key', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + key: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutResourceMetricRuleRequestPrometheus extends $dara.Model { + /** + * @remarks + * The annotations of the Prometheus alert rule. When a Prometheus alert is triggered, the system renders the annotated keys and values to help you understand the metrics and alert rule. + * + * > This parameter is equivalent to the annotations parameter of open source Prometheus. + */ + annotations?: PutResourceMetricRuleRequestPrometheusAnnotations[]; + /** + * @remarks + * The alert level. Valid values: + * + * * Critical + * * Warn + * * Info + * + * @example + * Critical + */ + level?: string; + /** + * @remarks + * PromQL statements are supported. + * + * > The data obtained by using the PromQL query statement is the monitoring data. You must include the alert threshold in this statement. + * + * @example + * cpuUsage{instanceId="xxxx"}[1m]>90 + */ + promQL?: string; + /** + * @remarks + * The number of consecutive triggers. If the number of times that the metric values meet the trigger conditions reaches the value of this parameter, CloudMonitor sends alert notifications. + * + * @example + * 3 + */ + times?: number; + static names(): { [key: string]: string } { + return { + annotations: 'Annotations', + level: 'Level', + promQL: 'PromQL', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + 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?: { [key: string]: any }) { + super(map); + } +} + +export class PutResourceMetricRuleRequest extends $dara.Model { + escalations?: PutResourceMetricRuleRequestEscalations; + /** + * @remarks + * The trigger conditions for multiple metrics. + * + * > The trigger conditions for a single metric and multiple metrics are mutually exclusive. You cannot specify trigger conditions for a single metric and multiple metrics at the same time. + */ + compositeExpression?: PutResourceMetricRuleRequestCompositeExpression; + /** + * @remarks + * The alert contact groups. Alert notifications are sent to the alert contacts in the alert contact group. + * + * > 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 period of time during which the alert rule is effective. + * + * @example + * 00:00-23:59 + */ + effectiveInterval?: string; + /** + * @remarks + * The subject of the alert notification email. + */ + emailSubject?: string; + /** + * @remarks + * The interval at which alerts are triggered based on the alert rule. Unit: seconds. + * + * > For more information about how to query the statistical periods of metrics, 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. + * + * > This parameter is equivalent to the Label parameter of Prometheus alerts. + */ + labels?: PutResourceMetricRuleRequestLabels[]; + /** + * @remarks + * The metric name. For more information about how to query metric names, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * > If you create a Prometheus alert rule for Hybrid Cloud Monitoring, you must set this parameter to the name of the namespace. For more information about how to query the names of namespaces, see [DescribeHybridMonitorNamespaceList](https://help.aliyun.com/document_detail/428880.html). + * + * This parameter is required. + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. For more information about how to query the namespaces of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * > If you create a Prometheus alert rule for Hybrid Cloud Monitoring, you must set this parameter to `acs_prometheus`. + * + * 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 value: + * + * * 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. + * + * @example + * KEEP_LAST_STATE + */ + noDataPolicy?: string; + /** + * @remarks + * The period of time during which the alert rule is ineffective. + * + * @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. + * + * > For more information about how to query the statistical periods of metrics, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * 60 + */ + period?: string; + /** + * @remarks + * Prometheus alerts. + * + * > This parameter is required only if you create a Prometheus alert rule for Hybrid Cloud Monitoring. + */ + prometheus?: PutResourceMetricRuleRequestPrometheus; + /** + * @remarks + * The resource information. Examples: `[{"instanceId":"i-uf6j91r34rnwawoo****"}]` and `[{"userId":"100931896542****"}]`. + * + * 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). + * + * @example + * [{"instanceId":"i-uf6j91r34rnwawoo****"}] + */ + resources?: string; + /** + * @remarks + * The ID of the alert rule. + * + * You can specify a new ID or the ID of an existing alert rule. For more information about how to query the IDs of alert rules, 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. + * + * You can specify a new name or the name of an existing alert rule. For more information about how to query the names of alert rules, 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. + * + * > 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. + * + * @example + * https://alert.aliyun.com.com:8080/callback + */ + webhook?: string; + static names(): { [key: string]: string } { + 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(): { [key: string]: any } { + 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 as any).validate === 'function') { + (this.escalations as any).validate(); + } + if(this.compositeExpression && typeof (this.compositeExpression as any).validate === 'function') { + (this.compositeExpression as any).validate(); + } + if(Array.isArray(this.labels)) { + $dara.Model.validateArray(this.labels); + } + if(this.prometheus && typeof (this.prometheus as any).validate === 'function') { + (this.prometheus as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutResourceMetricRuleResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutResourceMetricRuleResponse.ts new file mode 100644 index 0000000..a435e26 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutResourceMetricRuleResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { PutResourceMetricRuleResponseBody } from "./PutResourceMetricRuleResponseBody"; + + +export class PutResourceMetricRuleResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: PutResourceMetricRuleResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutResourceMetricRuleResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutResourceMetricRuleResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutResourceMetricRuleResponseBody.ts new file mode 100644 index 0000000..5a94167 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutResourceMetricRuleResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutResourceMetricRuleResponseBody extends $dara.Model { + /** + * @remarks + * The responses code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * The request processing has failed due to some unknown error. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 65D50468-ECEF-48F1-A6E1-D952E89D9436 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutResourceMetricRuleShrinkRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutResourceMetricRuleShrinkRequest.ts new file mode 100644 index 0000000..ca747f0 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutResourceMetricRuleShrinkRequest.ts @@ -0,0 +1,562 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutResourceMetricRuleShrinkRequestEscalationsCritical extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold for Critical-level alerts. Valid value: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * EqualToThreshold: equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The statistical methods for Critical-level alerts. + * + * The value of this parameter is determined by the `Statistics` column corresponding to the `MetricName` parameter of the specified cloud service. The value of this parameter can be Maximum, Minimum, or Average. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Critical-level alerts. + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * 90 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before a Critical-level alert is triggered. + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * 3 + */ + times?: number; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutResourceMetricRuleShrinkRequestEscalationsInfo extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold for Info-level alerts. Valid value: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * EqualToThreshold: equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The statistical methods for Info-level alerts. + * + * The value of this parameter is determined by the `Statistics` column corresponding to the `MetricName` parameter of the specified cloud service. The value of this parameter can be Maximum, Minimum, or Average. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Info-level alerts. + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * 90 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before an Info-level alert is triggered. + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * 3 + */ + times?: number; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutResourceMetricRuleShrinkRequestEscalationsWarn extends $dara.Model { + /** + * @remarks + * The operator that is used to compare the metric value with the threshold for Warn-level alerts. Valid value: + * + * * GreaterThanOrEqualToThreshold: greater than or equal to the threshold + * * GreaterThanThreshold: greater than the threshold + * * LessThanOrEqualToThreshold: less than or equal to the threshold + * * LessThanThreshold: less than the threshold + * * NotEqualToThreshold: not equal to the threshold + * * EqualToThreshold: equal to the threshold + * * GreaterThanYesterday: greater than the metric value at the same time yesterday + * * LessThanYesterday: less than the metric value at the same time yesterday + * * GreaterThanLastWeek: greater than the metric value at the same time last week + * * LessThanLastWeek: less than the metric value at the same time last week + * * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle + * * LessThanLastPeriod: less than the metric value in the last monitoring cycle + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * GreaterThanOrEqualToThreshold + */ + comparisonOperator?: string; + /** + * @remarks + * The statistical methods for Warn-level alerts. + * + * The value of this parameter is determined by the `Statistics` column corresponding to the `MetricName` parameter of the specified cloud service. The value of this parameter can be Maximum, Minimum, or Average. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * Average + */ + statistics?: string; + /** + * @remarks + * The threshold for Warn-level alerts. + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * 90 + */ + threshold?: string; + /** + * @remarks + * The consecutive number of times for which the metric value meets the alert condition before a Warn-level alert is triggered. + * + * > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level. + * + * @example + * 3 + */ + times?: number; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutResourceMetricRuleShrinkRequestEscalations extends $dara.Model { + critical?: PutResourceMetricRuleShrinkRequestEscalationsCritical; + info?: PutResourceMetricRuleShrinkRequestEscalationsInfo; + warn?: PutResourceMetricRuleShrinkRequestEscalationsWarn; + static names(): { [key: string]: string } { + return { + critical: 'Critical', + info: 'Info', + warn: 'Warn', + }; + } + + static types(): { [key: string]: any } { + return { + critical: PutResourceMetricRuleShrinkRequestEscalationsCritical, + info: PutResourceMetricRuleShrinkRequestEscalationsInfo, + warn: PutResourceMetricRuleShrinkRequestEscalationsWarn, + }; + } + + validate() { + if(this.critical && typeof (this.critical as any).validate === 'function') { + (this.critical as any).validate(); + } + if(this.info && typeof (this.info as any).validate === 'function') { + (this.info as any).validate(); + } + if(this.warn && typeof (this.warn as any).validate === 'function') { + (this.warn as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutResourceMetricRuleShrinkRequestLabels 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 } { + return { + key: 'Key', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + key: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutResourceMetricRuleShrinkRequest extends $dara.Model { + escalations?: PutResourceMetricRuleShrinkRequestEscalations; + /** + * @remarks + * The trigger conditions for multiple metrics. + * + * > The trigger conditions for a single metric and multiple metrics are mutually exclusive. You cannot specify trigger conditions for a single metric and multiple metrics at the same time. + */ + compositeExpressionShrink?: string; + /** + * @remarks + * The alert contact groups. Alert notifications are sent to the alert contacts in the alert contact group. + * + * > 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 period of time during which the alert rule is effective. + * + * @example + * 00:00-23:59 + */ + effectiveInterval?: string; + /** + * @remarks + * The subject of the alert notification email. + */ + emailSubject?: string; + /** + * @remarks + * The interval at which alerts are triggered based on the alert rule. Unit: seconds. + * + * > For more information about how to query the statistical periods of metrics, 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. + * + * > This parameter is equivalent to the Label parameter of Prometheus alerts. + */ + labels?: PutResourceMetricRuleShrinkRequestLabels[]; + /** + * @remarks + * The metric name. For more information about how to query metric names, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * > If you create a Prometheus alert rule for Hybrid Cloud Monitoring, you must set this parameter to the name of the namespace. For more information about how to query the names of namespaces, see [DescribeHybridMonitorNamespaceList](https://help.aliyun.com/document_detail/428880.html). + * + * This parameter is required. + * + * @example + * cpu_total + */ + metricName?: string; + /** + * @remarks + * The namespace of the cloud service. For more information about how to query the namespaces of cloud services, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * > If you create a Prometheus alert rule for Hybrid Cloud Monitoring, you must set this parameter to `acs_prometheus`. + * + * 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 value: + * + * * 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. + * + * @example + * KEEP_LAST_STATE + */ + noDataPolicy?: string; + /** + * @remarks + * The period of time during which the alert rule is ineffective. + * + * @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. + * + * > For more information about how to query the statistical periods of metrics, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html). + * + * @example + * 60 + */ + period?: string; + /** + * @remarks + * Prometheus alerts. + * + * > This parameter is required only if you create a Prometheus alert rule for Hybrid Cloud Monitoring. + */ + prometheusShrink?: string; + /** + * @remarks + * The resource information. Examples: `[{"instanceId":"i-uf6j91r34rnwawoo****"}]` and `[{"userId":"100931896542****"}]`. + * + * 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). + * + * @example + * [{"instanceId":"i-uf6j91r34rnwawoo****"}] + */ + resources?: string; + /** + * @remarks + * The ID of the alert rule. + * + * You can specify a new ID or the ID of an existing alert rule. For more information about how to query the IDs of alert rules, 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. + * + * You can specify a new name or the name of an existing alert rule. For more information about how to query the names of alert rules, 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. + * + * > 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. + * + * @example + * https://alert.aliyun.com.com:8080/callback + */ + webhook?: string; + static names(): { [key: string]: string } { + 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(): { [key: string]: any } { + 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 as any).validate === 'function') { + (this.escalations as any).validate(); + } + if(Array.isArray(this.labels)) { + $dara.Model.validateArray(this.labels); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutResourceMetricRulesRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutResourceMetricRulesRequest.ts new file mode 100644 index 0000000..e90dc9a --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutResourceMetricRulesRequest.ts @@ -0,0 +1,475 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutResourceMetricRulesRequestRulesEscalationsCritical extends $dara.Model { + comparisonOperator?: string; + n?: number; + preCondition?: string; + statistics?: string; + threshold?: string; + times?: number; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + n: 'N', + preCondition: 'PreCondition', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + n: 'number', + preCondition: 'string', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutResourceMetricRulesRequestRulesEscalationsInfo extends $dara.Model { + comparisonOperator?: string; + n?: number; + preCondition?: string; + statistics?: string; + threshold?: string; + times?: number; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + n: 'N', + preCondition: 'PreCondition', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + n: 'number', + preCondition: 'string', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutResourceMetricRulesRequestRulesEscalationsWarn extends $dara.Model { + comparisonOperator?: string; + n?: number; + preCondition?: string; + statistics?: string; + threshold?: string; + times?: number; + static names(): { [key: string]: string } { + return { + comparisonOperator: 'ComparisonOperator', + n: 'N', + preCondition: 'PreCondition', + statistics: 'Statistics', + threshold: 'Threshold', + times: 'Times', + }; + } + + static types(): { [key: string]: any } { + return { + comparisonOperator: 'string', + n: 'number', + preCondition: 'string', + statistics: 'string', + threshold: 'string', + times: 'number', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutResourceMetricRulesRequestRulesEscalations extends $dara.Model { + critical?: PutResourceMetricRulesRequestRulesEscalationsCritical; + info?: PutResourceMetricRulesRequestRulesEscalationsInfo; + warn?: PutResourceMetricRulesRequestRulesEscalationsWarn; + static names(): { [key: string]: string } { + return { + critical: 'Critical', + info: 'Info', + warn: 'Warn', + }; + } + + static types(): { [key: string]: any } { + return { + critical: PutResourceMetricRulesRequestRulesEscalationsCritical, + info: PutResourceMetricRulesRequestRulesEscalationsInfo, + warn: PutResourceMetricRulesRequestRulesEscalationsWarn, + }; + } + + validate() { + if(this.critical && typeof (this.critical as any).validate === 'function') { + (this.critical as any).validate(); + } + if(this.info && typeof (this.info as any).validate === 'function') { + (this.info as any).validate(); + } + if(this.warn && typeof (this.warn as any).validate === 'function') { + (this.warn as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export 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 } { + return { + key: 'Key', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + key: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export 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 } { + return { + escalations: 'Escalations', + contactGroups: 'ContactGroups', + effectiveInterval: 'EffectiveInterval', + emailSubject: 'EmailSubject', + interval: 'Interval', + labels: 'Labels', + metricName: 'MetricName', + namespace: 'Namespace', + noDataPolicy: 'NoDataPolicy', + noEffectiveInterval: 'NoEffectiveInterval', + period: 'Period', + resources: 'Resources', + ruleId: 'RuleId', + ruleName: 'RuleName', + silenceTime: 'SilenceTime', + webhook: 'Webhook', + }; + } + + static types(): { [key: string]: any } { + return { + escalations: PutResourceMetricRulesRequestRulesEscalations, + contactGroups: 'string', + effectiveInterval: 'string', + emailSubject: 'string', + interval: 'string', + labels: { 'type': 'array', 'itemType': PutResourceMetricRulesRequestRulesLabels }, + metricName: 'string', + namespace: 'string', + noDataPolicy: 'string', + noEffectiveInterval: 'string', + period: 'string', + resources: 'string', + ruleId: 'string', + ruleName: 'string', + silenceTime: 'number', + webhook: 'string', + }; + } + + validate() { + if(this.escalations && typeof (this.escalations as any).validate === 'function') { + (this.escalations as any).validate(); + } + if(Array.isArray(this.labels)) { + $dara.Model.validateArray(this.labels); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export 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 } { + return { + rules: 'Rules', + }; + } + + static types(): { [key: string]: any } { + return { + rules: { 'type': 'array', 'itemType': PutResourceMetricRulesRequestRules }, + }; + } + + validate() { + if(Array.isArray(this.rules)) { + $dara.Model.validateArray(this.rules); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutResourceMetricRulesResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutResourceMetricRulesResponse.ts new file mode 100644 index 0000000..dd14596 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutResourceMetricRulesResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { PutResourceMetricRulesResponseBody } from "./PutResourceMetricRulesResponseBody"; + + +export class PutResourceMetricRulesResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: PutResourceMetricRulesResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: PutResourceMetricRulesResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/PutResourceMetricRulesResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/PutResourceMetricRulesResponseBody.ts new file mode 100644 index 0000000..5a4a130 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/PutResourceMetricRulesResponseBody.ts @@ -0,0 +1,198 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class PutResourceMetricRulesResponseBodyFailedListResultTargetResult extends $dara.Model { + /** + * @remarks + * The response code. + * + * @example + * 404 + */ + code?: string; + /** + * @remarks + * The error message returned. + * + * @example + * The request processing has failed due to some unknown error. + */ + message?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * false + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutResourceMetricRulesResponseBodyFailedListResultTarget extends $dara.Model { + /** + * @remarks + * The alert rule that failed to be created. + */ + result?: PutResourceMetricRulesResponseBodyFailedListResultTargetResult; + /** + * @remarks + * The ID of the alert rule. + * + * @example + * a151cd6023eacee2f0978e03863cc1697c89508**** + */ + ruleId?: string; + static names(): { [key: string]: string } { + return { + result: 'Result', + ruleId: 'RuleId', + }; + } + + static types(): { [key: string]: any } { + return { + result: PutResourceMetricRulesResponseBodyFailedListResultTargetResult, + ruleId: 'string', + }; + } + + validate() { + if(this.result && typeof (this.result as any).validate === 'function') { + (this.result as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutResourceMetricRulesResponseBodyFailedListResult extends $dara.Model { + target?: PutResourceMetricRulesResponseBodyFailedListResultTarget[]; + static names(): { [key: string]: string } { + return { + target: 'Target', + }; + } + + static types(): { [key: string]: any } { + return { + target: { 'type': 'array', 'itemType': PutResourceMetricRulesResponseBodyFailedListResultTarget }, + }; + } + + validate() { + if(Array.isArray(this.target)) { + $dara.Model.validateArray(this.target); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class PutResourceMetricRulesResponseBody extends $dara.Model { + /** + * @remarks + * The response code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The alert rules that failed to be created for the resource. + */ + failedListResult?: PutResourceMetricRulesResponseBodyFailedListResult; + /** + * @remarks + * The error message returned. + * + * @example + * The request processing has failed due to some unknown error. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 15D1440E-BF24-5A41-93E4-36864635179E + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + failedListResult: 'FailedListResult', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + failedListResult: PutResourceMetricRulesResponseBodyFailedListResult, + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + if(this.failedListResult && typeof (this.failedListResult as any).validate === 'function') { + (this.failedListResult as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/RemoveTagsRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/RemoveTagsRequest.ts new file mode 100644 index 0000000..65820db --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/RemoveTagsRequest.ts @@ -0,0 +1,102 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class RemoveTagsRequestTag extends $dara.Model { + /** + * @remarks + * The tag key. + * + * > The tag key (`Tag.N.Key`) and tag value (`Tag.N.Value`) must be specified at the same time. + * + * This parameter is required. + * + * @example + * Key1 + */ + key?: string; + /** + * @remarks + * The tag value. + * + * > The tag key (`Tag.N.Key`) and tag value (`Tag.N.Value`) must be specified at the same time. + * + * This parameter is required. + * + * @example + * Value1 + */ + value?: string; + static names(): { [key: string]: string } { + return { + key: 'Key', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + key: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class RemoveTagsRequest extends $dara.Model { + /** + * @remarks + * The IDs of the application groups. + * + * This parameter is required. + * + * @example + * 12345 + */ + groupIds?: string[]; + regionId?: string; + /** + * @remarks + * The tags. + * + * This parameter is required. + */ + tag?: RemoveTagsRequestTag[]; + static names(): { [key: string]: string } { + return { + groupIds: 'GroupIds', + regionId: 'RegionId', + tag: 'Tag', + }; + } + + static types(): { [key: string]: any } { + return { + groupIds: { 'type': 'array', 'itemType': 'string' }, + regionId: 'string', + tag: { 'type': 'array', 'itemType': RemoveTagsRequestTag }, + }; + } + + validate() { + if(Array.isArray(this.groupIds)) { + $dara.Model.validateArray(this.groupIds); + } + if(Array.isArray(this.tag)) { + $dara.Model.validateArray(this.tag); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/RemoveTagsResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/RemoveTagsResponse.ts new file mode 100644 index 0000000..7f88b73 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/RemoveTagsResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { RemoveTagsResponseBody } from "./RemoveTagsResponseBody"; + + +export class RemoveTagsResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: RemoveTagsResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: RemoveTagsResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/RemoveTagsResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/RemoveTagsResponseBody.ts new file mode 100644 index 0000000..6486eec --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/RemoveTagsResponseBody.ts @@ -0,0 +1,105 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class RemoveTagsResponseBodyTag extends $dara.Model { + tags?: string[]; + static names(): { [key: string]: string } { + return { + tags: 'Tags', + }; + } + + static types(): { [key: string]: any } { + return { + tags: { 'type': 'array', 'itemType': 'string' }, + }; + } + + validate() { + if(Array.isArray(this.tags)) { + $dara.Model.validateArray(this.tags); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class RemoveTagsResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The error message. + * + * @example + * Illegal parameters. + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 195390D2-69D0-4D9E-81AA-A7F5BC1B91EB + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + /** + * @remarks + * The deleted tags. + */ + tag?: RemoveTagsResponseBodyTag; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + tag: 'Tag', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + tag: RemoveTagsResponseBodyTag, + }; + } + + validate() { + if(this.tag && typeof (this.tag as any).validate === 'function') { + (this.tag as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/SendDryRunSystemEventRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/SendDryRunSystemEventRequest.ts new file mode 100644 index 0000000..e8b2d4b --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/SendDryRunSystemEventRequest.ts @@ -0,0 +1,77 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class SendDryRunSystemEventRequest extends $dara.Model { + /** + * @remarks + * The content of the system event. + * + * > The value of this parameter is a JSON object. We recommend that you include the `product`, `resourceId`, and `regionId` fields in the JSON object. + * + * @example + * {"product":"CloudMonitor","resourceId":"acs:ecs:cn-hongkong:173651113438****:instance/{instanceId}","level":"CRITICAL","instanceName":"instanceName","regionId":"cn-hangzhou","name":"Agent_Status_Stopped","content":{"ipGroup":"0.0.0.0,0.0.0.1","tianjimonVersion":"1.2.11"},"status":"stopped"} + */ + eventContent?: string; + /** + * @remarks + * The name of the system event. + * + * > For more information, see [DescribeSystemEventMetaList](https://help.aliyun.com/document_detail/114972.html). + * + * This parameter is required. + * + * @example + * Agent_Status_Stopped + */ + eventName?: string; + /** + * @remarks + * The ID of the application group. + * + * @example + * 123456 + */ + groupId?: string; + /** + * @remarks + * The name of the cloud service. + * + * > For information about the Alibaba Cloud services that are supported by CloudMonitor, see [Supported cloud services and their system events](https://help.aliyun.com/document_detail/167388.html). + * + * This parameter is required. + * + * @example + * ecs + */ + product?: string; + regionId?: string; + static names(): { [key: string]: string } { + return { + eventContent: 'EventContent', + eventName: 'EventName', + groupId: 'GroupId', + product: 'Product', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + eventContent: 'string', + eventName: 'string', + groupId: 'string', + product: 'string', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/SendDryRunSystemEventResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/SendDryRunSystemEventResponse.ts new file mode 100644 index 0000000..a6f8ff6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/SendDryRunSystemEventResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { SendDryRunSystemEventResponseBody } from "./SendDryRunSystemEventResponseBody"; + + +export class SendDryRunSystemEventResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: SendDryRunSystemEventResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: SendDryRunSystemEventResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/SendDryRunSystemEventResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/SendDryRunSystemEventResponseBody.ts new file mode 100644 index 0000000..73856e6 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/SendDryRunSystemEventResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class SendDryRunSystemEventResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * success + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 486029C9-53E1-44B4-85A8-16A571A043FD + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: string; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/Subscription.ts b/backend/node_modules/@alicloud/cms20190101/src/models/Subscription.ts new file mode 100644 index 0000000..4806d1c --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/Subscription.ts @@ -0,0 +1,90 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class SubscriptionConditions extends $dara.Model { + field?: string; + operator?: string; + value?: string; + static names(): { [key: string]: string } { + return { + field: 'Field', + operator: 'Operator', + value: 'Value', + }; + } + + static types(): { [key: string]: any } { + return { + field: 'string', + operator: 'string', + value: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class Subscription extends $dara.Model { + conditions?: SubscriptionConditions[]; + createTime?: string; + description?: string; + enabled?: boolean; + /** + * @remarks + * This parameter is required. + */ + name?: string; + product?: string; + relation?: string; + strategyUuid?: string; + updateTime?: string; + uuid?: string; + static names(): { [key: string]: string } { + return { + conditions: 'Conditions', + createTime: 'CreateTime', + description: 'Description', + enabled: 'Enabled', + name: 'Name', + product: 'Product', + relation: 'Relation', + strategyUuid: 'StrategyUuid', + updateTime: 'UpdateTime', + uuid: 'Uuid', + }; + } + + static types(): { [key: string]: any } { + return { + conditions: { 'type': 'array', 'itemType': SubscriptionConditions }, + createTime: 'string', + description: 'string', + enabled: 'boolean', + name: 'string', + product: 'string', + relation: 'string', + strategyUuid: 'string', + updateTime: 'string', + uuid: 'string', + }; + } + + validate() { + if(Array.isArray(this.conditions)) { + $dara.Model.validateArray(this.conditions); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/UninstallMonitoringAgentRequest.ts b/backend/node_modules/@alicloud/cms20190101/src/models/UninstallMonitoringAgentRequest.ts new file mode 100644 index 0000000..5b68796 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/UninstallMonitoringAgentRequest.ts @@ -0,0 +1,39 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class UninstallMonitoringAgentRequest extends $dara.Model { + /** + * @remarks + * The ID of the host. + * + * This parameter is required. + * + * @example + * host-**** + */ + instanceId?: string; + regionId?: string; + static names(): { [key: string]: string } { + return { + instanceId: 'InstanceId', + regionId: 'RegionId', + }; + } + + static types(): { [key: string]: any } { + return { + instanceId: 'string', + regionId: 'string', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/UninstallMonitoringAgentResponse.ts b/backend/node_modules/@alicloud/cms20190101/src/models/UninstallMonitoringAgentResponse.ts new file mode 100644 index 0000000..03e3984 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/UninstallMonitoringAgentResponse.ts @@ -0,0 +1,40 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { UninstallMonitoringAgentResponseBody } from "./UninstallMonitoringAgentResponseBody"; + + +export class UninstallMonitoringAgentResponse extends $dara.Model { + headers?: { [key: string]: string }; + statusCode?: number; + body?: UninstallMonitoringAgentResponseBody; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + body: 'body', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + body: UninstallMonitoringAgentResponseBody, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + if(this.body && typeof (this.body as any).validate === 'function') { + (this.body as any).validate(); + } + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/UninstallMonitoringAgentResponseBody.ts b/backend/node_modules/@alicloud/cms20190101/src/models/UninstallMonitoringAgentResponseBody.ts new file mode 100644 index 0000000..56f88cd --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/UninstallMonitoringAgentResponseBody.ts @@ -0,0 +1,69 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class UninstallMonitoringAgentResponseBody extends $dara.Model { + /** + * @remarks + * The status code. + * + * > The status code 200 indicates that the request was successful. + * + * @example + * 200 + */ + code?: string; + /** + * @remarks + * The returned message. + * + * @example + * Successfully + */ + message?: string; + /** + * @remarks + * The request ID. + * + * @example + * 466902B9-2842-40B0-B796-00FE772B6EF3 + */ + requestId?: string; + /** + * @remarks + * Indicates whether the request was successful. Valid values: + * + * * true + * * false + * + * @example + * true + */ + success?: boolean; + static names(): { [key: string]: string } { + return { + code: 'Code', + message: 'Message', + requestId: 'RequestId', + success: 'Success', + }; + } + + static types(): { [key: string]: any } { + return { + code: 'string', + message: 'string', + requestId: 'string', + success: 'boolean', + }; + } + + validate() { + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/cms20190101/src/models/model.ts b/backend/node_modules/@alicloud/cms20190101/src/models/model.ts new file mode 100644 index 0000000..3bca188 --- /dev/null +++ b/backend/node_modules/@alicloud/cms20190101/src/models/model.ts @@ -0,0 +1,942 @@ +export { AlertEventMetrics } from './AlertEvent'; +export { EscalationRuleEscalationsContactGroupsByLevel } from './EscalationRule'; +export { EscalationRuleEscalations } from './EscalationRule'; +export { MigrationJobPlanContactsChannels } from './MigrationJob'; +export { MigrationJobPlanContacts } from './MigrationJob'; +export { MigrationJobPlanEscalationsEscalationsLevelGroups } from './MigrationJob'; +export { MigrationJobPlanEscalationsEscalations } from './MigrationJob'; +export { MigrationJobPlanEscalations } from './MigrationJob'; +export { MigrationJobPlanGroups } from './MigrationJob'; +export { MigrationJobPlanStrategiesEscalationSetting } from './MigrationJob'; +export { MigrationJobPlanStrategiesPushingSetting } from './MigrationJob'; +export { MigrationJobPlanStrategies } from './MigrationJob'; +export { MigrationJobPlanSubscriptionsConditions } from './MigrationJob'; +export { MigrationJobPlanSubscriptions } from './MigrationJob'; +export { MigrationJobPlanTargetsHttpRequestTarget } from './MigrationJob'; +export { MigrationJobPlanTargets } from './MigrationJob'; +export { MigrationJobPlan } from './MigrationJob'; +export { MigrationJobSourceRuleKeywordFilter } from './MigrationJob'; +export { MigrationJobSourceRulePrimaryFilters } from './MigrationJob'; +export { MigrationJobSourceRule } from './MigrationJob'; +export { MigrationJobSourceTargetsContent } from './MigrationJob'; +export { MigrationJobSourceTargets } from './MigrationJob'; +export { MigrationJobSource } from './MigrationJob'; +export { NotificationStrategyEscalationSettingCustomChannels } from './NotificationStrategy'; +export { NotificationStrategyEscalationSetting } from './NotificationStrategy'; +export { NotificationStrategyFilterSettingBlackList } from './NotificationStrategy'; +export { NotificationStrategyFilterSettingWhiteList } from './NotificationStrategy'; +export { NotificationStrategyFilterSetting } from './NotificationStrategy'; +export { NotificationStrategyGroupingSettingGroupingItems } from './NotificationStrategy'; +export { NotificationStrategyGroupingSetting } from './NotificationStrategy'; +export { NotificationStrategyPushingSetting } from './NotificationStrategy'; +export { NotificationStrategyRouteSettingRoutesConditions } from './NotificationStrategy'; +export { NotificationStrategyRouteSettingRoutes } from './NotificationStrategy'; +export { NotificationStrategyRouteSetting } from './NotificationStrategy'; +export { PushingTargetHttpRequestTargetHeaders } from './PushingTarget'; +export { PushingTargetHttpRequestTarget } from './PushingTarget'; +export { SubscriptionConditions } from './Subscription'; +export { AddTagsRequestTag } from './AddTagsRequest'; +export { ApplyMetricRuleTemplateResponseBodyResourceAlertResults } from './ApplyMetricRuleTemplateResponseBody'; +export { ApplyMetricRuleTemplateResponseBodyResource } from './ApplyMetricRuleTemplateResponseBody'; +export { BatchCreateInstantSiteMonitorRequestTaskList } from './BatchCreateInstantSiteMonitorRequest'; +export { BatchCreateInstantSiteMonitorResponseBodyData } from './BatchCreateInstantSiteMonitorResponseBody'; +export { CreateDynamicTagGroupRequestMatchExpress } from './CreateDynamicTagGroupRequest'; +export { CreateGroupMetricRulesRequestGroupMetricRulesEscalationsCritical } from './CreateGroupMetricRulesRequest'; +export { CreateGroupMetricRulesRequestGroupMetricRulesEscalationsInfo } from './CreateGroupMetricRulesRequest'; +export { CreateGroupMetricRulesRequestGroupMetricRulesEscalationsWarn } from './CreateGroupMetricRulesRequest'; +export { CreateGroupMetricRulesRequestGroupMetricRulesEscalations } from './CreateGroupMetricRulesRequest'; +export { CreateGroupMetricRulesRequestGroupMetricRulesLabels } from './CreateGroupMetricRulesRequest'; +export { CreateGroupMetricRulesRequestGroupMetricRules } from './CreateGroupMetricRulesRequest'; +export { CreateGroupMetricRulesResponseBodyResourcesAlertResult } from './CreateGroupMetricRulesResponseBody'; +export { CreateGroupMetricRulesResponseBodyResources } from './CreateGroupMetricRulesResponseBody'; +export { CreateGroupMonitoringAgentProcessRequestAlertConfigTargetList } from './CreateGroupMonitoringAgentProcessRequest'; +export { CreateGroupMonitoringAgentProcessRequestAlertConfig } from './CreateGroupMonitoringAgentProcessRequest'; +export { CreateGroupMonitoringAgentProcessRequestMatchExpress } from './CreateGroupMonitoringAgentProcessRequest'; +export { CreateGroupMonitoringAgentProcessResponseBodyResource } from './CreateGroupMonitoringAgentProcessResponseBody'; +export { CreateHostAvailabilityRequestAlertConfig } from './CreateHostAvailabilityRequest'; +export { CreateHostAvailabilityRequestTaskOption } from './CreateHostAvailabilityRequest'; +export { CreateHostAvailabilityRequestAlertConfigEscalationList } from './CreateHostAvailabilityRequest'; +export { CreateHostAvailabilityRequestAlertConfigTargetList } from './CreateHostAvailabilityRequest'; +export { CreateHybridMonitorSLSGroupRequestSLSGroupConfig } from './CreateHybridMonitorSlsgroupRequest'; +export { CreateHybridMonitorTaskRequestAttachLabels } from './CreateHybridMonitorTaskRequest'; +export { CreateHybridMonitorTaskRequestSLSProcessConfigExpress } from './CreateHybridMonitorTaskRequest'; +export { CreateHybridMonitorTaskRequestSLSProcessConfigFilterFilters } from './CreateHybridMonitorTaskRequest'; +export { CreateHybridMonitorTaskRequestSLSProcessConfigFilter } from './CreateHybridMonitorTaskRequest'; +export { CreateHybridMonitorTaskRequestSLSProcessConfigGroupBy } from './CreateHybridMonitorTaskRequest'; +export { CreateHybridMonitorTaskRequestSLSProcessConfigStatistics } from './CreateHybridMonitorTaskRequest'; +export { CreateHybridMonitorTaskRequestSLSProcessConfig } from './CreateHybridMonitorTaskRequest'; +export { CreateInstantSiteMonitorResponseBodyCreateResultList } from './CreateInstantSiteMonitorResponseBody'; +export { CreateMetricRuleBlackListRequestMetrics } from './CreateMetricRuleBlackListRequest'; +export { CreateMetricRuleTemplateRequestAlertTemplatesEscalationsCritical } from './CreateMetricRuleTemplateRequest'; +export { CreateMetricRuleTemplateRequestAlertTemplatesEscalationsInfo } from './CreateMetricRuleTemplateRequest'; +export { CreateMetricRuleTemplateRequestAlertTemplatesEscalationsWarn } from './CreateMetricRuleTemplateRequest'; +export { CreateMetricRuleTemplateRequestAlertTemplatesEscalations } from './CreateMetricRuleTemplateRequest'; +export { CreateMetricRuleTemplateRequestAlertTemplates } from './CreateMetricRuleTemplateRequest'; +export { CreateMonitorGroupInstancesRequestInstances } from './CreateMonitorGroupInstancesRequest'; +export { CreateSiteMonitorResponseBodyCreateResultListCreateResultList } from './CreateSiteMonitorResponseBody'; +export { CreateSiteMonitorResponseBodyCreateResultList } from './CreateSiteMonitorResponseBody'; +export { CreateSiteMonitorResponseBodyDataAttachAlertResultContact } from './CreateSiteMonitorResponseBody'; +export { CreateSiteMonitorResponseBodyDataAttachAlertResult } from './CreateSiteMonitorResponseBody'; +export { CreateSiteMonitorResponseBodyData } from './CreateSiteMonitorResponseBody'; +export { DeleteMetricRuleTargetsResponseBodyFailIdsTargetIds } from './DeleteMetricRuleTargetsResponseBody'; +export { DeleteMetricRuleTargetsResponseBodyFailIds } from './DeleteMetricRuleTargetsResponseBody'; +export { DeleteMetricRuleTemplateResponseBodyResource } from './DeleteMetricRuleTemplateResponseBody'; +export { DeleteMonitorGroupResponseBodyGroupContactGroupsContactGroup } from './DeleteMonitorGroupResponseBody'; +export { DeleteMonitorGroupResponseBodyGroupContactGroups } from './DeleteMonitorGroupResponseBody'; +export { DeleteMonitorGroupResponseBodyGroup } from './DeleteMonitorGroupResponseBody'; +export { DeleteSiteMonitorsResponseBodyData } from './DeleteSiteMonitorsResponseBody'; +export { DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsCritical } from './DescribeActiveMetricRuleListResponseBody'; +export { DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsInfo } from './DescribeActiveMetricRuleListResponseBody'; +export { DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalationsWarn } from './DescribeActiveMetricRuleListResponseBody'; +export { DescribeActiveMetricRuleListResponseBodyAlertListAlertEscalations } from './DescribeActiveMetricRuleListResponseBody'; +export { DescribeActiveMetricRuleListResponseBodyAlertListAlert } from './DescribeActiveMetricRuleListResponseBody'; +export { DescribeActiveMetricRuleListResponseBodyAlertList } from './DescribeActiveMetricRuleListResponseBody'; +export { DescribeActiveMetricRuleListResponseBodyDatapointsAlarm } from './DescribeActiveMetricRuleListResponseBody'; +export { DescribeActiveMetricRuleListResponseBodyDatapoints } from './DescribeActiveMetricRuleListResponseBody'; +export { DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactALIIMs } from './DescribeAlertHistoryListResponseBody'; +export { DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactGroups } from './DescribeAlertHistoryListResponseBody'; +export { DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactMails } from './DescribeAlertHistoryListResponseBody'; +export { DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContactSmses } from './DescribeAlertHistoryListResponseBody'; +export { DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistoryContacts } from './DescribeAlertHistoryListResponseBody'; +export { DescribeAlertHistoryListResponseBodyAlarmHistoryListAlarmHistory } from './DescribeAlertHistoryListResponseBody'; +export { DescribeAlertHistoryListResponseBodyAlarmHistoryList } from './DescribeAlertHistoryListResponseBody'; +export { DescribeAlertLogCountResponseBodyAlertLogCountLogs } from './DescribeAlertLogCountResponseBody'; +export { DescribeAlertLogCountResponseBodyAlertLogCount } from './DescribeAlertLogCountResponseBody'; +export { DescribeAlertLogHistogramResponseBodyAlertLogHistogramList } from './DescribeAlertLogHistogramResponseBody'; +export { DescribeAlertLogListResponseBodyAlertLogListDimensions } from './DescribeAlertLogListResponseBody'; +export { DescribeAlertLogListResponseBodyAlertLogListEscalation } from './DescribeAlertLogListResponseBody'; +export { DescribeAlertLogListResponseBodyAlertLogListExtendedInfo } from './DescribeAlertLogListResponseBody'; +export { DescribeAlertLogListResponseBodyAlertLogListSendDetailChannelResultListResultList } from './DescribeAlertLogListResponseBody'; +export { DescribeAlertLogListResponseBodyAlertLogListSendDetailChannelResultList } from './DescribeAlertLogListResponseBody'; +export { DescribeAlertLogListResponseBodyAlertLogListSendDetail } from './DescribeAlertLogListResponseBody'; +export { DescribeAlertLogListResponseBodyAlertLogListSendResultList } from './DescribeAlertLogListResponseBody'; +export { DescribeAlertLogListResponseBodyAlertLogListWebhookList } from './DescribeAlertLogListResponseBody'; +export { DescribeAlertLogListResponseBodyAlertLogList } from './DescribeAlertLogListResponseBody'; +export { DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResourceExpressionListExpressionList } from './DescribeAlertingMetricRuleResourcesResponseBody'; +export { DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResourceExpressionList } from './DescribeAlertingMetricRuleResourcesResponseBody'; +export { DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResource } from './DescribeAlertingMetricRuleResourcesResponseBody'; +export { DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalation } from './DescribeAlertingMetricRuleResourcesResponseBody'; +export { DescribeAlertingMetricRuleResourcesResponseBodyResourcesResource } from './DescribeAlertingMetricRuleResourcesResponseBody'; +export { DescribeAlertingMetricRuleResourcesResponseBodyResources } from './DescribeAlertingMetricRuleResourcesResponseBody'; +export { DescribeContactGroupListResponseBodyContactGroupListContactGroupContacts } from './DescribeContactGroupListResponseBody'; +export { DescribeContactGroupListResponseBodyContactGroupListContactGroup } from './DescribeContactGroupListResponseBody'; +export { DescribeContactGroupListResponseBodyContactGroupList } from './DescribeContactGroupListResponseBody'; +export { DescribeContactGroupListResponseBodyContactGroups } from './DescribeContactGroupListResponseBody'; +export { DescribeContactListResponseBodyContactsContactChannels } from './DescribeContactListResponseBody'; +export { DescribeContactListResponseBodyContactsContactChannelsState } from './DescribeContactListResponseBody'; +export { DescribeContactListResponseBodyContactsContactContactGroups } from './DescribeContactListResponseBody'; +export { DescribeContactListResponseBodyContactsContact } from './DescribeContactListResponseBody'; +export { DescribeContactListResponseBodyContacts } from './DescribeContactListResponseBody'; +export { DescribeContactListByContactGroupResponseBodyContactsContactChannels } from './DescribeContactListByContactGroupResponseBody'; +export { DescribeContactListByContactGroupResponseBodyContactsContact } from './DescribeContactListByContactGroupResponseBody'; +export { DescribeContactListByContactGroupResponseBodyContacts } from './DescribeContactListByContactGroupResponseBody'; +export { DescribeCustomEventAttributeResponseBodyCustomEventsCustomEvent } from './DescribeCustomEventAttributeResponseBody'; +export { DescribeCustomEventAttributeResponseBodyCustomEvents } from './DescribeCustomEventAttributeResponseBody'; +export { DescribeCustomEventCountResponseBodyCustomEventCountsCustomEventCount } from './DescribeCustomEventCountResponseBody'; +export { DescribeCustomEventCountResponseBodyCustomEventCounts } from './DescribeCustomEventCountResponseBody'; +export { DescribeCustomEventHistogramResponseBodyEventHistogramsEventHistogram } from './DescribeCustomEventHistogramResponseBody'; +export { DescribeCustomEventHistogramResponseBodyEventHistograms } from './DescribeCustomEventHistogramResponseBody'; +export { DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupContactGroupList } from './DescribeDynamicTagRuleListResponseBody'; +export { DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupMatchExpressMatchExpress } from './DescribeDynamicTagRuleListResponseBody'; +export { DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupMatchExpress } from './DescribeDynamicTagRuleListResponseBody'; +export { DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupTagValueBlacklist } from './DescribeDynamicTagRuleListResponseBody'; +export { DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroupTemplateIdList } from './DescribeDynamicTagRuleListResponseBody'; +export { DescribeDynamicTagRuleListResponseBodyTagGroupListTagGroup } from './DescribeDynamicTagRuleListResponseBody'; +export { DescribeDynamicTagRuleListResponseBodyTagGroupList } from './DescribeDynamicTagRuleListResponseBody'; +export { DescribeEventRuleAttributeResponseBodyResultEventPatternEventTypeList } from './DescribeEventRuleAttributeResponseBody'; +export { DescribeEventRuleAttributeResponseBodyResultEventPatternKeywordFilterObjKeywords } from './DescribeEventRuleAttributeResponseBody'; +export { DescribeEventRuleAttributeResponseBodyResultEventPatternKeywordFilterObj } from './DescribeEventRuleAttributeResponseBody'; +export { DescribeEventRuleAttributeResponseBodyResultEventPatternLevelList } from './DescribeEventRuleAttributeResponseBody'; +export { DescribeEventRuleAttributeResponseBodyResultEventPatternNameList } from './DescribeEventRuleAttributeResponseBody'; +export { DescribeEventRuleAttributeResponseBodyResultEventPatternStatusList } from './DescribeEventRuleAttributeResponseBody'; +export { DescribeEventRuleAttributeResponseBodyResultEventPattern } from './DescribeEventRuleAttributeResponseBody'; +export { DescribeEventRuleAttributeResponseBodyResult } from './DescribeEventRuleAttributeResponseBody'; +export { DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternEventTypeList } from './DescribeEventRuleListResponseBody'; +export { DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternKeywordFilterKeywords } from './DescribeEventRuleListResponseBody'; +export { DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternKeywordFilter } from './DescribeEventRuleListResponseBody'; +export { DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternLevelList } from './DescribeEventRuleListResponseBody'; +export { DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPatternNameList } from './DescribeEventRuleListResponseBody'; +export { DescribeEventRuleListResponseBodyEventRulesEventRuleEventPatternEventPattern } from './DescribeEventRuleListResponseBody'; +export { DescribeEventRuleListResponseBodyEventRulesEventRuleEventPattern } from './DescribeEventRuleListResponseBody'; +export { DescribeEventRuleListResponseBodyEventRulesEventRule } from './DescribeEventRuleListResponseBody'; +export { DescribeEventRuleListResponseBodyEventRules } from './DescribeEventRuleListResponseBody'; +export { DescribeEventRuleTargetListResponseBodyContactParametersContactParameter } from './DescribeEventRuleTargetListResponseBody'; +export { DescribeEventRuleTargetListResponseBodyContactParameters } from './DescribeEventRuleTargetListResponseBody'; +export { DescribeEventRuleTargetListResponseBodyFcParametersFCParameter } from './DescribeEventRuleTargetListResponseBody'; +export { DescribeEventRuleTargetListResponseBodyFcParameters } from './DescribeEventRuleTargetListResponseBody'; +export { DescribeEventRuleTargetListResponseBodyMnsParametersMnsParameter } from './DescribeEventRuleTargetListResponseBody'; +export { DescribeEventRuleTargetListResponseBodyMnsParameters } from './DescribeEventRuleTargetListResponseBody'; +export { DescribeEventRuleTargetListResponseBodyOpenApiParametersOpenApiParameters } from './DescribeEventRuleTargetListResponseBody'; +export { DescribeEventRuleTargetListResponseBodyOpenApiParameters } from './DescribeEventRuleTargetListResponseBody'; +export { DescribeEventRuleTargetListResponseBodySlsParametersSlsParameter } from './DescribeEventRuleTargetListResponseBody'; +export { DescribeEventRuleTargetListResponseBodySlsParameters } from './DescribeEventRuleTargetListResponseBody'; +export { DescribeEventRuleTargetListResponseBodyWebhookParametersWebhookParameter } from './DescribeEventRuleTargetListResponseBody'; +export { DescribeEventRuleTargetListResponseBodyWebhookParameters } from './DescribeEventRuleTargetListResponseBody'; +export { DescribeExporterOutputListResponseBodyDatapointsDatapointConfigJson } from './DescribeExporterOutputListResponseBody'; +export { DescribeExporterOutputListResponseBodyDatapointsDatapoint } from './DescribeExporterOutputListResponseBody'; +export { DescribeExporterOutputListResponseBodyDatapoints } from './DescribeExporterOutputListResponseBody'; +export { DescribeExporterRuleListResponseBodyDatapointsDatapointDstName } from './DescribeExporterRuleListResponseBody'; +export { DescribeExporterRuleListResponseBodyDatapointsDatapoint } from './DescribeExporterRuleListResponseBody'; +export { DescribeExporterRuleListResponseBodyDatapoints } from './DescribeExporterRuleListResponseBody'; +export { DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfigTargetListTarget } from './DescribeGroupMonitoringAgentProcessResponseBody'; +export { DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfigTargetList } from './DescribeGroupMonitoringAgentProcessResponseBody'; +export { DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfigAlertConfig } from './DescribeGroupMonitoringAgentProcessResponseBody'; +export { DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessAlertConfig } from './DescribeGroupMonitoringAgentProcessResponseBody'; +export { DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessMatchExpressMatchExpress } from './DescribeGroupMonitoringAgentProcessResponseBody'; +export { DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcessMatchExpress } from './DescribeGroupMonitoringAgentProcessResponseBody'; +export { DescribeGroupMonitoringAgentProcessResponseBodyProcessesProcess } from './DescribeGroupMonitoringAgentProcessResponseBody'; +export { DescribeGroupMonitoringAgentProcessResponseBodyProcesses } from './DescribeGroupMonitoringAgentProcessResponseBody'; +export { DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigEscalationListEscalationList } from './DescribeHostAvailabilityListResponseBody'; +export { DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigEscalationList } from './DescribeHostAvailabilityListResponseBody'; +export { DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigTargetListTarget } from './DescribeHostAvailabilityListResponseBody'; +export { DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfigTargetList } from './DescribeHostAvailabilityListResponseBody'; +export { DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigAlertConfig } from './DescribeHostAvailabilityListResponseBody'; +export { DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigInstances } from './DescribeHostAvailabilityListResponseBody'; +export { DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfigTaskOption } from './DescribeHostAvailabilityListResponseBody'; +export { DescribeHostAvailabilityListResponseBodyTaskListNodeTaskConfig } from './DescribeHostAvailabilityListResponseBody'; +export { DescribeHostAvailabilityListResponseBodyTaskList } from './DescribeHostAvailabilityListResponseBody'; +export { DescribeHybridMonitorDataListResponseBodyTimeSeriesLabels } from './DescribeHybridMonitorDataListResponseBody'; +export { DescribeHybridMonitorDataListResponseBodyTimeSeriesValues } from './DescribeHybridMonitorDataListResponseBody'; +export { DescribeHybridMonitorDataListResponseBodyTimeSeries } from './DescribeHybridMonitorDataListResponseBody'; +export { DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricListNamespaceListMetricList } from './DescribeHybridMonitorNamespaceListResponseBody'; +export { DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricListNamespaceList } from './DescribeHybridMonitorNamespaceListResponseBody'; +export { DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceAliyunProductMetricList } from './DescribeHybridMonitorNamespaceListResponseBody'; +export { DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceDetail } from './DescribeHybridMonitorNamespaceListResponseBody'; +export { DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespace } from './DescribeHybridMonitorNamespaceListResponseBody'; +export { DescribeHybridMonitorSLSGroupResponseBodyListSLSGroupConfig } from './DescribeHybridMonitorSlsgroupResponseBody'; +export { DescribeHybridMonitorSLSGroupResponseBodyList } from './DescribeHybridMonitorSlsgroupResponseBody'; +export { DescribeHybridMonitorTaskListResponseBodyTaskListAttachLabels } from './DescribeHybridMonitorTaskListResponseBody'; +export { DescribeHybridMonitorTaskListResponseBodyTaskListMatchExpress } from './DescribeHybridMonitorTaskListResponseBody'; +export { DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigExpress } from './DescribeHybridMonitorTaskListResponseBody'; +export { DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigFilterFilters } from './DescribeHybridMonitorTaskListResponseBody'; +export { DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigFilter } from './DescribeHybridMonitorTaskListResponseBody'; +export { DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigGroupBy } from './DescribeHybridMonitorTaskListResponseBody'; +export { DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfigStatistics } from './DescribeHybridMonitorTaskListResponseBody'; +export { DescribeHybridMonitorTaskListResponseBodyTaskListSLSProcessConfig } from './DescribeHybridMonitorTaskListResponseBody'; +export { DescribeHybridMonitorTaskListResponseBodyTaskList } from './DescribeHybridMonitorTaskListResponseBody'; +export { DescribeLogMonitorAttributeResponseBodyLogMonitorAggregates } from './DescribeLogMonitorAttributeResponseBody'; +export { DescribeLogMonitorAttributeResponseBodyLogMonitorValueFilter } from './DescribeLogMonitorAttributeResponseBody'; +export { DescribeLogMonitorAttributeResponseBodyLogMonitor } from './DescribeLogMonitorAttributeResponseBody'; +export { DescribeLogMonitorListResponseBodyLogMonitorListValueFilter } from './DescribeLogMonitorListResponseBody'; +export { DescribeLogMonitorListResponseBodyLogMonitorList } from './DescribeLogMonitorListResponseBody'; +export { DescribeMetricMetaListResponseBodyResourcesResource } from './DescribeMetricMetaListResponseBody'; +export { DescribeMetricMetaListResponseBodyResources } from './DescribeMetricMetaListResponseBody'; +export { DescribeMetricRuleBlackListResponseBodyDescribeMetricRuleBlackListMetrics } from './DescribeMetricRuleBlackListResponseBody'; +export { DescribeMetricRuleBlackListResponseBodyDescribeMetricRuleBlackList } from './DescribeMetricRuleBlackListResponseBody'; +export { DescribeMetricRuleCountResponseBodyMetricRuleCount } from './DescribeMetricRuleCountResponseBody'; +export { DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionListExpressionList } from './DescribeMetricRuleListResponseBody'; +export { DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionList } from './DescribeMetricRuleListResponseBody'; +export { DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpression } from './DescribeMetricRuleListResponseBody'; +export { DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsCritical } from './DescribeMetricRuleListResponseBody'; +export { DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsInfo } from './DescribeMetricRuleListResponseBody'; +export { DescribeMetricRuleListResponseBodyAlarmsAlarmEscalationsWarn } from './DescribeMetricRuleListResponseBody'; +export { DescribeMetricRuleListResponseBodyAlarmsAlarmEscalations } from './DescribeMetricRuleListResponseBody'; +export { DescribeMetricRuleListResponseBodyAlarmsAlarmLabelsLabels } from './DescribeMetricRuleListResponseBody'; +export { DescribeMetricRuleListResponseBodyAlarmsAlarmLabels } from './DescribeMetricRuleListResponseBody'; +export { DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotationsAnnotations } from './DescribeMetricRuleListResponseBody'; +export { DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotations } from './DescribeMetricRuleListResponseBody'; +export { DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheus } from './DescribeMetricRuleListResponseBody'; +export { DescribeMetricRuleListResponseBodyAlarmsAlarm } from './DescribeMetricRuleListResponseBody'; +export { DescribeMetricRuleListResponseBodyAlarms } from './DescribeMetricRuleListResponseBody'; +export { DescribeMetricRuleTargetsResponseBodyTargetsTarget } from './DescribeMetricRuleTargetsResponseBody'; +export { DescribeMetricRuleTargetsResponseBodyTargets } from './DescribeMetricRuleTargetsResponseBody'; +export { DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsCritical } from './DescribeMetricRuleTemplateAttributeResponseBody'; +export { DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsInfo } from './DescribeMetricRuleTemplateAttributeResponseBody'; +export { DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsWarn } from './DescribeMetricRuleTemplateAttributeResponseBody'; +export { DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalations } from './DescribeMetricRuleTemplateAttributeResponseBody'; +export { DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabelsLabels } from './DescribeMetricRuleTemplateAttributeResponseBody'; +export { DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabels } from './DescribeMetricRuleTemplateAttributeResponseBody'; +export { DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplate } from './DescribeMetricRuleTemplateAttributeResponseBody'; +export { DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplates } from './DescribeMetricRuleTemplateAttributeResponseBody'; +export { DescribeMetricRuleTemplateAttributeResponseBodyResource } from './DescribeMetricRuleTemplateAttributeResponseBody'; +export { DescribeMetricRuleTemplateListResponseBodyTemplatesTemplateApplyHistoriesApplyHistory } from './DescribeMetricRuleTemplateListResponseBody'; +export { DescribeMetricRuleTemplateListResponseBodyTemplatesTemplateApplyHistories } from './DescribeMetricRuleTemplateListResponseBody'; +export { DescribeMetricRuleTemplateListResponseBodyTemplatesTemplate } from './DescribeMetricRuleTemplateListResponseBody'; +export { DescribeMetricRuleTemplateListResponseBodyTemplates } from './DescribeMetricRuleTemplateListResponseBody'; +export { DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategoriesMonitorGroupCategoryCategoryItem } from './DescribeMonitorGroupCategoriesResponseBody'; +export { DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategoriesMonitorGroupCategory } from './DescribeMonitorGroupCategoriesResponseBody'; +export { DescribeMonitorGroupCategoriesResponseBodyMonitorGroupCategories } from './DescribeMonitorGroupCategoriesResponseBody'; +export { DescribeMonitorGroupDynamicRulesResponseBodyResourceResourceFiltersFilter } from './DescribeMonitorGroupDynamicRulesResponseBody'; +export { DescribeMonitorGroupDynamicRulesResponseBodyResourceResourceFilters } from './DescribeMonitorGroupDynamicRulesResponseBody'; +export { DescribeMonitorGroupDynamicRulesResponseBodyResourceResource } from './DescribeMonitorGroupDynamicRulesResponseBody'; +export { DescribeMonitorGroupDynamicRulesResponseBodyResource } from './DescribeMonitorGroupDynamicRulesResponseBody'; +export { DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceRegion } from './DescribeMonitorGroupInstanceAttributeResponseBody'; +export { DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceTagsTag } from './DescribeMonitorGroupInstanceAttributeResponseBody'; +export { DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceTags } from './DescribeMonitorGroupInstanceAttributeResponseBody'; +export { DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResourceVpc } from './DescribeMonitorGroupInstanceAttributeResponseBody'; +export { DescribeMonitorGroupInstanceAttributeResponseBodyResourcesResource } from './DescribeMonitorGroupInstanceAttributeResponseBody'; +export { DescribeMonitorGroupInstanceAttributeResponseBodyResources } from './DescribeMonitorGroupInstanceAttributeResponseBody'; +export { DescribeMonitorGroupInstancesResponseBodyResourcesResource } from './DescribeMonitorGroupInstancesResponseBody'; +export { DescribeMonitorGroupInstancesResponseBodyResources } from './DescribeMonitorGroupInstancesResponseBody'; +export { DescribeMonitorGroupNotifyPolicyListResponseBodyNotifyPolicyListNotifyPolicy } from './DescribeMonitorGroupNotifyPolicyListResponseBody'; +export { DescribeMonitorGroupNotifyPolicyListResponseBodyNotifyPolicyList } from './DescribeMonitorGroupNotifyPolicyListResponseBody'; +export { DescribeMonitorGroupsRequestTag } from './DescribeMonitorGroupsRequest'; +export { DescribeMonitorGroupsResponseBodyResourcesResourceContactGroupsContactGroup } from './DescribeMonitorGroupsResponseBody'; +export { DescribeMonitorGroupsResponseBodyResourcesResourceContactGroups } from './DescribeMonitorGroupsResponseBody'; +export { DescribeMonitorGroupsResponseBodyResourcesResourceTagsTag } from './DescribeMonitorGroupsResponseBody'; +export { DescribeMonitorGroupsResponseBodyResourcesResourceTags } from './DescribeMonitorGroupsResponseBody'; +export { DescribeMonitorGroupsResponseBodyResourcesResourceTemplateIds } from './DescribeMonitorGroupsResponseBody'; +export { DescribeMonitorGroupsResponseBodyResourcesResourceTemplateInfosTemplateInfo } from './DescribeMonitorGroupsResponseBody'; +export { DescribeMonitorGroupsResponseBodyResourcesResourceTemplateInfos } from './DescribeMonitorGroupsResponseBody'; +export { DescribeMonitorGroupsResponseBodyResourcesResource } from './DescribeMonitorGroupsResponseBody'; +export { DescribeMonitorGroupsResponseBodyResources } from './DescribeMonitorGroupsResponseBody'; +export { DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaApi } from './DescribeMonitorResourceQuotaAttributeResponseBody'; +export { DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaCustomMonitor } from './DescribeMonitorResourceQuotaAttributeResponseBody'; +export { DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaEnterpriseQuota } from './DescribeMonitorResourceQuotaAttributeResponseBody'; +export { DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaEventMonitor } from './DescribeMonitorResourceQuotaAttributeResponseBody'; +export { DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaLogMonitor } from './DescribeMonitorResourceQuotaAttributeResponseBody'; +export { DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaPhone } from './DescribeMonitorResourceQuotaAttributeResponseBody'; +export { DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSMS } from './DescribeMonitorResourceQuotaAttributeResponseBody'; +export { DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorBrowser } from './DescribeMonitorResourceQuotaAttributeResponseBody'; +export { DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorEcsProbe } from './DescribeMonitorResourceQuotaAttributeResponseBody'; +export { DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorMobile } from './DescribeMonitorResourceQuotaAttributeResponseBody'; +export { DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorOperatorProbe } from './DescribeMonitorResourceQuotaAttributeResponseBody'; +export { DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorTask } from './DescribeMonitorResourceQuotaAttributeResponseBody'; +export { DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuota } from './DescribeMonitorResourceQuotaAttributeResponseBody'; +export { DescribeMonitoringAgentHostsResponseBodyHostsHost } from './DescribeMonitoringAgentHostsResponseBody'; +export { DescribeMonitoringAgentHostsResponseBodyHosts } from './DescribeMonitoringAgentHostsResponseBody'; +export { DescribeMonitoringAgentProcessesResponseBodyNodeProcessesNodeProcess } from './DescribeMonitoringAgentProcessesResponseBody'; +export { DescribeMonitoringAgentProcessesResponseBodyNodeProcesses } from './DescribeMonitoringAgentProcessesResponseBody'; +export { DescribeMonitoringAgentStatusesResponseBodyNodeStatusListNodeStatus } from './DescribeMonitoringAgentStatusesResponseBody'; +export { DescribeMonitoringAgentStatusesResponseBodyNodeStatusList } from './DescribeMonitoringAgentStatusesResponseBody'; +export { DescribeProductResourceTagKeyListResponseBodyTagKeys } from './DescribeProductResourceTagKeyListResponseBody'; +export { DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig } from './DescribeProductsOfActiveMetricRuleResponseBody'; +export { DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigList } from './DescribeProductsOfActiveMetricRuleResponseBody'; +export { DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRule } from './DescribeProductsOfActiveMetricRuleResponseBody'; +export { DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleList } from './DescribeProductsOfActiveMetricRuleResponseBody'; +export { DescribeProjectMetaResponseBodyResourcesResource } from './DescribeProjectMetaResponseBody'; +export { DescribeProjectMetaResponseBodyResources } from './DescribeProjectMetaResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodyMetricRules } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomScheduleDays } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomSchedule } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsIspCitiesIspCity } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsIspCities } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAssertionsAssertions } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAssertions } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAuthInfoScopes } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonAuthInfo } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBlockedUrlList } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserHeaders } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserHosts } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserInfoBrowserInfo } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonBrowserInfo } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonConfigVariablesConfigVariables } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonConfigVariables } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonExpectExistString } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonExpectNonExistString } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonQuicTarget } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariablesExtractedVariablesParser } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariablesExtractedVariables } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsStepsExtractedVariables } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonStepsSteps } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonSteps } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonTrafficHijackElementBlacklist } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonTrafficHijackElementWhitelist } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJson } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitorsVpcConfig } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponseBodySiteMonitors } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorISPCityListResponseBodyIspCityListIspCityIPPool } from './DescribeSiteMonitorIspcityListResponseBody'; +export { DescribeSiteMonitorISPCityListResponseBodyIspCityListIspCity } from './DescribeSiteMonitorIspcityListResponseBody'; +export { DescribeSiteMonitorISPCityListResponseBodyIspCityList } from './DescribeSiteMonitorIspcityListResponseBody'; +export { DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJsonAssertionsAssertions } from './DescribeSiteMonitorListResponseBody'; +export { DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJsonAssertions } from './DescribeSiteMonitorListResponseBody'; +export { DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitorOptionsJson } from './DescribeSiteMonitorListResponseBody'; +export { DescribeSiteMonitorListResponseBodySiteMonitorsSiteMonitor } from './DescribeSiteMonitorListResponseBody'; +export { DescribeSiteMonitorListResponseBodySiteMonitors } from './DescribeSiteMonitorListResponseBody'; +export { DescribeSiteMonitorQuotaResponseBodyData } from './DescribeSiteMonitorQuotaResponseBody'; +export { DescribeSyntheticProbeListResponseBodyIspCityList } from './DescribeSyntheticProbeListResponseBody'; +export { DescribeSystemEventAttributeResponseBodySystemEventsSystemEvent } from './DescribeSystemEventAttributeResponseBody'; +export { DescribeSystemEventAttributeResponseBodySystemEvents } from './DescribeSystemEventAttributeResponseBody'; +export { DescribeSystemEventCountResponseBodySystemEventCountsSystemEventCount } from './DescribeSystemEventCountResponseBody'; +export { DescribeSystemEventCountResponseBodySystemEventCounts } from './DescribeSystemEventCountResponseBody'; +export { DescribeSystemEventHistogramResponseBodySystemEventHistogramsSystemEventHistogram } from './DescribeSystemEventHistogramResponseBody'; +export { DescribeSystemEventHistogramResponseBodySystemEventHistograms } from './DescribeSystemEventHistogramResponseBody'; +export { DescribeSystemEventMetaListResponseBodyDataResource } from './DescribeSystemEventMetaListResponseBody'; +export { DescribeSystemEventMetaListResponseBodyData } from './DescribeSystemEventMetaListResponseBody'; +export { DescribeTagKeyListResponseBodyTagKeys } from './DescribeTagKeyListResponseBody'; +export { DescribeTagValueListResponseBodyTagValues } from './DescribeTagValueListResponseBody'; +export { DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyListNodeTaskInstanceInstanceList } from './DescribeUnhealthyHostAvailabilityResponseBody'; +export { DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyListNodeTaskInstance } from './DescribeUnhealthyHostAvailabilityResponseBody'; +export { DescribeUnhealthyHostAvailabilityResponseBodyUnhealthyList } from './DescribeUnhealthyHostAvailabilityResponseBody'; +export { DisableSiteMonitorsResponseBodyData } from './DisableSiteMonitorsResponseBody'; +export { EnableSiteMonitorsResponseBodyData } from './EnableSiteMonitorsResponseBody'; +export { ModifyGroupMonitoringAgentProcessRequestAlertConfigTargetList } from './ModifyGroupMonitoringAgentProcessRequest'; +export { ModifyGroupMonitoringAgentProcessRequestAlertConfig } from './ModifyGroupMonitoringAgentProcessRequest'; +export { ModifyHostAvailabilityRequestAlertConfig } from './ModifyHostAvailabilityRequest'; +export { ModifyHostAvailabilityRequestTaskOption } from './ModifyHostAvailabilityRequest'; +export { ModifyHostAvailabilityRequestAlertConfigEscalationList } from './ModifyHostAvailabilityRequest'; +export { ModifyHostAvailabilityRequestAlertConfigTargetList } from './ModifyHostAvailabilityRequest'; +export { ModifyHybridMonitorSLSGroupRequestSLSGroupConfig } from './ModifyHybridMonitorSlsgroupRequest'; +export { ModifyHybridMonitorTaskRequestAttachLabels } from './ModifyHybridMonitorTaskRequest'; +export { ModifyHybridMonitorTaskRequestSLSProcessConfigExpress } from './ModifyHybridMonitorTaskRequest'; +export { ModifyHybridMonitorTaskRequestSLSProcessConfigFilterFilters } from './ModifyHybridMonitorTaskRequest'; +export { ModifyHybridMonitorTaskRequestSLSProcessConfigFilter } from './ModifyHybridMonitorTaskRequest'; +export { ModifyHybridMonitorTaskRequestSLSProcessConfigGroupBy } from './ModifyHybridMonitorTaskRequest'; +export { ModifyHybridMonitorTaskRequestSLSProcessConfigStatistics } from './ModifyHybridMonitorTaskRequest'; +export { ModifyHybridMonitorTaskRequestSLSProcessConfig } from './ModifyHybridMonitorTaskRequest'; +export { ModifyMetricRuleBlackListRequestMetrics } from './ModifyMetricRuleBlackListRequest'; +export { ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsCritical } from './ModifyMetricRuleTemplateRequest'; +export { ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsInfo } from './ModifyMetricRuleTemplateRequest'; +export { ModifyMetricRuleTemplateRequestAlertTemplatesEscalationsWarn } from './ModifyMetricRuleTemplateRequest'; +export { ModifyMetricRuleTemplateRequestAlertTemplatesEscalations } from './ModifyMetricRuleTemplateRequest'; +export { ModifyMetricRuleTemplateRequestAlertTemplates } from './ModifyMetricRuleTemplateRequest'; +export { ModifyMonitorGroupInstancesRequestInstances } from './ModifyMonitorGroupInstancesRequest'; +export { ModifySiteMonitorResponseBodyData } from './ModifySiteMonitorResponseBody'; +export { PutContactRequestChannels } from './PutContactRequest'; +export { PutCustomEventRequestEventInfo } from './PutCustomEventRequest'; +export { PutCustomMetricRequestMetricList } from './PutCustomMetricRequest'; +export { PutEventRuleRequestEventPattern } from './PutEventRuleRequest'; +export { PutEventRuleTargetsRequestContactParameters } from './PutEventRuleTargetsRequest'; +export { PutEventRuleTargetsRequestFcParameters } from './PutEventRuleTargetsRequest'; +export { PutEventRuleTargetsRequestMnsParameters } from './PutEventRuleTargetsRequest'; +export { PutEventRuleTargetsRequestOpenApiParameters } from './PutEventRuleTargetsRequest'; +export { PutEventRuleTargetsRequestSlsParameters } from './PutEventRuleTargetsRequest'; +export { PutEventRuleTargetsRequestWebhookParameters } from './PutEventRuleTargetsRequest'; +export { PutEventRuleTargetsResponseBodyFailedContactParametersContactParameter } from './PutEventRuleTargetsResponseBody'; +export { PutEventRuleTargetsResponseBodyFailedContactParameters } from './PutEventRuleTargetsResponseBody'; +export { PutEventRuleTargetsResponseBodyFailedFcParametersFcParameter } from './PutEventRuleTargetsResponseBody'; +export { PutEventRuleTargetsResponseBodyFailedFcParameters } from './PutEventRuleTargetsResponseBody'; +export { PutEventRuleTargetsResponseBodyFailedMnsParametersMnsParameter } from './PutEventRuleTargetsResponseBody'; +export { PutEventRuleTargetsResponseBodyFailedMnsParameters } from './PutEventRuleTargetsResponseBody'; +export { PutGroupMetricRuleRequestEscalationsCritical } from './PutGroupMetricRuleRequest'; +export { PutGroupMetricRuleRequestEscalationsInfo } from './PutGroupMetricRuleRequest'; +export { PutGroupMetricRuleRequestEscalationsWarn } from './PutGroupMetricRuleRequest'; +export { PutGroupMetricRuleRequestEscalations } from './PutGroupMetricRuleRequest'; +export { PutGroupMetricRuleRequestLabels } from './PutGroupMetricRuleRequest'; +export { PutGroupMetricRuleResponseBodyResult } from './PutGroupMetricRuleResponseBody'; +export { PutHybridMonitorMetricDataRequestMetricListLabels } from './PutHybridMonitorMetricDataRequest'; +export { PutHybridMonitorMetricDataRequestMetricList } from './PutHybridMonitorMetricDataRequest'; +export { PutHybridMonitorMetricDataResponseBodyErrorDetail } from './PutHybridMonitorMetricDataResponseBody'; +export { PutLogMonitorRequestAggregates } from './PutLogMonitorRequest'; +export { PutLogMonitorRequestGroupbys } from './PutLogMonitorRequest'; +export { PutLogMonitorRequestValueFilter } from './PutLogMonitorRequest'; +export { PutMetricRuleTargetsRequestTargets } from './PutMetricRuleTargetsRequest'; +export { PutMetricRuleTargetsResponseBodyFailDataTargetsTarget } from './PutMetricRuleTargetsResponseBody'; +export { PutMetricRuleTargetsResponseBodyFailDataTargets } from './PutMetricRuleTargetsResponseBody'; +export { PutMetricRuleTargetsResponseBodyFailData } from './PutMetricRuleTargetsResponseBody'; +export { PutMonitorGroupDynamicRuleRequestGroupRulesFilters } from './PutMonitorGroupDynamicRuleRequest'; +export { PutMonitorGroupDynamicRuleRequestGroupRules } from './PutMonitorGroupDynamicRuleRequest'; +export { PutResourceMetricRuleRequestEscalationsCritical } from './PutResourceMetricRuleRequest'; +export { PutResourceMetricRuleRequestEscalationsInfo } from './PutResourceMetricRuleRequest'; +export { PutResourceMetricRuleRequestEscalationsWarn } from './PutResourceMetricRuleRequest'; +export { PutResourceMetricRuleRequestEscalations } from './PutResourceMetricRuleRequest'; +export { PutResourceMetricRuleRequestCompositeExpressionExpressionList } from './PutResourceMetricRuleRequest'; +export { PutResourceMetricRuleRequestCompositeExpression } from './PutResourceMetricRuleRequest'; +export { PutResourceMetricRuleRequestLabels } from './PutResourceMetricRuleRequest'; +export { PutResourceMetricRuleRequestPrometheusAnnotations } from './PutResourceMetricRuleRequest'; +export { PutResourceMetricRuleRequestPrometheus } from './PutResourceMetricRuleRequest'; +export { PutResourceMetricRuleShrinkRequestEscalationsCritical } from './PutResourceMetricRuleShrinkRequest'; +export { PutResourceMetricRuleShrinkRequestEscalationsInfo } from './PutResourceMetricRuleShrinkRequest'; +export { PutResourceMetricRuleShrinkRequestEscalationsWarn } from './PutResourceMetricRuleShrinkRequest'; +export { PutResourceMetricRuleShrinkRequestEscalations } from './PutResourceMetricRuleShrinkRequest'; +export { PutResourceMetricRuleShrinkRequestLabels } from './PutResourceMetricRuleShrinkRequest'; +export { PutResourceMetricRulesRequestRulesEscalationsCritical } from './PutResourceMetricRulesRequest'; +export { PutResourceMetricRulesRequestRulesEscalationsInfo } from './PutResourceMetricRulesRequest'; +export { PutResourceMetricRulesRequestRulesEscalationsWarn } from './PutResourceMetricRulesRequest'; +export { PutResourceMetricRulesRequestRulesEscalations } from './PutResourceMetricRulesRequest'; +export { PutResourceMetricRulesRequestRulesLabels } from './PutResourceMetricRulesRequest'; +export { PutResourceMetricRulesRequestRules } from './PutResourceMetricRulesRequest'; +export { PutResourceMetricRulesResponseBodyFailedListResultTargetResult } from './PutResourceMetricRulesResponseBody'; +export { PutResourceMetricRulesResponseBodyFailedListResultTarget } from './PutResourceMetricRulesResponseBody'; +export { PutResourceMetricRulesResponseBodyFailedListResult } from './PutResourceMetricRulesResponseBody'; +export { RemoveTagsRequestTag } from './RemoveTagsRequest'; +export { RemoveTagsResponseBodyTag } from './RemoveTagsResponseBody'; +export { AlertEvent } from './AlertEvent'; +export { AlertStrategyRelation } from './AlertStrategyRelation'; +export { Dimension } from './Dimension'; +export { EscalationRule } from './EscalationRule'; +export { Incident } from './Incident'; +export { Matcher } from './Matcher'; +export { MetricStat } from './MetricStat'; +export { MigrationJob } from './MigrationJob'; +export { NotificationStrategy } from './NotificationStrategy'; +export { NotificationTemplate } from './NotificationTemplate'; +export { PushingTarget } from './PushingTarget'; +export { Subscription } from './Subscription'; +export { AddTagsRequest } from './AddTagsRequest'; +export { AddTagsResponseBody } from './AddTagsResponseBody'; +export { AddTagsResponse } from './AddTagsResponse'; +export { ApplyMetricRuleTemplateRequest } from './ApplyMetricRuleTemplateRequest'; +export { ApplyMetricRuleTemplateResponseBody } from './ApplyMetricRuleTemplateResponseBody'; +export { ApplyMetricRuleTemplateResponse } from './ApplyMetricRuleTemplateResponse'; +export { BatchCreateInstantSiteMonitorRequest } from './BatchCreateInstantSiteMonitorRequest'; +export { BatchCreateInstantSiteMonitorResponseBody } from './BatchCreateInstantSiteMonitorResponseBody'; +export { BatchCreateInstantSiteMonitorResponse } from './BatchCreateInstantSiteMonitorResponse'; +export { BatchExportRequest } from './BatchExportRequest'; +export { BatchExportShrinkRequest } from './BatchExportShrinkRequest'; +export { BatchExportResponseBody } from './BatchExportResponseBody'; +export { BatchExportResponse } from './BatchExportResponse'; +export { CreateDynamicTagGroupRequest } from './CreateDynamicTagGroupRequest'; +export { CreateDynamicTagGroupResponseBody } from './CreateDynamicTagGroupResponseBody'; +export { CreateDynamicTagGroupResponse } from './CreateDynamicTagGroupResponse'; +export { CreateGroupMetricRulesRequest } from './CreateGroupMetricRulesRequest'; +export { CreateGroupMetricRulesResponseBody } from './CreateGroupMetricRulesResponseBody'; +export { CreateGroupMetricRulesResponse } from './CreateGroupMetricRulesResponse'; +export { CreateGroupMonitoringAgentProcessRequest } from './CreateGroupMonitoringAgentProcessRequest'; +export { CreateGroupMonitoringAgentProcessResponseBody } from './CreateGroupMonitoringAgentProcessResponseBody'; +export { CreateGroupMonitoringAgentProcessResponse } from './CreateGroupMonitoringAgentProcessResponse'; +export { CreateHostAvailabilityRequest } from './CreateHostAvailabilityRequest'; +export { CreateHostAvailabilityResponseBody } from './CreateHostAvailabilityResponseBody'; +export { CreateHostAvailabilityResponse } from './CreateHostAvailabilityResponse'; +export { CreateHybridMonitorNamespaceRequest } from './CreateHybridMonitorNamespaceRequest'; +export { CreateHybridMonitorNamespaceResponseBody } from './CreateHybridMonitorNamespaceResponseBody'; +export { CreateHybridMonitorNamespaceResponse } from './CreateHybridMonitorNamespaceResponse'; +export { CreateHybridMonitorSLSGroupRequest } from './CreateHybridMonitorSlsgroupRequest'; +export { CreateHybridMonitorSLSGroupResponseBody } from './CreateHybridMonitorSlsgroupResponseBody'; +export { CreateHybridMonitorSLSGroupResponse } from './CreateHybridMonitorSlsgroupResponse'; +export { CreateHybridMonitorTaskRequest } from './CreateHybridMonitorTaskRequest'; +export { CreateHybridMonitorTaskResponseBody } from './CreateHybridMonitorTaskResponseBody'; +export { CreateHybridMonitorTaskResponse } from './CreateHybridMonitorTaskResponse'; +export { CreateInstantSiteMonitorRequest } from './CreateInstantSiteMonitorRequest'; +export { CreateInstantSiteMonitorResponseBody } from './CreateInstantSiteMonitorResponseBody'; +export { CreateInstantSiteMonitorResponse } from './CreateInstantSiteMonitorResponse'; +export { CreateMetricRuleBlackListRequest } from './CreateMetricRuleBlackListRequest'; +export { CreateMetricRuleBlackListResponseBody } from './CreateMetricRuleBlackListResponseBody'; +export { CreateMetricRuleBlackListResponse } from './CreateMetricRuleBlackListResponse'; +export { CreateMetricRuleResourcesRequest } from './CreateMetricRuleResourcesRequest'; +export { CreateMetricRuleResourcesResponseBody } from './CreateMetricRuleResourcesResponseBody'; +export { CreateMetricRuleResourcesResponse } from './CreateMetricRuleResourcesResponse'; +export { CreateMetricRuleTemplateRequest } from './CreateMetricRuleTemplateRequest'; +export { CreateMetricRuleTemplateResponseBody } from './CreateMetricRuleTemplateResponseBody'; +export { CreateMetricRuleTemplateResponse } from './CreateMetricRuleTemplateResponse'; +export { CreateMonitorAgentProcessRequest } from './CreateMonitorAgentProcessRequest'; +export { CreateMonitorAgentProcessResponseBody } from './CreateMonitorAgentProcessResponseBody'; +export { CreateMonitorAgentProcessResponse } from './CreateMonitorAgentProcessResponse'; +export { CreateMonitorGroupRequest } from './CreateMonitorGroupRequest'; +export { CreateMonitorGroupResponseBody } from './CreateMonitorGroupResponseBody'; +export { CreateMonitorGroupResponse } from './CreateMonitorGroupResponse'; +export { CreateMonitorGroupByResourceGroupIdRequest } from './CreateMonitorGroupByResourceGroupIdRequest'; +export { CreateMonitorGroupByResourceGroupIdResponseBody } from './CreateMonitorGroupByResourceGroupIdResponseBody'; +export { CreateMonitorGroupByResourceGroupIdResponse } from './CreateMonitorGroupByResourceGroupIdResponse'; +export { CreateMonitorGroupInstancesRequest } from './CreateMonitorGroupInstancesRequest'; +export { CreateMonitorGroupInstancesResponseBody } from './CreateMonitorGroupInstancesResponseBody'; +export { CreateMonitorGroupInstancesResponse } from './CreateMonitorGroupInstancesResponse'; +export { CreateMonitorGroupNotifyPolicyRequest } from './CreateMonitorGroupNotifyPolicyRequest'; +export { CreateMonitorGroupNotifyPolicyResponseBody } from './CreateMonitorGroupNotifyPolicyResponseBody'; +export { CreateMonitorGroupNotifyPolicyResponse } from './CreateMonitorGroupNotifyPolicyResponse'; +export { CreateMonitoringAgentProcessRequest } from './CreateMonitoringAgentProcessRequest'; +export { CreateMonitoringAgentProcessResponseBody } from './CreateMonitoringAgentProcessResponseBody'; +export { CreateMonitoringAgentProcessResponse } from './CreateMonitoringAgentProcessResponse'; +export { CreateSiteMonitorRequest } from './CreateSiteMonitorRequest'; +export { CreateSiteMonitorResponseBody } from './CreateSiteMonitorResponseBody'; +export { CreateSiteMonitorResponse } from './CreateSiteMonitorResponse'; +export { CursorRequest } from './CursorRequest'; +export { CursorShrinkRequest } from './CursorShrinkRequest'; +export { CursorResponseBody } from './CursorResponseBody'; +export { CursorResponse } from './CursorResponse'; +export { DeleteContactRequest } from './DeleteContactRequest'; +export { DeleteContactResponseBody } from './DeleteContactResponseBody'; +export { DeleteContactResponse } from './DeleteContactResponse'; +export { DeleteContactGroupRequest } from './DeleteContactGroupRequest'; +export { DeleteContactGroupResponseBody } from './DeleteContactGroupResponseBody'; +export { DeleteContactGroupResponse } from './DeleteContactGroupResponse'; +export { DeleteCustomMetricRequest } from './DeleteCustomMetricRequest'; +export { DeleteCustomMetricResponseBody } from './DeleteCustomMetricResponseBody'; +export { DeleteCustomMetricResponse } from './DeleteCustomMetricResponse'; +export { DeleteDynamicTagGroupRequest } from './DeleteDynamicTagGroupRequest'; +export { DeleteDynamicTagGroupResponseBody } from './DeleteDynamicTagGroupResponseBody'; +export { DeleteDynamicTagGroupResponse } from './DeleteDynamicTagGroupResponse'; +export { DeleteEventRuleTargetsRequest } from './DeleteEventRuleTargetsRequest'; +export { DeleteEventRuleTargetsResponseBody } from './DeleteEventRuleTargetsResponseBody'; +export { DeleteEventRuleTargetsResponse } from './DeleteEventRuleTargetsResponse'; +export { DeleteEventRulesRequest } from './DeleteEventRulesRequest'; +export { DeleteEventRulesResponseBody } from './DeleteEventRulesResponseBody'; +export { DeleteEventRulesResponse } from './DeleteEventRulesResponse'; +export { DeleteExporterOutputRequest } from './DeleteExporterOutputRequest'; +export { DeleteExporterOutputResponseBody } from './DeleteExporterOutputResponseBody'; +export { DeleteExporterOutputResponse } from './DeleteExporterOutputResponse'; +export { DeleteExporterRuleRequest } from './DeleteExporterRuleRequest'; +export { DeleteExporterRuleResponseBody } from './DeleteExporterRuleResponseBody'; +export { DeleteExporterRuleResponse } from './DeleteExporterRuleResponse'; +export { DeleteGroupMonitoringAgentProcessRequest } from './DeleteGroupMonitoringAgentProcessRequest'; +export { DeleteGroupMonitoringAgentProcessResponseBody } from './DeleteGroupMonitoringAgentProcessResponseBody'; +export { DeleteGroupMonitoringAgentProcessResponse } from './DeleteGroupMonitoringAgentProcessResponse'; +export { DeleteHostAvailabilityRequest } from './DeleteHostAvailabilityRequest'; +export { DeleteHostAvailabilityResponseBody } from './DeleteHostAvailabilityResponseBody'; +export { DeleteHostAvailabilityResponse } from './DeleteHostAvailabilityResponse'; +export { DeleteHybridMonitorNamespaceRequest } from './DeleteHybridMonitorNamespaceRequest'; +export { DeleteHybridMonitorNamespaceResponseBody } from './DeleteHybridMonitorNamespaceResponseBody'; +export { DeleteHybridMonitorNamespaceResponse } from './DeleteHybridMonitorNamespaceResponse'; +export { DeleteHybridMonitorSLSGroupRequest } from './DeleteHybridMonitorSlsgroupRequest'; +export { DeleteHybridMonitorSLSGroupResponseBody } from './DeleteHybridMonitorSlsgroupResponseBody'; +export { DeleteHybridMonitorSLSGroupResponse } from './DeleteHybridMonitorSlsgroupResponse'; +export { DeleteHybridMonitorTaskRequest } from './DeleteHybridMonitorTaskRequest'; +export { DeleteHybridMonitorTaskResponseBody } from './DeleteHybridMonitorTaskResponseBody'; +export { DeleteHybridMonitorTaskResponse } from './DeleteHybridMonitorTaskResponse'; +export { DeleteLogMonitorRequest } from './DeleteLogMonitorRequest'; +export { DeleteLogMonitorResponseBody } from './DeleteLogMonitorResponseBody'; +export { DeleteLogMonitorResponse } from './DeleteLogMonitorResponse'; +export { DeleteMetricRuleBlackListRequest } from './DeleteMetricRuleBlackListRequest'; +export { DeleteMetricRuleBlackListResponseBody } from './DeleteMetricRuleBlackListResponseBody'; +export { DeleteMetricRuleBlackListResponse } from './DeleteMetricRuleBlackListResponse'; +export { DeleteMetricRuleResourcesRequest } from './DeleteMetricRuleResourcesRequest'; +export { DeleteMetricRuleResourcesResponseBody } from './DeleteMetricRuleResourcesResponseBody'; +export { DeleteMetricRuleResourcesResponse } from './DeleteMetricRuleResourcesResponse'; +export { DeleteMetricRuleTargetsRequest } from './DeleteMetricRuleTargetsRequest'; +export { DeleteMetricRuleTargetsResponseBody } from './DeleteMetricRuleTargetsResponseBody'; +export { DeleteMetricRuleTargetsResponse } from './DeleteMetricRuleTargetsResponse'; +export { DeleteMetricRuleTemplateRequest } from './DeleteMetricRuleTemplateRequest'; +export { DeleteMetricRuleTemplateResponseBody } from './DeleteMetricRuleTemplateResponseBody'; +export { DeleteMetricRuleTemplateResponse } from './DeleteMetricRuleTemplateResponse'; +export { DeleteMetricRulesRequest } from './DeleteMetricRulesRequest'; +export { DeleteMetricRulesResponseBody } from './DeleteMetricRulesResponseBody'; +export { DeleteMetricRulesResponse } from './DeleteMetricRulesResponse'; +export { DeleteMonitorGroupRequest } from './DeleteMonitorGroupRequest'; +export { DeleteMonitorGroupResponseBody } from './DeleteMonitorGroupResponseBody'; +export { DeleteMonitorGroupResponse } from './DeleteMonitorGroupResponse'; +export { DeleteMonitorGroupDynamicRuleRequest } from './DeleteMonitorGroupDynamicRuleRequest'; +export { DeleteMonitorGroupDynamicRuleResponseBody } from './DeleteMonitorGroupDynamicRuleResponseBody'; +export { DeleteMonitorGroupDynamicRuleResponse } from './DeleteMonitorGroupDynamicRuleResponse'; +export { DeleteMonitorGroupInstancesRequest } from './DeleteMonitorGroupInstancesRequest'; +export { DeleteMonitorGroupInstancesResponseBody } from './DeleteMonitorGroupInstancesResponseBody'; +export { DeleteMonitorGroupInstancesResponse } from './DeleteMonitorGroupInstancesResponse'; +export { DeleteMonitorGroupNotifyPolicyRequest } from './DeleteMonitorGroupNotifyPolicyRequest'; +export { DeleteMonitorGroupNotifyPolicyResponseBody } from './DeleteMonitorGroupNotifyPolicyResponseBody'; +export { DeleteMonitorGroupNotifyPolicyResponse } from './DeleteMonitorGroupNotifyPolicyResponse'; +export { DeleteMonitoringAgentProcessRequest } from './DeleteMonitoringAgentProcessRequest'; +export { DeleteMonitoringAgentProcessResponseBody } from './DeleteMonitoringAgentProcessResponseBody'; +export { DeleteMonitoringAgentProcessResponse } from './DeleteMonitoringAgentProcessResponse'; +export { DeleteSiteMonitorsRequest } from './DeleteSiteMonitorsRequest'; +export { DeleteSiteMonitorsResponseBody } from './DeleteSiteMonitorsResponseBody'; +export { DeleteSiteMonitorsResponse } from './DeleteSiteMonitorsResponse'; +export { DescribeActiveMetricRuleListRequest } from './DescribeActiveMetricRuleListRequest'; +export { DescribeActiveMetricRuleListResponseBody } from './DescribeActiveMetricRuleListResponseBody'; +export { DescribeActiveMetricRuleListResponse } from './DescribeActiveMetricRuleListResponse'; +export { DescribeAlertHistoryListRequest } from './DescribeAlertHistoryListRequest'; +export { DescribeAlertHistoryListResponseBody } from './DescribeAlertHistoryListResponseBody'; +export { DescribeAlertHistoryListResponse } from './DescribeAlertHistoryListResponse'; +export { DescribeAlertLogCountRequest } from './DescribeAlertLogCountRequest'; +export { DescribeAlertLogCountResponseBody } from './DescribeAlertLogCountResponseBody'; +export { DescribeAlertLogCountResponse } from './DescribeAlertLogCountResponse'; +export { DescribeAlertLogHistogramRequest } from './DescribeAlertLogHistogramRequest'; +export { DescribeAlertLogHistogramResponseBody } from './DescribeAlertLogHistogramResponseBody'; +export { DescribeAlertLogHistogramResponse } from './DescribeAlertLogHistogramResponse'; +export { DescribeAlertLogListRequest } from './DescribeAlertLogListRequest'; +export { DescribeAlertLogListResponseBody } from './DescribeAlertLogListResponseBody'; +export { DescribeAlertLogListResponse } from './DescribeAlertLogListResponse'; +export { DescribeAlertingMetricRuleResourcesRequest } from './DescribeAlertingMetricRuleResourcesRequest'; +export { DescribeAlertingMetricRuleResourcesResponseBody } from './DescribeAlertingMetricRuleResourcesResponseBody'; +export { DescribeAlertingMetricRuleResourcesResponse } from './DescribeAlertingMetricRuleResourcesResponse'; +export { DescribeContactGroupListRequest } from './DescribeContactGroupListRequest'; +export { DescribeContactGroupListResponseBody } from './DescribeContactGroupListResponseBody'; +export { DescribeContactGroupListResponse } from './DescribeContactGroupListResponse'; +export { DescribeContactListRequest } from './DescribeContactListRequest'; +export { DescribeContactListResponseBody } from './DescribeContactListResponseBody'; +export { DescribeContactListResponse } from './DescribeContactListResponse'; +export { DescribeContactListByContactGroupRequest } from './DescribeContactListByContactGroupRequest'; +export { DescribeContactListByContactGroupResponseBody } from './DescribeContactListByContactGroupResponseBody'; +export { DescribeContactListByContactGroupResponse } from './DescribeContactListByContactGroupResponse'; +export { DescribeCustomEventAttributeRequest } from './DescribeCustomEventAttributeRequest'; +export { DescribeCustomEventAttributeResponseBody } from './DescribeCustomEventAttributeResponseBody'; +export { DescribeCustomEventAttributeResponse } from './DescribeCustomEventAttributeResponse'; +export { DescribeCustomEventCountRequest } from './DescribeCustomEventCountRequest'; +export { DescribeCustomEventCountResponseBody } from './DescribeCustomEventCountResponseBody'; +export { DescribeCustomEventCountResponse } from './DescribeCustomEventCountResponse'; +export { DescribeCustomEventHistogramRequest } from './DescribeCustomEventHistogramRequest'; +export { DescribeCustomEventHistogramResponseBody } from './DescribeCustomEventHistogramResponseBody'; +export { DescribeCustomEventHistogramResponse } from './DescribeCustomEventHistogramResponse'; +export { DescribeCustomMetricListRequest } from './DescribeCustomMetricListRequest'; +export { DescribeCustomMetricListResponseBody } from './DescribeCustomMetricListResponseBody'; +export { DescribeCustomMetricListResponse } from './DescribeCustomMetricListResponse'; +export { DescribeDynamicTagRuleListRequest } from './DescribeDynamicTagRuleListRequest'; +export { DescribeDynamicTagRuleListResponseBody } from './DescribeDynamicTagRuleListResponseBody'; +export { DescribeDynamicTagRuleListResponse } from './DescribeDynamicTagRuleListResponse'; +export { DescribeEventRuleAttributeRequest } from './DescribeEventRuleAttributeRequest'; +export { DescribeEventRuleAttributeResponseBody } from './DescribeEventRuleAttributeResponseBody'; +export { DescribeEventRuleAttributeResponse } from './DescribeEventRuleAttributeResponse'; +export { DescribeEventRuleListRequest } from './DescribeEventRuleListRequest'; +export { DescribeEventRuleListResponseBody } from './DescribeEventRuleListResponseBody'; +export { DescribeEventRuleListResponse } from './DescribeEventRuleListResponse'; +export { DescribeEventRuleTargetListRequest } from './DescribeEventRuleTargetListRequest'; +export { DescribeEventRuleTargetListResponseBody } from './DescribeEventRuleTargetListResponseBody'; +export { DescribeEventRuleTargetListResponse } from './DescribeEventRuleTargetListResponse'; +export { DescribeExporterOutputListRequest } from './DescribeExporterOutputListRequest'; +export { DescribeExporterOutputListResponseBody } from './DescribeExporterOutputListResponseBody'; +export { DescribeExporterOutputListResponse } from './DescribeExporterOutputListResponse'; +export { DescribeExporterRuleListRequest } from './DescribeExporterRuleListRequest'; +export { DescribeExporterRuleListResponseBody } from './DescribeExporterRuleListResponseBody'; +export { DescribeExporterRuleListResponse } from './DescribeExporterRuleListResponse'; +export { DescribeGroupMonitoringAgentProcessRequest } from './DescribeGroupMonitoringAgentProcessRequest'; +export { DescribeGroupMonitoringAgentProcessResponseBody } from './DescribeGroupMonitoringAgentProcessResponseBody'; +export { DescribeGroupMonitoringAgentProcessResponse } from './DescribeGroupMonitoringAgentProcessResponse'; +export { DescribeHostAvailabilityListRequest } from './DescribeHostAvailabilityListRequest'; +export { DescribeHostAvailabilityListResponseBody } from './DescribeHostAvailabilityListResponseBody'; +export { DescribeHostAvailabilityListResponse } from './DescribeHostAvailabilityListResponse'; +export { DescribeHybridMonitorDataListRequest } from './DescribeHybridMonitorDataListRequest'; +export { DescribeHybridMonitorDataListResponseBody } from './DescribeHybridMonitorDataListResponseBody'; +export { DescribeHybridMonitorDataListResponse } from './DescribeHybridMonitorDataListResponse'; +export { DescribeHybridMonitorNamespaceListRequest } from './DescribeHybridMonitorNamespaceListRequest'; +export { DescribeHybridMonitorNamespaceListResponseBody } from './DescribeHybridMonitorNamespaceListResponseBody'; +export { DescribeHybridMonitorNamespaceListResponse } from './DescribeHybridMonitorNamespaceListResponse'; +export { DescribeHybridMonitorSLSGroupRequest } from './DescribeHybridMonitorSlsgroupRequest'; +export { DescribeHybridMonitorSLSGroupResponseBody } from './DescribeHybridMonitorSlsgroupResponseBody'; +export { DescribeHybridMonitorSLSGroupResponse } from './DescribeHybridMonitorSlsgroupResponse'; +export { DescribeHybridMonitorTaskListRequest } from './DescribeHybridMonitorTaskListRequest'; +export { DescribeHybridMonitorTaskListResponseBody } from './DescribeHybridMonitorTaskListResponseBody'; +export { DescribeHybridMonitorTaskListResponse } from './DescribeHybridMonitorTaskListResponse'; +export { DescribeLogMonitorAttributeRequest } from './DescribeLogMonitorAttributeRequest'; +export { DescribeLogMonitorAttributeResponseBody } from './DescribeLogMonitorAttributeResponseBody'; +export { DescribeLogMonitorAttributeResponse } from './DescribeLogMonitorAttributeResponse'; +export { DescribeLogMonitorListRequest } from './DescribeLogMonitorListRequest'; +export { DescribeLogMonitorListResponseBody } from './DescribeLogMonitorListResponseBody'; +export { DescribeLogMonitorListResponse } from './DescribeLogMonitorListResponse'; +export { DescribeMetricDataRequest } from './DescribeMetricDataRequest'; +export { DescribeMetricDataResponseBody } from './DescribeMetricDataResponseBody'; +export { DescribeMetricDataResponse } from './DescribeMetricDataResponse'; +export { DescribeMetricLastRequest } from './DescribeMetricLastRequest'; +export { DescribeMetricLastResponseBody } from './DescribeMetricLastResponseBody'; +export { DescribeMetricLastResponse } from './DescribeMetricLastResponse'; +export { DescribeMetricListRequest } from './DescribeMetricListRequest'; +export { DescribeMetricListResponseBody } from './DescribeMetricListResponseBody'; +export { DescribeMetricListResponse } from './DescribeMetricListResponse'; +export { DescribeMetricMetaListRequest } from './DescribeMetricMetaListRequest'; +export { DescribeMetricMetaListResponseBody } from './DescribeMetricMetaListResponseBody'; +export { DescribeMetricMetaListResponse } from './DescribeMetricMetaListResponse'; +export { DescribeMetricRuleBlackListRequest } from './DescribeMetricRuleBlackListRequest'; +export { DescribeMetricRuleBlackListResponseBody } from './DescribeMetricRuleBlackListResponseBody'; +export { DescribeMetricRuleBlackListResponse } from './DescribeMetricRuleBlackListResponse'; +export { DescribeMetricRuleCountRequest } from './DescribeMetricRuleCountRequest'; +export { DescribeMetricRuleCountResponseBody } from './DescribeMetricRuleCountResponseBody'; +export { DescribeMetricRuleCountResponse } from './DescribeMetricRuleCountResponse'; +export { DescribeMetricRuleListRequest } from './DescribeMetricRuleListRequest'; +export { DescribeMetricRuleListResponseBody } from './DescribeMetricRuleListResponseBody'; +export { DescribeMetricRuleListResponse } from './DescribeMetricRuleListResponse'; +export { DescribeMetricRuleTargetsRequest } from './DescribeMetricRuleTargetsRequest'; +export { DescribeMetricRuleTargetsResponseBody } from './DescribeMetricRuleTargetsResponseBody'; +export { DescribeMetricRuleTargetsResponse } from './DescribeMetricRuleTargetsResponse'; +export { DescribeMetricRuleTemplateAttributeRequest } from './DescribeMetricRuleTemplateAttributeRequest'; +export { DescribeMetricRuleTemplateAttributeResponseBody } from './DescribeMetricRuleTemplateAttributeResponseBody'; +export { DescribeMetricRuleTemplateAttributeResponse } from './DescribeMetricRuleTemplateAttributeResponse'; +export { DescribeMetricRuleTemplateListRequest } from './DescribeMetricRuleTemplateListRequest'; +export { DescribeMetricRuleTemplateListResponseBody } from './DescribeMetricRuleTemplateListResponseBody'; +export { DescribeMetricRuleTemplateListResponse } from './DescribeMetricRuleTemplateListResponse'; +export { DescribeMetricTopRequest } from './DescribeMetricTopRequest'; +export { DescribeMetricTopResponseBody } from './DescribeMetricTopResponseBody'; +export { DescribeMetricTopResponse } from './DescribeMetricTopResponse'; +export { DescribeMonitorGroupCategoriesRequest } from './DescribeMonitorGroupCategoriesRequest'; +export { DescribeMonitorGroupCategoriesResponseBody } from './DescribeMonitorGroupCategoriesResponseBody'; +export { DescribeMonitorGroupCategoriesResponse } from './DescribeMonitorGroupCategoriesResponse'; +export { DescribeMonitorGroupDynamicRulesRequest } from './DescribeMonitorGroupDynamicRulesRequest'; +export { DescribeMonitorGroupDynamicRulesResponseBody } from './DescribeMonitorGroupDynamicRulesResponseBody'; +export { DescribeMonitorGroupDynamicRulesResponse } from './DescribeMonitorGroupDynamicRulesResponse'; +export { DescribeMonitorGroupInstanceAttributeRequest } from './DescribeMonitorGroupInstanceAttributeRequest'; +export { DescribeMonitorGroupInstanceAttributeResponseBody } from './DescribeMonitorGroupInstanceAttributeResponseBody'; +export { DescribeMonitorGroupInstanceAttributeResponse } from './DescribeMonitorGroupInstanceAttributeResponse'; +export { DescribeMonitorGroupInstancesRequest } from './DescribeMonitorGroupInstancesRequest'; +export { DescribeMonitorGroupInstancesResponseBody } from './DescribeMonitorGroupInstancesResponseBody'; +export { DescribeMonitorGroupInstancesResponse } from './DescribeMonitorGroupInstancesResponse'; +export { DescribeMonitorGroupNotifyPolicyListRequest } from './DescribeMonitorGroupNotifyPolicyListRequest'; +export { DescribeMonitorGroupNotifyPolicyListResponseBody } from './DescribeMonitorGroupNotifyPolicyListResponseBody'; +export { DescribeMonitorGroupNotifyPolicyListResponse } from './DescribeMonitorGroupNotifyPolicyListResponse'; +export { DescribeMonitorGroupsRequest } from './DescribeMonitorGroupsRequest'; +export { DescribeMonitorGroupsResponseBody } from './DescribeMonitorGroupsResponseBody'; +export { DescribeMonitorGroupsResponse } from './DescribeMonitorGroupsResponse'; +export { DescribeMonitorResourceQuotaAttributeRequest } from './DescribeMonitorResourceQuotaAttributeRequest'; +export { DescribeMonitorResourceQuotaAttributeResponseBody } from './DescribeMonitorResourceQuotaAttributeResponseBody'; +export { DescribeMonitorResourceQuotaAttributeResponse } from './DescribeMonitorResourceQuotaAttributeResponse'; +export { DescribeMonitoringAgentAccessKeyRequest } from './DescribeMonitoringAgentAccessKeyRequest'; +export { DescribeMonitoringAgentAccessKeyResponseBody } from './DescribeMonitoringAgentAccessKeyResponseBody'; +export { DescribeMonitoringAgentAccessKeyResponse } from './DescribeMonitoringAgentAccessKeyResponse'; +export { DescribeMonitoringAgentConfigRequest } from './DescribeMonitoringAgentConfigRequest'; +export { DescribeMonitoringAgentConfigResponseBody } from './DescribeMonitoringAgentConfigResponseBody'; +export { DescribeMonitoringAgentConfigResponse } from './DescribeMonitoringAgentConfigResponse'; +export { DescribeMonitoringAgentHostsRequest } from './DescribeMonitoringAgentHostsRequest'; +export { DescribeMonitoringAgentHostsResponseBody } from './DescribeMonitoringAgentHostsResponseBody'; +export { DescribeMonitoringAgentHostsResponse } from './DescribeMonitoringAgentHostsResponse'; +export { DescribeMonitoringAgentProcessesRequest } from './DescribeMonitoringAgentProcessesRequest'; +export { DescribeMonitoringAgentProcessesResponseBody } from './DescribeMonitoringAgentProcessesResponseBody'; +export { DescribeMonitoringAgentProcessesResponse } from './DescribeMonitoringAgentProcessesResponse'; +export { DescribeMonitoringAgentStatusesRequest } from './DescribeMonitoringAgentStatusesRequest'; +export { DescribeMonitoringAgentStatusesResponseBody } from './DescribeMonitoringAgentStatusesResponseBody'; +export { DescribeMonitoringAgentStatusesResponse } from './DescribeMonitoringAgentStatusesResponse'; +export { DescribeMonitoringConfigRequest } from './DescribeMonitoringConfigRequest'; +export { DescribeMonitoringConfigResponseBody } from './DescribeMonitoringConfigResponseBody'; +export { DescribeMonitoringConfigResponse } from './DescribeMonitoringConfigResponse'; +export { DescribeProductResourceTagKeyListRequest } from './DescribeProductResourceTagKeyListRequest'; +export { DescribeProductResourceTagKeyListResponseBody } from './DescribeProductResourceTagKeyListResponseBody'; +export { DescribeProductResourceTagKeyListResponse } from './DescribeProductResourceTagKeyListResponse'; +export { DescribeProductsOfActiveMetricRuleRequest } from './DescribeProductsOfActiveMetricRuleRequest'; +export { DescribeProductsOfActiveMetricRuleResponseBody } from './DescribeProductsOfActiveMetricRuleResponseBody'; +export { DescribeProductsOfActiveMetricRuleResponse } from './DescribeProductsOfActiveMetricRuleResponse'; +export { DescribeProjectMetaRequest } from './DescribeProjectMetaRequest'; +export { DescribeProjectMetaResponseBody } from './DescribeProjectMetaResponseBody'; +export { DescribeProjectMetaResponse } from './DescribeProjectMetaResponse'; +export { DescribeSiteMonitorAttributeRequest } from './DescribeSiteMonitorAttributeRequest'; +export { DescribeSiteMonitorAttributeResponseBody } from './DescribeSiteMonitorAttributeResponseBody'; +export { DescribeSiteMonitorAttributeResponse } from './DescribeSiteMonitorAttributeResponse'; +export { DescribeSiteMonitorDataRequest } from './DescribeSiteMonitorDataRequest'; +export { DescribeSiteMonitorDataResponseBody } from './DescribeSiteMonitorDataResponseBody'; +export { DescribeSiteMonitorDataResponse } from './DescribeSiteMonitorDataResponse'; +export { DescribeSiteMonitorISPCityListRequest } from './DescribeSiteMonitorIspcityListRequest'; +export { DescribeSiteMonitorISPCityListResponseBody } from './DescribeSiteMonitorIspcityListResponseBody'; +export { DescribeSiteMonitorISPCityListResponse } from './DescribeSiteMonitorIspcityListResponse'; +export { DescribeSiteMonitorListRequest } from './DescribeSiteMonitorListRequest'; +export { DescribeSiteMonitorListResponseBody } from './DescribeSiteMonitorListResponseBody'; +export { DescribeSiteMonitorListResponse } from './DescribeSiteMonitorListResponse'; +export { DescribeSiteMonitorLogRequest } from './DescribeSiteMonitorLogRequest'; +export { DescribeSiteMonitorLogResponseBody } from './DescribeSiteMonitorLogResponseBody'; +export { DescribeSiteMonitorLogResponse } from './DescribeSiteMonitorLogResponse'; +export { DescribeSiteMonitorQuotaRequest } from './DescribeSiteMonitorQuotaRequest'; +export { DescribeSiteMonitorQuotaResponseBody } from './DescribeSiteMonitorQuotaResponseBody'; +export { DescribeSiteMonitorQuotaResponse } from './DescribeSiteMonitorQuotaResponse'; +export { DescribeSiteMonitorStatisticsRequest } from './DescribeSiteMonitorStatisticsRequest'; +export { DescribeSiteMonitorStatisticsResponseBody } from './DescribeSiteMonitorStatisticsResponseBody'; +export { DescribeSiteMonitorStatisticsResponse } from './DescribeSiteMonitorStatisticsResponse'; +export { DescribeSyntheticProbeListRequest } from './DescribeSyntheticProbeListRequest'; +export { DescribeSyntheticProbeListResponseBody } from './DescribeSyntheticProbeListResponseBody'; +export { DescribeSyntheticProbeListResponse } from './DescribeSyntheticProbeListResponse'; +export { DescribeSystemEventAttributeRequest } from './DescribeSystemEventAttributeRequest'; +export { DescribeSystemEventAttributeResponseBody } from './DescribeSystemEventAttributeResponseBody'; +export { DescribeSystemEventAttributeResponse } from './DescribeSystemEventAttributeResponse'; +export { DescribeSystemEventCountRequest } from './DescribeSystemEventCountRequest'; +export { DescribeSystemEventCountResponseBody } from './DescribeSystemEventCountResponseBody'; +export { DescribeSystemEventCountResponse } from './DescribeSystemEventCountResponse'; +export { DescribeSystemEventHistogramRequest } from './DescribeSystemEventHistogramRequest'; +export { DescribeSystemEventHistogramResponseBody } from './DescribeSystemEventHistogramResponseBody'; +export { DescribeSystemEventHistogramResponse } from './DescribeSystemEventHistogramResponse'; +export { DescribeSystemEventMetaListRequest } from './DescribeSystemEventMetaListRequest'; +export { DescribeSystemEventMetaListResponseBody } from './DescribeSystemEventMetaListResponseBody'; +export { DescribeSystemEventMetaListResponse } from './DescribeSystemEventMetaListResponse'; +export { DescribeTagKeyListRequest } from './DescribeTagKeyListRequest'; +export { DescribeTagKeyListResponseBody } from './DescribeTagKeyListResponseBody'; +export { DescribeTagKeyListResponse } from './DescribeTagKeyListResponse'; +export { DescribeTagValueListRequest } from './DescribeTagValueListRequest'; +export { DescribeTagValueListResponseBody } from './DescribeTagValueListResponseBody'; +export { DescribeTagValueListResponse } from './DescribeTagValueListResponse'; +export { DescribeUnhealthyHostAvailabilityRequest } from './DescribeUnhealthyHostAvailabilityRequest'; +export { DescribeUnhealthyHostAvailabilityResponseBody } from './DescribeUnhealthyHostAvailabilityResponseBody'; +export { DescribeUnhealthyHostAvailabilityResponse } from './DescribeUnhealthyHostAvailabilityResponse'; +export { DisableActiveMetricRuleRequest } from './DisableActiveMetricRuleRequest'; +export { DisableActiveMetricRuleResponseBody } from './DisableActiveMetricRuleResponseBody'; +export { DisableActiveMetricRuleResponse } from './DisableActiveMetricRuleResponse'; +export { DisableEventRulesRequest } from './DisableEventRulesRequest'; +export { DisableEventRulesResponseBody } from './DisableEventRulesResponseBody'; +export { DisableEventRulesResponse } from './DisableEventRulesResponse'; +export { DisableHostAvailabilityRequest } from './DisableHostAvailabilityRequest'; +export { DisableHostAvailabilityResponseBody } from './DisableHostAvailabilityResponseBody'; +export { DisableHostAvailabilityResponse } from './DisableHostAvailabilityResponse'; +export { DisableMetricRulesRequest } from './DisableMetricRulesRequest'; +export { DisableMetricRulesResponseBody } from './DisableMetricRulesResponseBody'; +export { DisableMetricRulesResponse } from './DisableMetricRulesResponse'; +export { DisableSiteMonitorsRequest } from './DisableSiteMonitorsRequest'; +export { DisableSiteMonitorsResponseBody } from './DisableSiteMonitorsResponseBody'; +export { DisableSiteMonitorsResponse } from './DisableSiteMonitorsResponse'; +export { EnableActiveMetricRuleRequest } from './EnableActiveMetricRuleRequest'; +export { EnableActiveMetricRuleResponseBody } from './EnableActiveMetricRuleResponseBody'; +export { EnableActiveMetricRuleResponse } from './EnableActiveMetricRuleResponse'; +export { EnableEventRulesRequest } from './EnableEventRulesRequest'; +export { EnableEventRulesResponseBody } from './EnableEventRulesResponseBody'; +export { EnableEventRulesResponse } from './EnableEventRulesResponse'; +export { EnableHostAvailabilityRequest } from './EnableHostAvailabilityRequest'; +export { EnableHostAvailabilityResponseBody } from './EnableHostAvailabilityResponseBody'; +export { EnableHostAvailabilityResponse } from './EnableHostAvailabilityResponse'; +export { EnableMetricRuleBlackListRequest } from './EnableMetricRuleBlackListRequest'; +export { EnableMetricRuleBlackListResponseBody } from './EnableMetricRuleBlackListResponseBody'; +export { EnableMetricRuleBlackListResponse } from './EnableMetricRuleBlackListResponse'; +export { EnableMetricRulesRequest } from './EnableMetricRulesRequest'; +export { EnableMetricRulesResponseBody } from './EnableMetricRulesResponseBody'; +export { EnableMetricRulesResponse } from './EnableMetricRulesResponse'; +export { EnableSiteMonitorsRequest } from './EnableSiteMonitorsRequest'; +export { EnableSiteMonitorsResponseBody } from './EnableSiteMonitorsResponseBody'; +export { EnableSiteMonitorsResponse } from './EnableSiteMonitorsResponse'; +export { InstallMonitoringAgentRequest } from './InstallMonitoringAgentRequest'; +export { InstallMonitoringAgentResponseBody } from './InstallMonitoringAgentResponseBody'; +export { InstallMonitoringAgentResponse } from './InstallMonitoringAgentResponse'; +export { ModifyGroupMonitoringAgentProcessRequest } from './ModifyGroupMonitoringAgentProcessRequest'; +export { ModifyGroupMonitoringAgentProcessResponseBody } from './ModifyGroupMonitoringAgentProcessResponseBody'; +export { ModifyGroupMonitoringAgentProcessResponse } from './ModifyGroupMonitoringAgentProcessResponse'; +export { ModifyHostAvailabilityRequest } from './ModifyHostAvailabilityRequest'; +export { ModifyHostAvailabilityResponseBody } from './ModifyHostAvailabilityResponseBody'; +export { ModifyHostAvailabilityResponse } from './ModifyHostAvailabilityResponse'; +export { ModifyHostInfoRequest } from './ModifyHostInfoRequest'; +export { ModifyHostInfoResponseBody } from './ModifyHostInfoResponseBody'; +export { ModifyHostInfoResponse } from './ModifyHostInfoResponse'; +export { ModifyHybridMonitorNamespaceRequest } from './ModifyHybridMonitorNamespaceRequest'; +export { ModifyHybridMonitorNamespaceResponseBody } from './ModifyHybridMonitorNamespaceResponseBody'; +export { ModifyHybridMonitorNamespaceResponse } from './ModifyHybridMonitorNamespaceResponse'; +export { ModifyHybridMonitorSLSGroupRequest } from './ModifyHybridMonitorSlsgroupRequest'; +export { ModifyHybridMonitorSLSGroupResponseBody } from './ModifyHybridMonitorSlsgroupResponseBody'; +export { ModifyHybridMonitorSLSGroupResponse } from './ModifyHybridMonitorSlsgroupResponse'; +export { ModifyHybridMonitorTaskRequest } from './ModifyHybridMonitorTaskRequest'; +export { ModifyHybridMonitorTaskResponseBody } from './ModifyHybridMonitorTaskResponseBody'; +export { ModifyHybridMonitorTaskResponse } from './ModifyHybridMonitorTaskResponse'; +export { ModifyMetricRuleBlackListRequest } from './ModifyMetricRuleBlackListRequest'; +export { ModifyMetricRuleBlackListResponseBody } from './ModifyMetricRuleBlackListResponseBody'; +export { ModifyMetricRuleBlackListResponse } from './ModifyMetricRuleBlackListResponse'; +export { ModifyMetricRuleTemplateRequest } from './ModifyMetricRuleTemplateRequest'; +export { ModifyMetricRuleTemplateResponseBody } from './ModifyMetricRuleTemplateResponseBody'; +export { ModifyMetricRuleTemplateResponse } from './ModifyMetricRuleTemplateResponse'; +export { ModifyMonitorGroupRequest } from './ModifyMonitorGroupRequest'; +export { ModifyMonitorGroupResponseBody } from './ModifyMonitorGroupResponseBody'; +export { ModifyMonitorGroupResponse } from './ModifyMonitorGroupResponse'; +export { ModifyMonitorGroupInstancesRequest } from './ModifyMonitorGroupInstancesRequest'; +export { ModifyMonitorGroupInstancesResponseBody } from './ModifyMonitorGroupInstancesResponseBody'; +export { ModifyMonitorGroupInstancesResponse } from './ModifyMonitorGroupInstancesResponse'; +export { ModifySiteMonitorRequest } from './ModifySiteMonitorRequest'; +export { ModifySiteMonitorResponseBody } from './ModifySiteMonitorResponseBody'; +export { ModifySiteMonitorResponse } from './ModifySiteMonitorResponse'; +export { PutContactRequest } from './PutContactRequest'; +export { PutContactResponseBody } from './PutContactResponseBody'; +export { PutContactResponse } from './PutContactResponse'; +export { PutContactGroupRequest } from './PutContactGroupRequest'; +export { PutContactGroupResponseBody } from './PutContactGroupResponseBody'; +export { PutContactGroupResponse } from './PutContactGroupResponse'; +export { PutCustomEventRequest } from './PutCustomEventRequest'; +export { PutCustomEventResponseBody } from './PutCustomEventResponseBody'; +export { PutCustomEventResponse } from './PutCustomEventResponse'; +export { PutCustomEventRuleRequest } from './PutCustomEventRuleRequest'; +export { PutCustomEventRuleResponseBody } from './PutCustomEventRuleResponseBody'; +export { PutCustomEventRuleResponse } from './PutCustomEventRuleResponse'; +export { PutCustomMetricRequest } from './PutCustomMetricRequest'; +export { PutCustomMetricResponseBody } from './PutCustomMetricResponseBody'; +export { PutCustomMetricResponse } from './PutCustomMetricResponse'; +export { PutCustomMetricRuleRequest } from './PutCustomMetricRuleRequest'; +export { PutCustomMetricRuleResponseBody } from './PutCustomMetricRuleResponseBody'; +export { PutCustomMetricRuleResponse } from './PutCustomMetricRuleResponse'; +export { PutEventRuleRequest } from './PutEventRuleRequest'; +export { PutEventRuleResponseBody } from './PutEventRuleResponseBody'; +export { PutEventRuleResponse } from './PutEventRuleResponse'; +export { PutEventRuleTargetsRequest } from './PutEventRuleTargetsRequest'; +export { PutEventRuleTargetsResponseBody } from './PutEventRuleTargetsResponseBody'; +export { PutEventRuleTargetsResponse } from './PutEventRuleTargetsResponse'; +export { PutExporterOutputRequest } from './PutExporterOutputRequest'; +export { PutExporterOutputResponseBody } from './PutExporterOutputResponseBody'; +export { PutExporterOutputResponse } from './PutExporterOutputResponse'; +export { PutExporterRuleRequest } from './PutExporterRuleRequest'; +export { PutExporterRuleResponseBody } from './PutExporterRuleResponseBody'; +export { PutExporterRuleResponse } from './PutExporterRuleResponse'; +export { PutGroupMetricRuleRequest } from './PutGroupMetricRuleRequest'; +export { PutGroupMetricRuleResponseBody } from './PutGroupMetricRuleResponseBody'; +export { PutGroupMetricRuleResponse } from './PutGroupMetricRuleResponse'; +export { PutHybridMonitorMetricDataRequest } from './PutHybridMonitorMetricDataRequest'; +export { PutHybridMonitorMetricDataResponseBody } from './PutHybridMonitorMetricDataResponseBody'; +export { PutHybridMonitorMetricDataResponse } from './PutHybridMonitorMetricDataResponse'; +export { PutLogMonitorRequest } from './PutLogMonitorRequest'; +export { PutLogMonitorResponseBody } from './PutLogMonitorResponseBody'; +export { PutLogMonitorResponse } from './PutLogMonitorResponse'; +export { PutMetricRuleTargetsRequest } from './PutMetricRuleTargetsRequest'; +export { PutMetricRuleTargetsResponseBody } from './PutMetricRuleTargetsResponseBody'; +export { PutMetricRuleTargetsResponse } from './PutMetricRuleTargetsResponse'; +export { PutMonitorGroupDynamicRuleRequest } from './PutMonitorGroupDynamicRuleRequest'; +export { PutMonitorGroupDynamicRuleResponseBody } from './PutMonitorGroupDynamicRuleResponseBody'; +export { PutMonitorGroupDynamicRuleResponse } from './PutMonitorGroupDynamicRuleResponse'; +export { PutMonitoringConfigRequest } from './PutMonitoringConfigRequest'; +export { PutMonitoringConfigResponseBody } from './PutMonitoringConfigResponseBody'; +export { PutMonitoringConfigResponse } from './PutMonitoringConfigResponse'; +export { PutResourceMetricRuleRequest } from './PutResourceMetricRuleRequest'; +export { PutResourceMetricRuleShrinkRequest } from './PutResourceMetricRuleShrinkRequest'; +export { PutResourceMetricRuleResponseBody } from './PutResourceMetricRuleResponseBody'; +export { PutResourceMetricRuleResponse } from './PutResourceMetricRuleResponse'; +export { PutResourceMetricRulesRequest } from './PutResourceMetricRulesRequest'; +export { PutResourceMetricRulesResponseBody } from './PutResourceMetricRulesResponseBody'; +export { PutResourceMetricRulesResponse } from './PutResourceMetricRulesResponse'; +export { RemoveTagsRequest } from './RemoveTagsRequest'; +export { RemoveTagsResponseBody } from './RemoveTagsResponseBody'; +export { RemoveTagsResponse } from './RemoveTagsResponse'; +export { SendDryRunSystemEventRequest } from './SendDryRunSystemEventRequest'; +export { SendDryRunSystemEventResponseBody } from './SendDryRunSystemEventResponseBody'; +export { SendDryRunSystemEventResponse } from './SendDryRunSystemEventResponse'; +export { UninstallMonitoringAgentRequest } from './UninstallMonitoringAgentRequest'; +export { UninstallMonitoringAgentResponseBody } from './UninstallMonitoringAgentResponseBody'; +export { UninstallMonitoringAgentResponse } from './UninstallMonitoringAgentResponse'; diff --git a/backend/node_modules/@alicloud/credentials/LICENSE b/backend/node_modules/@alicloud/credentials/LICENSE new file mode 100644 index 0000000..98f58de --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2009-present, Alibaba Cloud All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/backend/node_modules/@alicloud/credentials/README.md b/backend/node_modules/@alicloud/credentials/README.md new file mode 100644 index 0000000..846c904 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/README.md @@ -0,0 +1,258 @@ +English | [简体中文](README-CN.md) + +# Alibaba Cloud Credentials for TypeScript/Node.js + +[![npm version](https://badge.fury.io/js/@alicloud%2fcredentials.svg)](https://www.npmjs.com/package/@alicloud/credentials) +[![NodeJS](https://github.com/aliyun/credentials-nodejs/actions/workflows/ci.yml/badge.svg)](https://github.com/aliyun/credentials-nodejs/actions/workflows/ci.yml) +[![codecov](https://codecov.io/gh/aliyun/credentials-nodejs/branch/master/graph/badge.svg)](https://codecov.io/gh/aliyun/credentials-nodejs) +[![license](https://img.shields.io/github/license/mashape/apistatus.svg)](LICENSE) + +## Installation + +```bash +npm install @alicloud/credentials +``` + +**Node.js >= 12** required. + +## Quick Examples + +Before you begin, you need to sign up for an Alibaba Cloud account and retrieve your [Credentials](https://usercenter.console.aliyun.com/#/manage/ak). + +### Credential Type + +#### access_key + +Setup access_key credential through [User Information Management][ak], it have full authority over the account, please keep it safe. Sometimes for security reasons, you cannot hand over a primary account AccessKey with full access to the developer of a project. You may create a sub-account [RAM Sub-account][ram] , grant its [authorization][permissions],and use the AccessKey of RAM Sub-account. + +```ts +import Credential, { Config } from '@alicloud/credentials'; + +const config: Config = { + type: 'access_key', // credential type + accessKeyId: 'accessKeyId', // AccessKeyId of your account + accessKeySecret: 'accessKeySecret', // AccessKeySecret of your account +} +const cred = new Credential(config); +const { + accessKeyId, + accessKeySecret, + type +} = await cred.getCredential(); +``` + +#### sts + +Create a temporary security credential by applying Temporary Security Credentials (TSC) through the Security Token Service (STS). + +```ts +import Credential, { Config } from '@alicloud/credentials'; + +const config: Config = { + type: 'sts', // credential type + accessKeyId: 'accessKeyId', // AccessKeyId of your account + accessKeySecret: 'accessKeySecret', // AccessKeySecret of your account + securityToken: 'securityToken', // Temporary Security Token +} +const cred = new Credential(config); +const { + accessKeyId, + accessKeySecret, + securityToken, + type +} = await cred.getCredential(); +``` + +#### ram_role_arn + +By specifying [RAM Role][RAM Role], the credential will be able to automatically request maintenance of STS Token. If you want to limit the permissions([How to make a policy][policy]) of STS Token, you can assign value for `Policy`. + +```ts +import Credential, { Config } from '@alicloud/credentials'; + +const config: Config = { + type: 'ram_role_arn', // credential type + accessKeyId: 'accessKeyId', // AccessKeyId of your account + accessKeySecret: 'accessKeySecret', // AccessKeySecret of your account + roleArn: 'roleArn', // Format: acs:ram::USER_ID:role/ROLE_NAME + roleSessionName: 'roleSessionName', // Role Session Name + policy: 'policy', // Not required, limit the permissions of STS Token + roleSessionExpiration: 3600, // Not required, limit the Valid time of STS Token +} +const cred = new Credential(config); +const { + accessKeyId, + accessKeySecret, + securityToken, + type +} = await cred.getCredential(); +``` + +#### oidc_role_arn + +By specifying [OIDC Role][OIDC Role], the credential will be able to automatically request maintenance of STS Token. If you want to limit the permissions([How to make a policy][policy]) of STS Token, you can assign value for `Policy`. + +```ts +import Credential, { Config } from '@alicloud/credentials'; + +const config: Config = { + type: 'oidc_role_arn', // credential type + roleArn: 'roleArn', // Format: acs:ram::USER_Id:role/ROLE_NAME roleArn can be replaced by setting environment variable: ALIBABA_CLOUD_ROLE_ARN + oidcProviderArn: 'oidcProviderArn', // Format: acs:ram::USER_Id:oidc-provider/ROLE_NAME oidcProviderArn can be replaced by setting environment variable: ALIBABA_CLOUD_OIDC_PROVIDER_ARN + oidcTokenFilePath: '/Users/xxx/xxx', // Format: path OIDCTokenFilePath can be replaced by setting environment variable: ALIBABA_CLOUD_OIDC_TOKEN_FILE + roleSessionName: 'roleSessionName', // Role Session Name + policy: 'policy', // Not required, limit the permissions of STS Token + roleSessionExpiration: 3600, // Not required, limit the Valid time of STS Token +} +const cred = new Credential(config); +const { + accessKeyId, + accessKeySecret, + securityToken, + type +} = await cred.getCredential(); +``` + +#### ecs_ram_role + +By specifying the role name, the credential will be able to automatically request maintenance of STS Token. + +```ts +import Credential, { Config } from '@alicloud/credentials'; +const config: Config = { + type: 'ecs_ram_role', // credential type + roleName: 'roleName', // `roleName` is optional. It will be retrieved automatically if not set. It is highly recommended to set it up to reduce requests. + disableIMDSv1: true, // `disableIMDSv1` is optional and is recommended to be turned on. It can be replaced by setting environment variable: ALIBABA_CLOUD_IMDSV1_DISABLED +} +const cred = new Credential(config); +const { + accessKeyId, + accessKeySecret, + securityToken, + type +} = await cred.getCredential(); +``` + +#### rsa_key_pair + +By specifying the public key ID and the private key file, the credential will be able to automatically request maintenance of the AccessKey before sending the request. Only Japan station is supported. + +```ts +import Credential, { Config } from '@alicloud/credentials'; +const config: Config = { + type: 'rsa_key_pair', // credential type + privateKeyFile: 'privateKeyFile', // The file path to store the PrivateKey + publicKeyId: 'publicKeyId', // PublicKeyId of your account +} +const cred = new Credential(config); +const { + accessKeyId, + accessKeySecret, + securityToken, + type +} = await cred.getCredential(); +``` + +#### credentials_uri + +By specifying a local or remote URI to get credentials and refresh automanticly. + +```ts +import Credential, { Config } from '@alicloud/credentials'; +const config: Config = { + type: 'credentials_uri', + credentialsURI: 'http://a_local_or_remote_address/' //credentialsURI can be replaced by setting environment variable: ALIBABA_CLOUD_CREDENTIALS_URI +}; +const cred = new Credential(config); +const { + accessKeyId, + accessKeySecret, + securityToken, + type +} = await cred.getCredential(); +``` + +The URI must reponse meets following conditions: + +- response status code is 200 +- response body struct must be: + +```json +{ + "Code": "Success", + "AccessKeySecret": "AccessKeySecret", + "AccessKeyId": "AccessKeyId", + "Expiration": "2021-09-26T03:46:38Z", + "SecurityToken": "SecurityToken" +} +``` + +#### bearer + +If credential is required by the Cloud Call Centre (CCC), please apply for Bearer Token maintenance by yourself. + +```ts +import Credential, { Config } from '@alicloud/credentials'; +const config: Config = { + type: 'bearer', // credential type + bearerToken: 'bearerToken', // BearerToken of your account +} +const cred = new Credential(config); +let bearerToken: string = await cred.getBearerToken(); +let type: string = cred.getType(); +``` + +### Provider + +If you call `new Credential()` with empty, it will use provider chain to get credential for you. + +#### 1. Environment Credentials + +The program first looks for environment credentials in the environment variable. If the `ALIBABA_CLOUD_ACCESS_KEY_ID` and `ALIBABA_CLOUD_ACCESS_KEY_SECRET` environment variables are defined and are not empty, the program will use them to create the default credential. If not, the program loads and looks for the client in the configuration file. + +#### 2. Config File + +If there is `~/.alibabacloud/credentials` default file (Windows shows `C:\Users\USER_NAME\.alibabacloud\credentials`), the program will automatically create credential with the name of 'default'. The default file may not exist, but a parse error throws an exception. The specified files can also be loaded indefinitely: `AlibabaCloud::load('/data/credentials', 'vfs://AlibabaCloud/credentials', ...);` This configuration file can be shared between different projects and between different tools. Because it is outside the project and will not be accidentally committed to the version control. Environment variables can be used on Windows to refer to the home directory %UserProfile%. Unix-like systems can use the environment variable $HOME or ~ (tilde). The path to the default file can be modified by defining the `ALIBABA_CLOUD_CREDENTIALS_FILE` environment variable. + +```ini +[default] # Default credential +type = access_key # Certification type: access_key +access_key_id = foo # access key id +access_key_secret = bar # access key secret +``` + +#### 3. Instance RAM Role + +If the environment variable `ALIBABA_CLOUD_ECS_METADATA` is defined and not empty, the program will take the value of the environment variable as the role name and request `http://100.100.100.200/latest/meta-data/ram/security-credentials/` to get the temporary Security credential. + +#### 4. Credentials URI + +If the environment variable `ALIBABA_CLOUD_CREDENTIALS_URI` is defined and not empty, +the program will take the value of the environment variable as the credentials uri. + +## Test & Coverage + +- run test + +```sh +npm run test +``` + +- run code coverage + +```sh +npm run cov +``` + +## License + +[MIT](LICENSE) + +Copyright (c) 2009-present, Alibaba Cloud All rights reserved. + +[ak]: https://usercenter.console.aliyun.com/#/manage/ak +[ram]: https://ram.console.aliyun.com/users +[permissions]: https://ram.console.aliyun.com/permissions +[RAM Role]: https://ram.console.aliyun.com/#/role/list +[OIDC Role]: https://help.aliyun.com/zh/ram/user-guide/role-based-sso-by-using-oidc +[policy]: https://help.aliyun.com/zh/ram/user-guide/policy-management/ diff --git a/backend/node_modules/@alicloud/credentials/dist/package.json b/backend/node_modules/@alicloud/credentials/dist/package.json new file mode 100644 index 0000000..435d49f --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/package.json @@ -0,0 +1,60 @@ +{ + "name": "@alicloud/credentials", + "version": "2.4.4", + "description": "alibaba cloud node.js sdk credentials", + "main": "dist/src/client.js", + "scripts": { + "prepublishOnly": "tsc", + "build": "tsc", + "lint": "eslint --fix ./src --ext .ts", + "test": "mocha -b -r ts-node/register test/**/*.test.ts test/*.test.ts --timeout 15000", + "test-dev": "nyc -e .ts -r=html -r=text -r=lcov mocha -b -r ts-node/register", + "cov": "nyc -e .ts -r=html -r=text -r=lcov npm run test", + "ci": "npm run cov", + "integration": "mocha -b -r ts-node/register -R spec integration/*.test.ts", + "clean": "rm -rf coverage" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/aliyun/nodejs-credentials.git" + }, + "keywords": [ + "alibaba cloud", + "sdk", + "credentials" + ], + "author": "Alibaba Cloud SDK", + "license": "MIT", + "devDependencies": { + "@types/debug": "^4.1.12", + "@types/expect.js": "^0.3.29", + "@types/ini": "^1.3.30", + "@types/mocha": "^10.0.6", + "@types/node": "^20.11.10", + "@types/rewire": "^2.5.28", + "@typescript-eslint/eslint-plugin": "^6.18.1", + "@typescript-eslint/parser": "^6.18.1", + "eslint": "^8.56.0", + "expect.js": "^0.3.1", + "mm": "^2.4.1", + "mocha": "^10.1.0", + "nyc": "^15.1.0", + "rewire": "^7.0.0", + "ts-node": "^10.9.2", + "typescript": "^4.7.4" + }, + "dependencies": { + "@alicloud/tea-typescript": "^1.8.0", + "httpx": "^2.3.3", + "ini": "^1.3.5", + "kitx": "^2.0.0" + }, + "bugs": { + "url": "https://github.com/aliyun/nodejs-credentials/issues" + }, + "homepage": "https://github.com/aliyun/nodejs-credentials#readme", + "files": [ + "src", + "dist" + ] +} diff --git a/backend/node_modules/@alicloud/credentials/dist/src/access_key_credential.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/access_key_credential.d.ts new file mode 100644 index 0000000..52e4f46 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/access_key_credential.d.ts @@ -0,0 +1,5 @@ +import DefaultCredential from './default_credential'; +import ICredential from './icredential'; +export default class AccessKeyCredential extends DefaultCredential implements ICredential { + constructor(accessKeyId: string, accessKeySecret: string); +} diff --git a/backend/node_modules/@alicloud/credentials/dist/src/access_key_credential.js b/backend/node_modules/@alicloud/credentials/dist/src/access_key_credential.js new file mode 100644 index 0000000..b331de1 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/access_key_credential.js @@ -0,0 +1,25 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const default_credential_1 = __importDefault(require("./default_credential")); +const config_1 = __importDefault(require("./config")); +class AccessKeyCredential extends default_credential_1.default { + constructor(accessKeyId, accessKeySecret) { + if (!accessKeyId) { + throw new Error('Missing required accessKeyId option in config for access_key'); + } + if (!accessKeySecret) { + throw new Error('Missing required accessKeySecret option in config for access_key'); + } + const conf = new config_1.default({ + type: 'access_key', + accessKeyId, + accessKeySecret + }); + super(conf); + } +} +exports.default = AccessKeyCredential; +//# sourceMappingURL=access_key_credential.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/access_key_credential.js.map b/backend/node_modules/@alicloud/credentials/dist/src/access_key_credential.js.map new file mode 100644 index 0000000..f0da820 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/access_key_credential.js.map @@ -0,0 +1 @@ +{"version":3,"file":"access_key_credential.js","sourceRoot":"","sources":["../../src/access_key_credential.ts"],"names":[],"mappings":";;;;;AAAA,8EAAqD;AAErD,sDAA8B;AAE9B,MAAqB,mBAAoB,SAAQ,4BAAiB;IAChE,YAAY,WAAmB,EAAE,eAAuB;QACtD,IAAI,CAAC,WAAW,EAAE;YAChB,MAAM,IAAI,KAAK,CAAC,8DAA8D,CAAC,CAAC;SACjF;QAED,IAAI,CAAC,eAAe,EAAE;YACpB,MAAM,IAAI,KAAK,CAAC,kEAAkE,CAAC,CAAC;SACrF;QACD,MAAM,IAAI,GAAG,IAAI,gBAAM,CAAC;YACtB,IAAI,EAAE,YAAY;YAClB,WAAW;YACX,eAAe;SAChB,CAAC,CAAC;QACH,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;CACF;AAhBD,sCAgBC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/bearer_token_credential.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/bearer_token_credential.d.ts new file mode 100644 index 0000000..ea79132 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/bearer_token_credential.d.ts @@ -0,0 +1,5 @@ +import DefaultCredential from './default_credential'; +import ICredential from './icredential'; +export default class BearerTokenCredential extends DefaultCredential implements ICredential { + constructor(bearerToken: string); +} diff --git a/backend/node_modules/@alicloud/credentials/dist/src/bearer_token_credential.js b/backend/node_modules/@alicloud/credentials/dist/src/bearer_token_credential.js new file mode 100644 index 0000000..2173a73 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/bearer_token_credential.js @@ -0,0 +1,21 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const default_credential_1 = __importDefault(require("./default_credential")); +const config_1 = __importDefault(require("./config")); +class BearerTokenCredential extends default_credential_1.default { + constructor(bearerToken) { + if (!bearerToken) { + throw new Error('Missing required bearerToken option in config for bearer'); + } + const conf = new config_1.default({ + type: 'bearer' + }); + super(conf); + this.bearerToken = bearerToken; + } +} +exports.default = BearerTokenCredential; +//# sourceMappingURL=bearer_token_credential.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/bearer_token_credential.js.map b/backend/node_modules/@alicloud/credentials/dist/src/bearer_token_credential.js.map new file mode 100644 index 0000000..e88f272 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/bearer_token_credential.js.map @@ -0,0 +1 @@ +{"version":3,"file":"bearer_token_credential.js","sourceRoot":"","sources":["../../src/bearer_token_credential.ts"],"names":[],"mappings":";;;;;AAAA,8EAAqD;AAErD,sDAA8B;AAE9B,MAAqB,qBAAsB,SAAQ,4BAAiB;IAElE,YAAY,WAAmB;QAC7B,IAAI,CAAC,WAAW,EAAE;YAChB,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;SAC7E;QACD,MAAM,IAAI,GAAG,IAAI,gBAAM,CAAC;YACtB,IAAI,EAAE,QAAQ;SACf,CAAC,CAAC;QACH,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;CACF;AAZD,wCAYC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/client.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/client.d.ts new file mode 100644 index 0000000..4e96b96 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/client.d.ts @@ -0,0 +1,43 @@ +import ICredential from './icredential'; +import Config from './config'; +import CredentialModel from './credential_model'; +import CredentialsProvider from './credentials_provider'; +import StaticAKCredentialsProvider from './providers/static_ak'; +import StaticSTSCredentialsProvider from './providers/static_sts'; +import RAMRoleARNCredentialsProvider from './providers/ram_role_arn'; +import OIDCRoleArnCredentialsProvider from './providers/oidc_role_arn'; +import ECSRAMRoleCredentialsProvider from './providers/ecs_ram_role'; +import DefaultCredentialsProvider from './providers/default'; +import URICredentialsProvider from './providers/uri'; +import CLIProfileCredentialsProvider from './providers/cli_profile'; +import ProfileCredentialsProvider from './providers/profile'; +import EnvironmentVariableCredentialsProvider from './providers/env'; +export { CredentialModel, Config, DefaultCredentialsProvider, CredentialsProvider, StaticAKCredentialsProvider, StaticSTSCredentialsProvider, RAMRoleARNCredentialsProvider, OIDCRoleArnCredentialsProvider, ECSRAMRoleCredentialsProvider, URICredentialsProvider, EnvironmentVariableCredentialsProvider, ProfileCredentialsProvider, CLIProfileCredentialsProvider }; +export default class Credential implements ICredential { + credential: ICredential; + constructor(config?: Config | null, provider?: CredentialsProvider | { + [key: string]: any; + } | null); + /** + * @deprecated Use getCredential() instead of + */ + getAccessKeyId(): Promise; + /** + * @deprecated Use getCredential() instead of + */ + getAccessKeySecret(): Promise; + /** + * @deprecated Use getCredential() instead of + */ + getSecurityToken(): Promise; + /** + * @deprecated Use getCredential() instead of + */ + getBearerToken(): string; + /** + * @deprecated Use getCredential() instead of + */ + getType(): string; + getCredential(): Promise; + private load; +} diff --git a/backend/node_modules/@alicloud/credentials/dist/src/client.js b/backend/node_modules/@alicloud/credentials/dist/src/client.js new file mode 100644 index 0000000..ecd4652 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/client.js @@ -0,0 +1,229 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CLIProfileCredentialsProvider = exports.ProfileCredentialsProvider = exports.EnvironmentVariableCredentialsProvider = exports.URICredentialsProvider = exports.ECSRAMRoleCredentialsProvider = exports.OIDCRoleArnCredentialsProvider = exports.RAMRoleARNCredentialsProvider = exports.StaticSTSCredentialsProvider = exports.StaticAKCredentialsProvider = exports.DefaultCredentialsProvider = exports.Config = exports.CredentialModel = void 0; +const rsa_key_pair_credential_1 = __importDefault(require("./rsa_key_pair_credential")); +const bearer_token_credential_1 = __importDefault(require("./bearer_token_credential")); +const config_1 = __importDefault(require("./config")); +exports.Config = config_1.default; +const credential_model_1 = __importDefault(require("./credential_model")); +exports.CredentialModel = credential_model_1.default; +const static_ak_1 = __importDefault(require("./providers/static_ak")); +exports.StaticAKCredentialsProvider = static_ak_1.default; +const static_sts_1 = __importDefault(require("./providers/static_sts")); +exports.StaticSTSCredentialsProvider = static_sts_1.default; +const ram_role_arn_1 = __importDefault(require("./providers/ram_role_arn")); +exports.RAMRoleARNCredentialsProvider = ram_role_arn_1.default; +const oidc_role_arn_1 = __importDefault(require("./providers/oidc_role_arn")); +exports.OIDCRoleArnCredentialsProvider = oidc_role_arn_1.default; +const ecs_ram_role_1 = __importDefault(require("./providers/ecs_ram_role")); +exports.ECSRAMRoleCredentialsProvider = ecs_ram_role_1.default; +const default_1 = __importDefault(require("./providers/default")); +exports.DefaultCredentialsProvider = default_1.default; +const uri_1 = __importDefault(require("./providers/uri")); +exports.URICredentialsProvider = uri_1.default; +const cli_profile_1 = __importDefault(require("./providers/cli_profile")); +exports.CLIProfileCredentialsProvider = cli_profile_1.default; +const profile_1 = __importDefault(require("./providers/profile")); +exports.ProfileCredentialsProvider = profile_1.default; +const env_1 = __importDefault(require("./providers/env")); +exports.EnvironmentVariableCredentialsProvider = env_1.default; +class InnerCredentialsClient { + constructor(type, provider) { + this.type = type; + this.provider = provider; + } + /** + * @deprecated use getCredential() instead of + * @returns the access key id of credentials + */ + async getAccessKeyId() { + const credentials = await this.provider.getCredentials(); + return credentials.accessKeyId; + } + /** + * @deprecated use getCredential() instead of + * @returns the access key secret of credentials + */ + async getAccessKeySecret() { + const credentials = await this.provider.getCredentials(); + return credentials.accessKeySecret; + } + /** + * @deprecated use getCredential() instead of + * @returns the security token of credentials + */ + async getSecurityToken() { + const credentials = await this.provider.getCredentials(); + return credentials.securityToken; + } + getBearerToken() { + return; + } + getType() { + return this.type; + } + async getCredential() { + const credentials = await this.provider.getCredentials(); + return new credential_model_1.default({ + accessKeyId: credentials.accessKeyId, + accessKeySecret: credentials.accessKeySecret, + securityToken: credentials.securityToken, + bearerToken: undefined, + type: this.getType(), + providerName: credentials.providerName, + }); + } +} +function isCredentialsProviderClass(t) { + if (!t) { + return false; + } + return typeof t.getCredentials === 'function' && typeof t.getProviderName === 'function'; +} +class Credential { + constructor(config = null, provider = null) { + if (isCredentialsProviderClass(provider)) { + this.load(null, provider); + } + else { + this.load(config, null); + } + } + /** + * @deprecated Use getCredential() instead of + */ + getAccessKeyId() { + return this.credential.getAccessKeyId(); + } + /** + * @deprecated Use getCredential() instead of + */ + getAccessKeySecret() { + return this.credential.getAccessKeySecret(); + } + /** + * @deprecated Use getCredential() instead of + */ + getSecurityToken() { + return this.credential.getSecurityToken(); + } + /** + * @deprecated Use getCredential() instead of + */ + getBearerToken() { + return this.credential.getBearerToken(); + } + /** + * @deprecated Use getCredential() instead of + */ + getType() { + return this.credential.getType(); + } + getCredential() { + return this.credential.getCredential(); + } + load(config, provider) { + if (provider) { + this.credential = new InnerCredentialsClient(provider.getProviderName(), provider); + return; + } + if (!config) { + this.credential = new InnerCredentialsClient('default', default_1.default.builder().build()); + return; + } + if (!config.type) { + throw new Error('Missing required type option'); + } + switch (config.type) { + case 'access_key': + this.credential = new InnerCredentialsClient('access_key', static_ak_1.default.builder() + .withAccessKeyId(config.accessKeyId) + .withAccessKeySecret(config.accessKeySecret) + .build()); + break; + case 'sts': + this.credential = new InnerCredentialsClient('sts', static_sts_1.default.builder() + .withAccessKeyId(config.accessKeyId) + .withAccessKeySecret(config.accessKeySecret) + .withSecurityToken(config.securityToken) + .build()); + break; + case 'ecs_ram_role': + this.credential = new InnerCredentialsClient('ecs_ram_role', ecs_ram_role_1.default.builder() + .withRoleName(config.roleName) + .withDisableIMDSv1(config.disableIMDSv1) + .withAsyncCredentialUpdateEnabled(config.asyncCredentialUpdateEnabled) + .withReadTimeout(config.timeout) + .withConnectTimeout(config.connectTimeout) + .build()); + break; + case 'ram_role_arn': + { + let credentialsProvider; + if (config.securityToken) { + credentialsProvider = static_sts_1.default.builder() + .withAccessKeyId(config.accessKeyId) + .withAccessKeySecret(config.accessKeySecret) + .withSecurityToken(config.securityToken) + .build(); + } + else { + credentialsProvider = static_ak_1.default.builder() + .withAccessKeyId(config.accessKeyId) + .withAccessKeySecret(config.accessKeySecret) + .build(); + } + this.credential = new InnerCredentialsClient('ram_role_arn', ram_role_arn_1.default.builder() + .withCredentialsProvider(credentialsProvider) + .withRoleArn(config.roleArn) + .withPolicy(config.policy) + .withDurationSeconds(config.roleSessionExpiration) + .withRoleSessionName(config.roleSessionName) + .withReadTimeout(config.timeout) + .withConnectTimeout(config.connectTimeout) + .withEnableVpc(config.enableVpc) + .withStsEndpoint(config.stsEndpoint) + .withStsRegionId(config.stsRegionId) + .withExternalId(config.externalId) + // .withHttpOptions(runtime) + .build()); + } + break; + case 'oidc_role_arn': + this.credential = new InnerCredentialsClient('oidc_role_arn', oidc_role_arn_1.default.builder() + .withRoleArn(config.roleArn) + .withOIDCProviderArn(config.oidcProviderArn) + .withOIDCTokenFilePath(config.oidcTokenFilePath) + .withRoleSessionName(config.roleSessionName) + .withPolicy(config.policy) + .withDurationSeconds(config.roleSessionExpiration) + .withStsEndpoint(config.stsEndpoint) + .withStsRegionId(config.stsRegionId) + .withEnableVpc(config.enableVpc) + .withReadTimeout(config.timeout) + .withConnectTimeout(config.connectTimeout) + .build()); + break; + case 'rsa_key_pair': + this.credential = new rsa_key_pair_credential_1.default(config.publicKeyId, config.privateKeyFile); + break; + case 'bearer': + this.credential = new bearer_token_credential_1.default(config.bearerToken); + break; + case 'credentials_uri': + this.credential = new InnerCredentialsClient('credentials_uri', uri_1.default.builder() + .withCredentialsURI(config.credentialsURI) + .withReadTimeout(config.timeout) + .withConnectTimeout(config.connectTimeout) + .build()); + break; + default: + throw new Error('Invalid type option, support: access_key, sts, ecs_ram_role, ram_role_arn, rsa_key_pair, credentials_uri'); + } + } +} +exports.default = Credential; +//# sourceMappingURL=client.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/client.js.map b/backend/node_modules/@alicloud/credentials/dist/src/client.js.map new file mode 100644 index 0000000..08cd629 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/client.js.map @@ -0,0 +1 @@ +{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":";;;;;;AAEA,wFAA6D;AAC7D,wFAA8D;AAE9D,sDAA8B;AAgBX,iBAhBZ,gBAAM,CAgBY;AAfzB,0EAAiD;AAe/C,0BAfK,0BAAe,CAeL;AAZjB,sEAAgE;AAa9D,sCAbK,mBAA2B,CAaL;AAZ7B,wEAAkE;AAYnC,uCAZxB,oBAA4B,CAYwB;AAX3D,4EAAqE;AAWR,wCAXtD,sBAA6B,CAWsD;AAV1F,8EAAuE;AAWrE,yCAXK,uBAA8B,CAWL;AAVhC,4EAAqE;AAUnC,wCAV3B,sBAA6B,CAU2B;AAT/D,kEAA6D;AAOlC,qCAPpB,iBAA0B,CAOoB;AANrD,0DAAqD;AAQY,iCAR1D,aAAsB,CAQ0D;AAPvF,0EAAoE;AAQE,wCAR/D,qBAA6B,CAQ+D;AAPnG,kEAA6D;AAOnB,qCAPnC,iBAA0B,CAOmC;AANpE,0DAAqE;AAMnE,iDANK,aAAsC,CAML;AAGxC,MAAM,sBAAsB;IAI1B,YAAY,IAAY,EAAE,QAA6B;QACrD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,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ACnC,aAAa,CAAC,MAAM,CAAC,SAAS,CAAC;qBAC/B,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC;qBAC/B,kBAAkB,CAAC,MAAM,CAAC,cAAc,CAAC;qBACzC,KAAK,EAAE,CAAC,CAAC;gBACZ,MAAM;YACR,KAAK,cAAc;gBACjB,IAAI,CAAC,UAAU,GAAG,IAAI,iCAAoB,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC;gBACtF,MAAM;YACR,KAAK,QAAQ;gBACX,IAAI,CAAC,UAAU,GAAG,IAAI,iCAAqB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;gBAChE,MAAM;YACR,KAAK,iBAAiB;gBACpB,IAAI,CAAC,UAAU,GAAG,IAAI,sBAAsB,CAAC,iBAAiB,EAAE,aAAsB,CAAC,OAAO,EAAE;qBAC7F,kBAAkB,CAAC,MAAM,CAAC,cAAc,CAAC;qBACzC,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC;qBAC/B,kBAAkB,CAAC,MAAM,CAAC,cAAc,CAAC;qBACzC,KAAK,EAAE,CAAC,CAAC;gBACZ,MAAM;YACR;gBACE,MAAM,IAAI,KAAK,CAAC,0GAA0G,CAAC,CAAC;SAC7H;IACH,CAAC;CAEF;AArJD,6BAqJC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/config.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/config.d.ts new file mode 100644 index 0000000..6319e2b --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/config.d.ts @@ -0,0 +1,36 @@ +import * as $tea from '@alicloud/tea-typescript'; +export default class Config extends $tea.Model { + accessKeyId?: string; + accessKeySecret?: string; + securityToken?: string; + bearerToken?: string; + durationSeconds?: number; + roleArn?: string; + policy?: string; + roleSessionExpiration?: number; + roleSessionName?: string; + publicKeyId?: string; + privateKeyFile?: string; + roleName?: string; + enableIMDSv2?: boolean; + disableIMDSv1: boolean; + asyncCredentialUpdateEnabled: boolean; + metadataTokenDuration?: number; + credentialsURI?: string; + oidcProviderArn: string; + oidcTokenFilePath: string; + type?: string; + externalId?: string; + stsEndpoint?: string; + timeout?: number; + connectTimeout?: number; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + constructor(config?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/credentials/dist/src/config.js b/backend/node_modules/@alicloud/credentials/dist/src/config.js new file mode 100644 index 0000000..b4ffba2 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/config.js @@ -0,0 +1,93 @@ +"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 (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const $tea = __importStar(require("@alicloud/tea-typescript")); +class Config extends $tea.Model { + static names() { + return { + accessKeyId: 'accessKeyId', + accessKeySecret: 'accessKeySecret', + securityToken: 'securityToken', + bearerToken: 'bearerToken', + durationSeconds: 'durationSeconds', + roleArn: 'roleArn', + policy: 'policy', + roleSessionExpiration: 'roleSessionExpiration', + roleSessionName: 'roleSessionName', + externalId: 'externalId', + stsEndpoint: 'stsEndpoint', + stsRegionId: 'stsRegionId', + enableVpc: 'enableVpc', + timeout: 'readTimeout', + connectTimeout: 'connectTimeout', + publicKeyId: 'publicKeyId', + privateKeyFile: 'privateKeyFile', + roleName: 'roleName', + enableIMDSv2: 'enableIMDSv2', + disableIMDSv1: 'disableIMDSv1', + asyncCredentialUpdateEnabled: 'asyncCredentialUpdateEnabled', + metadataTokenDuration: 'metadataTokenDuration', + credentialsURI: 'credentialsURI', + oidcProviderArn: 'oidcProviderArn', + oidcTokenFilePath: 'oidcTokenFilePath', + type: 'type', + }; + } + static types() { + return { + accessKeyId: 'string', + accessKeySecret: 'string', + securityToken: 'string', + bearerToken: 'string', + durationSeconds: 'number', + roleArn: 'string', + policy: 'string', + roleSessionExpiration: 'number', + roleSessionName: 'string', + externalId: 'string', + stsEndpoint: 'string', + stsRegionId: 'string', + enableVpc: 'string', + timeout: 'number', + connectTimeout: 'number', + publicKeyId: 'string', + privateKeyFile: 'string', + roleName: 'string', + enableIMDSv2: 'boolean', + disableIMDSv1: 'boolean', + asyncCredentialUpdateEnabled: 'boolean', + metadataTokenDuration: 'number', + credentialsURI: 'string', + oidcProviderArn: 'string', + oidcTokenFilePath: 'string', + type: 'string', + }; + } + constructor(config) { + super(config); + } +} +exports.default = Config; +//# sourceMappingURL=config.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/config.js.map b/backend/node_modules/@alicloud/credentials/dist/src/config.js.map new file mode 100644 index 0000000..9f748da --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/config.js.map @@ -0,0 +1 @@ +{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAAiD;AAEjD,MAAqB,MAAO,SAAQ,IAAI,CAAC,KAAK;IA0B5C,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;YAC1B,eAAe,EAAE,iBAAiB;YAClC,aAAa,EAAE,eAAe;YAC9B,WAAW,EAAE,aAAa;YAC1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,QAAQ;YACzB,iBAAiB,EAAE,QAAQ;YAC3B,IAAI,EAAE,QAAQ;SACf,CAAC;IACJ,CAAC;IAED,YAAY,MAA+B;QACzC,KAAK,CAAC,MAAM,CAAC,CAAC;IAChB,CAAC;CACF;AA3FD,yBA2FC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/credential_model.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/credential_model.d.ts new file mode 100644 index 0000000..0db714f --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/credential_model.d.ts @@ -0,0 +1,18 @@ +import * as $tea from '@alicloud/tea-typescript'; +export default class CredentialModel extends $tea.Model { + accessKeyId?: string; + accessKeySecret?: string; + securityToken?: string; + bearerToken?: string; + type?: string; + providerName?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/credentials/dist/src/credential_model.js b/backend/node_modules/@alicloud/credentials/dist/src/credential_model.js new file mode 100644 index 0000000..f5954b8 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/credential_model.js @@ -0,0 +1,53 @@ +"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 (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const $tea = __importStar(require("@alicloud/tea-typescript")); +class CredentialModel extends $tea.Model { + static names() { + return { + accessKeyId: 'accessKeyId', + accessKeySecret: 'accessKeySecret', + securityToken: 'securityToken', + bearerToken: 'bearerToken', + type: 'type', + providerName: 'providerName', + }; + } + static types() { + return { + accessKeyId: 'string', + accessKeySecret: 'string', + securityToken: 'string', + bearerToken: 'string', + type: 'string', + providerName: 'string', + }; + } + constructor(map) { + super(map); + } +} +exports.default = CredentialModel; +//# sourceMappingURL=credential_model.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/credential_model.js.map b/backend/node_modules/@alicloud/credentials/dist/src/credential_model.js.map new file mode 100644 index 0000000..fee95c2 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/credential_model.js.map @@ -0,0 +1 @@ +{"version":3,"file":"credential_model.js","sourceRoot":"","sources":["../../src/credential_model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAAiD;AAEjD,MAAqB,eAAgB,SAAQ,IAAI,CAAC,KAAK;IAOrD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;YAC1B,eAAe,EAAE,iBAAiB;YAClC,aAAa,EAAE,eAAe;YAC9B,WAAW,EAAE,aAAa;YAC1B,IAAI,EAAE,MAAM;YACZ,YAAY,EAAE,cAAc;SAC7B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,eAAe,EAAE,QAAQ;YACzB,aAAa,EAAE,QAAQ;YACvB,WAAW,EAAE,QAAQ;YACrB,IAAI,EAAE,QAAQ;YACd,YAAY,EAAE,QAAQ;SACvB,CAAC;IACJ,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAhCD,kCAgCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/credentials.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/credentials.d.ts new file mode 100644 index 0000000..ebb14dd --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/credentials.d.ts @@ -0,0 +1,19 @@ +export default class Credentials { + readonly accessKeyId: string; + readonly accessKeySecret: string; + readonly securityToken: string; + readonly providerName: string; + constructor(builder: CredentialsBuilder); + static builder(): CredentialsBuilder; +} +export declare class CredentialsBuilder { + accessKeyId: string; + accessKeySecret: string; + securityToken: string; + providerName: string; + withAccessKeyId(value: string): this; + withAccessKeySecret(value: string): this; + withSecurityToken(value: string): this; + withProviderName(value: string): this; + build(): Credentials; +} diff --git a/backend/node_modules/@alicloud/credentials/dist/src/credentials.js b/backend/node_modules/@alicloud/credentials/dist/src/credentials.js new file mode 100644 index 0000000..f759a10 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/credentials.js @@ -0,0 +1,38 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CredentialsBuilder = void 0; +class Credentials { + constructor(builder) { + this.accessKeyId = builder.accessKeyId; + this.accessKeySecret = builder.accessKeySecret; + this.securityToken = builder.securityToken; + this.providerName = builder.providerName; + } + static builder() { + return new CredentialsBuilder(); + } +} +exports.default = Credentials; +class CredentialsBuilder { + withAccessKeyId(value) { + this.accessKeyId = value; + return this; + } + withAccessKeySecret(value) { + this.accessKeySecret = value; + return this; + } + withSecurityToken(value) { + this.securityToken = value; + return this; + } + withProviderName(value) { + this.providerName = value; + return this; + } + build() { + return new Credentials(this); + } +} +exports.CredentialsBuilder = CredentialsBuilder; +//# sourceMappingURL=credentials.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/credentials.js.map b/backend/node_modules/@alicloud/credentials/dist/src/credentials.js.map new file mode 100644 index 0000000..b80e7cd --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/credentials.js.map @@ -0,0 +1 @@ +{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../../src/credentials.ts"],"names":[],"mappings":";;;AAAA,MAAqB,WAAW;IAM9B,YAAY,OAA4B;QACtC,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;QACvC,IAAI,CAAC,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC;QAC/C,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;QAC3C,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAC3C,CAAC;IAED,MAAM,CAAC,OAAO;QACZ,OAAO,IAAI,kBAAkB,EAAE,CAAC;IAClC,CAAC;CACF;AAhBD,8BAgBC;AAED,MAAa,kBAAkB;IAMtB,eAAe,CAAC,KAAa;QAClC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,mBAAmB,CAAC,KAAa;QACtC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QAC7B,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,iBAAiB,CAAC,KAAa;QACpC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC3B,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,gBAAgB,CAAC,KAAa;QACnC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC1B,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,KAAK;QACV,OAAO,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;CACF;AA7BD,gDA6BC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/credentials_provider.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/credentials_provider.d.ts new file mode 100644 index 0000000..a496c16 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/credentials_provider.d.ts @@ -0,0 +1,5 @@ +import Credentials from './credentials'; +export default interface CredentialsProvider { + getCredentials: () => Promise; + getProviderName: () => string; +} diff --git a/backend/node_modules/@alicloud/credentials/dist/src/credentials_provider.js b/backend/node_modules/@alicloud/credentials/dist/src/credentials_provider.js new file mode 100644 index 0000000..68f081b --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/credentials_provider.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=credentials_provider.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/credentials_provider.js.map b/backend/node_modules/@alicloud/credentials/dist/src/credentials_provider.js.map new file mode 100644 index 0000000..e3b0f46 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/credentials_provider.js.map @@ -0,0 +1 @@ +{"version":3,"file":"credentials_provider.js","sourceRoot":"","sources":["../../src/credentials_provider.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/default_credential.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/default_credential.d.ts new file mode 100644 index 0000000..4be3860 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/default_credential.d.ts @@ -0,0 +1,17 @@ +import Config from './config'; +import CredentialModel from './credential_model'; +import ICredential from './icredential'; +export default class DefaultCredential implements ICredential { + accessKeyId: string; + accessKeySecret: string; + securityToken?: string; + bearerToken?: string; + type: string; + constructor(config: Config); + getAccessKeyId(): Promise; + getAccessKeySecret(): Promise; + getSecurityToken(): Promise; + getBearerToken(): string; + getType(): string; + getCredential(): Promise; +} diff --git a/backend/node_modules/@alicloud/credentials/dist/src/default_credential.js b/backend/node_modules/@alicloud/credentials/dist/src/default_credential.js new file mode 100644 index 0000000..05448c6 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/default_credential.js @@ -0,0 +1,41 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const credential_model_1 = __importDefault(require("./credential_model")); +class DefaultCredential { + constructor(config) { + this.accessKeyId = config.accessKeyId || ''; + this.accessKeySecret = config.accessKeySecret || ''; + this.securityToken = config.securityToken || ''; + this.bearerToken = config.bearerToken || ''; + this.type = config.type || ''; + } + async getAccessKeyId() { + return this.accessKeyId; + } + async getAccessKeySecret() { + return this.accessKeySecret; + } + async getSecurityToken() { + return this.securityToken; + } + getBearerToken() { + return this.bearerToken; + } + getType() { + return this.type; + } + async getCredential() { + return new credential_model_1.default({ + accessKeyId: this.accessKeyId, + accessKeySecret: this.accessKeySecret, + securityToken: this.securityToken, + bearerToken: this.bearerToken, + type: this.type, + }); + } +} +exports.default = DefaultCredential; +//# sourceMappingURL=default_credential.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/default_credential.js.map b/backend/node_modules/@alicloud/credentials/dist/src/default_credential.js.map new file mode 100644 index 0000000..93eefec --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/default_credential.js.map @@ -0,0 +1 @@ +{"version":3,"file":"default_credential.js","sourceRoot":"","sources":["../../src/default_credential.ts"],"names":[],"mappings":";;;;;AACA,0EAAiD;AAGjD,MAAqB,iBAAiB;IAOpC,YAAY,MAAc;QACxB,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,IAAI,EAAE,CAAC;QAC5C,IAAI,CAAC,eAAe,GAAG,MAAM,CAAC,eAAe,IAAI,EAAE,CAAC;QACpD,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC,aAAa,IAAI,EAAE,CAAC;QAChD,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,IAAI,EAAE,CAAC;QAC5C,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC;IAChC,CAAC;IAED,KAAK,CAAC,cAAc;QAClB,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IAED,KAAK,CAAC,kBAAkB;QACtB,OAAO,IAAI,CAAC,eAAe,CAAC;IAC9B,CAAC;IAED,KAAK,CAAC,gBAAgB;QACpB,OAAO,IAAI,CAAC,aAAa,CAAC;IAC5B,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IAED,OAAO;QACL,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,aAAa;QACjB,OAAO,IAAI,0BAAe,CAAC;YACzB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAC,CAAC;IACL,CAAC;CACF;AA5CD,oCA4CC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/ecs_ram_role_credential.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/ecs_ram_role_credential.d.ts new file mode 100644 index 0000000..498d3c1 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/ecs_ram_role_credential.d.ts @@ -0,0 +1,24 @@ +import SessionCredential from './session_credential'; +import ICredential from './icredential'; +export default class EcsRamRoleCredential extends SessionCredential implements ICredential { + roleName: string; + enableIMDSv2: boolean; + metadataTokenDuration?: number; + runtime: { + [key: string]: any; + }; + metadataToken?: string; + staleTime?: number; + readTimeout?: number; + connectTimeout?: number; + constructor(roleName?: string, runtime?: { + [key: string]: any; + }, enableIMDSv2?: boolean, metadataTokenDuration?: number); + getBody(url: string, options?: { + [key: string]: any; + }): Promise; + getMetadataToken(): Promise; + updateCredential(): Promise; + getRoleName(): Promise; + needToRefresh(): boolean; +} diff --git a/backend/node_modules/@alicloud/credentials/dist/src/ecs_ram_role_credential.js b/backend/node_modules/@alicloud/credentials/dist/src/ecs_ram_role_credential.js new file mode 100644 index 0000000..1f0fc57 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/ecs_ram_role_credential.js @@ -0,0 +1,80 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const session_credential_1 = __importDefault(require("./session_credential")); +const httpx_1 = __importDefault(require("httpx")); +const config_1 = __importDefault(require("./config")); +const SECURITY_CRED_URL = 'http://100.100.100.200/latest/meta-data/ram/security-credentials/'; +const SECURITY_CRED_TOKEN_URL = 'http://100.100.100.200/latest/api/token'; +class EcsRamRoleCredential extends session_credential_1.default { + constructor(roleName = '', runtime = {}, enableIMDSv2 = false, metadataTokenDuration = 21600) { + const conf = new config_1.default({ + type: 'ecs_ram_role', + }); + super(conf); + this.roleName = roleName; + this.enableIMDSv2 = enableIMDSv2; + this.metadataTokenDuration = metadataTokenDuration; + this.runtime = runtime; + this.sessionCredential = null; + this.metadataToken = null; + this.staleTime = 0; + } + async getBody(url, options = {}) { + const response = await httpx_1.default.request(url, options); + return (await httpx_1.default.read(response, 'utf8')); + } + async getMetadataToken() { + if (this.needToRefresh()) { + let tmpTime = new Date().getTime() + this.metadataTokenDuration * 1000; + const response = await httpx_1.default.request(SECURITY_CRED_TOKEN_URL, { + headers: { + 'X-aliyun-ecs-metadata-token-ttl-seconds': `${this.metadataTokenDuration}` + }, + method: "PUT" + }); + if (response.statusCode !== 200) { + throw new Error(`Failed to get token from ECS Metadata Service. HttpCode=${response.statusCode}`); + } + this.staleTime = tmpTime; + return (await httpx_1.default.read(response, 'utf8')); + } + return this.metadataToken; + } + async updateCredential() { + let options = {}; + if (this.enableIMDSv2) { + this.metadataToken = await this.getMetadataToken(); + options = { + headers: { + 'X-aliyun-ecs-metadata-token': this.metadataToken + }, + readTimeout: this.readTimeout, + connectTimeout: this.connectTimeout + }; + } + const roleName = await this.getRoleName(); + const url = SECURITY_CRED_URL + roleName; + const body = await this.getBody(url, options); + const json = JSON.parse(body); + this.sessionCredential = { + AccessKeyId: json.AccessKeyId, + AccessKeySecret: json.AccessKeySecret, + Expiration: json.Expiration, + SecurityToken: json.SecurityToken, + }; + } + async getRoleName() { + if (this.roleName && this.roleName.length) { + return this.roleName; + } + return await this.getBody(SECURITY_CRED_URL); + } + needToRefresh() { + return new Date().getTime() >= this.staleTime; + } +} +exports.default = EcsRamRoleCredential; +//# sourceMappingURL=ecs_ram_role_credential.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/ecs_ram_role_credential.js.map b/backend/node_modules/@alicloud/credentials/dist/src/ecs_ram_role_credential.js.map new file mode 100644 index 0000000..2f51884 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/ecs_ram_role_credential.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ecs_ram_role_credential.js","sourceRoot":"","sources":["../../src/ecs_ram_role_credential.ts"],"names":[],"mappings":";;;;;AAAA,8EAAqD;AACrD,kDAA0B;AAE1B,sDAA8B;AAE9B,MAAM,iBAAiB,GAAG,mEAAmE,CAAC;AAC9F,MAAM,uBAAuB,GAAG,yCAAyC,CAAC;AAE1E,MAAqB,oBAAqB,SAAQ,4BAAiB;IAUjE,YAAY,WAAmB,EAAE,EAAE,UAAkC,EAAE,EAAE,eAAwB,KAAK,EAAE,wBAAgC,KAAK;QAC3I,MAAM,IAAI,GAAG,IAAI,gBAAM,CAAC;YACtB,IAAI,EAAE,cAAc;SACrB,CAAC,CAAC;QACH,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;QACnD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC;QAC9B,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;QAC1B,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;IACrB,CAAC;IAED,KAAK,CAAC,OAAO,CA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D,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC;QAC1C,MAAM,GAAG,GAAG,iBAAiB,GAAG,QAAQ,CAAC;QACzC,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;QAC9C,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC9B,IAAI,CAAC,iBAAiB,GAAG;YACvB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,aAAa,EAAE,IAAI,CAAC,aAAa;SAClC,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,WAAW;QACf,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE;YACzC,OAAO,IAAI,CAAC,QAAQ,CAAC;SACtB;QAED,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC/C,CAAC;IAED,aAAa;QACX,OAAO,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,IAAI,IAAI,CAAC,SAAS,CAAC;IAChD,CAAC;CACF;AAlFD,uCAkFC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/icredential.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/icredential.d.ts new file mode 100644 index 0000000..2decbc1 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/icredential.d.ts @@ -0,0 +1,9 @@ +import CredentialModel from './credential_model'; +export default interface ICredential { + getAccessKeyId: () => Promise; + getAccessKeySecret: () => Promise; + getSecurityToken: () => Promise; + getBearerToken: () => string; + getType: () => string; + getCredential: () => Promise; +} diff --git a/backend/node_modules/@alicloud/credentials/dist/src/icredential.js b/backend/node_modules/@alicloud/credentials/dist/src/icredential.js new file mode 100644 index 0000000..35c0c50 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/icredential.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=icredential.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/icredential.js.map b/backend/node_modules/@alicloud/credentials/dist/src/icredential.js.map new file mode 100644 index 0000000..22cb5b8 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/icredential.js.map @@ -0,0 +1 @@ +{"version":3,"file":"icredential.js","sourceRoot":"","sources":["../../src/icredential.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/oidc_role_arn_credential.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/oidc_role_arn_credential.d.ts new file mode 100644 index 0000000..a0683ba --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/oidc_role_arn_credential.d.ts @@ -0,0 +1,19 @@ +import SessionCredential from './session_credential'; +import Config from './config'; +export default class OidcRoleArnCredential extends SessionCredential { + roleArn: string; + oidcProviderArn: string; + oidcTokenFilePath: string; + policy: string; + durationSeconds: number; + roleSessionName: string; + runtime: { + [key: string]: any; + }; + host: string; + constructor(config: Config, runtime?: { + [key: string]: any; + }); + private getOdicToken; + updateCredential(): Promise; +} diff --git a/backend/node_modules/@alicloud/credentials/dist/src/oidc_role_arn_credential.js b/backend/node_modules/@alicloud/credentials/dist/src/oidc_role_arn_credential.js new file mode 100644 index 0000000..05e68dd --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/oidc_role_arn_credential.js @@ -0,0 +1,79 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const session_credential_1 = __importDefault(require("./session_credential")); +const http_1 = require("./util/http"); +const config_1 = __importDefault(require("./config")); +const fs_1 = __importDefault(require("fs")); +class OidcRoleArnCredential extends session_credential_1.default { + constructor(config, runtime = {}) { + if (!config.roleArn) { + config.roleArn = process.env.ALIBABA_CLOUD_ROLE_ARN; + if (!config.roleArn) { + throw new Error('roleArn does not exist and env ALIBABA_CLOUD_ROLE_ARN is null.'); + } + } + if (!config.oidcProviderArn) { + config.oidcProviderArn = process.env.ALIBABA_CLOUD_OIDC_PROVIDER_ARN; + if (!config.oidcProviderArn) { + throw new Error('oidcProviderArn does not exist and env ALIBABA_CLOUD_OIDC_PROVIDER_ARN is null.'); + } + } + if (!config.oidcTokenFilePath) { + config.oidcTokenFilePath = process.env.ALIBABA_CLOUD_OIDC_TOKEN_FILE; + if (!config.oidcTokenFilePath) { + throw new Error('oidcTokenFilePath is not exists and env ALIBABA_CLOUD_OIDC_TOKEN_FILE is null.'); + } + } + if (!config.roleSessionName && process.env.ALIBABA_CLOUD_ROLE_SESSION_NAME) { + config.roleSessionName = process.env.ALIBABA_CLOUD_ROLE_SESSION_NAME; + } + const conf = new config_1.default({ + type: 'oidc_role_arn' + }); + super(conf); + this.oidcTokenFilePath = config.oidcTokenFilePath; + this.roleArn = config.roleArn; + this.policy = config.policy; + this.oidcProviderArn = config.oidcProviderArn; + this.durationSeconds = config.roleSessionExpiration || 3600; + this.roleSessionName = config.roleSessionName || 'role_session_name'; + runtime.method = 'POST'; + runtime.anonymous = true; + this.runtime = runtime; + this.host = 'https://sts.aliyuncs.com'; + } + getOdicToken(oidcTokenFilePath) { + if (!fs_1.default.existsSync(oidcTokenFilePath)) { + throw new Error(`oidcTokenFilePath ${oidcTokenFilePath} is not exists.`); + } + let oidcToken = null; + try { + oidcToken = fs_1.default.readFileSync(oidcTokenFilePath, 'utf-8'); + } + catch (err) { + throw new Error(`oidcTokenFilePath ${oidcTokenFilePath} cannot be read.`); + } + return oidcToken; + } + async updateCredential() { + const oidcToken = this.getOdicToken(this.oidcTokenFilePath); + const params = { + Action: 'AssumeRoleWithOIDC', + RoleArn: this.roleArn, + OIDCProviderArn: this.oidcProviderArn, + OIDCToken: oidcToken, + DurationSeconds: this.durationSeconds, + RoleSessionName: this.roleSessionName + }; + if (this.policy) { + params.policy = this.policy; + } + const json = await (0, http_1.request)(this.host, params, this.runtime); + this.sessionCredential = json.Credentials; + } +} +exports.default = OidcRoleArnCredential; +//# sourceMappingURL=oidc_role_arn_credential.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/oidc_role_arn_credential.js.map b/backend/node_modules/@alicloud/credentials/dist/src/oidc_role_arn_credential.js.map new file mode 100644 index 0000000..5d0fd3a --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/oidc_role_arn_credential.js.map @@ -0,0 +1 @@ +{"version":3,"file":"oidc_role_arn_credential.js","sourceRoot":"","sources":["../../src/oidc_role_arn_credential.ts"],"names":[],"mappings":";;;;;AAAA,8EAAqD;AACrD,sCAAsC;AACtC,sDAA8B;AAC9B,4CAAoB;AAEpB,MAAqB,qBAAsB,SAAQ,4BAAiB;IAUlE,YAAY,MAAc,EAAE,UAAkC,EAAE;QAC9D,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE;YACnB,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC;YACpD,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE;gBACnB,MAAM,IAAI,KAAK,CAAC,gEAAgE,CAAC,CAAC;aACnF;SACF;QAED,IAAI,CAAC,MAAM,CAAC,eAAe,EAAE;YAC3B,MAAM,CAAC,eAAe,GAAG,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC;YACrE,IAAI,CAAC,MAAM,CAAC,eAAe,EAAE;gBAC3B,MAAM,IAAI,KAAK,CAAC,iFAAiF,CAAC,CAAC;aACpG;SACF;QAED,IAAI,CAAC,MAAM,CAAC,iBAAiB,EAAE;YAC7B,MAAM,CAAC,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC;YACrE,IAAI,CAAC,MAAM,CAAC,iBAAiB,EAAE;gBAC7B,MAAM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,kBAAkB,CAAC,CAAC;SAC3E;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,gBAAgB;QACpB,MAAM,SAAS,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QAC5D,MAAM,MAAM,GAA2B;YACrC,MAAM,EAAE,oBAAoB;YAC5B,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,SAAS,EAAE,SAAS;YACpB,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,eAAe,EAAE,IAAI,CAAC,eAAe;SACtC,CAAC;QACF,IAAI,IAAI,CAAC,MAAM,EAAE;YACf,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;SAC7B;QACD,MAAM,IAAI,GAAG,MAAM,IAAA,cAAO,EAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5D,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,WAAW,CAAC;IAC5C,CAAC;CACF;AAjFD,wCAiFC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/provider/credentials_uri_provider.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/provider/credentials_uri_provider.d.ts new file mode 100644 index 0000000..27b0385 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/provider/credentials_uri_provider.d.ts @@ -0,0 +1,5 @@ +import ICredential from '../icredential'; +declare const _default: { + getCredential(): ICredential; +}; +export default _default; diff --git a/backend/node_modules/@alicloud/credentials/dist/src/provider/credentials_uri_provider.js b/backend/node_modules/@alicloud/credentials/dist/src/provider/credentials_uri_provider.js new file mode 100644 index 0000000..0ed5402 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/provider/credentials_uri_provider.js @@ -0,0 +1,16 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const uri_credential_1 = __importDefault(require("../uri_credential")); +exports.default = { + getCredential() { + const credentialsURI = process.env.ALIBABA_CLOUD_CREDENTIALS_URI; + if (credentialsURI) { + return new uri_credential_1.default(credentialsURI); + } + return null; + } +}; +//# sourceMappingURL=credentials_uri_provider.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/provider/credentials_uri_provider.js.map b/backend/node_modules/@alicloud/credentials/dist/src/provider/credentials_uri_provider.js.map new file mode 100644 index 0000000..04aaa34 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/provider/credentials_uri_provider.js.map @@ -0,0 +1 @@ +{"version":3,"file":"credentials_uri_provider.js","sourceRoot":"","sources":["../../../src/provider/credentials_uri_provider.ts"],"names":[],"mappings":";;;;;AAAA,uEAA8C;AAG9C,kBAAe;IACb,aAAa;QACX,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC;QACjE,IAAI,cAAc,EAAE;YAClB,OAAO,IAAI,wBAAa,CAAC,cAAc,CAAC,CAAC;SAC1C;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAA"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/provider/environment_variable_credentials_provider.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/provider/environment_variable_credentials_provider.d.ts new file mode 100644 index 0000000..27b0385 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/provider/environment_variable_credentials_provider.d.ts @@ -0,0 +1,5 @@ +import ICredential from '../icredential'; +declare const _default: { + getCredential(): ICredential; +}; +export default _default; diff --git a/backend/node_modules/@alicloud/credentials/dist/src/provider/environment_variable_credentials_provider.js b/backend/node_modules/@alicloud/credentials/dist/src/provider/environment_variable_credentials_provider.js new file mode 100644 index 0000000..f2e993a --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/provider/environment_variable_credentials_provider.js @@ -0,0 +1,23 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const access_key_credential_1 = __importDefault(require("../access_key_credential")); +exports.default = { + getCredential() { + const accessKeyId = process.env.ALIBABA_CLOUD_ACCESS_KEY_ID; + const accessKeySecret = process.env.ALIBABA_CLOUD_ACCESS_KEY_SECRET; + if (accessKeyId === undefined || accessKeySecret === undefined) { + return null; + } + if (accessKeyId === null || accessKeyId === '') { + throw new Error('Environment variable ALIBABA_CLOUD_ACCESS_KEY_ID cannot be empty'); + } + if (accessKeySecret === null || accessKeySecret === '') { + throw new Error('Environment variable ALIBABA_CLOUD_ACCESS_KEY_SECRET cannot be empty'); + } + return new access_key_credential_1.default(accessKeyId, accessKeySecret); + } +}; +//# sourceMappingURL=environment_variable_credentials_provider.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/provider/environment_variable_credentials_provider.js.map b/backend/node_modules/@alicloud/credentials/dist/src/provider/environment_variable_credentials_provider.js.map new file mode 100644 index 0000000..6e0af5d --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/provider/environment_variable_credentials_provider.js.map @@ -0,0 +1 @@ +{"version":3,"file":"environment_variable_credentials_provider.js","sourceRoot":"","sources":["../../../src/provider/environment_variable_credentials_provider.ts"],"names":[],"mappings":";;;;;AACA,qFAA2D;AAG3D,kBAAe;IACb,aAAa;QACX,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC;QAC5D,MAAM,eAAe,GAAG,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC;QAEpE,IAAI,WAAW,KAAK,SAAS,IAAI,eAAe,KAAK,SAAS,EAAE;YAC9D,OAAO,IAAI,CAAC;SACb;QAED,IAAI,WAAW,KAAK,IAAI,IAAI,WAAW,KAAK,EAAE,EAAE;YAC9C,MAAM,IAAI,KAAK,CAAC,kEAAkE,CAAC,CAAC;SACrF;QAED,IAAI,eAAe,KAAK,IAAI,IAAI,eAAe,KAAK,EAAE,EAAE;YACtD,MAAM,IAAI,KAAK,CAAC,sEAAsE,CAAC,CAAC;SACzF;QAED,OAAO,IAAI,+BAAmB,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC;IAC/D,CAAC;CACF,CAAA"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/provider/instance_ram_role_credentials_provider.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/provider/instance_ram_role_credentials_provider.d.ts new file mode 100644 index 0000000..27b0385 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/provider/instance_ram_role_credentials_provider.d.ts @@ -0,0 +1,5 @@ +import ICredential from '../icredential'; +declare const _default: { + getCredential(): ICredential; +}; +export default _default; diff --git a/backend/node_modules/@alicloud/credentials/dist/src/provider/instance_ram_role_credentials_provider.js b/backend/node_modules/@alicloud/credentials/dist/src/provider/instance_ram_role_credentials_provider.js new file mode 100644 index 0000000..a978748 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/provider/instance_ram_role_credentials_provider.js @@ -0,0 +1,17 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const ecs_ram_role_credential_1 = __importDefault(require("../ecs_ram_role_credential")); +exports.default = { + getCredential() { + const roleName = process.env.ALIBABA_CLOUD_ECS_METADATA; + const enableIMDSv2 = process.env.ALIBABA_CLOUD_ECS_IMDSV2_ENABLE; + if (roleName && roleName.length) { + return new ecs_ram_role_credential_1.default(roleName, {}, enableIMDSv2 && enableIMDSv2.toLowerCase() === 'true'); + } + return null; + } +}; +//# sourceMappingURL=instance_ram_role_credentials_provider.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/provider/instance_ram_role_credentials_provider.js.map b/backend/node_modules/@alicloud/credentials/dist/src/provider/instance_ram_role_credentials_provider.js.map new file mode 100644 index 0000000..398d292 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/provider/instance_ram_role_credentials_provider.js.map @@ -0,0 +1 @@ +{"version":3,"file":"instance_ram_role_credentials_provider.js","sourceRoot":"","sources":["../../../src/provider/instance_ram_role_credentials_provider.ts"],"names":[],"mappings":";;;;;AAIA,yFAA8D;AAE9D,kBAAe;IACb,aAAa;QACX,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC;QACxD,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC;QACjE,IAAI,QAAQ,IAAI,QAAQ,CAAC,MAAM,EAAE;YAC/B,OAAO,IAAI,iCAAoB,CAAC,QAAQ,EAAE,EAAE,EAAE,YAAY,IAAI,YAAY,CAAC,WAAW,EAAE,KAAK,MAAM,CAAC,CAAC;SACtG;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAA"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/provider/oidc_role_arn_credentials_provider.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/provider/oidc_role_arn_credentials_provider.d.ts new file mode 100644 index 0000000..27b0385 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/provider/oidc_role_arn_credentials_provider.d.ts @@ -0,0 +1,5 @@ +import ICredential from '../icredential'; +declare const _default: { + getCredential(): ICredential; +}; +export default _default; diff --git a/backend/node_modules/@alicloud/credentials/dist/src/provider/oidc_role_arn_credentials_provider.js b/backend/node_modules/@alicloud/credentials/dist/src/provider/oidc_role_arn_credentials_provider.js new file mode 100644 index 0000000..523647d --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/provider/oidc_role_arn_credentials_provider.js @@ -0,0 +1,18 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const oidc_role_arn_credential_1 = __importDefault(require("../oidc_role_arn_credential")); +const config_1 = __importDefault(require("../config")); +exports.default = { + getCredential() { + if (process.env.ALIBABA_CLOUD_ROLE_ARN + && process.env.ALIBABA_CLOUD_OIDC_PROVIDER_ARN + && process.env.ALIBABA_CLOUD_OIDC_TOKEN_FILE) { + return new oidc_role_arn_credential_1.default(new config_1.default({})); + } + return null; + } +}; +//# sourceMappingURL=oidc_role_arn_credentials_provider.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/provider/oidc_role_arn_credentials_provider.js.map b/backend/node_modules/@alicloud/credentials/dist/src/provider/oidc_role_arn_credentials_provider.js.map new file mode 100644 index 0000000..dac29b7 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/provider/oidc_role_arn_credentials_provider.js.map @@ -0,0 +1 @@ +{"version":3,"file":"oidc_role_arn_credentials_provider.js","sourceRoot":"","sources":["../../../src/provider/oidc_role_arn_credentials_provider.ts"],"names":[],"mappings":";;;;;AAIA,2FAAgE;AAChE,uDAA+B;AAE/B,kBAAe;IACb,aAAa;QACX,IAAI,OAAO,CAAC,GAAG,CAAC,sBAAsB;eACjC,OAAO,CAAC,GAAG,CAAC,+BAA+B;eAC3C,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE;YAC9C,OAAO,IAAI,kCAAqB,CAAC,IAAI,gBAAM,CAAC,EAAE,CAAC,CAAC,CAAC;SAClD;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAA"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/provider/profile_credentials_provider.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/provider/profile_credentials_provider.d.ts new file mode 100644 index 0000000..6942593 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/provider/profile_credentials_provider.d.ts @@ -0,0 +1,5 @@ +import ICredential from '../icredential'; +declare const _default: { + getCredential(credentialName?: string): ICredential; +}; +export default _default; diff --git a/backend/node_modules/@alicloud/credentials/dist/src/provider/profile_credentials_provider.js b/backend/node_modules/@alicloud/credentials/dist/src/provider/profile_credentials_provider.js new file mode 100644 index 0000000..3ea8a0b --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/provider/profile_credentials_provider.js @@ -0,0 +1,100 @@ +"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 (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const access_key_credential_1 = __importDefault(require("../access_key_credential")); +const sts_token_credential_1 = __importDefault(require("../sts_token_credential")); +const ecs_ram_role_credential_1 = __importDefault(require("../ecs_ram_role_credential")); +const ram_role_arn_credential_1 = __importDefault(require("../ram_role_arn_credential")); +const oidc_role_arn_credential_1 = __importDefault(require("../oidc_role_arn_credential")); +const rsa_key_pair_credential_1 = __importDefault(require("../rsa_key_pair_credential")); +const bearer_token_credential_1 = __importDefault(require("../bearer_token_credential")); +const utils = __importStar(require("../util/utils")); +const fs_1 = __importDefault(require("fs")); +const config_1 = __importDefault(require("../config")); +const DEFAULT_PATH = process.env.HOME + '/.alibabacloud/credentials'; +exports.default = { + getCredential(credentialName = 'default') { + let fileContent = null; + const credentialFile = process.env.ALIBABA_CLOUD_CREDENTIALS_FILE; + if (credentialFile === undefined) { + if (fs_1.default.existsSync(DEFAULT_PATH)) { + const content = utils.parseFile(DEFAULT_PATH, true); + if (content) { + fileContent = content; + } + } + } + else { + if (credentialFile === null || credentialFile === '') { + throw new Error('Environment variable credentialFile cannot be empty'); + } + if (!fs_1.default.existsSync(credentialFile)) { + throw new Error(`credentialFile ${credentialFile} cannot be empty`); + } + fileContent = utils.parseFile(credentialFile); + } + if (!fileContent) { + return null; + } + const config = fileContent[credentialName] || {}; + if (!config.type) { + throw new Error('Missing required type option in credentialFile'); + } + switch (config.type) { + case 'access_key': + return new access_key_credential_1.default(config.access_key_id, config.access_key_secret); + case 'sts': + return new sts_token_credential_1.default(config.access_key_id, config.access_key_secret, config.security_token); + case 'ecs_ram_role': + return new ecs_ram_role_credential_1.default(config.role_name); + case 'ram_role_arn': { + const conf = new config_1.default({ + roleArn: config.role_arn, + accessKeyId: config.access_key_id, + accessKeySecret: config.access_key_secret + }); + return new ram_role_arn_credential_1.default(conf); + } + case 'oidc_role_arn': { + const conf = new config_1.default({ + roleArn: config.role_arn, + oidcProviderArn: config.oidc_provider_arn, + oidcTokenFilePath: config.oidc_token_file_path + }); + return new oidc_role_arn_credential_1.default(conf); + } + case 'rsa_key_pair': + return new rsa_key_pair_credential_1.default(config.public_key_id, config.private_key_file); + case 'bearer': + return new bearer_token_credential_1.default(config.bearer_token); + default: + throw new Error('Invalid type option, support: access_key, sts, ecs_ram_role, ram_role_arn, oidc_role_arn, rsa_key_pair, bearer'); + } + } +}; +//# sourceMappingURL=profile_credentials_provider.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/provider/profile_credentials_provider.js.map b/backend/node_modules/@alicloud/credentials/dist/src/provider/profile_credentials_provider.js.map new file mode 100644 index 0000000..d302cbd --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/provider/profile_credentials_provider.js.map @@ -0,0 +1 @@ +{"version":3,"file":"profile_credentials_provider.js","sourceRoot":"","sources":["../../../src/provider/profile_credentials_provider.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qFAA2D;AAC3D,mFAAyD;AACzD,yFAA8D;AAC9D,yFAA8D;AAC9D,2FAAgE;AAChE,yFAA8D;AAC9D,yFAA+D;AAE/D,qDAAuC;AACvC,4CAAoB;AAEpB,uDAA+B;AAE/B,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,4BAA4B,CAAC;AAErE,kBAAe;IACb,aAAa,CAAC,iBAAyB,SAAS;QAC9C,IAAI,WAAW,GAAG,IAAI,CAAC;QACvB,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC;QAClE,IAAI,cAAc,KAAK,SAAS,EAAE;YAChC,IAAI,YAAE,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE;gBAC/B,MAAM,OAAO,GAAG,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;gBACpD,IAAI,OAAO,EAAE;oBACX,WAAW,GAAG,OAAO,CAAC;iBACvB;aACF;SACF;aAAM;YACL,IAAI,cAAc,KAAK,IAAI,IAAI,cAAc,KAAK,EAAE,EAAE;gBACpD,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAC;aACxE;YACD,IAAI,CAAC,YAAE,CAAC,UAAU,CAAC,cAAc,CAAC,EAAE;gBAClC,MAAM,IAAI,KAAK,CAAC,kBAAkB,cAAc,kBAAkB,CAAC,CAAC;aACrE;YACD,WAAW,GAAG,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;SAC/C;QAED,IAAI,CAAC,WAAW,EAAE;YAChB,OAAO,IAAI,CAAC;SACb;QAED,MAAM,MAAM,GAAG,WAAW,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC;QACjD,IAAI,CAAC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CAAC;CACF,CAAA"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/provider/provider_chain.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/provider/provider_chain.d.ts new file mode 100644 index 0000000..39ed217 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/provider/provider_chain.d.ts @@ -0,0 +1,6 @@ +import ICredential from '../icredential'; +type IProvider = { + getCredential: () => ICredential; +}; +export declare function getCredentials(providers?: IProvider[]): ICredential; +export {}; diff --git a/backend/node_modules/@alicloud/credentials/dist/src/provider/provider_chain.js b/backend/node_modules/@alicloud/credentials/dist/src/provider/provider_chain.js new file mode 100644 index 0000000..d3ebe85 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/provider/provider_chain.js @@ -0,0 +1,30 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getCredentials = void 0; +const environment_variable_credentials_provider_1 = __importDefault(require("./environment_variable_credentials_provider")); +const profile_credentials_provider_1 = __importDefault(require("./profile_credentials_provider")); +const instance_ram_role_credentials_provider_1 = __importDefault(require("./instance_ram_role_credentials_provider")); +const credentials_uri_provider_1 = __importDefault(require("./credentials_uri_provider")); +const oidc_role_arn_credentials_provider_1 = __importDefault(require("./oidc_role_arn_credentials_provider")); +const defaultProviders = [ + environment_variable_credentials_provider_1.default, + oidc_role_arn_credentials_provider_1.default, + profile_credentials_provider_1.default, + instance_ram_role_credentials_provider_1.default, + credentials_uri_provider_1.default +]; +function getCredentials(providers = null) { + const providerChain = providers || defaultProviders; + for (const provider of providerChain) { + const credential = provider.getCredential(); + if (credential) { + return credential; + } + } + throw new Error('Not found credentials'); +} +exports.getCredentials = getCredentials; +//# sourceMappingURL=provider_chain.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/provider/provider_chain.js.map b/backend/node_modules/@alicloud/credentials/dist/src/provider/provider_chain.js.map new file mode 100644 index 0000000..42f9555 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/provider/provider_chain.js.map @@ -0,0 +1 @@ +{"version":3,"file":"provider_chain.js","sourceRoot":"","sources":["../../../src/provider/provider_chain.ts"],"names":[],"mappings":";;;;;;AAAA,4HAAiG;AACjG,kGAAwE;AACxE,sHAA0F;AAC1F,0FAAgE;AAChE,8GAAkF;AAQlF,MAAM,gBAAgB,GAAiB;IACrC,mDAAsC;IACtC,4CAA8B;IAC9B,sCAA0B;IAC1B,gDAAkC;IAClC,kCAAsB;CACvB,CAAC;AAEF,SAAgB,cAAc,CAAC,YAAyB,IAAI;IAC1D,MAAM,aAAa,GAAG,SAAS,IAAI,gBAAgB,CAAC;IACpD,KAAK,MAAM,QAAQ,IAAI,aAAa,EAAE;QACpC,MAAM,UAAU,GAAG,QAAQ,CAAC,aAAa,EAAE,CAAC;QAC5C,IAAI,UAAU,EAAE;YACd,OAAO,UAAU,CAAC;SACnB;KACF;IAED,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;AAC3C,CAAC;AAVD,wCAUC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/cli_profile.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/providers/cli_profile.d.ts new file mode 100644 index 0000000..97627e1 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/cli_profile.d.ts @@ -0,0 +1,43 @@ +import Credentials from '../credentials'; +import CredentialsProvider from '../credentials_provider'; +declare class CLIProfileCredentialsProviderBuilder { + profileName: string; + build(): CLIProfileCredentialsProvider; + withProfileName(profileName: string): this; +} +interface Profile { + name: string; + mode: string; + access_key_id: string; + access_key_secret: string; + sts_token: string; + region_id: string; + ram_role_arn: string; + ram_session_name: string; + expired_seconds: number; + sts_region: string; + source_profile: string; + ram_role_name: string; + oidc_token_file: string; + oidc_provider_arn: string; + sts_endpoint: string; + enable_vpc: boolean; + duration_seconds: number; +} +declare class Configuration { + current: string; + profiles: Profile[]; +} +export declare function getConfiguration(cfgPath: string): Promise; +export declare function getProfile(conf: Configuration, profileName: string): Profile; +export default class CLIProfileCredentialsProvider implements CredentialsProvider { + static builder(): CLIProfileCredentialsProviderBuilder; + private readonly profileName; + private innerProvider; + private homedir; + constructor(builder: CLIProfileCredentialsProviderBuilder); + private getCredentialsProvider; + getCredentials(): Promise; + getProviderName(): string; +} +export {}; diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/cli_profile.js b/backend/node_modules/@alicloud/credentials/dist/src/providers/cli_profile.js new file mode 100644 index 0000000..bdef0db --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/cli_profile.js @@ -0,0 +1,157 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getProfile = exports.getConfiguration = void 0; +const fs_1 = require("fs"); +const util_1 = require("util"); +const path_1 = __importDefault(require("path")); +const os_1 = __importDefault(require("os")); +const credentials_1 = __importDefault(require("../credentials")); +const static_ak_1 = __importDefault(require("./static_ak")); +const static_sts_1 = __importDefault(require("./static_sts")); +const ram_role_arn_1 = __importDefault(require("./ram_role_arn")); +const oidc_role_arn_1 = __importDefault(require("./oidc_role_arn")); +const ecs_ram_role_1 = __importDefault(require("./ecs_ram_role")); +const readFileAsync = (0, util_1.promisify)(fs_1.readFile); +class CLIProfileCredentialsProviderBuilder { + build() { + // 优先级: + // 1. 使用显示指定的 profileName + // 2. 使用环境变量(ALIBABA_CLOUD_PROFILE)制定的 profileName + // 3. 使用 CLI 配置中的当前 profileName + if (!this.profileName) { + this.profileName = process.env.ALIBABA_CLOUD_PROFILE; + } + if (process.env.ALIBABA_CLOUD_CLI_PROFILE_DISABLED && process.env.ALIBABA_CLOUD_CLI_PROFILE_DISABLED.toLowerCase() === 'true') { + throw new Error('the CLI profile is disabled'); + } + return new CLIProfileCredentialsProvider(this); + } + withProfileName(profileName) { + this.profileName = profileName; + return this; + } +} +class Configuration { +} +async function getConfiguration(cfgPath) { + let content; + try { + content = await readFileAsync(cfgPath, 'utf8'); + } + catch (ex) { + throw new Error(`reading aliyun cli config from '${cfgPath}' failed.`); + } + let conf; + try { + conf = JSON.parse(content); + } + catch (ex) { + throw new Error(`parse aliyun cli config from '${cfgPath}' failed: ${content}`); + } + if (!conf || !conf.profiles || conf.profiles.length === 0) { + throw new Error(`no any configured profiles in '${cfgPath}'`); + } + return conf; +} +exports.getConfiguration = getConfiguration; +function getProfile(conf, profileName) { + for (const p of conf.profiles) { + if (p.name === profileName) { + return p; + } + } + throw new Error(`unable to get profile with '${profileName}'`); +} +exports.getProfile = getProfile; +class CLIProfileCredentialsProvider { + static builder() { + return new CLIProfileCredentialsProviderBuilder(); + } + constructor(builder) { + // used for mock + this.homedir = os_1.default.homedir(); + this.profileName = builder.profileName; + } + getCredentialsProvider(conf, profileName) { + const p = getProfile(conf, profileName); + switch (p.mode) { + case 'AK': + return static_ak_1.default.builder() + .withAccessKeyId(p.access_key_id) + .withAccessKeySecret(p.access_key_secret) + .build(); + case 'StsToken': + return static_sts_1.default.builder() + .withAccessKeyId(p.access_key_id) + .withAccessKeySecret(p.access_key_secret) + .withSecurityToken(p.sts_token) + .build(); + case 'RamRoleArn': { + const previousProvider = static_ak_1.default.builder() + .withAccessKeyId(p.access_key_id) + .withAccessKeySecret(p.access_key_secret) + .build(); + return ram_role_arn_1.default.builder() + .withCredentialsProvider(previousProvider) + .withRoleArn(p.ram_role_arn) + .withRoleSessionName(p.ram_session_name) + .withDurationSeconds(p.expired_seconds) + .withStsRegionId(p.sts_region) + .withStsEndpoint(p.sts_endpoint) + .withEnableVpc(p.enable_vpc) + .build(); + } + case 'EcsRamRole': + return ecs_ram_role_1.default.builder().withRoleName(p.ram_role_name).build(); + case 'OIDC': + return oidc_role_arn_1.default.builder() + .withOIDCTokenFilePath(p.oidc_token_file) + .withOIDCProviderArn(p.oidc_provider_arn) + .withRoleArn(p.ram_role_arn) + .withStsRegionId(p.sts_region) + .withDurationSeconds(p.expired_seconds) + .withRoleSessionName(p.ram_session_name) + .withDurationSeconds(p.duration_seconds) + .withEnableVpc(p.enable_vpc) + .build(); + case 'ChainableRamRoleArn': { + const previousProvider = this.getCredentialsProvider(conf, p.source_profile); + return ram_role_arn_1.default.builder() + .withCredentialsProvider(previousProvider) + .withRoleArn(p.ram_role_arn) + .withRoleSessionName(p.ram_session_name) + .withDurationSeconds(p.expired_seconds) + .withStsRegionId(p.sts_region) + .build(); + } + default: + throw new Error(`unsupported profile mode '${p.mode}'`); + } + } + async getCredentials() { + if (!this.innerProvider) { + if (!this.homedir) { + throw new Error('cannot found home dir'); + } + const cfgPath = path_1.default.join(this.homedir, '.aliyun/config.json'); + const conf = await getConfiguration(cfgPath); + const profileName = this.profileName || conf.current; + this.innerProvider = this.getCredentialsProvider(conf, profileName); + } + const credentials = await this.innerProvider.getCredentials(); + return credentials_1.default.builder() + .withAccessKeyId(credentials.accessKeyId) + .withAccessKeySecret(credentials.accessKeySecret) + .withSecurityToken(credentials.securityToken) + .withProviderName(`${this.getProviderName()}/${this.innerProvider.getProviderName()}`) + .build(); + } + getProviderName() { + return 'cli_profile'; + } +} +exports.default = CLIProfileCredentialsProvider; +//# sourceMappingURL=cli_profile.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/cli_profile.js.map b/backend/node_modules/@alicloud/credentials/dist/src/providers/cli_profile.js.map new file mode 100644 index 0000000..8ae6213 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/cli_profile.js.map @@ -0,0 +1 @@ +{"version":3,"file":"cli_profile.js","sourceRoot":"","sources":["../../../src/providers/cli_profile.ts"],"names":[],"mappings":";;;;;;AAAA,2BAA8B;AAC9B,+BAAiC;AAEjC,gDAAwB;AACxB,4CAAoB;AACpB,iEAAyC;AAEzC,4DAAsD;AACtD,8DAAwD;AACxD,kEAA2D;AAC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AC;IAED,eAAe;QACb,OAAO,aAAa,CAAC;IACvB,CAAC;CAEF;AAlGD,gDAkGC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/default.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/providers/default.d.ts new file mode 100644 index 0000000..6c6c8fa --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/default.d.ts @@ -0,0 +1,14 @@ +import Credentials from '../credentials'; +import CredentialsProvider from '../credentials_provider'; +export default class DefaultCredentialsProvider implements CredentialsProvider { + private readonly providers; + private lastUsedProvider; + static builder(): DefaultCredentialsProviderBuilder; + constructor(builder: DefaultCredentialsProviderBuilder); + getCredentials(): Promise; + getProviderName(): string; +} +declare class DefaultCredentialsProviderBuilder { + build(): DefaultCredentialsProvider; +} +export {}; diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/default.js b/backend/node_modules/@alicloud/credentials/dist/src/providers/default.js new file mode 100644 index 0000000..86e8d61 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/default.js @@ -0,0 +1,112 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const credentials_1 = __importDefault(require("../credentials")); +const cli_profile_1 = __importDefault(require("./cli_profile")); +const ecs_ram_role_1 = __importDefault(require("./ecs_ram_role")); +const env_1 = __importDefault(require("./env")); +const oidc_role_arn_1 = __importDefault(require("./oidc_role_arn")); +const uri_1 = __importDefault(require("./uri")); +const profile_1 = __importDefault(require("./profile")); +class DefaultCredentialsProvider { + static builder() { + return new DefaultCredentialsProviderBuilder(); + } + constructor(builder) { + this.providers = []; + // Add static ak or sts credentials provider from env + try { + const envProvider = env_1.default.builder().build(); + this.providers.push(envProvider); + } + catch (ex) { + // ignore + } + // oidc check + try { + const oidcProvider = oidc_role_arn_1.default.builder().build(); + this.providers.push(oidcProvider); + } + catch (ex) { + // ignore + } + // cli credentials provider + try { + const cliProfileProvider = cli_profile_1.default.builder().build(); + this.providers.push(cliProfileProvider); + } + catch (ex) { + // ignore + } + // profile credentials provider + try { + const profileProvider = profile_1.default.builder().build(); + this.providers.push(profileProvider); + } + catch (ex) { + // ignore + } + // Add IMDS + try { + const ecsRamRoleProvider = ecs_ram_role_1.default.builder().withRoleName(process.env.ALIBABA_CLOUD_ECS_METADATA).build(); + this.providers.push(ecsRamRoleProvider); + } + catch (ex) { + // ignore + } + // credentials uri + try { + const uriProvider = uri_1.default.builder().withCredentialsURI(process.env.ALIBABA_CLOUD_CREDENTIALS_URI).build(); + this.providers.push(uriProvider); + } + catch (ex) { + // ignore + } + } + async getCredentials() { + if (this.lastUsedProvider) { + const inner = await this.lastUsedProvider.getCredentials(); + return credentials_1.default.builder() + .withAccessKeyId(inner.accessKeyId) + .withAccessKeySecret(inner.accessKeySecret) + .withSecurityToken(inner.securityToken) + .withProviderName(`${this.getProviderName()}/${this.lastUsedProvider.getProviderName()}`) + .build(); + } + const errors = []; + for (const provider of this.providers) { + this.lastUsedProvider = provider; + let inner; + try { + inner = await provider.getCredentials(); + } + catch (ex) { + errors.push(ex); + continue; + } + if (inner) { + return credentials_1.default.builder() + .withAccessKeyId(inner.accessKeyId) + .withAccessKeySecret(inner.accessKeySecret) + .withSecurityToken(inner.securityToken) + .withProviderName(`${this.getProviderName()}/${this.lastUsedProvider.getProviderName()}`) + .build(); + } + } + throw new Error(`unable to get credentials from any of the providers in the chain: ${errors.map((e) => { + return e.message; + }).join(', ')}`); + } + getProviderName() { + return 'default'; + } +} +exports.default = DefaultCredentialsProvider; +class DefaultCredentialsProviderBuilder { + build() { + return new DefaultCredentialsProvider(this); + } +} +//# sourceMappingURL=default.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/default.js.map b/backend/node_modules/@alicloud/credentials/dist/src/providers/default.js.map new file mode 100644 index 0000000..38018b8 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/default.js.map @@ -0,0 +1 @@ +{"version":3,"file":"default.js","sourceRoot":"","sources":["../../../src/providers/default.ts"],"names":[],"mappings":";;;;;AAAA,iEAAyC;AAEzC,gEAA0D;AAC1D,kEAA2D;AAC3D,gDAA2D;AAC3D,oEAA6D;AAC7D,gDAA2C;AAC3C,wDAAmD;AAEnD,MAAqB,0BAA0B;IAG7C,MAAM,CAAC,OAAO;QACZ,OAAO,IAAI,iCAAiC,EAAE,CAAC;IACjD,CAAC;IAED,YAAY,OAA0C;QACpD,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;QACpB,qDAAqD;QACrD,IAAI;YACF,MAAM,WAAW,GAAG,aAAsC,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC;YAC7E,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;SAClC;QAAC,OAAO,EAAE,EAAE;YACX,SAAS;SACV;QAED,aAAa;QACb,IAAI;YACF,MAAM,YAAY,GAAG,uBAA8B,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC;YACtE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;SACnC;QAAC,OAAO,EAAE,EAAE;YACX,SAAS;SACV;QAED,2BAA2B;QAC3B,IAAI;YACF,MAAM,kBAAkB,GAAG,qBAA6B,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC;YAC3E,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;SACzC;QAAC,OAAO,EAAE,EAAE;YACX,SAAS;SACV;QAED,+BAA+B;QAC/B,IAAI;YACF,MAAM,eAAe,GAAG,iBAA0B,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC;YACrE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;SACtC;QAAC,OAAO,EAAE,EAAE;YACX,SAAS;SACV;QAED,WAAW;QACX,IAAI;YACF,MAAM,kBAAk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,EAAE,CAAC,CAAC;gBAChB,SAAS;aACV;YACD,IAAI,KAAK,EAAE;gBACT,OAAO,qBAAW,CAAC,OAAO,EAAE;qBACzB,eAAe,CAAC,KAAK,CAAC,WAAW,CAAC;qBAClC,mBAAmB,CAAC,KAAK,CAAC,eAAe,CAAC;qBAC1C,iBAAiB,CAAC,KAAK,CAAC,aAAa,CAAC;qBACtC,gBAAgB,CAAC,GAAG,IAAI,CAAC,eAAe,EAAE,IAAI,IAAI,CAAC,gBAAgB,CAAC,eAAe,EAAE,EAAE,CAAC;qBACxF,KAAK,EAAE,CAAC;aACZ;SACF;QAED,MAAM,IAAI,KAAK,CAAC,qEAAqE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;YACpG,OAAO,CAAC,CAAC,OAAO,CAAC;QACnB,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACnB,CAAC;IAED,eAAe;QACb,OAAO,SAAS,CAAC;IACnB,CAAC;CACF;AAlGD,6CAkGC;AAED,MAAM,iCAAiC;IACrC,KAAK;QACH,OAAO,IAAI,0BAA0B,CAAC,IAAI,CAAC,CAAC;IAC9C,CAAC;CACF"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/ecs_ram_role.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/providers/ecs_ram_role.d.ts new file mode 100644 index 0000000..9fbfab7 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/ecs_ram_role.d.ts @@ -0,0 +1,35 @@ +/// +import CredentialsProvider from '../credentials_provider'; +import { SessionCredentialProvider } from './session'; +export default class ECSRAMRoleCredentialsProvider extends SessionCredentialProvider implements CredentialsProvider { + private readonly roleName; + private readonly disableIMDSv1; + private checker; + private doRequest; + private readonly readTimeout; + private readonly connectTimeout; + private shouldRefreshCred; + static builder(): ECSRAMRoleCredentialsProviderBuilder; + constructor(builder: ECSRAMRoleCredentialsProviderBuilder); + checkCredentialsUpdateAsynchronously(): NodeJS.Timeout; + close(): void; + private getMetadataToken; + private getRoleName; + private getCredentialsInternal; + getProviderName(): string; +} +declare class ECSRAMRoleCredentialsProviderBuilder { + roleName: string; + disableIMDSv1: boolean; + readTimeout?: number; + connectTimeout?: number; + asyncCredentialUpdateEnabled?: boolean; + constructor(); + withRoleName(roleName: string): ECSRAMRoleCredentialsProviderBuilder; + withDisableIMDSv1(disableIMDSv1: boolean): ECSRAMRoleCredentialsProviderBuilder; + withReadTimeout(readTimeout: number): ECSRAMRoleCredentialsProviderBuilder; + withConnectTimeout(connectTimeout: number): ECSRAMRoleCredentialsProviderBuilder; + withAsyncCredentialUpdateEnabled(asyncCredentialUpdateEnabled: boolean): ECSRAMRoleCredentialsProviderBuilder; + build(): ECSRAMRoleCredentialsProvider; +} +export {}; diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/ecs_ram_role.js b/backend/node_modules/@alicloud/credentials/dist/src/providers/ecs_ram_role.js new file mode 100644 index 0000000..2b181af --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/ecs_ram_role.js @@ -0,0 +1,187 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const http_1 = require("./http"); +const session_1 = require("./session"); +const PREFETCH_TIME = 60 * 60; +const defaultMetadataTokenDuration = 21600; // 6 hours +class ECSRAMRoleCredentialsProvider extends session_1.SessionCredentialProvider { + static builder() { + return new ECSRAMRoleCredentialsProviderBuilder(); + } + constructor(builder) { + super(session_1.STALE_TIME, PREFETCH_TIME); + // for mock + this.doRequest = http_1.doRequest; + this.refresher = this.getCredentialsInternal; + this.roleName = builder.roleName; + this.disableIMDSv1 = builder.disableIMDSv1; + this.readTimeout = builder.readTimeout; + this.connectTimeout = builder.connectTimeout; + this.checker = null; + this.shouldRefreshCred = false; + if (builder.asyncCredentialUpdateEnabled) { + this.checker = this.checkCredentialsUpdateAsynchronously(); + } + } + checkCredentialsUpdateAsynchronously() { + return setTimeout(async () => { + try { + if (this.shouldRefreshCred) { + await this.getCredentials(); + } + } + catch (err) { + console.error('CheckCredentialsUpdateAsynchronously Error:', err); + } + finally { + this.checker = this.checkCredentialsUpdateAsynchronously(); + } + }, 1000 * 60); + } + close() { + if (this.checker != null) { + clearTimeout(this.checker); + this.checker = null; + } + } + async getMetadataToken() { + // PUT http://100.100.100.200/latest/api/token + const request = http_1.Request.builder() + .withMethod('PUT') + .withProtocol('http') + .withHost('100.100.100.200') + .withPath('/latest/api/token') + .withHeaders({ + 'x-aliyun-ecs-metadata-token-ttl-seconds': `${defaultMetadataTokenDuration}` + }) + .withReadTimeout(this.readTimeout || 1000) + .withConnectTimeout(this.connectTimeout || 1000) + .build(); + // ConnectTimeout: 5 * time.Second, + // ReadTimeout: 5 * time.Second, + try { + const response = await this.doRequest(request); + if (response.statusCode !== 200) { + throw new Error(`get metadata token failed with ${response.statusCode}`); + } + return response.body.toString('utf8'); + } + catch (error) { + if (this.disableIMDSv1) { + throw error; + } + return null; + } + } + async getRoleName() { + const builder = http_1.Request.builder() + .withMethod('GET') + .withProtocol('http') + .withHost('100.100.100.200') + .withPath('/latest/meta-data/ram/security-credentials/') + .withReadTimeout(this.readTimeout || 1000) + .withConnectTimeout(this.connectTimeout || 1000); + const metadataToken = await this.getMetadataToken(); + if (metadataToken !== null) { + builder.withHeaders({ + 'x-aliyun-ecs-metadata-token': metadataToken + }); + } + // ConnectTimeout: 5 * time.Second, + // ReadTimeout: 5 * time.Second, + const request = builder.build(); + const response = await this.doRequest(request); + if (response.statusCode !== 200) { + throw new Error(`get role name failed: ${request.method} ${request.toRequestURL()} ${response.statusCode}`); + } + return response.body.toString().trim(); + } + async getCredentialsInternal() { + let roleName = this.roleName; + if (!roleName) { + roleName = await this.getRoleName(); + } + const builder = http_1.Request.builder() + .withMethod('GET') + .withProtocol('http') + .withHost('100.100.100.200') + .withPath(`/latest/meta-data/ram/security-credentials/${roleName}`) + .withReadTimeout(this.readTimeout || 1000) + .withConnectTimeout(this.connectTimeout || 1000); + // ConnectTimeout: 5 * time.Second, + // ReadTimeout: 5 * time.Second, + // Headers: map[string]string{ }, + const metadataToken = await this.getMetadataToken(); + if (metadataToken !== null) { + builder.withHeaders({ + 'x-aliyun-ecs-metadata-token': metadataToken + }); + } + const request = builder.build(); + const response = await this.doRequest(request); + if (response.statusCode !== 200) { + throw new Error(`get sts token failed, httpStatus: ${response.statusCode}, message = ${response.body.toString()}`); + } + let data; + try { + data = JSON.parse(response.body.toString()); + } + catch (ex) { + throw new Error(`get sts token failed, json parse failed: ${ex.message}`); + } + if (!data || !data.AccessKeyId || !data.AccessKeySecret || !data.SecurityToken) { + throw new Error('get sts token failed'); + } + if (data.Code !== 'Success') { + throw new Error('refresh Ecs sts token err, Code is not Success'); + } + this.shouldRefreshCred = true; + return new session_1.Session(data.AccessKeyId, data.AccessKeySecret, data.SecurityToken, data.Expiration); + } + getProviderName() { + return 'ecs_ram_role'; + } +} +exports.default = ECSRAMRoleCredentialsProvider; +class ECSRAMRoleCredentialsProviderBuilder { + constructor() { + this.disableIMDSv1 = false; + this.asyncCredentialUpdateEnabled = false; + } + withRoleName(roleName) { + this.roleName = roleName; + return this; + } + withDisableIMDSv1(disableIMDSv1) { + this.disableIMDSv1 = disableIMDSv1; + return this; + } + withReadTimeout(readTimeout) { + this.readTimeout = readTimeout; + return this; + } + withConnectTimeout(connectTimeout) { + this.connectTimeout = connectTimeout; + return this; + } + withAsyncCredentialUpdateEnabled(asyncCredentialUpdateEnabled) { + this.asyncCredentialUpdateEnabled = asyncCredentialUpdateEnabled; + return this; + } + build() { + // 允许通过环境变量强制关闭 IMDS + if (process.env.ALIBABA_CLOUD_ECS_METADATA_DISABLED && process.env.ALIBABA_CLOUD_ECS_METADATA_DISABLED.toLowerCase() === 'true') { + throw new Error('IMDS credentials is disabled'); + } + // 设置 roleName 默认值 + if (!this.roleName) { + this.roleName = process.env.ALIBABA_CLOUD_ECS_METADATA; + } + // 允许通过环境变量强制关闭 V1 + if (process.env.ALIBABA_CLOUD_IMDSV1_DISABLED && process.env.ALIBABA_CLOUD_IMDSV1_DISABLED.toLowerCase() === 'true') { + this.disableIMDSv1 = true; + } + return new ECSRAMRoleCredentialsProvider(this); + } +} +//# sourceMappingURL=ecs_ram_role.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/ecs_ram_role.js.map b/backend/node_modules/@alicloud/credentials/dist/src/providers/ecs_ram_role.js.map new file mode 100644 index 0000000..812f399 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/ecs_ram_role.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ecs_ram_role.js","sourceRoot":"","sources":["../../../src/providers/ecs_ram_role.ts"],"names":[],"mappings":";;AACA,iCAA2C;AAC3C,uCAA0E;AAE1E,MAAM,aAAa,GAAG,EAAE,GAAG,EAAE,CAAC;AAC9B,MAAM,4BAA4B,GAAG,KAAK,CAAC,CAAC,UAAU;AAEtD,MAAqB,6BAA8B,SAAQ,mCAAyB;IAWlF,MAAM,CAAC,OAAO;QACZ,OAAO,IAAI,oCAAoC,EAAE,CAAC;IACpD,CAAC;IAED,YAAY,OAA6C;QACvD,KAAK,CAAC,oBAAU,EAAE,aAAa,CAAC,CAAC;QAXnC,WAAW;QACH,cAAS,GAAG,gBAAS,CAAC;QAW5B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,sBAAsB,CAAC;QAC7C,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;QACjC,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;QAC3C,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;QACvC,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QACpB,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;QAC/B,IAAG,OAAO,CAAC,4BAA4B,EAAE;YACvC,IAAI,CAAC,OAAO,G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,IAAI,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,WAAW,EAAE,KAAK,MAAM,EAAE;YAC/H,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD;QAED,kBAAkB;QAClB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YAClB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC;SACxD;QAED,kBAAkB;QAClB,IAAI,OAAO,CAAC,GAAG,CAAC,6BAA6B,IAAI,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC,WAAW,EAAE,KAAK,MAAM,EAAE;YACnH,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;SAC3B;QAED,OAAO,IAAI,6BAA6B,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;CAEF"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/env.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/providers/env.d.ts new file mode 100644 index 0000000..d929f3f --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/env.d.ts @@ -0,0 +1,12 @@ +import Credentials from '../credentials'; +import CredentialsProvider from '../credentials_provider'; +export default class EnvironmentVariableCredentialsProvider implements CredentialsProvider { + static builder(): EnvironmentVariableCredentialsProviderBuilder; + getCredentials(): Promise; + getProviderName(): string; + constructor(builder: EnvironmentVariableCredentialsProviderBuilder); +} +declare class EnvironmentVariableCredentialsProviderBuilder { + build(): EnvironmentVariableCredentialsProvider; +} +export {}; diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/env.js b/backend/node_modules/@alicloud/credentials/dist/src/providers/env.js new file mode 100644 index 0000000..e26d9a8 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/env.js @@ -0,0 +1,40 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const credentials_1 = __importDefault(require("../credentials")); +class EnvironmentVariableCredentialsProvider { + static builder() { + return new EnvironmentVariableCredentialsProviderBuilder(); + } + async getCredentials() { + const accessKeyId = process.env.ALIBABA_CLOUD_ACCESS_KEY_ID; + if (!accessKeyId) { + throw new Error('unable to get credentials from enviroment variables, Access key ID must be specified via environment variable (ALIBABA_CLOUD_ACCESS_KEY_ID)'); + } + const accessKeySecret = process.env.ALIBABA_CLOUD_ACCESS_KEY_SECRET; + if (!accessKeySecret) { + throw new Error('unable to get credentials from enviroment variables, Access key secret must be specified via environment variable (ALIBABA_CLOUD_ACCESS_KEY_SECRET)'); + } + const securityToken = process.env.ALIBABA_CLOUD_SECURITY_TOKEN; + return credentials_1.default.builder() + .withAccessKeyId(accessKeyId) + .withAccessKeySecret(accessKeySecret) + .withSecurityToken(securityToken) + .withProviderName(this.getProviderName()) + .build(); + } + getProviderName() { + return 'env'; + } + constructor(builder) { + } +} +exports.default = EnvironmentVariableCredentialsProvider; +class EnvironmentVariableCredentialsProviderBuilder { + build() { + return new EnvironmentVariableCredentialsProvider(this); + } +} +//# sourceMappingURL=env.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/env.js.map b/backend/node_modules/@alicloud/credentials/dist/src/providers/env.js.map new file mode 100644 index 0000000..0695f64 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/env.js.map @@ -0,0 +1 @@ +{"version":3,"file":"env.js","sourceRoot":"","sources":["../../../src/providers/env.ts"],"names":[],"mappings":";;;;;AAAA,iEAAyC;AAGzC,MAAqB,sCAAsC;IACzD,MAAM,CAAC,OAAO;QACZ,OAAO,IAAI,6CAA6C,EAAE,CAAC;IAC7D,CAAC;IAED,KAAK,CAAC,cAAc;QAClB,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC;QAC5D,IAAI,CAAC,WAAW,EAAE;YAChB,MAAM,IAAI,KAAK,CAAC,6IAA6I,CAAC,CAAA;SAC/J;QAED,MAAM,eAAe,GAAG,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC;QACpE,IAAI,CAAC,eAAe,EAAE;YACpB,MAAM,IAAI,KAAK,CAAC,qJAAqJ,CAAC,CAAA;SACvK;QAED,MAAM,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC;QAE/D,OAAO,qBAAW,CAAC,OAAO,EAAE;aACzB,eAAe,CAAC,WAAW,CAAC;aAC5B,mBAAmB,CAAC,eAAe,CAAC;aACpC,iBAAiB,CAAC,aAAa,CAAC;aAChC,gBAAgB,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC;aACxC,KAAK,EAAE,CAAC;IACb,CAAC;IAGD,eAAe;QACb,OAAO,KAAK,CAAC;IACf,CAAC;IAED,YAAY,OAAsD;IAElE,CAAC;CACF;AAlCD,yDAkCC;AAED,MAAM,6CAA6C;IACjD,KAAK;QACH,OAAO,IAAI,sCAAsC,CAAC,IAAI,CAAC,CAAC;IAC1D,CAAC;CACF"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/http.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/providers/http.d.ts new file mode 100644 index 0000000..9b41ac4 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/http.d.ts @@ -0,0 +1,85 @@ +/// +/// +export declare class Request { + readonly queries: { + [key: string]: string; + }; + readonly headers: { + [key: string]: string; + }; + readonly method: string; + readonly protocol: any; + readonly host: any; + readonly path: any; + readonly bodyForm: { + [key: string]: string; + }; + readonly bodyBytes: Buffer; + readonly url: string; + readonly readTimeout: number; + readonly connectTimeout: number; + static builder(): RequestBuilder; + constructor(builder: RequestBuilder); + toRequestURL(): string; +} +export declare class RequestBuilder { + method: string; + protocol: string; + host: string; + path: string; + queries: { + [key: string]: string; + }; + headers: { + [key: string]: string; + }; + bodyForm: { + [key: string]: string; + }; + bodyBytes: Buffer; + readTimeout: number; + connectTimeout: number; + url: string; + build(): Request; + withMethod(method: string): this; + withProtocol(protocol: string): this; + withHost(host: string): this; + withPath(path: string): this; + withQueries(queries: { + [key: string]: string; + }): this; + withHeaders(headers: { + [key: string]: string; + }): this; + withBodyForm(bodyForm: { + [key: string]: string; + }): this; + withURL(url: string): this; + withReadTimeout(readTimeout: number): this; + withConnectTimeout(connectTimeout: number): this; +} +export declare class Response { + readonly statusCode: number; + readonly body: Buffer; + readonly headers: { + [key: string]: string; + }; + static builder(): ResponseBuilder; + constructor(builder: ResponseBuilder); +} +declare class ResponseBuilder { + statusCode: number; + headers: { + [key: string]: string; + }; + body: Buffer; + withStatusCode(statusCode: number): this; + withHeaders(headers: { + [key: string]: string; + }): this; + withBody(body: Buffer): this; + constructor(); + build(): Response; +} +export declare function doRequest(req: Request): Promise; +export {}; diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/http.js b/backend/node_modules/@alicloud/credentials/dist/src/providers/http.js new file mode 100644 index 0000000..75be5e0 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/http.js @@ -0,0 +1,158 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.doRequest = exports.Response = exports.RequestBuilder = exports.Request = void 0; +const httpx_1 = __importDefault(require("httpx")); +class Request { + static builder() { + return new RequestBuilder(); + } + constructor(builder) { + this.method = builder.method; + this.protocol = builder.protocol; + this.host = builder.host; + this.path = builder.path; + this.queries = builder.queries; + this.headers = builder.headers; + this.bodyForm = builder.bodyForm; + this.bodyBytes = builder.bodyBytes; + this.url = builder.url; + this.readTimeout = builder.readTimeout; + this.connectTimeout = builder.connectTimeout; + } + toRequestURL() { + if (this.url) { + return this.url; + } + let url = `${this.protocol}://${this.host}${this.path}`; + if (this.queries && Object.keys(this.queries).length > 0) { + url += `?` + querystringify(this.queries); + } + return url; + } +} +exports.Request = Request; +class RequestBuilder { + build() { + // set default values + if (!this.protocol) { + this.protocol = 'https'; + } + if (!this.path) { + this.path = '/'; + } + if (!this.headers) { + this.headers = {}; + } + if (!this.queries) { + this.queries = {}; + } + return new Request(this); + } + withMethod(method) { + this.method = method; + return this; + } + withProtocol(protocol) { + this.protocol = protocol; + return this; + } + withHost(host) { + this.host = host; + return this; + } + withPath(path) { + this.path = path; + return this; + } + withQueries(queries) { + this.queries = queries; + return this; + } + withHeaders(headers) { + this.headers = headers; + return this; + } + withBodyForm(bodyForm) { + this.bodyForm = bodyForm; + return this; + } + withURL(url) { + this.url = url; + return this; + } + withReadTimeout(readTimeout) { + this.readTimeout = readTimeout; + return this; + } + withConnectTimeout(connectTimeout) { + this.connectTimeout = connectTimeout; + return this; + } +} +exports.RequestBuilder = RequestBuilder; +class Response { + static builder() { + return new ResponseBuilder(); + } + constructor(builder) { + this.statusCode = builder.statusCode; + this.headers = builder.headers; + this.body = builder.body; + } +} +exports.Response = Response; +class ResponseBuilder { + withStatusCode(statusCode) { + this.statusCode = statusCode; + return this; + } + withHeaders(headers) { + this.headers = headers; + return this; + } + withBody(body) { + this.body = body; + return this; + } + constructor() { + this.headers = {}; + } + build() { + return new Response(this); + } +} +function querystringify(queries) { + const fields = []; + for (const [key, value] of Object.entries(queries)) { + fields.push(key + '=' + encodeURIComponent(value)); + } + return fields.join('&'); +} +async function doRequest(req) { + const url = req.toRequestURL(); + let body; + if (req.bodyForm && Object.keys(req.bodyForm).length > 0) { + body = querystringify(req.bodyForm); + if (!req.headers['Content-Type']) { + req.headers['Content-Type'] = 'application/x-www-form-urlencoded'; + } + } + const response = await httpx_1.default.request(url, { + method: req.method, + data: body, + headers: req.headers, + readTimeout: req.readTimeout, + connectTimeout: req.connectTimeout + }); + const responseBody = await httpx_1.default.read(response, ''); + return Response.builder() + .withStatusCode(response.statusCode) + .withHeaders(response.headers) + .withBody(responseBody) + .build(); +} +exports.doRequest = doRequest; +//# sourceMappingURL=http.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/http.js.map b/backend/node_modules/@alicloud/credentials/dist/src/providers/http.js.map new file mode 100644 index 0000000..4f0d89b --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/http.js.map @@ -0,0 +1 @@ +{"version":3,"file":"http.js","sourceRoot":"","sources":["../../../src/providers/http.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,MAAa,OAAO;IAalB,MAAM,CAAC,OAAO;QACZ,OAAO,IAAI,cAAc,EAAE,CAAC;IAC9B,CAAC;IAED,YAAY,OAAuB;QACjC,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;QAC7B,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;QACjC,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QACzB,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;QACjC,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;QACnC,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;QACvB,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;QACvC,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;IAC/C,CAAC;IAED,YAAY;QACV,IAAG,IAAI,CAAC,GAAG,EAAC;YACV,OAAO,IAAI,CAAC,GAAG,CAAC;SACjB;QACD,IAAI,GAAG,GAAG,GAAG,IAAI,CAAC,QAAQ,MAAM,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;QACxD,IAAI,IAAI,CAAC,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,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AAK,EAAE,CAAC;AACb,CAAC;AAzBD,8BAyBC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/oidc_role_arn.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/providers/oidc_role_arn.d.ts new file mode 100644 index 0000000..b823268 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/oidc_role_arn.d.ts @@ -0,0 +1,48 @@ +import CredentialsProvider from '../credentials_provider'; +import { Session, SessionCredentialProvider } from './session'; +declare class OIDCRoleArnCredentialsProviderBuilder { + oidcProviderArn: any; + oidcTokenFilePath: any; + roleArn: any; + roleSessionName: string; + stsEndpoint: string; + stsRegionId: string; + policy: string; + durationSeconds: number; + enableVpc?: boolean; + readTimeout?: number; + connectTimeout?: number; + withOIDCProviderArn(oidcProviderArn: string): this; + withOIDCTokenFilePath(path: string): this; + withRoleArn(roleArn: string): this; + withRoleSessionName(roleSessionName: string): this; + withDurationSeconds(durationSeconds: number): this; + withStsEndpoint(stsEndpoint: string): this; + withStsRegionId(regionId: string): this; + withPolicy(policy: string): this; + withEnableVpc(enableVpc: boolean): OIDCRoleArnCredentialsProviderBuilder; + withReadTimeout(readTimeout: number): OIDCRoleArnCredentialsProviderBuilder; + withConnectTimeout(connectTimeout: number): OIDCRoleArnCredentialsProviderBuilder; + build(): OIDCRoleArnCredentialsProvider; +} +export default class OIDCRoleArnCredentialsProvider extends SessionCredentialProvider implements CredentialsProvider { + private readonly roleArn; + private readonly oidcProviderArn; + private readonly oidcTokenFilePath; + private readonly policy; + private readonly durationSeconds; + private readonly roleSessionName; + runtime: { + [key: string]: any; + }; + private readonly stsEndpoint; + private doRequest; + private readonly readTimeout; + private readonly connectTimeout; + lastUpdateTimestamp: number; + static builder(): OIDCRoleArnCredentialsProviderBuilder; + constructor(builder: OIDCRoleArnCredentialsProviderBuilder); + getProviderName(): string; + getCredentialsInternal(): Promise; +} +export {}; diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/oidc_role_arn.js b/backend/node_modules/@alicloud/credentials/dist/src/providers/oidc_role_arn.js new file mode 100644 index 0000000..6192cf6 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/oidc_role_arn.js @@ -0,0 +1,201 @@ +"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 (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const fs_1 = require("fs"); +const util_1 = require("util"); +const session_1 = require("./session"); +const utils = __importStar(require("../util/utils")); +const http_1 = require("./http"); +const readFileAsync = (0, util_1.promisify)(fs_1.readFile); +class OIDCRoleArnCredentialsProviderBuilder { + withOIDCProviderArn(oidcProviderArn) { + this.oidcProviderArn = oidcProviderArn; + return this; + } + withOIDCTokenFilePath(path) { + this.oidcTokenFilePath = path; + return this; + } + withRoleArn(roleArn) { + this.roleArn = roleArn; + return this; + } + withRoleSessionName(roleSessionName) { + this.roleSessionName = roleSessionName; + return this; + } + withDurationSeconds(durationSeconds) { + this.durationSeconds = durationSeconds; + return this; + } + withStsEndpoint(stsEndpoint) { + this.stsEndpoint = stsEndpoint; + return this; + } + withStsRegionId(regionId) { + this.stsRegionId = regionId; + return this; + } + withPolicy(policy) { + this.policy = policy; + return this; + } + withEnableVpc(enableVpc) { + this.enableVpc = enableVpc; + return this; + } + withReadTimeout(readTimeout) { + this.readTimeout = readTimeout; + return this; + } + withConnectTimeout(connectTimeout) { + this.connectTimeout = connectTimeout; + return this; + } + build() { + // set default values + if (!this.oidcProviderArn) { + this.oidcProviderArn = process.env.ALIBABA_CLOUD_OIDC_PROVIDER_ARN; + } + if (!this.oidcTokenFilePath) { + this.oidcTokenFilePath = process.env.ALIBABA_CLOUD_OIDC_TOKEN_FILE; + } + if (!this.roleSessionName) { + this.roleSessionName = process.env.ALIBABA_CLOUD_ROLE_SESSION_NAME; + } + if (!this.durationSeconds) { + this.durationSeconds = 3600; + } + if (!this.roleArn) { + this.roleArn = process.env.ALIBABA_CLOUD_ROLE_ARN; + } + if (!this.roleArn) { + throw new Error('roleArn does not exist and env ALIBABA_CLOUD_ROLE_ARN is null.'); + } + if (!this.oidcProviderArn) { + throw new Error('oidcProviderArn does not exist and env ALIBABA_CLOUD_OIDC_PROVIDER_ARN is null.'); + } + if (!this.oidcTokenFilePath) { + throw new Error('oidcTokenFilePath is not exists and env ALIBABA_CLOUD_OIDC_TOKEN_FILE is null.'); + } + if (!this.roleSessionName) { + this.roleSessionName = 'credentials-nodejs-' + Date.now(); + } + if (this.durationSeconds < 900) { + throw new Error('session duration should be in the range of 900s - max session duration'); + } + if (!this.stsRegionId) { + this.stsRegionId = process.env.ALIBABA_CLOUD_STS_REGION; + } + if (!this.enableVpc) { + this.enableVpc = process.env.ALIBABA_CLOUD_VPC_ENDPOINT_ENABLED && process.env.ALIBABA_CLOUD_VPC_ENDPOINT_ENABLED.toLowerCase() === 'true' || false; + } + // sts endpoint + if (!this.stsEndpoint) { + if (this.stsRegionId) { + if (this.enableVpc) { + this.stsEndpoint = `sts-vpc.${this.stsRegionId}.aliyuncs.com`; + } + else { + this.stsEndpoint = `sts.${this.stsRegionId}.aliyuncs.com`; + } + } + else { + this.stsEndpoint = 'sts.aliyuncs.com'; + } + } + return new OIDCRoleArnCredentialsProvider(this); + } +} +class OIDCRoleArnCredentialsProvider extends session_1.SessionCredentialProvider { + static builder() { + return new OIDCRoleArnCredentialsProviderBuilder(); + } + constructor(builder) { + super(session_1.STALE_TIME); + this.doRequest = http_1.doRequest; + this.refresher = this.getCredentialsInternal; + this.roleArn = builder.roleArn; + this.oidcProviderArn = builder.oidcProviderArn; + this.oidcTokenFilePath = builder.oidcTokenFilePath; + this.policy = builder.policy; + this.durationSeconds = builder.durationSeconds; + this.roleSessionName = builder.roleSessionName; + this.stsEndpoint = builder.stsEndpoint; + this.readTimeout = builder.readTimeout; + this.connectTimeout = builder.connectTimeout; + // used for mock + this.doRequest = http_1.doRequest; + } + getProviderName() { + return 'oidc_role_arn'; + } + async getCredentialsInternal() { + const oidcToken = await readFileAsync(this.oidcTokenFilePath, 'utf8'); + const builder = http_1.Request.builder().withMethod('POST').withProtocol('https').withHost(this.stsEndpoint).withReadTimeout(this.readTimeout || 10000).withConnectTimeout(this.connectTimeout || 5000); + const queries = Object.create(null); + queries['Version'] = '2015-04-01'; + queries['Action'] = 'AssumeRoleWithOIDC'; + queries['Format'] = 'JSON'; + queries['Timestamp'] = utils.timestamp(); + builder.withQueries(queries); + const bodyForm = Object.create(null); + bodyForm['OIDCProviderArn'] = this.oidcProviderArn; + bodyForm['OIDCToken'] = oidcToken; + bodyForm['RoleArn'] = this.roleArn; + if (this.policy) { + bodyForm['Policy'] = this.policy; + } + bodyForm['RoleSessionName'] = this.roleSessionName; + bodyForm['DurationSeconds'] = `${this.durationSeconds}`; + builder.withBodyForm(bodyForm); + const headers = Object.create(null); + // set headers + headers['Content-Type'] = 'application/x-www-form-urlencoded'; + builder.withHeaders(headers); + const request = builder.build(); + const response = await this.doRequest(request); + if (response.statusCode !== 200) { + throw new Error(`get sts token failed with OIDC: ${response.body.toString('utf8')}`); + } + let data; + try { + data = JSON.parse(response.body.toString('utf8')); + } + catch (ex) { + throw new Error(`get sts token failed with OIDC, unmarshal fail: ${response.body.toString('utf8')}`); + } + if (!data || !data.Credentials) { + throw new Error(`get sts token failed with OIDC`); + } + const { AccessKeyId, AccessKeySecret, SecurityToken, Expiration } = data.Credentials; + if (!AccessKeyId || !AccessKeySecret || !SecurityToken) { + throw new Error('get sts token failed with OIDC'); + } + return new session_1.Session(AccessKeyId, AccessKeySecret, SecurityToken, Expiration); + } +} +exports.default = OIDCRoleArnCredentialsProvider; +//# sourceMappingURL=oidc_role_arn.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/oidc_role_arn.js.map b/backend/node_modules/@alicloud/credentials/dist/src/providers/oidc_role_arn.js.map new file mode 100644 index 0000000..fe0a1e1 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/oidc_role_arn.js.map @@ -0,0 +1 @@ +{"version":3,"file":"oidc_role_arn.js","sourceRoot":"","sources":["../../../src/providers/oidc_role_arn.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAA8B;AAC9B,+BAAiC;AAIjC,uCAA2E;AAC3E,qDAAuC;AACvC,iCAA4C;AAE5C,MAAM,aAAa,GAAG,IAAA,gBAAS,EAAC,aAAQ,CAAC,CAAC;AAE1C,MAAM,qCAAqC;IAazC,mBAAmB,CAAC,eAAuB;QACzC,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,qBAAqB,CAAC,IAAY;QAChC,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC;QAC9B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,WAAW,CAAC,OAAe;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,mBAAmB,CAAC,eAAuB;QACzC,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,mBAAmB,CAAC,eAAuB;QACzC,IAAI,CAAC,eAAe,GAAG,eAA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AE/C,IAAI,QAAQ,CAAC,UAAU,KAAK,GAAG,EAAE;YAC/B,MAAM,IAAI,KAAK,CAAC,mCAAmC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;SACrF;QAED,IAAI,IAAI,CAAC;QACT,IAAI;YACF,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;SACnD;QAAC,OAAO,EAAE,EAAE;YACX,MAAM,IAAI,KAAK,CAAC,mDAAmD,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;SACtG;QAED,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;YAC9B,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;SACnD;QAED,MAAM,EAAE,WAAW,EAAE,eAAe,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC,WAAW,CAAC;QACrF,IAAI,CAAC,WAAW,IAAI,CAAC,eAAe,IAAI,CAAC,aAAa,EAAE;YACtD,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAA;SAClD;QAED,OAAO,IAAI,iBAAO,CAAC,WAAW,EAAE,eAAe,EAAE,aAAa,EAAE,UAAU,CAAC,CAAC;IAC9E,CAAC;CACF;AA7FD,iDA6FC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/profile.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/providers/profile.d.ts new file mode 100644 index 0000000..caef3b4 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/profile.d.ts @@ -0,0 +1,18 @@ +import Credentials from '../credentials'; +import CredentialsProvider from '../credentials_provider'; +export default class ProfileCredentialsProvider implements CredentialsProvider { + private readonly profileName; + private innerProvider; + private readonly homedir; + getCredentials(): Promise; + getCredentialsProvider(ini: any): CredentialsProvider; + getProviderName(): string; + static builder(): ProfileCredentialsProviderBuilder; + constructor(builder: ProfileCredentialsProviderBuilder); +} +declare class ProfileCredentialsProviderBuilder { + profileName: string; + withProfileName(profileName: string): this; + build(): ProfileCredentialsProvider; +} +export {}; diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/profile.js b/backend/node_modules/@alicloud/credentials/dist/src/providers/profile.js new file mode 100644 index 0000000..f8b92fe --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/profile.js @@ -0,0 +1,99 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const path_1 = __importDefault(require("path")); +const os_1 = __importDefault(require("os")); +const credentials_1 = __importDefault(require("../credentials")); +const utils_1 = require("../util/utils"); +const static_ak_1 = __importDefault(require("./static_ak")); +const ecs_ram_role_1 = __importDefault(require("./ecs_ram_role")); +const ram_role_arn_1 = __importDefault(require("./ram_role_arn")); +class ProfileCredentialsProvider { + async getCredentials() { + if (!this.innerProvider) { + let sharedCfgPath = process.env.ALIBABA_CLOUD_CREDENTIALS_FILE; + if (!sharedCfgPath) { + if (!this.homedir) { + throw new Error('cannot found home dir'); + } + sharedCfgPath = path_1.default.join(this.homedir, '.alibabacloud/credentials'); + } + const ini = await (0, utils_1.loadIni)(sharedCfgPath); + this.innerProvider = this.getCredentialsProvider(ini); + } + const credentials = await this.innerProvider.getCredentials(); + return credentials_1.default.builder() + .withAccessKeyId(credentials.accessKeyId) + .withAccessKeySecret(credentials.accessKeySecret) + .withSecurityToken(credentials.securityToken) + .withProviderName(`${this.getProviderName()}/${this.innerProvider.getProviderName()}`) + .build(); + } + getCredentialsProvider(ini) { + const config = ini[this.profileName] || {}; + if (!config.type) { + throw new Error(`Can not find credential type for "${this.profileName}"`); + } + switch (config.type) { + case 'access_key': + return static_ak_1.default.builder() + .withAccessKeyId(config.access_key_id) + .withAccessKeySecret(config.access_key_secret) + .build(); + case 'ecs_ram_role': + return ecs_ram_role_1.default.builder() + .withRoleName(config.role_name) + .build(); + case 'ram_role_arn': + { + const previous = static_ak_1.default.builder() + .withAccessKeyId(config.access_key_id) + .withAccessKeySecret(config.access_key_secret) + .build(); + return ram_role_arn_1.default.builder() + .withCredentialsProvider(previous) + .withRoleArn(config.role_arn) + .withRoleSessionName(config.role_session_name) + .withPolicy(config.policy) + // .withStsEndpoint(config.stsEndpoint) + // .withStsRegionId(config.stsRegionId) + // .withEnableVpc(config.enableVpc) + // .withExternalId(config.enableVpc) + .build(); + } + default: + throw new Error('Invalid type option, support: access_key, ecs_ram_role, ram_role_arn'); + } + } + getProviderName() { + return 'profile'; + } + static builder() { + return new ProfileCredentialsProviderBuilder(); + } + constructor(builder) { + // used for mock + this.homedir = os_1.default.homedir(); + this.profileName = builder.profileName; + } +} +exports.default = ProfileCredentialsProvider; +class ProfileCredentialsProviderBuilder { + withProfileName(profileName) { + this.profileName = profileName; + return this; + } + build() { + // 优先级: + // 1. 使用显示指定的 profileName + // 2. 使用环境变量(ALIBABA_CLOUD_PROFILE)指定的 profileName + // 3. 兜底使用 default 作为 profileName + if (!this.profileName) { + this.profileName = process.env.ALIBABA_CLOUD_PROFILE || 'default'; + } + return new ProfileCredentialsProvider(this); + } +} +//# sourceMappingURL=profile.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/profile.js.map b/backend/node_modules/@alicloud/credentials/dist/src/providers/profile.js.map new file mode 100644 index 0000000..de55564 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/profile.js.map @@ -0,0 +1 @@ +{"version":3,"file":"profile.js","sourceRoot":"","sources":["../../../src/providers/profile.ts"],"names":[],"mappings":";;;;;AAAA,gDAAwB;AACxB,4CAAoB;AAEpB,iEAAyC;AAEzC,yCAAwC;AAExC,4DAAsD;AACtD,kEAA2D;AAC3D,kEAA2D;AAG3D,MAAqB,0BAA0B;IAM7C,K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BAAyB;QACzB,kDAAkD;QAClD,iCAAiC;QACjC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;YACrB,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,qBAAqB,IAAI,SAAS,CAAC;SACnE;QAED,OAAO,IAAI,0BAA0B,CAAC,IAAI,CAAC,CAAC;IAC9C,CAAC;CAEF"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/ram_role_arn.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/providers/ram_role_arn.d.ts new file mode 100644 index 0000000..a0374c0 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/ram_role_arn.d.ts @@ -0,0 +1,45 @@ +import CredentialsProvider from '../credentials_provider'; +import { SessionCredentialProvider } from './session'; +declare class RAMRoleARNCredentialsProviderBuilder { + credentialsProvider: CredentialsProvider; + roleArn: string; + roleSessionName: string; + durationSeconds: number; + stsEndpoint: string; + stsRegionId: string; + policy: string; + externalId: string; + enableVpc?: boolean; + readTimeout?: number; + connectTimeout?: number; + build(): RAMRoleARNCredentialsProvider; + withCredentialsProvider(credentialsProvider: CredentialsProvider): RAMRoleARNCredentialsProviderBuilder; + withRoleArn(roleArn: string): RAMRoleARNCredentialsProviderBuilder; + withStsRegionId(regionId: string): RAMRoleARNCredentialsProviderBuilder; + withStsEndpoint(endpoint: string): RAMRoleARNCredentialsProviderBuilder; + withRoleSessionName(roleSessionName: string): RAMRoleARNCredentialsProviderBuilder; + withPolicy(policy: string): RAMRoleARNCredentialsProviderBuilder; + withExternalId(externalId: string): RAMRoleARNCredentialsProviderBuilder; + withDurationSeconds(durationSeconds: number): RAMRoleARNCredentialsProviderBuilder; + withEnableVpc(enableVpc: boolean): RAMRoleARNCredentialsProviderBuilder; + withReadTimeout(readTimeout: number): RAMRoleARNCredentialsProviderBuilder; + withConnectTimeout(connectTimeout: number): RAMRoleARNCredentialsProviderBuilder; +} +export default class RAMRoleARNCredentialsProvider extends SessionCredentialProvider implements CredentialsProvider { + private readonly credentialsProvider; + private readonly stsEndpoint; + private readonly roleSessionName; + private readonly policy; + private readonly durationSeconds; + private readonly externalId; + private readonly roleArn; + private readonly readTimeout; + private readonly connectTimeout; + private doRequest; + private lastUpdateTimestamp; + static builder(): RAMRoleARNCredentialsProviderBuilder; + constructor(builder: RAMRoleARNCredentialsProviderBuilder); + private getCredentialsInternal; + getProviderName(): string; +} +export {}; diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/ram_role_arn.js b/backend/node_modules/@alicloud/credentials/dist/src/providers/ram_role_arn.js new file mode 100644 index 0000000..4a73565 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/ram_role_arn.js @@ -0,0 +1,242 @@ +"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 (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const kitx = __importStar(require("kitx")); +const debug_1 = __importDefault(require("debug")); +const utils = __importStar(require("../util/utils")); +const http_1 = require("./http"); +const session_1 = require("./session"); +const log = (0, debug_1.default)('sign'); +// type HttpOptions struct { +// Proxy : string +// ConnectTimeout int +// ReadTimeout int +// } +class RAMRoleARNCredentialsProviderBuilder { + build() { + if (!this.credentialsProvider) { + throw new Error('must specify a previous credentials provider to asssume role'); + } + if (!(this.roleArn = this.roleArn || process.env.ALIBABA_CLOUD_ROLE_ARN)) + throw new Error('the RoleArn is empty'); + if (!this.roleSessionName) { + this.roleSessionName = process.env.ALIBABA_CLOUD_ROLE_SESSION_NAME || 'credentials-nodejs-' + Date.now(); + } + if (!this.stsRegionId) { + this.stsRegionId = process.env.ALIBABA_CLOUD_STS_REGION; + } + if (!this.enableVpc) { + this.enableVpc = process.env.ALIBABA_CLOUD_VPC_ENDPOINT_ENABLED && process.env.ALIBABA_CLOUD_VPC_ENDPOINT_ENABLED.toLowerCase() === 'true' || false; + } + // duration seconds + if (!this.durationSeconds) { + // default to 3600 + this.durationSeconds = 3600; + } + if (this.durationSeconds < 900) { + throw new Error('session duration should be in the range of 900s - max session duration'); + } + // sts endpoint + if (!this.stsEndpoint) { + if (this.stsRegionId) { + if (this.enableVpc) { + this.stsEndpoint = `sts-vpc.${this.stsRegionId}.aliyuncs.com`; + } + else { + this.stsEndpoint = `sts.${this.stsRegionId}.aliyuncs.com`; + } + } + else { + this.stsEndpoint = 'sts.aliyuncs.com'; + } + } + return new RAMRoleARNCredentialsProvider(this); + } + withCredentialsProvider(credentialsProvider) { + this.credentialsProvider = credentialsProvider; + return this; + } + withRoleArn(roleArn) { + this.roleArn = roleArn; + return this; + } + withStsRegionId(regionId) { + this.stsRegionId = regionId; + return this; + } + withStsEndpoint(endpoint) { + this.stsEndpoint = endpoint; + return this; + } + withRoleSessionName(roleSessionName) { + this.roleSessionName = roleSessionName; + return this; + } + withPolicy(policy) { + this.policy = policy; + return this; + } + withExternalId(externalId) { + this.externalId = externalId; + return this; + } + withDurationSeconds(durationSeconds) { + this.durationSeconds = durationSeconds; + return this; + } + withEnableVpc(enableVpc) { + this.enableVpc = enableVpc; + return this; + } + withReadTimeout(readTimeout) { + this.readTimeout = readTimeout; + return this; + } + withConnectTimeout(connectTimeout) { + this.connectTimeout = connectTimeout; + return this; + } +} +function encode(str) { + const result = encodeURIComponent(str); + return result.replace(/!/g, '%21') + .replace(/'/g, '%27') + .replace(/\(/g, '%28') + .replace(/\)/g, '%29') + .replace(/\*/g, '%2A'); +} +class RAMRoleARNCredentialsProvider extends session_1.SessionCredentialProvider { + static builder() { + return new RAMRoleARNCredentialsProviderBuilder(); + } + constructor(builder) { + super(session_1.STALE_TIME); + // used for mock + this.doRequest = http_1.doRequest; + this.refresher = this.getCredentialsInternal; + this.credentialsProvider = builder.credentialsProvider; + this.stsEndpoint = builder.stsEndpoint; + this.roleSessionName = builder.roleSessionName; + this.policy = builder.policy; + this.durationSeconds = builder.durationSeconds; + this.roleArn = builder.roleArn; + this.externalId = builder.externalId; + this.readTimeout = builder.readTimeout; + this.connectTimeout = builder.connectTimeout; + } + async getCredentialsInternal() { + const credentials = await this.credentialsProvider.getCredentials(); + const method = 'POST'; + const builder = http_1.Request.builder().withMethod(method).withProtocol('https').withHost(this.stsEndpoint).withReadTimeout(this.readTimeout || 10000).withConnectTimeout(this.connectTimeout || 5000); + const queries = Object.create(null); + queries['Version'] = '2015-04-01'; + queries['Action'] = 'AssumeRole'; + queries['Format'] = 'JSON'; + queries['Timestamp'] = utils.timestamp(); + queries['SignatureMethod'] = 'HMAC-SHA1'; + queries['SignatureVersion'] = '1.0'; + queries['SignatureNonce'] = kitx.makeNonce(); + queries['AccessKeyId'] = credentials.accessKeyId; + if (credentials.securityToken) { + queries['SecurityToken'] = credentials.securityToken; + } + const bodyForm = Object.create(null); + bodyForm['RoleArn'] = this.roleArn; + if (this.policy) { + bodyForm['Policy'] = this.policy; + } + if (this.externalId) { + bodyForm['ExternalId'] = this.externalId; + } + bodyForm['RoleSessionName'] = this.roleSessionName; + bodyForm['DurationSeconds'] = `${this.durationSeconds}`; + builder.withBodyForm(bodyForm); + // caculate signature + const signParams = Object.create(null); + for (const [key, value] of Object.entries(queries)) { + signParams[key] = value; + } + for (const [key, value] of Object.entries(bodyForm)) { + signParams[key] = value; + } + const keys = Object.keys(signParams).sort(); + const stringToSign = `${method}&${encode('/')}&${encode(keys.map((key) => { + return `${encode(key)}=${encode(signParams[key])}`; + }).join('&'))}`; + log('stringToSign[Client]:'); + log(stringToSign); + const secret = credentials.accessKeySecret + '&'; + const signature = kitx.sha1(stringToSign, secret, 'base64'); + queries['Signature'] = signature; + builder.withQueries(queries); + const headers = Object.create(null); + // set headers + headers['Content-Type'] = 'application/x-www-form-urlencoded'; + headers['x-acs-credentials-provider'] = credentials.providerName; + builder.withHeaders(headers); + // if (this.httpOptions) { + // req.connectTimeout = this.httpOptions.connectTimeout; + // req.readTimeout = this.httpOptions.readTimeout; + // req.proxy = this.httpOptions.proxy; + // } + const request = builder.build(); + const response = await this.doRequest(request); + if (response.statusCode != 200) { + if (response.headers['content-type'] && response.headers['content-type'].startsWith('application/json')) { + const body = JSON.parse(response.body.toString('utf8')); + const serverStringToSign = body.Message.slice('Specified signature is not matched with our calculation. server string to sign is:'.length); + log('stringToSign[Server]:'); + log(stringToSign); + if (body.Code === 'SignatureDoesNotMatch' && serverStringToSign === stringToSign) { + throw new Error(`the access key secret is invalid`); + } + } + throw new Error(`refresh session token failed: ${response.body.toString('utf8')}`); + } + let data; + try { + data = JSON.parse(response.body.toString('utf8')); + } + catch (ex) { + throw new Error(`refresh RoleArn sts token err, unmarshal fail: ${response.body.toString('utf8')}`); + } + if (!data || !data.Credentials) { + throw new Error(`refresh RoleArn sts token err, fail to get credentials`); + } + if (!data.Credentials.AccessKeyId || !data.Credentials.AccessKeySecret || !data.Credentials.SecurityToken) { + throw new Error('refresh RoleArn sts token err, fail to get credentials'); + } + const { AccessKeyId, AccessKeySecret, SecurityToken, Expiration } = data.Credentials; + return new session_1.Session(AccessKeyId, AccessKeySecret, SecurityToken, Expiration); + } + getProviderName() { + return `ram_role_arn/${this.credentialsProvider.getProviderName()}`; + } +} +exports.default = RAMRoleARNCredentialsProvider; +//# sourceMappingURL=ram_role_arn.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/ram_role_arn.js.map b/backend/node_modules/@alicloud/credentials/dist/src/providers/ram_role_arn.js.map new file mode 100644 index 0000000..80bb09e --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/ram_role_arn.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ram_role_arn.js","sourceRoot":"","sources":["../../../src/providers/ram_role_arn.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA6B;AAC7B,kDAA0B;AAE1B,qDAAuC;AAIvC,iCAA4C;AAC5C,uCAA2E;AAE3E,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,MAAM,CAAC,CAAC;AAE1B,4BAA4B;AAC5B,0BAA0B;AAC1B,sBAAsB;AACtB,sBAAsB;AACtB,IAAI;AAEJ,MAAM,oCAAoC;IAaxC,KAAK;QACH,IAAI,CAAC,IAAI,CAAC,mBAAmB,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,8DAA8D,CAAC,CAAC;SACjF;QAED,IAAI,CAAC,CAAC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;QAElH,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE;YACzB,IAAI,CAAC,eAAe,GAAG,OAAO,CAAC,GAAG,CAAC,+BAA+B,IAAI,qBAAqB,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;SAC1G;QAED,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;YACrB,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;SACzD;QAED,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;YACnB,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,GAA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CAAC,CAAA;SAC1E;QAED,MAAM,EAAE,WAAW,EAAE,eAAe,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC,WAAW,CAAC;QACrF,OAAO,IAAI,iBAAO,CAAC,WAAW,EAAE,eAAe,EAAE,aAAa,EAAE,UAAU,CAAC,CAAC;IAC9E,CAAC;IAED,eAAe;QACb,OAAO,gBAAgB,IAAI,CAAC,mBAAmB,CAAC,eAAe,EAAE,EAAE,CAAC;IACtE,CAAC;CACF;AA3ID,gDA2IC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/session.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/providers/session.d.ts new file mode 100644 index 0000000..c887481 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/session.d.ts @@ -0,0 +1,31 @@ +import CredentialsProvider from '../credentials_provider'; +import Credentials from '../credentials'; +export declare const STALE_TIME: number; +export declare class Session { + accessKeyId: string; + accessKeySecret: string; + securityToken: string; + expiration: string; + constructor(accessKeyId: string, accessKeySecret: string, securityToken: string, expiration: string); +} +export declare type SessionRefresher = () => Promise; +export declare class SessionCredentialProvider implements CredentialsProvider { + private expirationTimestamp; + private session; + private refreshFaliure; + private readonly staleTime; + private readonly prefetchTime; + private staleTimestamp; + private prefetchTimestamp; + refresher: SessionRefresher; + constructor(staleTime?: number, prefetchTime?: number); + getCredentials(): Promise; + refreshTimestamp(): void; + maxStaleFailureJitter(): number; + jitterTime(time: number, jitterStart: number, jitterEnd: number): number; + refreshSession(): Promise; + getSession(): Promise; + needUpdateCredential(): boolean; + shouldPrefetchCredential(): boolean; + getProviderName(): string; +} diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/session.js b/backend/node_modules/@alicloud/credentials/dist/src/providers/session.js new file mode 100644 index 0000000..cda9e57 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/session.js @@ -0,0 +1,119 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SessionCredentialProvider = exports.Session = exports.STALE_TIME = void 0; +const time_1 = require("./time"); +const utils_1 = require("../util/utils"); +const credentials_1 = __importDefault(require("../credentials")); +exports.STALE_TIME = 15 * 60; +class Session { + constructor(accessKeyId, accessKeySecret, securityToken, expiration) { + this.accessKeyId = accessKeyId; + this.accessKeySecret = accessKeySecret; + this.securityToken = securityToken; + this.expiration = expiration; + } +} +exports.Session = Session; +class SessionCredentialProvider { + constructor(staleTime = 0, prefetchTime = 0) { + this.staleTime = staleTime || exports.STALE_TIME; + if (prefetchTime) { + this.prefetchTime = prefetchTime; + this.prefetchTimestamp = Date.now() + (prefetchTime * 1000); + } + this.refreshFaliure = 0; + } + async getCredentials() { + this.session = await this.getSession(); + return credentials_1.default.builder() + .withAccessKeyId(this.session.accessKeyId) + .withAccessKeySecret(this.session.accessKeySecret) + .withSecurityToken(this.session.securityToken) + .withProviderName(this.getProviderName()) + .build(); + } + refreshTimestamp() { + this.staleTimestamp = this.expirationTimestamp - this.staleTime; + if (this.prefetchTimestamp) { + this.prefetchTimestamp = (Date.now() + (this.prefetchTime * 1000)) / 1000; + } + } + maxStaleFailureJitter() { + const exponentialBackoffMillis = (1 << (this.refreshFaliure - 1)); + return exponentialBackoffMillis > 10 ? exponentialBackoffMillis : 10; + } + jitterTime(time, jitterStart, jitterEnd) { + const jitterRange = jitterEnd - jitterStart; + const jitterAmount = Math.abs(Math.floor(Math.random() * jitterRange)); + return time + jitterStart + jitterAmount; + } + async refreshSession() { + try { + const session = await this.refresher(); + const now = Date.now() / 1000; + const oldSessionAvailable = this.staleTimestamp > now; + const oldSession = this.session; + this.expirationTimestamp = (0, time_1.parseUTC)(session.expiration) / 1000; + this.session = session; + this.refreshFaliure = 0; + this.refreshTimestamp(); + // 过期时间大于15分钟,不用管 + if (this.staleTimestamp > now) { + return; + } + // 不足或等于15分钟,但未过期,下次会再次刷新 + if (now < (this.staleTimestamp + this.staleTime)) { + this.expirationTimestamp = now + this.staleTime; + } + // 已过期,看缓存,缓存若大于15分钟,返回缓存,若小于15分钟,则根据策略判断是立刻重试还是稍后重试 + if (now > (this.staleTimestamp + this.staleTime)) { + if (oldSessionAvailable) { + this.session = oldSession; + this.expirationTimestamp = (0, time_1.parseUTC)(oldSession.expiration) / 1000; + this.refreshTimestamp(); + return; + } + const waitUntilNextRefresh = 50 + (0, utils_1.getRandomInt)(20); + this.expirationTimestamp = now + waitUntilNextRefresh + this.staleTime; + } + } + catch (err) { + if (!this.session) { + throw err; + } + const now = Date.now() / 1000; + if (now < this.staleTimestamp) { + return; + } + this.refreshFaliure++; + this.expirationTimestamp = this.jitterTime(now, 1, this.maxStaleFailureJitter()) + this.staleTime; + } + } + async getSession() { + if (this.needUpdateCredential() || this.shouldPrefetchCredential()) { + await this.refreshSession(); + this.refreshTimestamp(); + } + return this.session; + } + needUpdateCredential() { + if (!this.session || !this.expirationTimestamp) { + return true; + } + return (Date.now() / 1000) >= this.staleTimestamp; + } + shouldPrefetchCredential() { + if (!this.prefetchTimestamp) { + return false; + } + return this.expirationTimestamp - (Date.now() / 1000) <= this.prefetchTime; + } + getProviderName() { + return 'session'; + } +} +exports.SessionCredentialProvider = SessionCredentialProvider; +//# sourceMappingURL=session.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/session.js.map b/backend/node_modules/@alicloud/credentials/dist/src/providers/session.js.map new file mode 100644 index 0000000..28ff54c --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/session.js.map @@ -0,0 +1 @@ +{"version":3,"file":"session.js","sourceRoot":"","sources":["../../../src/providers/session.ts"],"names":[],"mappings":";;;;;;AAAA,iCAAiC;AACjC,yCAA4C;AAE5C,iEAAwC;AAE3B,QAAA,UAAU,GAAG,EAAE,GAAG,EAAE,CAAC;AAElC,MAAa,OAAO;IAMlB,YAAY,WAAmB,EAAE,eAAuB,EAAE,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I,CAAC,mBAAmB,EAAE;YAC9C,OAAO,IAAI,CAAC;SACb;QAED,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,IAAI,IAAI,CAAC,cAAc,CAAC;IACpD,CAAC;IAED,wBAAwB;QACtB,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE;YAC3B,OAAO,KAAK,CAAC;SACd;QAED,OAAO,IAAI,CAAC,mBAAmB,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC;IAC7E,CAAC;IAED,eAAe;QACb,OAAO,SAAS,CAAC;IACnB,CAAC;CACJ;AApHD,8DAoHC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/static_ak.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/providers/static_ak.d.ts new file mode 100644 index 0000000..7a0a910 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/static_ak.d.ts @@ -0,0 +1,23 @@ +import Credentials from '../credentials'; +import CredentialsProvider from '../credentials_provider'; +/** + * @internal + */ +export declare class StaticAKCredentialsProviderBuilder { + accessKeyId: string; + accessKeySecret: string; + withAccessKeyId(accessKeyId: string): StaticAKCredentialsProviderBuilder; + withAccessKeySecret(accessKeySecret: string): StaticAKCredentialsProviderBuilder; + build(): StaticAKCredentialsProvider; +} +/** + * @internal + */ +export default class StaticAKCredentialsProvider implements CredentialsProvider { + static builder(): StaticAKCredentialsProviderBuilder; + private readonly accessKeyId; + private readonly accessKeySecret; + constructor(builder: StaticAKCredentialsProviderBuilder); + getProviderName(): string; + getCredentials(): Promise; +} diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/static_ak.js b/backend/node_modules/@alicloud/credentials/dist/src/providers/static_ak.js new file mode 100644 index 0000000..38033c2 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/static_ak.js @@ -0,0 +1,61 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.StaticAKCredentialsProviderBuilder = void 0; +const credentials_1 = __importDefault(require("../credentials")); +/** + * @internal + */ +class StaticAKCredentialsProviderBuilder { + withAccessKeyId(accessKeyId) { + this.accessKeyId = accessKeyId; + return this; + } + withAccessKeySecret(accessKeySecret) { + this.accessKeySecret = accessKeySecret; + return this; + } + build() { + if (!this.accessKeyId) { + this.accessKeyId = process.env['ALIBABA_CLOUD_ACCESS_KEY_ID']; + } + if (!this.accessKeyId) { + throw new Error('the access key id is empty'); + } + if (!this.accessKeySecret) { + this.accessKeySecret = process.env['ALIBABA_CLOUD_ACCESS_KEY_SECRET']; + } + if (!this.accessKeySecret) { + throw new Error('the access key secret is empty'); + } + return new StaticAKCredentialsProvider(this); + } +} +exports.StaticAKCredentialsProviderBuilder = StaticAKCredentialsProviderBuilder; +/** + * @internal + */ +class StaticAKCredentialsProvider { + static builder() { + return new StaticAKCredentialsProviderBuilder(); + } + constructor(builder) { + this.accessKeyId = builder.accessKeyId; + this.accessKeySecret = builder.accessKeySecret; + } + getProviderName() { + return 'static_ak'; + } + async getCredentials() { + const credentials = credentials_1.default + .builder() + .withAccessKeyId(this.accessKeyId).withAccessKeySecret(this.accessKeySecret) + .withProviderName('static_ak') + .build(); + return credentials; + } +} +exports.default = StaticAKCredentialsProvider; +//# sourceMappingURL=static_ak.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/static_ak.js.map b/backend/node_modules/@alicloud/credentials/dist/src/providers/static_ak.js.map new file mode 100644 index 0000000..0f75b38 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/static_ak.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static_ak.js","sourceRoot":"","sources":["../../../src/providers/static_ak.ts"],"names":[],"mappings":";;;;;;AACA,iEAAyC;AAGzC;;GAEG;AACH,MAAa,kCAAkC;I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AC7B,KAAK,EAAE,CAAC;QACX,OAAO,WAAW,CAAC;IACrB,CAAC;CACF;AAzBD,8CAyBC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/static_sts.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/providers/static_sts.d.ts new file mode 100644 index 0000000..85afbcb --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/static_sts.d.ts @@ -0,0 +1,26 @@ +import Credentials from '../credentials'; +import CredentialsProvider from '../credentials_provider'; +/** + * @internal + */ +export declare class StaticSTSCredentialsProviderBuilder { + accessKeyId: string; + accessKeySecret: string; + securityToken: string; + withAccessKeyId(accessKeyId: string): StaticSTSCredentialsProviderBuilder; + withAccessKeySecret(accessKeySecret: string): StaticSTSCredentialsProviderBuilder; + withSecurityToken(securityToken: string): StaticSTSCredentialsProviderBuilder; + build(): StaticSTSCredentialsProvider; +} +/** + * @internal + */ +export default class StaticSTSCredentialsProvider implements CredentialsProvider { + static builder(): StaticSTSCredentialsProviderBuilder; + private readonly accessKeyId; + private readonly accessKeySecret; + private readonly securityToken; + constructor(builder: StaticSTSCredentialsProviderBuilder); + getProviderName(): string; + getCredentials(): Promise; +} diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/static_sts.js b/backend/node_modules/@alicloud/credentials/dist/src/providers/static_sts.js new file mode 100644 index 0000000..fe1a3ed --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/static_sts.js @@ -0,0 +1,72 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.StaticSTSCredentialsProviderBuilder = void 0; +const credentials_1 = __importDefault(require("../credentials")); +/** + * @internal + */ +class StaticSTSCredentialsProviderBuilder { + withAccessKeyId(accessKeyId) { + this.accessKeyId = accessKeyId; + return this; + } + withAccessKeySecret(accessKeySecret) { + this.accessKeySecret = accessKeySecret; + return this; + } + withSecurityToken(securityToken) { + this.securityToken = securityToken; + return this; + } + build() { + if (!this.accessKeyId) { + this.accessKeyId = process.env['ALIBABA_CLOUD_ACCESS_KEY_ID']; + } + if (!this.accessKeyId) { + throw new Error('the access key id is empty'); + } + if (!this.accessKeySecret) { + this.accessKeySecret = process.env['ALIBABA_CLOUD_ACCESS_KEY_SECRET']; + } + if (!this.accessKeySecret) { + throw new Error('the access key secret is empty'); + } + if (!this.securityToken) { + this.securityToken = process.env['ALIBABA_CLOUD_SECURITY_TOKEN']; + } + if (!this.securityToken) { + throw new Error('the security token is empty'); + } + return new StaticSTSCredentialsProvider(this); + } +} +exports.StaticSTSCredentialsProviderBuilder = StaticSTSCredentialsProviderBuilder; +/** + * @internal + */ +class StaticSTSCredentialsProvider { + static builder() { + return new StaticSTSCredentialsProviderBuilder(); + } + constructor(builder) { + this.accessKeyId = builder.accessKeyId; + this.accessKeySecret = builder.accessKeySecret; + this.securityToken = builder.securityToken; + } + getProviderName() { + return 'static_sts'; + } + async getCredentials() { + return credentials_1.default.builder() + .withAccessKeyId(this.accessKeyId) + .withAccessKeySecret(this.accessKeySecret) + .withSecurityToken(this.securityToken) + .withProviderName(this.getProviderName()) + .build(); + } +} +exports.default = StaticSTSCredentialsProvider; +//# sourceMappingURL=static_sts.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/static_sts.js.map b/backend/node_modules/@alicloud/credentials/dist/src/providers/static_sts.js.map new file mode 100644 index 0000000..b8c7b69 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/static_sts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static_sts.js","sourceRoot":"","sources":["../../../src/providers/static_sts.ts"],"names":[],"mappings":";;;;;;AACA,iEAAyC;AAGzC;;GAEG;AACH,MAAa,mCAAmC;IAKvC,eAAe,CAAC,WAAmB;QACxC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,OAAO,IAAI,CAAC;IACd,CAA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AG,OAAO,CAAC,aAAa,CAAC;IAC7C,CAAC;IAED,eAAe;QACb,OAAO,YAAY,CAAC;IACtB,CAAC;IAED,KAAK,CAAC,cAAc;QAClB,OAAO,qBAAW,CAAC,OAAO,EAAE;aACzB,eAAe,CAAC,IAAI,CAAC,WAAW,CAAC;aACjC,mBAAmB,CAAC,IAAI,CAAC,eAAe,CAAC;aACzC,iBAAiB,CAAC,IAAI,CAAC,aAAa,CAAC;aACrC,gBAAgB,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC;aACxC,KAAK,EAAE,CAAC;IACb,CAAC;CACF;AA3BD,+CA2BC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/time.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/providers/time.d.ts new file mode 100644 index 0000000..2a1408b --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/time.d.ts @@ -0,0 +1,7 @@ +/** + * Parses a UTC format date time string and returns the number of milliseconds between midnight, + * January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date. + * @param value A UTC format date time string. For example: 2015-04-09T11:52:19Z + * @returns The number of milliseconds between 1970.01.01 to the specified date. + */ +export declare function parseUTC(value: string): number; diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/time.js b/backend/node_modules/@alicloud/credentials/dist/src/providers/time.js new file mode 100644 index 0000000..981721f --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/time.js @@ -0,0 +1,85 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.parseUTC = void 0; +/** + * Parses a UTC format date time string and returns the number of milliseconds between midnight, + * January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date. + * @param value A UTC format date time string. For example: 2015-04-09T11:52:19Z + * @returns The number of milliseconds between 1970.01.01 to the specified date. + */ +function parseUTC(value) { + if (!value) { + throw new Error('invalid UTC format time string'); + } + if (value.length === 20) { + // 2024-08-30T07:03:06Z + if (value[4] !== '-' || value[7] !== '-' || value[10] !== 'T' || value[13] !== ':' || value[16] !== ':' || value[19] !== 'Z') { + throw new Error('invalid UTC format date string'); + } + } + else if (value.length === 24) { + // 2024-08-30T07:03:06.117Z + if (value[4] !== '-' || value[7] !== '-' || value[10] !== 'T' || value[13] !== ':' || value[16] !== ':' || value[19] !== '.' || value[23] !== 'Z') { + throw new Error('invalid UTC format date string'); + } + } + else { + throw new Error('invalid UTC format time string'); + } + const yearStr = value.slice(0, 4); + const year = Number.parseInt(yearStr, 10); + if (isNaN(year)) { + throw new Error('invalid year string'); + } + const monthStr = value.slice(5, 7); + const month = Number.parseInt(monthStr, 10); + if (isNaN(month)) { + throw new Error('invalid month string'); + } + if (month < 1 || month > 12) { + throw new Error('invalid month value'); + } + const dateStr = value.slice(8, 10); + const date = Number.parseInt(dateStr, 10); + if (isNaN(date)) { + throw new Error('invalid date string'); + } + if (date < 1 || date > 31) { + throw new Error('invalid date value'); + } + const hoursStr = value.slice(11, 13); + const hours = Number.parseInt(hoursStr, 10); + if (isNaN(hours)) { + throw new Error('invalid hours string'); + } + if (hours < 0 || hours > 24) { + throw new Error('invalid hours value'); + } + const minutesStr = value.slice(14, 16); + const minutes = Number.parseInt(minutesStr, 10); + if (isNaN(minutes)) { + throw new Error('invalid minutes string'); + } + if (minutes < 0 || minutes > 60) { + throw new Error('invalid minutes value'); + } + const secondsStr = value.slice(17, 19); + const seconds = Number.parseInt(secondsStr, 10); + if (isNaN(seconds)) { + throw new Error('invalid seconds string'); + } + if (seconds < 0 || seconds > 60) { + throw new Error('invalid seconds value'); + } + if (value.length === 24) { + const msStr = value.slice(20, 23); + const ms = Number.parseInt(msStr, 10); + if (isNaN(ms)) { + throw new Error('invalid ms string'); + } + return Date.UTC(year, month - 1, date, hours, minutes, seconds, ms); + } + return Date.UTC(year, month - 1, date, hours, minutes, seconds); +} +exports.parseUTC = parseUTC; +//# sourceMappingURL=time.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/time.js.map b/backend/node_modules/@alicloud/credentials/dist/src/providers/time.js.map new file mode 100644 index 0000000..fa7ff90 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/time.js.map @@ -0,0 +1 @@ +{"version":3,"file":"time.js","sourceRoot":"","sources":["../../../src/providers/time.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,SAAgB,QAAQ,CAAC,KAAa;IACpC,IAAI,CAAC,KAAK,EAAE;QACV,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;KACnD;IAED,IAAI,KAAK,CAAC,MAAM,KAAK,EAAE,EAAE;QACvB,uBAAuB;QACvB,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI,KAAK,CAAC,EAAE,CAAC,KAAK,GAAG,IAAI,KAAK,CAAC,EAAE,CAAC,KAAK,GAAG,IAAI,KAAK,CAAC,EAAE,CAAC,KAAK,GAAG,IAAI,KAAK,CAAC,EAAE,CAAC,KAAK,GAAG,EAAE;YAC5H,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;SACnD;KACF;SAAM,IAAI,KAAK,CAAC,MAAM,KAAK,EAAE,EAAE;QAC9B,2BAA2B;QAC3B,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI,KAAK,CAAC,EAAE,CAAC,KAAK,GAAG,IAAI,KAAK,CAAC,EAAE,CAAC,KAAK,GAAG,IAAI,KAAK,CAAC,EAAE,CAAC,KAAK,GAAG,IAAI,KAAK,CAAC,EAAE,CAAC,KAAK,GAAG,IAAI,KAAK,CAAC,EAAE,CAAC,KAAK,GAAG,EAAE;YACjJ,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;SACnD;KACF;SAAM;QACL,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;KACnD;IAED,M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AE,KAAK,GAAG,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC;KACrE;IAED,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,GAAG,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;AAClE,CAAC;AAtFD,4BAsFC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/uri.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/providers/uri.d.ts new file mode 100644 index 0000000..d2ae175 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/uri.d.ts @@ -0,0 +1,27 @@ +import CredentialsProvider from '../credentials_provider'; +import { SessionCredentialProvider } from './session'; +/** + * @internal + */ +export default class URICredentialsProvider extends SessionCredentialProvider implements CredentialsProvider { + static builder(): URICredentialsProviderBuilder; + private readonly credentialsURI; + private doRequest; + private readonly readTimeout; + private readonly connectTimeout; + constructor(builder: URICredentialsProviderBuilder); + getProviderName(): string; + private getCredentialsUri; +} +/** + * @internal + */ +export declare class URICredentialsProviderBuilder { + credentialsURI: string; + readTimeout?: number; + connectTimeout?: number; + withCredentialsURI(credentialsURI: string): URICredentialsProviderBuilder; + withReadTimeout(readTimeout: number): URICredentialsProviderBuilder; + withConnectTimeout(connectTimeout: number): URICredentialsProviderBuilder; + build(): URICredentialsProvider; +} diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/uri.js b/backend/node_modules/@alicloud/credentials/dist/src/providers/uri.js new file mode 100644 index 0000000..e718ecf --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/uri.js @@ -0,0 +1,73 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.URICredentialsProviderBuilder = void 0; +const session_1 = require("./session"); +const http_1 = require("./http"); +/** + * @internal + */ +class URICredentialsProvider extends session_1.SessionCredentialProvider { + static builder() { + return new URICredentialsProviderBuilder(); + } + constructor(builder) { + super(session_1.STALE_TIME); + this.doRequest = http_1.doRequest; + this.refresher = this.getCredentialsUri; + this.credentialsURI = builder.credentialsURI; + this.readTimeout = builder.readTimeout; + this.connectTimeout = builder.connectTimeout; + } + getProviderName() { + return 'credential_uri'; + } + async getCredentialsUri() { + const builder = http_1.Request.builder() + .withMethod('GET') + .withURL(this.credentialsURI) + .withReadTimeout(this.readTimeout || 10000) + .withConnectTimeout(this.connectTimeout || 5000); + const request = builder.build(); + const response = await this.doRequest(request); + if (response.statusCode !== 200) { + throw new Error(`get sts token failed, httpStatus: ${response.statusCode}, message = ${response.body.toString('utf8')}.`); + } + let data; + try { + data = JSON.parse(response.body.toString('utf8')); + } + catch (ex) { + throw new Error(`get sts token failed, json parse failed: ${ex.message}, result: ${response.body.toString('utf8')}.`); + } + if (!data || !data.AccessKeyId || !data.AccessKeySecret || !data.SecurityToken) { + throw new Error(`error retrieving credentials from credentialsURI result: ${JSON.stringify(data)}.`); + } + return new session_1.Session(data.AccessKeyId, data.AccessKeySecret, data.SecurityToken, data.Expiration); + } +} +exports.default = URICredentialsProvider; +/** + * @internal + */ +class URICredentialsProviderBuilder { + withCredentialsURI(credentialsURI) { + this.credentialsURI = credentialsURI; + return this; + } + withReadTimeout(readTimeout) { + this.readTimeout = readTimeout; + return this; + } + withConnectTimeout(connectTimeout) { + this.connectTimeout = connectTimeout; + return this; + } + build() { + if (!this.credentialsURI) { + this.credentialsURI = process.env.ALIBABA_CLOUD_CREDENTIALS_URI; + } + return new URICredentialsProvider(this); + } +} +exports.URICredentialsProviderBuilder = URICredentialsProviderBuilder; +//# sourceMappingURL=uri.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/providers/uri.js.map b/backend/node_modules/@alicloud/credentials/dist/src/providers/uri.js.map new file mode 100644 index 0000000..be0da9e --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/providers/uri.js.map @@ -0,0 +1 @@ +{"version":3,"file":"uri.js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arn_credential.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/ram_role_arn_credential.d.ts new file mode 100644 index 0000000..0fac00d --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/ram_role_arn_credential.d.ts @@ -0,0 +1,16 @@ +import SessionCredential from './session_credential'; +import Config from './config'; +export default class RamRoleArnCredential extends SessionCredential { + roleArn: string; + policy: string; + durationSeconds: number; + roleSessionName: string; + runtime: { + [key: string]: any; + }; + host: string; + constructor(config: Config, runtime?: { + [key: string]: any; + }); + updateCredential(): Promise; +} diff --git a/backend/node_modules/@alicloud/credentials/dist/src/ram_role_arn_credential.js b/backend/node_modules/@alicloud/credentials/dist/src/ram_role_arn_credential.js new file mode 100644 index 0000000..95694b3 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/ram_role_arn_credential.js @@ -0,0 +1,51 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const session_credential_1 = __importDefault(require("./session_credential")); +const http_1 = require("./util/http"); +const config_1 = __importDefault(require("./config")); +class RamRoleArnCredential extends session_credential_1.default { + constructor(config, runtime = {}) { + if (!config.accessKeyId) { + throw new Error('Missing required accessKeyId option in config for ram_role_arn'); + } + if (!config.accessKeySecret) { + throw new Error('Missing required accessKeySecret option in config for ram_role_arn'); + } + if (!config.roleArn) { + throw new Error('Missing required roleArn option in config for ram_role_arn'); + } + const conf = new config_1.default({ + type: 'ram_role_arn', + accessKeyId: config.accessKeyId, + accessKeySecret: config.accessKeySecret, + securityToken: config.securityToken + }); + super(conf); + this.roleArn = config.roleArn; + this.policy = config.policy; + this.durationSeconds = config.roleSessionExpiration || 3600; + this.roleSessionName = config.roleSessionName || 'role_session_name'; + this.runtime = runtime; + this.host = 'https://sts.aliyuncs.com'; + } + async updateCredential() { + const params = { + accessKeyId: this.accessKeyId, + securityToken: this.securityToken, + roleArn: this.roleArn, + action: 'AssumeRole', + durationSeconds: this.durationSeconds, + roleSessionName: this.roleSessionName + }; + if (this.policy) { + params.policy = this.policy; + } + const json = await (0, http_1.request)(this.host, params, this.runtime, this.accessKeySecret); + this.sessionCredential = json.Credentials; + } +} +exports.default = RamRoleArnCredential; +//# sourceMappingURL=ram_role_arn_credential.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/ram_role_arn_credential.js.map b/backend/node_modules/@alicloud/credentials/dist/src/ram_role_arn_credential.js.map new file mode 100644 index 0000000..124d856 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/ram_role_arn_credential.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ram_role_arn_credential.js","sourceRoot":"","sources":["../../src/ram_role_arn_credential.ts"],"names":[],"mappings":";;;;;AAAA,8EAAqD;AACrD,sCAAsC;AACtC,sDAA8B;AAE9B,MAAqB,oBAAqB,SAAQ,4BAAiB;IAQjE,YAAY,MAAc,EAAE,UAAgC,EAAE;QAC5D,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE;YACvB,MAAM,IAAI,KAAK,CAAC,gEAAgE,CAAC,CAAC;SACnF;QAED,IAAI,CAAC,MAAM,CAAC,eAAe,EAAE;YAC3B,MAAM,IAAI,KAAK,CAAC,oEAAoE,CAAC,CAAC;SACvF;QAED,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE;YACnB,MAAM,IAAI,KAAK,CAAC,4DAA4D,CAAC,CAAC;SAC/E;QAED,MAAM,IAAI,GAAG,IAAI,gBAAM,CAAC;YACtB,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,MAAM,CAAC,WAAW;YAC/B,eAAe,EAAE,MAAM,CAAC,eAAe;YACvC,aAAa,EAAE,MAAM,CAAC,aAAa;SACpC,CAAC,CAAC;QACH,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QAC5B,IAAI,CAAC,eAAe,GAAG,MAAM,CAAC,qBAAqB,IAAI,IAAI,CAAC;QAC5D,IAAI,CAAC,eAAe,GAAG,MAAM,CAAC,eAAe,IAAI,mBAAmB,CAAC;QACrE,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,0BAA0B,CAAC;IACzC,CAAC;IAED,KAAK,CAAC,gBAAgB;QACpB,MAAM,MAAM,GAAyB;YACnC,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,MAAM,EAAE,YAAY;YACpB,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,eAAe,EAAE,IAAI,CAAC,eAAe;SACtC,CAAC;QACF,IAAI,IAAI,CAAC,MAAM,EAAE;YACf,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;SAC7B;QACD,MAAM,IAAI,GAAG,MAAM,IAAA,cAAO,EAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;QAClF,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,WAAW,CAAC;IAC5C,CAAC;CACF;AAnDD,uCAmDC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/rsa_key_pair_credential.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/rsa_key_pair_credential.d.ts new file mode 100644 index 0000000..da91239 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/rsa_key_pair_credential.d.ts @@ -0,0 +1,9 @@ +import SessionCredential from './session_credential'; +import ICredential from './icredential'; +export default class RsaKeyPairCredential extends SessionCredential implements ICredential { + privateKey: string; + publicKeyId: string; + roleName: string; + constructor(publicKeyId: string, privateKeyFile: string); + updateCredential(): Promise; +} diff --git a/backend/node_modules/@alicloud/credentials/dist/src/rsa_key_pair_credential.js b/backend/node_modules/@alicloud/credentials/dist/src/rsa_key_pair_credential.js new file mode 100644 index 0000000..fc5a2d5 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/rsa_key_pair_credential.js @@ -0,0 +1,66 @@ +"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 (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const fs_1 = __importDefault(require("fs")); +const session_credential_1 = __importDefault(require("./session_credential")); +const utils = __importStar(require("./util/utils")); +const http_1 = require("./util/http"); +const config_1 = __importDefault(require("./config")); +const SECURITY_CRED_URL = 'http://100.100.100.200/latest/meta-data/ram/security-credentials/'; +class RsaKeyPairCredential extends session_credential_1.default { + constructor(publicKeyId, privateKeyFile) { + if (!publicKeyId) { + throw new Error('Missing required publicKeyId option in config for rsa_key_pair'); + } + if (!privateKeyFile) { + throw new Error('Missing required privateKeyFile option in config for rsa_key_pair'); + } + if (!fs_1.default.existsSync(privateKeyFile)) { + throw new Error(`privateKeyFile ${privateKeyFile} cannot be empty`); + } + const conf = new config_1.default({ + type: 'rsa_key_pair' + }); + super(conf); + this.privateKey = utils.parseFile(privateKeyFile); + this.publicKeyId = publicKeyId; + } + async updateCredential() { + const url = SECURITY_CRED_URL + this.roleName; + const json = await (0, http_1.request)(url, { + accessKeyId: this.publicKeyId, + action: 'GenerateSessionAccessKey', + durationSeconds: 3600, + signatureMethod: 'SHA256withRSA', + signatureType: 'PRIVATEKEY', + }, {}, this.privateKey); + this.sessionCredential = json.Credentials; + } +} +exports.default = RsaKeyPairCredential; +//# sourceMappingURL=rsa_key_pair_credential.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/rsa_key_pair_credential.js.map b/backend/node_modules/@alicloud/credentials/dist/src/rsa_key_pair_credential.js.map new file mode 100644 index 0000000..c536027 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/rsa_key_pair_credential.js.map @@ -0,0 +1 @@ +{"version":3,"file":"rsa_key_pair_credential.js","sourceRoot":"","sources":["../../src/rsa_key_pair_credential.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAoB;AACpB,8EAAqD;AACrD,oDAAsC;AACtC,sCAAsC;AAEtC,sDAA8B;AAE9B,MAAM,iBAAiB,GAAG,mEAAmE,CAAC;AAE9F,MAAqB,oBAAqB,SAAQ,4BAAiB;IAKjE,YAAY,WAAmB,EAAE,cAAsB;QACrD,IAAI,CAAC,WAAW,EAAE;YAChB,MAAM,IAAI,KAAK,CAAC,gEAAgE,CAAC,CAAC;SACnF;QAED,IAAI,CAAC,cAAc,EAAE;YACnB,MAAM,IAAI,KAAK,CAAC,mEAAmE,CAAC,CAAC;SACtF;QAED,IAAI,CAAC,YAAE,CAAC,UAAU,CAAC,cAAc,CAAC,EAAE;YAClC,MAAM,IAAI,KAAK,CAAC,kBAAkB,cAAc,kBAAkB,CAAC,CAAC;SACrE;QAED,MAAM,IAAI,GAAG,IAAI,gBAAM,CAAC;YACtB,IAAI,EAAE,cAAc;SACrB,CAAC,CAAC;QACH,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QAClD,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAED,KAAK,CAAC,gBAAgB;QACpB,MAAM,GAAG,GAAG,iBAAiB,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9C,MAAM,IAAI,GAAG,MAAM,IAAA,cAAO,EAAC,GAAG,EAAE;YAC9B,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,MAAM,EAAE,0BAA0B;YAClC,eAAe,EAAE,IAAI;YACrB,eAAe,EAAE,eAAe;YAChC,aAAa,EAAE,YAAY;SAC5B,EAAE,EAAE,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;QACxB,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,WAAW,CAAC;IAC5C,CAAC;CACF;AArCD,uCAqCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/session_credential.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/session_credential.d.ts new file mode 100644 index 0000000..f20018d --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/session_credential.d.ts @@ -0,0 +1,15 @@ +import DefaultCredential from './default_credential'; +import Config from './config'; +import CredentialModel from './credential_model'; +export default class SessionCredential extends DefaultCredential { + sessionCredential: any; + durationSeconds: number; + constructor(config: Config); + updateCredential(): Promise; + ensureCredential(): Promise; + getAccessKeyId(): Promise; + getAccessKeySecret(): Promise; + getSecurityToken(): Promise; + needUpdateCredential(): boolean; + getCredential(): Promise; +} diff --git a/backend/node_modules/@alicloud/credentials/dist/src/session_credential.js b/backend/node_modules/@alicloud/credentials/dist/src/session_credential.js new file mode 100644 index 0000000..bf89199 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/session_credential.js @@ -0,0 +1,88 @@ +"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 (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const default_credential_1 = __importDefault(require("./default_credential")); +const utils = __importStar(require("./util/utils")); +const config_1 = __importDefault(require("./config")); +const credential_model_1 = __importDefault(require("./credential_model")); +class SessionCredential extends default_credential_1.default { + constructor(config) { + const conf = new config_1.default({ + type: config.type, + accessKeyId: config.accessKeyId, + accessKeySecret: config.accessKeySecret, + securityToken: config.securityToken + }); + super(conf); + this.sessionCredential = null; + this.durationSeconds = config.durationSeconds || 3600; + } + async updateCredential() { + throw new Error('need implemented in sub-class'); + } + async ensureCredential() { + const needUpdate = this.needUpdateCredential(); + if (needUpdate) { + await this.updateCredential(); + } + } + async getAccessKeyId() { + await this.ensureCredential(); + return this.sessionCredential.AccessKeyId; + } + async getAccessKeySecret() { + await this.ensureCredential(); + return this.sessionCredential.AccessKeySecret; + } + async getSecurityToken() { + await this.ensureCredential(); + return this.sessionCredential.SecurityToken; + } + needUpdateCredential() { + if (!this.sessionCredential || !this.sessionCredential.Expiration || !this.sessionCredential.AccessKeyId || !this.sessionCredential.AccessKeySecret || !this.sessionCredential.SecurityToken) { + return true; + } + const expireTime = utils.timestamp(new Date(), this.durationSeconds * 0.05 * 1000); + if (this.sessionCredential.Expiration < expireTime) { + return true; + } + return false; + } + async getCredential() { + await this.ensureCredential(); + return new credential_model_1.default({ + accessKeyId: this.sessionCredential.AccessKeyId, + accessKeySecret: this.sessionCredential.AccessKeySecret, + securityToken: this.sessionCredential.SecurityToken, + bearerToken: this.bearerToken, + type: this.type, + }); + } +} +exports.default = SessionCredential; +//# sourceMappingURL=session_credential.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/session_credential.js.map b/backend/node_modules/@alicloud/credentials/dist/src/session_credential.js.map new file mode 100644 index 0000000..86bdc79 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/session_credential.js.map @@ -0,0 +1 @@ +{"version":3,"file":"session_credential.js","sourceRoot":"","sources":["../../src/session_credential.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8EAAqD;AACrD,oDAAsC;AACtC,sDAA8B;AAC9B,0EAAiD;AAEjD,MAAqB,iBAAkB,SAAQ,4BAAiB;IAI9D,YAAY,MAAc;QACxB,MAAM,IAAI,GAAG,IAAI,gBAAM,CAAC;YACtB,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,WAAW,EAAE,MAAM,CAAC,WAAW;YAC/B,eAAe,EAAE,MAAM,CAAC,eAAe;YACvC,aAAa,EAAE,MAAM,CAAC,aAAa;SACpC,CAAC,CAAC;QACH,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC;QAC9B,IAAI,CAAC,eAAe,GAAG,MAAM,CAAC,eAAe,IAAI,IAAI,CAAC;IACxD,CAAC;IAED,KAAK,CAAC,gBAAgB;QACpB,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;IACnD,CAAC;IAED,KAAK,CAAC,gBAAgB;QACpB,MAAM,UAAU,GAAG,IAA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e;YACvD,aAAa,EAAE,IAAI,CAAC,iBAAiB,CAAC,aAAa;YACnD,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAC,CAAC;IACL,CAAC;CACF;AA/DD,oCA+DC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/sts_token_credential.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/sts_token_credential.d.ts new file mode 100644 index 0000000..1fffac8 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/sts_token_credential.d.ts @@ -0,0 +1,5 @@ +import DefaultCredential from './default_credential'; +import ICredential from './icredential'; +export default class StsTokenCredential extends DefaultCredential implements ICredential { + constructor(accessKeyId: string, accessKeySecret: string, securityToken: string); +} diff --git a/backend/node_modules/@alicloud/credentials/dist/src/sts_token_credential.js b/backend/node_modules/@alicloud/credentials/dist/src/sts_token_credential.js new file mode 100644 index 0000000..35b810d --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/sts_token_credential.js @@ -0,0 +1,29 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const default_credential_1 = __importDefault(require("./default_credential")); +const config_1 = __importDefault(require("./config")); +class StsTokenCredential extends default_credential_1.default { + constructor(accessKeyId, accessKeySecret, securityToken) { + if (!accessKeyId) { + throw new Error('Missing required accessKeyId option in config for sts'); + } + if (!accessKeySecret) { + throw new Error('Missing required accessKeySecret option in config for sts'); + } + if (!securityToken) { + throw new Error('Missing required securityToken option in config for sts'); + } + const conf = new config_1.default({ + type: 'sts', + accessKeyId, + accessKeySecret, + securityToken + }); + super(conf); + } +} +exports.default = StsTokenCredential; +//# sourceMappingURL=sts_token_credential.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/sts_token_credential.js.map b/backend/node_modules/@alicloud/credentials/dist/src/sts_token_credential.js.map new file mode 100644 index 0000000..eef6545 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/sts_token_credential.js.map @@ -0,0 +1 @@ +{"version":3,"file":"sts_token_credential.js","sourceRoot":"","sources":["../../src/sts_token_credential.ts"],"names":[],"mappings":";;;;;AAAA,8EAAqD;AAErD,sDAA8B;AAE9B,MAAqB,kBAAmB,SAAQ,4BAAiB;IAC/D,YAAY,WAAmB,EAAE,eAAuB,EAAE,aAAqB;QAC7E,IAAI,CAAC,WAAW,EAAE;YAChB,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;SAC1E;QAED,IAAI,CAAC,eAAe,EAAE;YACpB,MAAM,IAAI,KAAK,CAAC,2DAA2D,CAAC,CAAC;SAC9E;QAED,IAAI,CAAC,aAAa,EAAE;YAClB,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAC;SAC5E;QACD,MAAM,IAAI,GAAG,IAAI,gBAAM,CAAC;YACtB,IAAI,EAAE,KAAK;YACX,WAAW;YACX,eAAe;YACf,aAAa;SACd,CAAC,CAAC;QACH,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;CACF;AArBD,qCAqBC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/uri_credential.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/uri_credential.d.ts new file mode 100644 index 0000000..20f07ae --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/uri_credential.d.ts @@ -0,0 +1,9 @@ +import ICredential from './icredential'; +import SessionCredential from './session_credential'; +export default class URICredential extends SessionCredential implements ICredential { + credentialsURI: string; + readTimeout?: number; + connectTimeout?: number; + constructor(uri: string); + updateCredential(): Promise; +} diff --git a/backend/node_modules/@alicloud/credentials/dist/src/uri_credential.js b/backend/node_modules/@alicloud/credentials/dist/src/uri_credential.js new file mode 100644 index 0000000..e76e9cb --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/uri_credential.js @@ -0,0 +1,52 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const httpx_1 = __importDefault(require("httpx")); +const config_1 = __importDefault(require("./config")); +const session_credential_1 = __importDefault(require("./session_credential")); +class URICredential extends session_credential_1.default { + constructor(uri) { + const conf = new config_1.default({ + type: 'credentials_uri', + credentialsURI: uri + }); + super(conf); + if (!uri) { + this.credentialsURI = process.env['ALIBABA_CLOUD_CREDENTIALS_URI']; + } + else { + this.credentialsURI = uri; + } + if (!this.credentialsURI) { + throw new Error('Missing required credentialsURI option in config or environment variable for credentials_uri'); + } + } + async updateCredential() { + const url = this.credentialsURI; + const response = await httpx_1.default.request(url, { readTimeout: this.readTimeout, connectTimeout: this.connectTimeout }); + if (response.statusCode !== 200) { + throw new Error(`Get credentials from ${url} failed, status code is ${response.statusCode}`); + } + const body = (await httpx_1.default.read(response, 'utf8')); + let json; + try { + json = JSON.parse(body); + } + catch (ex) { + throw new Error(`Get credentials from ${url} failed, unmarshal response failed, JSON is: ${body}`); + } + if (json.Code !== 'Success') { + throw new Error(`Get credentials from ${url} failed, Code is ${json.Code}`); + } + this.sessionCredential = { + AccessKeyId: json.AccessKeyId, + AccessKeySecret: json.AccessKeySecret, + Expiration: json.Expiration, + SecurityToken: json.SecurityToken, + }; + } +} +exports.default = URICredential; +//# sourceMappingURL=uri_credential.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/uri_credential.js.map b/backend/node_modules/@alicloud/credentials/dist/src/uri_credential.js.map new file mode 100644 index 0000000..d13bfe7 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/uri_credential.js.map @@ -0,0 +1 @@ +{"version":3,"file":"uri_credential.js","sourceRoot":"","sources":["../../src/uri_credential.ts"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAE1B,sDAA8B;AAE9B,8EAAqD;AAErD,MAAqB,aAAc,SAAQ,4B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I,CAAC,IAAI,EAAE,CAAC,CAAC;SAC7E;QAED,IAAI,CAAC,iBAAiB,GAAG;YACvB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,aAAa,EAAE,IAAI,CAAC,aAAa;SAClC,CAAC;IACJ,CAAC;CACF;AAhDD,gCAgDC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/util/helper.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/util/helper.d.ts new file mode 100644 index 0000000..37802d9 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/util/helper.d.ts @@ -0,0 +1,2 @@ +export declare const DEFAULT_UA: string; +export declare const DEFAULT_CLIENT: string; diff --git a/backend/node_modules/@alicloud/credentials/dist/src/util/helper.js b/backend/node_modules/@alicloud/credentials/dist/src/util/helper.js new file mode 100644 index 0000000..70c9a50 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/util/helper.js @@ -0,0 +1,35 @@ +"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 (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DEFAULT_CLIENT = exports.DEFAULT_UA = void 0; +const os = __importStar(require("os")); +const package_json_1 = __importDefault(require("../../package.json")); +exports.DEFAULT_UA = `AlibabaCloud (${os.platform()}; ${os.arch()}) ` + + `Node.js/${process.version} Core/${package_json_1.default.version}`; +exports.DEFAULT_CLIENT = `Node.js(${process.version}), ${package_json_1.default.name}: ${package_json_1.default.version}`; +//# sourceMappingURL=helper.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/util/helper.js.map b/backend/node_modules/@alicloud/credentials/dist/src/util/helper.js.map new file mode 100644 index 0000000..020b950 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/util/helper.js.map @@ -0,0 +1 @@ +{"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../src/util/helper.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,sEAAqC;AAExB,QAAA,UAAU,GAAG,iBAAiB,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI;IACtE,WAAW,OAAO,CAAC,OAAO,SAAS,sBAAG,CAAC,OAAO,EAAE,CAAC;AAExC,QAAA,cAAc,GAAG,WAAW,OAAO,CAAC,OAAO,MAAM,sBAAG,CAAC,IAAI,KAAK,sBAAG,CAAC,OAAO,EAAE,CAAC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/util/http.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/util/http.d.ts new file mode 100644 index 0000000..a78e339 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/util/http.d.ts @@ -0,0 +1,5 @@ +export declare function request(host: string, params?: { + [key: string]: any; +}, opts?: { + [key: string]: any; +}, accessKeySecret?: string): Promise; diff --git a/backend/node_modules/@alicloud/credentials/dist/src/util/http.js b/backend/node_modules/@alicloud/credentials/dist/src/util/http.js new file mode 100644 index 0000000..5d5b76d --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/util/http.js @@ -0,0 +1,157 @@ +"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 (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.request = void 0; +const httpx_1 = __importDefault(require("httpx")); +const kitx = __importStar(require("kitx")); +const helper = __importStar(require("./helper")); +const utils = __importStar(require("./utils")); +const STATUS_CODE = new Set([200, '200', 'OK', 'Success']); +function firstLetterUpper(str) { + return str.slice(0, 1).toUpperCase() + str.slice(1); +} +function formatParams(params) { + const keys = Object.keys(params); + const newParams = {}; + for (const key of keys) { + newParams[firstLetterUpper(key)] = params[key]; + } + return newParams; +} +function encode(str) { + const result = encodeURIComponent(str); + return result.replace(/!/g, '%21') + .replace(/'/g, '%27') + .replace(/\(/g, '%28') + .replace(/\)/g, '%29') + .replace(/\*/g, '%2A'); +} +function replaceRepeatList(target, key, repeat) { + for (let i = 0; i < repeat.length; i++) { + const item = repeat[i]; + if (item && typeof item === 'object') { + const keys = Object.keys(item); + for (const itemKey of keys) { + target[`${key}.${i + 1}.${itemKey}`] = item[itemKey]; + } + } + else { + target[`${key}.${i + 1}`] = item; + } + } +} +function flatParams(params) { + const target = {}; + const keys = Object.keys(params); + for (const key of keys) { + const value = params[key]; + if (Array.isArray(value)) { + replaceRepeatList(target, key, value); + } + else { + target[key] = value; + } + } + return target; +} +function normalize(params) { + const list = []; + const flated = flatParams(params); + const keys = Object.keys(flated).sort(); + for (const key of keys) { + const value = flated[key]; + list.push([encode(key), encode(value)]); // push [] + } + return list; +} +function canonicalize(normalized) { + const fields = []; + for (const [key, value] of normalized) { + fields.push(key + '=' + value); + } + return fields.join('&'); +} +function _buildParams() { + const defaultParams = { + Format: 'JSON', + SignatureMethod: 'HMAC-SHA1', + SignatureNonce: kitx.makeNonce(), + SignatureVersion: '1.0', + Timestamp: utils.timestamp(), + Version: '2015-04-01', + RegionId: 'cn-hangzhou' + }; + return defaultParams; +} +async function request(host, params = {}, opts = {}, accessKeySecret) { + // 1. compose params and opts + let options = Object.assign({ headers: { + 'x-sdk-client': helper.DEFAULT_CLIENT, + 'user-agent': helper.DEFAULT_UA + } }, opts); + // format params until formatParams is false + if (options.formatParams !== false) { + params = formatParams(params); + } + params = Object.assign(Object.assign({}, _buildParams()), params); + // 2. calculate signature + const method = (opts.method || 'GET').toUpperCase(); + const normalized = normalize(params); + if (!options.anonymous) { + const canonicalized = canonicalize(normalized); + // 2.1 get string to sign + const stringToSign = `${method}&${encode('/')}&${encode(canonicalized)}`; + // 2.2 get signature + const key = accessKeySecret + '&'; + const signature = kitx.sha1(stringToSign, key, 'base64'); + // add signature + normalized.push(['Signature', encode(signature)]); + } + // 3. generate final url + const url = opts.method === 'POST' ? `${host}/` : `${host}/?${canonicalize(normalized)}`; + // 4. send request + if (opts.method === 'POST') { + opts.headers = opts.headers || {}; + opts.headers['content-type'] = 'application/x-www-form-urlencoded'; + opts.data = canonicalize(normalized); + } + const response = await httpx_1.default.request(url, opts); + const buffer = await httpx_1.default.read(response, 'utf8'); + const json = JSON.parse(buffer); + if (json.Code && !STATUS_CODE.has(json.Code)) { + const err = new Error(`${json.Message}`); + err.name = json.Code + 'Error'; + err.data = json; + err.code = json.Code; + err.url = url; + throw err; + } + return json; +} +exports.request = request; +//# sourceMappingURL=http.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/util/http.js.map b/backend/node_modules/@alicloud/credentials/dist/src/util/http.js.map new file mode 100644 index 0000000..062a62f --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/util/http.js.map @@ -0,0 +1 @@ +{"version":3,"file":"http.js","sourceRoot":"","sources":["../../../src/util/http.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,kDAA0B;AAC1B,2CAA6B;AAC7B,iDAAmC;AACnC,+CAAiC;AAEjC,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC;AAE3D,SAAS,gBAAgB,CAAC,GAAW;IACnC,OAAO,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACtD,CAAC;AAED,SAAS,YAAY,CAAC,MAA8B;IAClD,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACjC,MAAM,SAAS,GAA8B,EAAE,CAAC;IAChD,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE;QACtB,SAAS,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;KAChD;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,SAAS,MAAM,CAAC,GAAW;IACzB,MAAM,MAAM,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAC;IAEvC,OAAO,MAAM,CAA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AAI,CAAC,OAAO,CAAC,cAAc,CAAC,GAAG,mCAAmC,CAAC;QACnE,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC,UAAU,CAAC,CAAC;KACtC;IACD,MAAM,QAAQ,GAAG,MAAM,eAAK,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IAChD,MAAM,MAAM,GAAG,MAAM,eAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAClD,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,MAAgB,CAAC,CAAC;IAC1C,IAAI,IAAI,CAAC,IAAI,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;QAC5C,MAAM,GAAG,GAAG,IAAI,KAAK,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,CAAQ,CAAC;QAChD,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC;QAC/B,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC;QAChB,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACrB,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC;QACd,MAAM,GAAG,CAAC;KACX;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AApDD,0BAoDC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/util/utils.d.ts b/backend/node_modules/@alicloud/credentials/dist/src/util/utils.d.ts new file mode 100644 index 0000000..7fc097b --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/util/utils.d.ts @@ -0,0 +1,4 @@ +export declare function timestamp(dateStr?: Date, timeChange?: number): string; +export declare function parseFile(file: string, ignoreErr?: boolean): any; +export declare function loadIni(filePath: string): Promise; +export declare function getRandomInt(max: number): number; diff --git a/backend/node_modules/@alicloud/credentials/dist/src/util/utils.js b/backend/node_modules/@alicloud/credentials/dist/src/util/utils.js new file mode 100644 index 0000000..974f64c --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/util/utils.js @@ -0,0 +1,78 @@ +"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 (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getRandomInt = exports.loadIni = exports.parseFile = exports.timestamp = void 0; +const ini = __importStar(require("ini")); +const kitx = __importStar(require("kitx")); +const fs_1 = __importDefault(require("fs")); +const util_1 = require("util"); +const readFileAsync = (0, util_1.promisify)(fs_1.default.readFile); +const accessAsync = (0, util_1.promisify)(fs_1.default.access); +function timestamp(dateStr, timeChange) { + let date = new Date(dateStr); + if (!dateStr || isNaN(date.getTime())) { + date = new Date(); + } + if (timeChange) { + date.setTime(date.getTime() + timeChange); + } + const YYYY = date.getUTCFullYear(); + const MM = kitx.pad2(date.getUTCMonth() + 1); + const DD = kitx.pad2(date.getUTCDate()); + const HH = kitx.pad2(date.getUTCHours()); + const mm = kitx.pad2(date.getUTCMinutes()); + const ss = kitx.pad2(date.getUTCSeconds()); + // 删除掉毫秒部分 + return `${YYYY}-${MM}-${DD}T${HH}:${mm}:${ss}Z`; +} +exports.timestamp = timestamp; +function parseFile(file, ignoreErr = false) { + // check read permission + try { + fs_1.default.accessSync(file, fs_1.default.constants.R_OK); + } + catch (e) { + if (ignoreErr) { + return null; + } + throw new Error('Has no read permission to credentials file'); + } + return ini.parse(fs_1.default.readFileSync(file, 'utf-8')); +} +exports.parseFile = parseFile; +async function loadIni(filePath) { + await accessAsync(filePath, fs_1.default.constants.R_OK); + const content = await readFileAsync(filePath, 'utf-8'); + return ini.parse(content); +} +exports.loadIni = loadIni; +function getRandomInt(max) { + return Math.floor(Math.random() * (max + 1)); +} +exports.getRandomInt = getRandomInt; +//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/dist/src/util/utils.js.map b/backend/node_modules/@alicloud/credentials/dist/src/util/utils.js.map new file mode 100644 index 0000000..bf8c9e5 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/dist/src/util/utils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/util/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,2CAA6B;AAC7B,4CAAoB;AACpB,+BAAiC;AAEjC,MAAM,aAAa,GAAG,IAAA,gBAAS,EAAC,YAAE,CAAC,QAAQ,CAAC,CAAC;AAC7C,MAAM,WAAW,GAAG,IAAA,gBAAS,EAAC,YAAE,CAAC,MAAM,CAAC,CAAC;AAEzC,SAAgB,SAAS,CAAC,OAAc,EAAE,UAAmB;IAC3D,IAAI,IAAI,GAAG,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC;IAC7B,IAAI,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE;QACrC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;KACnB;IACD,IAAI,UAAU,EAAE;QACd,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG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Q,EAAE,OAAO,CAAC,CAAC;IACvD,OAAO,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AAC5B,CAAC;AAJD,0BAIC;AAED,SAAgB,YAAY,CAAC,GAAW;IACtC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;AAC/C,CAAC;AAFD,oCAEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/package.json b/backend/node_modules/@alicloud/credentials/package.json new file mode 100644 index 0000000..59faae2 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/package.json @@ -0,0 +1,60 @@ +{ + "name": "@alicloud/credentials", + "version": "2.4.4", + "description": "alibaba cloud node.js sdk credentials", + "main": "dist/src/client.js", + "scripts": { + "prepublishOnly": "tsc", + "build": "tsc", + "lint": "eslint --fix ./src --ext .ts", + "test": "mocha -b -r ts-node/register test/**/*.test.ts test/*.test.ts --timeout 15000", + "test-dev": "nyc -e .ts -r=html -r=text -r=lcov mocha -b -r ts-node/register", + "cov": "nyc -e .ts -r=html -r=text -r=lcov npm run test", + "ci": "npm run cov", + "integration": "mocha -b -r ts-node/register -R spec integration/*.test.ts", + "clean": "rm -rf coverage" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/aliyun/nodejs-credentials.git" + }, + "keywords": [ + "alibaba cloud", + "sdk", + "credentials" + ], + "author": "Alibaba Cloud SDK", + "license": "MIT", + "devDependencies": { + "@types/debug": "^4.1.12", + "@types/expect.js": "^0.3.29", + "@types/ini": "^1.3.30", + "@types/mocha": "^10.0.6", + "@types/node": "^20.11.10", + "@types/rewire": "^2.5.28", + "@typescript-eslint/eslint-plugin": "^6.18.1", + "@typescript-eslint/parser": "^6.18.1", + "eslint": "^8.56.0", + "expect.js": "^0.3.1", + "mm": "^2.4.1", + "mocha": "^10.1.0", + "nyc": "^15.1.0", + "rewire": "^7.0.0", + "ts-node": "^10.9.2", + "typescript": "^4.7.4" + }, + "dependencies": { + "@alicloud/tea-typescript": "^1.8.0", + "httpx": "^2.3.3", + "ini": "^1.3.5", + "kitx": "^2.0.0" + }, + "bugs": { + "url": "https://github.com/aliyun/nodejs-credentials/issues" + }, + "homepage": "https://github.com/aliyun/nodejs-credentials#readme", + "files": [ + "src", + "dist" + ] +} diff --git a/backend/node_modules/@alicloud/credentials/src/access_key_credential.ts b/backend/node_modules/@alicloud/credentials/src/access_key_credential.ts new file mode 100644 index 0000000..9b11949 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/access_key_credential.ts @@ -0,0 +1,21 @@ +import DefaultCredential from './default_credential'; +import ICredential from './icredential'; +import Config from './config'; + +export default class AccessKeyCredential extends DefaultCredential implements ICredential { + constructor(accessKeyId: string, accessKeySecret: string) { + if (!accessKeyId) { + throw new Error('Missing required accessKeyId option in config for access_key'); + } + + if (!accessKeySecret) { + throw new Error('Missing required accessKeySecret option in config for access_key'); + } + const conf = new Config({ + type: 'access_key', + accessKeyId, + accessKeySecret + }); + super(conf); + } +} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/src/bearer_token_credential.ts b/backend/node_modules/@alicloud/credentials/src/bearer_token_credential.ts new file mode 100644 index 0000000..f598072 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/bearer_token_credential.ts @@ -0,0 +1,17 @@ +import DefaultCredential from './default_credential'; +import ICredential from './icredential'; +import Config from './config'; + +export default class BearerTokenCredential extends DefaultCredential implements ICredential { + + constructor(bearerToken: string) { + if (!bearerToken) { + throw new Error('Missing required bearerToken option in config for bearer'); + } + const conf = new Config({ + type: 'bearer' + }); + super(conf); + this.bearerToken = bearerToken; + } +} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/src/client.ts b/backend/node_modules/@alicloud/credentials/src/client.ts new file mode 100644 index 0000000..19c7811 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/client.ts @@ -0,0 +1,241 @@ +import ICredential from './icredential'; + +import RsaKeyPairCredential from './rsa_key_pair_credential'; +import BearerTokenCredential from './bearer_token_credential'; + +import Config from './config'; +import CredentialModel from './credential_model'; + +import CredentialsProvider from './credentials_provider'; +import StaticAKCredentialsProvider from './providers/static_ak'; +import StaticSTSCredentialsProvider from './providers/static_sts'; +import RAMRoleARNCredentialsProvider from './providers/ram_role_arn'; +import OIDCRoleArnCredentialsProvider from './providers/oidc_role_arn'; +import ECSRAMRoleCredentialsProvider from './providers/ecs_ram_role'; +import DefaultCredentialsProvider from './providers/default'; +import URICredentialsProvider from './providers/uri'; +import CLIProfileCredentialsProvider from './providers/cli_profile'; +import ProfileCredentialsProvider from './providers/profile'; +import EnvironmentVariableCredentialsProvider from './providers/env'; + +export { + CredentialModel, Config, DefaultCredentialsProvider, CredentialsProvider, + StaticAKCredentialsProvider, StaticSTSCredentialsProvider, RAMRoleARNCredentialsProvider, + OIDCRoleArnCredentialsProvider, ECSRAMRoleCredentialsProvider, URICredentialsProvider, + EnvironmentVariableCredentialsProvider, ProfileCredentialsProvider, CLIProfileCredentialsProvider +}; + +class InnerCredentialsClient implements ICredential { + type: string; + provider: CredentialsProvider; + + constructor(type: string, provider: CredentialsProvider) { + this.type = type; + this.provider = provider; + } + + /** + * @deprecated use getCredential() instead of + * @returns the access key id of credentials + */ + async getAccessKeyId(): Promise { + const credentials = await this.provider.getCredentials(); + return credentials.accessKeyId; + } + + /** + * @deprecated use getCredential() instead of + * @returns the access key secret of credentials + */ + async getAccessKeySecret(): Promise { + const credentials = await this.provider.getCredentials(); + return credentials.accessKeySecret; + } + + /** + * @deprecated use getCredential() instead of + * @returns the security token of credentials + */ + async getSecurityToken(): Promise { + const credentials = await this.provider.getCredentials(); + return credentials.securityToken; + } + + getBearerToken(): string { + return; + } + + getType(): string { + return this.type; + } + + async getCredential(): Promise { + const credentials = await this.provider.getCredentials(); + return new CredentialModel({ + accessKeyId: credentials.accessKeyId, + accessKeySecret: credentials.accessKeySecret, + securityToken: credentials.securityToken, + bearerToken: undefined, + type: this.getType(), + providerName: credentials.providerName, + }); + } +} + +function isCredentialsProviderClass(t: any): boolean { + if (!t) { + return false; + } + return typeof t.getCredentials === 'function' && typeof t.getProviderName === 'function'; +} + +export default class Credential implements ICredential { + credential: ICredential; + constructor(config: Config | null = null, provider: CredentialsProvider | { [key: string]: any } | null = null) { + if (isCredentialsProviderClass(provider)) { + this.load(null, provider as CredentialsProvider); + } else { + this.load(config, null); + } + } + + /** + * @deprecated Use getCredential() instead of + */ + getAccessKeyId(): Promise { + return this.credential.getAccessKeyId(); + } + + /** + * @deprecated Use getCredential() instead of + */ + getAccessKeySecret(): Promise { + return this.credential.getAccessKeySecret(); + } + + /** + * @deprecated Use getCredential() instead of + */ + getSecurityToken(): Promise { + return this.credential.getSecurityToken(); + } + + /** + * @deprecated Use getCredential() instead of + */ + getBearerToken(): string { + return this.credential.getBearerToken(); + } + + /** + * @deprecated Use getCredential() instead of + */ + getType(): string { + return this.credential.getType(); + } + + getCredential(): Promise { + return this.credential.getCredential(); + } + + private load(config: Config, provider: CredentialsProvider): void { + if (provider) { + this.credential = new InnerCredentialsClient(provider.getProviderName(), provider); + return; + } + if (!config) { + this.credential = new InnerCredentialsClient('default', DefaultCredentialsProvider.builder().build()); + return; + } + + if (!config.type) { + throw new Error('Missing required type option'); + } + + switch (config.type) { + case 'access_key': + this.credential = new InnerCredentialsClient('access_key', StaticAKCredentialsProvider.builder() + .withAccessKeyId(config.accessKeyId) + .withAccessKeySecret(config.accessKeySecret) + .build()); + break; + case 'sts': + this.credential = new InnerCredentialsClient('sts', StaticSTSCredentialsProvider.builder() + .withAccessKeyId(config.accessKeyId) + .withAccessKeySecret(config.accessKeySecret) + .withSecurityToken(config.securityToken) + .build()); + break; + case 'ecs_ram_role': + this.credential = new InnerCredentialsClient('ecs_ram_role', ECSRAMRoleCredentialsProvider.builder() + .withRoleName(config.roleName) + .withDisableIMDSv1(config.disableIMDSv1) + .withAsyncCredentialUpdateEnabled(config.asyncCredentialUpdateEnabled) + .withReadTimeout(config.timeout) + .withConnectTimeout(config.connectTimeout) + .build()); + break; + case 'ram_role_arn': { + let credentialsProvider: CredentialsProvider; + if (config.securityToken) { + credentialsProvider = StaticSTSCredentialsProvider.builder() + .withAccessKeyId(config.accessKeyId) + .withAccessKeySecret(config.accessKeySecret) + .withSecurityToken(config.securityToken) + .build(); + } else { + credentialsProvider = StaticAKCredentialsProvider.builder() + .withAccessKeyId(config.accessKeyId) + .withAccessKeySecret(config.accessKeySecret) + .build(); + } + this.credential = new InnerCredentialsClient('ram_role_arn', RAMRoleARNCredentialsProvider.builder() + .withCredentialsProvider(credentialsProvider) + .withRoleArn(config.roleArn) + .withPolicy(config.policy) + .withDurationSeconds(config.roleSessionExpiration) + .withRoleSessionName(config.roleSessionName) + .withReadTimeout(config.timeout) + .withConnectTimeout(config.connectTimeout) + .withEnableVpc(config.enableVpc) + .withStsEndpoint(config.stsEndpoint) + .withStsRegionId(config.stsRegionId) + .withExternalId(config.externalId) + // .withHttpOptions(runtime) + .build()); + } + break; + case 'oidc_role_arn': + this.credential = new InnerCredentialsClient('oidc_role_arn', OIDCRoleArnCredentialsProvider.builder() + .withRoleArn(config.roleArn) + .withOIDCProviderArn(config.oidcProviderArn) + .withOIDCTokenFilePath(config.oidcTokenFilePath) + .withRoleSessionName(config.roleSessionName) + .withPolicy(config.policy) + .withDurationSeconds(config.roleSessionExpiration) + .withStsEndpoint(config.stsEndpoint) + .withStsRegionId(config.stsRegionId) + .withEnableVpc(config.enableVpc) + .withReadTimeout(config.timeout) + .withConnectTimeout(config.connectTimeout) + .build()); + break; + case 'rsa_key_pair': + this.credential = new RsaKeyPairCredential(config.publicKeyId, config.privateKeyFile); + break; + case 'bearer': + this.credential = new BearerTokenCredential(config.bearerToken); + break; + case 'credentials_uri': + this.credential = new InnerCredentialsClient('credentials_uri', URICredentialsProvider.builder() + .withCredentialsURI(config.credentialsURI) + .withReadTimeout(config.timeout) + .withConnectTimeout(config.connectTimeout) + .build()); + break; + default: + throw new Error('Invalid type option, support: access_key, sts, ecs_ram_role, ram_role_arn, rsa_key_pair, credentials_uri'); + } + } + +} diff --git a/backend/node_modules/@alicloud/credentials/src/config.ts b/backend/node_modules/@alicloud/credentials/src/config.ts new file mode 100644 index 0000000..1530b43 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/config.ts @@ -0,0 +1,94 @@ +import * as $tea from '@alicloud/tea-typescript'; + +export default class Config extends $tea.Model { + accessKeyId?: string; + accessKeySecret?: string; + securityToken?: string; + bearerToken?: string; + durationSeconds?: number; + roleArn?: string; + policy?: string; + roleSessionExpiration?: number; + roleSessionName?: string; + publicKeyId?: string; + privateKeyFile?: string; + roleName?: string; + enableIMDSv2?: boolean; + disableIMDSv1: boolean; + asyncCredentialUpdateEnabled: boolean; + metadataTokenDuration?: number; + credentialsURI?: string; + oidcProviderArn: string; + oidcTokenFilePath: string; + type?: string; + externalId?: string; + stsEndpoint?: string; + timeout?: number; + connectTimeout?: number; + + static names(): { [key: string]: string } { + return { + accessKeyId: 'accessKeyId', + accessKeySecret: 'accessKeySecret', + securityToken: 'securityToken', + bearerToken: 'bearerToken', + durationSeconds: 'durationSeconds', + roleArn: 'roleArn', + policy: 'policy', + roleSessionExpiration: 'roleSessionExpiration', + roleSessionName: 'roleSessionName', + externalId: 'externalId', + stsEndpoint: 'stsEndpoint', + stsRegionId: 'stsRegionId', + enableVpc: 'enableVpc', + timeout: 'readTimeout', + connectTimeout: 'connectTimeout', + publicKeyId: 'publicKeyId', + privateKeyFile: 'privateKeyFile', + roleName: 'roleName', + enableIMDSv2: 'enableIMDSv2', + disableIMDSv1: 'disableIMDSv1', + asyncCredentialUpdateEnabled: 'asyncCredentialUpdateEnabled', + metadataTokenDuration: 'metadataTokenDuration', + credentialsURI: 'credentialsURI', + oidcProviderArn: 'oidcProviderArn', + oidcTokenFilePath: 'oidcTokenFilePath', + type: 'type', + }; + } + + static types(): { [key: string]: any } { + return { + accessKeyId: 'string', + accessKeySecret: 'string', + securityToken: 'string', + bearerToken: 'string', + durationSeconds: 'number', + roleArn: 'string', + policy: 'string', + roleSessionExpiration: 'number', + roleSessionName: 'string', + externalId: 'string', + stsEndpoint: 'string', + stsRegionId: 'string', + enableVpc: 'string', + timeout: 'number', + connectTimeout: 'number', + publicKeyId: 'string', + privateKeyFile: 'string', + roleName: 'string', + enableIMDSv2: 'boolean', + disableIMDSv1: 'boolean', + asyncCredentialUpdateEnabled: 'boolean', + metadataTokenDuration: 'number', + credentialsURI: 'string', + oidcProviderArn: 'string', + oidcTokenFilePath: 'string', + type: 'string', + }; + } + + constructor(config?: { [key: string]: any }) { + super(config); + } +} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/src/credential_model.ts b/backend/node_modules/@alicloud/credentials/src/credential_model.ts new file mode 100644 index 0000000..8fdfe8b --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/credential_model.ts @@ -0,0 +1,35 @@ +import * as $tea from '@alicloud/tea-typescript'; + +export default class CredentialModel extends $tea.Model { + accessKeyId?: string; + accessKeySecret?: string; + securityToken?: string; + bearerToken?: string; + type?: string; + providerName?: string; + static names(): { [key: string]: string } { + return { + accessKeyId: 'accessKeyId', + accessKeySecret: 'accessKeySecret', + securityToken: 'securityToken', + bearerToken: 'bearerToken', + type: 'type', + providerName: 'providerName', + }; + } + + static types(): { [key: string]: any } { + return { + accessKeyId: 'string', + accessKeySecret: 'string', + securityToken: 'string', + bearerToken: 'string', + type: 'string', + providerName: 'string', + }; + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/src/credentials.ts b/backend/node_modules/@alicloud/credentials/src/credentials.ts new file mode 100644 index 0000000..099ab98 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/credentials.ts @@ -0,0 +1,48 @@ +export default class Credentials { + readonly accessKeyId: string; + readonly accessKeySecret: string; + readonly securityToken: string; + readonly providerName: string; + + constructor(builder : CredentialsBuilder) { + this.accessKeyId = builder.accessKeyId; + this.accessKeySecret = builder.accessKeySecret; + this.securityToken = builder.securityToken; + this.providerName = builder.providerName; + } + + static builder() : CredentialsBuilder { + return new CredentialsBuilder(); + } +} + +export class CredentialsBuilder { + accessKeyId: string; + accessKeySecret: string; + securityToken: string; + providerName: string; + + public withAccessKeyId(value: string) { + this.accessKeyId = value; + return this; + } + + public withAccessKeySecret(value: string) { + this.accessKeySecret = value; + return this; + } + + public withSecurityToken(value: string) { + this.securityToken = value; + return this; + } + + public withProviderName(value: string) { + this.providerName = value; + return this; + } + + public build(): Credentials { + return new Credentials(this); + } +} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/src/credentials_provider.ts b/backend/node_modules/@alicloud/credentials/src/credentials_provider.ts new file mode 100644 index 0000000..9e6c1b2 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/credentials_provider.ts @@ -0,0 +1,6 @@ +import Credentials from './credentials'; + +export default interface CredentialsProvider { + getCredentials: () => Promise + getProviderName: () => string +} diff --git a/backend/node_modules/@alicloud/credentials/src/default_credential.ts b/backend/node_modules/@alicloud/credentials/src/default_credential.ts new file mode 100644 index 0000000..4aa4440 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/default_credential.ts @@ -0,0 +1,49 @@ +import Config from './config'; +import CredentialModel from './credential_model'; +import ICredential from './icredential'; + +export default class DefaultCredential implements ICredential { + accessKeyId: string; + accessKeySecret: string; + securityToken?: string; + bearerToken?: string; + type: string; + + constructor(config: Config) { + this.accessKeyId = config.accessKeyId || ''; + this.accessKeySecret = config.accessKeySecret || ''; + this.securityToken = config.securityToken || ''; + this.bearerToken = config.bearerToken || ''; + this.type = config.type || ''; + } + + async getAccessKeyId(): Promise { + return this.accessKeyId; + } + + async getAccessKeySecret(): Promise { + return this.accessKeySecret; + } + + async getSecurityToken(): Promise { + return this.securityToken; + } + + getBearerToken(): string { + return this.bearerToken; + } + + getType(): string { + return this.type; + } + + async getCredential(): Promise { + return new CredentialModel({ + accessKeyId: this.accessKeyId, + accessKeySecret: this.accessKeySecret, + securityToken: this.securityToken, + bearerToken: this.bearerToken, + type: this.type, + }); + } +} diff --git a/backend/node_modules/@alicloud/credentials/src/ecs_ram_role_credential.ts b/backend/node_modules/@alicloud/credentials/src/ecs_ram_role_credential.ts new file mode 100644 index 0000000..1c9a6cb --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/ecs_ram_role_credential.ts @@ -0,0 +1,91 @@ +import SessionCredential from './session_credential'; +import httpx from 'httpx'; +import ICredential from './icredential'; +import Config from './config'; + +const SECURITY_CRED_URL = 'http://100.100.100.200/latest/meta-data/ram/security-credentials/'; +const SECURITY_CRED_TOKEN_URL = 'http://100.100.100.200/latest/api/token'; + +export default class EcsRamRoleCredential extends SessionCredential implements ICredential { + roleName: string; + enableIMDSv2: boolean; + metadataTokenDuration?: number; + runtime: { [key: string]: any }; + metadataToken?: string; + staleTime?: number + readTimeout?: number; + connectTimeout?: number; + + constructor(roleName: string = '', runtime: { [key: string]: any } = {}, enableIMDSv2: boolean = false, metadataTokenDuration: number = 21600) { + const conf = new Config({ + type: 'ecs_ram_role', + }); + super(conf); + this.roleName = roleName; + this.enableIMDSv2 = enableIMDSv2; + this.metadataTokenDuration = metadataTokenDuration; + this.runtime = runtime; + this.sessionCredential = null; + this.metadataToken = null; + this.staleTime = 0; + } + + async getBody(url: string, options: { [key: string]: any } = {}): Promise { + const response = await httpx.request(url, options); + return (await httpx.read(response, 'utf8')) as string; + } + + async getMetadataToken(): Promise { + if (this.needToRefresh()) { + let tmpTime = new Date().getTime() + this.metadataTokenDuration * 1000; + const response = await httpx.request(SECURITY_CRED_TOKEN_URL, { + headers: { + 'X-aliyun-ecs-metadata-token-ttl-seconds': `${this.metadataTokenDuration}` + }, + method: "PUT" + }); + if (response.statusCode !== 200) { + throw new Error(`Failed to get token from ECS Metadata Service. HttpCode=${response.statusCode}`); + } + this.staleTime = tmpTime; + return (await httpx.read(response, 'utf8')) as string; + } + return this.metadataToken; + } + + async updateCredential(): Promise { + let options = {}; + if (this.enableIMDSv2) { + this.metadataToken = await this.getMetadataToken(); + options = { + headers: { + 'X-aliyun-ecs-metadata-token': this.metadataToken + }, + readTimeout: this.readTimeout, + connectTimeout: this.connectTimeout + } + } + const roleName = await this.getRoleName(); + const url = SECURITY_CRED_URL + roleName; + const body = await this.getBody(url, options); + const json = JSON.parse(body); + this.sessionCredential = { + AccessKeyId: json.AccessKeyId, + AccessKeySecret: json.AccessKeySecret, + Expiration: json.Expiration, + SecurityToken: json.SecurityToken, + }; + } + + async getRoleName(): Promise { + if (this.roleName && this.roleName.length) { + return this.roleName; + } + + return await this.getBody(SECURITY_CRED_URL); + } + + needToRefresh() { + return new Date().getTime() >= this.staleTime; + } +} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/src/icredential.ts b/backend/node_modules/@alicloud/credentials/src/icredential.ts new file mode 100644 index 0000000..3d94ca8 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/icredential.ts @@ -0,0 +1,9 @@ +import CredentialModel from './credential_model'; +export default interface ICredential { + getAccessKeyId: () => Promise; + getAccessKeySecret: () => Promise; + getSecurityToken: () => Promise; + getBearerToken: () => string; + getType: () => string; + getCredential: ()=> Promise +} diff --git a/backend/node_modules/@alicloud/credentials/src/oidc_role_arn_credential.ts b/backend/node_modules/@alicloud/credentials/src/oidc_role_arn_credential.ts new file mode 100644 index 0000000..b30dd41 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/oidc_role_arn_credential.ts @@ -0,0 +1,87 @@ +import SessionCredential from './session_credential'; +import { request } from './util/http'; +import Config from './config'; +import fs from 'fs'; + +export default class OidcRoleArnCredential extends SessionCredential { + roleArn: string; + oidcProviderArn: string; + oidcTokenFilePath: string; + policy: string; + durationSeconds: number; + roleSessionName: string; + runtime: { [key: string]: any }; + host: string; + + constructor(config: Config, runtime: { [key: string]: any } = {}) { + if (!config.roleArn) { + config.roleArn = process.env.ALIBABA_CLOUD_ROLE_ARN; + if (!config.roleArn) { + throw new Error('roleArn does not exist and env ALIBABA_CLOUD_ROLE_ARN is null.'); + } + } + + if (!config.oidcProviderArn) { + config.oidcProviderArn = process.env.ALIBABA_CLOUD_OIDC_PROVIDER_ARN; + if (!config.oidcProviderArn) { + throw new Error('oidcProviderArn does not exist and env ALIBABA_CLOUD_OIDC_PROVIDER_ARN is null.'); + } + } + + if (!config.oidcTokenFilePath) { + config.oidcTokenFilePath = process.env.ALIBABA_CLOUD_OIDC_TOKEN_FILE; + if (!config.oidcTokenFilePath) { + throw new Error('oidcTokenFilePath is not exists and env ALIBABA_CLOUD_OIDC_TOKEN_FILE is null.'); + } + } + + if (!config.roleSessionName && process.env.ALIBABA_CLOUD_ROLE_SESSION_NAME) { + config.roleSessionName = process.env.ALIBABA_CLOUD_ROLE_SESSION_NAME; + } + + const conf = new Config({ + type: 'oidc_role_arn' + }); + super(conf); + this.oidcTokenFilePath = config.oidcTokenFilePath; + this.roleArn = config.roleArn; + this.policy = config.policy; + this.oidcProviderArn = config.oidcProviderArn; + this.durationSeconds = config.roleSessionExpiration || 3600; + this.roleSessionName = config.roleSessionName || 'role_session_name'; + runtime.method = 'POST'; + runtime.anonymous = true; + this.runtime = runtime; + this.host = 'https://sts.aliyuncs.com'; + } + + private getOdicToken(oidcTokenFilePath: string): string { + if (!fs.existsSync(oidcTokenFilePath)) { + throw new Error(`oidcTokenFilePath ${oidcTokenFilePath} is not exists.`); + } + let oidcToken = null; + try { + oidcToken = fs.readFileSync(oidcTokenFilePath, 'utf-8'); + } catch (err) { + throw new Error(`oidcTokenFilePath ${oidcTokenFilePath} cannot be read.`); + } + return oidcToken; + } + + async updateCredential() { + const oidcToken = this.getOdicToken(this.oidcTokenFilePath); + const params: { [key: string]: any } = { + Action: 'AssumeRoleWithOIDC', + RoleArn: this.roleArn, + OIDCProviderArn: this.oidcProviderArn, + OIDCToken: oidcToken, + DurationSeconds: this.durationSeconds, + RoleSessionName: this.roleSessionName + }; + if (this.policy) { + params.policy = this.policy; + } + const json = await request(this.host, params, this.runtime); + this.sessionCredential = json.Credentials; + } +} diff --git a/backend/node_modules/@alicloud/credentials/src/provider/credentials_uri_provider.ts b/backend/node_modules/@alicloud/credentials/src/provider/credentials_uri_provider.ts new file mode 100644 index 0000000..35e6298 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/provider/credentials_uri_provider.ts @@ -0,0 +1,13 @@ +import URICredential from '../uri_credential'; +import ICredential from '../icredential'; + +export default { + getCredential(): ICredential { + const credentialsURI = process.env.ALIBABA_CLOUD_CREDENTIALS_URI; + if (credentialsURI) { + return new URICredential(credentialsURI); + } + + return null; + } +} diff --git a/backend/node_modules/@alicloud/credentials/src/provider/environment_variable_credentials_provider.ts b/backend/node_modules/@alicloud/credentials/src/provider/environment_variable_credentials_provider.ts new file mode 100644 index 0000000..e3d1593 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/provider/environment_variable_credentials_provider.ts @@ -0,0 +1,24 @@ + +import AccessKeyCredential from '../access_key_credential'; +import ICredential from '../icredential'; + +export default { + getCredential(): ICredential { + const accessKeyId = process.env.ALIBABA_CLOUD_ACCESS_KEY_ID; + const accessKeySecret = process.env.ALIBABA_CLOUD_ACCESS_KEY_SECRET; + + if (accessKeyId === undefined || accessKeySecret === undefined) { + return null; + } + + if (accessKeyId === null || accessKeyId === '') { + throw new Error('Environment variable ALIBABA_CLOUD_ACCESS_KEY_ID cannot be empty'); + } + + if (accessKeySecret === null || accessKeySecret === '') { + throw new Error('Environment variable ALIBABA_CLOUD_ACCESS_KEY_SECRET cannot be empty'); + } + + return new AccessKeyCredential(accessKeyId, accessKeySecret); + } +} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/src/provider/instance_ram_role_credentials_provider.ts b/backend/node_modules/@alicloud/credentials/src/provider/instance_ram_role_credentials_provider.ts new file mode 100644 index 0000000..d8bd8d8 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/provider/instance_ram_role_credentials_provider.ts @@ -0,0 +1,17 @@ + + +import ICredential from '../icredential'; + +import EcsRamRoleCredential from '../ecs_ram_role_credential'; + +export default { + getCredential(): ICredential { + const roleName = process.env.ALIBABA_CLOUD_ECS_METADATA; + const enableIMDSv2 = process.env.ALIBABA_CLOUD_ECS_IMDSV2_ENABLE; + if (roleName && roleName.length) { + return new EcsRamRoleCredential(roleName, {}, enableIMDSv2 && enableIMDSv2.toLowerCase() === 'true'); + } + + return null; + } +} diff --git a/backend/node_modules/@alicloud/credentials/src/provider/oidc_role_arn_credentials_provider.ts b/backend/node_modules/@alicloud/credentials/src/provider/oidc_role_arn_credentials_provider.ts new file mode 100644 index 0000000..fa0527c --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/provider/oidc_role_arn_credentials_provider.ts @@ -0,0 +1,18 @@ + + +import ICredential from '../icredential'; + +import OidcRoleArnCredential from '../oidc_role_arn_credential'; +import Config from '../config'; + +export default { + getCredential(): ICredential { + if (process.env.ALIBABA_CLOUD_ROLE_ARN + && process.env.ALIBABA_CLOUD_OIDC_PROVIDER_ARN + && process.env.ALIBABA_CLOUD_OIDC_TOKEN_FILE) { + return new OidcRoleArnCredential(new Config({})); + } + + return null; + } +} diff --git a/backend/node_modules/@alicloud/credentials/src/provider/profile_credentials_provider.ts b/backend/node_modules/@alicloud/credentials/src/provider/profile_credentials_provider.ts new file mode 100644 index 0000000..c6212dd --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/provider/profile_credentials_provider.ts @@ -0,0 +1,77 @@ +import AccessKeyCredential from '../access_key_credential'; +import StsTokenCredential from '../sts_token_credential'; +import EcsRamRoleCredential from '../ecs_ram_role_credential'; +import RamRoleArnCredential from '../ram_role_arn_credential'; +import OidcRoleArnCredential from '../oidc_role_arn_credential'; +import RsaKeyPairCredential from '../rsa_key_pair_credential'; +import BearerTokenCredential from '../bearer_token_credential'; + +import * as utils from '../util/utils'; +import fs from 'fs'; +import ICredential from '../icredential'; +import Config from '../config'; + +const DEFAULT_PATH = process.env.HOME + '/.alibabacloud/credentials'; + +export default { + getCredential(credentialName: string = 'default'): ICredential { + let fileContent = null; + const credentialFile = process.env.ALIBABA_CLOUD_CREDENTIALS_FILE; + if (credentialFile === undefined) { + if (fs.existsSync(DEFAULT_PATH)) { + const content = utils.parseFile(DEFAULT_PATH, true); + if (content) { + fileContent = content; + } + } + } else { + if (credentialFile === null || credentialFile === '') { + throw new Error('Environment variable credentialFile cannot be empty'); + } + if (!fs.existsSync(credentialFile)) { + throw new Error(`credentialFile ${credentialFile} cannot be empty`); + } + fileContent = utils.parseFile(credentialFile); + } + + if (!fileContent) { + return null; + } + + const config = fileContent[credentialName] || {}; + if (!config.type) { + throw new Error('Missing required type option in credentialFile'); + } + + switch (config.type) { + case 'access_key': + return new AccessKeyCredential(config.access_key_id, config.access_key_secret); + case 'sts': + return new StsTokenCredential(config.access_key_id, config.access_key_secret, config.security_token); + case 'ecs_ram_role': + return new EcsRamRoleCredential(config.role_name); + case 'ram_role_arn': { + const conf = new Config({ + roleArn: config.role_arn, + accessKeyId: config.access_key_id, + accessKeySecret: config.access_key_secret + }); + return new RamRoleArnCredential(conf); + } + case 'oidc_role_arn': { + const conf = new Config({ + roleArn: config.role_arn, + oidcProviderArn: config.oidc_provider_arn, + oidcTokenFilePath: config.oidc_token_file_path + }); + return new OidcRoleArnCredential(conf); + } + case 'rsa_key_pair': + return new RsaKeyPairCredential(config.public_key_id, config.private_key_file); + case 'bearer': + return new BearerTokenCredential(config.bearer_token); + default: + throw new Error('Invalid type option, support: access_key, sts, ecs_ram_role, ram_role_arn, oidc_role_arn, rsa_key_pair, bearer'); + } + } +} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/credentials/src/provider/provider_chain.ts b/backend/node_modules/@alicloud/credentials/src/provider/provider_chain.ts new file mode 100644 index 0000000..f9a1e51 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/provider/provider_chain.ts @@ -0,0 +1,31 @@ +import environmentVariableCredentialsProvider from './environment_variable_credentials_provider'; +import profileCredentialsProvider from './profile_credentials_provider'; +import instanceRamRoleCredentialsProvider from './instance_ram_role_credentials_provider'; +import credentialsUriProvider from './credentials_uri_provider'; +import oidcRoleArnCredentialsProvider from './oidc_role_arn_credentials_provider'; + +import ICredential from '../icredential'; + +type IProvider = { + getCredential: () => ICredential; +} + +const defaultProviders: IProvider[] = [ + environmentVariableCredentialsProvider, + oidcRoleArnCredentialsProvider, + profileCredentialsProvider, + instanceRamRoleCredentialsProvider, + credentialsUriProvider +]; + +export function getCredentials(providers: IProvider[] = null): ICredential { + const providerChain = providers || defaultProviders; + for (const provider of providerChain) { + const credential = provider.getCredential(); + if (credential) { + return credential; + } + } + + throw new Error('Not found credentials'); +} diff --git a/backend/node_modules/@alicloud/credentials/src/providers/cli_profile.ts b/backend/node_modules/@alicloud/credentials/src/providers/cli_profile.ts new file mode 100644 index 0000000..19e79fd --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/providers/cli_profile.ts @@ -0,0 +1,193 @@ +import { readFile } from 'fs'; +import { promisify } from 'util'; + +import path from 'path'; +import os from 'os'; +import Credentials from '../credentials'; +import CredentialsProvider from '../credentials_provider' +import StaticAKCredentialsProvider from './static_ak'; +import StaticSTSCredentialsProvider from './static_sts'; +import RAMRoleARNCredentialsProvider from './ram_role_arn'; +import OIDCRoleArnCredentialsProvider from './oidc_role_arn'; +import ECSRAMRoleCredentialsProvider from './ecs_ram_role'; + +const readFileAsync = promisify(readFile); + +class CLIProfileCredentialsProviderBuilder { + profileName: string; + build(): CLIProfileCredentialsProvider { + // 优先级: + // 1. 使用显示指定的 profileName + // 2. 使用环境变量(ALIBABA_CLOUD_PROFILE)制定的 profileName + // 3. 使用 CLI 配置中的当前 profileName + if (!this.profileName) { + this.profileName = process.env.ALIBABA_CLOUD_PROFILE; + } + + if (process.env.ALIBABA_CLOUD_CLI_PROFILE_DISABLED && process.env.ALIBABA_CLOUD_CLI_PROFILE_DISABLED.toLowerCase() === 'true') { + throw new Error('the CLI profile is disabled'); + } + + return new CLIProfileCredentialsProvider(this); + } + + withProfileName(profileName: string) { + this.profileName = profileName; + return this; + } +} + +interface Profile { + name: string; + mode: string; + access_key_id: string; + access_key_secret: string; + sts_token: string; + region_id: string; + ram_role_arn: string; + ram_session_name: string; + expired_seconds: number; + sts_region: string; + source_profile: string; + ram_role_name: string; + oidc_token_file: string; + oidc_provider_arn: string; + sts_endpoint: string, + enable_vpc: boolean, + duration_seconds: number +} + +class Configuration { + current: string; + profiles: Profile[]; +} + +export async function getConfiguration(cfgPath: string): Promise { + let content: string; + try { + content = await readFileAsync(cfgPath, 'utf8'); + } catch (ex) { + throw new Error(`reading aliyun cli config from '${cfgPath}' failed.`); + } + let conf: Configuration; + try { + conf = JSON.parse(content) as Configuration; + } catch (ex) { + throw new Error(`parse aliyun cli config from '${cfgPath}' failed: ${content}`); + } + + if (!conf || !conf.profiles || conf.profiles.length === 0) { + throw new Error(`no any configured profiles in '${cfgPath}'`); + } + return conf; +} + +export function getProfile(conf: Configuration, profileName: string): Profile { + for (const p of conf.profiles) { + if (p.name === profileName) { + return p; + } + } + + throw new Error(`unable to get profile with '${profileName}'`); +} + +export default class CLIProfileCredentialsProvider implements CredentialsProvider { + static builder(): CLIProfileCredentialsProviderBuilder { + return new CLIProfileCredentialsProviderBuilder(); + } + private readonly profileName: string; + private innerProvider: CredentialsProvider; + + // used for mock + private homedir: string = os.homedir(); + + constructor(builder: CLIProfileCredentialsProviderBuilder) { + this.profileName = builder.profileName; + } + + private getCredentialsProvider(conf: Configuration, profileName: string): CredentialsProvider { + const p = getProfile(conf, profileName); + switch (p.mode) { + case 'AK': + return StaticAKCredentialsProvider.builder() + .withAccessKeyId(p.access_key_id) + .withAccessKeySecret(p.access_key_secret) + .build(); + case 'StsToken': + return StaticSTSCredentialsProvider.builder() + .withAccessKeyId(p.access_key_id) + .withAccessKeySecret(p.access_key_secret) + .withSecurityToken(p.sts_token) + .build(); + case 'RamRoleArn': { + const previousProvider = StaticAKCredentialsProvider.builder() + .withAccessKeyId(p.access_key_id) + .withAccessKeySecret(p.access_key_secret) + .build(); + + return RAMRoleARNCredentialsProvider.builder() + .withCredentialsProvider(previousProvider) + .withRoleArn(p.ram_role_arn) + .withRoleSessionName(p.ram_session_name) + .withDurationSeconds(p.expired_seconds) + .withStsRegionId(p.sts_region) + .withStsEndpoint(p.sts_endpoint) + .withEnableVpc(p.enable_vpc) + .build(); + } + case 'EcsRamRole': + return ECSRAMRoleCredentialsProvider.builder().withRoleName(p.ram_role_name).build(); + case 'OIDC': + return OIDCRoleArnCredentialsProvider.builder() + .withOIDCTokenFilePath(p.oidc_token_file) + .withOIDCProviderArn(p.oidc_provider_arn) + .withRoleArn(p.ram_role_arn) + .withStsRegionId(p.sts_region) + .withDurationSeconds(p.expired_seconds) + .withRoleSessionName(p.ram_session_name) + .withDurationSeconds(p.duration_seconds) + .withEnableVpc(p.enable_vpc) + .build(); + case 'ChainableRamRoleArn': { + const previousProvider = this.getCredentialsProvider(conf, p.source_profile); + return RAMRoleARNCredentialsProvider.builder() + .withCredentialsProvider(previousProvider) + .withRoleArn(p.ram_role_arn) + .withRoleSessionName(p.ram_session_name) + .withDurationSeconds(p.expired_seconds) + .withStsRegionId(p.sts_region) + .build(); + } + default: + throw new Error(`unsupported profile mode '${p.mode}'`); + } + } + + async getCredentials(): Promise { + if (!this.innerProvider) { + if (!this.homedir) { + throw new Error('cannot found home dir'); + } + + const cfgPath = path.join(this.homedir, '.aliyun/config.json'); + + const conf = await getConfiguration(cfgPath); + const profileName = this.profileName || conf.current; + this.innerProvider = this.getCredentialsProvider(conf, profileName) + } + + const credentials = await this.innerProvider.getCredentials() + return Credentials.builder() + .withAccessKeyId(credentials.accessKeyId) + .withAccessKeySecret(credentials.accessKeySecret) + .withSecurityToken(credentials.securityToken) + .withProviderName(`${this.getProviderName()}/${this.innerProvider.getProviderName()}`) + .build(); + } + + getProviderName(): string { + return 'cli_profile'; + } + +} diff --git a/backend/node_modules/@alicloud/credentials/src/providers/default.ts b/backend/node_modules/@alicloud/credentials/src/providers/default.ts new file mode 100644 index 0000000..e007a2f --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/providers/default.ts @@ -0,0 +1,114 @@ +import Credentials from '../credentials'; +import CredentialsProvider from '../credentials_provider'; +import CLIProfileCredentialsProvider from './cli_profile'; +import ECSRAMRoleCredentialsProvider from './ecs_ram_role'; +import EnvironmentVariableCredentialsProvider from './env'; +import OIDCRoleArnCredentialsProvider from './oidc_role_arn'; +import URICredentialsProvider from './uri'; +import ProfileCredentialsProvider from './profile'; + +export default class DefaultCredentialsProvider implements CredentialsProvider { + private readonly providers: CredentialsProvider[]; + private lastUsedProvider: CredentialsProvider; + static builder() { + return new DefaultCredentialsProviderBuilder(); + } + + constructor(builder: DefaultCredentialsProviderBuilder) { + this.providers = []; + // Add static ak or sts credentials provider from env + try { + const envProvider = EnvironmentVariableCredentialsProvider.builder().build(); + this.providers.push(envProvider); + } catch (ex) { + // ignore + } + + // oidc check + try { + const oidcProvider = OIDCRoleArnCredentialsProvider.builder().build(); + this.providers.push(oidcProvider); + } catch (ex) { + // ignore + } + + // cli credentials provider + try { + const cliProfileProvider = CLIProfileCredentialsProvider.builder().build(); + this.providers.push(cliProfileProvider); + } catch (ex) { + // ignore + } + + // profile credentials provider + try { + const profileProvider = ProfileCredentialsProvider.builder().build(); + this.providers.push(profileProvider); + } catch (ex) { + // ignore + } + + // Add IMDS + try { + const ecsRamRoleProvider = ECSRAMRoleCredentialsProvider.builder().withRoleName(process.env.ALIBABA_CLOUD_ECS_METADATA).build(); + this.providers.push(ecsRamRoleProvider); + } catch (ex) { + // ignore + } + + // credentials uri + try { + const uriProvider = URICredentialsProvider.builder().withCredentialsURI(process.env.ALIBABA_CLOUD_CREDENTIALS_URI).build(); + this.providers.push(uriProvider); + } + catch (ex) { + // ignore + } + } + + async getCredentials(): Promise { + if (this.lastUsedProvider) { + const inner = await this.lastUsedProvider.getCredentials(); + return Credentials.builder() + .withAccessKeyId(inner.accessKeyId) + .withAccessKeySecret(inner.accessKeySecret) + .withSecurityToken(inner.securityToken) + .withProviderName(`${this.getProviderName()}/${this.lastUsedProvider.getProviderName()}`) + .build(); + } + + const errors = []; + for (const provider of this.providers) { + this.lastUsedProvider = provider; + let inner; + try { + inner = await provider.getCredentials(); + } catch (ex) { + errors.push(ex); + continue; + } + if (inner) { + return Credentials.builder() + .withAccessKeyId(inner.accessKeyId) + .withAccessKeySecret(inner.accessKeySecret) + .withSecurityToken(inner.securityToken) + .withProviderName(`${this.getProviderName()}/${this.lastUsedProvider.getProviderName()}`) + .build(); + } + } + + throw new Error(`unable to get credentials from any of the providers in the chain: ${errors.map((e) => { + return e.message; + }).join(', ')}`); + } + + getProviderName() { + return 'default'; + } +} + +class DefaultCredentialsProviderBuilder { + build() { + return new DefaultCredentialsProvider(this); + } +} diff --git a/backend/node_modules/@alicloud/credentials/src/providers/ecs_ram_role.ts b/backend/node_modules/@alicloud/credentials/src/providers/ecs_ram_role.ts new file mode 100644 index 0000000..3df0847 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/providers/ecs_ram_role.ts @@ -0,0 +1,229 @@ +import CredentialsProvider from '../credentials_provider' +import { Request, doRequest } from './http' +import { Session, SessionCredentialProvider, STALE_TIME } from './session' + +const PREFETCH_TIME = 60 * 60; +const defaultMetadataTokenDuration = 21600; // 6 hours + +export default class ECSRAMRoleCredentialsProvider extends SessionCredentialProvider implements CredentialsProvider { + private readonly roleName: string + private readonly disableIMDSv1: boolean + // for refresher + private checker: NodeJS.Timeout + // for mock + private doRequest = doRequest; + private readonly readTimeout: number; + private readonly connectTimeout: number; + private shouldRefreshCred: boolean; + + static builder(): ECSRAMRoleCredentialsProviderBuilder { + return new ECSRAMRoleCredentialsProviderBuilder(); + } + + constructor(builder: ECSRAMRoleCredentialsProviderBuilder) { + super(STALE_TIME, PREFETCH_TIME); + this.refresher = this.getCredentialsInternal; + this.roleName = builder.roleName; + this.disableIMDSv1 = builder.disableIMDSv1; + this.readTimeout = builder.readTimeout; + this.connectTimeout = builder.connectTimeout; + this.checker = null; + this.shouldRefreshCred = false; + if(builder.asyncCredentialUpdateEnabled) { + this.checker = this.checkCredentialsUpdateAsynchronously(); + } + } + + + checkCredentialsUpdateAsynchronously(): NodeJS.Timeout { + return setTimeout(async () => { + try { + if(this.shouldRefreshCred) { + await this.getCredentials(); + } + } catch(err) { + console.error('CheckCredentialsUpdateAsynchronously Error:', err); + } finally { + this.checker = this.checkCredentialsUpdateAsynchronously(); + } + }, 1000 * 60); + } + + close(): void { + if (this.checker != null) { + clearTimeout(this.checker); + this.checker = null; + } + } + + private async getMetadataToken(): Promise { + // PUT http://100.100.100.200/latest/api/token + const request = Request.builder() + .withMethod('PUT') + .withProtocol('http') + .withHost('100.100.100.200') + .withPath('/latest/api/token') + .withHeaders({ + 'x-aliyun-ecs-metadata-token-ttl-seconds': `${defaultMetadataTokenDuration}` + }) + .withReadTimeout(this.readTimeout || 1000) + .withConnectTimeout(this.connectTimeout || 1000) + .build(); + + // ConnectTimeout: 5 * time.Second, + // ReadTimeout: 5 * time.Second, + try { + const response = await this.doRequest(request); + if (response.statusCode !== 200) { + throw new Error(`get metadata token failed with ${response.statusCode}`); + } + return response.body.toString('utf8'); + } catch (error) { + if (this.disableIMDSv1) { + throw error; + } + return null; + } + + } + + private async getRoleName(): Promise { + const builder = Request.builder() + .withMethod('GET') + .withProtocol('http') + .withHost('100.100.100.200') + .withPath('/latest/meta-data/ram/security-credentials/') + .withReadTimeout(this.readTimeout || 1000) + .withConnectTimeout(this.connectTimeout || 1000); + + const metadataToken = await this.getMetadataToken(); + if (metadataToken !== null) { + builder.withHeaders({ + 'x-aliyun-ecs-metadata-token': metadataToken + }); + } + + // ConnectTimeout: 5 * time.Second, + // ReadTimeout: 5 * time.Second, + + const request = builder.build(); + const response = await this.doRequest(request); + + if (response.statusCode !== 200) { + throw new Error(`get role name failed: ${request.method} ${request.toRequestURL()} ${response.statusCode}`); + } + + return response.body.toString().trim(); + } + + private async getCredentialsInternal(): Promise { + let roleName = this.roleName + if (!roleName) { + roleName = await this.getRoleName(); + } + + const builder = Request.builder() + .withMethod('GET') + .withProtocol('http') + .withHost('100.100.100.200') + .withPath(`/latest/meta-data/ram/security-credentials/${roleName}`) + .withReadTimeout(this.readTimeout || 1000) + .withConnectTimeout(this.connectTimeout || 1000); + + // ConnectTimeout: 5 * time.Second, + // ReadTimeout: 5 * time.Second, + // Headers: map[string]string{ }, + + const metadataToken = await this.getMetadataToken(); + if (metadataToken !== null) { + builder.withHeaders({ + 'x-aliyun-ecs-metadata-token': metadataToken + }); + } + + const request = builder.build(); + const response = await this.doRequest(request); + if (response.statusCode !== 200) { + throw new Error(`get sts token failed, httpStatus: ${response.statusCode}, message = ${response.body.toString()}`); + } + + let data; + try { + data = JSON.parse(response.body.toString()); + } catch (ex) { + throw new Error(`get sts token failed, json parse failed: ${ex.message}`) + } + + if (!data || !data.AccessKeyId || !data.AccessKeySecret || !data.SecurityToken) { + throw new Error('get sts token failed') + } + + if (data.Code !== 'Success') { + throw new Error('refresh Ecs sts token err, Code is not Success') + } + this.shouldRefreshCred = true; + return new Session(data.AccessKeyId, data.AccessKeySecret, data.SecurityToken, data.Expiration); + } + + getProviderName(): string { + return 'ecs_ram_role'; + } +} + +class ECSRAMRoleCredentialsProviderBuilder { + roleName: string + disableIMDSv1: boolean + readTimeout?: number; + connectTimeout?: number; + asyncCredentialUpdateEnabled?: boolean; + + constructor() { + this.disableIMDSv1 = false; + this.asyncCredentialUpdateEnabled = false; + } + + withRoleName(roleName: string): ECSRAMRoleCredentialsProviderBuilder { + this.roleName = roleName + return this; + } + + withDisableIMDSv1(disableIMDSv1: boolean): ECSRAMRoleCredentialsProviderBuilder { + this.disableIMDSv1 = disableIMDSv1 + return this; + } + + withReadTimeout(readTimeout: number): ECSRAMRoleCredentialsProviderBuilder{ + this.readTimeout = readTimeout + return this; + } + + withConnectTimeout(connectTimeout: number): ECSRAMRoleCredentialsProviderBuilder{ + this.connectTimeout = connectTimeout + return this; + } + + withAsyncCredentialUpdateEnabled(asyncCredentialUpdateEnabled: boolean): ECSRAMRoleCredentialsProviderBuilder { + this.asyncCredentialUpdateEnabled = asyncCredentialUpdateEnabled + return this; + } + + build(): ECSRAMRoleCredentialsProvider { + // 允许通过环境变量强制关闭 IMDS + if (process.env.ALIBABA_CLOUD_ECS_METADATA_DISABLED && process.env.ALIBABA_CLOUD_ECS_METADATA_DISABLED.toLowerCase() === 'true') { + throw new Error('IMDS credentials is disabled'); + } + + // 设置 roleName 默认值 + if (!this.roleName) { + this.roleName = process.env.ALIBABA_CLOUD_ECS_METADATA; + } + + // 允许通过环境变量强制关闭 V1 + if (process.env.ALIBABA_CLOUD_IMDSV1_DISABLED && process.env.ALIBABA_CLOUD_IMDSV1_DISABLED.toLowerCase() === 'true') { + this.disableIMDSv1 = true; + } + + return new ECSRAMRoleCredentialsProvider(this); + } + +} diff --git a/backend/node_modules/@alicloud/credentials/src/providers/env.ts b/backend/node_modules/@alicloud/credentials/src/providers/env.ts new file mode 100644 index 0000000..c99ed7d --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/providers/env.ts @@ -0,0 +1,44 @@ +import Credentials from '../credentials'; +import CredentialsProvider from '../credentials_provider'; + +export default class EnvironmentVariableCredentialsProvider implements CredentialsProvider { + static builder() { + return new EnvironmentVariableCredentialsProviderBuilder(); + } + + async getCredentials(): Promise { + const accessKeyId = process.env.ALIBABA_CLOUD_ACCESS_KEY_ID; + if (!accessKeyId) { + throw new Error('unable to get credentials from enviroment variables, Access key ID must be specified via environment variable (ALIBABA_CLOUD_ACCESS_KEY_ID)') + } + + const accessKeySecret = process.env.ALIBABA_CLOUD_ACCESS_KEY_SECRET; + if (!accessKeySecret) { + throw new Error('unable to get credentials from enviroment variables, Access key secret must be specified via environment variable (ALIBABA_CLOUD_ACCESS_KEY_SECRET)') + } + + const securityToken = process.env.ALIBABA_CLOUD_SECURITY_TOKEN; + + return Credentials.builder() + .withAccessKeyId(accessKeyId) + .withAccessKeySecret(accessKeySecret) + .withSecurityToken(securityToken) + .withProviderName(this.getProviderName()) + .build(); + } + + + getProviderName(): string { + return 'env'; + } + + constructor(builder: EnvironmentVariableCredentialsProviderBuilder) { + + } +} + +class EnvironmentVariableCredentialsProviderBuilder { + build() { + return new EnvironmentVariableCredentialsProvider(this); + } +} diff --git a/backend/node_modules/@alicloud/credentials/src/providers/http.ts b/backend/node_modules/@alicloud/credentials/src/providers/http.ts new file mode 100644 index 0000000..1acd28f --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/providers/http.ts @@ -0,0 +1,209 @@ +import httpx from 'httpx'; + +export class Request { + readonly queries: { [key: string]: string }; + readonly headers: { [key: string]: string }; + readonly method: string; + readonly protocol: any; + readonly host: any; + readonly path: any; + readonly bodyForm: { [key: string]: string; }; + readonly bodyBytes: Buffer; + readonly url: string; + readonly readTimeout: number; + readonly connectTimeout: number; + + static builder() { + return new RequestBuilder(); + } + + constructor(builder: RequestBuilder) { + this.method = builder.method; + this.protocol = builder.protocol; + this.host = builder.host; + this.path = builder.path; + this.queries = builder.queries; + this.headers = builder.headers; + this.bodyForm = builder.bodyForm; + this.bodyBytes = builder.bodyBytes; + this.url = builder.url; + this.readTimeout = builder.readTimeout; + this.connectTimeout = builder.connectTimeout; + } + + toRequestURL(): string { + if(this.url){ + return this.url; + } + let url = `${this.protocol}://${this.host}${this.path}`; + if (this.queries && Object.keys(this.queries).length > 0) { + url += `?` + querystringify(this.queries) + } + return url; + } +} + +export class RequestBuilder { + method: string; + protocol: string; + host: string; + path: string; + queries: { [key: string]: string; }; + headers: { [key: string]: string; }; + bodyForm: { [key: string]: string; }; + bodyBytes: Buffer; + readTimeout: number; + connectTimeout: number; + url: string; + + build(): Request { + // set default values + if (!this.protocol) { + this.protocol = 'https'; + } + + if (!this.path) { + this.path = '/'; + } + + if (!this.headers) { + this.headers = {}; + } + + if (!this.queries) { + this.queries = {}; + } + + return new Request(this); + } + + withMethod(method: string) { + this.method = method; + return this; + } + + withProtocol(protocol: string): this { + this.protocol = protocol; + return this; + } + + withHost(host: string): this { + this.host = host; + return this; + } + + withPath(path: string) { + this.path = path; + return this; + } + + withQueries(queries: { [key: string]: string }) { + this.queries = queries; + return this; + } + + withHeaders(headers: { [key: string]: string }) { + this.headers = headers; + return this; + } + + withBodyForm(bodyForm: { [key: string]: string }) { + this.bodyForm = bodyForm; + return this; + } + + withURL(url: string){ + this.url = url; + return this; + } + + withReadTimeout(readTimeout: number) { + this.readTimeout = readTimeout; + return this; + } + + withConnectTimeout(connectTimeout: number) { + this.connectTimeout = connectTimeout; + return this; + } +} + +export class Response { + readonly statusCode: number; + readonly body: Buffer; + readonly headers: { [key: string]: string }; + + static builder() { + return new ResponseBuilder(); + } + + constructor(builder: ResponseBuilder) { + this.statusCode = builder.statusCode; + this.headers = builder.headers; + this.body = builder.body; + } +} + +class ResponseBuilder { + statusCode: number; + headers: { [key: string]: string }; + body: Buffer; + + withStatusCode(statusCode: number) { + this.statusCode = statusCode; + return this; + } + + withHeaders(headers: { [key: string]: string }) { + this.headers = headers; + return this; + } + + withBody(body: Buffer) { + this.body = body; + return this; + } + + constructor() { + this.headers = {}; + } + + build(): Response { + return new Response(this); + } +} + +function querystringify(queries: { [key: string]: string }) { + const fields = []; + for (const [key, value] of Object.entries(queries)) { + fields.push(key + '=' + encodeURIComponent(value)); + } + return fields.join('&'); +} + +export async function doRequest(req: Request): Promise { + const url = req.toRequestURL(); + + let body; + if (req.bodyForm && Object.keys(req.bodyForm).length > 0) { + body = querystringify(req.bodyForm); + if (!req.headers['Content-Type']) { + req.headers['Content-Type'] = 'application/x-www-form-urlencoded'; + } + } + + const response = await httpx.request(url, { + method: req.method, + data: body, + headers: req.headers, + readTimeout: req.readTimeout, + connectTimeout: req.connectTimeout + }); + + const responseBody = await httpx.read(response, ''); + return Response.builder() + .withStatusCode(response.statusCode) + .withHeaders(response.headers as { [key: string]: string }) + .withBody(responseBody as Buffer) + .build(); +} diff --git a/backend/node_modules/@alicloud/credentials/src/providers/oidc_role_arn.ts b/backend/node_modules/@alicloud/credentials/src/providers/oidc_role_arn.ts new file mode 100644 index 0000000..236d0b3 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/providers/oidc_role_arn.ts @@ -0,0 +1,238 @@ +import { readFile } from 'fs'; +import { promisify } from 'util'; + +import Credentials from '../credentials'; +import CredentialsProvider from '../credentials_provider'; +import { Session, SessionCredentialProvider, STALE_TIME } from './session'; +import * as utils from '../util/utils'; +import { doRequest, Request } from './http'; + +const readFileAsync = promisify(readFile); + +class OIDCRoleArnCredentialsProviderBuilder { + oidcProviderArn: any; + oidcTokenFilePath: any; + roleArn: any; + roleSessionName: string; + stsEndpoint: string; + stsRegionId: string; + policy: string; + durationSeconds: number; + enableVpc?: boolean; + readTimeout?: number; + connectTimeout?: number; + + withOIDCProviderArn(oidcProviderArn: string) { + this.oidcProviderArn = oidcProviderArn; + return this; + } + + withOIDCTokenFilePath(path: string) { + this.oidcTokenFilePath = path; + return this; + } + + withRoleArn(roleArn: string) { + this.roleArn = roleArn; + return this; + } + + withRoleSessionName(roleSessionName: string) { + this.roleSessionName = roleSessionName; + return this; + } + + withDurationSeconds(durationSeconds: number) { + this.durationSeconds = durationSeconds; + return this; + } + + withStsEndpoint(stsEndpoint: string) { + this.stsEndpoint = stsEndpoint; + return this; + } + + withStsRegionId(regionId: string) { + this.stsRegionId = regionId; + return this; + } + + withPolicy(policy: string) { + this.policy = policy; + return this; + } + + withEnableVpc(enableVpc: boolean): OIDCRoleArnCredentialsProviderBuilder { + this.enableVpc = enableVpc + return this; + } + + withReadTimeout(readTimeout: number): OIDCRoleArnCredentialsProviderBuilder { + this.readTimeout = readTimeout + return this; + } + + withConnectTimeout(connectTimeout: number): OIDCRoleArnCredentialsProviderBuilder { + this.connectTimeout = connectTimeout + return this; + } + + build(): OIDCRoleArnCredentialsProvider { + // set default values + if (!this.oidcProviderArn) { + this.oidcProviderArn = process.env.ALIBABA_CLOUD_OIDC_PROVIDER_ARN; + } + + if (!this.oidcTokenFilePath) { + this.oidcTokenFilePath = process.env.ALIBABA_CLOUD_OIDC_TOKEN_FILE; + } + + if (!this.roleSessionName) { + this.roleSessionName = process.env.ALIBABA_CLOUD_ROLE_SESSION_NAME; + } + + if (!this.durationSeconds) { + this.durationSeconds = 3600; + } + + if (!this.roleArn) { + this.roleArn = process.env.ALIBABA_CLOUD_ROLE_ARN; + } + + if (!this.roleArn) { + throw new Error('roleArn does not exist and env ALIBABA_CLOUD_ROLE_ARN is null.'); + } + + if (!this.oidcProviderArn) { + throw new Error('oidcProviderArn does not exist and env ALIBABA_CLOUD_OIDC_PROVIDER_ARN is null.'); + } + + if (!this.oidcTokenFilePath) { + throw new Error('oidcTokenFilePath is not exists and env ALIBABA_CLOUD_OIDC_TOKEN_FILE is null.'); + } + + if (!this.roleSessionName) { + this.roleSessionName = 'credentials-nodejs-' + Date.now() + } + + if (this.durationSeconds < 900) { + throw new Error('session duration should be in the range of 900s - max session duration'); + } + + if (!this.stsRegionId) { + this.stsRegionId = process.env.ALIBABA_CLOUD_STS_REGION; + } + + if (!this.enableVpc) { + this.enableVpc = process.env.ALIBABA_CLOUD_VPC_ENDPOINT_ENABLED && process.env.ALIBABA_CLOUD_VPC_ENDPOINT_ENABLED.toLowerCase() === 'true' || false; + } + + // sts endpoint + if (!this.stsEndpoint) { + if (this.stsRegionId) { + if (this.enableVpc) { + this.stsEndpoint = `sts-vpc.${this.stsRegionId}.aliyuncs.com` + } else { + this.stsEndpoint = `sts.${this.stsRegionId}.aliyuncs.com` + } + } else { this.stsEndpoint = 'sts.aliyuncs.com' } + } + + return new OIDCRoleArnCredentialsProvider(this); + } +} + +export default class OIDCRoleArnCredentialsProvider extends SessionCredentialProvider implements CredentialsProvider { + private readonly roleArn: string; + private readonly oidcProviderArn: string; + private readonly oidcTokenFilePath: string; + private readonly policy: string; + private readonly durationSeconds: number; + private readonly roleSessionName: string; + runtime: { [key: string]: any }; + private readonly stsEndpoint: string; + private doRequest = doRequest; + private readonly readTimeout: number; + private readonly connectTimeout: number; + + lastUpdateTimestamp: number; + + static builder() { + return new OIDCRoleArnCredentialsProviderBuilder(); + } + + constructor(builder: OIDCRoleArnCredentialsProviderBuilder) { + super(STALE_TIME); + this.refresher = this.getCredentialsInternal; + this.roleArn = builder.roleArn; + this.oidcProviderArn = builder.oidcProviderArn; + this.oidcTokenFilePath = builder.oidcTokenFilePath; + this.policy = builder.policy; + this.durationSeconds = builder.durationSeconds; + this.roleSessionName = builder.roleSessionName; + this.stsEndpoint = builder.stsEndpoint; + this.readTimeout = builder.readTimeout; + this.connectTimeout = builder.connectTimeout; + // used for mock + this.doRequest = doRequest; + } + + getProviderName(): string { + return 'oidc_role_arn'; + } + + async getCredentialsInternal(): Promise { + const oidcToken = await readFileAsync(this.oidcTokenFilePath, 'utf8'); + const builder = Request.builder().withMethod('POST').withProtocol('https').withHost(this.stsEndpoint).withReadTimeout(this.readTimeout || 10000).withConnectTimeout(this.connectTimeout || 5000); + + const queries = Object.create(null); + queries['Version'] = '2015-04-01'; + queries['Action'] = 'AssumeRoleWithOIDC'; + queries['Format'] = 'JSON'; + queries['Timestamp'] = utils.timestamp(); + builder.withQueries(queries); + + const bodyForm = Object.create(null); + bodyForm['OIDCProviderArn'] = this.oidcProviderArn; + bodyForm['OIDCToken'] = oidcToken; + bodyForm['RoleArn'] = this.roleArn; + if (this.policy) { + bodyForm['Policy'] = this.policy; + } + + bodyForm['RoleSessionName'] = this.roleSessionName + bodyForm['DurationSeconds'] = `${this.durationSeconds}`; + + builder.withBodyForm(bodyForm); + + const headers = Object.create(null); + // set headers + headers['Content-Type'] = 'application/x-www-form-urlencoded'; + builder.withHeaders(headers); + + const request = builder.build(); + const response = await this.doRequest(request); + + if (response.statusCode !== 200) { + throw new Error(`get sts token failed with OIDC: ${response.body.toString('utf8')}`) + } + + let data; + try { + data = JSON.parse(response.body.toString('utf8')); + } catch (ex) { + throw new Error(`get sts token failed with OIDC, unmarshal fail: ${response.body.toString('utf8')}`); + } + + if (!data || !data.Credentials) { + throw new Error(`get sts token failed with OIDC`); + } + + const { AccessKeyId, AccessKeySecret, SecurityToken, Expiration } = data.Credentials; + if (!AccessKeyId || !AccessKeySecret || !SecurityToken) { + throw new Error('get sts token failed with OIDC') + } + + return new Session(AccessKeyId, AccessKeySecret, SecurityToken, Expiration); + } +} diff --git a/backend/node_modules/@alicloud/credentials/src/providers/profile.ts b/backend/node_modules/@alicloud/credentials/src/providers/profile.ts new file mode 100644 index 0000000..d322da3 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/providers/profile.ts @@ -0,0 +1,114 @@ +import path from 'path'; +import os from 'os'; + +import Credentials from '../credentials'; +import CredentialsProvider from '../credentials_provider'; +import { loadIni } from '../util/utils'; + +import StaticAKCredentialsProvider from './static_ak'; +import ECSRAMRoleCredentialsProvider from './ecs_ram_role'; +import RAMRoleARNCredentialsProvider from './ram_role_arn'; +import OIDCRoleArnCredentialsProvider from './oidc_role_arn' + +export default class ProfileCredentialsProvider implements CredentialsProvider { + private readonly profileName: string; + private innerProvider: CredentialsProvider; + // used for mock + private readonly homedir: string = os.homedir(); + + async getCredentials(): Promise { + if (!this.innerProvider) { + let sharedCfgPath = process.env.ALIBABA_CLOUD_CREDENTIALS_FILE; + if (!sharedCfgPath) { + if (!this.homedir) { + throw new Error('cannot found home dir'); + } + sharedCfgPath = path.join(this.homedir, '.alibabacloud/credentials'); + } + + const ini = await loadIni(sharedCfgPath); + this.innerProvider = this.getCredentialsProvider(ini); + } + + const credentials = await this.innerProvider.getCredentials(); + + return Credentials.builder() + .withAccessKeyId(credentials.accessKeyId) + .withAccessKeySecret(credentials.accessKeySecret) + .withSecurityToken(credentials.securityToken) + .withProviderName(`${this.getProviderName()}/${this.innerProvider.getProviderName()}`) + .build(); + } + + getCredentialsProvider(ini: any): CredentialsProvider { + const config = ini[this.profileName] || {}; + if (!config.type) { + throw new Error(`Can not find credential type for "${this.profileName}"`); + } + + switch (config.type) { + case 'access_key': + return StaticAKCredentialsProvider.builder() + .withAccessKeyId(config.access_key_id) + .withAccessKeySecret(config.access_key_secret) + .build(); + case 'ecs_ram_role': + return ECSRAMRoleCredentialsProvider.builder() + .withRoleName(config.role_name) + .build(); + case 'ram_role_arn': + { + const previous = StaticAKCredentialsProvider.builder() + .withAccessKeyId(config.access_key_id) + .withAccessKeySecret(config.access_key_secret) + .build(); + return RAMRoleARNCredentialsProvider.builder() + .withCredentialsProvider(previous) + .withRoleArn(config.role_arn) + .withRoleSessionName(config.role_session_name) + .withPolicy(config.policy) + // .withStsEndpoint(config.stsEndpoint) + // .withStsRegionId(config.stsRegionId) + // .withEnableVpc(config.enableVpc) + // .withExternalId(config.enableVpc) + .build(); + } + default: + throw new Error('Invalid type option, support: access_key, ecs_ram_role, ram_role_arn'); + } + } + + getProviderName(): string { + return 'profile'; + } + + public static builder(): ProfileCredentialsProviderBuilder { + return new ProfileCredentialsProviderBuilder(); + } + + constructor(builder: ProfileCredentialsProviderBuilder) { + this.profileName = builder.profileName; + } +} + +class ProfileCredentialsProviderBuilder { + profileName: string; + + withProfileName(profileName: string) { + this.profileName = profileName; + return this; + } + + build() { + // 优先级: + // 1. 使用显示指定的 profileName + // 2. 使用环境变量(ALIBABA_CLOUD_PROFILE)指定的 profileName + // 3. 兜底使用 default 作为 profileName + if (!this.profileName) { + this.profileName = process.env.ALIBABA_CLOUD_PROFILE || 'default'; + } + + return new ProfileCredentialsProvider(this); + } + +} diff --git a/backend/node_modules/@alicloud/credentials/src/providers/ram_role_arn.ts b/backend/node_modules/@alicloud/credentials/src/providers/ram_role_arn.ts new file mode 100644 index 0000000..23bab0d --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/providers/ram_role_arn.ts @@ -0,0 +1,280 @@ +import * as kitx from 'kitx'; +import debug from 'debug'; + +import * as utils from '../util/utils'; + +import Credentials from '../credentials'; +import CredentialsProvider from '../credentials_provider' +import { doRequest, Request } from './http'; +import { Session, SessionCredentialProvider, STALE_TIME } from './session'; + +const log = debug('sign'); + +// type HttpOptions struct { +// Proxy : string +// ConnectTimeout int +// ReadTimeout int +// } + +class RAMRoleARNCredentialsProviderBuilder { + credentialsProvider: CredentialsProvider; + roleArn: string; + roleSessionName: string; + durationSeconds: number; + stsEndpoint: string; + stsRegionId: string; + policy: string; + externalId: string; + enableVpc?: boolean; + readTimeout?: number; + connectTimeout?: number; + + build(): RAMRoleARNCredentialsProvider { + if (!this.credentialsProvider) { + throw new Error('must specify a previous credentials provider to asssume role'); + } + + if (!(this.roleArn = this.roleArn || process.env.ALIBABA_CLOUD_ROLE_ARN)) throw new Error('the RoleArn is empty'); + + if (!this.roleSessionName) { + this.roleSessionName = process.env.ALIBABA_CLOUD_ROLE_SESSION_NAME || 'credentials-nodejs-' + Date.now(); + } + + if (!this.stsRegionId) { + this.stsRegionId = process.env.ALIBABA_CLOUD_STS_REGION; + } + + if (!this.enableVpc) { + this.enableVpc = process.env.ALIBABA_CLOUD_VPC_ENDPOINT_ENABLED && process.env.ALIBABA_CLOUD_VPC_ENDPOINT_ENABLED.toLowerCase() === 'true' || false; + } + + // duration seconds + if (!this.durationSeconds) { + // default to 3600 + this.durationSeconds = 3600 + } + + if (this.durationSeconds < 900) { + throw new Error('session duration should be in the range of 900s - max session duration'); + } + + // sts endpoint + if (!this.stsEndpoint) { + if (this.stsRegionId) { + if (this.enableVpc) { + this.stsEndpoint = `sts-vpc.${this.stsRegionId}.aliyuncs.com` + } else { + this.stsEndpoint = `sts.${this.stsRegionId}.aliyuncs.com` + } + } else { this.stsEndpoint = 'sts.aliyuncs.com' } + } + + return new RAMRoleARNCredentialsProvider(this); + } + + withCredentialsProvider(credentialsProvider: CredentialsProvider): RAMRoleARNCredentialsProviderBuilder { + this.credentialsProvider = credentialsProvider; + return this; + } + + withRoleArn(roleArn: string): RAMRoleARNCredentialsProviderBuilder { + this.roleArn = roleArn + return this; + } + + withStsRegionId(regionId: string): RAMRoleARNCredentialsProviderBuilder { + this.stsRegionId = regionId + return this; + } + + withStsEndpoint(endpoint: string): RAMRoleARNCredentialsProviderBuilder { + this.stsEndpoint = endpoint + return this; + } + + withRoleSessionName(roleSessionName: string): RAMRoleARNCredentialsProviderBuilder { + this.roleSessionName = roleSessionName + return this; + } + + withPolicy(policy: string): RAMRoleARNCredentialsProviderBuilder { + this.policy = policy + return this; + } + + withExternalId(externalId: string): RAMRoleARNCredentialsProviderBuilder { + this.externalId = externalId + return this; + } + + withDurationSeconds(durationSeconds: number): RAMRoleARNCredentialsProviderBuilder { + this.durationSeconds = durationSeconds + return this; + } + + withEnableVpc(enableVpc: boolean): RAMRoleARNCredentialsProviderBuilder { + this.enableVpc = enableVpc + return this; + } + + withReadTimeout(readTimeout: number): RAMRoleARNCredentialsProviderBuilder { + this.readTimeout = readTimeout + return this; + } + + withConnectTimeout(connectTimeout: number): RAMRoleARNCredentialsProviderBuilder { + this.connectTimeout = connectTimeout + return this; + } +} + +function encode(str: string): string { + const result = encodeURIComponent(str); + + return result.replace(/!/g, '%21') + .replace(/'/g, '%27') + .replace(/\(/g, '%28') + .replace(/\)/g, '%29') + .replace(/\*/g, '%2A'); +} + +export default class RAMRoleARNCredentialsProvider extends SessionCredentialProvider implements CredentialsProvider { + private readonly credentialsProvider: CredentialsProvider; + private readonly stsEndpoint: string; + private readonly roleSessionName: string; + private readonly policy: string; + private readonly durationSeconds: number; + private readonly externalId: string; + private readonly roleArn: string; + private readonly readTimeout: number; + private readonly connectTimeout: number; + + // used for mock + private doRequest = doRequest; + + private lastUpdateTimestamp: number; + + static builder(): RAMRoleARNCredentialsProviderBuilder { + return new RAMRoleARNCredentialsProviderBuilder(); + } + + constructor(builder: RAMRoleARNCredentialsProviderBuilder) { + super(STALE_TIME); + this.refresher = this.getCredentialsInternal; + this.credentialsProvider = builder.credentialsProvider; + this.stsEndpoint = builder.stsEndpoint; + this.roleSessionName = builder.roleSessionName; + this.policy = builder.policy; + this.durationSeconds = builder.durationSeconds; + this.roleArn = builder.roleArn; + this.externalId = builder.externalId; + this.readTimeout = builder.readTimeout; + this.connectTimeout = builder.connectTimeout; + } + + private async getCredentialsInternal(): Promise { + const credentials = await this.credentialsProvider.getCredentials(); + const method = 'POST'; + const builder = Request.builder().withMethod(method).withProtocol('https').withHost(this.stsEndpoint).withReadTimeout(this.readTimeout || 10000).withConnectTimeout(this.connectTimeout || 5000); + + const queries = Object.create(null); + queries['Version'] = '2015-04-01'; + queries['Action'] = 'AssumeRole'; + queries['Format'] = 'JSON'; + queries['Timestamp'] = utils.timestamp(); + queries['SignatureMethod'] = 'HMAC-SHA1'; + queries['SignatureVersion'] = '1.0'; + queries['SignatureNonce'] = kitx.makeNonce(); + queries['AccessKeyId'] = credentials.accessKeyId; + + if (credentials.securityToken) { + queries['SecurityToken'] = credentials.securityToken; + } + + const bodyForm = Object.create(null); + bodyForm['RoleArn'] = this.roleArn; + if (this.policy) { + bodyForm['Policy'] = this.policy; + } + if (this.externalId) { + bodyForm['ExternalId'] = this.externalId; + } + + bodyForm['RoleSessionName'] = this.roleSessionName + bodyForm['DurationSeconds'] = `${this.durationSeconds}`; + builder.withBodyForm(bodyForm); + + // caculate signature + const signParams = Object.create(null); + for (const [key, value] of Object.entries(queries)) { + signParams[key] = value + } + for (const [key, value] of Object.entries(bodyForm)) { + signParams[key] = value + } + + const keys = Object.keys(signParams).sort(); + const stringToSign = `${method}&${encode('/')}&${encode(keys.map((key) => { + return `${encode(key)}=${encode(signParams[key])}`; + }).join('&'))}`; + + log('stringToSign[Client]:'); + log(stringToSign); + const secret = credentials.accessKeySecret + '&'; + const signature = kitx.sha1(stringToSign, secret, 'base64') as string; + queries['Signature'] = signature; + builder.withQueries(queries); + + const headers = Object.create(null); + // set headers + headers['Content-Type'] = 'application/x-www-form-urlencoded'; + headers['x-acs-credentials-provider'] = credentials.providerName + builder.withHeaders(headers); + + // if (this.httpOptions) { + // req.connectTimeout = this.httpOptions.connectTimeout; + // req.readTimeout = this.httpOptions.readTimeout; + // req.proxy = this.httpOptions.proxy; + // } + + const request = builder.build(); + + const response = await this.doRequest(request); + + if (response.statusCode != 200) { + if (response.headers['content-type'] && response.headers['content-type'].startsWith('application/json')) { + const body = JSON.parse(response.body.toString('utf8')); + const serverStringToSign = (body.Message as string).slice('Specified signature is not matched with our calculation. server string to sign is:'.length); + log('stringToSign[Server]:') + log(stringToSign) + if (body.Code === 'SignatureDoesNotMatch' && serverStringToSign === stringToSign) { + throw new Error(`the access key secret is invalid`); + } + } + + throw new Error(`refresh session token failed: ${response.body.toString('utf8')}`) + } + + let data; + try { + data = JSON.parse(response.body.toString('utf8')); + } catch (ex) { + throw new Error(`refresh RoleArn sts token err, unmarshal fail: ${response.body.toString('utf8')}`); + } + + if (!data || !data.Credentials) { + throw new Error(`refresh RoleArn sts token err, fail to get credentials`); + } + + if (!data.Credentials.AccessKeyId || !data.Credentials.AccessKeySecret || !data.Credentials.SecurityToken) { + throw new Error('refresh RoleArn sts token err, fail to get credentials') + } + + const { AccessKeyId, AccessKeySecret, SecurityToken, Expiration } = data.Credentials; + return new Session(AccessKeyId, AccessKeySecret, SecurityToken, Expiration); + } + + getProviderName(): string { + return `ram_role_arn/${this.credentialsProvider.getProviderName()}`; + } +} diff --git a/backend/node_modules/@alicloud/credentials/src/providers/session.ts b/backend/node_modules/@alicloud/credentials/src/providers/session.ts new file mode 100644 index 0000000..5f334a0 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/providers/session.ts @@ -0,0 +1,141 @@ +import { parseUTC } from './time' +import { getRandomInt } from '../util/utils' +import CredentialsProvider from '../credentials_provider' +import Credentials from '../credentials' + +export const STALE_TIME = 15 * 60; + +export class Session { + accessKeyId: string; + accessKeySecret: string; + securityToken: string; + expiration: string; + + constructor(accessKeyId: string, accessKeySecret: string, securityToken: string, expiration: string) { + this.accessKeyId = accessKeyId; + this.accessKeySecret = accessKeySecret; + this.securityToken = securityToken; + this.expiration = expiration; + } +} + +export declare type SessionRefresher = () => Promise; + +export class SessionCredentialProvider implements CredentialsProvider { + private expirationTimestamp: number; + private session: Session; + private refreshFaliure: number; + private readonly staleTime: number; + private readonly prefetchTime: number; + private staleTimestamp: number; + private prefetchTimestamp: number; + refresher: SessionRefresher; + + constructor(staleTime: number = 0, prefetchTime: number = 0) { + this.staleTime = staleTime || STALE_TIME; + if(prefetchTime) { + this.prefetchTime = prefetchTime; + this.prefetchTimestamp = Date.now() + (prefetchTime * 1000); + } + this.refreshFaliure = 0; + } + + async getCredentials(): Promise { + this.session = await this.getSession(); + + return Credentials.builder() + .withAccessKeyId(this.session.accessKeyId) + .withAccessKeySecret(this.session.accessKeySecret) + .withSecurityToken(this.session.securityToken) + .withProviderName(this.getProviderName()) + .build(); + } + + refreshTimestamp() { + this.staleTimestamp = this.expirationTimestamp - this.staleTime; + if(this.prefetchTimestamp) { + this.prefetchTimestamp = (Date.now() + (this.prefetchTime * 1000)) / 1000; + } + } + + maxStaleFailureJitter(): number { + const exponentialBackoffMillis = (1 << (this.refreshFaliure - 1)); + return exponentialBackoffMillis > 10 ? exponentialBackoffMillis : 10; + } + + jitterTime(time: number, jitterStart: number, jitterEnd: number): number { + const jitterRange = jitterEnd - jitterStart; + const jitterAmount = Math.abs(Math.floor(Math.random() * jitterRange)); + return time + jitterStart + jitterAmount; + } + + async refreshSession(): Promise { + try { + const session = await this.refresher(); + const now = Date.now() / 1000; + const oldSessionAvailable = this.staleTimestamp > now; + const oldSession = this.session; + this.expirationTimestamp = parseUTC(session.expiration) / 1000; + this.session = session; + this.refreshFaliure = 0; + this.refreshTimestamp(); + // 过期时间大于15分钟,不用管 + if (this.staleTimestamp > now) { + return; + } + // 不足或等于15分钟,但未过期,下次会再次刷新 + if (now < (this.staleTimestamp + this.staleTime)) { + this.expirationTimestamp = now + this.staleTime; + } + // 已过期,看缓存,缓存若大于15分钟,返回缓存,若小于15分钟,则根据策略判断是立刻重试还是稍后重试 + if (now > (this.staleTimestamp + this.staleTime)) { + if(oldSessionAvailable) { + this.session = oldSession; + this.expirationTimestamp = parseUTC(oldSession.expiration) / 1000; + this.refreshTimestamp(); + return; + } + const waitUntilNextRefresh = 50 + getRandomInt(20); + this.expirationTimestamp = now + waitUntilNextRefresh + this.staleTime; + } + } catch(err) { + if (!this.session) { + throw err; + } + const now = Date.now() / 1000; + if (now < this.staleTimestamp) { + return; + } + this.refreshFaliure++; + this.expirationTimestamp = this.jitterTime(now, 1, this.maxStaleFailureJitter()) + this.staleTime; + } + } + async getSession(): Promise { + if (this.needUpdateCredential() || this.shouldPrefetchCredential()) { + await this.refreshSession(); + this.refreshTimestamp(); + } + return this.session; + } + + needUpdateCredential(): boolean { + if (!this.session || !this.expirationTimestamp) { + return true; + } + + return (Date.now() / 1000) >= this.staleTimestamp; + } + + shouldPrefetchCredential(): boolean { + if (!this.prefetchTimestamp) { + return false; + } + + return this.expirationTimestamp - (Date.now() / 1000) <= this.prefetchTime; + } + + getProviderName(): string { + return 'session'; + } +} + diff --git a/backend/node_modules/@alicloud/credentials/src/providers/static_ak.ts b/backend/node_modules/@alicloud/credentials/src/providers/static_ak.ts new file mode 100644 index 0000000..685e127 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/providers/static_ak.ts @@ -0,0 +1,71 @@ + +import Credentials from '../credentials'; +import CredentialsProvider from '../credentials_provider'; + +/** + * @internal + */ +export class StaticAKCredentialsProviderBuilder { + accessKeyId: string; + accessKeySecret: string; + + public withAccessKeyId(accessKeyId: string): StaticAKCredentialsProviderBuilder { + this.accessKeyId = accessKeyId; + return this; + } + + public withAccessKeySecret(accessKeySecret: string): StaticAKCredentialsProviderBuilder { + this.accessKeySecret = accessKeySecret; + return this; + } + + public build(): StaticAKCredentialsProvider { + if (!this.accessKeyId) { + this.accessKeyId = process.env['ALIBABA_CLOUD_ACCESS_KEY_ID']; + } + + if (!this.accessKeyId) { + throw new Error('the access key id is empty'); + } + + if (!this.accessKeySecret) { + this.accessKeySecret = process.env['ALIBABA_CLOUD_ACCESS_KEY_SECRET']; + } + + if (!this.accessKeySecret) { + throw new Error('the access key secret is empty'); + } + + return new StaticAKCredentialsProvider(this); + } +} + +/** + * @internal + */ +export default class StaticAKCredentialsProvider implements CredentialsProvider { + static builder(): StaticAKCredentialsProviderBuilder { + return new StaticAKCredentialsProviderBuilder(); + } + + private readonly accessKeyId: string; + private readonly accessKeySecret: string; + + public constructor(builder : StaticAKCredentialsProviderBuilder) { + this.accessKeyId = builder.accessKeyId; + this.accessKeySecret = builder.accessKeySecret; + } + + getProviderName() : string { + return 'static_ak'; + } + + async getCredentials() : Promise { + const credentials = Credentials + .builder() + .withAccessKeyId(this.accessKeyId).withAccessKeySecret(this.accessKeySecret) + .withProviderName('static_ak') + .build(); + return credentials; + } +} diff --git a/backend/node_modules/@alicloud/credentials/src/providers/static_sts.ts b/backend/node_modules/@alicloud/credentials/src/providers/static_sts.ts new file mode 100644 index 0000000..6ab96e0 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/providers/static_sts.ts @@ -0,0 +1,87 @@ + +import Credentials from '../credentials'; +import CredentialsProvider from '../credentials_provider'; + +/** + * @internal + */ +export class StaticSTSCredentialsProviderBuilder { + accessKeyId: string; + accessKeySecret: string; + securityToken: string; + + public withAccessKeyId(accessKeyId: string): StaticSTSCredentialsProviderBuilder { + this.accessKeyId = accessKeyId; + return this; + } + + public withAccessKeySecret(accessKeySecret: string): StaticSTSCredentialsProviderBuilder { + this.accessKeySecret = accessKeySecret; + return this; + } + + public withSecurityToken(securityToken: string): StaticSTSCredentialsProviderBuilder { + this.securityToken = securityToken; + return this; + } + + public build(): StaticSTSCredentialsProvider { + if (!this.accessKeyId) { + this.accessKeyId = process.env['ALIBABA_CLOUD_ACCESS_KEY_ID']; + } + + if (!this.accessKeyId) { + throw new Error('the access key id is empty'); + } + + if (!this.accessKeySecret) { + this.accessKeySecret = process.env['ALIBABA_CLOUD_ACCESS_KEY_SECRET']; + } + + if (!this.accessKeySecret) { + throw new Error('the access key secret is empty'); + } + + if (!this.securityToken) { + this.securityToken = process.env['ALIBABA_CLOUD_SECURITY_TOKEN']; + } + + if (!this.securityToken) { + throw new Error('the security token is empty'); + } + + return new StaticSTSCredentialsProvider(this); + } +} + +/** + * @internal + */ +export default class StaticSTSCredentialsProvider implements CredentialsProvider { + static builder(): StaticSTSCredentialsProviderBuilder { + return new StaticSTSCredentialsProviderBuilder(); + } + + private readonly accessKeyId: string; + private readonly accessKeySecret: string; + private readonly securityToken: string; + + public constructor(builder: StaticSTSCredentialsProviderBuilder) { + this.accessKeyId = builder.accessKeyId; + this.accessKeySecret = builder.accessKeySecret; + this.securityToken = builder.securityToken; + } + + getProviderName() : string { + return 'static_sts'; + } + + async getCredentials(): Promise { + return Credentials.builder() + .withAccessKeyId(this.accessKeyId) + .withAccessKeySecret(this.accessKeySecret) + .withSecurityToken(this.securityToken) + .withProviderName(this.getProviderName()) + .build(); + } +} diff --git a/backend/node_modules/@alicloud/credentials/src/providers/time.ts b/backend/node_modules/@alicloud/credentials/src/providers/time.ts new file mode 100644 index 0000000..945875b --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/providers/time.ts @@ -0,0 +1,93 @@ +/** + * Parses a UTC format date time string and returns the number of milliseconds between midnight, + * January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date. + * @param value A UTC format date time string. For example: 2015-04-09T11:52:19Z + * @returns The number of milliseconds between 1970.01.01 to the specified date. + */ +export function parseUTC(value: string): number { + if (!value) { + throw new Error('invalid UTC format time string'); + } + + if (value.length === 20) { + // 2024-08-30T07:03:06Z + if (value[4] !== '-' || value[7] !== '-' || value[10] !== 'T' || value[13] !== ':' || value[16] !== ':' || value[19] !== 'Z') { + throw new Error('invalid UTC format date string'); + } + } else if (value.length === 24) { + // 2024-08-30T07:03:06.117Z + if (value[4] !== '-' || value[7] !== '-' || value[10] !== 'T' || value[13] !== ':' || value[16] !== ':' || value[19] !== '.' || value[23] !== 'Z') { + throw new Error('invalid UTC format date string'); + } + } else { + throw new Error('invalid UTC format time string'); + } + + const yearStr = value.slice(0, 4); + const year = Number.parseInt(yearStr, 10); + if (isNaN(year)) { + throw new Error('invalid year string'); + } + + const monthStr = value.slice(5, 7); + const month = Number.parseInt(monthStr, 10); + if (isNaN(month)) { + throw new Error('invalid month string'); + } + + if (month < 1 || month > 12) { + throw new Error('invalid month value'); + } + + const dateStr = value.slice(8, 10); + const date = Number.parseInt(dateStr, 10); + if (isNaN(date)) { + throw new Error('invalid date string'); + } + + if (date < 1 || date > 31) { + throw new Error('invalid date value'); + } + + const hoursStr = value.slice(11, 13); + const hours = Number.parseInt(hoursStr, 10); + if (isNaN(hours)) { + throw new Error('invalid hours string'); + } + + if (hours < 0 || hours > 24) { + throw new Error('invalid hours value'); + } + + const minutesStr = value.slice(14, 16); + const minutes = Number.parseInt(minutesStr, 10); + if (isNaN(minutes)) { + throw new Error('invalid minutes string'); + } + + if (minutes < 0 || minutes > 60) { + throw new Error('invalid minutes value'); + } + + const secondsStr = value.slice(17, 19); + const seconds = Number.parseInt(secondsStr, 10); + if (isNaN(seconds)) { + throw new Error('invalid seconds string'); + } + + if (seconds < 0 || seconds > 60) { + throw new Error('invalid seconds value'); + } + + if (value.length === 24) { + const msStr = value.slice(20, 23); + const ms = Number.parseInt(msStr, 10); + if (isNaN(ms)) { + throw new Error('invalid ms string'); + } + + return Date.UTC(year, month - 1, date, hours, minutes, seconds, ms); + } + + return Date.UTC(year, month - 1, date, hours, minutes, seconds); +} diff --git a/backend/node_modules/@alicloud/credentials/src/providers/uri.ts b/backend/node_modules/@alicloud/credentials/src/providers/uri.ts new file mode 100644 index 0000000..a7e11d9 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/providers/uri.ts @@ -0,0 +1,92 @@ + +import Credentials from '../credentials'; +import CredentialsProvider from '../credentials_provider'; +import { Session, SessionCredentialProvider, STALE_TIME } from './session' +import { Request, doRequest } from './http' + + +/** + * @internal + */ +export default class URICredentialsProvider extends SessionCredentialProvider implements CredentialsProvider { + static builder(): URICredentialsProviderBuilder { + return new URICredentialsProviderBuilder(); + } + + private readonly credentialsURI: string; + private doRequest = doRequest; + private readonly readTimeout: number; + private readonly connectTimeout: number; + + public constructor(builder: URICredentialsProviderBuilder) { + super(STALE_TIME); + this.refresher = this.getCredentialsUri; + this.credentialsURI = builder.credentialsURI; + this.readTimeout = builder.readTimeout; + this.connectTimeout = builder.connectTimeout; + } + + getProviderName(): string { + return 'credential_uri'; + } + + private async getCredentialsUri(): Promise { + const builder = Request.builder() + .withMethod('GET') + .withURL(this.credentialsURI) + .withReadTimeout(this.readTimeout || 10000) + .withConnectTimeout(this.connectTimeout || 5000); + + const request = builder.build(); + const response = await this.doRequest(request); + + if (response.statusCode !== 200) { + throw new Error(`get sts token failed, httpStatus: ${response.statusCode}, message = ${response.body.toString('utf8')}.`); + } + + let data; + try { + data = JSON.parse(response.body.toString('utf8')); + } catch (ex) { + throw new Error(`get sts token failed, json parse failed: ${ex.message}, result: ${response.body.toString('utf8')}.`) + } + + if (!data || !data.AccessKeyId || !data.AccessKeySecret || !data.SecurityToken) { + throw new Error(`error retrieving credentials from credentialsURI result: ${JSON.stringify(data)}.`) + } + + return new Session(data.AccessKeyId, data.AccessKeySecret, data.SecurityToken, data.Expiration); + } +} + + + +/** + * @internal + */ +export class URICredentialsProviderBuilder { + credentialsURI: string; + readTimeout?: number; + connectTimeout?: number; + + public withCredentialsURI(credentialsURI: string): URICredentialsProviderBuilder { + this.credentialsURI = credentialsURI; + return this; + } + withReadTimeout(readTimeout: number): URICredentialsProviderBuilder { + this.readTimeout = readTimeout + return this; + } + + withConnectTimeout(connectTimeout: number): URICredentialsProviderBuilder { + this.connectTimeout = connectTimeout + return this; + } + + public build(): URICredentialsProvider { + if (!this.credentialsURI) { + this.credentialsURI = process.env.ALIBABA_CLOUD_CREDENTIALS_URI; + } + return new URICredentialsProvider(this); + } +} diff --git a/backend/node_modules/@alicloud/credentials/src/ram_role_arn_credential.ts b/backend/node_modules/@alicloud/credentials/src/ram_role_arn_credential.ts new file mode 100644 index 0000000..7235379 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/ram_role_arn_credential.ts @@ -0,0 +1,56 @@ +import SessionCredential from './session_credential'; +import { request } from './util/http'; +import Config from './config'; + +export default class RamRoleArnCredential extends SessionCredential { + roleArn: string; + policy: string; + durationSeconds: number; + roleSessionName: string; + runtime: {[key: string]: any}; + host: string; + + constructor(config: Config, runtime: {[key: string]: any} = {}) { + if (!config.accessKeyId) { + throw new Error('Missing required accessKeyId option in config for ram_role_arn'); + } + + if (!config.accessKeySecret) { + throw new Error('Missing required accessKeySecret option in config for ram_role_arn'); + } + + if (!config.roleArn) { + throw new Error('Missing required roleArn option in config for ram_role_arn'); + } + + const conf = new Config({ + type: 'ram_role_arn', + accessKeyId: config.accessKeyId, + accessKeySecret: config.accessKeySecret, + securityToken: config.securityToken + }); + super(conf); + this.roleArn = config.roleArn; + this.policy = config.policy; + this.durationSeconds = config.roleSessionExpiration || 3600; + this.roleSessionName = config.roleSessionName || 'role_session_name'; + this.runtime = runtime; + this.host = 'https://sts.aliyuncs.com'; + } + + async updateCredential() { + const params: {[key: string]: any} = { + accessKeyId: this.accessKeyId, + securityToken: this.securityToken, + roleArn: this.roleArn, + action: 'AssumeRole', + durationSeconds: this.durationSeconds, + roleSessionName: this.roleSessionName + }; + if (this.policy) { + params.policy = this.policy; + } + const json = await request(this.host, params, this.runtime, this.accessKeySecret); + this.sessionCredential = json.Credentials; + } +} diff --git a/backend/node_modules/@alicloud/credentials/src/rsa_key_pair_credential.ts b/backend/node_modules/@alicloud/credentials/src/rsa_key_pair_credential.ts new file mode 100644 index 0000000..c68e183 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/rsa_key_pair_credential.ts @@ -0,0 +1,47 @@ +import fs from 'fs'; +import SessionCredential from './session_credential'; +import * as utils from './util/utils'; +import { request } from './util/http'; +import ICredential from './icredential'; +import Config from './config'; + +const SECURITY_CRED_URL = 'http://100.100.100.200/latest/meta-data/ram/security-credentials/'; + +export default class RsaKeyPairCredential extends SessionCredential implements ICredential { + privateKey: string; + publicKeyId: string; + roleName: string; + + constructor(publicKeyId: string, privateKeyFile: string) { + if (!publicKeyId) { + throw new Error('Missing required publicKeyId option in config for rsa_key_pair'); + } + + if (!privateKeyFile) { + throw new Error('Missing required privateKeyFile option in config for rsa_key_pair'); + } + + if (!fs.existsSync(privateKeyFile)) { + throw new Error(`privateKeyFile ${privateKeyFile} cannot be empty`); + } + + const conf = new Config({ + type: 'rsa_key_pair' + }); + super(conf); + this.privateKey = utils.parseFile(privateKeyFile); + this.publicKeyId = publicKeyId; + } + + async updateCredential() { + const url = SECURITY_CRED_URL + this.roleName; + const json = await request(url, { + accessKeyId: this.publicKeyId, + action: 'GenerateSessionAccessKey', + durationSeconds: 3600, + signatureMethod: 'SHA256withRSA', + signatureType: 'PRIVATEKEY', + }, {}, this.privateKey); + this.sessionCredential = json.Credentials; + } +} diff --git a/backend/node_modules/@alicloud/credentials/src/session_credential.ts b/backend/node_modules/@alicloud/credentials/src/session_credential.ts new file mode 100644 index 0000000..493c2f9 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/session_credential.ts @@ -0,0 +1,70 @@ +import DefaultCredential from './default_credential'; +import * as utils from './util/utils'; +import Config from './config'; +import CredentialModel from './credential_model'; + +export default class SessionCredential extends DefaultCredential { + sessionCredential: any; + durationSeconds: number; + + constructor(config: Config) { + const conf = new Config({ + type: config.type, + accessKeyId: config.accessKeyId, + accessKeySecret: config.accessKeySecret, + securityToken: config.securityToken + }); + super(conf); + this.sessionCredential = null; + this.durationSeconds = config.durationSeconds || 3600; + } + + async updateCredential(): Promise { + throw new Error('need implemented in sub-class'); + } + + async ensureCredential(): Promise { + const needUpdate = this.needUpdateCredential(); + if (needUpdate) { + await this.updateCredential(); + } + } + + async getAccessKeyId() { + await this.ensureCredential(); + return this.sessionCredential.AccessKeyId; + } + + async getAccessKeySecret() { + await this.ensureCredential(); + return this.sessionCredential.AccessKeySecret; + } + + async getSecurityToken() { + await this.ensureCredential(); + return this.sessionCredential.SecurityToken; + } + + needUpdateCredential() { + if (!this.sessionCredential || !this.sessionCredential.Expiration || !this.sessionCredential.AccessKeyId || !this.sessionCredential.AccessKeySecret || !this.sessionCredential.SecurityToken) { + return true; + } + const expireTime = utils.timestamp(new Date(), this.durationSeconds * 0.05 * 1000); + if (this.sessionCredential.Expiration < expireTime) { + return true; + } + return false; + } + + async getCredential(): Promise { + await this.ensureCredential(); + return new CredentialModel({ + accessKeyId: this.sessionCredential.AccessKeyId, + accessKeySecret: this.sessionCredential.AccessKeySecret, + securityToken: this.sessionCredential.SecurityToken, + bearerToken: this.bearerToken, + type: this.type, + }); + } +} + diff --git a/backend/node_modules/@alicloud/credentials/src/sts_token_credential.ts b/backend/node_modules/@alicloud/credentials/src/sts_token_credential.ts new file mode 100644 index 0000000..2778957 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/sts_token_credential.ts @@ -0,0 +1,26 @@ +import DefaultCredential from './default_credential'; +import ICredential from './icredential'; +import Config from './config'; + +export default class StsTokenCredential extends DefaultCredential implements ICredential { + constructor(accessKeyId: string, accessKeySecret: string, securityToken: string) { + if (!accessKeyId) { + throw new Error('Missing required accessKeyId option in config for sts'); + } + + if (!accessKeySecret) { + throw new Error('Missing required accessKeySecret option in config for sts'); + } + + if (!securityToken) { + throw new Error('Missing required securityToken option in config for sts'); + } + const conf = new Config({ + type: 'sts', + accessKeyId, + accessKeySecret, + securityToken + }); + super(conf); + } +} diff --git a/backend/node_modules/@alicloud/credentials/src/uri_credential.ts b/backend/node_modules/@alicloud/credentials/src/uri_credential.ts new file mode 100644 index 0000000..4c2c4b5 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/uri_credential.ts @@ -0,0 +1,55 @@ +import httpx from 'httpx'; + +import Config from './config'; +import ICredential from './icredential'; +import SessionCredential from './session_credential'; + +export default class URICredential extends SessionCredential implements ICredential { + credentialsURI: string; + readTimeout?: number; + connectTimeout?: number; + + constructor(uri: string) { + const conf = new Config({ + type: 'credentials_uri', + credentialsURI: uri + }); + + super(conf); + if (!uri) { + this.credentialsURI = process.env['ALIBABA_CLOUD_CREDENTIALS_URI'] + } else { + this.credentialsURI = uri; + } + + if (!this.credentialsURI) { + throw new Error('Missing required credentialsURI option in config or environment variable for credentials_uri'); + } + } + + async updateCredential(): Promise { + const url = this.credentialsURI; + const response = await httpx.request(url, { readTimeout: this.readTimeout, connectTimeout: this.connectTimeout }); + if (response.statusCode !== 200) { + throw new Error(`Get credentials from ${url} failed, status code is ${response.statusCode}`); + } + const body = (await httpx.read(response, 'utf8')) as string; + let json; + try { + json = JSON.parse(body); + } catch (ex) { + throw new Error(`Get credentials from ${url} failed, unmarshal response failed, JSON is: ${body}`); + } + + if (json.Code !== 'Success') { + throw new Error(`Get credentials from ${url} failed, Code is ${json.Code}`); + } + + this.sessionCredential = { + AccessKeyId: json.AccessKeyId, + AccessKeySecret: json.AccessKeySecret, + Expiration: json.Expiration, + SecurityToken: json.SecurityToken, + }; + } +} diff --git a/backend/node_modules/@alicloud/credentials/src/util/helper.ts b/backend/node_modules/@alicloud/credentials/src/util/helper.ts new file mode 100644 index 0000000..7ed2e3f --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/util/helper.ts @@ -0,0 +1,7 @@ +import * as os from 'os'; +import pkg from '../../package.json'; + +export const DEFAULT_UA = `AlibabaCloud (${os.platform()}; ${os.arch()}) ` + + `Node.js/${process.version} Core/${pkg.version}`; + +export const DEFAULT_CLIENT = `Node.js(${process.version}), ${pkg.name}: ${pkg.version}`; diff --git a/backend/node_modules/@alicloud/credentials/src/util/http.ts b/backend/node_modules/@alicloud/credentials/src/util/http.ts new file mode 100644 index 0000000..98a61e0 --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/util/http.ts @@ -0,0 +1,147 @@ + + +import httpx from 'httpx'; +import * as kitx from 'kitx'; +import * as helper from './helper'; +import * as utils from './utils'; + +const STATUS_CODE = new Set([200, '200', 'OK', 'Success']); + +function firstLetterUpper(str: string): string { + return str.slice(0, 1).toUpperCase() + str.slice(1); +} + +function formatParams(params: { [key: string]: any }): { [key: string]: any } { + const keys = Object.keys(params); + const newParams: { [key: string]: string } = {}; + for (const key of keys) { + newParams[firstLetterUpper(key)] = params[key]; + } + return newParams; +} + +function encode(str: string): string { + const result = encodeURIComponent(str); + + return result.replace(/!/g, '%21') + .replace(/'/g, '%27') + .replace(/\(/g, '%28') + .replace(/\)/g, '%29') + .replace(/\*/g, '%2A'); +} + +function replaceRepeatList(target: { [key: string]: any }, key: string, repeat: any) { + for (let i = 0; i < repeat.length; i++) { + const item = repeat[i]; + + if (item && typeof item === 'object') { + const keys = Object.keys(item); + for (const itemKey of keys) { + target[`${key}.${i + 1}.${itemKey}`] = item[itemKey]; + } + } else { + target[`${key}.${i + 1}`] = item; + } + } +} + +function flatParams(params: { [key: string]: any }): { [key: string]: any } { + const target: { [key: string]: any } = {}; + const keys = Object.keys(params); + for (const key of keys) { + const value = params[key]; + if (Array.isArray(value)) { + replaceRepeatList(target, key, value); + } else { + target[key] = value; + } + } + return target; +} + +function normalize(params: { [key: string]: any }): string[][] { + const list = []; + const flated = flatParams(params); + const keys = Object.keys(flated).sort(); + for (const key of keys) { + const value = flated[key]; + list.push([encode(key), encode(value)]); // push [] + } + return list; +} + +function canonicalize(normalized: string[][]): string { + const fields = []; + for (const [key, value] of normalized) { + fields.push(key + '=' + value); + } + return fields.join('&'); +} + +function _buildParams(): { [key: string]: any } { + const defaultParams = { + Format: 'JSON', + SignatureMethod: 'HMAC-SHA1', + SignatureNonce: kitx.makeNonce(), + SignatureVersion: '1.0', + Timestamp: utils.timestamp(), + Version: '2015-04-01', + RegionId: 'cn-hangzhou' + + }; + return defaultParams; +} + +export async function request(host: string, params: { [key: string]: any } = {}, opts: { [key: string]: any } = {}, accessKeySecret?: string): Promise { + // 1. compose params and opts + let options: { [key: string]: any } = { + headers: { + 'x-sdk-client': helper.DEFAULT_CLIENT, + 'user-agent': helper.DEFAULT_UA + }, + ...opts + }; + + // format params until formatParams is false + if (options.formatParams !== false) { + params = formatParams(params); + } + params = { + ..._buildParams(), + ...params + }; + + // 2. calculate signature + const method = (opts.method || 'GET').toUpperCase(); + const normalized = normalize(params); + if (!options.anonymous) { + const canonicalized = canonicalize(normalized); + // 2.1 get string to sign + const stringToSign = `${method}&${encode('/')}&${encode(canonicalized)}`; + // 2.2 get signature + const key = accessKeySecret + '&'; + const signature = kitx.sha1(stringToSign, key, 'base64') as string; + // add signature + normalized.push(['Signature', encode(signature)]); + } + // 3. generate final url + const url = opts.method === 'POST' ? `${host}/` : `${host}/?${canonicalize(normalized)}`; + // 4. send request + if (opts.method === 'POST') { + opts.headers = opts.headers || {}; + opts.headers['content-type'] = 'application/x-www-form-urlencoded'; + opts.data = canonicalize(normalized); + } + const response = await httpx.request(url, opts); + const buffer = await httpx.read(response, 'utf8'); + const json = JSON.parse(buffer as string); + if (json.Code && !STATUS_CODE.has(json.Code)) { + const err = new Error(`${json.Message}`) as any; + err.name = json.Code + 'Error'; + err.data = json; + err.code = json.Code; + err.url = url; + throw err; + } + return json; +} diff --git a/backend/node_modules/@alicloud/credentials/src/util/utils.ts b/backend/node_modules/@alicloud/credentials/src/util/utils.ts new file mode 100644 index 0000000..869bf1c --- /dev/null +++ b/backend/node_modules/@alicloud/credentials/src/util/utils.ts @@ -0,0 +1,49 @@ +import * as ini from 'ini'; +import * as kitx from 'kitx'; +import fs from 'fs'; +import { promisify } from 'util'; + +const readFileAsync = promisify(fs.readFile); +const accessAsync = promisify(fs.access); + +export function timestamp(dateStr?: Date, timeChange?: number): string { + let date = new Date(dateStr); + if (!dateStr || isNaN(date.getTime())) { + date = new Date(); + } + if (timeChange) { + date.setTime(date.getTime() + timeChange); + } + const YYYY = date.getUTCFullYear(); + const MM = kitx.pad2(date.getUTCMonth() + 1); + const DD = kitx.pad2(date.getUTCDate()); + const HH = kitx.pad2(date.getUTCHours()); + const mm = kitx.pad2(date.getUTCMinutes()); + const ss = kitx.pad2(date.getUTCSeconds()); + // 删除掉毫秒部分 + return `${YYYY}-${MM}-${DD}T${HH}:${mm}:${ss}Z`; +} + +export function parseFile(file: string, ignoreErr: boolean = false): any { + // check read permission + try { + fs.accessSync(file, fs.constants.R_OK); + } catch (e) { + if (ignoreErr) { + return null; + } + throw new Error('Has no read permission to credentials file'); + } + + return ini.parse(fs.readFileSync(file, 'utf-8')); +} + +export async function loadIni(filePath: string): Promise { + await accessAsync(filePath, fs.constants.R_OK); + const content = await readFileAsync(filePath, 'utf-8'); + return ini.parse(content); +} + +export function getRandomInt(max: number): number { + return Math.floor(Math.random() * (max + 1)); +} diff --git a/backend/node_modules/@alicloud/darabonba-array/dist/client.d.ts b/backend/node_modules/@alicloud/darabonba-array/dist/client.d.ts new file mode 100644 index 0000000..b0763b7 --- /dev/null +++ b/backend/node_modules/@alicloud/darabonba-array/dist/client.d.ts @@ -0,0 +1,18 @@ +/** + * This is a array module + */ +export default class Client { + static split(raw: string[], index: number, limit: number): string[]; + static contains(raw: string[], str: string): boolean; + static index(raw: string[], str: string): number; + static size(raw: string[]): number; + static get(raw: string[], index: number): string; + static join(raw: string[], sep: string): string; + static concat(raw: string[], sep: string[]): string[]; + static ascSort(raw: string[]): string[]; + static descSort(raw: string[]): string[]; + /** + * append any array item + */ + static append(array: any, item: any): void; +} diff --git a/backend/node_modules/@alicloud/darabonba-array/dist/client.js b/backend/node_modules/@alicloud/darabonba-array/dist/client.js new file mode 100644 index 0000000..43e296a --- /dev/null +++ b/backend/node_modules/@alicloud/darabonba-array/dist/client.js @@ -0,0 +1,81 @@ +"use strict"; +// This file is auto-generated, don't edit it +Object.defineProperty(exports, "__esModule", { value: true }); +/** + * This is a array module + */ +class Client { + // 按照起止坐标截取数组 + static split(raw, index, limit) { + return raw.slice(index, index + limit); + } + // 判断数组是否包含指定字符串 + static contains(raw, str) { + if (null === raw || typeof (raw) === 'undefined') { + throw new Error('not a valid value for parameter'); + } + return raw.includes(str); + } + // 返回指定字符串在数组中的下标,如果不存在返回 -1 + static index(raw, str) { + if (null === raw || typeof (raw) === 'undefined') { + throw new Error('not a valid value for parameter'); + } + return raw.indexOf(str); + } + // 返回数组长度 + static size(raw) { + if (null === raw || typeof (raw) === 'undefined') { + throw new Error('not a valid value for parameter'); + } + return raw.length; + } + // 根据下标获取数组中的字符串元素 + static get(raw, index) { + if (null === raw || typeof (raw) === 'undefined') { + throw new Error('not a valid value for parameter'); + } + return raw[index]; + throw new Error('Un-implemented!'); + } + // 数组合并成字符串,并添加指定的间隔字符串 + static join(raw, sep) { + if (null === raw || typeof (raw) === 'undefined') { + throw new Error('not a valid value for parameter'); + } + return raw.join(sep); + throw new Error('Un-implemented!'); + } + // 合并两个字符串数组,并返回 + static concat(raw, sep) { + if (null === raw || typeof (raw) === 'undefined' || null === sep || typeof (sep) === 'undefined') { + throw new Error('not a valid value for parameter'); + } + return raw.concat(sep); + } + // 数组排序,升序 + static ascSort(raw) { + if (null === raw || typeof (raw) === 'undefined') { + throw new Error('not a valid value for parameter'); + } + return raw.sort(); + } + // 数组排序,降序 + static descSort(raw) { + if (null === raw || typeof (raw) === 'undefined') { + throw new Error('not a valid value for parameter'); + } + raw.sort(function (a, b) { return b.localeCompare(a); }); + return raw; + } + /** + * append any array item + */ + static append(array, item) { + if (null !== array && Array.isArray(array)) { + array.push(item); + } + } +} +exports.default = Client; +//# sourceMappingURL=client.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/darabonba-array/dist/client.js.map b/backend/node_modules/@alicloud/darabonba-array/dist/client.js.map new file mode 100644 index 0000000..0e57a1c --- /dev/null +++ b/backend/node_modules/@alicloud/darabonba-array/dist/client.js.map @@ -0,0 +1 @@ +{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";AAAA,6CAA6C;;AAI7C;;GAEG;AACH,MAAqB,MAAM;IAEzB,aAAa;IACb,MAAM,CAAC,KAAK,CAAC,GAAa,EAAE,KAAa,EAAE,KAAa;QAEtD,OAAO,GAAG,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,CAAC,CAAC;IACzC,CAAC;IAED,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;IACH,CAAC;CAEF;AApFD,yBAoFC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/darabonba-array/package.json b/backend/node_modules/@alicloud/darabonba-array/package.json new file mode 100644 index 0000000..f138a6a --- /dev/null +++ b/backend/node_modules/@alicloud/darabonba-array/package.json @@ -0,0 +1,39 @@ +{ + "name": "@alicloud/darabonba-array", + "version": "0.1.2", + "description": "", + "main": "dist/client.js", + "scripts": { + "test": "mocha -r ts-node/register ./tests/*test.ts", + "test-cov": "nyc -e .ts -r=html -r=text -r=lcov npm run test", + "build": "tsc", + "prepublishOnly": "tsc" + }, + "author": "", + "license": "ISC", + "devDependencies": { + "@types/chai": "^4.2.22", + "@types/mocha": "^9.0.0", + "@types/node": "^12.20.37", + "@types/should": "^13.0.0", + "@types/sinon": "^10.0.6", + "chai": "^4.3.4", + "cross-env": "^7.0.3", + "mocha": "^9.1.3", + "nyc": "^15.1.0", + "should": "^13.2.3", + "sinon": "^12.0.1", + "source-map-support": "^0.5.16", + "ts-node": "^8.10.2", + "tsconfig-paths": "^3.12.0", + "typescript": "^3.7.5" + }, + "dependencies": { + "@alicloud/tea-typescript": "^1.7.1" + }, + "files": [ + "dist", + "src" + ], + "repository": "https://github.com/aliyun/darabonba-array.git" +} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/darabonba-array/src/client.ts b/backend/node_modules/@alicloud/darabonba-array/src/client.ts new file mode 100644 index 0000000..27eca87 --- /dev/null +++ b/backend/node_modules/@alicloud/darabonba-array/src/client.ts @@ -0,0 +1,92 @@ +// This file is auto-generated, don't edit it + +import { stringify } from "querystring"; + +/** + * This is a array module + */ +export default class Client { + + // 按照起止坐标截取数组 + static split(raw: string[], index: number, limit: number): string[] { + + return raw.slice(index, index + limit); + } + + // 判断数组是否包含指定字符串 + static contains(raw: string[], str: string): boolean { + if (null === raw || typeof (raw) === 'undefined') { + throw new Error('not a valid value for parameter') + } + return raw.includes(str); + } + + // 返回指定字符串在数组中的下标,如果不存在返回 -1 + static index(raw: string[], str: string): number { + if (null === raw || typeof (raw) === 'undefined') { + throw new Error('not a valid value for parameter') + } + return raw.indexOf(str); + } + + // 返回数组长度 + static size(raw: string[]): number { + if (null === raw || typeof (raw) === 'undefined') { + throw new Error('not a valid value for parameter') + } + return raw.length; + } + + // 根据下标获取数组中的字符串元素 + static get(raw: string[], index: number): string { + if (null === raw || typeof (raw) === 'undefined') { + throw new Error('not a valid value for parameter') + } + return raw[index]; + throw new Error('Un-implemented!'); + } + + // 数组合并成字符串,并添加指定的间隔字符串 + static join(raw: string[], sep: string): string { + if (null === raw || typeof (raw) === 'undefined') { + throw new Error('not a valid value for parameter') + } + return raw.join(sep) + throw new Error('Un-implemented!'); + } + + // 合并两个字符串数组,并返回 + static concat(raw: string[], sep: string[]): string[] { + if (null === raw || typeof (raw) === 'undefined' || null === sep || typeof (sep) === 'undefined') { + throw new Error('not a valid value for parameter') + } + return raw.concat(sep); + } + + // 数组排序,升序 + static ascSort(raw: string[]): string[] { + if (null === raw || typeof (raw) === 'undefined') { + throw new Error('not a valid value for parameter') + } + return raw.sort(); + } + + // 数组排序,降序 + static descSort(raw: string[]): string[] { + if (null === raw || typeof (raw) === 'undefined') { + throw new Error('not a valid value for parameter') + } + raw.sort(function (a, b) { return b.localeCompare(a) }) + return raw; + } + + /** + * append any array item + */ + static append(array: any, item: any): void { + if (null !== array && Array.isArray(array)) { + array.push(item); + } + } + +} diff --git a/backend/node_modules/@alicloud/darabonba-encode-util/dist/client.d.ts b/backend/node_modules/@alicloud/darabonba-encode-util/dist/client.d.ts new file mode 100644 index 0000000..f1b8723 --- /dev/null +++ b/backend/node_modules/@alicloud/darabonba-encode-util/dist/client.d.ts @@ -0,0 +1,46 @@ +/// +export default class Client { + /** + * Encode the URL + * @param url string + * @return encoded string + */ + static urlEncode(url: string): string; + /** + * Special encoding for url params. + * @param params string + * @return encoded string + */ + static percentEncode(raw: string): string; + /** + * Encode the partial path of url. + * @param path string + * @return encoded string + */ + static pathEncode(path: string): string; + /** + * Hex encode for byte array. + * @param raw byte array + * @return encoded string + */ + static hexEncode(raw: Buffer): string; + /** + * Hash the raw data with signatureAlgorithm. + * @param raw hashing data + * @param signatureAlgorithm the autograph method + * @return hashed bytes + */ + static hash(raw: Buffer, signatureAlgorithm: string): Buffer; + /** + * Base64 encoder for byte array. + * @param raw byte array + * @return encoded string + */ + static base64EncodeToString(raw: Buffer): string; + /** + * Base64 dncoder for string. + * @param src string + * @return dncoded byte array + */ + static base64Decode(src: string): Buffer; +} diff --git a/backend/node_modules/@alicloud/darabonba-encode-util/dist/client.js b/backend/node_modules/@alicloud/darabonba-encode-util/dist/client.js new file mode 100644 index 0000000..76eb1d4 --- /dev/null +++ b/backend/node_modules/@alicloud/darabonba-encode-util/dist/client.js @@ -0,0 +1,121 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +// This file is auto-generated, don't edit it +/** + * Encode Util for Darabonba. + */ +const crypto_1 = __importDefault(require("crypto")); +class Client { + /** + * Encode the URL + * @param url string + * @return encoded string + */ + static urlEncode(url) { + //URLEncoder.encode(url, URL_ENCODING) + return url != null ? encodeURIComponent(url) : ''; + } + /** + * Special encoding for url params. + * @param params string + * @return encoded string + */ + static percentEncode(raw) { + return raw != null ? encodeURIComponent(raw).replace('+', '%20') + .replace('*', '%2A').replace('%7E', '~') : null; + } + /** + * Encode the partial path of url. + * @param path string + * @return encoded string + */ + static pathEncode(path) { + if (!path || path === '/') { + return path; + } + let paths = path.split('/'); + let sb = []; + for (let s of paths) { + sb.push(Client.percentEncode(s)); + } + return sb.join('/'); + } + /** + * Hex encode for byte array. + * @param raw byte array + * @return encoded string + */ + static hexEncode(raw) { + if (raw === null) { + return null; + } + return raw.toString("hex"); + } + /** + * Hash the raw data with signatureAlgorithm. + * @param raw hashing data + * @param signatureAlgorithm the autograph method + * @return hashed bytes + */ + static hash(raw, signatureAlgorithm) { + if (signatureAlgorithm == null) { + return null; + } + if (signatureAlgorithm.includes('HMAC-SHA256') || signatureAlgorithm.includes('RSA-SHA256')) { + const obj = crypto_1.default.createHash('sha256'); + obj.update(raw); + return obj.digest(); + } + else if (signatureAlgorithm.includes('HMAC-SM3')) { + const obj = crypto_1.default.createHash('sm3'); + obj.update(raw); + return obj.digest(); + } + } + /** + * Base64 encoder for byte array. + * @param raw byte array + * @return encoded string + */ + static base64EncodeToString(raw) { + return raw.toString('base64'); + } + /** + * Base64 dncoder for string. + * @param src string + * @return dncoded byte array + */ + static base64Decode(src) { + /** Convert Base64 data to a string */ + var toBinaryTable = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63, + 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, 0, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, + 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, + 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1 + ]; + var result = ''; + var leftbits = 0; + var leftdata = 0; + for (var i = 0; i < src.length; i++) { + var c = toBinaryTable[src.charCodeAt(i) & 0x7f]; + var padding = (src.charCodeAt(i) == '='.charCodeAt(0)); + if (c == -1) + continue; + leftdata = (leftdata << 6) | c; + leftbits += 6; + if (leftbits >= 8) { + leftbits -= 8; + if (!padding) + result += String.fromCharCode((leftdata >> leftbits) & 0xff); + leftdata &= (1 << leftbits) - 1; + } + } + if (leftbits) + throw Error('Corrupted base64 string'); + return Buffer.from(result); + } +} +exports.default = Client; +//# sourceMappingURL=client.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/darabonba-encode-util/dist/client.js.map b/backend/node_modules/@alicloud/darabonba-encode-util/dist/client.js.map new file mode 100644 index 0000000..936a6bf --- /dev/null +++ b/backend/node_modules/@alicloud/darabonba-encode-util/dist/client.js.map @@ -0,0 +1 @@ +{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;;;;AAAA,6CAA6C;AAC7C;;GAEG;AACH,oDAA4B;AAG5B,MAAqB,MAAM;IAEzB;;;;OAIG;IACH,MAAM,CAAC,SAAS,CAAC,GAAW;QAC1B,sCAAsC;QACtC,OAAO,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACpD,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,aAAa,CAAC,GAAW;QAC9B,OAAO,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC;aAC7D,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACpD,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,UAAU,CAAC,IAAY;QAC5B,IAAI,CAAC,IAAI,IAAI,IAAI,KAAK,GAAG,EAAE;YACzB,OAAO,IAAI,CAAC;SACb;QACD,IAAI,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC5B,IAAI,EAAE,GAAG,EAAE,CAAC;QACZ,KAAK,IAAI,CAAC,IAAI,KAAK,EAAE;YACnB,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;SAClC;QACD,OAAO,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACtB,CAAC;IAED;;;;OAIG;IACH,MAAM,CA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gBAC/D,QAAQ,IAAI,CAAC,CAAC,IAAI,QAAQ,CAAC,GAAG,CAAC,CAAC;aACjC;SACF;QACD,IAAI,QAAQ;YACV,MAAM,KAAK,CAAC,yBAAyB,CAAC,CAAC;QACzC,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC7B,CAAC;CAEF;AAlHD,yBAkHC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/darabonba-encode-util/package.json b/backend/node_modules/@alicloud/darabonba-encode-util/package.json new file mode 100644 index 0000000..b7f561d --- /dev/null +++ b/backend/node_modules/@alicloud/darabonba-encode-util/package.json @@ -0,0 +1,38 @@ +{ + "name": "@alicloud/darabonba-encode-util", + "version": "0.0.2", + "description": "", + "main": "dist/client.js", + "scripts": { + "test": "mocha -r ts-node/register ./tests/*test.ts", + "test-cov": "nyc -e .ts -r=html -r=text -r=lcov npm run test", + "build": "tsc", + "prepublishOnly": "tsc" + }, + "author": "", + "license": "ISC", + "devDependencies": { + "@types/chai": "^4.2.22", + "@types/mocha": "^9.0.0", + "@types/node": "^12.20.37", + "@types/should": "^13.0.0", + "@types/sinon": "^10.0.6", + "chai": "^4.3.4", + "cross-env": "^7.0.3", + "mocha": "^9.1.3", + "nyc": "^15.1.0", + "should": "^13.2.3", + "sinon": "^12.0.1", + "source-map-support": "^0.5.16", + "ts-node": "^8.10.2", + "tsconfig-paths": "^3.12.0", + "typescript": "^3.7.5" + }, + "dependencies": { + "moment": "^2.29.1" + }, + "files": [ + "dist", + "src" + ] +} diff --git a/backend/node_modules/@alicloud/darabonba-encode-util/src/client.ts b/backend/node_modules/@alicloud/darabonba-encode-util/src/client.ts new file mode 100644 index 0000000..c85c127 --- /dev/null +++ b/backend/node_modules/@alicloud/darabonba-encode-util/src/client.ts @@ -0,0 +1,122 @@ +// This file is auto-generated, don't edit it +/** + * Encode Util for Darabonba. + */ +import crypto from 'crypto'; + + +export default class Client { + + /** + * Encode the URL + * @param url string + * @return encoded string + */ + static urlEncode(url: string): string { + //URLEncoder.encode(url, URL_ENCODING) + return url != null ? encodeURIComponent(url) : ''; + } + + /** + * Special encoding for url params. + * @param params string + * @return encoded string + */ + static percentEncode(raw: string): string { + return raw != null ? encodeURIComponent(raw).replace('+', '%20') + .replace('*', '%2A').replace('%7E', '~') : null; + } + + /** + * Encode the partial path of url. + * @param path string + * @return encoded string + */ + static pathEncode(path: string): string { + if (!path || path === '/') { + return path; + } + let paths = path.split('/'); + let sb = []; + for (let s of paths) { + sb.push(Client.percentEncode(s)); + } + return sb.join('/'); + } + + /** + * Hex encode for byte array. + * @param raw byte array + * @return encoded string + */ + static hexEncode(raw: Buffer): string { + if (raw === null) { + return null; + } + return raw.toString("hex"); + } + + /** + * Hash the raw data with signatureAlgorithm. + * @param raw hashing data + * @param signatureAlgorithm the autograph method + * @return hashed bytes + */ + static hash(raw: Buffer, signatureAlgorithm: string): Buffer { + if (signatureAlgorithm == null) { + return null; + } + if (signatureAlgorithm.includes('HMAC-SHA256') || signatureAlgorithm.includes('RSA-SHA256')) { + const obj = crypto.createHash('sha256'); + obj.update(raw); + return obj.digest(); + } else if (signatureAlgorithm.includes('HMAC-SM3')) { + const obj = crypto.createHash('sm3'); + obj.update(raw); + return obj.digest(); + } + } + + /** + * Base64 encoder for byte array. + * @param raw byte array + * @return encoded string + */ + static base64EncodeToString(raw: Buffer): string { + return raw.toString('base64'); + } + + /** + * Base64 dncoder for string. + * @param src string + * @return dncoded byte array + */ + static base64Decode(src: string): Buffer { + /** Convert Base64 data to a string */ + var toBinaryTable = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63, + 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, 0, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, + 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, + 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1 + ]; + var result = ''; + var leftbits = 0; + var leftdata = 0; + for (var i = 0; i < src.length; i++) { + var c = toBinaryTable[src.charCodeAt(i) & 0x7f]; + var padding = (src.charCodeAt(i) == '='.charCodeAt(0)); + if (c == -1) continue; + leftdata = (leftdata << 6) | c; + leftbits += 6; + if (leftbits >= 8) { + leftbits -= 8; + if (!padding) + result += String.fromCharCode((leftdata >> leftbits) & 0xff); + leftdata &= (1 << leftbits) - 1; + } + } + if (leftbits) + throw Error('Corrupted base64 string'); + return Buffer.from(result); + } + +} diff --git a/backend/node_modules/@alicloud/darabonba-map/dist/client.d.ts b/backend/node_modules/@alicloud/darabonba-map/dist/client.d.ts new file mode 100644 index 0000000..a0b77d6 --- /dev/null +++ b/backend/node_modules/@alicloud/darabonba-map/dist/client.d.ts @@ -0,0 +1,8 @@ +export default class Client { + static size(raw: { + [key: string]: any; + }): number; + static keySet(raw: { + [key: string]: any; + }): string[]; +} diff --git a/backend/node_modules/@alicloud/darabonba-map/dist/client.js b/backend/node_modules/@alicloud/darabonba-map/dist/client.js new file mode 100644 index 0000000..7d18c81 --- /dev/null +++ b/backend/node_modules/@alicloud/darabonba-map/dist/client.js @@ -0,0 +1,20 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +class Client { + // 返回对象长度 + static size(raw) { + if (null === raw || typeof (raw) === 'undefined') { + throw new Error('not a valid value for parameter'); + } + return Object.keys(raw).length; + } + // 返回由对象key组成的数组 + static keySet(raw) { + if (null === raw || typeof (raw) === 'undefined') { + throw new Error('not a valid value for parameter'); + } + return Object.keys(raw); + } +} +exports.default = Client; +//# sourceMappingURL=client.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/darabonba-map/dist/client.js.map b/backend/node_modules/@alicloud/darabonba-map/dist/client.js.map new file mode 100644 index 0000000..4659175 --- /dev/null +++ b/backend/node_modules/@alicloud/darabonba-map/dist/client.js.map @@ -0,0 +1 @@ +{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;AAOA,MAAqB,MAAM;IAEzB,SAAS;IACT,MAAM,CAAC,IAAI,CAAC,GAA2B;QACrC,IAAI,IAAI,KAAK,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC,KAAK,WAAW,EAAE;YAChD,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAA;SACnD;QACD,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,CAAA;IAChC,CAAC;IAED,gBAAgB;IAChB,MAAM,CAAC,MAAM,CAAC,GAA2B;QACvC,IAAI,IAAI,KAAK,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC,KAAK,WAAW,EAAE;YAChD,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAA;SACnD;QACD,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC1B,CAAC;CACF;AAjBD,yBAiBC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/darabonba-map/package.json b/backend/node_modules/@alicloud/darabonba-map/package.json new file mode 100644 index 0000000..924a909 --- /dev/null +++ b/backend/node_modules/@alicloud/darabonba-map/package.json @@ -0,0 +1,38 @@ +{ + "name": "@alicloud/darabonba-map", + "version": "0.0.1", + "description": "", + "main": "dist/client.js", + "scripts": { + "test": "mocha -r ts-node/register ./tests/*test.ts", + "test-cov": "nyc -e .ts -r=html -r=text -r=lcov npm run test", + "build": "tsc", + "prepublishOnly": "tsc" + }, + "author": "", + "license": "ISC", + "devDependencies": { + "@types/chai": "^4.2.22", + "@types/mocha": "^9.0.0", + "@types/node": "^12.20.37", + "@types/should": "^13.0.0", + "@types/sinon": "^10.0.6", + "chai": "^4.3.4", + "cross-env": "^7.0.3", + "mocha": "^9.1.3", + "nyc": "^15.1.0", + "should": "^13.2.3", + "sinon": "^12.0.1", + "source-map-support": "^0.5.16", + "ts-node": "^8.10.2", + "tsconfig-paths": "^3.12.0", + "typescript": "^3.7.5" + }, + "dependencies": { + "@alicloud/tea-typescript": "^1.7.1" + }, + "files": [ + "dist", + "src" + ] +} diff --git a/backend/node_modules/@alicloud/darabonba-map/src/client.ts b/backend/node_modules/@alicloud/darabonba-map/src/client.ts new file mode 100644 index 0000000..b0dcb1b --- /dev/null +++ b/backend/node_modules/@alicloud/darabonba-map/src/client.ts @@ -0,0 +1,25 @@ +// This file is auto-generated, don't edit it +/** + * This is a map module + */ +import * as $tea from '@alicloud/tea-typescript'; + + +export default class Client { + + // 返回对象长度 + static size(raw: { [key: string]: any }): number { + if (null === raw || typeof (raw) === 'undefined') { + throw new Error('not a valid value for parameter') + } + return Object.keys(raw).length + } + + // 返回由对象key组成的数组 + static keySet(raw: { [key: string]: any }): string[] { + if (null === raw || typeof (raw) === 'undefined') { + throw new Error('not a valid value for parameter') + } + return Object.keys(raw); + } +} diff --git a/backend/node_modules/@alicloud/darabonba-signature-util/dist/client.d.ts b/backend/node_modules/@alicloud/darabonba-signature-util/dist/client.d.ts new file mode 100644 index 0000000..5786125 --- /dev/null +++ b/backend/node_modules/@alicloud/darabonba-signature-util/dist/client.d.ts @@ -0,0 +1,66 @@ +/// +export default class Client { + /** + * HmacSHA1 Signature + * @param stringToSign string + * @param secret string + * @return signed bytes + */ + static HmacSHA1Sign(stringToSign: string, secret: string): Buffer; + /** + * HmacSHA1 Signature + * @param stringToSign string + * @param secret bytes + * @return signed bytes + */ + static HmacSHA1SignByBytes(stringToSign: string, secret: Buffer): Buffer; + /** + * HmacSHA256 Signature + * @param stringToSign string + * @param secret string + * @return signed bytes + */ + static HmacSHA256Sign(stringToSign: string, secret: string): Buffer; + /** + * HmacSHA256 Signature + * @param stringToSign string + * @param secret bytes + * @return signed bytes + */ + static HmacSHA256SignByBytes(stringToSign: string, secret: Buffer): Buffer; + /** + * HmacSM3 Signature + * @param stringToSign string + * @param secret string + * @return signed bytes + */ + static HmacSM3Sign(stringToSign: string, secret: string): Buffer; + /** + * HmacSM3 Signature + * @param stringToSign string + * @param secret bytes + * @return signed bytes + */ + static HmacSM3SignByBytes(stringToSign: string, secret: Buffer): Buffer; + /** + * SHA256withRSA Signature + * @param stringToSign string + * @param secret string + * @return signed bytes + */ + static SHA256withRSASign(stringToSign: string, secret: string): Buffer; + /** + * MD5 Signature + * + * @param stringToSign string + * @return signed bytes + */ + static MD5Sign(stringToSign: string): Buffer; + /** + * MD5 Signature + * + * @param bytesToSign bytes + * @return signed bytes + */ + static MD5SignForBytes(bytesToSign: Buffer): Buffer; +} diff --git a/backend/node_modules/@alicloud/darabonba-signature-util/dist/client.js b/backend/node_modules/@alicloud/darabonba-signature-util/dist/client.js new file mode 100644 index 0000000..b202cdb --- /dev/null +++ b/backend/node_modules/@alicloud/darabonba-signature-util/dist/client.js @@ -0,0 +1,112 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +// This file is auto-generated, don't edit it +/** + * Signature Util for Darabonba. + */ +const crypto_1 = __importDefault(require("crypto")); +class Client { + /** + * HmacSHA1 Signature + * @param stringToSign string + * @param secret string + * @return signed bytes + */ + static HmacSHA1Sign(stringToSign, secret) { + const obj = crypto_1.default.createHmac('sha1', secret); + obj.update(stringToSign); + return obj.digest(); + } + /** + * HmacSHA1 Signature + * @param stringToSign string + * @param secret bytes + * @return signed bytes + */ + static HmacSHA1SignByBytes(stringToSign, secret) { + return Client.HmacSHA1Sign(stringToSign, secret.toString()); + } + /** + * HmacSHA256 Signature + * @param stringToSign string + * @param secret string + * @return signed bytes + */ + static HmacSHA256Sign(stringToSign, secret) { + const obj = crypto_1.default.createHmac('sha256', secret); + obj.update(stringToSign); + return obj.digest(); + } + /** + * HmacSHA256 Signature + * @param stringToSign string + * @param secret bytes + * @return signed bytes + */ + static HmacSHA256SignByBytes(stringToSign, secret) { + return Client.HmacSHA256Sign(stringToSign, secret.toString()); + } + /** + * HmacSM3 Signature + * @param stringToSign string + * @param secret string + * @return signed bytes + */ + static HmacSM3Sign(stringToSign, secret) { + const obj = crypto_1.default.createHmac('sm3', secret); + obj.update(stringToSign); + return obj.digest(); + } + /** + * HmacSM3 Signature + * @param stringToSign string + * @param secret bytes + * @return signed bytes + */ + static HmacSM3SignByBytes(stringToSign, secret) { + return Client.HmacSM3Sign(stringToSign, secret.toString()); + } + /** + * SHA256withRSA Signature + * @param stringToSign string + * @param secret string + * @return signed bytes + */ + static SHA256withRSASign(stringToSign, secret) { + const PEM_BEGIN = "-----BEGIN PRIVATE KEY-----\n"; + const PEM_END = "\n-----END PRIVATE KEY-----"; + if (!secret.startsWith(PEM_BEGIN)) { + secret = PEM_BEGIN + secret; + } + if (!secret.endsWith(PEM_END)) { + secret = secret + PEM_END; + } + var signerObject = crypto_1.default.createSign("RSA-SHA256"); + signerObject.update(stringToSign); + var signature = signerObject.sign({ key: secret, padding: crypto_1.default.constants.RSA_PKCS1_PADDING }); + return signature; + } + /** + * MD5 Signature + * + * @param stringToSign string + * @return signed bytes + */ + static MD5Sign(stringToSign) { + return crypto_1.default.createHash('md5').update(stringToSign, 'utf8').digest(); + } + /** + * MD5 Signature + * + * @param bytesToSign bytes + * @return signed bytes + */ + static MD5SignForBytes(bytesToSign) { + return Client.MD5Sign(bytesToSign.toString()); + } +} +exports.default = Client; +//# sourceMappingURL=client.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/darabonba-signature-util/dist/client.js.map b/backend/node_modules/@alicloud/darabonba-signature-util/dist/client.js.map new file mode 100644 index 0000000..eb6df1f --- /dev/null +++ b/backend/node_modules/@alicloud/darabonba-signature-util/dist/client.js.map @@ -0,0 +1 @@ +{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],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,CAAC,WAAW,CAAC,YAAY,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,iBAAiB,CAAC,YAAoB,EAAE,MAAc;QAC3D,MAAM,SAAS,GAAG,+BAA+B,CAAC;QAClD,MAAM,OAAO,GAAG,6BAA6B,CAAC;QAC9C,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE;YACjC,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC;SAC7B;QACD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;YAC7B,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;SAC3B;QACD,IAAI,YAAY,GAAG,gBAAM,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;QACnD,YAAY,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAClC,IAAI,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAM,CAAC,SAAS,CAAC,iBAAiB,EAAE,CAAC,CAAC;QAChG,OAAO,SAAS,CAAC;IACnB,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,OAAO,CAAC,YAAoB;QACjC,OAAO,gBAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,CAAC;IACxE,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,eAAe,CAAC,WAAmB;QACxC,OAAO,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;IAChD,CAAC;CAEF;AA7GD,yBA6GC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/darabonba-signature-util/node_modules/@alicloud/darabonba-encode-util/dist/client.d.ts b/backend/node_modules/@alicloud/darabonba-signature-util/node_modules/@alicloud/darabonba-encode-util/dist/client.d.ts new file mode 100644 index 0000000..f1b8723 --- /dev/null +++ b/backend/node_modules/@alicloud/darabonba-signature-util/node_modules/@alicloud/darabonba-encode-util/dist/client.d.ts @@ -0,0 +1,46 @@ +/// +export default class Client { + /** + * Encode the URL + * @param url string + * @return encoded string + */ + static urlEncode(url: string): string; + /** + * Special encoding for url params. + * @param params string + * @return encoded string + */ + static percentEncode(raw: string): string; + /** + * Encode the partial path of url. + * @param path string + * @return encoded string + */ + static pathEncode(path: string): string; + /** + * Hex encode for byte array. + * @param raw byte array + * @return encoded string + */ + static hexEncode(raw: Buffer): string; + /** + * Hash the raw data with signatureAlgorithm. + * @param raw hashing data + * @param signatureAlgorithm the autograph method + * @return hashed bytes + */ + static hash(raw: Buffer, signatureAlgorithm: string): Buffer; + /** + * Base64 encoder for byte array. + * @param raw byte array + * @return encoded string + */ + static base64EncodeToString(raw: Buffer): string; + /** + * Base64 dncoder for string. + * @param src string + * @return dncoded byte array + */ + static base64Decode(src: string): Buffer; +} diff --git a/backend/node_modules/@alicloud/darabonba-signature-util/node_modules/@alicloud/darabonba-encode-util/dist/client.js b/backend/node_modules/@alicloud/darabonba-signature-util/node_modules/@alicloud/darabonba-encode-util/dist/client.js new file mode 100644 index 0000000..f6cb3e6 --- /dev/null +++ b/backend/node_modules/@alicloud/darabonba-signature-util/node_modules/@alicloud/darabonba-encode-util/dist/client.js @@ -0,0 +1,117 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const crypto_1 = __importDefault(require("crypto")); +class Client { + /** + * Encode the URL + * @param url string + * @return encoded string + */ + static urlEncode(url) { + //URLEncoder.encode(url, URL_ENCODING) + return url != null ? encodeURIComponent(url) : ''; + } + /** + * Special encoding for url params. + * @param params string + * @return encoded string + */ + static percentEncode(raw) { + return raw != null ? encodeURIComponent(raw).replace('+', '%20') + .replace('*', '%2A').replace('%7E', '~') : null; + } + /** + * Encode the partial path of url. + * @param path string + * @return encoded string + */ + static pathEncode(path) { + if (!path || path === '/') { + return path; + } + let paths = path.split('/'); + let sb = []; + for (let s of paths) { + sb.push(Client.percentEncode(s)); + } + return sb.join('/'); + } + /** + * Hex encode for byte array. + * @param raw byte array + * @return encoded string + */ + static hexEncode(raw) { + if (raw === null) { + return null; + } + return raw.toString("hex"); + } + /** + * Hash the raw data with signatureAlgorithm. + * @param raw hashing data + * @param signatureAlgorithm the autograph method + * @return hashed bytes + */ + static hash(raw, signatureAlgorithm) { + if (signatureAlgorithm == null) { + return null; + } + if (signatureAlgorithm === "ACS3-HMAC-SHA256" || signatureAlgorithm === "ACS3-RSA-SHA256") { + const obj = crypto_1.default.createHash('sha256'); + obj.update(raw); + return obj.digest(); + } + else if (signatureAlgorithm == "ACS3-HMAC-SM3") { + const obj = crypto_1.default.createHash('sm3'); + obj.update(raw); + return obj.digest(); + } + } + /** + * Base64 encoder for byte array. + * @param raw byte array + * @return encoded string + */ + static base64EncodeToString(raw) { + return raw.toString('base64'); + } + /** + * Base64 dncoder for string. + * @param src string + * @return dncoded byte array + */ + static base64Decode(src) { + /** Convert Base64 data to a string */ + var toBinaryTable = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63, + 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, 0, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, + 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, + 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1 + ]; + var result = ''; + var leftbits = 0; + var leftdata = 0; + for (var i = 0; i < src.length; i++) { + var c = toBinaryTable[src.charCodeAt(i) & 0x7f]; + var padding = (src.charCodeAt(i) == '='.charCodeAt(0)); + if (c == -1) + continue; + leftdata = (leftdata << 6) | c; + leftbits += 6; + if (leftbits >= 8) { + leftbits -= 8; + if (!padding) + result += String.fromCharCode((leftdata >> leftbits) & 0xff); + leftdata &= (1 << leftbits) - 1; + } + } + if (leftbits) + throw Error('Corrupted base64 string'); + return Buffer.from(result); + } +} +exports.default = Client; +//# sourceMappingURL=client.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/darabonba-signature-util/node_modules/@alicloud/darabonba-encode-util/dist/client.js.map b/backend/node_modules/@alicloud/darabonba-signature-util/node_modules/@alicloud/darabonba-encode-util/dist/client.js.map new file mode 100644 index 0000000..137a588 --- /dev/null +++ b/backend/node_modules/@alicloud/darabonba-signature-util/node_modules/@alicloud/darabonba-encode-util/dist/client.js.map @@ -0,0 +1 @@ +{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;;;;AAKA,oDAA4B;AAG5B,MAAqB,MAAM;IAEzB;;;;OAIG;IACH,MAAM,CAAC,SAAS,CAAC,GAAW;QAC1B,sCAAsC;QACtC,OAAO,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACpD,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,aAAa,CAAC,GAAW;QAC9B,OAAO,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC;aAC7D,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACpD,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,UAAU,CAAC,IAAY;QAC5B,IAAI,CAAC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AI,CAAC,IAAI,CAAC,CAAC;gBAAE,SAAS;YACtB,QAAQ,GAAG,CAAC,QAAQ,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;YAC/B,QAAQ,IAAI,CAAC,CAAC;YACd,IAAI,QAAQ,IAAI,CAAC,EAAE;gBACjB,QAAQ,IAAI,CAAC,CAAC;gBACd,IAAI,CAAC,OAAO;oBACV,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC,CAAC,QAAQ,IAAI,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC;gBAC/D,QAAQ,IAAI,CAAC,CAAC,IAAI,QAAQ,CAAC,GAAG,CAAC,CAAC;aACjC;SACF;QACD,IAAI,QAAQ;YACV,MAAM,KAAK,CAAC,yBAAyB,CAAC,CAAC;QACzC,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC7B,CAAC;CAEF;AAlHD,yBAkHC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/darabonba-signature-util/node_modules/@alicloud/darabonba-encode-util/package.json b/backend/node_modules/@alicloud/darabonba-signature-util/node_modules/@alicloud/darabonba-encode-util/package.json new file mode 100644 index 0000000..36ffc0f --- /dev/null +++ b/backend/node_modules/@alicloud/darabonba-signature-util/node_modules/@alicloud/darabonba-encode-util/package.json @@ -0,0 +1,39 @@ +{ + "name": "@alicloud/darabonba-encode-util", + "version": "0.0.1", + "description": "", + "main": "dist/client.js", + "scripts": { + "test": "mocha -r ts-node/register ./tests/*test.ts", + "test-cov": "nyc -e .ts -r=html -r=text -r=lcov npm run test", + "build": "tsc", + "prepublishOnly": "tsc" + }, + "author": "", + "license": "ISC", + "devDependencies": { + "@types/chai": "^4.2.22", + "@types/mocha": "^9.0.0", + "@types/node": "^12.20.37", + "@types/should": "^13.0.0", + "@types/sinon": "^10.0.6", + "chai": "^4.3.4", + "cross-env": "^7.0.3", + "mocha": "^9.1.3", + "nyc": "^15.1.0", + "should": "^13.2.3", + "sinon": "^12.0.1", + "source-map-support": "^0.5.16", + "ts-node": "^8.10.2", + "tsconfig-paths": "^3.12.0", + "typescript": "^3.7.5" + }, + "dependencies": { + "@alicloud/tea-typescript": "^1.7.1", + "moment": "^2.29.1" + }, + "files": [ + "dist", + "src" + ] +} diff --git a/backend/node_modules/@alicloud/darabonba-signature-util/node_modules/@alicloud/darabonba-encode-util/src/client.ts b/backend/node_modules/@alicloud/darabonba-signature-util/node_modules/@alicloud/darabonba-encode-util/src/client.ts new file mode 100644 index 0000000..fbca592 --- /dev/null +++ b/backend/node_modules/@alicloud/darabonba-signature-util/node_modules/@alicloud/darabonba-encode-util/src/client.ts @@ -0,0 +1,123 @@ +// This file is auto-generated, don't edit it +/** + * Encode Util for Darabonba. + */ +import * as $tea from '@alicloud/tea-typescript'; +import crypto from 'crypto'; + + +export default class Client { + + /** + * Encode the URL + * @param url string + * @return encoded string + */ + static urlEncode(url: string): string { + //URLEncoder.encode(url, URL_ENCODING) + return url != null ? encodeURIComponent(url) : ''; + } + + /** + * Special encoding for url params. + * @param params string + * @return encoded string + */ + static percentEncode(raw: string): string { + return raw != null ? encodeURIComponent(raw).replace('+', '%20') + .replace('*', '%2A').replace('%7E', '~') : null; + } + + /** + * Encode the partial path of url. + * @param path string + * @return encoded string + */ + static pathEncode(path: string): string { + if (!path || path === '/') { + return path; + } + let paths = path.split('/'); + let sb = []; + for (let s of paths) { + sb.push(Client.percentEncode(s)); + } + return sb.join('/'); + } + + /** + * Hex encode for byte array. + * @param raw byte array + * @return encoded string + */ + static hexEncode(raw: Buffer): string { + if (raw === null) { + return null; + } + return raw.toString("hex"); + } + + /** + * Hash the raw data with signatureAlgorithm. + * @param raw hashing data + * @param signatureAlgorithm the autograph method + * @return hashed bytes + */ + static hash(raw: Buffer, signatureAlgorithm: string): Buffer { + if (signatureAlgorithm == null) { + return null; + } + if (signatureAlgorithm === "ACS3-HMAC-SHA256" || signatureAlgorithm === "ACS3-RSA-SHA256") { + const obj = crypto.createHash('sha256'); + obj.update(raw); + return obj.digest(); + } else if (signatureAlgorithm == "ACS3-HMAC-SM3") { + const obj = crypto.createHash('sm3'); + obj.update(raw); + return obj.digest(); + } + } + + /** + * Base64 encoder for byte array. + * @param raw byte array + * @return encoded string + */ + static base64EncodeToString(raw: Buffer): string { + return raw.toString('base64'); + } + + /** + * Base64 dncoder for string. + * @param src string + * @return dncoded byte array + */ + static base64Decode(src: string): Buffer { + /** Convert Base64 data to a string */ + var toBinaryTable = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63, + 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, 0, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, + 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, + 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1 + ]; + var result = ''; + var leftbits = 0; + var leftdata = 0; + for (var i = 0; i < src.length; i++) { + var c = toBinaryTable[src.charCodeAt(i) & 0x7f]; + var padding = (src.charCodeAt(i) == '='.charCodeAt(0)); + if (c == -1) continue; + leftdata = (leftdata << 6) | c; + leftbits += 6; + if (leftbits >= 8) { + leftbits -= 8; + if (!padding) + result += String.fromCharCode((leftdata >> leftbits) & 0xff); + leftdata &= (1 << leftbits) - 1; + } + } + if (leftbits) + throw Error('Corrupted base64 string'); + return Buffer.from(result); + } + +} diff --git a/backend/node_modules/@alicloud/darabonba-signature-util/package.json b/backend/node_modules/@alicloud/darabonba-signature-util/package.json new file mode 100644 index 0000000..3452095 --- /dev/null +++ b/backend/node_modules/@alicloud/darabonba-signature-util/package.json @@ -0,0 +1,37 @@ +{ + "name": "@alicloud/darabonba-signature-util", + "version": "0.0.4", + "description": "", + "main": "dist/client.js", + "scripts": { + "test": "mocha -r ts-node/register ./tests/*test.ts", + "test-cov": "nyc -e .ts -r=html -r=text -r=lcov npm run test", + "build": "tsc", + "prepublishOnly": "tsc" + }, + "author": "", + "license": "ISC", + "devDependencies": { + "@types/mocha": "^9.0.0", + "@types/node": "^12.20.37", + "@types/should": "^13.0.0", + "@types/sinon": "^10.0.6", + "chai": "^4.3.4", + "cross-env": "^7.0.3", + "mocha": "^9.1.3", + "nyc": "^15.1.0", + "should": "^13.2.3", + "sinon": "^12.0.1", + "source-map-support": "^0.5.16", + "ts-node": "^8.10.2", + "tsconfig-paths": "^3.12.0", + "typescript": "^3.7.5" + }, + "dependencies": { + "@alicloud/darabonba-encode-util": "^0.0.1" + }, + "files": [ + "dist", + "src" + ] +} diff --git a/backend/node_modules/@alicloud/darabonba-signature-util/src/client.ts b/backend/node_modules/@alicloud/darabonba-signature-util/src/client.ts new file mode 100644 index 0000000..91254b1 --- /dev/null +++ b/backend/node_modules/@alicloud/darabonba-signature-util/src/client.ts @@ -0,0 +1,117 @@ +// This file is auto-generated, don't edit it +/** + * Signature Util for Darabonba. + */ +import crypto from 'crypto'; + + +export default class Client { + + /** + * HmacSHA1 Signature + * @param stringToSign string + * @param secret string + * @return signed bytes + */ + static HmacSHA1Sign(stringToSign: string, secret: string): Buffer { + const obj = crypto.createHmac('sha1', secret); + obj.update(stringToSign); + return obj.digest(); + } + + /** + * HmacSHA1 Signature + * @param stringToSign string + * @param secret bytes + * @return signed bytes + */ + static HmacSHA1SignByBytes(stringToSign: string, secret: Buffer): Buffer { + return Client.HmacSHA1Sign(stringToSign, secret.toString()); + } + + /** + * HmacSHA256 Signature + * @param stringToSign string + * @param secret string + * @return signed bytes + */ + static HmacSHA256Sign(stringToSign: string, secret: string): Buffer { + const obj = crypto.createHmac('sha256', secret); + obj.update(stringToSign); + return obj.digest(); + } + + /** + * HmacSHA256 Signature + * @param stringToSign string + * @param secret bytes + * @return signed bytes + */ + static HmacSHA256SignByBytes(stringToSign: string, secret: Buffer): Buffer { + return Client.HmacSHA256Sign(stringToSign, secret.toString()); + } + + /** + * HmacSM3 Signature + * @param stringToSign string + * @param secret string + * @return signed bytes + */ + static HmacSM3Sign(stringToSign: string, secret: string): Buffer { + const obj = crypto.createHmac('sm3', secret); + obj.update(stringToSign); + return obj.digest(); + } + + /** + * HmacSM3 Signature + * @param stringToSign string + * @param secret bytes + * @return signed bytes + */ + static HmacSM3SignByBytes(stringToSign: string, secret: Buffer): Buffer { + return Client.HmacSM3Sign(stringToSign, secret.toString()); + } + + /** + * SHA256withRSA Signature + * @param stringToSign string + * @param secret string + * @return signed bytes + */ + static SHA256withRSASign(stringToSign: string, secret: string): Buffer { + const PEM_BEGIN = "-----BEGIN PRIVATE KEY-----\n"; + const PEM_END = "\n-----END PRIVATE KEY-----"; + if (!secret.startsWith(PEM_BEGIN)) { + secret = PEM_BEGIN + secret; + } + if (!secret.endsWith(PEM_END)) { + secret = secret + PEM_END; + } + var signerObject = crypto.createSign("RSA-SHA256"); + signerObject.update(stringToSign); + var signature = signerObject.sign({ key: secret, padding: crypto.constants.RSA_PKCS1_PADDING }); + return signature; + } + + /** + * MD5 Signature + * + * @param stringToSign string + * @return signed bytes + */ + static MD5Sign(stringToSign: string): Buffer { + return crypto.createHash('md5').update(stringToSign, 'utf8').digest(); + } + + /** + * MD5 Signature + * + * @param bytesToSign bytes + * @return signed bytes + */ + static MD5SignForBytes(bytesToSign: Buffer): Buffer { + return Client.MD5Sign(bytesToSign.toString()); + } + +} diff --git a/backend/node_modules/@alicloud/darabonba-string/README.md b/backend/node_modules/@alicloud/darabonba-string/README.md new file mode 100644 index 0000000..d3070b2 --- /dev/null +++ b/backend/node_modules/@alicloud/darabonba-string/README.md @@ -0,0 +1,26 @@ +English | [简体中文](README-CN.md) +![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg) + +## Alibaba Cloud Darabonba String Util SDK for TypeScript/Node.js + +## Prerequisite + +Node.js >= 8.x + +## Installation +If you use `npm` to manage your dependence, you can use the following command to install it and write into package.json dependences: + +```sh +$ npm install @alicloud/darabonba-string -S +``` + +## Issues +[Opening an Issue](https://github.com/aliyun/darabonba-string/issues/new), Issues not conforming to the guidelines may be closed immediately. + +## References +* [Latest Release](https://github.com/aliyun/darabonba-string/tree/master/ts) + +## License +[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0) + +Copyright (c) 2009-present, Alibaba Cloud All rights reserved. \ No newline at end of file diff --git a/backend/node_modules/@alicloud/darabonba-string/dist/client.d.ts b/backend/node_modules/@alicloud/darabonba-string/dist/client.d.ts new file mode 100644 index 0000000..c29bcef --- /dev/null +++ b/backend/node_modules/@alicloud/darabonba-string/dist/client.d.ts @@ -0,0 +1,19 @@ +/** + * This is a string module + */ +/// +export default class Client { + static split(raw: string, sep: string, limit: number): string[]; + static replace(raw: string, oldStr: string, newStr: string, count?: number): string; + static contains(s: string, substr: string): boolean; + static count(s: string, substr: string): number; + static hasPrefix(s: string, prefix: string): boolean; + static hasSuffix(s: string, substr: string): boolean; + static index(s: string, substr: string): number; + static toLower(s: string): string; + static toUpper(s: string): string; + static subString(s: string, strat: number, end: number): string; + static equals(expect: string, actual: string): boolean; + static trim(str: string): string; + static toBytes(str: string, encoding: BufferEncoding): Buffer; +} diff --git a/backend/node_modules/@alicloud/darabonba-string/dist/client.js b/backend/node_modules/@alicloud/darabonba-string/dist/client.js new file mode 100644 index 0000000..0521d1a --- /dev/null +++ b/backend/node_modules/@alicloud/darabonba-string/dist/client.js @@ -0,0 +1,65 @@ +"use strict"; +// This file is auto-generated, don't edit it +/** + * This is a string module + */ +Object.defineProperty(exports, "__esModule", { value: true }); +class Client { + static split(raw, sep, limit) { + if (null === limit || typeof (limit) === 'undefined' || limit < 1) { + return raw.split(sep); + } + let result = raw.split(sep, limit); + if (result.length >= limit) { + result[limit - 1] = [result[limit - 1], ...raw.split(sep).splice(limit)].join(sep); + } + return result; + } + static replace(raw, oldStr, newStr, count = null) { + if (null === count || typeof (count) === 'undefined' || count < 0) { + return raw.split(oldStr).join(newStr); + } + let tmp = raw.split(oldStr); + if (count >= tmp.length - 1) { + return raw.split(oldStr).join(newStr); + } + let left = tmp.slice(0, count + 1).join(newStr); + let right = tmp.slice(count + 1).join(oldStr); + return left + oldStr + right; + } + static contains(s, substr) { + return s.indexOf(substr) !== -1; + } + static count(s, substr) { + return s.split(substr).length; + } + static hasPrefix(s, prefix) { + return s.startsWith(prefix); + } + static hasSuffix(s, substr) { + return s.endsWith(substr); + } + static index(s, substr) { + return s.indexOf(substr); + } + static toLower(s) { + return s.toLowerCase(); + } + static toUpper(s) { + return s.toUpperCase(); + } + static subString(s, strat, end) { + return s.slice(strat, end); + } + static equals(expect, actual) { + return expect === actual; + } + static trim(str) { + return str.trim(); + } + static toBytes(str, encoding) { + return Buffer.from(str, encoding); + } +} +exports.default = Client; +//# sourceMappingURL=client.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/darabonba-string/dist/client.js.map b/backend/node_modules/@alicloud/darabonba-string/dist/client.js.map new file mode 100644 index 0000000..2aaf554 --- /dev/null +++ b/backend/node_modules/@alicloud/darabonba-string/dist/client.js.map @@ -0,0 +1 @@ +{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";AAAA,6CAA6C;AAC7C;;GAEG;;AAGH,MAAqB,MAAM;IAEzB,MAAM,CAAC,KAAK,CAAC,GAAW,EAAE,GAAW,EAAE,KAAa;QAClD,IAAI,IAAI,KAAK,KAAK,IAAI,OAAO,CAAC,KAAK,CAAC,KAAK,WAAW,IAAI,KAAK,GAAG,CAAC,EAAE;YACjE,OAAO,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;SACvB;QACD,IAAI,MAAM,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;QAClC,IAAI,MAAM,CAAC,MAAM,IAAI,KAAK,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AC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC;IAChC,CAAC;IAED,MAAM,CAAC,SAAS,CAAC,CAAS,EAAE,MAAc;QACxC,OAAO,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IAC9B,CAAC;IAED,MAAM,CAAC,SAAS,CAAC,CAAS,EAAE,MAAc;QACxC,OAAO,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC5B,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,CAAS,EAAE,MAAc;QACpC,OAAO,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAC3B,CAAC;IAED,MAAM,CAAC,OAAO,CAAC,CAAS;QACtB,OAAO,CAAC,CAAC,WAAW,EAAE,CAAC;IACzB,CAAC;IAED,MAAM,CAAC,OAAO,CAAC,CAAS;QACtB,OAAO,CAAC,CAAC,WAAW,EAAE,CAAC;IACzB,CAAC;IAED,MAAM,CAAC,SAAS,CAAC,CAAS,EAAE,KAAa,EAAE,GAAW;QACpD,OAAO,CAAC,CAAC,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAC7B,CAAC;IAED,MAAM,CAAC,MAAM,CAAC,MAAc,EAAE,MAAc;QAC1C,OAAO,MAAM,KAAK,MAAM,CAAC;IAC3B,CAAC;IAED,MAAM,CAAC,IAAI,CAAC,GAAW;QACrB,OAAO,GAAG,CAAC,IAAI,EAAE,CAAC;IACpB,CAAC;IAED,MAAM,CAAC,OAAO,CAAC,GAAW,EAAE,QAAwB;QAClD,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IACpC,CAAC;CAGF;AAvED,yBAuEC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/darabonba-string/package.json b/backend/node_modules/@alicloud/darabonba-string/package.json new file mode 100644 index 0000000..681915b --- /dev/null +++ b/backend/node_modules/@alicloud/darabonba-string/package.json @@ -0,0 +1,37 @@ +{ + "name": "@alicloud/darabonba-string", + "version": "1.0.3", + "description": "", + "main": "dist/client.js", + "scripts": { + "test": "mocha -r ts-node/register ./tests/*test.ts", + "test-cov": "nyc -e .ts -r=html -r=text -r=lcov npm run test", + "build": "tsc", + "prepublishOnly": "tsc" + }, + "author": "Jackson Tian", + "license": "Apache-2.0", + "devDependencies": { + "@types/node": "^12.12.26", + "@types/mocha": "^9.0.0", + "@types/should": "^13.0.0", + "@types/sinon": "^10.0.6", + "chai": "^4.3.4", + "cross-env": "^7.0.3", + "mocha": "^9.1.3", + "nyc": "^15.1.0", + "should": "^13.2.3", + "sinon": "^12.0.1", + "source-map-support": "^0.5.16", + "ts-node": "^8.10.2", + "tsconfig-paths": "^3.12.0", + "typescript": "^3.7.5" + }, + "dependencies": { + "@alicloud/tea-typescript": "^1.5.1" + }, + "files": [ + "dist", + "src" + ] +} diff --git a/backend/node_modules/@alicloud/darabonba-string/src/client.ts b/backend/node_modules/@alicloud/darabonba-string/src/client.ts new file mode 100644 index 0000000..e29775d --- /dev/null +++ b/backend/node_modules/@alicloud/darabonba-string/src/client.ts @@ -0,0 +1,78 @@ +// This file is auto-generated, don't edit it +/** + * This is a string module + */ + + +export default class Client { + + static split(raw: string, sep: string, limit: number): string[] { + if (null === limit || typeof (limit) === 'undefined' || limit < 1) { + return raw.split(sep); + } + let result = raw.split(sep, limit) + if (result.length >= limit) { + result[limit - 1] = [result[limit - 1], ...raw.split(sep).splice(limit)].join(sep) + } + return result; + } + + static replace(raw: string, oldStr: string, newStr: string, count: number = null): string { + if (null === count || typeof (count) === 'undefined' || count < 0) { + return raw.split(oldStr).join(newStr); + } + let tmp = raw.split(oldStr); + if (count >= tmp.length - 1) { + return raw.split(oldStr).join(newStr); + } + let left = tmp.slice(0, count + 1).join(newStr); + let right = tmp.slice(count + 1).join(oldStr); + return left + oldStr + right; + } + + static contains(s: string, substr: string): boolean { + return s.indexOf(substr) !== -1; + } + + static count(s: string, substr: string): number { + return s.split(substr).length; + } + + static hasPrefix(s: string, prefix: string): boolean { + return s.startsWith(prefix); + } + + static hasSuffix(s: string, substr: string): boolean { + return s.endsWith(substr); + } + + static index(s: string, substr: string): number { + return s.indexOf(substr); + } + + static toLower(s: string): string { + return s.toLowerCase(); + } + + static toUpper(s: string): string { + return s.toUpperCase(); + } + + static subString(s: string, strat: number, end: number): string { + return s.slice(strat, end); + } + + static equals(expect: string, actual: string): boolean { + return expect === actual; + } + + static trim(str: string): string { + return str.trim(); + } + + static toBytes(str: string, encoding: BufferEncoding): Buffer { + return Buffer.from(str, encoding); + } + + +} diff --git a/backend/node_modules/@alicloud/endpoint-util/ChangeLog.txt b/backend/node_modules/@alicloud/endpoint-util/ChangeLog.txt new file mode 100644 index 0000000..07c5bf8 --- /dev/null +++ b/backend/node_modules/@alicloud/endpoint-util/ChangeLog.txt @@ -0,0 +1,2 @@ +2020-04-07 Version: 0.0.1 +1. Release version 0.0.1 \ No newline at end of file diff --git a/backend/node_modules/@alicloud/endpoint-util/README.md b/backend/node_modules/@alicloud/endpoint-util/README.md new file mode 100644 index 0000000..96891ba --- /dev/null +++ b/backend/node_modules/@alicloud/endpoint-util/README.md @@ -0,0 +1,29 @@ +English | [简体中文](README-CN.md) +![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg) + +## Alibaba Cloud Endpoint Util SDK for TypeScript/Node.js + +## Prerequisite + +Node.js >= 8.x + +## Installation +If you use `npm` to manage your dependence, you can use the following command to install it and write into package.json dependences: + +```sh +$ npm install @alicloud/endpoint-util -S +``` + +## Issues +[Opening an Issue](https://github.com/aliyun/endpoint-util/issues/new), Issues not conforming to the guidelines may be closed immediately. + +## Changelog +Detailed changes for each release are documented in the [release notes](./ChangeLog.txt). + +## References +* [Latest Release](https://github.com/aliyun/endpoint-util/tree/master/ts) + +## License +[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0) + +Copyright (c) 2009-present, Alibaba Cloud All rights reserved. \ No newline at end of file diff --git a/backend/node_modules/@alicloud/endpoint-util/dist/client.d.ts b/backend/node_modules/@alicloud/endpoint-util/dist/client.d.ts new file mode 100644 index 0000000..69e5c15 --- /dev/null +++ b/backend/node_modules/@alicloud/endpoint-util/dist/client.d.ts @@ -0,0 +1,3 @@ +export default class Client { + static getEndpointRules(product: string, regionId: string, endpointType: string, network: string, suffix: string): string; +} diff --git a/backend/node_modules/@alicloud/endpoint-util/dist/client.js b/backend/node_modules/@alicloud/endpoint-util/dist/client.js new file mode 100644 index 0000000..104dbf9 --- /dev/null +++ b/backend/node_modules/@alicloud/endpoint-util/dist/client.js @@ -0,0 +1,32 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var Client = /** @class */ (function () { + function Client() { + } + Client.getEndpointRules = function (product, regionId, endpointType, network, suffix) { + var result; + if (network && network.length && network != "public") { + network = "-" + network; + } + else { + network = ""; + } + suffix = suffix || ""; + if (suffix.length) { + suffix = "-" + suffix; + } + if (endpointType == "regional") { + if (!regionId || !regionId.length) { + throw new Error("RegionId is empty, please set a valid RegionId"); + } + result = "" + product + suffix + network + "." + regionId + ".aliyuncs.com"; + } + else { + result = "" + product + suffix + network + ".aliyuncs.com"; + } + return result; + }; + return Client; +}()); +exports.default = Client; +//# sourceMappingURL=client.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/endpoint-util/dist/client.js.map b/backend/node_modules/@alicloud/endpoint-util/dist/client.js.map new file mode 100644 index 0000000..ae7aa52 --- /dev/null +++ b/backend/node_modules/@alicloud/endpoint-util/dist/client.js.map @@ -0,0 +1 @@ +{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;AASA;IAAA;IAwBA,CAAC;IAtBQ,uBAAgB,GAAvB,UAAwB,OAAe,EAAE,QAAgB,EAAE,YAAoB,EAAE,OAAe,EAAE,MAAc;QAC9G,IAAI,MAAM,CAAC;QACX,IAAI,OAAO,IAAI,OAAO,CAAC,MAAM,IAAI,OAAO,IAAI,QAAQ,EAAE;YACpD,OAAO,GAAG,GAAG,GAAG,OAAO,CAAC;SACzB;aAAM;YACL,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,GAAG,MAAM,IAAI,EAAE,CAAC;QACtB,IAAI,MAAM,CAAC,MAAM,EAAE;YACjB,MAAM,GAAG,GAAG,GAAG,MAAM,CAAC;SACvB;QACD,IAAI,YAAY,IAAI,UAAU,EAAE;YAC9B,IAAI,CAAC,QAAQ,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE;gBACjC,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;aACnE;YACD,MAAM,GAAG,KAAG,OAAO,GAAG,MAAM,GAAG,OAAO,SAAI,QAAQ,kBAAe,CAAC;SACnE;aAAM;YACL,MAAM,GAAG,KAAG,OAAO,GAAG,MAAM,GAAG,OAAO,kBAAe,CAAC;SACvD;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAEH,aAAC;AAAD,CAAC,AAxBD,IAwBC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/endpoint-util/package.json b/backend/node_modules/@alicloud/endpoint-util/package.json new file mode 100644 index 0000000..7266f56 --- /dev/null +++ b/backend/node_modules/@alicloud/endpoint-util/package.json @@ -0,0 +1,30 @@ +{ + "name": "@alicloud/endpoint-util", + "version": "0.0.1", + "description": "", + "main": "dist/client.js", + "scripts": { + "test": "mocha -r ts-node/register -r source-map-support/register test/**/*.spec.ts", + "test-cov": "nyc -e .ts -r=html -r=text -r=lcov npm run test", + "ci": "npm run test-cov && codecov", + "build": "tsc", + "prepublishOnly": "tsc" + }, + "author": "Jackson Tian", + "license": "Apache-2.0", + "devDependencies": { + "@types/mocha": "^7.0.1", + "@types/node": "^12.12.26", + "mocha": "^7.0.1", + "ts-node": "^8.6.2", + "typescript": "^3.7.5" + }, + "dependencies": { + "@alicloud/tea-typescript": "^1.5.1", + "kitx": "^2.0.0" + }, + "files": [ + "dist", + "src" + ] +} diff --git a/backend/node_modules/@alicloud/endpoint-util/src/client.ts b/backend/node_modules/@alicloud/endpoint-util/src/client.ts new file mode 100644 index 0000000..2acaafe --- /dev/null +++ b/backend/node_modules/@alicloud/endpoint-util/src/client.ts @@ -0,0 +1,34 @@ +// This file is auto-generated, don't edit it +/** + * Get endpoint + * @return string + */ +import { Readable } from 'stream'; +import * as $tea from '@alicloud/tea-typescript'; + + +export default class Client { + + static getEndpointRules(product: string, regionId: string, endpointType: string, network: string, suffix: string): string { + let result; + if (network && network.length && network != "public") { + network = "-" + network; + } else { + network = ""; + } + suffix = suffix || ""; + if (suffix.length) { + suffix = "-" + suffix; + } + if (endpointType == "regional") { + if (!regionId || !regionId.length) { + throw new Error("RegionId is empty, please set a valid RegionId"); + } + result = `${product}${suffix}${network}.${regionId}.aliyuncs.com`; + } else { + result = `${product}${suffix}${network}.aliyuncs.com`; + } + return result; + } + +} diff --git a/backend/node_modules/@alicloud/gateway-pop/dist/client.d.ts b/backend/node_modules/@alicloud/gateway-pop/dist/client.d.ts new file mode 100644 index 0000000..94aa5e6 --- /dev/null +++ b/backend/node_modules/@alicloud/gateway-pop/dist/client.d.ts @@ -0,0 +1,35 @@ +/// +import SPI, * as $SPI from '@alicloud/gateway-spi'; +export default class Client extends SPI { + _sha256: string; + _sm3: string; + constructor(); + modifyConfiguration(context: $SPI.InterceptorContext, attributeMap: $SPI.AttributeMap): Promise; + modifyRequest(context: $SPI.InterceptorContext, attributeMap: $SPI.AttributeMap): Promise; + modifyResponse(context: $SPI.InterceptorContext, attributeMap: $SPI.AttributeMap): Promise; + getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: { + [key: string]: string; + }, endpoint: string): string; + defaultAny(inputValue: any, defaultValue: any): any; + getAuthorization(pathname: string, method: string, query: { + [key: string]: string; + }, headers: { + [key: string]: string; + }, signatureAlgorithm: string, payload: string, ak: string, signingkey: Buffer, product: string, region: string, date: string): Promise; + getSignature(pathname: string, method: string, query: { + [key: string]: string; + }, headers: { + [key: string]: string; + }, signatureAlgorithm: string, payload: string, signingkey: Buffer): Promise; + getSigningkey(signatureAlgorithm: string, secret: string, product: string, region: string, date: string): Promise; + getRegion(product: string, endpoint: string): string; + buildCanonicalizedResource(query: { + [key: string]: string; + }): Promise; + buildCanonicalizedHeaders(headers: { + [key: string]: string; + }): Promise; + getSignedHeaders(headers: { + [key: string]: string; + }): Promise; +} diff --git a/backend/node_modules/@alicloud/gateway-pop/dist/client.js b/backend/node_modules/@alicloud/gateway-pop/dist/client.js new file mode 100644 index 0000000..92c5594 --- /dev/null +++ b/backend/node_modules/@alicloud/gateway-pop/dist/client.js @@ -0,0 +1,288 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (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 (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +// This file is auto-generated, don't edit it +const gateway_spi_1 = __importDefault(require("@alicloud/gateway-spi")); +const tea_util_1 = __importDefault(require("@alicloud/tea-util")); +const openapi_util_1 = __importDefault(require("@alicloud/openapi-util")); +const endpoint_util_1 = __importDefault(require("@alicloud/endpoint-util")); +const darabonba_encode_util_1 = __importDefault(require("@alicloud/darabonba-encode-util")); +const darabonba_signature_util_1 = __importDefault(require("@alicloud/darabonba-signature-util")); +const darabonba_string_1 = __importDefault(require("@alicloud/darabonba-string")); +const darabonba_map_1 = __importDefault(require("@alicloud/darabonba-map")); +const darabonba_array_1 = __importDefault(require("@alicloud/darabonba-array")); +const $tea = __importStar(require("@alicloud/tea-typescript")); +class Client extends gateway_spi_1.default { + constructor() { + super(); + this._sha256 = "ACS4-HMAC-SHA256"; + this._sm3 = "ACS4-HMAC-SM3"; + } + async modifyConfiguration(context, attributeMap) { + let request = context.request; + let config = context.configuration; + config.endpoint = this.getEndpoint(request.productId, config.regionId, config.endpointRule, config.network, config.suffix, config.endpointMap, config.endpoint); + } + async modifyRequest(context, attributeMap) { + let request = context.request; + let config = context.configuration; + let date = openapi_util_1.default.getTimestamp(); + request.headers = Object.assign({ host: config.endpoint, 'x-acs-version': request.version, 'x-acs-action': request.action, 'user-agent': request.userAgent, 'x-acs-date': date, 'x-acs-signature-nonce': tea_util_1.default.getNonce(), accept: "application/json" }, request.headers); + let signatureAlgorithm = tea_util_1.default.defaultString(request.signatureAlgorithm, this._sha256); + let hashedRequestPayload = darabonba_encode_util_1.default.hexEncode(darabonba_encode_util_1.default.hash(tea_util_1.default.toBytes(""), signatureAlgorithm)); + if (!tea_util_1.default.isUnset(request.stream)) { + let tmp = await tea_util_1.default.readAsBytes(request.stream); + hashedRequestPayload = darabonba_encode_util_1.default.hexEncode(darabonba_encode_util_1.default.hash(tmp, signatureAlgorithm)); + request.stream = new $tea.BytesReadable(tmp); + request.headers["content-type"] = "application/octet-stream"; + } + else { + if (!tea_util_1.default.isUnset(request.body)) { + if (tea_util_1.default.equalString(request.reqBodyType, "json")) { + let jsonObj = tea_util_1.default.toJSONString(request.body); + hashedRequestPayload = darabonba_encode_util_1.default.hexEncode(darabonba_encode_util_1.default.hash(tea_util_1.default.toBytes(jsonObj), signatureAlgorithm)); + request.stream = new $tea.BytesReadable(jsonObj); + request.headers["content-type"] = "application/json; charset=utf-8"; + } + else { + let m = tea_util_1.default.assertAsMap(request.body); + let formObj = openapi_util_1.default.toForm(m); + hashedRequestPayload = darabonba_encode_util_1.default.hexEncode(darabonba_encode_util_1.default.hash(tea_util_1.default.toBytes(formObj), signatureAlgorithm)); + request.stream = new $tea.BytesReadable(formObj); + request.headers["content-type"] = "application/x-www-form-urlencoded"; + } + } + } + if (tea_util_1.default.equalString(signatureAlgorithm, this._sm3)) { + request.headers["x-acs-content-sm3"] = hashedRequestPayload; + } + else { + request.headers["x-acs-content-sha256"] = hashedRequestPayload; + } + if (!tea_util_1.default.equalString(request.authType, "Anonymous")) { + let credential = request.credential; + if (tea_util_1.default.isUnset(credential)) { + throw $tea.newError({ + code: "ParameterMissing", + message: "'config.credential' can not be unset", + }); + } + let authType = credential.getType(); + if (tea_util_1.default.equalString(authType, "bearer")) { + let bearerToken = credential.getBearerToken(); + request.headers["x-acs-bearer-token"] = bearerToken; + request.headers["Authorization"] = `Bearer ${bearerToken}`; + } + else { + let accessKeyId = await credential.getAccessKeyId(); + let accessKeySecret = await credential.getAccessKeySecret(); + let securityToken = await credential.getSecurityToken(); + if (!tea_util_1.default.empty(securityToken)) { + request.headers["x-acs-accesskey-id"] = accessKeyId; + request.headers["x-acs-security-token"] = securityToken; + } + let dateNew = darabonba_string_1.default.subString(date, 0, 10); + dateNew = darabonba_string_1.default.replace(dateNew, "-", "", null); + let region = this.getRegion(request.productId, config.endpoint); + let signingkey = await this.getSigningkey(signatureAlgorithm, accessKeySecret, request.productId, region, dateNew); + request.headers["Authorization"] = await this.getAuthorization(request.pathname, request.method, request.query, request.headers, signatureAlgorithm, hashedRequestPayload, accessKeyId, signingkey, request.productId, region, dateNew); + } + } + } + async modifyResponse(context, attributeMap) { + let request = context.request; + let response = context.response; + if (tea_util_1.default.is4xx(response.statusCode) || tea_util_1.default.is5xx(response.statusCode)) { + let _res = await tea_util_1.default.readAsJSON(response.body); + let err = tea_util_1.default.assertAsMap(_res); + let requestId = this.defaultAny(err["RequestId"], err["requestId"]); + if (!tea_util_1.default.isUnset(response.headers["x-acs-request-id"])) { + requestId = response.headers["x-acs-request-id"]; + } + err["statusCode"] = response.statusCode; + throw $tea.newError({ + code: `${this.defaultAny(err["Code"], err["code"])}`, + message: `code: ${response.statusCode}, ${this.defaultAny(err["Message"], err["message"])} request id: ${requestId}`, + data: err, + description: `${this.defaultAny(err["Description"], err["description"])}`, + accessDeniedDetail: this.defaultAny(err["AccessDeniedDetail"], err["accessDeniedDetail"]), + }); + } + if (tea_util_1.default.equalNumber(response.statusCode, 204)) { + await tea_util_1.default.readAsString(response.body); + } + else if (tea_util_1.default.equalString(request.bodyType, "binary")) { + response.deserializedBody = response.body; + } + else if (tea_util_1.default.equalString(request.bodyType, "byte")) { + let byt = await tea_util_1.default.readAsBytes(response.body); + response.deserializedBody = byt; + } + else if (tea_util_1.default.equalString(request.bodyType, "string")) { + let str = await tea_util_1.default.readAsString(response.body); + response.deserializedBody = str; + } + else if (tea_util_1.default.equalString(request.bodyType, "json")) { + let obj = await tea_util_1.default.readAsJSON(response.body); + let res = tea_util_1.default.assertAsMap(obj); + response.deserializedBody = res; + } + else if (tea_util_1.default.equalString(request.bodyType, "array")) { + let arr = await tea_util_1.default.readAsJSON(response.body); + response.deserializedBody = arr; + } + else { + response.deserializedBody = await tea_util_1.default.readAsString(response.body); + } + } + getEndpoint(productId, regionId, endpointRule, network, suffix, endpointMap, endpoint) { + if (!tea_util_1.default.empty(endpoint)) { + return endpoint; + } + if (!tea_util_1.default.isUnset(endpointMap) && !tea_util_1.default.empty(endpointMap[regionId])) { + return endpointMap[regionId]; + } + return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix); + } + defaultAny(inputValue, defaultValue) { + if (tea_util_1.default.isUnset(inputValue)) { + return defaultValue; + } + return inputValue; + } + async getAuthorization(pathname, method, query, headers, signatureAlgorithm, payload, ak, signingkey, product, region, date) { + let signature = await this.getSignature(pathname, method, query, headers, signatureAlgorithm, payload, signingkey); + let signedHeaders = await this.getSignedHeaders(headers); + let signedHeadersStr = darabonba_array_1.default.join(signedHeaders, ";"); + return `${signatureAlgorithm} Credential=${ak}/${date}/${region}/${product}/aliyun_v4_request,SignedHeaders=${signedHeadersStr},Signature=${signature}`; + } + async getSignature(pathname, method, query, headers, signatureAlgorithm, payload, signingkey) { + let canonicalURI = "/"; + if (!tea_util_1.default.empty(pathname)) { + canonicalURI = pathname; + } + let stringToSign = ""; + let canonicalizedResource = await this.buildCanonicalizedResource(query); + let canonicalizedHeaders = await this.buildCanonicalizedHeaders(headers); + let signedHeaders = await this.getSignedHeaders(headers); + let signedHeadersStr = darabonba_array_1.default.join(signedHeaders, ";"); + stringToSign = `${method}\n${canonicalURI}\n${canonicalizedResource}\n${canonicalizedHeaders}\n${signedHeadersStr}\n${payload}`; + let hex = darabonba_encode_util_1.default.hexEncode(darabonba_encode_util_1.default.hash(tea_util_1.default.toBytes(stringToSign), signatureAlgorithm)); + stringToSign = `${signatureAlgorithm}\n${hex}`; + let signature = tea_util_1.default.toBytes(""); + if (tea_util_1.default.equalString(signatureAlgorithm, this._sha256)) { + signature = darabonba_signature_util_1.default.HmacSHA256SignByBytes(stringToSign, signingkey); + } + else if (tea_util_1.default.equalString(signatureAlgorithm, this._sm3)) { + signature = darabonba_signature_util_1.default.HmacSM3SignByBytes(stringToSign, signingkey); + } + return darabonba_encode_util_1.default.hexEncode(signature); + } + async getSigningkey(signatureAlgorithm, secret, product, region, date) { + let sc1 = `aliyun_v4${secret}`; + let sc2 = tea_util_1.default.toBytes(""); + if (tea_util_1.default.equalString(signatureAlgorithm, this._sha256)) { + sc2 = darabonba_signature_util_1.default.HmacSHA256Sign(date, sc1); + } + else if (tea_util_1.default.equalString(signatureAlgorithm, this._sm3)) { + sc2 = darabonba_signature_util_1.default.HmacSM3Sign(date, sc1); + } + let sc3 = tea_util_1.default.toBytes(""); + if (tea_util_1.default.equalString(signatureAlgorithm, this._sha256)) { + sc3 = darabonba_signature_util_1.default.HmacSHA256SignByBytes(region, sc2); + } + else if (tea_util_1.default.equalString(signatureAlgorithm, this._sm3)) { + sc3 = darabonba_signature_util_1.default.HmacSM3SignByBytes(region, sc2); + } + let sc4 = tea_util_1.default.toBytes(""); + if (tea_util_1.default.equalString(signatureAlgorithm, this._sha256)) { + sc4 = darabonba_signature_util_1.default.HmacSHA256SignByBytes(product, sc3); + } + else if (tea_util_1.default.equalString(signatureAlgorithm, this._sm3)) { + sc4 = darabonba_signature_util_1.default.HmacSM3SignByBytes(product, sc3); + } + let hmac = tea_util_1.default.toBytes(""); + if (tea_util_1.default.equalString(signatureAlgorithm, this._sha256)) { + hmac = darabonba_signature_util_1.default.HmacSHA256SignByBytes("aliyun_v4_request", sc4); + } + else if (tea_util_1.default.equalString(signatureAlgorithm, this._sm3)) { + hmac = darabonba_signature_util_1.default.HmacSM3SignByBytes("aliyun_v4_request", sc4); + } + return hmac; + } + getRegion(product, endpoint) { + let region = "center"; + if (tea_util_1.default.empty(product) || tea_util_1.default.empty(endpoint)) { + return region; + } + let preRegion = darabonba_string_1.default.replace(endpoint, ".aliyuncs.com", "", null); + let nodes = darabonba_string_1.default.split(preRegion, ".", null); + if (tea_util_1.default.equalNumber(darabonba_array_1.default.size(nodes), 2)) { + region = nodes[1]; + } + return region; + } + async buildCanonicalizedResource(query) { + let canonicalizedResource = ""; + if (!tea_util_1.default.isUnset(query)) { + let queryArray = darabonba_map_1.default.keySet(query); + let sortedQueryArray = darabonba_array_1.default.ascSort(queryArray); + let separator = ""; + for (let key of sortedQueryArray) { + canonicalizedResource = `${canonicalizedResource}${separator}${darabonba_encode_util_1.default.percentEncode(key)}`; + if (!tea_util_1.default.empty(query[key])) { + canonicalizedResource = `${canonicalizedResource}=${darabonba_encode_util_1.default.percentEncode(query[key])}`; + } + separator = "&"; + } + } + return canonicalizedResource; + } + async buildCanonicalizedHeaders(headers) { + let canonicalizedHeaders = ""; + let sortedHeaders = await this.getSignedHeaders(headers); + for (let header of sortedHeaders) { + canonicalizedHeaders = `${canonicalizedHeaders}${header}:${darabonba_string_1.default.trim(headers[header])}\n`; + } + return canonicalizedHeaders; + } + async getSignedHeaders(headers) { + let headersArray = darabonba_map_1.default.keySet(headers); + let sortedHeadersArray = darabonba_array_1.default.ascSort(headersArray); + let tmp = ""; + let separator = ""; + for (let key of sortedHeadersArray) { + let lowerKey = darabonba_string_1.default.toLower(key); + if (darabonba_string_1.default.hasPrefix(lowerKey, "x-acs-") || darabonba_string_1.default.equals(lowerKey, "host") || darabonba_string_1.default.equals(lowerKey, "content-type")) { + if (!darabonba_string_1.default.contains(tmp, lowerKey)) { + tmp = `${tmp}${separator}${lowerKey}`; + separator = ";"; + } + } + } + return darabonba_string_1.default.split(tmp, ";", null); + } +} +exports.default = Client; +//# sourceMappingURL=client.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/gateway-pop/dist/client.js.map b/backend/node_modules/@alicloud/gateway-pop/dist/client.js.map new file mode 100644 index 0000000..835093e --- /dev/null +++ b/backend/node_modules/@alicloud/gateway-pop/dist/client.js.map @@ -0,0 +1 @@ +{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,wEAAmD;AAEnD,kEAAsC;AACtC,0EAAiD;AACjD,4EAAmD;AACnD,4FAAyD;AACzD,kGAA+D;AAC/D,kFAAgD;AAChD,4EAA0C;AAC1C,gFAA8C;AAC9C,+DAAiD;AAGjD,MAAqB,MAAO,SAAQ,qBAAG;IAIrC;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,OAAO,GAAG,kBAAkB,CAAC;QAClC,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;IAC9B,CAAC;IAGD,KAAK,CAAC,mBAAmB,CAAC,OAAgC,EAAE,YAA+B;QACzF,IAAI,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;QAC9B,IAAI,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;QACnC,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,YAAY,EAAE,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AAE,MAAM,CAAC,IAAI,0BAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,cAAc,CAAC,EAAE;gBACtH,IAAI,CAAC,0BAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,EAAE;oBACnC,GAAG,GAAG,GAAG,GAAG,GAAG,SAAS,GAAG,QAAQ,EAAE,CAAC;oBACtC,SAAS,GAAG,GAAG,CAAC;iBACjB;aAEF;SAEF;QACD,OAAO,0BAAM,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;IACtC,CAAC;CAEF;AAlSD,yBAkSC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/gateway-pop/package.json b/backend/node_modules/@alicloud/gateway-pop/package.json new file mode 100644 index 0000000..808a80e --- /dev/null +++ b/backend/node_modules/@alicloud/gateway-pop/package.json @@ -0,0 +1,40 @@ +{ + "name": "@alicloud/gateway-pop", + "version": "0.0.6", + "description": "", + "main": "dist/client.js", + "scripts": { + "test": "mocha -r ts-node/register -r source-map-support/register test/**/*.spec.ts", + "test-cov": "nyc -e .ts -r=html -r=text -r=lcov npm run test", + "build": "tsc", + "prepublishOnly": "tsc" + }, + "author": "", + "license": "ISC", + "devDependencies": { + "@types/mocha": "^7.0.1", + "@types/node": "^12.12.26", + "mocha": "^7.0.1", + "nyc": "^15.0.0", + "source-map-support": "^0.5.16", + "ts-node": "^8.6.2", + "typescript": "^3.7.5" + }, + "dependencies": { + "@alicloud/tea-typescript": "^1.7.1", + "@alicloud/gateway-spi": "^0.0.8", + "@alicloud/credentials": "^2", + "@alicloud/tea-util": "^1.4.8", + "@alicloud/openapi-util": "^0.3.2", + "@alicloud/endpoint-util": "^0.0.1", + "@alicloud/darabonba-encode-util": "^0.0.2", + "@alicloud/darabonba-signature-util": "^0.0.4", + "@alicloud/darabonba-string": "^1.0.2", + "@alicloud/darabonba-map": "^0.0.1", + "@alicloud/darabonba-array": "^0.1.0" + }, + "files": [ + "dist", + "src" + ] +} diff --git a/backend/node_modules/@alicloud/gateway-pop/src/client.ts b/backend/node_modules/@alicloud/gateway-pop/src/client.ts new file mode 100644 index 0000000..da2b20a --- /dev/null +++ b/backend/node_modules/@alicloud/gateway-pop/src/client.ts @@ -0,0 +1,305 @@ +// This file is auto-generated, don't edit it +import SPI, * as $SPI from '@alicloud/gateway-spi'; +import Credential from '@alicloud/credentials'; +import Util from '@alicloud/tea-util'; +import OpenApiUtil from '@alicloud/openapi-util'; +import EndpointUtil from '@alicloud/endpoint-util'; +import EncodeUtil from '@alicloud/darabonba-encode-util'; +import SignatureUtil from '@alicloud/darabonba-signature-util'; +import String from '@alicloud/darabonba-string'; +import Map from '@alicloud/darabonba-map'; +import Array from '@alicloud/darabonba-array'; +import * as $tea from '@alicloud/tea-typescript'; + + +export default class Client extends SPI { + _sha256: string; + _sm3: string; + + constructor() { + super(); + this._sha256 = "ACS4-HMAC-SHA256"; + this._sm3 = "ACS4-HMAC-SM3"; + } + + + async modifyConfiguration(context: $SPI.InterceptorContext, attributeMap: $SPI.AttributeMap): Promise { + let request = context.request; + let config = context.configuration; + config.endpoint = this.getEndpoint(request.productId, config.regionId, config.endpointRule, config.network, config.suffix, config.endpointMap, config.endpoint); + } + + async modifyRequest(context: $SPI.InterceptorContext, attributeMap: $SPI.AttributeMap): Promise { + let request = context.request; + let config = context.configuration; + let date = OpenApiUtil.getTimestamp(); + request.headers = { + host: config.endpoint, + 'x-acs-version': request.version, + 'x-acs-action': request.action, + 'user-agent': request.userAgent, + 'x-acs-date': date, + 'x-acs-signature-nonce': Util.getNonce(), + accept: "application/json", + ...request.headers, + }; + let signatureAlgorithm : string = Util.defaultString(request.signatureAlgorithm, this._sha256); + let hashedRequestPayload = EncodeUtil.hexEncode(EncodeUtil.hash(Util.toBytes(""), signatureAlgorithm)); + if (!Util.isUnset(request.stream)) { + let tmp = await Util.readAsBytes(request.stream); + hashedRequestPayload = EncodeUtil.hexEncode(EncodeUtil.hash(tmp, signatureAlgorithm)); + request.stream = new $tea.BytesReadable(tmp); + request.headers["content-type"] = "application/octet-stream"; + } else { + if (!Util.isUnset(request.body)) { + if (Util.equalString(request.reqBodyType, "json")) { + let jsonObj = Util.toJSONString(request.body); + hashedRequestPayload = EncodeUtil.hexEncode(EncodeUtil.hash(Util.toBytes(jsonObj), signatureAlgorithm)); + request.stream = new $tea.BytesReadable(jsonObj); + request.headers["content-type"] = "application/json; charset=utf-8"; + } else { + let m = Util.assertAsMap(request.body); + let formObj = OpenApiUtil.toForm(m); + hashedRequestPayload = EncodeUtil.hexEncode(EncodeUtil.hash(Util.toBytes(formObj), signatureAlgorithm)); + request.stream = new $tea.BytesReadable(formObj); + request.headers["content-type"] = "application/x-www-form-urlencoded"; + } + + } + + } + + if (Util.equalString(signatureAlgorithm, this._sm3)) { + request.headers["x-acs-content-sm3"] = hashedRequestPayload; + } else { + request.headers["x-acs-content-sha256"] = hashedRequestPayload; + } + + if (!Util.equalString(request.authType, "Anonymous")) { + let credential : Credential = request.credential; + if (Util.isUnset(credential)) { + throw $tea.newError({ + code: "ParameterMissing", + message: "'config.credential' can not be unset", + }); + } + + let authType = credential.getType(); + if (Util.equalString(authType, "bearer")) { + let bearerToken = credential.getBearerToken(); + request.headers["x-acs-bearer-token"] = bearerToken; + request.headers["Authorization"] = `Bearer ${bearerToken}`; + } else { + let accessKeyId = await credential.getAccessKeyId(); + let accessKeySecret = await credential.getAccessKeySecret(); + let securityToken = await credential.getSecurityToken(); + if (!Util.empty(securityToken)) { + request.headers["x-acs-accesskey-id"] = accessKeyId; + request.headers["x-acs-security-token"] = securityToken; + } + + let dateNew = String.subString(date, 0, 10); + dateNew = String.replace(dateNew, "-", "", null); + let region = this.getRegion(request.productId, config.endpoint); + let signingkey = await this.getSigningkey(signatureAlgorithm, accessKeySecret, request.productId, region, dateNew); + request.headers["Authorization"] = await this.getAuthorization(request.pathname, request.method, request.query, request.headers, signatureAlgorithm, hashedRequestPayload, accessKeyId, signingkey, request.productId, region, dateNew); + } + + } + + } + + async modifyResponse(context: $SPI.InterceptorContext, attributeMap: $SPI.AttributeMap): Promise { + let request = context.request; + let response = context.response; + if (Util.is4xx(response.statusCode) || Util.is5xx(response.statusCode)) { + let _res = await Util.readAsJSON(response.body); + let err = Util.assertAsMap(_res); + let requestId = this.defaultAny(err["RequestId"], err["requestId"]); + if (!Util.isUnset(response.headers["x-acs-request-id"])) { + requestId = response.headers["x-acs-request-id"]; + } + + err["statusCode"] = response.statusCode; + throw $tea.newError({ + code: `${this.defaultAny(err["Code"], err["code"])}`, + message: `code: ${response.statusCode}, ${this.defaultAny(err["Message"], err["message"])} request id: ${requestId}`, + data: err, + description: `${this.defaultAny(err["Description"], err["description"])}`, + accessDeniedDetail: this.defaultAny(err["AccessDeniedDetail"], err["accessDeniedDetail"]), + }); + } + + if (Util.equalNumber(response.statusCode, 204)) { + await Util.readAsString(response.body); + } else if (Util.equalString(request.bodyType, "binary")) { + response.deserializedBody = response.body; + } else if (Util.equalString(request.bodyType, "byte")) { + let byt = await Util.readAsBytes(response.body); + response.deserializedBody = byt; + } else if (Util.equalString(request.bodyType, "string")) { + let str = await Util.readAsString(response.body); + response.deserializedBody = str; + } else if (Util.equalString(request.bodyType, "json")) { + let obj = await Util.readAsJSON(response.body); + let res = Util.assertAsMap(obj); + response.deserializedBody = res; + } else if (Util.equalString(request.bodyType, "array")) { + let arr = await Util.readAsJSON(response.body); + response.deserializedBody = arr; + } else { + response.deserializedBody = await Util.readAsString(response.body); + } + + } + + getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {[key: string ]: string}, endpoint: string): string { + if (!Util.empty(endpoint)) { + return endpoint; + } + + if (!Util.isUnset(endpointMap) && !Util.empty(endpointMap[regionId])) { + return endpointMap[regionId]; + } + + return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix); + } + + defaultAny(inputValue: any, defaultValue: any): any { + if (Util.isUnset(inputValue)) { + return defaultValue; + } + + return inputValue; + } + + async getAuthorization(pathname: string, method: string, query: {[key: string ]: string}, headers: {[key: string ]: string}, signatureAlgorithm: string, payload: string, ak: string, signingkey: Buffer, product: string, region: string, date: string): Promise { + let signature = await this.getSignature(pathname, method, query, headers, signatureAlgorithm, payload, signingkey); + let signedHeaders = await this.getSignedHeaders(headers); + let signedHeadersStr = Array.join(signedHeaders, ";"); + return `${signatureAlgorithm} Credential=${ak}/${date}/${region}/${product}/aliyun_v4_request,SignedHeaders=${signedHeadersStr},Signature=${signature}`; + } + + async getSignature(pathname: string, method: string, query: {[key: string ]: string}, headers: {[key: string ]: string}, signatureAlgorithm: string, payload: string, signingkey: Buffer): Promise { + let canonicalURI : string = "/"; + if (!Util.empty(pathname)) { + canonicalURI = pathname; + } + + let stringToSign : string = ""; + let canonicalizedResource = await this.buildCanonicalizedResource(query); + let canonicalizedHeaders = await this.buildCanonicalizedHeaders(headers); + let signedHeaders = await this.getSignedHeaders(headers); + let signedHeadersStr = Array.join(signedHeaders, ";"); + stringToSign = `${method}\n${canonicalURI}\n${canonicalizedResource}\n${canonicalizedHeaders}\n${signedHeadersStr}\n${payload}`; + let hex = EncodeUtil.hexEncode(EncodeUtil.hash(Util.toBytes(stringToSign), signatureAlgorithm)); + stringToSign = `${signatureAlgorithm}\n${hex}`; + let signature = Util.toBytes(""); + if (Util.equalString(signatureAlgorithm, this._sha256)) { + signature = SignatureUtil.HmacSHA256SignByBytes(stringToSign, signingkey); + } else if (Util.equalString(signatureAlgorithm, this._sm3)) { + signature = SignatureUtil.HmacSM3SignByBytes(stringToSign, signingkey); + } + + return EncodeUtil.hexEncode(signature); + } + + async getSigningkey(signatureAlgorithm: string, secret: string, product: string, region: string, date: string): Promise { + let sc1 = `aliyun_v4${secret}`; + let sc2 = Util.toBytes(""); + if (Util.equalString(signatureAlgorithm, this._sha256)) { + sc2 = SignatureUtil.HmacSHA256Sign(date, sc1); + } else if (Util.equalString(signatureAlgorithm, this._sm3)) { + sc2 = SignatureUtil.HmacSM3Sign(date, sc1); + } + + let sc3 = Util.toBytes(""); + if (Util.equalString(signatureAlgorithm, this._sha256)) { + sc3 = SignatureUtil.HmacSHA256SignByBytes(region, sc2); + } else if (Util.equalString(signatureAlgorithm, this._sm3)) { + sc3 = SignatureUtil.HmacSM3SignByBytes(region, sc2); + } + + let sc4 = Util.toBytes(""); + if (Util.equalString(signatureAlgorithm, this._sha256)) { + sc4 = SignatureUtil.HmacSHA256SignByBytes(product, sc3); + } else if (Util.equalString(signatureAlgorithm, this._sm3)) { + sc4 = SignatureUtil.HmacSM3SignByBytes(product, sc3); + } + + let hmac = Util.toBytes(""); + if (Util.equalString(signatureAlgorithm, this._sha256)) { + hmac = SignatureUtil.HmacSHA256SignByBytes("aliyun_v4_request", sc4); + } else if (Util.equalString(signatureAlgorithm, this._sm3)) { + hmac = SignatureUtil.HmacSM3SignByBytes("aliyun_v4_request", sc4); + } + + return hmac; + } + + getRegion(product: string, endpoint: string): string { + let region = "center"; + if (Util.empty(product) || Util.empty(endpoint)) { + return region; + } + + let preRegion : string = String.replace(endpoint, ".aliyuncs.com", "", null); + let nodes = String.split(preRegion, ".", null); + if (Util.equalNumber(Array.size(nodes), 2)) { + region = nodes[1]; + } + + return region; + } + + async buildCanonicalizedResource(query: {[key: string ]: string}): Promise { + let canonicalizedResource : string = ""; + if (!Util.isUnset(query)) { + let queryArray : string[] = Map.keySet(query); + let sortedQueryArray = Array.ascSort(queryArray); + let separator : string = ""; + + for (let key of sortedQueryArray) { + canonicalizedResource = `${canonicalizedResource}${separator}${EncodeUtil.percentEncode(key)}`; + if (!Util.empty(query[key])) { + canonicalizedResource = `${canonicalizedResource}=${EncodeUtil.percentEncode(query[key])}`; + } + + separator = "&"; + } + } + + return canonicalizedResource; + } + + async buildCanonicalizedHeaders(headers: {[key: string ]: string}): Promise { + let canonicalizedHeaders : string = ""; + let sortedHeaders : string[] = await this.getSignedHeaders(headers); + + for (let header of sortedHeaders) { + canonicalizedHeaders = `${canonicalizedHeaders}${header}:${String.trim(headers[header])}\n`; + } + return canonicalizedHeaders; + } + + async getSignedHeaders(headers: {[key: string ]: string}): Promise { + let headersArray : string[] = Map.keySet(headers); + let sortedHeadersArray = Array.ascSort(headersArray); + let tmp : string = ""; + let separator : string = ""; + + for (let key of sortedHeadersArray) { + let lowerKey = String.toLower(key); + if (String.hasPrefix(lowerKey, "x-acs-") || String.equals(lowerKey, "host") || String.equals(lowerKey, "content-type")) { + if (!String.contains(tmp, lowerKey)) { + tmp = `${tmp}${separator}${lowerKey}`; + separator = ";"; + } + + } + + } + return String.split(tmp, ";", null); + } + +} diff --git a/backend/node_modules/@alicloud/gateway-spi/dist/client.d.ts b/backend/node_modules/@alicloud/gateway-spi/dist/client.d.ts new file mode 100644 index 0000000..06c55ac --- /dev/null +++ b/backend/node_modules/@alicloud/gateway-spi/dist/client.d.ts @@ -0,0 +1,114 @@ +/// +import Credential from '@alicloud/credentials'; +import { Readable } from 'stream'; +import * as $tea from '@alicloud/tea-typescript'; +export declare class InterceptorContext extends $tea.Model { + request: InterceptorContextRequest; + configuration: InterceptorContextConfiguration; + response: InterceptorContextResponse; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + constructor(map?: { + [key: string]: any; + }); +} +export declare class AttributeMap extends $tea.Model { + attributes: { + [key: string]: any; + }; + key: { + [key: string]: string; + }; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + constructor(map?: { + [key: string]: any; + }); +} +export declare class InterceptorContextRequest extends $tea.Model { + headers?: { + [key: string]: string; + }; + query?: { + [key: string]: string; + }; + body?: any; + stream?: Readable; + hostMap?: { + [key: string]: string; + }; + pathname: string; + productId: string; + action: string; + version: string; + protocol: string; + method: string; + authType: string; + bodyType: string; + reqBodyType: string; + style?: string; + credential: Credential; + signatureVersion?: string; + signatureAlgorithm?: string; + userAgent: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + constructor(map?: { + [key: string]: any; + }); +} +export declare class InterceptorContextConfiguration extends $tea.Model { + regionId: string; + endpoint?: string; + endpointRule?: string; + endpointMap?: { + [key: string]: string; + }; + endpointType?: string; + network?: string; + suffix?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + constructor(map?: { + [key: string]: any; + }); +} +export declare class InterceptorContextResponse extends $tea.Model { + statusCode?: number; + headers?: { + [key: string]: string; + }; + body?: Readable; + deserializedBody?: any; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + constructor(map?: { + [key: string]: any; + }); +} +export default abstract class Client { + constructor(); + abstract modifyConfiguration(context: InterceptorContext, attributeMap: AttributeMap): Promise; + abstract modifyRequest(context: InterceptorContext, attributeMap: AttributeMap): Promise; + abstract modifyResponse(context: InterceptorContext, attributeMap: AttributeMap): Promise; +} diff --git a/backend/node_modules/@alicloud/gateway-spi/dist/client.js b/backend/node_modules/@alicloud/gateway-spi/dist/client.js new file mode 100644 index 0000000..7bef6a1 --- /dev/null +++ b/backend/node_modules/@alicloud/gateway-spi/dist/client.js @@ -0,0 +1,174 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (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 (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.InterceptorContextResponse = exports.InterceptorContextConfiguration = exports.InterceptorContextRequest = exports.AttributeMap = exports.InterceptorContext = void 0; +// This file is auto-generated, don't edit it +const credentials_1 = __importDefault(require("@alicloud/credentials")); +const $tea = __importStar(require("@alicloud/tea-typescript")); +class InterceptorContext extends $tea.Model { + constructor(map) { + super(map); + } + static names() { + return { + request: 'request', + configuration: 'configuration', + response: 'response', + }; + } + static types() { + return { + request: InterceptorContextRequest, + configuration: InterceptorContextConfiguration, + response: InterceptorContextResponse, + }; + } +} +exports.InterceptorContext = InterceptorContext; +class AttributeMap extends $tea.Model { + constructor(map) { + super(map); + } + static names() { + return { + attributes: 'attributes', + key: 'key', + }; + } + static types() { + return { + attributes: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' }, + key: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + }; + } +} +exports.AttributeMap = AttributeMap; +class InterceptorContextRequest extends $tea.Model { + constructor(map) { + super(map); + } + static names() { + return { + headers: 'headers', + query: 'query', + body: 'body', + stream: 'stream', + hostMap: 'hostMap', + pathname: 'pathname', + productId: 'productId', + action: 'action', + version: 'version', + protocol: 'protocol', + method: 'method', + authType: 'authType', + bodyType: 'bodyType', + reqBodyType: 'reqBodyType', + style: 'style', + credential: 'credential', + signatureVersion: 'signatureVersion', + signatureAlgorithm: 'signatureAlgorithm', + userAgent: 'userAgent', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + query: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + body: 'any', + stream: 'Readable', + hostMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + pathname: 'string', + productId: 'string', + action: 'string', + version: 'string', + protocol: 'string', + method: 'string', + authType: 'string', + bodyType: 'string', + reqBodyType: 'string', + style: 'string', + credential: credentials_1.default, + signatureVersion: 'string', + signatureAlgorithm: 'string', + userAgent: 'string', + }; + } +} +exports.InterceptorContextRequest = InterceptorContextRequest; +class InterceptorContextConfiguration extends $tea.Model { + constructor(map) { + super(map); + } + static names() { + return { + regionId: 'regionId', + endpoint: 'endpoint', + endpointRule: 'endpointRule', + endpointMap: 'endpointMap', + endpointType: 'endpointType', + network: 'network', + suffix: 'suffix', + }; + } + static types() { + return { + regionId: 'string', + endpoint: 'string', + endpointRule: 'string', + endpointMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + endpointType: 'string', + network: 'string', + suffix: 'string', + }; + } +} +exports.InterceptorContextConfiguration = InterceptorContextConfiguration; +class InterceptorContextResponse extends $tea.Model { + constructor(map) { + super(map); + } + static names() { + return { + statusCode: 'statusCode', + headers: 'headers', + body: 'body', + deserializedBody: 'deserializedBody', + }; + } + static types() { + return { + statusCode: 'number', + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + body: 'Readable', + deserializedBody: 'any', + }; + } +} +exports.InterceptorContextResponse = InterceptorContextResponse; +class Client { + constructor() { + } +} +exports.default = Client; +//# sourceMappingURL=client.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/gateway-spi/dist/client.js.map b/backend/node_modules/@alicloud/gateway-spi/dist/client.js.map new file mode 100644 index 0000000..8b84d17 --- /dev/null +++ b/backend/node_modules/@alicloud/gateway-spi/dist/client.js.map @@ -0,0 +1 @@ +{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,wEAA+C;AAE/C,+DAAiD;AAEjD,MAAa,kBAAmB,SAAQ,IAAI,CAAC,KAAK;IAoBhD,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;IAlBD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,aAAa,EAAE,eAAe;YAC9B,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,yBAAyB;YAClC,aAAa,EAAE,+BAA+B;YAC9C,QAAQ,EAAE,0BAA0B;SACrC,CAAC;IACJ,C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,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YAC1E,YAAY,EAAE,QAAQ;YACtB,OAAO,EAAE,QAAQ;YACjB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;CAKF;AAnCD,0EAmCC;AAED,MAAa,0BAA2B,SAAQ,IAAI,CAAC,KAAK;IAuBxD,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;IApBD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,OAAO,EAAE,SAAS;YAClB,IAAI,EAAE,MAAM;YACZ,gBAAgB,EAAE,kBAAkB;SACrC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,IAAI,EAAE,UAAU;YAChB,gBAAgB,EAAE,KAAK;SACxB,CAAC;IACJ,CAAC;CAKF;AA1BD,gEA0BC;AAGD,MAA8B,MAAM;IAElC;IACA,CAAC;CAQF;AAXD,yBAWC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/gateway-spi/package.json b/backend/node_modules/@alicloud/gateway-spi/package.json new file mode 100644 index 0000000..51e884f --- /dev/null +++ b/backend/node_modules/@alicloud/gateway-spi/package.json @@ -0,0 +1,29 @@ +{ + "name": "@alicloud/gateway-spi", + "version": "0.0.8", + "description": "", + "main": "dist/client.js", + "scripts": { + "test": "mocha --reporter spec --timeout 3000 test/*.test.js", + "test-cov": "nyc -e .ts -r=html -r=text -r=lcov npm run test", + "build": "tsc", + "prepublishOnly": "tsc" + }, + "author": "", + "license": "ISC", + "devDependencies": { + "@types/node": "^12.12.26", + "nyc": "^15.0.0", + "source-map-support": "^0.5.16", + "ts-node": "^8.6.2", + "typescript": "^3.7.5" + }, + "dependencies": { + "@alicloud/tea-typescript": "^1.7.1", + "@alicloud/credentials": "^2" + }, + "files": [ + "dist", + "src" + ] +} diff --git a/backend/node_modules/@alicloud/gateway-spi/src/client.ts b/backend/node_modules/@alicloud/gateway-spi/src/client.ts new file mode 100644 index 0000000..2cd3707 --- /dev/null +++ b/backend/node_modules/@alicloud/gateway-spi/src/client.ts @@ -0,0 +1,203 @@ +// This file is auto-generated, don't edit it +import Credential from '@alicloud/credentials'; +import { Readable } from 'stream'; +import * as $tea from '@alicloud/tea-typescript'; + +export class InterceptorContext extends $tea.Model { + request: InterceptorContextRequest; + configuration: InterceptorContextConfiguration; + response: InterceptorContextResponse; + static names(): { [key: string]: string } { + return { + request: 'request', + configuration: 'configuration', + response: 'response', + }; + } + + static types(): { [key: string]: any } { + return { + request: InterceptorContextRequest, + configuration: InterceptorContextConfiguration, + response: InterceptorContextResponse, + }; + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class AttributeMap extends $tea.Model { + attributes: { [key: string]: any }; + key: { [key: string]: string }; + static names(): { [key: string]: string } { + return { + attributes: 'attributes', + key: 'key', + }; + } + + static types(): { [key: string]: any } { + return { + attributes: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' }, + key: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + }; + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class InterceptorContextRequest extends $tea.Model { + headers?: { [key: string]: string }; + query?: { [key: string]: string }; + body?: any; + stream?: Readable; + hostMap?: { [key: string]: string }; + pathname: string; + productId: string; + action: string; + version: string; + protocol: string; + method: string; + authType: string; + bodyType: string; + reqBodyType: string; + style?: string; + credential: Credential; + signatureVersion?: string; + signatureAlgorithm?: string; + userAgent: string; + static names(): { [key: string]: string } { + return { + headers: 'headers', + query: 'query', + body: 'body', + stream: 'stream', + hostMap: 'hostMap', + pathname: 'pathname', + productId: 'productId', + action: 'action', + version: 'version', + protocol: 'protocol', + method: 'method', + authType: 'authType', + bodyType: 'bodyType', + reqBodyType: 'reqBodyType', + style: 'style', + credential: 'credential', + signatureVersion: 'signatureVersion', + signatureAlgorithm: 'signatureAlgorithm', + userAgent: 'userAgent', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + query: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + body: 'any', + stream: 'Readable', + hostMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + pathname: 'string', + productId: 'string', + action: 'string', + version: 'string', + protocol: 'string', + method: 'string', + authType: 'string', + bodyType: 'string', + reqBodyType: 'string', + style: 'string', + credential: Credential, + signatureVersion: 'string', + signatureAlgorithm: 'string', + userAgent: 'string', + }; + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class InterceptorContextConfiguration extends $tea.Model { + regionId: string; + endpoint?: string; + endpointRule?: string; + endpointMap?: { [key: string]: string }; + endpointType?: string; + network?: string; + suffix?: string; + static names(): { [key: string]: string } { + return { + regionId: 'regionId', + endpoint: 'endpoint', + endpointRule: 'endpointRule', + endpointMap: 'endpointMap', + endpointType: 'endpointType', + network: 'network', + suffix: 'suffix', + }; + } + + static types(): { [key: string]: any } { + return { + regionId: 'string', + endpoint: 'string', + endpointRule: 'string', + endpointMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + endpointType: 'string', + network: 'string', + suffix: 'string', + }; + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class InterceptorContextResponse extends $tea.Model { + statusCode?: number; + headers?: { [key: string]: string }; + body?: Readable; + deserializedBody?: any; + static names(): { [key: string]: string } { + return { + statusCode: 'statusCode', + headers: 'headers', + body: 'body', + deserializedBody: 'deserializedBody', + }; + } + + static types(): { [key: string]: any } { + return { + statusCode: 'number', + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + body: 'Readable', + deserializedBody: 'any', + }; + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + + +export default abstract class Client { + + constructor() { + } + + abstract modifyConfiguration(context: InterceptorContext, attributeMap: AttributeMap): Promise + + abstract modifyRequest(context: InterceptorContext, attributeMap: AttributeMap): Promise + + abstract modifyResponse(context: InterceptorContext, attributeMap: AttributeMap): Promise + +} diff --git a/backend/node_modules/@alicloud/openapi-client/README.md b/backend/node_modules/@alicloud/openapi-client/README.md new file mode 100644 index 0000000..dbfc389 --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-client/README.md @@ -0,0 +1,19 @@ +English | [简体中文](README-CN.md) + +![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg) + +# Alibaba Cloud OpenApi Client + +## Issues + +[Opening an Issue](https://github.com/aliyun/darabonba-openapi/issues/new), Issues not conforming to the guidelines may be closed immediately. + +## References + +- [Latest Release](https://github.com/aliyun/darabonba-openapi) + +## License + +[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0) + +Copyright (c) 2009-present, Alibaba Cloud All rights reserved. diff --git a/backend/node_modules/@alicloud/openapi-client/dist/client.d.ts b/backend/node_modules/@alicloud/openapi-client/dist/client.d.ts new file mode 100644 index 0000000..2e4351d --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-client/dist/client.d.ts @@ -0,0 +1,531 @@ +/** + * @remarks + * This is for OpenApi SDK + */ +import * as $Util from '@alicloud/tea-util'; +import Credential from '@alicloud/credentials'; +import SPI, * as $SPI from '@alicloud/gateway-spi'; +import { Readable } from 'stream'; +import * as $tea from '@alicloud/tea-typescript'; +export declare class GlobalParameters extends $tea.Model { + headers?: { + [key: string]: string; + }; + queries?: { + [key: string]: string; + }; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + constructor(map?: { + [key: string]: any; + }); +} +/** + * @remarks + * Model for initing client + */ +export declare class Config extends $tea.Model { + /** + * @remarks + * accesskey id + */ + accessKeyId?: string; + /** + * @remarks + * accesskey secret + */ + accessKeySecret?: string; + /** + * @remarks + * security token + * + * @example + * a.txt + */ + securityToken?: string; + /** + * @remarks + * bearer token + * + * @example + * the-bearer-token + */ + bearerToken?: string; + /** + * @remarks + * http protocol + * + * @example + * http + */ + protocol?: string; + /** + * @remarks + * http method + * + * @example + * GET + */ + method?: string; + /** + * @remarks + * region id + * + * @example + * cn-hangzhou + */ + regionId?: string; + /** + * @remarks + * read timeout + * + * @example + * 10 + */ + readTimeout?: number; + /** + * @remarks + * connect timeout + * + * @example + * 10 + */ + connectTimeout?: number; + /** + * @remarks + * http proxy + * + * @example + * http://localhost + */ + httpProxy?: string; + /** + * @remarks + * https proxy + * + * @example + * https://localhost + */ + httpsProxy?: string; + /** + * @remarks + * credential + */ + credential?: Credential; + /** + * @remarks + * endpoint + * + * @example + * cs.aliyuncs.com + */ + endpoint?: string; + /** + * @remarks + * proxy white list + * + * @example + * http://localhost + */ + noProxy?: string; + /** + * @remarks + * max idle conns + * + * @example + * 3 + */ + maxIdleConns?: number; + /** + * @remarks + * network for endpoint + * + * @example + * public + */ + network?: string; + /** + * @remarks + * user agent + * + * @example + * Alibabacloud/1 + */ + userAgent?: string; + /** + * @remarks + * suffix for endpoint + * + * @example + * aliyun + */ + suffix?: string; + /** + * @remarks + * socks5 proxy + */ + socks5Proxy?: string; + /** + * @remarks + * socks5 network + * + * @example + * TCP + */ + socks5NetWork?: string; + /** + * @remarks + * endpoint type + * + * @example + * internal + */ + endpointType?: string; + /** + * @remarks + * OpenPlatform endpoint + * + * @example + * openplatform.aliyuncs.com + */ + openPlatformEndpoint?: string; + /** + * @remarks + * credential type + * + * @example + * access_key + * + * @deprecated + */ + type?: string; + /** + * @remarks + * Signature Version + * + * @example + * v1 + */ + signatureVersion?: string; + /** + * @remarks + * Signature Algorithm + * + * @example + * ACS3-HMAC-SHA256 + */ + signatureAlgorithm?: string; + /** + * @remarks + * Global Parameters + */ + globalParameters?: GlobalParameters; + /** + * @remarks + * privite key for client certificate + * + * @example + * MIIEvQ + */ + key?: string; + /** + * @remarks + * client certificate + * + * @example + * -----BEGIN CERTIFICATE----- + * xxx-----END CERTIFICATE----- + */ + cert?: string; + /** + * @remarks + * server certificate + * + * @example + * -----BEGIN CERTIFICATE----- + * xxx-----END CERTIFICATE----- + */ + ca?: string; + /** + * @remarks + * disable HTTP/2 + * + * @example + * false + */ + disableHttp2?: boolean; + /** + * @remarks + * TLS Minimum Version + * + * @example + * TLSv1, TLSv1.1, TLSv1.2, TLSv1.3 + */ + tlsMinVersion?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + constructor(map?: { + [key: string]: any; + }); +} +export declare class OpenApiRequest extends $tea.Model { + headers?: { + [key: string]: string; + }; + query?: { + [key: string]: string; + }; + body?: any; + stream?: Readable; + hostMap?: { + [key: string]: string; + }; + endpointOverride?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + constructor(map?: { + [key: string]: any; + }); +} +export declare class Params extends $tea.Model { + action: string; + version: string; + protocol: string; + pathname: string; + method: string; + authType: string; + bodyType: string; + reqBodyType: string; + style?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + constructor(map?: { + [key: string]: any; + }); +} +export default class Client { + _endpoint: string; + _regionId: string; + _protocol: string; + _method: string; + _userAgent: string; + _endpointRule: string; + _endpointMap: { + [key: string]: string; + }; + _suffix: string; + _readTimeout: number; + _connectTimeout: number; + _httpProxy: string; + _httpsProxy: string; + _socks5Proxy: string; + _socks5NetWork: string; + _noProxy: string; + _network: string; + _productId: string; + _maxIdleConns: number; + _endpointType: string; + _openPlatformEndpoint: string; + _credential: Credential; + _signatureVersion: string; + _signatureAlgorithm: string; + _headers: { + [key: string]: string; + }; + _spi: SPI; + _globalParameters: GlobalParameters; + _key: string; + _cert: string; + _ca: string; + _disableHttp2: boolean; + _tlsMinVersion: string; + _attributeMap: $SPI.AttributeMap; + /** + * @remarks + * Init client with Config + * + * @param config - config contains the necessary information to create a client + */ + constructor(config: Config); + /** + * @remarks + * Encapsulate the request and invoke the network + * + * @param action - api name + * @param version - product version + * @param protocol - http or https + * @param method - e.g. GET + * @param authType - authorization type e.g. AK + * @param bodyType - response body type e.g. String + * @param request - object of OpenApiRequest + * @param runtime - which controls some details of call api, such as retry times + * @returns the response + */ + doRPCRequest(action: string, version: string, protocol: string, method: string, authType: string, bodyType: string, request: OpenApiRequest, runtime: $Util.RuntimeOptions): Promise<{ + [key: string]: any; + }>; + /** + * @remarks + * Encapsulate the request and invoke the network + * + * @param action - api name + * @param version - product version + * @param protocol - http or https + * @param method - e.g. GET + * @param authType - authorization type e.g. AK + * @param pathname - pathname of every api + * @param bodyType - response body type e.g. String + * @param request - object of OpenApiRequest + * @param runtime - which controls some details of call api, such as retry times + * @returns the response + */ + doROARequest(action: string, version: string, protocol: string, method: string, authType: string, pathname: string, bodyType: string, request: OpenApiRequest, runtime: $Util.RuntimeOptions): Promise<{ + [key: string]: any; + }>; + /** + * @remarks + * Encapsulate the request and invoke the network with form body + * + * @param action - api name + * @param version - product version + * @param protocol - http or https + * @param method - e.g. GET + * @param authType - authorization type e.g. AK + * @param pathname - pathname of every api + * @param bodyType - response body type e.g. String + * @param request - object of OpenApiRequest + * @param runtime - which controls some details of call api, such as retry times + * @returns the response + */ + doROARequestWithForm(action: string, version: string, protocol: string, method: string, authType: string, pathname: string, bodyType: string, request: OpenApiRequest, runtime: $Util.RuntimeOptions): Promise<{ + [key: string]: any; + }>; + /** + * @remarks + * Encapsulate the request and invoke the network + * + * @param action - api name + * @param version - product version + * @param protocol - http or https + * @param method - e.g. GET + * @param authType - authorization type e.g. AK + * @param bodyType - response body type e.g. String + * @param request - object of OpenApiRequest + * @param runtime - which controls some details of call api, such as retry times + * @returns the response + */ + doRequest(params: Params, request: OpenApiRequest, runtime: $Util.RuntimeOptions): Promise<{ + [key: string]: any; + }>; + /** + * @remarks + * Encapsulate the request and invoke the network + * + * @param action - api name + * @param version - product version + * @param protocol - http or https + * @param method - e.g. GET + * @param authType - authorization type e.g. AK + * @param bodyType - response body type e.g. String + * @param request - object of OpenApiRequest + * @param runtime - which controls some details of call api, such as retry times + * @returns the response + */ + execute(params: Params, request: OpenApiRequest, runtime: $Util.RuntimeOptions): Promise<{ + [key: string]: any; + }>; + callApi(params: Params, request: OpenApiRequest, runtime: $Util.RuntimeOptions): Promise<{ + [key: string]: any; + }>; + /** + * @remarks + * Get user agent + * @returns user agent + */ + getUserAgent(): string; + /** + * @remarks + * Get accesskey id by using credential + * @returns accesskey id + */ + getAccessKeyId(): Promise; + /** + * @remarks + * Get accesskey secret by using credential + * @returns accesskey secret + */ + getAccessKeySecret(): Promise; + /** + * @remarks + * Get security token by using credential + * @returns security token + */ + getSecurityToken(): Promise; + /** + * @remarks + * Get bearer token by credential + * @returns bearer token + */ + getBearerToken(): Promise; + /** + * @remarks + * Get credential type by credential + * @returns credential type e.g. access_key + */ + getType(): Promise; + /** + * @remarks + * If inputValue is not null, return it or return defaultValue + * + * @param inputValue - users input value + * @param defaultValue - default value + * @returns the final result + */ + static defaultAny(inputValue: any, defaultValue: any): any; + /** + * @remarks + * If the endpointRule and config.endpoint are empty, throw error + * + * @param config - config contains the necessary information to create a client + */ + checkConfig(config: Config): void; + /** + * @remarks + * set gateway client + * + * @param spi - . + */ + setGatewayClient(spi: SPI): void; + /** + * @remarks + * set RPC header for debug + * + * @param headers - headers for debug, this header can be used only once. + */ + setRpcHeaders(headers: { + [key: string]: string; + }): void; + /** + * @remarks + * get RPC header for debug + */ + getRpcHeaders(): { + [key: string]: string; + }; +} diff --git a/backend/node_modules/@alicloud/openapi-client/dist/client.js b/backend/node_modules/@alicloud/openapi-client/dist/client.js new file mode 100644 index 0000000..9720cfe --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-client/dist/client.js @@ -0,0 +1,1404 @@ +"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; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Params = exports.OpenApiRequest = exports.Config = exports.GlobalParameters = void 0; +// This file is auto-generated, don't edit it +/** + * @remarks + * This is for OpenApi SDK + */ +const tea_util_1 = __importDefault(require("@alicloud/tea-util")); +const credentials_1 = __importStar(require("@alicloud/credentials")), $Credential = credentials_1; +const openapi_util_1 = __importDefault(require("@alicloud/openapi-util")); +const $SPI = __importStar(require("@alicloud/gateway-spi")); +const tea_xml_1 = __importDefault(require("@alicloud/tea-xml")); +const $tea = __importStar(require("@alicloud/tea-typescript")); +class GlobalParameters extends $tea.Model { + static names() { + return { + headers: 'headers', + queries: 'queries', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + queries: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + }; + } + constructor(map) { + super(map); + } +} +exports.GlobalParameters = GlobalParameters; +/** + * @remarks + * Model for initing client + */ +class Config extends $tea.Model { + static names() { + return { + accessKeyId: 'accessKeyId', + accessKeySecret: 'accessKeySecret', + securityToken: 'securityToken', + bearerToken: 'bearerToken', + protocol: 'protocol', + method: 'method', + regionId: 'regionId', + readTimeout: 'readTimeout', + connectTimeout: 'connectTimeout', + httpProxy: 'httpProxy', + httpsProxy: 'httpsProxy', + credential: 'credential', + endpoint: 'endpoint', + noProxy: 'noProxy', + maxIdleConns: 'maxIdleConns', + network: 'network', + userAgent: 'userAgent', + suffix: 'suffix', + socks5Proxy: 'socks5Proxy', + socks5NetWork: 'socks5NetWork', + endpointType: 'endpointType', + openPlatformEndpoint: 'openPlatformEndpoint', + type: 'type', + signatureVersion: 'signatureVersion', + signatureAlgorithm: 'signatureAlgorithm', + globalParameters: 'globalParameters', + key: 'key', + cert: 'cert', + ca: 'ca', + disableHttp2: 'disableHttp2', + tlsMinVersion: 'tlsMinVersion', + }; + } + static types() { + return { + accessKeyId: 'string', + accessKeySecret: 'string', + securityToken: 'string', + bearerToken: 'string', + protocol: 'string', + method: 'string', + regionId: 'string', + readTimeout: 'number', + connectTimeout: 'number', + httpProxy: 'string', + httpsProxy: 'string', + credential: credentials_1.default, + endpoint: 'string', + noProxy: 'string', + maxIdleConns: 'number', + network: 'string', + userAgent: 'string', + suffix: 'string', + socks5Proxy: 'string', + socks5NetWork: 'string', + endpointType: 'string', + openPlatformEndpoint: 'string', + type: 'string', + signatureVersion: 'string', + signatureAlgorithm: 'string', + globalParameters: GlobalParameters, + key: 'string', + cert: 'string', + ca: 'string', + disableHttp2: 'boolean', + tlsMinVersion: 'string', + }; + } + constructor(map) { + super(map); + } +} +exports.Config = Config; +class OpenApiRequest extends $tea.Model { + static names() { + return { + headers: 'headers', + query: 'query', + body: 'body', + stream: 'stream', + hostMap: 'hostMap', + endpointOverride: 'endpointOverride', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + query: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + body: 'any', + stream: 'Readable', + hostMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + endpointOverride: 'string', + }; + } + constructor(map) { + super(map); + } +} +exports.OpenApiRequest = OpenApiRequest; +class Params extends $tea.Model { + static names() { + return { + action: 'action', + version: 'version', + protocol: 'protocol', + pathname: 'pathname', + method: 'method', + authType: 'authType', + bodyType: 'bodyType', + reqBodyType: 'reqBodyType', + style: 'style', + }; + } + static types() { + return { + action: 'string', + version: 'string', + protocol: 'string', + pathname: 'string', + method: 'string', + authType: 'string', + bodyType: 'string', + reqBodyType: 'string', + style: 'string', + }; + } + constructor(map) { + super(map); + } +} +exports.Params = Params; +class Client { + /** + * @remarks + * Init client with Config + * + * @param config - config contains the necessary information to create a client + */ + constructor(config) { + if (tea_util_1.default.isUnset(config)) { + throw $tea.newError({ + code: "ParameterMissing", + message: "'config' can not be unset", + }); + } + if (!tea_util_1.default.empty(config.accessKeyId) && !tea_util_1.default.empty(config.accessKeySecret)) { + if (!tea_util_1.default.empty(config.securityToken)) { + config.type = "sts"; + } + else { + config.type = "access_key"; + } + let credentialConfig = new $Credential.Config({ + accessKeyId: config.accessKeyId, + type: config.type, + accessKeySecret: config.accessKeySecret, + }); + credentialConfig.securityToken = config.securityToken; + this._credential = new credentials_1.default(credentialConfig); + } + else if (!tea_util_1.default.empty(config.bearerToken)) { + let cc = new $Credential.Config({ + type: "bearer", + bearerToken: config.bearerToken, + }); + this._credential = new credentials_1.default(cc); + } + else if (!tea_util_1.default.isUnset(config.credential)) { + this._credential = config.credential; + } + this._endpoint = config.endpoint; + this._endpointType = config.endpointType; + this._network = config.network; + this._suffix = config.suffix; + this._protocol = config.protocol; + this._method = config.method; + this._regionId = config.regionId; + this._userAgent = config.userAgent; + this._readTimeout = config.readTimeout; + this._connectTimeout = config.connectTimeout; + this._httpProxy = config.httpProxy; + this._httpsProxy = config.httpsProxy; + this._noProxy = config.noProxy; + this._socks5Proxy = config.socks5Proxy; + this._socks5NetWork = config.socks5NetWork; + this._maxIdleConns = config.maxIdleConns; + this._signatureVersion = config.signatureVersion; + this._signatureAlgorithm = config.signatureAlgorithm; + this._globalParameters = config.globalParameters; + this._key = config.key; + this._cert = config.cert; + this._ca = config.ca; + this._disableHttp2 = config.disableHttp2; + this._tlsMinVersion = config.tlsMinVersion; + } + /** + * @remarks + * Encapsulate the request and invoke the network + * + * @param action - api name + * @param version - product version + * @param protocol - http or https + * @param method - e.g. GET + * @param authType - authorization type e.g. AK + * @param bodyType - response body type e.g. String + * @param request - object of OpenApiRequest + * @param runtime - which controls some details of call api, such as retry times + * @returns the response + */ + async doRPCRequest(action, version, protocol, method, authType, bodyType, request, runtime) { + let _runtime = { + timeouted: "retry", + key: tea_util_1.default.defaultString(runtime.key, this._key), + cert: tea_util_1.default.defaultString(runtime.cert, this._cert), + ca: tea_util_1.default.defaultString(runtime.ca, this._ca), + readTimeout: tea_util_1.default.defaultNumber(runtime.readTimeout, this._readTimeout), + connectTimeout: tea_util_1.default.defaultNumber(runtime.connectTimeout, this._connectTimeout), + httpProxy: tea_util_1.default.defaultString(runtime.httpProxy, this._httpProxy), + httpsProxy: tea_util_1.default.defaultString(runtime.httpsProxy, this._httpsProxy), + noProxy: tea_util_1.default.defaultString(runtime.noProxy, this._noProxy), + socks5Proxy: tea_util_1.default.defaultString(runtime.socks5Proxy, this._socks5Proxy), + socks5NetWork: tea_util_1.default.defaultString(runtime.socks5NetWork, this._socks5NetWork), + maxIdleConns: tea_util_1.default.defaultNumber(runtime.maxIdleConns, this._maxIdleConns), + retry: { + retryable: runtime.autoretry, + maxAttempts: tea_util_1.default.defaultNumber(runtime.maxAttempts, 3), + }, + backoff: { + policy: tea_util_1.default.defaultString(runtime.backoffPolicy, "no"), + period: tea_util_1.default.defaultNumber(runtime.backoffPeriod, 1), + }, + ignoreSSL: runtime.ignoreSSL, + tlsMinVersion: this._tlsMinVersion, + }; + let _lastRequest = null; + let _now = Date.now(); + let _retryTimes = 0; + while ($tea.allowRetry(_runtime['retry'], _retryTimes, _now)) { + if (_retryTimes > 0) { + let _backoffTime = $tea.getBackoffTime(_runtime['backoff'], _retryTimes); + if (_backoffTime > 0) { + await $tea.sleep(_backoffTime); + } + } + _retryTimes = _retryTimes + 1; + try { + let request_ = new $tea.Request(); + request_.protocol = tea_util_1.default.defaultString(this._protocol, protocol); + request_.method = method; + request_.pathname = "/"; + let globalQueries = {}; + let globalHeaders = {}; + if (!tea_util_1.default.isUnset(this._globalParameters)) { + let globalParams = this._globalParameters; + if (!tea_util_1.default.isUnset(globalParams.queries)) { + globalQueries = globalParams.queries; + } + if (!tea_util_1.default.isUnset(globalParams.headers)) { + globalHeaders = globalParams.headers; + } + } + let extendsHeaders = {}; + let extendsQueries = {}; + if (!tea_util_1.default.isUnset(runtime.extendsParameters)) { + let extendsParameters = runtime.extendsParameters; + if (!tea_util_1.default.isUnset(extendsParameters.headers)) { + extendsHeaders = extendsParameters.headers; + } + if (!tea_util_1.default.isUnset(extendsParameters.queries)) { + extendsQueries = extendsParameters.queries; + } + } + request_.query = Object.assign(Object.assign(Object.assign({ Action: action, Format: "json", Version: version, Timestamp: openapi_util_1.default.getTimestamp(), SignatureNonce: tea_util_1.default.getNonce() }, globalQueries), extendsQueries), request.query); + let headers = this.getRpcHeaders(); + if (tea_util_1.default.isUnset(headers)) { + // endpoint is setted in product client + request_.headers = Object.assign(Object.assign(Object.assign({ host: this._endpoint, 'x-acs-version': version, 'x-acs-action': action, 'user-agent': this.getUserAgent() }, globalHeaders), extendsHeaders), request.headers); + } + else { + request_.headers = Object.assign(Object.assign(Object.assign(Object.assign({ host: this._endpoint, 'x-acs-version': version, 'x-acs-action': action, 'user-agent': this.getUserAgent() }, globalHeaders), extendsHeaders), request.headers), headers); + } + if (!tea_util_1.default.isUnset(request.body)) { + let m = tea_util_1.default.assertAsMap(request.body); + let tmp = tea_util_1.default.anyifyMapValue(openapi_util_1.default.query(m)); + request_.body = new $tea.BytesReadable(tea_util_1.default.toFormString(tmp)); + request_.headers["content-type"] = "application/x-www-form-urlencoded"; + } + if (!tea_util_1.default.equalString(authType, "Anonymous")) { + if (tea_util_1.default.isUnset(this._credential)) { + throw $tea.newError({ + code: `InvalidCredentials`, + message: `Please set up the credentials correctly. If you are setting them through environment variables, please ensure that ALIBABA_CLOUD_ACCESS_KEY_ID and ALIBABA_CLOUD_ACCESS_KEY_SECRET are set correctly. See https://help.aliyun.com/zh/sdk/developer-reference/configure-the-alibaba-cloud-accesskey-environment-variable-on-linux-macos-and-windows-systems for more details.`, + }); + } + let credentialModel = await this._credential.getCredential(); + if (!tea_util_1.default.empty(credentialModel.providerName)) { + request_.headers["x-acs-credentials-provider"] = credentialModel.providerName; + } + let credentialType = credentialModel.type; + if (tea_util_1.default.equalString(credentialType, "bearer")) { + let bearerToken = credentialModel.bearerToken; + request_.query["BearerToken"] = bearerToken; + request_.query["SignatureType"] = "BEARERTOKEN"; + } + else if (tea_util_1.default.equalString(credentialType, "id_token")) { + let idToken = credentialModel.securityToken; + request_.headers["x-acs-zero-trust-idtoken"] = idToken; + } + else { + let accessKeyId = credentialModel.accessKeyId; + let accessKeySecret = credentialModel.accessKeySecret; + let securityToken = credentialModel.securityToken; + if (!tea_util_1.default.empty(securityToken)) { + request_.query["SecurityToken"] = securityToken; + } + request_.query["SignatureMethod"] = "HMAC-SHA1"; + request_.query["SignatureVersion"] = "1.0"; + request_.query["AccessKeyId"] = accessKeyId; + let t = null; + if (!tea_util_1.default.isUnset(request.body)) { + t = tea_util_1.default.assertAsMap(request.body); + } + let signedParam = Object.assign(Object.assign({}, request_.query), openapi_util_1.default.query(t)); + request_.query["Signature"] = openapi_util_1.default.getRPCSignature(signedParam, request_.method, accessKeySecret); + } + } + _lastRequest = request_; + let response_ = await $tea.doAction(request_, _runtime); + if (tea_util_1.default.is4xx(response_.statusCode) || tea_util_1.default.is5xx(response_.statusCode)) { + let _res = await tea_util_1.default.readAsJSON(response_.body); + let err = tea_util_1.default.assertAsMap(_res); + let requestId = Client.defaultAny(err["RequestId"], err["requestId"]); + err["statusCode"] = response_.statusCode; + throw $tea.newError({ + code: `${Client.defaultAny(err["Code"], err["code"])}`, + message: `code: ${response_.statusCode}, ${Client.defaultAny(err["Message"], err["message"])} request id: ${requestId}`, + data: err, + description: `${Client.defaultAny(err["Description"], err["description"])}`, + accessDeniedDetail: Client.defaultAny(err["AccessDeniedDetail"], err["accessDeniedDetail"]), + }); + } + if (tea_util_1.default.equalString(bodyType, "binary")) { + let resp = { + body: response_.body, + headers: response_.headers, + statusCode: response_.statusCode, + }; + return resp; + } + else if (tea_util_1.default.equalString(bodyType, "byte")) { + let byt = await tea_util_1.default.readAsBytes(response_.body); + return { + body: byt, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + else if (tea_util_1.default.equalString(bodyType, "string")) { + let str = await tea_util_1.default.readAsString(response_.body); + return { + body: str, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + else if (tea_util_1.default.equalString(bodyType, "json")) { + let obj = await tea_util_1.default.readAsJSON(response_.body); + let res = tea_util_1.default.assertAsMap(obj); + return { + body: res, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + else if (tea_util_1.default.equalString(bodyType, "array")) { + let arr = await tea_util_1.default.readAsJSON(response_.body); + return { + body: arr, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + else { + return { + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + } + catch (ex) { + if ($tea.isRetryable(ex)) { + continue; + } + throw ex; + } + } + throw $tea.newUnretryableError(_lastRequest); + } + /** + * @remarks + * Encapsulate the request and invoke the network + * + * @param action - api name + * @param version - product version + * @param protocol - http or https + * @param method - e.g. GET + * @param authType - authorization type e.g. AK + * @param pathname - pathname of every api + * @param bodyType - response body type e.g. String + * @param request - object of OpenApiRequest + * @param runtime - which controls some details of call api, such as retry times + * @returns the response + */ + async doROARequest(action, version, protocol, method, authType, pathname, bodyType, request, runtime) { + let _runtime = { + timeouted: "retry", + key: tea_util_1.default.defaultString(runtime.key, this._key), + cert: tea_util_1.default.defaultString(runtime.cert, this._cert), + ca: tea_util_1.default.defaultString(runtime.ca, this._ca), + readTimeout: tea_util_1.default.defaultNumber(runtime.readTimeout, this._readTimeout), + connectTimeout: tea_util_1.default.defaultNumber(runtime.connectTimeout, this._connectTimeout), + httpProxy: tea_util_1.default.defaultString(runtime.httpProxy, this._httpProxy), + httpsProxy: tea_util_1.default.defaultString(runtime.httpsProxy, this._httpsProxy), + noProxy: tea_util_1.default.defaultString(runtime.noProxy, this._noProxy), + socks5Proxy: tea_util_1.default.defaultString(runtime.socks5Proxy, this._socks5Proxy), + socks5NetWork: tea_util_1.default.defaultString(runtime.socks5NetWork, this._socks5NetWork), + maxIdleConns: tea_util_1.default.defaultNumber(runtime.maxIdleConns, this._maxIdleConns), + retry: { + retryable: runtime.autoretry, + maxAttempts: tea_util_1.default.defaultNumber(runtime.maxAttempts, 3), + }, + backoff: { + policy: tea_util_1.default.defaultString(runtime.backoffPolicy, "no"), + period: tea_util_1.default.defaultNumber(runtime.backoffPeriod, 1), + }, + ignoreSSL: runtime.ignoreSSL, + tlsMinVersion: this._tlsMinVersion, + }; + let _lastRequest = null; + let _now = Date.now(); + let _retryTimes = 0; + while ($tea.allowRetry(_runtime['retry'], _retryTimes, _now)) { + if (_retryTimes > 0) { + let _backoffTime = $tea.getBackoffTime(_runtime['backoff'], _retryTimes); + if (_backoffTime > 0) { + await $tea.sleep(_backoffTime); + } + } + _retryTimes = _retryTimes + 1; + try { + let request_ = new $tea.Request(); + request_.protocol = tea_util_1.default.defaultString(this._protocol, protocol); + request_.method = method; + request_.pathname = pathname; + let globalQueries = {}; + let globalHeaders = {}; + if (!tea_util_1.default.isUnset(this._globalParameters)) { + let globalParams = this._globalParameters; + if (!tea_util_1.default.isUnset(globalParams.queries)) { + globalQueries = globalParams.queries; + } + if (!tea_util_1.default.isUnset(globalParams.headers)) { + globalHeaders = globalParams.headers; + } + } + let extendsHeaders = {}; + let extendsQueries = {}; + if (!tea_util_1.default.isUnset(runtime.extendsParameters)) { + let extendsParameters = runtime.extendsParameters; + if (!tea_util_1.default.isUnset(extendsParameters.headers)) { + extendsHeaders = extendsParameters.headers; + } + if (!tea_util_1.default.isUnset(extendsParameters.queries)) { + extendsQueries = extendsParameters.queries; + } + } + request_.headers = Object.assign(Object.assign(Object.assign({ date: tea_util_1.default.getDateUTCString(), host: this._endpoint, accept: "application/json", 'x-acs-signature-nonce': tea_util_1.default.getNonce(), 'x-acs-signature-method': "HMAC-SHA1", 'x-acs-signature-version': "1.0", 'x-acs-version': version, 'x-acs-action': action, 'user-agent': tea_util_1.default.getUserAgent(this._userAgent) }, globalHeaders), extendsHeaders), request.headers); + if (!tea_util_1.default.isUnset(request.body)) { + request_.body = new $tea.BytesReadable(tea_util_1.default.toJSONString(request.body)); + request_.headers["content-type"] = "application/json; charset=utf-8"; + } + request_.query = Object.assign(Object.assign({}, globalQueries), extendsQueries); + if (!tea_util_1.default.isUnset(request.query)) { + request_.query = Object.assign(Object.assign({}, request_.query), request.query); + } + if (!tea_util_1.default.equalString(authType, "Anonymous")) { + if (tea_util_1.default.isUnset(this._credential)) { + throw $tea.newError({ + code: `InvalidCredentials`, + message: `Please set up the credentials correctly. If you are setting them through environment variables, please ensure that ALIBABA_CLOUD_ACCESS_KEY_ID and ALIBABA_CLOUD_ACCESS_KEY_SECRET are set correctly. See https://help.aliyun.com/zh/sdk/developer-reference/configure-the-alibaba-cloud-accesskey-environment-variable-on-linux-macos-and-windows-systems for more details.`, + }); + } + let credentialModel = await this._credential.getCredential(); + if (!tea_util_1.default.empty(credentialModel.providerName)) { + request_.headers["x-acs-credentials-provider"] = credentialModel.providerName; + } + let credentialType = credentialModel.type; + if (tea_util_1.default.equalString(credentialType, "bearer")) { + let bearerToken = credentialModel.bearerToken; + request_.headers["x-acs-bearer-token"] = bearerToken; + request_.headers["x-acs-signature-type"] = "BEARERTOKEN"; + } + else if (tea_util_1.default.equalString(credentialType, "id_token")) { + let idToken = credentialModel.securityToken; + request_.headers["x-acs-zero-trust-idtoken"] = idToken; + } + else { + let accessKeyId = credentialModel.accessKeyId; + let accessKeySecret = credentialModel.accessKeySecret; + let securityToken = credentialModel.securityToken; + if (!tea_util_1.default.empty(securityToken)) { + request_.headers["x-acs-accesskey-id"] = accessKeyId; + request_.headers["x-acs-security-token"] = securityToken; + } + let stringToSign = openapi_util_1.default.getStringToSign(request_); + request_.headers["authorization"] = `acs ${accessKeyId}:${openapi_util_1.default.getROASignature(stringToSign, accessKeySecret)}`; + } + } + _lastRequest = request_; + let response_ = await $tea.doAction(request_, _runtime); + if (tea_util_1.default.equalNumber(response_.statusCode, 204)) { + return { + headers: response_.headers, + }; + } + if (tea_util_1.default.is4xx(response_.statusCode) || tea_util_1.default.is5xx(response_.statusCode)) { + let _res = await tea_util_1.default.readAsJSON(response_.body); + let err = tea_util_1.default.assertAsMap(_res); + let requestId = Client.defaultAny(err["RequestId"], err["requestId"]); + requestId = Client.defaultAny(requestId, err["requestid"]); + err["statusCode"] = response_.statusCode; + throw $tea.newError({ + code: `${Client.defaultAny(err["Code"], err["code"])}`, + message: `code: ${response_.statusCode}, ${Client.defaultAny(err["Message"], err["message"])} request id: ${requestId}`, + data: err, + description: `${Client.defaultAny(err["Description"], err["description"])}`, + accessDeniedDetail: Client.defaultAny(err["AccessDeniedDetail"], err["accessDeniedDetail"]), + }); + } + if (tea_util_1.default.equalString(bodyType, "binary")) { + let resp = { + body: response_.body, + headers: response_.headers, + statusCode: response_.statusCode, + }; + return resp; + } + else if (tea_util_1.default.equalString(bodyType, "byte")) { + let byt = await tea_util_1.default.readAsBytes(response_.body); + return { + body: byt, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + else if (tea_util_1.default.equalString(bodyType, "string")) { + let str = await tea_util_1.default.readAsString(response_.body); + return { + body: str, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + else if (tea_util_1.default.equalString(bodyType, "json")) { + let obj = await tea_util_1.default.readAsJSON(response_.body); + let res = tea_util_1.default.assertAsMap(obj); + return { + body: res, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + else if (tea_util_1.default.equalString(bodyType, "array")) { + let arr = await tea_util_1.default.readAsJSON(response_.body); + return { + body: arr, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + else { + return { + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + } + catch (ex) { + if ($tea.isRetryable(ex)) { + continue; + } + throw ex; + } + } + throw $tea.newUnretryableError(_lastRequest); + } + /** + * @remarks + * Encapsulate the request and invoke the network with form body + * + * @param action - api name + * @param version - product version + * @param protocol - http or https + * @param method - e.g. GET + * @param authType - authorization type e.g. AK + * @param pathname - pathname of every api + * @param bodyType - response body type e.g. String + * @param request - object of OpenApiRequest + * @param runtime - which controls some details of call api, such as retry times + * @returns the response + */ + async doROARequestWithForm(action, version, protocol, method, authType, pathname, bodyType, request, runtime) { + let _runtime = { + timeouted: "retry", + key: tea_util_1.default.defaultString(runtime.key, this._key), + cert: tea_util_1.default.defaultString(runtime.cert, this._cert), + ca: tea_util_1.default.defaultString(runtime.ca, this._ca), + readTimeout: tea_util_1.default.defaultNumber(runtime.readTimeout, this._readTimeout), + connectTimeout: tea_util_1.default.defaultNumber(runtime.connectTimeout, this._connectTimeout), + httpProxy: tea_util_1.default.defaultString(runtime.httpProxy, this._httpProxy), + httpsProxy: tea_util_1.default.defaultString(runtime.httpsProxy, this._httpsProxy), + noProxy: tea_util_1.default.defaultString(runtime.noProxy, this._noProxy), + socks5Proxy: tea_util_1.default.defaultString(runtime.socks5Proxy, this._socks5Proxy), + socks5NetWork: tea_util_1.default.defaultString(runtime.socks5NetWork, this._socks5NetWork), + maxIdleConns: tea_util_1.default.defaultNumber(runtime.maxIdleConns, this._maxIdleConns), + retry: { + retryable: runtime.autoretry, + maxAttempts: tea_util_1.default.defaultNumber(runtime.maxAttempts, 3), + }, + backoff: { + policy: tea_util_1.default.defaultString(runtime.backoffPolicy, "no"), + period: tea_util_1.default.defaultNumber(runtime.backoffPeriod, 1), + }, + ignoreSSL: runtime.ignoreSSL, + tlsMinVersion: this._tlsMinVersion, + }; + let _lastRequest = null; + let _now = Date.now(); + let _retryTimes = 0; + while ($tea.allowRetry(_runtime['retry'], _retryTimes, _now)) { + if (_retryTimes > 0) { + let _backoffTime = $tea.getBackoffTime(_runtime['backoff'], _retryTimes); + if (_backoffTime > 0) { + await $tea.sleep(_backoffTime); + } + } + _retryTimes = _retryTimes + 1; + try { + let request_ = new $tea.Request(); + request_.protocol = tea_util_1.default.defaultString(this._protocol, protocol); + request_.method = method; + request_.pathname = pathname; + let globalQueries = {}; + let globalHeaders = {}; + if (!tea_util_1.default.isUnset(this._globalParameters)) { + let globalParams = this._globalParameters; + if (!tea_util_1.default.isUnset(globalParams.queries)) { + globalQueries = globalParams.queries; + } + if (!tea_util_1.default.isUnset(globalParams.headers)) { + globalHeaders = globalParams.headers; + } + } + let extendsHeaders = {}; + let extendsQueries = {}; + if (!tea_util_1.default.isUnset(runtime.extendsParameters)) { + let extendsParameters = runtime.extendsParameters; + if (!tea_util_1.default.isUnset(extendsParameters.headers)) { + extendsHeaders = extendsParameters.headers; + } + if (!tea_util_1.default.isUnset(extendsParameters.queries)) { + extendsQueries = extendsParameters.queries; + } + } + request_.headers = Object.assign(Object.assign(Object.assign({ date: tea_util_1.default.getDateUTCString(), host: this._endpoint, accept: "application/json", 'x-acs-signature-nonce': tea_util_1.default.getNonce(), 'x-acs-signature-method': "HMAC-SHA1", 'x-acs-signature-version': "1.0", 'x-acs-version': version, 'x-acs-action': action, 'user-agent': tea_util_1.default.getUserAgent(this._userAgent) }, globalHeaders), extendsHeaders), request.headers); + if (!tea_util_1.default.isUnset(request.body)) { + let m = tea_util_1.default.assertAsMap(request.body); + request_.body = new $tea.BytesReadable(openapi_util_1.default.toForm(m)); + request_.headers["content-type"] = "application/x-www-form-urlencoded"; + } + request_.query = Object.assign(Object.assign({}, globalQueries), extendsQueries); + if (!tea_util_1.default.isUnset(request.query)) { + request_.query = Object.assign(Object.assign({}, request_.query), request.query); + } + if (!tea_util_1.default.equalString(authType, "Anonymous")) { + if (tea_util_1.default.isUnset(this._credential)) { + throw $tea.newError({ + code: `InvalidCredentials`, + message: `Please set up the credentials correctly. If you are setting them through environment variables, please ensure that ALIBABA_CLOUD_ACCESS_KEY_ID and ALIBABA_CLOUD_ACCESS_KEY_SECRET are set correctly. See https://help.aliyun.com/zh/sdk/developer-reference/configure-the-alibaba-cloud-accesskey-environment-variable-on-linux-macos-and-windows-systems for more details.`, + }); + } + let credentialModel = await this._credential.getCredential(); + if (!tea_util_1.default.empty(credentialModel.providerName)) { + request_.headers["x-acs-credentials-provider"] = credentialModel.providerName; + } + let credentialType = credentialModel.type; + if (tea_util_1.default.equalString(credentialType, "bearer")) { + let bearerToken = credentialModel.bearerToken; + request_.headers["x-acs-bearer-token"] = bearerToken; + request_.headers["x-acs-signature-type"] = "BEARERTOKEN"; + } + else if (tea_util_1.default.equalString(credentialType, "id_token")) { + let idToken = credentialModel.securityToken; + request_.headers["x-acs-zero-trust-idtoken"] = idToken; + } + else { + let accessKeyId = credentialModel.accessKeyId; + let accessKeySecret = credentialModel.accessKeySecret; + let securityToken = credentialModel.securityToken; + if (!tea_util_1.default.empty(securityToken)) { + request_.headers["x-acs-accesskey-id"] = accessKeyId; + request_.headers["x-acs-security-token"] = securityToken; + } + let stringToSign = openapi_util_1.default.getStringToSign(request_); + request_.headers["authorization"] = `acs ${accessKeyId}:${openapi_util_1.default.getROASignature(stringToSign, accessKeySecret)}`; + } + } + _lastRequest = request_; + let response_ = await $tea.doAction(request_, _runtime); + if (tea_util_1.default.equalNumber(response_.statusCode, 204)) { + return { + headers: response_.headers, + }; + } + if (tea_util_1.default.is4xx(response_.statusCode) || tea_util_1.default.is5xx(response_.statusCode)) { + let _res = await tea_util_1.default.readAsJSON(response_.body); + let err = tea_util_1.default.assertAsMap(_res); + err["statusCode"] = response_.statusCode; + throw $tea.newError({ + code: `${Client.defaultAny(err["Code"], err["code"])}`, + message: `code: ${response_.statusCode}, ${Client.defaultAny(err["Message"], err["message"])} request id: ${Client.defaultAny(err["RequestId"], err["requestId"])}`, + data: err, + description: `${Client.defaultAny(err["Description"], err["description"])}`, + accessDeniedDetail: Client.defaultAny(err["AccessDeniedDetail"], err["accessDeniedDetail"]), + }); + } + if (tea_util_1.default.equalString(bodyType, "binary")) { + let resp = { + body: response_.body, + headers: response_.headers, + statusCode: response_.statusCode, + }; + return resp; + } + else if (tea_util_1.default.equalString(bodyType, "byte")) { + let byt = await tea_util_1.default.readAsBytes(response_.body); + return { + body: byt, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + else if (tea_util_1.default.equalString(bodyType, "string")) { + let str = await tea_util_1.default.readAsString(response_.body); + return { + body: str, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + else if (tea_util_1.default.equalString(bodyType, "json")) { + let obj = await tea_util_1.default.readAsJSON(response_.body); + let res = tea_util_1.default.assertAsMap(obj); + return { + body: res, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + else if (tea_util_1.default.equalString(bodyType, "array")) { + let arr = await tea_util_1.default.readAsJSON(response_.body); + return { + body: arr, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + else { + return { + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + } + catch (ex) { + if ($tea.isRetryable(ex)) { + continue; + } + throw ex; + } + } + throw $tea.newUnretryableError(_lastRequest); + } + /** + * @remarks + * Encapsulate the request and invoke the network + * + * @param action - api name + * @param version - product version + * @param protocol - http or https + * @param method - e.g. GET + * @param authType - authorization type e.g. AK + * @param bodyType - response body type e.g. String + * @param request - object of OpenApiRequest + * @param runtime - which controls some details of call api, such as retry times + * @returns the response + */ + async doRequest(params, request, runtime) { + let _runtime = { + timeouted: "retry", + key: tea_util_1.default.defaultString(runtime.key, this._key), + cert: tea_util_1.default.defaultString(runtime.cert, this._cert), + ca: tea_util_1.default.defaultString(runtime.ca, this._ca), + readTimeout: tea_util_1.default.defaultNumber(runtime.readTimeout, this._readTimeout), + connectTimeout: tea_util_1.default.defaultNumber(runtime.connectTimeout, this._connectTimeout), + httpProxy: tea_util_1.default.defaultString(runtime.httpProxy, this._httpProxy), + httpsProxy: tea_util_1.default.defaultString(runtime.httpsProxy, this._httpsProxy), + noProxy: tea_util_1.default.defaultString(runtime.noProxy, this._noProxy), + socks5Proxy: tea_util_1.default.defaultString(runtime.socks5Proxy, this._socks5Proxy), + socks5NetWork: tea_util_1.default.defaultString(runtime.socks5NetWork, this._socks5NetWork), + maxIdleConns: tea_util_1.default.defaultNumber(runtime.maxIdleConns, this._maxIdleConns), + retry: { + retryable: runtime.autoretry, + maxAttempts: tea_util_1.default.defaultNumber(runtime.maxAttempts, 3), + }, + backoff: { + policy: tea_util_1.default.defaultString(runtime.backoffPolicy, "no"), + period: tea_util_1.default.defaultNumber(runtime.backoffPeriod, 1), + }, + ignoreSSL: runtime.ignoreSSL, + tlsMinVersion: this._tlsMinVersion, + }; + let _lastRequest = null; + let _now = Date.now(); + let _retryTimes = 0; + while ($tea.allowRetry(_runtime['retry'], _retryTimes, _now)) { + if (_retryTimes > 0) { + let _backoffTime = $tea.getBackoffTime(_runtime['backoff'], _retryTimes); + if (_backoffTime > 0) { + await $tea.sleep(_backoffTime); + } + } + _retryTimes = _retryTimes + 1; + try { + let request_ = new $tea.Request(); + request_.protocol = tea_util_1.default.defaultString(this._protocol, params.protocol); + request_.method = params.method; + request_.pathname = params.pathname; + let globalQueries = {}; + let globalHeaders = {}; + if (!tea_util_1.default.isUnset(this._globalParameters)) { + let globalParams = this._globalParameters; + if (!tea_util_1.default.isUnset(globalParams.queries)) { + globalQueries = globalParams.queries; + } + if (!tea_util_1.default.isUnset(globalParams.headers)) { + globalHeaders = globalParams.headers; + } + } + let extendsHeaders = {}; + let extendsQueries = {}; + if (!tea_util_1.default.isUnset(runtime.extendsParameters)) { + let extendsParameters = runtime.extendsParameters; + if (!tea_util_1.default.isUnset(extendsParameters.headers)) { + extendsHeaders = extendsParameters.headers; + } + if (!tea_util_1.default.isUnset(extendsParameters.queries)) { + extendsQueries = extendsParameters.queries; + } + } + request_.query = Object.assign(Object.assign(Object.assign({}, globalQueries), extendsQueries), request.query); + // endpoint is setted in product client + request_.headers = Object.assign(Object.assign(Object.assign({ host: this._endpoint, 'x-acs-version': params.version, 'x-acs-action': params.action, 'user-agent': this.getUserAgent(), 'x-acs-date': openapi_util_1.default.getTimestamp(), 'x-acs-signature-nonce': tea_util_1.default.getNonce(), accept: "application/json" }, globalHeaders), extendsHeaders), request.headers); + if (tea_util_1.default.equalString(params.style, "RPC")) { + let headers = this.getRpcHeaders(); + if (!tea_util_1.default.isUnset(headers)) { + request_.headers = Object.assign(Object.assign({}, request_.headers), headers); + } + } + let signatureAlgorithm = tea_util_1.default.defaultString(this._signatureAlgorithm, "ACS3-HMAC-SHA256"); + let hashedRequestPayload = openapi_util_1.default.hexEncode(openapi_util_1.default.hash(tea_util_1.default.toBytes(""), signatureAlgorithm)); + if (!tea_util_1.default.isUnset(request.stream)) { + let tmp = await tea_util_1.default.readAsBytes(request.stream); + hashedRequestPayload = openapi_util_1.default.hexEncode(openapi_util_1.default.hash(tmp, signatureAlgorithm)); + request_.body = new $tea.BytesReadable(tmp); + request_.headers["content-type"] = "application/octet-stream"; + } + else { + if (!tea_util_1.default.isUnset(request.body)) { + if (tea_util_1.default.equalString(params.reqBodyType, "byte")) { + let byteObj = tea_util_1.default.assertAsBytes(request.body); + hashedRequestPayload = openapi_util_1.default.hexEncode(openapi_util_1.default.hash(byteObj, signatureAlgorithm)); + request_.body = new $tea.BytesReadable(byteObj); + } + else if (tea_util_1.default.equalString(params.reqBodyType, "json")) { + let jsonObj = tea_util_1.default.toJSONString(request.body); + hashedRequestPayload = openapi_util_1.default.hexEncode(openapi_util_1.default.hash(tea_util_1.default.toBytes(jsonObj), signatureAlgorithm)); + request_.body = new $tea.BytesReadable(jsonObj); + request_.headers["content-type"] = "application/json; charset=utf-8"; + } + else { + let m = tea_util_1.default.assertAsMap(request.body); + let formObj = openapi_util_1.default.toForm(m); + hashedRequestPayload = openapi_util_1.default.hexEncode(openapi_util_1.default.hash(tea_util_1.default.toBytes(formObj), signatureAlgorithm)); + request_.body = new $tea.BytesReadable(formObj); + request_.headers["content-type"] = "application/x-www-form-urlencoded"; + } + } + } + request_.headers["x-acs-content-sha256"] = hashedRequestPayload; + if (!tea_util_1.default.equalString(params.authType, "Anonymous")) { + if (tea_util_1.default.isUnset(this._credential)) { + throw $tea.newError({ + code: `InvalidCredentials`, + message: `Please set up the credentials correctly. If you are setting them through environment variables, please ensure that ALIBABA_CLOUD_ACCESS_KEY_ID and ALIBABA_CLOUD_ACCESS_KEY_SECRET are set correctly. See https://help.aliyun.com/zh/sdk/developer-reference/configure-the-alibaba-cloud-accesskey-environment-variable-on-linux-macos-and-windows-systems for more details.`, + }); + } + let credentialModel = await this._credential.getCredential(); + if (!tea_util_1.default.empty(credentialModel.providerName)) { + request_.headers["x-acs-credentials-provider"] = credentialModel.providerName; + } + let authType = credentialModel.type; + if (tea_util_1.default.equalString(authType, "bearer")) { + let bearerToken = credentialModel.bearerToken; + request_.headers["x-acs-bearer-token"] = bearerToken; + if (tea_util_1.default.equalString(params.style, "RPC")) { + request_.query["SignatureType"] = "BEARERTOKEN"; + } + else { + request_.headers["x-acs-signature-type"] = "BEARERTOKEN"; + } + } + else if (tea_util_1.default.equalString(authType, "id_token")) { + let idToken = credentialModel.securityToken; + request_.headers["x-acs-zero-trust-idtoken"] = idToken; + } + else { + let accessKeyId = credentialModel.accessKeyId; + let accessKeySecret = credentialModel.accessKeySecret; + let securityToken = credentialModel.securityToken; + if (!tea_util_1.default.empty(securityToken)) { + request_.headers["x-acs-accesskey-id"] = accessKeyId; + request_.headers["x-acs-security-token"] = securityToken; + } + request_.headers["Authorization"] = openapi_util_1.default.getAuthorization(request_, signatureAlgorithm, hashedRequestPayload, accessKeyId, accessKeySecret); + } + } + _lastRequest = request_; + let response_ = await $tea.doAction(request_, _runtime); + if (tea_util_1.default.is4xx(response_.statusCode) || tea_util_1.default.is5xx(response_.statusCode)) { + let err = {}; + if (!tea_util_1.default.isUnset(response_.headers["content-type"]) && tea_util_1.default.equalString(response_.headers["content-type"], "text/xml;charset=utf-8")) { + let _str = await tea_util_1.default.readAsString(response_.body); + let respMap = tea_xml_1.default.parseXml(_str, null); + err = tea_util_1.default.assertAsMap(respMap["Error"]); + } + else { + let _res = await tea_util_1.default.readAsJSON(response_.body); + err = tea_util_1.default.assertAsMap(_res); + } + err["statusCode"] = response_.statusCode; + throw $tea.newError({ + code: `${Client.defaultAny(err["Code"], err["code"])}`, + message: `code: ${response_.statusCode}, ${Client.defaultAny(err["Message"], err["message"])} request id: ${Client.defaultAny(err["RequestId"], err["requestId"])}`, + data: err, + description: `${Client.defaultAny(err["Description"], err["description"])}`, + accessDeniedDetail: Client.defaultAny(err["AccessDeniedDetail"], err["accessDeniedDetail"]), + }); + } + if (tea_util_1.default.equalString(params.bodyType, "binary")) { + let resp = { + body: response_.body, + headers: response_.headers, + statusCode: response_.statusCode, + }; + return resp; + } + else if (tea_util_1.default.equalString(params.bodyType, "byte")) { + let byt = await tea_util_1.default.readAsBytes(response_.body); + return { + body: byt, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + else if (tea_util_1.default.equalString(params.bodyType, "string")) { + let str = await tea_util_1.default.readAsString(response_.body); + return { + body: str, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + else if (tea_util_1.default.equalString(params.bodyType, "json")) { + let obj = await tea_util_1.default.readAsJSON(response_.body); + let res = tea_util_1.default.assertAsMap(obj); + return { + body: res, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + else if (tea_util_1.default.equalString(params.bodyType, "array")) { + let arr = await tea_util_1.default.readAsJSON(response_.body); + return { + body: arr, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + else { + let anything = await tea_util_1.default.readAsString(response_.body); + return { + body: anything, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + } + catch (ex) { + if ($tea.isRetryable(ex)) { + continue; + } + throw ex; + } + } + throw $tea.newUnretryableError(_lastRequest); + } + /** + * @remarks + * Encapsulate the request and invoke the network + * + * @param action - api name + * @param version - product version + * @param protocol - http or https + * @param method - e.g. GET + * @param authType - authorization type e.g. AK + * @param bodyType - response body type e.g. String + * @param request - object of OpenApiRequest + * @param runtime - which controls some details of call api, such as retry times + * @returns the response + */ + async execute(params, request, runtime) { + let _runtime = { + timeouted: "retry", + key: tea_util_1.default.defaultString(runtime.key, this._key), + cert: tea_util_1.default.defaultString(runtime.cert, this._cert), + ca: tea_util_1.default.defaultString(runtime.ca, this._ca), + readTimeout: tea_util_1.default.defaultNumber(runtime.readTimeout, this._readTimeout), + connectTimeout: tea_util_1.default.defaultNumber(runtime.connectTimeout, this._connectTimeout), + httpProxy: tea_util_1.default.defaultString(runtime.httpProxy, this._httpProxy), + httpsProxy: tea_util_1.default.defaultString(runtime.httpsProxy, this._httpsProxy), + noProxy: tea_util_1.default.defaultString(runtime.noProxy, this._noProxy), + socks5Proxy: tea_util_1.default.defaultString(runtime.socks5Proxy, this._socks5Proxy), + socks5NetWork: tea_util_1.default.defaultString(runtime.socks5NetWork, this._socks5NetWork), + maxIdleConns: tea_util_1.default.defaultNumber(runtime.maxIdleConns, this._maxIdleConns), + retry: { + retryable: runtime.autoretry, + maxAttempts: tea_util_1.default.defaultNumber(runtime.maxAttempts, 3), + }, + backoff: { + policy: tea_util_1.default.defaultString(runtime.backoffPolicy, "no"), + period: tea_util_1.default.defaultNumber(runtime.backoffPeriod, 1), + }, + ignoreSSL: runtime.ignoreSSL, + disableHttp2: Client.defaultAny(this._disableHttp2, false), + tlsMinVersion: this._tlsMinVersion, + }; + let _lastRequest = null; + let _now = Date.now(); + let _retryTimes = 0; + while ($tea.allowRetry(_runtime['retry'], _retryTimes, _now)) { + if (_retryTimes > 0) { + let _backoffTime = $tea.getBackoffTime(_runtime['backoff'], _retryTimes); + if (_backoffTime > 0) { + await $tea.sleep(_backoffTime); + } + } + _retryTimes = _retryTimes + 1; + try { + let request_ = new $tea.Request(); + // spi = new Gateway();//Gateway implements SPI,这一步在产品 SDK 中实例化 + let headers = this.getRpcHeaders(); + let globalQueries = {}; + let globalHeaders = {}; + if (!tea_util_1.default.isUnset(this._globalParameters)) { + let globalParams = this._globalParameters; + if (!tea_util_1.default.isUnset(globalParams.queries)) { + globalQueries = globalParams.queries; + } + if (!tea_util_1.default.isUnset(globalParams.headers)) { + globalHeaders = globalParams.headers; + } + } + let extendsHeaders = {}; + let extendsQueries = {}; + if (!tea_util_1.default.isUnset(runtime.extendsParameters)) { + let extendsParameters = runtime.extendsParameters; + if (!tea_util_1.default.isUnset(extendsParameters.headers)) { + extendsHeaders = extendsParameters.headers; + } + if (!tea_util_1.default.isUnset(extendsParameters.queries)) { + extendsQueries = extendsParameters.queries; + } + } + let requestContext = new $SPI.InterceptorContextRequest({ + headers: Object.assign(Object.assign(Object.assign(Object.assign({}, globalHeaders), extendsHeaders), request.headers), headers), + query: Object.assign(Object.assign(Object.assign({}, globalQueries), extendsQueries), request.query), + body: request.body, + stream: request.stream, + hostMap: request.hostMap, + pathname: params.pathname, + productId: this._productId, + action: params.action, + version: params.version, + protocol: tea_util_1.default.defaultString(this._protocol, params.protocol), + method: tea_util_1.default.defaultString(this._method, params.method), + authType: params.authType, + bodyType: params.bodyType, + reqBodyType: params.reqBodyType, + style: params.style, + credential: this._credential, + signatureVersion: this._signatureVersion, + signatureAlgorithm: this._signatureAlgorithm, + userAgent: this.getUserAgent(), + }); + let configurationContext = new $SPI.InterceptorContextConfiguration({ + regionId: this._regionId, + endpoint: tea_util_1.default.defaultString(request.endpointOverride, this._endpoint), + endpointRule: this._endpointRule, + endpointMap: this._endpointMap, + endpointType: this._endpointType, + network: this._network, + suffix: this._suffix, + }); + let interceptorContext = new $SPI.InterceptorContext({}); + interceptorContext.request = requestContext; + interceptorContext.configuration = configurationContext; + let attributeMap = new $SPI.AttributeMap({}); + if (!tea_util_1.default.isUnset(this._attributeMap)) { + attributeMap = this._attributeMap; + } + // 1. spi.modifyConfiguration(context: SPI.InterceptorContext, attributeMap: SPI.AttributeMap); + await this._spi.modifyConfiguration(interceptorContext, attributeMap); + // 2. spi.modifyRequest(context: SPI.InterceptorContext, attributeMap: SPI.AttributeMap); + await this._spi.modifyRequest(interceptorContext, attributeMap); + request_.protocol = interceptorContext.request.protocol; + request_.method = interceptorContext.request.method; + request_.pathname = interceptorContext.request.pathname; + request_.query = interceptorContext.request.query; + request_.body = interceptorContext.request.stream; + request_.headers = interceptorContext.request.headers; + _lastRequest = request_; + let response_ = await $tea.doAction(request_, _runtime); + let responseContext = new $SPI.InterceptorContextResponse({ + statusCode: response_.statusCode, + headers: response_.headers, + body: response_.body, + }); + interceptorContext.response = responseContext; + // 3. spi.modifyResponse(context: SPI.InterceptorContext, attributeMap: SPI.AttributeMap); + await this._spi.modifyResponse(interceptorContext, attributeMap); + return { + headers: interceptorContext.response.headers, + statusCode: interceptorContext.response.statusCode, + body: interceptorContext.response.deserializedBody, + }; + } + catch (ex) { + if ($tea.isRetryable(ex)) { + continue; + } + throw ex; + } + } + throw $tea.newUnretryableError(_lastRequest); + } + async callApi(params, request, runtime) { + if (tea_util_1.default.isUnset(params)) { + throw $tea.newError({ + code: "ParameterMissing", + message: "'params' can not be unset", + }); + } + if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) { + if (tea_util_1.default.isUnset(this._signatureAlgorithm) || !tea_util_1.default.equalString(this._signatureAlgorithm, "v2")) { + return await this.doRequest(params, request, runtime); + } + else if (tea_util_1.default.equalString(params.style, "ROA") && tea_util_1.default.equalString(params.reqBodyType, "json")) { + return await this.doROARequest(params.action, params.version, params.protocol, params.method, params.authType, params.pathname, params.bodyType, request, runtime); + } + else if (tea_util_1.default.equalString(params.style, "ROA")) { + return await this.doROARequestWithForm(params.action, params.version, params.protocol, params.method, params.authType, params.pathname, params.bodyType, request, runtime); + } + else { + return await this.doRPCRequest(params.action, params.version, params.protocol, params.method, params.authType, params.bodyType, request, runtime); + } + } + else { + return await this.execute(params, request, runtime); + } + } + /** + * @remarks + * Get user agent + * @returns user agent + */ + getUserAgent() { + let userAgent = tea_util_1.default.getUserAgent(this._userAgent); + return userAgent; + } + /** + * @remarks + * Get accesskey id by using credential + * @returns accesskey id + */ + async getAccessKeyId() { + if (tea_util_1.default.isUnset(this._credential)) { + return ""; + } + let accessKeyId = await this._credential.getAccessKeyId(); + return accessKeyId; + } + /** + * @remarks + * Get accesskey secret by using credential + * @returns accesskey secret + */ + async getAccessKeySecret() { + if (tea_util_1.default.isUnset(this._credential)) { + return ""; + } + let secret = await this._credential.getAccessKeySecret(); + return secret; + } + /** + * @remarks + * Get security token by using credential + * @returns security token + */ + async getSecurityToken() { + if (tea_util_1.default.isUnset(this._credential)) { + return ""; + } + let token = await this._credential.getSecurityToken(); + return token; + } + /** + * @remarks + * Get bearer token by credential + * @returns bearer token + */ + async getBearerToken() { + if (tea_util_1.default.isUnset(this._credential)) { + return ""; + } + let token = this._credential.getBearerToken(); + return token; + } + /** + * @remarks + * Get credential type by credential + * @returns credential type e.g. access_key + */ + async getType() { + if (tea_util_1.default.isUnset(this._credential)) { + return ""; + } + let authType = this._credential.getType(); + return authType; + } + /** + * @remarks + * If inputValue is not null, return it or return defaultValue + * + * @param inputValue - users input value + * @param defaultValue - default value + * @returns the final result + */ + static defaultAny(inputValue, defaultValue) { + if (tea_util_1.default.isUnset(inputValue)) { + return defaultValue; + } + return inputValue; + } + /** + * @remarks + * If the endpointRule and config.endpoint are empty, throw error + * + * @param config - config contains the necessary information to create a client + */ + checkConfig(config) { + if (tea_util_1.default.empty(this._endpointRule) && tea_util_1.default.empty(config.endpoint)) { + throw $tea.newError({ + code: "ParameterMissing", + message: "'config.endpoint' can not be empty", + }); + } + } + /** + * @remarks + * set gateway client + * + * @param spi - . + */ + setGatewayClient(spi) { + this._spi = spi; + } + /** + * @remarks + * set RPC header for debug + * + * @param headers - headers for debug, this header can be used only once. + */ + setRpcHeaders(headers) { + this._headers = headers; + } + /** + * @remarks + * get RPC header for debug + */ + getRpcHeaders() { + let headers = this._headers; + this._headers = null; + return headers; + } +} +exports.default = Client; +//# sourceMappingURL=client.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/openapi-client/dist/client.js.map b/backend/node_modules/@alicloud/openapi-client/dist/client.js.map new file mode 100644 index 0000000..3a8adc9 --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-client/dist/client.js.map @@ -0,0 +1 @@ +{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C;;;GAGG;AACH,kEAAkD;AAClD,kGAAiE;AACjE,0EAAiD;AACjD,4DAAmD;AACnD,gEAAoC;AAEpC,+DAAiD;AAEjD,MAAa,gBAAiB,SAAQ,IAAI,CAAC,KAAK;IAG9C,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;SACvE,CAAC;IACJ,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApBD,4CAoBC;AAED;;;GAGG;AACH,MAAa,MAAO,SAAQ,IAAI,CAAC,KAAK;IA8OpC,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;YAC1B,eAAe,EAAE,iBAAiB;YAClC,aAAa,EAAE,eAAe;YAC9B,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,UAAU;YACpB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,UAAU;YACpB,WAAW,EAAE,aAAa;YAC1B,cAAc,EAAE,gBAAgB;YAChC,SAAS,EAAE,WAAW;YACtB,UAAU,EAAE,YAA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ED,OAAO,UAAU,CAAC;IACpB,CAAC;IAED;;;;;OAKG;IACH,WAAW,CAAC,MAAc;QACxB,IAAI,kBAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,kBAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;YAClE,MAAM,IAAI,CAAC,QAAQ,CAAC;gBAClB,IAAI,EAAE,kBAAkB;gBACxB,OAAO,EAAE,oCAAoC;aAC9C,CAAC,CAAC;QACL,CAAC;IAEH,CAAC;IAED;;;;;OAKG;IACH,gBAAgB,CAAC,GAAQ;QACvB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;IAClB,CAAC;IAED;;;;;OAKG;IACH,aAAa,CAAC,OAAiC;QAC7C,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAC1B,CAAC;IAED;;;OAGG;IACH,aAAa;QACX,IAAI,OAAO,GAA8B,IAAI,CAAC,QAAQ,CAAC;QACvD,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,OAAO,OAAO,CAAC;IACjB,CAAC;CAEF;AA13CD,yBA03CC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/openapi-client/package.json b/backend/node_modules/@alicloud/openapi-client/package.json new file mode 100644 index 0000000..574825e --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-client/package.json @@ -0,0 +1,37 @@ +{ + "name": "@alicloud/openapi-client", + "version": "0.4.15", + "description": "", + "main": "dist/client.js", + "scripts": { + "test": "mocha -r ts-node/register -r source-map-support/register test/**/*.spec.ts --timeout=10000", + "test-cov": "nyc -e .ts -r=html -r=text -r=lcov npm run test", + "build": "tsc", + "prepublishOnly": "tsc" + }, + "author": "", + "license": "ISC", + "devDependencies": { + "@types/mocha": "^5.2.7", + "mocha": "^6.2.0", + "@types/node": "^18.0.0", + "nyc": "^15.0.0", + "source-map-support": "^0.5.16", + "ts-node": "^10.0.0", + "typescript": "^5.6.0", + "@alicloud/gateway-pop": "0.0.6" + }, + "dependencies": { + "@alicloud/tea-typescript": "^1.7.1", + "@alicloud/tea-util": "1.4.9", + "@alicloud/credentials": "^2.4.2", + "@alicloud/openapi-util": "^0.3.2", + "@alicloud/gateway-spi": "^0.0.8", + "@alicloud/tea-xml": "0.0.3" + }, + "files": [ + "dist", + "src" + ], + "repository": "git@github.com:aliyun/darabonba-openapi.git" +} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/openapi-client/src/client.ts b/backend/node_modules/@alicloud/openapi-client/src/client.ts new file mode 100644 index 0000000..51a9217 --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-client/src/client.ts @@ -0,0 +1,1835 @@ +// This file is auto-generated, don't edit it +/** + * @remarks + * This is for OpenApi SDK + */ +import Util, * as $Util from '@alicloud/tea-util'; +import Credential, * as $Credential from '@alicloud/credentials'; +import OpenApiUtil from '@alicloud/openapi-util'; +import SPI, * as $SPI from '@alicloud/gateway-spi'; +import XML from '@alicloud/tea-xml'; +import { Readable } from 'stream'; +import * as $tea from '@alicloud/tea-typescript'; + +export class GlobalParameters extends $tea.Model { + headers?: { [key: string]: string }; + queries?: { [key: string]: string }; + static names(): { [key: string]: string } { + return { + headers: 'headers', + queries: 'queries', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + queries: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + }; + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +/** + * @remarks + * Model for initing client + */ +export class Config extends $tea.Model { + /** + * @remarks + * accesskey id + */ + accessKeyId?: string; + /** + * @remarks + * accesskey secret + */ + accessKeySecret?: string; + /** + * @remarks + * security token + * + * @example + * a.txt + */ + securityToken?: string; + /** + * @remarks + * bearer token + * + * @example + * the-bearer-token + */ + bearerToken?: string; + /** + * @remarks + * http protocol + * + * @example + * http + */ + protocol?: string; + /** + * @remarks + * http method + * + * @example + * GET + */ + method?: string; + /** + * @remarks + * region id + * + * @example + * cn-hangzhou + */ + regionId?: string; + /** + * @remarks + * read timeout + * + * @example + * 10 + */ + readTimeout?: number; + /** + * @remarks + * connect timeout + * + * @example + * 10 + */ + connectTimeout?: number; + /** + * @remarks + * http proxy + * + * @example + * http://localhost + */ + httpProxy?: string; + /** + * @remarks + * https proxy + * + * @example + * https://localhost + */ + httpsProxy?: string; + /** + * @remarks + * credential + */ + credential?: Credential; + /** + * @remarks + * endpoint + * + * @example + * cs.aliyuncs.com + */ + endpoint?: string; + /** + * @remarks + * proxy white list + * + * @example + * http://localhost + */ + noProxy?: string; + /** + * @remarks + * max idle conns + * + * @example + * 3 + */ + maxIdleConns?: number; + /** + * @remarks + * network for endpoint + * + * @example + * public + */ + network?: string; + /** + * @remarks + * user agent + * + * @example + * Alibabacloud/1 + */ + userAgent?: string; + /** + * @remarks + * suffix for endpoint + * + * @example + * aliyun + */ + suffix?: string; + /** + * @remarks + * socks5 proxy + */ + socks5Proxy?: string; + /** + * @remarks + * socks5 network + * + * @example + * TCP + */ + socks5NetWork?: string; + /** + * @remarks + * endpoint type + * + * @example + * internal + */ + endpointType?: string; + /** + * @remarks + * OpenPlatform endpoint + * + * @example + * openplatform.aliyuncs.com + */ + openPlatformEndpoint?: string; + /** + * @remarks + * credential type + * + * @example + * access_key + * + * @deprecated + */ + type?: string; + /** + * @remarks + * Signature Version + * + * @example + * v1 + */ + signatureVersion?: string; + /** + * @remarks + * Signature Algorithm + * + * @example + * ACS3-HMAC-SHA256 + */ + signatureAlgorithm?: string; + /** + * @remarks + * Global Parameters + */ + globalParameters?: GlobalParameters; + /** + * @remarks + * privite key for client certificate + * + * @example + * MIIEvQ + */ + key?: string; + /** + * @remarks + * client certificate + * + * @example + * -----BEGIN CERTIFICATE----- + * xxx-----END CERTIFICATE----- + */ + cert?: string; + /** + * @remarks + * server certificate + * + * @example + * -----BEGIN CERTIFICATE----- + * xxx-----END CERTIFICATE----- + */ + ca?: string; + /** + * @remarks + * disable HTTP/2 + * + * @example + * false + */ + disableHttp2?: boolean; + /** + * @remarks + * TLS Minimum Version + * + * @example + * TLSv1, TLSv1.1, TLSv1.2, TLSv1.3 + */ + tlsMinVersion?: string; + static names(): { [key: string]: string } { + return { + accessKeyId: 'accessKeyId', + accessKeySecret: 'accessKeySecret', + securityToken: 'securityToken', + bearerToken: 'bearerToken', + protocol: 'protocol', + method: 'method', + regionId: 'regionId', + readTimeout: 'readTimeout', + connectTimeout: 'connectTimeout', + httpProxy: 'httpProxy', + httpsProxy: 'httpsProxy', + credential: 'credential', + endpoint: 'endpoint', + noProxy: 'noProxy', + maxIdleConns: 'maxIdleConns', + network: 'network', + userAgent: 'userAgent', + suffix: 'suffix', + socks5Proxy: 'socks5Proxy', + socks5NetWork: 'socks5NetWork', + endpointType: 'endpointType', + openPlatformEndpoint: 'openPlatformEndpoint', + type: 'type', + signatureVersion: 'signatureVersion', + signatureAlgorithm: 'signatureAlgorithm', + globalParameters: 'globalParameters', + key: 'key', + cert: 'cert', + ca: 'ca', + disableHttp2: 'disableHttp2', + tlsMinVersion: 'tlsMinVersion', + }; + } + + static types(): { [key: string]: any } { + return { + accessKeyId: 'string', + accessKeySecret: 'string', + securityToken: 'string', + bearerToken: 'string', + protocol: 'string', + method: 'string', + regionId: 'string', + readTimeout: 'number', + connectTimeout: 'number', + httpProxy: 'string', + httpsProxy: 'string', + credential: Credential, + endpoint: 'string', + noProxy: 'string', + maxIdleConns: 'number', + network: 'string', + userAgent: 'string', + suffix: 'string', + socks5Proxy: 'string', + socks5NetWork: 'string', + endpointType: 'string', + openPlatformEndpoint: 'string', + type: 'string', + signatureVersion: 'string', + signatureAlgorithm: 'string', + globalParameters: GlobalParameters, + key: 'string', + cert: 'string', + ca: 'string', + disableHttp2: 'boolean', + tlsMinVersion: 'string', + }; + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class OpenApiRequest extends $tea.Model { + headers?: { [key: string]: string }; + query?: { [key: string]: string }; + body?: any; + stream?: Readable; + hostMap?: { [key: string]: string }; + endpointOverride?: string; + static names(): { [key: string]: string } { + return { + headers: 'headers', + query: 'query', + body: 'body', + stream: 'stream', + hostMap: 'hostMap', + endpointOverride: 'endpointOverride', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + query: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + body: 'any', + stream: 'Readable', + hostMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + endpointOverride: 'string', + }; + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class Params extends $tea.Model { + action: string; + version: string; + protocol: string; + pathname: string; + method: string; + authType: string; + bodyType: string; + reqBodyType: string; + style?: string; + static names(): { [key: string]: string } { + return { + action: 'action', + version: 'version', + protocol: 'protocol', + pathname: 'pathname', + method: 'method', + authType: 'authType', + bodyType: 'bodyType', + reqBodyType: 'reqBodyType', + style: 'style', + }; + } + + static types(): { [key: string]: any } { + return { + action: 'string', + version: 'string', + protocol: 'string', + pathname: 'string', + method: 'string', + authType: 'string', + bodyType: 'string', + reqBodyType: 'string', + style: 'string', + }; + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + + +export default class Client { + _endpoint: string; + _regionId: string; + _protocol: string; + _method: string; + _userAgent: string; + _endpointRule: string; + _endpointMap: {[key: string ]: string}; + _suffix: string; + _readTimeout: number; + _connectTimeout: number; + _httpProxy: string; + _httpsProxy: string; + _socks5Proxy: string; + _socks5NetWork: string; + _noProxy: string; + _network: string; + _productId: string; + _maxIdleConns: number; + _endpointType: string; + _openPlatformEndpoint: string; + _credential: Credential; + _signatureVersion: string; + _signatureAlgorithm: string; + _headers: {[key: string ]: string}; + _spi: SPI; + _globalParameters: GlobalParameters; + _key: string; + _cert: string; + _ca: string; + _disableHttp2: boolean; + _tlsMinVersion: string; + _attributeMap: $SPI.AttributeMap; + + /** + * @remarks + * Init client with Config + * + * @param config - config contains the necessary information to create a client + */ + constructor(config: Config) { + if (Util.isUnset(config)) { + throw $tea.newError({ + code: "ParameterMissing", + message: "'config' can not be unset", + }); + } + + if (!Util.empty(config.accessKeyId) && !Util.empty(config.accessKeySecret)) { + if (!Util.empty(config.securityToken)) { + config.type = "sts"; + } else { + config.type = "access_key"; + } + + let credentialConfig = new $Credential.Config({ + accessKeyId: config.accessKeyId, + type: config.type, + accessKeySecret: config.accessKeySecret, + }); + credentialConfig.securityToken = config.securityToken; + this._credential = new Credential(credentialConfig); + } else if (!Util.empty(config.bearerToken)) { + let cc = new $Credential.Config({ + type: "bearer", + bearerToken: config.bearerToken, + }); + this._credential = new Credential(cc); + } else if (!Util.isUnset(config.credential)) { + this._credential = config.credential; + } + + this._endpoint = config.endpoint; + this._endpointType = config.endpointType; + this._network = config.network; + this._suffix = config.suffix; + this._protocol = config.protocol; + this._method = config.method; + this._regionId = config.regionId; + this._userAgent = config.userAgent; + this._readTimeout = config.readTimeout; + this._connectTimeout = config.connectTimeout; + this._httpProxy = config.httpProxy; + this._httpsProxy = config.httpsProxy; + this._noProxy = config.noProxy; + this._socks5Proxy = config.socks5Proxy; + this._socks5NetWork = config.socks5NetWork; + this._maxIdleConns = config.maxIdleConns; + this._signatureVersion = config.signatureVersion; + this._signatureAlgorithm = config.signatureAlgorithm; + this._globalParameters = config.globalParameters; + this._key = config.key; + this._cert = config.cert; + this._ca = config.ca; + this._disableHttp2 = config.disableHttp2; + this._tlsMinVersion = config.tlsMinVersion; + } + + /** + * @remarks + * Encapsulate the request and invoke the network + * + * @param action - api name + * @param version - product version + * @param protocol - http or https + * @param method - e.g. GET + * @param authType - authorization type e.g. AK + * @param bodyType - response body type e.g. String + * @param request - object of OpenApiRequest + * @param runtime - which controls some details of call api, such as retry times + * @returns the response + */ + async doRPCRequest(action: string, version: string, protocol: string, method: string, authType: string, bodyType: string, request: OpenApiRequest, runtime: $Util.RuntimeOptions): Promise<{[key: string]: any}> { + let _runtime: { [key: string]: any } = { + timeouted: "retry", + key: Util.defaultString(runtime.key, this._key), + cert: Util.defaultString(runtime.cert, this._cert), + ca: Util.defaultString(runtime.ca, this._ca), + readTimeout: Util.defaultNumber(runtime.readTimeout, this._readTimeout), + connectTimeout: Util.defaultNumber(runtime.connectTimeout, this._connectTimeout), + httpProxy: Util.defaultString(runtime.httpProxy, this._httpProxy), + httpsProxy: Util.defaultString(runtime.httpsProxy, this._httpsProxy), + noProxy: Util.defaultString(runtime.noProxy, this._noProxy), + socks5Proxy: Util.defaultString(runtime.socks5Proxy, this._socks5Proxy), + socks5NetWork: Util.defaultString(runtime.socks5NetWork, this._socks5NetWork), + maxIdleConns: Util.defaultNumber(runtime.maxIdleConns, this._maxIdleConns), + retry: { + retryable: runtime.autoretry, + maxAttempts: Util.defaultNumber(runtime.maxAttempts, 3), + }, + backoff: { + policy: Util.defaultString(runtime.backoffPolicy, "no"), + period: Util.defaultNumber(runtime.backoffPeriod, 1), + }, + ignoreSSL: runtime.ignoreSSL, + tlsMinVersion: this._tlsMinVersion, + } + + let _lastRequest = null; + let _now = Date.now(); + let _retryTimes = 0; + while ($tea.allowRetry(_runtime['retry'], _retryTimes, _now)) { + if (_retryTimes > 0) { + let _backoffTime = $tea.getBackoffTime(_runtime['backoff'], _retryTimes); + if (_backoffTime > 0) { + await $tea.sleep(_backoffTime); + } + } + + _retryTimes = _retryTimes + 1; + try { + let request_ = new $tea.Request(); + request_.protocol = Util.defaultString(this._protocol, protocol); + request_.method = method; + request_.pathname = "/"; + let globalQueries : {[key: string ]: string} = { }; + let globalHeaders : {[key: string ]: string} = { }; + if (!Util.isUnset(this._globalParameters)) { + let globalParams = this._globalParameters; + if (!Util.isUnset(globalParams.queries)) { + globalQueries = globalParams.queries; + } + + if (!Util.isUnset(globalParams.headers)) { + globalHeaders = globalParams.headers; + } + + } + + let extendsHeaders : {[key: string ]: string} = { }; + let extendsQueries : {[key: string ]: string} = { }; + if (!Util.isUnset(runtime.extendsParameters)) { + let extendsParameters = runtime.extendsParameters; + if (!Util.isUnset(extendsParameters.headers)) { + extendsHeaders = extendsParameters.headers; + } + + if (!Util.isUnset(extendsParameters.queries)) { + extendsQueries = extendsParameters.queries; + } + + } + + request_.query = { + Action: action, + Format: "json", + Version: version, + Timestamp: OpenApiUtil.getTimestamp(), + SignatureNonce: Util.getNonce(), + ...globalQueries, + ...extendsQueries, + ...request.query, + }; + let headers = this.getRpcHeaders(); + if (Util.isUnset(headers)) { + // endpoint is setted in product client + request_.headers = { + host: this._endpoint, + 'x-acs-version': version, + 'x-acs-action': action, + 'user-agent': this.getUserAgent(), + ...globalHeaders, + ...extendsHeaders, + ...request.headers, + }; + } else { + request_.headers = { + host: this._endpoint, + 'x-acs-version': version, + 'x-acs-action': action, + 'user-agent': this.getUserAgent(), + ...globalHeaders, + ...extendsHeaders, + ...request.headers, + ...headers, + }; + } + + if (!Util.isUnset(request.body)) { + let m = Util.assertAsMap(request.body); + let tmp = Util.anyifyMapValue(OpenApiUtil.query(m)); + request_.body = new $tea.BytesReadable(Util.toFormString(tmp)); + request_.headers["content-type"] = "application/x-www-form-urlencoded"; + } + + if (!Util.equalString(authType, "Anonymous")) { + if (Util.isUnset(this._credential)) { + throw $tea.newError({ + code: `InvalidCredentials`, + message: `Please set up the credentials correctly. If you are setting them through environment variables, please ensure that ALIBABA_CLOUD_ACCESS_KEY_ID and ALIBABA_CLOUD_ACCESS_KEY_SECRET are set correctly. See https://help.aliyun.com/zh/sdk/developer-reference/configure-the-alibaba-cloud-accesskey-environment-variable-on-linux-macos-and-windows-systems for more details.`, + }); + } + + let credentialModel = await this._credential.getCredential(); + if (!Util.empty(credentialModel.providerName)) { + request_.headers["x-acs-credentials-provider"] = credentialModel.providerName; + } + + let credentialType = credentialModel.type; + if (Util.equalString(credentialType, "bearer")) { + let bearerToken = credentialModel.bearerToken; + request_.query["BearerToken"] = bearerToken; + request_.query["SignatureType"] = "BEARERTOKEN"; + } else if (Util.equalString(credentialType, "id_token")) { + let idToken = credentialModel.securityToken; + request_.headers["x-acs-zero-trust-idtoken"] = idToken; + } else { + let accessKeyId = credentialModel.accessKeyId; + let accessKeySecret = credentialModel.accessKeySecret; + let securityToken = credentialModel.securityToken; + if (!Util.empty(securityToken)) { + request_.query["SecurityToken"] = securityToken; + } + + request_.query["SignatureMethod"] = "HMAC-SHA1"; + request_.query["SignatureVersion"] = "1.0"; + request_.query["AccessKeyId"] = accessKeyId; + let t : {[key: string ]: any} = null; + if (!Util.isUnset(request.body)) { + t = Util.assertAsMap(request.body); + } + + let signedParam = { + ...request_.query, + ...OpenApiUtil.query(t), + }; + request_.query["Signature"] = OpenApiUtil.getRPCSignature(signedParam, request_.method, accessKeySecret); + } + + } + + _lastRequest = request_; + let response_ = await $tea.doAction(request_, _runtime); + + if (Util.is4xx(response_.statusCode) || Util.is5xx(response_.statusCode)) { + let _res = await Util.readAsJSON(response_.body); + let err = Util.assertAsMap(_res); + let requestId = Client.defaultAny(err["RequestId"], err["requestId"]); + err["statusCode"] = response_.statusCode; + throw $tea.newError({ + code: `${Client.defaultAny(err["Code"], err["code"])}`, + message: `code: ${response_.statusCode}, ${Client.defaultAny(err["Message"], err["message"])} request id: ${requestId}`, + data: err, + description: `${Client.defaultAny(err["Description"], err["description"])}`, + accessDeniedDetail: Client.defaultAny(err["AccessDeniedDetail"], err["accessDeniedDetail"]), + }); + } + + if (Util.equalString(bodyType, "binary")) { + let resp = { + body: response_.body, + headers: response_.headers, + statusCode: response_.statusCode, + }; + return resp; + } else if (Util.equalString(bodyType, "byte")) { + let byt = await Util.readAsBytes(response_.body); + return { + body: byt, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } else if (Util.equalString(bodyType, "string")) { + let str = await Util.readAsString(response_.body); + return { + body: str, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } else if (Util.equalString(bodyType, "json")) { + let obj = await Util.readAsJSON(response_.body); + let res = Util.assertAsMap(obj); + return { + body: res, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } else if (Util.equalString(bodyType, "array")) { + let arr = await Util.readAsJSON(response_.body); + return { + body: arr, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } else { + return { + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + + } catch (ex) { + if ($tea.isRetryable(ex)) { + continue; + } + throw ex; + } + } + + throw $tea.newUnretryableError(_lastRequest); + } + + /** + * @remarks + * Encapsulate the request and invoke the network + * + * @param action - api name + * @param version - product version + * @param protocol - http or https + * @param method - e.g. GET + * @param authType - authorization type e.g. AK + * @param pathname - pathname of every api + * @param bodyType - response body type e.g. String + * @param request - object of OpenApiRequest + * @param runtime - which controls some details of call api, such as retry times + * @returns the response + */ + async doROARequest(action: string, version: string, protocol: string, method: string, authType: string, pathname: string, bodyType: string, request: OpenApiRequest, runtime: $Util.RuntimeOptions): Promise<{[key: string]: any}> { + let _runtime: { [key: string]: any } = { + timeouted: "retry", + key: Util.defaultString(runtime.key, this._key), + cert: Util.defaultString(runtime.cert, this._cert), + ca: Util.defaultString(runtime.ca, this._ca), + readTimeout: Util.defaultNumber(runtime.readTimeout, this._readTimeout), + connectTimeout: Util.defaultNumber(runtime.connectTimeout, this._connectTimeout), + httpProxy: Util.defaultString(runtime.httpProxy, this._httpProxy), + httpsProxy: Util.defaultString(runtime.httpsProxy, this._httpsProxy), + noProxy: Util.defaultString(runtime.noProxy, this._noProxy), + socks5Proxy: Util.defaultString(runtime.socks5Proxy, this._socks5Proxy), + socks5NetWork: Util.defaultString(runtime.socks5NetWork, this._socks5NetWork), + maxIdleConns: Util.defaultNumber(runtime.maxIdleConns, this._maxIdleConns), + retry: { + retryable: runtime.autoretry, + maxAttempts: Util.defaultNumber(runtime.maxAttempts, 3), + }, + backoff: { + policy: Util.defaultString(runtime.backoffPolicy, "no"), + period: Util.defaultNumber(runtime.backoffPeriod, 1), + }, + ignoreSSL: runtime.ignoreSSL, + tlsMinVersion: this._tlsMinVersion, + } + + let _lastRequest = null; + let _now = Date.now(); + let _retryTimes = 0; + while ($tea.allowRetry(_runtime['retry'], _retryTimes, _now)) { + if (_retryTimes > 0) { + let _backoffTime = $tea.getBackoffTime(_runtime['backoff'], _retryTimes); + if (_backoffTime > 0) { + await $tea.sleep(_backoffTime); + } + } + + _retryTimes = _retryTimes + 1; + try { + let request_ = new $tea.Request(); + request_.protocol = Util.defaultString(this._protocol, protocol); + request_.method = method; + request_.pathname = pathname; + let globalQueries : {[key: string ]: string} = { }; + let globalHeaders : {[key: string ]: string} = { }; + if (!Util.isUnset(this._globalParameters)) { + let globalParams = this._globalParameters; + if (!Util.isUnset(globalParams.queries)) { + globalQueries = globalParams.queries; + } + + if (!Util.isUnset(globalParams.headers)) { + globalHeaders = globalParams.headers; + } + + } + + let extendsHeaders : {[key: string ]: string} = { }; + let extendsQueries : {[key: string ]: string} = { }; + if (!Util.isUnset(runtime.extendsParameters)) { + let extendsParameters = runtime.extendsParameters; + if (!Util.isUnset(extendsParameters.headers)) { + extendsHeaders = extendsParameters.headers; + } + + if (!Util.isUnset(extendsParameters.queries)) { + extendsQueries = extendsParameters.queries; + } + + } + + request_.headers = { + date: Util.getDateUTCString(), + host: this._endpoint, + accept: "application/json", + 'x-acs-signature-nonce': Util.getNonce(), + 'x-acs-signature-method': "HMAC-SHA1", + 'x-acs-signature-version': "1.0", + 'x-acs-version': version, + 'x-acs-action': action, + 'user-agent': Util.getUserAgent(this._userAgent), + ...globalHeaders, + ...extendsHeaders, + ...request.headers, + }; + if (!Util.isUnset(request.body)) { + request_.body = new $tea.BytesReadable(Util.toJSONString(request.body)); + request_.headers["content-type"] = "application/json; charset=utf-8"; + } + + request_.query = { + ...globalQueries, + ...extendsQueries, + }; + if (!Util.isUnset(request.query)) { + request_.query = { + ...request_.query, + ...request.query, + }; + } + + if (!Util.equalString(authType, "Anonymous")) { + if (Util.isUnset(this._credential)) { + throw $tea.newError({ + code: `InvalidCredentials`, + message: `Please set up the credentials correctly. If you are setting them through environment variables, please ensure that ALIBABA_CLOUD_ACCESS_KEY_ID and ALIBABA_CLOUD_ACCESS_KEY_SECRET are set correctly. See https://help.aliyun.com/zh/sdk/developer-reference/configure-the-alibaba-cloud-accesskey-environment-variable-on-linux-macos-and-windows-systems for more details.`, + }); + } + + let credentialModel = await this._credential.getCredential(); + if (!Util.empty(credentialModel.providerName)) { + request_.headers["x-acs-credentials-provider"] = credentialModel.providerName; + } + + let credentialType = credentialModel.type; + if (Util.equalString(credentialType, "bearer")) { + let bearerToken = credentialModel.bearerToken; + request_.headers["x-acs-bearer-token"] = bearerToken; + request_.headers["x-acs-signature-type"] = "BEARERTOKEN"; + } else if (Util.equalString(credentialType, "id_token")) { + let idToken = credentialModel.securityToken; + request_.headers["x-acs-zero-trust-idtoken"] = idToken; + } else { + let accessKeyId = credentialModel.accessKeyId; + let accessKeySecret = credentialModel.accessKeySecret; + let securityToken = credentialModel.securityToken; + if (!Util.empty(securityToken)) { + request_.headers["x-acs-accesskey-id"] = accessKeyId; + request_.headers["x-acs-security-token"] = securityToken; + } + + let stringToSign = OpenApiUtil.getStringToSign(request_); + request_.headers["authorization"] = `acs ${accessKeyId}:${OpenApiUtil.getROASignature(stringToSign, accessKeySecret)}`; + } + + } + + _lastRequest = request_; + let response_ = await $tea.doAction(request_, _runtime); + + if (Util.equalNumber(response_.statusCode, 204)) { + return { + headers: response_.headers, + }; + } + + if (Util.is4xx(response_.statusCode) || Util.is5xx(response_.statusCode)) { + let _res = await Util.readAsJSON(response_.body); + let err = Util.assertAsMap(_res); + let requestId = Client.defaultAny(err["RequestId"], err["requestId"]); + requestId = Client.defaultAny(requestId, err["requestid"]); + err["statusCode"] = response_.statusCode; + throw $tea.newError({ + code: `${Client.defaultAny(err["Code"], err["code"])}`, + message: `code: ${response_.statusCode}, ${Client.defaultAny(err["Message"], err["message"])} request id: ${requestId}`, + data: err, + description: `${Client.defaultAny(err["Description"], err["description"])}`, + accessDeniedDetail: Client.defaultAny(err["AccessDeniedDetail"], err["accessDeniedDetail"]), + }); + } + + if (Util.equalString(bodyType, "binary")) { + let resp = { + body: response_.body, + headers: response_.headers, + statusCode: response_.statusCode, + }; + return resp; + } else if (Util.equalString(bodyType, "byte")) { + let byt = await Util.readAsBytes(response_.body); + return { + body: byt, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } else if (Util.equalString(bodyType, "string")) { + let str = await Util.readAsString(response_.body); + return { + body: str, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } else if (Util.equalString(bodyType, "json")) { + let obj = await Util.readAsJSON(response_.body); + let res = Util.assertAsMap(obj); + return { + body: res, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } else if (Util.equalString(bodyType, "array")) { + let arr = await Util.readAsJSON(response_.body); + return { + body: arr, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } else { + return { + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + + } catch (ex) { + if ($tea.isRetryable(ex)) { + continue; + } + throw ex; + } + } + + throw $tea.newUnretryableError(_lastRequest); + } + + /** + * @remarks + * Encapsulate the request and invoke the network with form body + * + * @param action - api name + * @param version - product version + * @param protocol - http or https + * @param method - e.g. GET + * @param authType - authorization type e.g. AK + * @param pathname - pathname of every api + * @param bodyType - response body type e.g. String + * @param request - object of OpenApiRequest + * @param runtime - which controls some details of call api, such as retry times + * @returns the response + */ + async doROARequestWithForm(action: string, version: string, protocol: string, method: string, authType: string, pathname: string, bodyType: string, request: OpenApiRequest, runtime: $Util.RuntimeOptions): Promise<{[key: string]: any}> { + let _runtime: { [key: string]: any } = { + timeouted: "retry", + key: Util.defaultString(runtime.key, this._key), + cert: Util.defaultString(runtime.cert, this._cert), + ca: Util.defaultString(runtime.ca, this._ca), + readTimeout: Util.defaultNumber(runtime.readTimeout, this._readTimeout), + connectTimeout: Util.defaultNumber(runtime.connectTimeout, this._connectTimeout), + httpProxy: Util.defaultString(runtime.httpProxy, this._httpProxy), + httpsProxy: Util.defaultString(runtime.httpsProxy, this._httpsProxy), + noProxy: Util.defaultString(runtime.noProxy, this._noProxy), + socks5Proxy: Util.defaultString(runtime.socks5Proxy, this._socks5Proxy), + socks5NetWork: Util.defaultString(runtime.socks5NetWork, this._socks5NetWork), + maxIdleConns: Util.defaultNumber(runtime.maxIdleConns, this._maxIdleConns), + retry: { + retryable: runtime.autoretry, + maxAttempts: Util.defaultNumber(runtime.maxAttempts, 3), + }, + backoff: { + policy: Util.defaultString(runtime.backoffPolicy, "no"), + period: Util.defaultNumber(runtime.backoffPeriod, 1), + }, + ignoreSSL: runtime.ignoreSSL, + tlsMinVersion: this._tlsMinVersion, + } + + let _lastRequest = null; + let _now = Date.now(); + let _retryTimes = 0; + while ($tea.allowRetry(_runtime['retry'], _retryTimes, _now)) { + if (_retryTimes > 0) { + let _backoffTime = $tea.getBackoffTime(_runtime['backoff'], _retryTimes); + if (_backoffTime > 0) { + await $tea.sleep(_backoffTime); + } + } + + _retryTimes = _retryTimes + 1; + try { + let request_ = new $tea.Request(); + request_.protocol = Util.defaultString(this._protocol, protocol); + request_.method = method; + request_.pathname = pathname; + let globalQueries : {[key: string ]: string} = { }; + let globalHeaders : {[key: string ]: string} = { }; + if (!Util.isUnset(this._globalParameters)) { + let globalParams = this._globalParameters; + if (!Util.isUnset(globalParams.queries)) { + globalQueries = globalParams.queries; + } + + if (!Util.isUnset(globalParams.headers)) { + globalHeaders = globalParams.headers; + } + + } + + let extendsHeaders : {[key: string ]: string} = { }; + let extendsQueries : {[key: string ]: string} = { }; + if (!Util.isUnset(runtime.extendsParameters)) { + let extendsParameters = runtime.extendsParameters; + if (!Util.isUnset(extendsParameters.headers)) { + extendsHeaders = extendsParameters.headers; + } + + if (!Util.isUnset(extendsParameters.queries)) { + extendsQueries = extendsParameters.queries; + } + + } + + request_.headers = { + date: Util.getDateUTCString(), + host: this._endpoint, + accept: "application/json", + 'x-acs-signature-nonce': Util.getNonce(), + 'x-acs-signature-method': "HMAC-SHA1", + 'x-acs-signature-version': "1.0", + 'x-acs-version': version, + 'x-acs-action': action, + 'user-agent': Util.getUserAgent(this._userAgent), + ...globalHeaders, + ...extendsHeaders, + ...request.headers, + }; + if (!Util.isUnset(request.body)) { + let m = Util.assertAsMap(request.body); + request_.body = new $tea.BytesReadable(OpenApiUtil.toForm(m)); + request_.headers["content-type"] = "application/x-www-form-urlencoded"; + } + + request_.query = { + ...globalQueries, + ...extendsQueries, + }; + if (!Util.isUnset(request.query)) { + request_.query = { + ...request_.query, + ...request.query, + }; + } + + if (!Util.equalString(authType, "Anonymous")) { + if (Util.isUnset(this._credential)) { + throw $tea.newError({ + code: `InvalidCredentials`, + message: `Please set up the credentials correctly. If you are setting them through environment variables, please ensure that ALIBABA_CLOUD_ACCESS_KEY_ID and ALIBABA_CLOUD_ACCESS_KEY_SECRET are set correctly. See https://help.aliyun.com/zh/sdk/developer-reference/configure-the-alibaba-cloud-accesskey-environment-variable-on-linux-macos-and-windows-systems for more details.`, + }); + } + + let credentialModel = await this._credential.getCredential(); + if (!Util.empty(credentialModel.providerName)) { + request_.headers["x-acs-credentials-provider"] = credentialModel.providerName; + } + + let credentialType = credentialModel.type; + if (Util.equalString(credentialType, "bearer")) { + let bearerToken = credentialModel.bearerToken; + request_.headers["x-acs-bearer-token"] = bearerToken; + request_.headers["x-acs-signature-type"] = "BEARERTOKEN"; + } else if (Util.equalString(credentialType, "id_token")) { + let idToken = credentialModel.securityToken; + request_.headers["x-acs-zero-trust-idtoken"] = idToken; + } else { + let accessKeyId = credentialModel.accessKeyId; + let accessKeySecret = credentialModel.accessKeySecret; + let securityToken = credentialModel.securityToken; + if (!Util.empty(securityToken)) { + request_.headers["x-acs-accesskey-id"] = accessKeyId; + request_.headers["x-acs-security-token"] = securityToken; + } + + let stringToSign = OpenApiUtil.getStringToSign(request_); + request_.headers["authorization"] = `acs ${accessKeyId}:${OpenApiUtil.getROASignature(stringToSign, accessKeySecret)}`; + } + + } + + _lastRequest = request_; + let response_ = await $tea.doAction(request_, _runtime); + + if (Util.equalNumber(response_.statusCode, 204)) { + return { + headers: response_.headers, + }; + } + + if (Util.is4xx(response_.statusCode) || Util.is5xx(response_.statusCode)) { + let _res = await Util.readAsJSON(response_.body); + let err = Util.assertAsMap(_res); + err["statusCode"] = response_.statusCode; + throw $tea.newError({ + code: `${Client.defaultAny(err["Code"], err["code"])}`, + message: `code: ${response_.statusCode}, ${Client.defaultAny(err["Message"], err["message"])} request id: ${Client.defaultAny(err["RequestId"], err["requestId"])}`, + data: err, + description: `${Client.defaultAny(err["Description"], err["description"])}`, + accessDeniedDetail: Client.defaultAny(err["AccessDeniedDetail"], err["accessDeniedDetail"]), + }); + } + + if (Util.equalString(bodyType, "binary")) { + let resp = { + body: response_.body, + headers: response_.headers, + statusCode: response_.statusCode, + }; + return resp; + } else if (Util.equalString(bodyType, "byte")) { + let byt = await Util.readAsBytes(response_.body); + return { + body: byt, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } else if (Util.equalString(bodyType, "string")) { + let str = await Util.readAsString(response_.body); + return { + body: str, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } else if (Util.equalString(bodyType, "json")) { + let obj = await Util.readAsJSON(response_.body); + let res = Util.assertAsMap(obj); + return { + body: res, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } else if (Util.equalString(bodyType, "array")) { + let arr = await Util.readAsJSON(response_.body); + return { + body: arr, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } else { + return { + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + + } catch (ex) { + if ($tea.isRetryable(ex)) { + continue; + } + throw ex; + } + } + + throw $tea.newUnretryableError(_lastRequest); + } + + /** + * @remarks + * Encapsulate the request and invoke the network + * + * @param action - api name + * @param version - product version + * @param protocol - http or https + * @param method - e.g. GET + * @param authType - authorization type e.g. AK + * @param bodyType - response body type e.g. String + * @param request - object of OpenApiRequest + * @param runtime - which controls some details of call api, such as retry times + * @returns the response + */ + async doRequest(params: Params, request: OpenApiRequest, runtime: $Util.RuntimeOptions): Promise<{[key: string]: any}> { + let _runtime: { [key: string]: any } = { + timeouted: "retry", + key: Util.defaultString(runtime.key, this._key), + cert: Util.defaultString(runtime.cert, this._cert), + ca: Util.defaultString(runtime.ca, this._ca), + readTimeout: Util.defaultNumber(runtime.readTimeout, this._readTimeout), + connectTimeout: Util.defaultNumber(runtime.connectTimeout, this._connectTimeout), + httpProxy: Util.defaultString(runtime.httpProxy, this._httpProxy), + httpsProxy: Util.defaultString(runtime.httpsProxy, this._httpsProxy), + noProxy: Util.defaultString(runtime.noProxy, this._noProxy), + socks5Proxy: Util.defaultString(runtime.socks5Proxy, this._socks5Proxy), + socks5NetWork: Util.defaultString(runtime.socks5NetWork, this._socks5NetWork), + maxIdleConns: Util.defaultNumber(runtime.maxIdleConns, this._maxIdleConns), + retry: { + retryable: runtime.autoretry, + maxAttempts: Util.defaultNumber(runtime.maxAttempts, 3), + }, + backoff: { + policy: Util.defaultString(runtime.backoffPolicy, "no"), + period: Util.defaultNumber(runtime.backoffPeriod, 1), + }, + ignoreSSL: runtime.ignoreSSL, + tlsMinVersion: this._tlsMinVersion, + } + + let _lastRequest = null; + let _now = Date.now(); + let _retryTimes = 0; + while ($tea.allowRetry(_runtime['retry'], _retryTimes, _now)) { + if (_retryTimes > 0) { + let _backoffTime = $tea.getBackoffTime(_runtime['backoff'], _retryTimes); + if (_backoffTime > 0) { + await $tea.sleep(_backoffTime); + } + } + + _retryTimes = _retryTimes + 1; + try { + let request_ = new $tea.Request(); + request_.protocol = Util.defaultString(this._protocol, params.protocol); + request_.method = params.method; + request_.pathname = params.pathname; + let globalQueries : {[key: string ]: string} = { }; + let globalHeaders : {[key: string ]: string} = { }; + if (!Util.isUnset(this._globalParameters)) { + let globalParams = this._globalParameters; + if (!Util.isUnset(globalParams.queries)) { + globalQueries = globalParams.queries; + } + + if (!Util.isUnset(globalParams.headers)) { + globalHeaders = globalParams.headers; + } + + } + + let extendsHeaders : {[key: string ]: string} = { }; + let extendsQueries : {[key: string ]: string} = { }; + if (!Util.isUnset(runtime.extendsParameters)) { + let extendsParameters = runtime.extendsParameters; + if (!Util.isUnset(extendsParameters.headers)) { + extendsHeaders = extendsParameters.headers; + } + + if (!Util.isUnset(extendsParameters.queries)) { + extendsQueries = extendsParameters.queries; + } + + } + + request_.query = { + ...globalQueries, + ...extendsQueries, + ...request.query, + }; + // endpoint is setted in product client + request_.headers = { + host: this._endpoint, + 'x-acs-version': params.version, + 'x-acs-action': params.action, + 'user-agent': this.getUserAgent(), + 'x-acs-date': OpenApiUtil.getTimestamp(), + 'x-acs-signature-nonce': Util.getNonce(), + accept: "application/json", + ...globalHeaders, + ...extendsHeaders, + ...request.headers, + }; + if (Util.equalString(params.style, "RPC")) { + let headers = this.getRpcHeaders(); + if (!Util.isUnset(headers)) { + request_.headers = { + ...request_.headers, + ...headers, + }; + } + + } + + let signatureAlgorithm = Util.defaultString(this._signatureAlgorithm, "ACS3-HMAC-SHA256"); + let hashedRequestPayload = OpenApiUtil.hexEncode(OpenApiUtil.hash(Util.toBytes(""), signatureAlgorithm)); + if (!Util.isUnset(request.stream)) { + let tmp = await Util.readAsBytes(request.stream); + hashedRequestPayload = OpenApiUtil.hexEncode(OpenApiUtil.hash(tmp, signatureAlgorithm)); + request_.body = new $tea.BytesReadable(tmp); + request_.headers["content-type"] = "application/octet-stream"; + } else { + if (!Util.isUnset(request.body)) { + if (Util.equalString(params.reqBodyType, "byte")) { + let byteObj = Util.assertAsBytes(request.body); + hashedRequestPayload = OpenApiUtil.hexEncode(OpenApiUtil.hash(byteObj, signatureAlgorithm)); + request_.body = new $tea.BytesReadable(byteObj); + } else if (Util.equalString(params.reqBodyType, "json")) { + let jsonObj = Util.toJSONString(request.body); + hashedRequestPayload = OpenApiUtil.hexEncode(OpenApiUtil.hash(Util.toBytes(jsonObj), signatureAlgorithm)); + request_.body = new $tea.BytesReadable(jsonObj); + request_.headers["content-type"] = "application/json; charset=utf-8"; + } else { + let m = Util.assertAsMap(request.body); + let formObj = OpenApiUtil.toForm(m); + hashedRequestPayload = OpenApiUtil.hexEncode(OpenApiUtil.hash(Util.toBytes(formObj), signatureAlgorithm)); + request_.body = new $tea.BytesReadable(formObj); + request_.headers["content-type"] = "application/x-www-form-urlencoded"; + } + + } + + } + + request_.headers["x-acs-content-sha256"] = hashedRequestPayload; + if (!Util.equalString(params.authType, "Anonymous")) { + if (Util.isUnset(this._credential)) { + throw $tea.newError({ + code: `InvalidCredentials`, + message: `Please set up the credentials correctly. If you are setting them through environment variables, please ensure that ALIBABA_CLOUD_ACCESS_KEY_ID and ALIBABA_CLOUD_ACCESS_KEY_SECRET are set correctly. See https://help.aliyun.com/zh/sdk/developer-reference/configure-the-alibaba-cloud-accesskey-environment-variable-on-linux-macos-and-windows-systems for more details.`, + }); + } + + let credentialModel = await this._credential.getCredential(); + if (!Util.empty(credentialModel.providerName)) { + request_.headers["x-acs-credentials-provider"] = credentialModel.providerName; + } + + let authType = credentialModel.type; + if (Util.equalString(authType, "bearer")) { + let bearerToken = credentialModel.bearerToken; + request_.headers["x-acs-bearer-token"] = bearerToken; + if (Util.equalString(params.style, "RPC")) { + request_.query["SignatureType"] = "BEARERTOKEN"; + } else { + request_.headers["x-acs-signature-type"] = "BEARERTOKEN"; + } + + } else if (Util.equalString(authType, "id_token")) { + let idToken = credentialModel.securityToken; + request_.headers["x-acs-zero-trust-idtoken"] = idToken; + } else { + let accessKeyId = credentialModel.accessKeyId; + let accessKeySecret = credentialModel.accessKeySecret; + let securityToken = credentialModel.securityToken; + if (!Util.empty(securityToken)) { + request_.headers["x-acs-accesskey-id"] = accessKeyId; + request_.headers["x-acs-security-token"] = securityToken; + } + + request_.headers["Authorization"] = OpenApiUtil.getAuthorization(request_, signatureAlgorithm, hashedRequestPayload, accessKeyId, accessKeySecret); + } + + } + + _lastRequest = request_; + let response_ = await $tea.doAction(request_, _runtime); + + if (Util.is4xx(response_.statusCode) || Util.is5xx(response_.statusCode)) { + let err : {[key: string ]: any} = { }; + if (!Util.isUnset(response_.headers["content-type"]) && Util.equalString(response_.headers["content-type"], "text/xml;charset=utf-8")) { + let _str = await Util.readAsString(response_.body); + let respMap = XML.parseXml(_str, null); + err = Util.assertAsMap(respMap["Error"]); + } else { + let _res = await Util.readAsJSON(response_.body); + err = Util.assertAsMap(_res); + } + + err["statusCode"] = response_.statusCode; + throw $tea.newError({ + code: `${Client.defaultAny(err["Code"], err["code"])}`, + message: `code: ${response_.statusCode}, ${Client.defaultAny(err["Message"], err["message"])} request id: ${Client.defaultAny(err["RequestId"], err["requestId"])}`, + data: err, + description: `${Client.defaultAny(err["Description"], err["description"])}`, + accessDeniedDetail: Client.defaultAny(err["AccessDeniedDetail"], err["accessDeniedDetail"]), + }); + } + + if (Util.equalString(params.bodyType, "binary")) { + let resp = { + body: response_.body, + headers: response_.headers, + statusCode: response_.statusCode, + }; + return resp; + } else if (Util.equalString(params.bodyType, "byte")) { + let byt = await Util.readAsBytes(response_.body); + return { + body: byt, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } else if (Util.equalString(params.bodyType, "string")) { + let str = await Util.readAsString(response_.body); + return { + body: str, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } else if (Util.equalString(params.bodyType, "json")) { + let obj = await Util.readAsJSON(response_.body); + let res = Util.assertAsMap(obj); + return { + body: res, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } else if (Util.equalString(params.bodyType, "array")) { + let arr = await Util.readAsJSON(response_.body); + return { + body: arr, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } else { + let anything = await Util.readAsString(response_.body); + return { + body: anything, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + + } catch (ex) { + if ($tea.isRetryable(ex)) { + continue; + } + throw ex; + } + } + + throw $tea.newUnretryableError(_lastRequest); + } + + /** + * @remarks + * Encapsulate the request and invoke the network + * + * @param action - api name + * @param version - product version + * @param protocol - http or https + * @param method - e.g. GET + * @param authType - authorization type e.g. AK + * @param bodyType - response body type e.g. String + * @param request - object of OpenApiRequest + * @param runtime - which controls some details of call api, such as retry times + * @returns the response + */ + async execute(params: Params, request: OpenApiRequest, runtime: $Util.RuntimeOptions): Promise<{[key: string]: any}> { + let _runtime: { [key: string]: any } = { + timeouted: "retry", + key: Util.defaultString(runtime.key, this._key), + cert: Util.defaultString(runtime.cert, this._cert), + ca: Util.defaultString(runtime.ca, this._ca), + readTimeout: Util.defaultNumber(runtime.readTimeout, this._readTimeout), + connectTimeout: Util.defaultNumber(runtime.connectTimeout, this._connectTimeout), + httpProxy: Util.defaultString(runtime.httpProxy, this._httpProxy), + httpsProxy: Util.defaultString(runtime.httpsProxy, this._httpsProxy), + noProxy: Util.defaultString(runtime.noProxy, this._noProxy), + socks5Proxy: Util.defaultString(runtime.socks5Proxy, this._socks5Proxy), + socks5NetWork: Util.defaultString(runtime.socks5NetWork, this._socks5NetWork), + maxIdleConns: Util.defaultNumber(runtime.maxIdleConns, this._maxIdleConns), + retry: { + retryable: runtime.autoretry, + maxAttempts: Util.defaultNumber(runtime.maxAttempts, 3), + }, + backoff: { + policy: Util.defaultString(runtime.backoffPolicy, "no"), + period: Util.defaultNumber(runtime.backoffPeriod, 1), + }, + ignoreSSL: runtime.ignoreSSL, + disableHttp2: Client.defaultAny(this._disableHttp2, false), + tlsMinVersion: this._tlsMinVersion, + } + + let _lastRequest = null; + let _now = Date.now(); + let _retryTimes = 0; + while ($tea.allowRetry(_runtime['retry'], _retryTimes, _now)) { + if (_retryTimes > 0) { + let _backoffTime = $tea.getBackoffTime(_runtime['backoff'], _retryTimes); + if (_backoffTime > 0) { + await $tea.sleep(_backoffTime); + } + } + + _retryTimes = _retryTimes + 1; + try { + let request_ = new $tea.Request(); + // spi = new Gateway();//Gateway implements SPI,这一步在产品 SDK 中实例化 + let headers = this.getRpcHeaders(); + let globalQueries : {[key: string ]: string} = { }; + let globalHeaders : {[key: string ]: string} = { }; + if (!Util.isUnset(this._globalParameters)) { + let globalParams = this._globalParameters; + if (!Util.isUnset(globalParams.queries)) { + globalQueries = globalParams.queries; + } + + if (!Util.isUnset(globalParams.headers)) { + globalHeaders = globalParams.headers; + } + + } + + let extendsHeaders : {[key: string ]: string} = { }; + let extendsQueries : {[key: string ]: string} = { }; + if (!Util.isUnset(runtime.extendsParameters)) { + let extendsParameters = runtime.extendsParameters; + if (!Util.isUnset(extendsParameters.headers)) { + extendsHeaders = extendsParameters.headers; + } + + if (!Util.isUnset(extendsParameters.queries)) { + extendsQueries = extendsParameters.queries; + } + + } + + let requestContext = new $SPI.InterceptorContextRequest({ + headers: { + ...globalHeaders, + ...extendsHeaders, + ...request.headers, + ...headers, + }, + query: { + ...globalQueries, + ...extendsQueries, + ...request.query, + }, + body: request.body, + stream: request.stream, + hostMap: request.hostMap, + pathname: params.pathname, + productId: this._productId, + action: params.action, + version: params.version, + protocol: Util.defaultString(this._protocol, params.protocol), + method: Util.defaultString(this._method, params.method), + authType: params.authType, + bodyType: params.bodyType, + reqBodyType: params.reqBodyType, + style: params.style, + credential: this._credential, + signatureVersion: this._signatureVersion, + signatureAlgorithm: this._signatureAlgorithm, + userAgent: this.getUserAgent(), + }); + let configurationContext = new $SPI.InterceptorContextConfiguration({ + regionId: this._regionId, + endpoint: Util.defaultString(request.endpointOverride, this._endpoint), + endpointRule: this._endpointRule, + endpointMap: this._endpointMap, + endpointType: this._endpointType, + network: this._network, + suffix: this._suffix, + }); + let interceptorContext = new $SPI.InterceptorContext({ }); + interceptorContext.request = requestContext; + interceptorContext.configuration = configurationContext; + let attributeMap = new $SPI.AttributeMap({ }); + if (!Util.isUnset(this._attributeMap)) { + attributeMap = this._attributeMap; + } + + // 1. spi.modifyConfiguration(context: SPI.InterceptorContext, attributeMap: SPI.AttributeMap); + await this._spi.modifyConfiguration(interceptorContext, attributeMap); + // 2. spi.modifyRequest(context: SPI.InterceptorContext, attributeMap: SPI.AttributeMap); + await this._spi.modifyRequest(interceptorContext, attributeMap); + request_.protocol = interceptorContext.request.protocol; + request_.method = interceptorContext.request.method; + request_.pathname = interceptorContext.request.pathname; + request_.query = interceptorContext.request.query; + request_.body = interceptorContext.request.stream; + request_.headers = interceptorContext.request.headers; + _lastRequest = request_; + let response_ = await $tea.doAction(request_, _runtime); + + let responseContext = new $SPI.InterceptorContextResponse({ + statusCode: response_.statusCode, + headers: response_.headers, + body: response_.body, + }); + interceptorContext.response = responseContext; + // 3. spi.modifyResponse(context: SPI.InterceptorContext, attributeMap: SPI.AttributeMap); + await this._spi.modifyResponse(interceptorContext, attributeMap); + return { + headers: interceptorContext.response.headers, + statusCode: interceptorContext.response.statusCode, + body: interceptorContext.response.deserializedBody, + }; + } catch (ex) { + if ($tea.isRetryable(ex)) { + continue; + } + throw ex; + } + } + + throw $tea.newUnretryableError(_lastRequest); + } + + async callApi(params: Params, request: OpenApiRequest, runtime: $Util.RuntimeOptions): Promise<{[key: string]: any}> { + if (Util.isUnset(params)) { + throw $tea.newError({ + code: "ParameterMissing", + message: "'params' can not be unset", + }); + } + + if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) { + if (Util.isUnset(this._signatureAlgorithm) || !Util.equalString(this._signatureAlgorithm, "v2")) { + return await this.doRequest(params, request, runtime); + } else if (Util.equalString(params.style, "ROA") && Util.equalString(params.reqBodyType, "json")) { + return await this.doROARequest(params.action, params.version, params.protocol, params.method, params.authType, params.pathname, params.bodyType, request, runtime); + } else if (Util.equalString(params.style, "ROA")) { + return await this.doROARequestWithForm(params.action, params.version, params.protocol, params.method, params.authType, params.pathname, params.bodyType, request, runtime); + } else { + return await this.doRPCRequest(params.action, params.version, params.protocol, params.method, params.authType, params.bodyType, request, runtime); + } + + } else { + return await this.execute(params, request, runtime); + } + + } + + /** + * @remarks + * Get user agent + * @returns user agent + */ + getUserAgent(): string { + let userAgent = Util.getUserAgent(this._userAgent); + return userAgent; + } + + /** + * @remarks + * Get accesskey id by using credential + * @returns accesskey id + */ + async getAccessKeyId(): Promise { + if (Util.isUnset(this._credential)) { + return ""; + } + + let accessKeyId = await this._credential.getAccessKeyId(); + return accessKeyId; + } + + /** + * @remarks + * Get accesskey secret by using credential + * @returns accesskey secret + */ + async getAccessKeySecret(): Promise { + if (Util.isUnset(this._credential)) { + return ""; + } + + let secret = await this._credential.getAccessKeySecret(); + return secret; + } + + /** + * @remarks + * Get security token by using credential + * @returns security token + */ + async getSecurityToken(): Promise { + if (Util.isUnset(this._credential)) { + return ""; + } + + let token = await this._credential.getSecurityToken(); + return token; + } + + /** + * @remarks + * Get bearer token by credential + * @returns bearer token + */ + async getBearerToken(): Promise { + if (Util.isUnset(this._credential)) { + return ""; + } + + let token = this._credential.getBearerToken(); + return token; + } + + /** + * @remarks + * Get credential type by credential + * @returns credential type e.g. access_key + */ + async getType(): Promise { + if (Util.isUnset(this._credential)) { + return ""; + } + + let authType = this._credential.getType(); + return authType; + } + + /** + * @remarks + * If inputValue is not null, return it or return defaultValue + * + * @param inputValue - users input value + * @param defaultValue - default value + * @returns the final result + */ + static defaultAny(inputValue: any, defaultValue: any): any { + if (Util.isUnset(inputValue)) { + return defaultValue; + } + + return inputValue; + } + + /** + * @remarks + * If the endpointRule and config.endpoint are empty, throw error + * + * @param config - config contains the necessary information to create a client + */ + checkConfig(config: Config): void { + if (Util.empty(this._endpointRule) && Util.empty(config.endpoint)) { + throw $tea.newError({ + code: "ParameterMissing", + message: "'config.endpoint' can not be empty", + }); + } + + } + + /** + * @remarks + * set gateway client + * + * @param spi - . + */ + setGatewayClient(spi: SPI): void { + this._spi = spi; + } + + /** + * @remarks + * set RPC header for debug + * + * @param headers - headers for debug, this header can be used only once. + */ + setRpcHeaders(headers: {[key: string ]: string}): void { + this._headers = headers; + } + + /** + * @remarks + * get RPC header for debug + */ + getRpcHeaders(): {[key: string ]: string} { + let headers : {[key: string ]: string} = this._headers; + this._headers = null; + return headers; + } + +} diff --git a/backend/node_modules/@alicloud/openapi-core/README.md b/backend/node_modules/@alicloud/openapi-core/README.md new file mode 100644 index 0000000..dbfc389 --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/README.md @@ -0,0 +1,19 @@ +English | [简体中文](README-CN.md) + +![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg) + +# Alibaba Cloud OpenApi Client + +## Issues + +[Opening an Issue](https://github.com/aliyun/darabonba-openapi/issues/new), Issues not conforming to the guidelines may be closed immediately. + +## References + +- [Latest Release](https://github.com/aliyun/darabonba-openapi) + +## License + +[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0) + +Copyright (c) 2009-present, Alibaba Cloud All rights reserved. diff --git a/backend/node_modules/@alicloud/openapi-core/dist/client.d.ts b/backend/node_modules/@alicloud/openapi-core/dist/client.d.ts new file mode 100644 index 0000000..610413d --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/dist/client.d.ts @@ -0,0 +1,211 @@ +import * as $dara from '@darabonba/typescript'; +import * as $OpenApiUtil from './utils'; +import Credential from '@alicloud/credentials'; +import SPI, * as $SPI from '@alicloud/gateway-spi'; +export * as $OpenApiUtil from './utils'; +export { default as OpenApiUtil } from './utils'; +export * from './exceptions/error'; +import * as $_model from './models/model'; +export * from './models/model'; +export default class Client { + _endpoint: string; + _regionId: string; + _protocol: string; + _method: string; + _userAgent: string; + _endpointRule: string; + _endpointMap: { + [key: string]: string; + }; + _suffix: string; + _readTimeout: number; + _connectTimeout: number; + _httpProxy: string; + _httpsProxy: string; + _socks5Proxy: string; + _socks5NetWork: string; + _noProxy: string; + _network: string; + _productId: string; + _maxIdleConns: number; + _endpointType: string; + _openPlatformEndpoint: string; + _credential: Credential; + _signatureVersion: string; + _signatureAlgorithm: string; + _headers: { + [key: string]: string; + }; + _spi: SPI; + _globalParameters: $OpenApiUtil.GlobalParameters; + _key: string; + _cert: string; + _ca: string; + _disableHttp2: boolean; + _retryOptions: $dara.RetryOptions; + _tlsMinVersion: string; + _attributeMap: $SPI.AttributeMap; + /** + * @remarks + * Init client with Config + * + * @param config - config contains the necessary information to create a client + */ + constructor(config: $OpenApiUtil.Config); + /** + * @remarks + * Encapsulate the request and invoke the network + * + * @param action - api name + * @param version - product version + * @param protocol - http or https + * @param method - e.g. GET + * @param authType - authorization type e.g. AK + * @param bodyType - response body type e.g. String + * @param request - object of OpenApiRequest + * @param runtime - which controls some details of call api, such as retry times + * @returns the response + */ + doRPCRequest(action: string, version: string, protocol: string, method: string, authType: string, bodyType: string, request: $OpenApiUtil.OpenApiRequest, runtime: $dara.RuntimeOptions): Promise<{ + [key: string]: any; + }>; + /** + * @remarks + * Encapsulate the request and invoke the network + * + * @param action - api name + * @param version - product version + * @param protocol - http or https + * @param method - e.g. GET + * @param authType - authorization type e.g. AK + * @param pathname - pathname of every api + * @param bodyType - response body type e.g. String + * @param request - object of OpenApiRequest + * @param runtime - which controls some details of call api, such as retry times + * @returns the response + */ + doROARequest(action: string, version: string, protocol: string, method: string, authType: string, pathname: string, bodyType: string, request: $OpenApiUtil.OpenApiRequest, runtime: $dara.RuntimeOptions): Promise<{ + [key: string]: any; + }>; + /** + * @remarks + * Encapsulate the request and invoke the network with form body + * + * @param action - api name + * @param version - product version + * @param protocol - http or https + * @param method - e.g. GET + * @param authType - authorization type e.g. AK + * @param pathname - pathname of every api + * @param bodyType - response body type e.g. String + * @param request - object of OpenApiRequest + * @param runtime - which controls some details of call api, such as retry times + * @returns the response + */ + doROARequestWithForm(action: string, version: string, protocol: string, method: string, authType: string, pathname: string, bodyType: string, request: $OpenApiUtil.OpenApiRequest, runtime: $dara.RuntimeOptions): Promise<{ + [key: string]: any; + }>; + /** + * @remarks + * Encapsulate the request and invoke the network + * + * @param action - api name + * @param version - product version + * @param protocol - http or https + * @param method - e.g. GET + * @param authType - authorization type e.g. AK + * @param bodyType - response body type e.g. String + * @param request - object of OpenApiRequest + * @param runtime - which controls some details of call api, such as retry times + * @returns the response + */ + doRequest(params: $OpenApiUtil.Params, request: $OpenApiUtil.OpenApiRequest, runtime: $dara.RuntimeOptions): Promise<{ + [key: string]: any; + }>; + /** + * @remarks + * Encapsulate the request and invoke the network + * + * @param action - api name + * @param version - product version + * @param protocol - http or https + * @param method - e.g. GET + * @param authType - authorization type e.g. AK + * @param bodyType - response body type e.g. String + * @param request - object of OpenApiRequest + * @param runtime - which controls some details of call api, such as retry times + * @returns the response + */ + execute(params: $OpenApiUtil.Params, request: $OpenApiUtil.OpenApiRequest, runtime: $dara.RuntimeOptions): Promise<{ + [key: string]: any; + }>; + callSSEApi(params: $OpenApiUtil.Params, request: $OpenApiUtil.OpenApiRequest, runtime: $dara.RuntimeOptions): AsyncGenerator<$_model.SSEResponse, any, unknown>; + callApi(params: $OpenApiUtil.Params, request: $OpenApiUtil.OpenApiRequest, runtime: $dara.RuntimeOptions): Promise<{ + [key: string]: any; + }>; + /** + * @remarks + * Get accesskey id by using credential + * @returns accesskey id + */ + getAccessKeyId(): Promise; + /** + * @remarks + * Get accesskey secret by using credential + * @returns accesskey secret + */ + getAccessKeySecret(): Promise; + /** + * @remarks + * Get security token by using credential + * @returns security token + */ + getSecurityToken(): Promise; + /** + * @remarks + * Get bearer token by credential + * @returns bearer token + */ + getBearerToken(): Promise; + /** + * @remarks + * Get credential type by credential + * @returns credential type e.g. access_key + */ + getType(): Promise; + /** + * @remarks + * If the endpointRule and config.endpoint are empty, throw error + * + * @param config - config contains the necessary information to create a client + */ + checkConfig(config: $OpenApiUtil.Config): void; + /** + * @remarks + * set gateway client + * + * @param spi - . + */ + setGatewayClient(spi: SPI): void; + /** + * @remarks + * set RPC header for debug + * + * @param headers - headers for debug, this header can be used only once. + */ + setRpcHeaders(headers: { + [key: string]: string; + }): void; + /** + * @remarks + * get RPC header for debug + */ + getRpcHeaders(): { + [key: string]: string; + }; + getAccessDeniedDetail(err: { + [key: string]: any; + }): { + [key: string]: any; + }; +} diff --git a/backend/node_modules/@alicloud/openapi-core/dist/client.js b/backend/node_modules/@alicloud/openapi-core/dist/client.js new file mode 100644 index 0000000..c1c3f0c --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/dist/client.js @@ -0,0 +1,1519 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (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 (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); +}; +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncValues = (this && this.__asyncValues) || function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } +}; +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +const utils_1 = __importDefault(require("./utils")); +const credentials_1 = __importStar(require("@alicloud/credentials")), $Credential = credentials_1; +const $SPI = __importStar(require("@alicloud/gateway-spi")); +exports.$OpenApiUtil = __importStar(require("./utils")); +var utils_2 = require("./utils"); +Object.defineProperty(exports, "OpenApiUtil", { enumerable: true, get: function () { return utils_2.default; } }); +const $_error = __importStar(require("./exceptions/error")); +__exportStar(require("./exceptions/error"), exports); +const $_model = __importStar(require("./models/model")); +__exportStar(require("./models/model"), exports); +class Client { + /** + * @remarks + * Init client with Config + * + * @param config - config contains the necessary information to create a client + */ + constructor(config) { + if ($dara.isNull(config)) { + throw new $_error.ClientError({ + code: "ParameterMissing", + message: "'config' can not be unset", + }); + } + if ((!$dara.isNull(config.accessKeyId) && config.accessKeyId != "") && (!$dara.isNull(config.accessKeySecret) && config.accessKeySecret != "")) { + if (!$dara.isNull(config.securityToken) && config.securityToken != "") { + config.type = "sts"; + } + else { + config.type = "access_key"; + } + let credentialConfig = new $Credential.Config({ + accessKeyId: config.accessKeyId, + type: config.type, + accessKeySecret: config.accessKeySecret, + }); + credentialConfig.securityToken = config.securityToken; + this._credential = new credentials_1.default(credentialConfig); + } + else if (!$dara.isNull(config.bearerToken) && config.bearerToken != "") { + let cc = new $Credential.Config({ + type: "bearer", + bearerToken: config.bearerToken, + }); + this._credential = new credentials_1.default(cc); + } + else if (!$dara.isNull(config.credential)) { + this._credential = config.credential; + } + this._endpoint = config.endpoint; + this._endpointType = config.endpointType; + this._network = config.network; + this._suffix = config.suffix; + this._protocol = config.protocol; + this._method = config.method; + this._regionId = config.regionId; + this._userAgent = config.userAgent; + this._readTimeout = config.readTimeout; + this._connectTimeout = config.connectTimeout; + this._httpProxy = config.httpProxy; + this._httpsProxy = config.httpsProxy; + this._noProxy = config.noProxy; + this._socks5Proxy = config.socks5Proxy; + this._socks5NetWork = config.socks5NetWork; + this._maxIdleConns = config.maxIdleConns; + this._signatureVersion = config.signatureVersion; + this._signatureAlgorithm = config.signatureAlgorithm; + this._globalParameters = config.globalParameters; + this._key = config.key; + this._cert = config.cert; + this._ca = config.ca; + this._disableHttp2 = config.disableHttp2; + this._retryOptions = config.retryOptions; + this._tlsMinVersion = config.tlsMinVersion; + } + /** + * @remarks + * Encapsulate the request and invoke the network + * + * @param action - api name + * @param version - product version + * @param protocol - http or https + * @param method - e.g. GET + * @param authType - authorization type e.g. AK + * @param bodyType - response body type e.g. String + * @param request - object of OpenApiRequest + * @param runtime - which controls some details of call api, such as retry times + * @returns the response + */ + async doRPCRequest(action, version, protocol, method, authType, bodyType, request, runtime) { + let _runtime = { + key: runtime.key || this._key, + cert: runtime.cert || this._cert, + ca: runtime.ca || this._ca, + readTimeout: runtime.readTimeout || this._readTimeout, + connectTimeout: runtime.connectTimeout || this._connectTimeout, + httpProxy: runtime.httpProxy || this._httpProxy, + httpsProxy: runtime.httpsProxy || this._httpsProxy, + noProxy: runtime.noProxy || this._noProxy, + socks5Proxy: runtime.socks5Proxy || this._socks5Proxy, + socks5NetWork: runtime.socks5NetWork || this._socks5NetWork, + maxIdleConns: runtime.maxIdleConns || this._maxIdleConns, + retryOptions: this._retryOptions, + ignoreSSL: runtime.ignoreSSL, + tlsMinVersion: this._tlsMinVersion, + }; + let _retriesAttempted = 0; + let _lastRequest = null, _lastResponse = null; + let _context = new $dara.RetryPolicyContext({ + retriesAttempted: _retriesAttempted, + }); + while ($dara.shouldRetry(_runtime['retryOptions'], _context)) { + if (_retriesAttempted > 0) { + let _backoffTime = $dara.getBackoffDelay(_runtime['retryOptions'], _context); + if (_backoffTime > 0) { + await $dara.sleep(_backoffTime); + } + } + _retriesAttempted = _retriesAttempted + 1; + try { + let request_ = new $dara.Request(); + request_.protocol = this._protocol || protocol; + request_.method = method; + request_.pathname = "/"; + let globalQueries = {}; + let globalHeaders = {}; + if (!$dara.isNull(this._globalParameters)) { + let globalParams = this._globalParameters; + if (!$dara.isNull(globalParams.queries)) { + globalQueries = globalParams.queries; + } + if (!$dara.isNull(globalParams.headers)) { + globalHeaders = globalParams.headers; + } + } + let extendsHeaders = {}; + let extendsQueries = {}; + if (!$dara.isNull(runtime.extendsParameters)) { + let extendsParameters = runtime.extendsParameters; + if (!$dara.isNull(extendsParameters.headers)) { + extendsHeaders = extendsParameters.headers; + } + if (!$dara.isNull(extendsParameters.queries)) { + extendsQueries = extendsParameters.queries; + } + } + request_.query = Object.assign(Object.assign(Object.assign({ Action: action, Format: "json", Version: version, Timestamp: utils_1.default.getTimestamp(), SignatureNonce: utils_1.default.getNonce() }, globalQueries), extendsQueries), request.query); + let headers = this.getRpcHeaders(); + if ($dara.isNull(headers)) { + // endpoint is setted in product client + request_.headers = Object.assign(Object.assign(Object.assign({ host: this._endpoint, 'x-acs-version': version, 'x-acs-action': action, 'user-agent': utils_1.default.getUserAgent(this._userAgent) }, globalHeaders), extendsHeaders), request.headers); + } + else { + request_.headers = Object.assign(Object.assign(Object.assign(Object.assign({ host: this._endpoint, 'x-acs-version': version, 'x-acs-action': action, 'user-agent': utils_1.default.getUserAgent(this._userAgent) }, globalHeaders), extendsHeaders), request.headers), headers); + } + if (!$dara.isNull(request.body)) { + let m = request.body; + let tmp = utils_1.default.query(m); + request_.body = new $dara.BytesReadable($dara.Form.toFormString(tmp)); + request_.headers["content-type"] = "application/x-www-form-urlencoded"; + } + if (authType != "Anonymous") { + if ($dara.isNull(this._credential)) { + throw new $_error.ClientError({ + code: `InvalidCredentials`, + message: `Please set up the credentials correctly. If you are setting them through environment variables, please ensure that ALIBABA_CLOUD_ACCESS_KEY_ID and ALIBABA_CLOUD_ACCESS_KEY_SECRET are set correctly. See https://help.aliyun.com/zh/sdk/developer-reference/configure-the-alibaba-cloud-accesskey-environment-variable-on-linux-macos-and-windows-systems for more details.`, + }); + } + let credentialModel = await this._credential.getCredential(); + if (!$dara.isNull(credentialModel.providerName)) { + request_.headers["x-acs-credentials-provider"] = credentialModel.providerName; + } + let credentialType = credentialModel.type; + if (credentialType == "bearer") { + let bearerToken = credentialModel.bearerToken; + request_.query["BearerToken"] = bearerToken; + request_.query["SignatureType"] = "BEARERTOKEN"; + } + else if (credentialType == "id_token") { + let idToken = credentialModel.securityToken; + request_.headers["x-acs-zero-trust-idtoken"] = idToken; + } + else { + let accessKeyId = credentialModel.accessKeyId; + let accessKeySecret = credentialModel.accessKeySecret; + let securityToken = credentialModel.securityToken; + if (!$dara.isNull(securityToken) && securityToken != "") { + request_.query["SecurityToken"] = securityToken; + } + request_.query["SignatureMethod"] = "HMAC-SHA1"; + request_.query["SignatureVersion"] = "1.0"; + request_.query["AccessKeyId"] = accessKeyId; + let t = null; + if (!$dara.isNull(request.body)) { + t = request.body; + } + let signedParam = Object.assign(Object.assign({}, request_.query), utils_1.default.query(t)); + request_.query["Signature"] = utils_1.default.getRPCSignature(signedParam, request_.method, accessKeySecret); + } + } + _lastRequest = request_; + let response_ = await $dara.doAction(request_, _runtime); + _lastResponse = response_; + if ((response_.statusCode >= 400) && (response_.statusCode < 600)) { + let _res = await $dara.Stream.readAsJSON(response_.body); + let err = _res; + let requestId = err["RequestId"] || err["requestId"]; + let code = err["Code"] || err["code"]; + if ((`${code}` == "Throttling") || (`${code}` == "Throttling.User") || (`${code}` == "Throttling.Api")) { + throw new $_error.ThrottlingError({ + statusCode: response_.statusCode, + code: `${code}`, + message: `code: ${response_.statusCode}, ${err["Message"] || err["message"]} request id: ${requestId}`, + description: `${err["Description"] || err["description"]}`, + retryAfter: utils_1.default.getThrottlingTimeLeft(response_.headers), + data: err, + requestId: `${requestId}`, + }); + } + else if ((response_.statusCode >= 400) && (response_.statusCode < 500)) { + throw new $_error.ClientError({ + statusCode: response_.statusCode, + code: `${code}`, + message: `code: ${response_.statusCode}, ${err["Message"] || err["message"]} request id: ${requestId}`, + description: `${err["Description"] || err["description"]}`, + data: err, + accessDeniedDetail: this.getAccessDeniedDetail(err), + requestId: `${requestId}`, + }); + } + else { + throw new $_error.ServerError({ + statusCode: response_.statusCode, + code: `${code}`, + message: `code: ${response_.statusCode}, ${err["Message"] || err["message"]} request id: ${requestId}`, + description: `${err["Description"] || err["description"]}`, + data: err, + requestId: `${requestId}`, + }); + } + } + if (bodyType == "binary") { + let resp = { + body: response_.body, + headers: response_.headers, + statusCode: response_.statusCode, + }; + return resp; + } + else if (bodyType == "byte") { + let byt = await $dara.Stream.readAsBytes(response_.body); + return { + body: byt, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + else if (bodyType == "string") { + let _str = await $dara.Stream.readAsString(response_.body); + return { + body: _str, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + else if (bodyType == "json") { + let obj = await $dara.Stream.readAsJSON(response_.body); + let res = obj; + return { + body: res, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + else if (bodyType == "array") { + let arr = await $dara.Stream.readAsJSON(response_.body); + return { + body: arr, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + else { + return { + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + } + catch (ex) { + _context = new $dara.RetryPolicyContext({ + retriesAttempted: _retriesAttempted, + httpRequest: _lastRequest, + httpResponse: _lastResponse, + exception: ex, + }); + continue; + } + } + throw $dara.newUnretryableError(_context); + } + /** + * @remarks + * Encapsulate the request and invoke the network + * + * @param action - api name + * @param version - product version + * @param protocol - http or https + * @param method - e.g. GET + * @param authType - authorization type e.g. AK + * @param pathname - pathname of every api + * @param bodyType - response body type e.g. String + * @param request - object of OpenApiRequest + * @param runtime - which controls some details of call api, such as retry times + * @returns the response + */ + async doROARequest(action, version, protocol, method, authType, pathname, bodyType, request, runtime) { + let _runtime = { + key: runtime.key || this._key, + cert: runtime.cert || this._cert, + ca: runtime.ca || this._ca, + readTimeout: runtime.readTimeout || this._readTimeout, + connectTimeout: runtime.connectTimeout || this._connectTimeout, + httpProxy: runtime.httpProxy || this._httpProxy, + httpsProxy: runtime.httpsProxy || this._httpsProxy, + noProxy: runtime.noProxy || this._noProxy, + socks5Proxy: runtime.socks5Proxy || this._socks5Proxy, + socks5NetWork: runtime.socks5NetWork || this._socks5NetWork, + maxIdleConns: runtime.maxIdleConns || this._maxIdleConns, + retryOptions: this._retryOptions, + ignoreSSL: runtime.ignoreSSL, + tlsMinVersion: this._tlsMinVersion, + }; + let _retriesAttempted = 0; + let _lastRequest = null, _lastResponse = null; + let _context = new $dara.RetryPolicyContext({ + retriesAttempted: _retriesAttempted, + }); + while ($dara.shouldRetry(_runtime['retryOptions'], _context)) { + if (_retriesAttempted > 0) { + let _backoffTime = $dara.getBackoffDelay(_runtime['retryOptions'], _context); + if (_backoffTime > 0) { + await $dara.sleep(_backoffTime); + } + } + _retriesAttempted = _retriesAttempted + 1; + try { + let request_ = new $dara.Request(); + request_.protocol = this._protocol || protocol; + request_.method = method; + request_.pathname = pathname; + let globalQueries = {}; + let globalHeaders = {}; + if (!$dara.isNull(this._globalParameters)) { + let globalParams = this._globalParameters; + if (!$dara.isNull(globalParams.queries)) { + globalQueries = globalParams.queries; + } + if (!$dara.isNull(globalParams.headers)) { + globalHeaders = globalParams.headers; + } + } + let extendsHeaders = {}; + let extendsQueries = {}; + if (!$dara.isNull(runtime.extendsParameters)) { + let extendsParameters = runtime.extendsParameters; + if (!$dara.isNull(extendsParameters.headers)) { + extendsHeaders = extendsParameters.headers; + } + if (!$dara.isNull(extendsParameters.queries)) { + extendsQueries = extendsParameters.queries; + } + } + request_.headers = Object.assign(Object.assign(Object.assign({ date: utils_1.default.getDateUTCString(), host: this._endpoint, accept: "application/json", 'x-acs-signature-nonce': utils_1.default.getNonce(), 'x-acs-signature-method': "HMAC-SHA1", 'x-acs-signature-version': "1.0", 'x-acs-version': version, 'x-acs-action': action, 'user-agent': utils_1.default.getUserAgent(this._userAgent) }, globalHeaders), extendsHeaders), request.headers); + if (!$dara.isNull(request.body)) { + request_.body = new $dara.BytesReadable(typeof request.body === "string" ? request.body : JSON.stringify(request.body)); + request_.headers["content-type"] = "application/json; charset=utf-8"; + } + request_.query = Object.assign(Object.assign({}, globalQueries), extendsQueries); + if (!$dara.isNull(request.query)) { + request_.query = Object.assign(Object.assign({}, request_.query), request.query); + } + if (authType != "Anonymous") { + if ($dara.isNull(this._credential)) { + throw new $_error.ClientError({ + code: `InvalidCredentials`, + message: `Please set up the credentials correctly. If you are setting them through environment variables, please ensure that ALIBABA_CLOUD_ACCESS_KEY_ID and ALIBABA_CLOUD_ACCESS_KEY_SECRET are set correctly. See https://help.aliyun.com/zh/sdk/developer-reference/configure-the-alibaba-cloud-accesskey-environment-variable-on-linux-macos-and-windows-systems for more details.`, + }); + } + let credentialModel = await this._credential.getCredential(); + if (!$dara.isNull(credentialModel.providerName)) { + request_.headers["x-acs-credentials-provider"] = credentialModel.providerName; + } + let credentialType = credentialModel.type; + if (credentialType == "bearer") { + let bearerToken = credentialModel.bearerToken; + request_.headers["x-acs-bearer-token"] = bearerToken; + request_.headers["x-acs-signature-type"] = "BEARERTOKEN"; + } + else if (credentialType == "id_token") { + let idToken = credentialModel.securityToken; + request_.headers["x-acs-zero-trust-idtoken"] = idToken; + } + else { + let accessKeyId = credentialModel.accessKeyId; + let accessKeySecret = credentialModel.accessKeySecret; + let securityToken = credentialModel.securityToken; + if (!$dara.isNull(securityToken) && securityToken != "") { + request_.headers["x-acs-accesskey-id"] = accessKeyId; + request_.headers["x-acs-security-token"] = securityToken; + } + let stringToSign = utils_1.default.getStringToSign(request_); + request_.headers["authorization"] = `acs ${accessKeyId}:${utils_1.default.getROASignature(stringToSign, accessKeySecret)}`; + } + } + _lastRequest = request_; + let response_ = await $dara.doAction(request_, _runtime); + _lastResponse = response_; + if (response_.statusCode == 204) { + return { + headers: response_.headers, + }; + } + if ((response_.statusCode >= 400) && (response_.statusCode < 600)) { + let _res = await $dara.Stream.readAsJSON(response_.body); + let err = _res; + let requestId = err["RequestId"] || err["requestId"]; + requestId = requestId || err["requestid"]; + let code = err["Code"] || err["code"]; + if ((`${code}` == "Throttling") || (`${code}` == "Throttling.User") || (`${code}` == "Throttling.Api")) { + throw new $_error.ThrottlingError({ + statusCode: response_.statusCode, + code: `${code}`, + message: `code: ${response_.statusCode}, ${err["Message"] || err["message"]} request id: ${requestId}`, + description: `${err["Description"] || err["description"]}`, + retryAfter: utils_1.default.getThrottlingTimeLeft(response_.headers), + data: err, + requestId: `${requestId}`, + }); + } + else if ((response_.statusCode >= 400) && (response_.statusCode < 500)) { + throw new $_error.ClientError({ + statusCode: response_.statusCode, + code: `${code}`, + message: `code: ${response_.statusCode}, ${err["Message"] || err["message"]} request id: ${requestId}`, + description: `${err["Description"] || err["description"]}`, + data: err, + accessDeniedDetail: this.getAccessDeniedDetail(err), + requestId: `${requestId}`, + }); + } + else { + throw new $_error.ServerError({ + statusCode: response_.statusCode, + code: `${code}`, + message: `code: ${response_.statusCode}, ${err["Message"] || err["message"]} request id: ${requestId}`, + description: `${err["Description"] || err["description"]}`, + data: err, + requestId: `${requestId}`, + }); + } + } + if (bodyType == "binary") { + let resp = { + body: response_.body, + headers: response_.headers, + statusCode: response_.statusCode, + }; + return resp; + } + else if (bodyType == "byte") { + let byt = await $dara.Stream.readAsBytes(response_.body); + return { + body: byt, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + else if (bodyType == "string") { + let _str = await $dara.Stream.readAsString(response_.body); + return { + body: _str, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + else if (bodyType == "json") { + let obj = await $dara.Stream.readAsJSON(response_.body); + let res = obj; + return { + body: res, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + else if (bodyType == "array") { + let arr = await $dara.Stream.readAsJSON(response_.body); + return { + body: arr, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + else { + return { + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + } + catch (ex) { + _context = new $dara.RetryPolicyContext({ + retriesAttempted: _retriesAttempted, + httpRequest: _lastRequest, + httpResponse: _lastResponse, + exception: ex, + }); + continue; + } + } + throw $dara.newUnretryableError(_context); + } + /** + * @remarks + * Encapsulate the request and invoke the network with form body + * + * @param action - api name + * @param version - product version + * @param protocol - http or https + * @param method - e.g. GET + * @param authType - authorization type e.g. AK + * @param pathname - pathname of every api + * @param bodyType - response body type e.g. String + * @param request - object of OpenApiRequest + * @param runtime - which controls some details of call api, such as retry times + * @returns the response + */ + async doROARequestWithForm(action, version, protocol, method, authType, pathname, bodyType, request, runtime) { + let _runtime = { + key: runtime.key || this._key, + cert: runtime.cert || this._cert, + ca: runtime.ca || this._ca, + readTimeout: runtime.readTimeout || this._readTimeout, + connectTimeout: runtime.connectTimeout || this._connectTimeout, + httpProxy: runtime.httpProxy || this._httpProxy, + httpsProxy: runtime.httpsProxy || this._httpsProxy, + noProxy: runtime.noProxy || this._noProxy, + socks5Proxy: runtime.socks5Proxy || this._socks5Proxy, + socks5NetWork: runtime.socks5NetWork || this._socks5NetWork, + maxIdleConns: runtime.maxIdleConns || this._maxIdleConns, + retryOptions: this._retryOptions, + ignoreSSL: runtime.ignoreSSL, + tlsMinVersion: this._tlsMinVersion, + }; + let _retriesAttempted = 0; + let _lastRequest = null, _lastResponse = null; + let _context = new $dara.RetryPolicyContext({ + retriesAttempted: _retriesAttempted, + }); + while ($dara.shouldRetry(_runtime['retryOptions'], _context)) { + if (_retriesAttempted > 0) { + let _backoffTime = $dara.getBackoffDelay(_runtime['retryOptions'], _context); + if (_backoffTime > 0) { + await $dara.sleep(_backoffTime); + } + } + _retriesAttempted = _retriesAttempted + 1; + try { + let request_ = new $dara.Request(); + request_.protocol = this._protocol || protocol; + request_.method = method; + request_.pathname = pathname; + let globalQueries = {}; + let globalHeaders = {}; + if (!$dara.isNull(this._globalParameters)) { + let globalParams = this._globalParameters; + if (!$dara.isNull(globalParams.queries)) { + globalQueries = globalParams.queries; + } + if (!$dara.isNull(globalParams.headers)) { + globalHeaders = globalParams.headers; + } + } + let extendsHeaders = {}; + let extendsQueries = {}; + if (!$dara.isNull(runtime.extendsParameters)) { + let extendsParameters = runtime.extendsParameters; + if (!$dara.isNull(extendsParameters.headers)) { + extendsHeaders = extendsParameters.headers; + } + if (!$dara.isNull(extendsParameters.queries)) { + extendsQueries = extendsParameters.queries; + } + } + request_.headers = Object.assign(Object.assign(Object.assign({ date: utils_1.default.getDateUTCString(), host: this._endpoint, accept: "application/json", 'x-acs-signature-nonce': utils_1.default.getNonce(), 'x-acs-signature-method': "HMAC-SHA1", 'x-acs-signature-version': "1.0", 'x-acs-version': version, 'x-acs-action': action, 'user-agent': utils_1.default.getUserAgent(this._userAgent) }, globalHeaders), extendsHeaders), request.headers); + if (!$dara.isNull(request.body)) { + let m = request.body; + request_.body = new $dara.BytesReadable(utils_1.default.toForm(m)); + request_.headers["content-type"] = "application/x-www-form-urlencoded"; + } + request_.query = Object.assign(Object.assign({}, globalQueries), extendsQueries); + if (!$dara.isNull(request.query)) { + request_.query = Object.assign(Object.assign({}, request_.query), request.query); + } + if (authType != "Anonymous") { + if ($dara.isNull(this._credential)) { + throw new $_error.ClientError({ + code: `InvalidCredentials`, + message: `Please set up the credentials correctly. If you are setting them through environment variables, please ensure that ALIBABA_CLOUD_ACCESS_KEY_ID and ALIBABA_CLOUD_ACCESS_KEY_SECRET are set correctly. See https://help.aliyun.com/zh/sdk/developer-reference/configure-the-alibaba-cloud-accesskey-environment-variable-on-linux-macos-and-windows-systems for more details.`, + }); + } + let credentialModel = await this._credential.getCredential(); + if (!$dara.isNull(credentialModel.providerName)) { + request_.headers["x-acs-credentials-provider"] = credentialModel.providerName; + } + let credentialType = credentialModel.type; + if (credentialType == "bearer") { + let bearerToken = credentialModel.bearerToken; + request_.headers["x-acs-bearer-token"] = bearerToken; + request_.headers["x-acs-signature-type"] = "BEARERTOKEN"; + } + else if (credentialType == "id_token") { + let idToken = credentialModel.securityToken; + request_.headers["x-acs-zero-trust-idtoken"] = idToken; + } + else { + let accessKeyId = credentialModel.accessKeyId; + let accessKeySecret = credentialModel.accessKeySecret; + let securityToken = credentialModel.securityToken; + if (!$dara.isNull(securityToken) && securityToken != "") { + request_.headers["x-acs-accesskey-id"] = accessKeyId; + request_.headers["x-acs-security-token"] = securityToken; + } + let stringToSign = utils_1.default.getStringToSign(request_); + request_.headers["authorization"] = `acs ${accessKeyId}:${utils_1.default.getROASignature(stringToSign, accessKeySecret)}`; + } + } + _lastRequest = request_; + let response_ = await $dara.doAction(request_, _runtime); + _lastResponse = response_; + if (response_.statusCode == 204) { + return { + headers: response_.headers, + }; + } + if ((response_.statusCode >= 400) && (response_.statusCode < 600)) { + let _res = await $dara.Stream.readAsJSON(response_.body); + let err = _res; + let requestId = err["RequestId"] || err["requestId"]; + let code = err["Code"] || err["code"]; + if ((`${code}` == "Throttling") || (`${code}` == "Throttling.User") || (`${code}` == "Throttling.Api")) { + throw new $_error.ThrottlingError({ + statusCode: response_.statusCode, + code: `${code}`, + message: `code: ${response_.statusCode}, ${err["Message"] || err["message"]} request id: ${requestId}`, + description: `${err["Description"] || err["description"]}`, + retryAfter: utils_1.default.getThrottlingTimeLeft(response_.headers), + data: err, + requestId: `${requestId}`, + }); + } + else if ((response_.statusCode >= 400) && (response_.statusCode < 500)) { + throw new $_error.ClientError({ + statusCode: response_.statusCode, + code: `${code}`, + message: `code: ${response_.statusCode}, ${err["Message"] || err["message"]} request id: ${requestId}`, + description: `${err["Description"] || err["description"]}`, + data: err, + accessDeniedDetail: this.getAccessDeniedDetail(err), + requestId: `${requestId}`, + }); + } + else { + throw new $_error.ServerError({ + statusCode: response_.statusCode, + code: `${code}`, + message: `code: ${response_.statusCode}, ${err["Message"] || err["message"]} request id: ${requestId}`, + description: `${err["Description"] || err["description"]}`, + data: err, + requestId: `${requestId}`, + }); + } + } + if (bodyType == "binary") { + let resp = { + body: response_.body, + headers: response_.headers, + statusCode: response_.statusCode, + }; + return resp; + } + else if (bodyType == "byte") { + let byt = await $dara.Stream.readAsBytes(response_.body); + return { + body: byt, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + else if (bodyType == "string") { + let _str = await $dara.Stream.readAsString(response_.body); + return { + body: _str, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + else if (bodyType == "json") { + let obj = await $dara.Stream.readAsJSON(response_.body); + let res = obj; + return { + body: res, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + else if (bodyType == "array") { + let arr = await $dara.Stream.readAsJSON(response_.body); + return { + body: arr, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + else { + return { + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + } + catch (ex) { + _context = new $dara.RetryPolicyContext({ + retriesAttempted: _retriesAttempted, + httpRequest: _lastRequest, + httpResponse: _lastResponse, + exception: ex, + }); + continue; + } + } + throw $dara.newUnretryableError(_context); + } + /** + * @remarks + * Encapsulate the request and invoke the network + * + * @param action - api name + * @param version - product version + * @param protocol - http or https + * @param method - e.g. GET + * @param authType - authorization type e.g. AK + * @param bodyType - response body type e.g. String + * @param request - object of OpenApiRequest + * @param runtime - which controls some details of call api, such as retry times + * @returns the response + */ + async doRequest(params, request, runtime) { + let _runtime = { + key: runtime.key || this._key, + cert: runtime.cert || this._cert, + ca: runtime.ca || this._ca, + readTimeout: runtime.readTimeout || this._readTimeout, + connectTimeout: runtime.connectTimeout || this._connectTimeout, + httpProxy: runtime.httpProxy || this._httpProxy, + httpsProxy: runtime.httpsProxy || this._httpsProxy, + noProxy: runtime.noProxy || this._noProxy, + socks5Proxy: runtime.socks5Proxy || this._socks5Proxy, + socks5NetWork: runtime.socks5NetWork || this._socks5NetWork, + maxIdleConns: runtime.maxIdleConns || this._maxIdleConns, + retryOptions: this._retryOptions, + ignoreSSL: runtime.ignoreSSL, + tlsMinVersion: this._tlsMinVersion, + }; + let _retriesAttempted = 0; + let _lastRequest = null, _lastResponse = null; + let _context = new $dara.RetryPolicyContext({ + retriesAttempted: _retriesAttempted, + }); + while ($dara.shouldRetry(_runtime['retryOptions'], _context)) { + if (_retriesAttempted > 0) { + let _backoffTime = $dara.getBackoffDelay(_runtime['retryOptions'], _context); + if (_backoffTime > 0) { + await $dara.sleep(_backoffTime); + } + } + _retriesAttempted = _retriesAttempted + 1; + try { + let request_ = new $dara.Request(); + request_.protocol = this._protocol || params.protocol; + request_.method = params.method; + request_.pathname = params.pathname; + let globalQueries = {}; + let globalHeaders = {}; + if (!$dara.isNull(this._globalParameters)) { + let globalParams = this._globalParameters; + if (!$dara.isNull(globalParams.queries)) { + globalQueries = globalParams.queries; + } + if (!$dara.isNull(globalParams.headers)) { + globalHeaders = globalParams.headers; + } + } + let extendsHeaders = {}; + let extendsQueries = {}; + if (!$dara.isNull(runtime.extendsParameters)) { + let extendsParameters = runtime.extendsParameters; + if (!$dara.isNull(extendsParameters.headers)) { + extendsHeaders = extendsParameters.headers; + } + if (!$dara.isNull(extendsParameters.queries)) { + extendsQueries = extendsParameters.queries; + } + } + request_.query = Object.assign(Object.assign(Object.assign({}, globalQueries), extendsQueries), request.query); + // endpoint is setted in product client + request_.headers = Object.assign(Object.assign(Object.assign({ host: this._endpoint, 'x-acs-version': params.version, 'x-acs-action': params.action, 'user-agent': utils_1.default.getUserAgent(this._userAgent), 'x-acs-date': utils_1.default.getTimestamp(), 'x-acs-signature-nonce': utils_1.default.getNonce(), accept: "application/json" }, globalHeaders), extendsHeaders), request.headers); + if (params.style == "RPC") { + let headers = this.getRpcHeaders(); + if (!$dara.isNull(headers)) { + request_.headers = Object.assign(Object.assign({}, request_.headers), headers); + } + } + let signatureAlgorithm = this._signatureAlgorithm || "ACS3-HMAC-SHA256"; + let hashedRequestPayload = utils_1.default.hash(Buffer.from("", "utf-8"), signatureAlgorithm); + if (!$dara.isNull(request.stream)) { + let tmp = await $dara.Stream.readAsBytes(request.stream); + hashedRequestPayload = utils_1.default.hash(tmp, signatureAlgorithm); + request_.body = new $dara.BytesReadable(tmp); + request_.headers["content-type"] = "application/octet-stream"; + } + else { + if (!$dara.isNull(request.body)) { + if (params.reqBodyType == "byte") { + let byteObj = Buffer.from(request.body); + hashedRequestPayload = utils_1.default.hash(byteObj, signatureAlgorithm); + request_.body = new $dara.BytesReadable(byteObj); + } + else if (params.reqBodyType == "json") { + let jsonObj = typeof request.body === "string" ? request.body : JSON.stringify(request.body); + hashedRequestPayload = utils_1.default.hash(Buffer.from(jsonObj, "utf8"), signatureAlgorithm); + request_.body = new $dara.BytesReadable(jsonObj); + request_.headers["content-type"] = "application/json; charset=utf-8"; + } + else { + let m = request.body; + let formObj = utils_1.default.toForm(m); + hashedRequestPayload = utils_1.default.hash(Buffer.from(formObj, "utf8"), signatureAlgorithm); + request_.body = new $dara.BytesReadable(formObj); + request_.headers["content-type"] = "application/x-www-form-urlencoded"; + } + } + } + request_.headers["x-acs-content-sha256"] = hashedRequestPayload.toString("hex"); + if (params.authType != "Anonymous") { + if ($dara.isNull(this._credential)) { + throw new $_error.ClientError({ + code: `InvalidCredentials`, + message: `Please set up the credentials correctly. If you are setting them through environment variables, please ensure that ALIBABA_CLOUD_ACCESS_KEY_ID and ALIBABA_CLOUD_ACCESS_KEY_SECRET are set correctly. See https://help.aliyun.com/zh/sdk/developer-reference/configure-the-alibaba-cloud-accesskey-environment-variable-on-linux-macos-and-windows-systems for more details.`, + }); + } + let credentialModel = await this._credential.getCredential(); + if (!$dara.isNull(credentialModel.providerName)) { + request_.headers["x-acs-credentials-provider"] = credentialModel.providerName; + } + let authType = credentialModel.type; + if (authType == "bearer") { + let bearerToken = credentialModel.bearerToken; + request_.headers["x-acs-bearer-token"] = bearerToken; + if (params.style == "RPC") { + request_.query["SignatureType"] = "BEARERTOKEN"; + } + else { + request_.headers["x-acs-signature-type"] = "BEARERTOKEN"; + } + } + else if (authType == "id_token") { + let idToken = credentialModel.securityToken; + request_.headers["x-acs-zero-trust-idtoken"] = idToken; + } + else { + let accessKeyId = credentialModel.accessKeyId; + let accessKeySecret = credentialModel.accessKeySecret; + let securityToken = credentialModel.securityToken; + if (!$dara.isNull(securityToken) && securityToken != "") { + request_.headers["x-acs-accesskey-id"] = accessKeyId; + request_.headers["x-acs-security-token"] = securityToken; + } + request_.headers["Authorization"] = utils_1.default.getAuthorization(request_, signatureAlgorithm, hashedRequestPayload.toString("hex"), accessKeyId, accessKeySecret); + } + } + _lastRequest = request_; + let response_ = await $dara.doAction(request_, _runtime); + _lastResponse = response_; + if ((response_.statusCode >= 400) && (response_.statusCode < 600)) { + let err = {}; + if (!$dara.isNull(response_.headers["content-type"]) && response_.headers["content-type"] == "text/xml;charset=utf-8") { + let _str = await $dara.Stream.readAsString(response_.body); + let respMap = $dara.XML.parseXml(_str, null); + err = respMap["Error"]; + } + else { + let _res = await $dara.Stream.readAsJSON(response_.body); + err = _res; + } + let requestId = err["RequestId"] || err["requestId"]; + let code = err["Code"] || err["code"]; + if ((`${code}` == "Throttling") || (`${code}` == "Throttling.User") || (`${code}` == "Throttling.Api")) { + throw new $_error.ThrottlingError({ + statusCode: response_.statusCode, + code: `${code}`, + message: `code: ${response_.statusCode}, ${err["Message"] || err["message"]} request id: ${requestId}`, + description: `${err["Description"] || err["description"]}`, + retryAfter: utils_1.default.getThrottlingTimeLeft(response_.headers), + data: err, + requestId: `${requestId}`, + }); + } + else if ((response_.statusCode >= 400) && (response_.statusCode < 500)) { + throw new $_error.ClientError({ + statusCode: response_.statusCode, + code: `${code}`, + message: `code: ${response_.statusCode}, ${err["Message"] || err["message"]} request id: ${requestId}`, + description: `${err["Description"] || err["description"]}`, + data: err, + accessDeniedDetail: this.getAccessDeniedDetail(err), + requestId: `${requestId}`, + }); + } + else { + throw new $_error.ServerError({ + statusCode: response_.statusCode, + code: `${code}`, + message: `code: ${response_.statusCode}, ${err["Message"] || err["message"]} request id: ${requestId}`, + description: `${err["Description"] || err["description"]}`, + data: err, + requestId: `${requestId}`, + }); + } + } + if (params.bodyType == "binary") { + let resp = { + body: response_.body, + headers: response_.headers, + statusCode: response_.statusCode, + }; + return resp; + } + else if (params.bodyType == "byte") { + let byt = await $dara.Stream.readAsBytes(response_.body); + return { + body: byt, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + else if (params.bodyType == "string") { + let respStr = await $dara.Stream.readAsString(response_.body); + return { + body: respStr, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + else if (params.bodyType == "json") { + let obj = await $dara.Stream.readAsJSON(response_.body); + let res = obj; + return { + body: res, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + else if (params.bodyType == "array") { + let arr = await $dara.Stream.readAsJSON(response_.body); + return { + body: arr, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + else { + let anything = await $dara.Stream.readAsString(response_.body); + return { + body: anything, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + } + catch (ex) { + _context = new $dara.RetryPolicyContext({ + retriesAttempted: _retriesAttempted, + httpRequest: _lastRequest, + httpResponse: _lastResponse, + exception: ex, + }); + continue; + } + } + throw $dara.newUnretryableError(_context); + } + /** + * @remarks + * Encapsulate the request and invoke the network + * + * @param action - api name + * @param version - product version + * @param protocol - http or https + * @param method - e.g. GET + * @param authType - authorization type e.g. AK + * @param bodyType - response body type e.g. String + * @param request - object of OpenApiRequest + * @param runtime - which controls some details of call api, such as retry times + * @returns the response + */ + async execute(params, request, runtime) { + let _runtime = { + key: runtime.key || this._key, + cert: runtime.cert || this._cert, + ca: runtime.ca || this._ca, + readTimeout: runtime.readTimeout || this._readTimeout, + connectTimeout: runtime.connectTimeout || this._connectTimeout, + httpProxy: runtime.httpProxy || this._httpProxy, + httpsProxy: runtime.httpsProxy || this._httpsProxy, + noProxy: runtime.noProxy || this._noProxy, + socks5Proxy: runtime.socks5Proxy || this._socks5Proxy, + socks5NetWork: runtime.socks5NetWork || this._socks5NetWork, + maxIdleConns: runtime.maxIdleConns || this._maxIdleConns, + retryOptions: this._retryOptions, + ignoreSSL: runtime.ignoreSSL, + tlsMinVersion: this._tlsMinVersion, + disableHttp2: this._disableHttp2 || false, + }; + let _retriesAttempted = 0; + let _lastRequest = null, _lastResponse = null; + let _context = new $dara.RetryPolicyContext({ + retriesAttempted: _retriesAttempted, + }); + while ($dara.shouldRetry(_runtime['retryOptions'], _context)) { + if (_retriesAttempted > 0) { + let _backoffTime = $dara.getBackoffDelay(_runtime['retryOptions'], _context); + if (_backoffTime > 0) { + await $dara.sleep(_backoffTime); + } + } + _retriesAttempted = _retriesAttempted + 1; + try { + let request_ = new $dara.Request(); + // spi = new Gateway();//Gateway implements SPI,这一步在产品 SDK 中实例化 + let headers = this.getRpcHeaders(); + let globalQueries = {}; + let globalHeaders = {}; + if (!$dara.isNull(this._globalParameters)) { + let globalParams = this._globalParameters; + if (!$dara.isNull(globalParams.queries)) { + globalQueries = globalParams.queries; + } + if (!$dara.isNull(globalParams.headers)) { + globalHeaders = globalParams.headers; + } + } + let extendsHeaders = {}; + let extendsQueries = {}; + if (!$dara.isNull(runtime.extendsParameters)) { + let extendsParameters = runtime.extendsParameters; + if (!$dara.isNull(extendsParameters.headers)) { + extendsHeaders = extendsParameters.headers; + } + if (!$dara.isNull(extendsParameters.queries)) { + extendsQueries = extendsParameters.queries; + } + } + let requestContext = new $SPI.InterceptorContextRequest({ + headers: Object.assign(Object.assign(Object.assign(Object.assign({}, globalHeaders), extendsHeaders), request.headers), headers), + query: Object.assign(Object.assign(Object.assign({}, globalQueries), extendsQueries), request.query), + body: request.body, + stream: request.stream, + hostMap: request.hostMap, + pathname: params.pathname, + productId: this._productId, + action: params.action, + version: params.version, + protocol: this._protocol || params.protocol, + method: this._method || params.method, + authType: params.authType, + bodyType: params.bodyType, + reqBodyType: params.reqBodyType, + style: params.style, + credential: this._credential, + signatureVersion: this._signatureVersion, + signatureAlgorithm: this._signatureAlgorithm, + userAgent: utils_1.default.getUserAgent(this._userAgent), + }); + let configurationContext = new $SPI.InterceptorContextConfiguration({ + regionId: this._regionId, + endpoint: request.endpointOverride || this._endpoint, + endpointRule: this._endpointRule, + endpointMap: this._endpointMap, + endpointType: this._endpointType, + network: this._network, + suffix: this._suffix, + }); + let interceptorContext = new $SPI.InterceptorContext({ + request: requestContext, + configuration: configurationContext, + }); + let attributeMap = new $SPI.AttributeMap({}); + if (!$dara.isNull(this._attributeMap)) { + attributeMap = this._attributeMap; + } + // 1. spi.modifyConfiguration(context: SPI.InterceptorContext, attributeMap: SPI.AttributeMap); + await this._spi.modifyConfiguration(interceptorContext, attributeMap); + // 2. spi.modifyRequest(context: SPI.InterceptorContext, attributeMap: SPI.AttributeMap); + await this._spi.modifyRequest(interceptorContext, attributeMap); + request_.protocol = interceptorContext.request.protocol; + request_.method = interceptorContext.request.method; + request_.pathname = interceptorContext.request.pathname; + request_.query = interceptorContext.request.query; + request_.body = interceptorContext.request.stream; + request_.headers = interceptorContext.request.headers; + _lastRequest = request_; + let response_ = await $dara.doAction(request_, _runtime); + _lastResponse = response_; + let responseContext = new $SPI.InterceptorContextResponse({ + statusCode: response_.statusCode, + headers: response_.headers, + body: response_.body, + }); + interceptorContext.response = responseContext; + // 3. spi.modifyResponse(context: SPI.InterceptorContext, attributeMap: SPI.AttributeMap); + await this._spi.modifyResponse(interceptorContext, attributeMap); + return { + headers: interceptorContext.response.headers, + statusCode: interceptorContext.response.statusCode, + body: interceptorContext.response.deserializedBody, + }; + } + catch (ex) { + _context = new $dara.RetryPolicyContext({ + retriesAttempted: _retriesAttempted, + httpRequest: _lastRequest, + httpResponse: _lastResponse, + exception: ex, + }); + continue; + } + } + throw $dara.newUnretryableError(_context); + } + callSSEApi(params, request, runtime) { + return __asyncGenerator(this, arguments, function* callSSEApi_1() { + var e_1, _a; + let _runtime = { + key: runtime.key || this._key, + cert: runtime.cert || this._cert, + ca: runtime.ca || this._ca, + readTimeout: runtime.readTimeout || this._readTimeout, + connectTimeout: runtime.connectTimeout || this._connectTimeout, + httpProxy: runtime.httpProxy || this._httpProxy, + httpsProxy: runtime.httpsProxy || this._httpsProxy, + noProxy: runtime.noProxy || this._noProxy, + socks5Proxy: runtime.socks5Proxy || this._socks5Proxy, + socks5NetWork: runtime.socks5NetWork || this._socks5NetWork, + maxIdleConns: runtime.maxIdleConns || this._maxIdleConns, + retryOptions: this._retryOptions, + ignoreSSL: runtime.ignoreSSL, + tlsMinVersion: this._tlsMinVersion, + }; + let _retriesAttempted = 0; + let _lastRequest = null, _lastResponse = null; + let _context = new $dara.RetryPolicyContext({ + retriesAttempted: _retriesAttempted, + }); + while ($dara.shouldRetry(_runtime['retryOptions'], _context)) { + if (_retriesAttempted > 0) { + let _backoffTime = $dara.getBackoffDelay(_runtime['retryOptions'], _context); + if (_backoffTime > 0) { + yield __await($dara.sleep(_backoffTime)); + } + } + _retriesAttempted = _retriesAttempted + 1; + try { + let request_ = new $dara.Request(); + request_.protocol = this._protocol || params.protocol; + request_.method = params.method; + request_.pathname = params.pathname; + let globalQueries = {}; + let globalHeaders = {}; + if (!$dara.isNull(this._globalParameters)) { + let globalParams = this._globalParameters; + if (!$dara.isNull(globalParams.queries)) { + globalQueries = globalParams.queries; + } + if (!$dara.isNull(globalParams.headers)) { + globalHeaders = globalParams.headers; + } + } + let extendsHeaders = {}; + let extendsQueries = {}; + if (!$dara.isNull(runtime.extendsParameters)) { + let extendsParameters = runtime.extendsParameters; + if (!$dara.isNull(extendsParameters.headers)) { + extendsHeaders = extendsParameters.headers; + } + if (!$dara.isNull(extendsParameters.queries)) { + extendsQueries = extendsParameters.queries; + } + } + request_.query = Object.assign(Object.assign(Object.assign({}, globalQueries), extendsQueries), request.query); + // endpoint is setted in product client + request_.headers = Object.assign(Object.assign(Object.assign({ host: this._endpoint, 'x-acs-version': params.version, 'x-acs-action': params.action, 'user-agent': utils_1.default.getUserAgent(this._userAgent), 'x-acs-date': utils_1.default.getTimestamp(), 'x-acs-signature-nonce': utils_1.default.getNonce(), accept: "application/json" }, extendsHeaders), globalHeaders), request.headers); + if (params.style == "RPC") { + let headers = this.getRpcHeaders(); + if (!$dara.isNull(headers)) { + request_.headers = Object.assign(Object.assign({}, request_.headers), headers); + } + } + let signatureAlgorithm = this._signatureAlgorithm || "ACS3-HMAC-SHA256"; + let hashedRequestPayload = utils_1.default.hash(Buffer.from("", "utf-8"), signatureAlgorithm); + if (!$dara.isNull(request.stream)) { + let tmp = yield __await($dara.Stream.readAsBytes(request.stream)); + hashedRequestPayload = utils_1.default.hash(tmp, signatureAlgorithm); + request_.body = new $dara.BytesReadable(tmp); + request_.headers["content-type"] = "application/octet-stream"; + } + else { + if (!$dara.isNull(request.body)) { + if (params.reqBodyType == "byte") { + let byteObj = Buffer.from(request.body); + hashedRequestPayload = utils_1.default.hash(byteObj, signatureAlgorithm); + request_.body = new $dara.BytesReadable(byteObj); + } + else if (params.reqBodyType == "json") { + let jsonObj = typeof request.body === "string" ? request.body : JSON.stringify(request.body); + hashedRequestPayload = utils_1.default.hash(Buffer.from(jsonObj, "utf8"), signatureAlgorithm); + request_.body = new $dara.BytesReadable(jsonObj); + request_.headers["content-type"] = "application/json; charset=utf-8"; + } + else { + let m = request.body; + let formObj = utils_1.default.toForm(m); + hashedRequestPayload = utils_1.default.hash(Buffer.from(formObj, "utf8"), signatureAlgorithm); + request_.body = new $dara.BytesReadable(formObj); + request_.headers["content-type"] = "application/x-www-form-urlencoded"; + } + } + } + request_.headers["x-acs-content-sha256"] = hashedRequestPayload.toString("hex"); + if (params.authType != "Anonymous") { + let credentialModel = yield __await(this._credential.getCredential()); + if (!$dara.isNull(credentialModel.providerName)) { + request_.headers["x-acs-credentials-provider"] = credentialModel.providerName; + } + let authType = credentialModel.type; + if (authType == "bearer") { + let bearerToken = credentialModel.bearerToken; + request_.headers["x-acs-bearer-token"] = bearerToken; + } + else if (authType == "id_token") { + let idToken = credentialModel.securityToken; + request_.headers["x-acs-zero-trust-idtoken"] = idToken; + } + else { + let accessKeyId = credentialModel.accessKeyId; + let accessKeySecret = credentialModel.accessKeySecret; + let securityToken = credentialModel.securityToken; + if (!$dara.isNull(securityToken) && securityToken != "") { + request_.headers["x-acs-accesskey-id"] = accessKeyId; + request_.headers["x-acs-security-token"] = securityToken; + } + request_.headers["Authorization"] = utils_1.default.getAuthorization(request_, signatureAlgorithm, hashedRequestPayload.toString("hex"), accessKeyId, accessKeySecret); + } + } + _lastRequest = request_; + let response_ = yield __await($dara.doAction(request_, _runtime)); + _lastResponse = response_; + if ((response_.statusCode >= 400) && (response_.statusCode < 600)) { + let err = {}; + if (!$dara.isNull(response_.headers["content-type"]) && response_.headers["content-type"] == "text/xml;charset=utf-8") { + let _str = yield __await($dara.Stream.readAsString(response_.body)); + let respMap = $dara.XML.parseXml(_str, null); + err = respMap["Error"]; + } + else { + let _res = yield __await($dara.Stream.readAsJSON(response_.body)); + err = _res; + } + err["statusCode"] = response_.statusCode; + throw $dara.newError({ + code: `${err["Code"] || err["code"]}`, + message: `code: ${response_.statusCode}, ${err["Message"] || err["message"]} request id: ${err["RequestId"] || err["requestId"]}`, + data: err, + description: `${err["Description"] || err["description"]}`, + accessDeniedDetail: err["AccessDeniedDetail"] || err["accessDeniedDetail"], + }); + } + let events = yield __await($dara.Stream.readAsSSE(response_.body)); + try { + for (var events_1 = (e_1 = void 0, __asyncValues(events)), events_1_1; events_1_1 = yield __await(events_1.next()), !events_1_1.done;) { + let event = events_1_1.value; + yield yield __await(new $_model.SSEResponse({ + statusCode: response_.statusCode, + headers: response_.headers, + event: event, + })); + } + } + catch (e_1_1) { e_1 = { error: e_1_1 }; } + finally { + try { + if (events_1_1 && !events_1_1.done && (_a = events_1.return)) yield __await(_a.call(events_1)); + } + finally { if (e_1) throw e_1.error; } + } + return yield __await(null); + } + catch (ex) { + _context = new $dara.RetryPolicyContext({ + retriesAttempted: _retriesAttempted, + httpRequest: _lastRequest, + httpResponse: _lastResponse, + exception: ex, + }); + continue; + } + } + throw $dara.newUnretryableError(_context); + }); + } + async callApi(params, request, runtime) { + if ($dara.isNull(params)) { + throw new $_error.ClientError({ + code: "ParameterMissing", + message: "'params' can not be unset", + }); + } + if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") { + if ($dara.isNull(this._signatureAlgorithm) || this._signatureAlgorithm != "v2") { + return await this.doRequest(params, request, runtime); + } + else if ((params.style == "ROA") && (params.reqBodyType == "json")) { + return await this.doROARequest(params.action, params.version, params.protocol, params.method, params.authType, params.pathname, params.bodyType, request, runtime); + } + else if (params.style == "ROA") { + return await this.doROARequestWithForm(params.action, params.version, params.protocol, params.method, params.authType, params.pathname, params.bodyType, request, runtime); + } + else { + return await this.doRPCRequest(params.action, params.version, params.protocol, params.method, params.authType, params.bodyType, request, runtime); + } + } + else { + return await this.execute(params, request, runtime); + } + } + /** + * @remarks + * Get accesskey id by using credential + * @returns accesskey id + */ + async getAccessKeyId() { + if ($dara.isNull(this._credential)) { + return ""; + } + let accessKeyId = await this._credential.getAccessKeyId(); + return accessKeyId; + } + /** + * @remarks + * Get accesskey secret by using credential + * @returns accesskey secret + */ + async getAccessKeySecret() { + if ($dara.isNull(this._credential)) { + return ""; + } + let secret = await this._credential.getAccessKeySecret(); + return secret; + } + /** + * @remarks + * Get security token by using credential + * @returns security token + */ + async getSecurityToken() { + if ($dara.isNull(this._credential)) { + return ""; + } + let token = await this._credential.getSecurityToken(); + return token; + } + /** + * @remarks + * Get bearer token by credential + * @returns bearer token + */ + async getBearerToken() { + if ($dara.isNull(this._credential)) { + return ""; + } + let token = this._credential.getBearerToken(); + return token; + } + /** + * @remarks + * Get credential type by credential + * @returns credential type e.g. access_key + */ + async getType() { + if ($dara.isNull(this._credential)) { + return ""; + } + let authType = this._credential.getType(); + return authType; + } + /** + * @remarks + * If the endpointRule and config.endpoint are empty, throw error + * + * @param config - config contains the necessary information to create a client + */ + checkConfig(config) { + if ($dara.isNull(this._endpointRule) && $dara.isNull(config.endpoint)) { + throw new $_error.ClientError({ + code: "ParameterMissing", + message: "'config.endpoint' can not be empty", + }); + } + } + /** + * @remarks + * set gateway client + * + * @param spi - . + */ + setGatewayClient(spi) { + this._spi = spi; + } + /** + * @remarks + * set RPC header for debug + * + * @param headers - headers for debug, this header can be used only once. + */ + setRpcHeaders(headers) { + this._headers = headers; + } + /** + * @remarks + * get RPC header for debug + */ + getRpcHeaders() { + let headers = this._headers; + this._headers = null; + return headers; + } + getAccessDeniedDetail(err) { + let accessDeniedDetail = null; + if (!$dara.isNull(err["AccessDeniedDetail"])) { + let detail1 = err["AccessDeniedDetail"]; + accessDeniedDetail = detail1; + } + else if (!$dara.isNull(err["accessDeniedDetail"])) { + let detail2 = err["accessDeniedDetail"]; + accessDeniedDetail = detail2; + } + return accessDeniedDetail; + } +} +exports.default = Client; +//# sourceMappingURL=client.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/openapi-core/dist/client.js.map b/backend/node_modules/@alicloud/openapi-core/dist/client.js.map new file mode 100644 index 0000000..4e58387 --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/dist/client.js.map @@ -0,0 +1 @@ +{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,oDAAqD;AACrD,kGAAiE;AACjE,4DAAmD;AAGnD,wDAAwC;AACxC,iCAAiD;AAAxC,oGAAA,OAAO,OAAe;AAE/B,4DAA8C;AAC9C,qDAAmC;AACnC,wDAA0C;AAC1C,iDAA+B;AAE/B,MAAqB,MAAM;IAmCzB;;;;;OAKG;IACH,YAAY,MAA2B;QACrC,IAAI,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE;YACxB,MAAM,IAAI,OAAO,CAAC,WAAW,CAAC;gBAC5B,IAAI,EAAE,kBAAkB;gBACxB,OAAO,EAAE,2BAA2B;aACrC,CAAC,CAAC;SACJ;QAED,IAAI,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,MAAM,CAAC,WAAW,IAAI,EAAE,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,IAAI,MAAM,CAAC,eAAe,IAAI,EAAE,CAAC,EAAE;YAC9I,IAA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AC,QAAQ,CAAC;QACvD,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,qBAAqB,CAAC,GAA0B;QAC9C,IAAI,kBAAkB,GAA2B,IAAI,CAAC;QACtD,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC,EAAE;YAC5C,IAAI,OAAO,GAAG,GAAG,CAAC,oBAAoB,CAAC,CAAC;YACxC,kBAAkB,GAAG,OAAO,CAAC;SAC9B;aAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC,EAAE;YACnD,IAAI,OAAO,GAAG,GAAG,CAAC,oBAAoB,CAAC,CAAC;YACxC,kBAAkB,GAAG,OAAO,CAAC;SAC9B;QAED,OAAO,kBAAkB,CAAC;IAC5B,CAAC;CAEF;AAjpDD,yBAipDC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/openapi-core/dist/exceptions/AlibabaCloudError.d.ts b/backend/node_modules/@alicloud/openapi-core/dist/exceptions/AlibabaCloudError.d.ts new file mode 100644 index 0000000..51c7155 --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/dist/exceptions/AlibabaCloudError.d.ts @@ -0,0 +1,11 @@ +import * as $dara from '@darabonba/typescript'; +export declare class AlibabaCloudError extends $dara.ResponseError { + statusCode?: number; + code: string; + message: string; + description?: string; + requestId?: string; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/openapi-core/dist/exceptions/AlibabaCloudError.js b/backend/node_modules/@alicloud/openapi-core/dist/exceptions/AlibabaCloudError.js new file mode 100644 index 0000000..4a15032 --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/dist/exceptions/AlibabaCloudError.js @@ -0,0 +1,37 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (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 (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AlibabaCloudError = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +class AlibabaCloudError extends $dara.ResponseError { + constructor(map) { + super(map); + this.name = "AlibabaCloudError"; + Object.setPrototypeOf(this, AlibabaCloudError.prototype); + this.statusCode = map.statusCode; + this.code = map.code; + this.description = map.description; + this.requestId = map.requestId; + } +} +exports.AlibabaCloudError = AlibabaCloudError; +//# sourceMappingURL=AlibabaCloudError.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/openapi-core/dist/exceptions/AlibabaCloudError.js.map b/backend/node_modules/@alicloud/openapi-core/dist/exceptions/AlibabaCloudError.js.map new file mode 100644 index 0000000..38f661c --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/dist/exceptions/AlibabaCloudError.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AlibabaCloudError.js","sourceRoot":"","sources":["../../src/exceptions/AlibabaCloudError.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,iBAAkB,SAAQ,KAAK,CAAC,aAAa;IAOxD,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAC;QAChC,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAC;QACzD,IAAI,CAAC,UAAU,GAAG,GAAG,CAAC,UAAU,CAAC;QACjC,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;QACrB,IAAI,CAAC,WAAW,GAAG,GAAG,CAAC,WAAW,CAAC;QACnC,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;IACjC,CAAC;CACF;AAhBD,8CAgBC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/openapi-core/dist/exceptions/ClientError.d.ts b/backend/node_modules/@alicloud/openapi-core/dist/exceptions/ClientError.d.ts new file mode 100644 index 0000000..963a070 --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/dist/exceptions/ClientError.d.ts @@ -0,0 +1,9 @@ +import { AlibabaCloudError } from "./AlibabaCloudError"; +export declare class ClientError extends AlibabaCloudError { + accessDeniedDetail?: { + [key: string]: any; + }; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/openapi-core/dist/exceptions/ClientError.js b/backend/node_modules/@alicloud/openapi-core/dist/exceptions/ClientError.js new file mode 100644 index 0000000..e8f7568 --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/dist/exceptions/ClientError.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ClientError = void 0; +const AlibabaCloudError_1 = require("./AlibabaCloudError"); +class ClientError extends AlibabaCloudError_1.AlibabaCloudError { + constructor(map) { + super(map); + this.name = "ClientError"; + Object.setPrototypeOf(this, ClientError.prototype); + this.accessDeniedDetail = map.accessDeniedDetail; + } +} +exports.ClientError = ClientError; +//# sourceMappingURL=ClientError.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/openapi-core/dist/exceptions/ClientError.js.map b/backend/node_modules/@alicloud/openapi-core/dist/exceptions/ClientError.js.map new file mode 100644 index 0000000..351aba5 --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/dist/exceptions/ClientError.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ClientError.js","sourceRoot":"","sources":["../../src/exceptions/ClientError.ts"],"names":[],"mappings":";;;AAEA,2DAAwD;AAGxD,MAAa,WAAY,SAAQ,qCAAiB;IAGhD,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC;QAC1B,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;QACnD,IAAI,CAAC,kBAAkB,GAAG,GAAG,CAAC,kBAAkB,CAAC;IACnD,CAAC;CACF;AATD,kCASC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/openapi-core/dist/exceptions/ServerError.d.ts b/backend/node_modules/@alicloud/openapi-core/dist/exceptions/ServerError.d.ts new file mode 100644 index 0000000..9e8eb00 --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/dist/exceptions/ServerError.d.ts @@ -0,0 +1,6 @@ +import { AlibabaCloudError } from "./AlibabaCloudError"; +export declare class ServerError extends AlibabaCloudError { + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/openapi-core/dist/exceptions/ServerError.js b/backend/node_modules/@alicloud/openapi-core/dist/exceptions/ServerError.js new file mode 100644 index 0000000..c373421 --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/dist/exceptions/ServerError.js @@ -0,0 +1,13 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ServerError = void 0; +const AlibabaCloudError_1 = require("./AlibabaCloudError"); +class ServerError extends AlibabaCloudError_1.AlibabaCloudError { + constructor(map) { + super(map); + this.name = "ServerError"; + Object.setPrototypeOf(this, ServerError.prototype); + } +} +exports.ServerError = ServerError; +//# sourceMappingURL=ServerError.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/openapi-core/dist/exceptions/ServerError.js.map b/backend/node_modules/@alicloud/openapi-core/dist/exceptions/ServerError.js.map new file mode 100644 index 0000000..3613cf2 --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/dist/exceptions/ServerError.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ServerError.js","sourceRoot":"","sources":["../../src/exceptions/ServerError.ts"],"names":[],"mappings":";;;AAEA,2DAAwD;AAGxD,MAAa,WAAY,SAAQ,qCAAiB;IAEhD,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC;QAC1B,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACrD,CAAC;CACF;AAPD,kCAOC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/openapi-core/dist/exceptions/ThrottlingError.d.ts b/backend/node_modules/@alicloud/openapi-core/dist/exceptions/ThrottlingError.d.ts new file mode 100644 index 0000000..c881921 --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/dist/exceptions/ThrottlingError.d.ts @@ -0,0 +1,7 @@ +import { AlibabaCloudError } from "./AlibabaCloudError"; +export declare class ThrottlingError extends AlibabaCloudError { + retryAfter?: number; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/openapi-core/dist/exceptions/ThrottlingError.js b/backend/node_modules/@alicloud/openapi-core/dist/exceptions/ThrottlingError.js new file mode 100644 index 0000000..d388af2 --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/dist/exceptions/ThrottlingError.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ThrottlingError = void 0; +const AlibabaCloudError_1 = require("./AlibabaCloudError"); +class ThrottlingError extends AlibabaCloudError_1.AlibabaCloudError { + constructor(map) { + super(map); + this.name = "ThrottlingError"; + Object.setPrototypeOf(this, ThrottlingError.prototype); + this.retryAfter = map.retryAfter; + } +} +exports.ThrottlingError = ThrottlingError; +//# sourceMappingURL=ThrottlingError.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/openapi-core/dist/exceptions/ThrottlingError.js.map b/backend/node_modules/@alicloud/openapi-core/dist/exceptions/ThrottlingError.js.map new file mode 100644 index 0000000..bdcfc87 --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/dist/exceptions/ThrottlingError.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ThrottlingError.js","sourceRoot":"","sources":["../../src/exceptions/ThrottlingError.ts"],"names":[],"mappings":";;;AAEA,2DAAwD;AAGxD,MAAa,eAAgB,SAAQ,qCAAiB;IAGpD,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC;QAC9B,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;QACvD,IAAI,CAAC,UAAU,GAAG,GAAG,CAAC,UAAU,CAAC;IACnC,CAAC;CACF;AATD,0CASC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/openapi-core/dist/exceptions/error.d.ts b/backend/node_modules/@alicloud/openapi-core/dist/exceptions/error.d.ts new file mode 100644 index 0000000..a8eb171 --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/dist/exceptions/error.d.ts @@ -0,0 +1,4 @@ +export { AlibabaCloudError } from './AlibabaCloudError'; +export { ClientError } from './ClientError'; +export { ServerError } from './ServerError'; +export { ThrottlingError } from './ThrottlingError'; diff --git a/backend/node_modules/@alicloud/openapi-core/dist/exceptions/error.js b/backend/node_modules/@alicloud/openapi-core/dist/exceptions/error.js new file mode 100644 index 0000000..f1cce5d --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/dist/exceptions/error.js @@ -0,0 +1,11 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var AlibabaCloudError_1 = require("./AlibabaCloudError"); +Object.defineProperty(exports, "AlibabaCloudError", { enumerable: true, get: function () { return AlibabaCloudError_1.AlibabaCloudError; } }); +var ClientError_1 = require("./ClientError"); +Object.defineProperty(exports, "ClientError", { enumerable: true, get: function () { return ClientError_1.ClientError; } }); +var ServerError_1 = require("./ServerError"); +Object.defineProperty(exports, "ServerError", { enumerable: true, get: function () { return ServerError_1.ServerError; } }); +var ThrottlingError_1 = require("./ThrottlingError"); +Object.defineProperty(exports, "ThrottlingError", { enumerable: true, get: function () { return ThrottlingError_1.ThrottlingError; } }); +//# sourceMappingURL=error.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/openapi-core/dist/exceptions/error.js.map b/backend/node_modules/@alicloud/openapi-core/dist/exceptions/error.js.map new file mode 100644 index 0000000..a5a2fd6 --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/dist/exceptions/error.js.map @@ -0,0 +1 @@ +{"version":3,"file":"error.js","sourceRoot":"","sources":["../../src/exceptions/error.ts"],"names":[],"mappings":";;AAAA,yDAAwD;AAA/C,sHAAA,iBAAiB,OAAA;AAC1B,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,qDAAoD;AAA3C,kHAAA,eAAe,OAAA"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/openapi-core/dist/models/Sseresponse.d.ts b/backend/node_modules/@alicloud/openapi-core/dist/models/Sseresponse.d.ts new file mode 100644 index 0000000..7cdcf15 --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/dist/models/Sseresponse.d.ts @@ -0,0 +1,26 @@ +import * as $dara from '@darabonba/typescript'; +/** + * @remarks + * This is for OpenApi SDK + */ +export declare class SSEResponse extends $dara.Model { + headers: { + [key: string]: string; + }; + /** + * @remarks + * HTTP Status Code + */ + statusCode: number; + event: $dara.SSEEvent; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + validate(): void; + constructor(map?: { + [key: string]: any; + }); +} diff --git a/backend/node_modules/@alicloud/openapi-core/dist/models/Sseresponse.js b/backend/node_modules/@alicloud/openapi-core/dist/models/Sseresponse.js new file mode 100644 index 0000000..dfa056c --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/dist/models/Sseresponse.js @@ -0,0 +1,58 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (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 (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SSEResponse = void 0; +// This file is auto-generated, don't edit it +const $dara = __importStar(require("@darabonba/typescript")); +/** + * @remarks + * This is for OpenApi SDK + */ +class SSEResponse extends $dara.Model { + constructor(map) { + super(map); + } + static names() { + return { + headers: 'headers', + statusCode: 'statusCode', + event: 'event', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + event: $dara.SSEEvent, + }; + } + validate() { + if (this.headers) { + $dara.Model.validateMap(this.headers); + } + $dara.Model.validateRequired("headers", this.headers); + $dara.Model.validateRequired("statusCode", this.statusCode); + $dara.Model.validateRequired("event", this.event); + super.validate(); + } +} +exports.SSEResponse = SSEResponse; +//# sourceMappingURL=Sseresponse.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/openapi-core/dist/models/Sseresponse.js.map b/backend/node_modules/@alicloud/openapi-core/dist/models/Sseresponse.js.map new file mode 100644 index 0000000..f392f48 --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/dist/models/Sseresponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Sseresponse.js","sourceRoot":"","sources":["../../src/models/Sseresponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C;;;GAGG;AACH,MAAa,WAAY,SAAQ,KAAK,CAAC,KAAK;IAkC1C,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;IA5BD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,KAAK,EAAE,KAAK,CAAC,QAAQ;SACtB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE;YACf,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;SACvC;QACD,KAAK,CAAC,KAAK,CAAC,gBAAgB,CAAC,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACtD,KAAK,CAAC,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;QAC5D,KAAK,CAAC,KAAK,CAAC,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QAClD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;CAKF;AArCD,kCAqCC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/openapi-core/dist/models/model.d.ts b/backend/node_modules/@alicloud/openapi-core/dist/models/model.d.ts new file mode 100644 index 0000000..3e7cbc7 --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/dist/models/model.d.ts @@ -0,0 +1 @@ +export { SSEResponse } from './Sseresponse'; diff --git a/backend/node_modules/@alicloud/openapi-core/dist/models/model.js b/backend/node_modules/@alicloud/openapi-core/dist/models/model.js new file mode 100644 index 0000000..f75aed7 --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/dist/models/model.js @@ -0,0 +1,5 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var Sseresponse_1 = require("./Sseresponse"); +Object.defineProperty(exports, "SSEResponse", { enumerable: true, get: function () { return Sseresponse_1.SSEResponse; } }); +//# sourceMappingURL=model.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/openapi-core/dist/models/model.js.map b/backend/node_modules/@alicloud/openapi-core/dist/models/model.js.map new file mode 100644 index 0000000..6e3aa26 --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/dist/models/model.js.map @@ -0,0 +1 @@ +{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/models/model.ts"],"names":[],"mappings":";;AAAA,6CAA4C;AAAnC,0GAAA,WAAW,OAAA"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/openapi-core/dist/utils.d.ts b/backend/node_modules/@alicloud/openapi-core/dist/utils.d.ts new file mode 100644 index 0000000..a15e7b1 --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/dist/utils.d.ts @@ -0,0 +1,446 @@ +/// +/** + * This is for OpenApi Util + */ +import * as $tea from '@alicloud/tea-typescript'; +import * as $dara from '@darabonba/typescript'; +import Credential from '@alicloud/credentials'; +import { Readable } from 'stream'; +export declare class GlobalParameters extends $tea.Model { + headers?: { + [key: string]: string; + }; + queries?: { + [key: string]: string; + }; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + constructor(map?: { + [key: string]: any; + }); +} +/** + * @remarks + * Model for initing client + */ +export declare class Config extends $tea.Model { + /** + * @remarks + * accesskey id + */ + accessKeyId?: string; + /** + * @remarks + * accesskey secret + */ + accessKeySecret?: string; + /** + * @remarks + * security token + */ + securityToken?: string; + /** + * @remarks + * bearer token + * + * @example + * the-bearer-token + */ + bearerToken?: string; + /** + * @remarks + * http protocol + * + * @example + * http + */ + protocol?: string; + /** + * @remarks + * http method + * + * @example + * GET + */ + method?: string; + /** + * @remarks + * region id + * + * @example + * cn-hangzhou + */ + regionId?: string; + /** + * @remarks + * read timeout + * + * @example + * 10 + */ + readTimeout?: number; + /** + * @remarks + * connect timeout + * + * @example + * 10 + */ + connectTimeout?: number; + /** + * @remarks + * http proxy + * + * @example + * http://localhost + */ + httpProxy?: string; + /** + * @remarks + * https proxy + * + * @example + * https://localhost + */ + httpsProxy?: string; + /** + * @remarks + * credential + */ + credential?: Credential; + /** + * @remarks + * endpoint + * + * @example + * cs.aliyuncs.com + */ + endpoint?: string; + /** + * @remarks + * proxy white list + * + * @example + * http://localhost + */ + noProxy?: string; + /** + * @remarks + * max idle conns + * + * @example + * 3 + */ + maxIdleConns?: number; + /** + * @remarks + * network for endpoint + * + * @example + * public + */ + network?: string; + /** + * @remarks + * user agent + * + * @example + * Alibabacloud/1 + */ + userAgent?: string; + /** + * @remarks + * suffix for endpoint + * + * @example + * aliyun + */ + suffix?: string; + /** + * @remarks + * socks5 proxy + */ + socks5Proxy?: string; + /** + * @remarks + * socks5 network + * + * @example + * TCP + */ + socks5NetWork?: string; + /** + * @remarks + * endpoint type + * + * @example + * internal + */ + endpointType?: string; + /** + * @remarks + * OpenPlatform endpoint + * + * @example + * openplatform.aliyuncs.com + */ + openPlatformEndpoint?: string; + /** + * @remarks + * credential type + * + * @example + * access_key + * + * @deprecated + */ + type?: string; + /** + * @remarks + * Signature Version + * + * @example + * v1 + */ + signatureVersion?: string; + /** + * @remarks + * Signature Algorithm + * + * @example + * ACS3-HMAC-SHA256 + */ + signatureAlgorithm?: string; + /** + * @remarks + * Global Parameters + */ + globalParameters?: GlobalParameters; + /** + * @remarks + * privite key for client certificate + * + * @example + * MIIEvQ + */ + key?: string; + /** + * @remarks + * client certificate + * + * @example + * -----BEGIN CERTIFICATE----- + * xxx-----END CERTIFICATE----- + */ + cert?: string; + /** + * @remarks + * server certificate + * + * @example + * -----BEGIN CERTIFICATE----- + * xxx-----END CERTIFICATE----- + */ + ca?: string; + /** + * @remarks + * disable HTTP/2 + * + * @example + * false + */ + disableHttp2?: boolean; + tlsMinVersion?: string; + /** + * @remarks + * retry options + */ + retryOptions?: $dara.RetryOptions; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + constructor(map?: { + [key: string]: any; + }); +} +export declare class OpenApiRequest extends $tea.Model { + headers?: { + [key: string]: string; + }; + query?: { + [key: string]: string; + }; + body?: any; + stream?: Readable; + hostMap?: { + [key: string]: string; + }; + endpointOverride?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + constructor(map?: { + [key: string]: any; + }); +} +export declare class Params extends $tea.Model { + action: string; + version: string; + protocol: string; + pathname: string; + method: string; + authType: string; + bodyType: string; + reqBodyType: string; + style?: string; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + constructor(map?: { + [key: string]: any; + }); +} +export default class Client { + /** + * Convert all params of body other than type of readable into content + * @param body source Model + * @param content target Model + * @return void + */ + static convert(input: $tea.Model, output: $tea.Model): void; + /** + * If endpointType is internal, use internal endpoint + * If serverUse is true and endpointType is accelerate, use accelerate endpoint + * Default return endpoint + * @param serverUse whether use accelerate endpoint + * @param endpointType value must be internal or accelerate + * @return the final endpoint + */ + static getEndpoint(endpoint: string, serverUse: boolean, endpointType: string): string; + /** + * Get throttling param + * @param the response headers + * @return time left + */ + static getThrottlingTimeLeft(headers: { + [key: string]: string; + }): number; + /** + * Hash the raw data with signatureAlgorithm + * @param raw hashing data + * @param signatureAlgorithm the autograph method + * @return hashed bytes + */ + static hash(raw: Buffer, signatureAlgorithm: string): Buffer; + /** + * Generate a nonce string + * @return the nonce string + */ + static getNonce(): string; + /** + * Get the string to be signed according to request + * @param request which contains signed messages + * @return the signed string + */ + static getStringToSign(request: $tea.Request): string; + /** + * Get signature according to stringToSign, secret + * @param stringToSign the signed string + * @param secret accesskey secret + * @return the signature + */ + static getROASignature(stringToSign: string, secret: string): string; + /** + * Parse filter into a form string + * @param filter object + * @return the string + */ + static toForm(filter: { + [key: string]: any; + }): string; + /** + * Get timestamp + * @return the timestamp string + */ + static getTimestamp(): string; + /** + * Get UTC string + * @return the UTC string + */ + static getDateUTCString(): string; + /** + * Parse filter into a object which's type is map[string]string + * @param filter query param + * @return the object + */ + static query(filter: { + [key: string]: any; + }): { + [key: string]: string; + }; + /** + * Get signature according to signedParams, method and secret + * @param signedParams params which need to be signed + * @param method http method e.g. GET + * @param secret AccessKeySecret + * @return the signature + */ + static getRPCSignature(signedParams: { + [key: string]: string; + }, method: string, secret: string): string; + /** + * Parse array into a string with specified style + * @param array the array + * @param prefix the prefix string + * @style specified style e.g. repeatList + * @return the string + */ + static arrayToStringWithSpecifiedStyle(array: any, prefix: string, style: string): string; + static stringifyMapValue(m: { + [key: string]: any; + }): { + [key: string]: string; + }; + static toArray(input: any): { + [key: string]: any; + }[]; + static getEndpointRules(product: string, regionId: string, endpointType: string, network: string, suffix: string): string; + /** + * Transform input as map. + */ + static parseToMap(input: any): { + [key: string]: any; + }; + /** + * Get the authorization + * @param request request params + * @param signatureAlgorithm the autograph method + * @param payload the hashed request + * @param accessKey the accessKey string + * @param accessKeySecret the accessKeySecret string + * @return authorization string + */ + static getAuthorization(request: $tea.Request, signatureAlgorithm: string, payload: string, accessKey: string, accessKeySecret: string): string; + static getUserAgent(userAgent: string): string; + static signatureMethod(secret: string, source: string, signatureAlgorithm: string): Buffer; + /** + * Transform a map to a flat style map where keys are prefixed with length info. + * Map keys are transformed from "key" to "#length#key" format. + * @param input the input object (can be an object, array, or primitive type) + * @return the transformed object + */ + static mapToFlatStyle(input: any): any; +} diff --git a/backend/node_modules/@alicloud/openapi-core/dist/utils.js b/backend/node_modules/@alicloud/openapi-core/dist/utils.js new file mode 100644 index 0000000..1ff5bf2 --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/dist/utils.js @@ -0,0 +1,818 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (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 (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Params = exports.OpenApiRequest = exports.Config = exports.GlobalParameters = void 0; +// This file is auto-generated, don't edit it +/** + * This is for OpenApi Util + */ +const $tea = __importStar(require("@alicloud/tea-typescript")); +const $dara = __importStar(require("@darabonba/typescript")); +const credentials_1 = __importDefault(require("@alicloud/credentials")); +const querystring_1 = __importDefault(require("querystring")); +const crypto_1 = __importDefault(require("crypto")); +const os_1 = __importDefault(require("os")); +const PEM_BEGIN = "-----BEGIN PRIVATE KEY-----\n"; +const PEM_END = "\n-----END PRIVATE KEY-----"; +const DEFAULT_USER_AGENT = `AlibabaCloud (${os_1.default.platform()}; ${os_1.default.arch()}) Node.js/${process.version} Core/1.0.1 TeaDSL/2`; +class GlobalParameters extends $tea.Model { + constructor(map) { + super(map); + } + static names() { + return { + headers: 'headers', + queries: 'queries', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + queries: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + }; + } +} +exports.GlobalParameters = GlobalParameters; +/** + * @remarks + * Model for initing client + */ +class Config extends $tea.Model { + constructor(map) { + super(map); + } + static names() { + return { + accessKeyId: 'accessKeyId', + accessKeySecret: 'accessKeySecret', + securityToken: 'securityToken', + bearerToken: 'bearerToken', + protocol: 'protocol', + method: 'method', + regionId: 'regionId', + readTimeout: 'readTimeout', + connectTimeout: 'connectTimeout', + httpProxy: 'httpProxy', + httpsProxy: 'httpsProxy', + credential: 'credential', + endpoint: 'endpoint', + noProxy: 'noProxy', + maxIdleConns: 'maxIdleConns', + network: 'network', + userAgent: 'userAgent', + suffix: 'suffix', + socks5Proxy: 'socks5Proxy', + socks5NetWork: 'socks5NetWork', + endpointType: 'endpointType', + openPlatformEndpoint: 'openPlatformEndpoint', + type: 'type', + signatureVersion: 'signatureVersion', + signatureAlgorithm: 'signatureAlgorithm', + globalParameters: 'globalParameters', + key: 'key', + cert: 'cert', + ca: 'ca', + disableHttp2: 'disableHttp2', + tlsMinVersion: 'tlsMinVersion', + retryOptions: 'retryOptions', + }; + } + static types() { + return { + accessKeyId: 'string', + accessKeySecret: 'string', + securityToken: 'string', + bearerToken: 'string', + protocol: 'string', + method: 'string', + regionId: 'string', + readTimeout: 'number', + connectTimeout: 'number', + httpProxy: 'string', + httpsProxy: 'string', + credential: credentials_1.default, + endpoint: 'string', + noProxy: 'string', + maxIdleConns: 'number', + network: 'string', + userAgent: 'string', + suffix: 'string', + socks5Proxy: 'string', + socks5NetWork: 'string', + endpointType: 'string', + openPlatformEndpoint: 'string', + type: 'string', + signatureVersion: 'string', + signatureAlgorithm: 'string', + globalParameters: GlobalParameters, + key: 'string', + cert: 'string', + ca: 'string', + disableHttp2: 'boolean', + tlsMinVersion: 'string', + retryOptions: $dara.RetryOptions, + }; + } +} +exports.Config = Config; +class OpenApiRequest extends $tea.Model { + constructor(map) { + super(map); + } + static names() { + return { + headers: 'headers', + query: 'query', + body: 'body', + stream: 'stream', + hostMap: 'hostMap', + endpointOverride: 'endpointOverride', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + query: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + body: 'any', + stream: 'Readable', + hostMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + endpointOverride: 'string', + }; + } +} +exports.OpenApiRequest = OpenApiRequest; +class Params extends $tea.Model { + constructor(map) { + super(map); + } + static names() { + return { + action: 'action', + version: 'version', + protocol: 'protocol', + pathname: 'pathname', + method: 'method', + authType: 'authType', + bodyType: 'bodyType', + reqBodyType: 'reqBodyType', + style: 'style', + }; + } + static types() { + return { + action: 'string', + version: 'string', + protocol: 'string', + pathname: 'string', + method: 'string', + authType: 'string', + bodyType: 'string', + reqBodyType: 'string', + style: 'string', + }; + } +} +exports.Params = Params; +function replaceRepeatList(target, repeat, prefix) { + if (prefix) { + prefix = prefix + '.'; + } + for (var i = 0; i < repeat.length; i++) { + var item = repeat[i]; + let key = prefix + (i + 1); + if (typeof item === 'undefined' || item == null) { + continue; + } + if (Array.isArray(item)) { + replaceRepeatList(target, item, key); + } + else if (item instanceof Object) { + flatMap(target, item, key); + } + else { + target[key] = item.toString(); + } + } +} +function flatMap(target, params, prefix = '') { + if (prefix) { + prefix = prefix + '.'; + } + params = toMap(params); + let keys = Object.keys(params); + for (let i = 0; i < keys.length; i++) { + let key = keys[i]; + let value = params[key]; + key = prefix + key; + if (typeof value === 'undefined' || value == null) { + continue; + } + if (Array.isArray(value)) { + replaceRepeatList(target, value, key); + } + else if (value instanceof Object) { + flatMap(target, value, key); + } + else { + target[key] = value.toString(); + } + } + return target; +} +function filter(value) { + return value.replace(/[\t\n\r\f]/g, ' '); +} +function getCanonicalizedHeaders(headers) { + const prefix = 'x-acs-'; + const keys = Object.keys(headers); + const canonicalizedKeys = []; + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; + if (key.startsWith(prefix)) { + canonicalizedKeys.push(key); + } + } + canonicalizedKeys.sort(); + var result = ''; + for (let i = 0; i < canonicalizedKeys.length; i++) { + const key = canonicalizedKeys[i]; + result += `${key}:${filter(headers[key]).trim()}\n`; + } + return result; +} +function getCanonicalizedResource(uriPattern, query) { + const keys = !query ? [] : Object.keys(query).sort(); + if (keys.length === 0) { + return uriPattern; + } + var result = []; + for (var i = 0; i < keys.length; i++) { + const key = keys[i]; + result.push(`${key}=${query[key]}`); + } + return `${uriPattern}?${result.join('&')}`; +} +function getAuthorizationQueryString(query) { + let canonicalQueryArray = []; + const keys = !query ? [] : Object.keys(query).sort(); + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; + let param = key + '='; + if (typeof query[key] !== 'undefined' && query[key] !== null) { + param = param + encode(query[key]); + } + canonicalQueryArray.push(param); + } + return canonicalQueryArray.join('&'); +} +function getAuthorizationHeaders(header) { + let canonicalheaders = ""; + let tmp = {}; + const keys = !header ? [] : Object.keys(header); + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; + const lowerKey = keys[i].toLowerCase(); + if (lowerKey.startsWith("x-acs-") || lowerKey === "host" || lowerKey === "content-type") { + if (tmp[lowerKey]) { + tmp[lowerKey].push((header[key] || "").trim()); + } + else { + tmp[lowerKey] = [(header[key] || "").trim()]; + } + } + } + var hsKeys = Object.keys(tmp).sort(); + for (let i = 0; i < hsKeys.length; i++) { + const hsKey = hsKeys[i]; + let listSort = tmp[hsKey].sort(); + canonicalheaders += `${hsKey}:${listSort.join(",")}\n`; + } + return { canonicalheaders, hsKeys }; +} +function encode(str) { + var result = encodeURIComponent(str); + return result.replace(/!/g, '%21') + .replace(/'/g, '%27') + .replace(/\(/g, '%28') + .replace(/\)/g, '%29') + .replace(/\*/g, '%2A'); +} +function normalize(params) { + var list = []; + var flated = {}; + flatMap(flated, params); + var keys = Object.keys(flated).sort(); + for (let i = 0; i < keys.length; i++) { + var key = keys[i]; + var value = flated[key]; + list.push([encode(key), encode(value)]); + } + return list; +} +function canonicalize(normalized) { + var fields = []; + for (var i = 0; i < normalized.length; i++) { + var [key, value] = normalized[i]; + fields.push(key + '=' + value); + } + return fields.join('&'); +} +function isModelClass(t) { + if (!t) { + return false; + } + return typeof t.types === 'function' && typeof t.names === 'function'; +} +function isObjectOrArray(t) { + return Array.isArray(t) || (t instanceof Object && typeof t !== 'function'); +} +function getTimeLeft(rateLimit) { + if (rateLimit) { + const pairs = rateLimit.split(','); + for (const pair of pairs) { + const kv = pair.split(':'); + if (kv.length === 2) { + const key = kv[0].trim(); + const value = kv[1].trim(); + if (key === 'TimeLeft') { + const timeLeftValue = parseInt(value, 10); + if (isNaN(timeLeftValue)) { + return null; + } + return timeLeftValue; + } + } + } + } + return null; +} +function toMap(input) { + if (!isObjectOrArray(input)) { + return null; + } + else if (input instanceof $tea.Model) { + return $tea.toMap(input); + } + else if (input && input.toMap && typeof input.toMap === 'function') { + // 解决跨版本 Model 不互认的问题 + return input.toMap(); + } + else if (Array.isArray(input)) { + const result = []; + input.forEach((value) => { + if (isObjectOrArray(value)) { + result.push(toMap(value)); + } + else { + result.push(value); + } + }); + return result; + } + else if (input instanceof Object) { + const result = {}; + Object.entries(input).forEach(([key, value]) => { + if (isObjectOrArray(value)) { + result[key] = toMap(value); + } + else { + result[key] = value; + } + }); + return result; + } +} +class Client { + /** + * Convert all params of body other than type of readable into content + * @param body source Model + * @param content target Model + * @return void + */ + static convert(input, output) { + if (!output) { + return; + } + let inputModel = Object.assign({}, input); + let constructor = output.constructor; + let types = constructor.types(); + // let constructor = output.constructor; + for (let key of Object.keys(constructor.names())) { + if (inputModel[key] !== null && inputModel[key] !== undefined) { + if (isModelClass(types[key])) { + output[key] = new types[key](output[key]); + Client.convert(inputModel[key], output[key]); + } + else if (types[key] && types[key].type === 'array') { + output[key] = inputModel[key].map(function (d) { + if (isModelClass(types[key].itemType)) { + var item = new types[key].itemType({}); + Client.convert(d, item); + return item; + } + return d; + }); + } + else if (types[key] && types[key].type === 'map') { + output[key] = {}; + Object.keys(inputModel[key]).map(function (d) { + if (isModelClass(types[key].valueType)) { + var item = new types[key].valueType({}); + Client.convert(inputModel[key][d], item); + output[key][d] = item; + } + else { + output[key][d] = inputModel[key][d]; + } + }); + } + else { + output[key] = inputModel[key]; + } + } + } + } + /** + * If endpointType is internal, use internal endpoint + * If serverUse is true and endpointType is accelerate, use accelerate endpoint + * Default return endpoint + * @param serverUse whether use accelerate endpoint + * @param endpointType value must be internal or accelerate + * @return the final endpoint + */ + static getEndpoint(endpoint, serverUse, endpointType) { + if (endpointType == "internal") { + let strs = endpoint.split("."); + strs[0] += "-internal"; + endpoint = strs.join("."); + } + if (serverUse && endpointType == "accelerate") { + return "oss-accelerate.aliyuncs.com"; + } + return endpoint; + } + /** + * Get throttling param + * @param the response headers + * @return time left + */ + static getThrottlingTimeLeft(headers) { + const rateLimitForUserApi = headers["x-ratelimit-user-api"]; + const rateLimitForUser = headers["x-ratelimit-user"]; + const timeLeftForUserApi = getTimeLeft(rateLimitForUserApi); + const timeLeftForUser = getTimeLeft(rateLimitForUser); + if (timeLeftForUserApi > timeLeftForUser) { + return timeLeftForUserApi; + } + else { + return timeLeftForUser; + } + } + /** + * Hash the raw data with signatureAlgorithm + * @param raw hashing data + * @param signatureAlgorithm the autograph method + * @return hashed bytes + */ + static hash(raw, signatureAlgorithm) { + if (signatureAlgorithm === "ACS3-HMAC-SHA256" || signatureAlgorithm === "ACS3-RSA-SHA256") { + const obj = crypto_1.default.createHash('sha256'); + obj.update(raw); + return obj.digest(); + } + else if (signatureAlgorithm == "ACS3-HMAC-SM3") { + const obj = crypto_1.default.createHash('sm3'); + obj.update(raw); + return obj.digest(); + } + } + /** + * Generate a nonce string + * @return the nonce string + */ + static getNonce() { + let counter = 0; + let last; + const machine = os_1.default.hostname(); + const pid = process.pid; + var val = Math.floor(Math.random() * 1000000000000); + if (val === last) { + counter++; + } + else { + counter = 0; + } + last = val; + var uid = `${machine}${pid}${val}${counter}`; + var shasum = crypto_1.default.createHash('md5'); + shasum.update(uid); + return shasum.digest('hex'); + } + /** + * Get the string to be signed according to request + * @param request which contains signed messages + * @return the signed string + */ + static getStringToSign(request) { + const method = request.method; + const accept = request.headers['accept']; + const contentMD5 = request.headers['content-md5'] || ''; + const contentType = request.headers['content-type'] || ''; + const date = request.headers['date'] || ''; + const header = `${method} +${accept} +${contentMD5} +${contentType} +${date} +`; + const canonicalizedHeaders = getCanonicalizedHeaders(request.headers); + const canonicalizedResource = getCanonicalizedResource(request.pathname, request.query); + return `${header}${canonicalizedHeaders}${canonicalizedResource}`; + } + /** + * Get signature according to stringToSign, secret + * @param stringToSign the signed string + * @param secret accesskey secret + * @return the signature + */ + static getROASignature(stringToSign, secret) { + const utf8Buff = Buffer.from(stringToSign, 'utf8'); + return crypto_1.default.createHmac('sha1', secret).update(utf8Buff).digest('base64'); + } + /** + * Parse filter into a form string + * @param filter object + * @return the string + */ + static toForm(filter) { + if (!filter) { + return ''; + } + let target = {}; + flatMap(target, filter); + return $dara.Form.toFormString(target); + } + /** + * Get timestamp + * @return the timestamp string + */ + static getTimestamp() { + let date = new Date(); + let YYYY = date.getUTCFullYear(); + let MM = `${date.getUTCMonth() + 1}`.padStart(2, '0'); + let DD = `${date.getUTCDate()}`.padStart(2, '0'); + let HH = `${date.getUTCHours()}`.padStart(2, '0'); + let mm = `${date.getUTCMinutes()}`.padStart(2, '0'); + let ss = `${date.getUTCSeconds()}`.padStart(2, '0'); + return `${YYYY}-${MM}-${DD}T${HH}:${mm}:${ss}Z`; + } + /** + * Get UTC string + * @return the UTC string + */ + static getDateUTCString() { + const now = new Date(); + return now.toUTCString(); + } + /** + * Parse filter into a object which's type is map[string]string + * @param filter query param + * @return the object + */ + static query(filter) { + if (!filter) { + return {}; + } + let ret = {}; + flatMap(ret, filter); + return ret; + } + /** + * Get signature according to signedParams, method and secret + * @param signedParams params which need to be signed + * @param method http method e.g. GET + * @param secret AccessKeySecret + * @return the signature + */ + static getRPCSignature(signedParams, method, secret) { + var normalized = normalize(signedParams); + var canonicalized = canonicalize(normalized); + var stringToSign = `${method}&${encode('/')}&${encode(canonicalized)}`; + const key = secret + '&'; + return crypto_1.default.createHmac('sha1', key).update(stringToSign).digest('base64'); + } + /** + * Parse array into a string with specified style + * @param array the array + * @param prefix the prefix string + * @style specified style e.g. repeatList + * @return the string + */ + static arrayToStringWithSpecifiedStyle(array, prefix, style) { + if (!array) { + return ''; + } + if (style === 'repeatList') { + let target = {}; + replaceRepeatList(target, array, prefix); + return querystring_1.default.stringify(target, '&&'); + } + else if (style === 'json') { + return JSON.stringify(toMap(array)); + } + else if (style === 'simple') { + return array.join(','); + } + else if (style === 'spaceDelimited') { + return array.join(' '); + } + else if (style === 'pipeDelimited') { + return array.join('|'); + } + else { + return ''; + } + } + static stringifyMapValue(m) { + if (!m) { + return m; + } + const result = {}; + for (const [key, value] of Object.entries(m)) { + if (typeof value === 'undefined' || value === null) { + continue; + } + result[key] = String(value); + } + return result; + } + static toArray(input) { + if (!(input instanceof Array)) { + return null; + } + let ret = []; + input.forEach((model) => { + if (!model) { + return; + } + ret.push($tea.toMap(model)); + }); + return ret; + } + static getEndpointRules(product, regionId, endpointType, network, suffix) { + let result; + if (network && network.length && network != "public") { + network = "-" + network; + } + else { + network = ""; + } + suffix = suffix || ""; + if (suffix.length) { + suffix = "-" + suffix; + } + if (endpointType == "regional") { + if (!regionId || !regionId.length) { + throw new Error("RegionId is empty, please set a valid RegionId"); + } + result = `${product}${suffix}${network}.${regionId}.aliyuncs.com`; + } + else { + result = `${product}${suffix}${network}.aliyuncs.com`; + } + return result; + } + /** + * Transform input as map. + */ + static parseToMap(input) { + return toMap(input); + } + /** + * Get the authorization + * @param request request params + * @param signatureAlgorithm the autograph method + * @param payload the hashed request + * @param accessKey the accessKey string + * @param accessKeySecret the accessKeySecret string + * @return authorization string + */ + static getAuthorization(request, signatureAlgorithm, payload, accessKey, accessKeySecret) { + const canonicalURI = (request.pathname || "").replace("+", "%20").replace("*", "%2A").replace("%7E", "~"); + const method = request.method; + const canonicalQueryString = getAuthorizationQueryString(request.query); + const tuple = getAuthorizationHeaders(request.headers); + const canonicalheaders = tuple["canonicalheaders"]; + const signedHeaders = tuple["hsKeys"]; + const canonicalRequest = method + "\n" + canonicalURI + "\n" + canonicalQueryString + "\n" + canonicalheaders + "\n" + + signedHeaders.join(";") + "\n" + payload; + let raw = Buffer.from(canonicalRequest); + const stringToSign = signatureAlgorithm + "\n" + Client.hash(raw, signatureAlgorithm).toString("hex"); + const signature = Client.signatureMethod(accessKeySecret, stringToSign, signatureAlgorithm).toString("hex"); + const auth = `${signatureAlgorithm} Credential=${accessKey},SignedHeaders=${signedHeaders.join(';')},Signature=${signature}`; + return auth; + } + static getUserAgent(userAgent) { + if (!userAgent || !userAgent.length) { + return DEFAULT_USER_AGENT; + } + return DEFAULT_USER_AGENT + " " + userAgent; + } + static signatureMethod(secret, source, signatureAlgorithm) { + if (signatureAlgorithm === "ACS3-HMAC-SHA256") { + const obj = crypto_1.default.createHmac('sha256', secret); + obj.update(source); + return obj.digest(); + } + else if (signatureAlgorithm === "ACS3-HMAC-SM3") { + const obj = crypto_1.default.createHmac('sm3', secret); + obj.update(source); + return obj.digest(); + } + else if (signatureAlgorithm === "ACS3-RSA-SHA256") { + if (!secret.startsWith(PEM_BEGIN)) { + secret = PEM_BEGIN + secret; + } + if (!secret.endsWith(PEM_END)) { + secret = secret + PEM_END; + } + var signerObject = crypto_1.default.createSign("RSA-SHA256"); + signerObject.update(source); + var signature = signerObject.sign({ key: secret, padding: crypto_1.default.constants.RSA_PKCS1_PADDING }); + return signature; + } + } + /** + * Transform a map to a flat style map where keys are prefixed with length info. + * Map keys are transformed from "key" to "#length#key" format. + * @param input the input object (can be an object, array, or primitive type) + * @return the transformed object + */ + static mapToFlatStyle(input) { + if (input === null || input === undefined) { + return input; + } + // Handle array + if (Array.isArray(input)) { + const result = []; + for (const item of input) { + result.push(Client.mapToFlatStyle(item)); + } + return result; + } + // Handle $tea.Model + if (input instanceof $tea.Model) { + // Modify the original Model object's fields + for (const [key, value] of Object.entries(input)) { + if (value !== null && value !== undefined && typeof value === 'object' && !Array.isArray(value) && !(value instanceof $tea.Model)) { + // This is a plain object (dictionary), apply flat style to keys + const flatMap = {}; + for (const [nestedKey, nestedValue] of Object.entries(value)) { + const flatKey = `#${nestedKey.length}#${nestedKey}`; + flatMap[flatKey] = Client.mapToFlatStyle(nestedValue); + } + input[key] = flatMap; + } + else { + // Recursively process other fields + input[key] = Client.mapToFlatStyle(value); + } + } + return input; // Return the modified original Model + } + // Handle plain object + if (typeof input === 'object' && !Array.isArray(input)) { + const flatMap = {}; + for (const [key, value] of Object.entries(input)) { + const flatKey = `#${key.length}#${key}`; + flatMap[flatKey] = Client.mapToFlatStyle(value); + } + return flatMap; + } + // For primitive types, return as-is + return input; + } +} +exports.default = Client; +//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/openapi-core/dist/utils.js.map b/backend/node_modules/@alicloud/openapi-core/dist/utils.js.map new file mode 100644 index 0000000..e178b0f --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/dist/utils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C;;GAEG;AACH,+DAAiD;AACjD,6DAA+C;AAC/C,wEAA+C;AAE/C,8DAAsC;AACtC,oDAA4B;AAC5B,4CAAoB;AAGpB,MAAM,SAAS,GAAG,+BAA+B,CAAC;AAClD,MAAM,OAAO,GAAG,6BAA6B,CAAC;AAC9C,MAAM,kBAAkB,GAAG,iBAAiB,YAAE,CAAC,QAAQ,EAAE,KAAK,YAAE,CAAC,IAAI,EAAE,aAAa,OAAO,CAAC,OAAO,sBAAsB,CAAC;AAG1H,MAAa,gBAAiB,SAAQ,IAAI,CAAC,KAAK;IAiB9C,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;IAhBD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAA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pD;aACF;YACD,OAAO,KAAK,CAAC,CAAE,qCAAqC;SACrD;QAED,sBAAsB;QACtB,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YACtD,MAAM,OAAO,GAA2B,EAAE,CAAC;YAC3C,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;gBAChD,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,MAAM,IAAI,GAAG,EAAE,CAAC;gBACxC,OAAO,CAAC,OAAO,CAAC,GAAG,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;aACjD;YACD,OAAO,OAAO,CAAC;SAChB;QAED,oCAAoC;QACpC,OAAO,KAAK,CAAC;IACf,CAAC;CAEF;AA/aD,yBA+aC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/openapi-core/package.json b/backend/node_modules/@alicloud/openapi-core/package.json new file mode 100644 index 0000000..9d33b94 --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/package.json @@ -0,0 +1,37 @@ +{ + "name": "@alicloud/openapi-core", + "version": "1.0.7", + "description": "", + "main": "dist/client.js", + "scripts": { + "test": "mocha -r ts-node/register -r source-map-support/register test/**/*.spec.ts --timeout=10000", + "test-cov": "nyc -e .ts -r=html -r=text -r=lcov npm run test", + "select-version": "node scripts/ts_version.js", + "postinstall": "npm run select-version", + "build": "tsc", + "prepublishOnly": "tsc" + }, + "author": "", + "license": "ISC", + "devDependencies": { + "@types/mocha": "^5.2.7", + "mocha": "^6.2.0", + "@types/node": "^12.12.26", + "nyc": "^14.1.1", + "source-map-support": "^0.5.16", + "ts-node": "^8.6.2", + "typescript": "^3.7.5" + }, + "dependencies": { + "@alicloud/credentials": "^2.4.2", + "@alicloud/gateway-pop": "0.0.6", + "@alicloud/gateway-spi": "^0.0.8", + "@darabonba/typescript": "^1.0.2" + }, + "files": [ + "dist", + "scripts", + "src" + ], + "repository": "git@github.com:aliyun/darabonba-openapi.git" +} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/openapi-core/scripts/ts_version.js b/backend/node_modules/@alicloud/openapi-core/scripts/ts_version.js new file mode 100644 index 0000000..5edc3ca --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/scripts/ts_version.js @@ -0,0 +1,33 @@ +const { execSync } = require('child_process'); + +const nodeVersion = process.versions.node; +console.log(`Running with Node.js version: ${nodeVersion}`); + +// 定义不同 Node 版本对应的 TypeScript 和 @types/node 版本 +const depsMap = { + '10': { + typescript: 'typescript@^3.9.7', + nodeTypes: '@types/node@^12.0.0' + }, + '12': { + typescript: 'typescript@^4.1.3', + nodeTypes: '@types/node@^12.0.0' + } +}; + +// 获取当前 Node major 版本 +const majorVersion = nodeVersion.split('.')[0]; + +// 选择合适的版本 +const { typescript, nodeTypes } = depsMap[majorVersion] || {}; +if(!typescript) { + process.exit(0); +} +console.log(`Installing ${typescript} and ${nodeTypes}...`); + +try { + execSync(`npm install --no-save ${typescript} ${nodeTypes}`, { stdio: 'inherit' }); +} catch (error) { + console.error('Error installing specific TypeScript and @types/node version:', error); + process.exit(1); +} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/openapi-core/src/client.ts b/backend/node_modules/@alicloud/openapi-core/src/client.ts new file mode 100644 index 0000000..ca82052 --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/src/client.ts @@ -0,0 +1,1697 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import OpenApiUtil, * as $OpenApiUtil from './utils'; +import Credential, * as $Credential from '@alicloud/credentials'; +import SPI, * as $SPI from '@alicloud/gateway-spi'; + + +export * as $OpenApiUtil from './utils'; +export { default as OpenApiUtil } from './utils'; + +import * as $_error from './exceptions/error'; +export * from './exceptions/error'; +import * as $_model from './models/model'; +export * from './models/model'; + +export default class Client { + _endpoint: string; + _regionId: string; + _protocol: string; + _method: string; + _userAgent: string; + _endpointRule: string; + _endpointMap: {[key: string ]: string}; + _suffix: string; + _readTimeout: number; + _connectTimeout: number; + _httpProxy: string; + _httpsProxy: string; + _socks5Proxy: string; + _socks5NetWork: string; + _noProxy: string; + _network: string; + _productId: string; + _maxIdleConns: number; + _endpointType: string; + _openPlatformEndpoint: string; + _credential: Credential; + _signatureVersion: string; + _signatureAlgorithm: string; + _headers: {[key: string ]: string}; + _spi: SPI; + _globalParameters: $OpenApiUtil.GlobalParameters; + _key: string; + _cert: string; + _ca: string; + _disableHttp2: boolean; + _retryOptions: $dara.RetryOptions; + _tlsMinVersion: string; + _attributeMap: $SPI.AttributeMap; + + /** + * @remarks + * Init client with Config + * + * @param config - config contains the necessary information to create a client + */ + constructor(config: $OpenApiUtil.Config) { + if ($dara.isNull(config)) { + throw new $_error.ClientError({ + code: "ParameterMissing", + message: "'config' can not be unset", + }); + } + + if ((!$dara.isNull(config.accessKeyId) && config.accessKeyId != "") && (!$dara.isNull(config.accessKeySecret) && config.accessKeySecret != "")) { + if (!$dara.isNull(config.securityToken) && config.securityToken != "") { + config.type = "sts"; + } else { + config.type = "access_key"; + } + + let credentialConfig = new $Credential.Config({ + accessKeyId: config.accessKeyId, + type: config.type, + accessKeySecret: config.accessKeySecret, + }); + credentialConfig.securityToken = config.securityToken; + this._credential = new Credential(credentialConfig); + } else if (!$dara.isNull(config.bearerToken) && config.bearerToken != "") { + let cc = new $Credential.Config({ + type: "bearer", + bearerToken: config.bearerToken, + }); + this._credential = new Credential(cc); + } else if (!$dara.isNull(config.credential)) { + this._credential = config.credential; + } + + this._endpoint = config.endpoint; + this._endpointType = config.endpointType; + this._network = config.network; + this._suffix = config.suffix; + this._protocol = config.protocol; + this._method = config.method; + this._regionId = config.regionId; + this._userAgent = config.userAgent; + this._readTimeout = config.readTimeout; + this._connectTimeout = config.connectTimeout; + this._httpProxy = config.httpProxy; + this._httpsProxy = config.httpsProxy; + this._noProxy = config.noProxy; + this._socks5Proxy = config.socks5Proxy; + this._socks5NetWork = config.socks5NetWork; + this._maxIdleConns = config.maxIdleConns; + this._signatureVersion = config.signatureVersion; + this._signatureAlgorithm = config.signatureAlgorithm; + this._globalParameters = config.globalParameters; + this._key = config.key; + this._cert = config.cert; + this._ca = config.ca; + this._disableHttp2 = config.disableHttp2; + this._retryOptions = config.retryOptions; + this._tlsMinVersion = config.tlsMinVersion; + } + + /** + * @remarks + * Encapsulate the request and invoke the network + * + * @param action - api name + * @param version - product version + * @param protocol - http or https + * @param method - e.g. GET + * @param authType - authorization type e.g. AK + * @param bodyType - response body type e.g. String + * @param request - object of OpenApiRequest + * @param runtime - which controls some details of call api, such as retry times + * @returns the response + */ + async doRPCRequest(action: string, version: string, protocol: string, method: string, authType: string, bodyType: string, request: $OpenApiUtil.OpenApiRequest, runtime: $dara.RuntimeOptions): Promise<{[key: string]: any}> { + let _runtime: { [key: string]: any } = { + key: runtime.key || this._key, + cert: runtime.cert || this._cert, + ca: runtime.ca || this._ca, + readTimeout: runtime.readTimeout || this._readTimeout, + connectTimeout: runtime.connectTimeout || this._connectTimeout, + httpProxy: runtime.httpProxy || this._httpProxy, + httpsProxy: runtime.httpsProxy || this._httpsProxy, + noProxy: runtime.noProxy || this._noProxy, + socks5Proxy: runtime.socks5Proxy || this._socks5Proxy, + socks5NetWork: runtime.socks5NetWork || this._socks5NetWork, + maxIdleConns: runtime.maxIdleConns || this._maxIdleConns, + retryOptions: this._retryOptions, + ignoreSSL: runtime.ignoreSSL, + tlsMinVersion: this._tlsMinVersion, + } + + let _retriesAttempted = 0; + let _lastRequest = null, _lastResponse = null; + let _context = new $dara.RetryPolicyContext({ + retriesAttempted: _retriesAttempted, + }); + while ($dara.shouldRetry(_runtime['retryOptions'], _context)) { + if (_retriesAttempted > 0) { + let _backoffTime = $dara.getBackoffDelay(_runtime['retryOptions'], _context); + if (_backoffTime > 0) { + await $dara.sleep(_backoffTime); + } + } + + _retriesAttempted = _retriesAttempted + 1; + try { + let request_ = new $dara.Request(); + request_.protocol = this._protocol || protocol; + request_.method = method; + request_.pathname = "/"; + let globalQueries : {[key: string ]: string} = { }; + let globalHeaders : {[key: string ]: string} = { }; + if (!$dara.isNull(this._globalParameters)) { + let globalParams = this._globalParameters; + if (!$dara.isNull(globalParams.queries)) { + globalQueries = globalParams.queries; + } + + if (!$dara.isNull(globalParams.headers)) { + globalHeaders = globalParams.headers; + } + + } + + let extendsHeaders : {[key: string ]: string} = { }; + let extendsQueries : {[key: string ]: string} = { }; + if (!$dara.isNull(runtime.extendsParameters)) { + let extendsParameters = runtime.extendsParameters; + if (!$dara.isNull(extendsParameters.headers)) { + extendsHeaders = extendsParameters.headers; + } + + if (!$dara.isNull(extendsParameters.queries)) { + extendsQueries = extendsParameters.queries; + } + + } + + request_.query = { + Action: action, + Format: "json", + Version: version, + Timestamp: OpenApiUtil.getTimestamp(), + SignatureNonce: OpenApiUtil.getNonce(), + ...globalQueries, + ...extendsQueries, + ...request.query, + }; + let headers = this.getRpcHeaders(); + if ($dara.isNull(headers)) { + // endpoint is setted in product client + request_.headers = { + host: this._endpoint, + 'x-acs-version': version, + 'x-acs-action': action, + 'user-agent': OpenApiUtil.getUserAgent(this._userAgent), + ...globalHeaders, + ...extendsHeaders, + ...request.headers, + }; + } else { + request_.headers = { + host: this._endpoint, + 'x-acs-version': version, + 'x-acs-action': action, + 'user-agent': OpenApiUtil.getUserAgent(this._userAgent), + ...globalHeaders, + ...extendsHeaders, + ...request.headers, + ...headers, + }; + } + + if (!$dara.isNull(request.body)) { + let m = request.body; + let tmp = OpenApiUtil.query(m); + request_.body = new $dara.BytesReadable($dara.Form.toFormString(tmp)); + request_.headers["content-type"] = "application/x-www-form-urlencoded"; + } + + if (authType != "Anonymous") { + if ($dara.isNull(this._credential)) { + throw new $_error.ClientError({ + code: `InvalidCredentials`, + message: `Please set up the credentials correctly. If you are setting them through environment variables, please ensure that ALIBABA_CLOUD_ACCESS_KEY_ID and ALIBABA_CLOUD_ACCESS_KEY_SECRET are set correctly. See https://help.aliyun.com/zh/sdk/developer-reference/configure-the-alibaba-cloud-accesskey-environment-variable-on-linux-macos-and-windows-systems for more details.`, + }); + } + + let credentialModel = await this._credential.getCredential(); + if (!$dara.isNull(credentialModel.providerName)) { + request_.headers["x-acs-credentials-provider"] = credentialModel.providerName; + } + + let credentialType = credentialModel.type; + if (credentialType == "bearer") { + let bearerToken = credentialModel.bearerToken; + request_.query["BearerToken"] = bearerToken; + request_.query["SignatureType"] = "BEARERTOKEN"; + } else if (credentialType == "id_token") { + let idToken = credentialModel.securityToken; + request_.headers["x-acs-zero-trust-idtoken"] = idToken; + } else { + let accessKeyId = credentialModel.accessKeyId; + let accessKeySecret = credentialModel.accessKeySecret; + let securityToken = credentialModel.securityToken; + if (!$dara.isNull(securityToken) && securityToken != "") { + request_.query["SecurityToken"] = securityToken; + } + + request_.query["SignatureMethod"] = "HMAC-SHA1"; + request_.query["SignatureVersion"] = "1.0"; + request_.query["AccessKeyId"] = accessKeyId; + let t : {[key: string ]: any} = null; + if (!$dara.isNull(request.body)) { + t = request.body; + } + + let signedParam = { + ...request_.query, + ...OpenApiUtil.query(t), + }; + request_.query["Signature"] = OpenApiUtil.getRPCSignature(signedParam, request_.method, accessKeySecret); + } + + } + + _lastRequest = request_; + let response_ = await $dara.doAction(request_, _runtime); + _lastResponse = response_; + + if ((response_.statusCode >= 400) && (response_.statusCode < 600)) { + let _res = await $dara.Stream.readAsJSON(response_.body); + let err = _res; + let requestId = err["RequestId"] || err["requestId"]; + let code = err["Code"] || err["code"]; + if ((`${code}` == "Throttling") || (`${code}` == "Throttling.User") || (`${code}` == "Throttling.Api")) { + throw new $_error.ThrottlingError({ + statusCode: response_.statusCode, + code: `${code}`, + message: `code: ${response_.statusCode}, ${err["Message"] || err["message"]} request id: ${requestId}`, + description: `${err["Description"] || err["description"]}`, + retryAfter: OpenApiUtil.getThrottlingTimeLeft(response_.headers), + data: err, + requestId: `${requestId}`, + }); + } else if ((response_.statusCode >= 400) && (response_.statusCode < 500)) { + throw new $_error.ClientError({ + statusCode: response_.statusCode, + code: `${code}`, + message: `code: ${response_.statusCode}, ${err["Message"] || err["message"]} request id: ${requestId}`, + description: `${err["Description"] || err["description"]}`, + data: err, + accessDeniedDetail: this.getAccessDeniedDetail(err), + requestId: `${requestId}`, + }); + } else { + throw new $_error.ServerError({ + statusCode: response_.statusCode, + code: `${code}`, + message: `code: ${response_.statusCode}, ${err["Message"] || err["message"]} request id: ${requestId}`, + description: `${err["Description"] || err["description"]}`, + data: err, + requestId: `${requestId}`, + }); + } + + } + + if (bodyType == "binary") { + let resp = { + body: response_.body, + headers: response_.headers, + statusCode: response_.statusCode, + }; + return resp; + } else if (bodyType == "byte") { + let byt = await $dara.Stream.readAsBytes(response_.body); + return { + body: byt, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } else if (bodyType == "string") { + let _str = await $dara.Stream.readAsString(response_.body); + return { + body: _str, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } else if (bodyType == "json") { + let obj = await $dara.Stream.readAsJSON(response_.body); + let res = obj; + return { + body: res, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } else if (bodyType == "array") { + let arr = await $dara.Stream.readAsJSON(response_.body); + return { + body: arr, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } else { + return { + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + + } catch (ex) { + _context = new $dara.RetryPolicyContext({ + retriesAttempted : _retriesAttempted, + httpRequest : _lastRequest, + httpResponse : _lastResponse, + exception : ex, + }); + continue; + } + } + + throw $dara.newUnretryableError(_context); + } + + /** + * @remarks + * Encapsulate the request and invoke the network + * + * @param action - api name + * @param version - product version + * @param protocol - http or https + * @param method - e.g. GET + * @param authType - authorization type e.g. AK + * @param pathname - pathname of every api + * @param bodyType - response body type e.g. String + * @param request - object of OpenApiRequest + * @param runtime - which controls some details of call api, such as retry times + * @returns the response + */ + async doROARequest(action: string, version: string, protocol: string, method: string, authType: string, pathname: string, bodyType: string, request: $OpenApiUtil.OpenApiRequest, runtime: $dara.RuntimeOptions): Promise<{[key: string]: any}> { + let _runtime: { [key: string]: any } = { + key: runtime.key || this._key, + cert: runtime.cert || this._cert, + ca: runtime.ca || this._ca, + readTimeout: runtime.readTimeout || this._readTimeout, + connectTimeout: runtime.connectTimeout || this._connectTimeout, + httpProxy: runtime.httpProxy || this._httpProxy, + httpsProxy: runtime.httpsProxy || this._httpsProxy, + noProxy: runtime.noProxy || this._noProxy, + socks5Proxy: runtime.socks5Proxy || this._socks5Proxy, + socks5NetWork: runtime.socks5NetWork || this._socks5NetWork, + maxIdleConns: runtime.maxIdleConns || this._maxIdleConns, + retryOptions: this._retryOptions, + ignoreSSL: runtime.ignoreSSL, + tlsMinVersion: this._tlsMinVersion, + } + + let _retriesAttempted = 0; + let _lastRequest = null, _lastResponse = null; + let _context = new $dara.RetryPolicyContext({ + retriesAttempted: _retriesAttempted, + }); + while ($dara.shouldRetry(_runtime['retryOptions'], _context)) { + if (_retriesAttempted > 0) { + let _backoffTime = $dara.getBackoffDelay(_runtime['retryOptions'], _context); + if (_backoffTime > 0) { + await $dara.sleep(_backoffTime); + } + } + + _retriesAttempted = _retriesAttempted + 1; + try { + let request_ = new $dara.Request(); + request_.protocol = this._protocol || protocol; + request_.method = method; + request_.pathname = pathname; + let globalQueries : {[key: string ]: string} = { }; + let globalHeaders : {[key: string ]: string} = { }; + if (!$dara.isNull(this._globalParameters)) { + let globalParams = this._globalParameters; + if (!$dara.isNull(globalParams.queries)) { + globalQueries = globalParams.queries; + } + + if (!$dara.isNull(globalParams.headers)) { + globalHeaders = globalParams.headers; + } + + } + + let extendsHeaders : {[key: string ]: string} = { }; + let extendsQueries : {[key: string ]: string} = { }; + if (!$dara.isNull(runtime.extendsParameters)) { + let extendsParameters = runtime.extendsParameters; + if (!$dara.isNull(extendsParameters.headers)) { + extendsHeaders = extendsParameters.headers; + } + + if (!$dara.isNull(extendsParameters.queries)) { + extendsQueries = extendsParameters.queries; + } + + } + + request_.headers = { + date: OpenApiUtil.getDateUTCString(), + host: this._endpoint, + accept: "application/json", + 'x-acs-signature-nonce': OpenApiUtil.getNonce(), + 'x-acs-signature-method': "HMAC-SHA1", + 'x-acs-signature-version': "1.0", + 'x-acs-version': version, + 'x-acs-action': action, + 'user-agent': OpenApiUtil.getUserAgent(this._userAgent), + ...globalHeaders, + ...extendsHeaders, + ...request.headers, + }; + if (!$dara.isNull(request.body)) { + request_.body = new $dara.BytesReadable(typeof request.body === "string" ? request.body : JSON.stringify(request.body)); + request_.headers["content-type"] = "application/json; charset=utf-8"; + } + + request_.query = { + ...globalQueries, + ...extendsQueries, + }; + if (!$dara.isNull(request.query)) { + request_.query = { + ...request_.query, + ...request.query, + }; + } + + if (authType != "Anonymous") { + if ($dara.isNull(this._credential)) { + throw new $_error.ClientError({ + code: `InvalidCredentials`, + message: `Please set up the credentials correctly. If you are setting them through environment variables, please ensure that ALIBABA_CLOUD_ACCESS_KEY_ID and ALIBABA_CLOUD_ACCESS_KEY_SECRET are set correctly. See https://help.aliyun.com/zh/sdk/developer-reference/configure-the-alibaba-cloud-accesskey-environment-variable-on-linux-macos-and-windows-systems for more details.`, + }); + } + + let credentialModel = await this._credential.getCredential(); + if (!$dara.isNull(credentialModel.providerName)) { + request_.headers["x-acs-credentials-provider"] = credentialModel.providerName; + } + + let credentialType = credentialModel.type; + if (credentialType == "bearer") { + let bearerToken = credentialModel.bearerToken; + request_.headers["x-acs-bearer-token"] = bearerToken; + request_.headers["x-acs-signature-type"] = "BEARERTOKEN"; + } else if (credentialType == "id_token") { + let idToken = credentialModel.securityToken; + request_.headers["x-acs-zero-trust-idtoken"] = idToken; + } else { + let accessKeyId = credentialModel.accessKeyId; + let accessKeySecret = credentialModel.accessKeySecret; + let securityToken = credentialModel.securityToken; + if (!$dara.isNull(securityToken) && securityToken != "") { + request_.headers["x-acs-accesskey-id"] = accessKeyId; + request_.headers["x-acs-security-token"] = securityToken; + } + + let stringToSign = OpenApiUtil.getStringToSign(request_); + request_.headers["authorization"] = `acs ${accessKeyId}:${OpenApiUtil.getROASignature(stringToSign, accessKeySecret)}`; + } + + } + + _lastRequest = request_; + let response_ = await $dara.doAction(request_, _runtime); + _lastResponse = response_; + + if (response_.statusCode == 204) { + return { + headers: response_.headers, + }; + } + + if ((response_.statusCode >= 400) && (response_.statusCode < 600)) { + let _res = await $dara.Stream.readAsJSON(response_.body); + let err = _res; + let requestId = err["RequestId"] || err["requestId"]; + requestId = requestId || err["requestid"]; + let code = err["Code"] || err["code"]; + if ((`${code}` == "Throttling") || (`${code}` == "Throttling.User") || (`${code}` == "Throttling.Api")) { + throw new $_error.ThrottlingError({ + statusCode: response_.statusCode, + code: `${code}`, + message: `code: ${response_.statusCode}, ${err["Message"] || err["message"]} request id: ${requestId}`, + description: `${err["Description"] || err["description"]}`, + retryAfter: OpenApiUtil.getThrottlingTimeLeft(response_.headers), + data: err, + requestId: `${requestId}`, + }); + } else if ((response_.statusCode >= 400) && (response_.statusCode < 500)) { + throw new $_error.ClientError({ + statusCode: response_.statusCode, + code: `${code}`, + message: `code: ${response_.statusCode}, ${err["Message"] || err["message"]} request id: ${requestId}`, + description: `${err["Description"] || err["description"]}`, + data: err, + accessDeniedDetail: this.getAccessDeniedDetail(err), + requestId: `${requestId}`, + }); + } else { + throw new $_error.ServerError({ + statusCode: response_.statusCode, + code: `${code}`, + message: `code: ${response_.statusCode}, ${err["Message"] || err["message"]} request id: ${requestId}`, + description: `${err["Description"] || err["description"]}`, + data: err, + requestId: `${requestId}`, + }); + } + + } + + if (bodyType == "binary") { + let resp = { + body: response_.body, + headers: response_.headers, + statusCode: response_.statusCode, + }; + return resp; + } else if (bodyType == "byte") { + let byt = await $dara.Stream.readAsBytes(response_.body); + return { + body: byt, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } else if (bodyType == "string") { + let _str = await $dara.Stream.readAsString(response_.body); + return { + body: _str, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } else if (bodyType == "json") { + let obj = await $dara.Stream.readAsJSON(response_.body); + let res = obj; + return { + body: res, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } else if (bodyType == "array") { + let arr = await $dara.Stream.readAsJSON(response_.body); + return { + body: arr, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } else { + return { + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + + } catch (ex) { + _context = new $dara.RetryPolicyContext({ + retriesAttempted : _retriesAttempted, + httpRequest : _lastRequest, + httpResponse : _lastResponse, + exception : ex, + }); + continue; + } + } + + throw $dara.newUnretryableError(_context); + } + + /** + * @remarks + * Encapsulate the request and invoke the network with form body + * + * @param action - api name + * @param version - product version + * @param protocol - http or https + * @param method - e.g. GET + * @param authType - authorization type e.g. AK + * @param pathname - pathname of every api + * @param bodyType - response body type e.g. String + * @param request - object of OpenApiRequest + * @param runtime - which controls some details of call api, such as retry times + * @returns the response + */ + async doROARequestWithForm(action: string, version: string, protocol: string, method: string, authType: string, pathname: string, bodyType: string, request: $OpenApiUtil.OpenApiRequest, runtime: $dara.RuntimeOptions): Promise<{[key: string]: any}> { + let _runtime: { [key: string]: any } = { + key: runtime.key || this._key, + cert: runtime.cert || this._cert, + ca: runtime.ca || this._ca, + readTimeout: runtime.readTimeout || this._readTimeout, + connectTimeout: runtime.connectTimeout || this._connectTimeout, + httpProxy: runtime.httpProxy || this._httpProxy, + httpsProxy: runtime.httpsProxy || this._httpsProxy, + noProxy: runtime.noProxy || this._noProxy, + socks5Proxy: runtime.socks5Proxy || this._socks5Proxy, + socks5NetWork: runtime.socks5NetWork || this._socks5NetWork, + maxIdleConns: runtime.maxIdleConns || this._maxIdleConns, + retryOptions: this._retryOptions, + ignoreSSL: runtime.ignoreSSL, + tlsMinVersion: this._tlsMinVersion, + } + + let _retriesAttempted = 0; + let _lastRequest = null, _lastResponse = null; + let _context = new $dara.RetryPolicyContext({ + retriesAttempted: _retriesAttempted, + }); + while ($dara.shouldRetry(_runtime['retryOptions'], _context)) { + if (_retriesAttempted > 0) { + let _backoffTime = $dara.getBackoffDelay(_runtime['retryOptions'], _context); + if (_backoffTime > 0) { + await $dara.sleep(_backoffTime); + } + } + + _retriesAttempted = _retriesAttempted + 1; + try { + let request_ = new $dara.Request(); + request_.protocol = this._protocol || protocol; + request_.method = method; + request_.pathname = pathname; + let globalQueries : {[key: string ]: string} = { }; + let globalHeaders : {[key: string ]: string} = { }; + if (!$dara.isNull(this._globalParameters)) { + let globalParams = this._globalParameters; + if (!$dara.isNull(globalParams.queries)) { + globalQueries = globalParams.queries; + } + + if (!$dara.isNull(globalParams.headers)) { + globalHeaders = globalParams.headers; + } + + } + + let extendsHeaders : {[key: string ]: string} = { }; + let extendsQueries : {[key: string ]: string} = { }; + if (!$dara.isNull(runtime.extendsParameters)) { + let extendsParameters = runtime.extendsParameters; + if (!$dara.isNull(extendsParameters.headers)) { + extendsHeaders = extendsParameters.headers; + } + + if (!$dara.isNull(extendsParameters.queries)) { + extendsQueries = extendsParameters.queries; + } + + } + + request_.headers = { + date: OpenApiUtil.getDateUTCString(), + host: this._endpoint, + accept: "application/json", + 'x-acs-signature-nonce': OpenApiUtil.getNonce(), + 'x-acs-signature-method': "HMAC-SHA1", + 'x-acs-signature-version': "1.0", + 'x-acs-version': version, + 'x-acs-action': action, + 'user-agent': OpenApiUtil.getUserAgent(this._userAgent), + ...globalHeaders, + ...extendsHeaders, + ...request.headers, + }; + if (!$dara.isNull(request.body)) { + let m = request.body; + request_.body = new $dara.BytesReadable(OpenApiUtil.toForm(m)); + request_.headers["content-type"] = "application/x-www-form-urlencoded"; + } + + request_.query = { + ...globalQueries, + ...extendsQueries, + }; + if (!$dara.isNull(request.query)) { + request_.query = { + ...request_.query, + ...request.query, + }; + } + + if (authType != "Anonymous") { + if ($dara.isNull(this._credential)) { + throw new $_error.ClientError({ + code: `InvalidCredentials`, + message: `Please set up the credentials correctly. If you are setting them through environment variables, please ensure that ALIBABA_CLOUD_ACCESS_KEY_ID and ALIBABA_CLOUD_ACCESS_KEY_SECRET are set correctly. See https://help.aliyun.com/zh/sdk/developer-reference/configure-the-alibaba-cloud-accesskey-environment-variable-on-linux-macos-and-windows-systems for more details.`, + }); + } + + let credentialModel = await this._credential.getCredential(); + if (!$dara.isNull(credentialModel.providerName)) { + request_.headers["x-acs-credentials-provider"] = credentialModel.providerName; + } + + let credentialType = credentialModel.type; + if (credentialType == "bearer") { + let bearerToken = credentialModel.bearerToken; + request_.headers["x-acs-bearer-token"] = bearerToken; + request_.headers["x-acs-signature-type"] = "BEARERTOKEN"; + } else if (credentialType == "id_token") { + let idToken = credentialModel.securityToken; + request_.headers["x-acs-zero-trust-idtoken"] = idToken; + } else { + let accessKeyId = credentialModel.accessKeyId; + let accessKeySecret = credentialModel.accessKeySecret; + let securityToken = credentialModel.securityToken; + if (!$dara.isNull(securityToken) && securityToken != "") { + request_.headers["x-acs-accesskey-id"] = accessKeyId; + request_.headers["x-acs-security-token"] = securityToken; + } + + let stringToSign = OpenApiUtil.getStringToSign(request_); + request_.headers["authorization"] = `acs ${accessKeyId}:${OpenApiUtil.getROASignature(stringToSign, accessKeySecret)}`; + } + + } + + _lastRequest = request_; + let response_ = await $dara.doAction(request_, _runtime); + _lastResponse = response_; + + if (response_.statusCode == 204) { + return { + headers: response_.headers, + }; + } + + if ((response_.statusCode >= 400) && (response_.statusCode < 600)) { + let _res = await $dara.Stream.readAsJSON(response_.body); + let err = _res; + let requestId = err["RequestId"] || err["requestId"]; + let code = err["Code"] || err["code"]; + if ((`${code}` == "Throttling") || (`${code}` == "Throttling.User") || (`${code}` == "Throttling.Api")) { + throw new $_error.ThrottlingError({ + statusCode: response_.statusCode, + code: `${code}`, + message: `code: ${response_.statusCode}, ${err["Message"] || err["message"]} request id: ${requestId}`, + description: `${err["Description"] || err["description"]}`, + retryAfter: OpenApiUtil.getThrottlingTimeLeft(response_.headers), + data: err, + requestId: `${requestId}`, + }); + } else if ((response_.statusCode >= 400) && (response_.statusCode < 500)) { + throw new $_error.ClientError({ + statusCode: response_.statusCode, + code: `${code}`, + message: `code: ${response_.statusCode}, ${err["Message"] || err["message"]} request id: ${requestId}`, + description: `${err["Description"] || err["description"]}`, + data: err, + accessDeniedDetail: this.getAccessDeniedDetail(err), + requestId: `${requestId}`, + }); + } else { + throw new $_error.ServerError({ + statusCode: response_.statusCode, + code: `${code}`, + message: `code: ${response_.statusCode}, ${err["Message"] || err["message"]} request id: ${requestId}`, + description: `${err["Description"] || err["description"]}`, + data: err, + requestId: `${requestId}`, + }); + } + + } + + if (bodyType == "binary") { + let resp = { + body: response_.body, + headers: response_.headers, + statusCode: response_.statusCode, + }; + return resp; + } else if (bodyType == "byte") { + let byt = await $dara.Stream.readAsBytes(response_.body); + return { + body: byt, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } else if (bodyType == "string") { + let _str = await $dara.Stream.readAsString(response_.body); + return { + body: _str, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } else if (bodyType == "json") { + let obj = await $dara.Stream.readAsJSON(response_.body); + let res = obj; + return { + body: res, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } else if (bodyType == "array") { + let arr = await $dara.Stream.readAsJSON(response_.body); + return { + body: arr, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } else { + return { + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + + } catch (ex) { + _context = new $dara.RetryPolicyContext({ + retriesAttempted : _retriesAttempted, + httpRequest : _lastRequest, + httpResponse : _lastResponse, + exception : ex, + }); + continue; + } + } + + throw $dara.newUnretryableError(_context); + } + + /** + * @remarks + * Encapsulate the request and invoke the network + * + * @param action - api name + * @param version - product version + * @param protocol - http or https + * @param method - e.g. GET + * @param authType - authorization type e.g. AK + * @param bodyType - response body type e.g. String + * @param request - object of OpenApiRequest + * @param runtime - which controls some details of call api, such as retry times + * @returns the response + */ + async doRequest(params: $OpenApiUtil.Params, request: $OpenApiUtil.OpenApiRequest, runtime: $dara.RuntimeOptions): Promise<{[key: string]: any}> { + let _runtime: { [key: string]: any } = { + key: runtime.key || this._key, + cert: runtime.cert || this._cert, + ca: runtime.ca || this._ca, + readTimeout: runtime.readTimeout || this._readTimeout, + connectTimeout: runtime.connectTimeout || this._connectTimeout, + httpProxy: runtime.httpProxy || this._httpProxy, + httpsProxy: runtime.httpsProxy || this._httpsProxy, + noProxy: runtime.noProxy || this._noProxy, + socks5Proxy: runtime.socks5Proxy || this._socks5Proxy, + socks5NetWork: runtime.socks5NetWork || this._socks5NetWork, + maxIdleConns: runtime.maxIdleConns || this._maxIdleConns, + retryOptions: this._retryOptions, + ignoreSSL: runtime.ignoreSSL, + tlsMinVersion: this._tlsMinVersion, + } + + let _retriesAttempted = 0; + let _lastRequest = null, _lastResponse = null; + let _context = new $dara.RetryPolicyContext({ + retriesAttempted: _retriesAttempted, + }); + while ($dara.shouldRetry(_runtime['retryOptions'], _context)) { + if (_retriesAttempted > 0) { + let _backoffTime = $dara.getBackoffDelay(_runtime['retryOptions'], _context); + if (_backoffTime > 0) { + await $dara.sleep(_backoffTime); + } + } + + _retriesAttempted = _retriesAttempted + 1; + try { + let request_ = new $dara.Request(); + request_.protocol = this._protocol || params.protocol; + request_.method = params.method; + request_.pathname = params.pathname; + let globalQueries : {[key: string ]: string} = { }; + let globalHeaders : {[key: string ]: string} = { }; + if (!$dara.isNull(this._globalParameters)) { + let globalParams = this._globalParameters; + if (!$dara.isNull(globalParams.queries)) { + globalQueries = globalParams.queries; + } + + if (!$dara.isNull(globalParams.headers)) { + globalHeaders = globalParams.headers; + } + + } + + let extendsHeaders : {[key: string ]: string} = { }; + let extendsQueries : {[key: string ]: string} = { }; + if (!$dara.isNull(runtime.extendsParameters)) { + let extendsParameters = runtime.extendsParameters; + if (!$dara.isNull(extendsParameters.headers)) { + extendsHeaders = extendsParameters.headers; + } + + if (!$dara.isNull(extendsParameters.queries)) { + extendsQueries = extendsParameters.queries; + } + + } + + request_.query = { + ...globalQueries, + ...extendsQueries, + ...request.query, + }; + // endpoint is setted in product client + request_.headers = { + host: this._endpoint, + 'x-acs-version': params.version, + 'x-acs-action': params.action, + 'user-agent': OpenApiUtil.getUserAgent(this._userAgent), + 'x-acs-date': OpenApiUtil.getTimestamp(), + 'x-acs-signature-nonce': OpenApiUtil.getNonce(), + accept: "application/json", + ...globalHeaders, + ...extendsHeaders, + ...request.headers, + }; + if (params.style == "RPC") { + let headers = this.getRpcHeaders(); + if (!$dara.isNull(headers)) { + request_.headers = { + ...request_.headers, + ...headers, + }; + } + + } + + let signatureAlgorithm = this._signatureAlgorithm || "ACS3-HMAC-SHA256"; + let hashedRequestPayload = OpenApiUtil.hash(Buffer.from("", "utf-8"), signatureAlgorithm); + if (!$dara.isNull(request.stream)) { + let tmp = await $dara.Stream.readAsBytes(request.stream); + hashedRequestPayload = OpenApiUtil.hash(tmp, signatureAlgorithm); + request_.body = new $dara.BytesReadable(tmp); + request_.headers["content-type"] = "application/octet-stream"; + } else { + if (!$dara.isNull(request.body)) { + if (params.reqBodyType == "byte") { + let byteObj = Buffer.from(request.body); + hashedRequestPayload = OpenApiUtil.hash(byteObj, signatureAlgorithm); + request_.body = new $dara.BytesReadable(byteObj); + } else if (params.reqBodyType == "json") { + let jsonObj = typeof request.body === "string" ? request.body : JSON.stringify(request.body); + hashedRequestPayload = OpenApiUtil.hash(Buffer.from(jsonObj, "utf8"), signatureAlgorithm); + request_.body = new $dara.BytesReadable(jsonObj); + request_.headers["content-type"] = "application/json; charset=utf-8"; + } else { + let m = request.body; + let formObj = OpenApiUtil.toForm(m); + hashedRequestPayload = OpenApiUtil.hash(Buffer.from(formObj, "utf8"), signatureAlgorithm); + request_.body = new $dara.BytesReadable(formObj); + request_.headers["content-type"] = "application/x-www-form-urlencoded"; + } + + } + + } + + request_.headers["x-acs-content-sha256"] = hashedRequestPayload.toString("hex"); + if (params.authType != "Anonymous") { + if ($dara.isNull(this._credential)) { + throw new $_error.ClientError({ + code: `InvalidCredentials`, + message: `Please set up the credentials correctly. If you are setting them through environment variables, please ensure that ALIBABA_CLOUD_ACCESS_KEY_ID and ALIBABA_CLOUD_ACCESS_KEY_SECRET are set correctly. See https://help.aliyun.com/zh/sdk/developer-reference/configure-the-alibaba-cloud-accesskey-environment-variable-on-linux-macos-and-windows-systems for more details.`, + }); + } + + let credentialModel = await this._credential.getCredential(); + if (!$dara.isNull(credentialModel.providerName)) { + request_.headers["x-acs-credentials-provider"] = credentialModel.providerName; + } + + let authType = credentialModel.type; + if (authType == "bearer") { + let bearerToken = credentialModel.bearerToken; + request_.headers["x-acs-bearer-token"] = bearerToken; + if (params.style == "RPC") { + request_.query["SignatureType"] = "BEARERTOKEN"; + } else { + request_.headers["x-acs-signature-type"] = "BEARERTOKEN"; + } + + } else if (authType == "id_token") { + let idToken = credentialModel.securityToken; + request_.headers["x-acs-zero-trust-idtoken"] = idToken; + } else { + let accessKeyId = credentialModel.accessKeyId; + let accessKeySecret = credentialModel.accessKeySecret; + let securityToken = credentialModel.securityToken; + if (!$dara.isNull(securityToken) && securityToken != "") { + request_.headers["x-acs-accesskey-id"] = accessKeyId; + request_.headers["x-acs-security-token"] = securityToken; + } + + request_.headers["Authorization"] = OpenApiUtil.getAuthorization(request_, signatureAlgorithm, hashedRequestPayload.toString("hex"), accessKeyId, accessKeySecret); + } + + } + + _lastRequest = request_; + let response_ = await $dara.doAction(request_, _runtime); + _lastResponse = response_; + + if ((response_.statusCode >= 400) && (response_.statusCode < 600)) { + let err : {[key: string ]: any} = { }; + if (!$dara.isNull(response_.headers["content-type"]) && response_.headers["content-type"] == "text/xml;charset=utf-8") { + let _str = await $dara.Stream.readAsString(response_.body); + let respMap = $dara.XML.parseXml(_str, null); + err = respMap["Error"]; + } else { + let _res = await $dara.Stream.readAsJSON(response_.body); + err = _res; + } + + let requestId = err["RequestId"] || err["requestId"]; + let code = err["Code"] || err["code"]; + if ((`${code}` == "Throttling") || (`${code}` == "Throttling.User") || (`${code}` == "Throttling.Api")) { + throw new $_error.ThrottlingError({ + statusCode: response_.statusCode, + code: `${code}`, + message: `code: ${response_.statusCode}, ${err["Message"] || err["message"]} request id: ${requestId}`, + description: `${err["Description"] || err["description"]}`, + retryAfter: OpenApiUtil.getThrottlingTimeLeft(response_.headers), + data: err, + requestId: `${requestId}`, + }); + } else if ((response_.statusCode >= 400) && (response_.statusCode < 500)) { + throw new $_error.ClientError({ + statusCode: response_.statusCode, + code: `${code}`, + message: `code: ${response_.statusCode}, ${err["Message"] || err["message"]} request id: ${requestId}`, + description: `${err["Description"] || err["description"]}`, + data: err, + accessDeniedDetail: this.getAccessDeniedDetail(err), + requestId: `${requestId}`, + }); + } else { + throw new $_error.ServerError({ + statusCode: response_.statusCode, + code: `${code}`, + message: `code: ${response_.statusCode}, ${err["Message"] || err["message"]} request id: ${requestId}`, + description: `${err["Description"] || err["description"]}`, + data: err, + requestId: `${requestId}`, + }); + } + + } + + if (params.bodyType == "binary") { + let resp = { + body: response_.body, + headers: response_.headers, + statusCode: response_.statusCode, + }; + return resp; + } else if (params.bodyType == "byte") { + let byt = await $dara.Stream.readAsBytes(response_.body); + return { + body: byt, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } else if (params.bodyType == "string") { + let respStr = await $dara.Stream.readAsString(response_.body); + return { + body: respStr, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } else if (params.bodyType == "json") { + let obj = await $dara.Stream.readAsJSON(response_.body); + let res = obj; + return { + body: res, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } else if (params.bodyType == "array") { + let arr = await $dara.Stream.readAsJSON(response_.body); + return { + body: arr, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } else { + let anything = await $dara.Stream.readAsString(response_.body); + return { + body: anything, + headers: response_.headers, + statusCode: response_.statusCode, + }; + } + + } catch (ex) { + _context = new $dara.RetryPolicyContext({ + retriesAttempted : _retriesAttempted, + httpRequest : _lastRequest, + httpResponse : _lastResponse, + exception : ex, + }); + continue; + } + } + + throw $dara.newUnretryableError(_context); + } + + /** + * @remarks + * Encapsulate the request and invoke the network + * + * @param action - api name + * @param version - product version + * @param protocol - http or https + * @param method - e.g. GET + * @param authType - authorization type e.g. AK + * @param bodyType - response body type e.g. String + * @param request - object of OpenApiRequest + * @param runtime - which controls some details of call api, such as retry times + * @returns the response + */ + async execute(params: $OpenApiUtil.Params, request: $OpenApiUtil.OpenApiRequest, runtime: $dara.RuntimeOptions): Promise<{[key: string]: any}> { + let _runtime: { [key: string]: any } = { + key: runtime.key || this._key, + cert: runtime.cert || this._cert, + ca: runtime.ca || this._ca, + readTimeout: runtime.readTimeout || this._readTimeout, + connectTimeout: runtime.connectTimeout || this._connectTimeout, + httpProxy: runtime.httpProxy || this._httpProxy, + httpsProxy: runtime.httpsProxy || this._httpsProxy, + noProxy: runtime.noProxy || this._noProxy, + socks5Proxy: runtime.socks5Proxy || this._socks5Proxy, + socks5NetWork: runtime.socks5NetWork || this._socks5NetWork, + maxIdleConns: runtime.maxIdleConns || this._maxIdleConns, + retryOptions: this._retryOptions, + ignoreSSL: runtime.ignoreSSL, + tlsMinVersion: this._tlsMinVersion, + disableHttp2: this._disableHttp2 || false, + } + + let _retriesAttempted = 0; + let _lastRequest = null, _lastResponse = null; + let _context = new $dara.RetryPolicyContext({ + retriesAttempted: _retriesAttempted, + }); + while ($dara.shouldRetry(_runtime['retryOptions'], _context)) { + if (_retriesAttempted > 0) { + let _backoffTime = $dara.getBackoffDelay(_runtime['retryOptions'], _context); + if (_backoffTime > 0) { + await $dara.sleep(_backoffTime); + } + } + + _retriesAttempted = _retriesAttempted + 1; + try { + let request_ = new $dara.Request(); + // spi = new Gateway();//Gateway implements SPI,这一步在产品 SDK 中实例化 + let headers = this.getRpcHeaders(); + let globalQueries : {[key: string ]: string} = { }; + let globalHeaders : {[key: string ]: string} = { }; + if (!$dara.isNull(this._globalParameters)) { + let globalParams = this._globalParameters; + if (!$dara.isNull(globalParams.queries)) { + globalQueries = globalParams.queries; + } + + if (!$dara.isNull(globalParams.headers)) { + globalHeaders = globalParams.headers; + } + + } + + let extendsHeaders : {[key: string ]: string} = { }; + let extendsQueries : {[key: string ]: string} = { }; + if (!$dara.isNull(runtime.extendsParameters)) { + let extendsParameters = runtime.extendsParameters; + if (!$dara.isNull(extendsParameters.headers)) { + extendsHeaders = extendsParameters.headers; + } + + if (!$dara.isNull(extendsParameters.queries)) { + extendsQueries = extendsParameters.queries; + } + + } + + let requestContext = new $SPI.InterceptorContextRequest({ + headers: { + ...globalHeaders, + ...extendsHeaders, + ...request.headers, + ...headers, + }, + query: { + ...globalQueries, + ...extendsQueries, + ...request.query, + }, + body: request.body, + stream: request.stream, + hostMap: request.hostMap, + pathname: params.pathname, + productId: this._productId, + action: params.action, + version: params.version, + protocol: this._protocol || params.protocol, + method: this._method || params.method, + authType: params.authType, + bodyType: params.bodyType, + reqBodyType: params.reqBodyType, + style: params.style, + credential: this._credential, + signatureVersion: this._signatureVersion, + signatureAlgorithm: this._signatureAlgorithm, + userAgent: OpenApiUtil.getUserAgent(this._userAgent), + }); + let configurationContext = new $SPI.InterceptorContextConfiguration({ + regionId: this._regionId, + endpoint: request.endpointOverride || this._endpoint, + endpointRule: this._endpointRule, + endpointMap: this._endpointMap, + endpointType: this._endpointType, + network: this._network, + suffix: this._suffix, + }); + let interceptorContext = new $SPI.InterceptorContext({ + request: requestContext, + configuration: configurationContext, + }); + let attributeMap = new $SPI.AttributeMap({ }); + if (!$dara.isNull(this._attributeMap)) { + attributeMap = this._attributeMap; + } + + // 1. spi.modifyConfiguration(context: SPI.InterceptorContext, attributeMap: SPI.AttributeMap); + await this._spi.modifyConfiguration(interceptorContext, attributeMap); + // 2. spi.modifyRequest(context: SPI.InterceptorContext, attributeMap: SPI.AttributeMap); + await this._spi.modifyRequest(interceptorContext, attributeMap); + request_.protocol = interceptorContext.request.protocol; + request_.method = interceptorContext.request.method; + request_.pathname = interceptorContext.request.pathname; + request_.query = interceptorContext.request.query; + request_.body = interceptorContext.request.stream; + request_.headers = interceptorContext.request.headers; + _lastRequest = request_; + let response_ = await $dara.doAction(request_, _runtime); + _lastResponse = response_; + + let responseContext = new $SPI.InterceptorContextResponse({ + statusCode: response_.statusCode, + headers: response_.headers, + body: response_.body, + }); + interceptorContext.response = responseContext; + // 3. spi.modifyResponse(context: SPI.InterceptorContext, attributeMap: SPI.AttributeMap); + await this._spi.modifyResponse(interceptorContext, attributeMap); + return { + headers: interceptorContext.response.headers, + statusCode: interceptorContext.response.statusCode, + body: interceptorContext.response.deserializedBody, + }; + } catch (ex) { + _context = new $dara.RetryPolicyContext({ + retriesAttempted : _retriesAttempted, + httpRequest : _lastRequest, + httpResponse : _lastResponse, + exception : ex, + }); + continue; + } + } + + throw $dara.newUnretryableError(_context); + } + + async *callSSEApi(params: $OpenApiUtil.Params, request: $OpenApiUtil.OpenApiRequest, runtime: $dara.RuntimeOptions): AsyncGenerator<$_model.SSEResponse, any, unknown> { + let _runtime: { [key: string]: any } = { + key: runtime.key || this._key, + cert: runtime.cert || this._cert, + ca: runtime.ca || this._ca, + readTimeout: runtime.readTimeout || this._readTimeout, + connectTimeout: runtime.connectTimeout || this._connectTimeout, + httpProxy: runtime.httpProxy || this._httpProxy, + httpsProxy: runtime.httpsProxy || this._httpsProxy, + noProxy: runtime.noProxy || this._noProxy, + socks5Proxy: runtime.socks5Proxy || this._socks5Proxy, + socks5NetWork: runtime.socks5NetWork || this._socks5NetWork, + maxIdleConns: runtime.maxIdleConns || this._maxIdleConns, + retryOptions: this._retryOptions, + ignoreSSL: runtime.ignoreSSL, + tlsMinVersion: this._tlsMinVersion, + } + + let _retriesAttempted = 0; + let _lastRequest = null, _lastResponse = null; + let _context = new $dara.RetryPolicyContext({ + retriesAttempted: _retriesAttempted, + }); + while ($dara.shouldRetry(_runtime['retryOptions'], _context)) { + if (_retriesAttempted > 0) { + let _backoffTime = $dara.getBackoffDelay(_runtime['retryOptions'], _context); + if (_backoffTime > 0) { + await $dara.sleep(_backoffTime); + } + } + + _retriesAttempted = _retriesAttempted + 1; + try { + let request_ = new $dara.Request(); + request_.protocol = this._protocol || params.protocol; + request_.method = params.method; + request_.pathname = params.pathname; + let globalQueries : {[key: string ]: string} = { }; + let globalHeaders : {[key: string ]: string} = { }; + if (!$dara.isNull(this._globalParameters)) { + let globalParams = this._globalParameters; + if (!$dara.isNull(globalParams.queries)) { + globalQueries = globalParams.queries; + } + + if (!$dara.isNull(globalParams.headers)) { + globalHeaders = globalParams.headers; + } + + } + + let extendsHeaders : {[key: string ]: string} = { }; + let extendsQueries : {[key: string ]: string} = { }; + if (!$dara.isNull(runtime.extendsParameters)) { + let extendsParameters = runtime.extendsParameters; + if (!$dara.isNull(extendsParameters.headers)) { + extendsHeaders = extendsParameters.headers; + } + + if (!$dara.isNull(extendsParameters.queries)) { + extendsQueries = extendsParameters.queries; + } + + } + + request_.query = { + ...globalQueries, + ...extendsQueries, + ...request.query, + }; + // endpoint is setted in product client + request_.headers = { + host: this._endpoint, + 'x-acs-version': params.version, + 'x-acs-action': params.action, + 'user-agent': OpenApiUtil.getUserAgent(this._userAgent), + 'x-acs-date': OpenApiUtil.getTimestamp(), + 'x-acs-signature-nonce': OpenApiUtil.getNonce(), + accept: "application/json", + ...extendsHeaders, + ...globalHeaders, + ...request.headers, + }; + if (params.style == "RPC") { + let headers = this.getRpcHeaders(); + if (!$dara.isNull(headers)) { + request_.headers = { + ...request_.headers, + ...headers, + }; + } + + } + + let signatureAlgorithm = this._signatureAlgorithm || "ACS3-HMAC-SHA256"; + let hashedRequestPayload = OpenApiUtil.hash(Buffer.from("", "utf-8"), signatureAlgorithm); + if (!$dara.isNull(request.stream)) { + let tmp = await $dara.Stream.readAsBytes(request.stream); + hashedRequestPayload = OpenApiUtil.hash(tmp, signatureAlgorithm); + request_.body = new $dara.BytesReadable(tmp); + request_.headers["content-type"] = "application/octet-stream"; + } else { + if (!$dara.isNull(request.body)) { + if (params.reqBodyType == "byte") { + let byteObj = Buffer.from(request.body); + hashedRequestPayload = OpenApiUtil.hash(byteObj, signatureAlgorithm); + request_.body = new $dara.BytesReadable(byteObj); + } else if (params.reqBodyType == "json") { + let jsonObj = typeof request.body === "string" ? request.body : JSON.stringify(request.body); + hashedRequestPayload = OpenApiUtil.hash(Buffer.from(jsonObj, "utf8"), signatureAlgorithm); + request_.body = new $dara.BytesReadable(jsonObj); + request_.headers["content-type"] = "application/json; charset=utf-8"; + } else { + let m = request.body; + let formObj = OpenApiUtil.toForm(m); + hashedRequestPayload = OpenApiUtil.hash(Buffer.from(formObj, "utf8"), signatureAlgorithm); + request_.body = new $dara.BytesReadable(formObj); + request_.headers["content-type"] = "application/x-www-form-urlencoded"; + } + + } + + } + + request_.headers["x-acs-content-sha256"] = hashedRequestPayload.toString("hex"); + if (params.authType != "Anonymous") { + let credentialModel = await this._credential.getCredential(); + if (!$dara.isNull(credentialModel.providerName)) { + request_.headers["x-acs-credentials-provider"] = credentialModel.providerName; + } + + let authType = credentialModel.type; + if (authType == "bearer") { + let bearerToken = credentialModel.bearerToken; + request_.headers["x-acs-bearer-token"] = bearerToken; + } else if (authType == "id_token") { + let idToken = credentialModel.securityToken; + request_.headers["x-acs-zero-trust-idtoken"] = idToken; + } else { + let accessKeyId = credentialModel.accessKeyId; + let accessKeySecret = credentialModel.accessKeySecret; + let securityToken = credentialModel.securityToken; + if (!$dara.isNull(securityToken) && securityToken != "") { + request_.headers["x-acs-accesskey-id"] = accessKeyId; + request_.headers["x-acs-security-token"] = securityToken; + } + + request_.headers["Authorization"] = OpenApiUtil.getAuthorization(request_, signatureAlgorithm, hashedRequestPayload.toString("hex"), accessKeyId, accessKeySecret); + } + + } + + _lastRequest = request_; + let response_ = await $dara.doAction(request_, _runtime); + _lastResponse = response_; + + if ((response_.statusCode >= 400) && (response_.statusCode < 600)) { + let err : {[key: string ]: any} = { }; + if (!$dara.isNull(response_.headers["content-type"]) && response_.headers["content-type"] == "text/xml;charset=utf-8") { + let _str = await $dara.Stream.readAsString(response_.body); + let respMap = $dara.XML.parseXml(_str, null); + err = respMap["Error"]; + } else { + let _res = await $dara.Stream.readAsJSON(response_.body); + err = _res; + } + + err["statusCode"] = response_.statusCode; + throw $dara.newError({ + code: `${err["Code"] || err["code"]}`, + message: `code: ${response_.statusCode}, ${err["Message"] || err["message"]} request id: ${err["RequestId"] || err["requestId"]}`, + data: err, + description: `${err["Description"] || err["description"]}`, + accessDeniedDetail: err["AccessDeniedDetail"] || err["accessDeniedDetail"], + }); + } + + let events = await $dara.Stream.readAsSSE(response_.body); + + for await (let event of events) { + yield new $_model.SSEResponse({ + statusCode: response_.statusCode, + headers: response_.headers, + event: event, + }); + } + return null; + } catch (ex) { + _context = new $dara.RetryPolicyContext({ + retriesAttempted : _retriesAttempted, + httpRequest : _lastRequest, + httpResponse : _lastResponse, + exception : ex, + }); + continue; + } + } + + throw $dara.newUnretryableError(_context); + } + + async callApi(params: $OpenApiUtil.Params, request: $OpenApiUtil.OpenApiRequest, runtime: $dara.RuntimeOptions): Promise<{[key: string]: any}> { + if ($dara.isNull(params)) { + throw new $_error.ClientError({ + code: "ParameterMissing", + message: "'params' can not be unset", + }); + } + + if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") { + if ($dara.isNull(this._signatureAlgorithm) || this._signatureAlgorithm != "v2") { + return await this.doRequest(params, request, runtime); + } else if ((params.style == "ROA") && (params.reqBodyType == "json")) { + return await this.doROARequest(params.action, params.version, params.protocol, params.method, params.authType, params.pathname, params.bodyType, request, runtime); + } else if (params.style == "ROA") { + return await this.doROARequestWithForm(params.action, params.version, params.protocol, params.method, params.authType, params.pathname, params.bodyType, request, runtime); + } else { + return await this.doRPCRequest(params.action, params.version, params.protocol, params.method, params.authType, params.bodyType, request, runtime); + } + + } else { + return await this.execute(params, request, runtime); + } + + } + + /** + * @remarks + * Get accesskey id by using credential + * @returns accesskey id + */ + async getAccessKeyId(): Promise { + if ($dara.isNull(this._credential)) { + return ""; + } + + let accessKeyId = await this._credential.getAccessKeyId(); + return accessKeyId; + } + + /** + * @remarks + * Get accesskey secret by using credential + * @returns accesskey secret + */ + async getAccessKeySecret(): Promise { + if ($dara.isNull(this._credential)) { + return ""; + } + + let secret = await this._credential.getAccessKeySecret(); + return secret; + } + + /** + * @remarks + * Get security token by using credential + * @returns security token + */ + async getSecurityToken(): Promise { + if ($dara.isNull(this._credential)) { + return ""; + } + + let token = await this._credential.getSecurityToken(); + return token; + } + + /** + * @remarks + * Get bearer token by credential + * @returns bearer token + */ + async getBearerToken(): Promise { + if ($dara.isNull(this._credential)) { + return ""; + } + + let token = this._credential.getBearerToken(); + return token; + } + + /** + * @remarks + * Get credential type by credential + * @returns credential type e.g. access_key + */ + async getType(): Promise { + if ($dara.isNull(this._credential)) { + return ""; + } + + let authType = this._credential.getType(); + return authType; + } + + /** + * @remarks + * If the endpointRule and config.endpoint are empty, throw error + * + * @param config - config contains the necessary information to create a client + */ + checkConfig(config: $OpenApiUtil.Config): void { + if ($dara.isNull(this._endpointRule) && $dara.isNull(config.endpoint)) { + throw new $_error.ClientError({ + code: "ParameterMissing", + message: "'config.endpoint' can not be empty", + }); + } + + } + + /** + * @remarks + * set gateway client + * + * @param spi - . + */ + setGatewayClient(spi: SPI): void { + this._spi = spi; + } + + /** + * @remarks + * set RPC header for debug + * + * @param headers - headers for debug, this header can be used only once. + */ + setRpcHeaders(headers: {[key: string ]: string}): void { + this._headers = headers; + } + + /** + * @remarks + * get RPC header for debug + */ + getRpcHeaders(): {[key: string ]: string} { + let headers : {[key: string ]: string} = this._headers; + this._headers = null; + return headers; + } + + getAccessDeniedDetail(err: {[key: string ]: any}): {[key: string ]: any} { + let accessDeniedDetail : {[key: string ]: any} = null; + if (!$dara.isNull(err["AccessDeniedDetail"])) { + let detail1 = err["AccessDeniedDetail"]; + accessDeniedDetail = detail1; + } else if (!$dara.isNull(err["accessDeniedDetail"])) { + let detail2 = err["accessDeniedDetail"]; + accessDeniedDetail = detail2; + } + + return accessDeniedDetail; + } + +} diff --git a/backend/node_modules/@alicloud/openapi-core/src/exceptions/AlibabaCloudError.ts b/backend/node_modules/@alicloud/openapi-core/src/exceptions/AlibabaCloudError.ts new file mode 100644 index 0000000..b2426af --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/src/exceptions/AlibabaCloudError.ts @@ -0,0 +1,22 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +export class AlibabaCloudError extends $dara.ResponseError { + statusCode?: number; + code: string; + message: string; + description?: string; + requestId?: string; + + constructor(map?: { [key: string]: any }) { + super(map); + this.name = "AlibabaCloudError"; + Object.setPrototypeOf(this, AlibabaCloudError.prototype); + this.statusCode = map.statusCode; + this.code = map.code; + this.description = map.description; + this.requestId = map.requestId; + } +} + diff --git a/backend/node_modules/@alicloud/openapi-core/src/exceptions/ClientError.ts b/backend/node_modules/@alicloud/openapi-core/src/exceptions/ClientError.ts new file mode 100644 index 0000000..ea6d66b --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/src/exceptions/ClientError.ts @@ -0,0 +1,16 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { AlibabaCloudError } from "./AlibabaCloudError"; + + +export class ClientError extends AlibabaCloudError { + accessDeniedDetail?: { [key: string]: any }; + + constructor(map?: { [key: string]: any }) { + super(map); + this.name = "ClientError"; + Object.setPrototypeOf(this, ClientError.prototype); + this.accessDeniedDetail = map.accessDeniedDetail; + } +} + diff --git a/backend/node_modules/@alicloud/openapi-core/src/exceptions/ServerError.ts b/backend/node_modules/@alicloud/openapi-core/src/exceptions/ServerError.ts new file mode 100644 index 0000000..0765fdb --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/src/exceptions/ServerError.ts @@ -0,0 +1,14 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { AlibabaCloudError } from "./AlibabaCloudError"; + + +export class ServerError extends AlibabaCloudError { + + constructor(map?: { [key: string]: any }) { + super(map); + this.name = "ServerError"; + Object.setPrototypeOf(this, ServerError.prototype); + } +} + diff --git a/backend/node_modules/@alicloud/openapi-core/src/exceptions/ThrottlingError.ts b/backend/node_modules/@alicloud/openapi-core/src/exceptions/ThrottlingError.ts new file mode 100644 index 0000000..65019f9 --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/src/exceptions/ThrottlingError.ts @@ -0,0 +1,16 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; +import { AlibabaCloudError } from "./AlibabaCloudError"; + + +export class ThrottlingError extends AlibabaCloudError { + retryAfter?: number; + + constructor(map?: { [key: string]: any }) { + super(map); + this.name = "ThrottlingError"; + Object.setPrototypeOf(this, ThrottlingError.prototype); + this.retryAfter = map.retryAfter; + } +} + diff --git a/backend/node_modules/@alicloud/openapi-core/src/exceptions/error.ts b/backend/node_modules/@alicloud/openapi-core/src/exceptions/error.ts new file mode 100644 index 0000000..a8eb171 --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/src/exceptions/error.ts @@ -0,0 +1,4 @@ +export { AlibabaCloudError } from './AlibabaCloudError'; +export { ClientError } from './ClientError'; +export { ServerError } from './ServerError'; +export { ThrottlingError } from './ThrottlingError'; diff --git a/backend/node_modules/@alicloud/openapi-core/src/models/Sseresponse.ts b/backend/node_modules/@alicloud/openapi-core/src/models/Sseresponse.ts new file mode 100644 index 0000000..fcfe731 --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/src/models/Sseresponse.ts @@ -0,0 +1,47 @@ +// This file is auto-generated, don't edit it +import * as $dara from '@darabonba/typescript'; + + +/** + * @remarks + * This is for OpenApi SDK + */ +export class SSEResponse extends $dara.Model { + headers: { [key: string]: string }; + /** + * @remarks + * HTTP Status Code + */ + statusCode: number; + event: $dara.SSEEvent; + static names(): { [key: string]: string } { + return { + headers: 'headers', + statusCode: 'statusCode', + event: 'event', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + statusCode: 'number', + event: $dara.SSEEvent, + }; + } + + validate() { + if(this.headers) { + $dara.Model.validateMap(this.headers); + } + $dara.Model.validateRequired("headers", this.headers); + $dara.Model.validateRequired("statusCode", this.statusCode); + $dara.Model.validateRequired("event", this.event); + super.validate(); + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + diff --git a/backend/node_modules/@alicloud/openapi-core/src/models/model.ts b/backend/node_modules/@alicloud/openapi-core/src/models/model.ts new file mode 100644 index 0000000..3e7cbc7 --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/src/models/model.ts @@ -0,0 +1 @@ +export { SSEResponse } from './Sseresponse'; diff --git a/backend/node_modules/@alicloud/openapi-core/src/utils.ts b/backend/node_modules/@alicloud/openapi-core/src/utils.ts new file mode 100644 index 0000000..0fe60bd --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-core/src/utils.ts @@ -0,0 +1,1089 @@ +// This file is auto-generated, don't edit it +/** + * This is for OpenApi Util + */ +import * as $tea from '@alicloud/tea-typescript'; +import * as $dara from '@darabonba/typescript'; +import Credential from '@alicloud/credentials'; +import { Readable } from 'stream'; +import querystring from 'querystring'; +import crypto from 'crypto'; +import os from 'os'; + + +const PEM_BEGIN = "-----BEGIN PRIVATE KEY-----\n"; +const PEM_END = "\n-----END PRIVATE KEY-----"; +const DEFAULT_USER_AGENT = `AlibabaCloud (${os.platform()}; ${os.arch()}) Node.js/${process.version} Core/1.0.1 TeaDSL/2`; + + +export class GlobalParameters extends $tea.Model { + headers?: { [key: string]: string }; + queries?: { [key: string]: string }; + static names(): { [key: string]: string } { + return { + headers: 'headers', + queries: 'queries', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + queries: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + }; + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +/** + * @remarks + * Model for initing client + */ +export class Config extends $tea.Model { + /** + * @remarks + * accesskey id + */ + accessKeyId?: string; + /** + * @remarks + * accesskey secret + */ + accessKeySecret?: string; + /** + * @remarks + * security token + */ + securityToken?: string; + /** + * @remarks + * bearer token + * + * @example + * the-bearer-token + */ + bearerToken?: string; + /** + * @remarks + * http protocol + * + * @example + * http + */ + protocol?: string; + /** + * @remarks + * http method + * + * @example + * GET + */ + method?: string; + /** + * @remarks + * region id + * + * @example + * cn-hangzhou + */ + regionId?: string; + /** + * @remarks + * read timeout + * + * @example + * 10 + */ + readTimeout?: number; + /** + * @remarks + * connect timeout + * + * @example + * 10 + */ + connectTimeout?: number; + /** + * @remarks + * http proxy + * + * @example + * http://localhost + */ + httpProxy?: string; + /** + * @remarks + * https proxy + * + * @example + * https://localhost + */ + httpsProxy?: string; + /** + * @remarks + * credential + */ + credential?: Credential; + /** + * @remarks + * endpoint + * + * @example + * cs.aliyuncs.com + */ + endpoint?: string; + /** + * @remarks + * proxy white list + * + * @example + * http://localhost + */ + noProxy?: string; + /** + * @remarks + * max idle conns + * + * @example + * 3 + */ + maxIdleConns?: number; + /** + * @remarks + * network for endpoint + * + * @example + * public + */ + network?: string; + /** + * @remarks + * user agent + * + * @example + * Alibabacloud/1 + */ + userAgent?: string; + /** + * @remarks + * suffix for endpoint + * + * @example + * aliyun + */ + suffix?: string; + /** + * @remarks + * socks5 proxy + */ + socks5Proxy?: string; + /** + * @remarks + * socks5 network + * + * @example + * TCP + */ + socks5NetWork?: string; + /** + * @remarks + * endpoint type + * + * @example + * internal + */ + endpointType?: string; + /** + * @remarks + * OpenPlatform endpoint + * + * @example + * openplatform.aliyuncs.com + */ + openPlatformEndpoint?: string; + /** + * @remarks + * credential type + * + * @example + * access_key + * + * @deprecated + */ + type?: string; + /** + * @remarks + * Signature Version + * + * @example + * v1 + */ + signatureVersion?: string; + /** + * @remarks + * Signature Algorithm + * + * @example + * ACS3-HMAC-SHA256 + */ + signatureAlgorithm?: string; + /** + * @remarks + * Global Parameters + */ + globalParameters?: GlobalParameters; + /** + * @remarks + * privite key for client certificate + * + * @example + * MIIEvQ + */ + key?: string; + /** + * @remarks + * client certificate + * + * @example + * -----BEGIN CERTIFICATE----- + * xxx-----END CERTIFICATE----- + */ + cert?: string; + /** + * @remarks + * server certificate + * + * @example + * -----BEGIN CERTIFICATE----- + * xxx-----END CERTIFICATE----- + */ + ca?: string; + /** + * @remarks + * disable HTTP/2 + * + * @example + * false + */ + disableHttp2?: boolean; + tlsMinVersion?: string; + /** + * @remarks + * retry options + */ + retryOptions?: $dara.RetryOptions; + static names(): { [key: string]: string } { + return { + accessKeyId: 'accessKeyId', + accessKeySecret: 'accessKeySecret', + securityToken: 'securityToken', + bearerToken: 'bearerToken', + protocol: 'protocol', + method: 'method', + regionId: 'regionId', + readTimeout: 'readTimeout', + connectTimeout: 'connectTimeout', + httpProxy: 'httpProxy', + httpsProxy: 'httpsProxy', + credential: 'credential', + endpoint: 'endpoint', + noProxy: 'noProxy', + maxIdleConns: 'maxIdleConns', + network: 'network', + userAgent: 'userAgent', + suffix: 'suffix', + socks5Proxy: 'socks5Proxy', + socks5NetWork: 'socks5NetWork', + endpointType: 'endpointType', + openPlatformEndpoint: 'openPlatformEndpoint', + type: 'type', + signatureVersion: 'signatureVersion', + signatureAlgorithm: 'signatureAlgorithm', + globalParameters: 'globalParameters', + key: 'key', + cert: 'cert', + ca: 'ca', + disableHttp2: 'disableHttp2', + tlsMinVersion: 'tlsMinVersion', + retryOptions: 'retryOptions', + }; + } + + static types(): { [key: string]: any } { + return { + accessKeyId: 'string', + accessKeySecret: 'string', + securityToken: 'string', + bearerToken: 'string', + protocol: 'string', + method: 'string', + regionId: 'string', + readTimeout: 'number', + connectTimeout: 'number', + httpProxy: 'string', + httpsProxy: 'string', + credential: Credential, + endpoint: 'string', + noProxy: 'string', + maxIdleConns: 'number', + network: 'string', + userAgent: 'string', + suffix: 'string', + socks5Proxy: 'string', + socks5NetWork: 'string', + endpointType: 'string', + openPlatformEndpoint: 'string', + type: 'string', + signatureVersion: 'string', + signatureAlgorithm: 'string', + globalParameters: GlobalParameters, + key: 'string', + cert: 'string', + ca: 'string', + disableHttp2: 'boolean', + tlsMinVersion: 'string', + retryOptions: $dara.RetryOptions, + }; + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class OpenApiRequest extends $tea.Model { + headers?: { [key: string]: string }; + query?: { [key: string]: string }; + body?: any; + stream?: Readable; + hostMap?: { [key: string]: string }; + endpointOverride?: string; + static names(): { [key: string]: string } { + return { + headers: 'headers', + query: 'query', + body: 'body', + stream: 'stream', + hostMap: 'hostMap', + endpointOverride: 'endpointOverride', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + query: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + body: 'any', + stream: 'Readable', + hostMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + endpointOverride: 'string', + }; + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class Params extends $tea.Model { + action: string; + version: string; + protocol: string; + pathname: string; + method: string; + authType: string; + bodyType: string; + reqBodyType: string; + style?: string; + static names(): { [key: string]: string } { + return { + action: 'action', + version: 'version', + protocol: 'protocol', + pathname: 'pathname', + method: 'method', + authType: 'authType', + bodyType: 'bodyType', + reqBodyType: 'reqBodyType', + style: 'style', + }; + } + + static types(): { [key: string]: any } { + return { + action: 'string', + version: 'string', + protocol: 'string', + pathname: 'string', + method: 'string', + authType: 'string', + bodyType: 'string', + reqBodyType: 'string', + style: 'string', + }; + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +function replaceRepeatList(target: { [key: string]: string }, repeat: any[], prefix: string) { + if (prefix) { + prefix = prefix + '.'; + } + for (var i = 0; i < repeat.length; i++) { + var item = repeat[i]; + let key = prefix + (i + 1); + if (typeof item === 'undefined' || item == null) { + continue; + } + if (Array.isArray(item)) { + replaceRepeatList(target, item, key); + } else if (item instanceof Object) { + flatMap(target, item, key); + } else { + target[key] = item.toString(); + } + } +} + +function flatMap(target: { [key: string]: any }, params: { [key: string]: any }, prefix: string = '') { + if (prefix) { + prefix = prefix + '.'; + } + params = toMap(params); + let keys = Object.keys(params); + for (let i = 0; i < keys.length; i++) { + let key = keys[i]; + let value = params[key]; + key = prefix + key; + if (typeof value === 'undefined' || value == null) { + continue; + } + + if (Array.isArray(value)) { + replaceRepeatList(target, value, key); + } else if (value instanceof Object) { + flatMap(target, value, key); + } else { + target[key] = value.toString(); + } + } + return target; +} + +function filter(value: string): string { + return value.replace(/[\t\n\r\f]/g, ' '); +} + +function getCanonicalizedHeaders(headers: { [key: string]: string }): string { + const prefix = 'x-acs-'; + const keys = Object.keys(headers); + + const canonicalizedKeys = []; + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; + if (key.startsWith(prefix)) { + canonicalizedKeys.push(key); + } + } + + canonicalizedKeys.sort(); + + var result = ''; + for (let i = 0; i < canonicalizedKeys.length; i++) { + const key = canonicalizedKeys[i]; + result += `${key}:${filter(headers[key]).trim()}\n`; + } + + return result; +} + +function getCanonicalizedResource(uriPattern: string, query: { [key: string]: string }): string { + const keys = !query ? [] : Object.keys(query).sort(); + + if (keys.length === 0) { + return uriPattern; + } + + var result = []; + for (var i = 0; i < keys.length; i++) { + const key = keys[i]; + result.push(`${key}=${query[key]}`); + } + + return `${uriPattern}?${result.join('&')}`; +} + +function getAuthorizationQueryString(query: { [key: string]: string }): string { + let canonicalQueryArray = []; + const keys = !query ? [] : Object.keys(query).sort(); + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; + let param = key + '=' + if (typeof query[key] !== 'undefined' && query[key] !== null) { + param = param + encode(query[key]) + } + canonicalQueryArray.push(param) + } + return canonicalQueryArray.join('&'); +} + +function getAuthorizationHeaders(header: { [key: string]: string }): {} { + let canonicalheaders = ""; + let tmp = {}; + const keys = !header ? [] : Object.keys(header); + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; + const lowerKey = keys[i].toLowerCase(); + if (lowerKey.startsWith("x-acs-") || lowerKey === "host" || lowerKey === "content-type") { + if (tmp[lowerKey]) { + tmp[lowerKey].push((header[key] || "").trim()); + } else { + tmp[lowerKey] = [(header[key] || "").trim()]; + } + } + } + var hsKeys = Object.keys(tmp).sort(); + for (let i = 0; i < hsKeys.length; i++) { + const hsKey = hsKeys[i]; + let listSort = tmp[hsKey].sort(); + canonicalheaders += `${hsKey}:${listSort.join(",")}\n`; + } + + return { canonicalheaders, hsKeys }; +} + +function encode(str: string) { + var result = encodeURIComponent(str); + + return result.replace(/!/g, '%21') + .replace(/'/g, '%27') + .replace(/\(/g, '%28') + .replace(/\)/g, '%29') + .replace(/\*/g, '%2A'); +} + +function normalize(params: { [key: string]: any }) { + var list = []; + var flated: { [key: string]: string } = {}; + flatMap(flated, params); + var keys = Object.keys(flated).sort(); + for (let i = 0; i < keys.length; i++) { + var key = keys[i]; + var value = flated[key]; + list.push([encode(key), encode(value)]); + } + return list; +} + +function canonicalize(normalized: any[]) { + var fields = []; + for (var i = 0; i < normalized.length; i++) { + var [key, value] = normalized[i]; + fields.push(key + '=' + value); + } + return fields.join('&'); +} + +function isModelClass(t: any): boolean { + if (!t) { + return false; + } + return typeof t.types === 'function' && typeof t.names === 'function'; +} + +function isObjectOrArray(t: any): boolean { + return Array.isArray(t) || (t instanceof Object && typeof t !== 'function'); +} + +function getTimeLeft(rateLimit: string | null): number | null { + if (rateLimit) { + const pairs = rateLimit.split(','); + for (const pair of pairs) { + const kv = pair.split(':'); + if (kv.length === 2) { + const key = kv[0].trim(); + const value = kv[1].trim(); + if (key === 'TimeLeft') { + const timeLeftValue = parseInt(value, 10); + if (isNaN(timeLeftValue)) { + return null; + } + return timeLeftValue; + } + } + } + } + return null; +} + +function toMap(input: any) { + if (!isObjectOrArray(input)) { + return null; + } else if (input instanceof $tea.Model) { + return $tea.toMap(input); + } else if (input && input.toMap && typeof input.toMap === 'function') { + // 解决跨版本 Model 不互认的问题 + return input.toMap(); + } else if (Array.isArray(input)) { + const result = []; + input.forEach((value) => { + if (isObjectOrArray(value)) { + result.push(toMap(value)); + } else { + result.push(value); + } + }); + + return result; + } else if (input instanceof Object) { + const result = {}; + Object.entries(input).forEach(([key, value]) => { + if (isObjectOrArray(value)) { + result[key] = toMap(value); + } else { + result[key] = value; + } + }); + + return result; + } +} + +export default class Client { + + /** + * Convert all params of body other than type of readable into content + * @param body source Model + * @param content target Model + * @return void + */ + static convert(input: $tea.Model, output: $tea.Model): void { + if (!output) { + return; + } + let inputModel = Object.assign({}, input); + let constructor = output.constructor; + let types = constructor.types(); + // let constructor = output.constructor; + for (let key of Object.keys(constructor.names())) { + if (inputModel[key] !== null && inputModel[key] !== undefined) { + if (isModelClass(types[key])) { + output[key] = new types[key](output[key]); + Client.convert(inputModel[key], output[key]); + } else if (types[key] && types[key].type === 'array') { + output[key] = inputModel[key].map(function (d) { + if (isModelClass(types[key].itemType)) { + var item = new types[key].itemType({}); + Client.convert(d, item); + return item; + } + return d; + }); + } else if (types[key] && types[key].type === 'map') { + output[key] = {}; + Object.keys(inputModel[key]).map(function (d) { + if (isModelClass(types[key].valueType)) { + var item = new types[key].valueType({}); + Client.convert(inputModel[key][d], item); + output[key][d] = item; + } else { + output[key][d] = inputModel[key][d]; + } + }); + } else { + output[key] = inputModel[key]; + } + } + } + } + + /** + * If endpointType is internal, use internal endpoint + * If serverUse is true and endpointType is accelerate, use accelerate endpoint + * Default return endpoint + * @param serverUse whether use accelerate endpoint + * @param endpointType value must be internal or accelerate + * @return the final endpoint + */ + static getEndpoint(endpoint: string, serverUse: boolean, endpointType: string): string { + if (endpointType == "internal") { + let strs = endpoint.split("."); + strs[0] += "-internal"; + endpoint = strs.join(".") + } + if (serverUse && endpointType == "accelerate") { + return "oss-accelerate.aliyuncs.com" + } + + return endpoint + } + + /** + * Get throttling param + * @param the response headers + * @return time left + */ + static getThrottlingTimeLeft(headers: {[key: string ]: string}): number { + const rateLimitForUserApi = headers["x-ratelimit-user-api"]; + const rateLimitForUser = headers["x-ratelimit-user"]; + const timeLeftForUserApi = getTimeLeft(rateLimitForUserApi); + const timeLeftForUser = getTimeLeft(rateLimitForUser); + + if (timeLeftForUserApi > timeLeftForUser) { + return timeLeftForUserApi; + } else { + return timeLeftForUser; + } + } + + /** + * Hash the raw data with signatureAlgorithm + * @param raw hashing data + * @param signatureAlgorithm the autograph method + * @return hashed bytes + */ + static hash(raw: Buffer, signatureAlgorithm: string): Buffer { + if (signatureAlgorithm === "ACS3-HMAC-SHA256" || signatureAlgorithm === "ACS3-RSA-SHA256") { + const obj = crypto.createHash('sha256'); + obj.update(raw); + return obj.digest(); + } else if (signatureAlgorithm == "ACS3-HMAC-SM3") { + const obj = crypto.createHash('sm3'); + obj.update(raw); + return obj.digest(); + } + } + + /** + * Generate a nonce string + * @return the nonce string + */ + static getNonce(): string { + let counter = 0; + let last; + const machine = os.hostname(); + const pid = process.pid; + + var val = Math.floor(Math.random() * 1000000000000); + if (val === last) { + counter++; + } else { + counter = 0; + } + + last = val; + + var uid = `${machine}${pid}${val}${counter}`; + var shasum = crypto.createHash('md5'); + shasum.update(uid); + return shasum.digest('hex'); + } + + /** + * Get the string to be signed according to request + * @param request which contains signed messages + * @return the signed string + */ + static getStringToSign(request: $tea.Request): string { + const method = request.method; + const accept = request.headers['accept']; + const contentMD5 = request.headers['content-md5'] || ''; + const contentType = request.headers['content-type'] || ''; + const date = request.headers['date'] || ''; + const header = `${method} +${accept} +${contentMD5} +${contentType} +${date} +`; + const canonicalizedHeaders = getCanonicalizedHeaders(request.headers); + const canonicalizedResource = getCanonicalizedResource(request.pathname, request.query); + + return `${header}${canonicalizedHeaders}${canonicalizedResource}`; + } + + /** + * Get signature according to stringToSign, secret + * @param stringToSign the signed string + * @param secret accesskey secret + * @return the signature + */ + static getROASignature(stringToSign: string, secret: string): string { + const utf8Buff = Buffer.from(stringToSign, 'utf8'); + return crypto.createHmac('sha1', secret).update(utf8Buff).digest('base64') + } + + /** + * Parse filter into a form string + * @param filter object + * @return the string + */ + static toForm(filter: {[key: string]: any}): string { + if (!filter) { + return ''; + } + let target = {}; + flatMap(target, filter); + return $dara.Form.toFormString(target); + } + + /** + * Get timestamp + * @return the timestamp string + */ + static getTimestamp(): string { + let date = new Date(); + let YYYY = date.getUTCFullYear(); + let MM =`${date.getUTCMonth() + 1}`.padStart(2, '0'); + let DD =`${date.getUTCDate()}`.padStart(2, '0'); + let HH =`${date.getUTCHours()}`.padStart(2, '0'); + let mm =`${date.getUTCMinutes()}`.padStart(2, '0'); + let ss =`${date.getUTCSeconds()}`.padStart(2, '0'); + return `${YYYY}-${MM}-${DD}T${HH}:${mm}:${ss}Z`; + } + + /** + * Get UTC string + * @return the UTC string + */ + static getDateUTCString(): string { + const now = new Date(); + return now.toUTCString(); + } + + /** + * Parse filter into a object which's type is map[string]string + * @param filter query param + * @return the object + */ + static query(filter: {[key: string]: any}): {[key: string ]: string} { + if (!filter) { + return {}; + } + let ret: { [key: string]: string } = {}; + flatMap(ret, filter); + return ret; + } + + /** + * Get signature according to signedParams, method and secret + * @param signedParams params which need to be signed + * @param method http method e.g. GET + * @param secret AccessKeySecret + * @return the signature + */ + static getRPCSignature(signedParams: {[key: string ]: string}, method: string, secret: string): string { + var normalized = normalize(signedParams); + var canonicalized = canonicalize(normalized); + var stringToSign = `${method}&${encode('/')}&${encode(canonicalized)}`; + const key = secret + '&'; + return crypto.createHmac('sha1', key).update(stringToSign).digest('base64'); + } + + /** + * Parse array into a string with specified style + * @param array the array + * @param prefix the prefix string + * @style specified style e.g. repeatList + * @return the string + */ + static arrayToStringWithSpecifiedStyle(array: any, prefix: string, style: string): string { + if (!array) { + return ''; + } + if (style === 'repeatList') { + let target = {}; + replaceRepeatList(target, array, prefix); + return querystring.stringify(target, '&&'); + } else if (style === 'json') { + return JSON.stringify(toMap(array)); + } else if (style === 'simple') { + return array.join(','); + } else if (style === 'spaceDelimited') { + return array.join(' '); + } else if (style === 'pipeDelimited') { + return array.join('|'); + } else { + return ''; + } + } + + static stringifyMapValue(m: { [key: string]: any }): { [key: string]: string } { + if (!m) { + return m; + } + + const result: { [key: string]: string } = {}; + for (const [key, value] of Object.entries(m)) { + if (typeof value === 'undefined' || value === null) { + continue; + } + result[key] = String(value); + } + return result; + } + + + static toArray(input: any): { [key: string]: any }[] { + if (!(input instanceof Array)) { + return null; + } + let ret = []; + input.forEach((model) => { + if (!model) { + return; + } + ret.push($tea.toMap(model)); + }) + return ret; + } + + static getEndpointRules(product: string, regionId: string, endpointType: string, network: string, suffix: string): string { + let result; + if (network && network.length && network != "public") { + network = "-" + network; + } else { + network = ""; + } + suffix = suffix || ""; + if (suffix.length) { + suffix = "-" + suffix; + } + if (endpointType == "regional") { + if (!regionId || !regionId.length) { + throw new Error("RegionId is empty, please set a valid RegionId"); + } + result = `${product}${suffix}${network}.${regionId}.aliyuncs.com`; + } else { + result = `${product}${suffix}${network}.aliyuncs.com`; + } + return result; + } + + /** + * Transform input as map. + */ + static parseToMap(input: any): {[key: string ]: any} { + return toMap(input); + } + + /** + * Get the authorization + * @param request request params + * @param signatureAlgorithm the autograph method + * @param payload the hashed request + * @param accessKey the accessKey string + * @param accessKeySecret the accessKeySecret string + * @return authorization string + */ + static getAuthorization(request: $tea.Request, signatureAlgorithm: string, payload: string, accessKey: string, accessKeySecret: string): string { + const canonicalURI = (request.pathname || "").replace("+", "%20").replace("*", "%2A").replace("%7E", "~"); + const method = request.method; + const canonicalQueryString = getAuthorizationQueryString(request.query); + const tuple = getAuthorizationHeaders(request.headers); + const canonicalheaders = tuple["canonicalheaders"]; + const signedHeaders = tuple["hsKeys"]; + + const canonicalRequest = method + "\n" + canonicalURI + "\n" + canonicalQueryString + "\n" + canonicalheaders + "\n" + + signedHeaders.join(";") + "\n" + payload; + let raw = Buffer.from(canonicalRequest); + const stringToSign = signatureAlgorithm + "\n" + Client.hash(raw, signatureAlgorithm).toString("hex"); + const signature = Client.signatureMethod(accessKeySecret, stringToSign, signatureAlgorithm).toString("hex"); + const auth = `${signatureAlgorithm} Credential=${accessKey},SignedHeaders=${signedHeaders.join(';')},Signature=${signature}`; + + return auth; + } + + static getUserAgent(userAgent: string): string { + if (!userAgent || !userAgent.length) { + return DEFAULT_USER_AGENT; + } + return DEFAULT_USER_AGENT + " " + userAgent; + } + + static signatureMethod(secret: string, source: string, signatureAlgorithm: string): Buffer { + if (signatureAlgorithm === "ACS3-HMAC-SHA256") { + const obj = crypto.createHmac('sha256', secret); + obj.update(source); + return obj.digest(); + } else if (signatureAlgorithm === "ACS3-HMAC-SM3") { + const obj = crypto.createHmac('sm3', secret); + obj.update(source); + return obj.digest(); + } else if (signatureAlgorithm === "ACS3-RSA-SHA256") { + + if (!secret.startsWith(PEM_BEGIN)) { + secret = PEM_BEGIN + secret; + } + if (!secret.endsWith(PEM_END)) { + secret = secret + PEM_END; + } + + var signerObject = crypto.createSign("RSA-SHA256"); + signerObject.update(source); + var signature = signerObject.sign({ key: secret, padding: crypto.constants.RSA_PKCS1_PADDING }); + return signature; + } + } + + /** + * Transform a map to a flat style map where keys are prefixed with length info. + * Map keys are transformed from "key" to "#length#key" format. + * @param input the input object (can be an object, array, or primitive type) + * @return the transformed object + */ + static mapToFlatStyle(input: any): any { + if (input === null || input === undefined) { + return input; + } + + // Handle array + if (Array.isArray(input)) { + const result = []; + for (const item of input) { + result.push(Client.mapToFlatStyle(item)); + } + return result; + } + + // Handle $tea.Model + if (input instanceof $tea.Model) { + // Modify the original Model object's fields + for (const [key, value] of Object.entries(input)) { + if (value !== null && value !== undefined && typeof value === 'object' && !Array.isArray(value) && !(value instanceof $tea.Model)) { + // This is a plain object (dictionary), apply flat style to keys + const flatMap: { [key: string]: any } = {}; + for (const [nestedKey, nestedValue] of Object.entries(value)) { + const flatKey = `#${nestedKey.length}#${nestedKey}`; + flatMap[flatKey] = Client.mapToFlatStyle(nestedValue); + } + (input as any)[key] = flatMap; + } else { + // Recursively process other fields + (input as any)[key] = Client.mapToFlatStyle(value); + } + } + return input; // Return the modified original Model + } + + // Handle plain object + if (typeof input === 'object' && !Array.isArray(input)) { + const flatMap: { [key: string]: any } = {}; + for (const [key, value] of Object.entries(input)) { + const flatKey = `#${key.length}#${key}`; + flatMap[flatKey] = Client.mapToFlatStyle(value); + } + return flatMap; + } + + // For primitive types, return as-is + return input; + } + +} diff --git a/backend/node_modules/@alicloud/openapi-util/dist/client.d.ts b/backend/node_modules/@alicloud/openapi-util/dist/client.d.ts new file mode 100644 index 0000000..8ea7242 --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-util/dist/client.d.ts @@ -0,0 +1,108 @@ +/// +/** + * This is for OpenApi Util + */ +import * as $tea from '@alicloud/tea-typescript'; +export default class Client { + /** + * Convert all params of body other than type of readable into content + * @param input source Model + * @param output target Model + * @return void + */ + static convert(input: $tea.Model, output: $tea.Model): void; + /** + * Get the string to be signed according to request + * @param request which contains signed messages + * @return the signed string + */ + static getStringToSign(request: $tea.Request): string; + /** + * Get signature according to stringToSign, secret + * @param stringToSign the signed string + * @param secret accesskey secret + * @return the signature + */ + static getROASignature(stringToSign: string, secret: string): string; + /** + * Parse filter into a form string + * @param filter object + * @return the string + */ + static toForm(filter: { + [key: string]: any; + }): string; + /** + * Get timestamp + * @return the timestamp string + */ + static getTimestamp(): string; + /** + * Parse filter into a object which's type is map[string]string + * @param filter query param + * @return the object + */ + static query(filter: { + [key: string]: any; + }): { + [key: string]: string; + }; + /** + * Get signature according to signedParams, method and secret + * @param signedParams params which need to be signed + * @param method http method e.g. GET + * @param secret AccessKeySecret + * @return the signature + */ + static getRPCSignature(signedParams: { + [key: string]: string; + }, method: string, secret: string): string; + /** + * Parse array into a string with specified style + * @param array the array + * @param prefix the prefix string + * @style specified style e.g. repeatList + * @return the string + */ + static arrayToStringWithSpecifiedStyle(array: any, prefix: string, style: string): string; + /** + * Transform input as map. + */ + static parseToMap(input: any): { + [key: string]: any; + }; + static getEndpoint(endpoint: string, serverUse: boolean, endpointType: string): string; + /** + * Encode raw with base16 + * @param raw encoding data + * @return encoded string + */ + static hexEncode(raw: Buffer): string; + /** + * Hash the raw data with signatureAlgorithm + * @param raw hashing data + * @param signatureAlgorithm the autograph method + * @return hashed bytes + */ + static hash(raw: Buffer, signatureAlgorithm: string): Buffer; + static signatureMethod(secret: string, source: string, signatureAlgorithm: string): Buffer; + /** + * Get the authorization + * @param request request params + * @param signatureAlgorithm the autograph method + * @param payload the hashed request + * @param acesskey the acesskey string + * @param accessKeySecret the accessKeySecret string + * @return authorization string + */ + static getAuthorization(request: $tea.Request, signatureAlgorithm: string, payload: string, acesskey: string, accessKeySecret: string): string; + static getEncodePath(path: string): string; + static getEncodeParam(param: string): string; + /** + * Transform a map to a flat style map where keys are prefixed with length info. + * Map keys are transformed from "key" to "#length#key" format. + * @param object the input object (can be a Model, Array, Map, or other types) + * @return the transformed object + */ + static mapToFlatStyle(object: any): any; +} diff --git a/backend/node_modules/@alicloud/openapi-util/dist/client.js b/backend/node_modules/@alicloud/openapi-util/dist/client.js new file mode 100644 index 0000000..4a363aa --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-util/dist/client.js @@ -0,0 +1,543 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (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 (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +// This file is auto-generated, don't edit it +/** + * This is for OpenApi Util + */ +const $tea = __importStar(require("@alicloud/tea-typescript")); +const tea_util_1 = __importDefault(require("@alicloud/tea-util")); +const kitx_1 = __importDefault(require("kitx")); +const querystring_1 = __importDefault(require("querystring")); +const crypto_1 = __importDefault(require("crypto")); +const PEM_BEGIN = "-----BEGIN PRIVATE KEY-----\n"; +const PEM_END = "\n-----END PRIVATE KEY-----"; +function replaceRepeatList(target, repeat, prefix) { + if (prefix) { + prefix = prefix + '.'; + } + for (var i = 0; i < repeat.length; i++) { + var item = repeat[i]; + let key = prefix + (i + 1); + if (typeof item === 'undefined' || item == null) { + continue; + } + if (Array.isArray(item)) { + replaceRepeatList(target, item, key); + } + else if (item instanceof Object) { + flatMap(target, item, key); + } + else { + target[key] = item.toString(); + } + } +} +function flatMap(target, params, prefix = '') { + if (prefix) { + prefix = prefix + '.'; + } + params = toMap(params); + let keys = Object.keys(params); + for (let i = 0; i < keys.length; i++) { + let key = keys[i]; + let value = params[key]; + key = prefix + key; + if (typeof value === 'undefined' || value == null) { + continue; + } + if (Array.isArray(value)) { + replaceRepeatList(target, value, key); + } + else if (value instanceof Object) { + flatMap(target, value, key); + } + else { + target[key] = value.toString(); + } + } + return target; +} +function filter(value) { + return value.replace(/[\t\n\r\f]/g, ' '); +} +function getCanonicalizedHeaders(headers) { + const prefix = 'x-acs-'; + const keys = Object.keys(headers); + const canonicalizedKeys = []; + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; + if (key.startsWith(prefix)) { + canonicalizedKeys.push(key); + } + } + canonicalizedKeys.sort(); + var result = ''; + for (let i = 0; i < canonicalizedKeys.length; i++) { + const key = canonicalizedKeys[i]; + result += `${key}:${filter(headers[key]).trim()}\n`; + } + return result; +} +function getCanonicalizedResource(uriPattern, query) { + const keys = !query ? [] : Object.keys(query).sort(); + if (keys.length === 0) { + return uriPattern; + } + var result = []; + for (var i = 0; i < keys.length; i++) { + const key = keys[i]; + result.push(`${key}=${query[key]}`); + } + return `${uriPattern}?${result.join('&')}`; +} +function getAuthorizationQueryString(query) { + let canonicalQueryArray = []; + const keys = !query ? [] : Object.keys(query).sort(); + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; + let param = key + '='; + if (typeof query[key] !== 'undefined' && query[key] !== null) { + param = param + encode(query[key]); + } + canonicalQueryArray.push(param); + } + return canonicalQueryArray.join('&'); +} +function getAuthorizationHeaders(header) { + let canonicalheaders = ""; + let tmp = {}; + const keys = !header ? [] : Object.keys(header); + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; + const lowerKey = keys[i].toLowerCase(); + if (lowerKey.startsWith("x-acs-") || lowerKey === "host" || lowerKey === "content-type") { + if (tmp[lowerKey]) { + tmp[lowerKey].push((header[key] || "").trim()); + } + else { + tmp[lowerKey] = [(header[key] || "").trim()]; + } + } + } + var hsKeys = Object.keys(tmp).sort(); + for (let i = 0; i < hsKeys.length; i++) { + const hsKey = hsKeys[i]; + let listSort = tmp[hsKey].sort(); + canonicalheaders += `${hsKey}:${listSort.join(",")}\n`; + } + return { canonicalheaders, hsKeys }; +} +function encode(str) { + var result = encodeURIComponent(str); + return result.replace(/!/g, '%21') + .replace(/'/g, '%27') + .replace(/\(/g, '%28') + .replace(/\)/g, '%29') + .replace(/\*/g, '%2A'); +} +function normalize(params) { + var list = []; + var flated = {}; + flatMap(flated, params); + var keys = Object.keys(flated).sort(); + for (let i = 0; i < keys.length; i++) { + var key = keys[i]; + var value = flated[key]; + list.push([encode(key), encode(value)]); + } + return list; +} +function canonicalize(normalized) { + var fields = []; + for (var i = 0; i < normalized.length; i++) { + var [key, value] = normalized[i]; + fields.push(key + '=' + value); + } + return fields.join('&'); +} +function isModelClass(t) { + if (!t) { + return false; + } + return typeof t.types === 'function' && typeof t.names === 'function'; +} +function isObjectOrArray(t) { + return Array.isArray(t) || (t instanceof Object && typeof t !== 'function'); +} +function toMap(input) { + if (!isObjectOrArray(input)) { + return null; + } + else if (input instanceof $tea.Model) { + return $tea.toMap(input); + } + else if (input && input.toMap && typeof input.toMap === 'function') { + // 解决跨版本 Model 不互认的问题 + return input.toMap(); + } + else if (Array.isArray(input)) { + const result = []; + input.forEach((value) => { + if (isObjectOrArray(value)) { + result.push(toMap(value)); + } + else { + result.push(value); + } + }); + return result; + } + else if (input instanceof Object) { + const result = {}; + Object.entries(input).forEach(([key, value]) => { + if (isObjectOrArray(value)) { + result[key] = toMap(value); + } + else { + result[key] = value; + } + }); + return result; + } +} +class Client { + /** + * Convert all params of body other than type of readable into content + * @param input source Model + * @param output target Model + * @return void + */ + static convert(input, output) { + if (!output) { + return; + } + let inputModel = Object.assign({}, input); + let constructor = output.constructor; + let types = constructor.types(); + // let constructor = output.constructor; + for (let key of Object.keys(constructor.names())) { + if (inputModel[key] !== null && inputModel[key] !== undefined) { + if (isModelClass(types[key])) { + output[key] = new types[key](output[key]); + Client.convert(inputModel[key], output[key]); + } + else if (types[key] && types[key].type === 'array') { + output[key] = inputModel[key].map(function (d) { + if (isModelClass(types[key].itemType)) { + var item = new types[key].itemType({}); + Client.convert(d, item); + return item; + } + return d; + }); + } + else if (types[key] && types[key].type === 'map') { + output[key] = {}; + Object.keys(inputModel[key]).map(function (d) { + if (isModelClass(types[key].valueType)) { + var item = new types[key].valueType({}); + Client.convert(inputModel[key][d], item); + output[key][d] = item; + } + else { + output[key][d] = inputModel[key][d]; + } + }); + } + else { + output[key] = inputModel[key]; + } + } + } + } + /** + * Get the string to be signed according to request + * @param request which contains signed messages + * @return the signed string + */ + static getStringToSign(request) { + const method = request.method; + const accept = request.headers['accept']; + const contentMD5 = request.headers['content-md5'] || ''; + const contentType = request.headers['content-type'] || ''; + const date = request.headers['date'] || ''; + const header = `${method}\n${accept}\n${contentMD5}\n${contentType}\n${date}\n`; + const canonicalizedHeaders = getCanonicalizedHeaders(request.headers); + const canonicalizedResource = getCanonicalizedResource(request.pathname, request.query); + return `${header}${canonicalizedHeaders}${canonicalizedResource}`; + } + /** + * Get signature according to stringToSign, secret + * @param stringToSign the signed string + * @param secret accesskey secret + * @return the signature + */ + static getROASignature(stringToSign, secret) { + const utf8Buff = Buffer.from(stringToSign, 'utf8'); + return kitx_1.default.sha1(utf8Buff, secret, 'base64'); + } + /** + * Parse filter into a form string + * @param filter object + * @return the string + */ + static toForm(filter) { + if (!filter) { + return ''; + } + let target = {}; + flatMap(target, filter); + return tea_util_1.default.toFormString(target); + } + /** + * Get timestamp + * @return the timestamp string + */ + static getTimestamp() { + let date = new Date(); + let YYYY = date.getUTCFullYear(); + let MM = kitx_1.default.pad2(date.getUTCMonth() + 1); + let DD = kitx_1.default.pad2(date.getUTCDate()); + let HH = kitx_1.default.pad2(date.getUTCHours()); + let mm = kitx_1.default.pad2(date.getUTCMinutes()); + let ss = kitx_1.default.pad2(date.getUTCSeconds()); + return `${YYYY}-${MM}-${DD}T${HH}:${mm}:${ss}Z`; + } + /** + * Parse filter into a object which's type is map[string]string + * @param filter query param + * @return the object + */ + static query(filter) { + if (!filter) { + return {}; + } + let ret = {}; + flatMap(ret, filter); + return ret; + } + /** + * Get signature according to signedParams, method and secret + * @param signedParams params which need to be signed + * @param method http method e.g. GET + * @param secret AccessKeySecret + * @return the signature + */ + static getRPCSignature(signedParams, method, secret) { + var normalized = normalize(signedParams); + var canonicalized = canonicalize(normalized); + var stringToSign = `${method}&${encode('/')}&${encode(canonicalized)}`; + const key = secret + '&'; + return kitx_1.default.sha1(stringToSign, key, 'base64'); + } + /** + * Parse array into a string with specified style + * @param array the array + * @param prefix the prefix string + * @style specified style e.g. repeatList + * @return the string + */ + static arrayToStringWithSpecifiedStyle(array, prefix, style) { + if (!array) { + return ''; + } + if (style === 'repeatList') { + let target = {}; + replaceRepeatList(target, array, prefix); + return querystring_1.default.stringify(target, '&&'); + } + else if (style === 'json') { + return JSON.stringify(toMap(array)); + } + else if (style === 'simple') { + return array.join(','); + } + else if (style === 'spaceDelimited') { + return array.join(' '); + } + else if (style === 'pipeDelimited') { + return array.join('|'); + } + else { + return ''; + } + } + /** + * Transform input as map. + */ + static parseToMap(input) { + return toMap(input); + } + static getEndpoint(endpoint, serverUse, endpointType) { + if (endpointType == "internal") { + let strs = endpoint.split("."); + strs[0] += "-internal"; + endpoint = strs.join("."); + } + if (serverUse && endpointType == "accelerate") { + return "oss-accelerate.aliyuncs.com"; + } + return endpoint; + } + /** + * Encode raw with base16 + * @param raw encoding data + * @return encoded string + */ + static hexEncode(raw) { + return raw.toString("hex"); + } + /** + * Hash the raw data with signatureAlgorithm + * @param raw hashing data + * @param signatureAlgorithm the autograph method + * @return hashed bytes + */ + static hash(raw, signatureAlgorithm) { + if (signatureAlgorithm === "ACS3-HMAC-SHA256" || signatureAlgorithm === "ACS3-RSA-SHA256") { + const obj = crypto_1.default.createHash('sha256'); + obj.update(raw); + return obj.digest(); + } + else if (signatureAlgorithm == "ACS3-HMAC-SM3") { + const obj = crypto_1.default.createHash('sm3'); + obj.update(raw); + return obj.digest(); + } + } + static signatureMethod(secret, source, signatureAlgorithm) { + if (signatureAlgorithm === "ACS3-HMAC-SHA256") { + const obj = crypto_1.default.createHmac('sha256', secret); + obj.update(source); + return obj.digest(); + } + else if (signatureAlgorithm === "ACS3-HMAC-SM3") { + const obj = crypto_1.default.createHmac('sm3', secret); + obj.update(source); + return obj.digest(); + } + else if (signatureAlgorithm === "ACS3-RSA-SHA256") { + if (!secret.startsWith(PEM_BEGIN)) { + secret = PEM_BEGIN + secret; + } + if (!secret.endsWith(PEM_END)) { + secret = secret + PEM_END; + } + var signerObject = crypto_1.default.createSign("RSA-SHA256"); + signerObject.update(source); + var signature = signerObject.sign({ key: secret, padding: crypto_1.default.constants.RSA_PKCS1_PADDING }); + return signature; + } + } + /** + * Get the authorization + * @param request request params + * @param signatureAlgorithm the autograph method + * @param payload the hashed request + * @param acesskey the acesskey string + * @param accessKeySecret the accessKeySecret string + * @return authorization string + */ + static getAuthorization(request, signatureAlgorithm, payload, acesskey, accessKeySecret) { + const canonicalURI = (request.pathname || "").replace("+", "%20").replace("*", "%2A").replace("%7E", "~"); + const method = request.method; + const canonicalQueryString = getAuthorizationQueryString(request.query); + const tuple = getAuthorizationHeaders(request.headers); + const canonicalheaders = tuple["canonicalheaders"]; + const signedHeaders = tuple["hsKeys"]; + const canonicalRequest = method + "\n" + canonicalURI + "\n" + canonicalQueryString + "\n" + canonicalheaders + "\n" + + signedHeaders.join(";") + "\n" + payload; + let raw = Buffer.from(canonicalRequest); + const stringToSign = signatureAlgorithm + "\n" + Client.hexEncode(Client.hash(raw, signatureAlgorithm)); + const signature = Client.hexEncode(Client.signatureMethod(accessKeySecret, stringToSign, signatureAlgorithm)); + const auth = `${signatureAlgorithm} Credential=${acesskey},SignedHeaders=${signedHeaders.join(';')},Signature=${signature}`; + return auth; + } + static getEncodePath(path) { + if (typeof path === 'undefined' || path === null) { + return ''; + } + let strs = path.split('/'); + for (let i = 0; i < strs.length; i++) { + strs[i] = encode(strs[i]); + } + return strs.join('/'); + } + static getEncodeParam(param) { + if (typeof param === 'undefined' || param === null) { + return ''; + } + return encode(param); + } + /** + * Transform a map to a flat style map where keys are prefixed with length info. + * Map keys are transformed from "key" to "#length#key" format. + * @param object the input object (can be a Model, Array, Map, or other types) + * @return the transformed object + */ + static mapToFlatStyle(object) { + if (object === null || object === undefined) { + return object; + } + if (Array.isArray(object)) { + const list = []; + for (let i = 0; i < object.length; i++) { + list.push(Client.mapToFlatStyle(object[i])); + } + return list; + } + else if (object instanceof $tea.Model || (object && object.toMap && typeof object.toMap === 'function')) { + // Handle TeaModel instances + const map = object instanceof $tea.Model ? $tea.toMap(object) : object.toMap(); + const result = {}; + for (const key of Object.keys(map)) { + const value = map[key]; + if (value !== null && value !== undefined && typeof value === 'object' && !Array.isArray(value) && !(value instanceof $tea.Model) && !(value.toMap && typeof value.toMap === 'function')) { + // It's a plain Map/object + const flatMap = {}; + for (const entryKey of Object.keys(value)) { + flatMap[`#${entryKey.length}#${entryKey}`] = Client.mapToFlatStyle(value[entryKey]); + } + result[key] = flatMap; + } + else { + result[key] = Client.mapToFlatStyle(value); + } + } + return result; + } + else if (typeof object === 'object') { + // Handle plain Map/object + const flatMap = {}; + for (const key of Object.keys(object)) { + flatMap[`#${key.length}#${key}`] = Client.mapToFlatStyle(object[key]); + } + return flatMap; + } + return object; + } +} +exports.default = Client; +//# sourceMappingURL=client.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/openapi-util/dist/client.js.map b/backend/node_modules/@alicloud/openapi-util/dist/client.js.map new file mode 100644 index 0000000..8c18764 --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-util/dist/client.js.map @@ -0,0 +1 @@ +{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C;;GAEG;AACH,+DAAiD;AACjD,kEAAsC;AACtC,gDAAwB;AACxB,8DAAsC;AACtC,oDAA4B;AAE5B,MAAM,SAAS,GAAG,+BAA+B,CAAC;AAClD,MAAM,OAAO,GAAG,6BAA6B,CAAC;AAE9C,SAAS,iBAAiB,CAAC,MAAiC,EAAE,MAAa,EAAE,MAAc;IACzF,IAAI,MAAM,EAAE;QACV,MAAM,GAAG,MAAM,GAAG,GAAG,CAAC;KACvB;IACD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACtC,IAAI,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;QACrB,IAAI,GAAG,GAAG,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QAC3B,IAAI,OAAO,IAAI,KAAK,WAAW,IAAI,IAAI,IAAI,IAAI,EAAE;YAC/C,SAAS;SACV;QACD,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YACvB,iBAAiB,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;SACtC;aAAM,IAAI,IAAI,YAAY,MAAM,EAAE;YACjC,OAAO,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;SAC5B;aAAM;YACL,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;SAC/B;KACF;AACH,CAAC;AAED,SAAS,OAAO,CAAC,MAA8B,EAAE,MAA8B,EAAE,SAAiB,EAAE;IAClG,IAAI,MAAM,EAAE;QACV,MAAM,GAAG,MAAM,GAAG,GAAG,C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AG,CAAC,GAAG,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;iBAC5C;aACF;YACD,OAAO,MAAM,CAAC;SACf;aAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;YACrC,0BAA0B;YAC1B,MAAM,OAAO,GAA2B,EAAE,CAAC;YAC3C,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;gBACrC,OAAO,CAAC,IAAI,GAAG,CAAC,MAAM,IAAI,GAAG,EAAE,CAAC,GAAG,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;aACvE;YACD,OAAO,OAAO,CAAC;SAChB;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AApUD,yBAoUC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/openapi-util/package.json b/backend/node_modules/@alicloud/openapi-util/package.json new file mode 100644 index 0000000..5cdebdd --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-util/package.json @@ -0,0 +1,33 @@ +{ + "name": "@alicloud/openapi-util", + "version": "0.3.3", + "description": "", + "main": "dist/client.js", + "scripts": { + "test": "mocha -r ts-node/register test/**/*.spec.ts", + "test-cov": "nyc -e .ts -r=html -r=text -r=lcov npm run test", + "build": "tsc", + "prepublishOnly": "tsc" + }, + "author": "", + "license": "ISC", + "devDependencies": { + "@types/node": "^12.12.26", + "nyc": "^15.0.0", + "source-map-support": "^0.5.16", + "ts-node": "^8.6.2", + "typescript": "^3.7.5", + "@types/mocha": "^8.0.2", + "mocha": "^8.1.1" + }, + "dependencies": { + "@alicloud/tea-typescript": "^1.7.1", + "@alicloud/tea-util": "^1.3.0", + "kitx": "^2.1.0", + "sm3": "^1.0.3" + }, + "files": [ + "dist", + "src" + ] +} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/openapi-util/src/client.ts b/backend/node_modules/@alicloud/openapi-util/src/client.ts new file mode 100644 index 0000000..69142a8 --- /dev/null +++ b/backend/node_modules/@alicloud/openapi-util/src/client.ts @@ -0,0 +1,541 @@ +// This file is auto-generated, don't edit it +/** + * This is for OpenApi Util + */ +import * as $tea from '@alicloud/tea-typescript'; +import Util from '@alicloud/tea-util'; +import kitx from 'kitx'; +import querystring from 'querystring'; +import crypto from 'crypto'; + +const PEM_BEGIN = "-----BEGIN PRIVATE KEY-----\n"; +const PEM_END = "\n-----END PRIVATE KEY-----"; + +function replaceRepeatList(target: { [key: string]: string }, repeat: any[], prefix: string) { + if (prefix) { + prefix = prefix + '.'; + } + for (var i = 0; i < repeat.length; i++) { + var item = repeat[i]; + let key = prefix + (i + 1); + if (typeof item === 'undefined' || item == null) { + continue; + } + if (Array.isArray(item)) { + replaceRepeatList(target, item, key); + } else if (item instanceof Object) { + flatMap(target, item, key); + } else { + target[key] = item.toString(); + } + } +} + +function flatMap(target: { [key: string]: any }, params: { [key: string]: any }, prefix: string = '') { + if (prefix) { + prefix = prefix + '.'; + } + params = toMap(params); + let keys = Object.keys(params); + for (let i = 0; i < keys.length; i++) { + let key = keys[i]; + let value = params[key]; + key = prefix + key; + if (typeof value === 'undefined' || value == null) { + continue; + } + + if (Array.isArray(value)) { + replaceRepeatList(target, value, key); + } else if (value instanceof Object) { + flatMap(target, value, key); + } else { + target[key] = value.toString(); + } + } + return target; +} + +function filter(value: string): string { + return value.replace(/[\t\n\r\f]/g, ' '); +} + +function getCanonicalizedHeaders(headers: { [key: string]: string }): string { + const prefix = 'x-acs-'; + const keys = Object.keys(headers); + + const canonicalizedKeys = []; + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; + if (key.startsWith(prefix)) { + canonicalizedKeys.push(key); + } + } + + canonicalizedKeys.sort(); + + var result = ''; + for (let i = 0; i < canonicalizedKeys.length; i++) { + const key = canonicalizedKeys[i]; + result += `${key}:${filter(headers[key]).trim()}\n`; + } + + return result; +} + +function getCanonicalizedResource(uriPattern: string, query: { [key: string]: string }): string { + const keys = !query ? [] : Object.keys(query).sort(); + + if (keys.length === 0) { + return uriPattern; + } + + var result = []; + for (var i = 0; i < keys.length; i++) { + const key = keys[i]; + result.push(`${key}=${query[key]}`); + } + + return `${uriPattern}?${result.join('&')}`; +} + +function getAuthorizationQueryString(query: { [key: string]: string }): string { + let canonicalQueryArray = []; + const keys = !query ? [] : Object.keys(query).sort(); + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; + let param = key + '=' + if (typeof query[key] !== 'undefined' && query[key] !== null) { + param = param + encode(query[key]) + } + canonicalQueryArray.push(param) + } + return canonicalQueryArray.join('&'); +} + +function getAuthorizationHeaders(header: { [key: string]: string }): {} { + let canonicalheaders = ""; + let tmp = {}; + const keys = !header ? [] : Object.keys(header); + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; + const lowerKey = keys[i].toLowerCase(); + if (lowerKey.startsWith("x-acs-") || lowerKey === "host" || lowerKey === "content-type") { + if (tmp[lowerKey]) { + tmp[lowerKey].push((header[key] || "").trim()); + } else { + tmp[lowerKey] = [(header[key] || "").trim()]; + } + } + } + var hsKeys = Object.keys(tmp).sort(); + for (let i = 0; i < hsKeys.length; i++) { + const hsKey = hsKeys[i]; + let listSort = tmp[hsKey].sort(); + canonicalheaders += `${hsKey}:${listSort.join(",")}\n`; + } + + return { canonicalheaders, hsKeys }; +} + +function encode(str: string) { + var result = encodeURIComponent(str); + + return result.replace(/!/g, '%21') + .replace(/'/g, '%27') + .replace(/\(/g, '%28') + .replace(/\)/g, '%29') + .replace(/\*/g, '%2A'); +} + +function normalize(params: { [key: string]: any }) { + var list = []; + var flated: { [key: string]: string } = {}; + flatMap(flated, params); + var keys = Object.keys(flated).sort(); + for (let i = 0; i < keys.length; i++) { + var key = keys[i]; + var value = flated[key]; + list.push([encode(key), encode(value)]); + } + return list; +} + +function canonicalize(normalized: any[]) { + var fields = []; + for (var i = 0; i < normalized.length; i++) { + var [key, value] = normalized[i]; + fields.push(key + '=' + value); + } + return fields.join('&'); +} + +function isModelClass(t: any): boolean { + if (!t) { + return false; + } + return typeof t.types === 'function' && typeof t.names === 'function'; +} + +function isObjectOrArray(t: any): boolean { + return Array.isArray(t) || (t instanceof Object && typeof t !== 'function'); +} + +function toMap(input: any) { + if (!isObjectOrArray(input)) { + return null; + } else if (input instanceof $tea.Model) { + return $tea.toMap(input); + } else if (input && input.toMap && typeof input.toMap === 'function') { + // 解决跨版本 Model 不互认的问题 + return input.toMap(); + } else if (Array.isArray(input)) { + const result = []; + input.forEach((value) => { + if (isObjectOrArray(value)) { + result.push(toMap(value)); + } else { + result.push(value); + } + }); + + return result; + } else if (input instanceof Object) { + const result = {}; + Object.entries(input).forEach(([key, value]) => { + if (isObjectOrArray(value)) { + result[key] = toMap(value); + } else { + result[key] = value; + } + }); + + return result; + } +} + +export default class Client { + /** + * Convert all params of body other than type of readable into content + * @param input source Model + * @param output target Model + * @return void + */ + static convert(input: $tea.Model, output: $tea.Model): void { + if (!output) { + return; + } + let inputModel = Object.assign({}, input); + let constructor = output.constructor; + let types = constructor.types(); + // let constructor = output.constructor; + for (let key of Object.keys(constructor.names())) { + if (inputModel[key] !== null && inputModel[key] !== undefined) { + if (isModelClass(types[key])) { + output[key] = new types[key](output[key]); + Client.convert(inputModel[key], output[key]); + } else if (types[key] && types[key].type === 'array') { + output[key] = inputModel[key].map(function (d) { + if (isModelClass(types[key].itemType)) { + var item = new types[key].itemType({}); + Client.convert(d, item); + return item; + } + return d; + }); + } else if (types[key] && types[key].type === 'map') { + output[key] = {}; + Object.keys(inputModel[key]).map(function (d) { + if (isModelClass(types[key].valueType)) { + var item = new types[key].valueType({}); + Client.convert(inputModel[key][d], item); + output[key][d] = item; + } else { + output[key][d] = inputModel[key][d]; + } + }); + } else { + output[key] = inputModel[key]; + } + } + } + } + + /** + * Get the string to be signed according to request + * @param request which contains signed messages + * @return the signed string + */ + static getStringToSign(request: $tea.Request): string { + const method = request.method; + const accept = request.headers['accept']; + const contentMD5 = request.headers['content-md5'] || ''; + const contentType = request.headers['content-type'] || ''; + const date = request.headers['date'] || ''; + const header = `${method}\n${accept}\n${contentMD5}\n${contentType}\n${date}\n`; + const canonicalizedHeaders = getCanonicalizedHeaders(request.headers); + const canonicalizedResource = getCanonicalizedResource(request.pathname, request.query); + + return `${header}${canonicalizedHeaders}${canonicalizedResource}`; + } + + /** + * Get signature according to stringToSign, secret + * @param stringToSign the signed string + * @param secret accesskey secret + * @return the signature + */ + static getROASignature(stringToSign: string, secret: string): string { + const utf8Buff = Buffer.from(stringToSign, 'utf8'); + return kitx.sha1(utf8Buff, secret, 'base64') as string; + } + + /** + * Parse filter into a form string + * @param filter object + * @return the string + */ + static toForm(filter: { [key: string]: any }): string { + if (!filter) { + return ''; + } + let target = {}; + flatMap(target, filter); + return Util.toFormString(target); + } + + /** + * Get timestamp + * @return the timestamp string + */ + static getTimestamp(): string { + let date = new Date(); + let YYYY = date.getUTCFullYear(); + let MM = kitx.pad2(date.getUTCMonth() + 1); + let DD = kitx.pad2(date.getUTCDate()); + let HH = kitx.pad2(date.getUTCHours()); + let mm = kitx.pad2(date.getUTCMinutes()); + let ss = kitx.pad2(date.getUTCSeconds()); + return `${YYYY}-${MM}-${DD}T${HH}:${mm}:${ss}Z`; + } + + /** + * Parse filter into a object which's type is map[string]string + * @param filter query param + * @return the object + */ + static query(filter: { [key: string]: any }): { [key: string]: string } { + if (!filter) { + return {}; + } + let ret: { [key: string]: string } = {}; + flatMap(ret, filter); + return ret; + } + + /** + * Get signature according to signedParams, method and secret + * @param signedParams params which need to be signed + * @param method http method e.g. GET + * @param secret AccessKeySecret + * @return the signature + */ + static getRPCSignature(signedParams: { [key: string]: string }, method: string, secret: string): string { + var normalized = normalize(signedParams); + var canonicalized = canonicalize(normalized); + var stringToSign = `${method}&${encode('/')}&${encode(canonicalized)}`; + const key = secret + '&'; + return kitx.sha1(stringToSign, key, 'base64'); + } + + /** + * Parse array into a string with specified style + * @param array the array + * @param prefix the prefix string + * @style specified style e.g. repeatList + * @return the string + */ + static arrayToStringWithSpecifiedStyle(array: any, prefix: string, style: string): string { + if (!array) { + return ''; + } + if (style === 'repeatList') { + let target = {}; + replaceRepeatList(target, array, prefix); + return querystring.stringify(target, '&&'); + } else if (style === 'json') { + return JSON.stringify(toMap(array)); + } else if (style === 'simple') { + return array.join(','); + } else if (style === 'spaceDelimited') { + return array.join(' '); + } else if (style === 'pipeDelimited') { + return array.join('|'); + } else { + return ''; + } + } + + /** + * Transform input as map. + */ + static parseToMap(input: any): { [key: string]: any } { + return toMap(input); + } + + static getEndpoint(endpoint: string, serverUse: boolean, endpointType: string): string { + if (endpointType == "internal") { + let strs = endpoint.split("."); + strs[0] += "-internal"; + endpoint = strs.join(".") + } + if (serverUse && endpointType == "accelerate") { + return "oss-accelerate.aliyuncs.com" + } + + return endpoint + } + + /** + * Encode raw with base16 + * @param raw encoding data + * @return encoded string + */ + static hexEncode(raw: Buffer): string { + return raw.toString("hex"); + } + + /** + * Hash the raw data with signatureAlgorithm + * @param raw hashing data + * @param signatureAlgorithm the autograph method + * @return hashed bytes + */ + static hash(raw: Buffer, signatureAlgorithm: string): Buffer { + if (signatureAlgorithm === "ACS3-HMAC-SHA256" || signatureAlgorithm === "ACS3-RSA-SHA256") { + const obj = crypto.createHash('sha256'); + obj.update(raw); + return obj.digest(); + } else if (signatureAlgorithm == "ACS3-HMAC-SM3") { + const obj = crypto.createHash('sm3'); + obj.update(raw); + return obj.digest(); + } + } + + static signatureMethod(secret: string, source: string, signatureAlgorithm: string): Buffer { + if (signatureAlgorithm === "ACS3-HMAC-SHA256") { + const obj = crypto.createHmac('sha256', secret); + obj.update(source); + return obj.digest(); + } else if (signatureAlgorithm === "ACS3-HMAC-SM3") { + const obj = crypto.createHmac('sm3', secret); + obj.update(source); + return obj.digest(); + } else if (signatureAlgorithm === "ACS3-RSA-SHA256") { + + if (!secret.startsWith(PEM_BEGIN)) { + secret = PEM_BEGIN + secret; + } + if (!secret.endsWith(PEM_END)) { + secret = secret + PEM_END; + } + var signerObject = crypto.createSign("RSA-SHA256"); + signerObject.update(source); + var signature = signerObject.sign({ key: secret, padding: crypto.constants.RSA_PKCS1_PADDING }); + return signature; + } + } + + /** + * Get the authorization + * @param request request params + * @param signatureAlgorithm the autograph method + * @param payload the hashed request + * @param acesskey the acesskey string + * @param accessKeySecret the accessKeySecret string + * @return authorization string + */ + static getAuthorization(request: $tea.Request, signatureAlgorithm: string, payload: string, acesskey: string, accessKeySecret: string): string { + const canonicalURI = (request.pathname || "").replace("+", "%20").replace("*", "%2A").replace("%7E", "~"); + const method = request.method; + const canonicalQueryString = getAuthorizationQueryString(request.query); + const tuple = getAuthorizationHeaders(request.headers); + const canonicalheaders = tuple["canonicalheaders"]; + const signedHeaders = tuple["hsKeys"]; + + const canonicalRequest = method + "\n" + canonicalURI + "\n" + canonicalQueryString + "\n" + canonicalheaders + "\n" + + signedHeaders.join(";") + "\n" + payload; + let raw = Buffer.from(canonicalRequest); + const stringToSign = signatureAlgorithm + "\n" + Client.hexEncode(Client.hash(raw, signatureAlgorithm)); + const signature = Client.hexEncode(Client.signatureMethod(accessKeySecret, stringToSign, signatureAlgorithm)); + const auth = `${signatureAlgorithm} Credential=${acesskey},SignedHeaders=${signedHeaders.join(';')},Signature=${signature}`; + + return auth; + } + + static getEncodePath(path: string): string { + if (typeof path === 'undefined' || path === null) { + return ''; + } + let strs = path.split('/'); + for (let i = 0; i < strs.length; i++) { + strs[i] = encode(strs[i]); + } + return strs.join('/'); + } + + static getEncodeParam(param: string): string { + if (typeof param === 'undefined' || param === null) { + return ''; + } + return encode(param); + } + + /** + * Transform a map to a flat style map where keys are prefixed with length info. + * Map keys are transformed from "key" to "#length#key" format. + * @param object the input object (can be a Model, Array, Map, or other types) + * @return the transformed object + */ + static mapToFlatStyle(object: any): any { + if (object === null || object === undefined) { + return object; + } + + if (Array.isArray(object)) { + const list: any[] = []; + for (let i = 0; i < object.length; i++) { + list.push(Client.mapToFlatStyle(object[i])); + } + return list; + } else if (object instanceof $tea.Model || (object && object.toMap && typeof object.toMap === 'function')) { + // Handle TeaModel instances + const map = object instanceof $tea.Model ? $tea.toMap(object) : object.toMap(); + const result: { [key: string]: any } = {}; + for (const key of Object.keys(map)) { + const value = map[key]; + if (value !== null && value !== undefined && typeof value === 'object' && !Array.isArray(value) && !(value instanceof $tea.Model) && !(value.toMap && typeof value.toMap === 'function')) { + // It's a plain Map/object + const flatMap: { [key: string]: any } = {}; + for (const entryKey of Object.keys(value)) { + flatMap[`#${entryKey.length}#${entryKey}`] = Client.mapToFlatStyle(value[entryKey]); + } + result[key] = flatMap; + } else { + result[key] = Client.mapToFlatStyle(value); + } + } + return result; + } else if (typeof object === 'object') { + // Handle plain Map/object + const flatMap: { [key: string]: any } = {}; + for (const key of Object.keys(object)) { + flatMap[`#${key.length}#${key}`] = Client.mapToFlatStyle(object[key]); + } + return flatMap; + } + + return object; + } +} diff --git a/backend/node_modules/@alicloud/tea-typescript/README.md b/backend/node_modules/@alicloud/tea-typescript/README.md new file mode 100644 index 0000000..acc0c6f --- /dev/null +++ b/backend/node_modules/@alicloud/tea-typescript/README.md @@ -0,0 +1,31 @@ +# Tea Support SDK for TypeScript/Node.js + +[![NPM version][npm-image]][npm-url] +[![build status][travis-image]][travis-url] +[![codecov][cov-image]][cov-url] +[![David deps][david-image]][david-url] +[![npm download][download-image]][download-url] + +[npm-image]: https://img.shields.io/npm/v/@alicloud/tea-typescript.svg?style=flat-square +[npm-url]: https://npmjs.org/package/@alicloud/tea-typescript +[travis-image]: https://img.shields.io/travis/aliyun/tea-typescript.svg?style=flat-square +[travis-url]: https://travis-ci.org/aliyun/tea-typescript +[cov-image]: https://codecov.io/gh/aliyun/tea-typescript/branch/master/graph/badge.svg +[cov-url]: https://codecov.io/gh/aliyun/tea-typescript +[david-image]: https://img.shields.io/david/aliyun/tea-typescript.svg?style=flat-square +[david-url]: https://david-dm.org/aliyun/tea-typescript +[download-image]: https://img.shields.io/npm/dm/@alicloud/tea-typescript.svg?style=flat-square +[download-url]: https://npmjs.org/package/@alicloud/tea-typescript + +Core SDK 用于处理底层的 HTTP/HTTPS 协议的请求和接受。 + +## Installation + +它在生成的 SDK 中被应用 + +```bash +$ npm install @alicloud/tea-typescript +``` + +## License +The MIT license diff --git a/backend/node_modules/@alicloud/tea-typescript/dist/tea.d.ts b/backend/node_modules/@alicloud/tea-typescript/dist/tea.d.ts new file mode 100644 index 0000000..71b1da9 --- /dev/null +++ b/backend/node_modules/@alicloud/tea-typescript/dist/tea.d.ts @@ -0,0 +1,57 @@ +/// +import { IncomingMessage, IncomingHttpHeaders } from 'http'; +import { Readable } from 'stream'; +declare type TeaDict = { + [key: string]: string; +}; +declare type TeaObject = { + [key: string]: any; +}; +export declare class BytesReadable extends Readable { + value: Buffer; + constructor(value: string | Buffer); + _read(): void; +} +export declare class Request { + protocol: string; + port: number; + method: string; + pathname: string; + query: TeaDict; + headers: TeaDict; + body: Readable; + constructor(); +} +export declare class Response { + statusCode: number; + statusMessage: string; + headers: TeaDict; + body: IncomingMessage; + constructor(httpResponse: IncomingMessage); + convertHeaders(headers: IncomingHttpHeaders): TeaDict; + readBytes(): Promise; +} +export declare function doAction(request: Request, runtime?: TeaObject): Promise; +declare class ResponseError extends Error { + code: string; + statusCode: number; + data: any; + description: string; + accessDeniedDetail: any; + constructor(map: any); +} +export declare function newError(data: any): ResponseError; +export declare function toMap(value?: any): any; +export declare class Model { + [key: string]: any; + constructor(map?: TeaObject); + toMap(): TeaObject; +} +export declare function cast(obj: any, t: T): T; +export declare function sleep(ms: number): Promise; +export declare function allowRetry(retry: TeaObject, retryTimes: number, startTime: number): boolean; +export declare function getBackoffTime(backoff: TeaObject, retryTimes: number): number; +export declare function newUnretryableError(request: Request): Error; +export declare function retryError(request: Request, response: Response): Error; +export declare function isRetryable(err: Error): boolean; +export {}; diff --git a/backend/node_modules/@alicloud/tea-typescript/dist/tea.js b/backend/node_modules/@alicloud/tea-typescript/dist/tea.js new file mode 100644 index 0000000..890a8e0 --- /dev/null +++ b/backend/node_modules/@alicloud/tea-typescript/dist/tea.js @@ -0,0 +1,523 @@ +"use strict"; +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (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 (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isRetryable = exports.retryError = exports.newUnretryableError = exports.getBackoffTime = exports.allowRetry = exports.sleep = exports.cast = exports.Model = exports.toMap = exports.newError = exports.doAction = exports.Response = exports.Request = exports.BytesReadable = void 0; +var querystring = __importStar(require("querystring")); +var http_1 = require("http"); +var https_1 = require("https"); +var stream_1 = require("stream"); +var httpx = __importStar(require("httpx")); +var url_1 = require("url"); +var BytesReadable = /** @class */ (function (_super) { + __extends(BytesReadable, _super); + function BytesReadable(value) { + var _this = _super.call(this) || this; + if (typeof value === 'string') { + _this.value = Buffer.from(value); + } + else if (Buffer.isBuffer(value)) { + _this.value = value; + } + return _this; + } + BytesReadable.prototype._read = function () { + this.push(this.value); + this.push(null); + }; + return BytesReadable; +}(stream_1.Readable)); +exports.BytesReadable = BytesReadable; +var Request = /** @class */ (function () { + function Request() { + this.headers = {}; + this.query = {}; + } + return Request; +}()); +exports.Request = Request; +var Response = /** @class */ (function () { + function Response(httpResponse) { + this.statusCode = httpResponse.statusCode; + this.statusMessage = httpResponse.statusMessage; + this.headers = this.convertHeaders(httpResponse.headers); + this.body = httpResponse; + } + Response.prototype.convertHeaders = function (headers) { + var results = {}; + var keys = Object.keys(headers); + for (var index = 0; index < keys.length; index++) { + var key = keys[index]; + results[key] = headers[key]; + } + return results; + }; + Response.prototype.readBytes = function () { + return __awaiter(this, void 0, void 0, function () { + var buff; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, httpx.read(this.body, '')]; + case 1: + buff = _a.sent(); + return [2 /*return*/, buff]; + } + }); + }); + }; + return Response; +}()); +exports.Response = Response; +function buildURL(request) { + var url = request.protocol + "://" + request.headers['host']; + if (request.port) { + url += ":" + request.port; + } + url += "" + request.pathname; + var urlInfo = url_1.parse(url); + if (request.query && Object.keys(request.query).length > 0) { + if (urlInfo.query) { + url += "&" + querystring.stringify(request.query); + } + else { + url += "?" + querystring.stringify(request.query); + } + } + return url; +} +function isModelClass(t) { + if (!t) { + return false; + } + return typeof t.types === 'function' && typeof t.names === 'function'; +} +function doAction(request, runtime) { + if (runtime === void 0) { runtime = null; } + return __awaiter(this, void 0, void 0, function () { + var url, method, options, agentOptions, response; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + url = buildURL(request); + method = (request.method || 'GET').toUpperCase(); + options = { + method: method, + headers: request.headers + }; + if (method !== 'GET' && method !== 'HEAD') { + options.data = request.body; + } + if (runtime) { + if (typeof runtime.timeout !== 'undefined') { + options.timeout = Number(runtime.timeout); + } + if (typeof runtime.readTimeout !== 'undefined') { + options.readTimeout = Number(runtime.readTimeout); + } + if (typeof runtime.connectTimeout !== 'undefined') { + options.connectTimeout = Number(runtime.connectTimeout); + } + if (typeof runtime.ignoreSSL !== 'undefined') { + options.rejectUnauthorized = !runtime.ignoreSSL; + } + if (typeof runtime.key !== 'undefined') { + options.key = String(runtime.key); + } + if (typeof runtime.cert !== 'undefined') { + options.cert = String(runtime.cert); + } + if (typeof runtime.ca !== 'undefined') { + options.ca = String(runtime.ca); + } + agentOptions = { + keepAlive: true, + }; + if (typeof runtime.keepAlive !== 'undefined') { + agentOptions.keepAlive = runtime.keepAlive; + if (request.protocol && request.protocol.toLowerCase() === 'https') { + options.agent = new https_1.Agent(agentOptions); + } + else { + options.agent = new http_1.Agent(agentOptions); + } + } + } + return [4 /*yield*/, httpx.request(url, options)]; + case 1: + response = _a.sent(); + return [2 /*return*/, new Response(response)]; + } + }); + }); +} +exports.doAction = doAction; +var ResponseError = /** @class */ (function (_super) { + __extends(ResponseError, _super); + function ResponseError(map) { + var _this = _super.call(this, map.code + ": " + map.message) || this; + _this.code = map.code; + _this.data = map.data; + _this.description = map.description; + _this.accessDeniedDetail = map.accessDeniedDetail; + if (_this.data && _this.data.statusCode) { + _this.statusCode = Number(_this.data.statusCode); + } + return _this; + } + return ResponseError; +}(Error)); +function newError(data) { + return new ResponseError(data); +} +exports.newError = newError; +function getValue(type, value) { + if (typeof type === 'string') { + // basic type + return value; + } + if (type.type === 'array') { + if (!Array.isArray(value)) { + throw new Error("expect: array, actual: " + typeof value); + } + return value.map(function (item) { + return getValue(type.itemType, item); + }); + } + if (typeof type === 'function') { + if (isModelClass(type)) { + return new type(value); + } + return value; + } + return value; +} +function toMap(value) { + if (value === void 0) { value = undefined; } + if (typeof value === 'undefined' || value == null) { + return null; + } + if (value instanceof Model) { + return value.toMap(); + } + // 如果是另一个版本的 tea-typescript 创建的 model,instanceof 会判断不通过 + // 这里做一下处理 + if (typeof value.toMap === 'function') { + return value.toMap(); + } + if (Array.isArray(value)) { + return value.map(function (item) { + return toMap(item); + }); + } + return value; +} +exports.toMap = toMap; +var Model = /** @class */ (function () { + function Model(map) { + var _this = this; + if (map == null) { + return; + } + var clz = this.constructor; + var names = clz.names(); + var types = clz.types(); + Object.keys(names).forEach((function (name) { + var value = map[name]; + if (value === undefined || value === null) { + return; + } + var type = types[name]; + _this[name] = getValue(type, value); + })); + } + Model.prototype.toMap = function () { + var _this = this; + var map = {}; + var clz = this.constructor; + var names = clz.names(); + Object.keys(names).forEach((function (name) { + var originName = names[name]; + var value = _this[name]; + if (typeof value === 'undefined' || value == null) { + return; + } + map[originName] = toMap(value); + })); + return map; + }; + return Model; +}()); +exports.Model = Model; +function cast(obj, t) { + if (!obj) { + throw new Error('can not cast to Map'); + } + if (typeof obj !== 'object') { + throw new Error('can not cast to Map'); + } + var map = obj; + var clz = t.constructor; + var names = clz.names(); + var types = clz.types(); + Object.keys(names).forEach(function (key) { + var originName = names[key]; + var value = map[originName]; + var type = types[key]; + if (typeof value === 'undefined' || value == null) { + return; + } + if (typeof type === 'string') { + if (type === 'Readable' || + type === 'map' || + type === 'Buffer' || + type === 'any' || + typeof value === type) { + t[key] = value; + return; + } + if (type === 'string' && + (typeof value === 'number' || + typeof value === 'boolean')) { + t[key] = value.toString(); + return; + } + if (type === 'boolean') { + if (value === 1 || value === 0) { + t[key] = !!value; + return; + } + if (value === 'true' || value === 'false') { + t[key] = value === 'true'; + return; + } + } + if (type === 'number' && typeof value === 'string') { + if (value.match(/^\d*$/)) { + t[key] = parseInt(value); + return; + } + if (value.match(/^[\.\d]*$/)) { + t[key] = parseFloat(value); + return; + } + } + throw new Error("type of " + key + " is mismatch, expect " + type + ", but " + typeof value); + } + else if (type.type === 'map') { + if (!(value instanceof Object)) { + throw new Error("type of " + key + " is mismatch, expect object, but " + typeof value); + } + t[key] = value; + } + else if (type.type === 'array') { + if (!Array.isArray(value)) { + throw new Error("type of " + key + " is mismatch, expect array, but " + typeof value); + } + if (typeof type.itemType === 'function') { + t[key] = value.map(function (d) { + if (isModelClass(type.itemType)) { + return cast(d, new type.itemType({})); + } + return d; + }); + } + else { + t[key] = value; + } + } + else if (typeof type === 'function') { + if (!(value instanceof Object)) { + throw new Error("type of " + key + " is mismatch, expect object, but " + typeof value); + } + if (isModelClass(type)) { + t[key] = cast(value, new type({})); + return; + } + t[key] = value; + } + else { + } + }); + return t; +} +exports.cast = cast; +function sleep(ms) { + return new Promise(function (resolve) { + setTimeout(resolve, ms); + }); +} +exports.sleep = sleep; +function allowRetry(retry, retryTimes, startTime) { + // 还未重试 + if (retryTimes === 0) { + return true; + } + if (retry.retryable !== true) { + return false; + } + if (retry.policy === 'never') { + return false; + } + if (retry.policy === 'always') { + return true; + } + if (retry.policy === 'simple') { + return (retryTimes < retry['maxAttempts']); + } + if (retry.policy === 'timeout') { + return Date.now() - startTime < retry.timeout; + } + if (retry.maxAttempts && typeof retry.maxAttempts === 'number') { + return retry.maxAttempts >= retryTimes; + } + // 默认不重试 + return false; +} +exports.allowRetry = allowRetry; +function getBackoffTime(backoff, retryTimes) { + if (retryTimes === 0) { + // 首次调用,不使用退避策略 + return 0; + } + if (backoff.policy === 'no') { + // 不退避 + return 0; + } + if (backoff.policy === 'fixed') { + // 固定退避 + return backoff.period; + } + if (backoff.policy === 'random') { + // 随机退避 + var min = backoff['minPeriod']; + var max = backoff['maxPeriod']; + return min + (max - min) * Math.random(); + } + if (backoff.policy === 'exponential') { + // 指数退避 + var init = backoff.initial; + var multiplier = backoff.multiplier; + var time = init * Math.pow(1 + multiplier, retryTimes - 1); + var max = backoff.max; + return Math.min(time, max); + } + if (backoff.policy === 'exponential_random') { + // 指数随机退避 + var init = backoff.initial; + var multiplier = backoff.multiplier; + var time = init * Math.pow(1 + multiplier, retryTimes - 1); + var max = backoff.max; + return Math.min(time * (0.5 + Math.random()), max); + } + return 0; +} +exports.getBackoffTime = getBackoffTime; +var UnretryableError = /** @class */ (function (_super) { + __extends(UnretryableError, _super); + function UnretryableError(message) { + var _this = _super.call(this, message) || this; + _this.name = 'UnretryableError'; + return _this; + } + return UnretryableError; +}(Error)); +function newUnretryableError(request) { + var e = new UnretryableError(''); + e.data = { + lastRequest: request + }; + return e; +} +exports.newUnretryableError = newUnretryableError; +var RetryError = /** @class */ (function (_super) { + __extends(RetryError, _super); + function RetryError(message) { + var _this = _super.call(this, message) || this; + _this.name = 'RetryError'; + return _this; + } + return RetryError; +}(Error)); +function retryError(request, response) { + var e = new RetryError(''); + e.data = { + request: request, + response: response + }; + return e; +} +exports.retryError = retryError; +function isRetryable(err) { + if (typeof err === 'undefined' || err === null) { + return false; + } + return err.name === 'RetryError'; +} +exports.isRetryable = isRetryable; +//# sourceMappingURL=tea.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/tea-typescript/dist/tea.js.map b/backend/node_modules/@alicloud/tea-typescript/dist/tea.js.map new file mode 100644 index 0000000..5696b82 --- /dev/null +++ b/backend/node_modules/@alicloud/tea-typescript/dist/tea.js.map @@ -0,0 +1 @@ +{"version":3,"file":"tea.js","sourceRoot":"","sources":["../src/tea.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAA2C;AAC3C,6BAAgF;AAChF,+BAA4C;AAC5C,iCAAkC;AAClC,2CAA+B;AAC/B,2BAA4B;AAM5B;IAAmC,iCAAQ;IAGvC,uBAAY,KAAsB;QAAlC,YACI,iBAAO,SAMV;QALG,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC3B,KAAI,CAAC,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SACnC;aAAM,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;YAC/B,KAAI,CAAC,KAAK,GAAG,KAAK,CAAC;SACtB;;IACL,CAAC;IAED,6BAAK,GAAL;QACI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACtB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC;IACL,oBAAC;AAAD,CAAC,AAhBD,CAAmC,iBAAQ,GAgB1C;AAhBY,sCAAa;AAkB1B;IASI;QACI,IAAI,CAAC,OAAO,GAAG,EAAE,CAA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AO;QAChB,QAAQ,EAAE,QAAQ;KACrB,CAAC;IACF,OAAO,CAAC,CAAC;AACb,CAAC;AAPD,gCAOC;AAED,SAAgB,WAAW,CAAC,GAAU;IAClC,IAAI,OAAO,GAAG,KAAK,WAAW,IAAI,GAAG,KAAK,IAAI,EAAE;QAC5C,OAAO,KAAK,CAAC;KAChB;IACD,OAAO,GAAG,CAAC,IAAI,KAAK,YAAY,CAAC;AACrC,CAAC;AALD,kCAKC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/tea-typescript/package.json b/backend/node_modules/@alicloud/tea-typescript/package.json new file mode 100644 index 0000000..eea000c --- /dev/null +++ b/backend/node_modules/@alicloud/tea-typescript/package.json @@ -0,0 +1,37 @@ +{ + "name": "@alicloud/tea-typescript", + "version": "1.8.0", + "description": "", + "main": "dist/tea.js", + "types": "dist/tea.d.ts", + "repository": { + "type": "git", + "url": "git@github.com:aliyun/tea-typescript.git" + }, + "license": "ISC", + "scripts": { + "test": "mocha -r ts-node/register -r source-map-support/register test/**/*.spec.ts --timeout=10000", + "test-cov": "nyc -e .ts -r=html -r=text -r=lcov npm run test", + "ci": "npm run test-cov && codecov", + "build": "tsc", + "prepublishOnly": "tsc" + }, + "author": "Jackson Tian", + "devDependencies": { + "@types/mocha": "^5.2.7", + "codecov": "^3.6.1", + "mocha": "^6.2.0", + "nyc": "^14.1.1", + "source-map-support": "^0.5.13", + "ts-node": "^8.4.1", + "typescript": "^3.6.3" + }, + "dependencies": { + "@types/node": "^12.0.2", + "httpx": "^2.2.6" + }, + "files": [ + "dist", + "src" + ] +} diff --git a/backend/node_modules/@alicloud/tea-typescript/src/tea.ts b/backend/node_modules/@alicloud/tea-typescript/src/tea.ts new file mode 100644 index 0000000..d274f87 --- /dev/null +++ b/backend/node_modules/@alicloud/tea-typescript/src/tea.ts @@ -0,0 +1,484 @@ +import * as querystring from 'querystring'; +import { IncomingMessage, IncomingHttpHeaders, Agent as HttpAgent } from 'http'; +import { Agent as HttpsAgent } from 'https'; +import { Readable } from 'stream'; +import * as httpx from 'httpx'; +import { parse } from 'url'; + +type TeaDict = { [key: string]: string }; +type TeaObject = { [key: string]: any }; +type AgentOptions = { keepAlive: boolean }; + +export class BytesReadable extends Readable { + value: Buffer + + constructor(value: string | Buffer) { + super(); + if (typeof value === 'string') { + this.value = Buffer.from(value); + } else if (Buffer.isBuffer(value)) { + this.value = value; + } + } + + _read() { + this.push(this.value); + this.push(null); + } +} + +export class Request { + protocol: string; + port: number; + method: string; + pathname: string; + query: TeaDict; + headers: TeaDict; + body: Readable; + + constructor() { + this.headers = {}; + this.query = {}; + } +} + +export class Response { + statusCode: number; + statusMessage: string; + headers: TeaDict; + body: IncomingMessage; + constructor(httpResponse: IncomingMessage) { + this.statusCode = httpResponse.statusCode; + this.statusMessage = httpResponse.statusMessage; + this.headers = this.convertHeaders(httpResponse.headers); + this.body = httpResponse; + } + + convertHeaders(headers: IncomingHttpHeaders): TeaDict { + let results: TeaDict = {}; + const keys = Object.keys(headers); + for (let index = 0; index < keys.length; index++) { + const key = keys[index]; + results[key] = headers[key]; + } + return results; + } + + async readBytes(): Promise { + let buff = await httpx.read(this.body, ''); + return buff; + } +} + +function buildURL(request: Request) { + let url = `${request.protocol}://${request.headers['host']}`; + if (request.port) { + url += `:${request.port}`; + } + url += `${request.pathname}`; + const urlInfo = parse(url); + if (request.query && Object.keys(request.query).length > 0) { + if (urlInfo.query) { + url += `&${querystring.stringify(request.query)}`; + } else { + url += `?${querystring.stringify(request.query)}`; + } + } + return url; +} + +function isModelClass(t: any): boolean { + if (!t) { + return false; + } + return typeof t.types === 'function' && typeof t.names === 'function'; +} + +export async function doAction(request: Request, runtime: TeaObject = null): Promise { + let url = buildURL(request); + let method = (request.method || 'GET').toUpperCase(); + let options: httpx.Options = { + method: method, + headers: request.headers + }; + + if (method !== 'GET' && method !== 'HEAD') { + options.data = request.body; + } + + if (runtime) { + if (typeof runtime.timeout !== 'undefined') { + options.timeout = Number(runtime.timeout); + } + + if (typeof runtime.readTimeout !== 'undefined') { + options.readTimeout = Number(runtime.readTimeout); + } + + if (typeof runtime.connectTimeout !== 'undefined') { + options.connectTimeout = Number(runtime.connectTimeout); + } + + if (typeof runtime.ignoreSSL !== 'undefined') { + options.rejectUnauthorized = !runtime.ignoreSSL; + } + + if (typeof runtime.key !== 'undefined') { + options.key = String(runtime.key); + } + + if (typeof runtime.cert !== 'undefined') { + options.cert = String(runtime.cert); + } + + if (typeof runtime.ca !== 'undefined') { + options.ca = String(runtime.ca); + } + + // keepAlive: default true + let agentOptions: AgentOptions = { + keepAlive: true, + }; + if (typeof runtime.keepAlive !== 'undefined') { + agentOptions.keepAlive = runtime.keepAlive; + if (request.protocol && request.protocol.toLowerCase() === 'https') { + options.agent = new HttpsAgent(agentOptions); + } else { + options.agent = new HttpAgent(agentOptions); + } + } + + + } + + let response = await httpx.request(url, options); + + return new Response(response); +} + +class ResponseError extends Error { + code: string + statusCode: number + data: any + description: string + accessDeniedDetail: any + + constructor(map: any) { + super(`${map.code}: ${map.message}`); + this.code = map.code; + this.data = map.data; + this.description = map.description; + this.accessDeniedDetail = map.accessDeniedDetail; + if (this.data && this.data.statusCode) { + this.statusCode = Number(this.data.statusCode); + } + } +} + +export function newError(data: any): ResponseError { + return new ResponseError(data); +} + +function getValue(type: any, value: any): any { + if (typeof type === 'string') { + // basic type + return value; + } + if (type.type === 'array') { + if (!Array.isArray(value)) { + throw new Error(`expect: array, actual: ${typeof value}`); + } + return value.map((item: any) => { + return getValue(type.itemType, item); + }); + } + if (typeof type === 'function') { + if (isModelClass(type)) { + return new type(value); + } + return value; + } + return value; +} + +export function toMap(value: any = undefined): any { + if (typeof value === 'undefined' || value == null) { + return null; + } + + if (value instanceof Model) { + return value.toMap(); + } + + // 如果是另一个版本的 tea-typescript 创建的 model,instanceof 会判断不通过 + // 这里做一下处理 + if (typeof value.toMap === 'function') { + return value.toMap(); + } + + if (Array.isArray(value)) { + return value.map((item) => { + return toMap(item); + }) + } + + return value; +} + +export class Model { + [key: string]: any + + constructor(map?: TeaObject) { + if (map == null) { + return; + } + + let clz = this.constructor; + let names = clz.names(); + let types = clz.types(); + Object.keys(names).forEach((name => { + let value = map[name]; + if (value === undefined || value === null) { + return; + } + let type = types[name]; + this[name] = getValue(type, value); + })); + } + + toMap(): TeaObject { + const map: TeaObject = {}; + let clz = this.constructor; + let names = clz.names(); + Object.keys(names).forEach((name => { + const originName = names[name]; + const value = this[name]; + if (typeof value === 'undefined' || value == null) { + return; + } + map[originName] = toMap(value); + })); + return map; + } +} + +export function cast(obj: any, t: T): T { + if (!obj) { + throw new Error('can not cast to Map'); + } + + if (typeof obj !== 'object') { + throw new Error('can not cast to Map'); + } + + let map = obj as TeaObject; + let clz = t.constructor as any; + let names: TeaDict = clz.names(); + let types: TeaObject = clz.types(); + Object.keys(names).forEach((key) => { + let originName = names[key]; + let value = map[originName]; + let type = types[key]; + if (typeof value === 'undefined' || value == null) { + return; + } + if (typeof type === 'string') { + if (type === 'Readable' || + type === 'map' || + type === 'Buffer' || + type === 'any' || + typeof value === type) { + (t)[key] = value; + return; + } + if (type === 'string' && + (typeof value === 'number' || + typeof value === 'boolean')) { + (t)[key] = value.toString(); + return; + } + if (type === 'boolean') { + if (value === 1 || value === 0) { + (t)[key] = !!value; + return; + } + if (value === 'true' || value === 'false') { + (t)[key] = value === 'true'; + return; + } + } + + if (type === 'number' && typeof value === 'string') { + if (value.match(/^\d*$/)) { + (t)[key] = parseInt(value); + return; + } + if (value.match(/^[\.\d]*$/)) { + (t)[key] = parseFloat(value); + return; + } + } + throw new Error(`type of ${key} is mismatch, expect ${type}, but ${typeof value}`); + } else if (type.type === 'map') { + if (!(value instanceof Object)) { + throw new Error(`type of ${key} is mismatch, expect object, but ${typeof value}`); + } + (t)[key] = value; + } else if (type.type === 'array') { + if (!Array.isArray(value)) { + throw new Error(`type of ${key} is mismatch, expect array, but ${typeof value}`); + } + if (typeof type.itemType === 'function') { + (t)[key] = value.map((d: any) => { + if (isModelClass(type.itemType)) { + return cast(d, new type.itemType({})); + } + return d; + }); + } else { + (t)[key] = value; + } + + } else if (typeof type === 'function') { + if (!(value instanceof Object)) { + throw new Error(`type of ${key} is mismatch, expect object, but ${typeof value}`); + } + if (isModelClass(type)) { + (t)[key] = cast(value, new type({})); + return; + } + (t)[key] = value; + } else { + + } + }); + + return t; +} + +export function sleep(ms: number): Promise { + return new Promise((resolve) => { + setTimeout(resolve, ms); + }); +} + +export function allowRetry(retry: TeaObject, retryTimes: number, startTime: number): boolean { + // 还未重试 + if (retryTimes === 0) { + return true; + } + + if (retry.retryable !== true) { + return false; + } + + if (retry.policy === 'never') { + return false; + } + + if (retry.policy === 'always') { + return true; + } + + if (retry.policy === 'simple') { + return (retryTimes < retry['maxAttempts']); + } + + if (retry.policy === 'timeout') { + return Date.now() - startTime < retry.timeout; + } + + if (retry.maxAttempts && typeof retry.maxAttempts === 'number') { + return retry.maxAttempts >= retryTimes; + } + + // 默认不重试 + return false; +} + +export function getBackoffTime(backoff: TeaObject, retryTimes: number): number { + if (retryTimes === 0) { + // 首次调用,不使用退避策略 + return 0; + } + + if (backoff.policy === 'no') { + // 不退避 + return 0; + } + + if (backoff.policy === 'fixed') { + // 固定退避 + return backoff.period; + } + + if (backoff.policy === 'random') { + // 随机退避 + let min = backoff['minPeriod']; + let max = backoff['maxPeriod']; + return min + (max - min) * Math.random(); + } + + if (backoff.policy === 'exponential') { + // 指数退避 + let init = backoff.initial; + let multiplier = backoff.multiplier; + let time = init * Math.pow(1 + multiplier, retryTimes - 1); + let max = backoff.max; + return Math.min(time, max); + } + + if (backoff.policy === 'exponential_random') { + // 指数随机退避 + let init = backoff.initial; + let multiplier = backoff.multiplier; + let time = init * Math.pow(1 + multiplier, retryTimes - 1); + let max = backoff.max; + return Math.min(time * (0.5 + Math.random()), max); + } + + return 0; +} + +class UnretryableError extends Error { + data: any + + constructor(message: string) { + super(message); + this.name = 'UnretryableError'; + } +} + +export function newUnretryableError(request: Request): Error { + var e = new UnretryableError(''); + e.data = { + lastRequest: request + }; + return e; +} + +class RetryError extends Error { + retryable: boolean + data: any + + constructor(message: string) { + super(message); + this.name = 'RetryError'; + } +} + +export function retryError(request: Request, response: Response): Error { + let e = new RetryError(''); + e.data = { + request: request, + response: response + }; + return e; +} + +export function isRetryable(err: Error): boolean { + if (typeof err === 'undefined' || err === null) { + return false; + } + return err.name === 'RetryError'; +} diff --git a/backend/node_modules/@alicloud/tea-util/ChangeLog.txt b/backend/node_modules/@alicloud/tea-util/ChangeLog.txt new file mode 100644 index 0000000..d50f9a9 --- /dev/null +++ b/backend/node_modules/@alicloud/tea-util/ChangeLog.txt @@ -0,0 +1,20 @@ +2024-07-08 Version 1.4.9 +1. Support extends query parameters + +2024-05-13 Version 1.4.8 +1. Support extends parameters + +2023-06-28 Version: 1.4.7 +1. Support static method `assertAsReadable()` + +2023-06-26 Version: 1.4.6 +1. Support static method `assertAsInteger()` + +2022-11-16 Version: 1.4.5 +1. Support ca params for server and client + +2020-03-03 Version: 1.2.3 +1. Release version 1.2.3 + +2020-02-10 Version: 1.0.0 +1. Release version 1.0.0 \ No newline at end of file diff --git a/backend/node_modules/@alicloud/tea-util/README.md b/backend/node_modules/@alicloud/tea-util/README.md new file mode 100644 index 0000000..30c5eeb --- /dev/null +++ b/backend/node_modules/@alicloud/tea-util/README.md @@ -0,0 +1,29 @@ +English | [简体中文](README-CN.md) +![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg) + +## Alibaba Cloud Tea Util SDK for TypeScript/Node.js + +## Prerequisite + +Node.js >= 8.x + +## Installation +If you use `npm` to manage your dependence, you can use the following command to install it and write into package.json dependences: + +```sh +$ npm install @alicloud/tea-util -S +``` + +## Issues +[Opening an Issue](https://github.com/aliyun/tea-util/issues/new), Issues not conforming to the guidelines may be closed immediately. + +## Changelog +Detailed changes for each release are documented in the [release notes](./ChangeLog.txt). + +## References +* [Latest Release](https://github.com/aliyun/tea-util/tree/master/ts) + +## License +[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0) + +Copyright (c) 2009-present, Alibaba Cloud All rights reserved. \ No newline at end of file diff --git a/backend/node_modules/@alicloud/tea-util/dist/client.d.ts b/backend/node_modules/@alicloud/tea-util/dist/client.d.ts new file mode 100644 index 0000000..b0b41c1 --- /dev/null +++ b/backend/node_modules/@alicloud/tea-util/dist/client.d.ts @@ -0,0 +1,108 @@ +/// +import { Readable } from 'stream'; +import * as $tea from '@alicloud/tea-typescript'; +export declare class ExtendsParameters extends $tea.Model { + headers?: { + [key: string]: string; + }; + queries?: { + [key: string]: string; + }; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + constructor(map?: { + [key: string]: any; + }); +} +export declare class RuntimeOptions extends $tea.Model { + autoretry?: boolean; + ignoreSSL?: boolean; + key?: string; + cert?: string; + ca?: string; + maxAttempts?: number; + backoffPolicy?: string; + backoffPeriod?: number; + readTimeout?: number; + connectTimeout?: number; + httpProxy?: string; + httpsProxy?: string; + noProxy?: string; + maxIdleConns?: number; + keepAlive?: boolean; + extendsParameters?: ExtendsParameters; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + constructor(map?: { + [key: string]: any; + }); +} +export default class Client { + static toString(buff: Buffer): string; + static parseJSON(text: string): any; + static readAsBytes(stream: Readable): Promise; + static readAsString(stream: Readable): Promise; + static readAsJSON(stream: Readable): Promise; + static getNonce(): string; + static getDateUTCString(): string; + static defaultString(real: string, defaultValue: string): string; + static defaultNumber(real: number, defaultValue: number): number; + static toFormString(val: { + [key: string]: any; + }): string; + static toJSONString(val: any): string; + static toBytes(val: string): Buffer; + static empty(val: string): boolean; + static equalString(val1: string, val2: string): boolean; + static equalNumber(val1: number, val2: number): boolean; + static isUnset(value: any): boolean; + static stringifyMapValue(m: { + [key: string]: any; + }): { + [key: string]: string; + }; + static anyifyMapValue(m: { + [key: string]: string; + }): { + [key: string]: any; + }; + static assertAsBoolean(value: any): boolean; + static assertAsString(value: any): string; + static assertAsNumber(value: any): number; + /** + * Assert a value, if it is a integer, return it, otherwise throws + * @return the integer value + */ + static assertAsInteger(value: any): number; + static assertAsMap(value: any): { + [key: string]: any; + }; + static assertAsArray(value: any): any[]; + static assertAsBytes(value: any): Buffer; + static getUserAgent(userAgent: string): string; + static is2xx(code: number): boolean; + static is3xx(code: number): boolean; + static is4xx(code: number): boolean; + static is5xx(code: number): boolean; + static validateModel(m: $tea.Model): void; + static toMap(inputModel: $tea.Model): { + [key: string]: any; + }; + static sleep(millisecond: number): Promise; + static toArray(input: any): { + [key: string]: any; + }[]; + /** + * Assert a value, if it is a readable, return it, otherwise throws + * @return the readable value + */ + static assertAsReadable(value: any): Readable; +} diff --git a/backend/node_modules/@alicloud/tea-util/dist/client.js b/backend/node_modules/@alicloud/tea-util/dist/client.js new file mode 100644 index 0000000..1281571 --- /dev/null +++ b/backend/node_modules/@alicloud/tea-util/dist/client.js @@ -0,0 +1,301 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (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 (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RuntimeOptions = exports.ExtendsParameters = void 0; +const stream_1 = require("stream"); +const $tea = __importStar(require("@alicloud/tea-typescript")); +const kitx = __importStar(require("kitx")); +const querystring_1 = __importDefault(require("querystring")); +const os_1 = require("os"); +const DEFAULT_USER_AGENT = `AlibabaCloud (${os_1.platform()}; ${os_1.arch()}) Node.js/${process.version} Core/1.0.1 TeaDSL/1`; +class ExtendsParameters extends $tea.Model { + constructor(map) { + super(map); + } + static names() { + return { + headers: 'headers', + queries: 'queries', + }; + } + static types() { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + queries: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + }; + } +} +exports.ExtendsParameters = ExtendsParameters; +class RuntimeOptions extends $tea.Model { + constructor(map) { + super(map); + } + static names() { + return { + autoretry: 'autoretry', + ignoreSSL: 'ignoreSSL', + key: 'key', + cert: 'cert', + ca: 'ca', + maxAttempts: 'max_attempts', + backoffPolicy: 'backoff_policy', + backoffPeriod: 'backoff_period', + readTimeout: 'readTimeout', + connectTimeout: 'connectTimeout', + httpProxy: 'httpProxy', + httpsProxy: 'httpsProxy', + noProxy: 'noProxy', + maxIdleConns: 'maxIdleConns', + keepAlive: 'keepAlive', + extendsParameters: 'extendsParameters', + }; + } + static types() { + return { + autoretry: 'boolean', + ignoreSSL: 'boolean', + key: 'string', + cert: 'string', + ca: 'string', + maxAttempts: 'number', + backoffPolicy: 'string', + backoffPeriod: 'number', + readTimeout: 'number', + connectTimeout: 'number', + httpProxy: 'string', + httpsProxy: 'string', + noProxy: 'string', + maxIdleConns: 'number', + keepAlive: 'boolean', + extendsParameters: ExtendsParameters, + }; + } +} +exports.RuntimeOptions = RuntimeOptions; +function read(readable) { + return new Promise((resolve, reject) => { + let onData, onError, onEnd; + var cleanup = function () { + // cleanup + readable.removeListener('error', onError); + readable.removeListener('data', onData); + readable.removeListener('end', onEnd); + }; + var bufs = []; + var size = 0; + onData = function (buf) { + bufs.push(buf); + size += buf.length; + }; + onError = function (err) { + cleanup(); + reject(err); + }; + onEnd = function () { + cleanup(); + resolve(Buffer.concat(bufs, size)); + }; + readable.on('error', onError); + readable.on('data', onData); + readable.on('end', onEnd); + }); +} +class Client { + static toString(buff) { + return buff.toString(); + } + static parseJSON(text) { + return JSON.parse(text); + } + static async readAsBytes(stream) { + return await read(stream); + } + static async readAsString(stream) { + let buff = await Client.readAsBytes(stream); + return Client.toString(buff); + } + static async readAsJSON(stream) { + return Client.parseJSON(await Client.readAsString(stream)); + } + static getNonce() { + return kitx.makeNonce(); + } + static getDateUTCString() { + const now = new Date(); + return now.toUTCString(); + } + static defaultString(real, defaultValue) { + return real || defaultValue; + } + static defaultNumber(real, defaultValue) { + return real || defaultValue; + } + static toFormString(val) { + return querystring_1.default.stringify(val); + } + static toJSONString(val) { + if (typeof val === 'string') { + return val; + } + return JSON.stringify(val); + } + static toBytes(val) { + return Buffer.from(val); + } + static empty(val) { + return !val; + } + static equalString(val1, val2) { + return val1 === val2; + } + static equalNumber(val1, val2) { + return val1 === val2; + } + static isUnset(value) { + if (typeof value === 'undefined') { + return true; + } + if (value === null) { + return true; + } + return false; + } + static stringifyMapValue(m) { + if (!m) { + return m; + } + const result = {}; + for (const [key, value] of Object.entries(m)) { + if (typeof value === 'undefined' || value === null) { + continue; + } + result[key] = String(value); + } + return result; + } + static anyifyMapValue(m) { + return m; + } + static assertAsBoolean(value) { + if (typeof value === 'boolean') { + return value; + } + throw new Error(`The value is not a boolean`); + } + static assertAsString(value) { + if (typeof value === 'string') { + return value; + } + throw new Error(`The value is not a string`); + } + static assertAsNumber(value) { + if (typeof value === 'number') { + return value; + } + throw new Error(`The value is not a number`); + } + /** + * Assert a value, if it is a integer, return it, otherwise throws + * @return the integer value + */ + static assertAsInteger(value) { + if (Number.isInteger(value)) { + return value; + } + throw new Error(`The value is not a int number`); + } + static assertAsMap(value) { + if (value && typeof value === 'object' && !Array.isArray(value)) { + return value; + } + throw new Error(`The value is not a object`); + } + static assertAsArray(value) { + if (Array.isArray(value)) { + return value; + } + throw new Error(`The value is not array`); + } + static assertAsBytes(value) { + if (Buffer.isBuffer(value)) { + return value; + } + throw new Error(`The value is not bytes`); + } + static getUserAgent(userAgent) { + if (!userAgent || !userAgent.length) { + return DEFAULT_USER_AGENT; + } + return DEFAULT_USER_AGENT + " " + userAgent; + } + static is2xx(code) { + return code >= 200 && code < 300; + } + static is3xx(code) { + return code >= 300 && code < 400; + } + static is4xx(code) { + return code >= 400 && code < 500; + } + static is5xx(code) { + return code >= 500 && code < 600; + } + static validateModel(m) { + } + static toMap(inputModel) { + return $tea.toMap(inputModel); + } + static async sleep(millisecond) { + return new Promise(resolve => { + setTimeout(() => { + resolve(); + }, millisecond); + }); + } + static toArray(input) { + if (!(input instanceof Array)) { + return null; + } + let ret = []; + input.forEach((model) => { + if (!model) { + return; + } + ret.push($tea.toMap(model)); + }); + return ret; + } + /** + * Assert a value, if it is a readable, return it, otherwise throws + * @return the readable value + */ + static assertAsReadable(value) { + if (value instanceof stream_1.Readable) { + return value; + } + throw new Error(`The value is not a readable`); + } +} +exports.default = Client; +//# sourceMappingURL=client.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/tea-util/dist/client.js.map b/backend/node_modules/@alicloud/tea-util/dist/client.js.map new file mode 100644 index 0000000..31f94b6 --- /dev/null +++ b/backend/node_modules/@alicloud/tea-util/dist/client.js.map @@ -0,0 +1 @@ +{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAkC;AAClC,+DAAiD;AACjD,2CAA6B;AAC7B,8DAAsC;AACtC,2BAAoC;AACpC,MAAM,kBAAkB,GAAG,iBAAiB,aAAQ,EAAE,KAAK,SAAI,EAAE,aAAa,OAAO,CAAC,OAAO,sBAAsB,CAAC;AAEpH,MAAa,iBAAkB,SAAQ,IAAI,CAAC,KAAK;IAiB/C,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;IAhBD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAA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AAK,CAAC,KAAK,CAAC,CAAC,CAAC;QAC9B,CAAC,CAAC,CAAA;QACF,OAAO,GAAG,CAAC;IACb,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,gBAAgB,CAAC,KAAU;QAChC,IAAI,KAAK,YAAY,iBAAQ,EAAE;YAC7B,OAAO,KAAK,CAAC;SACd;QACD,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;IACjD,CAAC;CACF;AArND,yBAqNC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/tea-util/package.json b/backend/node_modules/@alicloud/tea-util/package.json new file mode 100644 index 0000000..b5be889 --- /dev/null +++ b/backend/node_modules/@alicloud/tea-util/package.json @@ -0,0 +1,32 @@ +{ + "name": "@alicloud/tea-util", + "version": "1.4.9", + "description": "", + "main": "dist/client.js", + "scripts": { + "test": "mocha -r ts-node/register -r source-map-support/register test/**/*.spec.ts", + "test-cov": "nyc -e .ts -r=html -r=text -r=lcov npm run test", + "build": "tsc", + "prepublishOnly": "tsc" + }, + "author": "Jackson Tian", + "license": "Apache-2.0", + "devDependencies": { + "@types/mocha": "^7.0.1", + "@types/node": "^12.12.26", + "mocha": "^7.0.1", + "nyc": "^15.0.0", + "source-map-support": "^0.5.16", + "ts-node": "^8.6.2", + "typescript": "^3.7.5" + }, + "dependencies": { + "@alicloud/tea-typescript": "^1.5.1", + "kitx": "^2.0.0" + }, + "files": [ + "dist", + "src" + ], + "repository": "git@github.com:aliyun/tea-util.git" +} diff --git a/backend/node_modules/@alicloud/tea-util/src/client.ts b/backend/node_modules/@alicloud/tea-util/src/client.ts new file mode 100644 index 0000000..3e0f601 --- /dev/null +++ b/backend/node_modules/@alicloud/tea-util/src/client.ts @@ -0,0 +1,343 @@ +import { Readable } from 'stream'; +import * as $tea from '@alicloud/tea-typescript'; +import * as kitx from 'kitx'; +import querystring from 'querystring'; +import { platform, arch } from 'os'; +const DEFAULT_USER_AGENT = `AlibabaCloud (${platform()}; ${arch()}) Node.js/${process.version} Core/1.0.1 TeaDSL/1`; + +export class ExtendsParameters extends $tea.Model { + headers?: { [key: string]: string }; + queries?: { [key: string]: string }; + static names(): { [key: string]: string } { + return { + headers: 'headers', + queries: 'queries', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + queries: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + }; + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class RuntimeOptions extends $tea.Model { + autoretry?: boolean; + ignoreSSL?: boolean; + key?: string; + cert?: string; + ca?: string; + maxAttempts?: number; + backoffPolicy?: string; + backoffPeriod?: number; + readTimeout?: number; + connectTimeout?: number; + httpProxy?: string; + httpsProxy?: string; + noProxy?: string; + maxIdleConns?: number; + keepAlive?: boolean; + extendsParameters?: ExtendsParameters; + static names(): { [key: string]: string } { + return { + autoretry: 'autoretry', + ignoreSSL: 'ignoreSSL', + key: 'key', + cert: 'cert', + ca: 'ca', + maxAttempts: 'max_attempts', + backoffPolicy: 'backoff_policy', + backoffPeriod: 'backoff_period', + readTimeout: 'readTimeout', + connectTimeout: 'connectTimeout', + httpProxy: 'httpProxy', + httpsProxy: 'httpsProxy', + noProxy: 'noProxy', + maxIdleConns: 'maxIdleConns', + keepAlive: 'keepAlive', + extendsParameters: 'extendsParameters', + }; + } + + static types(): { [key: string]: any } { + return { + autoretry: 'boolean', + ignoreSSL: 'boolean', + key: 'string', + cert: 'string', + ca: 'string', + maxAttempts: 'number', + backoffPolicy: 'string', + backoffPeriod: 'number', + readTimeout: 'number', + connectTimeout: 'number', + httpProxy: 'string', + httpsProxy: 'string', + noProxy: 'string', + maxIdleConns: 'number', + keepAlive: 'boolean', + extendsParameters: ExtendsParameters, + }; + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +function read(readable: Readable): Promise { + return new Promise((resolve, reject) => { + let onData, onError, onEnd; + var cleanup = function () { + // cleanup + readable.removeListener('error', onError); + readable.removeListener('data', onData); + readable.removeListener('end', onEnd); + }; + + var bufs = []; + var size = 0; + + onData = function (buf) { + bufs.push(buf); + size += buf.length; + }; + + onError = function (err) { + cleanup(); + reject(err); + }; + + onEnd = function () { + cleanup(); + resolve(Buffer.concat(bufs, size)); + }; + + readable.on('error', onError); + readable.on('data', onData); + readable.on('end', onEnd); + }); +} + +export default class Client { + + static toString(buff: Buffer): string { + return buff.toString(); + } + + static parseJSON(text: string): any { + return JSON.parse(text); + } + + static async readAsBytes(stream: Readable): Promise { + return await read(stream); + } + + static async readAsString(stream: Readable): Promise { + let buff = await Client.readAsBytes(stream); + return Client.toString(buff); + } + + static async readAsJSON(stream: Readable): Promise { + return Client.parseJSON(await Client.readAsString(stream)); + } + + static getNonce(): string { + return kitx.makeNonce(); + } + + static getDateUTCString(): string { + const now = new Date(); + return now.toUTCString(); + } + + static defaultString(real: string, defaultValue: string): string { + return real || defaultValue; + } + + static defaultNumber(real: number, defaultValue: number): number { + return real || defaultValue; + } + + static toFormString(val: { [key: string]: any }): string { + return querystring.stringify(val); + } + + static toJSONString(val: any): string { + if (typeof val === 'string') { + return val; + } + return JSON.stringify(val); + } + + static toBytes(val: string): Buffer { + return Buffer.from(val); + } + + static empty(val: string): boolean { + return !val; + } + + static equalString(val1: string, val2: string): boolean { + return val1 === val2; + } + + static equalNumber(val1: number, val2: number): boolean { + return val1 === val2; + } + + static isUnset(value: any): boolean { + if (typeof value === 'undefined') { + return true; + } + + if (value === null) { + return true; + } + + return false; + } + + static stringifyMapValue(m: { [key: string]: any }): { [key: string]: string } { + if (!m) { + return m; + } + + const result: { [key: string]: string } = {}; + for (const [key, value] of Object.entries(m)) { + if (typeof value === 'undefined' || value === null) { + continue; + } + result[key] = String(value); + } + return result; + } + + static anyifyMapValue(m: { [key: string]: string }): { [key: string]: any } { + return m; + } + + static assertAsBoolean(value: any): boolean { + if (typeof value === 'boolean') { + return value; + } + throw new Error(`The value is not a boolean`); + } + + static assertAsString(value: any): string { + if (typeof value === 'string') { + return value; + } + throw new Error(`The value is not a string`); + } + + static assertAsNumber(value: any): number { + if (typeof value === 'number') { + return value; + } + throw new Error(`The value is not a number`); + } + + /** + * Assert a value, if it is a integer, return it, otherwise throws + * @return the integer value + */ + static assertAsInteger(value: any): number { + if (Number.isInteger(value)) { + return value; + } + throw new Error(`The value is not a int number`); + } + + static assertAsMap(value: any): { [key: string]: any } { + if (value && typeof value === 'object' && !Array.isArray(value)) { + return value as { [key: string]: any }; + } + throw new Error(`The value is not a object`); + } + + static assertAsArray(value: any): any[] { + if (Array.isArray(value)) { + return value; + } + throw new Error(`The value is not array`); + } + + static assertAsBytes(value: any): Buffer { + if (Buffer.isBuffer(value)) { + return value; + } + throw new Error(`The value is not bytes`); + } + + static getUserAgent(userAgent: string): string { + if (!userAgent || !userAgent.length) { + return DEFAULT_USER_AGENT; + } + return DEFAULT_USER_AGENT + " " + userAgent; + } + + static is2xx(code: number): boolean { + return code >= 200 && code < 300; + } + + static is3xx(code: number): boolean { + return code >= 300 && code < 400; + } + + static is4xx(code: number): boolean { + return code >= 400 && code < 500; + } + + static is5xx(code: number): boolean { + return code >= 500 && code < 600; + } + static validateModel(m: $tea.Model): void { + + } + + static toMap(inputModel: $tea.Model): { [key: string]: any } { + return $tea.toMap(inputModel); + } + + static async sleep(millisecond: number): Promise { + return new Promise(resolve => { + setTimeout(() => { + resolve(); + }, millisecond) + }) + } + + static toArray(input: any): { [key: string]: any }[] { + if (!(input instanceof Array)) { + return null; + } + let ret = []; + input.forEach((model) => { + if (!model) { + return; + } + ret.push($tea.toMap(model)); + }) + return ret; + } + + /** + * Assert a value, if it is a readable, return it, otherwise throws + * @return the readable value + */ + static assertAsReadable(value: any): Readable { + if (value instanceof Readable) { + return value; + } + throw new Error(`The value is not a readable`); + } +} + + diff --git a/backend/node_modules/@alicloud/tea-xml/ChangeLog.txt b/backend/node_modules/@alicloud/tea-xml/ChangeLog.txt new file mode 100644 index 0000000..590c515 --- /dev/null +++ b/backend/node_modules/@alicloud/tea-xml/ChangeLog.txt @@ -0,0 +1,8 @@ +2024-01-10 Version: v0.0.3 +- Bump xml2js form 0.4.22 to 0.6.0 + +2021-11-23 Version: v0.0.2 +- Add case null in parseXml + +2020-02-27 Version: v0.0.1 +- v0.0.1 \ No newline at end of file diff --git a/backend/node_modules/@alicloud/tea-xml/README.md b/backend/node_modules/@alicloud/tea-xml/README.md new file mode 100644 index 0000000..4e30cfd --- /dev/null +++ b/backend/node_modules/@alicloud/tea-xml/README.md @@ -0,0 +1,29 @@ +English | [简体中文](README-CN.md) +![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg) + +## Alibaba Cloud Tea XML for TypeScript/Node.js + +## Prerequisite + +Node.js >= 8.x + +## Installation +If you use `npm` to manage your dependence, you can use the following command to install it and write into package.json dependences: + +```sh +$ npm install @alicloud/tea-xml -S +``` + +## Issues +[Opening an Issue](https://github.com/aliyun/tea-xml/issues/new), Issues not conforming to the guidelines may be closed immediately. + +## Changelog +Detailed changes for each release are documented in the [release notes](./ChangeLog.txt). + +## References +* [Latest Release](https://github.com/aliyun/tea-xml/tree/master/ts) + +## License +[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0) + +Copyright (c) 2009-present, Alibaba Cloud All rights reserved. \ No newline at end of file diff --git a/backend/node_modules/@alicloud/tea-xml/dist/client.d.ts b/backend/node_modules/@alicloud/tea-xml/dist/client.d.ts new file mode 100644 index 0000000..3d25874 --- /dev/null +++ b/backend/node_modules/@alicloud/tea-xml/dist/client.d.ts @@ -0,0 +1,12 @@ +export default class Client { + static parseXml(body: string, response: T): { + [key: string]: any; + }; + static toXML(body: { + [key: string]: any; + }): string; + static _parseXML(body: string): any; + static _xmlCast(obj: any, clazz: T): { + [key: string]: any; + }; +} diff --git a/backend/node_modules/@alicloud/tea-xml/dist/client.js b/backend/node_modules/@alicloud/tea-xml/dist/client.js new file mode 100644 index 0000000..533cdf1 --- /dev/null +++ b/backend/node_modules/@alicloud/tea-xml/dist/client.js @@ -0,0 +1,93 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const xml2js_1 = require("xml2js"); +class Client { + static parseXml(body, response) { + let ret = this._parseXML(body); + if (response !== null && typeof response !== 'undefined') { + ret = this._xmlCast(ret, response); + } + return ret; + } + static toXML(body) { + const builder = new xml2js_1.Builder(); + return builder.buildObject(body); + } + static _parseXML(body) { + let parser = new xml2js_1.Parser({ explicitArray: false }); + let result = {}; + parser.parseString(body, function (err, output) { + result.err = err; + result.output = output; + }); + if (result.err) { + throw result.err; + } + return result.output; + } + static _xmlCast(obj, clazz) { + obj = obj || {}; + let ret = {}; + let clz = clazz; + let names = clz.names(); + let types = clz.types(); + Object.keys(names).forEach((key) => { + let originName = names[key]; + let value = obj[originName]; + let type = types[key]; + switch (type) { + case 'boolean': + if (!value) { + ret[originName] = false; + return; + } + ret[originName] = value === 'false' ? false : true; + return; + case 'number': + if (value != 0 && !value) { + ret[originName] = NaN; + return; + } + ret[originName] = +value; + return; + case 'string': + if (!value) { + ret[originName] = ''; + return; + } + ret[originName] = value.toString(); + return; + default: + if (type.type === 'array') { + if (!value) { + ret[originName] = []; + return; + } + if (!Array.isArray(value)) { + value = [value]; + } + if (typeof type.itemType === 'function') { + ret[originName] = value.map((d) => { + return this._xmlCast(d, type.itemType); + }); + } + else { + ret[originName] = value; + } + } + else if (typeof type === 'function') { + if (!value) { + value = {}; + } + ret[originName] = this._xmlCast(value, type); + } + else { + ret[originName] = value; + } + } + }); + return ret; + } +} +exports.default = Client; +//# sourceMappingURL=client.js.map \ No newline at end of file diff --git a/backend/node_modules/@alicloud/tea-xml/dist/client.js.map b/backend/node_modules/@alicloud/tea-xml/dist/client.js.map new file mode 100644 index 0000000..68eda9b --- /dev/null +++ b/backend/node_modules/@alicloud/tea-xml/dist/client.js.map @@ -0,0 +1 @@ +{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;AAGA,mCAAyC;AAKzC,MAAqB,MAAM;IAEzB,MAAM,CAAC,QAAQ,CAAI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CAAM,EAAE,EAAE;gCACrC,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;4BACzC,CAAC,CAAC,CAAC;yBACJ;6BAAM;4BACL,GAAG,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC;yBACzB;qBACF;yBAAM,IAAI,OAAO,IAAI,KAAK,UAAU,EAAE;wBACrC,IAAI,CAAC,KAAK,EAAE;4BACV,KAAK,GAAG,EAAE,CAAA;yBACX;wBACD,GAAG,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;qBAC9C;yBAAM;wBACL,GAAG,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC;qBACzB;aACJ;QACH,CAAC,CAAC,CAAA;QACF,OAAO,GAAG,CAAC;IACb,CAAC;CAEF;AA3FD,yBA2FC"} \ No newline at end of file diff --git a/backend/node_modules/@alicloud/tea-xml/package.json b/backend/node_modules/@alicloud/tea-xml/package.json new file mode 100644 index 0000000..712d266 --- /dev/null +++ b/backend/node_modules/@alicloud/tea-xml/package.json @@ -0,0 +1,38 @@ +{ + "name": "@alicloud/tea-xml", + "version": "0.0.3", + "description": "", + "main": "dist/client.js", + "scripts": { + "test": "mocha -r ts-node/register test/**/*.spec.ts", + "test-cov": "nyc -e .ts -r=html -r=text -r=lcov npm run test", + "build": "tsc", + "prepublishOnly": "tsc" + }, + "author": "Jackson Tian", + "license": "Apache-2.0", + "dependencies": { + "@alicloud/tea-typescript": "^1", + "@types/xml2js": "^0.4.5", + "xml2js": "^0.6.0" + }, + "files": [ + "dist", + "src" + ], + "nyc": { + "extends": "@istanbuljs/nyc-config-typescript", + "all": true, + "check-coverage": true + }, + "devDependencies": { + "@istanbuljs/nyc-config-typescript": "^0.1.3", + "@types/mocha": "^5.2.7", + "mocha": "^6.2.0", + "ts-node": "^8.4.1", + "typescript": "^3.6.3", + "codecov": "^3.1.0", + "rewire": "^4.0.1", + "nyc": "^14.1.1" + } +} diff --git a/backend/node_modules/@alicloud/tea-xml/src/client.ts b/backend/node_modules/@alicloud/tea-xml/src/client.ts new file mode 100644 index 0000000..baeaedc --- /dev/null +++ b/backend/node_modules/@alicloud/tea-xml/src/client.ts @@ -0,0 +1,100 @@ +// This file is auto-generated, don't edit it +import { Readable } from 'stream'; +import * as $tea from '@alicloud/tea-typescript'; +import { Parser, Builder } from 'xml2js'; + + + + +export default class Client { + + static parseXml(body: string, response: T): { [key: string]: any } { + let ret: { [key: string]: any } = this._parseXML(body); + if (response !== null && typeof response !== 'undefined') { + ret = this._xmlCast(ret, response); + } + return ret; + } + + static toXML(body: { [key: string]: any }): string { + const builder = new Builder(); + return builder.buildObject(body); + } + + static _parseXML(body: string): any { + let parser = new Parser({ explicitArray: false }); + let result: { [key: string]: any } = {}; + parser.parseString(body, function (err: any, output: any) { + result.err = err; + result.output = output; + }); + if (result.err) { + throw result.err; + } + + return result.output; + } + + static _xmlCast(obj: any, clazz: T): { [key: string]: any } { + obj = obj || {}; + let ret: { [key: string]: any } = {}; + let clz = clazz as any; + let names: { [key: string]: string } = clz.names(); + let types: { [key: string]: any } = clz.types(); + + Object.keys(names).forEach((key) => { + let originName = names[key]; + let value = obj[originName]; + let type = types[key]; + switch (type) { + case 'boolean': + if (!value) { + ret[originName] = false; + return; + } + ret[originName] = value === 'false' ? false : true; + return; + case 'number': + if (value != 0 && !value) { + ret[originName] = NaN; + return; + } + ret[originName] = +value; + return; + case 'string': + if (!value) { + ret[originName] = ''; + return; + } + ret[originName] = value.toString(); + return; + default: + if (type.type === 'array') { + if (!value) { + ret[originName] = []; + return; + } + if (!Array.isArray(value)) { + value = [value]; + } + if (typeof type.itemType === 'function') { + ret[originName] = value.map((d: any) => { + return this._xmlCast(d, type.itemType); + }); + } else { + ret[originName] = value; + } + } else if (typeof type === 'function') { + if (!value) { + value = {} + } + ret[originName] = this._xmlCast(value, type); + } else { + ret[originName] = value; + } + } + }) + return ret; + } + +} diff --git a/backend/node_modules/@darabonba/typescript/README.md b/backend/node_modules/@darabonba/typescript/README.md new file mode 100644 index 0000000..5db15f5 --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/README.md @@ -0,0 +1,24 @@ +# Darabonba Support for TypeScript/Node.js + +[![NPM version][npm-image]][npm-url] +[![Node.js CI](https://github.com/aliyun/tea-typescript/actions/workflows/node.js.yml/badge.svg)](https://github.com/aliyun/tea-typescript/actions/workflows/node.js.yml) +[![codecov][cov-image]][cov-url] +[![npm download][download-image]][download-url] + +[npm-image]: https://img.shields.io/npm/v/@darabonba/typescript.svg?style=flat-square +[npm-url]: https://npmjs.org/package/@darabonba/typescript +[cov-image]: https://codecov.io/gh/aliyun/tea-typescript/branch/master/graph/badge.svg +[cov-url]: https://codecov.io/gh/aliyun/tea-typescript +[download-image]: https://img.shields.io/npm/dm/@darabonba/typescript.svg?style=flat-square +[download-url]: https://npmjs.org/package/@darabonba/typescript + +Darabonba support for TypeScript/Node.js. + +## Installation + +```bash +$ npm i @darabonba/typescript -S +``` + +## License +The Apache License 2.0. diff --git a/backend/node_modules/@darabonba/typescript/dist/core.d.ts b/backend/node_modules/@darabonba/typescript/dist/core.d.ts new file mode 100644 index 0000000..4a43bdb --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/dist/core.d.ts @@ -0,0 +1,120 @@ +/// +/// +/// +import { IncomingMessage, IncomingHttpHeaders } from 'http'; +import { Readable } from 'stream'; +import { RetryOptions } from './retry'; +import * as $tea from '@alicloud/tea-typescript'; +type TeaDict = { + [key: string]: string; +}; +type TeaObject = { + [key: string]: any; +}; +export declare class BytesReadable extends Readable { + value: Buffer; + constructor(value: string | Buffer); + _read(): void; +} +export declare class Request { + protocol: string; + port: number; + method: string; + pathname: string; + query: TeaDict; + headers: TeaDict; + body: Readable; + constructor(); +} +export declare class Response { + statusCode: number; + statusMessage: string; + headers: TeaDict; + body: IncomingMessage; + constructor(httpResponse: IncomingMessage); + convertHeaders(headers: IncomingHttpHeaders): TeaDict; + readBytes(): Promise; +} +export declare function doAction(request: Request, runtime?: TeaObject): Promise; +export declare function toMap(value?: any, withoutStream?: boolean): any; +export declare class Model extends $tea.Model { + [key: string]: any; + constructor(map?: TeaObject); + validate(): void; + copyWithoutStream(): T; + toMap(withoutStream?: boolean): TeaObject; + static validateRequired(key: string, value: any): void; + static validateMaxLength(key: string, value: any, max: number): void; + static validateMinLength(key: string, value: any, min: number): void; + static validateMaximum(key: string, value: number | undefined, max: number): void; + static validateMinimum(key: string, value: number | undefined, min: number): void; + static validatePattern(key: string, value: any, val: string): void; + static validateArray(data?: any[]): void; + static validateMap(data?: { + [key: string]: any; + }): void; +} +export declare class FileField extends Model { + filename: string; + contentType: string; + content: Readable; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + constructor(map?: { + [key: string]: any; + }); +} +export declare class ExtendsParameters extends $tea.Model { + headers?: { + [key: string]: string; + }; + queries?: { + [key: string]: string; + }; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + constructor(map?: { + [key: string]: any; + }); +} +export declare class RuntimeOptions extends $tea.Model { + retryOptions?: RetryOptions; + autoretry?: boolean; + ignoreSSL?: boolean; + key?: string; + cert?: string; + ca?: string; + maxAttempts?: number; + backoffPolicy?: string; + backoffPeriod?: number; + readTimeout?: number; + connectTimeout?: number; + httpProxy?: string; + httpsProxy?: string; + noProxy?: string; + maxIdleConns?: number; + keepAlive?: boolean; + extendsParameters?: ExtendsParameters; + static names(): { + [key: string]: string; + }; + static types(): { + [key: string]: any; + }; + constructor(map?: { + [key: string]: any; + }); +} +export declare function cast(obj: any, t: T): T; +export declare function allowRetry(retry: TeaObject, retryTimes: number, startTime: number): boolean; +export declare function getBackoffTime(backoff: TeaObject, retryTimes: number): number; +export declare function isRetryable(err: Error): boolean; +export {}; diff --git a/backend/node_modules/@darabonba/typescript/dist/core.js b/backend/node_modules/@darabonba/typescript/dist/core.js new file mode 100644 index 0000000..76c1616 --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/dist/core.js @@ -0,0 +1,680 @@ +"use strict"; +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +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 (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (g && (g = 0, op[0] && (_ = 0)), _) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isRetryable = exports.getBackoffTime = exports.allowRetry = exports.cast = exports.RuntimeOptions = exports.ExtendsParameters = exports.FileField = exports.Model = exports.toMap = exports.doAction = exports.Response = exports.Request = exports.BytesReadable = void 0; +var querystring = __importStar(require("querystring")); +var http_1 = require("http"); +var https_1 = require("https"); +var stream_1 = require("stream"); +var httpx = __importStar(require("httpx")); +var url_1 = require("url"); +var retry_1 = require("./retry"); +var error_1 = require("./error"); +var $tea = __importStar(require("@alicloud/tea-typescript")); +var BytesReadable = /** @class */ (function (_super) { + __extends(BytesReadable, _super); + function BytesReadable(value) { + var _this = _super.call(this) || this; + if (typeof value === 'string') { + _this.value = Buffer.from(value); + } + else if (Buffer.isBuffer(value)) { + _this.value = value; + } + return _this; + } + BytesReadable.prototype._read = function () { + this.push(this.value); + this.push(null); + }; + return BytesReadable; +}(stream_1.Readable)); +exports.BytesReadable = BytesReadable; +var Request = /** @class */ (function () { + function Request() { + this.headers = {}; + this.query = {}; + } + return Request; +}()); +exports.Request = Request; +var Response = /** @class */ (function () { + function Response(httpResponse) { + this.statusCode = httpResponse.statusCode; + this.statusMessage = httpResponse.statusMessage; + this.headers = this.convertHeaders(httpResponse.headers); + this.body = httpResponse; + } + Response.prototype.convertHeaders = function (headers) { + var results = {}; + var keys = Object.keys(headers); + for (var index = 0; index < keys.length; index++) { + var key = keys[index]; + results[key] = headers[key]; + } + return results; + }; + Response.prototype.readBytes = function () { + return __awaiter(this, void 0, void 0, function () { + var buff; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, httpx.read(this.body, '')]; + case 1: + buff = _a.sent(); + return [2 /*return*/, buff]; + } + }); + }); + }; + return Response; +}()); +exports.Response = Response; +function buildURL(request) { + var url = "".concat(request.protocol, "://").concat(request.headers['host']); + if (request.port) { + url += ":".concat(request.port); + } + url += "".concat(request.pathname); + var urlInfo = (0, url_1.parse)(url); + if (request.query && Object.keys(request.query).length > 0) { + if (urlInfo.query) { + url += "&".concat(querystring.stringify(request.query)); + } + else { + url += "?".concat(querystring.stringify(request.query)); + } + } + return url; +} +function isModelClass(t) { + if (!t) { + return false; + } + return typeof t.types === 'function' && typeof t.names === 'function'; +} +function doAction(request, runtime) { + if (runtime === void 0) { runtime = null; } + return __awaiter(this, void 0, void 0, function () { + var url, method, options, agentOptions, response; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + url = buildURL(request); + method = (request.method || 'GET').toUpperCase(); + options = { + method: method, + headers: request.headers + }; + if (method !== 'GET' && method !== 'HEAD') { + options.data = request.body; + } + if (runtime) { + if (typeof runtime.timeout !== 'undefined') { + options.timeout = Number(runtime.timeout); + } + if (typeof runtime.readTimeout !== 'undefined') { + options.readTimeout = Number(runtime.readTimeout); + } + if (typeof runtime.connectTimeout !== 'undefined') { + options.connectTimeout = Number(runtime.connectTimeout); + } + if (typeof runtime.ignoreSSL !== 'undefined') { + options.rejectUnauthorized = !runtime.ignoreSSL; + } + if (typeof runtime.key !== 'undefined') { + options.key = String(runtime.key); + } + if (typeof runtime.cert !== 'undefined') { + options.cert = String(runtime.cert); + } + if (typeof runtime.ca !== 'undefined') { + options.ca = String(runtime.ca); + } + agentOptions = { + keepAlive: true, + }; + if (typeof runtime.keepAlive !== 'undefined') { + agentOptions.keepAlive = runtime.keepAlive; + if (request.protocol && request.protocol.toLowerCase() === 'https') { + options.agent = new https_1.Agent(agentOptions); + } + else { + options.agent = new http_1.Agent(agentOptions); + } + } + } + return [4 /*yield*/, httpx.request(url, options)]; + case 1: + response = _a.sent(); + return [2 /*return*/, new Response(response)]; + } + }); + }); +} +exports.doAction = doAction; +function getValue(type, value) { + if (typeof type === 'string') { + // basic type + return value; + } + if (type.type === 'array') { + if (!Array.isArray(value)) { + throw new Error("expect: array, actual: ".concat(typeof value)); + } + return value.map(function (item) { + return getValue(type.itemType, item); + }); + } + if (typeof type === 'function') { + if (isModelClass(type)) { + return new type(value); + } + return value; + } + return value; +} +function toMap(value, withoutStream) { + if (value === void 0) { value = undefined; } + if (withoutStream === void 0) { withoutStream = false; } + if (typeof value === 'undefined' || value == null) { + return null; + } + if (value instanceof Model) { + return value.toMap(withoutStream); + } + // 如果是另一个版本的 tea-typescript 创建的 model,instanceof 会判断不通过 + // 这里做一下处理 + if (typeof value.toMap === 'function') { + return value.toMap(withoutStream); + } + if (Array.isArray(value)) { + return value.map(function (item) { + return toMap(item, withoutStream); + }); + } + if (withoutStream && (value instanceof stream_1.Readable || value instanceof stream_1.Writable)) { + return null; + } + return value; +} +exports.toMap = toMap; +var Model = /** @class */ (function (_super) { + __extends(Model, _super); + function Model(map) { + var _this = _super.call(this) || this; + if (map == null) { + return _this; + } + var clz = _this.constructor; + var names = clz.names(); + var types = clz.types(); + Object.keys(names).forEach((function (name) { + var value = map[name]; + if (value === undefined || value === null) { + return; + } + var type = types[name]; + _this[name] = getValue(type, value); + })); + return _this; + } + Model.prototype.validate = function () { }; + Model.prototype.copyWithoutStream = function () { + var map = this.toMap(true); + var clz = this.constructor; + return new clz(map); + }; + Model.prototype.toMap = function (withoutStream) { + var _this = this; + if (withoutStream === void 0) { withoutStream = false; } + var map = {}; + var clz = this.constructor; + var names = clz.names(); + Object.keys(names).forEach((function (name) { + var originName = names[name]; + var value = _this[name]; + if (typeof value === 'undefined' || value == null) { + return; + } + map[originName] = toMap(value, withoutStream); + })); + return map; + }; + Model.validateRequired = function (key, value) { + if (value === null || typeof value === 'undefined') { + throw new error_1.BaseError({ + code: 'SDK.ValidateError', + message: "".concat(key, " is required."), + }); + } + }; + Model.validateMaxLength = function (key, value, max) { + if (value === null || typeof value === 'undefined') { + return; + } + if (value.length > max) { + throw new error_1.BaseError({ + code: 'SDK.ValidateError', + message: "".concat(key, " is exceed max-length: ").concat(max, "."), + }); + } + }; + Model.validateMinLength = function (key, value, min) { + if (value === null || typeof value === 'undefined') { + return; + } + if (value.length < min) { + throw new error_1.BaseError({ + code: 'SDK.ValidateError', + message: "".concat(key, " is exceed min-length: ").concat(min, "."), + }); + } + }; + Model.validateMaximum = function (key, value, max) { + if (value === null || typeof value === 'undefined') { + return; + } + if (value > max) { + throw new error_1.BaseError({ + code: 'SDK.ValidateError', + message: "".concat(key, " cannot be greater than ").concat(max, "."), + }); + } + }; + Model.validateMinimum = function (key, value, min) { + if (value === null || typeof value === 'undefined') { + return; + } + if (value < min) { + throw new error_1.BaseError({ + code: 'SDK.ValidateError', + message: "".concat(key, " cannot be less than ").concat(min, "."), + }); + } + }; + Model.validatePattern = function (key, value, val) { + if (value === null || typeof value === 'undefined') { + return; + } + var reg = new RegExp(val); + if (!reg.test(value)) { + throw new error_1.BaseError({ + code: 'SDK.ValidateError', + message: "".concat(key, " is not match ").concat(val, "."), + }); + } + }; + Model.validateArray = function (data) { + if (data === null || typeof data === 'undefined') { + return; + } + data.map(function (ele) { + if (!ele) { + return; + } + if (ele instanceof Model || typeof ele.validate === 'function') { + ele.validate(); + } + else if (Array.isArray(ele)) { + Model.validateArray(ele); + } + else if (ele instanceof Object) { + Model.validateMap(ele); + } + }); + }; + Model.validateMap = function (data) { + if (data === null || typeof data === 'undefined') { + return; + } + Object.keys(data).map(function (key) { + var ele = data[key]; + if (!ele) { + return; + } + if (ele instanceof Model || typeof ele.validate === 'function') { + ele.validate(); + } + else if (Array.isArray(ele)) { + Model.validateArray(ele); + } + else if (ele instanceof Object) { + Model.validateMap(ele); + } + }); + }; + return Model; +}($tea.Model)); +exports.Model = Model; +var FileField = /** @class */ (function (_super) { + __extends(FileField, _super); + function FileField(map) { + return _super.call(this, map) || this; + } + FileField.names = function () { + return { + filename: 'filename', + contentType: 'contentType', + content: 'content', + }; + }; + FileField.types = function () { + return { + filename: 'string', + contentType: 'string', + content: 'Readable', + }; + }; + return FileField; +}(Model)); +exports.FileField = FileField; +var ExtendsParameters = /** @class */ (function (_super) { + __extends(ExtendsParameters, _super); + function ExtendsParameters(map) { + return _super.call(this, map) || this; + } + ExtendsParameters.names = function () { + return { + headers: 'headers', + queries: 'queries', + }; + }; + ExtendsParameters.types = function () { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + queries: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + }; + }; + return ExtendsParameters; +}($tea.Model)); +exports.ExtendsParameters = ExtendsParameters; +var RuntimeOptions = /** @class */ (function (_super) { + __extends(RuntimeOptions, _super); + function RuntimeOptions(map) { + return _super.call(this, map) || this; + } + RuntimeOptions.names = function () { + return { + autoretry: 'autoretry', + ignoreSSL: 'ignoreSSL', + key: 'key', + cert: 'cert', + ca: 'ca', + maxAttempts: 'max_attempts', + backoffPolicy: 'backoff_policy', + backoffPeriod: 'backoff_period', + readTimeout: 'readTimeout', + connectTimeout: 'connectTimeout', + httpProxy: 'httpProxy', + httpsProxy: 'httpsProxy', + noProxy: 'noProxy', + maxIdleConns: 'maxIdleConns', + keepAlive: 'keepAlive', + extendsParameters: 'extendsParameters', + }; + }; + RuntimeOptions.types = function () { + return { + retryOptions: retry_1.RetryOptions, + autoretry: 'boolean', + ignoreSSL: 'boolean', + key: 'string', + cert: 'string', + ca: 'string', + maxAttempts: 'number', + backoffPolicy: 'string', + backoffPeriod: 'number', + readTimeout: 'number', + connectTimeout: 'number', + httpProxy: 'string', + httpsProxy: 'string', + noProxy: 'string', + maxIdleConns: 'number', + keepAlive: 'boolean', + extendsParameters: ExtendsParameters, + }; + }; + return RuntimeOptions; +}($tea.Model)); +exports.RuntimeOptions = RuntimeOptions; +function cast(obj, t) { + if (!obj) { + throw new Error('can not cast to Map'); + } + if (typeof obj !== 'object') { + throw new Error('can not cast to Map'); + } + var map = obj; + var clz = t.constructor; + var names = clz.names(); + var types = clz.types(); + Object.keys(names).forEach(function (key) { + var originName = names[key]; + var value = map[originName]; + var type = types[key]; + if (typeof value === 'undefined' || value == null) { + return; + } + if (typeof type === 'string') { + if (type === 'Readable' || + type === 'Writable' || + type === 'map' || + type === 'Buffer' || + type === 'any' || + typeof value === type) { + t[key] = value; + return; + } + if (type === 'string' && + (typeof value === 'number' || + typeof value === 'boolean')) { + t[key] = value.toString(); + return; + } + if (type === 'boolean') { + if (value === 1 || value === 0) { + t[key] = !!value; + return; + } + if (value === 'true' || value === 'false') { + t[key] = value === 'true'; + return; + } + } + if (type === 'number' && typeof value === 'string') { + if (value.match(/^\d*$/)) { + t[key] = parseInt(value); + return; + } + if (value.match(/^[\.\d]*$/)) { + t[key] = parseFloat(value); + return; + } + } + throw new Error("type of ".concat(key, " is mismatch, expect ").concat(type, ", but ").concat(typeof value)); + } + else if (type.type === 'map') { + if (!(value instanceof Object)) { + throw new Error("type of ".concat(key, " is mismatch, expect object, but ").concat(typeof value)); + } + t[key] = value; + } + else if (type.type === 'array') { + if (!Array.isArray(value)) { + throw new Error("type of ".concat(key, " is mismatch, expect array, but ").concat(typeof value)); + } + if (typeof type.itemType === 'function') { + t[key] = value.map(function (d) { + if (isModelClass(type.itemType)) { + return cast(d, new type.itemType({})); + } + return d; + }); + } + else { + t[key] = value; + } + } + else if (typeof type === 'function') { + if (!(value instanceof Object)) { + throw new Error("type of ".concat(key, " is mismatch, expect object, but ").concat(typeof value)); + } + if (isModelClass(type)) { + t[key] = cast(value, new type({})); + return; + } + t[key] = value; + } + else { + } + }); + return t; +} +exports.cast = cast; +function allowRetry(retry, retryTimes, startTime) { + // 还未重试 + if (retryTimes === 0) { + return true; + } + if (retry.retryable !== true) { + return false; + } + if (retry.policy === 'never') { + return false; + } + if (retry.policy === 'always') { + return true; + } + if (retry.policy === 'simple') { + return (retryTimes < retry['maxAttempts']); + } + if (retry.policy === 'timeout') { + return Date.now() - startTime < retry.timeout; + } + if (retry.maxAttempts && typeof retry.maxAttempts === 'number') { + return retry.maxAttempts >= retryTimes; + } + // 默认不重试 + return false; +} +exports.allowRetry = allowRetry; +function getBackoffTime(backoff, retryTimes) { + if (retryTimes === 0) { + // 首次调用,不使用退避策略 + return 0; + } + if (backoff.policy === 'no') { + // 不退避 + return 0; + } + if (backoff.policy === 'fixed') { + // 固定退避 + return backoff.period; + } + if (backoff.policy === 'random') { + // 随机退避 + var min = backoff['minPeriod']; + var max = backoff['maxPeriod']; + return min + (max - min) * Math.random(); + } + if (backoff.policy === 'exponential') { + // 指数退避 + var init = backoff.initial; + var multiplier = backoff.multiplier; + var time = init * Math.pow(1 + multiplier, retryTimes - 1); + var max = backoff.max; + return Math.min(time, max); + } + if (backoff.policy === 'exponential_random') { + // 指数随机退避 + var init = backoff.initial; + var multiplier = backoff.multiplier; + var time = init * Math.pow(1 + multiplier, retryTimes - 1); + var max = backoff.max; + return Math.min(time * (0.5 + Math.random()), max); + } + return 0; +} +exports.getBackoffTime = getBackoffTime; +function isRetryable(err) { + if (typeof err === 'undefined' || err === null) { + return false; + } + return err.name === 'RetryError'; +} +exports.isRetryable = isRetryable; +//# sourceMappingURL=core.js.map \ No newline at end of file diff --git a/backend/node_modules/@darabonba/typescript/dist/core.js.map b/backend/node_modules/@darabonba/typescript/dist/core.js.map new file mode 100644 index 0000000..5a1e8e8 --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/dist/core.js.map @@ -0,0 +1 @@ +{"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAA2C;AAC3C,6BAAgF;AAChF,+BAA4C;AAC5C,iCAA4C;AAC5C,2CAA+B;AAC/B,2BAA4B;AAC5B,iCAAuC;AACvC,iCAAoC;AACpC,6DAAiD;AAMjD;IAAmC,iCAAQ;IAGzC,uBAAY,KAAsB;QAAlC,YACE,iBAAO,SAMR;QALC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC7B,KAAI,CAAC,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SACjC;aAAM,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;YACjC,KAAI,CAAC,KAAK,GAAG,KAAK,CAAC;SACpB;;IACH,CAAC;IAED,6BAAK,GAAL;QACE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACtB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAClB,CAAC;IACH,oBAAC;AAAD,CAAC,AAhBD,CAAmC,iBAAQ,GAgB1C;AAhBY,sCAAa;AAkB1B;IASE;QACE,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,IAAI,CAAC,KAAK,GAAG,E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I,EAAE,GAAG,CAAC,CAAC;KAC5B;IAED,IAAI,OAAO,CAAC,MAAM,KAAK,oBAAoB,EAAE;QAC3C,SAAS;QACT,IAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC;QAC7B,IAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;QACtC,IAAM,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,EAAE,UAAU,GAAG,CAAC,CAAC,CAAC;QAC7D,IAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;QACxB,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC;KACpD;IAED,OAAO,CAAC,CAAC;AACX,CAAC;AA1CD,wCA0CC;AAED,SAAgB,WAAW,CAAC,GAAU;IACpC,IAAI,OAAO,GAAG,KAAK,WAAW,IAAI,GAAG,KAAK,IAAI,EAAE;QAC9C,OAAO,KAAK,CAAC;KACd;IACD,OAAO,GAAG,CAAC,IAAI,KAAK,YAAY,CAAC;AACnC,CAAC;AALD,kCAKC"} \ No newline at end of file diff --git a/backend/node_modules/@darabonba/typescript/dist/date.d.ts b/backend/node_modules/@darabonba/typescript/dist/date.d.ts new file mode 100644 index 0000000..86cf3a8 --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/dist/date.d.ts @@ -0,0 +1,19 @@ +import moment from 'moment'; +export default class TeaDate { + date: moment.Moment; + constructor(date: moment.MomentInput); + format(layout: string): string; + unix(): number; + sub(amount: moment.unitOfTime.Base, unit: number): TeaDate; + add(amount: moment.unitOfTime.Base, unit: number): TeaDate; + diff(amount: moment.unitOfTime.Base, diffDate: TeaDate): number; + hour(): number; + minute(): number; + second(): number; + month(): number; + year(): number; + dayOfMonth(): number; + dayOfWeek(): number; + weekOfMonth(): number; + weekOfYear(): number; +} diff --git a/backend/node_modules/@darabonba/typescript/dist/date.js b/backend/node_modules/@darabonba/typescript/dist/date.js new file mode 100644 index 0000000..00e2091 --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/dist/date.js @@ -0,0 +1,86 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var moment_1 = __importDefault(require("moment")); +var TeaDate = /** @class */ (function () { + function TeaDate(date) { + this.date = (0, moment_1.default)(date); + } + TeaDate.prototype.format = function (layout) { + layout = layout.replace(/y/g, 'Y') + .replace(/d/g, 'D').replace(/h/g, 'H') + .replace(/a/g, 'A').replace(/E/g, 'd'); + return this.date.format(layout); + }; + TeaDate.prototype.unix = function () { + return this.date.unix(); + }; + TeaDate.prototype.sub = function (amount, unit) { + var date = (0, moment_1.default)(this.date).subtract(unit, amount); + return new TeaDate(date); + }; + TeaDate.prototype.add = function (amount, unit) { + var date = (0, moment_1.default)(this.date).add(unit, amount); + return new TeaDate(date); + }; + TeaDate.prototype.diff = function (amount, diffDate) { + return this.date.diff(diffDate.date, amount); + }; + TeaDate.prototype.hour = function () { + return this.date.hour(); + }; + TeaDate.prototype.minute = function () { + return this.date.minute(); + }; + TeaDate.prototype.second = function () { + return this.date.second(); + }; + TeaDate.prototype.month = function () { + return this.date.month() + 1; + }; + TeaDate.prototype.year = function () { + return this.date.year(); + }; + TeaDate.prototype.dayOfMonth = function () { + return this.date.date(); + }; + TeaDate.prototype.dayOfWeek = function () { + var weekday = this.date.weekday(); + if (weekday === 0) { + // sunday + return 7; + } + return weekday + 1; + }; + TeaDate.prototype.weekOfMonth = function () { + var startWeek = (0, moment_1.default)(this.date).startOf('month').week(); + var dateWeek = this.date.week(); + if (this.date.weekday() === 0) { + dateWeek = dateWeek - 1; + } + if (dateWeek === 0 && this.date.date() > 1) { + // the last day of this year is sunday + return this.sub('day', 1).weekOfMonth(); + } + var monthWeek = dateWeek - startWeek; + if (monthWeek < 0) { + // start of a new year + return 1; + } + return monthWeek + 1; + }; + TeaDate.prototype.weekOfYear = function () { + var weekday = this.date.weekday(); + var week = this.date.week(); + if (weekday === 0 && week === 1 && this.date.date() > 1) { + // the last day of this year is sunday + return this.sub('day', 1).weekOfYear(); + } + return this.date.week(); + }; + return TeaDate; +}()); +exports.default = TeaDate; +//# sourceMappingURL=date.js.map \ No newline at end of file diff --git a/backend/node_modules/@darabonba/typescript/dist/date.js.map b/backend/node_modules/@darabonba/typescript/dist/date.js.map new file mode 100644 index 0000000..ac78a97 --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/dist/date.js.map @@ -0,0 +1 @@ +{"version":3,"file":"date.js","sourceRoot":"","sources":["../src/date.ts"],"names":[],"mappings":";;;;;AAAA,kDAA4B;AAE5B;IAGE,iBAAY,IAAwB;QAClC,IAAI,CAAC,IAAI,GAAG,IAAA,gBAAM,EAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;IAED,wBAAM,GAAN,UAAO,MAAc;QACnB,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;aAC/B,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;aACrC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QACzC,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAClC,CAAC;IAED,sBAAI,GAAJ;QACE,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IAC1B,CAAC;IAED,qBAAG,GAAH,UAAI,MAA8B,EAAE,IAAY;QAC9C,IAAM,IAAI,GAAG,IAAA,gBAAM,EAAC,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACtD,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;IAED,q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C5D,IAAI,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;QAChC,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE;YAC7B,QAAQ,GAAG,QAAQ,GAAG,CAAC,CAAC;SACzB;QACD,IAAI,QAAQ,KAAK,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE;YAC1C,sCAAsC;YACtC,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;SACzC;QACD,IAAM,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;QACvC,IAAG,SAAS,GAAG,CAAC,EAAE;YAChB,sBAAsB;YACtB,OAAO,CAAC,CAAC;SACV;QACD,OAAO,SAAS,GAAG,CAAC,CAAC;IACvB,CAAC;IAED,4BAAU,GAAV;QACE,IAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;QACpC,IAAM,IAAI,GAAI,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;QAC/B,IAAG,OAAO,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,IAAK,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE;YACvD,sCAAsC;YACtC,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;SACxC;QACD,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IAC1B,CAAC;IACH,cAAC;AAAD,CAAC,AA5FD,IA4FC"} \ No newline at end of file diff --git a/backend/node_modules/@darabonba/typescript/dist/error.d.ts b/backend/node_modules/@darabonba/typescript/dist/error.d.ts new file mode 100644 index 0000000..89e7ccb --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/dist/error.d.ts @@ -0,0 +1,21 @@ +import { Request, Response } from './core'; +import { RetryPolicyContext } from './retry'; +export declare class BaseError extends Error { + name: string; + code: string; + constructor(map: { + [key: string]: any; + }); +} +export declare class ResponseError extends BaseError { + code: string; + statusCode?: number; + retryAfter?: number; + data?: any; + description?: string; + accessDeniedDetail?: any; + constructor(map: any); +} +export declare function retryError(request: Request, response: Response): Error; +export declare function newError(data: any): ResponseError; +export declare function newUnretryableError(ctx: RetryPolicyContext | Request): Error; diff --git a/backend/node_modules/@darabonba/typescript/dist/error.js b/backend/node_modules/@darabonba/typescript/dist/error.js new file mode 100644 index 0000000..eb04da4 --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/dist/error.js @@ -0,0 +1,92 @@ +"use strict"; +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.newUnretryableError = exports.newError = exports.retryError = exports.ResponseError = exports.BaseError = void 0; +var retry_1 = require("./retry"); +var BaseError = /** @class */ (function (_super) { + __extends(BaseError, _super); + function BaseError(map) { + var _this = _super.call(this, "".concat(map.code, ": ").concat(map.message)) || this; + _this.name = 'BaseError'; + _this.code = map.code; + return _this; + } + return BaseError; +}(Error)); +exports.BaseError = BaseError; +var ResponseError = /** @class */ (function (_super) { + __extends(ResponseError, _super); + function ResponseError(map) { + var _this = _super.call(this, map) || this; + _this.name = 'ResponseError'; + _this.data = map.data; + _this.description = map.description; + _this.retryAfter = map.retryAfter; + _this.accessDeniedDetail = map.accessDeniedDetail; + if (_this.data && _this.data.statusCode) { + _this.statusCode = Number(_this.data.statusCode); + } + return _this; + } + return ResponseError; +}(BaseError)); +exports.ResponseError = ResponseError; +var UnretryableError = /** @class */ (function (_super) { + __extends(UnretryableError, _super); + function UnretryableError(message) { + var _this = _super.call(this, message) || this; + _this.name = 'UnretryableError'; + return _this; + } + return UnretryableError; +}(Error)); +var RetryError = /** @class */ (function (_super) { + __extends(RetryError, _super); + function RetryError(message) { + var _this = _super.call(this, message) || this; + _this.name = 'RetryError'; + return _this; + } + return RetryError; +}(Error)); +function retryError(request, response) { + var e = new RetryError(''); + e.data = { + request: request, + response: response + }; + return e; +} +exports.retryError = retryError; +function newError(data) { + return new ResponseError(data); +} +exports.newError = newError; +function newUnretryableError(ctx) { + if (ctx instanceof retry_1.RetryPolicyContext && ctx.exception) { + return ctx.exception; + } + else { + var e = new UnretryableError(''); + e.data = { + lastRequest: ctx + }; + return e; + } +} +exports.newUnretryableError = newUnretryableError; +//# sourceMappingURL=error.js.map \ No newline at end of file diff --git a/backend/node_modules/@darabonba/typescript/dist/error.js.map b/backend/node_modules/@darabonba/typescript/dist/error.js.map new file mode 100644 index 0000000..69971f5 --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/dist/error.js.map @@ -0,0 +1 @@ +{"version":3,"file":"error.js","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAGA,iCAA6C;AAE7C;IAA+B,6BAAK;IAIlC,mBAAY,GAA2B;QAAvC,YACE,kBAAM,UAAG,GAAG,CAAC,IAAI,eAAK,GAAG,CAAC,OAAO,CAAE,CAAC,SAGrC;QAFC,KAAI,CAAC,IAAI,GAAG,WAAW,CAAC;QACxB,KAAI,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;;IACvB,CAAC;IACH,gBAAC;AAAD,CAAC,AATD,CAA+B,KAAK,GASnC;AATY,8BAAS;AAWtB;IAAmC,iCAAS;IAQ1C,uBAAY,GAAQ;QAApB,YACE,kBAAM,GAAG,CAAC,SASX;QARC,KAA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BAAmB,CAAC,GAAiC;IACnE,IAAG,GAAG,YAAY,0BAAkB,IAAI,GAAG,CAAC,SAAS,EAAE;QACrD,OAAO,GAAG,CAAC,SAAS,CAAC;KACtB;SAAM;QACL,IAAM,CAAC,GAAG,IAAI,gBAAgB,CAAC,EAAE,CAAC,CAAC;QACnC,CAAC,CAAC,IAAI,GAAG;YACP,WAAW,EAAE,GAAG;SACjB,CAAC;QACF,OAAO,CAAC,CAAC;KACV;AACH,CAAC;AAVD,kDAUC"} \ No newline at end of file diff --git a/backend/node_modules/@darabonba/typescript/dist/file.d.ts b/backend/node_modules/@darabonba/typescript/dist/file.d.ts new file mode 100644 index 0000000..cb92af6 --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/dist/file.d.ts @@ -0,0 +1,23 @@ +/// +/// +/// +import * as fs from 'fs'; +import { Readable, Writable } from 'stream'; +import TeaDate from './date'; +export default class TeaFile { + _path: string; + _stat: fs.Stats; + _fd: number; + _position: number; + constructor(path: string); + path(): string; + createTime(): Promise; + modifyTime(): Promise; + length(): Promise; + read(size: number): Promise; + write(data: Buffer): Promise; + close(): Promise; + static exists(path: string): Promise; + static createReadStream(path: string): Readable; + static createWriteStream(path: string): Writable; +} diff --git a/backend/node_modules/@darabonba/typescript/dist/file.js b/backend/node_modules/@darabonba/typescript/dist/file.js new file mode 100644 index 0000000..0544ec1 --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/dist/file.js @@ -0,0 +1,218 @@ +"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 (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (g && (g = 0, op[0] && (_ = 0)), _) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var fs = __importStar(require("fs")); +var util = __importStar(require("util")); +var date_1 = __importDefault(require("./date")); +var exists = util.promisify(fs.exists); +var stat = util.promisify(fs.stat); +var read = util.promisify(fs.read); +var write = util.promisify(fs.write); +var open = util.promisify(fs.open); +var close = util.promisify(fs.close); +var TeaFile = /** @class */ (function () { + function TeaFile(path) { + this._path = path; + this._position = 0; + } + TeaFile.prototype.path = function () { + return this._path; + }; + TeaFile.prototype.createTime = function () { + return __awaiter(this, void 0, void 0, function () { + var _a; + return __generator(this, function (_b) { + switch (_b.label) { + case 0: + if (!!this._stat) return [3 /*break*/, 2]; + _a = this; + return [4 /*yield*/, stat(this._path)]; + case 1: + _a._stat = _b.sent(); + _b.label = 2; + case 2: return [2 /*return*/, new date_1.default(this._stat.birthtime)]; + } + }); + }); + }; + TeaFile.prototype.modifyTime = function () { + return __awaiter(this, void 0, void 0, function () { + var _a; + return __generator(this, function (_b) { + switch (_b.label) { + case 0: + if (!!this._stat) return [3 /*break*/, 2]; + _a = this; + return [4 /*yield*/, stat(this._path)]; + case 1: + _a._stat = _b.sent(); + _b.label = 2; + case 2: return [2 /*return*/, new date_1.default(this._stat.mtime)]; + } + }); + }); + }; + TeaFile.prototype.length = function () { + return __awaiter(this, void 0, void 0, function () { + var _a; + return __generator(this, function (_b) { + switch (_b.label) { + case 0: + if (!!this._stat) return [3 /*break*/, 2]; + _a = this; + return [4 /*yield*/, stat(this._path)]; + case 1: + _a._stat = _b.sent(); + _b.label = 2; + case 2: return [2 /*return*/, this._stat.size]; + } + }); + }); + }; + TeaFile.prototype.read = function (size) { + return __awaiter(this, void 0, void 0, function () { + var _a, buf, _b, bytesRead, buffer; + return __generator(this, function (_c) { + switch (_c.label) { + case 0: + if (!!this._fd) return [3 /*break*/, 2]; + _a = this; + return [4 /*yield*/, open(this._path, 'a+')]; + case 1: + _a._fd = _c.sent(); + _c.label = 2; + case 2: + buf = Buffer.alloc(size); + return [4 /*yield*/, read(this._fd, buf, 0, size, this._position)]; + case 3: + _b = _c.sent(), bytesRead = _b.bytesRead, buffer = _b.buffer; + if (!bytesRead) { + return [2 /*return*/, null]; + } + this._position += bytesRead; + return [2 /*return*/, buffer]; + } + }); + }); + }; + TeaFile.prototype.write = function (data) { + return __awaiter(this, void 0, void 0, function () { + var _a, _b; + return __generator(this, function (_c) { + switch (_c.label) { + case 0: + if (!!this._fd) return [3 /*break*/, 2]; + _a = this; + return [4 /*yield*/, open(this._path, 'a+')]; + case 1: + _a._fd = _c.sent(); + _c.label = 2; + case 2: return [4 /*yield*/, write(this._fd, data)]; + case 3: + _c.sent(); + _b = this; + return [4 /*yield*/, stat(this._path)]; + case 4: + _b._stat = _c.sent(); + return [2 /*return*/]; + } + }); + }); + }; + TeaFile.prototype.close = function () { + return __awaiter(this, void 0, void 0, function () { + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + if (!this._fd) { + return [2 /*return*/]; + } + return [4 /*yield*/, close(this._fd)]; + case 1: + _a.sent(); + return [2 /*return*/]; + } + }); + }); + }; + TeaFile.exists = function (path) { + return __awaiter(this, void 0, void 0, function () { + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, exists(path)]; + case 1: return [2 /*return*/, _a.sent()]; + } + }); + }); + }; + TeaFile.createReadStream = function (path) { + return fs.createReadStream(path); + }; + TeaFile.createWriteStream = function (path) { + return fs.createWriteStream(path); + }; + return TeaFile; +}()); +exports.default = TeaFile; +//# sourceMappingURL=file.js.map \ No newline at end of file diff --git a/backend/node_modules/@darabonba/typescript/dist/file.js.map b/backend/node_modules/@darabonba/typescript/dist/file.js.map new file mode 100644 index 0000000..3a14e4b --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/dist/file.js.map @@ -0,0 +1 @@ +{"version":3,"file":"file.js","sourceRoot":"","sources":["../src/file.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAyB;AACzB,yCAA6B;AAE7B,gDAA6B;AAE7B,IAAM,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;AACzC,IAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;AACrC,IAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;AACrC,IAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;AACvC,IAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;AACrC,IAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;AACvC;IAME,iBAAY,IAAY;QACtB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;IACrB,CAAC;IAED,sBAAI,GAAJ;QACE,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAEK,4BAAU,GAAhB;;;;;;6BACK,CAAC,IAAI,CAAC,KAAK,EAAX,wBAAW;wBACZ,KAAA,IAAI,CAAA;wBAAS,qBAAM,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAA;;wBAAnC,GAAK,KAAK,GAAG,SAAsB,CAAC;;4BAEtC,sBAAO,IAAI,cAAO,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CA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S;wBACV,KAAA,IAAI,CAAA;wBAAO,qBAAM,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,EAAA;;wBAAvC,GAAK,GAAG,GAAG,SAA4B,CAAC;;4BAG1C,qBAAM,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,EAAA;;wBAA3B,SAA2B,CAAC;wBAE5B,KAAA,IAAI,CAAA;wBAAS,qBAAM,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAA;;wBAAnC,GAAK,KAAK,GAAG,SAAsB,CAAC;wBACpC,sBAAO;;;;KACR;IAEK,uBAAK,GAAX;;;;;wBACE,IAAG,CAAC,IAAI,CAAC,GAAG,EAAE;4BACZ,sBAAO;yBACR;wBACD,qBAAM,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAA;;wBAArB,SAAqB,CAAC;wBACtB,sBAAO;;;;KACR;IAEY,cAAM,GAAnB,UAAoB,IAAY;;;;4BACvB,qBAAM,MAAM,CAAC,IAAI,CAAC,EAAA;4BAAzB,sBAAO,SAAkB,EAAC;;;;KAC3B;IAEM,wBAAgB,GAAvB,UAAwB,IAAY;QAClC,OAAO,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;IAEM,yBAAiB,GAAxB,UAAyB,IAAY;QACnC,OAAO,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IACpC,CAAC;IACH,cAAC;AAAD,CAAC,AA/ED,IA+EC"} \ No newline at end of file diff --git a/backend/node_modules/@darabonba/typescript/dist/form.d.ts b/backend/node_modules/@darabonba/typescript/dist/form.d.ts new file mode 100644 index 0000000..ba6d0a2 --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/dist/form.d.ts @@ -0,0 +1,24 @@ +/// +import { Readable } from 'stream'; +export declare class FileFormStream extends Readable { + form: { + [key: string]: any; + }; + boundary: string; + keys: string[]; + index: number; + streaming: boolean; + constructor(form: { + [key: string]: any; + }, boundary: string); + _read(): void; +} +export default class Form { + static getBoundary(): string; + static toFileForm(form: { + [key: string]: any; + }, boundary: string): Readable; + static toFormString(data: { + [key: string]: any; + }): string; +} diff --git a/backend/node_modules/@darabonba/typescript/dist/form.js b/backend/node_modules/@darabonba/typescript/dist/form.js new file mode 100644 index 0000000..947891f --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/dist/form.js @@ -0,0 +1,88 @@ +"use strict"; +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FileFormStream = void 0; +var stream_1 = require("stream"); +var querystring_1 = require("querystring"); +var FileFormStream = /** @class */ (function (_super) { + __extends(FileFormStream, _super); + function FileFormStream(form, boundary) { + var _this = _super.call(this) || this; + _this.form = form; + _this.keys = Object.keys(form); + _this.index = 0; + _this.boundary = boundary; + _this.streaming = false; + return _this; + } + FileFormStream.prototype._read = function () { + var _this = this; + if (this.streaming) { + return; + } + var separator = this.boundary; + if (this.index < this.keys.length) { + var name_1 = this.keys[this.index]; + var fieldValue = this.form[name_1]; + if (typeof fieldValue.filename === 'string' && + typeof fieldValue.contentType === 'string' && + fieldValue.content instanceof stream_1.Readable) { + var body = "--".concat(separator, "\r\n") + + "Content-Disposition: form-data; name=\"".concat(name_1, "\"; filename=\"").concat(fieldValue.filename, "\"\r\n") + + "Content-Type: ".concat(fieldValue.contentType, "\r\n\r\n"); + this.push(Buffer.from(body)); + this.streaming = true; + fieldValue.content.on('data', function (chunk) { + _this.push(chunk); + }); + fieldValue.content.on('end', function () { + _this.index++; + _this.streaming = false; + _this.push(''); + }); + } + else { + this.push(Buffer.from("--".concat(separator, "\r\n") + + "Content-Disposition: form-data; name=\"".concat(name_1, "\"\r\n\r\n") + + "".concat(fieldValue, "\r\n"))); + this.index++; + } + } + else { + this.push(Buffer.from("\r\n--".concat(separator, "--\r\n"))); + this.push(null); + } + }; + return FileFormStream; +}(stream_1.Readable)); +exports.FileFormStream = FileFormStream; +var Form = /** @class */ (function () { + function Form() { + } + Form.getBoundary = function () { + return 'boundary' + Math.random().toString(16).slice(-12); + }; + Form.toFileForm = function (form, boundary) { + return new FileFormStream(form, boundary); + }; + Form.toFormString = function (data) { + return (0, querystring_1.stringify)(data); + }; + return Form; +}()); +exports.default = Form; +//# sourceMappingURL=form.js.map \ No newline at end of file diff --git a/backend/node_modules/@darabonba/typescript/dist/form.js.map b/backend/node_modules/@darabonba/typescript/dist/form.js.map new file mode 100644 index 0000000..f48f3cc --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/dist/form.js.map @@ -0,0 +1 @@ +{"version":3,"file":"form.js","sourceRoot":"","sources":["../src/form.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,iCAAkC;AAClC,2CAAwC;AAExC;IAAoC,kCAAQ;IAO1C,wBAAY,IAA4B,EAAE,QAAgB;QAA1D,YACE,iBAAO,SAMR;QALC,KAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,KAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC9B,KAAI,CAAC,KAAK,GAAG,CAAC,CAAC;QACf,KAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,KAAI,CAAC,SAAS,GAAG,KAAK,CAAC;;IACzB,CAAC;IAED,8BAAK,GAAL;QAAA,iBAoCC;QAnCC,IAAI,IAAI,CAAC,SAAS,EAAE;YAClB,OAAO;SACR;QAED,IAAM,SAAS,GAAG,IAAI,CAA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AAM,CAAC,IAAI,CAAC,gBAAS,SAAS,WAAQ,CAAC,CAAC,CAAC;YACnD,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACjB;IACH,CAAC;IACH,qBAAC;AAAD,CAAC,AArDD,CAAoC,iBAAQ,GAqD3C;AArDY,wCAAc;AAuD3B;IAAA;IAcA,CAAC;IAZQ,gBAAW,GAAlB;QACE,OAAO,UAAU,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;IAC5D,CAAC;IAEM,eAAU,GAAjB,UAAkB,IAA4B,EAAE,QAAgB;QAC9D,OAAO,IAAI,cAAc,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAC5C,CAAC;IAEM,iBAAY,GAAnB,UAAoB,IAA4B;QAC9C,OAAO,IAAA,uBAAS,EAAC,IAAI,CAAC,CAAC;IACzB,CAAC;IAEH,WAAC;AAAD,CAAC,AAdD,IAcC"} \ No newline at end of file diff --git a/backend/node_modules/@darabonba/typescript/dist/func.d.ts b/backend/node_modules/@darabonba/typescript/dist/func.d.ts new file mode 100644 index 0000000..2377055 --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/dist/func.d.ts @@ -0,0 +1,9 @@ +export declare function isNull(data: any): boolean; +export declare function merge(source: { + [key: string]: any; +}, data: { + [key: string]: any; +}): { + [key: string]: any; +}; +export declare function sleep(ms: number): Promise; diff --git a/backend/node_modules/@darabonba/typescript/dist/func.js b/backend/node_modules/@darabonba/typescript/dist/func.js new file mode 100644 index 0000000..558d8a6 --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/dist/func.js @@ -0,0 +1,51 @@ +"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 (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.sleep = exports.merge = exports.isNull = void 0; +var _ = __importStar(require("lodash")); +function isNull(data) { + if (typeof data === 'undefined') { + return true; + } + if (data === null) { + return true; + } + return false; +} +exports.isNull = isNull; +function merge(source, data) { + if (!source && !data) { + return null; + } + return _.merge({}, source, data); +} +exports.merge = merge; +function sleep(ms) { + return new Promise(function (resolve) { + setTimeout(resolve, ms); + }); +} +exports.sleep = sleep; +//# sourceMappingURL=func.js.map \ No newline at end of file diff --git a/backend/node_modules/@darabonba/typescript/dist/func.js.map b/backend/node_modules/@darabonba/typescript/dist/func.js.map new file mode 100644 index 0000000..4042763 --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/dist/func.js.map @@ -0,0 +1 @@ +{"version":3,"file":"func.js","sourceRoot":"","sources":["../src/func.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,wCAA4B;AAE5B,SAAgB,MAAM,CAAC,IAAS;IAC9B,IAAI,OAAO,IAAI,KAAK,WAAW,EAAE;QAC/B,OAAO,IAAI,CAAC;KACb;IAED,IAAI,IAAI,KAAK,IAAI,EAAE;QACjB,OAAO,IAAI,CAAC;KACb;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAVD,wBAUC;AAED,SAAgB,KAAK,CAAC,MAA4B,EAAE,IAA0B;IAC5E,IAAG,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE;QACnB,OAAO,IAAI,CAAC;KACb;IACD,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;AACnC,CAAC;AALD,sBAKC;AAED,SAAgB,KAAK,CAAC,EAAU;IAC9B,OAAO,IAAI,OAAO,CAAC,UAAC,OAAO;QACzB,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,sBAIC"} \ No newline at end of file diff --git a/backend/node_modules/@darabonba/typescript/dist/index.d.ts b/backend/node_modules/@darabonba/typescript/dist/index.d.ts new file mode 100644 index 0000000..5189cf0 --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/dist/index.d.ts @@ -0,0 +1,10 @@ +export * from './core'; +export { default as Date } from './date'; +export * from './error'; +export { default as File } from './file'; +export { default as Form, FileFormStream } from './form'; +export * from './func'; +export * from './retry'; +export { default as Stream, SSEEvent } from './stream'; +export { default as URL } from './url'; +export { default as XML } from './xml'; diff --git a/backend/node_modules/@darabonba/typescript/dist/index.js b/backend/node_modules/@darabonba/typescript/dist/index.js new file mode 100644 index 0000000..06a7f81 --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/dist/index.js @@ -0,0 +1,39 @@ +"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 __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.XML = exports.URL = exports.SSEEvent = exports.Stream = exports.FileFormStream = exports.Form = exports.File = exports.Date = void 0; +__exportStar(require("./core"), exports); +var date_1 = require("./date"); +Object.defineProperty(exports, "Date", { enumerable: true, get: function () { return __importDefault(date_1).default; } }); +__exportStar(require("./error"), exports); +var file_1 = require("./file"); +Object.defineProperty(exports, "File", { enumerable: true, get: function () { return __importDefault(file_1).default; } }); +var form_1 = require("./form"); +Object.defineProperty(exports, "Form", { enumerable: true, get: function () { return __importDefault(form_1).default; } }); +Object.defineProperty(exports, "FileFormStream", { enumerable: true, get: function () { return form_1.FileFormStream; } }); +__exportStar(require("./func"), exports); +__exportStar(require("./retry"), exports); +var stream_1 = require("./stream"); +Object.defineProperty(exports, "Stream", { enumerable: true, get: function () { return __importDefault(stream_1).default; } }); +Object.defineProperty(exports, "SSEEvent", { enumerable: true, get: function () { return stream_1.SSEEvent; } }); +var url_1 = require("./url"); +Object.defineProperty(exports, "URL", { enumerable: true, get: function () { return __importDefault(url_1).default; } }); +var xml_1 = require("./xml"); +Object.defineProperty(exports, "XML", { enumerable: true, get: function () { return __importDefault(xml_1).default; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/backend/node_modules/@darabonba/typescript/dist/index.js.map b/backend/node_modules/@darabonba/typescript/dist/index.js.map new file mode 100644 index 0000000..ce049f7 --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/dist/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,+BAA0C;AAAhC,6GAAA,OAAO,OAAQ;AACzB,0CAAwB;AACxB,+BAAyC;AAAhC,6GAAA,OAAO,OAAQ;AACxB,+BAAyD;AAAhD,6GAAA,OAAO,OAAQ;AAAE,sGAAA,cAAc,OAAA;AACxC,yCAAuB;AACvB,0CAAwB;AACxB,mCAAuD;AAA9C,iHAAA,OAAO,OAAU;AAAE,kGAAA,QAAQ,OAAA;AACpC,6BAAuC;AAA9B,2GAAA,OAAO,OAAO;AACvB,6BAAuC;AAA9B,2GAAA,OAAO,OAAO"} \ No newline at end of file diff --git a/backend/node_modules/@darabonba/typescript/dist/retry.d.ts b/backend/node_modules/@darabonba/typescript/dist/retry.d.ts new file mode 100644 index 0000000..5d301ca --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/dist/retry.d.ts @@ -0,0 +1,42 @@ +import * as $core from './core'; +import * as $error from './error'; +export declare class BackoffPolicy { + policy: string; + constructor(option: { + [key: string]: any; + }); + getDelayTime(ctx: RetryPolicyContext): number; + static newBackoffPolicy(option: { + [key: string]: any; + }): BackoffPolicy; +} +export declare class RetryCondition { + maxAttempts: number; + backoff: BackoffPolicy; + exception: string[]; + errorCode: string[]; + maxDelay: number; + constructor(condition: { + [key: string]: any; + }); +} +export declare class RetryOptions { + retryable: boolean; + retryCondition: RetryCondition[]; + noRetryCondition: RetryCondition[]; + constructor(options: { + [key: string]: any; + }); +} +export declare class RetryPolicyContext { + key: string; + retriesAttempted: number; + httpRequest: $core.Request; + httpResponse: $core.Response; + exception: $error.ResponseError | $error.BaseError; + constructor(options: { + [key: string]: any; + }); +} +export declare function shouldRetry(options: RetryOptions, ctx: RetryPolicyContext): boolean; +export declare function getBackoffDelay(options: RetryOptions, ctx: RetryPolicyContext): number; diff --git a/backend/node_modules/@darabonba/typescript/dist/retry.js b/backend/node_modules/@darabonba/typescript/dist/retry.js new file mode 100644 index 0000000..d415785 --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/dist/retry.js @@ -0,0 +1,210 @@ +"use strict"; +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getBackoffDelay = exports.shouldRetry = exports.RetryPolicyContext = exports.RetryOptions = exports.RetryCondition = exports.BackoffPolicy = void 0; +var MAX_DELAY_TIME = 120 * 1000; +var MIN_DELAY_TIME = 100; +var BackoffPolicy = /** @class */ (function () { + function BackoffPolicy(option) { + this.policy = option.policy; + } + BackoffPolicy.prototype.getDelayTime = function (ctx) { + throw Error('un-implement'); + }; + BackoffPolicy.newBackoffPolicy = function (option) { + switch (option.policy) { + case 'Fixed': + return new FixedBackoffPolicy(option); + case 'Random': + return new RandomBackoffPolicy(option); + case 'Exponential': + return new ExponentialBackoffPolicy(option); + case 'EqualJitter': + case 'ExponentialWithEqualJitter': + return new EqualJitterBackoffPolicy(option); + case 'FullJitter': + case 'ExponentialWithFullJitter': + return new FullJitterBackoffPolicy(option); + } + }; + return BackoffPolicy; +}()); +exports.BackoffPolicy = BackoffPolicy; +var FixedBackoffPolicy = /** @class */ (function (_super) { + __extends(FixedBackoffPolicy, _super); + function FixedBackoffPolicy(option) { + var _this = _super.call(this, option) || this; + _this.period = option.period; + return _this; + } + FixedBackoffPolicy.prototype.getDelayTime = function (ctx) { + return this.period; + }; + return FixedBackoffPolicy; +}(BackoffPolicy)); +var RandomBackoffPolicy = /** @class */ (function (_super) { + __extends(RandomBackoffPolicy, _super); + function RandomBackoffPolicy(option) { + var _this = _super.call(this, option) || this; + _this.period = option.period; + _this.cap = option.cap || 20 * 1000; + return _this; + } + RandomBackoffPolicy.prototype.getDelayTime = function (ctx) { + var randomTime = Math.floor(Math.random() * (ctx.retriesAttempted * this.period)); + if (randomTime > this.cap) { + return this.cap; + } + return randomTime; + }; + return RandomBackoffPolicy; +}(BackoffPolicy)); +var ExponentialBackoffPolicy = /** @class */ (function (_super) { + __extends(ExponentialBackoffPolicy, _super); + function ExponentialBackoffPolicy(option) { + var _this = _super.call(this, option) || this; + _this.period = option.period; + //default value: 3 days + _this.cap = option.cap || 3 * 24 * 60 * 60 * 1000; + return _this; + } + ExponentialBackoffPolicy.prototype.getDelayTime = function (ctx) { + var randomTime = Math.pow(2, ctx.retriesAttempted * this.period); + if (randomTime > this.cap) { + return this.cap; + } + return randomTime; + }; + return ExponentialBackoffPolicy; +}(BackoffPolicy)); +var EqualJitterBackoffPolicy = /** @class */ (function (_super) { + __extends(EqualJitterBackoffPolicy, _super); + function EqualJitterBackoffPolicy(option) { + var _this = _super.call(this, option) || this; + _this.period = option.period; + //default value: 3 days + _this.cap = option.cap || 3 * 24 * 60 * 60 * 1000; + return _this; + } + EqualJitterBackoffPolicy.prototype.getDelayTime = function (ctx) { + var ceil = Math.min(this.cap, Math.pow(2, ctx.retriesAttempted * this.period)); + return ceil / 2 + Math.floor(Math.random() * (ceil / 2 + 1)); + }; + return EqualJitterBackoffPolicy; +}(BackoffPolicy)); +var FullJitterBackoffPolicy = /** @class */ (function (_super) { + __extends(FullJitterBackoffPolicy, _super); + function FullJitterBackoffPolicy(option) { + var _this = _super.call(this, option) || this; + _this.period = option.period; + //default value: 3 days + _this.cap = option.cap || 3 * 24 * 60 * 60 * 1000; + return _this; + } + FullJitterBackoffPolicy.prototype.getDelayTime = function (ctx) { + var ceil = Math.min(this.cap, Math.pow(2, ctx.retriesAttempted * this.period)); + return Math.floor(Math.random() * ceil); + }; + return FullJitterBackoffPolicy; +}(BackoffPolicy)); +var RetryCondition = /** @class */ (function () { + function RetryCondition(condition) { + this.maxAttempts = condition.maxAttempts; + this.backoff = condition.backoff && BackoffPolicy.newBackoffPolicy(condition.backoff); + this.exception = condition.exception; + this.errorCode = condition.errorCode; + this.maxDelay = condition.maxDelay; + } + return RetryCondition; +}()); +exports.RetryCondition = RetryCondition; +var RetryOptions = /** @class */ (function () { + function RetryOptions(options) { + this.retryable = options.retryable; + this.retryCondition = (options.retryCondition || []).map(function (condition) { + return new RetryCondition(condition); + }); + this.noRetryCondition = (options.noRetryCondition || []).map(function (condition) { + return new RetryCondition(condition); + }); + } + return RetryOptions; +}()); +exports.RetryOptions = RetryOptions; +var RetryPolicyContext = /** @class */ (function () { + function RetryPolicyContext(options) { + this.key = options.key; + this.retriesAttempted = options.retriesAttempted || 0; + this.httpRequest = options.httpRequest || null; + this.httpResponse = options.httpResponse || null; + this.exception = options.exception || null; + } + return RetryPolicyContext; +}()); +exports.RetryPolicyContext = RetryPolicyContext; +function shouldRetry(options, ctx) { + if (ctx.retriesAttempted === 0) { + return true; + } + if (!options || !options.retryable) { + return false; + } + var retriesAttempted = ctx.retriesAttempted; + var ex = ctx.exception; + var conditions = options.noRetryCondition; + for (var i = 0; i < conditions.length; i++) { + var condition = conditions[i]; + if (condition.exception.includes(ex.name) || condition.errorCode.includes(ex.code)) { + return false; + } + } + conditions = options.retryCondition; + for (var i = 0; i < conditions.length; i++) { + var condition = conditions[i]; + if (!condition.exception.includes(ex.name) && !condition.errorCode.includes(ex.code)) { + continue; + } + if (retriesAttempted >= condition.maxAttempts) { + return false; + } + return true; + } + return false; +} +exports.shouldRetry = shouldRetry; +function getBackoffDelay(options, ctx) { + var ex = ctx.exception; + var conditions = options.retryCondition; + for (var i = 0; i < conditions.length; i++) { + var condition = conditions[i]; + if (!condition.exception.includes(ex.name) && !condition.errorCode.includes(ex.code)) { + continue; + } + var maxDelay = condition.maxDelay || MAX_DELAY_TIME; + var retryAfter = ctx.exception.retryAfter; + if (retryAfter !== undefined) { + return Math.min(retryAfter, maxDelay); + } + if (!condition.backoff) { + return MIN_DELAY_TIME; + } + return Math.min(condition.backoff.getDelayTime(ctx), maxDelay); + } + return MIN_DELAY_TIME; +} +exports.getBackoffDelay = getBackoffDelay; +//# sourceMappingURL=retry.js.map \ No newline at end of file diff --git a/backend/node_modules/@darabonba/typescript/dist/retry.js.map b/backend/node_modules/@darabonba/typescript/dist/retry.js.map new file mode 100644 index 0000000..a00eb26 --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/dist/retry.js.map @@ -0,0 +1 @@ +{"version":3,"file":"retry.js","sourceRoot":"","sources":["../src/retry.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAEA,IAAM,cAAc,GAAG,GAAG,GAAG,IAAI,CAAC;AAClC,IAAM,cAAc,GAAG,GAAG,CAAC;AAC3B;IAEE,uBAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IAC9B,CAAC;IAED,oCAAY,GAAZ,UAAa,GAAuB;QAClC,MAAM,KAAK,CAAC,cAAc,CAAC,CAAC;IAC9B,CAAC;IAEM,8BAAgB,GAAvB,UAAwB,MAA4B;QAClD,QAAO,MAAM,CAAC,MAAM,EAAE;YACtB,KAAK,OAAO;gBACV,OAAO,IAAI,kBAAkB,CAAC,MAAM,CAAC,CAAC;YACxC,KAAK,QAAQ;gBACX,OAAO,IAAI,mBAAmB,CAAC,MAAM,CAAC,CAAC;YACzC,KAAK,aAAa;gBAChB,OAAO,IAAI,wBAAwB,CAAC,MAAM,CAAC,CAAC;YAC9C,KAAK,aAAa,CAAC;YACnB,KAAK,4BAA4B;gBAC/B,OAAO,IAAI,wBAAwB,CAAC,MAAM,CAAC,CAAC;YAC9C,KAAK,YAAY,CAAC;YAClB,KAAK,2BAA2B;gBAC9B,OAAO,IAAI,uBAAuB,CAAC,MAAM,CAAC,CAAC;SAC5C;IACH,CAAC;IACH,oBAAC;AAAD,CAAC,AA1BD,IA0BC;AA1BY,sCAAa;AA6B1B;IAAiC,sCAAa;IAE5C,4BAAY,MAA4B;QAAxC,YACE,kBAAM,MAAM,CAAC,SAEd;QADC,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;;IAC9B,CAAC;IAED,yCAAY,GAAZ,UAAa,GAAuB;QAClC,OAAO,IAAI,CAAC,MAAM,CAAC;IACr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C,EAAE;YACnF,SAAS;SACV;QACD,IAAG,gBAAgB,IAAI,SAAS,CAAC,WAAW,EAAE;YAC5C,OAAO,KAAK,CAAC;SACd;QACD,OAAO,IAAI,CAAC;KACb;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AA5BD,kCA4BC;AAED,SAAgB,eAAe,CAAC,OAAqB,EAAE,GAAuB;IAC5E,IAAM,EAAE,GAAG,GAAG,CAAC,SAAS,CAAC;IACzB,IAAM,UAAU,GAAG,OAAO,CAAC,cAAc,CAAC;IAC1C,KAAI,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACzC,IAAM,SAAS,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;QAChC,IAAG,CAAC,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE;YACnF,SAAS;SACV;QACD,IAAM,QAAQ,GAAG,SAAS,CAAC,QAAQ,IAAI,cAAc,CAAC;QACtD,IAAM,UAAU,GAAI,GAAG,CAAC,SAAkC,CAAC,UAAU,CAAC;QACtE,IAAG,UAAU,KAAK,SAAS,EAAE;YAC3B,OAAO,IAAI,CAAC,GAAG,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;SACvC;QAED,IAAG,CAAC,SAAS,CAAC,OAAO,EAAE;YACrB,OAAO,cAAc,CAAC;SACvB;QACD,OAAO,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,CAAC;KAChE;IACD,OAAO,cAAc,CAAC;AACxB,CAAC;AApBD,0CAoBC"} \ No newline at end of file diff --git a/backend/node_modules/@darabonba/typescript/dist/stream.d.ts b/backend/node_modules/@darabonba/typescript/dist/stream.d.ts new file mode 100644 index 0000000..41ae57a --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/dist/stream.d.ts @@ -0,0 +1,18 @@ +/// +/// +import { Readable } from 'stream'; +export declare class SSEEvent { + data?: string; + id?: string; + event?: string; + retry?: number; + constructor(data?: { + [key: string]: any; + }); +} +export default class TeaStream { + static readAsBytes(stream: Readable): Promise; + static readAsString(stream: Readable): Promise; + static readAsJSON(stream: Readable): Promise; + static readAsSSE(stream: Readable): AsyncGenerator; +} diff --git a/backend/node_modules/@darabonba/typescript/dist/stream.js b/backend/node_modules/@darabonba/typescript/dist/stream.js new file mode 100644 index 0000000..9756e4d --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/dist/stream.js @@ -0,0 +1,257 @@ +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (g && (g = 0, op[0] && (_ = 0)), _) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SSEEvent = void 0; +var DATA_PREFIX = 'data:'; +var EVENT_PREFIX = 'event:'; +var ID_PREFIX = 'id:'; +var RETRY_PREFIX = 'retry:'; +function isDigitsOnly(str) { + for (var i = 0; i < str.length; i++) { + var c = str.charAt(i); + if (c < '0' || c > '9') { + return false; + } + } + return str.length > 0; +} +var SSEEvent = /** @class */ (function () { + function SSEEvent(data) { + if (data === void 0) { data = {}; } + this.data = data.data; + this.id = data.id; + this.event = data.event; + this.retry = data.retry; + } + return SSEEvent; +}()); +exports.SSEEvent = SSEEvent; +function read(readable) { + return new Promise(function (resolve, reject) { + var onData, onError, onEnd; + var cleanup = function () { + // cleanup + readable.removeListener('error', onError); + readable.removeListener('data', onData); + readable.removeListener('end', onEnd); + }; + var bufs = []; + var size = 0; + onData = function (buf) { + bufs.push(buf); + size += buf.length; + }; + onError = function (err) { + cleanup(); + reject(err); + }; + onEnd = function () { + cleanup(); + resolve(Buffer.concat(bufs, size)); + }; + readable.on('error', onError); + readable.on('data', onData); + readable.on('end', onEnd); + }); +} +function readyToRead(readable) { + return new Promise(function (resolve, reject) { + var onReadable, onEnd, onError; + var cleanup = function () { + // cleanup + readable.removeListener('error', onError); + readable.removeListener('end', onEnd); + readable.removeListener('readable', onReadable); + }; + onReadable = function () { + cleanup(); + resolve(false); + }; + onEnd = function () { + cleanup(); + resolve(true); + }; + onError = function (err) { + cleanup(); + reject(err); + }; + readable.once('readable', onReadable); + readable.once('end', onEnd); + readable.once('error', onError); + }); +} +function tryGetEvents(head, chunk) { + var all = head + chunk; + var start = 0; + var events = []; + var _loop_1 = function (i) { + var c = all[i]; + var c2 = all[i + 1]; + if (c === '\n' && c2 === '\n') { + var part = all.substring(start, i); + var lines = part.split('\n'); + var event_1 = new SSEEvent(); + lines.forEach(function (line) { + if (line.startsWith(DATA_PREFIX)) { + event_1.data = line.substring(DATA_PREFIX.length).trim(); + } + else if (line.startsWith(EVENT_PREFIX)) { + event_1.event = line.substring(EVENT_PREFIX.length).trim(); + } + else if (line.startsWith(ID_PREFIX)) { + event_1.id = line.substring(ID_PREFIX.length).trim(); + } + else if (line.startsWith(RETRY_PREFIX)) { + var retry = line.substring(RETRY_PREFIX.length).trim(); + if (isDigitsOnly(retry)) { + event_1.retry = parseInt(retry, 10); + } + } + else if (line.startsWith(':')) { + // ignore the line + } + }); + events.push(event_1); + start = i + 2; + } + }; + for (var i = 0; i < all.length - 1; i++) { + _loop_1(i); + } + var remain = all.substring(start); + return { events: events, remain: remain }; +} +var TeaStream = /** @class */ (function () { + function TeaStream() { + } + TeaStream.readAsBytes = function (stream) { + return __awaiter(this, void 0, void 0, function () { + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, read(stream)]; + case 1: return [2 /*return*/, _a.sent()]; + } + }); + }); + }; + TeaStream.readAsString = function (stream) { + return __awaiter(this, void 0, void 0, function () { + var buff; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, TeaStream.readAsBytes(stream)]; + case 1: + buff = _a.sent(); + return [2 /*return*/, buff.toString()]; + } + }); + }); + }; + TeaStream.readAsJSON = function (stream) { + return __awaiter(this, void 0, void 0, function () { + var str; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, TeaStream.readAsString(stream)]; + case 1: + str = _a.sent(); + return [2 /*return*/, JSON.parse(str)]; + } + }); + }); + }; + TeaStream.readAsSSE = function (stream) { + return __asyncGenerator(this, arguments, function readAsSSE_1() { + var rest, ended, chunk, _a, events, remain, _i, events_1, event_2; + return __generator(this, function (_b) { + switch (_b.label) { + case 0: + rest = ''; + _b.label = 1; + case 1: + if (!true) return [3 /*break*/, 12]; + return [4 /*yield*/, __await(readyToRead(stream))]; + case 2: + ended = _b.sent(); + if (!ended) return [3 /*break*/, 4]; + return [4 /*yield*/, __await(void 0)]; + case 3: return [2 /*return*/, _b.sent()]; + case 4: + chunk = void 0; + _b.label = 5; + case 5: + if (!(null !== (chunk = stream.read()))) return [3 /*break*/, 11]; + _a = tryGetEvents(rest, chunk.toString()), events = _a.events, remain = _a.remain; + rest = remain; + if (!(events && events.length > 0)) return [3 /*break*/, 10]; + _i = 0, events_1 = events; + _b.label = 6; + case 6: + if (!(_i < events_1.length)) return [3 /*break*/, 10]; + event_2 = events_1[_i]; + return [4 /*yield*/, __await(event_2)]; + case 7: return [4 /*yield*/, _b.sent()]; + case 8: + _b.sent(); + _b.label = 9; + case 9: + _i++; + return [3 /*break*/, 6]; + case 10: return [3 /*break*/, 5]; + case 11: return [3 /*break*/, 1]; + case 12: return [2 /*return*/]; + } + }); + }); + }; + return TeaStream; +}()); +exports.default = TeaStream; +//# sourceMappingURL=stream.js.map \ No newline at end of file diff --git a/backend/node_modules/@darabonba/typescript/dist/stream.js.map b/backend/node_modules/@darabonba/typescript/dist/stream.js.map new file mode 100644 index 0000000..adf2b8a --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/dist/stream.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stream.js","sourceRoot":"","sources":["../src/stream.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAM,WAAW,GAAG,OAAO,CAAC;AAC5B,IAAM,YAAY,GAAG,QAAQ,CAAC;AAC9B,IAAM,SAAS,GAAG,KAAK,CAAC;AACxB,IAAM,YAAY,GAAG,QAAQ,CAAC;AAE9B,SAAS,YAAY,CAAC,GAAW;IAC/B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACnC,IAAM,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QACxB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,GAAG,EAAE;YACtB,OAAO,KAAK,CAAC;SACd;KACF;IACD,OAAO,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC;AACxB,CAAC;AAED;IAME,kBAAY,IAAiC;QAAjC,qBAAA,EAAA,SAAiC;QAC3C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;QAClB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACxB,IAAI,CAAC,KAAK,GAAG,IAAI,C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AM;;;6BAAN,CAAA,oBAAM,CAAA;wBAArB;qDACG,OAAK;4BAAX,gCAAW;;wBAAX,SAAW,CAAC;;;wBADM,IAAM,CAAA;;;;;;;;KAMjC;IACH,gBAAC;AAAD,CAAC,AApCD,IAoCC"} \ No newline at end of file diff --git a/backend/node_modules/@darabonba/typescript/dist/url.d.ts b/backend/node_modules/@darabonba/typescript/dist/url.d.ts new file mode 100644 index 0000000..eb8c455 --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/dist/url.d.ts @@ -0,0 +1,20 @@ +/// +import * as url from 'url'; +export default class TeaURL { + _url: url.URL; + constructor(str: string); + path(): string; + pathname(): string; + protocol(): string; + hostname(): string; + host(): string; + port(): string; + hash(): string; + search(): string; + href(): string; + auth(): string; + static parse(url: string): TeaURL; + static urlEncode(url: string): string; + static percentEncode(raw: string): string; + static pathEncode(path: string): string; +} diff --git a/backend/node_modules/@darabonba/typescript/dist/url.js b/backend/node_modules/@darabonba/typescript/dist/url.js new file mode 100644 index 0000000..e5e928d --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/dist/url.js @@ -0,0 +1,94 @@ +"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 (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var url = __importStar(require("url")); +var portMap = { + ftp: '21', + gopher: '70', + http: '80', + https: '443', + ws: '80', + wss: '443', +}; +var TeaURL = /** @class */ (function () { + function TeaURL(str) { + this._url = new url.URL(str); + } + TeaURL.prototype.path = function () { + return this._url.pathname + this._url.search; + }; + TeaURL.prototype.pathname = function () { + return this._url.pathname; + }; + TeaURL.prototype.protocol = function () { + return this._url.protocol ? this._url.protocol.replace(':', '') : ''; + }; + TeaURL.prototype.hostname = function () { + return this._url.hostname; + }; + TeaURL.prototype.host = function () { + return this._url.host; + }; + TeaURL.prototype.port = function () { + return this._url.port || portMap[this.protocol()]; + }; + TeaURL.prototype.hash = function () { + return this._url.hash ? this._url.hash.replace('#', '') : ''; + }; + TeaURL.prototype.search = function () { + return this._url.search ? this._url.search.replace('?', '') : ''; + }; + TeaURL.prototype.href = function () { + return this._url.href; + }; + TeaURL.prototype.auth = function () { + return "".concat(this._url.username, ":").concat(this._url.password); + }; + TeaURL.parse = function (url) { + return new TeaURL(url); + }; + TeaURL.urlEncode = function (url) { + return url != null ? encodeURIComponent(url) : ''; + }; + TeaURL.percentEncode = function (raw) { + return raw != null ? encodeURIComponent(raw).replace('+', '%20') + .replace('*', '%2A').replace('%7E', '~') : null; + }; + TeaURL.pathEncode = function (path) { + if (!path || path === '/') { + return path; + } + var paths = path.split('/'); + var sb = []; + for (var _i = 0, paths_1 = paths; _i < paths_1.length; _i++) { + var s = paths_1[_i]; + sb.push(TeaURL.percentEncode(s)); + } + return sb.join('/'); + }; + return TeaURL; +}()); +exports.default = TeaURL; +//# sourceMappingURL=url.js.map \ No newline at end of file diff --git a/backend/node_modules/@darabonba/typescript/dist/url.js.map b/backend/node_modules/@darabonba/typescript/dist/url.js.map new file mode 100644 index 0000000..7165040 --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/dist/url.js.map @@ -0,0 +1 @@ +{"version":3,"file":"url.js","sourceRoot":"","sources":["../src/url.ts"],"names":[],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I,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;SAClC;QACD,OAAO,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACtB,CAAC;IACH,aAAC;AAAD,CAAC,AAvED,IAuEC"} \ No newline at end of file diff --git a/backend/node_modules/@darabonba/typescript/dist/xml.d.ts b/backend/node_modules/@darabonba/typescript/dist/xml.d.ts new file mode 100644 index 0000000..db17e88 --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/dist/xml.d.ts @@ -0,0 +1,12 @@ +export default class TeaXML { + static parseXml(body: string, response: T): { + [key: string]: any; + }; + static toXML(body: { + [key: string]: any; + }): string; + static _parseXML(body: string): any; + static _xmlCast(obj: any, clazz: T): { + [key: string]: any; + }; +} diff --git a/backend/node_modules/@darabonba/typescript/dist/xml.js b/backend/node_modules/@darabonba/typescript/dist/xml.js new file mode 100644 index 0000000..15e5490 --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/dist/xml.js @@ -0,0 +1,98 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// This file is auto-generated, don't edit it +var xml2js_1 = require("xml2js"); +var TeaXML = /** @class */ (function () { + function TeaXML() { + } + TeaXML.parseXml = function (body, response) { + var ret = this._parseXML(body); + if (response !== null && typeof response !== 'undefined') { + ret = this._xmlCast(ret, response); + } + return ret; + }; + TeaXML.toXML = function (body) { + var builder = new xml2js_1.Builder(); + return builder.buildObject(body); + }; + TeaXML._parseXML = function (body) { + var parser = new xml2js_1.Parser({ explicitArray: false }); + var result = {}; + parser.parseString(body, function (err, output) { + result.err = err; + result.output = output; + }); + if (result.err) { + throw result.err; + } + return result.output; + }; + TeaXML._xmlCast = function (obj, clazz) { + var _this = this; + obj = obj || {}; + var ret = {}; + var clz = clazz; + var names = clz.names(); + var types = clz.types(); + Object.keys(names).forEach(function (key) { + var originName = names[key]; + var value = obj[originName]; + var type = types[key]; + switch (type) { + case 'boolean': + if (!value) { + ret[originName] = false; + return; + } + ret[originName] = value === 'false' ? false : true; + return; + case 'number': + if (value != 0 && !value) { + ret[originName] = NaN; + return; + } + ret[originName] = +value; + return; + case 'string': + if (!value) { + ret[originName] = ''; + return; + } + ret[originName] = value.toString(); + return; + default: + if (type.type === 'array') { + if (!value) { + ret[originName] = []; + return; + } + if (!Array.isArray(value)) { + value = [value]; + } + if (typeof type.itemType === 'function') { + ret[originName] = value.map(function (d) { + return _this._xmlCast(d, type.itemType); + }); + } + else { + ret[originName] = value; + } + } + else if (typeof type === 'function') { + if (!value) { + value = {}; + } + ret[originName] = _this._xmlCast(value, type); + } + else { + ret[originName] = value; + } + } + }); + return ret; + }; + return TeaXML; +}()); +exports.default = TeaXML; +//# sourceMappingURL=xml.js.map \ No newline at end of file diff --git a/backend/node_modules/@darabonba/typescript/dist/xml.js.map b/backend/node_modules/@darabonba/typescript/dist/xml.js.map new file mode 100644 index 0000000..3fca6f2 --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/dist/xml.js.map @@ -0,0 +1 @@ +{"version":3,"file":"xml.js","sourceRoot":"","sources":["../src/xml.ts"],"names":[],"mappings":";;AAAA,6CAA6C;AAC7C,iCAAyC;AAEzC;IAAA;IA2FA,CAAC;IAzFQ,eAAQ,GAAf,UAAmB,IAAY,EAAE,QAAW;QAC1C,IAAI,GAAG,GAA2B,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QACvD,IAAI,QAAQ,KAAK,IAAI,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE;YACxD,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;SACpC;QACD,OAAO,GAAG,CAAC;IACb,CAAC;IAEM,YAAK,GAAZ,UAAa,IAA4B;QACvC,IAAM,OAAO,GAAG,IAAI,gBAAO,EAAE,CAAC;QAC9B,OAAO,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;IAEM,gBAAS,GAAhB,UAAiB,IAAY;QAC3B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F;QACH,CAAC,CAAC,CAAA;QACF,OAAO,GAAG,CAAC;IACb,CAAC;IAEH,aAAC;AAAD,CAAC,AA3FD,IA2FC"} \ No newline at end of file diff --git a/backend/node_modules/@darabonba/typescript/package.json b/backend/node_modules/@darabonba/typescript/package.json new file mode 100644 index 0000000..8396a49 --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/package.json @@ -0,0 +1,47 @@ +{ + "name": "@darabonba/typescript", + "version": "1.0.3", + "description": "", + "main": "dist/index.js", + "types": "dist/index.d.ts", + "repository": { + "type": "git", + "url": "git@github.com:aliyun/typescript.git" + }, + "license": "Apache License 2.0", + "scripts": { + "test": "mocha -r ts-node/register -r source-map-support/register test/**/*.spec.ts --timeout=10000", + "test-cov": "nyc -e .ts -r=html -r=text -r=lcov npm run test", + "build": "tsc", + "prepublishOnly": "tsc", + "lint": "eslint . --ext .ts", + "lint:fix": "eslint . --ext .ts --fix" + }, + "author": "Jackson Tian", + "devDependencies": { + "@types/lodash": "^4.14.202", + "@types/mocha": "^5.2.7", + "@types/node": "^20.11.10", + "@types/xml2js": "^0.4.14", + "@typescript-eslint/eslint-plugin": "^7.0.2", + "@typescript-eslint/parser": "^7.0.2", + "eslint": "^8.57.0", + "mocha": "^6.2.0", + "nyc": "^14.1.1", + "source-map-support": "^0.5.13", + "ts-node": "^8.4.1", + "typescript": "^4.7.4" + }, + "dependencies": { + "httpx": "^2.3.2", + "lodash": "^4.17.21", + "moment": "^2.30.1", + "moment-timezone": "^0.5.45", + "@alicloud/tea-typescript": "^1.5.1", + "xml2js": "^0.6.2" + }, + "files": [ + "dist", + "src" + ] +} diff --git a/backend/node_modules/@darabonba/typescript/src/core.ts b/backend/node_modules/@darabonba/typescript/src/core.ts new file mode 100644 index 0000000..32ebbfc --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/src/core.ts @@ -0,0 +1,662 @@ +import * as querystring from 'querystring'; +import { IncomingMessage, IncomingHttpHeaders, Agent as HttpAgent } from 'http'; +import { Agent as HttpsAgent } from 'https'; +import { Readable, Writable } from 'stream'; +import * as httpx from 'httpx'; +import { parse } from 'url'; +import { RetryOptions } from './retry'; +import { BaseError } from './error'; +import * as $tea from '@alicloud/tea-typescript'; + +type TeaDict = { [key: string]: string }; +type TeaObject = { [key: string]: any }; +type AgentOptions = { keepAlive: boolean }; + +export class BytesReadable extends Readable { + value: Buffer + + constructor(value: string | Buffer) { + super(); + if (typeof value === 'string') { + this.value = Buffer.from(value); + } else if (Buffer.isBuffer(value)) { + this.value = value; + } + } + + _read() { + this.push(this.value); + this.push(null); + } +} + +export class Request { + protocol: string; + port: number; + method: string; + pathname: string; + query: TeaDict; + headers: TeaDict; + body: Readable; + + constructor() { + this.headers = {}; + this.query = {}; + } +} + +export class Response { + statusCode: number; + statusMessage: string; + headers: TeaDict; + body: IncomingMessage; + constructor(httpResponse: IncomingMessage) { + this.statusCode = httpResponse.statusCode; + this.statusMessage = httpResponse.statusMessage; + this.headers = this.convertHeaders(httpResponse.headers); + this.body = httpResponse; + } + + convertHeaders(headers: IncomingHttpHeaders): TeaDict { + const results: TeaDict = {}; + const keys = Object.keys(headers); + for (let index = 0; index < keys.length; index++) { + const key = keys[index]; + results[key] = headers[key]; + } + return results; + } + + async readBytes(): Promise { + const buff = await httpx.read(this.body, ''); + return buff; + } +} + +function buildURL(request: Request) { + let url = `${request.protocol}://${request.headers['host']}`; + if (request.port) { + url += `:${request.port}`; + } + url += `${request.pathname}`; + const urlInfo = parse(url); + if (request.query && Object.keys(request.query).length > 0) { + if (urlInfo.query) { + url += `&${querystring.stringify(request.query)}`; + } else { + url += `?${querystring.stringify(request.query)}`; + } + } + return url; +} + +function isModelClass(t: any): boolean { + if (!t) { + return false; + } + return typeof t.types === 'function' && typeof t.names === 'function'; +} + +export async function doAction(request: Request, runtime: TeaObject = null): Promise { + const url = buildURL(request); + const method = (request.method || 'GET').toUpperCase(); + const options: httpx.Options = { + method: method, + headers: request.headers + }; + + if (method !== 'GET' && method !== 'HEAD') { + options.data = request.body; + } + + if (runtime) { + if (typeof runtime.timeout !== 'undefined') { + options.timeout = Number(runtime.timeout); + } + + if (typeof runtime.readTimeout !== 'undefined') { + options.readTimeout = Number(runtime.readTimeout); + } + + if (typeof runtime.connectTimeout !== 'undefined') { + options.connectTimeout = Number(runtime.connectTimeout); + } + + if (typeof runtime.ignoreSSL !== 'undefined') { + options.rejectUnauthorized = !runtime.ignoreSSL; + } + + if (typeof runtime.key !== 'undefined') { + options.key = String(runtime.key); + } + + if (typeof runtime.cert !== 'undefined') { + options.cert = String(runtime.cert); + } + + if (typeof runtime.ca !== 'undefined') { + options.ca = String(runtime.ca); + } + + // keepAlive: default true + const agentOptions: AgentOptions = { + keepAlive: true, + }; + if (typeof runtime.keepAlive !== 'undefined') { + agentOptions.keepAlive = runtime.keepAlive; + if (request.protocol && request.protocol.toLowerCase() === 'https') { + options.agent = new HttpsAgent(agentOptions); + } else { + options.agent = new HttpAgent(agentOptions); + } + } + + + } + + const response = await httpx.request(url, options); + + return new Response(response); +} + + + + + +function getValue(type: any, value: any): any { + if (typeof type === 'string') { + // basic type + return value; + } + if (type.type === 'array') { + if (!Array.isArray(value)) { + throw new Error(`expect: array, actual: ${typeof value}`); + } + return value.map((item: any) => { + return getValue(type.itemType, item); + }); + } + if (typeof type === 'function') { + if (isModelClass(type)) { + return new type(value); + } + return value; + } + return value; +} + +export function toMap(value: any = undefined, withoutStream: boolean = false): any { + if (typeof value === 'undefined' || value == null) { + return null; + } + + if (value instanceof Model) { + return value.toMap(withoutStream); + } + + // 如果是另一个版本的 tea-typescript 创建的 model,instanceof 会判断不通过 + // 这里做一下处理 + if (typeof value.toMap === 'function') { + return value.toMap(withoutStream); + } + + if (Array.isArray(value)) { + return value.map((item) => { + return toMap(item, withoutStream); + }) + } + + if(withoutStream && (value instanceof Readable || value instanceof Writable)) { + return null; + } + + return value; +} + +export class Model extends $tea.Model { + [key: string]: any + + constructor(map?: TeaObject) { + super(); + if (map == null) { + return; + } + + const clz = this.constructor; + const names = clz.names(); + const types = clz.types(); + Object.keys(names).forEach((name => { + const value = map[name]; + if (value === undefined || value === null) { + return; + } + const type = types[name]; + this[name] = getValue(type, value); + })); + } + + validate(): void {} + + copyWithoutStream(): T { + const map: TeaObject = this.toMap(true); + const clz = this.constructor; + return new clz(map); + } + + toMap(withoutStream: boolean = false): TeaObject { + const map: TeaObject = {}; + const clz = this.constructor; + const names = clz.names(); + Object.keys(names).forEach((name => { + const originName = names[name]; + const value = this[name]; + if (typeof value === 'undefined' || value == null) { + return; + } + map[originName] = toMap(value, withoutStream); + })); + return map; + } + + static validateRequired(key: string, value: any) { + if(value === null || typeof value === 'undefined') { + throw new BaseError({ + code: 'SDK.ValidateError', + message: `${key} is required.`, + }); + } + } + + static validateMaxLength(key: string, value: any, max: number) { + if(value === null || typeof value === 'undefined') { + return; + } + if(value.length > max) { + throw new BaseError({ + code: 'SDK.ValidateError', + message: `${key} is exceed max-length: ${max}.`, + }); + } + } + + static validateMinLength(key: string, value: any, min: number) { + if(value === null || typeof value === 'undefined') { + return; + } + if(value.length < min) { + throw new BaseError({ + code: 'SDK.ValidateError', + message: `${key} is exceed min-length: ${min}.`, + }); + } + } + + static validateMaximum(key: string, value: number | undefined, max: number) { + if(value === null || typeof value === 'undefined') { + return; + } + if(value > max) { + throw new BaseError({ + code: 'SDK.ValidateError', + message: `${key} cannot be greater than ${max}.`, + }); + } + } + + static validateMinimum(key: string, value: number | undefined, min: number) { + if(value === null || typeof value === 'undefined') { + return; + } + if(value < min) { + throw new BaseError({ + code: 'SDK.ValidateError', + message: `${key} cannot be less than ${min}.`, + }); + } + } + + static validatePattern(key: string, value: any, val: string) { + if(value === null || typeof value === 'undefined') { + return; + } + const reg = new RegExp(val); + if(!reg.test(value)) { + throw new BaseError({ + code: 'SDK.ValidateError', + message: `${key} is not match ${val}.`, + }); + } + } + + static validateArray(data?: any[]) { + if(data === null || typeof data === 'undefined') { + return; + } + data.map(ele => { + if(!ele) { + return; + } + if(ele instanceof Model || typeof ele.validate === 'function') { + ele.validate(); + } else if(Array.isArray(ele)) { + Model.validateArray(ele); + } else if(ele instanceof Object) { + Model.validateMap(ele); + } + }) + } + + static validateMap(data?: { [key: string]: any }) { + if(data === null || typeof data === 'undefined') { + return; + } + Object.keys(data).map(key => { + const ele = data[key]; + if(!ele) { + return; + } + if(ele instanceof Model || typeof ele.validate === 'function') { + ele.validate(); + } else if(Array.isArray(ele)) { + Model.validateArray(ele); + } else if(ele instanceof Object) { + Model.validateMap(ele); + } + }) + } +} + + +export class FileField extends Model { + filename: string; + contentType: string; + content: Readable; + static names(): { [key: string]: string } { + return { + filename: 'filename', + contentType: 'contentType', + content: 'content', + }; + } + + static types(): { [key: string]: any } { + return { + filename: 'string', + contentType: 'string', + content: 'Readable', + }; + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class ExtendsParameters extends $tea.Model { + headers?: { [key: string]: string }; + queries?: { [key: string]: string }; + static names(): { [key: string]: string } { + return { + headers: 'headers', + queries: 'queries', + }; + } + + static types(): { [key: string]: any } { + return { + headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + queries: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, + }; + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export class RuntimeOptions extends $tea.Model { + retryOptions?: RetryOptions; + autoretry?: boolean; + ignoreSSL?: boolean; + key?: string; + cert?: string; + ca?: string; + maxAttempts?: number; + backoffPolicy?: string; + backoffPeriod?: number; + readTimeout?: number; + connectTimeout?: number; + httpProxy?: string; + httpsProxy?: string; + noProxy?: string; + maxIdleConns?: number; + keepAlive?: boolean; + extendsParameters?: ExtendsParameters; + static names(): { [key: string]: string } { + return { + autoretry: 'autoretry', + ignoreSSL: 'ignoreSSL', + key: 'key', + cert: 'cert', + ca: 'ca', + maxAttempts: 'max_attempts', + backoffPolicy: 'backoff_policy', + backoffPeriod: 'backoff_period', + readTimeout: 'readTimeout', + connectTimeout: 'connectTimeout', + httpProxy: 'httpProxy', + httpsProxy: 'httpsProxy', + noProxy: 'noProxy', + maxIdleConns: 'maxIdleConns', + keepAlive: 'keepAlive', + extendsParameters: 'extendsParameters', + }; + } + + static types(): { [key: string]: any } { + return { + retryOptions: RetryOptions, + autoretry: 'boolean', + ignoreSSL: 'boolean', + key: 'string', + cert: 'string', + ca: 'string', + maxAttempts: 'number', + backoffPolicy: 'string', + backoffPeriod: 'number', + readTimeout: 'number', + connectTimeout: 'number', + httpProxy: 'string', + httpsProxy: 'string', + noProxy: 'string', + maxIdleConns: 'number', + keepAlive: 'boolean', + extendsParameters: ExtendsParameters, + }; + } + + constructor(map?: { [key: string]: any }) { + super(map); + } +} + +export function cast(obj: any, t: T): T { + if (!obj) { + throw new Error('can not cast to Map'); + } + + if (typeof obj !== 'object') { + throw new Error('can not cast to Map'); + } + + const map = obj as TeaObject; + const clz = t.constructor as any; + const names: TeaDict = clz.names(); + const types: TeaObject = clz.types(); + Object.keys(names).forEach((key) => { + const originName = names[key]; + const value = map[originName]; + const type = types[key]; + if (typeof value === 'undefined' || value == null) { + return; + } + if (typeof type === 'string') { + if (type === 'Readable' || + type === 'Writable' || + type === 'map' || + type === 'Buffer' || + type === 'any' || + typeof value === type) { + (t)[key] = value; + return; + } + if (type === 'string' && + (typeof value === 'number' || + typeof value === 'boolean')) { + (t)[key] = value.toString(); + return; + } + if (type === 'boolean') { + if (value === 1 || value === 0) { + (t)[key] = !!value; + return; + } + if (value === 'true' || value === 'false') { + (t)[key] = value === 'true'; + return; + } + } + + if (type === 'number' && typeof value === 'string') { + if (value.match(/^\d*$/)) { + (t)[key] = parseInt(value); + return; + } + if (value.match(/^[\.\d]*$/)) { + (t)[key] = parseFloat(value); + return; + } + } + throw new Error(`type of ${key} is mismatch, expect ${type}, but ${typeof value}`); + } else if (type.type === 'map') { + if (!(value instanceof Object)) { + throw new Error(`type of ${key} is mismatch, expect object, but ${typeof value}`); + } + (t)[key] = value; + } else if (type.type === 'array') { + if (!Array.isArray(value)) { + throw new Error(`type of ${key} is mismatch, expect array, but ${typeof value}`); + } + if (typeof type.itemType === 'function') { + (t)[key] = value.map((d: any) => { + if (isModelClass(type.itemType)) { + return cast(d, new type.itemType({})); + } + return d; + }); + } else { + (t)[key] = value; + } + + } else if (typeof type === 'function') { + if (!(value instanceof Object)) { + throw new Error(`type of ${key} is mismatch, expect object, but ${typeof value}`); + } + if (isModelClass(type)) { + (t)[key] = cast(value, new type({})); + return; + } + (t)[key] = value; + } else { + + } + }); + + return t; +} + +export function allowRetry(retry: TeaObject, retryTimes: number, startTime: number): boolean { + // 还未重试 + if (retryTimes === 0) { + return true; + } + + if (retry.retryable !== true) { + return false; + } + + if (retry.policy === 'never') { + return false; + } + + if (retry.policy === 'always') { + return true; + } + + if (retry.policy === 'simple') { + return (retryTimes < retry['maxAttempts']); + } + + if (retry.policy === 'timeout') { + return Date.now() - startTime < retry.timeout; + } + + if (retry.maxAttempts && typeof retry.maxAttempts === 'number') { + return retry.maxAttempts >= retryTimes; + } + + // 默认不重试 + return false; +} + +export function getBackoffTime(backoff: TeaObject, retryTimes: number): number { + if (retryTimes === 0) { + // 首次调用,不使用退避策略 + return 0; + } + + if (backoff.policy === 'no') { + // 不退避 + return 0; + } + + if (backoff.policy === 'fixed') { + // 固定退避 + return backoff.period; + } + + if (backoff.policy === 'random') { + // 随机退避 + const min = backoff['minPeriod']; + const max = backoff['maxPeriod']; + return min + (max - min) * Math.random(); + } + + if (backoff.policy === 'exponential') { + // 指数退避 + const init = backoff.initial; + const multiplier = backoff.multiplier; + const time = init * Math.pow(1 + multiplier, retryTimes - 1); + const max = backoff.max; + return Math.min(time, max); + } + + if (backoff.policy === 'exponential_random') { + // 指数随机退避 + const init = backoff.initial; + const multiplier = backoff.multiplier; + const time = init * Math.pow(1 + multiplier, retryTimes - 1); + const max = backoff.max; + return Math.min(time * (0.5 + Math.random()), max); + } + + return 0; +} + +export function isRetryable(err: Error): boolean { + if (typeof err === 'undefined' || err === null) { + return false; + } + return err.name === 'RetryError'; +} + diff --git a/backend/node_modules/@darabonba/typescript/src/date.ts b/backend/node_modules/@darabonba/typescript/src/date.ts new file mode 100644 index 0000000..74f2f40 --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/src/date.ts @@ -0,0 +1,95 @@ +import moment from 'moment'; + +export default class TeaDate { + date: moment.Moment + + constructor(date: moment.MomentInput) { + this.date = moment(date); + } + + format(layout: string): string { + layout = layout.replace(/y/g, 'Y') + .replace(/d/g, 'D').replace(/h/g, 'H') + .replace(/a/g, 'A').replace(/E/g, 'd'); + return this.date.format(layout); + } + + unix(): number { + return this.date.unix(); + } + + sub(amount: moment.unitOfTime.Base, unit: number): TeaDate { + const date = moment(this.date).subtract(unit, amount); + return new TeaDate(date); + } + + add(amount: moment.unitOfTime.Base, unit: number): TeaDate { + const date = moment(this.date).add(unit, amount); + return new TeaDate(date); + } + + diff(amount: moment.unitOfTime.Base, diffDate: TeaDate): number { + return this.date.diff(diffDate.date, amount); + } + + hour(): number { + return this.date.hour(); + } + + minute(): number { + return this.date.minute(); + } + + second(): number { + return this.date.second(); + } + + month(): number { + return this.date.month() + 1; + } + + year(): number { + return this.date.year(); + } + + dayOfMonth(): number { + return this.date.date(); + } + + dayOfWeek(): number { + const weekday = this.date.weekday(); + if(weekday === 0) { + // sunday + return 7; + } + return weekday + 1; + } + + weekOfMonth(): number { + const startWeek = moment(this.date).startOf('month').week(); + let dateWeek = this.date.week(); + if (this.date.weekday() === 0) { + dateWeek = dateWeek - 1; + } + if (dateWeek === 0 && this.date.date() > 1) { + // the last day of this year is sunday + return this.sub('day', 1).weekOfMonth(); + } + const monthWeek = dateWeek - startWeek; + if(monthWeek < 0) { + // start of a new year + return 1; + } + return monthWeek + 1; + } + + weekOfYear(): number { + const weekday = this.date.weekday(); + const week = this.date.week(); + if(weekday === 0 && week === 1 && this.date.date() > 1) { + // the last day of this year is sunday + return this.sub('day', 1).weekOfYear(); + } + return this.date.week(); + } +} \ No newline at end of file diff --git a/backend/node_modules/@darabonba/typescript/src/error.ts b/backend/node_modules/@darabonba/typescript/src/error.ts new file mode 100644 index 0000000..1ce2bbc --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/src/error.ts @@ -0,0 +1,83 @@ + + +import { Request, Response } from './core'; +import { RetryPolicyContext } from './retry'; + +export class BaseError extends Error { + name: string; + code: string; + + constructor(map: { [key: string]: any }) { + super(`${map.code}: ${map.message}`); + this.name = 'BaseError'; + this.code = map.code; + } +} + +export class ResponseError extends BaseError { + code: string + statusCode?: number + retryAfter?: number + data?: any + description?: string + accessDeniedDetail?: any + + constructor(map: any) { + super(map); + this.name = 'ResponseError'; + this.data = map.data; + this.description = map.description; + this.retryAfter = map.retryAfter; + this.accessDeniedDetail = map.accessDeniedDetail; + if (this.data && this.data.statusCode) { + this.statusCode = Number(this.data.statusCode); + } + } +} + + + +class UnretryableError extends Error { + data: any + + constructor(message: string) { + super(message); + this.name = 'UnretryableError'; + } +} + +class RetryError extends Error { + retryable: boolean + data: any + + constructor(message: string) { + super(message); + this.name = 'RetryError'; + } +} + +export function retryError(request: Request, response: Response): Error { + const e = new RetryError(''); + e.data = { + request: request, + response: response + }; + return e; +} + + +export function newError(data: any): ResponseError { + return new ResponseError(data); +} + +export function newUnretryableError(ctx: RetryPolicyContext | Request): Error { + if(ctx instanceof RetryPolicyContext && ctx.exception) { + return ctx.exception; + } else { + const e = new UnretryableError(''); + e.data = { + lastRequest: ctx + }; + return e; + } +} \ No newline at end of file diff --git a/backend/node_modules/@darabonba/typescript/src/file.ts b/backend/node_modules/@darabonba/typescript/src/file.ts new file mode 100644 index 0000000..0b7835a --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/src/file.ts @@ -0,0 +1,91 @@ +import * as fs from 'fs'; +import * as util from 'util'; +import { Readable, Writable } from 'stream'; +import TeaDate from './date'; + +const exists = util.promisify(fs.exists); +const stat = util.promisify(fs.stat); +const read = util.promisify(fs.read); +const write = util.promisify(fs.write); +const open = util.promisify(fs.open); +const close = util.promisify(fs.close); +export default class TeaFile { + _path: string + _stat: fs.Stats + _fd: number + _position: number + + constructor(path: string) { + this._path = path; + this._position = 0; + } + + path(): string{ + return this._path; + } + + async createTime(): Promise{ + if(!this._stat) { + this._stat = await stat(this._path); + } + return new TeaDate(this._stat.birthtime); + } + + async modifyTime(): Promise{ + if(!this._stat) { + this._stat = await stat(this._path); + } + return new TeaDate(this._stat.mtime); + } + + async length(): Promise{ + if(!this._stat) { + this._stat = await stat(this._path); + } + return this._stat.size; + } + + async read(size: number): Promise { + if(!this._fd) { + this._fd = await open(this._path, 'a+'); + } + const buf = Buffer.alloc(size); + const { bytesRead, buffer } = await read(this._fd, buf, 0, size, this._position); + if(!bytesRead) { + return null; + } + this._position += bytesRead; + return buffer; + } + + async write(data: Buffer): Promise { + if(!this._fd) { + this._fd = await open(this._path, 'a+'); + } + + await write(this._fd, data); + + this._stat = await stat(this._path); + return; + } + + async close(): Promise { + if(!this._fd) { + return; + } + await close(this._fd); + return; + } + + static async exists(path: string): Promise { + return await exists(path); + } + + static createReadStream(path: string): Readable { + return fs.createReadStream(path); + } + + static createWriteStream(path: string): Writable { + return fs.createWriteStream(path); + } +} \ No newline at end of file diff --git a/backend/node_modules/@darabonba/typescript/src/form.ts b/backend/node_modules/@darabonba/typescript/src/form.ts new file mode 100644 index 0000000..f09680f --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/src/form.ts @@ -0,0 +1,73 @@ +import { Readable } from 'stream'; +import { stringify } from 'querystring'; + +export class FileFormStream extends Readable { + form: { [key: string]: any }; + boundary: string; + keys: string[]; + index: number; + streaming: boolean; + + constructor(form: { [key: string]: any }, boundary: string) { + super(); + this.form = form; + this.keys = Object.keys(form); + this.index = 0; + this.boundary = boundary; + this.streaming = false; + } + + _read() { + if (this.streaming) { + return; + } + + const separator = this.boundary; + if (this.index < this.keys.length) { + const name = this.keys[this.index]; + const fieldValue = this.form[name]; + if (typeof fieldValue.filename === 'string' && + typeof fieldValue.contentType === 'string' && + fieldValue.content instanceof Readable) { + const body = + `--${separator}\r\n` + + `Content-Disposition: form-data; name="${name}"; filename="${fieldValue.filename}"\r\n` + + `Content-Type: ${fieldValue.contentType}\r\n\r\n`; + this.push(Buffer.from(body)); + this.streaming = true; + fieldValue.content.on('data', (chunk: any) => { + this.push(chunk); + }); + fieldValue.content.on('end', () => { + this.index++; + this.streaming = false; + this.push(''); + }); + } else { + this.push(Buffer.from(`--${separator}\r\n` + + `Content-Disposition: form-data; name="${name}"\r\n\r\n` + + `${fieldValue}\r\n`)); + this.index++; + } + } else { + this.push(Buffer.from(`\r\n--${separator}--\r\n`)); + this.push(null); + } + } +} + +export default class Form { + + static getBoundary(): string { + return 'boundary' + Math.random().toString(16).slice(-12); + } + + static toFileForm(form: { [key: string]: any }, boundary: string): Readable { + return new FileFormStream(form, boundary); + } + + static toFormString(data: { [key: string]: any }) { + return stringify(data); + } + +} \ No newline at end of file diff --git a/backend/node_modules/@darabonba/typescript/src/func.ts b/backend/node_modules/@darabonba/typescript/src/func.ts new file mode 100644 index 0000000..858143f --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/src/func.ts @@ -0,0 +1,27 @@ + +import * as _ from 'lodash'; + +export function isNull(data: any): boolean{ + if (typeof data === 'undefined') { + return true; + } + + if (data === null) { + return true; + } + + return false; +} + +export function merge(source: {[key: string]: any}, data: {[key: string]: any}): {[key: string]: any}{ + if(!source && !data) { + return null; + } + return _.merge({}, source, data); +} + +export function sleep(ms: number): Promise { + return new Promise((resolve) => { + setTimeout(resolve, ms); + }); +} diff --git a/backend/node_modules/@darabonba/typescript/src/index.ts b/backend/node_modules/@darabonba/typescript/src/index.ts new file mode 100644 index 0000000..7d174f9 --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/src/index.ts @@ -0,0 +1,10 @@ +export * from './core'; +export { default as Date } from './date'; +export * from './error'; +export { default as File } from './file'; +export { default as Form, FileFormStream } from './form'; +export * from './func'; +export * from './retry'; +export { default as Stream, SSEEvent } from './stream'; +export { default as URL } from './url'; +export { default as XML } from './xml'; \ No newline at end of file diff --git a/backend/node_modules/@darabonba/typescript/src/retry.ts b/backend/node_modules/@darabonba/typescript/src/retry.ts new file mode 100644 index 0000000..7e0114d --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/src/retry.ts @@ -0,0 +1,213 @@ +import * as $core from './core'; +import * as $error from './error'; +const MAX_DELAY_TIME = 120 * 1000; +const MIN_DELAY_TIME = 100; +export class BackoffPolicy{ + policy: string; + constructor(option: {[key: string]: any}) { + this.policy = option.policy; + } + + getDelayTime(ctx: RetryPolicyContext): number{ + throw Error('un-implement'); + } + + static newBackoffPolicy(option: {[key: string]: any}): BackoffPolicy { + switch(option.policy) { + case 'Fixed': + return new FixedBackoffPolicy(option); + case 'Random': + return new RandomBackoffPolicy(option); + case 'Exponential': + return new ExponentialBackoffPolicy(option); + case 'EqualJitter': + case 'ExponentialWithEqualJitter': + return new EqualJitterBackoffPolicy(option); + case 'FullJitter': + case 'ExponentialWithFullJitter': + return new FullJitterBackoffPolicy(option); + } + } +} + + +class FixedBackoffPolicy extends BackoffPolicy { + period: number; + constructor(option: {[key: string]: any}) { + super(option); + this.period = option.period; + } + + getDelayTime(ctx: RetryPolicyContext): number{ + return this.period; + } +} + +class RandomBackoffPolicy extends BackoffPolicy { + period: number; + cap: number; + constructor(option: {[key: string]: any}) { + super(option); + this.period = option.period; + this.cap = option.cap || 20 * 1000; + } + + getDelayTime(ctx: RetryPolicyContext): number{ + const randomTime = Math.floor(Math.random() * (ctx.retriesAttempted * this.period)); + if(randomTime > this.cap) { + return this.cap; + } + return randomTime; + } +} + +class ExponentialBackoffPolicy extends BackoffPolicy { + period: number; + cap: number; + constructor(option: {[key: string]: any}) { + super(option); + this.period = option.period; + //default value: 3 days + this.cap = option.cap || 3 * 24 * 60 * 60 * 1000; + } + + getDelayTime(ctx: RetryPolicyContext): number{ + const randomTime = Math.pow(2, ctx.retriesAttempted * this.period); + if(randomTime > this.cap) { + return this.cap; + } + return randomTime; + } +} + +class EqualJitterBackoffPolicy extends BackoffPolicy { + period: number; + cap: number; + constructor(option: {[key: string]: any}) { + super(option); + this.period = option.period; + //default value: 3 days + this.cap = option.cap || 3 * 24 * 60 * 60 * 1000; + } + + getDelayTime(ctx: RetryPolicyContext): number{ + const ceil = Math.min(this.cap, Math.pow(2, ctx.retriesAttempted * this.period)); + return ceil / 2 + Math.floor(Math.random() * (ceil / 2 + 1)); + } +} + +class FullJitterBackoffPolicy extends BackoffPolicy { + period: number; + cap: number; + constructor(option: {[key: string]: any}) { + super(option); + this.period = option.period; + //default value: 3 days + this.cap = option.cap || 3 * 24 * 60 * 60 * 1000; + } + + getDelayTime(ctx: RetryPolicyContext): number{ + const ceil = Math.min(this.cap, Math.pow(2, ctx.retriesAttempted * this.period)); + return Math.floor(Math.random() * ceil); + } +} + + +export class RetryCondition { + maxAttempts: number; + backoff: BackoffPolicy; + exception: string[]; + errorCode: string[]; + maxDelay: number; + constructor(condition: {[key: string]: any}) { + this.maxAttempts = condition.maxAttempts; + this.backoff = condition.backoff && BackoffPolicy.newBackoffPolicy(condition.backoff); + this.exception = condition.exception; + this.errorCode = condition.errorCode; + this.maxDelay = condition.maxDelay; + } +} + + +export class RetryOptions { + retryable: boolean; + retryCondition: RetryCondition[]; + noRetryCondition: RetryCondition[]; + constructor(options: {[key: string]: any}) { + this.retryable = options.retryable; + this.retryCondition = (options.retryCondition || []).map((condition: { [key: string]: any; }) => { + return new RetryCondition(condition); + }); + + this.noRetryCondition = (options.noRetryCondition || []).map((condition: { [key: string]: any; }) => { + return new RetryCondition(condition); + }); + } +} + +export class RetryPolicyContext { + key: string; + retriesAttempted: number; + httpRequest: $core.Request; + httpResponse: $core.Response; + exception: $error.ResponseError | $error.BaseError; + constructor(options: {[key: string]: any}) { + this.key = options.key; + this.retriesAttempted = options.retriesAttempted || 0; + this.httpRequest = options.httpRequest || null; + this.httpResponse = options.httpResponse || null; + this.exception = options.exception || null; + } +} + +export function shouldRetry(options: RetryOptions, ctx: RetryPolicyContext): boolean { + if(ctx.retriesAttempted === 0) { + return true; + } + if(!options || !options.retryable) { + return false; + } + const retriesAttempted = ctx.retriesAttempted; + const ex = ctx.exception; + let conditions = options.noRetryCondition; + for(let i = 0; i < conditions.length; i++) { + const condition = conditions[i]; + if(condition.exception.includes(ex.name) || condition.errorCode.includes(ex.code)) { + return false; + } + } + conditions = options.retryCondition; + for(let i = 0; i < conditions.length; i++) { + const condition = conditions[i]; + if(!condition.exception.includes(ex.name) && !condition.errorCode.includes(ex.code)) { + continue; + } + if(retriesAttempted >= condition.maxAttempts) { + return false; + } + return true; + } + return false; +} + +export function getBackoffDelay(options: RetryOptions, ctx: RetryPolicyContext): number { + const ex = ctx.exception; + const conditions = options.retryCondition; + for(let i = 0; i < conditions.length; i++) { + const condition = conditions[i]; + if(!condition.exception.includes(ex.name) && !condition.errorCode.includes(ex.code)) { + continue; + } + const maxDelay = condition.maxDelay || MAX_DELAY_TIME; + const retryAfter = (ctx.exception as $error.ResponseError).retryAfter; + if(retryAfter !== undefined) { + return Math.min(retryAfter, maxDelay); + } + + if(!condition.backoff) { + return MIN_DELAY_TIME; + } + return Math.min(condition.backoff.getDelayTime(ctx), maxDelay); + } + return MIN_DELAY_TIME; +} \ No newline at end of file diff --git a/backend/node_modules/@darabonba/typescript/src/stream.ts b/backend/node_modules/@darabonba/typescript/src/stream.ts new file mode 100644 index 0000000..badfac8 --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/src/stream.ts @@ -0,0 +1,182 @@ +import { Readable } from 'stream'; + +const DATA_PREFIX = 'data:'; +const EVENT_PREFIX = 'event:'; +const ID_PREFIX = 'id:'; +const RETRY_PREFIX = 'retry:'; + +function isDigitsOnly(str: string) { + for (let i = 0; i < str.length; i++) { + const c = str.charAt(i); + if (c < '0' || c > '9') { + return false; + } + } + return str.length > 0; +} + +export class SSEEvent { + data?: string; + id?: string; + event?: string; + retry?: number; + + constructor(data: { [key: string]: any } = {}) { + this.data = data.data; + this.id = data.id; + this.event = data.event; + this.retry = data.retry; + } +} + + +function read(readable: Readable): Promise { + return new Promise((resolve, reject) => { + let onData: { (chunk: any): void; (buf: Buffer): void; (chunk: any): void; }, + onError: { (err: Error): void; (err: Error): void; (err: Error): void; }, + onEnd: { (): void; (): void; (): void; }; + const cleanup = function () { + // cleanup + readable.removeListener('error', onError); + readable.removeListener('data', onData); + readable.removeListener('end', onEnd); + }; + + const bufs: Uint8Array[] | Buffer[] = []; + let size = 0; + + onData = function (buf: Buffer) { + bufs.push(buf); + size += buf.length; + }; + + onError = function (err: Error) { + cleanup(); + reject(err); + }; + + onEnd = function () { + cleanup(); + resolve(Buffer.concat(bufs, size)); + }; + + readable.on('error', onError); + readable.on('data', onData); + readable.on('end', onEnd); + }); +} + + + +function readyToRead(readable: Readable) { + return new Promise((resolve, reject) => { + let onReadable: { (): void; (): void; (): void; }, + onEnd: { (): void; (): void; (): void; }, + onError: { (err: Error): void; (err: any): void; (err: Error): void; }; + const cleanup = function () { + // cleanup + readable.removeListener('error', onError); + readable.removeListener('end', onEnd); + readable.removeListener('readable', onReadable); + }; + + onReadable = function () { + cleanup(); + resolve(false); + }; + + onEnd = function () { + cleanup(); + resolve(true); + }; + + onError = function (err) { + cleanup(); + reject(err); + }; + + readable.once('readable', onReadable); + readable.once('end', onEnd); + readable.once('error', onError); + }); +} + +interface EventResult { + events: SSEEvent[]; + remain: string; +} + +function tryGetEvents(head: string, chunk: string): EventResult { + const all = head + chunk; + let start = 0; + const events = []; + for (let i = 0; i < all.length - 1; i++) { + const c = all[i]; + const c2 = all[i + 1]; + if (c === '\n' && c2 === '\n') { + const part = all.substring(start, i); + const lines = part.split('\n'); + const event = new SSEEvent(); + lines.forEach((line: string) => { + if (line.startsWith(DATA_PREFIX)) { + event.data = line.substring(DATA_PREFIX.length).trim(); + } else if (line.startsWith(EVENT_PREFIX)) { + event.event = line.substring(EVENT_PREFIX.length).trim(); + } else if (line.startsWith(ID_PREFIX)) { + event.id = line.substring(ID_PREFIX.length).trim(); + } else if (line.startsWith(RETRY_PREFIX)) { + const retry = line.substring(RETRY_PREFIX.length).trim(); + if (isDigitsOnly(retry)) { + event.retry = parseInt(retry, 10); + } + } else if (line.startsWith(':')) { + // ignore the line + } + }); + events.push(event); + start = i + 2; + } + } + + const remain = all.substring(start); + return { events, remain }; +} + + +export default class TeaStream { + + static async readAsBytes(stream: Readable): Promise { + return await read(stream); + } + + static async readAsString(stream: Readable): Promise { + const buff = await TeaStream.readAsBytes(stream); + return buff.toString(); + } + + static async readAsJSON(stream: Readable): Promise { + const str = await TeaStream.readAsString(stream); + return JSON.parse(str); + } + + static async *readAsSSE(stream: Readable): AsyncGenerator { + let rest = ''; + while (true) { + const ended = await readyToRead(stream); + if (ended) { + return; + } + + let chunk; + while (null !== (chunk = stream.read())) { + const { events, remain } = tryGetEvents(rest, chunk.toString()); + rest = remain; + if (events && events.length > 0) { + for (const event of events) { + yield event; + } + } + } + } + } +} \ No newline at end of file diff --git a/backend/node_modules/@darabonba/typescript/src/url.ts b/backend/node_modules/@darabonba/typescript/src/url.ts new file mode 100644 index 0000000..e0ad53d --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/src/url.ts @@ -0,0 +1,85 @@ +import * as url from 'url'; + +type DATE_TYPE = string | Date | moment.Moment + +const portMap: { [key: string]: string } = { + ftp: '21', + gopher: '70', + http: '80', + https: '443', + ws: '80', + wss: '443', +}; + +export default class TeaURL { + _url: url.URL + + constructor(str: string) { + this._url = new url.URL(str); + } + + path(): string { + return this._url.pathname + this._url.search; + } + + pathname(): string { + return this._url.pathname; + } + + protocol(): string { + return this._url.protocol ? this._url.protocol.replace(':', '') : ''; + } + + hostname(): string { + return this._url.hostname; + } + + host(): string { + return this._url.host; + } + + port(): string { + return this._url.port || portMap[this.protocol()]; + } + + hash(): string { + return this._url.hash ? this._url.hash.replace('#', '') : ''; + } + + search(): string { + return this._url.search ? this._url.search.replace('?', '') : ''; + } + + href(): string { + return this._url.href; + } + + auth(): string { + return `${this._url.username}:${this._url.password}`; + } + + static parse(url: string): TeaURL { + return new TeaURL(url); + } + + static urlEncode(url: string): string { + return url != null ? encodeURIComponent(url) : ''; + } + + static percentEncode(raw: string): string { + return raw != null ? encodeURIComponent(raw).replace('+', '%20') + .replace('*', '%2A').replace('%7E', '~') : null; + } + + static pathEncode(path: string): string { + if (!path || path === '/') { + return path; + } + const paths = path.split('/'); + const sb = []; + for (const s of paths) { + sb.push(TeaURL.percentEncode(s)); + } + return sb.join('/'); + } +} \ No newline at end of file diff --git a/backend/node_modules/@darabonba/typescript/src/xml.ts b/backend/node_modules/@darabonba/typescript/src/xml.ts new file mode 100644 index 0000000..bddb556 --- /dev/null +++ b/backend/node_modules/@darabonba/typescript/src/xml.ts @@ -0,0 +1,95 @@ +// This file is auto-generated, don't edit it +import { Parser, Builder } from 'xml2js'; + +export default class TeaXML { + + static parseXml(body: string, response: T): { [key: string]: any } { + let ret: { [key: string]: any } = this._parseXML(body); + if (response !== null && typeof response !== 'undefined') { + ret = this._xmlCast(ret, response); + } + return ret; + } + + static toXML(body: { [key: string]: any }): string { + const builder = new Builder(); + return builder.buildObject(body); + } + + static _parseXML(body: string): any { + const parser = new Parser({ explicitArray: false }); + const result: { [key: string]: any } = {}; + parser.parseString(body, function (err: any, output: any) { + result.err = err; + result.output = output; + }); + if (result.err) { + throw result.err; + } + + return result.output; + } + + static _xmlCast(obj: any, clazz: T): { [key: string]: any } { + obj = obj || {}; + const ret: { [key: string]: any } = {}; + const clz = clazz as any; + const names: { [key: string]: string } = clz.names(); + const types: { [key: string]: any } = clz.types(); + + Object.keys(names).forEach((key) => { + const originName = names[key]; + let value = obj[originName]; + const type = types[key]; + switch (type) { + case 'boolean': + if (!value) { + ret[originName] = false; + return; + } + ret[originName] = value === 'false' ? false : true; + return; + case 'number': + if (value != 0 && !value) { + ret[originName] = NaN; + return; + } + ret[originName] = +value; + return; + case 'string': + if (!value) { + ret[originName] = ''; + return; + } + ret[originName] = value.toString(); + return; + default: + if (type.type === 'array') { + if (!value) { + ret[originName] = []; + return; + } + if (!Array.isArray(value)) { + value = [value]; + } + if (typeof type.itemType === 'function') { + ret[originName] = value.map((d: any) => { + return this._xmlCast(d, type.itemType); + }); + } else { + ret[originName] = value; + } + } else if (typeof type === 'function') { + if (!value) { + value = {} + } + ret[originName] = this._xmlCast(value, type); + } else { + ret[originName] = value; + } + } + }) + return ret; + } + +} \ No newline at end of file diff --git a/backend/node_modules/@types/node/LICENSE b/backend/node_modules/@types/node/LICENSE new file mode 100755 index 0000000..9e841e7 --- /dev/null +++ b/backend/node_modules/@types/node/LICENSE @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git a/backend/node_modules/@types/node/README.md b/backend/node_modules/@types/node/README.md new file mode 100755 index 0000000..5da54c6 --- /dev/null +++ b/backend/node_modules/@types/node/README.md @@ -0,0 +1,16 @@ +# Installation +> `npm install --save @types/node` + +# Summary +This package contains type definitions for Node.js (https://nodejs.org/). + +# Details +Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v12. + +### Additional Details + * Last updated: Tue, 07 Jun 2022 19:01:37 GMT + * Dependencies: none + * Global values: `Buffer`, `NodeJS`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout` + +# Credits +These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Hoàng Văn Khải](https://github.com/KSXGitHub), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Zane Hannan AU](https://github.com/ZaneHannanAU), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), and [ExE Boss](https://github.com/ExE-Boss). diff --git a/backend/node_modules/@types/node/assert.d.ts b/backend/node_modules/@types/node/assert.d.ts new file mode 100755 index 0000000..764e2d6 --- /dev/null +++ b/backend/node_modules/@types/node/assert.d.ts @@ -0,0 +1,117 @@ +declare module 'assert' { + function assert(value: any, message?: string | Error): asserts value; + namespace assert { + class AssertionError implements Error { + name: string; + message: string; + actual: any; + expected: any; + operator: string; + generatedMessage: boolean; + code: 'ERR_ASSERTION'; + + constructor(options?: { + message?: string | undefined; + actual?: any; + expected?: any; + operator?: string | undefined; + // tslint:disable-next-line:ban-types + stackStartFn?: Function | undefined; + }); + } + + class CallTracker { + calls(exact?: number): () => void; + calls any>(fn?: Func, exact?: number): Func; + report(): CallTrackerReportInformation[]; + verify(): void; + } + interface CallTrackerReportInformation { + message: string; + /** The actual number of times the function was called. */ + actual: number; + /** The number of times the function was expected to be called. */ + expected: number; + /** The name of the function that is wrapped. */ + operator: string; + /** A stack trace of the function. */ + stack: object; + } + + type AssertPredicate = RegExp | (new () => object) | ((thrown: any) => boolean) | object | Error; + + function fail(message?: string | Error): never; + /** @deprecated since v10.0.0 - use fail([message]) or other assert functions instead. */ + function fail( + actual: any, + expected: any, + message?: string | Error, + operator?: string, + // tslint:disable-next-line:ban-types + stackStartFn?: Function, + ): never; + function ok(value: any, message?: string | Error): asserts value; + /** @deprecated since v9.9.0 - use strictEqual() instead. */ + function equal(actual: any, expected: any, message?: string | Error): void; + /** @deprecated since v9.9.0 - use notStrictEqual() instead. */ + function notEqual(actual: any, expected: any, message?: string | Error): void; + /** @deprecated since v9.9.0 - use deepStrictEqual() instead. */ + function deepEqual(actual: any, expected: any, message?: string | Error): void; + /** @deprecated since v9.9.0 - use notDeepStrictEqual() instead. */ + function notDeepEqual(actual: any, expected: any, message?: string | Error): void; + function strictEqual(actual: any, expected: T, message?: string | Error): asserts actual is T; + function notStrictEqual(actual: any, expected: any, message?: string | Error): void; + function deepStrictEqual(actual: any, expected: T, message?: string | Error): asserts actual is T; + function notDeepStrictEqual(actual: any, expected: any, message?: string | Error): void; + + function throws(block: () => any, message?: string | Error): void; + function throws(block: () => any, error: AssertPredicate, message?: string | Error): void; + function doesNotThrow(block: () => any, message?: string | Error): void; + function doesNotThrow(block: () => any, error: AssertPredicate, message?: string | Error): void; + + function ifError(value: any): asserts value is null | undefined; + + function rejects(block: (() => Promise) | Promise, message?: string | Error): Promise; + function rejects( + block: (() => Promise) | Promise, + error: AssertPredicate, + message?: string | Error, + ): Promise; + function doesNotReject(block: (() => Promise) | Promise, message?: string | Error): Promise; + function doesNotReject( + block: (() => Promise) | Promise, + error: AssertPredicate, + message?: string | Error, + ): Promise; + + const strict: Omit< + typeof assert, + | 'equal' + | 'notEqual' + | 'deepEqual' + | 'notDeepEqual' + | 'ok' + | 'strictEqual' + | 'deepStrictEqual' + | 'ifError' + | 'strict' + > & { + (value: any, message?: string | Error): asserts value; + equal: typeof strictEqual; + notEqual: typeof notStrictEqual; + deepEqual: typeof deepStrictEqual; + notDeepEqual: typeof notDeepStrictEqual; + + // Mapped types and assertion functions are incompatible? + // TS2775: Assertions require every name in the call target + // to be declared with an explicit type annotation. + ok: typeof ok; + strictEqual: typeof strictEqual; + deepStrictEqual: typeof deepStrictEqual; + ifError: typeof ifError; + strict: typeof strict; + }; + } + + export = assert; +} diff --git a/backend/node_modules/@types/node/async_hooks.d.ts b/backend/node_modules/@types/node/async_hooks.d.ts new file mode 100755 index 0000000..12b6d20 --- /dev/null +++ b/backend/node_modules/@types/node/async_hooks.d.ts @@ -0,0 +1,246 @@ +/** + * Async Hooks module: https://nodejs.org/api/async_hooks.html + */ +declare module 'async_hooks' { + /** + * Returns the asyncId of the current execution context. + */ + function executionAsyncId(): number; + + /** + * The resource representing the current execution. + * Useful to store data within the resource. + * + * Resource objects returned by `executionAsyncResource()` are most often internal + * Node.js handle objects with undocumented APIs. Using any functions or properties + * on the object is likely to crash your application and should be avoided. + * + * Using `executionAsyncResource()` in the top-level execution context will + * return an empty object as there is no handle or request object to use, + * but having an object representing the top-level can be helpful. + */ + function executionAsyncResource(): object; + + /** + * Returns the ID of the resource responsible for calling the callback that is currently being executed. + */ + function triggerAsyncId(): number; + + interface HookCallbacks { + /** + * Called when a class is constructed that has the possibility to emit an asynchronous event. + * @param asyncId a unique ID for the async resource + * @param type the type of the async resource + * @param triggerAsyncId the unique ID of the async resource in whose execution context this async resource was created + * @param resource reference to the resource representing the async operation, needs to be released during destroy + */ + init?(asyncId: number, type: string, triggerAsyncId: number, resource: object): void; + + /** + * When an asynchronous operation is initiated or completes a callback is called to notify the user. + * The before callback is called just before said callback is executed. + * @param asyncId the unique identifier assigned to the resource about to execute the callback. + */ + before?(asyncId: number): void; + + /** + * Called immediately after the callback specified in before is completed. + * @param asyncId the unique identifier assigned to the resource which has executed the callback. + */ + after?(asyncId: number): void; + + /** + * Called when a promise has resolve() called. This may not be in the same execution id + * as the promise itself. + * @param asyncId the unique id for the promise that was resolve()d. + */ + promiseResolve?(asyncId: number): void; + + /** + * Called after the resource corresponding to asyncId is destroyed + * @param asyncId a unique ID for the async resource + */ + destroy?(asyncId: number): void; + } + + interface AsyncHook { + /** + * Enable the callbacks for a given AsyncHook instance. If no callbacks are provided enabling is a noop. + */ + enable(): this; + + /** + * Disable the callbacks for a given AsyncHook instance from the global pool of AsyncHook callbacks to be executed. Once a hook has been disabled it will not be called again until enabled. + */ + disable(): this; + } + + /** + * Registers functions to be called for different lifetime events of each async operation. + * @param options the callbacks to register + * @return an AsyncHooks instance used for disabling and enabling hooks + */ + function createHook(options: HookCallbacks): AsyncHook; + + interface AsyncResourceOptions { + /** + * The ID of the execution context that created this async event. + * @default executionAsyncId() + */ + triggerAsyncId?: number | undefined; + + /** + * Disables automatic `emitDestroy` when the object is garbage collected. + * This usually does not need to be set (even if `emitDestroy` is called + * manually), unless the resource's `asyncId` is retrieved and the + * sensitive API's `emitDestroy` is called with it. + * @default false + */ + requireManualDestroy?: boolean | undefined; + } + + /** + * The class AsyncResource was designed to be extended by the embedder's async resources. + * Using this users can easily trigger the lifetime events of their own resources. + */ + class AsyncResource { + /** + * AsyncResource() is meant to be extended. Instantiating a + * new AsyncResource() also triggers init. If triggerAsyncId is omitted then + * async_hook.executionAsyncId() is used. + * @param type The type of async event. + * @param triggerAsyncId The ID of the execution context that created + * this async event (default: `executionAsyncId()`), or an + * AsyncResourceOptions object (since v9.3.0) + */ + constructor(type: string, triggerAsyncId?: number|AsyncResourceOptions); + + /** + * Binds the given function to the current execution context. + * @param fn The function to bind to the current execution context. + * @param type An optional name to associate with the underlying `AsyncResource`. + */ + static bind any>(fn: Func, type?: string): Func & { asyncResource: AsyncResource }; + + /** + * Binds the given function to execute to this `AsyncResource`'s scope. + * @param fn The function to bind to the current `AsyncResource`. + */ + bind any>(fn: Func): Func & { asyncResource: AsyncResource }; + + /** + * Call the provided function with the provided arguments in the + * execution context of the async resource. This will establish the + * context, trigger the AsyncHooks before callbacks, call the function, + * trigger the AsyncHooks after callbacks, and then restore the original + * execution context. + * @param fn The function to call in the execution context of this + * async resource. + * @param thisArg The receiver to be used for the function call. + * @param args Optional arguments to pass to the function. + */ + runInAsyncScope(fn: (this: This, ...args: any[]) => Result, thisArg?: This, ...args: any[]): Result; + + /** + * Call AsyncHooks destroy callbacks. + */ + emitDestroy(): this; + + /** + * @return the unique ID assigned to this AsyncResource instance. + */ + asyncId(): number; + + /** + * @return the trigger ID for this AsyncResource instance. + */ + triggerAsyncId(): number; + } + + /** + * When having multiple instances of `AsyncLocalStorage`, they are independent + * from each other. It is safe to instantiate this class multiple times. + */ + class AsyncLocalStorage { + /** + * This method disables the instance of `AsyncLocalStorage`. All subsequent calls + * to `asyncLocalStorage.getStore()` will return `undefined` until + * `asyncLocalStorage.run()` or `asyncLocalStorage.runSyncAndReturn()` + * is called again. + * + * When calling `asyncLocalStorage.disable()`, all current contexts linked to the + * instance will be exited. + * + * Calling `asyncLocalStorage.disable()` is required before the + * `asyncLocalStorage` can be garbage collected. This does not apply to stores + * provided by the `asyncLocalStorage`, as those objects are garbage collected + * along with the corresponding async resources. + * + * This method is to be used when the `asyncLocalStorage` is not in use anymore + * in the current process. + */ + disable(): void; + + /** + * This method returns the current store. + * If this method is called outside of an asynchronous context initialized by + * calling `asyncLocalStorage.run` or `asyncLocalStorage.runAndReturn`, it will + * return `undefined`. + */ + getStore(): T | undefined; + + /** + * Calling `asyncLocalStorage.run(callback)` will create a new asynchronous + * context. + * Within the callback function and the asynchronous operations from the callback, + * `asyncLocalStorage.getStore()` will return an instance of `Map` known as + * "the store". This store will be persistent through the following + * asynchronous calls. + * + * The callback will be ran asynchronously. Optionally, arguments can be passed + * to the function. They will be passed to the callback function. + * + * If an error is thrown by the callback function, it will not be caught by + * a `try/catch` block as the callback is ran in a new asynchronous resource. + * Also, the stacktrace will be impacted by the asynchronous call. + */ + // TODO: Apply generic vararg once available + run(store: T, callback: (...args: any[]) => void, ...args: any[]): void; + + /** + * Calling `asyncLocalStorage.exit(callback)` will create a new asynchronous + * context. + * Within the callback function and the asynchronous operations from the callback, + * `asyncLocalStorage.getStore()` will return `undefined`. + * + * The callback will be ran asynchronously. Optionally, arguments can be passed + * to the function. They will be passed to the callback function. + * + * If an error is thrown by the callback function, it will not be caught by + * a `try/catch` block as the callback is ran in a new asynchronous resource. + * Also, the stacktrace will be impacted by the asynchronous call. + */ + exit(callback: (...args: any[]) => void, ...args: any[]): void; + + /** + * This methods runs a function synchronously outside of a context and return its + * return value. The store is not accessible within the callback function or + * the asynchronous operations created within the callback. + * + * Optionally, arguments can be passed to the function. They will be passed to + * the callback function. + * + * If the callback function throws an error, it will be thrown by + * `exitSyncAndReturn` too. The stacktrace will not be impacted by this call and + * the context will be re-entered. + */ + exitSyncAndReturn(callback: (...args: any[]) => R, ...args: any[]): R; + + /** + * Calling `asyncLocalStorage.enterWith(store)` will transition into the context + * for the remainder of the current synchronous execution and will persist + * through any following asynchronous calls. + */ + enterWith(store: T): void; + } +} diff --git a/backend/node_modules/@types/node/buffer.d.ts b/backend/node_modules/@types/node/buffer.d.ts new file mode 100755 index 0000000..3678931 --- /dev/null +++ b/backend/node_modules/@types/node/buffer.d.ts @@ -0,0 +1,22 @@ +declare module 'buffer' { + export const INSPECT_MAX_BYTES: number; + export const kMaxLength: number; + export const kStringMaxLength: number; + export const constants: { + MAX_LENGTH: number; + MAX_STRING_LENGTH: number; + }; + const BuffType: typeof Buffer; + + export type TranscodeEncoding = "ascii" | "utf8" | "utf16le" | "ucs2" | "latin1" | "binary"; + + export function transcode(source: Uint8Array, fromEnc: TranscodeEncoding, toEnc: TranscodeEncoding): Buffer; + + export const SlowBuffer: { + /** @deprecated since v6.0.0, use Buffer.allocUnsafeSlow() */ + new(size: number): Buffer; + prototype: Buffer; + }; + + export { BuffType as Buffer }; +} diff --git a/backend/node_modules/@types/node/child_process.d.ts b/backend/node_modules/@types/node/child_process.d.ts new file mode 100755 index 0000000..d07fbd9 --- /dev/null +++ b/backend/node_modules/@types/node/child_process.d.ts @@ -0,0 +1,507 @@ +declare module 'child_process' { + import * as events from 'events'; + import * as net from 'net'; + import { Writable, Readable, Stream, Pipe } from 'stream'; + + interface ChildProcess extends events.EventEmitter { + stdin: Writable | null; + stdout: Readable | null; + stderr: Readable | null; + readonly channel?: Pipe | null | undefined; + readonly stdio: [ + Writable | null, // stdin + Readable | null, // stdout + Readable | null, // stderr + Readable | Writable | null | undefined, // extra + Readable | Writable | null | undefined // extra + ]; + readonly killed: boolean; + readonly pid: number; + readonly connected: boolean; + readonly exitCode: number | null; + readonly signalCode: number | null; + readonly spawnargs: string[]; + readonly spawnfile: string; + kill(signal?: NodeJS.Signals | number): boolean; + send(message: any, callback?: (error: Error | null) => void): boolean; + send(message: any, sendHandle?: net.Socket | net.Server, callback?: (error: Error | null) => void): boolean; + send(message: any, sendHandle?: net.Socket | net.Server, options?: MessageOptions, callback?: (error: Error | null) => void): boolean; + disconnect(): void; + unref(): void; + ref(): void; + + /** + * events.EventEmitter + * 1. close + * 2. disconnect + * 3. error + * 4. exit + * 5. message + */ + + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: "close", listener: (code: number, signal: NodeJS.Signals) => void): this; + addListener(event: "disconnect", listener: () => void): this; + addListener(event: "error", listener: (err: Error) => void): this; + addListener(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; + addListener(event: "message", listener: (message: any, sendHandle: net.Socket | net.Server) => void): this; + + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: "close", code: number, signal: NodeJS.Signals): boolean; + emit(event: "disconnect"): boolean; + emit(event: "error", err: Error): boolean; + emit(event: "exit", code: number | null, signal: NodeJS.Signals | null): boolean; + emit(event: "message", message: any, sendHandle: net.Socket | net.Server): boolean; + + on(event: string, listener: (...args: any[]) => void): this; + on(event: "close", listener: (code: number, signal: NodeJS.Signals) => void): this; + on(event: "disconnect", listener: () => void): this; + on(event: "error", listener: (err: Error) => void): this; + on(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; + on(event: "message", listener: (message: any, sendHandle: net.Socket | net.Server) => void): this; + + once(event: string, listener: (...args: any[]) => void): this; + once(event: "close", listener: (code: number, signal: NodeJS.Signals) => void): this; + once(event: "disconnect", listener: () => void): this; + once(event: "error", listener: (err: Error) => void): this; + once(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; + once(event: "message", listener: (message: any, sendHandle: net.Socket | net.Server) => void): this; + + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: "close", listener: (code: number, signal: NodeJS.Signals) => void): this; + prependListener(event: "disconnect", listener: () => void): this; + prependListener(event: "error", listener: (err: Error) => void): this; + prependListener(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; + prependListener(event: "message", listener: (message: any, sendHandle: net.Socket | net.Server) => void): this; + + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: "close", listener: (code: number, signal: NodeJS.Signals) => void): this; + prependOnceListener(event: "disconnect", listener: () => void): this; + prependOnceListener(event: "error", listener: (err: Error) => void): this; + prependOnceListener(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; + prependOnceListener(event: "message", listener: (message: any, sendHandle: net.Socket | net.Server) => void): this; + } + + // return this object when stdio option is undefined or not specified + interface ChildProcessWithoutNullStreams extends ChildProcess { + stdin: Writable; + stdout: Readable; + stderr: Readable; + readonly stdio: [ + Writable, // stdin + Readable, // stdout + Readable, // stderr + Readable | Writable | null | undefined, // extra, no modification + Readable | Writable | null | undefined // extra, no modification + ]; + } + + // return this object when stdio option is a tuple of 3 + interface ChildProcessByStdio< + I extends null | Writable, + O extends null | Readable, + E extends null | Readable, + > extends ChildProcess { + stdin: I; + stdout: O; + stderr: E; + readonly stdio: [ + I, + O, + E, + Readable | Writable | null | undefined, // extra, no modification + Readable | Writable | null | undefined // extra, no modification + ]; + } + + interface MessageOptions { + keepOpen?: boolean | undefined; + } + + type StdioOptions = "pipe" | "ignore" | "inherit" | Array<("pipe" | "ipc" | "ignore" | "inherit" | Stream | number | null | undefined)>; + + type SerializationType = 'json' | 'advanced'; + + interface MessagingOptions { + /** + * Specify the kind of serialization used for sending messages between processes. + * @default 'json' + */ + serialization?: SerializationType | undefined; + } + + interface ProcessEnvOptions { + uid?: number | undefined; + gid?: number | undefined; + cwd?: string | undefined; + env?: NodeJS.ProcessEnv | undefined; + } + + interface CommonOptions extends ProcessEnvOptions { + /** + * @default true + */ + windowsHide?: boolean | undefined; + /** + * @default 0 + */ + timeout?: number | undefined; + } + + interface SpawnOptions extends CommonOptions, MessagingOptions { + argv0?: string | undefined; + stdio?: StdioOptions | undefined; + detached?: boolean | undefined; + shell?: boolean | string | undefined; + windowsVerbatimArguments?: boolean | undefined; + } + + interface SpawnOptionsWithoutStdio extends SpawnOptions { + stdio?: 'pipe' | Array | undefined; + } + + type StdioNull = 'inherit' | 'ignore' | Stream; + type StdioPipe = undefined | null | 'pipe'; + + interface SpawnOptionsWithStdioTuple< + Stdin extends StdioNull | StdioPipe, + Stdout extends StdioNull | StdioPipe, + Stderr extends StdioNull | StdioPipe, + > extends SpawnOptions { + stdio: [Stdin, Stdout, Stderr]; + } + + // overloads of spawn without 'args' + function spawn(command: string, options?: SpawnOptionsWithoutStdio): ChildProcessWithoutNullStreams; + + function spawn( + command: string, + options: SpawnOptionsWithStdioTuple, + ): ChildProcessByStdio; + function spawn( + command: string, + options: SpawnOptionsWithStdioTuple, + ): ChildProcessByStdio; + function spawn( + command: string, + options: SpawnOptionsWithStdioTuple, + ): ChildProcessByStdio; + function spawn( + command: string, + options: SpawnOptionsWithStdioTuple, + ): ChildProcessByStdio; + function spawn( + command: string, + options: SpawnOptionsWithStdioTuple, + ): ChildProcessByStdio; + function spawn( + command: string, + options: SpawnOptionsWithStdioTuple, + ): ChildProcessByStdio; + function spawn( + command: string, + options: SpawnOptionsWithStdioTuple, + ): ChildProcessByStdio; + function spawn( + command: string, + options: SpawnOptionsWithStdioTuple, + ): ChildProcessByStdio; + + function spawn(command: string, options: SpawnOptions): ChildProcess; + + // overloads of spawn with 'args' + function spawn(command: string, args?: ReadonlyArray, options?: SpawnOptionsWithoutStdio): ChildProcessWithoutNullStreams; + + function spawn( + command: string, + args: ReadonlyArray, + options: SpawnOptionsWithStdioTuple, + ): ChildProcessByStdio; + function spawn( + command: string, + args: ReadonlyArray, + options: SpawnOptionsWithStdioTuple, + ): ChildProcessByStdio; + function spawn( + command: string, + args: ReadonlyArray, + options: SpawnOptionsWithStdioTuple, + ): ChildProcessByStdio; + function spawn( + command: string, + args: ReadonlyArray, + options: SpawnOptionsWithStdioTuple, + ): ChildProcessByStdio; + function spawn( + command: string, + args: ReadonlyArray, + options: SpawnOptionsWithStdioTuple, + ): ChildProcessByStdio; + function spawn( + command: string, + args: ReadonlyArray, + options: SpawnOptionsWithStdioTuple, + ): ChildProcessByStdio; + function spawn( + command: string, + args: ReadonlyArray, + options: SpawnOptionsWithStdioTuple, + ): ChildProcessByStdio; + function spawn( + command: string, + args: ReadonlyArray, + options: SpawnOptionsWithStdioTuple, + ): ChildProcessByStdio; + + function spawn(command: string, args: ReadonlyArray, options: SpawnOptions): ChildProcess; + + interface ExecOptions extends CommonOptions { + shell?: string | undefined; + maxBuffer?: number | undefined; + killSignal?: NodeJS.Signals | number | undefined; + } + + interface ExecOptionsWithStringEncoding extends ExecOptions { + encoding: BufferEncoding; + } + + interface ExecOptionsWithBufferEncoding extends ExecOptions { + encoding: string | null; // specify `null`. + } + + interface ExecException extends Error { + cmd?: string | undefined; + killed?: boolean | undefined; + code?: number | undefined; + signal?: NodeJS.Signals | undefined; + } + + // no `options` definitely means stdout/stderr are `string`. + function exec(command: string, callback?: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess; + + // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`. + function exec(command: string, options: { encoding: "buffer" | null } & ExecOptions, callback?: (error: ExecException | null, stdout: Buffer, stderr: Buffer) => void): ChildProcess; + + // `options` with well known `encoding` means stdout/stderr are definitely `string`. + function exec(command: string, options: { encoding: BufferEncoding } & ExecOptions, callback?: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess; + + // `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`. + // There is no guarantee the `encoding` is unknown as `string` is a superset of `BufferEncoding`. + function exec(command: string, options: { encoding: string } & ExecOptions, callback?: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void): ChildProcess; + + // `options` without an `encoding` means stdout/stderr are definitely `string`. + function exec(command: string, options: ExecOptions, callback?: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess; + + // fallback if nothing else matches. Worst case is always `string | Buffer`. + function exec( + command: string, + options: ({ encoding?: string | null | undefined } & ExecOptions) | undefined | null, + callback?: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void, + ): ChildProcess; + + interface PromiseWithChild extends Promise { + child: ChildProcess; + } + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace exec { + function __promisify__(command: string): PromiseWithChild<{ stdout: string, stderr: string }>; + function __promisify__(command: string, options: { encoding: "buffer" | null } & ExecOptions): PromiseWithChild<{ stdout: Buffer, stderr: Buffer }>; + function __promisify__(command: string, options: { encoding: BufferEncoding } & ExecOptions): PromiseWithChild<{ stdout: string, stderr: string }>; + function __promisify__(command: string, options: ExecOptions): PromiseWithChild<{ stdout: string, stderr: string }>; + function __promisify__(command: string, options?: ({ encoding?: string | null | undefined } & ExecOptions) | null): PromiseWithChild<{ stdout: string | Buffer, stderr: string | Buffer }>; + } + + interface ExecFileOptions extends CommonOptions { + maxBuffer?: number | undefined; + killSignal?: NodeJS.Signals | number | undefined; + windowsVerbatimArguments?: boolean | undefined; + shell?: boolean | string | undefined; + } + interface ExecFileOptionsWithStringEncoding extends ExecFileOptions { + encoding: BufferEncoding; + } + interface ExecFileOptionsWithBufferEncoding extends ExecFileOptions { + encoding: 'buffer' | null; + } + interface ExecFileOptionsWithOtherEncoding extends ExecFileOptions { + encoding: string; + } + + function execFile(file: string): ChildProcess; + function execFile(file: string, options: ({ encoding?: string | null | undefined } & ExecFileOptions) | undefined | null): ChildProcess; + function execFile(file: string, args?: ReadonlyArray | null): ChildProcess; + function execFile(file: string, args: ReadonlyArray | undefined | null, options: ({ encoding?: string | null | undefined } & ExecFileOptions) | undefined | null): ChildProcess; + + // no `options` definitely means stdout/stderr are `string`. + function execFile(file: string, callback: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess; + function execFile(file: string, args: ReadonlyArray | undefined | null, callback: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess; + + // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`. + function execFile(file: string, options: ExecFileOptionsWithBufferEncoding, callback: (error: ExecException | null, stdout: Buffer, stderr: Buffer) => void): ChildProcess; + function execFile( + file: string, + args: ReadonlyArray | undefined | null, + options: ExecFileOptionsWithBufferEncoding, + callback: (error: ExecException | null, stdout: Buffer, stderr: Buffer) => void, + ): ChildProcess; + + // `options` with well known `encoding` means stdout/stderr are definitely `string`. + function execFile(file: string, options: ExecFileOptionsWithStringEncoding, callback: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess; + function execFile( + file: string, + args: ReadonlyArray | undefined | null, + options: ExecFileOptionsWithStringEncoding, + callback: (error: ExecException | null, stdout: string, stderr: string) => void, + ): ChildProcess; + + // `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`. + // There is no guarantee the `encoding` is unknown as `string` is a superset of `BufferEncoding`. + function execFile( + file: string, + options: ExecFileOptionsWithOtherEncoding, + callback: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void, + ): ChildProcess; + function execFile( + file: string, + args: ReadonlyArray | undefined | null, + options: ExecFileOptionsWithOtherEncoding, + callback: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void, + ): ChildProcess; + + // `options` without an `encoding` means stdout/stderr are definitely `string`. + function execFile(file: string, options: ExecFileOptions, callback: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess; + function execFile( + file: string, + args: ReadonlyArray | undefined | null, + options: ExecFileOptions, + callback: (error: ExecException | null, stdout: string, stderr: string) => void + ): ChildProcess; + + // fallback if nothing else matches. Worst case is always `string | Buffer`. + function execFile( + file: string, + options: ({ encoding?: string | null | undefined } & ExecFileOptions) | undefined | null, + callback: ((error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null, + ): ChildProcess; + function execFile( + file: string, + args: ReadonlyArray | undefined | null, + options: ({ encoding?: string | null | undefined } & ExecFileOptions) | undefined | null, + callback: ((error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null, + ): ChildProcess; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace execFile { + function __promisify__(file: string): PromiseWithChild<{ stdout: string, stderr: string }>; + function __promisify__(file: string, args: ReadonlyArray | undefined | null): PromiseWithChild<{ stdout: string, stderr: string }>; + function __promisify__(file: string, options: ExecFileOptionsWithBufferEncoding): PromiseWithChild<{ stdout: Buffer, stderr: Buffer }>; + function __promisify__(file: string, args: ReadonlyArray | undefined | null, options: ExecFileOptionsWithBufferEncoding): PromiseWithChild<{ stdout: Buffer, stderr: Buffer }>; + function __promisify__(file: string, options: ExecFileOptionsWithStringEncoding): PromiseWithChild<{ stdout: string, stderr: string }>; + function __promisify__(file: string, args: ReadonlyArray | undefined | null, options: ExecFileOptionsWithStringEncoding): PromiseWithChild<{ stdout: string, stderr: string }>; + function __promisify__(file: string, options: ExecFileOptionsWithOtherEncoding): PromiseWithChild<{ stdout: string | Buffer, stderr: string | Buffer }>; + function __promisify__( + file: string, + args: ReadonlyArray | undefined | null, + options: ExecFileOptionsWithOtherEncoding, + ): PromiseWithChild<{ stdout: string | Buffer, stderr: string | Buffer }>; + function __promisify__(file: string, options: ExecFileOptions): PromiseWithChild<{ stdout: string, stderr: string }>; + function __promisify__(file: string, args: ReadonlyArray | undefined | null, options: ExecFileOptions): PromiseWithChild<{ stdout: string, stderr: string }>; + function __promisify__( + file: string, + options: ({ encoding?: string | null | undefined } & ExecFileOptions) | undefined | null + ): PromiseWithChild<{ stdout: string | Buffer, stderr: string | Buffer }>; + function __promisify__( + file: string, + args: ReadonlyArray | undefined | null, + options: ({ encoding?: string | null | undefined } & ExecFileOptions) | undefined | null, + ): PromiseWithChild<{ stdout: string | Buffer, stderr: string | Buffer }>; + } + + interface ForkOptions extends ProcessEnvOptions, MessagingOptions { + execPath?: string | undefined; + execArgv?: string[] | undefined; + silent?: boolean | undefined; + stdio?: StdioOptions | undefined; + detached?: boolean | undefined; + windowsVerbatimArguments?: boolean | undefined; + } + function fork(modulePath: string, options?: ForkOptions): ChildProcess; + function fork(modulePath: string, args?: ReadonlyArray, options?: ForkOptions): ChildProcess; + + interface SpawnSyncOptions extends CommonOptions { + argv0?: string | undefined; // Not specified in the docs + input?: string | NodeJS.ArrayBufferView | undefined; + stdio?: StdioOptions | undefined; + killSignal?: NodeJS.Signals | number | undefined; + maxBuffer?: number | undefined; + encoding?: string | undefined; + shell?: boolean | string | undefined; + windowsVerbatimArguments?: boolean | undefined; + } + interface SpawnSyncOptionsWithStringEncoding extends SpawnSyncOptions { + encoding: BufferEncoding; + } + interface SpawnSyncOptionsWithBufferEncoding extends SpawnSyncOptions { + encoding: string; // specify `null`. + } + interface SpawnSyncReturns { + pid: number; + output: Array; + stdout: T; + stderr: T; + status: number | null; + signal: NodeJS.Signals | null; + error?: Error | undefined; + } + function spawnSync(command: string): SpawnSyncReturns; + function spawnSync(command: string, options: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns; + function spawnSync(command: string, options: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns; + function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns; + function spawnSync(command: string, args: ReadonlyArray): SpawnSyncReturns; + function spawnSync(command: string, args: ReadonlyArray, options: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns; + function spawnSync(command: string, args: ReadonlyArray, options: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns; + function spawnSync(command: string, args?: ReadonlyArray, options?: SpawnSyncOptions): SpawnSyncReturns; + + interface ExecSyncOptions extends CommonOptions { + input?: string | Uint8Array | undefined; + stdio?: StdioOptions | undefined; + shell?: string | undefined; + killSignal?: NodeJS.Signals | number | undefined; + maxBuffer?: number | undefined; + encoding?: string | undefined; + } + interface ExecSyncOptionsWithStringEncoding extends ExecSyncOptions { + encoding: BufferEncoding; + } + interface ExecSyncOptionsWithBufferEncoding extends ExecSyncOptions { + encoding: string; // specify `null`. + } + function execSync(command: string): Buffer; + function execSync(command: string, options: ExecSyncOptionsWithStringEncoding): string; + function execSync(command: string, options: ExecSyncOptionsWithBufferEncoding): Buffer; + function execSync(command: string, options?: ExecSyncOptions): string | Buffer; + + interface ExecFileSyncOptions extends CommonOptions { + input?: string | NodeJS.ArrayBufferView | undefined; + stdio?: StdioOptions | undefined; + killSignal?: NodeJS.Signals | number | undefined; + maxBuffer?: number | undefined; + encoding?: string | undefined; + shell?: boolean | string | undefined; + } + interface ExecFileSyncOptionsWithStringEncoding extends ExecFileSyncOptions { + encoding: BufferEncoding; + } + interface ExecFileSyncOptionsWithBufferEncoding extends ExecFileSyncOptions { + encoding: string; // specify `null`. + } + function execFileSync(command: string): Buffer; + function execFileSync(command: string, options: ExecFileSyncOptionsWithStringEncoding): string; + function execFileSync(command: string, options: ExecFileSyncOptionsWithBufferEncoding): Buffer; + function execFileSync(command: string, options?: ExecFileSyncOptions): string | Buffer; + function execFileSync(command: string, args: ReadonlyArray): Buffer; + function execFileSync(command: string, args: ReadonlyArray, options: ExecFileSyncOptionsWithStringEncoding): string; + function execFileSync(command: string, args: ReadonlyArray, options: ExecFileSyncOptionsWithBufferEncoding): Buffer; + function execFileSync(command: string, args?: ReadonlyArray, options?: ExecFileSyncOptions): string | Buffer; +} diff --git a/backend/node_modules/@types/node/cluster.d.ts b/backend/node_modules/@types/node/cluster.d.ts new file mode 100755 index 0000000..5af52a0 --- /dev/null +++ b/backend/node_modules/@types/node/cluster.d.ts @@ -0,0 +1,260 @@ +declare module 'cluster' { + import * as child from 'child_process'; + import EventEmitter = require('events'); + import * as net from 'net'; + + // interfaces + interface ClusterSettings { + execArgv?: string[] | undefined; // default: process.execArgv + exec?: string | undefined; + args?: string[] | undefined; + silent?: boolean | undefined; + stdio?: any[] | undefined; + uid?: number | undefined; + gid?: number | undefined; + inspectPort?: number | (() => number) | undefined; + } + + interface Address { + address: string; + port: number; + addressType: number | "udp4" | "udp6"; // 4, 6, -1, "udp4", "udp6" + } + + class Worker extends EventEmitter { + id: number; + process: child.ChildProcess; + send(message: any, sendHandle?: any, callback?: (error: Error | null) => void): boolean; + kill(signal?: string): void; + destroy(signal?: string): void; + disconnect(): void; + isConnected(): boolean; + isDead(): boolean; + exitedAfterDisconnect: boolean; + + /** + * events.EventEmitter + * 1. disconnect + * 2. error + * 3. exit + * 4. listening + * 5. message + * 6. online + */ + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: "disconnect", listener: () => void): this; + addListener(event: "error", listener: (error: Error) => void): this; + addListener(event: "exit", listener: (code: number, signal: string) => void): this; + addListener(event: "listening", listener: (address: Address) => void): this; + addListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. + addListener(event: "online", listener: () => void): this; + + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: "disconnect"): boolean; + emit(event: "error", error: Error): boolean; + emit(event: "exit", code: number, signal: string): boolean; + emit(event: "listening", address: Address): boolean; + emit(event: "message", message: any, handle: net.Socket | net.Server): boolean; + emit(event: "online"): boolean; + + on(event: string, listener: (...args: any[]) => void): this; + on(event: "disconnect", listener: () => void): this; + on(event: "error", listener: (error: Error) => void): this; + on(event: "exit", listener: (code: number, signal: string) => void): this; + on(event: "listening", listener: (address: Address) => void): this; + on(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. + on(event: "online", listener: () => void): this; + + once(event: string, listener: (...args: any[]) => void): this; + once(event: "disconnect", listener: () => void): this; + once(event: "error", listener: (error: Error) => void): this; + once(event: "exit", listener: (code: number, signal: string) => void): this; + once(event: "listening", listener: (address: Address) => void): this; + once(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. + once(event: "online", listener: () => void): this; + + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: "disconnect", listener: () => void): this; + prependListener(event: "error", listener: (error: Error) => void): this; + prependListener(event: "exit", listener: (code: number, signal: string) => void): this; + prependListener(event: "listening", listener: (address: Address) => void): this; + prependListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. + prependListener(event: "online", listener: () => void): this; + + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: "disconnect", listener: () => void): this; + prependOnceListener(event: "error", listener: (error: Error) => void): this; + prependOnceListener(event: "exit", listener: (code: number, signal: string) => void): this; + prependOnceListener(event: "listening", listener: (address: Address) => void): this; + prependOnceListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. + prependOnceListener(event: "online", listener: () => void): this; + } + + interface Cluster extends EventEmitter { + Worker: Worker; + disconnect(callback?: () => void): void; + fork(env?: any): Worker; + isMaster: boolean; + isWorker: boolean; + // TODO: cluster.schedulingPolicy + settings: ClusterSettings; + setupMaster(settings?: ClusterSettings): void; + worker?: Worker | undefined; + workers?: { + [index: string]: Worker | undefined + } | undefined; + + /** + * events.EventEmitter + * 1. disconnect + * 2. exit + * 3. fork + * 4. listening + * 5. message + * 6. online + * 7. setup + */ + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: "disconnect", listener: (worker: Worker) => void): this; + addListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this; + addListener(event: "fork", listener: (worker: Worker) => void): this; + addListener(event: "listening", listener: (worker: Worker, address: Address) => void): this; + addListener(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. + addListener(event: "online", listener: (worker: Worker) => void): this; + addListener(event: "setup", listener: (settings: ClusterSettings) => void): this; + + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: "disconnect", worker: Worker): boolean; + emit(event: "exit", worker: Worker, code: number, signal: string): boolean; + emit(event: "fork", worker: Worker): boolean; + emit(event: "listening", worker: Worker, address: Address): boolean; + emit(event: "message", worker: Worker, message: any, handle: net.Socket | net.Server): boolean; + emit(event: "online", worker: Worker): boolean; + emit(event: "setup", settings: ClusterSettings): boolean; + + on(event: string, listener: (...args: any[]) => void): this; + on(event: "disconnect", listener: (worker: Worker) => void): this; + on(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this; + on(event: "fork", listener: (worker: Worker) => void): this; + on(event: "listening", listener: (worker: Worker, address: Address) => void): this; + on(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. + on(event: "online", listener: (worker: Worker) => void): this; + on(event: "setup", listener: (settings: ClusterSettings) => void): this; + + once(event: string, listener: (...args: any[]) => void): this; + once(event: "disconnect", listener: (worker: Worker) => void): this; + once(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this; + once(event: "fork", listener: (worker: Worker) => void): this; + once(event: "listening", listener: (worker: Worker, address: Address) => void): this; + once(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. + once(event: "online", listener: (worker: Worker) => void): this; + once(event: "setup", listener: (settings: ClusterSettings) => void): this; + + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: "disconnect", listener: (worker: Worker) => void): this; + prependListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this; + prependListener(event: "fork", listener: (worker: Worker) => void): this; + prependListener(event: "listening", listener: (worker: Worker, address: Address) => void): this; + prependListener(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. + prependListener(event: "online", listener: (worker: Worker) => void): this; + prependListener(event: "setup", listener: (settings: ClusterSettings) => void): this; + + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: "disconnect", listener: (worker: Worker) => void): this; + prependOnceListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this; + prependOnceListener(event: "fork", listener: (worker: Worker) => void): this; + prependOnceListener(event: "listening", listener: (worker: Worker, address: Address) => void): this; + // the handle is a net.Socket or net.Server object, or undefined. + prependOnceListener(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; + prependOnceListener(event: "online", listener: (worker: Worker) => void): this; + prependOnceListener(event: "setup", listener: (settings: ClusterSettings) => void): this; + } + + function disconnect(callback?: () => void): void; + function fork(env?: any): Worker; + const isMaster: boolean; + const isWorker: boolean; + // TODO: cluster.schedulingPolicy + const settings: ClusterSettings; + function setupMaster(settings?: ClusterSettings): void; + const worker: Worker; + const workers: { + [index: string]: Worker | undefined + }; + + /** + * events.EventEmitter + * 1. disconnect + * 2. exit + * 3. fork + * 4. listening + * 5. message + * 6. online + * 7. setup + */ + function addListener(event: string, listener: (...args: any[]) => void): Cluster; + function addListener(event: "disconnect", listener: (worker: Worker) => void): Cluster; + function addListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): Cluster; + function addListener(event: "fork", listener: (worker: Worker) => void): Cluster; + function addListener(event: "listening", listener: (worker: Worker, address: Address) => void): Cluster; + // the handle is a net.Socket or net.Server object, or undefined. + function addListener(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): Cluster; + function addListener(event: "online", listener: (worker: Worker) => void): Cluster; + function addListener(event: "setup", listener: (settings: ClusterSettings) => void): Cluster; + + function emit(event: string | symbol, ...args: any[]): boolean; + function emit(event: "disconnect", worker: Worker): boolean; + function emit(event: "exit", worker: Worker, code: number, signal: string): boolean; + function emit(event: "fork", worker: Worker): boolean; + function emit(event: "listening", worker: Worker, address: Address): boolean; + function emit(event: "message", worker: Worker, message: any, handle: net.Socket | net.Server): boolean; + function emit(event: "online", worker: Worker): boolean; + function emit(event: "setup", settings: ClusterSettings): boolean; + + function on(event: string, listener: (...args: any[]) => void): Cluster; + function on(event: "disconnect", listener: (worker: Worker) => void): Cluster; + function on(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): Cluster; + function on(event: "fork", listener: (worker: Worker) => void): Cluster; + function on(event: "listening", listener: (worker: Worker, address: Address) => void): Cluster; + function on(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): Cluster; // the handle is a net.Socket or net.Server object, or undefined. + function on(event: "online", listener: (worker: Worker) => void): Cluster; + function on(event: "setup", listener: (settings: ClusterSettings) => void): Cluster; + + function once(event: string, listener: (...args: any[]) => void): Cluster; + function once(event: "disconnect", listener: (worker: Worker) => void): Cluster; + function once(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): Cluster; + function once(event: "fork", listener: (worker: Worker) => void): Cluster; + function once(event: "listening", listener: (worker: Worker, address: Address) => void): Cluster; + function once(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): Cluster; // the handle is a net.Socket or net.Server object, or undefined. + function once(event: "online", listener: (worker: Worker) => void): Cluster; + function once(event: "setup", listener: (settings: ClusterSettings) => void): Cluster; + + function removeListener(event: string, listener: (...args: any[]) => void): Cluster; + function removeAllListeners(event?: string): Cluster; + function setMaxListeners(n: number): Cluster; + function getMaxListeners(): number; + function listeners(event: string): Function[]; + function listenerCount(type: string): number; + + function prependListener(event: string, listener: (...args: any[]) => void): Cluster; + function prependListener(event: "disconnect", listener: (worker: Worker) => void): Cluster; + function prependListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): Cluster; + function prependListener(event: "fork", listener: (worker: Worker) => void): Cluster; + function prependListener(event: "listening", listener: (worker: Worker, address: Address) => void): Cluster; + // the handle is a net.Socket or net.Server object, or undefined. + function prependListener(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): Cluster; + function prependListener(event: "online", listener: (worker: Worker) => void): Cluster; + function prependListener(event: "setup", listener: (settings: ClusterSettings) => void): Cluster; + + function prependOnceListener(event: string, listener: (...args: any[]) => void): Cluster; + function prependOnceListener(event: "disconnect", listener: (worker: Worker) => void): Cluster; + function prependOnceListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): Cluster; + function prependOnceListener(event: "fork", listener: (worker: Worker) => void): Cluster; + function prependOnceListener(event: "listening", listener: (worker: Worker, address: Address) => void): Cluster; + // the handle is a net.Socket or net.Server object, or undefined. + function prependOnceListener(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): Cluster; + function prependOnceListener(event: "online", listener: (worker: Worker) => void): Cluster; + function prependOnceListener(event: "setup", listener: (settings: ClusterSettings) => void): Cluster; + + function eventNames(): string[]; +} diff --git a/backend/node_modules/@types/node/console.d.ts b/backend/node_modules/@types/node/console.d.ts new file mode 100755 index 0000000..a679990 --- /dev/null +++ b/backend/node_modules/@types/node/console.d.ts @@ -0,0 +1,3 @@ +declare module 'console' { + export = console; +} diff --git a/backend/node_modules/@types/node/constants.d.ts b/backend/node_modules/@types/node/constants.d.ts new file mode 100755 index 0000000..3124fbd --- /dev/null +++ b/backend/node_modules/@types/node/constants.d.ts @@ -0,0 +1,448 @@ +/** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */ +declare module 'constants' { + /** @deprecated since v6.3.0 - use `os.constants.errno.E2BIG` instead. */ + const E2BIG: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EACCES` instead. */ + const EACCES: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EADDRINUSE` instead. */ + const EADDRINUSE: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EADDRNOTAVAIL` instead. */ + const EADDRNOTAVAIL: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EAFNOSUPPORT` instead. */ + const EAFNOSUPPORT: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EAGAIN` instead. */ + const EAGAIN: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EALREADY` instead. */ + const EALREADY: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EBADF` instead. */ + const EBADF: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EBADMSG` instead. */ + const EBADMSG: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EBUSY` instead. */ + const EBUSY: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ECANCELED` instead. */ + const ECANCELED: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ECHILD` instead. */ + const ECHILD: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ECONNABORTED` instead. */ + const ECONNABORTED: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ECONNREFUSED` instead. */ + const ECONNREFUSED: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ECONNRESET` instead. */ + const ECONNRESET: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EDEADLK` instead. */ + const EDEADLK: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EDESTADDRREQ` instead. */ + const EDESTADDRREQ: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EDOM` instead. */ + const EDOM: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EEXIST` instead. */ + const EEXIST: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EFAULT` instead. */ + const EFAULT: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EFBIG` instead. */ + const EFBIG: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EHOSTUNREACH` instead. */ + const EHOSTUNREACH: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EIDRM` instead. */ + const EIDRM: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EILSEQ` instead. */ + const EILSEQ: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EINPROGRESS` instead. */ + const EINPROGRESS: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EINTR` instead. */ + const EINTR: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EINVAL` instead. */ + const EINVAL: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EIO` instead. */ + const EIO: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EISCONN` instead. */ + const EISCONN: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EISDIR` instead. */ + const EISDIR: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ELOOP` instead. */ + const ELOOP: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EMFILE` instead. */ + const EMFILE: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EMLINK` instead. */ + const EMLINK: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EMSGSIZE` instead. */ + const EMSGSIZE: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ENAMETOOLONG` instead. */ + const ENAMETOOLONG: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ENETDOWN` instead. */ + const ENETDOWN: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ENETRESET` instead. */ + const ENETRESET: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ENETUNREACH` instead. */ + const ENETUNREACH: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ENFILE` instead. */ + const ENFILE: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ENOBUFS` instead. */ + const ENOBUFS: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ENODATA` instead. */ + const ENODATA: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ENODEV` instead. */ + const ENODEV: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ENOENT` instead. */ + const ENOENT: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ENOEXEC` instead. */ + const ENOEXEC: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ENOLCK` instead. */ + const ENOLCK: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ENOLINK` instead. */ + const ENOLINK: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ENOMEM` instead. */ + const ENOMEM: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ENOMSG` instead. */ + const ENOMSG: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ENOPROTOOPT` instead. */ + const ENOPROTOOPT: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ENOSPC` instead. */ + const ENOSPC: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ENOSR` instead. */ + const ENOSR: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ENOSTR` instead. */ + const ENOSTR: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ENOSYS` instead. */ + const ENOSYS: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ENOTCONN` instead. */ + const ENOTCONN: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ENOTDIR` instead. */ + const ENOTDIR: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ENOTEMPTY` instead. */ + const ENOTEMPTY: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ENOTSOCK` instead. */ + const ENOTSOCK: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ENOTSUP` instead. */ + const ENOTSUP: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ENOTTY` instead. */ + const ENOTTY: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ENXIO` instead. */ + const ENXIO: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EOPNOTSUPP` instead. */ + const EOPNOTSUPP: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EOVERFLOW` instead. */ + const EOVERFLOW: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EPERM` instead. */ + const EPERM: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EPIPE` instead. */ + const EPIPE: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EPROTO` instead. */ + const EPROTO: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EPROTONOSUPPORT` instead. */ + const EPROTONOSUPPORT: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EPROTOTYPE` instead. */ + const EPROTOTYPE: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ERANGE` instead. */ + const ERANGE: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EROFS` instead. */ + const EROFS: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ESPIPE` instead. */ + const ESPIPE: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ESRCH` instead. */ + const ESRCH: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ETIME` instead. */ + const ETIME: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ETIMEDOUT` instead. */ + const ETIMEDOUT: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.ETXTBSY` instead. */ + const ETXTBSY: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EWOULDBLOCK` instead. */ + const EWOULDBLOCK: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.EXDEV` instead. */ + const EXDEV: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEINTR` instead. */ + const WSAEINTR: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEBADF` instead. */ + const WSAEBADF: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEACCES` instead. */ + const WSAEACCES: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEFAULT` instead. */ + const WSAEFAULT: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEINVAL` instead. */ + const WSAEINVAL: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEMFILE` instead. */ + const WSAEMFILE: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEWOULDBLOCK` instead. */ + const WSAEWOULDBLOCK: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEINPROGRESS` instead. */ + const WSAEINPROGRESS: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEALREADY` instead. */ + const WSAEALREADY: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAENOTSOCK` instead. */ + const WSAENOTSOCK: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEDESTADDRREQ` instead. */ + const WSAEDESTADDRREQ: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEMSGSIZE` instead. */ + const WSAEMSGSIZE: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEPROTOTYPE` instead. */ + const WSAEPROTOTYPE: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAENOPROTOOPT` instead. */ + const WSAENOPROTOOPT: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEPROTONOSUPPORT` instead. */ + const WSAEPROTONOSUPPORT: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAESOCKTNOSUPPORT` instead. */ + const WSAESOCKTNOSUPPORT: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEOPNOTSUPP` instead. */ + const WSAEOPNOTSUPP: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEPFNOSUPPORT` instead. */ + const WSAEPFNOSUPPORT: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEAFNOSUPPORT` instead. */ + const WSAEAFNOSUPPORT: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEADDRINUSE` instead. */ + const WSAEADDRINUSE: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEADDRNOTAVAIL` instead. */ + const WSAEADDRNOTAVAIL: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAENETDOWN` instead. */ + const WSAENETDOWN: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAENETUNREACH` instead. */ + const WSAENETUNREACH: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAENETRESET` instead. */ + const WSAENETRESET: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAECONNABORTED` instead. */ + const WSAECONNABORTED: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAECONNRESET` instead. */ + const WSAECONNRESET: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAENOBUFS` instead. */ + const WSAENOBUFS: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEISCONN` instead. */ + const WSAEISCONN: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAENOTCONN` instead. */ + const WSAENOTCONN: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAESHUTDOWN` instead. */ + const WSAESHUTDOWN: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAETOOMANYREFS` instead. */ + const WSAETOOMANYREFS: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAETIMEDOUT` instead. */ + const WSAETIMEDOUT: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAECONNREFUSED` instead. */ + const WSAECONNREFUSED: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAELOOP` instead. */ + const WSAELOOP: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAENAMETOOLONG` instead. */ + const WSAENAMETOOLONG: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEHOSTDOWN` instead. */ + const WSAEHOSTDOWN: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEHOSTUNREACH` instead. */ + const WSAEHOSTUNREACH: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAENOTEMPTY` instead. */ + const WSAENOTEMPTY: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEPROCLIM` instead. */ + const WSAEPROCLIM: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEUSERS` instead. */ + const WSAEUSERS: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEDQUOT` instead. */ + const WSAEDQUOT: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAESTALE` instead. */ + const WSAESTALE: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEREMOTE` instead. */ + const WSAEREMOTE: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSASYSNOTREADY` instead. */ + const WSASYSNOTREADY: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAVERNOTSUPPORTED` instead. */ + const WSAVERNOTSUPPORTED: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSANOTINITIALISED` instead. */ + const WSANOTINITIALISED: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEDISCON` instead. */ + const WSAEDISCON: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAENOMORE` instead. */ + const WSAENOMORE: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAECANCELLED` instead. */ + const WSAECANCELLED: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEINVALIDPROCTABLE` instead. */ + const WSAEINVALIDPROCTABLE: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEINVALIDPROVIDER` instead. */ + const WSAEINVALIDPROVIDER: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEPROVIDERFAILEDINIT` instead. */ + const WSAEPROVIDERFAILEDINIT: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSASYSCALLFAILURE` instead. */ + const WSASYSCALLFAILURE: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSASERVICE_NOT_FOUND` instead. */ + const WSASERVICE_NOT_FOUND: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSATYPE_NOT_FOUND` instead. */ + const WSATYPE_NOT_FOUND: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSA_E_NO_MORE` instead. */ + const WSA_E_NO_MORE: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSA_E_CANCELLED` instead. */ + const WSA_E_CANCELLED: number; + /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEREFUSED` instead. */ + const WSAEREFUSED: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGHUP` instead. */ + const SIGHUP: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGINT` instead. */ + const SIGINT: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGILL` instead. */ + const SIGILL: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGABRT` instead. */ + const SIGABRT: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGFPE` instead. */ + const SIGFPE: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGKILL` instead. */ + const SIGKILL: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGSEGV` instead. */ + const SIGSEGV: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGTERM` instead. */ + const SIGTERM: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGBREAK` instead. */ + const SIGBREAK: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGWINCH` instead. */ + const SIGWINCH: number; + const SSL_OP_ALL: number; + const SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION: number; + const SSL_OP_CIPHER_SERVER_PREFERENCE: number; + const SSL_OP_CISCO_ANYCONNECT: number; + const SSL_OP_COOKIE_EXCHANGE: number; + const SSL_OP_CRYPTOPRO_TLSEXT_BUG: number; + const SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS: number; + const SSL_OP_EPHEMERAL_RSA: number; + const SSL_OP_LEGACY_SERVER_CONNECT: number; + const SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER: number; + const SSL_OP_MICROSOFT_SESS_ID_BUG: number; + const SSL_OP_MSIE_SSLV2_RSA_PADDING: number; + const SSL_OP_NETSCAPE_CA_DN_BUG: number; + const SSL_OP_NETSCAPE_CHALLENGE_BUG: number; + const SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG: number; + const SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG: number; + const SSL_OP_NO_COMPRESSION: number; + const SSL_OP_NO_QUERY_MTU: number; + const SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION: number; + const SSL_OP_NO_SSLv2: number; + const SSL_OP_NO_SSLv3: number; + const SSL_OP_NO_TICKET: number; + const SSL_OP_NO_TLSv1: number; + const SSL_OP_NO_TLSv1_1: number; + const SSL_OP_NO_TLSv1_2: number; + const SSL_OP_PKCS1_CHECK_1: number; + const SSL_OP_PKCS1_CHECK_2: number; + const SSL_OP_SINGLE_DH_USE: number; + const SSL_OP_SINGLE_ECDH_USE: number; + const SSL_OP_SSLEAY_080_CLIENT_DH_BUG: number; + const SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG: number; + const SSL_OP_TLS_BLOCK_PADDING_BUG: number; + const SSL_OP_TLS_D5_BUG: number; + const SSL_OP_TLS_ROLLBACK_BUG: number; + const ENGINE_METHOD_DSA: number; + const ENGINE_METHOD_DH: number; + const ENGINE_METHOD_RAND: number; + const ENGINE_METHOD_ECDH: number; + const ENGINE_METHOD_ECDSA: number; + const ENGINE_METHOD_CIPHERS: number; + const ENGINE_METHOD_DIGESTS: number; + const ENGINE_METHOD_STORE: number; + const ENGINE_METHOD_PKEY_METHS: number; + const ENGINE_METHOD_PKEY_ASN1_METHS: number; + const ENGINE_METHOD_ALL: number; + const ENGINE_METHOD_NONE: number; + const DH_CHECK_P_NOT_SAFE_PRIME: number; + const DH_CHECK_P_NOT_PRIME: number; + const DH_UNABLE_TO_CHECK_GENERATOR: number; + const DH_NOT_SUITABLE_GENERATOR: number; + const RSA_PKCS1_PADDING: number; + const RSA_SSLV23_PADDING: number; + const RSA_NO_PADDING: number; + const RSA_PKCS1_OAEP_PADDING: number; + const RSA_X931_PADDING: number; + const RSA_PKCS1_PSS_PADDING: number; + const POINT_CONVERSION_COMPRESSED: number; + const POINT_CONVERSION_UNCOMPRESSED: number; + const POINT_CONVERSION_HYBRID: number; + const O_RDONLY: number; + const O_WRONLY: number; + const O_RDWR: number; + const S_IFMT: number; + const S_IFREG: number; + const S_IFDIR: number; + const S_IFCHR: number; + const S_IFBLK: number; + const S_IFIFO: number; + const S_IFSOCK: number; + const S_IRWXU: number; + const S_IRUSR: number; + const S_IWUSR: number; + const S_IXUSR: number; + const S_IRWXG: number; + const S_IRGRP: number; + const S_IWGRP: number; + const S_IXGRP: number; + const S_IRWXO: number; + const S_IROTH: number; + const S_IWOTH: number; + const S_IXOTH: number; + const S_IFLNK: number; + const O_CREAT: number; + const O_EXCL: number; + const O_NOCTTY: number; + const O_DIRECTORY: number; + const O_NOATIME: number; + const O_NOFOLLOW: number; + const O_SYNC: number; + const O_DSYNC: number; + const O_SYMLINK: number; + const O_DIRECT: number; + const O_NONBLOCK: number; + const O_TRUNC: number; + const O_APPEND: number; + const F_OK: number; + const R_OK: number; + const W_OK: number; + const X_OK: number; + const COPYFILE_EXCL: number; + const COPYFILE_FICLONE: number; + const COPYFILE_FICLONE_FORCE: number; + const UV_UDP_REUSEADDR: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGQUIT` instead. */ + const SIGQUIT: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGTRAP` instead. */ + const SIGTRAP: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGIOT` instead. */ + const SIGIOT: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGBUS` instead. */ + const SIGBUS: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGUSR1` instead. */ + const SIGUSR1: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGUSR2` instead. */ + const SIGUSR2: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGPIPE` instead. */ + const SIGPIPE: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGALRM` instead. */ + const SIGALRM: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGCHLD` instead. */ + const SIGCHLD: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGSTKFLT` instead. */ + const SIGSTKFLT: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGCONT` instead. */ + const SIGCONT: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGSTOP` instead. */ + const SIGSTOP: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGTSTP` instead. */ + const SIGTSTP: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGTTIN` instead. */ + const SIGTTIN: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGTTOU` instead. */ + const SIGTTOU: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGURG` instead. */ + const SIGURG: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGXCPU` instead. */ + const SIGXCPU: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGXFSZ` instead. */ + const SIGXFSZ: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGVTALRM` instead. */ + const SIGVTALRM: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGPROF` instead. */ + const SIGPROF: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGIO` instead. */ + const SIGIO: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGPOLL` instead. */ + const SIGPOLL: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGPWR` instead. */ + const SIGPWR: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGSYS` instead. */ + const SIGSYS: number; + /** @deprecated since v6.3.0 - use `os.constants.signals.SIGUNUSED` instead. */ + const SIGUNUSED: number; + const defaultCoreCipherList: string; + const defaultCipherList: string; + const ENGINE_METHOD_RSA: number; + const ALPN_ENABLED: number; +} diff --git a/backend/node_modules/@types/node/crypto.d.ts b/backend/node_modules/@types/node/crypto.d.ts new file mode 100755 index 0000000..77ec570 --- /dev/null +++ b/backend/node_modules/@types/node/crypto.d.ts @@ -0,0 +1,1183 @@ +declare module 'crypto' { + import * as stream from 'stream'; + + interface Certificate { + exportChallenge(spkac: BinaryLike): Buffer; + exportPublicKey(spkac: BinaryLike): Buffer; + verifySpkac(spkac: NodeJS.ArrayBufferView): boolean; + } + const Certificate: { + new (): Certificate; + (): Certificate; + }; + + namespace constants { + // https://nodejs.org/dist/latest-v10.x/docs/api/crypto.html#crypto_crypto_constants + const OPENSSL_VERSION_NUMBER: number; + + /** Applies multiple bug workarounds within OpenSSL. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html for detail. */ + const SSL_OP_ALL: number; + /** Allows legacy insecure renegotiation between OpenSSL and unpatched clients or servers. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */ + const SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION: number; + /** Attempts to use the server's preferences instead of the client's when selecting a cipher. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */ + const SSL_OP_CIPHER_SERVER_PREFERENCE: number; + /** Instructs OpenSSL to use Cisco's "speshul" version of DTLS_BAD_VER. */ + const SSL_OP_CISCO_ANYCONNECT: number; + /** Instructs OpenSSL to turn on cookie exchange. */ + const SSL_OP_COOKIE_EXCHANGE: number; + /** Instructs OpenSSL to add server-hello extension from an early version of the cryptopro draft. */ + const SSL_OP_CRYPTOPRO_TLSEXT_BUG: number; + /** Instructs OpenSSL to disable a SSL 3.0/TLS 1.0 vulnerability workaround added in OpenSSL 0.9.6d. */ + const SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS: number; + /** Instructs OpenSSL to always use the tmp_rsa key when performing RSA operations. */ + const SSL_OP_EPHEMERAL_RSA: number; + /** Allows initial connection to servers that do not support RI. */ + const SSL_OP_LEGACY_SERVER_CONNECT: number; + const SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER: number; + const SSL_OP_MICROSOFT_SESS_ID_BUG: number; + /** Instructs OpenSSL to disable the workaround for a man-in-the-middle protocol-version vulnerability in the SSL 2.0 server implementation. */ + const SSL_OP_MSIE_SSLV2_RSA_PADDING: number; + const SSL_OP_NETSCAPE_CA_DN_BUG: number; + const SSL_OP_NETSCAPE_CHALLENGE_BUG: number; + const SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG: number; + const SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG: number; + /** Instructs OpenSSL to disable support for SSL/TLS compression. */ + const SSL_OP_NO_COMPRESSION: number; + const SSL_OP_NO_QUERY_MTU: number; + /** Instructs OpenSSL to always start a new session when performing renegotiation. */ + const SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION: number; + const SSL_OP_NO_SSLv2: number; + const SSL_OP_NO_SSLv3: number; + const SSL_OP_NO_TICKET: number; + const SSL_OP_NO_TLSv1: number; + const SSL_OP_NO_TLSv1_1: number; + const SSL_OP_NO_TLSv1_2: number; + const SSL_OP_PKCS1_CHECK_1: number; + const SSL_OP_PKCS1_CHECK_2: number; + /** Instructs OpenSSL to always create a new key when using temporary/ephemeral DH parameters. */ + const SSL_OP_SINGLE_DH_USE: number; + /** Instructs OpenSSL to always create a new key when using temporary/ephemeral ECDH parameters. */ + const SSL_OP_SINGLE_ECDH_USE: number; + const SSL_OP_SSLEAY_080_CLIENT_DH_BUG: number; + const SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG: number; + const SSL_OP_TLS_BLOCK_PADDING_BUG: number; + const SSL_OP_TLS_D5_BUG: number; + /** Instructs OpenSSL to disable version rollback attack detection. */ + const SSL_OP_TLS_ROLLBACK_BUG: number; + + const ENGINE_METHOD_RSA: number; + const ENGINE_METHOD_DSA: number; + const ENGINE_METHOD_DH: number; + const ENGINE_METHOD_RAND: number; + const ENGINE_METHOD_EC: number; + const ENGINE_METHOD_CIPHERS: number; + const ENGINE_METHOD_DIGESTS: number; + const ENGINE_METHOD_PKEY_METHS: number; + const ENGINE_METHOD_PKEY_ASN1_METHS: number; + const ENGINE_METHOD_ALL: number; + const ENGINE_METHOD_NONE: number; + + const DH_CHECK_P_NOT_SAFE_PRIME: number; + const DH_CHECK_P_NOT_PRIME: number; + const DH_UNABLE_TO_CHECK_GENERATOR: number; + const DH_NOT_SUITABLE_GENERATOR: number; + + const ALPN_ENABLED: number; + + const RSA_PKCS1_PADDING: number; + const RSA_SSLV23_PADDING: number; + const RSA_NO_PADDING: number; + const RSA_PKCS1_OAEP_PADDING: number; + const RSA_X931_PADDING: number; + const RSA_PKCS1_PSS_PADDING: number; + /** Sets the salt length for RSA_PKCS1_PSS_PADDING to the digest size when signing or verifying. */ + const RSA_PSS_SALTLEN_DIGEST: number; + /** Sets the salt length for RSA_PKCS1_PSS_PADDING to the maximum permissible value when signing data. */ + const RSA_PSS_SALTLEN_MAX_SIGN: number; + /** Causes the salt length for RSA_PKCS1_PSS_PADDING to be determined automatically when verifying a signature. */ + const RSA_PSS_SALTLEN_AUTO: number; + + const POINT_CONVERSION_COMPRESSED: number; + const POINT_CONVERSION_UNCOMPRESSED: number; + const POINT_CONVERSION_HYBRID: number; + + /** Specifies the built-in default cipher list used by Node.js (colon-separated values). */ + const defaultCoreCipherList: string; + /** Specifies the active default cipher list used by the current Node.js process (colon-separated values). */ + const defaultCipherList: string; + } + + interface HashOptions extends stream.TransformOptions { + /** + * For XOF hash functions such as `shake256`, the + * outputLength option can be used to specify the desired output length in bytes. + */ + outputLength?: number | undefined; + } + + /** @deprecated since v10.0.0 */ + const fips: boolean; + + function createHash(algorithm: string, options?: HashOptions): Hash; + function createHmac(algorithm: string, key: BinaryLike, options?: stream.TransformOptions): Hmac; + + type Utf8AsciiLatin1Encoding = 'utf8' | 'ascii' | 'latin1'; + type HexBase64Latin1Encoding = 'latin1' | 'hex' | 'base64'; + type Utf8AsciiBinaryEncoding = 'utf8' | 'ascii' | 'binary'; + type HexBase64BinaryEncoding = 'binary' | 'base64' | 'hex'; + type ECDHKeyFormat = 'compressed' | 'uncompressed' | 'hybrid'; + + class Hash extends stream.Transform { + private constructor(); + update(data: BinaryLike): Hash; + update(data: string, input_encoding: Utf8AsciiLatin1Encoding): Hash; + digest(): Buffer; + digest(encoding: HexBase64Latin1Encoding): string; + } + class Hmac extends stream.Transform { + private constructor(); + update(data: BinaryLike): Hmac; + update(data: string, input_encoding: Utf8AsciiLatin1Encoding): Hmac; + digest(): Buffer; + digest(encoding: HexBase64Latin1Encoding): string; + } + + type KeyObjectType = 'secret' | 'public' | 'private'; + + interface KeyExportOptions { + type: 'pkcs1' | 'spki' | 'pkcs8' | 'sec1'; + format: T; + cipher?: string | undefined; + passphrase?: string | Buffer | undefined; + } + + class KeyObject { + private constructor(); + asymmetricKeyType?: KeyType | undefined; + /** + * For asymmetric keys, this property represents the size of the embedded key in + * bytes. This property is `undefined` for symmetric keys. + */ + asymmetricKeySize?: number | undefined; + export(options: KeyExportOptions<'pem'>): string | Buffer; + export(options?: KeyExportOptions<'der'>): Buffer; + symmetricKeySize?: number | undefined; + type: KeyObjectType; + } + + type CipherCCMTypes = 'aes-128-ccm' | 'aes-192-ccm' | 'aes-256-ccm'; + type CipherGCMTypes = 'aes-128-gcm' | 'aes-192-gcm' | 'aes-256-gcm'; + type CipherOCBTypes = 'aes-128-ocb' | 'aes-192-ocb' | 'aes-256-ocb'; + + type BinaryLike = string | NodeJS.ArrayBufferView; + + type CipherKey = BinaryLike | KeyObject; + + interface CipherCCMOptions extends stream.TransformOptions { + authTagLength: number; + } + interface CipherGCMOptions extends stream.TransformOptions { + authTagLength?: number | undefined; + } + interface CipherOCBOptions extends stream.TransformOptions { + authTagLength: number; + } + /** @deprecated since v10.0.0 use createCipheriv() */ + function createCipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): CipherCCM; + /** @deprecated since v10.0.0 use createCipheriv() */ + function createCipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): CipherGCM; + /** @deprecated since v10.0.0 use createCipheriv() */ + function createCipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Cipher; + + function createCipheriv( + algorithm: CipherCCMTypes, + key: CipherKey, + iv: BinaryLike, + options: CipherCCMOptions, + ): CipherCCM; + function createCipheriv( + algorithm: CipherOCBTypes, + key: CipherKey, + iv: BinaryLike, + options: CipherOCBOptions, + ): CipherOCB; + function createCipheriv( + algorithm: CipherGCMTypes, + key: CipherKey, + iv: BinaryLike, + options?: CipherGCMOptions, + ): CipherGCM; + function createCipheriv( + algorithm: string, + key: CipherKey, + iv: BinaryLike | null, + options?: stream.TransformOptions, + ): Cipher; + + class Cipher extends stream.Transform { + private constructor(); + update(data: BinaryLike): Buffer; + update(data: string, input_encoding: Utf8AsciiBinaryEncoding): Buffer; + update( + data: NodeJS.ArrayBufferView, + input_encoding: undefined, + output_encoding: HexBase64BinaryEncoding, + ): string; + update( + data: string, + input_encoding: Utf8AsciiBinaryEncoding | undefined, + output_encoding: HexBase64BinaryEncoding, + ): string; + final(): Buffer; + final(output_encoding: string): string; + setAutoPadding(auto_padding?: boolean): this; + // getAuthTag(): Buffer; + // setAAD(buffer: NodeJS.ArrayBufferView): this; + } + interface CipherCCM extends Cipher { + setAAD(buffer: NodeJS.ArrayBufferView, options: { plaintextLength: number }): this; + getAuthTag(): Buffer; + } + interface CipherGCM extends Cipher { + setAAD(buffer: NodeJS.ArrayBufferView, options?: { plaintextLength: number }): this; + getAuthTag(): Buffer; + } + interface CipherOCB extends Cipher { + setAAD(buffer: NodeJS.ArrayBufferView, options?: { plaintextLength: number }): this; + getAuthTag(): Buffer; + } + /** @deprecated since v10.0.0 use createDecipheriv() */ + function createDecipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): DecipherCCM; + /** @deprecated since v10.0.0 use createDecipheriv() */ + function createDecipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): DecipherGCM; + /** @deprecated since v10.0.0 use createDecipheriv() */ + function createDecipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Decipher; + + function createDecipheriv( + algorithm: CipherCCMTypes, + key: BinaryLike, + iv: BinaryLike, + options: CipherCCMOptions, + ): DecipherCCM; + function createDecipheriv( + algorithm: CipherOCBTypes, + key: BinaryLike, + iv: BinaryLike, + options: CipherOCBOptions, + ): DecipherOCB; + function createDecipheriv( + algorithm: CipherGCMTypes, + key: BinaryLike, + iv: BinaryLike, + options?: CipherGCMOptions, + ): DecipherGCM; + function createDecipheriv( + algorithm: string, + key: BinaryLike, + iv: BinaryLike | null, + options?: stream.TransformOptions, + ): Decipher; + + class Decipher extends stream.Transform { + private constructor(); + update(data: NodeJS.ArrayBufferView): Buffer; + update(data: string, input_encoding: HexBase64BinaryEncoding): Buffer; + update( + data: NodeJS.ArrayBufferView, + input_encoding: HexBase64BinaryEncoding | undefined, + output_encoding: Utf8AsciiBinaryEncoding, + ): string; + update( + data: string, + input_encoding: HexBase64BinaryEncoding | undefined, + output_encoding: Utf8AsciiBinaryEncoding, + ): string; + final(): Buffer; + final(output_encoding: string): string; + setAutoPadding(auto_padding?: boolean): this; + // setAuthTag(tag: NodeJS.ArrayBufferView): this; + // setAAD(buffer: NodeJS.ArrayBufferView): this; + } + interface DecipherCCM extends Decipher { + setAuthTag(buffer: NodeJS.ArrayBufferView): this; + setAAD(buffer: NodeJS.ArrayBufferView, options: { plaintextLength: number }): this; + } + interface DecipherGCM extends Decipher { + setAuthTag(buffer: NodeJS.ArrayBufferView): this; + setAAD(buffer: NodeJS.ArrayBufferView, options?: { plaintextLength: number }): this; + } + interface DecipherOCB extends Decipher { + setAuthTag(buffer: NodeJS.ArrayBufferView): this; + setAAD(buffer: NodeJS.ArrayBufferView, options?: { plaintextLength: number }): this; + } + + interface PrivateKeyInput { + key: string | Buffer; + format?: KeyFormat | undefined; + type?: 'pkcs1' | 'pkcs8' | 'sec1' | undefined; + passphrase?: string | Buffer | undefined; + } + + interface PublicKeyInput { + key: string | Buffer; + format?: KeyFormat | undefined; + type?: 'pkcs1' | 'spki' | undefined; + } + + function createPrivateKey(key: PrivateKeyInput | string | Buffer): KeyObject; + function createPublicKey(key: PublicKeyInput | string | Buffer | KeyObject): KeyObject; + function createSecretKey(key: NodeJS.ArrayBufferView): KeyObject; + + function createSign(algorithm: string, options?: stream.WritableOptions): Signer; + + type DSAEncoding = 'der' | 'ieee-p1363'; + + interface SigningOptions { + /** + * @See crypto.constants.RSA_PKCS1_PADDING + */ + padding?: number | undefined; + saltLength?: number | undefined; + dsaEncoding?: DSAEncoding | undefined; + } + + interface SignPrivateKeyInput extends PrivateKeyInput, SigningOptions {} + interface SignKeyObjectInput extends SigningOptions { + key: KeyObject; + } + interface VerifyPublicKeyInput extends PublicKeyInput, SigningOptions {} + interface VerifyKeyObjectInput extends SigningOptions { + key: KeyObject; + } + + type KeyLike = string | Buffer | KeyObject; + + class Signer extends stream.Writable { + private constructor(); + + update(data: BinaryLike): Signer; + update(data: string, input_encoding: Utf8AsciiLatin1Encoding): Signer; + sign(private_key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput): Buffer; + sign( + private_key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput, + output_format: HexBase64Latin1Encoding, + ): string; + } + + function createVerify(algorithm: string, options?: stream.WritableOptions): Verify; + class Verify extends stream.Writable { + private constructor(); + + update(data: BinaryLike): Verify; + update(data: string, input_encoding: Utf8AsciiLatin1Encoding): Verify; + verify( + object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, + signature: NodeJS.ArrayBufferView, + ): boolean; + verify( + object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, + signature: string, + signature_format?: HexBase64Latin1Encoding, + ): boolean; + // https://nodejs.org/api/crypto.html#crypto_verifier_verify_object_signature_signature_format + // The signature field accepts a TypedArray type, but it is only available starting ES2017 + } + function createDiffieHellman(prime_length: number, generator?: number | NodeJS.ArrayBufferView): DiffieHellman; + function createDiffieHellman(prime: NodeJS.ArrayBufferView): DiffieHellman; + function createDiffieHellman(prime: string, prime_encoding: HexBase64Latin1Encoding): DiffieHellman; + function createDiffieHellman( + prime: string, + prime_encoding: HexBase64Latin1Encoding, + generator: number | NodeJS.ArrayBufferView, + ): DiffieHellman; + function createDiffieHellman( + prime: string, + prime_encoding: HexBase64Latin1Encoding, + generator: string, + generator_encoding: HexBase64Latin1Encoding, + ): DiffieHellman; + class DiffieHellman { + private constructor(); + generateKeys(): Buffer; + generateKeys(encoding: HexBase64Latin1Encoding): string; + computeSecret(other_public_key: NodeJS.ArrayBufferView): Buffer; + computeSecret(other_public_key: string, input_encoding: HexBase64Latin1Encoding): Buffer; + computeSecret(other_public_key: NodeJS.ArrayBufferView, output_encoding: HexBase64Latin1Encoding): string; + computeSecret( + other_public_key: string, + input_encoding: HexBase64Latin1Encoding, + output_encoding: HexBase64Latin1Encoding, + ): string; + getPrime(): Buffer; + getPrime(encoding: HexBase64Latin1Encoding): string; + getGenerator(): Buffer; + getGenerator(encoding: HexBase64Latin1Encoding): string; + getPublicKey(): Buffer; + getPublicKey(encoding: HexBase64Latin1Encoding): string; + getPrivateKey(): Buffer; + getPrivateKey(encoding: HexBase64Latin1Encoding): string; + setPublicKey(public_key: NodeJS.ArrayBufferView): void; + setPublicKey(public_key: string, encoding: string): void; + setPrivateKey(private_key: NodeJS.ArrayBufferView): void; + setPrivateKey(private_key: string, encoding: string): void; + verifyError: number; + } + function getDiffieHellman(group_name: string): DiffieHellman; + function pbkdf2( + password: BinaryLike, + salt: BinaryLike, + iterations: number, + keylen: number, + digest: string, + callback: (err: Error | null, derivedKey: Buffer) => any, + ): void; + function pbkdf2Sync( + password: BinaryLike, + salt: BinaryLike, + iterations: number, + keylen: number, + digest: string, + ): Buffer; + + function randomBytes(size: number): Buffer; + function randomBytes(size: number, callback: (err: Error | null, buf: Buffer) => void): void; + function pseudoRandomBytes(size: number): Buffer; + function pseudoRandomBytes(size: number, callback: (err: Error | null, buf: Buffer) => void): void; + + function randomInt(max: number): number; + function randomInt(min: number, max: number): number; + function randomInt(max: number, callback: (err: Error | null, value: number) => void): void; + function randomInt(min: number, max: number, callback: (err: Error | null, value: number) => void): void; + + function randomFillSync(buffer: T, offset?: number, size?: number): T; + function randomFill( + buffer: T, + callback: (err: Error | null, buf: T) => void, + ): void; + function randomFill( + buffer: T, + offset: number, + callback: (err: Error | null, buf: T) => void, + ): void; + function randomFill( + buffer: T, + offset: number, + size: number, + callback: (err: Error | null, buf: T) => void, + ): void; + + interface ScryptOptions { + cost?: number | undefined; + blockSize?: number | undefined; + parallelization?: number | undefined; + N?: number | undefined; + r?: number | undefined; + p?: number | undefined; + maxmem?: number | undefined; + } + function scrypt( + password: BinaryLike, + salt: BinaryLike, + keylen: number, + callback: (err: Error | null, derivedKey: Buffer) => void, + ): void; + function scrypt( + password: BinaryLike, + salt: BinaryLike, + keylen: number, + options: ScryptOptions, + callback: (err: Error | null, derivedKey: Buffer) => void, + ): void; + function scryptSync(password: BinaryLike, salt: BinaryLike, keylen: number, options?: ScryptOptions): Buffer; + + interface RsaPublicKey { + key: KeyLike; + padding?: number | undefined; + } + interface RsaPrivateKey { + key: KeyLike; + passphrase?: string | undefined; + /** + * @default 'sha1' + */ + oaepHash?: string | undefined; + oaepLabel?: NodeJS.TypedArray | undefined; + padding?: number | undefined; + } + function publicEncrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer; + function publicDecrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer; + function privateDecrypt(private_key: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer; + function privateEncrypt(private_key: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer; + function getCiphers(): string[]; + function getCurves(): string[]; + function getFips(): 1 | 0; + function getHashes(): string[]; + class ECDH { + private constructor(); + static convertKey( + key: BinaryLike, + curve: string, + inputEncoding?: HexBase64Latin1Encoding, + outputEncoding?: 'latin1' | 'hex' | 'base64', + format?: 'uncompressed' | 'compressed' | 'hybrid', + ): Buffer | string; + generateKeys(): Buffer; + generateKeys(encoding: HexBase64Latin1Encoding, format?: ECDHKeyFormat): string; + computeSecret(other_public_key: NodeJS.ArrayBufferView): Buffer; + computeSecret(other_public_key: string, input_encoding: HexBase64Latin1Encoding): Buffer; + computeSecret(other_public_key: NodeJS.ArrayBufferView, output_encoding: HexBase64Latin1Encoding): string; + computeSecret( + other_public_key: string, + input_encoding: HexBase64Latin1Encoding, + output_encoding: HexBase64Latin1Encoding, + ): string; + getPrivateKey(): Buffer; + getPrivateKey(encoding: HexBase64Latin1Encoding): string; + getPublicKey(): Buffer; + getPublicKey(encoding: HexBase64Latin1Encoding, format?: ECDHKeyFormat): string; + setPrivateKey(private_key: NodeJS.ArrayBufferView): void; + setPrivateKey(private_key: string, encoding: HexBase64Latin1Encoding): void; + } + function createECDH(curve_name: string): ECDH; + function timingSafeEqual(a: NodeJS.ArrayBufferView, b: NodeJS.ArrayBufferView): boolean; + /** @deprecated since v10.0.0 */ + const DEFAULT_ENCODING: string; + + type KeyType = 'rsa' | 'dsa' | 'ec' | 'ed25519' | 'ed448' | 'x25519' | 'x448'; + type KeyFormat = 'pem' | 'der'; + + interface BasePrivateKeyEncodingOptions { + format: T; + cipher?: string | undefined; + passphrase?: string | undefined; + } + + interface KeyPairKeyObjectResult { + publicKey: KeyObject; + privateKey: KeyObject; + } + + interface ED25519KeyPairKeyObjectOptions { + /** + * No options. + */ + } + + interface ED448KeyPairKeyObjectOptions { + /** + * No options. + */ + } + + interface X25519KeyPairKeyObjectOptions { + /** + * No options. + */ + } + + interface X448KeyPairKeyObjectOptions { + /** + * No options. + */ + } + + interface ECKeyPairKeyObjectOptions { + /** + * Name of the curve to use. + */ + namedCurve: string; + } + + interface RSAKeyPairKeyObjectOptions { + /** + * Key size in bits + */ + modulusLength: number; + + /** + * @default 0x10001 + */ + publicExponent?: number | undefined; + } + + interface DSAKeyPairKeyObjectOptions { + /** + * Key size in bits + */ + modulusLength: number; + + /** + * Size of q in bits + */ + divisorLength: number; + } + + interface RSAKeyPairOptions { + /** + * Key size in bits + */ + modulusLength: number; + /** + * @default 0x10001 + */ + publicExponent?: number | undefined; + + publicKeyEncoding: { + type: 'pkcs1' | 'spki'; + format: PubF; + }; + privateKeyEncoding: BasePrivateKeyEncodingOptions & { + type: 'pkcs1' | 'pkcs8'; + }; + } + + interface DSAKeyPairOptions { + /** + * Key size in bits + */ + modulusLength: number; + /** + * Size of q in bits + */ + divisorLength: number; + + publicKeyEncoding: { + type: 'spki'; + format: PubF; + }; + privateKeyEncoding: BasePrivateKeyEncodingOptions & { + type: 'pkcs8'; + }; + } + + interface ECKeyPairOptions { + /** + * Name of the curve to use. + */ + namedCurve: string; + + publicKeyEncoding: { + type: 'pkcs1' | 'spki'; + format: PubF; + }; + privateKeyEncoding: BasePrivateKeyEncodingOptions & { + type: 'sec1' | 'pkcs8'; + }; + } + + interface ED25519KeyPairOptions { + publicKeyEncoding: { + type: 'spki'; + format: PubF; + }; + privateKeyEncoding: BasePrivateKeyEncodingOptions & { + type: 'pkcs8'; + }; + } + + interface ED448KeyPairOptions { + publicKeyEncoding: { + type: 'spki'; + format: PubF; + }; + privateKeyEncoding: BasePrivateKeyEncodingOptions & { + type: 'pkcs8'; + }; + } + + interface X25519KeyPairOptions { + publicKeyEncoding: { + type: 'spki'; + format: PubF; + }; + privateKeyEncoding: BasePrivateKeyEncodingOptions & { + type: 'pkcs8'; + }; + } + + interface X448KeyPairOptions { + publicKeyEncoding: { + type: 'spki'; + format: PubF; + }; + privateKeyEncoding: BasePrivateKeyEncodingOptions & { + type: 'pkcs8'; + }; + } + + interface KeyPairSyncResult { + publicKey: T1; + privateKey: T2; + } + + function generateKeyPairSync( + type: 'rsa', + options: RSAKeyPairOptions<'pem', 'pem'>, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: 'rsa', + options: RSAKeyPairOptions<'pem', 'der'>, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: 'rsa', + options: RSAKeyPairOptions<'der', 'pem'>, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: 'rsa', + options: RSAKeyPairOptions<'der', 'der'>, + ): KeyPairSyncResult; + function generateKeyPairSync(type: 'rsa', options: RSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult; + + function generateKeyPairSync( + type: 'dsa', + options: DSAKeyPairOptions<'pem', 'pem'>, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: 'dsa', + options: DSAKeyPairOptions<'pem', 'der'>, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: 'dsa', + options: DSAKeyPairOptions<'der', 'pem'>, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: 'dsa', + options: DSAKeyPairOptions<'der', 'der'>, + ): KeyPairSyncResult; + function generateKeyPairSync(type: 'dsa', options: DSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult; + + function generateKeyPairSync( + type: 'ec', + options: ECKeyPairOptions<'pem', 'pem'>, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: 'ec', + options: ECKeyPairOptions<'pem', 'der'>, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: 'ec', + options: ECKeyPairOptions<'der', 'pem'>, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: 'ec', + options: ECKeyPairOptions<'der', 'der'>, + ): KeyPairSyncResult; + function generateKeyPairSync(type: 'ec', options: ECKeyPairKeyObjectOptions): KeyPairKeyObjectResult; + + function generateKeyPairSync( + type: 'ed25519', + options: ED25519KeyPairOptions<'pem', 'pem'>, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: 'ed25519', + options: ED25519KeyPairOptions<'pem', 'der'>, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: 'ed25519', + options: ED25519KeyPairOptions<'der', 'pem'>, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: 'ed25519', + options: ED25519KeyPairOptions<'der', 'der'>, + ): KeyPairSyncResult; + function generateKeyPairSync(type: 'ed25519', options?: ED25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult; + + function generateKeyPairSync( + type: 'ed448', + options: ED448KeyPairOptions<'pem', 'pem'>, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: 'ed448', + options: ED448KeyPairOptions<'pem', 'der'>, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: 'ed448', + options: ED448KeyPairOptions<'der', 'pem'>, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: 'ed448', + options: ED448KeyPairOptions<'der', 'der'>, + ): KeyPairSyncResult; + function generateKeyPairSync(type: 'ed448', options?: ED448KeyPairKeyObjectOptions): KeyPairKeyObjectResult; + + function generateKeyPairSync( + type: 'x25519', + options: X25519KeyPairOptions<'pem', 'pem'>, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: 'x25519', + options: X25519KeyPairOptions<'pem', 'der'>, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: 'x25519', + options: X25519KeyPairOptions<'der', 'pem'>, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: 'x25519', + options: X25519KeyPairOptions<'der', 'der'>, + ): KeyPairSyncResult; + function generateKeyPairSync(type: 'x25519', options?: X25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult; + + function generateKeyPairSync( + type: 'x448', + options: X448KeyPairOptions<'pem', 'pem'>, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: 'x448', + options: X448KeyPairOptions<'pem', 'der'>, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: 'x448', + options: X448KeyPairOptions<'der', 'pem'>, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: 'x448', + options: X448KeyPairOptions<'der', 'der'>, + ): KeyPairSyncResult; + function generateKeyPairSync(type: 'x448', options?: X448KeyPairKeyObjectOptions): KeyPairKeyObjectResult; + + function generateKeyPair( + type: 'rsa', + options: RSAKeyPairOptions<'pem', 'pem'>, + callback: (err: Error | null, publicKey: string, privateKey: string) => void, + ): void; + function generateKeyPair( + type: 'rsa', + options: RSAKeyPairOptions<'pem', 'der'>, + callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void, + ): void; + function generateKeyPair( + type: 'rsa', + options: RSAKeyPairOptions<'der', 'pem'>, + callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void, + ): void; + function generateKeyPair( + type: 'rsa', + options: RSAKeyPairOptions<'der', 'der'>, + callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void, + ): void; + function generateKeyPair( + type: 'rsa', + options: RSAKeyPairKeyObjectOptions, + callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, + ): void; + + function generateKeyPair( + type: 'dsa', + options: DSAKeyPairOptions<'pem', 'pem'>, + callback: (err: Error | null, publicKey: string, privateKey: string) => void, + ): void; + function generateKeyPair( + type: 'dsa', + options: DSAKeyPairOptions<'pem', 'der'>, + callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void, + ): void; + function generateKeyPair( + type: 'dsa', + options: DSAKeyPairOptions<'der', 'pem'>, + callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void, + ): void; + function generateKeyPair( + type: 'dsa', + options: DSAKeyPairOptions<'der', 'der'>, + callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void, + ): void; + function generateKeyPair( + type: 'dsa', + options: DSAKeyPairKeyObjectOptions, + callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, + ): void; + + function generateKeyPair( + type: 'ec', + options: ECKeyPairOptions<'pem', 'pem'>, + callback: (err: Error | null, publicKey: string, privateKey: string) => void, + ): void; + function generateKeyPair( + type: 'ec', + options: ECKeyPairOptions<'pem', 'der'>, + callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void, + ): void; + function generateKeyPair( + type: 'ec', + options: ECKeyPairOptions<'der', 'pem'>, + callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void, + ): void; + function generateKeyPair( + type: 'ec', + options: ECKeyPairOptions<'der', 'der'>, + callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void, + ): void; + function generateKeyPair( + type: 'ec', + options: ECKeyPairKeyObjectOptions, + callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, + ): void; + + function generateKeyPair( + type: 'ed25519', + options: ED25519KeyPairOptions<'pem', 'pem'>, + callback: (err: Error | null, publicKey: string, privateKey: string) => void, + ): void; + function generateKeyPair( + type: 'ed25519', + options: ED25519KeyPairOptions<'pem', 'der'>, + callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void, + ): void; + function generateKeyPair( + type: 'ed25519', + options: ED25519KeyPairOptions<'der', 'pem'>, + callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void, + ): void; + function generateKeyPair( + type: 'ed25519', + options: ED25519KeyPairOptions<'der', 'der'>, + callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void, + ): void; + function generateKeyPair( + type: 'ed25519', + options: ED25519KeyPairKeyObjectOptions | undefined, + callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, + ): void; + + function generateKeyPair( + type: 'ed448', + options: ED448KeyPairOptions<'pem', 'pem'>, + callback: (err: Error | null, publicKey: string, privateKey: string) => void, + ): void; + function generateKeyPair( + type: 'ed448', + options: ED448KeyPairOptions<'pem', 'der'>, + callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void, + ): void; + function generateKeyPair( + type: 'ed448', + options: ED448KeyPairOptions<'der', 'pem'>, + callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void, + ): void; + function generateKeyPair( + type: 'ed448', + options: ED448KeyPairOptions<'der', 'der'>, + callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void, + ): void; + function generateKeyPair( + type: 'ed448', + options: ED448KeyPairKeyObjectOptions | undefined, + callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, + ): void; + + function generateKeyPair( + type: 'x25519', + options: X25519KeyPairOptions<'pem', 'pem'>, + callback: (err: Error | null, publicKey: string, privateKey: string) => void, + ): void; + function generateKeyPair( + type: 'x25519', + options: X25519KeyPairOptions<'pem', 'der'>, + callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void, + ): void; + function generateKeyPair( + type: 'x25519', + options: X25519KeyPairOptions<'der', 'pem'>, + callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void, + ): void; + function generateKeyPair( + type: 'x25519', + options: X25519KeyPairOptions<'der', 'der'>, + callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void, + ): void; + function generateKeyPair( + type: 'x25519', + options: X25519KeyPairKeyObjectOptions | undefined, + callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, + ): void; + + function generateKeyPair( + type: 'x448', + options: X448KeyPairOptions<'pem', 'pem'>, + callback: (err: Error | null, publicKey: string, privateKey: string) => void, + ): void; + function generateKeyPair( + type: 'x448', + options: X448KeyPairOptions<'pem', 'der'>, + callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void, + ): void; + function generateKeyPair( + type: 'x448', + options: X448KeyPairOptions<'der', 'pem'>, + callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void, + ): void; + function generateKeyPair( + type: 'x448', + options: X448KeyPairOptions<'der', 'der'>, + callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void, + ): void; + function generateKeyPair( + type: 'x448', + options: X448KeyPairKeyObjectOptions | undefined, + callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, + ): void; + + namespace generateKeyPair { + function __promisify__( + type: 'rsa', + options: RSAKeyPairOptions<'pem', 'pem'>, + ): Promise<{ publicKey: string; privateKey: string }>; + function __promisify__( + type: 'rsa', + options: RSAKeyPairOptions<'pem', 'der'>, + ): Promise<{ publicKey: string; privateKey: Buffer }>; + function __promisify__( + type: 'rsa', + options: RSAKeyPairOptions<'der', 'pem'>, + ): Promise<{ publicKey: Buffer; privateKey: string }>; + function __promisify__( + type: 'rsa', + options: RSAKeyPairOptions<'der', 'der'>, + ): Promise<{ publicKey: Buffer; privateKey: Buffer }>; + function __promisify__(type: 'rsa', options: RSAKeyPairKeyObjectOptions): Promise; + + function __promisify__( + type: 'dsa', + options: DSAKeyPairOptions<'pem', 'pem'>, + ): Promise<{ publicKey: string; privateKey: string }>; + function __promisify__( + type: 'dsa', + options: DSAKeyPairOptions<'pem', 'der'>, + ): Promise<{ publicKey: string; privateKey: Buffer }>; + function __promisify__( + type: 'dsa', + options: DSAKeyPairOptions<'der', 'pem'>, + ): Promise<{ publicKey: Buffer; privateKey: string }>; + function __promisify__( + type: 'dsa', + options: DSAKeyPairOptions<'der', 'der'>, + ): Promise<{ publicKey: Buffer; privateKey: Buffer }>; + function __promisify__(type: 'dsa', options: DSAKeyPairKeyObjectOptions): Promise; + + function __promisify__( + type: 'ec', + options: ECKeyPairOptions<'pem', 'pem'>, + ): Promise<{ publicKey: string; privateKey: string }>; + function __promisify__( + type: 'ec', + options: ECKeyPairOptions<'pem', 'der'>, + ): Promise<{ publicKey: string; privateKey: Buffer }>; + function __promisify__( + type: 'ec', + options: ECKeyPairOptions<'der', 'pem'>, + ): Promise<{ publicKey: Buffer; privateKey: string }>; + function __promisify__( + type: 'ec', + options: ECKeyPairOptions<'der', 'der'>, + ): Promise<{ publicKey: Buffer; privateKey: Buffer }>; + function __promisify__(type: 'ec', options: ECKeyPairKeyObjectOptions): Promise; + + function __promisify__( + type: 'ed25519', + options: ED25519KeyPairOptions<'pem', 'pem'>, + ): Promise<{ publicKey: string; privateKey: string }>; + function __promisify__( + type: 'ed25519', + options: ED25519KeyPairOptions<'pem', 'der'>, + ): Promise<{ publicKey: string; privateKey: Buffer }>; + function __promisify__( + type: 'ed25519', + options: ED25519KeyPairOptions<'der', 'pem'>, + ): Promise<{ publicKey: Buffer; privateKey: string }>; + function __promisify__( + type: 'ed25519', + options: ED25519KeyPairOptions<'der', 'der'>, + ): Promise<{ publicKey: Buffer; privateKey: Buffer }>; + function __promisify__( + type: 'ed25519', + options?: ED25519KeyPairKeyObjectOptions, + ): Promise; + + function __promisify__( + type: 'ed448', + options: ED448KeyPairOptions<'pem', 'pem'>, + ): Promise<{ publicKey: string; privateKey: string }>; + function __promisify__( + type: 'ed448', + options: ED448KeyPairOptions<'pem', 'der'>, + ): Promise<{ publicKey: string; privateKey: Buffer }>; + function __promisify__( + type: 'ed448', + options: ED448KeyPairOptions<'der', 'pem'>, + ): Promise<{ publicKey: Buffer; privateKey: string }>; + function __promisify__( + type: 'ed448', + options: ED448KeyPairOptions<'der', 'der'>, + ): Promise<{ publicKey: Buffer; privateKey: Buffer }>; + function __promisify__(type: 'ed448', options?: ED448KeyPairKeyObjectOptions): Promise; + + function __promisify__( + type: 'x25519', + options: X25519KeyPairOptions<'pem', 'pem'>, + ): Promise<{ publicKey: string; privateKey: string }>; + function __promisify__( + type: 'x25519', + options: X25519KeyPairOptions<'pem', 'der'>, + ): Promise<{ publicKey: string; privateKey: Buffer }>; + function __promisify__( + type: 'x25519', + options: X25519KeyPairOptions<'der', 'pem'>, + ): Promise<{ publicKey: Buffer; privateKey: string }>; + function __promisify__( + type: 'x25519', + options: X25519KeyPairOptions<'der', 'der'>, + ): Promise<{ publicKey: Buffer; privateKey: Buffer }>; + function __promisify__( + type: 'x25519', + options?: X25519KeyPairKeyObjectOptions, + ): Promise; + + function __promisify__( + type: 'x448', + options: X448KeyPairOptions<'pem', 'pem'>, + ): Promise<{ publicKey: string; privateKey: string }>; + function __promisify__( + type: 'x448', + options: X448KeyPairOptions<'pem', 'der'>, + ): Promise<{ publicKey: string; privateKey: Buffer }>; + function __promisify__( + type: 'x448', + options: X448KeyPairOptions<'der', 'pem'>, + ): Promise<{ publicKey: Buffer; privateKey: string }>; + function __promisify__( + type: 'x448', + options: X448KeyPairOptions<'der', 'der'>, + ): Promise<{ publicKey: Buffer; privateKey: Buffer }>; + function __promisify__(type: 'x448', options?: X448KeyPairKeyObjectOptions): Promise; + } + + /** + * Calculates and returns the signature for `data` using the given private key and + * algorithm. If `algorithm` is `null` or `undefined`, then the algorithm is + * dependent upon the key type (especially Ed25519 and Ed448). + * + * If `key` is not a [`KeyObject`][], this function behaves as if `key` had been + * passed to [`crypto.createPrivateKey()`][]. + */ + function sign( + algorithm: string | null | undefined, + data: NodeJS.ArrayBufferView, + key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput, + ): Buffer; + + /** + * Calculates and returns the signature for `data` using the given private key and + * algorithm. If `algorithm` is `null` or `undefined`, then the algorithm is + * dependent upon the key type (especially Ed25519 and Ed448). + * + * If `key` is not a [`KeyObject`][], this function behaves as if `key` had been + * passed to [`crypto.createPublicKey()`][]. + */ + function verify( + algorithm: string | null | undefined, + data: NodeJS.ArrayBufferView, + key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, + signature: NodeJS.ArrayBufferView, + ): Buffer; +} diff --git a/backend/node_modules/@types/node/dgram.d.ts b/backend/node_modules/@types/node/dgram.d.ts new file mode 100755 index 0000000..5182ef0 --- /dev/null +++ b/backend/node_modules/@types/node/dgram.d.ts @@ -0,0 +1,118 @@ +declare module 'dgram' { + import { AddressInfo } from 'net'; + import * as dns from 'dns'; + import EventEmitter = require('events'); + + interface RemoteInfo { + address: string; + family: 'IPv4' | 'IPv6'; + port: number; + size: number; + } + + interface BindOptions { + port?: number | undefined; + address?: string | undefined; + exclusive?: boolean | undefined; + fd?: number | undefined; + } + + type SocketType = "udp4" | "udp6"; + + interface SocketOptions { + type: SocketType; + reuseAddr?: boolean | undefined; + /** + * @default false + */ + ipv6Only?: boolean | undefined; + recvBufferSize?: number | undefined; + sendBufferSize?: number | undefined; + lookup?: ((hostname: string, options: dns.LookupOneOptions, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void) => void) | undefined; + } + + function createSocket(type: SocketType, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket; + function createSocket(options: SocketOptions, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket; + + class Socket extends EventEmitter { + addMembership(multicastAddress: string, multicastInterface?: string): void; + address(): AddressInfo; + bind(port?: number, address?: string, callback?: () => void): this; + bind(port?: number, callback?: () => void): this; + bind(callback?: () => void): this; + bind(options: BindOptions, callback?: () => void): this; + close(callback?: () => void): this; + connect(port: number, address?: string, callback?: () => void): void; + connect(port: number, callback: () => void): void; + disconnect(): void; + dropMembership(multicastAddress: string, multicastInterface?: string): void; + getRecvBufferSize(): number; + getSendBufferSize(): number; + ref(): this; + remoteAddress(): AddressInfo; + send(msg: string | Uint8Array | ReadonlyArray, port?: number, address?: string, callback?: (error: Error | null, bytes: number) => void): void; + send(msg: string | Uint8Array | ReadonlyArray, port?: number, callback?: (error: Error | null, bytes: number) => void): void; + send(msg: string | Uint8Array | ReadonlyArray, callback?: (error: Error | null, bytes: number) => void): void; + send(msg: string | Uint8Array, offset: number, length: number, port?: number, address?: string, callback?: (error: Error | null, bytes: number) => void): void; + send(msg: string | Uint8Array, offset: number, length: number, port?: number, callback?: (error: Error | null, bytes: number) => void): void; + send(msg: string | Uint8Array, offset: number, length: number, callback?: (error: Error | null, bytes: number) => void): void; + setBroadcast(flag: boolean): void; + setMulticastInterface(multicastInterface: string): void; + setMulticastLoopback(flag: boolean): boolean; + setMulticastTTL(ttl: number): number; + setRecvBufferSize(size: number): void; + setSendBufferSize(size: number): void; + setTTL(ttl: number): number; + unref(): this; + + /** + * events.EventEmitter + * 1. close + * 2. connect + * 3. error + * 4. listening + * 5. message + */ + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: "close", listener: () => void): this; + addListener(event: "connect", listener: () => void): this; + addListener(event: "error", listener: (err: Error) => void): this; + addListener(event: "listening", listener: () => void): this; + addListener(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this; + + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: "close"): boolean; + emit(event: "connect"): boolean; + emit(event: "error", err: Error): boolean; + emit(event: "listening"): boolean; + emit(event: "message", msg: Buffer, rinfo: RemoteInfo): boolean; + + on(event: string, listener: (...args: any[]) => void): this; + on(event: "close", listener: () => void): this; + on(event: "connect", listener: () => void): this; + on(event: "error", listener: (err: Error) => void): this; + on(event: "listening", listener: () => void): this; + on(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this; + + once(event: string, listener: (...args: any[]) => void): this; + once(event: "close", listener: () => void): this; + once(event: "connect", listener: () => void): this; + once(event: "error", listener: (err: Error) => void): this; + once(event: "listening", listener: () => void): this; + once(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this; + + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: "close", listener: () => void): this; + prependListener(event: "connect", listener: () => void): this; + prependListener(event: "error", listener: (err: Error) => void): this; + prependListener(event: "listening", listener: () => void): this; + prependListener(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this; + + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: "close", listener: () => void): this; + prependOnceListener(event: "connect", listener: () => void): this; + prependOnceListener(event: "error", listener: (err: Error) => void): this; + prependOnceListener(event: "listening", listener: () => void): this; + prependOnceListener(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this; + } +} diff --git a/backend/node_modules/@types/node/dns.d.ts b/backend/node_modules/@types/node/dns.d.ts new file mode 100755 index 0000000..9f2565c --- /dev/null +++ b/backend/node_modules/@types/node/dns.d.ts @@ -0,0 +1,372 @@ +declare module 'dns' { + // Supported getaddrinfo flags. + const ADDRCONFIG: number; + const V4MAPPED: number; + + interface LookupOptions { + family?: number | undefined; + hints?: number | undefined; + all?: boolean | undefined; + verbatim?: boolean | undefined; + } + + interface LookupOneOptions extends LookupOptions { + all?: false | undefined; + } + + interface LookupAllOptions extends LookupOptions { + all: true; + } + + interface LookupAddress { + address: string; + family: number; + } + + function lookup(hostname: string, family: number, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void; + function lookup(hostname: string, options: LookupOneOptions, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void; + function lookup(hostname: string, options: LookupAllOptions, callback: (err: NodeJS.ErrnoException | null, addresses: LookupAddress[]) => void): void; + function lookup(hostname: string, options: LookupOptions, callback: (err: NodeJS.ErrnoException | null, address: string | LookupAddress[], family: number) => void): void; + function lookup(hostname: string, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace lookup { + function __promisify__(hostname: string, options: LookupAllOptions): Promise; + function __promisify__(hostname: string, options?: LookupOneOptions | number): Promise; + function __promisify__(hostname: string, options: LookupOptions): Promise; + } + + function lookupService(address: string, port: number, callback: (err: NodeJS.ErrnoException | null, hostname: string, service: string) => void): void; + + namespace lookupService { + function __promisify__(address: string, port: number): Promise<{ hostname: string, service: string }>; + } + + interface ResolveOptions { + ttl: boolean; + } + + interface ResolveWithTtlOptions extends ResolveOptions { + ttl: true; + } + + interface RecordWithTtl { + address: string; + ttl: number; + } + + /** @deprecated Use AnyARecord or AnyAaaaRecord instead. */ + type AnyRecordWithTtl = AnyARecord | AnyAaaaRecord; + + interface AnyARecord extends RecordWithTtl { + type: "A"; + } + + interface AnyAaaaRecord extends RecordWithTtl { + type: "AAAA"; + } + + interface MxRecord { + priority: number; + exchange: string; + } + + interface AnyMxRecord extends MxRecord { + type: "MX"; + } + + interface NaptrRecord { + flags: string; + service: string; + regexp: string; + replacement: string; + order: number; + preference: number; + } + + interface AnyNaptrRecord extends NaptrRecord { + type: "NAPTR"; + } + + interface SoaRecord { + nsname: string; + hostmaster: string; + serial: number; + refresh: number; + retry: number; + expire: number; + minttl: number; + } + + interface AnySoaRecord extends SoaRecord { + type: "SOA"; + } + + interface SrvRecord { + priority: number; + weight: number; + port: number; + name: string; + } + + interface AnySrvRecord extends SrvRecord { + type: "SRV"; + } + + interface AnyTxtRecord { + type: "TXT"; + entries: string[]; + } + + interface AnyNsRecord { + type: "NS"; + value: string; + } + + interface AnyPtrRecord { + type: "PTR"; + value: string; + } + + interface AnyCnameRecord { + type: "CNAME"; + value: string; + } + + type AnyRecord = AnyARecord | + AnyAaaaRecord | + AnyCnameRecord | + AnyMxRecord | + AnyNaptrRecord | + AnyNsRecord | + AnyPtrRecord | + AnySoaRecord | + AnySrvRecord | + AnyTxtRecord; + + function resolve(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void; + function resolve(hostname: string, rrtype: "A", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void; + function resolve(hostname: string, rrtype: "AAAA", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void; + function resolve(hostname: string, rrtype: "ANY", callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void): void; + function resolve(hostname: string, rrtype: "CNAME", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void; + function resolve(hostname: string, rrtype: "MX", callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void): void; + function resolve(hostname: string, rrtype: "NAPTR", callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void): void; + function resolve(hostname: string, rrtype: "NS", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void; + function resolve(hostname: string, rrtype: "PTR", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void; + function resolve(hostname: string, rrtype: "SOA", callback: (err: NodeJS.ErrnoException | null, addresses: SoaRecord) => void): void; + function resolve(hostname: string, rrtype: "SRV", callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void): void; + function resolve(hostname: string, rrtype: "TXT", callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void): void; + function resolve( + hostname: string, + rrtype: string, + callback: (err: NodeJS.ErrnoException | null, addresses: string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[]) => void, + ): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace resolve { + function __promisify__(hostname: string, rrtype?: "A" | "AAAA" | "CNAME" | "NS" | "PTR"): Promise; + function __promisify__(hostname: string, rrtype: "ANY"): Promise; + function __promisify__(hostname: string, rrtype: "MX"): Promise; + function __promisify__(hostname: string, rrtype: "NAPTR"): Promise; + function __promisify__(hostname: string, rrtype: "SOA"): Promise; + function __promisify__(hostname: string, rrtype: "SRV"): Promise; + function __promisify__(hostname: string, rrtype: "TXT"): Promise; + function __promisify__(hostname: string, rrtype: string): Promise; + } + + function resolve4(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void; + function resolve4(hostname: string, options: ResolveWithTtlOptions, callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void): void; + function resolve4(hostname: string, options: ResolveOptions, callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace resolve4 { + function __promisify__(hostname: string): Promise; + function __promisify__(hostname: string, options: ResolveWithTtlOptions): Promise; + function __promisify__(hostname: string, options?: ResolveOptions): Promise; + } + + function resolve6(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void; + function resolve6(hostname: string, options: ResolveWithTtlOptions, callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void): void; + function resolve6(hostname: string, options: ResolveOptions, callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace resolve6 { + function __promisify__(hostname: string): Promise; + function __promisify__(hostname: string, options: ResolveWithTtlOptions): Promise; + function __promisify__(hostname: string, options?: ResolveOptions): Promise; + } + + function resolveCname(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void; + namespace resolveCname { + function __promisify__(hostname: string): Promise; + } + + function resolveMx(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void): void; + namespace resolveMx { + function __promisify__(hostname: string): Promise; + } + + function resolveNaptr(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void): void; + namespace resolveNaptr { + function __promisify__(hostname: string): Promise; + } + + function resolveNs(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void; + namespace resolveNs { + function __promisify__(hostname: string): Promise; + } + + function resolvePtr(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void; + namespace resolvePtr { + function __promisify__(hostname: string): Promise; + } + + function resolveSoa(hostname: string, callback: (err: NodeJS.ErrnoException | null, address: SoaRecord) => void): void; + namespace resolveSoa { + function __promisify__(hostname: string): Promise; + } + + function resolveSrv(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void): void; + namespace resolveSrv { + function __promisify__(hostname: string): Promise; + } + + function resolveTxt(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void): void; + namespace resolveTxt { + function __promisify__(hostname: string): Promise; + } + + function resolveAny(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void): void; + namespace resolveAny { + function __promisify__(hostname: string): Promise; + } + + function reverse(ip: string, callback: (err: NodeJS.ErrnoException | null, hostnames: string[]) => void): void; + function setServers(servers: ReadonlyArray): void; + function getServers(): string[]; + + // Error codes + const NODATA: string; + const FORMERR: string; + const SERVFAIL: string; + const NOTFOUND: string; + const NOTIMP: string; + const REFUSED: string; + const BADQUERY: string; + const BADNAME: string; + const BADFAMILY: string; + const BADRESP: string; + const CONNREFUSED: string; + const TIMEOUT: string; + const EOF: string; + const FILE: string; + const NOMEM: string; + const DESTRUCTION: string; + const BADSTR: string; + const BADFLAGS: string; + const NONAME: string; + const BADHINTS: string; + const NOTINITIALIZED: string; + const LOADIPHLPAPI: string; + const ADDRGETNETWORKPARAMS: string; + const CANCELLED: string; + + interface ResolverOptions { + timeout?: number | undefined; + } + + class Resolver { + constructor(options?: ResolverOptions); + getServers: typeof getServers; + setServers: typeof setServers; + resolve: typeof resolve; + resolve4: typeof resolve4; + resolve6: typeof resolve6; + resolveAny: typeof resolveAny; + resolveCname: typeof resolveCname; + resolveMx: typeof resolveMx; + resolveNaptr: typeof resolveNaptr; + resolveNs: typeof resolveNs; + resolvePtr: typeof resolvePtr; + resolveSoa: typeof resolveSoa; + resolveSrv: typeof resolveSrv; + resolveTxt: typeof resolveTxt; + reverse: typeof reverse; + cancel(): void; + } + + namespace promises { + function getServers(): string[]; + + function lookup(hostname: string, family: number): Promise; + function lookup(hostname: string, options: LookupOneOptions): Promise; + function lookup(hostname: string, options: LookupAllOptions): Promise; + function lookup(hostname: string, options: LookupOptions): Promise; + function lookup(hostname: string): Promise; + + function lookupService(address: string, port: number): Promise<{ hostname: string, service: string }>; + + function resolve(hostname: string): Promise; + function resolve(hostname: string, rrtype: "A"): Promise; + function resolve(hostname: string, rrtype: "AAAA"): Promise; + function resolve(hostname: string, rrtype: "ANY"): Promise; + function resolve(hostname: string, rrtype: "CNAME"): Promise; + function resolve(hostname: string, rrtype: "MX"): Promise; + function resolve(hostname: string, rrtype: "NAPTR"): Promise; + function resolve(hostname: string, rrtype: "NS"): Promise; + function resolve(hostname: string, rrtype: "PTR"): Promise; + function resolve(hostname: string, rrtype: "SOA"): Promise; + function resolve(hostname: string, rrtype: "SRV"): Promise; + function resolve(hostname: string, rrtype: "TXT"): Promise; + function resolve(hostname: string, rrtype: string): Promise; + + function resolve4(hostname: string): Promise; + function resolve4(hostname: string, options: ResolveWithTtlOptions): Promise; + function resolve4(hostname: string, options: ResolveOptions): Promise; + + function resolve6(hostname: string): Promise; + function resolve6(hostname: string, options: ResolveWithTtlOptions): Promise; + function resolve6(hostname: string, options: ResolveOptions): Promise; + + function resolveAny(hostname: string): Promise; + + function resolveCname(hostname: string): Promise; + + function resolveMx(hostname: string): Promise; + + function resolveNaptr(hostname: string): Promise; + + function resolveNs(hostname: string): Promise; + + function resolvePtr(hostname: string): Promise; + + function resolveSoa(hostname: string): Promise; + + function resolveSrv(hostname: string): Promise; + + function resolveTxt(hostname: string): Promise; + + function reverse(ip: string): Promise; + + function setServers(servers: ReadonlyArray): void; + + class Resolver { + constructor(options?: ResolverOptions); + getServers: typeof getServers; + resolve: typeof resolve; + resolve4: typeof resolve4; + resolve6: typeof resolve6; + resolveAny: typeof resolveAny; + resolveCname: typeof resolveCname; + resolveMx: typeof resolveMx; + resolveNaptr: typeof resolveNaptr; + resolveNs: typeof resolveNs; + resolvePtr: typeof resolvePtr; + resolveSoa: typeof resolveSoa; + resolveSrv: typeof resolveSrv; + resolveTxt: typeof resolveTxt; + reverse: typeof reverse; + setServers: typeof setServers; + } + } +} diff --git a/backend/node_modules/@types/node/domain.d.ts b/backend/node_modules/@types/node/domain.d.ts new file mode 100755 index 0000000..a506aea --- /dev/null +++ b/backend/node_modules/@types/node/domain.d.ts @@ -0,0 +1,16 @@ +declare module 'domain' { + import EventEmitter = require('events'); + + class Domain extends EventEmitter implements NodeJS.Domain { + run(fn: (...args: any[]) => T, ...args: any[]): T; + add(emitter: EventEmitter | NodeJS.Timer): void; + remove(emitter: EventEmitter | NodeJS.Timer): void; + bind(cb: T): T; + intercept(cb: T): T; + members: Array; + enter(): void; + exit(): void; + } + + function create(): Domain; +} diff --git a/backend/node_modules/@types/node/events.d.ts b/backend/node_modules/@types/node/events.d.ts new file mode 100755 index 0000000..a0bc789 --- /dev/null +++ b/backend/node_modules/@types/node/events.d.ts @@ -0,0 +1,47 @@ +declare module 'events' { + interface NodeEventTarget { + once(event: string | symbol, listener: (...args: any[]) => void): this; + } + + interface DOMEventTarget { + addEventListener(event: string, listener: (...args: any[]) => void, opts?: { once: boolean }): any; + } + + class EventEmitter extends NodeJS.EventEmitter { + constructor(); + + static once(emitter: NodeEventTarget, event: string | symbol): Promise; + static once(emitter: DOMEventTarget, event: string): Promise; + static on(emitter: NodeJS.EventEmitter, event: string): AsyncIterableIterator; + + /** @deprecated since v4.0.0 */ + static listenerCount(emitter: NodeJS.EventEmitter, event: string | symbol): number; + + /** + * This symbol shall be used to install a listener for only monitoring `'error'` + * events. Listeners installed using this symbol are called before the regular + * `'error'` listeners are called. + * + * Installing a listener using this symbol does not change the behavior once an + * `'error'` event is emitted, therefore the process will still crash if no + * regular `'error'` listener is installed. + */ + static readonly errorMonitor: unique symbol; + static readonly captureRejectionSymbol: unique symbol; + + /** + * Sets or gets the default captureRejection value for all emitters. + */ + // TODO: These should be described using static getter/setter pairs: + static captureRejections: boolean; + static defaultMaxListeners: number; + } + + import internal = require('events'); + namespace EventEmitter { + // Should just be `export { EventEmitter }`, but that doesn't work in TypeScript 3.4 + export { internal as EventEmitter }; + } + + export = EventEmitter; +} diff --git a/backend/node_modules/@types/node/fs.d.ts b/backend/node_modules/@types/node/fs.d.ts new file mode 100755 index 0000000..7ec9de5 --- /dev/null +++ b/backend/node_modules/@types/node/fs.d.ts @@ -0,0 +1,2567 @@ +declare module 'fs' { + import * as stream from 'stream'; + import EventEmitter = require('events'); + import { URL } from 'url'; + + /** + * Valid types for path values in "fs". + */ + type PathLike = string | Buffer | URL; + + type NoParamCallback = (err: NodeJS.ErrnoException | null) => void; + + interface StatsBase { + isFile(): boolean; + isDirectory(): boolean; + isBlockDevice(): boolean; + isCharacterDevice(): boolean; + isSymbolicLink(): boolean; + isFIFO(): boolean; + isSocket(): boolean; + + dev: T; + ino: T; + mode: T; + nlink: T; + uid: T; + gid: T; + rdev: T; + size: T; + blksize: T; + blocks: T; + atimeMs: T; + mtimeMs: T; + ctimeMs: T; + birthtimeMs: T; + atime: Date; + mtime: Date; + ctime: Date; + birthtime: Date; + } + + interface Stats extends StatsBase { + } + + class Stats { + } + + class Dirent { + isFile(): boolean; + isDirectory(): boolean; + isBlockDevice(): boolean; + isCharacterDevice(): boolean; + isSymbolicLink(): boolean; + isFIFO(): boolean; + isSocket(): boolean; + name: string; + } + + /** + * A class representing a directory stream. + */ + class Dir { + readonly path: string; + + /** + * Asynchronously iterates over the directory via `readdir(3)` until all entries have been read. + */ + [Symbol.asyncIterator](): AsyncIterableIterator; + + /** + * Asynchronously close the directory's underlying resource handle. + * Subsequent reads will result in errors. + */ + close(): Promise; + close(cb: NoParamCallback): void; + + /** + * Synchronously close the directory's underlying resource handle. + * Subsequent reads will result in errors. + */ + closeSync(): void; + + /** + * Asynchronously read the next directory entry via `readdir(3)` as an `Dirent`. + * After the read is completed, a value is returned that will be resolved with an `Dirent`, or `null` if there are no more directory entries to read. + * Directory entries returned by this function are in no particular order as provided by the operating system's underlying directory mechanisms. + */ + read(): Promise; + read(cb: (err: NodeJS.ErrnoException | null, dirEnt: Dirent | null) => void): void; + + /** + * Synchronously read the next directory entry via `readdir(3)` as a `Dirent`. + * If there are no more directory entries to read, null will be returned. + * Directory entries returned by this function are in no particular order as provided by the operating system's underlying directory mechanisms. + */ + readSync(): Dirent; + } + + interface FSWatcher extends EventEmitter { + close(): void; + + /** + * events.EventEmitter + * 1. change + * 2. error + */ + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this; + addListener(event: "error", listener: (error: Error) => void): this; + addListener(event: "close", listener: () => void): this; + + on(event: string, listener: (...args: any[]) => void): this; + on(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this; + on(event: "error", listener: (error: Error) => void): this; + on(event: "close", listener: () => void): this; + + once(event: string, listener: (...args: any[]) => void): this; + once(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this; + once(event: "error", listener: (error: Error) => void): this; + once(event: "close", listener: () => void): this; + + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this; + prependListener(event: "error", listener: (error: Error) => void): this; + prependListener(event: "close", listener: () => void): this; + + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this; + prependOnceListener(event: "error", listener: (error: Error) => void): this; + prependOnceListener(event: "close", listener: () => void): this; + } + + class ReadStream extends stream.Readable { + close(callback?: (err?: NodeJS.ErrnoException | null) => void): void; + bytesRead: number; + path: string | Buffer; + + /** + * events.EventEmitter + * 1. open + * 2. close + */ + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: "open", listener: (fd: number) => void): this; + addListener(event: "close", listener: () => void): this; + + on(event: string, listener: (...args: any[]) => void): this; + on(event: "open", listener: (fd: number) => void): this; + on(event: "close", listener: () => void): this; + + once(event: string, listener: (...args: any[]) => void): this; + once(event: "open", listener: (fd: number) => void): this; + once(event: "close", listener: () => void): this; + + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: "open", listener: (fd: number) => void): this; + prependListener(event: "close", listener: () => void): this; + + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: "open", listener: (fd: number) => void): this; + prependOnceListener(event: "close", listener: () => void): this; + } + + class WriteStream extends stream.Writable { + close(callback?: (err?: NodeJS.ErrnoException | null) => void): void; + bytesWritten: number; + path: string | Buffer; + + /** + * events.EventEmitter + * 1. open + * 2. close + */ + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: "open", listener: (fd: number) => void): this; + addListener(event: "close", listener: () => void): this; + + on(event: string, listener: (...args: any[]) => void): this; + on(event: "open", listener: (fd: number) => void): this; + on(event: "close", listener: () => void): this; + + once(event: string, listener: (...args: any[]) => void): this; + once(event: "open", listener: (fd: number) => void): this; + once(event: "close", listener: () => void): this; + + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: "open", listener: (fd: number) => void): this; + prependListener(event: "close", listener: () => void): this; + + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: "open", listener: (fd: number) => void): this; + prependOnceListener(event: "close", listener: () => void): this; + } + + /** + * Asynchronous rename(2) - Change the name or location of a file or directory. + * @param oldPath A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + */ + function rename(oldPath: PathLike, newPath: PathLike, callback: NoParamCallback): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace rename { + /** + * Asynchronous rename(2) - Change the name or location of a file or directory. + * @param oldPath A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + */ + function __promisify__(oldPath: PathLike, newPath: PathLike): Promise; + } + + /** + * Synchronous rename(2) - Change the name or location of a file or directory. + * @param oldPath A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + */ + function renameSync(oldPath: PathLike, newPath: PathLike): void; + + /** + * Asynchronous truncate(2) - Truncate a file to a specified length. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param len If not specified, defaults to `0`. + */ + function truncate(path: PathLike, len: number | undefined | null, callback: NoParamCallback): void; + + /** + * Asynchronous truncate(2) - Truncate a file to a specified length. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + */ + function truncate(path: PathLike, callback: NoParamCallback): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace truncate { + /** + * Asynchronous truncate(2) - Truncate a file to a specified length. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param len If not specified, defaults to `0`. + */ + function __promisify__(path: PathLike, len?: number | null): Promise; + } + + /** + * Synchronous truncate(2) - Truncate a file to a specified length. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param len If not specified, defaults to `0`. + */ + function truncateSync(path: PathLike, len?: number | null): void; + + /** + * Asynchronous ftruncate(2) - Truncate a file to a specified length. + * @param fd A file descriptor. + * @param len If not specified, defaults to `0`. + */ + function ftruncate(fd: number, len: number | undefined | null, callback: NoParamCallback): void; + + /** + * Asynchronous ftruncate(2) - Truncate a file to a specified length. + * @param fd A file descriptor. + */ + function ftruncate(fd: number, callback: NoParamCallback): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace ftruncate { + /** + * Asynchronous ftruncate(2) - Truncate a file to a specified length. + * @param fd A file descriptor. + * @param len If not specified, defaults to `0`. + */ + function __promisify__(fd: number, len?: number | null): Promise; + } + + /** + * Synchronous ftruncate(2) - Truncate a file to a specified length. + * @param fd A file descriptor. + * @param len If not specified, defaults to `0`. + */ + function ftruncateSync(fd: number, len?: number | null): void; + + /** + * Asynchronous chown(2) - Change ownership of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function chown(path: PathLike, uid: number, gid: number, callback: NoParamCallback): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace chown { + /** + * Asynchronous chown(2) - Change ownership of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function __promisify__(path: PathLike, uid: number, gid: number): Promise; + } + + /** + * Synchronous chown(2) - Change ownership of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function chownSync(path: PathLike, uid: number, gid: number): void; + + /** + * Asynchronous fchown(2) - Change ownership of a file. + * @param fd A file descriptor. + */ + function fchown(fd: number, uid: number, gid: number, callback: NoParamCallback): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace fchown { + /** + * Asynchronous fchown(2) - Change ownership of a file. + * @param fd A file descriptor. + */ + function __promisify__(fd: number, uid: number, gid: number): Promise; + } + + /** + * Synchronous fchown(2) - Change ownership of a file. + * @param fd A file descriptor. + */ + function fchownSync(fd: number, uid: number, gid: number): void; + + /** + * Asynchronous lchown(2) - Change ownership of a file. Does not dereference symbolic links. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function lchown(path: PathLike, uid: number, gid: number, callback: NoParamCallback): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace lchown { + /** + * Asynchronous lchown(2) - Change ownership of a file. Does not dereference symbolic links. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function __promisify__(path: PathLike, uid: number, gid: number): Promise; + } + + /** + * Synchronous lchown(2) - Change ownership of a file. Does not dereference symbolic links. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function lchownSync(path: PathLike, uid: number, gid: number): void; + + /** + * Changes the access and modification times of a file in the same way as `fs.utimes()`, + * with the difference that if the path refers to a symbolic link, then the link is not + * dereferenced: instead, the timestamps of the symbolic link itself are changed. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param atime The last access time. If a string is provided, it will be coerced to number. + * @param mtime The last modified time. If a string is provided, it will be coerced to number. + */ + function lutimes(path: PathLike, atime: string | number | Date, mtime: string | number | Date, callback: NoParamCallback): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace lutimes { + /** + * Changes the access and modification times of a file in the same way as `fsPromises.utimes()`, + * with the difference that if the path refers to a symbolic link, then the link is not + * dereferenced: instead, the timestamps of the symbolic link itself are changed. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param atime The last access time. If a string is provided, it will be coerced to number. + * @param mtime The last modified time. If a string is provided, it will be coerced to number. + */ + function __promisify__(path: PathLike, atime: string | number | Date, mtime: string | number | Date): Promise; + } + + /** + * Change the file system timestamps of the symbolic link referenced by `path`. Returns `undefined`, + * or throws an exception when parameters are incorrect or the operation fails. + * This is the synchronous version of `fs.lutimes()`. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param atime The last access time. If a string is provided, it will be coerced to number. + * @param mtime The last modified time. If a string is provided, it will be coerced to number. + */ + function lutimesSync(path: PathLike, atime: string | number | Date, mtime: string | number | Date): void; + + /** + * Asynchronous chmod(2) - Change permissions of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param mode A file mode. If a string is passed, it is parsed as an octal integer. + */ + function chmod(path: PathLike, mode: string | number, callback: NoParamCallback): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace chmod { + /** + * Asynchronous chmod(2) - Change permissions of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param mode A file mode. If a string is passed, it is parsed as an octal integer. + */ + function __promisify__(path: PathLike, mode: string | number): Promise; + } + + /** + * Synchronous chmod(2) - Change permissions of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param mode A file mode. If a string is passed, it is parsed as an octal integer. + */ + function chmodSync(path: PathLike, mode: string | number): void; + + /** + * Asynchronous fchmod(2) - Change permissions of a file. + * @param fd A file descriptor. + * @param mode A file mode. If a string is passed, it is parsed as an octal integer. + */ + function fchmod(fd: number, mode: string | number, callback: NoParamCallback): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace fchmod { + /** + * Asynchronous fchmod(2) - Change permissions of a file. + * @param fd A file descriptor. + * @param mode A file mode. If a string is passed, it is parsed as an octal integer. + */ + function __promisify__(fd: number, mode: string | number): Promise; + } + + /** + * Synchronous fchmod(2) - Change permissions of a file. + * @param fd A file descriptor. + * @param mode A file mode. If a string is passed, it is parsed as an octal integer. + */ + function fchmodSync(fd: number, mode: string | number): void; + + /** + * Asynchronous lchmod(2) - Change permissions of a file. Does not dereference symbolic links. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param mode A file mode. If a string is passed, it is parsed as an octal integer. + */ + function lchmod(path: PathLike, mode: string | number, callback: NoParamCallback): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace lchmod { + /** + * Asynchronous lchmod(2) - Change permissions of a file. Does not dereference symbolic links. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param mode A file mode. If a string is passed, it is parsed as an octal integer. + */ + function __promisify__(path: PathLike, mode: string | number): Promise; + } + + /** + * Synchronous lchmod(2) - Change permissions of a file. Does not dereference symbolic links. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param mode A file mode. If a string is passed, it is parsed as an octal integer. + */ + function lchmodSync(path: PathLike, mode: string | number): void; + + /** + * Asynchronous stat(2) - Get file status. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function stat(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void; + function stat(path: PathLike, options: StatOptions & { bigint?: false | undefined } | undefined, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void; + function stat(path: PathLike, options: StatOptions & { bigint: true }, callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void): void; + function stat(path: PathLike, options: StatOptions | undefined, callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace stat { + /** + * Asynchronous stat(2) - Get file status. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function __promisify__(path: PathLike, options?: StatOptions & { bigint?: false | undefined }): Promise; + function __promisify__(path: PathLike, options: StatOptions & { bigint: true }): Promise; + function __promisify__(path: PathLike, options?: StatOptions): Promise; + } + + /** + * Synchronous stat(2) - Get file status. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function statSync(path: PathLike, options?: StatOptions & { bigint?: false | undefined }): Stats; + function statSync(path: PathLike, options: StatOptions & { bigint: true }): BigIntStats; + function statSync(path: PathLike, options?: StatOptions): Stats | BigIntStats; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace fstat { + /** + * Asynchronous fstat(2) - Get file status. + * @param fd A file descriptor. + */ + function __promisify__(fd: number, options?: StatOptions & { bigint?: false | undefined }): Promise; + function __promisify__(fd: number, options: StatOptions & { bigint: true }): Promise; + function __promisify__(fd: number, options?: StatOptions): Promise; + } + + /** + * Synchronous fstat(2) - Get file status. + * @param fd A file descriptor. + */ + function fstatSync(fd: number, options?: StatOptions & { bigint?: false | undefined }): Stats; + function fstatSync(fd: number, options: StatOptions & { bigint: true }): BigIntStats; + function fstatSync(fd: number, options?: StatOptions): Stats | BigIntStats; + + /** + * Asynchronous lstat(2) - Get file status. Does not dereference symbolic links. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function lstat(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void; + function lstat(path: PathLike, options: StatOptions & { bigint?: false | undefined } | undefined, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void; + function lstat(path: PathLike, options: StatOptions & { bigint: true }, callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void): void; + function lstat(path: PathLike, options: StatOptions | undefined, callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace lstat { + /** + * Asynchronous lstat(2) - Get file status. Does not dereference symbolic links. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function __promisify__(path: PathLike, options?: StatOptions & { bigint?: false | undefined }): Promise; + function __promisify__(path: PathLike, options: StatOptions & { bigint: true }): Promise; + function __promisify__(path: PathLike, options?: StatOptions): Promise; + } + + /** + * Synchronous lstat(2) - Get file status. Does not dereference symbolic links. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function lstatSync(path: PathLike, options?: StatOptions & { bigint?: false | undefined }): Stats; + function lstatSync(path: PathLike, options: StatOptions & { bigint: true }): BigIntStats; + function lstatSync(path: PathLike, options?: StatOptions): Stats | BigIntStats; + + /** + * Asynchronous link(2) - Create a new link (also known as a hard link) to an existing file. + * @param existingPath A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function link(existingPath: PathLike, newPath: PathLike, callback: NoParamCallback): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace link { + /** + * Asynchronous link(2) - Create a new link (also known as a hard link) to an existing file. + * @param existingPath A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function __promisify__(existingPath: PathLike, newPath: PathLike): Promise; + } + + /** + * Synchronous link(2) - Create a new link (also known as a hard link) to an existing file. + * @param existingPath A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function linkSync(existingPath: PathLike, newPath: PathLike): void; + + /** + * Asynchronous symlink(2) - Create a new symbolic link to an existing file. + * @param target A path to an existing file. If a URL is provided, it must use the `file:` protocol. + * @param path A path to the new symlink. If a URL is provided, it must use the `file:` protocol. + * @param type May be set to `'dir'`, `'file'`, or `'junction'` (default is `'file'`) and is only available on Windows (ignored on other platforms). + * When using `'junction'`, the `target` argument will automatically be normalized to an absolute path. + */ + function symlink(target: PathLike, path: PathLike, type: symlink.Type | undefined | null, callback: NoParamCallback): void; + + /** + * Asynchronous symlink(2) - Create a new symbolic link to an existing file. + * @param target A path to an existing file. If a URL is provided, it must use the `file:` protocol. + * @param path A path to the new symlink. If a URL is provided, it must use the `file:` protocol. + */ + function symlink(target: PathLike, path: PathLike, callback: NoParamCallback): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace symlink { + /** + * Asynchronous symlink(2) - Create a new symbolic link to an existing file. + * @param target A path to an existing file. If a URL is provided, it must use the `file:` protocol. + * @param path A path to the new symlink. If a URL is provided, it must use the `file:` protocol. + * @param type May be set to `'dir'`, `'file'`, or `'junction'` (default is `'file'`) and is only available on Windows (ignored on other platforms). + * When using `'junction'`, the `target` argument will automatically be normalized to an absolute path. + */ + function __promisify__(target: PathLike, path: PathLike, type?: string | null): Promise; + + type Type = "dir" | "file" | "junction"; + } + + /** + * Synchronous symlink(2) - Create a new symbolic link to an existing file. + * @param target A path to an existing file. If a URL is provided, it must use the `file:` protocol. + * @param path A path to the new symlink. If a URL is provided, it must use the `file:` protocol. + * @param type May be set to `'dir'`, `'file'`, or `'junction'` (default is `'file'`) and is only available on Windows (ignored on other platforms). + * When using `'junction'`, the `target` argument will automatically be normalized to an absolute path. + */ + function symlinkSync(target: PathLike, path: PathLike, type?: symlink.Type | null): void; + + /** + * Asynchronous readlink(2) - read value of a symbolic link. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function readlink( + path: PathLike, + options: { encoding?: BufferEncoding | null | undefined } | BufferEncoding | undefined | null, + callback: (err: NodeJS.ErrnoException | null, linkString: string) => void + ): void; + + /** + * Asynchronous readlink(2) - read value of a symbolic link. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function readlink(path: PathLike, options: { encoding: "buffer" } | "buffer", callback: (err: NodeJS.ErrnoException | null, linkString: Buffer) => void): void; + + /** + * Asynchronous readlink(2) - read value of a symbolic link. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function readlink( + path: PathLike, + options: { encoding?: string | null | undefined } | string | undefined | null, + callback: (err: NodeJS.ErrnoException | null, linkString: string | Buffer) => void + ): void; + + /** + * Asynchronous readlink(2) - read value of a symbolic link. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function readlink(path: PathLike, callback: (err: NodeJS.ErrnoException | null, linkString: string) => void): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace readlink { + /** + * Asynchronous readlink(2) - read value of a symbolic link. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__(path: PathLike, options?: { encoding?: BufferEncoding | null | undefined } | BufferEncoding | null): Promise; + + /** + * Asynchronous readlink(2) - read value of a symbolic link. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__(path: PathLike, options: { encoding: "buffer" } | "buffer"): Promise; + + /** + * Asynchronous readlink(2) - read value of a symbolic link. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__(path: PathLike, options?: { encoding?: string | null | undefined } | string | null): Promise; + } + + /** + * Synchronous readlink(2) - read value of a symbolic link. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function readlinkSync(path: PathLike, options?: { encoding?: BufferEncoding | null | undefined } | BufferEncoding | null): string; + + /** + * Synchronous readlink(2) - read value of a symbolic link. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function readlinkSync(path: PathLike, options: { encoding: "buffer" } | "buffer"): Buffer; + + /** + * Synchronous readlink(2) - read value of a symbolic link. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function readlinkSync(path: PathLike, options?: { encoding?: string | null | undefined } | string | null): string | Buffer; + + /** + * Asynchronous realpath(3) - return the canonicalized absolute pathname. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function realpath( + path: PathLike, + options: { encoding?: BufferEncoding | null | undefined } | BufferEncoding | undefined | null, + callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void + ): void; + + /** + * Asynchronous realpath(3) - return the canonicalized absolute pathname. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function realpath(path: PathLike, options: { encoding: "buffer" } | "buffer", callback: (err: NodeJS.ErrnoException | null, resolvedPath: Buffer) => void): void; + + /** + * Asynchronous realpath(3) - return the canonicalized absolute pathname. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function realpath( + path: PathLike, + options: { encoding?: string | null | undefined } | string | undefined | null, + callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | Buffer) => void + ): void; + + /** + * Asynchronous realpath(3) - return the canonicalized absolute pathname. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function realpath(path: PathLike, callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace realpath { + /** + * Asynchronous realpath(3) - return the canonicalized absolute pathname. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__(path: PathLike, options?: { encoding?: BufferEncoding | null | undefined } | BufferEncoding | null): Promise; + + /** + * Asynchronous realpath(3) - return the canonicalized absolute pathname. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__(path: PathLike, options: { encoding: "buffer" } | "buffer"): Promise; + + /** + * Asynchronous realpath(3) - return the canonicalized absolute pathname. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__(path: PathLike, options?: { encoding?: string | null | undefined } | string | null): Promise; + + function native( + path: PathLike, + options: { encoding?: BufferEncoding | null | undefined } | BufferEncoding | undefined | null, + callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void + ): void; + function native(path: PathLike, options: { encoding: "buffer" } | "buffer", callback: (err: NodeJS.ErrnoException | null, resolvedPath: Buffer) => void): void; + function native( + path: PathLike, + options: { encoding?: string | null | undefined } | string | undefined | null, + callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | Buffer) => void + ): void; + function native(path: PathLike, callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void): void; + } + + /** + * Synchronous realpath(3) - return the canonicalized absolute pathname. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function realpathSync(path: PathLike, options?: { encoding?: BufferEncoding | null | undefined } | BufferEncoding | null): string; + + /** + * Synchronous realpath(3) - return the canonicalized absolute pathname. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function realpathSync(path: PathLike, options: { encoding: "buffer" } | "buffer"): Buffer; + + /** + * Synchronous realpath(3) - return the canonicalized absolute pathname. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function realpathSync(path: PathLike, options?: { encoding?: string | null | undefined } | string | null): string | Buffer; + + namespace realpathSync { + function native(path: PathLike, options?: { encoding?: BufferEncoding | null | undefined } | BufferEncoding | null): string; + function native(path: PathLike, options: { encoding: "buffer" } | "buffer"): Buffer; + function native(path: PathLike, options?: { encoding?: string | null | undefined } | string | null): string | Buffer; + } + + /** + * Asynchronous unlink(2) - delete a name and possibly the file it refers to. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function unlink(path: PathLike, callback: NoParamCallback): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace unlink { + /** + * Asynchronous unlink(2) - delete a name and possibly the file it refers to. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function __promisify__(path: PathLike): Promise; + } + + /** + * Synchronous unlink(2) - delete a name and possibly the file it refers to. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function unlinkSync(path: PathLike): void; + + interface RmDirOptions { + /** + * If an `EBUSY`, `ENOTEMPTY`, or `EPERM` error is + * encountered, Node.js will retry the operation with a linear backoff wait of + * 100ms longer on each try. This option represents the number of retries. This + * option is ignored if the `recursive` option is not `true`. + * @default 3 + */ + maxRetries?: number | undefined; + /** + * If `true`, perform a recursive directory removal. In + * recursive mode, errors are not reported if `path` does not exist, and + * operations are retried on failure. + * @experimental + * @default false + */ + recursive?: boolean | undefined; + /** + * If an `EMFILE` error is encountered, Node.js will + * retry the operation with a linear backoff of 1ms longer on each try until the + * timeout duration passes this limit. This option is ignored if the `recursive` + * option is not `true`. + * @default 1000 + */ + emfileWait?: number | undefined; + } + + /** + * Asynchronous rmdir(2) - delete a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function rmdir(path: PathLike, callback: NoParamCallback): void; + function rmdir(path: PathLike, options: RmDirOptions, callback: NoParamCallback): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace rmdir { + /** + * Asynchronous rmdir(2) - delete a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function __promisify__(path: PathLike, options?: RmDirOptions): Promise; + } + + /** + * Synchronous rmdir(2) - delete a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function rmdirSync(path: PathLike, options?: RmDirOptions): void; + + interface MakeDirectoryOptions { + /** + * Indicates whether parent folders should be created. + * @default false + */ + recursive?: boolean | undefined; + /** + * A file mode. If a string is passed, it is parsed as an octal integer. If not specified + * @default 0o777. + */ + mode?: number | string | undefined; + } + + /** + * Asynchronous mkdir(2) - create a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders + * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. + */ + function mkdir(path: PathLike, options: number | string | MakeDirectoryOptions | undefined | null, callback: NoParamCallback): void; + + /** + * Asynchronous mkdir(2) - create a directory with a mode of `0o777`. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function mkdir(path: PathLike, callback: NoParamCallback): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace mkdir { + /** + * Asynchronous mkdir(2) - create a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders + * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. + */ + function __promisify__(path: PathLike, options?: number | string | MakeDirectoryOptions | null): Promise; + } + + /** + * Synchronous mkdir(2) - create a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders + * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. + */ + function mkdirSync(path: PathLike, options?: number | string | MakeDirectoryOptions | null): void; + + /** + * Asynchronously creates a unique temporary directory. + * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function mkdtemp( + prefix: string, + options: { encoding?: BufferEncoding | null | undefined } | BufferEncoding | undefined | null, + callback: (err: NodeJS.ErrnoException | null, folder: string) => void + ): void; + + /** + * Asynchronously creates a unique temporary directory. + * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function mkdtemp(prefix: string, options: "buffer" | { encoding: "buffer" }, callback: (err: NodeJS.ErrnoException | null, folder: Buffer) => void): void; + + /** + * Asynchronously creates a unique temporary directory. + * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function mkdtemp( + prefix: string, + options: { encoding?: string | null | undefined } | string | undefined | null, + callback: (err: NodeJS.ErrnoException | null, folder: string | Buffer) => void + ): void; + + /** + * Asynchronously creates a unique temporary directory. + * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. + */ + function mkdtemp(prefix: string, callback: (err: NodeJS.ErrnoException | null, folder: string) => void): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace mkdtemp { + /** + * Asynchronously creates a unique temporary directory. + * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__(prefix: string, options?: { encoding?: BufferEncoding | null | undefined } | BufferEncoding | null): Promise; + + /** + * Asynchronously creates a unique temporary directory. + * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__(prefix: string, options: { encoding: "buffer" } | "buffer"): Promise; + + /** + * Asynchronously creates a unique temporary directory. + * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__(prefix: string, options?: { encoding?: string | null | undefined } | string | null): Promise; + } + + /** + * Synchronously creates a unique temporary directory. + * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function mkdtempSync(prefix: string, options?: { encoding?: BufferEncoding | null | undefined } | BufferEncoding | null): string; + + /** + * Synchronously creates a unique temporary directory. + * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function mkdtempSync(prefix: string, options: { encoding: "buffer" } | "buffer"): Buffer; + + /** + * Synchronously creates a unique temporary directory. + * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function mkdtempSync(prefix: string, options?: { encoding?: string | null | undefined } | string | null): string | Buffer; + + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function readdir( + path: PathLike, + options: { encoding: BufferEncoding | null; withFileTypes?: false | undefined } | BufferEncoding | undefined | null, + callback: (err: NodeJS.ErrnoException | null, files: string[]) => void, + ): void; + + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function readdir(path: PathLike, options: { encoding: "buffer"; withFileTypes?: false | undefined } | "buffer", callback: (err: NodeJS.ErrnoException | null, files: Buffer[]) => void): void; + + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function readdir( + path: PathLike, + options: { encoding?: string | null | undefined; withFileTypes?: false | undefined } | string | undefined | null, + callback: (err: NodeJS.ErrnoException | null, files: string[] | Buffer[]) => void, + ): void; + + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function readdir(path: PathLike, callback: (err: NodeJS.ErrnoException | null, files: string[]) => void): void; + + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options If called with `withFileTypes: true` the result data will be an array of Dirent. + */ + function readdir(path: PathLike, options: { encoding?: string | null | undefined; withFileTypes: true }, callback: (err: NodeJS.ErrnoException | null, files: Dirent[]) => void): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace readdir { + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__(path: PathLike, options?: { encoding: BufferEncoding | null; withFileTypes?: false | undefined } | BufferEncoding | null): Promise; + + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__(path: PathLike, options: "buffer" | { encoding: "buffer"; withFileTypes?: false | undefined }): Promise; + + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__(path: PathLike, options?: { encoding?: string | null | undefined; withFileTypes?: false | undefined } | string | null): Promise; + + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options If called with `withFileTypes: true` the result data will be an array of Dirent + */ + function __promisify__(path: PathLike, options: { encoding?: string | null | undefined; withFileTypes: true }): Promise; + } + + /** + * Synchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function readdirSync(path: PathLike, options?: { encoding: BufferEncoding | null; withFileTypes?: false | undefined } | BufferEncoding | null): string[]; + + /** + * Synchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function readdirSync(path: PathLike, options: { encoding: "buffer"; withFileTypes?: false | undefined } | "buffer"): Buffer[]; + + /** + * Synchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function readdirSync(path: PathLike, options?: { encoding?: string | null | undefined; withFileTypes?: false | undefined } | string | null): string[] | Buffer[]; + + /** + * Synchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options If called with `withFileTypes: true` the result data will be an array of Dirent. + */ + function readdirSync(path: PathLike, options: { encoding?: string | null | undefined; withFileTypes: true }): Dirent[]; + + /** + * Asynchronous close(2) - close a file descriptor. + * @param fd A file descriptor. + */ + function close(fd: number, callback: NoParamCallback): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace close { + /** + * Asynchronous close(2) - close a file descriptor. + * @param fd A file descriptor. + */ + function __promisify__(fd: number): Promise; + } + + /** + * Synchronous close(2) - close a file descriptor. + * @param fd A file descriptor. + */ + function closeSync(fd: number): void; + + /** + * Asynchronous open(2) - open and possibly create a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param [flags='r'] See `support of file system `flags``. + * @param [mode] A file mode. If a string is passed, it is parsed as an octal integer. If not supplied, defaults to `0o666`. + */ + function open(path: PathLike, flags: string | number | undefined, mode: string | number | undefined | null, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void; + + /** + * Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param [flags='r'] See `support of file system `flags``. + */ + function open(path: PathLike, flags: string | number | undefined, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void; + + /** + * Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function open(path: PathLike, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace open { + /** + * Asynchronous open(2) - open and possibly create a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param mode A file mode. If a string is passed, it is parsed as an octal integer. If not supplied, defaults to `0o666`. + */ + function __promisify__(path: PathLike, flags: string | number, mode?: string | number | null): Promise; + } + + /** + * Synchronous open(2) - open and possibly create a file, returning a file descriptor.. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param mode A file mode. If a string is passed, it is parsed as an octal integer. If not supplied, defaults to `0o666`. + */ + function openSync(path: PathLike, flags: string | number, mode?: string | number | null): number; + + /** + * Asynchronously change file timestamps of the file referenced by the supplied path. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param atime The last access time. If a string is provided, it will be coerced to number. + * @param mtime The last modified time. If a string is provided, it will be coerced to number. + */ + function utimes(path: PathLike, atime: string | number | Date, mtime: string | number | Date, callback: NoParamCallback): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace utimes { + /** + * Asynchronously change file timestamps of the file referenced by the supplied path. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param atime The last access time. If a string is provided, it will be coerced to number. + * @param mtime The last modified time. If a string is provided, it will be coerced to number. + */ + function __promisify__(path: PathLike, atime: string | number | Date, mtime: string | number | Date): Promise; + } + + /** + * Synchronously change file timestamps of the file referenced by the supplied path. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param atime The last access time. If a string is provided, it will be coerced to number. + * @param mtime The last modified time. If a string is provided, it will be coerced to number. + */ + function utimesSync(path: PathLike, atime: string | number | Date, mtime: string | number | Date): void; + + /** + * Asynchronously change file timestamps of the file referenced by the supplied file descriptor. + * @param fd A file descriptor. + * @param atime The last access time. If a string is provided, it will be coerced to number. + * @param mtime The last modified time. If a string is provided, it will be coerced to number. + */ + function futimes(fd: number, atime: string | number | Date, mtime: string | number | Date, callback: NoParamCallback): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace futimes { + /** + * Asynchronously change file timestamps of the file referenced by the supplied file descriptor. + * @param fd A file descriptor. + * @param atime The last access time. If a string is provided, it will be coerced to number. + * @param mtime The last modified time. If a string is provided, it will be coerced to number. + */ + function __promisify__(fd: number, atime: string | number | Date, mtime: string | number | Date): Promise; + } + + /** + * Synchronously change file timestamps of the file referenced by the supplied file descriptor. + * @param fd A file descriptor. + * @param atime The last access time. If a string is provided, it will be coerced to number. + * @param mtime The last modified time. If a string is provided, it will be coerced to number. + */ + function futimesSync(fd: number, atime: string | number | Date, mtime: string | number | Date): void; + + /** + * Asynchronous fsync(2) - synchronize a file's in-core state with the underlying storage device. + * @param fd A file descriptor. + */ + function fsync(fd: number, callback: NoParamCallback): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace fsync { + /** + * Asynchronous fsync(2) - synchronize a file's in-core state with the underlying storage device. + * @param fd A file descriptor. + */ + function __promisify__(fd: number): Promise; + } + + /** + * Synchronous fsync(2) - synchronize a file's in-core state with the underlying storage device. + * @param fd A file descriptor. + */ + function fsyncSync(fd: number): void; + + /** + * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. + * @param fd A file descriptor. + * @param offset The part of the buffer to be written. If not supplied, defaults to `0`. + * @param length The number of bytes to write. If not supplied, defaults to `buffer.length - offset`. + * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. + */ + function write( + fd: number, + buffer: TBuffer, + offset: number | undefined | null, + length: number | undefined | null, + position: number | undefined | null, + callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void, + ): void; + + /** + * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. + * @param fd A file descriptor. + * @param offset The part of the buffer to be written. If not supplied, defaults to `0`. + * @param length The number of bytes to write. If not supplied, defaults to `buffer.length - offset`. + */ + function write( + fd: number, + buffer: TBuffer, + offset: number | undefined | null, + length: number | undefined | null, + callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void, + ): void; + + /** + * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. + * @param fd A file descriptor. + * @param offset The part of the buffer to be written. If not supplied, defaults to `0`. + */ + function write( + fd: number, + buffer: TBuffer, + offset: number | undefined | null, + callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void + ): void; + + /** + * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. + * @param fd A file descriptor. + */ + function write(fd: number, buffer: TBuffer, callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void): void; + + /** + * Asynchronously writes `string` to the file referenced by the supplied file descriptor. + * @param fd A file descriptor. + * @param string A string to write. If something other than a string is supplied it will be coerced to a string. + * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. + * @param encoding The expected string encoding. + */ + function write( + fd: number, + string: any, + position: number | undefined | null, + encoding: string | undefined | null, + callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void, + ): void; + + /** + * Asynchronously writes `string` to the file referenced by the supplied file descriptor. + * @param fd A file descriptor. + * @param string A string to write. If something other than a string is supplied it will be coerced to a string. + * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. + */ + function write(fd: number, string: any, position: number | undefined | null, callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void): void; + + /** + * Asynchronously writes `string` to the file referenced by the supplied file descriptor. + * @param fd A file descriptor. + * @param string A string to write. If something other than a string is supplied it will be coerced to a string. + */ + function write(fd: number, string: any, callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace write { + /** + * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. + * @param fd A file descriptor. + * @param offset The part of the buffer to be written. If not supplied, defaults to `0`. + * @param length The number of bytes to write. If not supplied, defaults to `buffer.length - offset`. + * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. + */ + function __promisify__( + fd: number, + buffer?: TBuffer, + offset?: number, + length?: number, + position?: number | null, + ): Promise<{ bytesWritten: number, buffer: TBuffer }>; + + /** + * Asynchronously writes `string` to the file referenced by the supplied file descriptor. + * @param fd A file descriptor. + * @param string A string to write. If something other than a string is supplied it will be coerced to a string. + * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. + * @param encoding The expected string encoding. + */ + function __promisify__(fd: number, string: any, position?: number | null, encoding?: string | null): Promise<{ bytesWritten: number, buffer: string }>; + } + + /** + * Synchronously writes `buffer` to the file referenced by the supplied file descriptor, returning the number of bytes written. + * @param fd A file descriptor. + * @param offset The part of the buffer to be written. If not supplied, defaults to `0`. + * @param length The number of bytes to write. If not supplied, defaults to `buffer.length - offset`. + * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. + */ + function writeSync(fd: number, buffer: NodeJS.ArrayBufferView, offset?: number | null, length?: number | null, position?: number | null): number; + + /** + * Synchronously writes `string` to the file referenced by the supplied file descriptor, returning the number of bytes written. + * @param fd A file descriptor. + * @param string A string to write. If something other than a string is supplied it will be coerced to a string. + * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. + * @param encoding The expected string encoding. + */ + function writeSync(fd: number, string: any, position?: number | null, encoding?: string | null): number; + + /** + * Asynchronously reads data from the file referenced by the supplied file descriptor. + * @param fd A file descriptor. + * @param buffer The buffer that the data will be written to. + * @param offset The offset in the buffer at which to start writing. + * @param length The number of bytes to read. + * @param position The offset from the beginning of the file from which data should be read. If `null`, data will be read from the current position. + */ + function read( + fd: number, + buffer: TBuffer, + offset: number, + length: number, + position: number | null, + callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void, + ): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace read { + /** + * @param fd A file descriptor. + * @param buffer The buffer that the data will be written to. + * @param offset The offset in the buffer at which to start writing. + * @param length The number of bytes to read. + * @param position The offset from the beginning of the file from which data should be read. If `null`, data will be read from the current position. + */ + function __promisify__( + fd: number, + buffer: TBuffer, + offset: number, + length: number, + position: number | null + ): Promise<{ bytesRead: number, buffer: TBuffer }>; + } + + /** + * Synchronously reads data from the file referenced by the supplied file descriptor, returning the number of bytes read. + * @param fd A file descriptor. + * @param buffer The buffer that the data will be written to. + * @param offset The offset in the buffer at which to start writing. + * @param length The number of bytes to read. + * @param position The offset from the beginning of the file from which data should be read. If `null`, data will be read from the current position. + */ + function readSync(fd: number, buffer: NodeJS.ArrayBufferView, offset: number, length: number, position: number | null): number; + + /** + * Asynchronously reads the entire contents of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param options An object that may contain an optional flag. + * If a flag is not provided, it defaults to `'r'`. + */ + function readFile( + path: PathLike | number, + options: { encoding?: null | undefined; flag?: string | undefined; } | undefined | null, + callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void + ): void; + + /** + * Asynchronously reads the entire contents of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. + * If a flag is not provided, it defaults to `'r'`. + */ + function readFile(path: PathLike | number, options: { encoding: string; flag?: string | undefined; } | string, callback: (err: NodeJS.ErrnoException | null, data: string) => void): void; + + /** + * Asynchronously reads the entire contents of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. + * If a flag is not provided, it defaults to `'r'`. + */ + function readFile( + path: PathLike | number, + options: { encoding?: string | null | undefined; flag?: string | undefined; } | string | undefined | null, + callback: (err: NodeJS.ErrnoException | null, data: string | Buffer) => void, + ): void; + + /** + * Asynchronously reads the entire contents of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + */ + function readFile(path: PathLike | number, callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace readFile { + /** + * Asynchronously reads the entire contents of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param options An object that may contain an optional flag. + * If a flag is not provided, it defaults to `'r'`. + */ + function __promisify__(path: PathLike | number, options?: { encoding?: null | undefined; flag?: string | undefined; } | null): Promise; + + /** + * Asynchronously reads the entire contents of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. + * If a flag is not provided, it defaults to `'r'`. + */ + function __promisify__(path: PathLike | number, options: { encoding: string; flag?: string | undefined; } | string): Promise; + + /** + * Asynchronously reads the entire contents of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. + * If a flag is not provided, it defaults to `'r'`. + */ + function __promisify__(path: PathLike | number, options?: { encoding?: string | null | undefined; flag?: string | undefined; } | string | null): Promise; + } + + /** + * Synchronously reads the entire contents of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param options An object that may contain an optional flag. If a flag is not provided, it defaults to `'r'`. + */ + function readFileSync(path: PathLike | number, options?: { encoding?: null | undefined; flag?: string | undefined; } | null): Buffer; + + /** + * Synchronously reads the entire contents of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. + * If a flag is not provided, it defaults to `'r'`. + */ + function readFileSync(path: PathLike | number, options: { encoding: string; flag?: string | undefined; } | string): string; + + /** + * Synchronously reads the entire contents of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. + * If a flag is not provided, it defaults to `'r'`. + */ + function readFileSync(path: PathLike | number, options?: { encoding?: string | null | undefined; flag?: string | undefined; } | string | null): string | Buffer; + + type WriteFileOptions = { encoding?: string | null | undefined; mode?: number | string | undefined; flag?: string | undefined; } | string | null; + + /** + * Asynchronously writes data to a file, replacing the file if it already exists. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. + * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag. + * If `encoding` is not supplied, the default of `'utf8'` is used. + * If `mode` is not supplied, the default of `0o666` is used. + * If `mode` is a string, it is parsed as an octal integer. + * If `flag` is not supplied, the default of `'w'` is used. + */ + function writeFile(path: PathLike | number, data: any, options: WriteFileOptions, callback: NoParamCallback): void; + + /** + * Asynchronously writes data to a file, replacing the file if it already exists. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. + */ + function writeFile(path: PathLike | number, data: any, callback: NoParamCallback): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace writeFile { + /** + * Asynchronously writes data to a file, replacing the file if it already exists. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. + * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag. + * If `encoding` is not supplied, the default of `'utf8'` is used. + * If `mode` is not supplied, the default of `0o666` is used. + * If `mode` is a string, it is parsed as an octal integer. + * If `flag` is not supplied, the default of `'w'` is used. + */ + function __promisify__(path: PathLike | number, data: any, options?: WriteFileOptions): Promise; + } + + /** + * Synchronously writes data to a file, replacing the file if it already exists. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. + * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag. + * If `encoding` is not supplied, the default of `'utf8'` is used. + * If `mode` is not supplied, the default of `0o666` is used. + * If `mode` is a string, it is parsed as an octal integer. + * If `flag` is not supplied, the default of `'w'` is used. + */ + function writeFileSync(path: PathLike | number, data: any, options?: WriteFileOptions): void; + + /** + * Asynchronously append data to a file, creating the file if it does not exist. + * @param file A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. + * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag. + * If `encoding` is not supplied, the default of `'utf8'` is used. + * If `mode` is not supplied, the default of `0o666` is used. + * If `mode` is a string, it is parsed as an octal integer. + * If `flag` is not supplied, the default of `'a'` is used. + */ + function appendFile(file: PathLike | number, data: any, options: WriteFileOptions, callback: NoParamCallback): void; + + /** + * Asynchronously append data to a file, creating the file if it does not exist. + * @param file A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. + */ + function appendFile(file: PathLike | number, data: any, callback: NoParamCallback): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace appendFile { + /** + * Asynchronously append data to a file, creating the file if it does not exist. + * @param file A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. + * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag. + * If `encoding` is not supplied, the default of `'utf8'` is used. + * If `mode` is not supplied, the default of `0o666` is used. + * If `mode` is a string, it is parsed as an octal integer. + * If `flag` is not supplied, the default of `'a'` is used. + */ + function __promisify__(file: PathLike | number, data: any, options?: WriteFileOptions): Promise; + } + + /** + * Synchronously append data to a file, creating the file if it does not exist. + * @param file A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. + * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag. + * If `encoding` is not supplied, the default of `'utf8'` is used. + * If `mode` is not supplied, the default of `0o666` is used. + * If `mode` is a string, it is parsed as an octal integer. + * If `flag` is not supplied, the default of `'a'` is used. + */ + function appendFileSync(file: PathLike | number, data: any, options?: WriteFileOptions): void; + + /** + * Watch for changes on `filename`. The callback `listener` will be called each time the file is accessed. + */ + function watchFile(filename: PathLike, options: { persistent?: boolean | undefined; interval?: number | undefined; } | undefined, listener: (curr: Stats, prev: Stats) => void): void; + + /** + * Watch for changes on `filename`. The callback `listener` will be called each time the file is accessed. + * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + */ + function watchFile(filename: PathLike, listener: (curr: Stats, prev: Stats) => void): void; + + /** + * Stop watching for changes on `filename`. + * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + */ + function unwatchFile(filename: PathLike, listener?: (curr: Stats, prev: Stats) => void): void; + + /** + * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. + * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options. + * If `encoding` is not supplied, the default of `'utf8'` is used. + * If `persistent` is not supplied, the default of `true` is used. + * If `recursive` is not supplied, the default of `false` is used. + */ + function watch( + filename: PathLike, + options: { encoding?: BufferEncoding | null | undefined, persistent?: boolean | undefined, recursive?: boolean | undefined } | BufferEncoding | undefined | null, + listener?: (event: string, filename: string) => void, + ): FSWatcher; + + /** + * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. + * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options. + * If `encoding` is not supplied, the default of `'utf8'` is used. + * If `persistent` is not supplied, the default of `true` is used. + * If `recursive` is not supplied, the default of `false` is used. + */ + function watch( + filename: PathLike, + options: { encoding: "buffer", persistent?: boolean | undefined, recursive?: boolean | undefined } | "buffer", + listener?: (event: string, filename: Buffer) => void + ): FSWatcher; + + /** + * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. + * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options. + * If `encoding` is not supplied, the default of `'utf8'` is used. + * If `persistent` is not supplied, the default of `true` is used. + * If `recursive` is not supplied, the default of `false` is used. + */ + function watch( + filename: PathLike, + options: { encoding?: string | null | undefined, persistent?: boolean | undefined, recursive?: boolean | undefined } | string | null, + listener?: (event: string, filename: string | Buffer) => void, + ): FSWatcher; + + /** + * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. + * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + */ + function watch(filename: PathLike, listener?: (event: string, filename: string) => any): FSWatcher; + + /** + * Asynchronously tests whether or not the given path exists by checking with the file system. + * @deprecated + * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + */ + function exists(path: PathLike, callback: (exists: boolean) => void): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace exists { + /** + * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + */ + function __promisify__(path: PathLike): Promise; + } + + /** + * Synchronously tests whether or not the given path exists by checking with the file system. + * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + */ + function existsSync(path: PathLike): boolean; + + namespace constants { + // File Access Constants + + /** Constant for fs.access(). File is visible to the calling process. */ + const F_OK: number; + + /** Constant for fs.access(). File can be read by the calling process. */ + const R_OK: number; + + /** Constant for fs.access(). File can be written by the calling process. */ + const W_OK: number; + + /** Constant for fs.access(). File can be executed by the calling process. */ + const X_OK: number; + + // File Copy Constants + + /** Constant for fs.copyFile. Flag indicating the destination file should not be overwritten if it already exists. */ + const COPYFILE_EXCL: number; + + /** + * Constant for fs.copyFile. copy operation will attempt to create a copy-on-write reflink. + * If the underlying platform does not support copy-on-write, then a fallback copy mechanism is used. + */ + const COPYFILE_FICLONE: number; + + /** + * Constant for fs.copyFile. Copy operation will attempt to create a copy-on-write reflink. + * If the underlying platform does not support copy-on-write, then the operation will fail with an error. + */ + const COPYFILE_FICLONE_FORCE: number; + + // File Open Constants + + /** Constant for fs.open(). Flag indicating to open a file for read-only access. */ + const O_RDONLY: number; + + /** Constant for fs.open(). Flag indicating to open a file for write-only access. */ + const O_WRONLY: number; + + /** Constant for fs.open(). Flag indicating to open a file for read-write access. */ + const O_RDWR: number; + + /** Constant for fs.open(). Flag indicating to create the file if it does not already exist. */ + const O_CREAT: number; + + /** Constant for fs.open(). Flag indicating that opening a file should fail if the O_CREAT flag is set and the file already exists. */ + const O_EXCL: number; + + /** + * Constant for fs.open(). Flag indicating that if path identifies a terminal device, + * opening the path shall not cause that terminal to become the controlling terminal for the process + * (if the process does not already have one). + */ + const O_NOCTTY: number; + + /** Constant for fs.open(). Flag indicating that if the file exists and is a regular file, and the file is opened successfully for write access, its length shall be truncated to zero. */ + const O_TRUNC: number; + + /** Constant for fs.open(). Flag indicating that data will be appended to the end of the file. */ + const O_APPEND: number; + + /** Constant for fs.open(). Flag indicating that the open should fail if the path is not a directory. */ + const O_DIRECTORY: number; + + /** + * constant for fs.open(). + * Flag indicating reading accesses to the file system will no longer result in + * an update to the atime information associated with the file. + * This flag is available on Linux operating systems only. + */ + const O_NOATIME: number; + + /** Constant for fs.open(). Flag indicating that the open should fail if the path is a symbolic link. */ + const O_NOFOLLOW: number; + + /** Constant for fs.open(). Flag indicating that the file is opened for synchronous I/O. */ + const O_SYNC: number; + + /** Constant for fs.open(). Flag indicating that the file is opened for synchronous I/O with write operations waiting for data integrity. */ + const O_DSYNC: number; + + /** Constant for fs.open(). Flag indicating to open the symbolic link itself rather than the resource it is pointing to. */ + const O_SYMLINK: number; + + /** Constant for fs.open(). When set, an attempt will be made to minimize caching effects of file I/O. */ + const O_DIRECT: number; + + /** Constant for fs.open(). Flag indicating to open the file in nonblocking mode when possible. */ + const O_NONBLOCK: number; + + // File Type Constants + + /** Constant for fs.Stats mode property for determining a file's type. Bit mask used to extract the file type code. */ + const S_IFMT: number; + + /** Constant for fs.Stats mode property for determining a file's type. File type constant for a regular file. */ + const S_IFREG: number; + + /** Constant for fs.Stats mode property for determining a file's type. File type constant for a directory. */ + const S_IFDIR: number; + + /** Constant for fs.Stats mode property for determining a file's type. File type constant for a character-oriented device file. */ + const S_IFCHR: number; + + /** Constant for fs.Stats mode property for determining a file's type. File type constant for a block-oriented device file. */ + const S_IFBLK: number; + + /** Constant for fs.Stats mode property for determining a file's type. File type constant for a FIFO/pipe. */ + const S_IFIFO: number; + + /** Constant for fs.Stats mode property for determining a file's type. File type constant for a symbolic link. */ + const S_IFLNK: number; + + /** Constant for fs.Stats mode property for determining a file's type. File type constant for a socket. */ + const S_IFSOCK: number; + + // File Mode Constants + + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by owner. */ + const S_IRWXU: number; + + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by owner. */ + const S_IRUSR: number; + + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by owner. */ + const S_IWUSR: number; + + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by owner. */ + const S_IXUSR: number; + + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by group. */ + const S_IRWXG: number; + + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by group. */ + const S_IRGRP: number; + + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by group. */ + const S_IWGRP: number; + + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by group. */ + const S_IXGRP: number; + + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by others. */ + const S_IRWXO: number; + + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by others. */ + const S_IROTH: number; + + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by others. */ + const S_IWOTH: number; + + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by others. */ + const S_IXOTH: number; + + /** + * When set, a memory file mapping is used to access the file. This flag + * is available on Windows operating systems only. On other operating systems, + * this flag is ignored. + */ + const UV_FS_O_FILEMAP: number; + } + + /** + * Asynchronously tests a user's permissions for the file specified by path. + * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + */ + function access(path: PathLike, mode: number | undefined, callback: NoParamCallback): void; + + /** + * Asynchronously tests a user's permissions for the file specified by path. + * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + */ + function access(path: PathLike, callback: NoParamCallback): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace access { + /** + * Asynchronously tests a user's permissions for the file specified by path. + * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + */ + function __promisify__(path: PathLike, mode?: number): Promise; + } + + /** + * Synchronously tests a user's permissions for the file specified by path. + * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + */ + function accessSync(path: PathLike, mode?: number): void; + + /** + * Returns a new `ReadStream` object. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + */ + function createReadStream(path: PathLike, options?: string | { + flags?: string | undefined; + encoding?: string | undefined; + fd?: number | undefined; + mode?: number | undefined; + autoClose?: boolean | undefined; + /** + * @default false + */ + emitClose?: boolean | undefined; + start?: number | undefined; + end?: number | undefined; + highWaterMark?: number | undefined; + }): ReadStream; + + /** + * Returns a new `WriteStream` object. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + */ + function createWriteStream(path: PathLike, options?: string | { + flags?: string | undefined; + encoding?: string | undefined; + fd?: number | undefined; + mode?: number | undefined; + autoClose?: boolean | undefined; + emitClose?: boolean | undefined; + start?: number | undefined; + highWaterMark?: number | undefined; + }): WriteStream; + + /** + * Asynchronous fdatasync(2) - synchronize a file's in-core state with storage device. + * @param fd A file descriptor. + */ + function fdatasync(fd: number, callback: NoParamCallback): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace fdatasync { + /** + * Asynchronous fdatasync(2) - synchronize a file's in-core state with storage device. + * @param fd A file descriptor. + */ + function __promisify__(fd: number): Promise; + } + + /** + * Synchronous fdatasync(2) - synchronize a file's in-core state with storage device. + * @param fd A file descriptor. + */ + function fdatasyncSync(fd: number): void; + + /** + * Asynchronously copies src to dest. By default, dest is overwritten if it already exists. + * No arguments other than a possible exception are given to the callback function. + * Node.js makes no guarantees about the atomicity of the copy operation. + * If an error occurs after the destination file has been opened for writing, Node.js will attempt + * to remove the destination. + * @param src A path to the source file. + * @param dest A path to the destination file. + */ + function copyFile(src: PathLike, dest: PathLike, callback: NoParamCallback): void; + /** + * Asynchronously copies src to dest. By default, dest is overwritten if it already exists. + * No arguments other than a possible exception are given to the callback function. + * Node.js makes no guarantees about the atomicity of the copy operation. + * If an error occurs after the destination file has been opened for writing, Node.js will attempt + * to remove the destination. + * @param src A path to the source file. + * @param dest A path to the destination file. + * @param flags An integer that specifies the behavior of the copy operation. The only supported flag is fs.constants.COPYFILE_EXCL, which causes the copy operation to fail if dest already exists. + */ + function copyFile(src: PathLike, dest: PathLike, flags: number, callback: NoParamCallback): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + namespace copyFile { + /** + * Asynchronously copies src to dest. By default, dest is overwritten if it already exists. + * No arguments other than a possible exception are given to the callback function. + * Node.js makes no guarantees about the atomicity of the copy operation. + * If an error occurs after the destination file has been opened for writing, Node.js will attempt + * to remove the destination. + * @param src A path to the source file. + * @param dest A path to the destination file. + * @param flags An optional integer that specifies the behavior of the copy operation. + * The only supported flag is fs.constants.COPYFILE_EXCL, + * which causes the copy operation to fail if dest already exists. + */ + function __promisify__(src: PathLike, dst: PathLike, flags?: number): Promise; + } + + /** + * Synchronously copies src to dest. By default, dest is overwritten if it already exists. + * Node.js makes no guarantees about the atomicity of the copy operation. + * If an error occurs after the destination file has been opened for writing, Node.js will attempt + * to remove the destination. + * @param src A path to the source file. + * @param dest A path to the destination file. + * @param flags An optional integer that specifies the behavior of the copy operation. + * The only supported flag is fs.constants.COPYFILE_EXCL, which causes the copy operation to fail if dest already exists. + */ + function copyFileSync(src: PathLike, dest: PathLike, flags?: number): void; + + /** + * Write an array of ArrayBufferViews to the file specified by fd using writev(). + * position is the offset from the beginning of the file where this data should be written. + * It is unsafe to use fs.writev() multiple times on the same file without waiting for the callback. For this scenario, use fs.createWriteStream(). + * On Linux, positional writes don't work when the file is opened in append mode. + * The kernel ignores the position argument and always appends the data to the end of the file. + */ + function writev( + fd: number, + buffers: ReadonlyArray, + cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void + ): void; + function writev( + fd: number, + buffers: ReadonlyArray, + position: number, + cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void + ): void; + + interface WriteVResult { + bytesWritten: number; + buffers: NodeJS.ArrayBufferView[]; + } + + namespace writev { + function __promisify__(fd: number, buffers: ReadonlyArray, position?: number): Promise; + } + + /** + * See `writev`. + */ + function writevSync(fd: number, buffers: ReadonlyArray, position?: number): number; + + interface OpenDirOptions { + encoding?: BufferEncoding | undefined; + } + + function opendirSync(path: PathLike, options?: OpenDirOptions): Dir; + + function opendir(path: PathLike, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void; + function opendir(path: PathLike, options: OpenDirOptions, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void; + + namespace opendir { + function __promisify__(path: PathLike, options?: OpenDirOptions): Promise; + } + + namespace promises { + interface FileHandle { + /** + * Gets the file descriptor for this file handle. + */ + readonly fd: number; + + /** + * Asynchronously append data to a file, creating the file if it does not exist. The underlying file will _not_ be closed automatically. + * The `FileHandle` must have been opened for appending. + * @param data The data to write. If something other than a `Buffer` or `Uint8Array` is provided, the value is coerced to a string. + * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag. + * If `encoding` is not supplied, the default of `'utf8'` is used. + * If `mode` is not supplied, the default of `0o666` is used. + * If `mode` is a string, it is parsed as an octal integer. + * If `flag` is not supplied, the default of `'a'` is used. + */ + appendFile(data: any, options?: { encoding?: string | null | undefined, mode?: string | number | undefined, flag?: string | number | undefined } | string | null): Promise; + + /** + * Asynchronous fchown(2) - Change ownership of a file. + */ + chown(uid: number, gid: number): Promise; + + /** + * Asynchronous fchmod(2) - Change permissions of a file. + * @param mode A file mode. If a string is passed, it is parsed as an octal integer. + */ + chmod(mode: string | number): Promise; + + /** + * Asynchronous fdatasync(2) - synchronize a file's in-core state with storage device. + */ + datasync(): Promise; + + /** + * Asynchronous fsync(2) - synchronize a file's in-core state with the underlying storage device. + */ + sync(): Promise; + + /** + * Asynchronously reads data from the file. + * The `FileHandle` must have been opened for reading. + * @param buffer The buffer that the data will be written to. + * @param offset The offset in the buffer at which to start writing. + * @param length The number of bytes to read. + * @param position The offset from the beginning of the file from which data should be read. If `null`, data will be read from the current position. + */ + read(buffer: TBuffer, offset?: number | null, length?: number | null, position?: number | null): Promise<{ bytesRead: number, buffer: TBuffer }>; + + /** + * Asynchronously reads the entire contents of a file. The underlying file will _not_ be closed automatically. + * The `FileHandle` must have been opened for reading. + * @param options An object that may contain an optional flag. + * If a flag is not provided, it defaults to `'r'`. + */ + readFile(options?: { encoding?: null | undefined, flag?: string | number | undefined } | null): Promise; + + /** + * Asynchronously reads the entire contents of a file. The underlying file will _not_ be closed automatically. + * The `FileHandle` must have been opened for reading. + * @param options An object that may contain an optional flag. + * If a flag is not provided, it defaults to `'r'`. + */ + readFile(options: { encoding: BufferEncoding, flag?: string | number | undefined } | BufferEncoding): Promise; + + /** + * Asynchronously reads the entire contents of a file. The underlying file will _not_ be closed automatically. + * The `FileHandle` must have been opened for reading. + * @param options An object that may contain an optional flag. + * If a flag is not provided, it defaults to `'r'`. + */ + readFile(options?: { encoding?: string | null | undefined, flag?: string | number | undefined } | string | null): Promise; + + /** + * Asynchronous fstat(2) - Get file status. + */ + stat(opts?: StatOptions & { bigint?: false | undefined }): Promise; + stat(opts: StatOptions & { bigint: true }): Promise; + stat(opts: StatOptions): Promise; + + /** + * Asynchronous ftruncate(2) - Truncate a file to a specified length. + * @param len If not specified, defaults to `0`. + */ + truncate(len?: number): Promise; + + /** + * Asynchronously change file timestamps of the file. + * @param atime The last access time. If a string is provided, it will be coerced to number. + * @param mtime The last modified time. If a string is provided, it will be coerced to number. + */ + utimes(atime: string | number | Date, mtime: string | number | Date): Promise; + + /** + * Asynchronously writes `buffer` to the file. + * The `FileHandle` must have been opened for writing. + * @param buffer The buffer that the data will be written to. + * @param offset The part of the buffer to be written. If not supplied, defaults to `0`. + * @param length The number of bytes to write. If not supplied, defaults to `buffer.length - offset`. + * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. + */ + write(buffer: TBuffer, offset?: number | null, length?: number | null, position?: number | null): Promise<{ bytesWritten: number, buffer: TBuffer }>; + + /** + * Asynchronously writes `string` to the file. + * The `FileHandle` must have been opened for writing. + * It is unsafe to call `write()` multiple times on the same file without waiting for the `Promise` + * to be resolved (or rejected). For this scenario, `fs.createWriteStream` is strongly recommended. + * @param string A string to write. If something other than a string is supplied it will be coerced to a string. + * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. + * @param encoding The expected string encoding. + */ + write(data: any, position?: number | null, encoding?: string | null): Promise<{ bytesWritten: number, buffer: string }>; + + /** + * Asynchronously writes data to a file, replacing the file if it already exists. The underlying file will _not_ be closed automatically. + * The `FileHandle` must have been opened for writing. + * It is unsafe to call `writeFile()` multiple times on the same file without waiting for the `Promise` to be resolved (or rejected). + * @param data The data to write. If something other than a `Buffer` or `Uint8Array` is provided, the value is coerced to a string. + * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag. + * If `encoding` is not supplied, the default of `'utf8'` is used. + * If `mode` is not supplied, the default of `0o666` is used. + * If `mode` is a string, it is parsed as an octal integer. + * If `flag` is not supplied, the default of `'w'` is used. + */ + writeFile(data: any, options?: { encoding?: string | null | undefined, mode?: string | number | undefined, flag?: string | number | undefined } | string | null): Promise; + + /** + * See `fs.writev` promisified version. + */ + writev(buffers: ReadonlyArray, position?: number): Promise; + + /** + * Asynchronous close(2) - close a `FileHandle`. + */ + close(): Promise; + } + + /** + * Asynchronously tests a user's permissions for the file specified by path. + * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + */ + function access(path: PathLike, mode?: number): Promise; + + /** + * Asynchronously copies `src` to `dest`. By default, `dest` is overwritten if it already exists. + * Node.js makes no guarantees about the atomicity of the copy operation. + * If an error occurs after the destination file has been opened for writing, Node.js will attempt + * to remove the destination. + * @param src A path to the source file. + * @param dest A path to the destination file. + * @param flags An optional integer that specifies the behavior of the copy operation. The only + * supported flag is `fs.constants.COPYFILE_EXCL`, which causes the copy operation to fail if + * `dest` already exists. + */ + function copyFile(src: PathLike, dest: PathLike, flags?: number): Promise; + + /** + * Asynchronous open(2) - open and possibly create a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param [flags='r'] See `support of file system `flags``. + * @param [mode] A file mode. If a string is passed, it is parsed as an octal integer. If not + * supplied, defaults to `0o666`. + */ + function open(path: PathLike, flags?: string | number, mode?: string | number): Promise; + + /** + * Asynchronously reads data from the file referenced by the supplied `FileHandle`. + * @param handle A `FileHandle`. + * @param buffer The buffer that the data will be written to. + * @param offset The offset in the buffer at which to start writing. + * @param length The number of bytes to read. + * @param position The offset from the beginning of the file from which data should be read. If + * `null`, data will be read from the current position. + */ + function read( + handle: FileHandle, + buffer: TBuffer, + offset?: number | null, + length?: number | null, + position?: number | null, + ): Promise<{ bytesRead: number, buffer: TBuffer }>; + + /** + * Asynchronously writes `buffer` to the file referenced by the supplied `FileHandle`. + * It is unsafe to call `fsPromises.write()` multiple times on the same file without waiting for the `Promise` + * to be resolved (or rejected). For this scenario, `fs.createWriteStream` is strongly recommended. + * @param handle A `FileHandle`. + * @param buffer The buffer that the data will be written to. + * @param offset The part of the buffer to be written. If not supplied, defaults to `0`. + * @param length The number of bytes to write. If not supplied, defaults to `buffer.length - offset`. + * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. + */ + function write( + handle: FileHandle, + buffer: TBuffer, + offset?: number | null, + length?: number | null, position?: number | null): Promise<{ bytesWritten: number, buffer: TBuffer }>; + + /** + * Asynchronously writes `string` to the file referenced by the supplied `FileHandle`. + * It is unsafe to call `fsPromises.write()` multiple times on the same file without waiting for the `Promise` + * to be resolved (or rejected). For this scenario, `fs.createWriteStream` is strongly recommended. + * @param handle A `FileHandle`. + * @param string A string to write. If something other than a string is supplied it will be coerced to a string. + * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. + * @param encoding The expected string encoding. + */ + function write(handle: FileHandle, string: any, position?: number | null, encoding?: string | null): Promise<{ bytesWritten: number, buffer: string }>; + + /** + * Asynchronous rename(2) - Change the name or location of a file or directory. + * @param oldPath A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + */ + function rename(oldPath: PathLike, newPath: PathLike): Promise; + + /** + * Asynchronous truncate(2) - Truncate a file to a specified length. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param len If not specified, defaults to `0`. + */ + function truncate(path: PathLike, len?: number): Promise; + + /** + * Asynchronous ftruncate(2) - Truncate a file to a specified length. + * @param handle A `FileHandle`. + * @param len If not specified, defaults to `0`. + */ + function ftruncate(handle: FileHandle, len?: number): Promise; + + /** + * Asynchronous rmdir(2) - delete a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function rmdir(path: PathLike, options?: RmDirOptions): Promise; + + /** + * Asynchronous fdatasync(2) - synchronize a file's in-core state with storage device. + * @param handle A `FileHandle`. + */ + function fdatasync(handle: FileHandle): Promise; + + /** + * Asynchronous fsync(2) - synchronize a file's in-core state with the underlying storage device. + * @param handle A `FileHandle`. + */ + function fsync(handle: FileHandle): Promise; + + /** + * Asynchronous mkdir(2) - create a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders + * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. + */ + function mkdir(path: PathLike, options?: number | string | MakeDirectoryOptions | null): Promise; + + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function readdir(path: PathLike, options?: { encoding?: BufferEncoding | null | undefined; withFileTypes?: false | undefined } | BufferEncoding | null): Promise; + + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function readdir(path: PathLike, options: { encoding: "buffer"; withFileTypes?: false | undefined } | "buffer"): Promise; + + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function readdir(path: PathLike, options?: { encoding?: string | null | undefined; withFileTypes?: false | undefined } | string | null): Promise; + + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options If called with `withFileTypes: true` the result data will be an array of Dirent. + */ + function readdir(path: PathLike, options: { encoding?: string | null | undefined; withFileTypes: true }): Promise; + + /** + * Asynchronous readlink(2) - read value of a symbolic link. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function readlink(path: PathLike, options?: { encoding?: BufferEncoding | null | undefined } | BufferEncoding | null): Promise; + + /** + * Asynchronous readlink(2) - read value of a symbolic link. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function readlink(path: PathLike, options: { encoding: "buffer" } | "buffer"): Promise; + + /** + * Asynchronous readlink(2) - read value of a symbolic link. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function readlink(path: PathLike, options?: { encoding?: string | null | undefined } | string | null): Promise; + + /** + * Asynchronous symlink(2) - Create a new symbolic link to an existing file. + * @param target A path to an existing file. If a URL is provided, it must use the `file:` protocol. + * @param path A path to the new symlink. If a URL is provided, it must use the `file:` protocol. + * @param type May be set to `'dir'`, `'file'`, or `'junction'` (default is `'file'`) and is only available on Windows (ignored on other platforms). + * When using `'junction'`, the `target` argument will automatically be normalized to an absolute path. + */ + function symlink(target: PathLike, path: PathLike, type?: string | null): Promise; + + /** + * Asynchronous lstat(2) - Get file status. Does not dereference symbolic links. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function lstat(path: PathLike, opts?: StatOptions & { bigint?: false | undefined }): Promise; + function lstat(path: PathLike, opts: StatOptions & { bigint: true }): Promise; + function lstat(path: PathLike, opts?: StatOptions): Promise; + + /** + * Asynchronous stat(2) - Get file status. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function stat(path: PathLike, opts?: StatOptions & { bigint?: false | undefined }): Promise; + function stat(path: PathLike, opts: StatOptions & { bigint: true }): Promise; + function stat(path: PathLike, opts?: StatOptions): Promise; + + /** + * Asynchronous link(2) - Create a new link (also known as a hard link) to an existing file. + * @param existingPath A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function link(existingPath: PathLike, newPath: PathLike): Promise; + + /** + * Asynchronous unlink(2) - delete a name and possibly the file it refers to. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function unlink(path: PathLike): Promise; + + /** + * Asynchronous fchmod(2) - Change permissions of a file. + * @param handle A `FileHandle`. + * @param mode A file mode. If a string is passed, it is parsed as an octal integer. + */ + function fchmod(handle: FileHandle, mode: string | number): Promise; + + /** + * Asynchronous chmod(2) - Change permissions of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param mode A file mode. If a string is passed, it is parsed as an octal integer. + */ + function chmod(path: PathLike, mode: string | number): Promise; + + /** + * Asynchronous lchmod(2) - Change permissions of a file. Does not dereference symbolic links. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param mode A file mode. If a string is passed, it is parsed as an octal integer. + */ + function lchmod(path: PathLike, mode: string | number): Promise; + + /** + * Asynchronous lchown(2) - Change ownership of a file. Does not dereference symbolic links. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function lchown(path: PathLike, uid: number, gid: number): Promise; + + /** + * Changes the access and modification times of a file in the same way as `fsPromises.utimes()`, + * with the difference that if the path refers to a symbolic link, then the link is not + * dereferenced: instead, the timestamps of the symbolic link itself are changed. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param atime The last access time. If a string is provided, it will be coerced to number. + * @param mtime The last modified time. If a string is provided, it will be coerced to number. + */ + function lutimes(path: PathLike, atime: string | number | Date, mtime: string | number | Date): Promise; + + /** + * Asynchronous fchown(2) - Change ownership of a file. + * @param handle A `FileHandle`. + */ + function fchown(handle: FileHandle, uid: number, gid: number): Promise; + + /** + * Asynchronous chown(2) - Change ownership of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function chown(path: PathLike, uid: number, gid: number): Promise; + + /** + * Asynchronously change file timestamps of the file referenced by the supplied path. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param atime The last access time. If a string is provided, it will be coerced to number. + * @param mtime The last modified time. If a string is provided, it will be coerced to number. + */ + function utimes(path: PathLike, atime: string | number | Date, mtime: string | number | Date): Promise; + + /** + * Asynchronously change file timestamps of the file referenced by the supplied `FileHandle`. + * @param handle A `FileHandle`. + * @param atime The last access time. If a string is provided, it will be coerced to number. + * @param mtime The last modified time. If a string is provided, it will be coerced to number. + */ + function futimes(handle: FileHandle, atime: string | number | Date, mtime: string | number | Date): Promise; + + /** + * Asynchronous realpath(3) - return the canonicalized absolute pathname. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function realpath(path: PathLike, options?: { encoding?: BufferEncoding | null | undefined } | BufferEncoding | null): Promise; + + /** + * Asynchronous realpath(3) - return the canonicalized absolute pathname. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function realpath(path: PathLike, options: { encoding: "buffer" } | "buffer"): Promise; + + /** + * Asynchronous realpath(3) - return the canonicalized absolute pathname. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function realpath(path: PathLike, options?: { encoding?: string | null | undefined } | string | null): Promise; + + /** + * Asynchronously creates a unique temporary directory. + * Generates six random characters to be appended behind a required `prefix` to create a unique temporary directory. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function mkdtemp(prefix: string, options?: { encoding?: BufferEncoding | null | undefined } | BufferEncoding | null): Promise; + + /** + * Asynchronously creates a unique temporary directory. + * Generates six random characters to be appended behind a required `prefix` to create a unique temporary directory. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function mkdtemp(prefix: string, options: { encoding: "buffer" } | "buffer"): Promise; + + /** + * Asynchronously creates a unique temporary directory. + * Generates six random characters to be appended behind a required `prefix` to create a unique temporary directory. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function mkdtemp(prefix: string, options?: { encoding?: string | null | undefined } | string | null): Promise; + + /** + * Asynchronously writes data to a file, replacing the file if it already exists. + * It is unsafe to call `fsPromises.writeFile()` multiple times on the same file without waiting for the `Promise` to be resolved (or rejected). + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + * If a `FileHandle` is provided, the underlying file will _not_ be closed automatically. + * @param data The data to write. If something other than a `Buffer` or `Uint8Array` is provided, the value is coerced to a string. + * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag. + * If `encoding` is not supplied, the default of `'utf8'` is used. + * If `mode` is not supplied, the default of `0o666` is used. + * If `mode` is a string, it is parsed as an octal integer. + * If `flag` is not supplied, the default of `'w'` is used. + */ + function writeFile( + path: PathLike | FileHandle, + data: any, + options?: { encoding?: string | null | undefined, mode?: string | number | undefined, flag?: string | number | undefined } | string | null + ): Promise; + + /** + * Asynchronously append data to a file, creating the file if it does not exist. + * @param file A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + * If a `FileHandle` is provided, the underlying file will _not_ be closed automatically. + * @param data The data to write. If something other than a `Buffer` or `Uint8Array` is provided, the value is coerced to a string. + * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag. + * If `encoding` is not supplied, the default of `'utf8'` is used. + * If `mode` is not supplied, the default of `0o666` is used. + * If `mode` is a string, it is parsed as an octal integer. + * If `flag` is not supplied, the default of `'a'` is used. + */ + function appendFile( + path: PathLike | FileHandle, + data: any, + options?: { encoding?: string | null | undefined, mode?: string | number | undefined, flag?: string | number | undefined } | string | null + ): Promise; + + /** + * Asynchronously reads the entire contents of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * If a `FileHandle` is provided, the underlying file will _not_ be closed automatically. + * @param options An object that may contain an optional flag. + * If a flag is not provided, it defaults to `'r'`. + */ + function readFile(path: PathLike | FileHandle, options?: { encoding?: null | undefined, flag?: string | number | undefined } | null): Promise; + + /** + * Asynchronously reads the entire contents of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * If a `FileHandle` is provided, the underlying file will _not_ be closed automatically. + * @param options An object that may contain an optional flag. + * If a flag is not provided, it defaults to `'r'`. + */ + function readFile(path: PathLike | FileHandle, options: { encoding: BufferEncoding, flag?: string | number | undefined } | BufferEncoding): Promise; + + /** + * Asynchronously reads the entire contents of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * If a `FileHandle` is provided, the underlying file will _not_ be closed automatically. + * @param options An object that may contain an optional flag. + * If a flag is not provided, it defaults to `'r'`. + */ + function readFile(path: PathLike | FileHandle, options?: { encoding?: string | null | undefined, flag?: string | number | undefined } | string | null): Promise; + + function opendir(path: PathLike, options?: OpenDirOptions): Promise; + } + + interface BigIntStats extends StatsBase { + } + + class BigIntStats { + atimeNs: bigint; + mtimeNs: bigint; + ctimeNs: bigint; + birthtimeNs: bigint; + } + + interface BigIntOptions { + bigint: true; + } + + interface StatOptions { + bigint: boolean; + } +} diff --git a/backend/node_modules/@types/node/globals.d.ts b/backend/node_modules/@types/node/globals.d.ts new file mode 100755 index 0000000..f432095 --- /dev/null +++ b/backend/node_modules/@types/node/globals.d.ts @@ -0,0 +1,1351 @@ +// This needs to be global to avoid TS2403 in case lib.dom.d.ts is present in the same build +interface Console { + Console: NodeJS.ConsoleConstructor; + /** + * A simple assertion test that verifies whether `value` is truthy. + * If it is not, an `AssertionError` is thrown. + * If provided, the error `message` is formatted using `util.format()` and used as the error message. + */ + assert(value: any, message?: string, ...optionalParams: any[]): void; + /** + * When `stdout` is a TTY, calling `console.clear()` will attempt to clear the TTY. + * When `stdout` is not a TTY, this method does nothing. + */ + clear(): void; + /** + * Maintains an internal counter specific to `label` and outputs to `stdout` the number of times `console.count()` has been called with the given `label`. + */ + count(label?: string): void; + /** + * Resets the internal counter specific to `label`. + */ + countReset(label?: string): void; + /** + * The `console.debug()` function is an alias for {@link console.log}. + */ + debug(message?: any, ...optionalParams: any[]): void; + /** + * Uses {@link util.inspect} on `obj` and prints the resulting string to `stdout`. + * This function bypasses any custom `inspect()` function defined on `obj`. + */ + dir(obj: any, options?: NodeJS.InspectOptions): void; + /** + * This method calls {@link console.log} passing it the arguments received. Please note that this method does not produce any XML formatting + */ + dirxml(...data: any[]): void; + /** + * Prints to `stderr` with newline. + */ + error(message?: any, ...optionalParams: any[]): void; + /** + * Increases indentation of subsequent lines by two spaces. + * If one or more `label`s are provided, those are printed first without the additional indentation. + */ + group(...label: any[]): void; + /** + * The `console.groupCollapsed()` function is an alias for {@link console.group}. + */ + groupCollapsed(...label: any[]): void; + /** + * Decreases indentation of subsequent lines by two spaces. + */ + groupEnd(): void; + /** + * The {@link console.info} function is an alias for {@link console.log}. + */ + info(message?: any, ...optionalParams: any[]): void; + /** + * Prints to `stdout` with newline. + */ + log(message?: any, ...optionalParams: any[]): void; + /** + * This method does not display anything unless used in the inspector. + * Prints to `stdout` the array `array` formatted as a table. + */ + table(tabularData: any, properties?: ReadonlyArray): void; + /** + * Starts a timer that can be used to compute the duration of an operation. Timers are identified by a unique `label`. + */ + time(label?: string): void; + /** + * Stops a timer that was previously started by calling {@link console.time} and prints the result to `stdout`. + */ + timeEnd(label?: string): void; + /** + * For a timer that was previously started by calling {@link console.time}, prints the elapsed time and other `data` arguments to `stdout`. + */ + timeLog(label?: string, ...data: any[]): void; + /** + * Prints to `stderr` the string 'Trace :', followed by the {@link util.format} formatted message and stack trace to the current position in the code. + */ + trace(message?: any, ...optionalParams: any[]): void; + /** + * The {@link console.warn} function is an alias for {@link console.error}. + */ + warn(message?: any, ...optionalParams: any[]): void; + + // --- Inspector mode only --- + /** + * This method does not display anything unless used in the inspector. + * The console.markTimeline() method is the deprecated form of console.timeStamp(). + * + * @deprecated Use console.timeStamp() instead. + */ + markTimeline(label?: string): void; + /** + * This method does not display anything unless used in the inspector. + * Starts a JavaScript CPU profile with an optional label. + */ + profile(label?: string): void; + /** + * This method does not display anything unless used in the inspector. + * Stops the current JavaScript CPU profiling session if one has been started and prints the report to the Profiles panel of the inspector. + */ + profileEnd(label?: string): void; + /** + * This method does not display anything unless used in the inspector. + * Adds an event with the label `label` to the Timeline panel of the inspector. + */ + timeStamp(label?: string): void; + /** + * This method does not display anything unless used in the inspector. + * The console.timeline() method is the deprecated form of console.time(). + * + * @deprecated Use console.time() instead. + */ + timeline(label?: string): void; + /** + * This method does not display anything unless used in the inspector. + * The console.timelineEnd() method is the deprecated form of console.timeEnd(). + * + * @deprecated Use console.timeEnd() instead. + */ + timelineEnd(label?: string): void; +} + +interface Error { + stack?: string | undefined; +} + +// Declare "static" methods in Error +interface ErrorConstructor { + /** Create .stack property on a target object */ + captureStackTrace(targetObject: Object, constructorOpt?: Function): void; + + /** + * Optional override for formatting stack traces + * + * @see https://github.com/v8/v8/wiki/Stack%20Trace%20API#customizing-stack-traces + */ + prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; + + stackTraceLimit: number; +} + +interface SymbolConstructor { + readonly observable: symbol; +} + +// Node.js ESNEXT support +interface String { + /** Removes whitespace from the left end of a string. */ + trimLeft(): string; + /** Removes whitespace from the right end of a string. */ + trimRight(): string; + + /** Returns a copy with leading whitespace removed. */ + trimStart(): string; + /** Returns a copy with trailing whitespace removed. */ + trimEnd(): string; +} + +interface ImportMeta { + url: string; +} + +/*-----------------------------------------------* + * * + * GLOBAL * + * * + ------------------------------------------------*/ +declare var process: NodeJS.Process; +declare var console: Console; + +declare var __filename: string; +declare var __dirname: string; + +declare function setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timeout; +declare namespace setTimeout { + function __promisify__(ms: number): Promise; + function __promisify__(ms: number, value: T): Promise; +} +declare function clearTimeout(timeoutId: NodeJS.Timeout | string | number | undefined): void; +declare function setInterval(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timeout; +declare function clearInterval(intervalId: NodeJS.Timeout | string | number | undefined): void; +declare function setImmediate(callback: (...args: any[]) => void, ...args: any[]): NodeJS.Immediate; +declare namespace setImmediate { + function __promisify__(): Promise; + function __promisify__(value: T): Promise; +} +declare function clearImmediate(immediateId: NodeJS.Immediate | undefined): void; + +declare function queueMicrotask(callback: () => void): void; + +// TODO: change to `type NodeRequireFunction = (id: string) => any;` in next mayor version. +interface NodeRequireFunction { + (id: string): any; +} + +interface NodeRequireCache { + [path: string]: NodeModule; +} + +interface NodeRequire extends NodeRequireFunction { + resolve: RequireResolve; + cache: NodeRequireCache; + /** + * @deprecated + */ + extensions: NodeExtensions; + main: NodeModule | undefined; +} + +interface RequireResolve { + (id: string, options?: { paths?: string[] | undefined; }): string; + paths(request: string): string[] | null; +} + +interface NodeExtensions { + '.js': (m: NodeModule, filename: string) => any; + '.json': (m: NodeModule, filename: string) => any; + '.node': (m: NodeModule, filename: string) => any; + [ext: string]: (m: NodeModule, filename: string) => any; +} + +declare var require: NodeRequire; + +interface NodeModule { + exports: any; + require: NodeRequireFunction; + id: string; + filename: string; + loaded: boolean; + /** @deprecated since v12.19.0 Please use `require.main` and `module.children` instead. */ + parent: NodeModule | null | undefined; + children: NodeModule[]; + /** + * @since v11.14.0 + * + * The directory name of the module. This is usually the same as the path.dirname() of the module.id. + */ + path: string; + paths: string[]; +} + +declare var module: NodeModule; + +// Same as module.exports +declare var exports: any; + +// Buffer class +type BufferEncoding = "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex"; + +interface Buffer { + constructor: typeof Buffer; + readBigUInt64BE(offset?: number): bigint; + /** + * @alias Buffer.readBigUInt64BE + * @since v12.19.0 + */ + readBigUint64BE(offset?: number): bigint; + readBigUInt64LE(offset?: number): bigint; + /** + * @alias Buffer.readBigUInt64LE + * @since v12.19.0 + */ + readBigUint64LE(offset?: number): bigint; + readBigInt64BE(offset?: number): bigint; + readBigInt64LE(offset?: number): bigint; + writeBigInt64BE(value: bigint, offset?: number): number; + writeBigInt64LE(value: bigint, offset?: number): number; + writeBigUInt64BE(value: bigint, offset?: number): number; + /** + * @alias Buffer.writeBigUInt64BE + * @since v12.19.0 + */ + writeBigUint64BE(value: bigint, offset?: number): number; + writeBigUInt64LE(value: bigint, offset?: number): number; + /** + * @alias Buffer.writeBigUInt64LE + * @since v12.19.0 + */ + writeBigUint64LE(value: bigint, offset?: number): number; +} + +/** + * Raw data is stored in instances of the Buffer class. + * A Buffer is similar to an array of integers but corresponds to a raw memory allocation outside the V8 heap. A Buffer cannot be resized. + * Valid string encodings: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'binary'(deprecated)|'hex' + */ +declare class Buffer extends Uint8Array { + /** + * Allocates a new buffer containing the given {str}. + * + * @param str String to store in buffer. + * @param encoding encoding to use, optional. Default is 'utf8' + * @deprecated since v10.0.0 - Use `Buffer.from(string[, encoding])` instead. + */ + constructor(str: string, encoding?: BufferEncoding); + /** + * Allocates a new buffer of {size} octets. + * + * @param size count of octets to allocate. + * @deprecated since v10.0.0 - Use `Buffer.alloc()` instead (also see `Buffer.allocUnsafe()`). + */ + constructor(size: number); + /** + * Allocates a new buffer containing the given {array} of octets. + * + * @param array The octets to store. + * @deprecated since v10.0.0 - Use `Buffer.from(array)` instead. + */ + constructor(array: Uint8Array); + /** + * Produces a Buffer backed by the same allocated memory as + * the given {ArrayBuffer}/{SharedArrayBuffer}. + * + * + * @param arrayBuffer The ArrayBuffer with which to share memory. + * @deprecated since v10.0.0 - Use `Buffer.from(arrayBuffer[, byteOffset[, length]])` instead. + */ + constructor(arrayBuffer: ArrayBuffer | SharedArrayBuffer); + /** + * Allocates a new buffer containing the given {array} of octets. + * + * @param array The octets to store. + * @deprecated since v10.0.0 - Use `Buffer.from(array)` instead. + */ + constructor(array: ReadonlyArray); + /** + * Copies the passed {buffer} data onto a new {Buffer} instance. + * + * @param buffer The buffer to copy. + * @deprecated since v10.0.0 - Use `Buffer.from(buffer)` instead. + */ + constructor(buffer: Buffer); + /** + * When passed a reference to the .buffer property of a TypedArray instance, + * the newly created Buffer will share the same allocated memory as the TypedArray. + * The optional {byteOffset} and {length} arguments specify a memory range + * within the {arrayBuffer} that will be shared by the Buffer. + * + * @param arrayBuffer The .buffer property of any TypedArray or a new ArrayBuffer() + */ + static from(arrayBuffer: ArrayBuffer | SharedArrayBuffer, byteOffset?: number, length?: number): Buffer; + /** + * Creates a new Buffer using the passed {data} + * @param data data to create a new Buffer + */ + static from(data: ReadonlyArray): Buffer; + static from(data: Uint8Array): Buffer; + /** + * Creates a new buffer containing the coerced value of an object + * A `TypeError` will be thrown if {obj} has not mentioned methods or is not of other type appropriate for `Buffer.from()` variants. + * @param obj An object supporting `Symbol.toPrimitive` or `valueOf()`. + */ + static from(obj: { valueOf(): string | object } | { [Symbol.toPrimitive](hint: 'string'): string }, byteOffset?: number, length?: number): Buffer; + /** + * Creates a new Buffer containing the given JavaScript string {str}. + * If provided, the {encoding} parameter identifies the character encoding. + * If not provided, {encoding} defaults to 'utf8'. + */ + static from(str: string, encoding?: BufferEncoding): Buffer; + /** + * Creates a new Buffer using the passed {data} + * @param values to create a new Buffer + */ + static of(...items: number[]): Buffer; + /** + * Returns true if {obj} is a Buffer + * + * @param obj object to test. + */ + static isBuffer(obj: any): obj is Buffer; + /** + * Returns true if {encoding} is a valid encoding argument. + * Valid string encodings in Node 0.12: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'binary'(deprecated)|'hex' + * + * @param encoding string to test. + */ + static isEncoding(encoding: string): encoding is BufferEncoding; + /** + * Gives the actual byte length of a string. encoding defaults to 'utf8'. + * This is not the same as String.prototype.length since that returns the number of characters in a string. + * + * @param string string to test. + * @param encoding encoding used to evaluate (defaults to 'utf8') + */ + static byteLength( + string: string | NodeJS.ArrayBufferView | ArrayBuffer | SharedArrayBuffer, + encoding?: BufferEncoding + ): number; + /** + * Returns a buffer which is the result of concatenating all the buffers in the list together. + * + * If the list has no items, or if the totalLength is 0, then it returns a zero-length buffer. + * If the list has exactly one item, then the first item of the list is returned. + * If the list has more than one item, then a new Buffer is created. + * + * @param list An array of Buffer objects to concatenate + * @param totalLength Total length of the buffers when concatenated. + * If totalLength is not provided, it is read from the buffers in the list. However, this adds an additional loop to the function, so it is faster to provide the length explicitly. + */ + static concat(list: ReadonlyArray, totalLength?: number): Buffer; + /** + * The same as buf1.compare(buf2). + */ + static compare(buf1: Uint8Array, buf2: Uint8Array): number; + /** + * Allocates a new buffer of {size} octets. + * + * @param size count of octets to allocate. + * @param fill if specified, buffer will be initialized by calling buf.fill(fill). + * If parameter is omitted, buffer will be filled with zeros. + * @param encoding encoding used for call to buf.fill while initalizing + */ + static alloc(size: number, fill?: string | Buffer | number, encoding?: BufferEncoding): Buffer; + /** + * Allocates a new buffer of {size} octets, leaving memory not initialized, so the contents + * of the newly created Buffer are unknown and may contain sensitive data. + * + * @param size count of octets to allocate + */ + static allocUnsafe(size: number): Buffer; + /** + * Allocates a new non-pooled buffer of {size} octets, leaving memory not initialized, so the contents + * of the newly created Buffer are unknown and may contain sensitive data. + * + * @param size count of octets to allocate + */ + static allocUnsafeSlow(size: number): Buffer; + /** + * This is the number of bytes used to determine the size of pre-allocated, internal Buffer instances used for pooling. This value may be modified. + */ + static poolSize: number; + + write(string: string, encoding?: BufferEncoding): number; + write(string: string, offset: number, encoding?: BufferEncoding): number; + write(string: string, offset: number, length: number, encoding?: BufferEncoding): number; + toString(encoding?: string, start?: number, end?: number): string; + toJSON(): { type: 'Buffer'; data: number[] }; + equals(otherBuffer: Uint8Array): boolean; + compare( + otherBuffer: Uint8Array, + targetStart?: number, + targetEnd?: number, + sourceStart?: number, + sourceEnd?: number + ): number; + copy(targetBuffer: Uint8Array, targetStart?: number, sourceStart?: number, sourceEnd?: number): number; + /** + * Returns a new `Buffer` that references **the same memory as the original**, but offset and cropped by the start and end indices. + * + * This method is incompatible with `Uint8Array#slice()`, which returns a copy of the original memory. + * + * @param begin Where the new `Buffer` will start. Default: `0`. + * @param end Where the new `Buffer` will end (not inclusive). Default: `buf.length`. + */ + slice(begin?: number, end?: number): Buffer; + /** + * Returns a new `Buffer` that references **the same memory as the original**, but offset and cropped by the start and end indices. + * + * This method is compatible with `Uint8Array#subarray()`. + * + * @param begin Where the new `Buffer` will start. Default: `0`. + * @param end Where the new `Buffer` will end (not inclusive). Default: `buf.length`. + */ + subarray(begin?: number, end?: number): Buffer; + writeUIntLE(value: number, offset: number, byteLength: number): number; + /** + * @alias Buffer.writeUIntLE + * @since v12.19.0 + */ + writeUintLE(value: number, offset: number, byteLength: number): number; + writeUIntBE(value: number, offset: number, byteLength: number): number; + /** + * @alias Buffer.writeUIntBE + * @since v12.19.0 + */ + writeUintBE(value: number, offset: number, byteLength: number): number; + writeIntLE(value: number, offset: number, byteLength: number): number; + writeIntBE(value: number, offset: number, byteLength: number): number; + readUIntLE(offset: number, byteLength: number): number; + /** + * @alias Buffer.readUIntLE + * @since v12.19.0 + */ + readUintLE(offset: number, byteLength: number): number; + readUIntBE(offset: number, byteLength: number): number; + /** + * @alias Buffer.readUIntBE + * @since v12.19.0 + */ + readUintBE(offset: number, byteLength: number): number; + readIntLE(offset: number, byteLength: number): number; + readIntBE(offset: number, byteLength: number): number; + readUInt8(offset?: number): number; + /** + * @alias Buffer.readUInt8 + * @since v12.19.0 + */ + readUint8(offset?: number): number; + readUInt16LE(offset?: number): number; + /** + * @alias Buffer.readUInt16LE + * @since v12.19.0 + */ + readUint16LE(offset?: number): number; + readUInt16BE(offset?: number): number; + /** + * @alias Buffer.readUInt16BE + * @since v12.19.0 + */ + readUint16BE(offset?: number): number; + readUInt32LE(offset?: number): number; + /** + * @alias Buffer.readUInt32LE + * @since v12.19.0 + */ + readUint32LE(offset?: number): number; + readUInt32BE(offset?: number): number; + /** + * @alias Buffer.readUInt32BE + * @since v12.19.0 + */ + readUint32BE(offset?: number): number; + readInt8(offset?: number): number; + readInt16LE(offset?: number): number; + readInt16BE(offset?: number): number; + readInt32LE(offset?: number): number; + readInt32BE(offset?: number): number; + readFloatLE(offset?: number): number; + readFloatBE(offset?: number): number; + readDoubleLE(offset?: number): number; + readDoubleBE(offset?: number): number; + reverse(): this; + swap16(): Buffer; + swap32(): Buffer; + swap64(): Buffer; + writeUInt8(value: number, offset?: number): number; + /** + * @alias Buffer.writeUInt8 + * @since v12.19.0 + */ + writeUint8(value: number, offset?: number): number; + writeUInt16LE(value: number, offset?: number): number; + /** + * @alias Buffer.writeUInt16LE + * @since v12.19.0 + */ + writeUint16LE(value: number, offset?: number): number; + writeUInt16BE(value: number, offset?: number): number; + /** + * @alias Buffer.writeUInt16BE + * @since v12.19.0 + */ + writeUint16BE(value: number, offset?: number): number; + writeUInt32LE(value: number, offset?: number): number; + /** + * @alias Buffer.writeUInt32LE + * @since v12.19.0 + */ + writeUint32LE(value: number, offset?: number): number; + writeUInt32BE(value: number, offset?: number): number; + /** + * @alias Buffer.writeUInt32BE + * @since v12.19.0 + */ + writeUint32BE(value: number, offset?: number): number; + writeInt8(value: number, offset?: number): number; + writeInt16LE(value: number, offset?: number): number; + writeInt16BE(value: number, offset?: number): number; + writeInt32LE(value: number, offset?: number): number; + writeInt32BE(value: number, offset?: number): number; + writeFloatLE(value: number, offset?: number): number; + writeFloatBE(value: number, offset?: number): number; + writeDoubleLE(value: number, offset?: number): number; + writeDoubleBE(value: number, offset?: number): number; + + fill(value: string | Uint8Array | number, offset?: number, end?: number, encoding?: BufferEncoding): this; + + indexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number; + lastIndexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number; + entries(): IterableIterator<[number, number]>; + includes(value: string | number | Buffer, byteOffset?: number, encoding?: BufferEncoding): boolean; + keys(): IterableIterator; + values(): IterableIterator; +} + +/*----------------------------------------------* +* * +* GLOBAL INTERFACES * +* * +*-----------------------------------------------*/ +declare namespace NodeJS { + interface InspectOptions { + /** + * If set to `true`, getters are going to be + * inspected as well. If set to `'get'` only getters without setter are going + * to be inspected. If set to `'set'` only getters having a corresponding + * setter are going to be inspected. This might cause side effects depending on + * the getter function. + * @default `false` + */ + getters?: 'get' | 'set' | boolean | undefined; + showHidden?: boolean | undefined; + /** + * @default 2 + */ + depth?: number | null | undefined; + colors?: boolean | undefined; + customInspect?: boolean | undefined; + showProxy?: boolean | undefined; + maxArrayLength?: number | null | undefined; + breakLength?: number | undefined; + /** + * Setting this to `false` causes each object key + * to be displayed on a new line. It will also add new lines to text that is + * longer than `breakLength`. If set to a number, the most `n` inner elements + * are united on a single line as long as all properties fit into + * `breakLength`. Short array elements are also grouped together. Note that no + * text will be reduced below 16 characters, no matter the `breakLength` size. + * For more information, see the example below. + * @default `true` + */ + compact?: boolean | number | undefined; + sorted?: boolean | ((a: string, b: string) => number) | undefined; + } + + interface ConsoleConstructorOptions { + stdout: WritableStream; + stderr?: WritableStream | undefined; + ignoreErrors?: boolean | undefined; + colorMode?: boolean | 'auto' | undefined; + inspectOptions?: InspectOptions | undefined; + /** + * Set group indentation + * @default 2 + */ + groupIndentation?: number | undefined; + } + + interface ConsoleConstructor { + prototype: Console; + new(stdout: WritableStream, stderr?: WritableStream, ignoreErrors?: boolean): Console; + new(options: ConsoleConstructorOptions): Console; + } + + interface CallSite { + /** + * Value of "this" + */ + getThis(): any; + + /** + * Type of "this" as a string. + * This is the name of the function stored in the constructor field of + * "this", if available. Otherwise the object's [[Class]] internal + * property. + */ + getTypeName(): string | null; + + /** + * Current function + */ + getFunction(): Function | undefined; + + /** + * Name of the current function, typically its name property. + * If a name property is not available an attempt will be made to try + * to infer a name from the function's context. + */ + getFunctionName(): string | null; + + /** + * Name of the property [of "this" or one of its prototypes] that holds + * the current function + */ + getMethodName(): string | null; + + /** + * Name of the script [if this function was defined in a script] + */ + getFileName(): string | null; + + /** + * Current line number [if this function was defined in a script] + */ + getLineNumber(): number | null; + + /** + * Current column number [if this function was defined in a script] + */ + getColumnNumber(): number | null; + + /** + * A call site object representing the location where eval was called + * [if this function was created using a call to eval] + */ + getEvalOrigin(): string | undefined; + + /** + * Is this a toplevel invocation, that is, is "this" the global object? + */ + isToplevel(): boolean; + + /** + * Does this call take place in code defined by a call to eval? + */ + isEval(): boolean; + + /** + * Is this call in native V8 code? + */ + isNative(): boolean; + + /** + * Is this a constructor call? + */ + isConstructor(): boolean; + } + + interface ErrnoException extends Error { + errno?: number | undefined; + code?: string | undefined; + path?: string | undefined; + syscall?: string | undefined; + } + + class EventEmitter { + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + removeListener(event: string | symbol, listener: (...args: any[]) => void): this; + off(event: string | symbol, listener: (...args: any[]) => void): this; + removeAllListeners(event?: string | symbol): this; + setMaxListeners(n: number): this; + getMaxListeners(): number; + listeners(event: string | symbol): Function[]; + rawListeners(event: string | symbol): Function[]; + emit(event: string | symbol, ...args: any[]): boolean; + listenerCount(type: string | symbol): number; + // Added in Node 6... + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + eventNames(): Array; + } + + interface ReadableStream extends EventEmitter { + readable: boolean; + read(size?: number): string | Buffer; + setEncoding(encoding: string): this; + pause(): this; + resume(): this; + isPaused(): boolean; + pipe(destination: T, options?: { end?: boolean | undefined; }): T; + unpipe(destination?: WritableStream): this; + unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void; + wrap(oldStream: ReadableStream): this; + [Symbol.asyncIterator](): AsyncIterableIterator; + } + + interface WritableStream extends EventEmitter { + writable: boolean; + write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean; + write(str: string, encoding?: string, cb?: (err?: Error | null) => void): boolean; + end(cb?: () => void): this; + end(data: string | Uint8Array, cb?: () => void): this; + end(str: string, encoding?: string, cb?: () => void): this; + } + + interface ReadWriteStream extends ReadableStream, WritableStream { } + + interface Domain extends EventEmitter { + run(fn: (...args: any[]) => T, ...args: any[]): T; + add(emitter: EventEmitter | Timer): void; + remove(emitter: EventEmitter | Timer): void; + bind(cb: T): T; + intercept(cb: T): T; + + addListener(event: string, listener: (...args: any[]) => void): this; + on(event: string, listener: (...args: any[]) => void): this; + once(event: string, listener: (...args: any[]) => void): this; + removeListener(event: string, listener: (...args: any[]) => void): this; + removeAllListeners(event?: string): this; + } + + interface MemoryUsage { + rss: number; + heapTotal: number; + heapUsed: number; + external: number; + } + + interface CpuUsage { + user: number; + system: number; + } + + interface ProcessRelease { + name: string; + sourceUrl?: string | undefined; + headersUrl?: string | undefined; + libUrl?: string | undefined; + lts?: string | undefined; + } + + interface ProcessVersions { + http_parser: string; + node: string; + v8: string; + ares: string; + uv: string; + zlib: string; + modules: string; + openssl: string; + } + + type Platform = 'aix' + | 'android' + | 'darwin' + | 'freebsd' + | 'linux' + | 'openbsd' + | 'sunos' + | 'win32' + | 'cygwin' + | 'netbsd'; + + type Signals = + "SIGABRT" | "SIGALRM" | "SIGBUS" | "SIGCHLD" | "SIGCONT" | "SIGFPE" | "SIGHUP" | "SIGILL" | "SIGINT" | "SIGIO" | + "SIGIOT" | "SIGKILL" | "SIGPIPE" | "SIGPOLL" | "SIGPROF" | "SIGPWR" | "SIGQUIT" | "SIGSEGV" | "SIGSTKFLT" | + "SIGSTOP" | "SIGSYS" | "SIGTERM" | "SIGTRAP" | "SIGTSTP" | "SIGTTIN" | "SIGTTOU" | "SIGUNUSED" | "SIGURG" | + "SIGUSR1" | "SIGUSR2" | "SIGVTALRM" | "SIGWINCH" | "SIGXCPU" | "SIGXFSZ" | "SIGBREAK" | "SIGLOST" | "SIGINFO"; + + type MultipleResolveType = 'resolve' | 'reject'; + + type BeforeExitListener = (code: number) => void; + type DisconnectListener = () => void; + type ExitListener = (code: number) => void; + type RejectionHandledListener = (promise: Promise) => void; + type UncaughtExceptionListener = (error: Error) => void; + type UnhandledRejectionListener = (reason: {} | null | undefined, promise: Promise) => void; + type WarningListener = (warning: Error) => void; + type MessageListener = (message: any, sendHandle: any) => void; + type SignalsListener = (signal: Signals) => void; + type NewListenerListener = (type: string | symbol, listener: (...args: any[]) => void) => void; + type RemoveListenerListener = (type: string | symbol, listener: (...args: any[]) => void) => void; + type MultipleResolveListener = (type: MultipleResolveType, promise: Promise, value: any) => void; + + interface Socket extends ReadWriteStream { + isTTY?: true | undefined; + } + + interface ProcessEnv { + [key: string]: string | undefined; + } + + interface HRTime { + (time?: [number, number]): [number, number]; + bigint(): bigint; + } + + interface ProcessReport { + /** + * Directory where the report is written. + * working directory of the Node.js process. + * @default '' indicating that reports are written to the current + */ + directory: string; + + /** + * Filename where the report is written. + * The default value is the empty string. + * @default '' the output filename will be comprised of a timestamp, + * PID, and sequence number. + */ + filename: string; + + /** + * Returns a JSON-formatted diagnostic report for the running process. + * The report's JavaScript stack trace is taken from err, if present. + */ + getReport(err?: Error): string; + + /** + * If true, a diagnostic report is generated on fatal errors, + * such as out of memory errors or failed C++ assertions. + * @default false + */ + reportOnFatalError: boolean; + + /** + * If true, a diagnostic report is generated when the process + * receives the signal specified by process.report.signal. + * @default false + */ + reportOnSignal: boolean; + + /** + * If true, a diagnostic report is generated on uncaught exception. + * @default false + */ + reportOnUncaughtException: boolean; + + /** + * The signal used to trigger the creation of a diagnostic report. + * @default 'SIGUSR2' + */ + signal: Signals; + + /** + * Writes a diagnostic report to a file. If filename is not provided, the default filename + * includes the date, time, PID, and a sequence number. + * The report's JavaScript stack trace is taken from err, if present. + * + * @param fileName Name of the file where the report is written. + * This should be a relative path, that will be appended to the directory specified in + * `process.report.directory`, or the current working directory of the Node.js process, + * if unspecified. + * @param error A custom error used for reporting the JavaScript stack. + * @return Filename of the generated report. + */ + writeReport(fileName?: string): string; + writeReport(error?: Error): string; + writeReport(fileName?: string, err?: Error): string; + } + + interface ResourceUsage { + fsRead: number; + fsWrite: number; + involuntaryContextSwitches: number; + ipcReceived: number; + ipcSent: number; + majorPageFault: number; + maxRSS: number; + minorPageFault: number; + sharedMemorySize: number; + signalsCount: number; + swappedOut: number; + systemCPUTime: number; + unsharedDataSize: number; + unsharedStackSize: number; + userCPUTime: number; + voluntaryContextSwitches: number; + } + + interface EmitWarningOptions { + /** + * When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted. + * + * @default 'Warning' + */ + type?: string | undefined; + + /** + * A unique identifier for the warning instance being emitted. + */ + code?: string | undefined; + + /** + * When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace. + * + * @default process.emitWarning + */ + ctor?: Function | undefined; + + /** + * Additional text to include with the error. + */ + detail?: string | undefined; + } + + interface Process extends EventEmitter { + /** + * Can also be a tty.WriteStream, not typed due to limitation.s + */ + stdout: WriteStream; + /** + * Can also be a tty.WriteStream, not typed due to limitation.s + */ + stderr: WriteStream; + stdin: ReadStream; + openStdin(): Socket; + argv: string[]; + argv0: string; + execArgv: string[]; + execPath: string; + abort(): never; + chdir(directory: string): void; + cwd(): string; + debugPort: number; + + /** + * The `process.emitWarning()` method can be used to emit custom or application specific process warnings. + * + * These can be listened for by adding a handler to the `'warning'` event. + * + * @param warning The warning to emit. + * @param type When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted. Default: `'Warning'`. + * @param code A unique identifier for the warning instance being emitted. + * @param ctor When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace. Default: `process.emitWarning`. + */ + emitWarning(warning: string | Error, ctor?: Function): void; + emitWarning(warning: string | Error, type?: string, ctor?: Function): void; + emitWarning(warning: string | Error, type?: string, code?: string, ctor?: Function): void; + emitWarning(warning: string | Error, options?: EmitWarningOptions): void; + + env: ProcessEnv; + exit(code?: number): never; + exitCode?: number | undefined; + getgid(): number; + setgid(id: number | string): void; + getuid(): number; + setuid(id: number | string): void; + geteuid(): number; + seteuid(id: number | string): void; + getegid(): number; + setegid(id: number | string): void; + getgroups(): number[]; + setgroups(groups: ReadonlyArray): void; + setUncaughtExceptionCaptureCallback(cb: ((err: Error) => void) | null): void; + hasUncaughtExceptionCaptureCallback(): boolean; + version: string; + versions: ProcessVersions; + config: { + target_defaults: { + cflags: any[]; + default_configuration: string; + defines: string[]; + include_dirs: string[]; + libraries: string[]; + }; + variables: { + clang: number; + host_arch: string; + node_install_npm: boolean; + node_install_waf: boolean; + node_prefix: string; + node_shared_openssl: boolean; + node_shared_v8: boolean; + node_shared_zlib: boolean; + node_use_dtrace: boolean; + node_use_etw: boolean; + node_use_openssl: boolean; + target_arch: string; + v8_no_strict_aliasing: number; + v8_use_snapshot: boolean; + visibility: string; + }; + }; + kill(pid: number, signal?: string | number): true; + pid: number; + ppid: number; + title: string; + arch: string; + platform: Platform; + mainModule?: NodeModule | undefined; + memoryUsage(): MemoryUsage; + cpuUsage(previousValue?: CpuUsage): CpuUsage; + nextTick(callback: Function, ...args: any[]): void; + release: ProcessRelease; + features: { + inspector: boolean; + debug: boolean; + uv: boolean; + ipv6: boolean; + tls_alpn: boolean; + tls_sni: boolean; + tls_ocsp: boolean; + tls: boolean; + }; + /** + * @deprecated since v12.19.0 - Calling process.umask() with no argument causes + * the process-wide umask to be written twice. This introduces a race condition between threads, + * and is a potential security vulnerability. There is no safe, cross-platform alternative API. + */ + umask(): number; + /** + * Can only be set if not in worker thread. + */ + umask(mask: string | number): number; + uptime(): number; + hrtime: HRTime; + domain: Domain; + + // Worker + send?(message: any, sendHandle?: any, options?: { swallowErrors?: boolean | undefined}, callback?: (error: Error | null) => void): boolean; + disconnect(): void; + connected: boolean; + + /** + * The `process.allowedNodeEnvironmentFlags` property is a special, + * read-only `Set` of flags allowable within the [`NODE_OPTIONS`][] + * environment variable. + */ + allowedNodeEnvironmentFlags: ReadonlySet; + + /** + * Only available with `--experimental-report` + */ + report?: ProcessReport | undefined; + + resourceUsage(): ResourceUsage; + + /** + * EventEmitter + * 1. beforeExit + * 2. disconnect + * 3. exit + * 4. message + * 5. rejectionHandled + * 6. uncaughtException + * 7. unhandledRejection + * 8. warning + * 9. message + * 10. + * 11. newListener/removeListener inherited from EventEmitter + */ + addListener(event: "beforeExit", listener: BeforeExitListener): this; + addListener(event: "disconnect", listener: DisconnectListener): this; + addListener(event: "exit", listener: ExitListener): this; + addListener(event: "rejectionHandled", listener: RejectionHandledListener): this; + addListener(event: "uncaughtException", listener: UncaughtExceptionListener): this; + addListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this; + addListener(event: "warning", listener: WarningListener): this; + addListener(event: "message", listener: MessageListener): this; + addListener(event: Signals, listener: SignalsListener): this; + addListener(event: "newListener", listener: NewListenerListener): this; + addListener(event: "removeListener", listener: RemoveListenerListener): this; + addListener(event: "multipleResolves", listener: MultipleResolveListener): this; + + emit(event: "beforeExit", code: number): boolean; + emit(event: "disconnect"): boolean; + emit(event: "exit", code: number): boolean; + emit(event: "rejectionHandled", promise: Promise): boolean; + emit(event: "uncaughtException", error: Error): boolean; + emit(event: "unhandledRejection", reason: any, promise: Promise): boolean; + emit(event: "warning", warning: Error): boolean; + emit(event: "message", message: any, sendHandle: any): this; + emit(event: Signals, signal: Signals): boolean; + emit(event: "newListener", eventName: string | symbol, listener: (...args: any[]) => void): this; + emit(event: "removeListener", eventName: string, listener: (...args: any[]) => void): this; + emit(event: "multipleResolves", listener: MultipleResolveListener): this; + + on(event: "beforeExit", listener: BeforeExitListener): this; + on(event: "disconnect", listener: DisconnectListener): this; + on(event: "exit", listener: ExitListener): this; + on(event: "rejectionHandled", listener: RejectionHandledListener): this; + on(event: "uncaughtException", listener: UncaughtExceptionListener): this; + on(event: "unhandledRejection", listener: UnhandledRejectionListener): this; + on(event: "warning", listener: WarningListener): this; + on(event: "message", listener: MessageListener): this; + on(event: Signals, listener: SignalsListener): this; + on(event: "newListener", listener: NewListenerListener): this; + on(event: "removeListener", listener: RemoveListenerListener): this; + on(event: "multipleResolves", listener: MultipleResolveListener): this; + + once(event: "beforeExit", listener: BeforeExitListener): this; + once(event: "disconnect", listener: DisconnectListener): this; + once(event: "exit", listener: ExitListener): this; + once(event: "rejectionHandled", listener: RejectionHandledListener): this; + once(event: "uncaughtException", listener: UncaughtExceptionListener): this; + once(event: "unhandledRejection", listener: UnhandledRejectionListener): this; + once(event: "warning", listener: WarningListener): this; + once(event: "message", listener: MessageListener): this; + once(event: Signals, listener: SignalsListener): this; + once(event: "newListener", listener: NewListenerListener): this; + once(event: "removeListener", listener: RemoveListenerListener): this; + once(event: "multipleResolves", listener: MultipleResolveListener): this; + + prependListener(event: "beforeExit", listener: BeforeExitListener): this; + prependListener(event: "disconnect", listener: DisconnectListener): this; + prependListener(event: "exit", listener: ExitListener): this; + prependListener(event: "rejectionHandled", listener: RejectionHandledListener): this; + prependListener(event: "uncaughtException", listener: UncaughtExceptionListener): this; + prependListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this; + prependListener(event: "warning", listener: WarningListener): this; + prependListener(event: "message", listener: MessageListener): this; + prependListener(event: Signals, listener: SignalsListener): this; + prependListener(event: "newListener", listener: NewListenerListener): this; + prependListener(event: "removeListener", listener: RemoveListenerListener): this; + prependListener(event: "multipleResolves", listener: MultipleResolveListener): this; + + prependOnceListener(event: "beforeExit", listener: BeforeExitListener): this; + prependOnceListener(event: "disconnect", listener: DisconnectListener): this; + prependOnceListener(event: "exit", listener: ExitListener): this; + prependOnceListener(event: "rejectionHandled", listener: RejectionHandledListener): this; + prependOnceListener(event: "uncaughtException", listener: UncaughtExceptionListener): this; + prependOnceListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this; + prependOnceListener(event: "warning", listener: WarningListener): this; + prependOnceListener(event: "message", listener: MessageListener): this; + prependOnceListener(event: Signals, listener: SignalsListener): this; + prependOnceListener(event: "newListener", listener: NewListenerListener): this; + prependOnceListener(event: "removeListener", listener: RemoveListenerListener): this; + prependOnceListener(event: "multipleResolves", listener: MultipleResolveListener): this; + + listeners(event: "beforeExit"): BeforeExitListener[]; + listeners(event: "disconnect"): DisconnectListener[]; + listeners(event: "exit"): ExitListener[]; + listeners(event: "rejectionHandled"): RejectionHandledListener[]; + listeners(event: "uncaughtException"): UncaughtExceptionListener[]; + listeners(event: "unhandledRejection"): UnhandledRejectionListener[]; + listeners(event: "warning"): WarningListener[]; + listeners(event: "message"): MessageListener[]; + listeners(event: Signals): SignalsListener[]; + listeners(event: "newListener"): NewListenerListener[]; + listeners(event: "removeListener"): RemoveListenerListener[]; + listeners(event: "multipleResolves"): MultipleResolveListener[]; + } + + interface Global { + Array: typeof Array; + ArrayBuffer: typeof ArrayBuffer; + Boolean: typeof Boolean; + Buffer: typeof Buffer; + DataView: typeof DataView; + Date: typeof Date; + Error: typeof Error; + EvalError: typeof EvalError; + Float32Array: typeof Float32Array; + Float64Array: typeof Float64Array; + Function: typeof Function; + GLOBAL: Global; + Infinity: typeof Infinity; + Int16Array: typeof Int16Array; + Int32Array: typeof Int32Array; + Int8Array: typeof Int8Array; + Intl: typeof Intl; + JSON: typeof JSON; + Map: MapConstructor; + Math: typeof Math; + NaN: typeof NaN; + Number: typeof Number; + Object: typeof Object; + Promise: Function; + RangeError: typeof RangeError; + ReferenceError: typeof ReferenceError; + RegExp: typeof RegExp; + Set: SetConstructor; + String: typeof String; + Symbol: Function; + SyntaxError: typeof SyntaxError; + TypeError: typeof TypeError; + URIError: typeof URIError; + Uint16Array: typeof Uint16Array; + Uint32Array: typeof Uint32Array; + Uint8Array: typeof Uint8Array; + Uint8ClampedArray: Function; + WeakMap: WeakMapConstructor; + WeakSet: WeakSetConstructor; + clearImmediate: (immediateId: Immediate) => void; + clearInterval: (intervalId: Timeout | string | number) => void; + clearTimeout: (timeoutId: Timeout | string | number) => void; + console: typeof console; + decodeURI: typeof decodeURI; + decodeURIComponent: typeof decodeURIComponent; + encodeURI: typeof encodeURI; + encodeURIComponent: typeof encodeURIComponent; + escape: (str: string) => string; + eval: typeof eval; + global: Global; + isFinite: typeof isFinite; + isNaN: typeof isNaN; + parseFloat: typeof parseFloat; + parseInt: typeof parseInt; + process: Process; + root: Global; + setImmediate: (callback: (...args: any[]) => void, ...args: any[]) => Immediate; + setInterval: (callback: (...args: any[]) => void, ms: number, ...args: any[]) => Timeout; + setTimeout: (callback: (...args: any[]) => void, ms: number, ...args: any[]) => Timeout; + queueMicrotask: typeof queueMicrotask; + undefined: typeof undefined; + unescape: (str: string) => string; + gc: () => void; + v8debug?: any; + } + + // compatibility with older typings + interface Timer { + hasRef(): boolean; + ref(): this; + refresh(): this; + unref(): this; + [Symbol.toPrimitive](): number; + } + + class Immediate { + hasRef(): boolean; + ref(): this; + unref(): this; + _onImmediate: Function; // to distinguish it from the Timeout class + } + + class Timeout implements Timer { + hasRef(): boolean; + ref(): this; + refresh(): this; + unref(): this; + [Symbol.toPrimitive](): number; + } + + class Module { + static runMain(): void; + static wrap(code: string): string; + + /** + * @deprecated Deprecated since: v12.2.0. Please use createRequire() instead. + */ + static createRequireFromPath(path: string): NodeRequire; + static createRequire(path: string): NodeRequire; + static builtinModules: string[]; + + static Module: typeof Module; + + exports: any; + require: NodeRequireFunction; + id: string; + filename: string; + loaded: boolean; + /** @deprecated since v12.19.0 Please use `require.main` and `module.children` instead. */ + parent: Module | null | undefined; + children: Module[]; + /** + * @since v11.14.0 + * + * The directory name of the module. This is usually the same as the path.dirname() of the module.id. + */ + path: string; + paths: string[]; + + constructor(id: string, parent?: Module); + } + + interface Dict { + [key: string]: T | undefined; + } + + type TypedArray = + | Uint8Array + | Uint8ClampedArray + | Uint16Array + | Uint32Array + | Int8Array + | Int16Array + | Int32Array + | BigUint64Array + | BigInt64Array + | Float32Array + | Float64Array; + type ArrayBufferView = TypedArray | DataView; +} diff --git a/backend/node_modules/@types/node/globals.global.d.ts b/backend/node_modules/@types/node/globals.global.d.ts new file mode 100755 index 0000000..d66acba --- /dev/null +++ b/backend/node_modules/@types/node/globals.global.d.ts @@ -0,0 +1 @@ +declare var global: NodeJS.Global & typeof globalThis; diff --git a/backend/node_modules/@types/node/http.d.ts b/backend/node_modules/@types/node/http.d.ts new file mode 100755 index 0000000..ba33162 --- /dev/null +++ b/backend/node_modules/@types/node/http.d.ts @@ -0,0 +1,456 @@ +declare module 'http' { + import * as stream from 'stream'; + import { URL } from 'url'; + import { Socket, Server as NetServer, LookupFunction } from 'net'; + + // incoming headers will never contain number + interface IncomingHttpHeaders { + 'accept'?: string | undefined; + 'accept-language'?: string | undefined; + 'accept-patch'?: string | undefined; + 'accept-ranges'?: string | undefined; + 'access-control-allow-credentials'?: string | undefined; + 'access-control-allow-headers'?: string | undefined; + 'access-control-allow-methods'?: string | undefined; + 'access-control-allow-origin'?: string | undefined; + 'access-control-expose-headers'?: string | undefined; + 'access-control-max-age'?: string | undefined; + 'access-control-request-headers'?: string | undefined; + 'access-control-request-method'?: string | undefined; + 'age'?: string | undefined; + 'allow'?: string | undefined; + 'alt-svc'?: string | undefined; + 'authorization'?: string | undefined; + 'cache-control'?: string | undefined; + 'connection'?: string | undefined; + 'content-disposition'?: string | undefined; + 'content-encoding'?: string | undefined; + 'content-language'?: string | undefined; + 'content-length'?: string | undefined; + 'content-location'?: string | undefined; + 'content-range'?: string | undefined; + 'content-type'?: string | undefined; + 'cookie'?: string | undefined; + 'date'?: string | undefined; + 'etag'?: string | undefined; + 'expect'?: string | undefined; + 'expires'?: string | undefined; + 'forwarded'?: string | undefined; + 'from'?: string | undefined; + 'host'?: string | undefined; + 'if-match'?: string | undefined; + 'if-modified-since'?: string | undefined; + 'if-none-match'?: string | undefined; + 'if-unmodified-since'?: string | undefined; + 'last-modified'?: string | undefined; + 'location'?: string | undefined; + 'origin'?: string | undefined; + 'pragma'?: string | undefined; + 'proxy-authenticate'?: string | undefined; + 'proxy-authorization'?: string | undefined; + 'public-key-pins'?: string | undefined; + 'range'?: string | undefined; + 'referer'?: string | undefined; + 'retry-after'?: string | undefined; + 'set-cookie'?: string[] | undefined; + 'strict-transport-security'?: string | undefined; + 'tk'?: string | undefined; + 'trailer'?: string | undefined; + 'transfer-encoding'?: string | undefined; + 'upgrade'?: string | undefined; + 'user-agent'?: string | undefined; + 'vary'?: string | undefined; + 'via'?: string | undefined; + 'warning'?: string | undefined; + 'www-authenticate'?: string | undefined; + [header: string]: string | string[] | undefined; + } + + // outgoing headers allows numbers (as they are converted internally to strings) + interface OutgoingHttpHeaders { + [header: string]: number | string | string[] | undefined; + } + + interface ClientRequestArgs { + protocol?: string | null | undefined; + host?: string | null | undefined; + hostname?: string | null | undefined; + family?: number | undefined; + port?: number | string | null | undefined; + defaultPort?: number | string | undefined; + localAddress?: string | undefined; + socketPath?: string | undefined; + method?: string | undefined; + path?: string | null | undefined; + headers?: OutgoingHttpHeaders | undefined; + auth?: string | null | undefined; + agent?: Agent | boolean | undefined; + _defaultAgent?: Agent | undefined; + timeout?: number | undefined; + setHost?: boolean | undefined; + // https://github.com/nodejs/node/blob/master/lib/_http_client.js#L278 + createConnection?: ((options: ClientRequestArgs, oncreate: (err: Error, socket: Socket) => void) => Socket) | undefined; + lookup?: LookupFunction | undefined; + } + + interface ServerOptions { + IncomingMessage?: typeof IncomingMessage | undefined; + ServerResponse?: typeof ServerResponse | undefined; + } + + type RequestListener = (req: IncomingMessage, res: ServerResponse) => void; + + class Server extends NetServer { + constructor(requestListener?: RequestListener); + constructor(options: ServerOptions, requestListener?: RequestListener); + + setTimeout(msecs?: number, callback?: () => void): this; + setTimeout(callback: () => void): this; + /** + * Limits maximum incoming headers count. If set to 0, no limit will be applied. + * @default 2000 + * {@link https://nodejs.org/api/http.html#http_server_maxheaderscount} + */ + maxHeadersCount: number | null; + timeout: number; + /** + * Limit the amount of time the parser will wait to receive the complete HTTP headers. + * @default 40000 + * {@link https://nodejs.org/api/http.html#http_server_headerstimeout} + */ + headersTimeout: number; + keepAliveTimeout: number; + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: 'close', listener: () => void): this; + addListener(event: 'connection', listener: (socket: Socket) => void): this; + addListener(event: 'error', listener: (err: Error) => void): this; + addListener(event: 'listening', listener: () => void): this; + addListener(event: 'checkContinue', listener: RequestListener): this; + addListener(event: 'checkExpectation', listener: RequestListener): this; + addListener(event: 'clientError', listener: (err: Error, socket: stream.Duplex) => void): this; + addListener(event: 'connect', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this; + addListener(event: 'request', listener: RequestListener): this; + addListener(event: 'upgrade', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this; + emit(event: string, ...args: any[]): boolean; + emit(event: 'close'): boolean; + emit(event: 'connection', socket: Socket): boolean; + emit(event: 'error', err: Error): boolean; + emit(event: 'listening'): boolean; + emit(event: 'checkContinue', req: IncomingMessage, res: ServerResponse): boolean; + emit(event: 'checkExpectation', req: IncomingMessage, res: ServerResponse): boolean; + emit(event: 'clientError', err: Error, socket: stream.Duplex): boolean; + emit(event: 'connect', req: IncomingMessage, socket: stream.Duplex, head: Buffer): boolean; + emit(event: 'request', req: IncomingMessage, res: ServerResponse): boolean; + emit(event: 'upgrade', req: IncomingMessage, socket: stream.Duplex, head: Buffer): boolean; + on(event: string, listener: (...args: any[]) => void): this; + on(event: 'close', listener: () => void): this; + on(event: 'connection', listener: (socket: Socket) => void): this; + on(event: 'error', listener: (err: Error) => void): this; + on(event: 'listening', listener: () => void): this; + on(event: 'checkContinue', listener: RequestListener): this; + on(event: 'checkExpectation', listener: RequestListener): this; + on(event: 'clientError', listener: (err: Error, socket: stream.Duplex) => void): this; + on(event: 'connect', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this; + on(event: 'request', listener: RequestListener): this; + on(event: 'upgrade', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this; + once(event: string, listener: (...args: any[]) => void): this; + once(event: 'close', listener: () => void): this; + once(event: 'connection', listener: (socket: Socket) => void): this; + once(event: 'error', listener: (err: Error) => void): this; + once(event: 'listening', listener: () => void): this; + once(event: 'checkContinue', listener: RequestListener): this; + once(event: 'checkExpectation', listener: RequestListener): this; + once(event: 'clientError', listener: (err: Error, socket: stream.Duplex) => void): this; + once(event: 'connect', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this; + once(event: 'request', listener: RequestListener): this; + once(event: 'upgrade', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this; + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: 'close', listener: () => void): this; + prependListener(event: 'connection', listener: (socket: Socket) => void): this; + prependListener(event: 'error', listener: (err: Error) => void): this; + prependListener(event: 'listening', listener: () => void): this; + prependListener(event: 'checkContinue', listener: RequestListener): this; + prependListener(event: 'checkExpectation', listener: RequestListener): this; + prependListener(event: 'clientError', listener: (err: Error, socket: stream.Duplex) => void): this; + prependListener(event: 'connect', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this; + prependListener(event: 'request', listener: RequestListener): this; + prependListener(event: 'upgrade', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this; + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: 'close', listener: () => void): this; + prependOnceListener(event: 'connection', listener: (socket: Socket) => void): this; + prependOnceListener(event: 'error', listener: (err: Error) => void): this; + prependOnceListener(event: 'listening', listener: () => void): this; + prependOnceListener(event: 'checkContinue', listener: RequestListener): this; + prependOnceListener(event: 'checkExpectation', listener: RequestListener): this; + prependOnceListener(event: 'clientError', listener: (err: Error, socket: stream.Duplex) => void): this; + prependOnceListener(event: 'connect', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this; + prependOnceListener(event: 'request', listener: RequestListener): this; + prependOnceListener(event: 'upgrade', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this; + } + + // https://github.com/nodejs/node/blob/master/lib/_http_outgoing.js + class OutgoingMessage extends stream.Writable { + upgrading: boolean; + chunkedEncoding: boolean; + shouldKeepAlive: boolean; + useChunkedEncodingByDefault: boolean; + sendDate: boolean; + finished: boolean; + headersSent: boolean; + connection: Socket; + + constructor(); + + setTimeout(msecs: number, callback?: () => void): this; + setHeader(name: string, value: number | string | ReadonlyArray): void; + getHeader(name: string): number | string | string[] | undefined; + getHeaders(): OutgoingHttpHeaders; + getHeaderNames(): string[]; + hasHeader(name: string): boolean; + removeHeader(name: string): void; + addTrailers(headers: OutgoingHttpHeaders | ReadonlyArray<[string, string]>): void; + flushHeaders(): void; + } + + // https://github.com/nodejs/node/blob/master/lib/_http_server.js#L108-L256 + class ServerResponse extends OutgoingMessage { + statusCode: number; + statusMessage: string; + writableFinished: boolean; + + constructor(req: IncomingMessage); + + assignSocket(socket: Socket): void; + detachSocket(socket: Socket): void; + // https://github.com/nodejs/node/blob/master/test/parallel/test-http-write-callbacks.js#L53 + // no args in writeContinue callback + writeContinue(callback?: () => void): void; + writeHead(statusCode: number, statusMessage?: string, headers?: OutgoingHttpHeaders): this; + writeHead(statusCode: number, headers?: OutgoingHttpHeaders): this; + writeProcessing(): void; + } + + interface InformationEvent { + statusCode: number; + statusMessage: string; + httpVersion: string; + httpVersionMajor: number; + httpVersionMinor: number; + headers: IncomingHttpHeaders; + rawHeaders: string[]; + } + + // https://github.com/nodejs/node/blob/v12.20.0/lib/_http_client.js#L85 + class ClientRequest extends OutgoingMessage { + connection: Socket; + socket: Socket; + aborted: boolean; + host: string; + protocol: string; + reusedSocket: boolean; + maxHeadersCount: number; + + constructor(url: string | URL | ClientRequestArgs, cb?: (res: IncomingMessage) => void); + + method: string; + readonly path: string; + abort(): void; + onSocket(socket: Socket): void; + setTimeout(timeout: number, callback?: () => void): this; + setNoDelay(noDelay?: boolean): void; + setSocketKeepAlive(enable?: boolean, initialDelay?: number): void; + + addListener(event: 'abort', listener: () => void): this; + addListener(event: 'connect', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; + addListener(event: 'continue', listener: () => void): this; + addListener(event: 'information', listener: (info: InformationEvent) => void): this; + addListener(event: 'response', listener: (response: IncomingMessage) => void): this; + addListener(event: 'socket', listener: (socket: Socket) => void): this; + addListener(event: 'timeout', listener: () => void): this; + addListener(event: 'upgrade', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; + addListener(event: 'close', listener: () => void): this; + addListener(event: 'drain', listener: () => void): this; + addListener(event: 'error', listener: (err: Error) => void): this; + addListener(event: 'finish', listener: () => void): this; + addListener(event: 'pipe', listener: (src: stream.Readable) => void): this; + addListener(event: 'unpipe', listener: (src: stream.Readable) => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + + on(event: 'abort', listener: () => void): this; + on(event: 'connect', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; + on(event: 'continue', listener: () => void): this; + on(event: 'information', listener: (info: InformationEvent) => void): this; + on(event: 'response', listener: (response: IncomingMessage) => void): this; + on(event: 'socket', listener: (socket: Socket) => void): this; + on(event: 'timeout', listener: () => void): this; + on(event: 'upgrade', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; + on(event: 'close', listener: () => void): this; + on(event: 'drain', listener: () => void): this; + on(event: 'error', listener: (err: Error) => void): this; + on(event: 'finish', listener: () => void): this; + on(event: 'pipe', listener: (src: stream.Readable) => void): this; + on(event: 'unpipe', listener: (src: stream.Readable) => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + + once(event: 'abort', listener: () => void): this; + once(event: 'connect', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; + once(event: 'continue', listener: () => void): this; + once(event: 'information', listener: (info: InformationEvent) => void): this; + once(event: 'response', listener: (response: IncomingMessage) => void): this; + once(event: 'socket', listener: (socket: Socket) => void): this; + once(event: 'timeout', listener: () => void): this; + once(event: 'upgrade', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; + once(event: 'close', listener: () => void): this; + once(event: 'drain', listener: () => void): this; + once(event: 'error', listener: (err: Error) => void): this; + once(event: 'finish', listener: () => void): this; + once(event: 'pipe', listener: (src: stream.Readable) => void): this; + once(event: 'unpipe', listener: (src: stream.Readable) => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + + prependListener(event: 'abort', listener: () => void): this; + prependListener(event: 'connect', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; + prependListener(event: 'continue', listener: () => void): this; + prependListener(event: 'information', listener: (info: InformationEvent) => void): this; + prependListener(event: 'response', listener: (response: IncomingMessage) => void): this; + prependListener(event: 'socket', listener: (socket: Socket) => void): this; + prependListener(event: 'timeout', listener: () => void): this; + prependListener(event: 'upgrade', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; + prependListener(event: 'close', listener: () => void): this; + prependListener(event: 'drain', listener: () => void): this; + prependListener(event: 'error', listener: (err: Error) => void): this; + prependListener(event: 'finish', listener: () => void): this; + prependListener(event: 'pipe', listener: (src: stream.Readable) => void): this; + prependListener(event: 'unpipe', listener: (src: stream.Readable) => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + + prependOnceListener(event: 'abort', listener: () => void): this; + prependOnceListener(event: 'connect', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; + prependOnceListener(event: 'continue', listener: () => void): this; + prependOnceListener(event: 'information', listener: (info: InformationEvent) => void): this; + prependOnceListener(event: 'response', listener: (response: IncomingMessage) => void): this; + prependOnceListener(event: 'socket', listener: (socket: Socket) => void): this; + prependOnceListener(event: 'timeout', listener: () => void): this; + prependOnceListener(event: 'upgrade', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; + prependOnceListener(event: 'close', listener: () => void): this; + prependOnceListener(event: 'drain', listener: () => void): this; + prependOnceListener(event: 'error', listener: (err: Error) => void): this; + prependOnceListener(event: 'finish', listener: () => void): this; + prependOnceListener(event: 'pipe', listener: (src: stream.Readable) => void): this; + prependOnceListener(event: 'unpipe', listener: (src: stream.Readable) => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + } + + class IncomingMessage extends stream.Readable { + constructor(socket: Socket); + + aborted: boolean; + httpVersion: string; + httpVersionMajor: number; + httpVersionMinor: number; + complete: boolean; + connection: Socket; + headers: IncomingHttpHeaders; + rawHeaders: string[]; + trailers: { [key: string]: string | undefined }; + rawTrailers: string[]; + setTimeout(msecs: number, callback?: () => void): this; + /** + * Only valid for request obtained from http.Server. + */ + method?: string | undefined; + /** + * Only valid for request obtained from http.Server. + */ + url?: string | undefined; + /** + * Only valid for response obtained from http.ClientRequest. + */ + statusCode?: number | undefined; + /** + * Only valid for response obtained from http.ClientRequest. + */ + statusMessage?: string | undefined; + socket: Socket; + destroy(error?: Error): this; + } + + interface AgentOptions { + /** + * Keep sockets around in a pool to be used by other requests in the future. Default = false + */ + keepAlive?: boolean | undefined; + /** + * When using HTTP KeepAlive, how often to send TCP KeepAlive packets over sockets being kept alive. Default = 1000. + * Only relevant if keepAlive is set to true. + */ + keepAliveMsecs?: number | undefined; + /** + * Maximum number of sockets to allow per host. Default for Node 0.10 is 5, default for Node 0.12 is Infinity + */ + maxSockets?: number | undefined; + /** + * Maximum number of sockets allowed for all hosts in total. Each request will use a new socket until the maximum is reached. Default: Infinity. + */ + maxTotalSockets?: number | undefined; + /** + * Maximum number of sockets to leave open in a free state. Only relevant if keepAlive is set to true. Default = 256. + */ + maxFreeSockets?: number | undefined; + /** + * Socket timeout in milliseconds. This will set the timeout after the socket is connected. + */ + timeout?: number | undefined; + /** + * Scheduling strategy to apply when picking the next free socket to use. Default: 'fifo'. + */ + scheduling?: 'fifo' | 'lifo' | undefined; + } + + class Agent { + maxFreeSockets: number; + maxSockets: number; + maxTotalSockets: number; + readonly sockets: { + readonly [key: string]: Socket[]; + }; + readonly requests: { + readonly [key: string]: IncomingMessage[]; + }; + + constructor(opts?: AgentOptions); + + /** + * Destroy any sockets that are currently in use by the agent. + * It is usually not necessary to do this. However, if you are using an agent with KeepAlive enabled, + * then it is best to explicitly shut down the agent when you know that it will no longer be used. Otherwise, + * sockets may hang open for quite a long time before the server terminates them. + */ + destroy(): void; + } + + const METHODS: string[]; + + const STATUS_CODES: { + [errorCode: number]: string | undefined; + [errorCode: string]: string | undefined; + }; + + function createServer(requestListener?: RequestListener): Server; + function createServer(options: ServerOptions, requestListener?: RequestListener): Server; + + // although RequestOptions are passed as ClientRequestArgs to ClientRequest directly, + // create interface RequestOptions would make the naming more clear to developers + interface RequestOptions extends ClientRequestArgs { } + function request(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest; + function request(url: string | URL, options: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest; + function get(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest; + function get(url: string | URL, options: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest; + let globalAgent: Agent; + + /** + * Read-only property specifying the maximum allowed size of HTTP headers in bytes. + * Defaults to 8KB. Configurable using the [`--max-http-header-size`][] CLI option. + */ + const maxHeaderSize: number; +} diff --git a/backend/node_modules/@types/node/http2.d.ts b/backend/node_modules/@types/node/http2.d.ts new file mode 100755 index 0000000..5608beb --- /dev/null +++ b/backend/node_modules/@types/node/http2.d.ts @@ -0,0 +1,952 @@ +declare module 'http2' { + import EventEmitter = require('events'); + import * as fs from 'fs'; + import * as net from 'net'; + import * as stream from 'stream'; + import * as tls from 'tls'; + import * as url from 'url'; + + import { + IncomingHttpHeaders as Http1IncomingHttpHeaders, + OutgoingHttpHeaders, + IncomingMessage, + ServerResponse, + } from 'http'; + export { OutgoingHttpHeaders } from 'http'; + + export interface IncomingHttpStatusHeader { + ":status"?: number | undefined; + } + + export interface IncomingHttpHeaders extends Http1IncomingHttpHeaders { + ":path"?: string | undefined; + ":method"?: string | undefined; + ":authority"?: string | undefined; + ":scheme"?: string | undefined; + } + + // Http2Stream + + export interface StreamPriorityOptions { + exclusive?: boolean | undefined; + parent?: number | undefined; + weight?: number | undefined; + silent?: boolean | undefined; + } + + export interface StreamState { + localWindowSize?: number | undefined; + state?: number | undefined; + localClose?: number | undefined; + remoteClose?: number | undefined; + sumDependencyWeight?: number | undefined; + weight?: number | undefined; + } + + export interface ServerStreamResponseOptions { + endStream?: boolean | undefined; + waitForTrailers?: boolean | undefined; + } + + export interface StatOptions { + offset: number; + length: number; + } + + export interface ServerStreamFileResponseOptions { + statCheck?(stats: fs.Stats, headers: OutgoingHttpHeaders, statOptions: StatOptions): void | boolean; + waitForTrailers?: boolean | undefined; + offset?: number | undefined; + length?: number | undefined; + } + + export interface ServerStreamFileResponseOptionsWithError extends ServerStreamFileResponseOptions { + onError?(err: NodeJS.ErrnoException): void; + } + + export interface Http2Stream extends stream.Duplex { + readonly aborted: boolean; + readonly bufferSize: number; + readonly closed: boolean; + readonly destroyed: boolean; + /** + * Set the true if the END_STREAM flag was set in the request or response HEADERS frame received, + * indicating that no additional data should be received and the readable side of the Http2Stream will be closed. + */ + readonly endAfterHeaders: boolean; + readonly id?: number | undefined; + readonly pending: boolean; + readonly rstCode: number; + readonly sentHeaders: OutgoingHttpHeaders; + readonly sentInfoHeaders?: OutgoingHttpHeaders[] | undefined; + readonly sentTrailers?: OutgoingHttpHeaders | undefined; + readonly session: Http2Session; + readonly state: StreamState; + + close(code?: number, callback?: () => void): void; + priority(options: StreamPriorityOptions): void; + setTimeout(msecs: number, callback?: () => void): void; + sendTrailers(headers: OutgoingHttpHeaders): void; + + addListener(event: "aborted", listener: () => void): this; + addListener(event: "close", listener: () => void): this; + addListener(event: "data", listener: (chunk: Buffer | string) => void): this; + addListener(event: "drain", listener: () => void): this; + addListener(event: "end", listener: () => void): this; + addListener(event: "error", listener: (err: Error) => void): this; + addListener(event: "finish", listener: () => void): this; + addListener(event: "frameError", listener: (frameType: number, errorCode: number) => void): this; + addListener(event: "pipe", listener: (src: stream.Readable) => void): this; + addListener(event: "unpipe", listener: (src: stream.Readable) => void): this; + addListener(event: "streamClosed", listener: (code: number) => void): this; + addListener(event: "timeout", listener: () => void): this; + addListener(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; + addListener(event: "wantTrailers", listener: () => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + + emit(event: "aborted"): boolean; + emit(event: "close"): boolean; + emit(event: "data", chunk: Buffer | string): boolean; + emit(event: "drain"): boolean; + emit(event: "end"): boolean; + emit(event: "error", err: Error): boolean; + emit(event: "finish"): boolean; + emit(event: "frameError", frameType: number, errorCode: number): boolean; + emit(event: "pipe", src: stream.Readable): boolean; + emit(event: "unpipe", src: stream.Readable): boolean; + emit(event: "streamClosed", code: number): boolean; + emit(event: "timeout"): boolean; + emit(event: "trailers", trailers: IncomingHttpHeaders, flags: number): boolean; + emit(event: "wantTrailers"): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + + on(event: "aborted", listener: () => void): this; + on(event: "close", listener: () => void): this; + on(event: "data", listener: (chunk: Buffer | string) => void): this; + on(event: "drain", listener: () => void): this; + on(event: "end", listener: () => void): this; + on(event: "error", listener: (err: Error) => void): this; + on(event: "finish", listener: () => void): this; + on(event: "frameError", listener: (frameType: number, errorCode: number) => void): this; + on(event: "pipe", listener: (src: stream.Readable) => void): this; + on(event: "unpipe", listener: (src: stream.Readable) => void): this; + on(event: "streamClosed", listener: (code: number) => void): this; + on(event: "timeout", listener: () => void): this; + on(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; + on(event: "wantTrailers", listener: () => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + + once(event: "aborted", listener: () => void): this; + once(event: "close", listener: () => void): this; + once(event: "data", listener: (chunk: Buffer | string) => void): this; + once(event: "drain", listener: () => void): this; + once(event: "end", listener: () => void): this; + once(event: "error", listener: (err: Error) => void): this; + once(event: "finish", listener: () => void): this; + once(event: "frameError", listener: (frameType: number, errorCode: number) => void): this; + once(event: "pipe", listener: (src: stream.Readable) => void): this; + once(event: "unpipe", listener: (src: stream.Readable) => void): this; + once(event: "streamClosed", listener: (code: number) => void): this; + once(event: "timeout", listener: () => void): this; + once(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; + once(event: "wantTrailers", listener: () => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + + prependListener(event: "aborted", listener: () => void): this; + prependListener(event: "close", listener: () => void): this; + prependListener(event: "data", listener: (chunk: Buffer | string) => void): this; + prependListener(event: "drain", listener: () => void): this; + prependListener(event: "end", listener: () => void): this; + prependListener(event: "error", listener: (err: Error) => void): this; + prependListener(event: "finish", listener: () => void): this; + prependListener(event: "frameError", listener: (frameType: number, errorCode: number) => void): this; + prependListener(event: "pipe", listener: (src: stream.Readable) => void): this; + prependListener(event: "unpipe", listener: (src: stream.Readable) => void): this; + prependListener(event: "streamClosed", listener: (code: number) => void): this; + prependListener(event: "timeout", listener: () => void): this; + prependListener(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; + prependListener(event: "wantTrailers", listener: () => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + + prependOnceListener(event: "aborted", listener: () => void): this; + prependOnceListener(event: "close", listener: () => void): this; + prependOnceListener(event: "data", listener: (chunk: Buffer | string) => void): this; + prependOnceListener(event: "drain", listener: () => void): this; + prependOnceListener(event: "end", listener: () => void): this; + prependOnceListener(event: "error", listener: (err: Error) => void): this; + prependOnceListener(event: "finish", listener: () => void): this; + prependOnceListener(event: "frameError", listener: (frameType: number, errorCode: number) => void): this; + prependOnceListener(event: "pipe", listener: (src: stream.Readable) => void): this; + prependOnceListener(event: "unpipe", listener: (src: stream.Readable) => void): this; + prependOnceListener(event: "streamClosed", listener: (code: number) => void): this; + prependOnceListener(event: "timeout", listener: () => void): this; + prependOnceListener(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; + prependOnceListener(event: "wantTrailers", listener: () => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + } + + export interface ClientHttp2Stream extends Http2Stream { + addListener(event: "continue", listener: () => {}): this; + addListener(event: "headers", listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; + addListener(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this; + addListener(event: "response", listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + + emit(event: "continue"): boolean; + emit(event: "headers", headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number): boolean; + emit(event: "push", headers: IncomingHttpHeaders, flags: number): boolean; + emit(event: "response", headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + + on(event: "continue", listener: () => {}): this; + on(event: "headers", listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; + on(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this; + on(event: "response", listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + + once(event: "continue", listener: () => {}): this; + once(event: "headers", listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; + once(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this; + once(event: "response", listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + + prependListener(event: "continue", listener: () => {}): this; + prependListener(event: "headers", listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; + prependListener(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this; + prependListener(event: "response", listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + + prependOnceListener(event: "continue", listener: () => {}): this; + prependOnceListener(event: "headers", listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; + prependOnceListener(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this; + prependOnceListener(event: "response", listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + } + + export interface ServerHttp2Stream extends Http2Stream { + readonly headersSent: boolean; + readonly pushAllowed: boolean; + additionalHeaders(headers: OutgoingHttpHeaders): void; + pushStream(headers: OutgoingHttpHeaders, callback?: (err: Error | null, pushStream: ServerHttp2Stream, headers: OutgoingHttpHeaders) => void): void; + pushStream(headers: OutgoingHttpHeaders, options?: StreamPriorityOptions, callback?: (err: Error | null, pushStream: ServerHttp2Stream, headers: OutgoingHttpHeaders) => void): void; + respond(headers?: OutgoingHttpHeaders, options?: ServerStreamResponseOptions): void; + respondWithFD(fd: number | fs.promises.FileHandle, headers?: OutgoingHttpHeaders, options?: ServerStreamFileResponseOptions): void; + respondWithFile(path: string, headers?: OutgoingHttpHeaders, options?: ServerStreamFileResponseOptionsWithError): void; + } + + // Http2Session + + export interface Settings { + headerTableSize?: number | undefined; + enablePush?: boolean | undefined; + initialWindowSize?: number | undefined; + maxFrameSize?: number | undefined; + maxConcurrentStreams?: number | undefined; + maxHeaderListSize?: number | undefined; + enableConnectProtocol?: boolean | undefined; + } + + export interface ClientSessionRequestOptions { + endStream?: boolean | undefined; + exclusive?: boolean | undefined; + parent?: number | undefined; + weight?: number | undefined; + waitForTrailers?: boolean | undefined; + } + + export interface SessionState { + effectiveLocalWindowSize?: number | undefined; + effectiveRecvDataLength?: number | undefined; + nextStreamID?: number | undefined; + localWindowSize?: number | undefined; + lastProcStreamID?: number | undefined; + remoteWindowSize?: number | undefined; + outboundQueueSize?: number | undefined; + deflateDynamicTableSize?: number | undefined; + inflateDynamicTableSize?: number | undefined; + } + + export interface Http2Session extends EventEmitter { + readonly alpnProtocol?: string | undefined; + readonly closed: boolean; + readonly connecting: boolean; + readonly destroyed: boolean; + readonly encrypted?: boolean | undefined; + readonly localSettings: Settings; + readonly originSet?: string[] | undefined; + readonly pendingSettingsAck: boolean; + readonly remoteSettings: Settings; + readonly socket: net.Socket | tls.TLSSocket; + readonly state: SessionState; + readonly type: number; + + close(callback?: () => void): void; + destroy(error?: Error, code?: number): void; + goaway(code?: number, lastStreamID?: number, opaqueData?: NodeJS.ArrayBufferView): void; + ping(callback: (err: Error | null, duration: number, payload: Buffer) => void): boolean; + ping(payload: NodeJS.ArrayBufferView, callback: (err: Error | null, duration: number, payload: Buffer) => void): boolean; + ref(): void; + setTimeout(msecs: number, callback?: () => void): void; + settings(settings: Settings): void; + unref(): void; + + addListener(event: "close", listener: () => void): this; + addListener(event: "error", listener: (err: Error) => void): this; + addListener(event: "frameError", listener: (frameType: number, errorCode: number, streamID: number) => void): this; + addListener(event: "goaway", listener: (errorCode: number, lastStreamID: number, opaqueData: Buffer) => void): this; + addListener(event: "localSettings", listener: (settings: Settings) => void): this; + addListener(event: "ping", listener: () => void): this; + addListener(event: "remoteSettings", listener: (settings: Settings) => void): this; + addListener(event: "timeout", listener: () => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + + emit(event: "close"): boolean; + emit(event: "error", err: Error): boolean; + emit(event: "frameError", frameType: number, errorCode: number, streamID: number): boolean; + emit(event: "goaway", errorCode: number, lastStreamID: number, opaqueData: Buffer): boolean; + emit(event: "localSettings", settings: Settings): boolean; + emit(event: "ping"): boolean; + emit(event: "remoteSettings", settings: Settings): boolean; + emit(event: "timeout"): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + + on(event: "close", listener: () => void): this; + on(event: "error", listener: (err: Error) => void): this; + on(event: "frameError", listener: (frameType: number, errorCode: number, streamID: number) => void): this; + on(event: "goaway", listener: (errorCode: number, lastStreamID: number, opaqueData: Buffer) => void): this; + on(event: "localSettings", listener: (settings: Settings) => void): this; + on(event: "ping", listener: () => void): this; + on(event: "remoteSettings", listener: (settings: Settings) => void): this; + on(event: "timeout", listener: () => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + + once(event: "close", listener: () => void): this; + once(event: "error", listener: (err: Error) => void): this; + once(event: "frameError", listener: (frameType: number, errorCode: number, streamID: number) => void): this; + once(event: "goaway", listener: (errorCode: number, lastStreamID: number, opaqueData: Buffer) => void): this; + once(event: "localSettings", listener: (settings: Settings) => void): this; + once(event: "ping", listener: () => void): this; + once(event: "remoteSettings", listener: (settings: Settings) => void): this; + once(event: "timeout", listener: () => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + + prependListener(event: "close", listener: () => void): this; + prependListener(event: "error", listener: (err: Error) => void): this; + prependListener(event: "frameError", listener: (frameType: number, errorCode: number, streamID: number) => void): this; + prependListener(event: "goaway", listener: (errorCode: number, lastStreamID: number, opaqueData: Buffer) => void): this; + prependListener(event: "localSettings", listener: (settings: Settings) => void): this; + prependListener(event: "ping", listener: () => void): this; + prependListener(event: "remoteSettings", listener: (settings: Settings) => void): this; + prependListener(event: "timeout", listener: () => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + + prependOnceListener(event: "close", listener: () => void): this; + prependOnceListener(event: "error", listener: (err: Error) => void): this; + prependOnceListener(event: "frameError", listener: (frameType: number, errorCode: number, streamID: number) => void): this; + prependOnceListener(event: "goaway", listener: (errorCode: number, lastStreamID: number, opaqueData: Buffer) => void): this; + prependOnceListener(event: "localSettings", listener: (settings: Settings) => void): this; + prependOnceListener(event: "ping", listener: () => void): this; + prependOnceListener(event: "remoteSettings", listener: (settings: Settings) => void): this; + prependOnceListener(event: "timeout", listener: () => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + } + + export interface ClientHttp2Session extends Http2Session { + request(headers?: OutgoingHttpHeaders, options?: ClientSessionRequestOptions): ClientHttp2Stream; + + addListener(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this; + addListener(event: "origin", listener: (origins: string[]) => void): this; + addListener(event: "connect", listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this; + addListener(event: "stream", listener: (stream: ClientHttp2Stream, headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + + emit(event: "altsvc", alt: string, origin: string, stream: number): boolean; + emit(event: "origin", origins: ReadonlyArray): boolean; + emit(event: "connect", session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket): boolean; + emit(event: "stream", stream: ClientHttp2Stream, headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + + on(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this; + on(event: "origin", listener: (origins: string[]) => void): this; + on(event: "connect", listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this; + on(event: "stream", listener: (stream: ClientHttp2Stream, headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + + once(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this; + once(event: "origin", listener: (origins: string[]) => void): this; + once(event: "connect", listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this; + once(event: "stream", listener: (stream: ClientHttp2Stream, headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + + prependListener(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this; + prependListener(event: "origin", listener: (origins: string[]) => void): this; + prependListener(event: "connect", listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this; + prependListener(event: "stream", listener: (stream: ClientHttp2Stream, headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + + prependOnceListener(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this; + prependOnceListener(event: "origin", listener: (origins: string[]) => void): this; + prependOnceListener(event: "connect", listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this; + prependOnceListener(event: "stream", listener: (stream: ClientHttp2Stream, headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + } + + export interface AlternativeServiceOptions { + origin: number | string | url.URL; + } + + export interface ServerHttp2Session extends Http2Session { + readonly server: Http2Server | Http2SecureServer; + + altsvc(alt: string, originOrStream: number | string | url.URL | AlternativeServiceOptions): void; + origin(...args: Array): void; + + addListener(event: "connect", listener: (session: ServerHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this; + addListener(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + + emit(event: "connect", session: ServerHttp2Session, socket: net.Socket | tls.TLSSocket): boolean; + emit(event: "stream", stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + + on(event: "connect", listener: (session: ServerHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this; + on(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + + once(event: "connect", listener: (session: ServerHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this; + once(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + + prependListener(event: "connect", listener: (session: ServerHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this; + prependListener(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + + prependOnceListener(event: "connect", listener: (session: ServerHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this; + prependOnceListener(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + } + + // Http2Server + + export interface SessionOptions { + maxDeflateDynamicTableSize?: number | undefined; + maxSessionMemory?: number | undefined; + maxHeaderListPairs?: number | undefined; + maxOutstandingPings?: number | undefined; + maxSendHeaderBlockLength?: number | undefined; + paddingStrategy?: number | undefined; + peerMaxConcurrentStreams?: number | undefined; + settings?: Settings | undefined; + + selectPadding?(frameLen: number, maxFrameLen: number): number; + createConnection?(authority: url.URL, option: SessionOptions): stream.Duplex; + } + + export interface ClientSessionOptions extends SessionOptions { + maxReservedRemoteStreams?: number | undefined; + createConnection?: ((authority: url.URL, option: SessionOptions) => stream.Duplex) | undefined; + } + + export interface ServerSessionOptions extends SessionOptions { + Http1IncomingMessage?: typeof IncomingMessage | undefined; + Http1ServerResponse?: typeof ServerResponse | undefined; + Http2ServerRequest?: typeof Http2ServerRequest | undefined; + Http2ServerResponse?: typeof Http2ServerResponse | undefined; + } + + export interface SecureClientSessionOptions extends ClientSessionOptions, tls.ConnectionOptions { } + export interface SecureServerSessionOptions extends ServerSessionOptions, tls.TlsOptions { } + + export interface ServerOptions extends ServerSessionOptions { } + + export interface SecureServerOptions extends SecureServerSessionOptions { + allowHTTP1?: boolean | undefined; + origins?: string[] | undefined; + } + + export interface Http2Server extends net.Server { + addListener(event: "checkContinue", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + addListener(event: "request", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + addListener(event: "session", listener: (session: ServerHttp2Session) => void): this; + addListener(event: "sessionError", listener: (err: Error) => void): this; + addListener(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; + addListener(event: "timeout", listener: () => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + + emit(event: "checkContinue", request: Http2ServerRequest, response: Http2ServerResponse): boolean; + emit(event: "request", request: Http2ServerRequest, response: Http2ServerResponse): boolean; + emit(event: "session", session: ServerHttp2Session): boolean; + emit(event: "sessionError", err: Error): boolean; + emit(event: "stream", stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number): boolean; + emit(event: "timeout"): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + + on(event: "checkContinue", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + on(event: "request", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + on(event: "session", listener: (session: ServerHttp2Session) => void): this; + on(event: "sessionError", listener: (err: Error) => void): this; + on(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; + on(event: "timeout", listener: () => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + + once(event: "checkContinue", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + once(event: "request", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + once(event: "session", listener: (session: ServerHttp2Session) => void): this; + once(event: "sessionError", listener: (err: Error) => void): this; + once(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; + once(event: "timeout", listener: () => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + + prependListener(event: "checkContinue", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + prependListener(event: "request", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + prependListener(event: "session", listener: (session: ServerHttp2Session) => void): this; + prependListener(event: "sessionError", listener: (err: Error) => void): this; + prependListener(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; + prependListener(event: "timeout", listener: () => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + + prependOnceListener(event: "checkContinue", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + prependOnceListener(event: "request", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + prependOnceListener(event: "session", listener: (session: ServerHttp2Session) => void): this; + prependOnceListener(event: "sessionError", listener: (err: Error) => void): this; + prependOnceListener(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; + prependOnceListener(event: "timeout", listener: () => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + + setTimeout(msec?: number, callback?: () => void): this; + } + + export interface Http2SecureServer extends tls.Server { + addListener(event: "checkContinue", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + addListener(event: "request", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + addListener(event: "session", listener: (session: ServerHttp2Session) => void): this; + addListener(event: "sessionError", listener: (err: Error) => void): this; + addListener(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; + addListener(event: "timeout", listener: () => void): this; + addListener(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + + emit(event: "checkContinue", request: Http2ServerRequest, response: Http2ServerResponse): boolean; + emit(event: "request", request: Http2ServerRequest, response: Http2ServerResponse): boolean; + emit(event: "session", session: ServerHttp2Session): boolean; + emit(event: "sessionError", err: Error): boolean; + emit(event: "stream", stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number): boolean; + emit(event: "timeout"): boolean; + emit(event: "unknownProtocol", socket: tls.TLSSocket): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + + on(event: "checkContinue", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + on(event: "request", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + on(event: "session", listener: (session: ServerHttp2Session) => void): this; + on(event: "sessionError", listener: (err: Error) => void): this; + on(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; + on(event: "timeout", listener: () => void): this; + on(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + + once(event: "checkContinue", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + once(event: "request", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + once(event: "session", listener: (session: ServerHttp2Session) => void): this; + once(event: "sessionError", listener: (err: Error) => void): this; + once(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; + once(event: "timeout", listener: () => void): this; + once(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + + prependListener(event: "checkContinue", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + prependListener(event: "request", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + prependListener(event: "session", listener: (session: ServerHttp2Session) => void): this; + prependListener(event: "sessionError", listener: (err: Error) => void): this; + prependListener(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; + prependListener(event: "timeout", listener: () => void): this; + prependListener(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + + prependOnceListener(event: "checkContinue", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + prependOnceListener(event: "request", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + prependOnceListener(event: "session", listener: (session: ServerHttp2Session) => void): this; + prependOnceListener(event: "sessionError", listener: (err: Error) => void): this; + prependOnceListener(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; + prependOnceListener(event: "timeout", listener: () => void): this; + prependOnceListener(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + + setTimeout(msec?: number, callback?: () => void): this; + } + + export class Http2ServerRequest extends stream.Readable { + constructor(stream: ServerHttp2Stream, headers: IncomingHttpHeaders, options: stream.ReadableOptions, rawHeaders: ReadonlyArray); + + readonly aborted: boolean; + readonly authority: string; + readonly headers: IncomingHttpHeaders; + readonly httpVersion: string; + readonly method: string; + readonly rawHeaders: string[]; + readonly rawTrailers: string[]; + readonly scheme: string; + readonly socket: net.Socket | tls.TLSSocket; + readonly stream: ServerHttp2Stream; + readonly trailers: IncomingHttpHeaders; + url: string; + + setTimeout(msecs: number, callback?: () => void): void; + read(size?: number): Buffer | string | null; + + addListener(event: "aborted", listener: (hadError: boolean, code: number) => void): this; + addListener(event: "close", listener: () => void): this; + addListener(event: "data", listener: (chunk: Buffer | string) => void): this; + addListener(event: "end", listener: () => void): this; + addListener(event: "readable", listener: () => void): this; + addListener(event: "error", listener: (err: Error) => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + + emit(event: "aborted", hadError: boolean, code: number): boolean; + emit(event: "close"): boolean; + emit(event: "data", chunk: Buffer | string): boolean; + emit(event: "end"): boolean; + emit(event: "readable"): boolean; + emit(event: "error", err: Error): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + + on(event: "aborted", listener: (hadError: boolean, code: number) => void): this; + on(event: "close", listener: () => void): this; + on(event: "data", listener: (chunk: Buffer | string) => void): this; + on(event: "end", listener: () => void): this; + on(event: "readable", listener: () => void): this; + on(event: "error", listener: (err: Error) => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + + once(event: "aborted", listener: (hadError: boolean, code: number) => void): this; + once(event: "close", listener: () => void): this; + once(event: "data", listener: (chunk: Buffer | string) => void): this; + once(event: "end", listener: () => void): this; + once(event: "readable", listener: () => void): this; + once(event: "error", listener: (err: Error) => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + + prependListener(event: "aborted", listener: (hadError: boolean, code: number) => void): this; + prependListener(event: "close", listener: () => void): this; + prependListener(event: "data", listener: (chunk: Buffer | string) => void): this; + prependListener(event: "end", listener: () => void): this; + prependListener(event: "readable", listener: () => void): this; + prependListener(event: "error", listener: (err: Error) => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + + prependOnceListener(event: "aborted", listener: (hadError: boolean, code: number) => void): this; + prependOnceListener(event: "close", listener: () => void): this; + prependOnceListener(event: "data", listener: (chunk: Buffer | string) => void): this; + prependOnceListener(event: "end", listener: () => void): this; + prependOnceListener(event: "readable", listener: () => void): this; + prependOnceListener(event: "error", listener: (err: Error) => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + } + + export class Http2ServerResponse extends stream.Writable { + constructor(stream: ServerHttp2Stream); + + readonly connection: net.Socket | tls.TLSSocket; + readonly finished: boolean; + readonly headersSent: boolean; + readonly socket: net.Socket | tls.TLSSocket; + readonly stream: ServerHttp2Stream; + sendDate: boolean; + statusCode: number; + statusMessage: ''; + addTrailers(trailers: OutgoingHttpHeaders): void; + end(callback?: () => void): this; + end(data: string | Uint8Array, callback?: () => void): this; + end(data: string | Uint8Array, encoding: string, callback?: () => void): this; + getHeader(name: string): string; + getHeaderNames(): string[]; + getHeaders(): OutgoingHttpHeaders; + hasHeader(name: string): boolean; + removeHeader(name: string): void; + setHeader(name: string, value: number | string | ReadonlyArray): void; + setTimeout(msecs: number, callback?: () => void): void; + write(chunk: string | Uint8Array, callback?: (err: Error) => void): boolean; + write(chunk: string | Uint8Array, encoding: string, callback?: (err: Error) => void): boolean; + writeContinue(): void; + writeHead(statusCode: number, headers?: OutgoingHttpHeaders): this; + writeHead(statusCode: number, statusMessage: string, headers?: OutgoingHttpHeaders): this; + createPushResponse(headers: OutgoingHttpHeaders, callback: (err: Error | null, res: Http2ServerResponse) => void): void; + + addListener(event: "close", listener: () => void): this; + addListener(event: "drain", listener: () => void): this; + addListener(event: "error", listener: (error: Error) => void): this; + addListener(event: "finish", listener: () => void): this; + addListener(event: "pipe", listener: (src: stream.Readable) => void): this; + addListener(event: "unpipe", listener: (src: stream.Readable) => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + + emit(event: "close"): boolean; + emit(event: "drain"): boolean; + emit(event: "error", error: Error): boolean; + emit(event: "finish"): boolean; + emit(event: "pipe", src: stream.Readable): boolean; + emit(event: "unpipe", src: stream.Readable): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + + on(event: "close", listener: () => void): this; + on(event: "drain", listener: () => void): this; + on(event: "error", listener: (error: Error) => void): this; + on(event: "finish", listener: () => void): this; + on(event: "pipe", listener: (src: stream.Readable) => void): this; + on(event: "unpipe", listener: (src: stream.Readable) => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + + once(event: "close", listener: () => void): this; + once(event: "drain", listener: () => void): this; + once(event: "error", listener: (error: Error) => void): this; + once(event: "finish", listener: () => void): this; + once(event: "pipe", listener: (src: stream.Readable) => void): this; + once(event: "unpipe", listener: (src: stream.Readable) => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + + prependListener(event: "close", listener: () => void): this; + prependListener(event: "drain", listener: () => void): this; + prependListener(event: "error", listener: (error: Error) => void): this; + prependListener(event: "finish", listener: () => void): this; + prependListener(event: "pipe", listener: (src: stream.Readable) => void): this; + prependListener(event: "unpipe", listener: (src: stream.Readable) => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + + prependOnceListener(event: "close", listener: () => void): this; + prependOnceListener(event: "drain", listener: () => void): this; + prependOnceListener(event: "error", listener: (error: Error) => void): this; + prependOnceListener(event: "finish", listener: () => void): this; + prependOnceListener(event: "pipe", listener: (src: stream.Readable) => void): this; + prependOnceListener(event: "unpipe", listener: (src: stream.Readable) => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + } + + // Public API + + export namespace constants { + const NGHTTP2_SESSION_SERVER: number; + const NGHTTP2_SESSION_CLIENT: number; + const NGHTTP2_STREAM_STATE_IDLE: number; + const NGHTTP2_STREAM_STATE_OPEN: number; + const NGHTTP2_STREAM_STATE_RESERVED_LOCAL: number; + const NGHTTP2_STREAM_STATE_RESERVED_REMOTE: number; + const NGHTTP2_STREAM_STATE_HALF_CLOSED_LOCAL: number; + const NGHTTP2_STREAM_STATE_HALF_CLOSED_REMOTE: number; + const NGHTTP2_STREAM_STATE_CLOSED: number; + const NGHTTP2_NO_ERROR: number; + const NGHTTP2_PROTOCOL_ERROR: number; + const NGHTTP2_INTERNAL_ERROR: number; + const NGHTTP2_FLOW_CONTROL_ERROR: number; + const NGHTTP2_SETTINGS_TIMEOUT: number; + const NGHTTP2_STREAM_CLOSED: number; + const NGHTTP2_FRAME_SIZE_ERROR: number; + const NGHTTP2_REFUSED_STREAM: number; + const NGHTTP2_CANCEL: number; + const NGHTTP2_COMPRESSION_ERROR: number; + const NGHTTP2_CONNECT_ERROR: number; + const NGHTTP2_ENHANCE_YOUR_CALM: number; + const NGHTTP2_INADEQUATE_SECURITY: number; + const NGHTTP2_HTTP_1_1_REQUIRED: number; + const NGHTTP2_ERR_FRAME_SIZE_ERROR: number; + const NGHTTP2_FLAG_NONE: number; + const NGHTTP2_FLAG_END_STREAM: number; + const NGHTTP2_FLAG_END_HEADERS: number; + const NGHTTP2_FLAG_ACK: number; + const NGHTTP2_FLAG_PADDED: number; + const NGHTTP2_FLAG_PRIORITY: number; + const DEFAULT_SETTINGS_HEADER_TABLE_SIZE: number; + const DEFAULT_SETTINGS_ENABLE_PUSH: number; + const DEFAULT_SETTINGS_INITIAL_WINDOW_SIZE: number; + const DEFAULT_SETTINGS_MAX_FRAME_SIZE: number; + const MAX_MAX_FRAME_SIZE: number; + const MIN_MAX_FRAME_SIZE: number; + const MAX_INITIAL_WINDOW_SIZE: number; + const NGHTTP2_DEFAULT_WEIGHT: number; + const NGHTTP2_SETTINGS_HEADER_TABLE_SIZE: number; + const NGHTTP2_SETTINGS_ENABLE_PUSH: number; + const NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS: number; + const NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE: number; + const NGHTTP2_SETTINGS_MAX_FRAME_SIZE: number; + const NGHTTP2_SETTINGS_MAX_HEADER_LIST_SIZE: number; + const PADDING_STRATEGY_NONE: number; + const PADDING_STRATEGY_MAX: number; + const PADDING_STRATEGY_CALLBACK: number; + const HTTP2_HEADER_STATUS: string; + const HTTP2_HEADER_METHOD: string; + const HTTP2_HEADER_AUTHORITY: string; + const HTTP2_HEADER_SCHEME: string; + const HTTP2_HEADER_PATH: string; + const HTTP2_HEADER_ACCEPT_CHARSET: string; + const HTTP2_HEADER_ACCEPT_ENCODING: string; + const HTTP2_HEADER_ACCEPT_LANGUAGE: string; + const HTTP2_HEADER_ACCEPT_RANGES: string; + const HTTP2_HEADER_ACCEPT: string; + const HTTP2_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN: string; + const HTTP2_HEADER_AGE: string; + const HTTP2_HEADER_ALLOW: string; + const HTTP2_HEADER_AUTHORIZATION: string; + const HTTP2_HEADER_CACHE_CONTROL: string; + const HTTP2_HEADER_CONNECTION: string; + const HTTP2_HEADER_CONTENT_DISPOSITION: string; + const HTTP2_HEADER_CONTENT_ENCODING: string; + const HTTP2_HEADER_CONTENT_LANGUAGE: string; + const HTTP2_HEADER_CONTENT_LENGTH: string; + const HTTP2_HEADER_CONTENT_LOCATION: string; + const HTTP2_HEADER_CONTENT_MD5: string; + const HTTP2_HEADER_CONTENT_RANGE: string; + const HTTP2_HEADER_CONTENT_TYPE: string; + const HTTP2_HEADER_COOKIE: string; + const HTTP2_HEADER_DATE: string; + const HTTP2_HEADER_ETAG: string; + const HTTP2_HEADER_EXPECT: string; + const HTTP2_HEADER_EXPIRES: string; + const HTTP2_HEADER_FROM: string; + const HTTP2_HEADER_HOST: string; + const HTTP2_HEADER_IF_MATCH: string; + const HTTP2_HEADER_IF_MODIFIED_SINCE: string; + const HTTP2_HEADER_IF_NONE_MATCH: string; + const HTTP2_HEADER_IF_RANGE: string; + const HTTP2_HEADER_IF_UNMODIFIED_SINCE: string; + const HTTP2_HEADER_LAST_MODIFIED: string; + const HTTP2_HEADER_LINK: string; + const HTTP2_HEADER_LOCATION: string; + const HTTP2_HEADER_MAX_FORWARDS: string; + const HTTP2_HEADER_PREFER: string; + const HTTP2_HEADER_PROXY_AUTHENTICATE: string; + const HTTP2_HEADER_PROXY_AUTHORIZATION: string; + const HTTP2_HEADER_RANGE: string; + const HTTP2_HEADER_REFERER: string; + const HTTP2_HEADER_REFRESH: string; + const HTTP2_HEADER_RETRY_AFTER: string; + const HTTP2_HEADER_SERVER: string; + const HTTP2_HEADER_SET_COOKIE: string; + const HTTP2_HEADER_STRICT_TRANSPORT_SECURITY: string; + const HTTP2_HEADER_TRANSFER_ENCODING: string; + const HTTP2_HEADER_TE: string; + const HTTP2_HEADER_UPGRADE: string; + const HTTP2_HEADER_USER_AGENT: string; + const HTTP2_HEADER_VARY: string; + const HTTP2_HEADER_VIA: string; + const HTTP2_HEADER_WWW_AUTHENTICATE: string; + const HTTP2_HEADER_HTTP2_SETTINGS: string; + const HTTP2_HEADER_KEEP_ALIVE: string; + const HTTP2_HEADER_PROXY_CONNECTION: string; + const HTTP2_METHOD_ACL: string; + const HTTP2_METHOD_BASELINE_CONTROL: string; + const HTTP2_METHOD_BIND: string; + const HTTP2_METHOD_CHECKIN: string; + const HTTP2_METHOD_CHECKOUT: string; + const HTTP2_METHOD_CONNECT: string; + const HTTP2_METHOD_COPY: string; + const HTTP2_METHOD_DELETE: string; + const HTTP2_METHOD_GET: string; + const HTTP2_METHOD_HEAD: string; + const HTTP2_METHOD_LABEL: string; + const HTTP2_METHOD_LINK: string; + const HTTP2_METHOD_LOCK: string; + const HTTP2_METHOD_MERGE: string; + const HTTP2_METHOD_MKACTIVITY: string; + const HTTP2_METHOD_MKCALENDAR: string; + const HTTP2_METHOD_MKCOL: string; + const HTTP2_METHOD_MKREDIRECTREF: string; + const HTTP2_METHOD_MKWORKSPACE: string; + const HTTP2_METHOD_MOVE: string; + const HTTP2_METHOD_OPTIONS: string; + const HTTP2_METHOD_ORDERPATCH: string; + const HTTP2_METHOD_PATCH: string; + const HTTP2_METHOD_POST: string; + const HTTP2_METHOD_PRI: string; + const HTTP2_METHOD_PROPFIND: string; + const HTTP2_METHOD_PROPPATCH: string; + const HTTP2_METHOD_PUT: string; + const HTTP2_METHOD_REBIND: string; + const HTTP2_METHOD_REPORT: string; + const HTTP2_METHOD_SEARCH: string; + const HTTP2_METHOD_TRACE: string; + const HTTP2_METHOD_UNBIND: string; + const HTTP2_METHOD_UNCHECKOUT: string; + const HTTP2_METHOD_UNLINK: string; + const HTTP2_METHOD_UNLOCK: string; + const HTTP2_METHOD_UPDATE: string; + const HTTP2_METHOD_UPDATEREDIRECTREF: string; + const HTTP2_METHOD_VERSION_CONTROL: string; + const HTTP_STATUS_CONTINUE: number; + const HTTP_STATUS_SWITCHING_PROTOCOLS: number; + const HTTP_STATUS_PROCESSING: number; + const HTTP_STATUS_OK: number; + const HTTP_STATUS_CREATED: number; + const HTTP_STATUS_ACCEPTED: number; + const HTTP_STATUS_NON_AUTHORITATIVE_INFORMATION: number; + const HTTP_STATUS_NO_CONTENT: number; + const HTTP_STATUS_RESET_CONTENT: number; + const HTTP_STATUS_PARTIAL_CONTENT: number; + const HTTP_STATUS_MULTI_STATUS: number; + const HTTP_STATUS_ALREADY_REPORTED: number; + const HTTP_STATUS_IM_USED: number; + const HTTP_STATUS_MULTIPLE_CHOICES: number; + const HTTP_STATUS_MOVED_PERMANENTLY: number; + const HTTP_STATUS_FOUND: number; + const HTTP_STATUS_SEE_OTHER: number; + const HTTP_STATUS_NOT_MODIFIED: number; + const HTTP_STATUS_USE_PROXY: number; + const HTTP_STATUS_TEMPORARY_REDIRECT: number; + const HTTP_STATUS_PERMANENT_REDIRECT: number; + const HTTP_STATUS_BAD_REQUEST: number; + const HTTP_STATUS_UNAUTHORIZED: number; + const HTTP_STATUS_PAYMENT_REQUIRED: number; + const HTTP_STATUS_FORBIDDEN: number; + const HTTP_STATUS_NOT_FOUND: number; + const HTTP_STATUS_METHOD_NOT_ALLOWED: number; + const HTTP_STATUS_NOT_ACCEPTABLE: number; + const HTTP_STATUS_PROXY_AUTHENTICATION_REQUIRED: number; + const HTTP_STATUS_REQUEST_TIMEOUT: number; + const HTTP_STATUS_CONFLICT: number; + const HTTP_STATUS_GONE: number; + const HTTP_STATUS_LENGTH_REQUIRED: number; + const HTTP_STATUS_PRECONDITION_FAILED: number; + const HTTP_STATUS_PAYLOAD_TOO_LARGE: number; + const HTTP_STATUS_URI_TOO_LONG: number; + const HTTP_STATUS_UNSUPPORTED_MEDIA_TYPE: number; + const HTTP_STATUS_RANGE_NOT_SATISFIABLE: number; + const HTTP_STATUS_EXPECTATION_FAILED: number; + const HTTP_STATUS_TEAPOT: number; + const HTTP_STATUS_MISDIRECTED_REQUEST: number; + const HTTP_STATUS_UNPROCESSABLE_ENTITY: number; + const HTTP_STATUS_LOCKED: number; + const HTTP_STATUS_FAILED_DEPENDENCY: number; + const HTTP_STATUS_UNORDERED_COLLECTION: number; + const HTTP_STATUS_UPGRADE_REQUIRED: number; + const HTTP_STATUS_PRECONDITION_REQUIRED: number; + const HTTP_STATUS_TOO_MANY_REQUESTS: number; + const HTTP_STATUS_REQUEST_HEADER_FIELDS_TOO_LARGE: number; + const HTTP_STATUS_UNAVAILABLE_FOR_LEGAL_REASONS: number; + const HTTP_STATUS_INTERNAL_SERVER_ERROR: number; + const HTTP_STATUS_NOT_IMPLEMENTED: number; + const HTTP_STATUS_BAD_GATEWAY: number; + const HTTP_STATUS_SERVICE_UNAVAILABLE: number; + const HTTP_STATUS_GATEWAY_TIMEOUT: number; + const HTTP_STATUS_HTTP_VERSION_NOT_SUPPORTED: number; + const HTTP_STATUS_VARIANT_ALSO_NEGOTIATES: number; + const HTTP_STATUS_INSUFFICIENT_STORAGE: number; + const HTTP_STATUS_LOOP_DETECTED: number; + const HTTP_STATUS_BANDWIDTH_LIMIT_EXCEEDED: number; + const HTTP_STATUS_NOT_EXTENDED: number; + const HTTP_STATUS_NETWORK_AUTHENTICATION_REQUIRED: number; + } + + export function getDefaultSettings(): Settings; + export function getPackedSettings(settings: Settings): Buffer; + export function getUnpackedSettings(buf: Uint8Array): Settings; + + export function createServer(onRequestHandler?: (request: Http2ServerRequest, response: Http2ServerResponse) => void): Http2Server; + export function createServer(options: ServerOptions, onRequestHandler?: (request: Http2ServerRequest, response: Http2ServerResponse) => void): Http2Server; + + export function createSecureServer(onRequestHandler?: (request: Http2ServerRequest, response: Http2ServerResponse) => void): Http2SecureServer; + export function createSecureServer(options: SecureServerOptions, onRequestHandler?: (request: Http2ServerRequest, response: Http2ServerResponse) => void): Http2SecureServer; + + export function connect(authority: string | url.URL, listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void): ClientHttp2Session; + export function connect( + authority: string | url.URL, + options?: ClientSessionOptions | SecureClientSessionOptions, + listener?: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void + ): ClientHttp2Session; +} diff --git a/backend/node_modules/@types/node/https.d.ts b/backend/node_modules/@types/node/https.d.ts new file mode 100755 index 0000000..48b3ad9 --- /dev/null +++ b/backend/node_modules/@types/node/https.d.ts @@ -0,0 +1,156 @@ +declare module 'https' { + import { Duplex } from 'stream'; + import * as tls from 'tls'; + import * as http from 'http'; + import { URL } from 'url'; + + type ServerOptions = tls.SecureContextOptions & tls.TlsOptions & http.ServerOptions; + + type RequestOptions = http.RequestOptions & tls.SecureContextOptions & { + rejectUnauthorized?: boolean | undefined; // Defaults to true + servername?: string | undefined; // SNI TLS Extension + }; + + interface AgentOptions extends http.AgentOptions, tls.ConnectionOptions { + rejectUnauthorized?: boolean | undefined; + maxCachedSessions?: number | undefined; + } + + class Agent extends http.Agent { + constructor(options?: AgentOptions); + options: AgentOptions; + } + + interface Server extends http.Server {} + class Server extends tls.Server { + constructor(requestListener?: http.RequestListener); + constructor(options: ServerOptions, requestListener?: http.RequestListener); + + setTimeout(callback: () => void): this; + setTimeout(msecs?: number, callback?: () => void): this; + /** + * Limits maximum incoming headers count. If set to 0, no limit will be applied. + * @default 2000 + * {@link https://nodejs.org/api/http.html#http_server_maxheaderscount} + */ + maxHeadersCount: number | null; + timeout: number; + /** + * Limit the amount of time the parser will wait to receive the complete HTTP headers. + * @default 40000 + * {@link https://nodejs.org/api/http.html#http_server_headerstimeout} + */ + headersTimeout: number; + keepAliveTimeout: number; + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this; + addListener(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this; + addListener(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this; + addListener(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this; + addListener(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this; + addListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; + addListener(event: 'close', listener: () => void): this; + addListener(event: 'connection', listener: (socket: Duplex) => void): this; + addListener(event: 'error', listener: (err: Error) => void): this; + addListener(event: 'listening', listener: () => void): this; + addListener(event: 'checkContinue', listener: http.RequestListener): this; + addListener(event: 'checkExpectation', listener: http.RequestListener): this; + addListener(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this; + addListener(event: 'connect', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this; + addListener(event: 'request', listener: http.RequestListener): this; + addListener(event: 'upgrade', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this; + emit(event: string, ...args: any[]): boolean; + emit(event: 'keylog', line: Buffer, tlsSocket: tls.TLSSocket): boolean; + emit(event: 'newSession', sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void): boolean; + emit(event: 'OCSPRequest', certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void): boolean; + emit(event: 'resumeSession', sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void): boolean; + emit(event: 'secureConnection', tlsSocket: tls.TLSSocket): boolean; + emit(event: 'tlsClientError', err: Error, tlsSocket: tls.TLSSocket): boolean; + emit(event: 'close'): boolean; + emit(event: 'connection', socket: Duplex): boolean; + emit(event: 'error', err: Error): boolean; + emit(event: 'listening'): boolean; + emit(event: 'checkContinue', req: http.IncomingMessage, res: http.ServerResponse): boolean; + emit(event: 'checkExpectation', req: http.IncomingMessage, res: http.ServerResponse): boolean; + emit(event: 'clientError', err: Error, socket: Duplex): boolean; + emit(event: 'connect', req: http.IncomingMessage, socket: Duplex, head: Buffer): boolean; + emit(event: 'request', req: http.IncomingMessage, res: http.ServerResponse): boolean; + emit(event: 'upgrade', req: http.IncomingMessage, socket: Duplex, head: Buffer): boolean; + on(event: string, listener: (...args: any[]) => void): this; + on(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this; + on(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this; + on(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this; + on(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this; + on(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this; + on(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; + on(event: 'close', listener: () => void): this; + on(event: 'connection', listener: (socket: Duplex) => void): this; + on(event: 'error', listener: (err: Error) => void): this; + on(event: 'listening', listener: () => void): this; + on(event: 'checkContinue', listener: http.RequestListener): this; + on(event: 'checkExpectation', listener: http.RequestListener): this; + on(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this; + on(event: 'connect', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this; + on(event: 'request', listener: http.RequestListener): this; + on(event: 'upgrade', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this; + once(event: string, listener: (...args: any[]) => void): this; + once(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this; + once(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this; + once(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this; + once(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this; + once(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this; + once(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; + once(event: 'close', listener: () => void): this; + once(event: 'connection', listener: (socket: Duplex) => void): this; + once(event: 'error', listener: (err: Error) => void): this; + once(event: 'listening', listener: () => void): this; + once(event: 'checkContinue', listener: http.RequestListener): this; + once(event: 'checkExpectation', listener: http.RequestListener): this; + once(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this; + once(event: 'connect', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this; + once(event: 'request', listener: http.RequestListener): this; + once(event: 'upgrade', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this; + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this; + prependListener(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this; + prependListener(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this; + prependListener(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this; + prependListener(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this; + prependListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; + prependListener(event: 'close', listener: () => void): this; + prependListener(event: 'connection', listener: (socket: Duplex) => void): this; + prependListener(event: 'error', listener: (err: Error) => void): this; + prependListener(event: 'listening', listener: () => void): this; + prependListener(event: 'checkContinue', listener: http.RequestListener): this; + prependListener(event: 'checkExpectation', listener: http.RequestListener): this; + prependListener(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this; + prependListener(event: 'connect', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this; + prependListener(event: 'request', listener: http.RequestListener): this; + prependListener(event: 'upgrade', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this; + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this; + prependOnceListener(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this; + prependOnceListener(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this; + prependOnceListener(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this; + prependOnceListener(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this; + prependOnceListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; + prependOnceListener(event: 'close', listener: () => void): this; + prependOnceListener(event: 'connection', listener: (socket: Duplex) => void): this; + prependOnceListener(event: 'error', listener: (err: Error) => void): this; + prependOnceListener(event: 'listening', listener: () => void): this; + prependOnceListener(event: 'checkContinue', listener: http.RequestListener): this; + prependOnceListener(event: 'checkExpectation', listener: http.RequestListener): this; + prependOnceListener(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this; + prependOnceListener(event: 'connect', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this; + prependOnceListener(event: 'request', listener: http.RequestListener): this; + prependOnceListener(event: 'upgrade', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this; + } + + function createServer(requestListener?: http.RequestListener): Server; + function createServer(options: ServerOptions, requestListener?: http.RequestListener): Server; + function request(options: RequestOptions | string | URL, callback?: (res: http.IncomingMessage) => void): http.ClientRequest; + function request(url: string | URL, options: RequestOptions, callback?: (res: http.IncomingMessage) => void): http.ClientRequest; + function get(options: RequestOptions | string | URL, callback?: (res: http.IncomingMessage) => void): http.ClientRequest; + function get(url: string | URL, options: RequestOptions, callback?: (res: http.IncomingMessage) => void): http.ClientRequest; + let globalAgent: Agent; +} diff --git a/backend/node_modules/@types/node/index.d.ts b/backend/node_modules/@types/node/index.d.ts new file mode 100755 index 0000000..b4a6fcc --- /dev/null +++ b/backend/node_modules/@types/node/index.d.ts @@ -0,0 +1,91 @@ +// Type definitions for non-npm package Node.js 12.20 +// Project: https://nodejs.org/ +// Definitions by: Microsoft TypeScript +// DefinitelyTyped +// Alberto Schiabel +// Alvis HT Tang +// Andrew Makarov +// Benjamin Toueg +// Chigozirim C. +// David Junger +// Deividas Bakanas +// Eugene Y. Q. Shen +// Hannes Magnusson +// Hoàng Văn Khải +// Huw +// Kelvin Jin +// Klaus Meinhardt +// Lishude +// Mariusz Wiktorczyk +// Mohsen Azimi +// Nicolas Even +// Nikita Galkin +// Parambir Singh +// Sebastian Silbermann +// Simon Schick +// Thomas den Hollander +// Wilco Bakker +// wwwy3y3 +// Zane Hannan AU +// Samuel Ainsworth +// Kyle Uehlein +// Thanik Bhongbhibhat +// Marcin Kopacz +// Trivikram Kamat +// Junxiao Shi +// Ilia Baryshnikov +// ExE Boss +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +// NOTE: These definitions support NodeJS and TypeScript 3.7. +// This isn't strictly needed since 3.7 has the assert module, but this way we're consistent. +// Typically type modifications should be made in base.d.ts instead of here + +// Reference required types from the default lib: +/// +/// +/// +/// + +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// diff --git a/backend/node_modules/@types/node/inspector.d.ts b/backend/node_modules/@types/node/inspector.d.ts new file mode 100755 index 0000000..1db94b6 --- /dev/null +++ b/backend/node_modules/@types/node/inspector.d.ts @@ -0,0 +1,3040 @@ +// tslint:disable-next-line:dt-header +// Type definitions for inspector + +// These definitions are auto-generated. +// Please see https://github.com/DefinitelyTyped/DefinitelyTyped/pull/19330 +// for more information. + +// tslint:disable:max-line-length + +/** + * The inspector module provides an API for interacting with the V8 inspector. + */ +declare module 'inspector' { + import EventEmitter = require('events'); + + interface InspectorNotification { + method: string; + params: T; + } + + namespace Schema { + /** + * Description of the protocol domain. + */ + interface Domain { + /** + * Domain name. + */ + name: string; + /** + * Domain version. + */ + version: string; + } + + interface GetDomainsReturnType { + /** + * List of supported domains. + */ + domains: Domain[]; + } + } + + namespace Runtime { + /** + * Unique script identifier. + */ + type ScriptId = string; + + /** + * Unique object identifier. + */ + type RemoteObjectId = string; + + /** + * Primitive value which cannot be JSON-stringified. + */ + type UnserializableValue = string; + + /** + * Mirror object referencing original JavaScript object. + */ + interface RemoteObject { + /** + * Object type. + */ + type: string; + /** + * Object subtype hint. Specified for object type values only. + */ + subtype?: string | undefined; + /** + * Object class (constructor) name. Specified for object type values only. + */ + className?: string | undefined; + /** + * Remote object value in case of primitive values or JSON values (if it was requested). + */ + value?: any; + /** + * Primitive value which can not be JSON-stringified does not have value, but gets this property. + */ + unserializableValue?: UnserializableValue | undefined; + /** + * String representation of the object. + */ + description?: string | undefined; + /** + * Unique object identifier (for non-primitive values). + */ + objectId?: RemoteObjectId | undefined; + /** + * Preview containing abbreviated property values. Specified for object type values only. + * @experimental + */ + preview?: ObjectPreview | undefined; + /** + * @experimental + */ + customPreview?: CustomPreview | undefined; + } + + /** + * @experimental + */ + interface CustomPreview { + header: string; + hasBody: boolean; + formatterObjectId: RemoteObjectId; + bindRemoteObjectFunctionId: RemoteObjectId; + configObjectId?: RemoteObjectId | undefined; + } + + /** + * Object containing abbreviated remote object value. + * @experimental + */ + interface ObjectPreview { + /** + * Object type. + */ + type: string; + /** + * Object subtype hint. Specified for object type values only. + */ + subtype?: string | undefined; + /** + * String representation of the object. + */ + description?: string | undefined; + /** + * True iff some of the properties or entries of the original object did not fit. + */ + overflow: boolean; + /** + * List of the properties. + */ + properties: PropertyPreview[]; + /** + * List of the entries. Specified for map and set subtype values only. + */ + entries?: EntryPreview[] | undefined; + } + + /** + * @experimental + */ + interface PropertyPreview { + /** + * Property name. + */ + name: string; + /** + * Object type. Accessor means that the property itself is an accessor property. + */ + type: string; + /** + * User-friendly property value string. + */ + value?: string | undefined; + /** + * Nested value preview. + */ + valuePreview?: ObjectPreview | undefined; + /** + * Object subtype hint. Specified for object type values only. + */ + subtype?: string | undefined; + } + + /** + * @experimental + */ + interface EntryPreview { + /** + * Preview of the key. Specified for map-like collection entries. + */ + key?: ObjectPreview | undefined; + /** + * Preview of the value. + */ + value: ObjectPreview; + } + + /** + * Object property descriptor. + */ + interface PropertyDescriptor { + /** + * Property name or symbol description. + */ + name: string; + /** + * The value associated with the property. + */ + value?: RemoteObject | undefined; + /** + * True if the value associated with the property may be changed (data descriptors only). + */ + writable?: boolean | undefined; + /** + * A function which serves as a getter for the property, or undefined if there is no getter (accessor descriptors only). + */ + get?: RemoteObject | undefined; + /** + * A function which serves as a setter for the property, or undefined if there is no setter (accessor descriptors only). + */ + set?: RemoteObject | undefined; + /** + * True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object. + */ + configurable: boolean; + /** + * True if this property shows up during enumeration of the properties on the corresponding object. + */ + enumerable: boolean; + /** + * True if the result was thrown during the evaluation. + */ + wasThrown?: boolean | undefined; + /** + * True if the property is owned for the object. + */ + isOwn?: boolean | undefined; + /** + * Property symbol object, if the property is of the symbol type. + */ + symbol?: RemoteObject | undefined; + } + + /** + * Object internal property descriptor. This property isn't normally visible in JavaScript code. + */ + interface InternalPropertyDescriptor { + /** + * Conventional property name. + */ + name: string; + /** + * The value associated with the property. + */ + value?: RemoteObject | undefined; + } + + /** + * Represents function call argument. Either remote object id objectId, primitive value, unserializable primitive value or neither of (for undefined) them should be specified. + */ + interface CallArgument { + /** + * Primitive value or serializable javascript object. + */ + value?: any; + /** + * Primitive value which can not be JSON-stringified. + */ + unserializableValue?: UnserializableValue | undefined; + /** + * Remote object handle. + */ + objectId?: RemoteObjectId | undefined; + } + + /** + * Id of an execution context. + */ + type ExecutionContextId = number; + + /** + * Description of an isolated world. + */ + interface ExecutionContextDescription { + /** + * Unique id of the execution context. It can be used to specify in which execution context script evaluation should be performed. + */ + id: ExecutionContextId; + /** + * Execution context origin. + */ + origin: string; + /** + * Human readable name describing given context. + */ + name: string; + /** + * Embedder-specific auxiliary data. + */ + auxData?: {} | undefined; + } + + /** + * Detailed information about exception (or error) that was thrown during script compilation or execution. + */ + interface ExceptionDetails { + /** + * Exception id. + */ + exceptionId: number; + /** + * Exception text, which should be used together with exception object when available. + */ + text: string; + /** + * Line number of the exception location (0-based). + */ + lineNumber: number; + /** + * Column number of the exception location (0-based). + */ + columnNumber: number; + /** + * Script ID of the exception location. + */ + scriptId?: ScriptId | undefined; + /** + * URL of the exception location, to be used when the script was not reported. + */ + url?: string | undefined; + /** + * JavaScript stack trace if available. + */ + stackTrace?: StackTrace | undefined; + /** + * Exception object if available. + */ + exception?: RemoteObject | undefined; + /** + * Identifier of the context where exception happened. + */ + executionContextId?: ExecutionContextId | undefined; + } + + /** + * Number of milliseconds since epoch. + */ + type Timestamp = number; + + /** + * Stack entry for runtime errors and assertions. + */ + interface CallFrame { + /** + * JavaScript function name. + */ + functionName: string; + /** + * JavaScript script id. + */ + scriptId: ScriptId; + /** + * JavaScript script name or url. + */ + url: string; + /** + * JavaScript script line number (0-based). + */ + lineNumber: number; + /** + * JavaScript script column number (0-based). + */ + columnNumber: number; + } + + /** + * Call frames for assertions or error messages. + */ + interface StackTrace { + /** + * String label of this stack trace. For async traces this may be a name of the function that initiated the async call. + */ + description?: string | undefined; + /** + * JavaScript function name. + */ + callFrames: CallFrame[]; + /** + * Asynchronous JavaScript stack trace that preceded this stack, if available. + */ + parent?: StackTrace | undefined; + /** + * Asynchronous JavaScript stack trace that preceded this stack, if available. + * @experimental + */ + parentId?: StackTraceId | undefined; + } + + /** + * Unique identifier of current debugger. + * @experimental + */ + type UniqueDebuggerId = string; + + /** + * If debuggerId is set stack trace comes from another debugger and can be resolved there. This allows to track cross-debugger calls. See Runtime.StackTrace and Debugger.paused for usages. + * @experimental + */ + interface StackTraceId { + id: string; + debuggerId?: UniqueDebuggerId | undefined; + } + + interface EvaluateParameterType { + /** + * Expression to evaluate. + */ + expression: string; + /** + * Symbolic group name that can be used to release multiple objects. + */ + objectGroup?: string | undefined; + /** + * Determines whether Command Line API should be available during the evaluation. + */ + includeCommandLineAPI?: boolean | undefined; + /** + * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state. + */ + silent?: boolean | undefined; + /** + * Specifies in which execution context to perform evaluation. If the parameter is omitted the evaluation will be performed in the context of the inspected page. + */ + contextId?: ExecutionContextId | undefined; + /** + * Whether the result is expected to be a JSON object that should be sent by value. + */ + returnByValue?: boolean | undefined; + /** + * Whether preview should be generated for the result. + * @experimental + */ + generatePreview?: boolean | undefined; + /** + * Whether execution should be treated as initiated by user in the UI. + */ + userGesture?: boolean | undefined; + /** + * Whether execution should await for resulting value and return once awaited promise is resolved. + */ + awaitPromise?: boolean | undefined; + } + + interface AwaitPromiseParameterType { + /** + * Identifier of the promise. + */ + promiseObjectId: RemoteObjectId; + /** + * Whether the result is expected to be a JSON object that should be sent by value. + */ + returnByValue?: boolean | undefined; + /** + * Whether preview should be generated for the result. + */ + generatePreview?: boolean | undefined; + } + + interface CallFunctionOnParameterType { + /** + * Declaration of the function to call. + */ + functionDeclaration: string; + /** + * Identifier of the object to call function on. Either objectId or executionContextId should be specified. + */ + objectId?: RemoteObjectId | undefined; + /** + * Call arguments. All call arguments must belong to the same JavaScript world as the target object. + */ + arguments?: CallArgument[] | undefined; + /** + * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state. + */ + silent?: boolean | undefined; + /** + * Whether the result is expected to be a JSON object which should be sent by value. + */ + returnByValue?: boolean | undefined; + /** + * Whether preview should be generated for the result. + * @experimental + */ + generatePreview?: boolean | undefined; + /** + * Whether execution should be treated as initiated by user in the UI. + */ + userGesture?: boolean | undefined; + /** + * Whether execution should await for resulting value and return once awaited promise is resolved. + */ + awaitPromise?: boolean | undefined; + /** + * Specifies execution context which global object will be used to call function on. Either executionContextId or objectId should be specified. + */ + executionContextId?: ExecutionContextId | undefined; + /** + * Symbolic group name that can be used to release multiple objects. If objectGroup is not specified and objectId is, objectGroup will be inherited from object. + */ + objectGroup?: string | undefined; + } + + interface GetPropertiesParameterType { + /** + * Identifier of the object to return properties for. + */ + objectId: RemoteObjectId; + /** + * If true, returns properties belonging only to the element itself, not to its prototype chain. + */ + ownProperties?: boolean | undefined; + /** + * If true, returns accessor properties (with getter/setter) only; internal properties are not returned either. + * @experimental + */ + accessorPropertiesOnly?: boolean | undefined; + /** + * Whether preview should be generated for the results. + * @experimental + */ + generatePreview?: boolean | undefined; + } + + interface ReleaseObjectParameterType { + /** + * Identifier of the object to release. + */ + objectId: RemoteObjectId; + } + + interface ReleaseObjectGroupParameterType { + /** + * Symbolic object group name. + */ + objectGroup: string; + } + + interface SetCustomObjectFormatterEnabledParameterType { + enabled: boolean; + } + + interface CompileScriptParameterType { + /** + * Expression to compile. + */ + expression: string; + /** + * Source url to be set for the script. + */ + sourceURL: string; + /** + * Specifies whether the compiled script should be persisted. + */ + persistScript: boolean; + /** + * Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page. + */ + executionContextId?: ExecutionContextId | undefined; + } + + interface RunScriptParameterType { + /** + * Id of the script to run. + */ + scriptId: ScriptId; + /** + * Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page. + */ + executionContextId?: ExecutionContextId | undefined; + /** + * Symbolic group name that can be used to release multiple objects. + */ + objectGroup?: string | undefined; + /** + * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state. + */ + silent?: boolean | undefined; + /** + * Determines whether Command Line API should be available during the evaluation. + */ + includeCommandLineAPI?: boolean | undefined; + /** + * Whether the result is expected to be a JSON object which should be sent by value. + */ + returnByValue?: boolean | undefined; + /** + * Whether preview should be generated for the result. + */ + generatePreview?: boolean | undefined; + /** + * Whether execution should await for resulting value and return once awaited promise is resolved. + */ + awaitPromise?: boolean | undefined; + } + + interface QueryObjectsParameterType { + /** + * Identifier of the prototype to return objects for. + */ + prototypeObjectId: RemoteObjectId; + } + + interface GlobalLexicalScopeNamesParameterType { + /** + * Specifies in which execution context to lookup global scope variables. + */ + executionContextId?: ExecutionContextId | undefined; + } + + interface EvaluateReturnType { + /** + * Evaluation result. + */ + result: RemoteObject; + /** + * Exception details. + */ + exceptionDetails?: ExceptionDetails | undefined; + } + + interface AwaitPromiseReturnType { + /** + * Promise result. Will contain rejected value if promise was rejected. + */ + result: RemoteObject; + /** + * Exception details if stack strace is available. + */ + exceptionDetails?: ExceptionDetails | undefined; + } + + interface CallFunctionOnReturnType { + /** + * Call result. + */ + result: RemoteObject; + /** + * Exception details. + */ + exceptionDetails?: ExceptionDetails | undefined; + } + + interface GetPropertiesReturnType { + /** + * Object properties. + */ + result: PropertyDescriptor[]; + /** + * Internal object properties (only of the element itself). + */ + internalProperties?: InternalPropertyDescriptor[] | undefined; + /** + * Exception details. + */ + exceptionDetails?: ExceptionDetails | undefined; + } + + interface CompileScriptReturnType { + /** + * Id of the script. + */ + scriptId?: ScriptId | undefined; + /** + * Exception details. + */ + exceptionDetails?: ExceptionDetails | undefined; + } + + interface RunScriptReturnType { + /** + * Run result. + */ + result: RemoteObject; + /** + * Exception details. + */ + exceptionDetails?: ExceptionDetails | undefined; + } + + interface QueryObjectsReturnType { + /** + * Array with objects. + */ + objects: RemoteObject; + } + + interface GlobalLexicalScopeNamesReturnType { + names: string[]; + } + + interface ExecutionContextCreatedEventDataType { + /** + * A newly created execution context. + */ + context: ExecutionContextDescription; + } + + interface ExecutionContextDestroyedEventDataType { + /** + * Id of the destroyed context + */ + executionContextId: ExecutionContextId; + } + + interface ExceptionThrownEventDataType { + /** + * Timestamp of the exception. + */ + timestamp: Timestamp; + exceptionDetails: ExceptionDetails; + } + + interface ExceptionRevokedEventDataType { + /** + * Reason describing why exception was revoked. + */ + reason: string; + /** + * The id of revoked exception, as reported in exceptionThrown. + */ + exceptionId: number; + } + + interface ConsoleAPICalledEventDataType { + /** + * Type of the call. + */ + type: string; + /** + * Call arguments. + */ + args: RemoteObject[]; + /** + * Identifier of the context where the call was made. + */ + executionContextId: ExecutionContextId; + /** + * Call timestamp. + */ + timestamp: Timestamp; + /** + * Stack trace captured when the call was made. + */ + stackTrace?: StackTrace | undefined; + /** + * Console context descriptor for calls on non-default console context (not console.*): 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call on named context. + * @experimental + */ + context?: string | undefined; + } + + interface InspectRequestedEventDataType { + object: RemoteObject; + hints: {}; + } + } + + namespace Debugger { + /** + * Breakpoint identifier. + */ + type BreakpointId = string; + + /** + * Call frame identifier. + */ + type CallFrameId = string; + + /** + * Location in the source code. + */ + interface Location { + /** + * Script identifier as reported in the Debugger.scriptParsed. + */ + scriptId: Runtime.ScriptId; + /** + * Line number in the script (0-based). + */ + lineNumber: number; + /** + * Column number in the script (0-based). + */ + columnNumber?: number | undefined; + } + + /** + * Location in the source code. + * @experimental + */ + interface ScriptPosition { + lineNumber: number; + columnNumber: number; + } + + /** + * JavaScript call frame. Array of call frames form the call stack. + */ + interface CallFrame { + /** + * Call frame identifier. This identifier is only valid while the virtual machine is paused. + */ + callFrameId: CallFrameId; + /** + * Name of the JavaScript function called on this call frame. + */ + functionName: string; + /** + * Location in the source code. + */ + functionLocation?: Location | undefined; + /** + * Location in the source code. + */ + location: Location; + /** + * JavaScript script name or url. + */ + url: string; + /** + * Scope chain for this call frame. + */ + scopeChain: Scope[]; + /** + * this object for this call frame. + */ + this: Runtime.RemoteObject; + /** + * The value being returned, if the function is at return point. + */ + returnValue?: Runtime.RemoteObject | undefined; + } + + /** + * Scope description. + */ + interface Scope { + /** + * Scope type. + */ + type: string; + /** + * Object representing the scope. For global and with scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties. + */ + object: Runtime.RemoteObject; + name?: string | undefined; + /** + * Location in the source code where scope starts + */ + startLocation?: Location | undefined; + /** + * Location in the source code where scope ends + */ + endLocation?: Location | undefined; + } + + /** + * Search match for resource. + */ + interface SearchMatch { + /** + * Line number in resource content. + */ + lineNumber: number; + /** + * Line with match content. + */ + lineContent: string; + } + + interface BreakLocation { + /** + * Script identifier as reported in the Debugger.scriptParsed. + */ + scriptId: Runtime.ScriptId; + /** + * Line number in the script (0-based). + */ + lineNumber: number; + /** + * Column number in the script (0-based). + */ + columnNumber?: number | undefined; + type?: string | undefined; + } + + interface SetBreakpointsActiveParameterType { + /** + * New value for breakpoints active state. + */ + active: boolean; + } + + interface SetSkipAllPausesParameterType { + /** + * New value for skip pauses state. + */ + skip: boolean; + } + + interface SetBreakpointByUrlParameterType { + /** + * Line number to set breakpoint at. + */ + lineNumber: number; + /** + * URL of the resources to set breakpoint on. + */ + url?: string | undefined; + /** + * Regex pattern for the URLs of the resources to set breakpoints on. Either url or urlRegex must be specified. + */ + urlRegex?: string | undefined; + /** + * Script hash of the resources to set breakpoint on. + */ + scriptHash?: string | undefined; + /** + * Offset in the line to set breakpoint at. + */ + columnNumber?: number | undefined; + /** + * Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true. + */ + condition?: string | undefined; + } + + interface SetBreakpointParameterType { + /** + * Location to set breakpoint in. + */ + location: Location; + /** + * Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true. + */ + condition?: string | undefined; + } + + interface RemoveBreakpointParameterType { + breakpointId: BreakpointId; + } + + interface GetPossibleBreakpointsParameterType { + /** + * Start of range to search possible breakpoint locations in. + */ + start: Location; + /** + * End of range to search possible breakpoint locations in (excluding). When not specified, end of scripts is used as end of range. + */ + end?: Location | undefined; + /** + * Only consider locations which are in the same (non-nested) function as start. + */ + restrictToFunction?: boolean | undefined; + } + + interface ContinueToLocationParameterType { + /** + * Location to continue to. + */ + location: Location; + targetCallFrames?: string | undefined; + } + + interface PauseOnAsyncCallParameterType { + /** + * Debugger will pause when async call with given stack trace is started. + */ + parentStackTraceId: Runtime.StackTraceId; + } + + interface StepIntoParameterType { + /** + * Debugger will issue additional Debugger.paused notification if any async task is scheduled before next pause. + * @experimental + */ + breakOnAsyncCall?: boolean | undefined; + } + + interface GetStackTraceParameterType { + stackTraceId: Runtime.StackTraceId; + } + + interface SearchInContentParameterType { + /** + * Id of the script to search in. + */ + scriptId: Runtime.ScriptId; + /** + * String to search for. + */ + query: string; + /** + * If true, search is case sensitive. + */ + caseSensitive?: boolean | undefined; + /** + * If true, treats string parameter as regex. + */ + isRegex?: boolean | undefined; + } + + interface SetScriptSourceParameterType { + /** + * Id of the script to edit. + */ + scriptId: Runtime.ScriptId; + /** + * New content of the script. + */ + scriptSource: string; + /** + * If true the change will not actually be applied. Dry run may be used to get result description without actually modifying the code. + */ + dryRun?: boolean | undefined; + } + + interface RestartFrameParameterType { + /** + * Call frame identifier to evaluate on. + */ + callFrameId: CallFrameId; + } + + interface GetScriptSourceParameterType { + /** + * Id of the script to get source for. + */ + scriptId: Runtime.ScriptId; + } + + interface SetPauseOnExceptionsParameterType { + /** + * Pause on exceptions mode. + */ + state: string; + } + + interface EvaluateOnCallFrameParameterType { + /** + * Call frame identifier to evaluate on. + */ + callFrameId: CallFrameId; + /** + * Expression to evaluate. + */ + expression: string; + /** + * String object group name to put result into (allows rapid releasing resulting object handles using releaseObjectGroup). + */ + objectGroup?: string | undefined; + /** + * Specifies whether command line API should be available to the evaluated expression, defaults to false. + */ + includeCommandLineAPI?: boolean | undefined; + /** + * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state. + */ + silent?: boolean | undefined; + /** + * Whether the result is expected to be a JSON object that should be sent by value. + */ + returnByValue?: boolean | undefined; + /** + * Whether preview should be generated for the result. + * @experimental + */ + generatePreview?: boolean | undefined; + /** + * Whether to throw an exception if side effect cannot be ruled out during evaluation. + */ + throwOnSideEffect?: boolean | undefined; + } + + interface SetVariableValueParameterType { + /** + * 0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch' scope types are allowed. Other scopes could be manipulated manually. + */ + scopeNumber: number; + /** + * Variable name. + */ + variableName: string; + /** + * New variable value. + */ + newValue: Runtime.CallArgument; + /** + * Id of callframe that holds variable. + */ + callFrameId: CallFrameId; + } + + interface SetReturnValueParameterType { + /** + * New return value. + */ + newValue: Runtime.CallArgument; + } + + interface SetAsyncCallStackDepthParameterType { + /** + * Maximum depth of async call stacks. Setting to 0 will effectively disable collecting async call stacks (default). + */ + maxDepth: number; + } + + interface SetBlackboxPatternsParameterType { + /** + * Array of regexps that will be used to check script url for blackbox state. + */ + patterns: string[]; + } + + interface SetBlackboxedRangesParameterType { + /** + * Id of the script. + */ + scriptId: Runtime.ScriptId; + positions: ScriptPosition[]; + } + + interface EnableReturnType { + /** + * Unique identifier of the debugger. + * @experimental + */ + debuggerId: Runtime.UniqueDebuggerId; + } + + interface SetBreakpointByUrlReturnType { + /** + * Id of the created breakpoint for further reference. + */ + breakpointId: BreakpointId; + /** + * List of the locations this breakpoint resolved into upon addition. + */ + locations: Location[]; + } + + interface SetBreakpointReturnType { + /** + * Id of the created breakpoint for further reference. + */ + breakpointId: BreakpointId; + /** + * Location this breakpoint resolved into. + */ + actualLocation: Location; + } + + interface GetPossibleBreakpointsReturnType { + /** + * List of the possible breakpoint locations. + */ + locations: BreakLocation[]; + } + + interface GetStackTraceReturnType { + stackTrace: Runtime.StackTrace; + } + + interface SearchInContentReturnType { + /** + * List of search matches. + */ + result: SearchMatch[]; + } + + interface SetScriptSourceReturnType { + /** + * New stack trace in case editing has happened while VM was stopped. + */ + callFrames?: CallFrame[] | undefined; + /** + * Whether current call stack was modified after applying the changes. + */ + stackChanged?: boolean | undefined; + /** + * Async stack trace, if any. + */ + asyncStackTrace?: Runtime.StackTrace | undefined; + /** + * Async stack trace, if any. + * @experimental + */ + asyncStackTraceId?: Runtime.StackTraceId | undefined; + /** + * Exception details if any. + */ + exceptionDetails?: Runtime.ExceptionDetails | undefined; + } + + interface RestartFrameReturnType { + /** + * New stack trace. + */ + callFrames: CallFrame[]; + /** + * Async stack trace, if any. + */ + asyncStackTrace?: Runtime.StackTrace | undefined; + /** + * Async stack trace, if any. + * @experimental + */ + asyncStackTraceId?: Runtime.StackTraceId | undefined; + } + + interface GetScriptSourceReturnType { + /** + * Script source. + */ + scriptSource: string; + } + + interface EvaluateOnCallFrameReturnType { + /** + * Object wrapper for the evaluation result. + */ + result: Runtime.RemoteObject; + /** + * Exception details. + */ + exceptionDetails?: Runtime.ExceptionDetails | undefined; + } + + interface ScriptParsedEventDataType { + /** + * Identifier of the script parsed. + */ + scriptId: Runtime.ScriptId; + /** + * URL or name of the script parsed (if any). + */ + url: string; + /** + * Line offset of the script within the resource with given URL (for script tags). + */ + startLine: number; + /** + * Column offset of the script within the resource with given URL. + */ + startColumn: number; + /** + * Last line of the script. + */ + endLine: number; + /** + * Length of the last line of the script. + */ + endColumn: number; + /** + * Specifies script creation context. + */ + executionContextId: Runtime.ExecutionContextId; + /** + * Content hash of the script. + */ + hash: string; + /** + * Embedder-specific auxiliary data. + */ + executionContextAuxData?: {} | undefined; + /** + * True, if this script is generated as a result of the live edit operation. + * @experimental + */ + isLiveEdit?: boolean | undefined; + /** + * URL of source map associated with script (if any). + */ + sourceMapURL?: string | undefined; + /** + * True, if this script has sourceURL. + */ + hasSourceURL?: boolean | undefined; + /** + * True, if this script is ES6 module. + */ + isModule?: boolean | undefined; + /** + * This script length. + */ + length?: number | undefined; + /** + * JavaScript top stack frame of where the script parsed event was triggered if available. + * @experimental + */ + stackTrace?: Runtime.StackTrace | undefined; + } + + interface ScriptFailedToParseEventDataType { + /** + * Identifier of the script parsed. + */ + scriptId: Runtime.ScriptId; + /** + * URL or name of the script parsed (if any). + */ + url: string; + /** + * Line offset of the script within the resource with given URL (for script tags). + */ + startLine: number; + /** + * Column offset of the script within the resource with given URL. + */ + startColumn: number; + /** + * Last line of the script. + */ + endLine: number; + /** + * Length of the last line of the script. + */ + endColumn: number; + /** + * Specifies script creation context. + */ + executionContextId: Runtime.ExecutionContextId; + /** + * Content hash of the script. + */ + hash: string; + /** + * Embedder-specific auxiliary data. + */ + executionContextAuxData?: {} | undefined; + /** + * URL of source map associated with script (if any). + */ + sourceMapURL?: string | undefined; + /** + * True, if this script has sourceURL. + */ + hasSourceURL?: boolean | undefined; + /** + * True, if this script is ES6 module. + */ + isModule?: boolean | undefined; + /** + * This script length. + */ + length?: number | undefined; + /** + * JavaScript top stack frame of where the script parsed event was triggered if available. + * @experimental + */ + stackTrace?: Runtime.StackTrace | undefined; + } + + interface BreakpointResolvedEventDataType { + /** + * Breakpoint unique identifier. + */ + breakpointId: BreakpointId; + /** + * Actual breakpoint location. + */ + location: Location; + } + + interface PausedEventDataType { + /** + * Call stack the virtual machine stopped on. + */ + callFrames: CallFrame[]; + /** + * Pause reason. + */ + reason: string; + /** + * Object containing break-specific auxiliary properties. + */ + data?: {} | undefined; + /** + * Hit breakpoints IDs + */ + hitBreakpoints?: string[] | undefined; + /** + * Async stack trace, if any. + */ + asyncStackTrace?: Runtime.StackTrace | undefined; + /** + * Async stack trace, if any. + * @experimental + */ + asyncStackTraceId?: Runtime.StackTraceId | undefined; + /** + * Just scheduled async call will have this stack trace as parent stack during async execution. This field is available only after Debugger.stepInto call with breakOnAsynCall flag. + * @experimental + */ + asyncCallStackTraceId?: Runtime.StackTraceId | undefined; + } + } + + namespace Console { + /** + * Console message. + */ + interface ConsoleMessage { + /** + * Message source. + */ + source: string; + /** + * Message severity. + */ + level: string; + /** + * Message text. + */ + text: string; + /** + * URL of the message origin. + */ + url?: string | undefined; + /** + * Line number in the resource that generated this message (1-based). + */ + line?: number | undefined; + /** + * Column number in the resource that generated this message (1-based). + */ + column?: number | undefined; + } + + interface MessageAddedEventDataType { + /** + * Console message that has been added. + */ + message: ConsoleMessage; + } + } + + namespace Profiler { + /** + * Profile node. Holds callsite information, execution statistics and child nodes. + */ + interface ProfileNode { + /** + * Unique id of the node. + */ + id: number; + /** + * Function location. + */ + callFrame: Runtime.CallFrame; + /** + * Number of samples where this node was on top of the call stack. + */ + hitCount?: number | undefined; + /** + * Child node ids. + */ + children?: number[] | undefined; + /** + * The reason of being not optimized. The function may be deoptimized or marked as don't optimize. + */ + deoptReason?: string | undefined; + /** + * An array of source position ticks. + */ + positionTicks?: PositionTickInfo[] | undefined; + } + + /** + * Profile. + */ + interface Profile { + /** + * The list of profile nodes. First item is the root node. + */ + nodes: ProfileNode[]; + /** + * Profiling start timestamp in microseconds. + */ + startTime: number; + /** + * Profiling end timestamp in microseconds. + */ + endTime: number; + /** + * Ids of samples top nodes. + */ + samples?: number[] | undefined; + /** + * Time intervals between adjacent samples in microseconds. The first delta is relative to the profile startTime. + */ + timeDeltas?: number[] | undefined; + } + + /** + * Specifies a number of samples attributed to a certain source position. + */ + interface PositionTickInfo { + /** + * Source line number (1-based). + */ + line: number; + /** + * Number of samples attributed to the source line. + */ + ticks: number; + } + + /** + * Coverage data for a source range. + */ + interface CoverageRange { + /** + * JavaScript script source offset for the range start. + */ + startOffset: number; + /** + * JavaScript script source offset for the range end. + */ + endOffset: number; + /** + * Collected execution count of the source range. + */ + count: number; + } + + /** + * Coverage data for a JavaScript function. + */ + interface FunctionCoverage { + /** + * JavaScript function name. + */ + functionName: string; + /** + * Source ranges inside the function with coverage data. + */ + ranges: CoverageRange[]; + /** + * Whether coverage data for this function has block granularity. + */ + isBlockCoverage: boolean; + } + + /** + * Coverage data for a JavaScript script. + */ + interface ScriptCoverage { + /** + * JavaScript script id. + */ + scriptId: Runtime.ScriptId; + /** + * JavaScript script name or url. + */ + url: string; + /** + * Functions contained in the script that has coverage data. + */ + functions: FunctionCoverage[]; + } + + /** + * Describes a type collected during runtime. + * @experimental + */ + interface TypeObject { + /** + * Name of a type collected with type profiling. + */ + name: string; + } + + /** + * Source offset and types for a parameter or return value. + * @experimental + */ + interface TypeProfileEntry { + /** + * Source offset of the parameter or end of function for return values. + */ + offset: number; + /** + * The types for this parameter or return value. + */ + types: TypeObject[]; + } + + /** + * Type profile data collected during runtime for a JavaScript script. + * @experimental + */ + interface ScriptTypeProfile { + /** + * JavaScript script id. + */ + scriptId: Runtime.ScriptId; + /** + * JavaScript script name or url. + */ + url: string; + /** + * Type profile entries for parameters and return values of the functions in the script. + */ + entries: TypeProfileEntry[]; + } + + interface SetSamplingIntervalParameterType { + /** + * New sampling interval in microseconds. + */ + interval: number; + } + + interface StartPreciseCoverageParameterType { + /** + * Collect accurate call counts beyond simple 'covered' or 'not covered'. + */ + callCount?: boolean | undefined; + /** + * Collect block-based coverage. + */ + detailed?: boolean | undefined; + } + + interface StopReturnType { + /** + * Recorded profile. + */ + profile: Profile; + } + + interface TakePreciseCoverageReturnType { + /** + * Coverage data for the current isolate. + */ + result: ScriptCoverage[]; + } + + interface GetBestEffortCoverageReturnType { + /** + * Coverage data for the current isolate. + */ + result: ScriptCoverage[]; + } + + interface TakeTypeProfileReturnType { + /** + * Type profile for all scripts since startTypeProfile() was turned on. + */ + result: ScriptTypeProfile[]; + } + + interface ConsoleProfileStartedEventDataType { + id: string; + /** + * Location of console.profile(). + */ + location: Debugger.Location; + /** + * Profile title passed as an argument to console.profile(). + */ + title?: string | undefined; + } + + interface ConsoleProfileFinishedEventDataType { + id: string; + /** + * Location of console.profileEnd(). + */ + location: Debugger.Location; + profile: Profile; + /** + * Profile title passed as an argument to console.profile(). + */ + title?: string | undefined; + } + } + + namespace HeapProfiler { + /** + * Heap snapshot object id. + */ + type HeapSnapshotObjectId = string; + + /** + * Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes. + */ + interface SamplingHeapProfileNode { + /** + * Function location. + */ + callFrame: Runtime.CallFrame; + /** + * Allocations size in bytes for the node excluding children. + */ + selfSize: number; + /** + * Child nodes. + */ + children: SamplingHeapProfileNode[]; + } + + /** + * Profile. + */ + interface SamplingHeapProfile { + head: SamplingHeapProfileNode; + } + + interface StartTrackingHeapObjectsParameterType { + trackAllocations?: boolean | undefined; + } + + interface StopTrackingHeapObjectsParameterType { + /** + * If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken when the tracking is stopped. + */ + reportProgress?: boolean | undefined; + } + + interface TakeHeapSnapshotParameterType { + /** + * If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken. + */ + reportProgress?: boolean | undefined; + } + + interface GetObjectByHeapObjectIdParameterType { + objectId: HeapSnapshotObjectId; + /** + * Symbolic group name that can be used to release multiple objects. + */ + objectGroup?: string | undefined; + } + + interface AddInspectedHeapObjectParameterType { + /** + * Heap snapshot object id to be accessible by means of $x command line API. + */ + heapObjectId: HeapSnapshotObjectId; + } + + interface GetHeapObjectIdParameterType { + /** + * Identifier of the object to get heap object id for. + */ + objectId: Runtime.RemoteObjectId; + } + + interface StartSamplingParameterType { + /** + * Average sample interval in bytes. Poisson distribution is used for the intervals. The default value is 32768 bytes. + */ + samplingInterval?: number | undefined; + } + + interface GetObjectByHeapObjectIdReturnType { + /** + * Evaluation result. + */ + result: Runtime.RemoteObject; + } + + interface GetHeapObjectIdReturnType { + /** + * Id of the heap snapshot object corresponding to the passed remote object id. + */ + heapSnapshotObjectId: HeapSnapshotObjectId; + } + + interface StopSamplingReturnType { + /** + * Recorded sampling heap profile. + */ + profile: SamplingHeapProfile; + } + + interface GetSamplingProfileReturnType { + /** + * Return the sampling profile being collected. + */ + profile: SamplingHeapProfile; + } + + interface AddHeapSnapshotChunkEventDataType { + chunk: string; + } + + interface ReportHeapSnapshotProgressEventDataType { + done: number; + total: number; + finished?: boolean | undefined; + } + + interface LastSeenObjectIdEventDataType { + lastSeenObjectId: number; + timestamp: number; + } + + interface HeapStatsUpdateEventDataType { + /** + * An array of triplets. Each triplet describes a fragment. The first integer is the fragment index, the second integer is a total count of objects for the fragment, the third integer is a total size of the objects for the fragment. + */ + statsUpdate: number[]; + } + } + + namespace NodeTracing { + interface TraceConfig { + /** + * Controls how the trace buffer stores data. + */ + recordMode?: string | undefined; + /** + * Included category filters. + */ + includedCategories: string[]; + } + + interface StartParameterType { + traceConfig: TraceConfig; + } + + interface GetCategoriesReturnType { + /** + * A list of supported tracing categories. + */ + categories: string[]; + } + + interface DataCollectedEventDataType { + value: Array<{}>; + } + } + + namespace NodeWorker { + type WorkerID = string; + + /** + * Unique identifier of attached debugging session. + */ + type SessionID = string; + + interface WorkerInfo { + workerId: WorkerID; + type: string; + title: string; + url: string; + } + + interface SendMessageToWorkerParameterType { + message: string; + /** + * Identifier of the session. + */ + sessionId: SessionID; + } + + interface EnableParameterType { + /** + * Whether to new workers should be paused until the frontend sends `Runtime.runIfWaitingForDebugger` + * message to run them. + */ + waitForDebuggerOnStart: boolean; + } + + interface DetachParameterType { + sessionId: SessionID; + } + + interface AttachedToWorkerEventDataType { + /** + * Identifier assigned to the session used to send/receive messages. + */ + sessionId: SessionID; + workerInfo: WorkerInfo; + waitingForDebugger: boolean; + } + + interface DetachedFromWorkerEventDataType { + /** + * Detached session identifier. + */ + sessionId: SessionID; + } + + interface ReceivedMessageFromWorkerEventDataType { + /** + * Identifier of a session which sends a message. + */ + sessionId: SessionID; + message: string; + } + } + + namespace NodeRuntime { + interface NotifyWhenWaitingForDisconnectParameterType { + enabled: boolean; + } + } + + /** + * The inspector.Session is used for dispatching messages to the V8 inspector back-end and receiving message responses and notifications. + */ + class Session extends EventEmitter { + /** + * Create a new instance of the inspector.Session class. + * The inspector session needs to be connected through session.connect() before the messages can be dispatched to the inspector backend. + */ + constructor(); + + /** + * Connects a session to the inspector back-end. + */ + connect(): void; + + /** + * Connects a session to the main thread inspector back-end. + * An exception will be thrown if this API was not called on a Worker + * thread. + * @since v12.11.0 + */ + connectToMainThread(): void; + + /** + * Immediately close the session. All pending message callbacks will be called with an error. + * session.connect() will need to be called to be able to send messages again. + * Reconnected session will lose all inspector state, such as enabled agents or configured breakpoints. + */ + disconnect(): void; + + /** + * Posts a message to the inspector back-end. callback will be notified when a response is received. + * callback is a function that accepts two optional arguments - error and message-specific result. + */ + post(method: string, params?: {}, callback?: (err: Error | null, params?: {}) => void): void; + post(method: string, callback?: (err: Error | null, params?: {}) => void): void; + + /** + * Returns supported domains. + */ + post(method: "Schema.getDomains", callback?: (err: Error | null, params: Schema.GetDomainsReturnType) => void): void; + + /** + * Evaluates expression on global object. + */ + post(method: "Runtime.evaluate", params?: Runtime.EvaluateParameterType, callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void; + post(method: "Runtime.evaluate", callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void; + + /** + * Add handler to promise with given promise object id. + */ + post(method: "Runtime.awaitPromise", params?: Runtime.AwaitPromiseParameterType, callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void; + post(method: "Runtime.awaitPromise", callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void; + + /** + * Calls function with given declaration on the given object. Object group of the result is inherited from the target object. + */ + post(method: "Runtime.callFunctionOn", params?: Runtime.CallFunctionOnParameterType, callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void; + post(method: "Runtime.callFunctionOn", callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void; + + /** + * Returns properties of a given object. Object group of the result is inherited from the target object. + */ + post(method: "Runtime.getProperties", params?: Runtime.GetPropertiesParameterType, callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void; + post(method: "Runtime.getProperties", callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void; + + /** + * Releases remote object with given id. + */ + post(method: "Runtime.releaseObject", params?: Runtime.ReleaseObjectParameterType, callback?: (err: Error | null) => void): void; + post(method: "Runtime.releaseObject", callback?: (err: Error | null) => void): void; + + /** + * Releases all remote objects that belong to a given group. + */ + post(method: "Runtime.releaseObjectGroup", params?: Runtime.ReleaseObjectGroupParameterType, callback?: (err: Error | null) => void): void; + post(method: "Runtime.releaseObjectGroup", callback?: (err: Error | null) => void): void; + + /** + * Tells inspected instance to run if it was waiting for debugger to attach. + */ + post(method: "Runtime.runIfWaitingForDebugger", callback?: (err: Error | null) => void): void; + + /** + * Enables reporting of execution contexts creation by means of executionContextCreated event. When the reporting gets enabled the event will be sent immediately for each existing execution context. + */ + post(method: "Runtime.enable", callback?: (err: Error | null) => void): void; + + /** + * Disables reporting of execution contexts creation. + */ + post(method: "Runtime.disable", callback?: (err: Error | null) => void): void; + + /** + * Discards collected exceptions and console API calls. + */ + post(method: "Runtime.discardConsoleEntries", callback?: (err: Error | null) => void): void; + + /** + * @experimental + */ + post(method: "Runtime.setCustomObjectFormatterEnabled", params?: Runtime.SetCustomObjectFormatterEnabledParameterType, callback?: (err: Error | null) => void): void; + post(method: "Runtime.setCustomObjectFormatterEnabled", callback?: (err: Error | null) => void): void; + + /** + * Compiles expression. + */ + post(method: "Runtime.compileScript", params?: Runtime.CompileScriptParameterType, callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void; + post(method: "Runtime.compileScript", callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void; + + /** + * Runs script with given id in a given context. + */ + post(method: "Runtime.runScript", params?: Runtime.RunScriptParameterType, callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void; + post(method: "Runtime.runScript", callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void; + + post(method: "Runtime.queryObjects", params?: Runtime.QueryObjectsParameterType, callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void; + post(method: "Runtime.queryObjects", callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void; + + /** + * Returns all let, const and class variables from global scope. + */ + post( + method: "Runtime.globalLexicalScopeNames", + params?: Runtime.GlobalLexicalScopeNamesParameterType, + callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void + ): void; + post(method: "Runtime.globalLexicalScopeNames", callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void): void; + + /** + * Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received. + */ + post(method: "Debugger.enable", callback?: (err: Error | null, params: Debugger.EnableReturnType) => void): void; + + /** + * Disables debugger for given page. + */ + post(method: "Debugger.disable", callback?: (err: Error | null) => void): void; + + /** + * Activates / deactivates all breakpoints on the page. + */ + post(method: "Debugger.setBreakpointsActive", params?: Debugger.SetBreakpointsActiveParameterType, callback?: (err: Error | null) => void): void; + post(method: "Debugger.setBreakpointsActive", callback?: (err: Error | null) => void): void; + + /** + * Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc). + */ + post(method: "Debugger.setSkipAllPauses", params?: Debugger.SetSkipAllPausesParameterType, callback?: (err: Error | null) => void): void; + post(method: "Debugger.setSkipAllPauses", callback?: (err: Error | null) => void): void; + + /** + * Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in locations property. Further matching script parsing will result in subsequent breakpointResolved events issued. This logical breakpoint will survive page reloads. + */ + post(method: "Debugger.setBreakpointByUrl", params?: Debugger.SetBreakpointByUrlParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void; + post(method: "Debugger.setBreakpointByUrl", callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void; + + /** + * Sets JavaScript breakpoint at a given location. + */ + post(method: "Debugger.setBreakpoint", params?: Debugger.SetBreakpointParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void; + post(method: "Debugger.setBreakpoint", callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void; + + /** + * Removes JavaScript breakpoint. + */ + post(method: "Debugger.removeBreakpoint", params?: Debugger.RemoveBreakpointParameterType, callback?: (err: Error | null) => void): void; + post(method: "Debugger.removeBreakpoint", callback?: (err: Error | null) => void): void; + + /** + * Returns possible locations for breakpoint. scriptId in start and end range locations should be the same. + */ + post( + method: "Debugger.getPossibleBreakpoints", + params?: Debugger.GetPossibleBreakpointsParameterType, + callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void + ): void; + post(method: "Debugger.getPossibleBreakpoints", callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void): void; + + /** + * Continues execution until specific location is reached. + */ + post(method: "Debugger.continueToLocation", params?: Debugger.ContinueToLocationParameterType, callback?: (err: Error | null) => void): void; + post(method: "Debugger.continueToLocation", callback?: (err: Error | null) => void): void; + + /** + * @experimental + */ + post(method: "Debugger.pauseOnAsyncCall", params?: Debugger.PauseOnAsyncCallParameterType, callback?: (err: Error | null) => void): void; + post(method: "Debugger.pauseOnAsyncCall", callback?: (err: Error | null) => void): void; + + /** + * Steps over the statement. + */ + post(method: "Debugger.stepOver", callback?: (err: Error | null) => void): void; + + /** + * Steps into the function call. + */ + post(method: "Debugger.stepInto", params?: Debugger.StepIntoParameterType, callback?: (err: Error | null) => void): void; + post(method: "Debugger.stepInto", callback?: (err: Error | null) => void): void; + + /** + * Steps out of the function call. + */ + post(method: "Debugger.stepOut", callback?: (err: Error | null) => void): void; + + /** + * Stops on the next JavaScript statement. + */ + post(method: "Debugger.pause", callback?: (err: Error | null) => void): void; + + /** + * This method is deprecated - use Debugger.stepInto with breakOnAsyncCall and Debugger.pauseOnAsyncTask instead. Steps into next scheduled async task if any is scheduled before next pause. Returns success when async task is actually scheduled, returns error if no task were scheduled or another scheduleStepIntoAsync was called. + * @experimental + */ + post(method: "Debugger.scheduleStepIntoAsync", callback?: (err: Error | null) => void): void; + + /** + * Resumes JavaScript execution. + */ + post(method: "Debugger.resume", callback?: (err: Error | null) => void): void; + + /** + * Returns stack trace with given stackTraceId. + * @experimental + */ + post(method: "Debugger.getStackTrace", params?: Debugger.GetStackTraceParameterType, callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void; + post(method: "Debugger.getStackTrace", callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void; + + /** + * Searches for given string in script content. + */ + post(method: "Debugger.searchInContent", params?: Debugger.SearchInContentParameterType, callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void; + post(method: "Debugger.searchInContent", callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void; + + /** + * Edits JavaScript source live. + */ + post(method: "Debugger.setScriptSource", params?: Debugger.SetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void; + post(method: "Debugger.setScriptSource", callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void; + + /** + * Restarts particular call frame from the beginning. + */ + post(method: "Debugger.restartFrame", params?: Debugger.RestartFrameParameterType, callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void; + post(method: "Debugger.restartFrame", callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void; + + /** + * Returns source for the script with given id. + */ + post(method: "Debugger.getScriptSource", params?: Debugger.GetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void; + post(method: "Debugger.getScriptSource", callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void; + + /** + * Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is none. + */ + post(method: "Debugger.setPauseOnExceptions", params?: Debugger.SetPauseOnExceptionsParameterType, callback?: (err: Error | null) => void): void; + post(method: "Debugger.setPauseOnExceptions", callback?: (err: Error | null) => void): void; + + /** + * Evaluates expression on a given call frame. + */ + post(method: "Debugger.evaluateOnCallFrame", params?: Debugger.EvaluateOnCallFrameParameterType, callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void; + post(method: "Debugger.evaluateOnCallFrame", callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void; + + /** + * Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually. + */ + post(method: "Debugger.setVariableValue", params?: Debugger.SetVariableValueParameterType, callback?: (err: Error | null) => void): void; + post(method: "Debugger.setVariableValue", callback?: (err: Error | null) => void): void; + + /** + * Changes return value in top frame. Available only at return break position. + * @experimental + */ + post(method: "Debugger.setReturnValue", params?: Debugger.SetReturnValueParameterType, callback?: (err: Error | null) => void): void; + post(method: "Debugger.setReturnValue", callback?: (err: Error | null) => void): void; + + /** + * Enables or disables async call stacks tracking. + */ + post(method: "Debugger.setAsyncCallStackDepth", params?: Debugger.SetAsyncCallStackDepthParameterType, callback?: (err: Error | null) => void): void; + post(method: "Debugger.setAsyncCallStackDepth", callback?: (err: Error | null) => void): void; + + /** + * Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in scripts with url matching one of the patterns. VM will try to leave blackboxed script by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. + * @experimental + */ + post(method: "Debugger.setBlackboxPatterns", params?: Debugger.SetBlackboxPatternsParameterType, callback?: (err: Error | null) => void): void; + post(method: "Debugger.setBlackboxPatterns", callback?: (err: Error | null) => void): void; + + /** + * Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. Positions array contains positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted. + * @experimental + */ + post(method: "Debugger.setBlackboxedRanges", params?: Debugger.SetBlackboxedRangesParameterType, callback?: (err: Error | null) => void): void; + post(method: "Debugger.setBlackboxedRanges", callback?: (err: Error | null) => void): void; + + /** + * Enables console domain, sends the messages collected so far to the client by means of the messageAdded notification. + */ + post(method: "Console.enable", callback?: (err: Error | null) => void): void; + + /** + * Disables console domain, prevents further console messages from being reported to the client. + */ + post(method: "Console.disable", callback?: (err: Error | null) => void): void; + + /** + * Does nothing. + */ + post(method: "Console.clearMessages", callback?: (err: Error | null) => void): void; + + post(method: "Profiler.enable", callback?: (err: Error | null) => void): void; + + post(method: "Profiler.disable", callback?: (err: Error | null) => void): void; + + /** + * Changes CPU profiler sampling interval. Must be called before CPU profiles recording started. + */ + post(method: "Profiler.setSamplingInterval", params?: Profiler.SetSamplingIntervalParameterType, callback?: (err: Error | null) => void): void; + post(method: "Profiler.setSamplingInterval", callback?: (err: Error | null) => void): void; + + post(method: "Profiler.start", callback?: (err: Error | null) => void): void; + + post(method: "Profiler.stop", callback?: (err: Error | null, params: Profiler.StopReturnType) => void): void; + + /** + * Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code coverage may be incomplete. Enabling prevents running optimized code and resets execution counters. + */ + post(method: "Profiler.startPreciseCoverage", params?: Profiler.StartPreciseCoverageParameterType, callback?: (err: Error | null) => void): void; + post(method: "Profiler.startPreciseCoverage", callback?: (err: Error | null) => void): void; + + /** + * Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code. + */ + post(method: "Profiler.stopPreciseCoverage", callback?: (err: Error | null) => void): void; + + /** + * Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started. + */ + post(method: "Profiler.takePreciseCoverage", callback?: (err: Error | null, params: Profiler.TakePreciseCoverageReturnType) => void): void; + + /** + * Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection. + */ + post(method: "Profiler.getBestEffortCoverage", callback?: (err: Error | null, params: Profiler.GetBestEffortCoverageReturnType) => void): void; + + /** + * Enable type profile. + * @experimental + */ + post(method: "Profiler.startTypeProfile", callback?: (err: Error | null) => void): void; + + /** + * Disable type profile. Disabling releases type profile data collected so far. + * @experimental + */ + post(method: "Profiler.stopTypeProfile", callback?: (err: Error | null) => void): void; + + /** + * Collect type profile. + * @experimental + */ + post(method: "Profiler.takeTypeProfile", callback?: (err: Error | null, params: Profiler.TakeTypeProfileReturnType) => void): void; + + post(method: "HeapProfiler.enable", callback?: (err: Error | null) => void): void; + + post(method: "HeapProfiler.disable", callback?: (err: Error | null) => void): void; + + post(method: "HeapProfiler.startTrackingHeapObjects", params?: HeapProfiler.StartTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void; + post(method: "HeapProfiler.startTrackingHeapObjects", callback?: (err: Error | null) => void): void; + + post(method: "HeapProfiler.stopTrackingHeapObjects", params?: HeapProfiler.StopTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void; + post(method: "HeapProfiler.stopTrackingHeapObjects", callback?: (err: Error | null) => void): void; + + post(method: "HeapProfiler.takeHeapSnapshot", params?: HeapProfiler.TakeHeapSnapshotParameterType, callback?: (err: Error | null) => void): void; + post(method: "HeapProfiler.takeHeapSnapshot", callback?: (err: Error | null) => void): void; + + post(method: "HeapProfiler.collectGarbage", callback?: (err: Error | null) => void): void; + + post( + method: "HeapProfiler.getObjectByHeapObjectId", + params?: HeapProfiler.GetObjectByHeapObjectIdParameterType, + callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void + ): void; + post(method: "HeapProfiler.getObjectByHeapObjectId", callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void): void; + + /** + * Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions). + */ + post(method: "HeapProfiler.addInspectedHeapObject", params?: HeapProfiler.AddInspectedHeapObjectParameterType, callback?: (err: Error | null) => void): void; + post(method: "HeapProfiler.addInspectedHeapObject", callback?: (err: Error | null) => void): void; + + post(method: "HeapProfiler.getHeapObjectId", params?: HeapProfiler.GetHeapObjectIdParameterType, callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void; + post(method: "HeapProfiler.getHeapObjectId", callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void; + + post(method: "HeapProfiler.startSampling", params?: HeapProfiler.StartSamplingParameterType, callback?: (err: Error | null) => void): void; + post(method: "HeapProfiler.startSampling", callback?: (err: Error | null) => void): void; + + post(method: "HeapProfiler.stopSampling", callback?: (err: Error | null, params: HeapProfiler.StopSamplingReturnType) => void): void; + + post(method: "HeapProfiler.getSamplingProfile", callback?: (err: Error | null, params: HeapProfiler.GetSamplingProfileReturnType) => void): void; + + /** + * Gets supported tracing categories. + */ + post(method: "NodeTracing.getCategories", callback?: (err: Error | null, params: NodeTracing.GetCategoriesReturnType) => void): void; + + /** + * Start trace events collection. + */ + post(method: "NodeTracing.start", params?: NodeTracing.StartParameterType, callback?: (err: Error | null) => void): void; + post(method: "NodeTracing.start", callback?: (err: Error | null) => void): void; + + /** + * Stop trace events collection. Remaining collected events will be sent as a sequence of + * dataCollected events followed by tracingComplete event. + */ + post(method: "NodeTracing.stop", callback?: (err: Error | null) => void): void; + + /** + * Sends protocol message over session with given id. + */ + post(method: "NodeWorker.sendMessageToWorker", params?: NodeWorker.SendMessageToWorkerParameterType, callback?: (err: Error | null) => void): void; + post(method: "NodeWorker.sendMessageToWorker", callback?: (err: Error | null) => void): void; + + /** + * Instructs the inspector to attach to running workers. Will also attach to new workers + * as they start + */ + post(method: "NodeWorker.enable", params?: NodeWorker.EnableParameterType, callback?: (err: Error | null) => void): void; + post(method: "NodeWorker.enable", callback?: (err: Error | null) => void): void; + + /** + * Detaches from all running workers and disables attaching to new workers as they are started. + */ + post(method: "NodeWorker.disable", callback?: (err: Error | null) => void): void; + + /** + * Detached from the worker with given sessionId. + */ + post(method: "NodeWorker.detach", params?: NodeWorker.DetachParameterType, callback?: (err: Error | null) => void): void; + post(method: "NodeWorker.detach", callback?: (err: Error | null) => void): void; + + /** + * Enable the `NodeRuntime.waitingForDisconnect`. + */ + post(method: "NodeRuntime.notifyWhenWaitingForDisconnect", params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType, callback?: (err: Error | null) => void): void; + post(method: "NodeRuntime.notifyWhenWaitingForDisconnect", callback?: (err: Error | null) => void): void; + + // Events + + addListener(event: string, listener: (...args: any[]) => void): this; + + /** + * Emitted when any notification from the V8 Inspector is received. + */ + addListener(event: "inspectorNotification", listener: (message: InspectorNotification<{}>) => void): this; + + /** + * Issued when new execution context is created. + */ + addListener(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification) => void): this; + + /** + * Issued when execution context is destroyed. + */ + addListener(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification) => void): this; + + /** + * Issued when all executionContexts were cleared in browser + */ + addListener(event: "Runtime.executionContextsCleared", listener: () => void): this; + + /** + * Issued when exception was thrown and unhandled. + */ + addListener(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification) => void): this; + + /** + * Issued when unhandled exception was revoked. + */ + addListener(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification) => void): this; + + /** + * Issued when console API was called. + */ + addListener(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification) => void): this; + + /** + * Issued when object should be inspected (for example, as a result of inspect() command line API call). + */ + addListener(event: "Runtime.inspectRequested", listener: (message: InspectorNotification) => void): this; + + /** + * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. + */ + addListener(event: "Debugger.scriptParsed", listener: (message: InspectorNotification) => void): this; + + /** + * Fired when virtual machine fails to parse the script. + */ + addListener(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification) => void): this; + + /** + * Fired when breakpoint is resolved to an actual script and location. + */ + addListener(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification) => void): this; + + /** + * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. + */ + addListener(event: "Debugger.paused", listener: (message: InspectorNotification) => void): this; + + /** + * Fired when the virtual machine resumed execution. + */ + addListener(event: "Debugger.resumed", listener: () => void): this; + + /** + * Issued when new console message is added. + */ + addListener(event: "Console.messageAdded", listener: (message: InspectorNotification) => void): this; + + /** + * Sent when new profile recording is started using console.profile() call. + */ + addListener(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification) => void): this; + + addListener(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification) => void): this; + addListener(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification) => void): this; + addListener(event: "HeapProfiler.resetProfiles", listener: () => void): this; + addListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification) => void): this; + + /** + * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. + */ + addListener(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification) => void): this; + + /** + * If heap objects tracking has been started then backend may send update for one or more fragments + */ + addListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification) => void): this; + + /** + * Contains an bucket of collected trace events. + */ + addListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification) => void): this; + + /** + * Signals that tracing is stopped and there is no trace buffers pending flush, all data were + * delivered via dataCollected events. + */ + addListener(event: "NodeTracing.tracingComplete", listener: () => void): this; + + /** + * Issued when attached to a worker. + */ + addListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification) => void): this; + + /** + * Issued when detached from the worker. + */ + addListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification) => void): this; + + /** + * Notifies about a new protocol message received from the session + * (session ID is provided in attachedToWorker notification). + */ + addListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification) => void): this; + + /** + * This event is fired instead of `Runtime.executionContextDestroyed` when + * enabled. + * It is fired when the Node process finished all code execution and is + * waiting for all frontends to disconnect. + */ + addListener(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this; + + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: "inspectorNotification", message: InspectorNotification<{}>): boolean; + emit(event: "Runtime.executionContextCreated", message: InspectorNotification): boolean; + emit(event: "Runtime.executionContextDestroyed", message: InspectorNotification): boolean; + emit(event: "Runtime.executionContextsCleared"): boolean; + emit(event: "Runtime.exceptionThrown", message: InspectorNotification): boolean; + emit(event: "Runtime.exceptionRevoked", message: InspectorNotification): boolean; + emit(event: "Runtime.consoleAPICalled", message: InspectorNotification): boolean; + emit(event: "Runtime.inspectRequested", message: InspectorNotification): boolean; + emit(event: "Debugger.scriptParsed", message: InspectorNotification): boolean; + emit(event: "Debugger.scriptFailedToParse", message: InspectorNotification): boolean; + emit(event: "Debugger.breakpointResolved", message: InspectorNotification): boolean; + emit(event: "Debugger.paused", message: InspectorNotification): boolean; + emit(event: "Debugger.resumed"): boolean; + emit(event: "Console.messageAdded", message: InspectorNotification): boolean; + emit(event: "Profiler.consoleProfileStarted", message: InspectorNotification): boolean; + emit(event: "Profiler.consoleProfileFinished", message: InspectorNotification): boolean; + emit(event: "HeapProfiler.addHeapSnapshotChunk", message: InspectorNotification): boolean; + emit(event: "HeapProfiler.resetProfiles"): boolean; + emit(event: "HeapProfiler.reportHeapSnapshotProgress", message: InspectorNotification): boolean; + emit(event: "HeapProfiler.lastSeenObjectId", message: InspectorNotification): boolean; + emit(event: "HeapProfiler.heapStatsUpdate", message: InspectorNotification): boolean; + emit(event: "NodeTracing.dataCollected", message: InspectorNotification): boolean; + emit(event: "NodeTracing.tracingComplete"): boolean; + emit(event: "NodeWorker.attachedToWorker", message: InspectorNotification): boolean; + emit(event: "NodeWorker.detachedFromWorker", message: InspectorNotification): boolean; + emit(event: "NodeWorker.receivedMessageFromWorker", message: InspectorNotification): boolean; + emit(event: "NodeRuntime.waitingForDisconnect"): boolean; + + on(event: string, listener: (...args: any[]) => void): this; + + /** + * Emitted when any notification from the V8 Inspector is received. + */ + on(event: "inspectorNotification", listener: (message: InspectorNotification<{}>) => void): this; + + /** + * Issued when new execution context is created. + */ + on(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification) => void): this; + + /** + * Issued when execution context is destroyed. + */ + on(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification) => void): this; + + /** + * Issued when all executionContexts were cleared in browser + */ + on(event: "Runtime.executionContextsCleared", listener: () => void): this; + + /** + * Issued when exception was thrown and unhandled. + */ + on(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification) => void): this; + + /** + * Issued when unhandled exception was revoked. + */ + on(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification) => void): this; + + /** + * Issued when console API was called. + */ + on(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification) => void): this; + + /** + * Issued when object should be inspected (for example, as a result of inspect() command line API call). + */ + on(event: "Runtime.inspectRequested", listener: (message: InspectorNotification) => void): this; + + /** + * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. + */ + on(event: "Debugger.scriptParsed", listener: (message: InspectorNotification) => void): this; + + /** + * Fired when virtual machine fails to parse the script. + */ + on(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification) => void): this; + + /** + * Fired when breakpoint is resolved to an actual script and location. + */ + on(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification) => void): this; + + /** + * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. + */ + on(event: "Debugger.paused", listener: (message: InspectorNotification) => void): this; + + /** + * Fired when the virtual machine resumed execution. + */ + on(event: "Debugger.resumed", listener: () => void): this; + + /** + * Issued when new console message is added. + */ + on(event: "Console.messageAdded", listener: (message: InspectorNotification) => void): this; + + /** + * Sent when new profile recording is started using console.profile() call. + */ + on(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification) => void): this; + + on(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification) => void): this; + on(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification) => void): this; + on(event: "HeapProfiler.resetProfiles", listener: () => void): this; + on(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification) => void): this; + + /** + * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. + */ + on(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification) => void): this; + + /** + * If heap objects tracking has been started then backend may send update for one or more fragments + */ + on(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification) => void): this; + + /** + * Contains an bucket of collected trace events. + */ + on(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification) => void): this; + + /** + * Signals that tracing is stopped and there is no trace buffers pending flush, all data were + * delivered via dataCollected events. + */ + on(event: "NodeTracing.tracingComplete", listener: () => void): this; + + /** + * Issued when attached to a worker. + */ + on(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification) => void): this; + + /** + * Issued when detached from the worker. + */ + on(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification) => void): this; + + /** + * Notifies about a new protocol message received from the session + * (session ID is provided in attachedToWorker notification). + */ + on(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification) => void): this; + + /** + * This event is fired instead of `Runtime.executionContextDestroyed` when + * enabled. + * It is fired when the Node process finished all code execution and is + * waiting for all frontends to disconnect. + */ + on(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this; + + once(event: string, listener: (...args: any[]) => void): this; + + /** + * Emitted when any notification from the V8 Inspector is received. + */ + once(event: "inspectorNotification", listener: (message: InspectorNotification<{}>) => void): this; + + /** + * Issued when new execution context is created. + */ + once(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification) => void): this; + + /** + * Issued when execution context is destroyed. + */ + once(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification) => void): this; + + /** + * Issued when all executionContexts were cleared in browser + */ + once(event: "Runtime.executionContextsCleared", listener: () => void): this; + + /** + * Issued when exception was thrown and unhandled. + */ + once(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification) => void): this; + + /** + * Issued when unhandled exception was revoked. + */ + once(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification) => void): this; + + /** + * Issued when console API was called. + */ + once(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification) => void): this; + + /** + * Issued when object should be inspected (for example, as a result of inspect() command line API call). + */ + once(event: "Runtime.inspectRequested", listener: (message: InspectorNotification) => void): this; + + /** + * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. + */ + once(event: "Debugger.scriptParsed", listener: (message: InspectorNotification) => void): this; + + /** + * Fired when virtual machine fails to parse the script. + */ + once(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification) => void): this; + + /** + * Fired when breakpoint is resolved to an actual script and location. + */ + once(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification) => void): this; + + /** + * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. + */ + once(event: "Debugger.paused", listener: (message: InspectorNotification) => void): this; + + /** + * Fired when the virtual machine resumed execution. + */ + once(event: "Debugger.resumed", listener: () => void): this; + + /** + * Issued when new console message is added. + */ + once(event: "Console.messageAdded", listener: (message: InspectorNotification) => void): this; + + /** + * Sent when new profile recording is started using console.profile() call. + */ + once(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification) => void): this; + + once(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification) => void): this; + once(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification) => void): this; + once(event: "HeapProfiler.resetProfiles", listener: () => void): this; + once(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification) => void): this; + + /** + * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. + */ + once(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification) => void): this; + + /** + * If heap objects tracking has been started then backend may send update for one or more fragments + */ + once(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification) => void): this; + + /** + * Contains an bucket of collected trace events. + */ + once(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification) => void): this; + + /** + * Signals that tracing is stopped and there is no trace buffers pending flush, all data were + * delivered via dataCollected events. + */ + once(event: "NodeTracing.tracingComplete", listener: () => void): this; + + /** + * Issued when attached to a worker. + */ + once(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification) => void): this; + + /** + * Issued when detached from the worker. + */ + once(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification) => void): this; + + /** + * Notifies about a new protocol message received from the session + * (session ID is provided in attachedToWorker notification). + */ + once(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification) => void): this; + + /** + * This event is fired instead of `Runtime.executionContextDestroyed` when + * enabled. + * It is fired when the Node process finished all code execution and is + * waiting for all frontends to disconnect. + */ + once(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this; + + prependListener(event: string, listener: (...args: any[]) => void): this; + + /** + * Emitted when any notification from the V8 Inspector is received. + */ + prependListener(event: "inspectorNotification", listener: (message: InspectorNotification<{}>) => void): this; + + /** + * Issued when new execution context is created. + */ + prependListener(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification) => void): this; + + /** + * Issued when execution context is destroyed. + */ + prependListener(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification) => void): this; + + /** + * Issued when all executionContexts were cleared in browser + */ + prependListener(event: "Runtime.executionContextsCleared", listener: () => void): this; + + /** + * Issued when exception was thrown and unhandled. + */ + prependListener(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification) => void): this; + + /** + * Issued when unhandled exception was revoked. + */ + prependListener(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification) => void): this; + + /** + * Issued when console API was called. + */ + prependListener(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification) => void): this; + + /** + * Issued when object should be inspected (for example, as a result of inspect() command line API call). + */ + prependListener(event: "Runtime.inspectRequested", listener: (message: InspectorNotification) => void): this; + + /** + * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. + */ + prependListener(event: "Debugger.scriptParsed", listener: (message: InspectorNotification) => void): this; + + /** + * Fired when virtual machine fails to parse the script. + */ + prependListener(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification) => void): this; + + /** + * Fired when breakpoint is resolved to an actual script and location. + */ + prependListener(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification) => void): this; + + /** + * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. + */ + prependListener(event: "Debugger.paused", listener: (message: InspectorNotification) => void): this; + + /** + * Fired when the virtual machine resumed execution. + */ + prependListener(event: "Debugger.resumed", listener: () => void): this; + + /** + * Issued when new console message is added. + */ + prependListener(event: "Console.messageAdded", listener: (message: InspectorNotification) => void): this; + + /** + * Sent when new profile recording is started using console.profile() call. + */ + prependListener(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification) => void): this; + + prependListener(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification) => void): this; + prependListener(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification) => void): this; + prependListener(event: "HeapProfiler.resetProfiles", listener: () => void): this; + prependListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification) => void): this; + + /** + * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. + */ + prependListener(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification) => void): this; + + /** + * If heap objects tracking has been started then backend may send update for one or more fragments + */ + prependListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification) => void): this; + + /** + * Contains an bucket of collected trace events. + */ + prependListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification) => void): this; + + /** + * Signals that tracing is stopped and there is no trace buffers pending flush, all data were + * delivered via dataCollected events. + */ + prependListener(event: "NodeTracing.tracingComplete", listener: () => void): this; + + /** + * Issued when attached to a worker. + */ + prependListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification) => void): this; + + /** + * Issued when detached from the worker. + */ + prependListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification) => void): this; + + /** + * Notifies about a new protocol message received from the session + * (session ID is provided in attachedToWorker notification). + */ + prependListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification) => void): this; + + /** + * This event is fired instead of `Runtime.executionContextDestroyed` when + * enabled. + * It is fired when the Node process finished all code execution and is + * waiting for all frontends to disconnect. + */ + prependListener(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this; + + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + + /** + * Emitted when any notification from the V8 Inspector is received. + */ + prependOnceListener(event: "inspectorNotification", listener: (message: InspectorNotification<{}>) => void): this; + + /** + * Issued when new execution context is created. + */ + prependOnceListener(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification) => void): this; + + /** + * Issued when execution context is destroyed. + */ + prependOnceListener(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification) => void): this; + + /** + * Issued when all executionContexts were cleared in browser + */ + prependOnceListener(event: "Runtime.executionContextsCleared", listener: () => void): this; + + /** + * Issued when exception was thrown and unhandled. + */ + prependOnceListener(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification) => void): this; + + /** + * Issued when unhandled exception was revoked. + */ + prependOnceListener(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification) => void): this; + + /** + * Issued when console API was called. + */ + prependOnceListener(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification) => void): this; + + /** + * Issued when object should be inspected (for example, as a result of inspect() command line API call). + */ + prependOnceListener(event: "Runtime.inspectRequested", listener: (message: InspectorNotification) => void): this; + + /** + * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. + */ + prependOnceListener(event: "Debugger.scriptParsed", listener: (message: InspectorNotification) => void): this; + + /** + * Fired when virtual machine fails to parse the script. + */ + prependOnceListener(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification) => void): this; + + /** + * Fired when breakpoint is resolved to an actual script and location. + */ + prependOnceListener(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification) => void): this; + + /** + * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. + */ + prependOnceListener(event: "Debugger.paused", listener: (message: InspectorNotification) => void): this; + + /** + * Fired when the virtual machine resumed execution. + */ + prependOnceListener(event: "Debugger.resumed", listener: () => void): this; + + /** + * Issued when new console message is added. + */ + prependOnceListener(event: "Console.messageAdded", listener: (message: InspectorNotification) => void): this; + + /** + * Sent when new profile recording is started using console.profile() call. + */ + prependOnceListener(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification) => void): this; + + prependOnceListener(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification) => void): this; + prependOnceListener(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification) => void): this; + prependOnceListener(event: "HeapProfiler.resetProfiles", listener: () => void): this; + prependOnceListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification) => void): this; + + /** + * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. + */ + prependOnceListener(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification) => void): this; + + /** + * If heap objects tracking has been started then backend may send update for one or more fragments + */ + prependOnceListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification) => void): this; + + /** + * Contains an bucket of collected trace events. + */ + prependOnceListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification) => void): this; + + /** + * Signals that tracing is stopped and there is no trace buffers pending flush, all data were + * delivered via dataCollected events. + */ + prependOnceListener(event: "NodeTracing.tracingComplete", listener: () => void): this; + + /** + * Issued when attached to a worker. + */ + prependOnceListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification) => void): this; + + /** + * Issued when detached from the worker. + */ + prependOnceListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification) => void): this; + + /** + * Notifies about a new protocol message received from the session + * (session ID is provided in attachedToWorker notification). + */ + prependOnceListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification) => void): this; + + /** + * This event is fired instead of `Runtime.executionContextDestroyed` when + * enabled. + * It is fired when the Node process finished all code execution and is + * waiting for all frontends to disconnect. + */ + prependOnceListener(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this; + } + + // Top Level API + + /** + * Activate inspector on host and port. Equivalent to node --inspect=[[host:]port], but can be done programatically after node has started. + * If wait is true, will block until a client has connected to the inspect port and flow control has been passed to the debugger client. + * @param port Port to listen on for inspector connections. Optional, defaults to what was specified on the CLI. + * @param host Host to listen on for inspector connections. Optional, defaults to what was specified on the CLI. + * @param wait Block until a client has connected. Optional, defaults to false. + */ + function open(port?: number, host?: string, wait?: boolean): void; + + /** + * Deactivate the inspector. Blocks until there are no active connections. + */ + function close(): void; + + /** + * Return the URL of the active inspector, or `undefined` if there is none. + */ + function url(): string | undefined; +} diff --git a/backend/node_modules/@types/node/module.d.ts b/backend/node_modules/@types/node/module.d.ts new file mode 100755 index 0000000..bf0a5a0 --- /dev/null +++ b/backend/node_modules/@types/node/module.d.ts @@ -0,0 +1,3 @@ +declare module 'module' { + export = NodeJS.Module; +} diff --git a/backend/node_modules/@types/node/net.d.ts b/backend/node_modules/@types/node/net.d.ts new file mode 100755 index 0000000..82ee59f --- /dev/null +++ b/backend/node_modules/@types/node/net.d.ts @@ -0,0 +1,290 @@ +declare module 'net' { + import * as stream from 'stream'; + import EventEmitter = require('events'); + import * as dns from 'dns'; + + type LookupFunction = ( + hostname: string, + options: dns.LookupOneOptions, + callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void, + ) => void; + + interface AddressInfo { + address: string; + family: string; + port: number; + } + + interface SocketConstructorOpts { + fd?: number | undefined; + allowHalfOpen?: boolean | undefined; + readable?: boolean | undefined; + writable?: boolean | undefined; + } + + interface OnReadOpts { + buffer: Uint8Array | (() => Uint8Array); + /** + * This function is called for every chunk of incoming data. + * Two arguments are passed to it: the number of bytes written to buffer and a reference to buffer. + * Return false from this function to implicitly pause() the socket. + */ + callback(bytesWritten: number, buf: Uint8Array): boolean; + } + + interface ConnectOpts { + /** + * If specified, incoming data is stored in a single buffer and passed to the supplied callback when data arrives on the socket. + * Note: this will cause the streaming functionality to not provide any data, however events like 'error', 'end', and 'close' will + * still be emitted as normal and methods like pause() and resume() will also behave as expected. + */ + onread?: OnReadOpts | undefined; + } + + interface TcpSocketConnectOpts extends ConnectOpts { + port: number; + host?: string | undefined; + localAddress?: string | undefined; + localPort?: number | undefined; + hints?: number | undefined; + family?: number | undefined; + lookup?: LookupFunction | undefined; + } + + interface IpcSocketConnectOpts extends ConnectOpts { + path: string; + } + + type SocketConnectOpts = TcpSocketConnectOpts | IpcSocketConnectOpts; + type SocketReadyState = 'opening' | 'open' | 'readOnly' | 'writeOnly' | 'closed'; + + class Socket extends stream.Duplex { + constructor(options?: SocketConstructorOpts); + + // Extended base methods + write(buffer: Uint8Array | string, cb?: (err?: Error) => void): boolean; + write(str: Uint8Array | string, encoding?: string, cb?: (err?: Error) => void): boolean; + + connect(options: SocketConnectOpts, connectionListener?: () => void): this; + connect(port: number, host: string, connectionListener?: () => void): this; + connect(port: number, connectionListener?: () => void): this; + connect(path: string, connectionListener?: () => void): this; + + setEncoding(encoding?: string): this; + pause(): this; + resume(): this; + setTimeout(timeout: number, callback?: () => void): this; + setNoDelay(noDelay?: boolean): this; + setKeepAlive(enable?: boolean, initialDelay?: number): this; + address(): AddressInfo | string; + unref(): void; + ref(): void; + + readonly bufferSize: number; + readonly bytesRead: number; + readonly bytesWritten: number; + readonly connecting: boolean; + readonly destroyed: boolean; + readonly localAddress: string; + readonly localPort: number; + /** + * This property represents the state of the connection as a string. + * @see {https://nodejs.org/api/net.html#socketreadystate} + * @since v0.5.0 + */ + readonly readyState: SocketReadyState; + readonly remoteAddress?: string | undefined; + readonly remoteFamily?: string | undefined; + readonly remotePort?: number | undefined; + /** + * The socket timeout in milliseconds as set by socket.setTimeout(). It is undefined if a timeout has not been set. + * @since v10.7.0 + */ + readonly timeout?: number | undefined; + + // Extended base methods + end(cb?: () => void): this; + end(buffer: Uint8Array | string, cb?: () => void): this; + end(str: Uint8Array | string, encoding?: string, cb?: () => void): this; + + /** + * events.EventEmitter + * 1. close + * 2. connect + * 3. data + * 4. drain + * 5. end + * 6. error + * 7. lookup + * 8. timeout + */ + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: "close", listener: (had_error: boolean) => void): this; + addListener(event: "connect", listener: () => void): this; + addListener(event: "data", listener: (data: Buffer) => void): this; + addListener(event: "drain", listener: () => void): this; + addListener(event: "end", listener: () => void): this; + addListener(event: "error", listener: (err: Error) => void): this; + addListener(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this; + addListener(event: "ready", listener: () => void): this; + addListener(event: "timeout", listener: () => void): this; + + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: "close", had_error: boolean): boolean; + emit(event: "connect"): boolean; + emit(event: "data", data: Buffer): boolean; + emit(event: "drain"): boolean; + emit(event: "end"): boolean; + emit(event: "error", err: Error): boolean; + emit(event: "lookup", err: Error, address: string, family: string | number, host: string): boolean; + emit(event: "ready"): boolean; + emit(event: "timeout"): boolean; + + on(event: string, listener: (...args: any[]) => void): this; + on(event: "close", listener: (had_error: boolean) => void): this; + on(event: "connect", listener: () => void): this; + on(event: "data", listener: (data: Buffer) => void): this; + on(event: "drain", listener: () => void): this; + on(event: "end", listener: () => void): this; + on(event: "error", listener: (err: Error) => void): this; + on(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this; + on(event: "ready", listener: () => void): this; + on(event: "timeout", listener: () => void): this; + + once(event: string, listener: (...args: any[]) => void): this; + once(event: "close", listener: (had_error: boolean) => void): this; + once(event: "connect", listener: () => void): this; + once(event: "data", listener: (data: Buffer) => void): this; + once(event: "drain", listener: () => void): this; + once(event: "end", listener: () => void): this; + once(event: "error", listener: (err: Error) => void): this; + once(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this; + once(event: "ready", listener: () => void): this; + once(event: "timeout", listener: () => void): this; + + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: "close", listener: (had_error: boolean) => void): this; + prependListener(event: "connect", listener: () => void): this; + prependListener(event: "data", listener: (data: Buffer) => void): this; + prependListener(event: "drain", listener: () => void): this; + prependListener(event: "end", listener: () => void): this; + prependListener(event: "error", listener: (err: Error) => void): this; + prependListener(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this; + prependListener(event: "ready", listener: () => void): this; + prependListener(event: "timeout", listener: () => void): this; + + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: "close", listener: (had_error: boolean) => void): this; + prependOnceListener(event: "connect", listener: () => void): this; + prependOnceListener(event: "data", listener: (data: Buffer) => void): this; + prependOnceListener(event: "drain", listener: () => void): this; + prependOnceListener(event: "end", listener: () => void): this; + prependOnceListener(event: "error", listener: (err: Error) => void): this; + prependOnceListener(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this; + prependOnceListener(event: "ready", listener: () => void): this; + prependOnceListener(event: "timeout", listener: () => void): this; + } + + interface ListenOptions { + port?: number | undefined; + host?: string | undefined; + backlog?: number | undefined; + path?: string | undefined; + exclusive?: boolean | undefined; + readableAll?: boolean | undefined; + writableAll?: boolean | undefined; + /** + * @default false + */ + ipv6Only?: boolean | undefined; + } + + // https://github.com/nodejs/node/blob/master/lib/net.js + class Server extends EventEmitter { + constructor(connectionListener?: (socket: Socket) => void); + constructor(options?: { allowHalfOpen?: boolean | undefined, pauseOnConnect?: boolean | undefined }, connectionListener?: (socket: Socket) => void); + + listen(port?: number, hostname?: string, backlog?: number, listeningListener?: () => void): this; + listen(port?: number, hostname?: string, listeningListener?: () => void): this; + listen(port?: number, backlog?: number, listeningListener?: () => void): this; + listen(port?: number, listeningListener?: () => void): this; + listen(path: string, backlog?: number, listeningListener?: () => void): this; + listen(path: string, listeningListener?: () => void): this; + listen(options: ListenOptions, listeningListener?: () => void): this; + listen(handle: any, backlog?: number, listeningListener?: () => void): this; + listen(handle: any, listeningListener?: () => void): this; + close(callback?: (err?: Error) => void): this; + address(): AddressInfo | string | null; + getConnections(cb: (error: Error | null, count: number) => void): void; + ref(): this; + unref(): this; + maxConnections: number; + connections: number; + listening: boolean; + + /** + * events.EventEmitter + * 1. close + * 2. connection + * 3. error + * 4. listening + */ + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: "close", listener: () => void): this; + addListener(event: "connection", listener: (socket: Socket) => void): this; + addListener(event: "error", listener: (err: Error) => void): this; + addListener(event: "listening", listener: () => void): this; + + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: "close"): boolean; + emit(event: "connection", socket: Socket): boolean; + emit(event: "error", err: Error): boolean; + emit(event: "listening"): boolean; + + on(event: string, listener: (...args: any[]) => void): this; + on(event: "close", listener: () => void): this; + on(event: "connection", listener: (socket: Socket) => void): this; + on(event: "error", listener: (err: Error) => void): this; + on(event: "listening", listener: () => void): this; + + once(event: string, listener: (...args: any[]) => void): this; + once(event: "close", listener: () => void): this; + once(event: "connection", listener: (socket: Socket) => void): this; + once(event: "error", listener: (err: Error) => void): this; + once(event: "listening", listener: () => void): this; + + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: "close", listener: () => void): this; + prependListener(event: "connection", listener: (socket: Socket) => void): this; + prependListener(event: "error", listener: (err: Error) => void): this; + prependListener(event: "listening", listener: () => void): this; + + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: "close", listener: () => void): this; + prependOnceListener(event: "connection", listener: (socket: Socket) => void): this; + prependOnceListener(event: "error", listener: (err: Error) => void): this; + prependOnceListener(event: "listening", listener: () => void): this; + } + + interface TcpNetConnectOpts extends TcpSocketConnectOpts, SocketConstructorOpts { + timeout?: number | undefined; + } + + interface IpcNetConnectOpts extends IpcSocketConnectOpts, SocketConstructorOpts { + timeout?: number | undefined; + } + + type NetConnectOpts = TcpNetConnectOpts | IpcNetConnectOpts; + + function createServer(connectionListener?: (socket: Socket) => void): Server; + function createServer(options?: { allowHalfOpen?: boolean | undefined, pauseOnConnect?: boolean | undefined }, connectionListener?: (socket: Socket) => void): Server; + function connect(options: NetConnectOpts, connectionListener?: () => void): Socket; + function connect(port: number, host?: string, connectionListener?: () => void): Socket; + function connect(path: string, connectionListener?: () => void): Socket; + function createConnection(options: NetConnectOpts, connectionListener?: () => void): Socket; + function createConnection(port: number, host?: string, connectionListener?: () => void): Socket; + function createConnection(path: string, connectionListener?: () => void): Socket; + function isIP(input: string): number; + function isIPv4(input: string): boolean; + function isIPv6(input: string): boolean; +} diff --git a/backend/node_modules/@types/node/os.d.ts b/backend/node_modules/@types/node/os.d.ts new file mode 100755 index 0000000..e56f0e2 --- /dev/null +++ b/backend/node_modules/@types/node/os.d.ts @@ -0,0 +1,263 @@ +declare module 'os' { + interface CpuInfo { + model: string; + speed: number; + times: { + user: number; + nice: number; + sys: number; + idle: number; + irq: number; + }; + } + + interface NetworkInterfaceBase { + address: string; + netmask: string; + mac: string; + internal: boolean; + cidr: string | null; + } + + interface NetworkInterfaceInfoIPv4 extends NetworkInterfaceBase { + family: "IPv4"; + } + + interface NetworkInterfaceInfoIPv6 extends NetworkInterfaceBase { + family: "IPv6"; + scopeid: number; + } + + interface UserInfo { + username: T; + uid: number; + gid: number; + shell: T; + homedir: T; + } + + type NetworkInterfaceInfo = NetworkInterfaceInfoIPv4 | NetworkInterfaceInfoIPv6; + + function hostname(): string; + function loadavg(): number[]; + function uptime(): number; + function freemem(): number; + function totalmem(): number; + function cpus(): CpuInfo[]; + function type(): string; + function release(): string; + function networkInterfaces(): { [index: string]: NetworkInterfaceInfo[] }; + function homedir(): string; + function userInfo(options: { encoding: 'buffer' }): UserInfo; + function userInfo(options?: { encoding: string }): UserInfo; + const constants: { + UV_UDP_REUSEADDR: number; + // signals: { [key in NodeJS.Signals]: number; }; @todo: change after migration to typescript 2.1 + signals: { + SIGHUP: number; + SIGINT: number; + SIGQUIT: number; + SIGILL: number; + SIGTRAP: number; + SIGABRT: number; + SIGIOT: number; + SIGBUS: number; + SIGFPE: number; + SIGKILL: number; + SIGUSR1: number; + SIGSEGV: number; + SIGUSR2: number; + SIGPIPE: number; + SIGALRM: number; + SIGTERM: number; + SIGCHLD: number; + SIGSTKFLT: number; + SIGCONT: number; + SIGSTOP: number; + SIGTSTP: number; + SIGBREAK: number; + SIGTTIN: number; + SIGTTOU: number; + SIGURG: number; + SIGXCPU: number; + SIGXFSZ: number; + SIGVTALRM: number; + SIGPROF: number; + SIGWINCH: number; + SIGIO: number; + SIGPOLL: number; + SIGLOST: number; + SIGPWR: number; + SIGINFO: number; + SIGSYS: number; + SIGUNUSED: number; + }; + errno: { + E2BIG: number; + EACCES: number; + EADDRINUSE: number; + EADDRNOTAVAIL: number; + EAFNOSUPPORT: number; + EAGAIN: number; + EALREADY: number; + EBADF: number; + EBADMSG: number; + EBUSY: number; + ECANCELED: number; + ECHILD: number; + ECONNABORTED: number; + ECONNREFUSED: number; + ECONNRESET: number; + EDEADLK: number; + EDESTADDRREQ: number; + EDOM: number; + EDQUOT: number; + EEXIST: number; + EFAULT: number; + EFBIG: number; + EHOSTUNREACH: number; + EIDRM: number; + EILSEQ: number; + EINPROGRESS: number; + EINTR: number; + EINVAL: number; + EIO: number; + EISCONN: number; + EISDIR: number; + ELOOP: number; + EMFILE: number; + EMLINK: number; + EMSGSIZE: number; + EMULTIHOP: number; + ENAMETOOLONG: number; + ENETDOWN: number; + ENETRESET: number; + ENETUNREACH: number; + ENFILE: number; + ENOBUFS: number; + ENODATA: number; + ENODEV: number; + ENOENT: number; + ENOEXEC: number; + ENOLCK: number; + ENOLINK: number; + ENOMEM: number; + ENOMSG: number; + ENOPROTOOPT: number; + ENOSPC: number; + ENOSR: number; + ENOSTR: number; + ENOSYS: number; + ENOTCONN: number; + ENOTDIR: number; + ENOTEMPTY: number; + ENOTSOCK: number; + ENOTSUP: number; + ENOTTY: number; + ENXIO: number; + EOPNOTSUPP: number; + EOVERFLOW: number; + EPERM: number; + EPIPE: number; + EPROTO: number; + EPROTONOSUPPORT: number; + EPROTOTYPE: number; + ERANGE: number; + EROFS: number; + ESPIPE: number; + ESRCH: number; + ESTALE: number; + ETIME: number; + ETIMEDOUT: number; + ETXTBSY: number; + EWOULDBLOCK: number; + EXDEV: number; + WSAEINTR: number; + WSAEBADF: number; + WSAEACCES: number; + WSAEFAULT: number; + WSAEINVAL: number; + WSAEMFILE: number; + WSAEWOULDBLOCK: number; + WSAEINPROGRESS: number; + WSAEALREADY: number; + WSAENOTSOCK: number; + WSAEDESTADDRREQ: number; + WSAEMSGSIZE: number; + WSAEPROTOTYPE: number; + WSAENOPROTOOPT: number; + WSAEPROTONOSUPPORT: number; + WSAESOCKTNOSUPPORT: number; + WSAEOPNOTSUPP: number; + WSAEPFNOSUPPORT: number; + WSAEAFNOSUPPORT: number; + WSAEADDRINUSE: number; + WSAEADDRNOTAVAIL: number; + WSAENETDOWN: number; + WSAENETUNREACH: number; + WSAENETRESET: number; + WSAECONNABORTED: number; + WSAECONNRESET: number; + WSAENOBUFS: number; + WSAEISCONN: number; + WSAENOTCONN: number; + WSAESHUTDOWN: number; + WSAETOOMANYREFS: number; + WSAETIMEDOUT: number; + WSAECONNREFUSED: number; + WSAELOOP: number; + WSAENAMETOOLONG: number; + WSAEHOSTDOWN: number; + WSAEHOSTUNREACH: number; + WSAENOTEMPTY: number; + WSAEPROCLIM: number; + WSAEUSERS: number; + WSAEDQUOT: number; + WSAESTALE: number; + WSAEREMOTE: number; + WSASYSNOTREADY: number; + WSAVERNOTSUPPORTED: number; + WSANOTINITIALISED: number; + WSAEDISCON: number; + WSAENOMORE: number; + WSAECANCELLED: number; + WSAEINVALIDPROCTABLE: number; + WSAEINVALIDPROVIDER: number; + WSAEPROVIDERFAILEDINIT: number; + WSASYSCALLFAILURE: number; + WSASERVICE_NOT_FOUND: number; + WSATYPE_NOT_FOUND: number; + WSA_E_NO_MORE: number; + WSA_E_CANCELLED: number; + WSAEREFUSED: number; + }; + priority: { + PRIORITY_LOW: number; + PRIORITY_BELOW_NORMAL: number; + PRIORITY_NORMAL: number; + PRIORITY_ABOVE_NORMAL: number; + PRIORITY_HIGH: number; + PRIORITY_HIGHEST: number; + } + }; + function arch(): string; + function platform(): NodeJS.Platform; + function tmpdir(): string; + const EOL: string; + function endianness(): "BE" | "LE"; + /** + * Gets the priority of a process. + * Defaults to current process. + */ + function getPriority(pid?: number): number; + /** + * Sets the priority of the current process. + * @param priority Must be in range of -20 to 19 + */ + function setPriority(priority: number): void; + /** + * Sets the priority of the process specified process. + * @param priority Must be in range of -20 to 19 + */ + function setPriority(pid: number, priority: number): void; +} diff --git a/backend/node_modules/@types/node/package.json b/backend/node_modules/@types/node/package.json new file mode 100755 index 0000000..8941c3e --- /dev/null +++ b/backend/node_modules/@types/node/package.json @@ -0,0 +1,195 @@ +{ + "name": "@types/node", + "version": "12.20.55", + "description": "TypeScript definitions for Node.js", + "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node", + "license": "MIT", + "contributors": [ + { + "name": "Microsoft TypeScript", + "url": "https://github.com/Microsoft", + "githubUsername": "Microsoft" + }, + { + "name": "DefinitelyTyped", + "url": "https://github.com/DefinitelyTyped", + "githubUsername": "DefinitelyTyped" + }, + { + "name": "Alberto Schiabel", + "url": "https://github.com/jkomyno", + "githubUsername": "jkomyno" + }, + { + "name": "Alvis HT Tang", + "url": "https://github.com/alvis", + "githubUsername": "alvis" + }, + { + "name": "Andrew Makarov", + "url": "https://github.com/r3nya", + "githubUsername": "r3nya" + }, + { + "name": "Benjamin Toueg", + "url": "https://github.com/btoueg", + "githubUsername": "btoueg" + }, + { + "name": "Chigozirim C.", + "url": "https://github.com/smac89", + "githubUsername": "smac89" + }, + { + "name": "David Junger", + "url": "https://github.com/touffy", + "githubUsername": "touffy" + }, + { + "name": "Deividas Bakanas", + "url": "https://github.com/DeividasBakanas", + "githubUsername": "DeividasBakanas" + }, + { + "name": "Eugene Y. Q. Shen", + "url": "https://github.com/eyqs", + "githubUsername": "eyqs" + }, + { + "name": "Hannes Magnusson", + "url": "https://github.com/Hannes-Magnusson-CK", + "githubUsername": "Hannes-Magnusson-CK" + }, + { + "name": "Hoàng Văn Khải", + "url": "https://github.com/KSXGitHub", + "githubUsername": "KSXGitHub" + }, + { + "name": "Huw", + "url": "https://github.com/hoo29", + "githubUsername": "hoo29" + }, + { + "name": "Kelvin Jin", + "url": "https://github.com/kjin", + "githubUsername": "kjin" + }, + { + "name": "Klaus Meinhardt", + "url": "https://github.com/ajafff", + "githubUsername": "ajafff" + }, + { + "name": "Lishude", + "url": "https://github.com/islishude", + "githubUsername": "islishude" + }, + { + "name": "Mariusz Wiktorczyk", + "url": "https://github.com/mwiktorczyk", + "githubUsername": "mwiktorczyk" + }, + { + "name": "Mohsen Azimi", + "url": "https://github.com/mohsen1", + "githubUsername": "mohsen1" + }, + { + "name": "Nicolas Even", + "url": "https://github.com/n-e", + "githubUsername": "n-e" + }, + { + "name": "Nikita Galkin", + "url": "https://github.com/galkin", + "githubUsername": "galkin" + }, + { + "name": "Parambir Singh", + "url": "https://github.com/parambirs", + "githubUsername": "parambirs" + }, + { + "name": "Sebastian Silbermann", + "url": "https://github.com/eps1lon", + "githubUsername": "eps1lon" + }, + { + "name": "Simon Schick", + "url": "https://github.com/SimonSchick", + "githubUsername": "SimonSchick" + }, + { + "name": "Thomas den Hollander", + "url": "https://github.com/ThomasdenH", + "githubUsername": "ThomasdenH" + }, + { + "name": "Wilco Bakker", + "url": "https://github.com/WilcoBakker", + "githubUsername": "WilcoBakker" + }, + { + "name": "wwwy3y3", + "url": "https://github.com/wwwy3y3", + "githubUsername": "wwwy3y3" + }, + { + "name": "Zane Hannan AU", + "url": "https://github.com/ZaneHannanAU", + "githubUsername": "ZaneHannanAU" + }, + { + "name": "Samuel Ainsworth", + "url": "https://github.com/samuela", + "githubUsername": "samuela" + }, + { + "name": "Kyle Uehlein", + "url": "https://github.com/kuehlein", + "githubUsername": "kuehlein" + }, + { + "name": "Thanik Bhongbhibhat", + "url": "https://github.com/bhongy", + "githubUsername": "bhongy" + }, + { + "name": "Marcin Kopacz", + "url": "https://github.com/chyzwar", + "githubUsername": "chyzwar" + }, + { + "name": "Trivikram Kamat", + "url": "https://github.com/trivikr", + "githubUsername": "trivikr" + }, + { + "name": "Junxiao Shi", + "url": "https://github.com/yoursunny", + "githubUsername": "yoursunny" + }, + { + "name": "Ilia Baryshnikov", + "url": "https://github.com/qwelias", + "githubUsername": "qwelias" + }, + { + "name": "ExE Boss", + "url": "https://github.com/ExE-Boss", + "githubUsername": "ExE-Boss" + } + ], + "main": "", + "types": "index.d.ts", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/node" + }, + "scripts": {}, + "dependencies": {}, + "typesPublisherContentHash": "3d29774cbf5180f3bd5b1bd954e268a18a74c90d34acff15c56308ec98960bec", + "typeScriptVersion": "3.9" +} \ No newline at end of file diff --git a/backend/node_modules/@types/node/path.d.ts b/backend/node_modules/@types/node/path.d.ts new file mode 100755 index 0000000..149a5f3 --- /dev/null +++ b/backend/node_modules/@types/node/path.d.ts @@ -0,0 +1,159 @@ +declare module 'path' { + /** + * A parsed path object generated by path.parse() or consumed by path.format(). + */ + interface ParsedPath { + /** + * The root of the path such as '/' or 'c:\' + */ + root: string; + /** + * The full directory path such as '/home/user/dir' or 'c:\path\dir' + */ + dir: string; + /** + * The file name including extension (if any) such as 'index.html' + */ + base: string; + /** + * The file extension (if any) such as '.html' + */ + ext: string; + /** + * The file name without extension (if any) such as 'index' + */ + name: string; + } + interface FormatInputPathObject { + /** + * The root of the path such as '/' or 'c:\' + */ + root?: string | undefined; + /** + * The full directory path such as '/home/user/dir' or 'c:\path\dir' + */ + dir?: string | undefined; + /** + * The file name including extension (if any) such as 'index.html' + */ + base?: string | undefined; + /** + * The file extension (if any) such as '.html' + */ + ext?: string | undefined; + /** + * The file name without extension (if any) such as 'index' + */ + name?: string | undefined; + } + + /** + * Normalize a string path, reducing '..' and '.' parts. + * When multiple slashes are found, they're replaced by a single one; when the path contains a trailing slash, it is preserved. On Windows backslashes are used. + * + * @param p string path to normalize. + */ + function normalize(p: string): string; + /** + * Join all arguments together and normalize the resulting path. + * Arguments must be strings. In v0.8, non-string arguments were silently ignored. In v0.10 and up, an exception is thrown. + * + * @param paths paths to join. + */ + function join(...paths: string[]): string; + /** + * The right-most parameter is considered {to}. Other parameters are considered an array of {from}. + * + * Starting from leftmost {from} parameter, resolves {to} to an absolute path. + * + * If {to} isn't already absolute, {from} arguments are prepended in right to left order, + * until an absolute path is found. If after using all {from} paths still no absolute path is found, + * the current working directory is used as well. The resulting path is normalized, + * and trailing slashes are removed unless the path gets resolved to the root directory. + * + * @param pathSegments string paths to join. Non-string arguments are ignored. + */ + function resolve(...pathSegments: string[]): string; + /** + * Determines whether {path} is an absolute path. An absolute path will always resolve to the same location, regardless of the working directory. + * + * @param path path to test. + */ + function isAbsolute(path: string): boolean; + /** + * Solve the relative path from {from} to {to}. + * At times we have two absolute paths, and we need to derive the relative path from one to the other. This is actually the reverse transform of path.resolve. + */ + function relative(from: string, to: string): string; + /** + * Return the directory name of a path. Similar to the Unix dirname command. + * + * @param p the path to evaluate. + */ + function dirname(p: string): string; + /** + * Return the last portion of a path. Similar to the Unix basename command. + * Often used to extract the file name from a fully qualified path. + * + * @param p the path to evaluate. + * @param ext optionally, an extension to remove from the result. + */ + function basename(p: string, ext?: string): string; + /** + * Return the extension of the path, from the last '.' to end of string in the last portion of the path. + * If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string + * + * @param p the path to evaluate. + */ + function extname(p: string): string; + /** + * The platform-specific file separator. '\\' or '/'. + */ + const sep: '\\' | '/'; + /** + * The platform-specific file delimiter. ';' or ':'. + */ + const delimiter: ';' | ':'; + /** + * Returns an object from a path string - the opposite of format(). + * + * @param pathString path to evaluate. + */ + function parse(pathString: string): ParsedPath; + /** + * Returns a path string from an object - the opposite of parse(). + * + * @param pathString path to evaluate. + */ + function format(pathObject: FormatInputPathObject): string; + + namespace posix { + function normalize(p: string): string; + function join(...paths: string[]): string; + function resolve(...pathSegments: string[]): string; + function isAbsolute(p: string): boolean; + function relative(from: string, to: string): string; + function dirname(p: string): string; + function basename(p: string, ext?: string): string; + function extname(p: string): string; + const sep: string; + const delimiter: string; + function parse(p: string): ParsedPath; + function format(pP: FormatInputPathObject): string; + } + + namespace win32 { + function normalize(p: string): string; + function join(...paths: string[]): string; + function resolve(...pathSegments: string[]): string; + function isAbsolute(p: string): boolean; + function relative(from: string, to: string): string; + function dirname(p: string): string; + function basename(p: string, ext?: string): string; + function extname(p: string): string; + const sep: string; + const delimiter: string; + function parse(p: string): ParsedPath; + function format(pP: FormatInputPathObject): string; + } +} diff --git a/backend/node_modules/@types/node/perf_hooks.d.ts b/backend/node_modules/@types/node/perf_hooks.d.ts new file mode 100755 index 0000000..7d21854 --- /dev/null +++ b/backend/node_modules/@types/node/perf_hooks.d.ts @@ -0,0 +1,259 @@ +declare module 'perf_hooks' { + import { AsyncResource } from 'async_hooks'; + + interface PerformanceEntry { + /** + * The total number of milliseconds elapsed for this entry. + * This value will not be meaningful for all Performance Entry types. + */ + readonly duration: number; + + /** + * The name of the performance entry. + */ + readonly name: string; + + /** + * The high resolution millisecond timestamp marking the starting time of the Performance Entry. + */ + readonly startTime: number; + + /** + * The type of the performance entry. + * Currently it may be one of: 'node', 'mark', 'measure', 'gc', or 'function'. + */ + readonly entryType: string; + + /** + * When performanceEntry.entryType is equal to 'gc', the performance.kind property identifies + * the type of garbage collection operation that occurred. + * The value may be one of perf_hooks.constants. + */ + readonly kind?: number | undefined; + } + + interface PerformanceNodeTiming extends PerformanceEntry { + /** + * The high resolution millisecond timestamp at which the Node.js process completed bootstrap. + * If bootstrapping has not yet finished, the property has the value of -1. + */ + readonly bootstrapComplete: number; + + /** + * The high resolution millisecond timestamp at which the Node.js process completed bootstrapping. + * If bootstrapping has not yet finished, the property has the value of -1. + */ + readonly environment: number; + + /** + * The high resolution millisecond timestamp at which the Node.js environment was initialized. + */ + readonly idleTime: number; + + /** + * The high resolution millisecond timestamp at which the Node.js event loop exited. + * If the event loop has not yet exited, the property has the value of -1. + * It can only have a value of not -1 in a handler of the 'exit' event. + */ + readonly loopExit: number; + + /** + * The high resolution millisecond timestamp at which the Node.js event loop started. + * If the event loop has not yet started (e.g., in the first tick of the main script), the property has the value of -1. + */ + readonly loopStart: number; + + /** + * The high resolution millisecond timestamp at which the Node.js process was initialized. + */ + readonly nodeStart: number; + + /** + * The high resolution millisecond timestamp at which the V8 platform was initialized. + */ + readonly v8Start: number; + } + + interface EventLoopUtilization { + idle: number; + active: number; + utilization: number; + } + + interface Performance { + /** + * If name is not provided, removes all PerformanceMark objects from the Performance Timeline. + * If name is provided, removes only the named mark. + * @param name + */ + clearMarks(name?: string): void; + + /** + * Creates a new PerformanceMark entry in the Performance Timeline. + * A PerformanceMark is a subclass of PerformanceEntry whose performanceEntry.entryType is always 'mark', + * and whose performanceEntry.duration is always 0. + * Performance marks are used to mark specific significant moments in the Performance Timeline. + * @param name + */ + mark(name?: string): void; + + /** + * Creates a new PerformanceMeasure entry in the Performance Timeline. + * A PerformanceMeasure is a subclass of PerformanceEntry whose performanceEntry.entryType is always 'measure', + * and whose performanceEntry.duration measures the number of milliseconds elapsed since startMark and endMark. + * + * The startMark argument may identify any existing PerformanceMark in the the Performance Timeline, or may identify + * any of the timestamp properties provided by the PerformanceNodeTiming class. If the named startMark does not exist, + * then startMark is set to timeOrigin by default. + * + * The endMark argument must identify any existing PerformanceMark in the the Performance Timeline or any of the timestamp + * properties provided by the PerformanceNodeTiming class. If the named endMark does not exist, an error will be thrown. + * @param name + * @param startMark + * @param endMark + */ + measure(name: string, startMark?: string, endMark?: string): void; + + /** + * An instance of the PerformanceNodeTiming class that provides performance metrics for specific Node.js operational milestones. + */ + readonly nodeTiming: PerformanceNodeTiming; + + /** + * @return the current high resolution millisecond timestamp + */ + now(): number; + + /** + * The timeOrigin specifies the high resolution millisecond timestamp from which all performance metric durations are measured. + */ + readonly timeOrigin: number; + + /** + * Wraps a function within a new function that measures the running time of the wrapped function. + * A PerformanceObserver must be subscribed to the 'function' event type in order for the timing details to be accessed. + * @param fn + */ + timerify any>(fn: T): T; + + /** + * eventLoopUtilization is similar to CPU utilization except that it is calculated using high precision wall-clock time. + * It represents the percentage of time the event loop has spent outside the event loop's event provider (e.g. epoll_wait). + * No other CPU idle time is taken into consideration. + * + * @param util1 The result of a previous call to eventLoopUtilization() + * @param util2 The result of a previous call to eventLoopUtilization() prior to util1 + */ + eventLoopUtilization(util1?: EventLoopUtilization, util2?: EventLoopUtilization): EventLoopUtilization; + } + + interface PerformanceObserverEntryList { + /** + * @return a list of PerformanceEntry objects in chronological order with respect to performanceEntry.startTime. + */ + getEntries(): PerformanceEntry[]; + + /** + * @return a list of PerformanceEntry objects in chronological order with respect to performanceEntry.startTime + * whose performanceEntry.name is equal to name, and optionally, whose performanceEntry.entryType is equal to type. + */ + getEntriesByName(name: string, type?: string): PerformanceEntry[]; + + /** + * @return Returns a list of PerformanceEntry objects in chronological order with respect to performanceEntry.startTime + * whose performanceEntry.entryType is equal to type. + */ + getEntriesByType(type: string): PerformanceEntry[]; + } + + type PerformanceObserverCallback = (list: PerformanceObserverEntryList, observer: PerformanceObserver) => void; + + class PerformanceObserver extends AsyncResource { + constructor(callback: PerformanceObserverCallback); + + /** + * Disconnects the PerformanceObserver instance from all notifications. + */ + disconnect(): void; + + /** + * Subscribes the PerformanceObserver instance to notifications of new PerformanceEntry instances identified by options.entryTypes. + * When options.buffered is false, the callback will be invoked once for every PerformanceEntry instance. + * Property buffered defaults to false. + * @param options + */ + observe(options: { entryTypes: ReadonlyArray; buffered?: boolean | undefined }): void; + } + + namespace constants { + const NODE_PERFORMANCE_GC_MAJOR: number; + const NODE_PERFORMANCE_GC_MINOR: number; + const NODE_PERFORMANCE_GC_INCREMENTAL: number; + const NODE_PERFORMANCE_GC_WEAKCB: number; + } + + const performance: Performance; + + interface EventLoopMonitorOptions { + /** + * The sampling rate in milliseconds. + * Must be greater than zero. + * @default 10 + */ + resolution?: number | undefined; + } + + interface EventLoopDelayMonitor { + /** + * Enables the event loop delay sample timer. Returns `true` if the timer was started, `false` if it was already started. + */ + enable(): boolean; + /** + * Disables the event loop delay sample timer. Returns `true` if the timer was stopped, `false` if it was already stopped. + */ + disable(): boolean; + + /** + * Resets the collected histogram data. + */ + reset(): void; + + /** + * Returns the value at the given percentile. + * @param percentile A percentile value between 1 and 100. + */ + percentile(percentile: number): number; + + /** + * A `Map` object detailing the accumulated percentile distribution. + */ + readonly percentiles: Map; + + /** + * The number of times the event loop delay exceeded the maximum 1 hour eventloop delay threshold. + */ + readonly exceeds: number; + + /** + * The minimum recorded event loop delay. + */ + readonly min: number; + + /** + * The maximum recorded event loop delay. + */ + readonly max: number; + + /** + * The mean of the recorded event loop delays. + */ + readonly mean: number; + + /** + * The standard deviation of the recorded event loop delays. + */ + readonly stddev: number; + } + + function monitorEventLoopDelay(options?: EventLoopMonitorOptions): EventLoopDelayMonitor; +} diff --git a/backend/node_modules/@types/node/process.d.ts b/backend/node_modules/@types/node/process.d.ts new file mode 100755 index 0000000..1fab076 --- /dev/null +++ b/backend/node_modules/@types/node/process.d.ts @@ -0,0 +1,15 @@ +declare module 'process' { + import * as tty from 'tty'; + + global { + namespace NodeJS { + // this namespace merge is here because these are specifically used + // as the type for process.stdin, process.stdout, and process.stderr. + // they can't live in tty.d.ts because we need to disambiguate the imported name. + interface ReadStream extends tty.ReadStream {} + interface WriteStream extends tty.WriteStream {} + } + } + + export = process; +} diff --git a/backend/node_modules/@types/node/punycode.d.ts b/backend/node_modules/@types/node/punycode.d.ts new file mode 100755 index 0000000..b21ee8e --- /dev/null +++ b/backend/node_modules/@types/node/punycode.d.ts @@ -0,0 +1,75 @@ +/** + * @deprecated since v7.0.0 + * The version of the punycode module bundled in Node.js is being deprecated. + * In a future major version of Node.js this module will be removed. + * Users currently depending on the punycode module should switch to using + * the userland-provided Punycode.js module instead. + */ +declare module 'punycode' { + /** + * @deprecated since v7.0.0 + * The version of the punycode module bundled in Node.js is being deprecated. + * In a future major version of Node.js this module will be removed. + * Users currently depending on the punycode module should switch to using + * the userland-provided Punycode.js module instead. + */ + function decode(string: string): string; + /** + * @deprecated since v7.0.0 + * The version of the punycode module bundled in Node.js is being deprecated. + * In a future major version of Node.js this module will be removed. + * Users currently depending on the punycode module should switch to using + * the userland-provided Punycode.js module instead. + */ + function encode(string: string): string; + /** + * @deprecated since v7.0.0 + * The version of the punycode module bundled in Node.js is being deprecated. + * In a future major version of Node.js this module will be removed. + * Users currently depending on the punycode module should switch to using + * the userland-provided Punycode.js module instead. + */ + function toUnicode(domain: string): string; + /** + * @deprecated since v7.0.0 + * The version of the punycode module bundled in Node.js is being deprecated. + * In a future major version of Node.js this module will be removed. + * Users currently depending on the punycode module should switch to using + * the userland-provided Punycode.js module instead. + */ + function toASCII(domain: string): string; + /** + * @deprecated since v7.0.0 + * The version of the punycode module bundled in Node.js is being deprecated. + * In a future major version of Node.js this module will be removed. + * Users currently depending on the punycode module should switch to using + * the userland-provided Punycode.js module instead. + */ + const ucs2: ucs2; + interface ucs2 { + /** + * @deprecated since v7.0.0 + * The version of the punycode module bundled in Node.js is being deprecated. + * In a future major version of Node.js this module will be removed. + * Users currently depending on the punycode module should switch to using + * the userland-provided Punycode.js module instead. + */ + decode(string: string): number[]; + /** + * @deprecated since v7.0.0 + * The version of the punycode module bundled in Node.js is being deprecated. + * In a future major version of Node.js this module will be removed. + * Users currently depending on the punycode module should switch to using + * the userland-provided Punycode.js module instead. + */ + encode(codePoints: ReadonlyArray): string; + } + /** + * @deprecated since v7.0.0 + * The version of the punycode module bundled in Node.js is being deprecated. + * In a future major version of Node.js this module will be removed. + * Users currently depending on the punycode module should switch to using + * the userland-provided Punycode.js module instead. + */ + const version: string; +} diff --git a/backend/node_modules/@types/node/querystring.d.ts b/backend/node_modules/@types/node/querystring.d.ts new file mode 100755 index 0000000..2bb1e92 --- /dev/null +++ b/backend/node_modules/@types/node/querystring.d.ts @@ -0,0 +1,29 @@ +declare module 'querystring' { + interface StringifyOptions { + encodeURIComponent?: ((str: string) => string) | undefined; + } + + interface ParseOptions { + maxKeys?: number | undefined; + decodeURIComponent?: ((str: string) => string) | undefined; + } + + interface ParsedUrlQuery { [key: string]: string | string[]; } + + interface ParsedUrlQueryInput { + [key: string]: string | number | boolean | ReadonlyArray | ReadonlyArray | ReadonlyArray | undefined | null; + } + + function stringify(obj?: ParsedUrlQueryInput, sep?: string, eq?: string, options?: StringifyOptions): string; + function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): ParsedUrlQuery; + /** + * The querystring.encode() function is an alias for querystring.stringify(). + */ + const encode: typeof stringify; + /** + * The querystring.decode() function is an alias for querystring.parse(). + */ + const decode: typeof parse; + function escape(str: string): string; + function unescape(str: string): string; +} diff --git a/backend/node_modules/@types/node/readline.d.ts b/backend/node_modules/@types/node/readline.d.ts new file mode 100755 index 0000000..943e113 --- /dev/null +++ b/backend/node_modules/@types/node/readline.d.ts @@ -0,0 +1,158 @@ +declare module 'readline' { + import EventEmitter = require('events'); + + interface Key { + sequence?: string | undefined; + name?: string | undefined; + ctrl?: boolean | undefined; + meta?: boolean | undefined; + shift?: boolean | undefined; + } + + class Interface extends EventEmitter { + readonly terminal: boolean; + + // Need direct access to line/cursor data, for use in external processes + // see: https://github.com/nodejs/node/issues/30347 + /** The current input data */ + readonly line: string; + /** The current cursor position in the input line */ + readonly cursor: number; + + /** + * NOTE: According to the documentation: + * + * > Instances of the `readline.Interface` class are constructed using the + * > `readline.createInterface()` method. + * + * @see https://nodejs.org/dist/latest-v10.x/docs/api/readline.html#readline_class_interface + */ + protected constructor(input: NodeJS.ReadableStream, output?: NodeJS.WritableStream, completer?: Completer | AsyncCompleter, terminal?: boolean); + /** + * NOTE: According to the documentation: + * + * > Instances of the `readline.Interface` class are constructed using the + * > `readline.createInterface()` method. + * + * @see https://nodejs.org/dist/latest-v10.x/docs/api/readline.html#readline_class_interface + */ + protected constructor(options: ReadLineOptions); + + setPrompt(prompt: string): void; + prompt(preserveCursor?: boolean): void; + question(query: string, callback: (answer: string) => void): void; + pause(): this; + resume(): this; + close(): void; + write(data: string | Buffer, key?: Key): void; + write(data: undefined | null | string | Buffer, key: Key): void; + + /** + * events.EventEmitter + * 1. close + * 2. line + * 3. pause + * 4. resume + * 5. SIGCONT + * 6. SIGINT + * 7. SIGTSTP + */ + + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: "close", listener: () => void): this; + addListener(event: "line", listener: (input: string) => void): this; + addListener(event: "pause", listener: () => void): this; + addListener(event: "resume", listener: () => void): this; + addListener(event: "SIGCONT", listener: () => void): this; + addListener(event: "SIGINT", listener: () => void): this; + addListener(event: "SIGTSTP", listener: () => void): this; + + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: "close"): boolean; + emit(event: "line", input: string): boolean; + emit(event: "pause"): boolean; + emit(event: "resume"): boolean; + emit(event: "SIGCONT"): boolean; + emit(event: "SIGINT"): boolean; + emit(event: "SIGTSTP"): boolean; + + on(event: string, listener: (...args: any[]) => void): this; + on(event: "close", listener: () => void): this; + on(event: "line", listener: (input: string) => void): this; + on(event: "pause", listener: () => void): this; + on(event: "resume", listener: () => void): this; + on(event: "SIGCONT", listener: () => void): this; + on(event: "SIGINT", listener: () => void): this; + on(event: "SIGTSTP", listener: () => void): this; + + once(event: string, listener: (...args: any[]) => void): this; + once(event: "close", listener: () => void): this; + once(event: "line", listener: (input: string) => void): this; + once(event: "pause", listener: () => void): this; + once(event: "resume", listener: () => void): this; + once(event: "SIGCONT", listener: () => void): this; + once(event: "SIGINT", listener: () => void): this; + once(event: "SIGTSTP", listener: () => void): this; + + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: "close", listener: () => void): this; + prependListener(event: "line", listener: (input: string) => void): this; + prependListener(event: "pause", listener: () => void): this; + prependListener(event: "resume", listener: () => void): this; + prependListener(event: "SIGCONT", listener: () => void): this; + prependListener(event: "SIGINT", listener: () => void): this; + prependListener(event: "SIGTSTP", listener: () => void): this; + + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: "close", listener: () => void): this; + prependOnceListener(event: "line", listener: (input: string) => void): this; + prependOnceListener(event: "pause", listener: () => void): this; + prependOnceListener(event: "resume", listener: () => void): this; + prependOnceListener(event: "SIGCONT", listener: () => void): this; + prependOnceListener(event: "SIGINT", listener: () => void): this; + prependOnceListener(event: "SIGTSTP", listener: () => void): this; + [Symbol.asyncIterator](): AsyncIterableIterator; + } + + type ReadLine = Interface; // type forwarded for backwards compatiblity + + type Completer = (line: string) => CompleterResult; + type AsyncCompleter = (line: string, callback: (err?: null | Error, result?: CompleterResult) => void) => any; + + type CompleterResult = [string[], string]; + + interface ReadLineOptions { + input: NodeJS.ReadableStream; + output?: NodeJS.WritableStream | undefined; + completer?: Completer | AsyncCompleter | undefined; + terminal?: boolean | undefined; + historySize?: number | undefined; + prompt?: string | undefined; + crlfDelay?: number | undefined; + removeHistoryDuplicates?: boolean | undefined; + escapeCodeTimeout?: number | undefined; + } + + function createInterface(input: NodeJS.ReadableStream, output?: NodeJS.WritableStream, completer?: Completer | AsyncCompleter, terminal?: boolean): Interface; + function createInterface(options: ReadLineOptions): Interface; + function emitKeypressEvents(stream: NodeJS.ReadableStream, readlineInterface?: Interface): void; + + type Direction = -1 | 0 | 1; + + /** + * Clears the current line of this WriteStream in a direction identified by `dir`. + */ + function clearLine(stream: NodeJS.WritableStream, dir: Direction, callback?: () => void): boolean; + /** + * Clears this `WriteStream` from the current cursor down. + */ + function clearScreenDown(stream: NodeJS.WritableStream, callback?: () => void): boolean; + /** + * Moves this WriteStream's cursor to the specified position. + */ + function cursorTo(stream: NodeJS.WritableStream, x: number, y?: number, callback?: () => void): boolean; + /** + * Moves this WriteStream's cursor relative to its current position. + */ + function moveCursor(stream: NodeJS.WritableStream, dx: number, dy: number, callback?: () => void): boolean; +} diff --git a/backend/node_modules/@types/node/repl.d.ts b/backend/node_modules/@types/node/repl.d.ts new file mode 100755 index 0000000..b1b79fc --- /dev/null +++ b/backend/node_modules/@types/node/repl.d.ts @@ -0,0 +1,390 @@ +declare module 'repl' { + import { Interface, Completer, AsyncCompleter } from 'readline'; + import { Context } from 'vm'; + import { InspectOptions } from 'util'; + + interface ReplOptions { + /** + * The input prompt to display. + * @default "> " + */ + prompt?: string | undefined; + /** + * The `Readable` stream from which REPL input will be read. + * @default process.stdin + */ + input?: NodeJS.ReadableStream | undefined; + /** + * The `Writable` stream to which REPL output will be written. + * @default process.stdout + */ + output?: NodeJS.WritableStream | undefined; + /** + * If `true`, specifies that the output should be treated as a TTY terminal, and have + * ANSI/VT100 escape codes written to it. + * Default: checking the value of the `isTTY` property on the output stream upon + * instantiation. + */ + terminal?: boolean | undefined; + /** + * The function to be used when evaluating each given line of input. + * Default: an async wrapper for the JavaScript `eval()` function. An `eval` function can + * error with `repl.Recoverable` to indicate the input was incomplete and prompt for + * additional lines. + * + * @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_default_evaluation + * @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_custom_evaluation_functions + */ + eval?: REPLEval | undefined; + /** + * If `true`, specifies that the default `writer` function should include ANSI color + * styling to REPL output. If a custom `writer` function is provided then this has no + * effect. + * Default: the REPL instance's `terminal` value. + */ + useColors?: boolean | undefined; + /** + * If `true`, specifies that the default evaluation function will use the JavaScript + * `global` as the context as opposed to creating a new separate context for the REPL + * instance. The node CLI REPL sets this value to `true`. + * Default: `false`. + */ + useGlobal?: boolean | undefined; + /** + * If `true`, specifies that the default writer will not output the return value of a + * command if it evaluates to `undefined`. + * Default: `false`. + */ + ignoreUndefined?: boolean | undefined; + /** + * The function to invoke to format the output of each command before writing to `output`. + * Default: a wrapper for `util.inspect`. + * + * @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_customizing_repl_output + */ + writer?: REPLWriter | undefined; + /** + * An optional function used for custom Tab auto completion. + * + * @see https://nodejs.org/dist/latest-v11.x/docs/api/readline.html#readline_use_of_the_completer_function + */ + completer?: Completer | AsyncCompleter | undefined; + /** + * A flag that specifies whether the default evaluator executes all JavaScript commands in + * strict mode or default (sloppy) mode. + * Accepted values are: + * - `repl.REPL_MODE_SLOPPY` - evaluates expressions in sloppy mode. + * - `repl.REPL_MODE_STRICT` - evaluates expressions in strict mode. This is equivalent to + * prefacing every repl statement with `'use strict'`. + */ + replMode?: typeof REPL_MODE_SLOPPY | typeof REPL_MODE_STRICT | undefined; + /** + * Stop evaluating the current piece of code when `SIGINT` is received, i.e. `Ctrl+C` is + * pressed. This cannot be used together with a custom `eval` function. + * Default: `false`. + */ + breakEvalOnSigint?: boolean | undefined; + } + + type REPLEval = (this: REPLServer, evalCmd: string, context: Context, file: string, cb: (err: Error | null, result: any) => void) => void; + type REPLWriter = (this: REPLServer, obj: any) => string; + + /** + * This is the default "writer" value, if none is passed in the REPL options, + * and it can be overridden by custom print functions. + */ + const writer: REPLWriter & { options: InspectOptions }; + + type REPLCommandAction = (this: REPLServer, text: string) => void; + + interface REPLCommand { + /** + * Help text to be displayed when `.help` is entered. + */ + help?: string | undefined; + /** + * The function to execute, optionally accepting a single string argument. + */ + action: REPLCommandAction; + } + + /** + * Provides a customizable Read-Eval-Print-Loop (REPL). + * + * Instances of `repl.REPLServer` will accept individual lines of user input, evaluate those + * according to a user-defined evaluation function, then output the result. Input and output + * may be from `stdin` and `stdout`, respectively, or may be connected to any Node.js `stream`. + * + * Instances of `repl.REPLServer` support automatic completion of inputs, simplistic Emacs-style + * line editing, multi-line inputs, ANSI-styled output, saving and restoring current REPL session + * state, error recovery, and customizable evaluation functions. + * + * Instances of `repl.REPLServer` are created using the `repl.start()` method and _should not_ + * be created directly using the JavaScript `new` keyword. + * + * @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_repl + */ + class REPLServer extends Interface { + /** + * The `vm.Context` provided to the `eval` function to be used for JavaScript + * evaluation. + */ + readonly context: Context; + /** + * Outdated alias for `input`. + */ + readonly inputStream: NodeJS.ReadableStream; + /** + * Outdated alias for `output`. + */ + readonly outputStream: NodeJS.WritableStream; + /** + * The `Readable` stream from which REPL input will be read. + */ + readonly input: NodeJS.ReadableStream; + /** + * The `Writable` stream to which REPL output will be written. + */ + readonly output: NodeJS.WritableStream; + /** + * The commands registered via `replServer.defineCommand()`. + */ + readonly commands: { readonly [name: string]: REPLCommand | undefined }; + /** + * A value indicating whether the REPL is currently in "editor mode". + * + * @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_commands_and_special_keys + */ + readonly editorMode: boolean; + /** + * A value indicating whether the `_` variable has been assigned. + * + * @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable + */ + readonly underscoreAssigned: boolean; + /** + * The last evaluation result from the REPL (assigned to the `_` variable inside of the REPL). + * + * @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable + */ + readonly last: any; + /** + * A value indicating whether the `_error` variable has been assigned. + * + * @since v9.8.0 + * @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable + */ + readonly underscoreErrAssigned: boolean; + /** + * The last error raised inside the REPL (assigned to the `_error` variable inside of the REPL). + * + * @since v9.8.0 + * @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable + */ + readonly lastError: any; + /** + * Specified in the REPL options, this is the function to be used when evaluating each + * given line of input. If not specified in the REPL options, this is an async wrapper + * for the JavaScript `eval()` function. + */ + readonly eval: REPLEval; + /** + * Specified in the REPL options, this is a value indicating whether the default + * `writer` function should include ANSI color styling to REPL output. + */ + readonly useColors: boolean; + /** + * Specified in the REPL options, this is a value indicating whether the default `eval` + * function will use the JavaScript `global` as the context as opposed to creating a new + * separate context for the REPL instance. + */ + readonly useGlobal: boolean; + /** + * Specified in the REPL options, this is a value indicating whether the default `writer` + * function should output the result of a command if it evaluates to `undefined`. + */ + readonly ignoreUndefined: boolean; + /** + * Specified in the REPL options, this is the function to invoke to format the output of + * each command before writing to `outputStream`. If not specified in the REPL options, + * this will be a wrapper for `util.inspect`. + */ + readonly writer: REPLWriter; + /** + * Specified in the REPL options, this is the function to use for custom Tab auto-completion. + */ + readonly completer: Completer | AsyncCompleter; + /** + * Specified in the REPL options, this is a flag that specifies whether the default `eval` + * function should execute all JavaScript commands in strict mode or default (sloppy) mode. + * Possible values are: + * - `repl.REPL_MODE_SLOPPY` - evaluates expressions in sloppy mode. + * - `repl.REPL_MODE_STRICT` - evaluates expressions in strict mode. This is equivalent to + * prefacing every repl statement with `'use strict'`. + */ + readonly replMode: typeof REPL_MODE_SLOPPY | typeof REPL_MODE_STRICT; + + /** + * NOTE: According to the documentation: + * + * > Instances of `repl.REPLServer` are created using the `repl.start()` method and + * > _should not_ be created directly using the JavaScript `new` keyword. + * + * `REPLServer` cannot be subclassed due to implementation specifics in NodeJS. + * + * @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_class_replserver + */ + private constructor(); + + /** + * Used to add new `.`-prefixed commands to the REPL instance. Such commands are invoked + * by typing a `.` followed by the `keyword`. + * + * @param keyword The command keyword (_without_ a leading `.` character). + * @param cmd The function to invoke when the command is processed. + * + * @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_replserver_definecommand_keyword_cmd + */ + defineCommand(keyword: string, cmd: REPLCommandAction | REPLCommand): void; + /** + * Readies the REPL instance for input from the user, printing the configured `prompt` to a + * new line in the `output` and resuming the `input` to accept new input. + * + * When multi-line input is being entered, an ellipsis is printed rather than the 'prompt'. + * + * This method is primarily intended to be called from within the action function for + * commands registered using the `replServer.defineCommand()` method. + * + * @param preserveCursor When `true`, the cursor placement will not be reset to `0`. + */ + displayPrompt(preserveCursor?: boolean): void; + /** + * Clears any command that has been buffered but not yet executed. + * + * This method is primarily intended to be called from within the action function for + * commands registered using the `replServer.defineCommand()` method. + * + * @since v9.0.0 + */ + clearBufferedCommand(): void; + + /** + * Initializes a history log file for the REPL instance. When executing the + * Node.js binary and using the command line REPL, a history file is initialized + * by default. However, this is not the case when creating a REPL + * programmatically. Use this method to initialize a history log file when working + * with REPL instances programmatically. + * @param path The path to the history file + */ + setupHistory(path: string, cb: (err: Error | null, repl: this) => void): void; + + /** + * events.EventEmitter + * 1. close - inherited from `readline.Interface` + * 2. line - inherited from `readline.Interface` + * 3. pause - inherited from `readline.Interface` + * 4. resume - inherited from `readline.Interface` + * 5. SIGCONT - inherited from `readline.Interface` + * 6. SIGINT - inherited from `readline.Interface` + * 7. SIGTSTP - inherited from `readline.Interface` + * 8. exit + * 9. reset + */ + + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: "close", listener: () => void): this; + addListener(event: "line", listener: (input: string) => void): this; + addListener(event: "pause", listener: () => void): this; + addListener(event: "resume", listener: () => void): this; + addListener(event: "SIGCONT", listener: () => void): this; + addListener(event: "SIGINT", listener: () => void): this; + addListener(event: "SIGTSTP", listener: () => void): this; + addListener(event: "exit", listener: () => void): this; + addListener(event: "reset", listener: (context: Context) => void): this; + + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: "close"): boolean; + emit(event: "line", input: string): boolean; + emit(event: "pause"): boolean; + emit(event: "resume"): boolean; + emit(event: "SIGCONT"): boolean; + emit(event: "SIGINT"): boolean; + emit(event: "SIGTSTP"): boolean; + emit(event: "exit"): boolean; + emit(event: "reset", context: Context): boolean; + + on(event: string, listener: (...args: any[]) => void): this; + on(event: "close", listener: () => void): this; + on(event: "line", listener: (input: string) => void): this; + on(event: "pause", listener: () => void): this; + on(event: "resume", listener: () => void): this; + on(event: "SIGCONT", listener: () => void): this; + on(event: "SIGINT", listener: () => void): this; + on(event: "SIGTSTP", listener: () => void): this; + on(event: "exit", listener: () => void): this; + on(event: "reset", listener: (context: Context) => void): this; + + once(event: string, listener: (...args: any[]) => void): this; + once(event: "close", listener: () => void): this; + once(event: "line", listener: (input: string) => void): this; + once(event: "pause", listener: () => void): this; + once(event: "resume", listener: () => void): this; + once(event: "SIGCONT", listener: () => void): this; + once(event: "SIGINT", listener: () => void): this; + once(event: "SIGTSTP", listener: () => void): this; + once(event: "exit", listener: () => void): this; + once(event: "reset", listener: (context: Context) => void): this; + + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: "close", listener: () => void): this; + prependListener(event: "line", listener: (input: string) => void): this; + prependListener(event: "pause", listener: () => void): this; + prependListener(event: "resume", listener: () => void): this; + prependListener(event: "SIGCONT", listener: () => void): this; + prependListener(event: "SIGINT", listener: () => void): this; + prependListener(event: "SIGTSTP", listener: () => void): this; + prependListener(event: "exit", listener: () => void): this; + prependListener(event: "reset", listener: (context: Context) => void): this; + + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: "close", listener: () => void): this; + prependOnceListener(event: "line", listener: (input: string) => void): this; + prependOnceListener(event: "pause", listener: () => void): this; + prependOnceListener(event: "resume", listener: () => void): this; + prependOnceListener(event: "SIGCONT", listener: () => void): this; + prependOnceListener(event: "SIGINT", listener: () => void): this; + prependOnceListener(event: "SIGTSTP", listener: () => void): this; + prependOnceListener(event: "exit", listener: () => void): this; + prependOnceListener(event: "reset", listener: (context: Context) => void): this; + } + + /** + * A flag passed in the REPL options. Evaluates expressions in sloppy mode. + */ + const REPL_MODE_SLOPPY: symbol; // TODO: unique symbol + + /** + * A flag passed in the REPL options. Evaluates expressions in strict mode. + * This is equivalent to prefacing every repl statement with `'use strict'`. + */ + const REPL_MODE_STRICT: symbol; // TODO: unique symbol + + /** + * Creates and starts a `repl.REPLServer` instance. + * + * @param options The options for the `REPLServer`. If `options` is a string, then it specifies + * the input prompt. + */ + function start(options?: string | ReplOptions): REPLServer; + + /** + * Indicates a recoverable error that a `REPLServer` can use to support multi-line input. + * + * @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_recoverable_errors + */ + class Recoverable extends SyntaxError { + err: Error; + + constructor(err: Error); + } +} diff --git a/backend/node_modules/@types/node/stream.d.ts b/backend/node_modules/@types/node/stream.d.ts new file mode 100755 index 0000000..c9905a4 --- /dev/null +++ b/backend/node_modules/@types/node/stream.d.ts @@ -0,0 +1,334 @@ +declare module 'stream' { + import EventEmitter = require('events'); + + class internal extends EventEmitter { + pipe(destination: T, options?: { end?: boolean | undefined; }): T; + } + + namespace internal { + class Stream extends internal { } + + interface ReadableOptions { + highWaterMark?: number | undefined; + encoding?: string | undefined; + objectMode?: boolean | undefined; + read?(this: Readable, size: number): void; + destroy?(this: Readable, error: Error | null, callback: (error: Error | null) => void): void; + autoDestroy?: boolean | undefined; + } + + class Readable extends Stream implements NodeJS.ReadableStream { + /** + * A utility method for creating Readable Streams out of iterators. + */ + static from(iterable: Iterable | AsyncIterable, options?: ReadableOptions): Readable; + + readable: boolean; + readonly readableEncoding: BufferEncoding | null; + readonly readableEnded: boolean; + readonly readableFlowing: boolean | null; + readonly readableHighWaterMark: number; + readonly readableLength: number; + readonly readableObjectMode: boolean; + destroyed: boolean; + constructor(opts?: ReadableOptions); + _read(size: number): void; + read(size?: number): any; + setEncoding(encoding: string): this; + pause(): this; + resume(): this; + isPaused(): boolean; + unpipe(destination?: NodeJS.WritableStream): this; + unshift(chunk: any, encoding?: BufferEncoding): void; + wrap(oldStream: NodeJS.ReadableStream): this; + push(chunk: any, encoding?: string): boolean; + _destroy(error: Error | null, callback: (error?: Error | null) => void): void; + destroy(error?: Error): this; + + /** + * Event emitter + * The defined events on documents including: + * 1. close + * 2. data + * 3. end + * 4. readable + * 5. error + */ + addListener(event: "close", listener: () => void): this; + addListener(event: "data", listener: (chunk: any) => void): this; + addListener(event: "end", listener: () => void): this; + addListener(event: "readable", listener: () => void): this; + addListener(event: "error", listener: (err: Error) => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + + emit(event: "close"): boolean; + emit(event: "data", chunk: any): boolean; + emit(event: "end"): boolean; + emit(event: "readable"): boolean; + emit(event: "error", err: Error): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + + on(event: "close", listener: () => void): this; + on(event: "data", listener: (chunk: any) => void): this; + on(event: "end", listener: () => void): this; + on(event: "readable", listener: () => void): this; + on(event: "error", listener: (err: Error) => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + + once(event: "close", listener: () => void): this; + once(event: "data", listener: (chunk: any) => void): this; + once(event: "end", listener: () => void): this; + once(event: "readable", listener: () => void): this; + once(event: "error", listener: (err: Error) => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + + prependListener(event: "close", listener: () => void): this; + prependListener(event: "data", listener: (chunk: any) => void): this; + prependListener(event: "end", listener: () => void): this; + prependListener(event: "readable", listener: () => void): this; + prependListener(event: "error", listener: (err: Error) => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + + prependOnceListener(event: "close", listener: () => void): this; + prependOnceListener(event: "data", listener: (chunk: any) => void): this; + prependOnceListener(event: "end", listener: () => void): this; + prependOnceListener(event: "readable", listener: () => void): this; + prependOnceListener(event: "error", listener: (err: Error) => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + + removeListener(event: "close", listener: () => void): this; + removeListener(event: "data", listener: (chunk: any) => void): this; + removeListener(event: "end", listener: () => void): this; + removeListener(event: "readable", listener: () => void): this; + removeListener(event: "error", listener: (err: Error) => void): this; + removeListener(event: string | symbol, listener: (...args: any[]) => void): this; + + [Symbol.asyncIterator](): AsyncIterableIterator; + } + + interface WritableOptions { + highWaterMark?: number | undefined; + decodeStrings?: boolean | undefined; + defaultEncoding?: string | undefined; + objectMode?: boolean | undefined; + emitClose?: boolean | undefined; + write?(this: Writable, chunk: any, encoding: string, callback: (error?: Error | null) => void): void; + writev?(this: Writable, chunks: Array<{ chunk: any, encoding: string }>, callback: (error?: Error | null) => void): void; + destroy?(this: Writable, error: Error | null, callback: (error: Error | null) => void): void; + final?(this: Writable, callback: (error?: Error | null) => void): void; + autoDestroy?: boolean | undefined; + } + + class Writable extends Stream implements NodeJS.WritableStream { + readonly writable: boolean; + readonly writableEnded: boolean; + readonly writableFinished: boolean; + readonly writableHighWaterMark: number; + readonly writableLength: number; + readonly writableObjectMode: boolean; + destroyed: boolean; + constructor(opts?: WritableOptions); + _write(chunk: any, encoding: string, callback: (error?: Error | null) => void): void; + _writev?(chunks: Array<{ chunk: any, encoding: string }>, callback: (error?: Error | null) => void): void; + _destroy(error: Error | null, callback: (error?: Error | null) => void): void; + _final(callback: (error?: Error | null) => void): void; + write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean; + write(chunk: any, encoding: string, cb?: (error: Error | null | undefined) => void): boolean; + setDefaultEncoding(encoding: string): this; + end(cb?: () => void): this; + end(chunk: any, cb?: () => void): this; + end(chunk: any, encoding: string, cb?: () => void): this; + cork(): void; + uncork(): void; + destroy(error?: Error): this; + + /** + * Event emitter + * The defined events on documents including: + * 1. close + * 2. drain + * 3. error + * 4. finish + * 5. pipe + * 6. unpipe + */ + addListener(event: "close", listener: () => void): this; + addListener(event: "drain", listener: () => void): this; + addListener(event: "error", listener: (err: Error) => void): this; + addListener(event: "finish", listener: () => void): this; + addListener(event: "pipe", listener: (src: Readable) => void): this; + addListener(event: "unpipe", listener: (src: Readable) => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + + emit(event: "close"): boolean; + emit(event: "drain"): boolean; + emit(event: "error", err: Error): boolean; + emit(event: "finish"): boolean; + emit(event: "pipe", src: Readable): boolean; + emit(event: "unpipe", src: Readable): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + + on(event: "close", listener: () => void): this; + on(event: "drain", listener: () => void): this; + on(event: "error", listener: (err: Error) => void): this; + on(event: "finish", listener: () => void): this; + on(event: "pipe", listener: (src: Readable) => void): this; + on(event: "unpipe", listener: (src: Readable) => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + + once(event: "close", listener: () => void): this; + once(event: "drain", listener: () => void): this; + once(event: "error", listener: (err: Error) => void): this; + once(event: "finish", listener: () => void): this; + once(event: "pipe", listener: (src: Readable) => void): this; + once(event: "unpipe", listener: (src: Readable) => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + + prependListener(event: "close", listener: () => void): this; + prependListener(event: "drain", listener: () => void): this; + prependListener(event: "error", listener: (err: Error) => void): this; + prependListener(event: "finish", listener: () => void): this; + prependListener(event: "pipe", listener: (src: Readable) => void): this; + prependListener(event: "unpipe", listener: (src: Readable) => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + + prependOnceListener(event: "close", listener: () => void): this; + prependOnceListener(event: "drain", listener: () => void): this; + prependOnceListener(event: "error", listener: (err: Error) => void): this; + prependOnceListener(event: "finish", listener: () => void): this; + prependOnceListener(event: "pipe", listener: (src: Readable) => void): this; + prependOnceListener(event: "unpipe", listener: (src: Readable) => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + + removeListener(event: "close", listener: () => void): this; + removeListener(event: "drain", listener: () => void): this; + removeListener(event: "error", listener: (err: Error) => void): this; + removeListener(event: "finish", listener: () => void): this; + removeListener(event: "pipe", listener: (src: Readable) => void): this; + removeListener(event: "unpipe", listener: (src: Readable) => void): this; + removeListener(event: string | symbol, listener: (...args: any[]) => void): this; + } + + interface DuplexOptions extends ReadableOptions, WritableOptions { + allowHalfOpen?: boolean | undefined; + readableObjectMode?: boolean | undefined; + writableObjectMode?: boolean | undefined; + readableHighWaterMark?: number | undefined; + writableHighWaterMark?: number | undefined; + read?(this: Duplex, size: number): void; + write?(this: Duplex, chunk: any, encoding: string, callback: (error?: Error | null) => void): void; + writev?(this: Duplex, chunks: Array<{ chunk: any, encoding: string }>, callback: (error?: Error | null) => void): void; + final?(this: Duplex, callback: (error?: Error | null) => void): void; + destroy?(this: Duplex, error: Error | null, callback: (error: Error | null) => void): void; + } + + // Note: Duplex extends both Readable and Writable. + class Duplex extends Readable implements Writable { + readonly writable: boolean; + readonly writableEnded: boolean; + readonly writableFinished: boolean; + readonly writableHighWaterMark: number; + readonly writableLength: number; + readonly writableObjectMode: boolean; + allowHalfOpen: boolean; + constructor(opts?: DuplexOptions); + _write(chunk: any, encoding: string, callback: (error?: Error | null) => void): void; + _writev?(chunks: Array<{ chunk: any, encoding: string }>, callback: (error?: Error | null) => void): void; + _destroy(error: Error | null, callback: (error: Error | null) => void): void; + _final(callback: (error?: Error | null) => void): void; + write(chunk: any, encoding?: string, cb?: (error: Error | null | undefined) => void): boolean; + write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean; + setDefaultEncoding(encoding: string): this; + end(cb?: () => void): this; + end(chunk: any, cb?: () => void): this; + end(chunk: any, encoding?: string, cb?: () => void): this; + cork(): void; + uncork(): void; + } + + type TransformCallback = (error?: Error | null, data?: any) => void; + + interface TransformOptions extends DuplexOptions { + read?(this: Transform, size: number): void; + write?(this: Transform, chunk: any, encoding: string, callback: (error?: Error | null) => void): void; + writev?(this: Transform, chunks: Array<{ chunk: any, encoding: string }>, callback: (error?: Error | null) => void): void; + final?(this: Transform, callback: (error?: Error | null) => void): void; + destroy?(this: Transform, error: Error | null, callback: (error: Error | null) => void): void; + transform?(this: Transform, chunk: any, encoding: string, callback: TransformCallback): void; + flush?(this: Transform, callback: TransformCallback): void; + } + + class Transform extends Duplex { + constructor(opts?: TransformOptions); + _transform(chunk: any, encoding: string, callback: TransformCallback): void; + _flush(callback: TransformCallback): void; + } + + class PassThrough extends Transform { } + + interface FinishedOptions { + error?: boolean | undefined; + readable?: boolean | undefined; + writable?: boolean | undefined; + } + function finished(stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, options: FinishedOptions, callback: (err?: NodeJS.ErrnoException | null) => void): () => void; + function finished(stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, callback: (err?: NodeJS.ErrnoException | null) => void): () => void; + namespace finished { + function __promisify__(stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, options?: FinishedOptions): Promise; + } + + function pipeline(stream1: NodeJS.ReadableStream, stream2: T, callback?: (err: NodeJS.ErrnoException | null) => void): T; + function pipeline(stream1: NodeJS.ReadableStream, stream2: NodeJS.ReadWriteStream, stream3: T, callback?: (err: NodeJS.ErrnoException | null) => void): T; + function pipeline( + stream1: NodeJS.ReadableStream, + stream2: NodeJS.ReadWriteStream, + stream3: NodeJS.ReadWriteStream, + stream4: T, + callback?: (err: NodeJS.ErrnoException | null) => void, + ): T; + function pipeline( + stream1: NodeJS.ReadableStream, + stream2: NodeJS.ReadWriteStream, + stream3: NodeJS.ReadWriteStream, + stream4: NodeJS.ReadWriteStream, + stream5: T, + callback?: (err: NodeJS.ErrnoException | null) => void, + ): T; + function pipeline( + streams: ReadonlyArray, + callback?: (err: NodeJS.ErrnoException | null) => void, + ): NodeJS.WritableStream; + function pipeline( + stream1: NodeJS.ReadableStream, + stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream, + ...streams: Array void)>, + ): NodeJS.WritableStream; + namespace pipeline { + function __promisify__(stream1: NodeJS.ReadableStream, stream2: NodeJS.WritableStream): Promise; + function __promisify__(stream1: NodeJS.ReadableStream, stream2: NodeJS.ReadWriteStream, stream3: NodeJS.WritableStream): Promise; + function __promisify__(stream1: NodeJS.ReadableStream, stream2: NodeJS.ReadWriteStream, stream3: NodeJS.ReadWriteStream, stream4: NodeJS.WritableStream): Promise; + function __promisify__( + stream1: NodeJS.ReadableStream, + stream2: NodeJS.ReadWriteStream, + stream3: NodeJS.ReadWriteStream, + stream4: NodeJS.ReadWriteStream, + stream5: NodeJS.WritableStream, + ): Promise; + function __promisify__(streams: ReadonlyArray): Promise; + function __promisify__( + stream1: NodeJS.ReadableStream, + stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream, + ...streams: Array, + ): Promise; + } + + interface Pipe { + close(): void; + hasRef(): boolean; + ref(): void; + unref(): void; + } + } + + export = internal; +} diff --git a/backend/node_modules/@types/node/string_decoder.d.ts b/backend/node_modules/@types/node/string_decoder.d.ts new file mode 100755 index 0000000..93c0f03 --- /dev/null +++ b/backend/node_modules/@types/node/string_decoder.d.ts @@ -0,0 +1,7 @@ +declare module 'string_decoder' { + class StringDecoder { + constructor(encoding?: string); + write(buffer: Buffer): string; + end(buffer?: Buffer): string; + } +} diff --git a/backend/node_modules/@types/node/timers.d.ts b/backend/node_modules/@types/node/timers.d.ts new file mode 100755 index 0000000..08ffe2f --- /dev/null +++ b/backend/node_modules/@types/node/timers.d.ts @@ -0,0 +1,16 @@ +declare module 'timers' { + function setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timeout; + namespace setTimeout { + function __promisify__(ms: number): Promise; + function __promisify__(ms: number, value: T): Promise; + } + function clearTimeout(timeoutId: NodeJS.Timeout | string | number | undefined): void; + function setInterval(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timeout; + function clearInterval(intervalId: NodeJS.Timeout | string | number | undefined): void; + function setImmediate(callback: (...args: any[]) => void, ...args: any[]): NodeJS.Immediate; + namespace setImmediate { + function __promisify__(): Promise; + function __promisify__(value: T): Promise; + } + function clearImmediate(immediateId: NodeJS.Immediate | undefined): void; +} diff --git a/backend/node_modules/@types/node/tls.d.ts b/backend/node_modules/@types/node/tls.d.ts new file mode 100755 index 0000000..2634c50 --- /dev/null +++ b/backend/node_modules/@types/node/tls.d.ts @@ -0,0 +1,713 @@ +declare module 'tls' { + import * as net from 'net'; + import * as stream from 'stream'; + + const CLIENT_RENEG_LIMIT: number; + const CLIENT_RENEG_WINDOW: number; + + interface Certificate { + /** + * Country code. + */ + C: string; + /** + * Street. + */ + ST: string; + /** + * Locality. + */ + L: string; + /** + * Organization. + */ + O: string; + /** + * Organizational unit. + */ + OU: string; + /** + * Common name. + */ + CN: string; + } + + interface PeerCertificate { + subject: Certificate; + issuer: Certificate; + subjectaltname: string; + infoAccess: { [index: string]: string[] | undefined }; + modulus: string; + exponent: string; + valid_from: string; + valid_to: string; + fingerprint: string; + fingerprint256: string; + ext_key_usage: string[]; + serialNumber: string; + raw: Buffer; + } + + interface DetailedPeerCertificate extends PeerCertificate { + issuerCertificate: DetailedPeerCertificate; + } + + interface CipherNameAndProtocol { + /** + * The cipher name. + */ + name: string; + /** + * SSL/TLS protocol version. + */ + version: string; + } + + interface EphemeralKeyInfo { + /** + * The supported types are 'DH' and 'ECDH'. + */ + type: string; + /** + * The name property is available only when type is 'ECDH'. + */ + name?: string | undefined; + /** + * The size of parameter of an ephemeral key exchange. + */ + size: number; + } + + interface KeyObject { + /** + * Private keys in PEM format. + */ + pem: string | Buffer; + /** + * Optional passphrase. + */ + passphrase?: string | undefined; + } + + interface PxfObject { + /** + * PFX or PKCS12 encoded private key and certificate chain. + */ + buf: string | Buffer; + /** + * Optional passphrase. + */ + passphrase?: string | undefined; + } + + interface TLSSocketOptions extends SecureContextOptions, CommonConnectionOptions { + /** + * If true the TLS socket will be instantiated in server-mode. + * Defaults to false. + */ + isServer?: boolean | undefined; + /** + * An optional net.Server instance. + */ + server?: net.Server | undefined; + + /** + * An optional Buffer instance containing a TLS session. + */ + session?: Buffer | undefined; + /** + * If true, specifies that the OCSP status request extension will be + * added to the client hello and an 'OCSPResponse' event will be + * emitted on the socket before establishing a secure communication + */ + requestOCSP?: boolean | undefined; + } + + class TLSSocket extends net.Socket { + /** + * Construct a new tls.TLSSocket object from an existing TCP socket. + */ + constructor(socket: net.Socket, options?: TLSSocketOptions); + + /** + * A boolean that is true if the peer certificate was signed by one of the specified CAs, otherwise false. + */ + authorized: boolean; + /** + * The reason why the peer's certificate has not been verified. + * This property becomes available only when tlsSocket.authorized === false. + */ + authorizationError: Error; + /** + * Static boolean value, always true. + * May be used to distinguish TLS sockets from regular ones. + */ + encrypted: true; + + /** + * String containing the selected ALPN protocol. + * Before a handshake has completed, this value is always null. + * When a handshake is completed but not ALPN protocol was selected, tlsSocket.alpnProtocol equals false. + */ + alpnProtocol: string | false | null; + + /** + * Returns an object representing the local certificate. The returned + * object has some properties corresponding to the fields of the + * certificate. + * + * See tls.TLSSocket.getPeerCertificate() for an example of the + * certificate structure. + * + * If there is no local certificate, an empty object will be returned. + * If the socket has been destroyed, null will be returned. + */ + getCertificate(): PeerCertificate | object | null; + /** + * Returns an object representing the cipher name and the SSL/TLS protocol version of the current connection. + * @returns Returns an object representing the cipher name + * and the SSL/TLS protocol version of the current connection. + */ + getCipher(): CipherNameAndProtocol; + /** + * Returns an object representing the type, name, and size of parameter + * of an ephemeral key exchange in Perfect Forward Secrecy on a client + * connection. It returns an empty object when the key exchange is not + * ephemeral. As this is only supported on a client socket; null is + * returned if called on a server socket. The supported types are 'DH' + * and 'ECDH'. The name property is available only when type is 'ECDH'. + * + * For example: { type: 'ECDH', name: 'prime256v1', size: 256 }. + */ + getEphemeralKeyInfo(): EphemeralKeyInfo | object | null; + /** + * Returns the latest Finished message that has + * been sent to the socket as part of a SSL/TLS handshake, or undefined + * if no Finished message has been sent yet. + * + * As the Finished messages are message digests of the complete + * handshake (with a total of 192 bits for TLS 1.0 and more for SSL + * 3.0), they can be used for external authentication procedures when + * the authentication provided by SSL/TLS is not desired or is not + * enough. + * + * Corresponds to the SSL_get_finished routine in OpenSSL and may be + * used to implement the tls-unique channel binding from RFC 5929. + */ + getFinished(): Buffer | undefined; + /** + * Returns an object representing the peer's certificate. + * The returned object has some properties corresponding to the field of the certificate. + * If detailed argument is true the full chain with issuer property will be returned, + * if false only the top certificate without issuer property. + * If the peer does not provide a certificate, it returns null or an empty object. + * @param detailed - If true; the full chain with issuer property will be returned. + * @returns An object representing the peer's certificate. + */ + getPeerCertificate(detailed: true): DetailedPeerCertificate; + getPeerCertificate(detailed?: false): PeerCertificate; + getPeerCertificate(detailed?: boolean): PeerCertificate | DetailedPeerCertificate; + /** + * Returns the latest Finished message that is expected or has actually + * been received from the socket as part of a SSL/TLS handshake, or + * undefined if there is no Finished message so far. + * + * As the Finished messages are message digests of the complete + * handshake (with a total of 192 bits for TLS 1.0 and more for SSL + * 3.0), they can be used for external authentication procedures when + * the authentication provided by SSL/TLS is not desired or is not + * enough. + * + * Corresponds to the SSL_get_peer_finished routine in OpenSSL and may + * be used to implement the tls-unique channel binding from RFC 5929. + */ + getPeerFinished(): Buffer | undefined; + /** + * Returns a string containing the negotiated SSL/TLS protocol version of the current connection. + * The value `'unknown'` will be returned for connected sockets that have not completed the handshaking process. + * The value `null` will be returned for server sockets or disconnected client sockets. + * See https://www.openssl.org/docs/man1.0.2/ssl/SSL_get_version.html for more information. + * @returns negotiated SSL/TLS protocol version of the current connection + */ + getProtocol(): string | null; + /** + * Could be used to speed up handshake establishment when reconnecting to the server. + * @returns ASN.1 encoded TLS session or undefined if none was negotiated. + */ + getSession(): Buffer | undefined; + /** + * Returns a list of signature algorithms shared between the server and + * the client in the order of decreasing preference. + */ + getSharedSigalgs(): string[]; + /** + * NOTE: Works only with client TLS sockets. + * Useful only for debugging, for session reuse provide session option to tls.connect(). + * @returns TLS session ticket or undefined if none was negotiated. + */ + getTLSTicket(): Buffer | undefined; + /** + * Returns true if the session was reused, false otherwise. + */ + isSessionReused(): boolean; + /** + * Initiate TLS renegotiation process. + * + * NOTE: Can be used to request peer's certificate after the secure connection has been established. + * ANOTHER NOTE: When running as the server, socket will be destroyed with an error after handshakeTimeout timeout. + * @param options - The options may contain the following fields: rejectUnauthorized, + * requestCert (See tls.createServer() for details). + * @param callback - callback(err) will be executed with null as err, once the renegotiation + * is successfully completed. + * @return `undefined` when socket is destroy, `false` if negotiaion can't be initiated. + */ + renegotiate(options: { rejectUnauthorized?: boolean | undefined, requestCert?: boolean | undefined }, callback: (err: Error | null) => void): undefined | boolean; + /** + * Set maximum TLS fragment size (default and maximum value is: 16384, minimum is: 512). + * Smaller fragment size decreases buffering latency on the client: large fragments are buffered by + * the TLS layer until the entire fragment is received and its integrity is verified; + * large fragments can span multiple roundtrips, and their processing can be delayed due to packet + * loss or reordering. However, smaller fragments add extra TLS framing bytes and CPU overhead, + * which may decrease overall server throughput. + * @param size - TLS fragment size (default and maximum value is: 16384, minimum is: 512). + * @returns Returns true on success, false otherwise. + */ + setMaxSendFragment(size: number): boolean; + + /** + * Disables TLS renegotiation for this TLSSocket instance. Once called, + * attempts to renegotiate will trigger an 'error' event on the + * TLSSocket. + */ + disableRenegotiation(): void; + + /** + * When enabled, TLS packet trace information is written to `stderr`. This can be + * used to debug TLS connection problems. + * + * Note: The format of the output is identical to the output of `openssl s_client + * -trace` or `openssl s_server -trace`. While it is produced by OpenSSL's + * `SSL_trace()` function, the format is undocumented, can change without notice, + * and should not be relied on. + */ + enableTrace(): void; + + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: "OCSPResponse", listener: (response: Buffer) => void): this; + addListener(event: "secureConnect", listener: () => void): this; + addListener(event: "session", listener: (session: Buffer) => void): this; + addListener(event: "keylog", listener: (line: Buffer) => void): this; + + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: "OCSPResponse", response: Buffer): boolean; + emit(event: "secureConnect"): boolean; + emit(event: "session", session: Buffer): boolean; + emit(event: "keylog", line: Buffer): boolean; + + on(event: string, listener: (...args: any[]) => void): this; + on(event: "OCSPResponse", listener: (response: Buffer) => void): this; + on(event: "secureConnect", listener: () => void): this; + on(event: "session", listener: (session: Buffer) => void): this; + on(event: "keylog", listener: (line: Buffer) => void): this; + + once(event: string, listener: (...args: any[]) => void): this; + once(event: "OCSPResponse", listener: (response: Buffer) => void): this; + once(event: "secureConnect", listener: () => void): this; + once(event: "session", listener: (session: Buffer) => void): this; + once(event: "keylog", listener: (line: Buffer) => void): this; + + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: "OCSPResponse", listener: (response: Buffer) => void): this; + prependListener(event: "secureConnect", listener: () => void): this; + prependListener(event: "session", listener: (session: Buffer) => void): this; + prependListener(event: "keylog", listener: (line: Buffer) => void): this; + + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: "OCSPResponse", listener: (response: Buffer) => void): this; + prependOnceListener(event: "secureConnect", listener: () => void): this; + prependOnceListener(event: "session", listener: (session: Buffer) => void): this; + prependOnceListener(event: "keylog", listener: (line: Buffer) => void): this; + } + + interface CommonConnectionOptions { + /** + * An optional TLS context object from tls.createSecureContext() + */ + secureContext?: SecureContext | undefined; + + /** + * When enabled, TLS packet trace information is written to `stderr`. This can be + * used to debug TLS connection problems. + * @default false + */ + enableTrace?: boolean | undefined; + /** + * If true the server will request a certificate from clients that + * connect and attempt to verify that certificate. Defaults to + * false. + */ + requestCert?: boolean | undefined; + /** + * An array of strings or a Buffer naming possible ALPN protocols. + * (Protocols should be ordered by their priority.) + */ + ALPNProtocols?: string[] | Uint8Array[] | Uint8Array | undefined; + /** + * SNICallback(servername, cb) A function that will be + * called if the client supports SNI TLS extension. Two arguments + * will be passed when called: servername and cb. SNICallback should + * invoke cb(null, ctx), where ctx is a SecureContext instance. + * (tls.createSecureContext(...) can be used to get a proper + * SecureContext.) If SNICallback wasn't provided the default callback + * with high-level API will be used (see below). + */ + SNICallback?: ((servername: string, cb: (err: Error | null, ctx: SecureContext) => void) => void) | undefined; + /** + * If true the server will reject any connection which is not + * authorized with the list of supplied CAs. This option only has an + * effect if requestCert is true. + * @default true + */ + rejectUnauthorized?: boolean | undefined; + } + + interface TlsOptions extends SecureContextOptions, CommonConnectionOptions { + /** + * Abort the connection if the SSL/TLS handshake does not finish in the + * specified number of milliseconds. A 'tlsClientError' is emitted on + * the tls.Server object whenever a handshake times out. Default: + * 120000 (120 seconds). + */ + handshakeTimeout?: number | undefined; + /** + * The number of seconds after which a TLS session created by the + * server will no longer be resumable. See Session Resumption for more + * information. Default: 300. + */ + sessionTimeout?: number | undefined; + /** + * 48-bytes of cryptographically strong pseudo-random data. + */ + ticketKeys?: Buffer | undefined; + } + + interface ConnectionOptions extends SecureContextOptions, CommonConnectionOptions { + host?: string | undefined; + port?: number | undefined; + path?: string | undefined; // Creates unix socket connection to path. If this option is specified, `host` and `port` are ignored. + socket?: stream.Duplex | undefined; // Establish secure connection on a given socket rather than creating a new socket + checkServerIdentity?: typeof checkServerIdentity | undefined; + servername?: string | undefined; // SNI TLS Extension + session?: Buffer | undefined; + minDHSize?: number | undefined; + lookup?: net.LookupFunction | undefined; + timeout?: number | undefined; + } + + class Server extends net.Server { + /** + * The server.addContext() method adds a secure context that will be + * used if the client request's SNI name matches the supplied hostname + * (or wildcard). + */ + addContext(hostName: string, credentials: SecureContextOptions): void; + /** + * Returns the session ticket keys. + */ + getTicketKeys(): Buffer; + /** + * + * The server.setSecureContext() method replaces the + * secure context of an existing server. Existing connections to the + * server are not interrupted. + */ + setSecureContext(details: SecureContextOptions): void; + /** + * The server.setSecureContext() method replaces the secure context of + * an existing server. Existing connections to the server are not + * interrupted. + */ + setTicketKeys(keys: Buffer): void; + + /** + * events.EventEmitter + * 1. tlsClientError + * 2. newSession + * 3. OCSPRequest + * 4. resumeSession + * 5. secureConnection + * 6. keylog + */ + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this; + addListener(event: "newSession", listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this; + addListener(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this; + addListener(event: "resumeSession", listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this; + addListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this; + addListener(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this; + + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: "tlsClientError", err: Error, tlsSocket: TLSSocket): boolean; + emit(event: "newSession", sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void): boolean; + emit(event: "OCSPRequest", certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void): boolean; + emit(event: "resumeSession", sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void): boolean; + emit(event: "secureConnection", tlsSocket: TLSSocket): boolean; + emit(event: "keylog", line: Buffer, tlsSocket: TLSSocket): boolean; + + on(event: string, listener: (...args: any[]) => void): this; + on(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this; + on(event: "newSession", listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this; + on(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this; + on(event: "resumeSession", listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this; + on(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this; + on(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this; + + once(event: string, listener: (...args: any[]) => void): this; + once(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this; + once(event: "newSession", listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this; + once(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this; + once(event: "resumeSession", listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this; + once(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this; + once(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this; + + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this; + prependListener(event: "newSession", listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this; + prependListener(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this; + prependListener(event: "resumeSession", listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this; + prependListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this; + prependListener(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this; + + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this; + prependOnceListener(event: "newSession", listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this; + prependOnceListener(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this; + prependOnceListener(event: "resumeSession", listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this; + prependOnceListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this; + prependOnceListener(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this; + } + + interface SecurePair { + encrypted: TLSSocket; + cleartext: TLSSocket; + } + + type SecureVersion = 'TLSv1.3' | 'TLSv1.2' | 'TLSv1.1' | 'TLSv1'; + + interface SecureContextOptions { + /** + * Optionally override the trusted CA certificates. Default is to trust + * the well-known CAs curated by Mozilla. Mozilla's CAs are completely + * replaced when CAs are explicitly specified using this option. + */ + ca?: string | Buffer | Array | undefined; + /** + * Cert chains in PEM format. One cert chain should be provided per + * private key. Each cert chain should consist of the PEM formatted + * certificate for a provided private key, followed by the PEM + * formatted intermediate certificates (if any), in order, and not + * including the root CA (the root CA must be pre-known to the peer, + * see ca). When providing multiple cert chains, they do not have to + * be in the same order as their private keys in key. If the + * intermediate certificates are not provided, the peer will not be + * able to validate the certificate, and the handshake will fail. + */ + cert?: string | Buffer | Array | undefined; + /** + * Colon-separated list of supported signature algorithms. The list + * can contain digest algorithms (SHA256, MD5 etc.), public key + * algorithms (RSA-PSS, ECDSA etc.), combination of both (e.g + * 'RSA+SHA384') or TLS v1.3 scheme names (e.g. rsa_pss_pss_sha512). + */ + sigalgs?: string | undefined; + /** + * Cipher suite specification, replacing the default. For more + * information, see modifying the default cipher suite. Permitted + * ciphers can be obtained via tls.getCiphers(). Cipher names must be + * uppercased in order for OpenSSL to accept them. + */ + ciphers?: string | undefined; + /** + * Name of an OpenSSL engine which can provide the client certificate. + */ + clientCertEngine?: string | undefined; + /** + * PEM formatted CRLs (Certificate Revocation Lists). + */ + crl?: string | Buffer | Array | undefined; + /** + * Diffie Hellman parameters, required for Perfect Forward Secrecy. Use + * openssl dhparam to create the parameters. The key length must be + * greater than or equal to 1024 bits or else an error will be thrown. + * Although 1024 bits is permissible, use 2048 bits or larger for + * stronger security. If omitted or invalid, the parameters are + * silently discarded and DHE ciphers will not be available. + */ + dhparam?: string | Buffer | undefined; + /** + * A string describing a named curve or a colon separated list of curve + * NIDs or names, for example P-521:P-384:P-256, to use for ECDH key + * agreement. Set to auto to select the curve automatically. Use + * crypto.getCurves() to obtain a list of available curve names. On + * recent releases, openssl ecparam -list_curves will also display the + * name and description of each available elliptic curve. Default: + * tls.DEFAULT_ECDH_CURVE. + */ + ecdhCurve?: string | undefined; + /** + * Attempt to use the server's cipher suite preferences instead of the + * client's. When true, causes SSL_OP_CIPHER_SERVER_PREFERENCE to be + * set in secureOptions + */ + honorCipherOrder?: boolean | undefined; + /** + * Private keys in PEM format. PEM allows the option of private keys + * being encrypted. Encrypted keys will be decrypted with + * options.passphrase. Multiple keys using different algorithms can be + * provided either as an array of unencrypted key strings or buffers, + * or an array of objects in the form {pem: [, + * passphrase: ]}. The object form can only occur in an array. + * object.passphrase is optional. Encrypted keys will be decrypted with + * object.passphrase if provided, or options.passphrase if it is not. + */ + key?: string | Buffer | Array | undefined; + /** + * Name of an OpenSSL engine to get private key from. Should be used + * together with privateKeyIdentifier. + */ + privateKeyEngine?: string | undefined; + /** + * Identifier of a private key managed by an OpenSSL engine. Should be + * used together with privateKeyEngine. Should not be set together with + * key, because both options define a private key in different ways. + */ + privateKeyIdentifier?: string | undefined; + /** + * Optionally set the maximum TLS version to allow. One + * of `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. Cannot be specified along with the + * `secureProtocol` option, use one or the other. + * **Default:** `'TLSv1.3'`, unless changed using CLI options. Using + * `--tls-max-v1.2` sets the default to `'TLSv1.2'`. Using `--tls-max-v1.3` sets the default to + * `'TLSv1.3'`. If multiple of the options are provided, the highest maximum is used. + */ + maxVersion?: SecureVersion | undefined; + /** + * Optionally set the minimum TLS version to allow. One + * of `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. Cannot be specified along with the + * `secureProtocol` option, use one or the other. It is not recommended to use + * less than TLSv1.2, but it may be required for interoperability. + * **Default:** `'TLSv1.2'`, unless changed using CLI options. Using + * `--tls-v1.0` sets the default to `'TLSv1'`. Using `--tls-v1.1` sets the default to + * `'TLSv1.1'`. Using `--tls-min-v1.3` sets the default to + * 'TLSv1.3'. If multiple of the options are provided, the lowest minimum is used. + */ + minVersion?: SecureVersion | undefined; + /** + * Shared passphrase used for a single private key and/or a PFX. + */ + passphrase?: string | undefined; + /** + * PFX or PKCS12 encoded private key and certificate chain. pfx is an + * alternative to providing key and cert individually. PFX is usually + * encrypted, if it is, passphrase will be used to decrypt it. Multiple + * PFX can be provided either as an array of unencrypted PFX buffers, + * or an array of objects in the form {buf: [, + * passphrase: ]}. The object form can only occur in an array. + * object.passphrase is optional. Encrypted PFX will be decrypted with + * object.passphrase if provided, or options.passphrase if it is not. + */ + pfx?: string | Buffer | Array | undefined; + /** + * Optionally affect the OpenSSL protocol behavior, which is not + * usually necessary. This should be used carefully if at all! Value is + * a numeric bitmask of the SSL_OP_* options from OpenSSL Options + */ + secureOptions?: number | undefined; // Value is a numeric bitmask of the `SSL_OP_*` options + /** + * Legacy mechanism to select the TLS protocol version to use, it does + * not support independent control of the minimum and maximum version, + * and does not support limiting the protocol to TLSv1.3. Use + * minVersion and maxVersion instead. The possible values are listed as + * SSL_METHODS, use the function names as strings. For example, use + * 'TLSv1_1_method' to force TLS version 1.1, or 'TLS_method' to allow + * any TLS protocol version up to TLSv1.3. It is not recommended to use + * TLS versions less than 1.2, but it may be required for + * interoperability. Default: none, see minVersion. + */ + secureProtocol?: string | undefined; + /** + * Opaque identifier used by servers to ensure session state is not + * shared between applications. Unused by clients. + */ + sessionIdContext?: string | undefined; + /** + * 48-bytes of cryptographically strong pseudo-random data. + * See Session Resumption for more information. + */ + ticketKeys?: Buffer | undefined; + /** + * The number of seconds after which a TLS session created by the + * server will no longer be resumable. See Session Resumption for more + * information. Default: 300. + */ + sessionTimeout?: number | undefined; + } + + interface SecureContext { + context: any; + } + + /* + * Verifies the certificate `cert` is issued to host `host`. + * @host The hostname to verify the certificate against + * @cert PeerCertificate representing the peer's certificate + * + * Returns Error object, populating it with the reason, host and cert on failure. On success, returns undefined. + */ + function checkServerIdentity(host: string, cert: PeerCertificate): Error | undefined; + function createServer(secureConnectionListener?: (socket: TLSSocket) => void): Server; + function createServer(options: TlsOptions, secureConnectionListener?: (socket: TLSSocket) => void): Server; + function connect(options: ConnectionOptions, secureConnectListener?: () => void): TLSSocket; + function connect(port: number, host?: string, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket; + function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket; + /** + * @deprecated + */ + function createSecurePair(credentials?: SecureContext, isServer?: boolean, requestCert?: boolean, rejectUnauthorized?: boolean): SecurePair; + function createSecureContext(options?: SecureContextOptions): SecureContext; + function getCiphers(): string[]; + + /** + * The default curve name to use for ECDH key agreement in a tls server. + * The default value is 'auto'. See tls.createSecureContext() for further + * information. + */ + let DEFAULT_ECDH_CURVE: string; + /** + * The default value of the maxVersion option of + * tls.createSecureContext(). It can be assigned any of the supported TLS + * protocol versions, 'TLSv1.3', 'TLSv1.2', 'TLSv1.1', or 'TLSv1'. Default: + * 'TLSv1.3', unless changed using CLI options. Using --tls-max-v1.2 sets + * the default to 'TLSv1.2'. Using --tls-max-v1.3 sets the default to + * 'TLSv1.3'. If multiple of the options are provided, the highest maximum + * is used. + */ + let DEFAULT_MAX_VERSION: SecureVersion; + /** + * The default value of the minVersion option of tls.createSecureContext(). + * It can be assigned any of the supported TLS protocol versions, + * 'TLSv1.3', 'TLSv1.2', 'TLSv1.1', or 'TLSv1'. Default: 'TLSv1.2', unless + * changed using CLI options. Using --tls-min-v1.0 sets the default to + * 'TLSv1'. Using --tls-min-v1.1 sets the default to 'TLSv1.1'. Using + * --tls-min-v1.3 sets the default to 'TLSv1.3'. If multiple of the options + * are provided, the lowest minimum is used. + */ + let DEFAULT_MIN_VERSION: SecureVersion; + + /** + * An immutable array of strings representing the root certificates (in PEM + * format) used for verifying peer certificates. This is the default value + * of the ca option to tls.createSecureContext(). + */ + const rootCertificates: ReadonlyArray; +} diff --git a/backend/node_modules/@types/node/trace_events.d.ts b/backend/node_modules/@types/node/trace_events.d.ts new file mode 100755 index 0000000..1bf6534 --- /dev/null +++ b/backend/node_modules/@types/node/trace_events.d.ts @@ -0,0 +1,61 @@ +declare module 'trace_events' { + /** + * The `Tracing` object is used to enable or disable tracing for sets of + * categories. Instances are created using the + * `trace_events.createTracing()` method. + * + * When created, the `Tracing` object is disabled. Calling the + * `tracing.enable()` method adds the categories to the set of enabled trace + * event categories. Calling `tracing.disable()` will remove the categories + * from the set of enabled trace event categories. + */ + interface Tracing { + /** + * A comma-separated list of the trace event categories covered by this + * `Tracing` object. + */ + readonly categories: string; + + /** + * Disables this `Tracing` object. + * + * Only trace event categories _not_ covered by other enabled `Tracing` + * objects and _not_ specified by the `--trace-event-categories` flag + * will be disabled. + */ + disable(): void; + + /** + * Enables this `Tracing` object for the set of categories covered by + * the `Tracing` object. + */ + enable(): void; + + /** + * `true` only if the `Tracing` object has been enabled. + */ + readonly enabled: boolean; + } + + interface CreateTracingOptions { + /** + * An array of trace category names. Values included in the array are + * coerced to a string when possible. An error will be thrown if the + * value cannot be coerced. + */ + categories: string[]; + } + + /** + * Creates and returns a Tracing object for the given set of categories. + */ + function createTracing(options: CreateTracingOptions): Tracing; + + /** + * Returns a comma-separated list of all currently-enabled trace event + * categories. The current set of enabled trace event categories is + * determined by the union of all currently-enabled `Tracing` objects and + * any categories enabled using the `--trace-event-categories` flag. + */ + function getEnabledCategories(): string | undefined; +} diff --git a/backend/node_modules/@types/node/tty.d.ts b/backend/node_modules/@types/node/tty.d.ts new file mode 100755 index 0000000..0935524 --- /dev/null +++ b/backend/node_modules/@types/node/tty.d.ts @@ -0,0 +1,66 @@ +declare module 'tty' { + import * as net from 'net'; + + function isatty(fd: number): boolean; + class ReadStream extends net.Socket { + constructor(fd: number, options?: net.SocketConstructorOpts); + isRaw: boolean; + setRawMode(mode: boolean): this; + isTTY: boolean; + } + /** + * -1 - to the left from cursor + * 0 - the entire line + * 1 - to the right from cursor + */ + type Direction = -1 | 0 | 1; + class WriteStream extends net.Socket { + constructor(fd: number); + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: "resize", listener: () => void): this; + + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: "resize"): boolean; + + on(event: string, listener: (...args: any[]) => void): this; + on(event: "resize", listener: () => void): this; + + once(event: string, listener: (...args: any[]) => void): this; + once(event: "resize", listener: () => void): this; + + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: "resize", listener: () => void): this; + + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: "resize", listener: () => void): this; + + /** + * Clears the current line of this WriteStream in a direction identified by `dir`. + */ + clearLine(dir: Direction, callback?: () => void): boolean; + /** + * Clears this `WriteStream` from the current cursor down. + */ + clearScreenDown(callback?: () => void): boolean; + /** + * Moves this WriteStream's cursor to the specified position. + */ + cursorTo(x: number, y?: number, callback?: () => void): boolean; + cursorTo(x: number, callback: () => void): boolean; + /** + * Moves this WriteStream's cursor relative to its current position. + */ + moveCursor(dx: number, dy: number, callback?: () => void): boolean; + /** + * @default `process.env` + */ + getColorDepth(env?: {}): number; + hasColors(depth?: number): boolean; + hasColors(env?: {}): boolean; + hasColors(depth: number, env?: {}): boolean; + getWindowSize(): [number, number]; + columns: number; + rows: number; + isTTY: boolean; + } +} diff --git a/backend/node_modules/@types/node/url.d.ts b/backend/node_modules/@types/node/url.d.ts new file mode 100755 index 0000000..fd5bfaf --- /dev/null +++ b/backend/node_modules/@types/node/url.d.ts @@ -0,0 +1,147 @@ +declare module 'url' { + import { ParsedUrlQuery, ParsedUrlQueryInput } from 'querystring'; + + // Input to `url.format` + interface UrlObject { + auth?: string | null | undefined; + hash?: string | null | undefined; + host?: string | null | undefined; + hostname?: string | null | undefined; + href?: string | null | undefined; + path?: string | null | undefined; + pathname?: string | null | undefined; + protocol?: string | null | undefined; + search?: string | null | undefined; + slashes?: boolean | null | undefined; + port?: string | number | null | undefined; + query?: string | null | ParsedUrlQueryInput | undefined; + } + + // Output of `url.parse` + interface Url { + auth: string | null; + hash: string | null; + host: string | null; + hostname: string | null; + href: string; + path: string | null; + pathname: string | null; + protocol: string | null; + search: string | null; + slashes: boolean | null; + port: string | null; + query: string | null | ParsedUrlQuery; + } + + interface UrlWithParsedQuery extends Url { + query: ParsedUrlQuery; + } + + interface UrlWithStringQuery extends Url { + query: string | null; + } + + /** @deprecated since v11.0.0 - Use the WHATWG URL API. */ + function parse(urlStr: string): UrlWithStringQuery; + /** @deprecated since v11.0.0 - Use the WHATWG URL API. */ + function parse(urlStr: string, parseQueryString: false | undefined, slashesDenoteHost?: boolean): UrlWithStringQuery; + /** @deprecated since v11.0.0 - Use the WHATWG URL API. */ + function parse(urlStr: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery; + /** @deprecated since v11.0.0 - Use the WHATWG URL API. */ + function parse(urlStr: string, parseQueryString: boolean, slashesDenoteHost?: boolean): Url; + + function format(URL: URL, options?: URLFormatOptions): string; + /** @deprecated since v11.0.0 - Use the WHATWG URL API. */ + function format(urlObject: UrlObject | string): string; + /** @deprecated since v11.0.0 - Use the WHATWG URL API. */ + function resolve(from: string, to: string): string; + + function domainToASCII(domain: string): string; + function domainToUnicode(domain: string): string; + + /** + * This function ensures the correct decodings of percent-encoded characters as + * well as ensuring a cross-platform valid absolute path string. + * @param url The file URL string or URL object to convert to a path. + */ + function fileURLToPath(url: string | URL): string; + + /** + * This function ensures that path is resolved absolutely, and that the URL + * control characters are correctly encoded when converting into a File URL. + * @param url The path to convert to a File URL. + */ + function pathToFileURL(url: string): URL; + + interface URLFormatOptions { + auth?: boolean | undefined; + fragment?: boolean | undefined; + search?: boolean | undefined; + unicode?: boolean | undefined; + } + + class URL { + constructor(input: string, base?: string | URL); + hash: string; + host: string; + hostname: string; + href: string; + readonly origin: string; + password: string; + pathname: string; + port: string; + protocol: string; + search: string; + readonly searchParams: URLSearchParams; + username: string; + toString(): string; + toJSON(): string; + } + + class URLSearchParams implements Iterable<[string, string]> { + constructor(init?: URLSearchParams | string | { [key: string]: string | ReadonlyArray | undefined } | Iterable<[string, string]> | ReadonlyArray<[string, string]>); + append(name: string, value: string): void; + delete(name: string): void; + entries(): IterableIterator<[string, string]>; + forEach(callback: (value: string, name: string, searchParams: URLSearchParams) => void): void; + get(name: string): string | null; + getAll(name: string): string[]; + has(name: string): boolean; + keys(): IterableIterator; + set(name: string, value: string): void; + sort(): void; + toString(): string; + values(): IterableIterator; + [Symbol.iterator](): IterableIterator<[string, string]>; + } + + import { URL as _URL, URLSearchParams as _URLSearchParams } from 'url'; + global { + interface URLSearchParams extends _URLSearchParams {} + interface URL extends _URL {} + interface Global { + URL: typeof _URL; + URLSearchParams: typeof _URLSearchParams; + } + /** + * `URL` class is a global reference for `require('url').URL` + * https://nodejs.org/api/url.html#the-whatwg-url-api + * @since v10.0.0 + */ + var URL: + // For compatibility with "dom" and "webworker" URL declarations + typeof globalThis extends { onmessage: any, URL: infer URL } + ? URL + : typeof _URL; + /** + * `URLSearchParams` class is a global reference for `require('url').URLSearchParams`. + * https://nodejs.org/api/url.html#class-urlsearchparams + * @since v10.0.0 + */ + var URLSearchParams: + // For compatibility with "dom" and "webworker" URLSearchParams declarations + typeof globalThis extends { onmessage: any, URLSearchParams: infer URLSearchParams } + ? URLSearchParams + : typeof _URLSearchParams; + } +} diff --git a/backend/node_modules/@types/node/util.d.ts b/backend/node_modules/@types/node/util.d.ts new file mode 100755 index 0000000..ce7f6b5 --- /dev/null +++ b/backend/node_modules/@types/node/util.d.ts @@ -0,0 +1,200 @@ +declare module 'util' { + interface InspectOptions extends NodeJS.InspectOptions { } + function format(format?: any, ...param: any[]): string; + function formatWithOptions(inspectOptions: InspectOptions, format?: any, ...param: any[]): string; + /** @deprecated since v0.11.3 - use a third party module instead. */ + function log(string: string): void; + function inspect(object: any, showHidden?: boolean, depth?: number | null, color?: boolean): string; + function inspect(object: any, options: InspectOptions): string; + namespace inspect { + const custom: unique symbol; + let colors: { + [color: string]: [number, number] | undefined + }; + let styles: { + [style: string]: string | undefined + }; + let defaultOptions: InspectOptions; + /** + * Allows changing inspect settings from the repl. + */ + let replDefaults: InspectOptions; + } + /** @deprecated since v4.0.0 - use `Array.isArray()` instead. */ + function isArray(object: any): object is any[]; + /** @deprecated since v4.0.0 - use `util.types.isRegExp()` instead. */ + function isRegExp(object: any): object is RegExp; + /** @deprecated since v4.0.0 - use `util.types.isDate()` instead. */ + function isDate(object: any): object is Date; + /** @deprecated since v4.0.0 - use `util.types.isNativeError()` instead. */ + function isError(object: any): object is Error; + function inherits(constructor: any, superConstructor: any): void; + function debuglog(key: string): (msg: string, ...param: any[]) => void; + /** @deprecated since v4.0.0 - use `typeof value === 'boolean'` instead. */ + function isBoolean(object: any): object is boolean; + /** @deprecated since v4.0.0 - use `Buffer.isBuffer()` instead. */ + function isBuffer(object: any): object is Buffer; + /** @deprecated since v4.0.0 - use `typeof value === 'function'` instead. */ + function isFunction(object: any): boolean; + /** @deprecated since v4.0.0 - use `value === null` instead. */ + function isNull(object: any): object is null; + /** @deprecated since v4.0.0 - use `value === null || value === undefined` instead. */ + function isNullOrUndefined(object: any): object is null | undefined; + /** @deprecated since v4.0.0 - use `typeof value === 'number'` instead. */ + function isNumber(object: any): object is number; + /** @deprecated since v4.0.0 - use `value !== null && typeof value === 'object'` instead. */ + function isObject(object: any): boolean; + /** @deprecated since v4.0.0 - use `(typeof value !== 'object' && typeof value !== 'function') || value === null` instead. */ + function isPrimitive(object: any): boolean; + /** @deprecated since v4.0.0 - use `typeof value === 'string'` instead. */ + function isString(object: any): object is string; + /** @deprecated since v4.0.0 - use `typeof value === 'symbol'` instead. */ + function isSymbol(object: any): object is symbol; + /** @deprecated since v4.0.0 - use `value === undefined` instead. */ + function isUndefined(object: any): object is undefined; + function deprecate(fn: T, message: string, code?: string): T; + function isDeepStrictEqual(val1: any, val2: any): boolean; + + interface CustomPromisify extends Function { + __promisify__: TCustom; + } + + function callbackify(fn: () => Promise): (callback: (err: NodeJS.ErrnoException) => void) => void; + function callbackify(fn: () => Promise): (callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void; + function callbackify(fn: (arg1: T1) => Promise): (arg1: T1, callback: (err: NodeJS.ErrnoException) => void) => void; + function callbackify(fn: (arg1: T1) => Promise): (arg1: T1, callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void; + function callbackify(fn: (arg1: T1, arg2: T2) => Promise): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException) => void) => void; + function callbackify(fn: (arg1: T1, arg2: T2) => Promise): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void; + function callbackify(fn: (arg1: T1, arg2: T2, arg3: T3) => Promise): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException) => void) => void; + function callbackify( + fn: (arg1: T1, arg2: T2, arg3: T3) => Promise): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void; + function callbackify( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: NodeJS.ErrnoException) => void) => void; + function callbackify( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void; + function callbackify( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: NodeJS.ErrnoException) => void) => void; + function callbackify( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise, + ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void; + function callbackify( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise, + ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, callback: (err: NodeJS.ErrnoException) => void) => void; + function callbackify( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise + ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void; + + function promisify(fn: CustomPromisify): TCustom; + function promisify(fn: (callback: (err: any, result: TResult) => void) => void): () => Promise; + function promisify(fn: (callback: (err?: any) => void) => void): () => Promise; + function promisify(fn: (arg1: T1, callback: (err: any, result: TResult) => void) => void): (arg1: T1) => Promise; + function promisify(fn: (arg1: T1, callback: (err?: any) => void) => void): (arg1: T1) => Promise; + function promisify(fn: (arg1: T1, arg2: T2, callback: (err: any, result: TResult) => void) => void): (arg1: T1, arg2: T2) => Promise; + function promisify(fn: (arg1: T1, arg2: T2, callback: (err?: any) => void) => void): (arg1: T1, arg2: T2) => Promise; + function promisify(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err: any, result: TResult) => void) => void): + (arg1: T1, arg2: T2, arg3: T3) => Promise; + function promisify(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err?: any) => void) => void): (arg1: T1, arg2: T2, arg3: T3) => Promise; + function promisify( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: any, result: TResult) => void) => void, + ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise; + function promisify(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err?: any) => void) => void): + (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise; + function promisify( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: any, result: TResult) => void) => void, + ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise; + function promisify( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err?: any) => void) => void, + ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise; + function promisify(fn: Function): Function; + namespace promisify { + const custom: unique symbol; + } + + namespace types { + function isAnyArrayBuffer(object: any): object is ArrayBufferLike; + function isArgumentsObject(object: any): object is IArguments; + function isArrayBuffer(object: any): object is ArrayBuffer; + function isArrayBufferView(object: any): object is NodeJS.ArrayBufferView; + function isAsyncFunction(object: any): boolean; + function isBigInt64Array(value: any): value is BigInt64Array; + function isBigUint64Array(value: any): value is BigUint64Array; + function isBooleanObject(object: any): object is Boolean; + function isBoxedPrimitive(object: any): object is String | Number | BigInt | Boolean | Symbol; + function isDataView(object: any): object is DataView; + function isDate(object: any): object is Date; + function isExternal(object: any): boolean; + function isFloat32Array(object: any): object is Float32Array; + function isFloat64Array(object: any): object is Float64Array; + function isGeneratorFunction(object: any): object is GeneratorFunction; + function isGeneratorObject(object: any): object is Generator; + function isInt8Array(object: any): object is Int8Array; + function isInt16Array(object: any): object is Int16Array; + function isInt32Array(object: any): object is Int32Array; + function isMap( + object: T | {}, + ): object is T extends ReadonlyMap + ? unknown extends T + ? never + : ReadonlyMap + : Map; + function isMapIterator(object: any): boolean; + function isModuleNamespaceObject(value: any): boolean; + function isNativeError(object: any): object is Error; + function isNumberObject(object: any): object is Number; + function isPromise(object: any): object is Promise; + function isProxy(object: any): boolean; + function isRegExp(object: any): object is RegExp; + function isSet( + object: T | {}, + ): object is T extends ReadonlySet + ? unknown extends T + ? never + : ReadonlySet + : Set; + function isSetIterator(object: any): boolean; + function isSharedArrayBuffer(object: any): object is SharedArrayBuffer; + function isStringObject(object: any): object is String; + function isSymbolObject(object: any): object is Symbol; + function isTypedArray(object: any): object is NodeJS.TypedArray; + function isUint8Array(object: any): object is Uint8Array; + function isUint8ClampedArray(object: any): object is Uint8ClampedArray; + function isUint16Array(object: any): object is Uint16Array; + function isUint32Array(object: any): object is Uint32Array; + function isWeakMap(object: any): object is WeakMap; + function isWeakSet(object: any): object is WeakSet; + /** @deprecated Removed in v14.0.0 */ + function isWebAssemblyCompiledModule(object: any): boolean; + } + + class TextDecoder { + readonly encoding: string; + readonly fatal: boolean; + readonly ignoreBOM: boolean; + constructor( + encoding?: string, + options?: { fatal?: boolean | undefined; ignoreBOM?: boolean | undefined } + ); + decode( + input?: NodeJS.ArrayBufferView | ArrayBuffer | null, + options?: { stream?: boolean | undefined } + ): string; + } + + interface EncodeIntoResult { + /** + * The read Unicode code units of input. + */ + + read: number; + /** + * The written UTF-8 bytes of output. + */ + written: number; + } + + class TextEncoder { + readonly encoding: string; + encode(input?: string): Uint8Array; + encodeInto(input: string, output: Uint8Array): EncodeIntoResult; + } +} diff --git a/backend/node_modules/@types/node/v8.d.ts b/backend/node_modules/@types/node/v8.d.ts new file mode 100755 index 0000000..998c3e3 --- /dev/null +++ b/backend/node_modules/@types/node/v8.d.ts @@ -0,0 +1,197 @@ +declare module 'v8' { + import { Readable } from 'stream'; + + interface HeapSpaceInfo { + space_name: string; + space_size: number; + space_used_size: number; + space_available_size: number; + physical_space_size: number; + } + + // ** Signifies if the --zap_code_space option is enabled or not. 1 == enabled, 0 == disabled. */ + type DoesZapCodeSpaceFlag = 0 | 1; + + interface HeapInfo { + total_heap_size: number; + total_heap_size_executable: number; + total_physical_size: number; + total_available_size: number; + used_heap_size: number; + heap_size_limit: number; + malloced_memory: number; + peak_malloced_memory: number; + does_zap_garbage: DoesZapCodeSpaceFlag; + number_of_native_contexts: number; + number_of_detached_contexts: number; + } + + interface HeapCodeStatistics { + code_and_metadata_size: number; + bytecode_and_metadata_size: number; + external_script_source_size: number; + } + + /** + * Returns an integer representing a "version tag" derived from the V8 version, command line flags and detected CPU features. + * This is useful for determining whether a vm.Script cachedData buffer is compatible with this instance of V8. + */ + function cachedDataVersionTag(): number; + + function getHeapStatistics(): HeapInfo; + function getHeapSpaceStatistics(): HeapSpaceInfo[]; + function setFlagsFromString(flags: string): void; + /** + * Generates a snapshot of the current V8 heap and returns a Readable + * Stream that may be used to read the JSON serialized representation. + * This conversation was marked as resolved by joyeecheung + * This JSON stream format is intended to be used with tools such as + * Chrome DevTools. The JSON schema is undocumented and specific to the + * V8 engine, and may change from one version of V8 to the next. + */ + function getHeapSnapshot(): Readable; + + /** + * + * @param fileName The file path where the V8 heap snapshot is to be + * saved. If not specified, a file name with the pattern + * `'Heap-${yyyymmdd}-${hhmmss}-${pid}-${thread_id}.heapsnapshot'` will be + * generated, where `{pid}` will be the PID of the Node.js process, + * `{thread_id}` will be `0` when `writeHeapSnapshot()` is called from + * the main Node.js thread or the id of a worker thread. + */ + function writeHeapSnapshot(fileName?: string): string; + + function getHeapCodeStatistics(): HeapCodeStatistics; + + /** + * @experimental + */ + class Serializer { + /** + * Writes out a header, which includes the serialization format version. + */ + writeHeader(): void; + + /** + * Serializes a JavaScript value and adds the serialized representation to the internal buffer. + * This throws an error if value cannot be serialized. + */ + writeValue(val: any): boolean; + + /** + * Returns the stored internal buffer. + * This serializer should not be used once the buffer is released. + * Calling this method results in undefined behavior if a previous write has failed. + */ + releaseBuffer(): Buffer; + + /** + * Marks an ArrayBuffer as having its contents transferred out of band.\ + * Pass the corresponding ArrayBuffer in the deserializing context to deserializer.transferArrayBuffer(). + */ + transferArrayBuffer(id: number, arrayBuffer: ArrayBuffer): void; + + /** + * Write a raw 32-bit unsigned integer. + */ + writeUint32(value: number): void; + + /** + * Write a raw 64-bit unsigned integer, split into high and low 32-bit parts. + */ + writeUint64(hi: number, lo: number): void; + + /** + * Write a JS number value. + */ + writeDouble(value: number): void; + + /** + * Write raw bytes into the serializer’s internal buffer. + * The deserializer will require a way to compute the length of the buffer. + */ + writeRawBytes(buffer: NodeJS.TypedArray): void; + } + + /** + * A subclass of `Serializer` that serializes `TypedArray` (in particular `Buffer`) and `DataView` objects as host objects, + * and only stores the part of their underlying `ArrayBuffers` that they are referring to. + * @experimental + */ + class DefaultSerializer extends Serializer { + } + + /** + * @experimental + */ + class Deserializer { + constructor(data: NodeJS.TypedArray); + /** + * Reads and validates a header (including the format version). + * May, for example, reject an invalid or unsupported wire format. + * In that case, an Error is thrown. + */ + readHeader(): boolean; + + /** + * Deserializes a JavaScript value from the buffer and returns it. + */ + readValue(): any; + + /** + * Marks an ArrayBuffer as having its contents transferred out of band. + * Pass the corresponding `ArrayBuffer` in the serializing context to serializer.transferArrayBuffer() + * (or return the id from serializer._getSharedArrayBufferId() in the case of SharedArrayBuffers). + */ + transferArrayBuffer(id: number, arrayBuffer: ArrayBuffer): void; + + /** + * Reads the underlying wire format version. + * Likely mostly to be useful to legacy code reading old wire format versions. + * May not be called before .readHeader(). + */ + getWireFormatVersion(): number; + + /** + * Read a raw 32-bit unsigned integer and return it. + */ + readUint32(): number; + + /** + * Read a raw 64-bit unsigned integer and return it as an array [hi, lo] with two 32-bit unsigned integer entries. + */ + readUint64(): [number, number]; + + /** + * Read a JS number value. + */ + readDouble(): number; + + /** + * Read raw bytes from the deserializer’s internal buffer. + * The length parameter must correspond to the length of the buffer that was passed to serializer.writeRawBytes(). + */ + readRawBytes(length: number): Buffer; + } + + /** + * A subclass of `Serializer` that serializes `TypedArray` (in particular `Buffer`) and `DataView` objects as host objects, + * and only stores the part of their underlying `ArrayBuffers` that they are referring to. + * @experimental + */ + class DefaultDeserializer extends Deserializer { + } + + /** + * Uses a `DefaultSerializer` to serialize value into a buffer. + * @experimental + */ + function serialize(value: any): Buffer; + + /** + * Uses a `DefaultDeserializer` with default options to read a JS value from a buffer. + * @experimental + */ + function deserialize(data: NodeJS.TypedArray): any; +} diff --git a/backend/node_modules/@types/node/vm.d.ts b/backend/node_modules/@types/node/vm.d.ts new file mode 100755 index 0000000..dd4cce3 --- /dev/null +++ b/backend/node_modules/@types/node/vm.d.ts @@ -0,0 +1,112 @@ +declare module 'vm' { + interface Context { + [key: string]: any; + } + interface BaseOptions { + /** + * Specifies the filename used in stack traces produced by this script. + * Default: `''`. + */ + filename?: string | undefined; + /** + * Specifies the line number offset that is displayed in stack traces produced by this script. + * Default: `0`. + */ + lineOffset?: number | undefined; + /** + * Specifies the column number offset that is displayed in stack traces produced by this script. + * @default 0 + */ + columnOffset?: number | undefined; + } + interface ScriptOptions extends BaseOptions { + displayErrors?: boolean | undefined; + timeout?: number | undefined; + cachedData?: Buffer | undefined; + /** @deprecated in favor of `script.createCachedData()` */ + produceCachedData?: boolean | undefined; + } + interface RunningScriptOptions extends BaseOptions { + /** + * When `true`, if an `Error` occurs while compiling the `code`, the line of code causing the error is attached to the stack trace. + * Default: `true`. + */ + displayErrors?: boolean | undefined; + /** + * Specifies the number of milliseconds to execute code before terminating execution. + * If execution is terminated, an `Error` will be thrown. This value must be a strictly positive integer. + */ + timeout?: number | undefined; + /** + * If `true`, the execution will be terminated when `SIGINT` (Ctrl+C) is received. + * Existing handlers for the event that have been attached via `process.on('SIGINT')` will be disabled during script execution, but will continue to work after that. + * If execution is terminated, an `Error` will be thrown. + * Default: `false`. + */ + breakOnSigint?: boolean | undefined; + } + interface CompileFunctionOptions extends BaseOptions { + /** + * Provides an optional data with V8's code cache data for the supplied source. + */ + cachedData?: Buffer | undefined; + /** + * Specifies whether to produce new cache data. + * Default: `false`, + */ + produceCachedData?: boolean | undefined; + /** + * The sandbox/context in which the said function should be compiled in. + */ + parsingContext?: Context | undefined; + + /** + * An array containing a collection of context extensions (objects wrapping the current scope) to be applied while compiling + */ + contextExtensions?: Object[] | undefined; + } + + interface CreateContextOptions { + /** + * Human-readable name of the newly created context. + * @default 'VM Context i' Where i is an ascending numerical index of the created context. + */ + name?: string | undefined; + /** + * Corresponds to the newly created context for display purposes. + * The origin should be formatted like a `URL`, but with only the scheme, host, and port (if necessary), + * like the value of the `url.origin` property of a URL object. + * Most notably, this string should omit the trailing slash, as that denotes a path. + * @default '' + */ + origin?: string | undefined; + codeGeneration?: { + /** + * If set to false any calls to eval or function constructors (Function, GeneratorFunction, etc) + * will throw an EvalError. + * @default true + */ + strings?: boolean | undefined; + /** + * If set to false any attempt to compile a WebAssembly module will throw a WebAssembly.CompileError. + * @default true + */ + wasm?: boolean | undefined; + } | undefined; + } + + class Script { + constructor(code: string, options?: ScriptOptions); + runInContext(contextifiedSandbox: Context, options?: RunningScriptOptions): any; + runInNewContext(sandbox?: Context, options?: RunningScriptOptions): any; + runInThisContext(options?: RunningScriptOptions): any; + createCachedData(): Buffer; + cachedDataRejected?: boolean | undefined; + } + function createContext(sandbox?: Context, options?: CreateContextOptions): Context; + function isContext(sandbox: Context): boolean; + function runInContext(code: string, contextifiedSandbox: Context, options?: RunningScriptOptions | string): any; + function runInNewContext(code: string, sandbox?: Context, options?: RunningScriptOptions | string): any; + function runInThisContext(code: string, options?: RunningScriptOptions | string): any; + function compileFunction(code: string, params?: ReadonlyArray, options?: CompileFunctionOptions): Function; +} diff --git a/backend/node_modules/@types/node/wasi.d.ts b/backend/node_modules/@types/node/wasi.d.ts new file mode 100755 index 0000000..7fde348 --- /dev/null +++ b/backend/node_modules/@types/node/wasi.d.ts @@ -0,0 +1,55 @@ +declare module 'wasi' { + interface WASIOptions { + /** + * An array of strings that the WebAssembly application will + * see as command line arguments. The first argument is the virtual path to the + * WASI command itself. + */ + args?: string[] | undefined; + + /** + * An object similar to `process.env` that the WebAssembly + * application will see as its environment. + */ + env?: object | undefined; + + /** + * This object represents the WebAssembly application's + * sandbox directory structure. The string keys of `preopens` are treated as + * directories within the sandbox. The corresponding values in `preopens` are + * the real paths to those directories on the host machine. + */ + preopens?: NodeJS.Dict | undefined; + + /** + * By default, WASI applications terminate the Node.js + * process via the `__wasi_proc_exit()` function. Setting this option to `true` + * causes `wasi.start()` to return the exit code rather than terminate the + * process. + * @default false + */ + returnOnExit?: boolean | undefined; + } + + class WASI { + constructor(options?: WASIOptions); + /** + * + * Attempt to begin execution of `instance` by invoking its `_start()` export. + * If `instance` does not contain a `_start()` export, then `start()` attempts to + * invoke the `__wasi_unstable_reactor_start()` export. If neither of those exports + * is present on `instance`, then `start()` does nothing. + * + * `start()` requires that `instance` exports a [`WebAssembly.Memory`][] named + * `memory`. If `instance` does not have a `memory` export an exception is thrown. + */ + start(instance: object): void; // TODO: avoid DOM dependency until WASM moved to own lib. + + /** + * Is an object that implements the WASI system call API. This object + * should be passed as the `wasi_snapshot_preview1` import during the instantiation of a + * [`WebAssembly.Instance`][]. + */ + readonly wasiImport: NodeJS.Dict; // TODO: Narrow to DOM types + } +} diff --git a/backend/node_modules/@types/node/worker_threads.d.ts b/backend/node_modules/@types/node/worker_threads.d.ts new file mode 100755 index 0000000..a9ceb72 --- /dev/null +++ b/backend/node_modules/@types/node/worker_threads.d.ts @@ -0,0 +1,207 @@ +declare module 'worker_threads' { + import { Context } from 'vm'; + import EventEmitter = require('events'); + import { Readable, Writable } from 'stream'; + import { promises } from 'fs'; + + const isMainThread: boolean; + const parentPort: null | MessagePort; + const resourceLimits: ResourceLimits; + const SHARE_ENV: unique symbol; + const threadId: number; + const workerData: any; + + class MessageChannel { + readonly port1: MessagePort; + readonly port2: MessagePort; + } + + type TransferListItem = ArrayBuffer | MessagePort | promises.FileHandle; + + class MessagePort extends EventEmitter { + close(): void; + postMessage(value: any, transferList?: ReadonlyArray): void; + ref(): void; + unref(): void; + start(): void; + + addListener(event: "close", listener: () => void): this; + addListener(event: "message", listener: (value: any) => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + + emit(event: "close"): boolean; + emit(event: "message", value: any): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + + on(event: "close", listener: () => void): this; + on(event: "message", listener: (value: any) => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + + once(event: "close", listener: () => void): this; + once(event: "message", listener: (value: any) => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + + prependListener(event: "close", listener: () => void): this; + prependListener(event: "message", listener: (value: any) => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + + prependOnceListener(event: "close", listener: () => void): this; + prependOnceListener(event: "message", listener: (value: any) => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + + removeListener(event: "close", listener: () => void): this; + removeListener(event: "message", listener: (value: any) => void): this; + removeListener(event: string | symbol, listener: (...args: any[]) => void): this; + + off(event: "close", listener: () => void): this; + off(event: "message", listener: (value: any) => void): this; + off(event: string | symbol, listener: (...args: any[]) => void): this; + } + + interface WorkerOptions { + eval?: boolean | undefined; + env?: NodeJS.ProcessEnv | typeof SHARE_ENV | undefined; + workerData?: any; + stdin?: boolean | undefined; + stdout?: boolean | undefined; + stderr?: boolean | undefined; + execArgv?: string[] | undefined; + resourceLimits?: ResourceLimits | undefined; + /** + * Additional data to send in the first worker message. + */ + transferList?: TransferListItem[] | undefined; + trackUnmanagedFds?: boolean | undefined; + } + + interface ResourceLimits { + /** + * The maximum size of a heap space for recently created objects. + */ + maxYoungGenerationSizeMb?: number | undefined; + /** + * The maximum size of the main heap in MB. + */ + maxOldGenerationSizeMb?: number | undefined; + /** + * The size of a pre-allocated memory range used for generated code. + */ + codeRangeSizeMb?: number | undefined; + /** + * The default maximum stack size for the thread. Small values may lead to unusable Worker instances. + * @default 4 + */ + stackSizeMb?: number | undefined; + } + + class Worker extends EventEmitter { + readonly stdin: Writable | null; + readonly stdout: Readable; + readonly stderr: Readable; + readonly threadId: number; + readonly resourceLimits?: ResourceLimits | undefined; + + constructor(filename: string, options?: WorkerOptions); + + postMessage(value: any, transferList?: ReadonlyArray): void; + ref(): void; + unref(): void; + /** + * Stop all JavaScript execution in the worker thread as soon as possible. + * Returns a Promise for the exit code that is fulfilled when the `exit` event is emitted. + */ + terminate(): Promise; + + addListener(event: "error", listener: (err: Error) => void): this; + addListener(event: "exit", listener: (exitCode: number) => void): this; + addListener(event: "message", listener: (value: any) => void): this; + addListener(event: "messageerror", listener: (error: Error) => void): this; + addListener(event: "online", listener: () => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + + emit(event: "error", err: Error): boolean; + emit(event: "exit", exitCode: number): boolean; + emit(event: "message", value: any): boolean; + emit(event: "messageerror", error: Error): boolean; + emit(event: "online"): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + + on(event: "error", listener: (err: Error) => void): this; + on(event: "exit", listener: (exitCode: number) => void): this; + on(event: "message", listener: (value: any) => void): this; + on(event: "messageerror", listener: (error: Error) => void): this; + on(event: "online", listener: () => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + + once(event: "error", listener: (err: Error) => void): this; + once(event: "exit", listener: (exitCode: number) => void): this; + once(event: "message", listener: (value: any) => void): this; + once(event: "messageerror", listener: (error: Error) => void): this; + once(event: "online", listener: () => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + + prependListener(event: "error", listener: (err: Error) => void): this; + prependListener(event: "exit", listener: (exitCode: number) => void): this; + prependListener(event: "message", listener: (value: any) => void): this; + prependListener(event: "messageerror", listener: (error: Error) => void): this; + prependListener(event: "online", listener: () => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + + prependOnceListener(event: "error", listener: (err: Error) => void): this; + prependOnceListener(event: "exit", listener: (exitCode: number) => void): this; + prependOnceListener(event: "message", listener: (value: any) => void): this; + prependOnceListener(event: "messageerror", listener: (error: Error) => void): this; + prependOnceListener(event: "online", listener: () => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + + removeListener(event: "error", listener: (err: Error) => void): this; + removeListener(event: "exit", listener: (exitCode: number) => void): this; + removeListener(event: "message", listener: (value: any) => void): this; + removeListener(event: "messageerror", listener: (error: Error) => void): this; + removeListener(event: "online", listener: () => void): this; + removeListener(event: string | symbol, listener: (...args: any[]) => void): this; + + off(event: "error", listener: (err: Error) => void): this; + off(event: "exit", listener: (exitCode: number) => void): this; + off(event: "message", listener: (value: any) => void): this; + off(event: "messageerror", listener: (error: Error) => void): this; + off(event: "online", listener: () => void): this; + off(event: string | symbol, listener: (...args: any[]) => void): this; + } + + /** + * Mark an object as not transferable. + * If `object` occurs in the transfer list of a `port.postMessage()` call, it will be ignored. + * + * In particular, this makes sense for objects that can be cloned, rather than transferred, + * and which are used by other objects on the sending side. For example, Node.js marks + * the `ArrayBuffer`s it uses for its Buffer pool with this. + * + * This operation cannot be undone. + */ + function markAsUntransferable(object: object): void; + + /** + * Transfer a `MessagePort` to a different `vm` Context. The original `port` + * object will be rendered unusable, and the returned `MessagePort` instance will + * take its place. + * + * The returned `MessagePort` will be an object in the target context, and will + * inherit from its global `Object` class. Objects passed to the + * `port.onmessage()` listener will also be created in the target context + * and inherit from its global `Object` class. + * + * However, the created `MessagePort` will no longer inherit from + * `EventEmitter`, and only `port.onmessage()` can be used to receive + * events using it. + */ + function moveMessagePortToContext(port: MessagePort, context: Context): MessagePort; + + /** + * Receive a single message from a given `MessagePort`. If no message is available, + * `undefined` is returned, otherwise an object with a single `message` property + * that contains the message payload, corresponding to the oldest message in the + * `MessagePort`’s queue. + */ + function receiveMessageOnPort(port: MessagePort): { message: any } | undefined; +} diff --git a/backend/node_modules/@types/node/zlib.d.ts b/backend/node_modules/@types/node/zlib.d.ts new file mode 100755 index 0000000..9462760 --- /dev/null +++ b/backend/node_modules/@types/node/zlib.d.ts @@ -0,0 +1,356 @@ +declare module 'zlib' { + import * as stream from 'stream'; + + interface ZlibOptions { + /** + * @default constants.Z_NO_FLUSH + */ + flush?: number | undefined; + /** + * @default constants.Z_FINISH + */ + finishFlush?: number | undefined; + /** + * @default 16*1024 + */ + chunkSize?: number | undefined; + windowBits?: number | undefined; + level?: number | undefined; // compression only + memLevel?: number | undefined; // compression only + strategy?: number | undefined; // compression only + dictionary?: NodeJS.ArrayBufferView | ArrayBuffer | undefined; // deflate/inflate only, empty dictionary by default + info?: boolean | undefined; + maxOutputLength?: number | undefined; + } + + interface BrotliOptions { + /** + * @default constants.BROTLI_OPERATION_PROCESS + */ + flush?: number | undefined; + /** + * @default constants.BROTLI_OPERATION_FINISH + */ + finishFlush?: number | undefined; + /** + * @default 16*1024 + */ + chunkSize?: number | undefined; + params?: { + /** + * Each key is a `constants.BROTLI_*` constant. + */ + [key: number]: boolean | number; + } | undefined; + maxOutputLength?: number | undefined; + } + + interface Zlib { + /** @deprecated Use bytesWritten instead. */ + readonly bytesRead: number; + readonly bytesWritten: number; + shell?: boolean | string | undefined; + close(callback?: () => void): void; + flush(kind?: number, callback?: () => void): void; + flush(callback?: () => void): void; + } + + interface ZlibParams { + params(level: number, strategy: number, callback: () => void): void; + } + + interface ZlibReset { + reset(): void; + } + + interface BrotliCompress extends stream.Transform, Zlib { } + interface BrotliDecompress extends stream.Transform, Zlib { } + interface Gzip extends stream.Transform, Zlib { } + interface Gunzip extends stream.Transform, Zlib { } + interface Deflate extends stream.Transform, Zlib, ZlibReset, ZlibParams { } + interface Inflate extends stream.Transform, Zlib, ZlibReset { } + interface DeflateRaw extends stream.Transform, Zlib, ZlibReset, ZlibParams { } + interface InflateRaw extends stream.Transform, Zlib, ZlibReset { } + interface Unzip extends stream.Transform, Zlib { } + + function createBrotliCompress(options?: BrotliOptions): BrotliCompress; + function createBrotliDecompress(options?: BrotliOptions): BrotliDecompress; + function createGzip(options?: ZlibOptions): Gzip; + function createGunzip(options?: ZlibOptions): Gunzip; + function createDeflate(options?: ZlibOptions): Deflate; + function createInflate(options?: ZlibOptions): Inflate; + function createDeflateRaw(options?: ZlibOptions): DeflateRaw; + function createInflateRaw(options?: ZlibOptions): InflateRaw; + function createUnzip(options?: ZlibOptions): Unzip; + + type InputType = string | ArrayBuffer | NodeJS.ArrayBufferView; + + type CompressCallback = (error: Error | null, result: Buffer) => void; + + function brotliCompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void; + function brotliCompress(buf: InputType, callback: CompressCallback): void; + namespace brotliCompress { + function __promisify__(buffer: InputType, options?: BrotliOptions): Promise; + } + + function brotliCompressSync(buf: InputType, options?: BrotliOptions): Buffer; + + function brotliDecompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void; + function brotliDecompress(buf: InputType, callback: CompressCallback): void; + namespace brotliDecompress { + function __promisify__(buffer: InputType, options?: BrotliOptions): Promise; + } + + function brotliDecompressSync(buf: InputType, options?: BrotliOptions): Buffer; + + function deflate(buf: InputType, callback: CompressCallback): void; + function deflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void; + namespace deflate { + function __promisify__(buffer: InputType, options?: ZlibOptions): Promise; + } + + function deflateSync(buf: InputType, options?: ZlibOptions): Buffer; + + function deflateRaw(buf: InputType, callback: CompressCallback): void; + function deflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void; + namespace deflateRaw { + function __promisify__(buffer: InputType, options?: ZlibOptions): Promise; + } + + function deflateRawSync(buf: InputType, options?: ZlibOptions): Buffer; + + function gzip(buf: InputType, callback: CompressCallback): void; + function gzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void; + namespace gzip { + function __promisify__(buffer: InputType, options?: ZlibOptions): Promise; + } + + function gzipSync(buf: InputType, options?: ZlibOptions): Buffer; + + function gunzip(buf: InputType, callback: CompressCallback): void; + function gunzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void; + namespace gunzip { + function __promisify__(buffer: InputType, options?: ZlibOptions): Promise; + } + + function gunzipSync(buf: InputType, options?: ZlibOptions): Buffer; + + function inflate(buf: InputType, callback: CompressCallback): void; + function inflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void; + namespace inflate { + function __promisify__(buffer: InputType, options?: ZlibOptions): Promise; + } + + function inflateSync(buf: InputType, options?: ZlibOptions): Buffer; + + function inflateRaw(buf: InputType, callback: CompressCallback): void; + function inflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void; + namespace inflateRaw { + function __promisify__(buffer: InputType, options?: ZlibOptions): Promise; + } + + function inflateRawSync(buf: InputType, options?: ZlibOptions): Buffer; + + function unzip(buf: InputType, callback: CompressCallback): void; + function unzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void; + namespace unzip { + function __promisify__(buffer: InputType, options?: ZlibOptions): Promise; + } + + function unzipSync(buf: InputType, options?: ZlibOptions): Buffer; + + namespace constants { + const BROTLI_DECODE: number; + const BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: number; + const BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP: number; + const BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES: number; + const BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1: number; + const BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2: number; + const BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS: number; + const BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET: number; + const BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1: number; + const BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2: number; + const BROTLI_DECODER_ERROR_FORMAT_CL_SPACE: number; + const BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT: number; + const BROTLI_DECODER_ERROR_FORMAT_DICTIONARY: number; + const BROTLI_DECODER_ERROR_FORMAT_DISTANCE: number; + const BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE: number; + const BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE: number; + const BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE: number; + const BROTLI_DECODER_ERROR_FORMAT_PADDING_1: number; + const BROTLI_DECODER_ERROR_FORMAT_PADDING_2: number; + const BROTLI_DECODER_ERROR_FORMAT_RESERVED: number; + const BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET: number; + const BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME: number; + const BROTLI_DECODER_ERROR_FORMAT_TRANSFORM: number; + const BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS: number; + const BROTLI_DECODER_ERROR_INVALID_ARGUMENTS: number; + const BROTLI_DECODER_ERROR_UNREACHABLE: number; + const BROTLI_DECODER_NEEDS_MORE_INPUT: number; + const BROTLI_DECODER_NEEDS_MORE_OUTPUT: number; + const BROTLI_DECODER_NO_ERROR: number; + const BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION: number; + const BROTLI_DECODER_PARAM_LARGE_WINDOW: number; + const BROTLI_DECODER_RESULT_ERROR: number; + const BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT: number; + const BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT: number; + const BROTLI_DECODER_RESULT_SUCCESS: number; + const BROTLI_DECODER_SUCCESS: number; + + const BROTLI_DEFAULT_MODE: number; + const BROTLI_DEFAULT_QUALITY: number; + const BROTLI_DEFAULT_WINDOW: number; + const BROTLI_ENCODE: number; + const BROTLI_LARGE_MAX_WINDOW_BITS: number; + const BROTLI_MAX_INPUT_BLOCK_BITS: number; + const BROTLI_MAX_QUALITY: number; + const BROTLI_MAX_WINDOW_BITS: number; + const BROTLI_MIN_INPUT_BLOCK_BITS: number; + const BROTLI_MIN_QUALITY: number; + const BROTLI_MIN_WINDOW_BITS: number; + + const BROTLI_MODE_FONT: number; + const BROTLI_MODE_GENERIC: number; + const BROTLI_MODE_TEXT: number; + + const BROTLI_OPERATION_EMIT_METADATA: number; + const BROTLI_OPERATION_FINISH: number; + const BROTLI_OPERATION_FLUSH: number; + const BROTLI_OPERATION_PROCESS: number; + + const BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING: number; + const BROTLI_PARAM_LARGE_WINDOW: number; + const BROTLI_PARAM_LGBLOCK: number; + const BROTLI_PARAM_LGWIN: number; + const BROTLI_PARAM_MODE: number; + const BROTLI_PARAM_NDIRECT: number; + const BROTLI_PARAM_NPOSTFIX: number; + const BROTLI_PARAM_QUALITY: number; + const BROTLI_PARAM_SIZE_HINT: number; + + const DEFLATE: number; + const DEFLATERAW: number; + const GUNZIP: number; + const GZIP: number; + const INFLATE: number; + const INFLATERAW: number; + const UNZIP: number; + + const Z_NO_FLUSH: number; + const Z_PARTIAL_FLUSH: number; + const Z_SYNC_FLUSH: number; + const Z_FULL_FLUSH: number; + const Z_FINISH: number; + const Z_BLOCK: number; + const Z_TREES: number; + + const Z_OK: number; + const Z_STREAM_END: number; + const Z_NEED_DICT: number; + const Z_ERRNO: number; + const Z_STREAM_ERROR: number; + const Z_DATA_ERROR: number; + const Z_MEM_ERROR: number; + const Z_BUF_ERROR: number; + const Z_VERSION_ERROR: number; + + const Z_NO_COMPRESSION: number; + const Z_BEST_SPEED: number; + const Z_BEST_COMPRESSION: number; + const Z_DEFAULT_COMPRESSION: number; + + const Z_FILTERED: number; + const Z_HUFFMAN_ONLY: number; + const Z_RLE: number; + const Z_FIXED: number; + const Z_DEFAULT_STRATEGY: number; + + const Z_DEFAULT_WINDOWBITS: number; + const Z_MIN_WINDOWBITS: number; + const Z_MAX_WINDOWBITS: number; + + const Z_MIN_CHUNK: number; + const Z_MAX_CHUNK: number; + const Z_DEFAULT_CHUNK: number; + + const Z_MIN_MEMLEVEL: number; + const Z_MAX_MEMLEVEL: number; + const Z_DEFAULT_MEMLEVEL: number; + + const Z_MIN_LEVEL: number; + const Z_MAX_LEVEL: number; + const Z_DEFAULT_LEVEL: number; + + const ZLIB_VERNUM: number; + } + + // Allowed flush values. + /** @deprecated Use `constants.Z_NO_FLUSH` */ + const Z_NO_FLUSH: number; + /** @deprecated Use `constants.Z_PARTIAL_FLUSH` */ + const Z_PARTIAL_FLUSH: number; + /** @deprecated Use `constants.Z_SYNC_FLUSH` */ + const Z_SYNC_FLUSH: number; + /** @deprecated Use `constants.Z_FULL_FLUSH` */ + const Z_FULL_FLUSH: number; + /** @deprecated Use `constants.Z_FINISH` */ + const Z_FINISH: number; + /** @deprecated Use `constants.Z_BLOCK` */ + const Z_BLOCK: number; + /** @deprecated Use `constants.Z_TREES` */ + const Z_TREES: number; + + // Return codes for the compression/decompression functions. + // Negative values are errors, positive values are used for special but normal events. + /** @deprecated Use `constants.Z_OK` */ + const Z_OK: number; + /** @deprecated Use `constants.Z_STREAM_END` */ + const Z_STREAM_END: number; + /** @deprecated Use `constants.Z_NEED_DICT` */ + const Z_NEED_DICT: number; + /** @deprecated Use `constants.Z_ERRNO` */ + const Z_ERRNO: number; + /** @deprecated Use `constants.Z_STREAM_ERROR` */ + const Z_STREAM_ERROR: number; + /** @deprecated Use `constants.Z_DATA_ERROR` */ + const Z_DATA_ERROR: number; + /** @deprecated Use `constants.Z_MEM_ERROR` */ + const Z_MEM_ERROR: number; + /** @deprecated Use `constants.Z_BUF_ERROR` */ + const Z_BUF_ERROR: number; + /** @deprecated Use `constants.Z_VERSION_ERROR` */ + const Z_VERSION_ERROR: number; + + // Compression levels. + /** @deprecated Use `constants.Z_NO_COMPRESSION` */ + const Z_NO_COMPRESSION: number; + /** @deprecated Use `constants.Z_BEST_SPEED` */ + const Z_BEST_SPEED: number; + /** @deprecated Use `constants.Z_BEST_COMPRESSION` */ + const Z_BEST_COMPRESSION: number; + /** @deprecated Use `constants.Z_DEFAULT_COMPRESSION` */ + const Z_DEFAULT_COMPRESSION: number; + + // Compression strategy. + /** @deprecated Use `constants.Z_FILTERED` */ + const Z_FILTERED: number; + /** @deprecated Use `constants.Z_HUFFMAN_ONLY` */ + const Z_HUFFMAN_ONLY: number; + /** @deprecated Use `constants.Z_RLE` */ + const Z_RLE: number; + /** @deprecated Use `constants.Z_FIXED` */ + const Z_FIXED: number; + /** @deprecated Use `constants.Z_DEFAULT_STRATEGY` */ + const Z_DEFAULT_STRATEGY: number; + + /** @deprecated */ + const Z_BINARY: number; + /** @deprecated */ + const Z_TEXT: number; + /** @deprecated */ + const Z_ASCII: number; + /** @deprecated */ + const Z_UNKNOWN: number; + /** @deprecated */ + const Z_DEFLATED: number; +} diff --git a/backend/node_modules/@types/xml2js/LICENSE b/backend/node_modules/@types/xml2js/LICENSE new file mode 100644 index 0000000..9e841e7 --- /dev/null +++ b/backend/node_modules/@types/xml2js/LICENSE @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git a/backend/node_modules/@types/xml2js/README.md b/backend/node_modules/@types/xml2js/README.md new file mode 100644 index 0000000..4948619 --- /dev/null +++ b/backend/node_modules/@types/xml2js/README.md @@ -0,0 +1,15 @@ +# Installation +> `npm install --save @types/xml2js` + +# Summary +This package contains type definitions for xml2js (https://github.com/Leonidas-from-XIV/node-xml2js). + +# Details +Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/xml2js. + +### Additional Details + * Last updated: Tue, 07 Nov 2023 15:11:36 GMT + * Dependencies: [@types/node](https://npmjs.com/package/@types/node) + +# Credits +These definitions were written by [Michel Salib](https://github.com/michelsalib), [Jason McNeil](https://github.com/jasonrm), [Christopher Currens](https://github.com/ccurrens), [Edward Hinkle](https://github.com/edwardhinkle), [Claas Ahlrichs](https://github.com/claasahl), [Grzegorz Redlicki](https://github.com/redlickigrzegorz), and [Ryan Ling](https://github.com/72636c). diff --git a/backend/node_modules/@types/xml2js/index.d.ts b/backend/node_modules/@types/xml2js/index.d.ts new file mode 100644 index 0000000..4efb418 --- /dev/null +++ b/backend/node_modules/@types/xml2js/index.d.ts @@ -0,0 +1,93 @@ +/// +import { EventEmitter } from "events"; +import * as processors from "./lib/processors"; + +export function parseString(str: convertableToString, callback: (err: Error | null, result: any) => void): void; +export function parseString( + str: convertableToString, + options: ParserOptions, + callback: (err: Error | null, result: any) => void, +): void; +export function parseStringPromise(str: convertableToString, options?: ParserOptions): Promise; + +export const defaults: { + "0.1": Options; + "0.2": OptionsV2; +}; + +export interface XmlDeclarationAttributes { + version: string; + encoding?: string | undefined; + standalone?: boolean | undefined; +} + +export interface RenderOptions { + pretty?: boolean | undefined; + indent?: string | undefined; + newline?: string | undefined; +} + +export class Builder { + constructor(options?: BuilderOptions); + buildObject(rootObj: any): string; +} + +export class Parser extends EventEmitter { + constructor(options?: ParserOptions); + parseString(str: convertableToString, cb?: (error: Error | null, result: any) => void): void; + parseStringPromise(str: convertableToString): Promise; + reset(): void; +} + +export interface ParserOptions { + attrkey?: string | undefined; + charkey?: string | undefined; + explicitCharkey?: boolean | undefined; + trim?: boolean | undefined; + normalizeTags?: boolean | undefined; + normalize?: boolean | undefined; + explicitRoot?: boolean | undefined; + emptyTag?: (() => any) | string; + explicitArray?: boolean | undefined; + ignoreAttrs?: boolean | undefined; + mergeAttrs?: boolean | undefined; + validator?: Function | undefined; + xmlns?: boolean | undefined; + explicitChildren?: boolean | undefined; + childkey?: string | undefined; + preserveChildrenOrder?: boolean | undefined; + charsAsChildren?: boolean | undefined; + includeWhiteChars?: boolean | undefined; + async?: boolean | undefined; + strict?: boolean | undefined; + attrNameProcessors?: Array<(name: string) => any> | undefined; + attrValueProcessors?: Array<(value: string, name: string) => any> | undefined; + tagNameProcessors?: Array<(name: string) => any> | undefined; + valueProcessors?: Array<(value: string, name: string) => any> | undefined; + chunkSize?: number | undefined; +} + +export interface BuilderOptions { + attrkey?: string | undefined; + charkey?: string | undefined; + rootName?: string | undefined; + renderOpts?: RenderOptions | undefined; + xmldec?: XmlDeclarationAttributes | undefined; + doctype?: any; + headless?: boolean | undefined; + allowSurrogateChars?: boolean | undefined; + cdata?: boolean | undefined; +} + +export type Options = Omit; +export type OptionsV2 = ParserOptions & BuilderOptions; + +export interface convertableToString { + toString(): string; +} + +export class ValidationError extends Error { + constructor(message: string); +} + +export { processors }; diff --git a/backend/node_modules/@types/xml2js/lib/processors.d.ts b/backend/node_modules/@types/xml2js/lib/processors.d.ts new file mode 100644 index 0000000..e767cca --- /dev/null +++ b/backend/node_modules/@types/xml2js/lib/processors.d.ts @@ -0,0 +1,9 @@ +export function firstCharLowerCase(name: string): string; + +export function normalize(name: string): string; + +export function parseBooleans(name: string): boolean; + +export function parseNumbers(name: string): number; + +export function stripPrefix(name: string): string; diff --git a/backend/node_modules/@types/xml2js/package.json b/backend/node_modules/@types/xml2js/package.json new file mode 100644 index 0000000..56a0156 --- /dev/null +++ b/backend/node_modules/@types/xml2js/package.json @@ -0,0 +1,57 @@ +{ + "name": "@types/xml2js", + "version": "0.4.14", + "description": "TypeScript definitions for xml2js", + "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/xml2js", + "license": "MIT", + "contributors": [ + { + "name": "Michel Salib", + "githubUsername": "michelsalib", + "url": "https://github.com/michelsalib" + }, + { + "name": "Jason McNeil", + "githubUsername": "jasonrm", + "url": "https://github.com/jasonrm" + }, + { + "name": "Christopher Currens", + "githubUsername": "ccurrens", + "url": "https://github.com/ccurrens" + }, + { + "name": "Edward Hinkle", + "githubUsername": "edwardhinkle", + "url": "https://github.com/edwardhinkle" + }, + { + "name": "Claas Ahlrichs", + "githubUsername": "claasahl", + "url": "https://github.com/claasahl" + }, + { + "name": "Grzegorz Redlicki", + "githubUsername": "redlickigrzegorz", + "url": "https://github.com/redlickigrzegorz" + }, + { + "name": "Ryan Ling", + "githubUsername": "72636c", + "url": "https://github.com/72636c" + } + ], + "main": "", + "types": "index.d.ts", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/xml2js" + }, + "scripts": {}, + "dependencies": { + "@types/node": "*" + }, + "typesPublisherContentHash": "a43b2f37a10e3e13f691aed45f7417c7ceb8d61e5fbc7626e6a0dad5d1917c94", + "typeScriptVersion": "4.5" +} \ No newline at end of file diff --git a/backend/node_modules/anymatch/LICENSE b/backend/node_modules/anymatch/LICENSE new file mode 100644 index 0000000..491766c --- /dev/null +++ b/backend/node_modules/anymatch/LICENSE @@ -0,0 +1,15 @@ +The ISC License + +Copyright (c) 2019 Elan Shanker, Paul Miller (https://paulmillr.com) + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/backend/node_modules/anymatch/README.md b/backend/node_modules/anymatch/README.md new file mode 100644 index 0000000..1dd67f5 --- /dev/null +++ b/backend/node_modules/anymatch/README.md @@ -0,0 +1,87 @@ +anymatch [![Build Status](https://travis-ci.org/micromatch/anymatch.svg?branch=master)](https://travis-ci.org/micromatch/anymatch) [![Coverage Status](https://img.shields.io/coveralls/micromatch/anymatch.svg?branch=master)](https://coveralls.io/r/micromatch/anymatch?branch=master) +====== +Javascript module to match a string against a regular expression, glob, string, +or function that takes the string as an argument and returns a truthy or falsy +value. The matcher can also be an array of any or all of these. Useful for +allowing a very flexible user-defined config to define things like file paths. + +__Note: This module has Bash-parity, please be aware that Windows-style backslashes are not supported as separators. See https://github.com/micromatch/micromatch#backslashes for more information.__ + + +Usage +----- +```sh +npm install anymatch +``` + +#### anymatch(matchers, testString, [returnIndex], [options]) +* __matchers__: (_Array|String|RegExp|Function_) +String to be directly matched, string with glob patterns, regular expression +test, function that takes the testString as an argument and returns a truthy +value if it should be matched, or an array of any number and mix of these types. +* __testString__: (_String|Array_) The string to test against the matchers. If +passed as an array, the first element of the array will be used as the +`testString` for non-function matchers, while the entire array will be applied +as the arguments for function matchers. +* __options__: (_Object_ [optional]_) Any of the [picomatch](https://github.com/micromatch/picomatch#options) options. + * __returnIndex__: (_Boolean [optional]_) If true, return the array index of +the first matcher that that testString matched, or -1 if no match, instead of a +boolean result. + +```js +const anymatch = require('anymatch'); + +const matchers = [ 'path/to/file.js', 'path/anyjs/**/*.js', /foo.js$/, string => string.includes('bar') && string.length > 10 ] ; + +anymatch(matchers, 'path/to/file.js'); // true +anymatch(matchers, 'path/anyjs/baz.js'); // true +anymatch(matchers, 'path/to/foo.js'); // true +anymatch(matchers, 'path/to/bar.js'); // true +anymatch(matchers, 'bar.js'); // false + +// returnIndex = true +anymatch(matchers, 'foo.js', {returnIndex: true}); // 2 +anymatch(matchers, 'path/anyjs/foo.js', {returnIndex: true}); // 1 + +// any picomatc + +// using globs to match directories and their children +anymatch('node_modules', 'node_modules'); // true +anymatch('node_modules', 'node_modules/somelib/index.js'); // false +anymatch('node_modules/**', 'node_modules/somelib/index.js'); // true +anymatch('node_modules/**', '/absolute/path/to/node_modules/somelib/index.js'); // false +anymatch('**/node_modules/**', '/absolute/path/to/node_modules/somelib/index.js'); // true + +const matcher = anymatch(matchers); +['foo.js', 'bar.js'].filter(matcher); // [ 'foo.js' ] +anymatch master* ❯ + +``` + +#### anymatch(matchers) +You can also pass in only your matcher(s) to get a curried function that has +already been bound to the provided matching criteria. This can be used as an +`Array#filter` callback. + +```js +var matcher = anymatch(matchers); + +matcher('path/to/file.js'); // true +matcher('path/anyjs/baz.js', true); // 1 + +['foo.js', 'bar.js'].filter(matcher); // ['foo.js'] +``` + +Changelog +---------- +[See release notes page on GitHub](https://github.com/micromatch/anymatch/releases) + +- **v3.0:** Removed `startIndex` and `endIndex` arguments. Node 8.x-only. +- **v2.0:** [micromatch](https://github.com/jonschlinkert/micromatch) moves away from minimatch-parity and inline with Bash. This includes handling backslashes differently (see https://github.com/micromatch/micromatch#backslashes for more information). +- **v1.2:** anymatch uses [micromatch](https://github.com/jonschlinkert/micromatch) +for glob pattern matching. Issues with glob pattern matching should be +reported directly to the [micromatch issue tracker](https://github.com/jonschlinkert/micromatch/issues). + +License +------- +[ISC](https://raw.github.com/micromatch/anymatch/master/LICENSE) diff --git a/backend/node_modules/anymatch/index.d.ts b/backend/node_modules/anymatch/index.d.ts new file mode 100644 index 0000000..3ef7eaa --- /dev/null +++ b/backend/node_modules/anymatch/index.d.ts @@ -0,0 +1,20 @@ +type AnymatchFn = (testString: string) => boolean; +type AnymatchPattern = string|RegExp|AnymatchFn; +type AnymatchMatcher = AnymatchPattern|AnymatchPattern[] +type AnymatchTester = { + (testString: string|any[], returnIndex: true): number; + (testString: string|any[]): boolean; +} + +type PicomatchOptions = {dot: boolean}; + +declare const anymatch: { + (matchers: AnymatchMatcher): AnymatchTester; + (matchers: AnymatchMatcher, testString: null, returnIndex: true | PicomatchOptions): AnymatchTester; + (matchers: AnymatchMatcher, testString: string|any[], returnIndex: true | PicomatchOptions): number; + (matchers: AnymatchMatcher, testString: string|any[]): boolean; +} + +export {AnymatchMatcher as Matcher} +export {AnymatchTester as Tester} +export default anymatch diff --git a/backend/node_modules/anymatch/index.js b/backend/node_modules/anymatch/index.js new file mode 100644 index 0000000..8eb73e9 --- /dev/null +++ b/backend/node_modules/anymatch/index.js @@ -0,0 +1,104 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { value: true }); + +const picomatch = require('picomatch'); +const normalizePath = require('normalize-path'); + +/** + * @typedef {(testString: string) => boolean} AnymatchFn + * @typedef {string|RegExp|AnymatchFn} AnymatchPattern + * @typedef {AnymatchPattern|AnymatchPattern[]} AnymatchMatcher + */ +const BANG = '!'; +const DEFAULT_OPTIONS = {returnIndex: false}; +const arrify = (item) => Array.isArray(item) ? item : [item]; + +/** + * @param {AnymatchPattern} matcher + * @param {object} options + * @returns {AnymatchFn} + */ +const createPattern = (matcher, options) => { + if (typeof matcher === 'function') { + return matcher; + } + if (typeof matcher === 'string') { + const glob = picomatch(matcher, options); + return (string) => matcher === string || glob(string); + } + if (matcher instanceof RegExp) { + return (string) => matcher.test(string); + } + return (string) => false; +}; + +/** + * @param {Array} patterns + * @param {Array} negPatterns + * @param {String|Array} args + * @param {Boolean} returnIndex + * @returns {boolean|number} + */ +const matchPatterns = (patterns, negPatterns, args, returnIndex) => { + const isList = Array.isArray(args); + const _path = isList ? args[0] : args; + if (!isList && typeof _path !== 'string') { + throw new TypeError('anymatch: second argument must be a string: got ' + + Object.prototype.toString.call(_path)) + } + const path = normalizePath(_path, false); + + for (let index = 0; index < negPatterns.length; index++) { + const nglob = negPatterns[index]; + if (nglob(path)) { + return returnIndex ? -1 : false; + } + } + + const applied = isList && [path].concat(args.slice(1)); + for (let index = 0; index < patterns.length; index++) { + const pattern = patterns[index]; + if (isList ? pattern(...applied) : pattern(path)) { + return returnIndex ? index : true; + } + } + + return returnIndex ? -1 : false; +}; + +/** + * @param {AnymatchMatcher} matchers + * @param {Array|string} testString + * @param {object} options + * @returns {boolean|number|Function} + */ +const anymatch = (matchers, testString, options = DEFAULT_OPTIONS) => { + if (matchers == null) { + throw new TypeError('anymatch: specify first argument'); + } + const opts = typeof options === 'boolean' ? {returnIndex: options} : options; + const returnIndex = opts.returnIndex || false; + + // Early cache for matchers. + const mtchers = arrify(matchers); + const negatedGlobs = mtchers + .filter(item => typeof item === 'string' && item.charAt(0) === BANG) + .map(item => item.slice(1)) + .map(item => picomatch(item, opts)); + const patterns = mtchers + .filter(item => typeof item !== 'string' || (typeof item === 'string' && item.charAt(0) !== BANG)) + .map(matcher => createPattern(matcher, opts)); + + if (testString == null) { + return (testString, ri = false) => { + const returnIndex = typeof ri === 'boolean' ? ri : false; + return matchPatterns(patterns, negatedGlobs, testString, returnIndex); + } + } + + return matchPatterns(patterns, negatedGlobs, testString, returnIndex); +}; + +anymatch.default = anymatch; +module.exports = anymatch; diff --git a/backend/node_modules/anymatch/package.json b/backend/node_modules/anymatch/package.json new file mode 100644 index 0000000..2cb2307 --- /dev/null +++ b/backend/node_modules/anymatch/package.json @@ -0,0 +1,48 @@ +{ + "name": "anymatch", + "version": "3.1.3", + "description": "Matches strings against configurable strings, globs, regular expressions, and/or functions", + "files": [ + "index.js", + "index.d.ts" + ], + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "author": { + "name": "Elan Shanker", + "url": "https://github.com/es128" + }, + "license": "ISC", + "homepage": "https://github.com/micromatch/anymatch", + "repository": { + "type": "git", + "url": "https://github.com/micromatch/anymatch" + }, + "keywords": [ + "match", + "any", + "string", + "file", + "fs", + "list", + "glob", + "regex", + "regexp", + "regular", + "expression", + "function" + ], + "scripts": { + "test": "nyc mocha", + "mocha": "mocha" + }, + "devDependencies": { + "mocha": "^6.1.3", + "nyc": "^14.0.0" + }, + "engines": { + "node": ">= 8" + } +} diff --git a/backend/node_modules/binary-extensions/binary-extensions.json b/backend/node_modules/binary-extensions/binary-extensions.json new file mode 100644 index 0000000..ac08048 --- /dev/null +++ b/backend/node_modules/binary-extensions/binary-extensions.json @@ -0,0 +1,263 @@ +[ + "3dm", + "3ds", + "3g2", + "3gp", + "7z", + "a", + "aac", + "adp", + "afdesign", + "afphoto", + "afpub", + "ai", + "aif", + "aiff", + "alz", + "ape", + "apk", + "appimage", + "ar", + "arj", + "asf", + "au", + "avi", + "bak", + "baml", + "bh", + "bin", + "bk", + "bmp", + "btif", + "bz2", + "bzip2", + "cab", + "caf", + "cgm", + "class", + "cmx", + "cpio", + "cr2", + "cur", + "dat", + "dcm", + "deb", + "dex", + "djvu", + "dll", + "dmg", + "dng", + "doc", + "docm", + "docx", + "dot", + "dotm", + "dra", + "DS_Store", + "dsk", + "dts", + "dtshd", + "dvb", + "dwg", + "dxf", + "ecelp4800", + "ecelp7470", + "ecelp9600", + "egg", + "eol", + "eot", + "epub", + "exe", + "f4v", + "fbs", + "fh", + "fla", + "flac", + "flatpak", + "fli", + "flv", + "fpx", + "fst", + "fvt", + "g3", + "gh", + "gif", + "graffle", + "gz", + "gzip", + "h261", + "h263", + "h264", + "icns", + "ico", + "ief", + "img", + "ipa", + "iso", + "jar", + "jpeg", + "jpg", + "jpgv", + "jpm", + "jxr", + "key", + "ktx", + "lha", + "lib", + "lvp", + "lz", + "lzh", + "lzma", + "lzo", + "m3u", + "m4a", + "m4v", + "mar", + "mdi", + "mht", + "mid", + "midi", + "mj2", + "mka", + "mkv", + "mmr", + "mng", + "mobi", + "mov", + "movie", + "mp3", + "mp4", + "mp4a", + "mpeg", + "mpg", + "mpga", + "mxu", + "nef", + "npx", + "numbers", + "nupkg", + "o", + "odp", + "ods", + "odt", + "oga", + "ogg", + "ogv", + "otf", + "ott", + "pages", + "pbm", + "pcx", + "pdb", + "pdf", + "pea", + "pgm", + "pic", + "png", + "pnm", + "pot", + "potm", + "potx", + "ppa", + "ppam", + "ppm", + "pps", + "ppsm", + "ppsx", + "ppt", + "pptm", + "pptx", + "psd", + "pya", + "pyc", + "pyo", + "pyv", + "qt", + "rar", + "ras", + "raw", + "resources", + "rgb", + "rip", + "rlc", + "rmf", + "rmvb", + "rpm", + "rtf", + "rz", + "s3m", + "s7z", + "scpt", + "sgi", + "shar", + "snap", + "sil", + "sketch", + "slk", + "smv", + "snk", + "so", + "stl", + "suo", + "sub", + "swf", + "tar", + "tbz", + "tbz2", + "tga", + "tgz", + "thmx", + "tif", + "tiff", + "tlz", + "ttc", + "ttf", + "txz", + "udf", + "uvh", + "uvi", + "uvm", + "uvp", + "uvs", + "uvu", + "viv", + "vob", + "war", + "wav", + "wax", + "wbmp", + "wdp", + "weba", + "webm", + "webp", + "whl", + "wim", + "wm", + "wma", + "wmv", + "wmx", + "woff", + "woff2", + "wrm", + "wvx", + "xbm", + "xif", + "xla", + "xlam", + "xls", + "xlsb", + "xlsm", + "xlsx", + "xlt", + "xltm", + "xltx", + "xm", + "xmind", + "xpi", + "xpm", + "xwd", + "xz", + "z", + "zip", + "zipx" +] diff --git a/backend/node_modules/binary-extensions/binary-extensions.json.d.ts b/backend/node_modules/binary-extensions/binary-extensions.json.d.ts new file mode 100644 index 0000000..94a248c --- /dev/null +++ b/backend/node_modules/binary-extensions/binary-extensions.json.d.ts @@ -0,0 +1,3 @@ +declare const binaryExtensionsJson: readonly string[]; + +export = binaryExtensionsJson; diff --git a/backend/node_modules/binary-extensions/index.d.ts b/backend/node_modules/binary-extensions/index.d.ts new file mode 100644 index 0000000..f469ac5 --- /dev/null +++ b/backend/node_modules/binary-extensions/index.d.ts @@ -0,0 +1,14 @@ +/** +List of binary file extensions. + +@example +``` +import binaryExtensions = require('binary-extensions'); + +console.log(binaryExtensions); +//=> ['3ds', '3g2', …] +``` +*/ +declare const binaryExtensions: readonly string[]; + +export = binaryExtensions; diff --git a/backend/node_modules/binary-extensions/index.js b/backend/node_modules/binary-extensions/index.js new file mode 100644 index 0000000..d46e468 --- /dev/null +++ b/backend/node_modules/binary-extensions/index.js @@ -0,0 +1 @@ +module.exports = require('./binary-extensions.json'); diff --git a/backend/node_modules/binary-extensions/license b/backend/node_modules/binary-extensions/license new file mode 100644 index 0000000..5493a1a --- /dev/null +++ b/backend/node_modules/binary-extensions/license @@ -0,0 +1,10 @@ +MIT License + +Copyright (c) Sindre Sorhus (https://sindresorhus.com) +Copyright (c) Paul Miller (https://paulmillr.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/backend/node_modules/binary-extensions/package.json b/backend/node_modules/binary-extensions/package.json new file mode 100644 index 0000000..4710c33 --- /dev/null +++ b/backend/node_modules/binary-extensions/package.json @@ -0,0 +1,40 @@ +{ + "name": "binary-extensions", + "version": "2.3.0", + "description": "List of binary file extensions", + "license": "MIT", + "repository": "sindresorhus/binary-extensions", + "funding": "https://github.com/sponsors/sindresorhus", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "https://sindresorhus.com" + }, + "sideEffects": false, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts", + "binary-extensions.json", + "binary-extensions.json.d.ts" + ], + "keywords": [ + "binary", + "extensions", + "extension", + "file", + "json", + "list", + "array" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } +} diff --git a/backend/node_modules/binary-extensions/readme.md b/backend/node_modules/binary-extensions/readme.md new file mode 100644 index 0000000..88519b3 --- /dev/null +++ b/backend/node_modules/binary-extensions/readme.md @@ -0,0 +1,25 @@ +# binary-extensions + +> List of binary file extensions + +The list is just a [JSON file](binary-extensions.json) and can be used anywhere. + +## Install + +```sh +npm install binary-extensions +``` + +## Usage + +```js +const binaryExtensions = require('binary-extensions'); + +console.log(binaryExtensions); +//=> ['3ds', '3g2', …] +``` + +## Related + +- [is-binary-path](https://github.com/sindresorhus/is-binary-path) - Check if a filepath is a binary file +- [text-extensions](https://github.com/sindresorhus/text-extensions) - List of text file extensions diff --git a/backend/node_modules/braces/LICENSE b/backend/node_modules/braces/LICENSE new file mode 100644 index 0000000..9af4a67 --- /dev/null +++ b/backend/node_modules/braces/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2014-present, Jon Schlinkert. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/backend/node_modules/braces/README.md b/backend/node_modules/braces/README.md new file mode 100644 index 0000000..f59dd60 --- /dev/null +++ b/backend/node_modules/braces/README.md @@ -0,0 +1,586 @@ +# braces [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=W8YFZ425KND68) [![NPM version](https://img.shields.io/npm/v/braces.svg?style=flat)](https://www.npmjs.com/package/braces) [![NPM monthly downloads](https://img.shields.io/npm/dm/braces.svg?style=flat)](https://npmjs.org/package/braces) [![NPM total downloads](https://img.shields.io/npm/dt/braces.svg?style=flat)](https://npmjs.org/package/braces) [![Linux Build Status](https://img.shields.io/travis/micromatch/braces.svg?style=flat&label=Travis)](https://travis-ci.org/micromatch/braces) + +> Bash-like brace expansion, implemented in JavaScript. Safer than other brace expansion libs, with complete support for the Bash 4.3 braces specification, without sacrificing speed. + +Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support. + +## Install + +Install with [npm](https://www.npmjs.com/): + +```sh +$ npm install --save braces +``` + +## v3.0.0 Released!! + +See the [changelog](CHANGELOG.md) for details. + +## Why use braces? + +Brace patterns make globs more powerful by adding the ability to match specific ranges and sequences of characters. + +- **Accurate** - complete support for the [Bash 4.3 Brace Expansion](www.gnu.org/software/bash/) specification (passes all of the Bash braces tests) +- **[fast and performant](#benchmarks)** - Starts fast, runs fast and [scales well](#performance) as patterns increase in complexity. +- **Organized code base** - The parser and compiler are easy to maintain and update when edge cases crop up. +- **Well-tested** - Thousands of test assertions, and passes all of the Bash, minimatch, and [brace-expansion](https://github.com/juliangruber/brace-expansion) unit tests (as of the date this was written). +- **Safer** - You shouldn't have to worry about users defining aggressive or malicious brace patterns that can break your application. Braces takes measures to prevent malicious regex that can be used for DDoS attacks (see [catastrophic backtracking](https://www.regular-expressions.info/catastrophic.html)). +- [Supports lists](#lists) - (aka "sets") `a/{b,c}/d` => `['a/b/d', 'a/c/d']` +- [Supports sequences](#sequences) - (aka "ranges") `{01..03}` => `['01', '02', '03']` +- [Supports steps](#steps) - (aka "increments") `{2..10..2}` => `['2', '4', '6', '8', '10']` +- [Supports escaping](#escaping) - To prevent evaluation of special characters. + +## Usage + +The main export is a function that takes one or more brace `patterns` and `options`. + +```js +const braces = require('braces'); +// braces(patterns[, options]); + +console.log(braces(['{01..05}', '{a..e}'])); +//=> ['(0[1-5])', '([a-e])'] + +console.log(braces(['{01..05}', '{a..e}'], { expand: true })); +//=> ['01', '02', '03', '04', '05', 'a', 'b', 'c', 'd', 'e'] +``` + +### Brace Expansion vs. Compilation + +By default, brace patterns are compiled into strings that are optimized for creating regular expressions and matching. + +**Compiled** + +```js +console.log(braces('a/{x,y,z}/b')); +//=> ['a/(x|y|z)/b'] +console.log(braces(['a/{01..20}/b', 'a/{1..5}/b'])); +//=> [ 'a/(0[1-9]|1[0-9]|20)/b', 'a/([1-5])/b' ] +``` + +**Expanded** + +Enable brace expansion by setting the `expand` option to true, or by using [braces.expand()](#expand) (returns an array similar to what you'd expect from Bash, or `echo {1..5}`, or [minimatch](https://github.com/isaacs/minimatch)): + +```js +console.log(braces('a/{x,y,z}/b', { expand: true })); +//=> ['a/x/b', 'a/y/b', 'a/z/b'] + +console.log(braces.expand('{01..10}')); +//=> ['01','02','03','04','05','06','07','08','09','10'] +``` + +### Lists + +Expand lists (like Bash "sets"): + +```js +console.log(braces('a/{foo,bar,baz}/*.js')); +//=> ['a/(foo|bar|baz)/*.js'] + +console.log(braces.expand('a/{foo,bar,baz}/*.js')); +//=> ['a/foo/*.js', 'a/bar/*.js', 'a/baz/*.js'] +``` + +### Sequences + +Expand ranges of characters (like Bash "sequences"): + +```js +console.log(braces.expand('{1..3}')); // ['1', '2', '3'] +console.log(braces.expand('a/{1..3}/b')); // ['a/1/b', 'a/2/b', 'a/3/b'] +console.log(braces('{a..c}', { expand: true })); // ['a', 'b', 'c'] +console.log(braces('foo/{a..c}', { expand: true })); // ['foo/a', 'foo/b', 'foo/c'] + +// supports zero-padded ranges +console.log(braces('a/{01..03}/b')); //=> ['a/(0[1-3])/b'] +console.log(braces('a/{001..300}/b')); //=> ['a/(0{2}[1-9]|0[1-9][0-9]|[12][0-9]{2}|300)/b'] +``` + +See [fill-range](https://github.com/jonschlinkert/fill-range) for all available range-expansion options. + +### Steppped ranges + +Steps, or increments, may be used with ranges: + +```js +console.log(braces.expand('{2..10..2}')); +//=> ['2', '4', '6', '8', '10'] + +console.log(braces('{2..10..2}')); +//=> ['(2|4|6|8|10)'] +``` + +When the [.optimize](#optimize) method is used, or [options.optimize](#optionsoptimize) is set to true, sequences are passed to [to-regex-range](https://github.com/jonschlinkert/to-regex-range) for expansion. + +### Nesting + +Brace patterns may be nested. The results of each expanded string are not sorted, and left to right order is preserved. + +**"Expanded" braces** + +```js +console.log(braces.expand('a{b,c,/{x,y}}/e')); +//=> ['ab/e', 'ac/e', 'a/x/e', 'a/y/e'] + +console.log(braces.expand('a/{x,{1..5},y}/c')); +//=> ['a/x/c', 'a/1/c', 'a/2/c', 'a/3/c', 'a/4/c', 'a/5/c', 'a/y/c'] +``` + +**"Optimized" braces** + +```js +console.log(braces('a{b,c,/{x,y}}/e')); +//=> ['a(b|c|/(x|y))/e'] + +console.log(braces('a/{x,{1..5},y}/c')); +//=> ['a/(x|([1-5])|y)/c'] +``` + +### Escaping + +**Escaping braces** + +A brace pattern will not be expanded or evaluted if _either the opening or closing brace is escaped_: + +```js +console.log(braces.expand('a\\{d,c,b}e')); +//=> ['a{d,c,b}e'] + +console.log(braces.expand('a{d,c,b\\}e')); +//=> ['a{d,c,b}e'] +``` + +**Escaping commas** + +Commas inside braces may also be escaped: + +```js +console.log(braces.expand('a{b\\,c}d')); +//=> ['a{b,c}d'] + +console.log(braces.expand('a{d\\,c,b}e')); +//=> ['ad,ce', 'abe'] +``` + +**Single items** + +Following bash conventions, a brace pattern is also not expanded when it contains a single character: + +```js +console.log(braces.expand('a{b}c')); +//=> ['a{b}c'] +``` + +## Options + +### options.maxLength + +**Type**: `Number` + +**Default**: `10,000` + +**Description**: Limit the length of the input string. Useful when the input string is generated or your application allows users to pass a string, et cetera. + +```js +console.log(braces('a/{b,c}/d', { maxLength: 3 })); //=> throws an error +``` + +### options.expand + +**Type**: `Boolean` + +**Default**: `undefined` + +**Description**: Generate an "expanded" brace pattern (alternatively you can use the `braces.expand()` method, which does the same thing). + +```js +console.log(braces('a/{b,c}/d', { expand: true })); +//=> [ 'a/b/d', 'a/c/d' ] +``` + +### options.nodupes + +**Type**: `Boolean` + +**Default**: `undefined` + +**Description**: Remove duplicates from the returned array. + +### options.rangeLimit + +**Type**: `Number` + +**Default**: `1000` + +**Description**: To prevent malicious patterns from being passed by users, an error is thrown when `braces.expand()` is used or `options.expand` is true and the generated range will exceed the `rangeLimit`. + +You can customize `options.rangeLimit` or set it to `Inifinity` to disable this altogether. + +**Examples** + +```js +// pattern exceeds the "rangeLimit", so it's optimized automatically +console.log(braces.expand('{1..1000}')); +//=> ['([1-9]|[1-9][0-9]{1,2}|1000)'] + +// pattern does not exceed "rangeLimit", so it's NOT optimized +console.log(braces.expand('{1..100}')); +//=> ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '40', '41', '42', '43', '44', '45', '46', '47', '48', '49', '50', '51', '52', '53', '54', '55', '56', '57', '58', '59', '60', '61', '62', '63', '64', '65', '66', '67', '68', '69', '70', '71', '72', '73', '74', '75', '76', '77', '78', '79', '80', '81', '82', '83', '84', '85', '86', '87', '88', '89', '90', '91', '92', '93', '94', '95', '96', '97', '98', '99', '100'] +``` + +### options.transform + +**Type**: `Function` + +**Default**: `undefined` + +**Description**: Customize range expansion. + +**Example: Transforming non-numeric values** + +```js +const alpha = braces.expand('x/{a..e}/y', { + transform(value, index) { + // When non-numeric values are passed, "value" is a character code. + return 'foo/' + String.fromCharCode(value) + '-' + index; + }, +}); +console.log(alpha); +//=> [ 'x/foo/a-0/y', 'x/foo/b-1/y', 'x/foo/c-2/y', 'x/foo/d-3/y', 'x/foo/e-4/y' ] +``` + +**Example: Transforming numeric values** + +```js +const numeric = braces.expand('{1..5}', { + transform(value) { + // when numeric values are passed, "value" is a number + return 'foo/' + value * 2; + }, +}); +console.log(numeric); +//=> [ 'foo/2', 'foo/4', 'foo/6', 'foo/8', 'foo/10' ] +``` + +### options.quantifiers + +**Type**: `Boolean` + +**Default**: `undefined` + +**Description**: In regular expressions, quanitifiers can be used to specify how many times a token can be repeated. For example, `a{1,3}` will match the letter `a` one to three times. + +Unfortunately, regex quantifiers happen to share the same syntax as [Bash lists](#lists) + +The `quantifiers` option tells braces to detect when [regex quantifiers](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp#quantifiers) are defined in the given pattern, and not to try to expand them as lists. + +**Examples** + +```js +const braces = require('braces'); +console.log(braces('a/b{1,3}/{x,y,z}')); +//=> [ 'a/b(1|3)/(x|y|z)' ] +console.log(braces('a/b{1,3}/{x,y,z}', { quantifiers: true })); +//=> [ 'a/b{1,3}/(x|y|z)' ] +console.log(braces('a/b{1,3}/{x,y,z}', { quantifiers: true, expand: true })); +//=> [ 'a/b{1,3}/x', 'a/b{1,3}/y', 'a/b{1,3}/z' ] +``` + +### options.keepEscaping + +**Type**: `Boolean` + +**Default**: `undefined` + +**Description**: Do not strip backslashes that were used for escaping from the result. + +## What is "brace expansion"? + +Brace expansion is a type of parameter expansion that was made popular by unix shells for generating lists of strings, as well as regex-like matching when used alongside wildcards (globs). + +In addition to "expansion", braces are also used for matching. In other words: + +- [brace expansion](#brace-expansion) is for generating new lists +- [brace matching](#brace-matching) is for filtering existing lists + +
+More about brace expansion (click to expand) + +There are two main types of brace expansion: + +1. **lists**: which are defined using comma-separated values inside curly braces: `{a,b,c}` +2. **sequences**: which are defined using a starting value and an ending value, separated by two dots: `a{1..3}b`. Optionally, a third argument may be passed to define a "step" or increment to use: `a{1..100..10}b`. These are also sometimes referred to as "ranges". + +Here are some example brace patterns to illustrate how they work: + +**Sets** + +``` +{a,b,c} => a b c +{a,b,c}{1,2} => a1 a2 b1 b2 c1 c2 +``` + +**Sequences** + +``` +{1..9} => 1 2 3 4 5 6 7 8 9 +{4..-4} => 4 3 2 1 0 -1 -2 -3 -4 +{1..20..3} => 1 4 7 10 13 16 19 +{a..j} => a b c d e f g h i j +{j..a} => j i h g f e d c b a +{a..z..3} => a d g j m p s v y +``` + +**Combination** + +Sets and sequences can be mixed together or used along with any other strings. + +``` +{a,b,c}{1..3} => a1 a2 a3 b1 b2 b3 c1 c2 c3 +foo/{a,b,c}/bar => foo/a/bar foo/b/bar foo/c/bar +``` + +The fact that braces can be "expanded" from relatively simple patterns makes them ideal for quickly generating test fixtures, file paths, and similar use cases. + +## Brace matching + +In addition to _expansion_, brace patterns are also useful for performing regular-expression-like matching. + +For example, the pattern `foo/{1..3}/bar` would match any of following strings: + +``` +foo/1/bar +foo/2/bar +foo/3/bar +``` + +But not: + +``` +baz/1/qux +baz/2/qux +baz/3/qux +``` + +Braces can also be combined with [glob patterns](https://github.com/jonschlinkert/micromatch) to perform more advanced wildcard matching. For example, the pattern `*/{1..3}/*` would match any of following strings: + +``` +foo/1/bar +foo/2/bar +foo/3/bar +baz/1/qux +baz/2/qux +baz/3/qux +``` + +## Brace matching pitfalls + +Although brace patterns offer a user-friendly way of matching ranges or sets of strings, there are also some major disadvantages and potential risks you should be aware of. + +### tldr + +**"brace bombs"** + +- brace expansion can eat up a huge amount of processing resources +- as brace patterns increase _linearly in size_, the system resources required to expand the pattern increase exponentially +- users can accidentally (or intentially) exhaust your system's resources resulting in the equivalent of a DoS attack (bonus: no programming knowledge is required!) + +For a more detailed explanation with examples, see the [geometric complexity](#geometric-complexity) section. + +### The solution + +Jump to the [performance section](#performance) to see how Braces solves this problem in comparison to other libraries. + +### Geometric complexity + +At minimum, brace patterns with sets limited to two elements have quadradic or `O(n^2)` complexity. But the complexity of the algorithm increases exponentially as the number of sets, _and elements per set_, increases, which is `O(n^c)`. + +For example, the following sets demonstrate quadratic (`O(n^2)`) complexity: + +``` +{1,2}{3,4} => (2X2) => 13 14 23 24 +{1,2}{3,4}{5,6} => (2X2X2) => 135 136 145 146 235 236 245 246 +``` + +But add an element to a set, and we get a n-fold Cartesian product with `O(n^c)` complexity: + +``` +{1,2,3}{4,5,6}{7,8,9} => (3X3X3) => 147 148 149 157 158 159 167 168 169 247 248 + 249 257 258 259 267 268 269 347 348 349 357 + 358 359 367 368 369 +``` + +Now, imagine how this complexity grows given that each element is a n-tuple: + +``` +{1..100}{1..100} => (100X100) => 10,000 elements (38.4 kB) +{1..100}{1..100}{1..100} => (100X100X100) => 1,000,000 elements (5.76 MB) +``` + +Although these examples are clearly contrived, they demonstrate how brace patterns can quickly grow out of control. + +**More information** + +Interested in learning more about brace expansion? + +- [linuxjournal/bash-brace-expansion](http://www.linuxjournal.com/content/bash-brace-expansion) +- [rosettacode/Brace_expansion](https://rosettacode.org/wiki/Brace_expansion) +- [cartesian product](https://en.wikipedia.org/wiki/Cartesian_product) + +
+ +## Performance + +Braces is not only screaming fast, it's also more accurate the other brace expansion libraries. + +### Better algorithms + +Fortunately there is a solution to the ["brace bomb" problem](#brace-matching-pitfalls): _don't expand brace patterns into an array when they're used for matching_. + +Instead, convert the pattern into an optimized regular expression. This is easier said than done, and braces is the only library that does this currently. + +**The proof is in the numbers** + +Minimatch gets exponentially slower as patterns increase in complexity, braces does not. The following results were generated using `braces()` and `minimatch.braceExpand()`, respectively. + +| **Pattern** | **braces** | **[minimatch][]** | +| --------------------------- | ------------------- | ---------------------------- | +| `{1..9007199254740991}`[^1] | `298 B` (5ms 459μs) | N/A (freezes) | +| `{1..1000000000000000}` | `41 B` (1ms 15μs) | N/A (freezes) | +| `{1..100000000000000}` | `40 B` (890μs) | N/A (freezes) | +| `{1..10000000000000}` | `39 B` (2ms 49μs) | N/A (freezes) | +| `{1..1000000000000}` | `38 B` (608μs) | N/A (freezes) | +| `{1..100000000000}` | `37 B` (397μs) | N/A (freezes) | +| `{1..10000000000}` | `35 B` (983μs) | N/A (freezes) | +| `{1..1000000000}` | `34 B` (798μs) | N/A (freezes) | +| `{1..100000000}` | `33 B` (733μs) | N/A (freezes) | +| `{1..10000000}` | `32 B` (5ms 632μs) | `78.89 MB` (16s 388ms 569μs) | +| `{1..1000000}` | `31 B` (1ms 381μs) | `6.89 MB` (1s 496ms 887μs) | +| `{1..100000}` | `30 B` (950μs) | `588.89 kB` (146ms 921μs) | +| `{1..10000}` | `29 B` (1ms 114μs) | `48.89 kB` (14ms 187μs) | +| `{1..1000}` | `28 B` (760μs) | `3.89 kB` (1ms 453μs) | +| `{1..100}` | `22 B` (345μs) | `291 B` (196μs) | +| `{1..10}` | `10 B` (533μs) | `20 B` (37μs) | +| `{1..3}` | `7 B` (190μs) | `5 B` (27μs) | + +### Faster algorithms + +When you need expansion, braces is still much faster. + +_(the following results were generated using `braces.expand()` and `minimatch.braceExpand()`, respectively)_ + +| **Pattern** | **braces** | **[minimatch][]** | +| --------------- | --------------------------- | ---------------------------- | +| `{1..10000000}` | `78.89 MB` (2s 698ms 642μs) | `78.89 MB` (18s 601ms 974μs) | +| `{1..1000000}` | `6.89 MB` (458ms 576μs) | `6.89 MB` (1s 491ms 621μs) | +| `{1..100000}` | `588.89 kB` (20ms 728μs) | `588.89 kB` (156ms 919μs) | +| `{1..10000}` | `48.89 kB` (2ms 202μs) | `48.89 kB` (13ms 641μs) | +| `{1..1000}` | `3.89 kB` (1ms 796μs) | `3.89 kB` (1ms 958μs) | +| `{1..100}` | `291 B` (424μs) | `291 B` (211μs) | +| `{1..10}` | `20 B` (487μs) | `20 B` (72μs) | +| `{1..3}` | `5 B` (166μs) | `5 B` (27μs) | + +If you'd like to run these comparisons yourself, see [test/support/generate.js](test/support/generate.js). + +## Benchmarks + +### Running benchmarks + +Install dev dependencies: + +```bash +npm i -d && npm benchmark +``` + +### Latest results + +Braces is more accurate, without sacrificing performance. + +```bash +● expand - range (expanded) + braces x 53,167 ops/sec ±0.12% (102 runs sampled) + minimatch x 11,378 ops/sec ±0.10% (102 runs sampled) +● expand - range (optimized for regex) + braces x 373,442 ops/sec ±0.04% (100 runs sampled) + minimatch x 3,262 ops/sec ±0.18% (100 runs sampled) +● expand - nested ranges (expanded) + braces x 33,921 ops/sec ±0.09% (99 runs sampled) + minimatch x 10,855 ops/sec ±0.28% (100 runs sampled) +● expand - nested ranges (optimized for regex) + braces x 287,479 ops/sec ±0.52% (98 runs sampled) + minimatch x 3,219 ops/sec ±0.28% (101 runs sampled) +● expand - set (expanded) + braces x 238,243 ops/sec ±0.19% (97 runs sampled) + minimatch x 538,268 ops/sec ±0.31% (96 runs sampled) +● expand - set (optimized for regex) + braces x 321,844 ops/sec ±0.10% (97 runs sampled) + minimatch x 140,600 ops/sec ±0.15% (100 runs sampled) +● expand - nested sets (expanded) + braces x 165,371 ops/sec ±0.42% (96 runs sampled) + minimatch x 337,720 ops/sec ±0.28% (100 runs sampled) +● expand - nested sets (optimized for regex) + braces x 242,948 ops/sec ±0.12% (99 runs sampled) + minimatch x 87,403 ops/sec ±0.79% (96 runs sampled) +``` + +## About + +
+Contributing + +Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). + +
+ +
+Running Tests + +Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: + +```sh +$ npm install && npm test +``` + +
+ +
+Building docs + +_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_ + +To generate the readme, run the following command: + +```sh +$ npm install -g verbose/verb#dev verb-generate-readme && verb +``` + +
+ +### Contributors + +| **Commits** | **Contributor** | +| ----------- | ------------------------------------------------------------- | +| 197 | [jonschlinkert](https://github.com/jonschlinkert) | +| 4 | [doowb](https://github.com/doowb) | +| 1 | [es128](https://github.com/es128) | +| 1 | [eush77](https://github.com/eush77) | +| 1 | [hemanth](https://github.com/hemanth) | +| 1 | [wtgtybhertgeghgtwtg](https://github.com/wtgtybhertgeghgtwtg) | + +### Author + +**Jon Schlinkert** + +- [GitHub Profile](https://github.com/jonschlinkert) +- [Twitter Profile](https://twitter.com/jonschlinkert) +- [LinkedIn Profile](https://linkedin.com/in/jonschlinkert) + +### License + +Copyright © 2019, [Jon Schlinkert](https://github.com/jonschlinkert). +Released under the [MIT License](LICENSE). + +--- + +_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on April 08, 2019._ diff --git a/backend/node_modules/braces/index.js b/backend/node_modules/braces/index.js new file mode 100644 index 0000000..d222c13 --- /dev/null +++ b/backend/node_modules/braces/index.js @@ -0,0 +1,170 @@ +'use strict'; + +const stringify = require('./lib/stringify'); +const compile = require('./lib/compile'); +const expand = require('./lib/expand'); +const parse = require('./lib/parse'); + +/** + * Expand the given pattern or create a regex-compatible string. + * + * ```js + * const braces = require('braces'); + * console.log(braces('{a,b,c}', { compile: true })); //=> ['(a|b|c)'] + * console.log(braces('{a,b,c}')); //=> ['a', 'b', 'c'] + * ``` + * @param {String} `str` + * @param {Object} `options` + * @return {String} + * @api public + */ + +const braces = (input, options = {}) => { + let output = []; + + if (Array.isArray(input)) { + for (const pattern of input) { + const result = braces.create(pattern, options); + if (Array.isArray(result)) { + output.push(...result); + } else { + output.push(result); + } + } + } else { + output = [].concat(braces.create(input, options)); + } + + if (options && options.expand === true && options.nodupes === true) { + output = [...new Set(output)]; + } + return output; +}; + +/** + * Parse the given `str` with the given `options`. + * + * ```js + * // braces.parse(pattern, [, options]); + * const ast = braces.parse('a/{b,c}/d'); + * console.log(ast); + * ``` + * @param {String} pattern Brace pattern to parse + * @param {Object} options + * @return {Object} Returns an AST + * @api public + */ + +braces.parse = (input, options = {}) => parse(input, options); + +/** + * Creates a braces string from an AST, or an AST node. + * + * ```js + * const braces = require('braces'); + * let ast = braces.parse('foo/{a,b}/bar'); + * console.log(stringify(ast.nodes[2])); //=> '{a,b}' + * ``` + * @param {String} `input` Brace pattern or AST. + * @param {Object} `options` + * @return {Array} Returns an array of expanded values. + * @api public + */ + +braces.stringify = (input, options = {}) => { + if (typeof input === 'string') { + return stringify(braces.parse(input, options), options); + } + return stringify(input, options); +}; + +/** + * Compiles a brace pattern into a regex-compatible, optimized string. + * This method is called by the main [braces](#braces) function by default. + * + * ```js + * const braces = require('braces'); + * console.log(braces.compile('a/{b,c}/d')); + * //=> ['a/(b|c)/d'] + * ``` + * @param {String} `input` Brace pattern or AST. + * @param {Object} `options` + * @return {Array} Returns an array of expanded values. + * @api public + */ + +braces.compile = (input, options = {}) => { + if (typeof input === 'string') { + input = braces.parse(input, options); + } + return compile(input, options); +}; + +/** + * Expands a brace pattern into an array. This method is called by the + * main [braces](#braces) function when `options.expand` is true. Before + * using this method it's recommended that you read the [performance notes](#performance)) + * and advantages of using [.compile](#compile) instead. + * + * ```js + * const braces = require('braces'); + * console.log(braces.expand('a/{b,c}/d')); + * //=> ['a/b/d', 'a/c/d']; + * ``` + * @param {String} `pattern` Brace pattern + * @param {Object} `options` + * @return {Array} Returns an array of expanded values. + * @api public + */ + +braces.expand = (input, options = {}) => { + if (typeof input === 'string') { + input = braces.parse(input, options); + } + + let result = expand(input, options); + + // filter out empty strings if specified + if (options.noempty === true) { + result = result.filter(Boolean); + } + + // filter out duplicates if specified + if (options.nodupes === true) { + result = [...new Set(result)]; + } + + return result; +}; + +/** + * Processes a brace pattern and returns either an expanded array + * (if `options.expand` is true), a highly optimized regex-compatible string. + * This method is called by the main [braces](#braces) function. + * + * ```js + * const braces = require('braces'); + * console.log(braces.create('user-{200..300}/project-{a,b,c}-{1..10}')) + * //=> 'user-(20[0-9]|2[1-9][0-9]|300)/project-(a|b|c)-([1-9]|10)' + * ``` + * @param {String} `pattern` Brace pattern + * @param {Object} `options` + * @return {Array} Returns an array of expanded values. + * @api public + */ + +braces.create = (input, options = {}) => { + if (input === '' || input.length < 3) { + return [input]; + } + + return options.expand !== true + ? braces.compile(input, options) + : braces.expand(input, options); +}; + +/** + * Expose "braces" + */ + +module.exports = braces; diff --git a/backend/node_modules/braces/lib/compile.js b/backend/node_modules/braces/lib/compile.js new file mode 100644 index 0000000..dce69be --- /dev/null +++ b/backend/node_modules/braces/lib/compile.js @@ -0,0 +1,60 @@ +'use strict'; + +const fill = require('fill-range'); +const utils = require('./utils'); + +const compile = (ast, options = {}) => { + const walk = (node, parent = {}) => { + const invalidBlock = utils.isInvalidBrace(parent); + const invalidNode = node.invalid === true && options.escapeInvalid === true; + const invalid = invalidBlock === true || invalidNode === true; + const prefix = options.escapeInvalid === true ? '\\' : ''; + let output = ''; + + if (node.isOpen === true) { + return prefix + node.value; + } + + if (node.isClose === true) { + console.log('node.isClose', prefix, node.value); + return prefix + node.value; + } + + if (node.type === 'open') { + return invalid ? prefix + node.value : '('; + } + + if (node.type === 'close') { + return invalid ? prefix + node.value : ')'; + } + + if (node.type === 'comma') { + return node.prev.type === 'comma' ? '' : invalid ? node.value : '|'; + } + + if (node.value) { + return node.value; + } + + if (node.nodes && node.ranges > 0) { + const args = utils.reduce(node.nodes); + const range = fill(...args, { ...options, wrap: false, toRegex: true, strictZeros: true }); + + if (range.length !== 0) { + return args.length > 1 && range.length > 1 ? `(${range})` : range; + } + } + + if (node.nodes) { + for (const child of node.nodes) { + output += walk(child, node); + } + } + + return output; + }; + + return walk(ast); +}; + +module.exports = compile; diff --git a/backend/node_modules/braces/lib/constants.js b/backend/node_modules/braces/lib/constants.js new file mode 100644 index 0000000..2bb3b88 --- /dev/null +++ b/backend/node_modules/braces/lib/constants.js @@ -0,0 +1,57 @@ +'use strict'; + +module.exports = { + MAX_LENGTH: 10000, + + // Digits + CHAR_0: '0', /* 0 */ + CHAR_9: '9', /* 9 */ + + // Alphabet chars. + CHAR_UPPERCASE_A: 'A', /* A */ + CHAR_LOWERCASE_A: 'a', /* a */ + CHAR_UPPERCASE_Z: 'Z', /* Z */ + CHAR_LOWERCASE_Z: 'z', /* z */ + + CHAR_LEFT_PARENTHESES: '(', /* ( */ + CHAR_RIGHT_PARENTHESES: ')', /* ) */ + + CHAR_ASTERISK: '*', /* * */ + + // Non-alphabetic chars. + CHAR_AMPERSAND: '&', /* & */ + CHAR_AT: '@', /* @ */ + CHAR_BACKSLASH: '\\', /* \ */ + CHAR_BACKTICK: '`', /* ` */ + CHAR_CARRIAGE_RETURN: '\r', /* \r */ + CHAR_CIRCUMFLEX_ACCENT: '^', /* ^ */ + CHAR_COLON: ':', /* : */ + CHAR_COMMA: ',', /* , */ + CHAR_DOLLAR: '$', /* . */ + CHAR_DOT: '.', /* . */ + CHAR_DOUBLE_QUOTE: '"', /* " */ + CHAR_EQUAL: '=', /* = */ + CHAR_EXCLAMATION_MARK: '!', /* ! */ + CHAR_FORM_FEED: '\f', /* \f */ + CHAR_FORWARD_SLASH: '/', /* / */ + CHAR_HASH: '#', /* # */ + CHAR_HYPHEN_MINUS: '-', /* - */ + CHAR_LEFT_ANGLE_BRACKET: '<', /* < */ + CHAR_LEFT_CURLY_BRACE: '{', /* { */ + CHAR_LEFT_SQUARE_BRACKET: '[', /* [ */ + CHAR_LINE_FEED: '\n', /* \n */ + CHAR_NO_BREAK_SPACE: '\u00A0', /* \u00A0 */ + CHAR_PERCENT: '%', /* % */ + CHAR_PLUS: '+', /* + */ + CHAR_QUESTION_MARK: '?', /* ? */ + CHAR_RIGHT_ANGLE_BRACKET: '>', /* > */ + CHAR_RIGHT_CURLY_BRACE: '}', /* } */ + CHAR_RIGHT_SQUARE_BRACKET: ']', /* ] */ + CHAR_SEMICOLON: ';', /* ; */ + CHAR_SINGLE_QUOTE: '\'', /* ' */ + CHAR_SPACE: ' ', /* */ + CHAR_TAB: '\t', /* \t */ + CHAR_UNDERSCORE: '_', /* _ */ + CHAR_VERTICAL_LINE: '|', /* | */ + CHAR_ZERO_WIDTH_NOBREAK_SPACE: '\uFEFF' /* \uFEFF */ +}; diff --git a/backend/node_modules/braces/lib/expand.js b/backend/node_modules/braces/lib/expand.js new file mode 100644 index 0000000..35b2c41 --- /dev/null +++ b/backend/node_modules/braces/lib/expand.js @@ -0,0 +1,113 @@ +'use strict'; + +const fill = require('fill-range'); +const stringify = require('./stringify'); +const utils = require('./utils'); + +const append = (queue = '', stash = '', enclose = false) => { + const result = []; + + queue = [].concat(queue); + stash = [].concat(stash); + + if (!stash.length) return queue; + if (!queue.length) { + return enclose ? utils.flatten(stash).map(ele => `{${ele}}`) : stash; + } + + for (const item of queue) { + if (Array.isArray(item)) { + for (const value of item) { + result.push(append(value, stash, enclose)); + } + } else { + for (let ele of stash) { + if (enclose === true && typeof ele === 'string') ele = `{${ele}}`; + result.push(Array.isArray(ele) ? append(item, ele, enclose) : item + ele); + } + } + } + return utils.flatten(result); +}; + +const expand = (ast, options = {}) => { + const rangeLimit = options.rangeLimit === undefined ? 1000 : options.rangeLimit; + + const walk = (node, parent = {}) => { + node.queue = []; + + let p = parent; + let q = parent.queue; + + while (p.type !== 'brace' && p.type !== 'root' && p.parent) { + p = p.parent; + q = p.queue; + } + + if (node.invalid || node.dollar) { + q.push(append(q.pop(), stringify(node, options))); + return; + } + + if (node.type === 'brace' && node.invalid !== true && node.nodes.length === 2) { + q.push(append(q.pop(), ['{}'])); + return; + } + + if (node.nodes && node.ranges > 0) { + const args = utils.reduce(node.nodes); + + if (utils.exceedsLimit(...args, options.step, rangeLimit)) { + throw new RangeError('expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.'); + } + + let range = fill(...args, options); + if (range.length === 0) { + range = stringify(node, options); + } + + q.push(append(q.pop(), range)); + node.nodes = []; + return; + } + + const enclose = utils.encloseBrace(node); + let queue = node.queue; + let block = node; + + while (block.type !== 'brace' && block.type !== 'root' && block.parent) { + block = block.parent; + queue = block.queue; + } + + for (let i = 0; i < node.nodes.length; i++) { + const child = node.nodes[i]; + + if (child.type === 'comma' && node.type === 'brace') { + if (i === 1) queue.push(''); + queue.push(''); + continue; + } + + if (child.type === 'close') { + q.push(append(q.pop(), queue, enclose)); + continue; + } + + if (child.value && child.type !== 'open') { + queue.push(append(queue.pop(), child.value)); + continue; + } + + if (child.nodes) { + walk(child, node); + } + } + + return queue; + }; + + return utils.flatten(walk(ast)); +}; + +module.exports = expand; diff --git a/backend/node_modules/braces/lib/parse.js b/backend/node_modules/braces/lib/parse.js new file mode 100644 index 0000000..3a6988e --- /dev/null +++ b/backend/node_modules/braces/lib/parse.js @@ -0,0 +1,331 @@ +'use strict'; + +const stringify = require('./stringify'); + +/** + * Constants + */ + +const { + MAX_LENGTH, + CHAR_BACKSLASH, /* \ */ + CHAR_BACKTICK, /* ` */ + CHAR_COMMA, /* , */ + CHAR_DOT, /* . */ + CHAR_LEFT_PARENTHESES, /* ( */ + CHAR_RIGHT_PARENTHESES, /* ) */ + CHAR_LEFT_CURLY_BRACE, /* { */ + CHAR_RIGHT_CURLY_BRACE, /* } */ + CHAR_LEFT_SQUARE_BRACKET, /* [ */ + CHAR_RIGHT_SQUARE_BRACKET, /* ] */ + CHAR_DOUBLE_QUOTE, /* " */ + CHAR_SINGLE_QUOTE, /* ' */ + CHAR_NO_BREAK_SPACE, + CHAR_ZERO_WIDTH_NOBREAK_SPACE +} = require('./constants'); + +/** + * parse + */ + +const parse = (input, options = {}) => { + if (typeof input !== 'string') { + throw new TypeError('Expected a string'); + } + + const opts = options || {}; + const max = typeof opts.maxLength === 'number' ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH; + if (input.length > max) { + throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`); + } + + const ast = { type: 'root', input, nodes: [] }; + const stack = [ast]; + let block = ast; + let prev = ast; + let brackets = 0; + const length = input.length; + let index = 0; + let depth = 0; + let value; + + /** + * Helpers + */ + + const advance = () => input[index++]; + const push = node => { + if (node.type === 'text' && prev.type === 'dot') { + prev.type = 'text'; + } + + if (prev && prev.type === 'text' && node.type === 'text') { + prev.value += node.value; + return; + } + + block.nodes.push(node); + node.parent = block; + node.prev = prev; + prev = node; + return node; + }; + + push({ type: 'bos' }); + + while (index < length) { + block = stack[stack.length - 1]; + value = advance(); + + /** + * Invalid chars + */ + + if (value === CHAR_ZERO_WIDTH_NOBREAK_SPACE || value === CHAR_NO_BREAK_SPACE) { + continue; + } + + /** + * Escaped chars + */ + + if (value === CHAR_BACKSLASH) { + push({ type: 'text', value: (options.keepEscaping ? value : '') + advance() }); + continue; + } + + /** + * Right square bracket (literal): ']' + */ + + if (value === CHAR_RIGHT_SQUARE_BRACKET) { + push({ type: 'text', value: '\\' + value }); + continue; + } + + /** + * Left square bracket: '[' + */ + + if (value === CHAR_LEFT_SQUARE_BRACKET) { + brackets++; + + let next; + + while (index < length && (next = advance())) { + value += next; + + if (next === CHAR_LEFT_SQUARE_BRACKET) { + brackets++; + continue; + } + + if (next === CHAR_BACKSLASH) { + value += advance(); + continue; + } + + if (next === CHAR_RIGHT_SQUARE_BRACKET) { + brackets--; + + if (brackets === 0) { + break; + } + } + } + + push({ type: 'text', value }); + continue; + } + + /** + * Parentheses + */ + + if (value === CHAR_LEFT_PARENTHESES) { + block = push({ type: 'paren', nodes: [] }); + stack.push(block); + push({ type: 'text', value }); + continue; + } + + if (value === CHAR_RIGHT_PARENTHESES) { + if (block.type !== 'paren') { + push({ type: 'text', value }); + continue; + } + block = stack.pop(); + push({ type: 'text', value }); + block = stack[stack.length - 1]; + continue; + } + + /** + * Quotes: '|"|` + */ + + if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) { + const open = value; + let next; + + if (options.keepQuotes !== true) { + value = ''; + } + + while (index < length && (next = advance())) { + if (next === CHAR_BACKSLASH) { + value += next + advance(); + continue; + } + + if (next === open) { + if (options.keepQuotes === true) value += next; + break; + } + + value += next; + } + + push({ type: 'text', value }); + continue; + } + + /** + * Left curly brace: '{' + */ + + if (value === CHAR_LEFT_CURLY_BRACE) { + depth++; + + const dollar = prev.value && prev.value.slice(-1) === '$' || block.dollar === true; + const brace = { + type: 'brace', + open: true, + close: false, + dollar, + depth, + commas: 0, + ranges: 0, + nodes: [] + }; + + block = push(brace); + stack.push(block); + push({ type: 'open', value }); + continue; + } + + /** + * Right curly brace: '}' + */ + + if (value === CHAR_RIGHT_CURLY_BRACE) { + if (block.type !== 'brace') { + push({ type: 'text', value }); + continue; + } + + const type = 'close'; + block = stack.pop(); + block.close = true; + + push({ type, value }); + depth--; + + block = stack[stack.length - 1]; + continue; + } + + /** + * Comma: ',' + */ + + if (value === CHAR_COMMA && depth > 0) { + if (block.ranges > 0) { + block.ranges = 0; + const open = block.nodes.shift(); + block.nodes = [open, { type: 'text', value: stringify(block) }]; + } + + push({ type: 'comma', value }); + block.commas++; + continue; + } + + /** + * Dot: '.' + */ + + if (value === CHAR_DOT && depth > 0 && block.commas === 0) { + const siblings = block.nodes; + + if (depth === 0 || siblings.length === 0) { + push({ type: 'text', value }); + continue; + } + + if (prev.type === 'dot') { + block.range = []; + prev.value += value; + prev.type = 'range'; + + if (block.nodes.length !== 3 && block.nodes.length !== 5) { + block.invalid = true; + block.ranges = 0; + prev.type = 'text'; + continue; + } + + block.ranges++; + block.args = []; + continue; + } + + if (prev.type === 'range') { + siblings.pop(); + + const before = siblings[siblings.length - 1]; + before.value += prev.value + value; + prev = before; + block.ranges--; + continue; + } + + push({ type: 'dot', value }); + continue; + } + + /** + * Text + */ + + push({ type: 'text', value }); + } + + // Mark imbalanced braces and brackets as invalid + do { + block = stack.pop(); + + if (block.type !== 'root') { + block.nodes.forEach(node => { + if (!node.nodes) { + if (node.type === 'open') node.isOpen = true; + if (node.type === 'close') node.isClose = true; + if (!node.nodes) node.type = 'text'; + node.invalid = true; + } + }); + + // get the location of the block on parent.nodes (block's siblings) + const parent = stack[stack.length - 1]; + const index = parent.nodes.indexOf(block); + // replace the (invalid) block with it's nodes + parent.nodes.splice(index, 1, ...block.nodes); + } + } while (stack.length > 0); + + push({ type: 'eos' }); + return ast; +}; + +module.exports = parse; diff --git a/backend/node_modules/braces/lib/stringify.js b/backend/node_modules/braces/lib/stringify.js new file mode 100644 index 0000000..8bcf872 --- /dev/null +++ b/backend/node_modules/braces/lib/stringify.js @@ -0,0 +1,32 @@ +'use strict'; + +const utils = require('./utils'); + +module.exports = (ast, options = {}) => { + const stringify = (node, parent = {}) => { + const invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent); + const invalidNode = node.invalid === true && options.escapeInvalid === true; + let output = ''; + + if (node.value) { + if ((invalidBlock || invalidNode) && utils.isOpenOrClose(node)) { + return '\\' + node.value; + } + return node.value; + } + + if (node.value) { + return node.value; + } + + if (node.nodes) { + for (const child of node.nodes) { + output += stringify(child); + } + } + return output; + }; + + return stringify(ast); +}; + diff --git a/backend/node_modules/braces/lib/utils.js b/backend/node_modules/braces/lib/utils.js new file mode 100644 index 0000000..d19311f --- /dev/null +++ b/backend/node_modules/braces/lib/utils.js @@ -0,0 +1,122 @@ +'use strict'; + +exports.isInteger = num => { + if (typeof num === 'number') { + return Number.isInteger(num); + } + if (typeof num === 'string' && num.trim() !== '') { + return Number.isInteger(Number(num)); + } + return false; +}; + +/** + * Find a node of the given type + */ + +exports.find = (node, type) => node.nodes.find(node => node.type === type); + +/** + * Find a node of the given type + */ + +exports.exceedsLimit = (min, max, step = 1, limit) => { + if (limit === false) return false; + if (!exports.isInteger(min) || !exports.isInteger(max)) return false; + return ((Number(max) - Number(min)) / Number(step)) >= limit; +}; + +/** + * Escape the given node with '\\' before node.value + */ + +exports.escapeNode = (block, n = 0, type) => { + const node = block.nodes[n]; + if (!node) return; + + if ((type && node.type === type) || node.type === 'open' || node.type === 'close') { + if (node.escaped !== true) { + node.value = '\\' + node.value; + node.escaped = true; + } + } +}; + +/** + * Returns true if the given brace node should be enclosed in literal braces + */ + +exports.encloseBrace = node => { + if (node.type !== 'brace') return false; + if ((node.commas >> 0 + node.ranges >> 0) === 0) { + node.invalid = true; + return true; + } + return false; +}; + +/** + * Returns true if a brace node is invalid. + */ + +exports.isInvalidBrace = block => { + if (block.type !== 'brace') return false; + if (block.invalid === true || block.dollar) return true; + if ((block.commas >> 0 + block.ranges >> 0) === 0) { + block.invalid = true; + return true; + } + if (block.open !== true || block.close !== true) { + block.invalid = true; + return true; + } + return false; +}; + +/** + * Returns true if a node is an open or close node + */ + +exports.isOpenOrClose = node => { + if (node.type === 'open' || node.type === 'close') { + return true; + } + return node.open === true || node.close === true; +}; + +/** + * Reduce an array of text nodes. + */ + +exports.reduce = nodes => nodes.reduce((acc, node) => { + if (node.type === 'text') acc.push(node.value); + if (node.type === 'range') node.type = 'text'; + return acc; +}, []); + +/** + * Flatten an array + */ + +exports.flatten = (...args) => { + const result = []; + + const flat = arr => { + for (let i = 0; i < arr.length; i++) { + const ele = arr[i]; + + if (Array.isArray(ele)) { + flat(ele); + continue; + } + + if (ele !== undefined) { + result.push(ele); + } + } + return result; + }; + + flat(args); + return result; +}; diff --git a/backend/node_modules/braces/package.json b/backend/node_modules/braces/package.json new file mode 100644 index 0000000..c3c056e --- /dev/null +++ b/backend/node_modules/braces/package.json @@ -0,0 +1,77 @@ +{ + "name": "braces", + "description": "Bash-like brace expansion, implemented in JavaScript. Safer than other brace expansion libs, with complete support for the Bash 4.3 braces specification, without sacrificing speed.", + "version": "3.0.3", + "homepage": "https://github.com/micromatch/braces", + "author": "Jon Schlinkert (https://github.com/jonschlinkert)", + "contributors": [ + "Brian Woodward (https://twitter.com/doowb)", + "Elan Shanker (https://github.com/es128)", + "Eugene Sharygin (https://github.com/eush77)", + "hemanth.hm (http://h3manth.com)", + "Jon Schlinkert (http://twitter.com/jonschlinkert)" + ], + "repository": "micromatch/braces", + "bugs": { + "url": "https://github.com/micromatch/braces/issues" + }, + "license": "MIT", + "files": [ + "index.js", + "lib" + ], + "main": "index.js", + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "mocha", + "benchmark": "node benchmark" + }, + "dependencies": { + "fill-range": "^7.1.1" + }, + "devDependencies": { + "ansi-colors": "^3.2.4", + "bash-path": "^2.0.1", + "gulp-format-md": "^2.0.0", + "mocha": "^6.1.1" + }, + "keywords": [ + "alpha", + "alphabetical", + "bash", + "brace", + "braces", + "expand", + "expansion", + "filepath", + "fill", + "fs", + "glob", + "globbing", + "letter", + "match", + "matches", + "matching", + "number", + "numerical", + "path", + "range", + "ranges", + "sh" + ], + "verb": { + "toc": false, + "layout": "default", + "tasks": [ + "readme" + ], + "lint": { + "reflinks": true + }, + "plugins": [ + "gulp-format-md" + ] + } +} diff --git a/backend/node_modules/chokidar/LICENSE b/backend/node_modules/chokidar/LICENSE new file mode 100644 index 0000000..fa9162b --- /dev/null +++ b/backend/node_modules/chokidar/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2012-2019 Paul Miller (https://paulmillr.com), Elan Shanker + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the “Software”), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/backend/node_modules/chokidar/README.md b/backend/node_modules/chokidar/README.md new file mode 100644 index 0000000..8e25dec --- /dev/null +++ b/backend/node_modules/chokidar/README.md @@ -0,0 +1,308 @@ +# Chokidar [![Weekly downloads](https://img.shields.io/npm/dw/chokidar.svg)](https://github.com/paulmillr/chokidar) [![Yearly downloads](https://img.shields.io/npm/dy/chokidar.svg)](https://github.com/paulmillr/chokidar) + +> Minimal and efficient cross-platform file watching library + +[![NPM](https://nodei.co/npm/chokidar.png)](https://www.npmjs.com/package/chokidar) + +## Why? + +Node.js `fs.watch`: + +* Doesn't report filenames on MacOS. +* Doesn't report events at all when using editors like Sublime on MacOS. +* Often reports events twice. +* Emits most changes as `rename`. +* Does not provide an easy way to recursively watch file trees. +* Does not support recursive watching on Linux. + +Node.js `fs.watchFile`: + +* Almost as bad at event handling. +* Also does not provide any recursive watching. +* Results in high CPU utilization. + +Chokidar resolves these problems. + +Initially made for **[Brunch](https://brunch.io/)** (an ultra-swift web app build tool), it is now used in +[Microsoft's Visual Studio Code](https://github.com/microsoft/vscode), +[gulp](https://github.com/gulpjs/gulp/), +[karma](https://karma-runner.github.io/), +[PM2](https://github.com/Unitech/PM2), +[browserify](http://browserify.org/), +[webpack](https://webpack.github.io/), +[BrowserSync](https://www.browsersync.io/), +and [many others](https://www.npmjs.com/browse/depended/chokidar). +It has proven itself in production environments. + +Version 3 is out! Check out our blog post about it: [Chokidar 3: How to save 32TB of traffic every week](https://paulmillr.com/posts/chokidar-3-save-32tb-of-traffic/) + +## How? + +Chokidar does still rely on the Node.js core `fs` module, but when using +`fs.watch` and `fs.watchFile` for watching, it normalizes the events it +receives, often checking for truth by getting file stats and/or dir contents. + +On MacOS, chokidar by default uses a native extension exposing the Darwin +`FSEvents` API. This provides very efficient recursive watching compared with +implementations like `kqueue` available on most \*nix platforms. Chokidar still +does have to do some work to normalize the events received that way as well. + +On most other platforms, the `fs.watch`-based implementation is the default, which +avoids polling and keeps CPU usage down. Be advised that chokidar will initiate +watchers recursively for everything within scope of the paths that have been +specified, so be judicious about not wasting system resources by watching much +more than needed. + +## Getting started + +Install with npm: + +```sh +npm install chokidar +``` + +Then `require` and use it in your code: + +```javascript +const chokidar = require('chokidar'); + +// One-liner for current directory +chokidar.watch('.').on('all', (event, path) => { + console.log(event, path); +}); +``` + +## API + +```javascript +// Example of a more typical implementation structure + +// Initialize watcher. +const watcher = chokidar.watch('file, dir, glob, or array', { + ignored: /(^|[\/\\])\../, // ignore dotfiles + persistent: true +}); + +// Something to use when events are received. +const log = console.log.bind(console); +// Add event listeners. +watcher + .on('add', path => log(`File ${path} has been added`)) + .on('change', path => log(`File ${path} has been changed`)) + .on('unlink', path => log(`File ${path} has been removed`)); + +// More possible events. +watcher + .on('addDir', path => log(`Directory ${path} has been added`)) + .on('unlinkDir', path => log(`Directory ${path} has been removed`)) + .on('error', error => log(`Watcher error: ${error}`)) + .on('ready', () => log('Initial scan complete. Ready for changes')) + .on('raw', (event, path, details) => { // internal + log('Raw event info:', event, path, details); + }); + +// 'add', 'addDir' and 'change' events also receive stat() results as second +// argument when available: https://nodejs.org/api/fs.html#fs_class_fs_stats +watcher.on('change', (path, stats) => { + if (stats) console.log(`File ${path} changed size to ${stats.size}`); +}); + +// Watch new files. +watcher.add('new-file'); +watcher.add(['new-file-2', 'new-file-3', '**/other-file*']); + +// Get list of actual paths being watched on the filesystem +var watchedPaths = watcher.getWatched(); + +// Un-watch some files. +await watcher.unwatch('new-file*'); + +// Stop watching. +// The method is async! +watcher.close().then(() => console.log('closed')); + +// Full list of options. See below for descriptions. +// Do not use this example! +chokidar.watch('file', { + persistent: true, + + ignored: '*.txt', + ignoreInitial: false, + followSymlinks: true, + cwd: '.', + disableGlobbing: false, + + usePolling: false, + interval: 100, + binaryInterval: 300, + alwaysStat: false, + depth: 99, + awaitWriteFinish: { + stabilityThreshold: 2000, + pollInterval: 100 + }, + + ignorePermissionErrors: false, + atomic: true // or a custom 'atomicity delay', in milliseconds (default 100) +}); + +``` + +`chokidar.watch(paths, [options])` + +* `paths` (string or array of strings). Paths to files, dirs to be watched +recursively, or glob patterns. + - Note: globs must not contain windows separators (`\`), + because that's how they work by the standard — + you'll need to replace them with forward slashes (`/`). + - Note 2: for additional glob documentation, check out low-level + library: [picomatch](https://github.com/micromatch/picomatch). +* `options` (object) Options object as defined below: + +#### Persistence + +* `persistent` (default: `true`). Indicates whether the process +should continue to run as long as files are being watched. If set to +`false` when using `fsevents` to watch, no more events will be emitted +after `ready`, even if the process continues to run. + +#### Path filtering + +* `ignored` ([anymatch](https://github.com/es128/anymatch)-compatible definition) +Defines files/paths to be ignored. The whole relative or absolute path is +tested, not just filename. If a function with two arguments is provided, it +gets called twice per path - once with a single argument (the path), second +time with two arguments (the path and the +[`fs.Stats`](https://nodejs.org/api/fs.html#fs_class_fs_stats) +object of that path). +* `ignoreInitial` (default: `false`). If set to `false` then `add`/`addDir` events are also emitted for matching paths while +instantiating the watching as chokidar discovers these file paths (before the `ready` event). +* `followSymlinks` (default: `true`). When `false`, only the +symlinks themselves will be watched for changes instead of following +the link references and bubbling events through the link's path. +* `cwd` (no default). The base directory from which watch `paths` are to be +derived. Paths emitted with events will be relative to this. +* `disableGlobbing` (default: `false`). If set to `true` then the strings passed to `.watch()` and `.add()` are treated as +literal path names, even if they look like globs. + +#### Performance + +* `usePolling` (default: `false`). +Whether to use fs.watchFile (backed by polling), or fs.watch. If polling +leads to high CPU utilization, consider setting this to `false`. It is +typically necessary to **set this to `true` to successfully watch files over +a network**, and it may be necessary to successfully watch files in other +non-standard situations. Setting to `true` explicitly on MacOS overrides the +`useFsEvents` default. You may also set the CHOKIDAR_USEPOLLING env variable +to true (1) or false (0) in order to override this option. +* _Polling-specific settings_ (effective when `usePolling: true`) + * `interval` (default: `100`). Interval of file system polling, in milliseconds. You may also + set the CHOKIDAR_INTERVAL env variable to override this option. + * `binaryInterval` (default: `300`). Interval of file system + polling for binary files. + ([see list of binary extensions](https://github.com/sindresorhus/binary-extensions/blob/master/binary-extensions.json)) +* `useFsEvents` (default: `true` on MacOS). Whether to use the +`fsevents` watching interface if available. When set to `true` explicitly +and `fsevents` is available this supercedes the `usePolling` setting. When +set to `false` on MacOS, `usePolling: true` becomes the default. +* `alwaysStat` (default: `false`). If relying upon the +[`fs.Stats`](https://nodejs.org/api/fs.html#fs_class_fs_stats) +object that may get passed with `add`, `addDir`, and `change` events, set +this to `true` to ensure it is provided even in cases where it wasn't +already available from the underlying watch events. +* `depth` (default: `undefined`). If set, limits how many levels of +subdirectories will be traversed. +* `awaitWriteFinish` (default: `false`). +By default, the `add` event will fire when a file first appears on disk, before +the entire file has been written. Furthermore, in some cases some `change` +events will be emitted while the file is being written. In some cases, +especially when watching for large files there will be a need to wait for the +write operation to finish before responding to a file creation or modification. +Setting `awaitWriteFinish` to `true` (or a truthy value) will poll file size, +holding its `add` and `change` events until the size does not change for a +configurable amount of time. The appropriate duration setting is heavily +dependent on the OS and hardware. For accurate detection this parameter should +be relatively high, making file watching much less responsive. +Use with caution. + * *`options.awaitWriteFinish` can be set to an object in order to adjust + timing params:* + * `awaitWriteFinish.stabilityThreshold` (default: 2000). Amount of time in + milliseconds for a file size to remain constant before emitting its event. + * `awaitWriteFinish.pollInterval` (default: 100). File size polling interval, in milliseconds. + +#### Errors + +* `ignorePermissionErrors` (default: `false`). Indicates whether to watch files +that don't have read permissions if possible. If watching fails due to `EPERM` +or `EACCES` with this set to `true`, the errors will be suppressed silently. +* `atomic` (default: `true` if `useFsEvents` and `usePolling` are `false`). +Automatically filters out artifacts that occur when using editors that use +"atomic writes" instead of writing directly to the source file. If a file is +re-added within 100 ms of being deleted, Chokidar emits a `change` event +rather than `unlink` then `add`. If the default of 100 ms does not work well +for you, you can override it by setting `atomic` to a custom value, in +milliseconds. + +### Methods & Events + +`chokidar.watch()` produces an instance of `FSWatcher`. Methods of `FSWatcher`: + +* `.add(path / paths)`: Add files, directories, or glob patterns for tracking. +Takes an array of strings or just one string. +* `.on(event, callback)`: Listen for an FS event. +Available events: `add`, `addDir`, `change`, `unlink`, `unlinkDir`, `ready`, +`raw`, `error`. +Additionally `all` is available which gets emitted with the underlying event +name and path for every event other than `ready`, `raw`, and `error`. `raw` is internal, use it carefully. +* `.unwatch(path / paths)`: Stop watching files, directories, or glob patterns. +Takes an array of strings or just one string. +* `.close()`: **async** Removes all listeners from watched files. Asynchronous, returns Promise. Use with `await` to ensure bugs don't happen. +* `.getWatched()`: Returns an object representing all the paths on the file +system being watched by this `FSWatcher` instance. The object's keys are all the +directories (using absolute paths unless the `cwd` option was used), and the +values are arrays of the names of the items contained in each directory. + +## CLI + +If you need a CLI interface for your file watching, check out +[chokidar-cli](https://github.com/open-cli-tools/chokidar-cli), allowing you to +execute a command on each change, or get a stdio stream of change events. + +## Install Troubleshooting + +* `npm WARN optional dep failed, continuing fsevents@n.n.n` + * This message is normal part of how `npm` handles optional dependencies and is + not indicative of a problem. Even if accompanied by other related error messages, + Chokidar should function properly. + +* `TypeError: fsevents is not a constructor` + * Update chokidar by doing `rm -rf node_modules package-lock.json yarn.lock && npm install`, or update your dependency that uses chokidar. + +* Chokidar is producing `ENOSP` error on Linux, like this: + * `bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell` + `Error: watch /home/ ENOSPC` + * This means Chokidar ran out of file handles and you'll need to increase their count by executing the following command in Terminal: + `echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p` + +## Changelog + +For more detailed changelog, see [`full_changelog.md`](.github/full_changelog.md). +- **v3.5 (Jan 6, 2021):** Support for ARM Macs with Apple Silicon. Fixes for deleted symlinks. +- **v3.4 (Apr 26, 2020):** Support for directory-based symlinks. Fixes for macos file replacement. +- **v3.3 (Nov 2, 2019):** `FSWatcher#close()` method became async. That fixes IO race conditions related to close method. +- **v3.2 (Oct 1, 2019):** Improve Linux RAM usage by 50%. Race condition fixes. Windows glob fixes. Improve stability by using tight range of dependency versions. +- **v3.1 (Sep 16, 2019):** dotfiles are no longer filtered out by default. Use `ignored` option if needed. Improve initial Linux scan time by 50%. +- **v3 (Apr 30, 2019):** massive CPU & RAM consumption improvements; reduces deps / package size by a factor of 17x and bumps Node.js requirement to v8.16 and higher. +- **v2 (Dec 29, 2017):** Globs are now posix-style-only; without windows support. Tons of bugfixes. +- **v1 (Apr 7, 2015):** Glob support, symlink support, tons of bugfixes. Node 0.8+ is supported +- **v0.1 (Apr 20, 2012):** Initial release, extracted from [Brunch](https://github.com/brunch/brunch/blob/9847a065aea300da99bd0753f90354cde9de1261/src/helpers.coffee#L66) + +## Also + +Why was chokidar named this way? What's the meaning behind it? + +>Chowkidar is a transliteration of a Hindi word meaning 'watchman, gatekeeper', चौकीदार. This ultimately comes from Sanskrit _ चतुष्क_ (crossway, quadrangle, consisting-of-four). This word is also used in other languages like Urdu as (چوکیدار) which is widely used in Pakistan and India. + +## License + +MIT (c) Paul Miller (), see [LICENSE](LICENSE) file. diff --git a/backend/node_modules/chokidar/index.js b/backend/node_modules/chokidar/index.js new file mode 100644 index 0000000..8752893 --- /dev/null +++ b/backend/node_modules/chokidar/index.js @@ -0,0 +1,973 @@ +'use strict'; + +const { EventEmitter } = require('events'); +const fs = require('fs'); +const sysPath = require('path'); +const { promisify } = require('util'); +const readdirp = require('readdirp'); +const anymatch = require('anymatch').default; +const globParent = require('glob-parent'); +const isGlob = require('is-glob'); +const braces = require('braces'); +const normalizePath = require('normalize-path'); + +const NodeFsHandler = require('./lib/nodefs-handler'); +const FsEventsHandler = require('./lib/fsevents-handler'); +const { + EV_ALL, + EV_READY, + EV_ADD, + EV_CHANGE, + EV_UNLINK, + EV_ADD_DIR, + EV_UNLINK_DIR, + EV_RAW, + EV_ERROR, + + STR_CLOSE, + STR_END, + + BACK_SLASH_RE, + DOUBLE_SLASH_RE, + SLASH_OR_BACK_SLASH_RE, + DOT_RE, + REPLACER_RE, + + SLASH, + SLASH_SLASH, + BRACE_START, + BANG, + ONE_DOT, + TWO_DOTS, + GLOBSTAR, + SLASH_GLOBSTAR, + ANYMATCH_OPTS, + STRING_TYPE, + FUNCTION_TYPE, + EMPTY_STR, + EMPTY_FN, + + isWindows, + isMacos, + isIBMi +} = require('./lib/constants'); + +const stat = promisify(fs.stat); +const readdir = promisify(fs.readdir); + +/** + * @typedef {String} Path + * @typedef {'all'|'add'|'addDir'|'change'|'unlink'|'unlinkDir'|'raw'|'error'|'ready'} EventName + * @typedef {'readdir'|'watch'|'add'|'remove'|'change'} ThrottleType + */ + +/** + * + * @typedef {Object} WatchHelpers + * @property {Boolean} followSymlinks + * @property {'stat'|'lstat'} statMethod + * @property {Path} path + * @property {Path} watchPath + * @property {Function} entryPath + * @property {Boolean} hasGlob + * @property {Object} globFilter + * @property {Function} filterPath + * @property {Function} filterDir + */ + +const arrify = (value = []) => Array.isArray(value) ? value : [value]; +const flatten = (list, result = []) => { + list.forEach(item => { + if (Array.isArray(item)) { + flatten(item, result); + } else { + result.push(item); + } + }); + return result; +}; + +const unifyPaths = (paths_) => { + /** + * @type {Array} + */ + const paths = flatten(arrify(paths_)); + if (!paths.every(p => typeof p === STRING_TYPE)) { + throw new TypeError(`Non-string provided as watch path: ${paths}`); + } + return paths.map(normalizePathToUnix); +}; + +// If SLASH_SLASH occurs at the beginning of path, it is not replaced +// because "//StoragePC/DrivePool/Movies" is a valid network path +const toUnix = (string) => { + let str = string.replace(BACK_SLASH_RE, SLASH); + let prepend = false; + if (str.startsWith(SLASH_SLASH)) { + prepend = true; + } + while (str.match(DOUBLE_SLASH_RE)) { + str = str.replace(DOUBLE_SLASH_RE, SLASH); + } + if (prepend) { + str = SLASH + str; + } + return str; +}; + +// Our version of upath.normalize +// TODO: this is not equal to path-normalize module - investigate why +const normalizePathToUnix = (path) => toUnix(sysPath.normalize(toUnix(path))); + +const normalizeIgnored = (cwd = EMPTY_STR) => (path) => { + if (typeof path !== STRING_TYPE) return path; + return normalizePathToUnix(sysPath.isAbsolute(path) ? path : sysPath.join(cwd, path)); +}; + +const getAbsolutePath = (path, cwd) => { + if (sysPath.isAbsolute(path)) { + return path; + } + if (path.startsWith(BANG)) { + return BANG + sysPath.join(cwd, path.slice(1)); + } + return sysPath.join(cwd, path); +}; + +const undef = (opts, key) => opts[key] === undefined; + +/** + * Directory entry. + * @property {Path} path + * @property {Set} items + */ +class DirEntry { + /** + * @param {Path} dir + * @param {Function} removeWatcher + */ + constructor(dir, removeWatcher) { + this.path = dir; + this._removeWatcher = removeWatcher; + /** @type {Set} */ + this.items = new Set(); + } + + add(item) { + const {items} = this; + if (!items) return; + if (item !== ONE_DOT && item !== TWO_DOTS) items.add(item); + } + + async remove(item) { + const {items} = this; + if (!items) return; + items.delete(item); + if (items.size > 0) return; + + const dir = this.path; + try { + await readdir(dir); + } catch (err) { + if (this._removeWatcher) { + this._removeWatcher(sysPath.dirname(dir), sysPath.basename(dir)); + } + } + } + + has(item) { + const {items} = this; + if (!items) return; + return items.has(item); + } + + /** + * @returns {Array} + */ + getChildren() { + const {items} = this; + if (!items) return; + return [...items.values()]; + } + + dispose() { + this.items.clear(); + delete this.path; + delete this._removeWatcher; + delete this.items; + Object.freeze(this); + } +} + +const STAT_METHOD_F = 'stat'; +const STAT_METHOD_L = 'lstat'; +class WatchHelper { + constructor(path, watchPath, follow, fsw) { + this.fsw = fsw; + this.path = path = path.replace(REPLACER_RE, EMPTY_STR); + this.watchPath = watchPath; + this.fullWatchPath = sysPath.resolve(watchPath); + this.hasGlob = watchPath !== path; + /** @type {object|boolean} */ + if (path === EMPTY_STR) this.hasGlob = false; + this.globSymlink = this.hasGlob && follow ? undefined : false; + this.globFilter = this.hasGlob ? anymatch(path, undefined, ANYMATCH_OPTS) : false; + this.dirParts = this.getDirParts(path); + this.dirParts.forEach((parts) => { + if (parts.length > 1) parts.pop(); + }); + this.followSymlinks = follow; + this.statMethod = follow ? STAT_METHOD_F : STAT_METHOD_L; + } + + checkGlobSymlink(entry) { + // only need to resolve once + // first entry should always have entry.parentDir === EMPTY_STR + if (this.globSymlink === undefined) { + this.globSymlink = entry.fullParentDir === this.fullWatchPath ? + false : {realPath: entry.fullParentDir, linkPath: this.fullWatchPath}; + } + + if (this.globSymlink) { + return entry.fullPath.replace(this.globSymlink.realPath, this.globSymlink.linkPath); + } + + return entry.fullPath; + } + + entryPath(entry) { + return sysPath.join(this.watchPath, + sysPath.relative(this.watchPath, this.checkGlobSymlink(entry)) + ); + } + + filterPath(entry) { + const {stats} = entry; + if (stats && stats.isSymbolicLink()) return this.filterDir(entry); + const resolvedPath = this.entryPath(entry); + const matchesGlob = this.hasGlob && typeof this.globFilter === FUNCTION_TYPE ? + this.globFilter(resolvedPath) : true; + return matchesGlob && + this.fsw._isntIgnored(resolvedPath, stats) && + this.fsw._hasReadPermissions(stats); + } + + getDirParts(path) { + if (!this.hasGlob) return []; + const parts = []; + const expandedPath = path.includes(BRACE_START) ? braces.expand(path) : [path]; + expandedPath.forEach((path) => { + parts.push(sysPath.relative(this.watchPath, path).split(SLASH_OR_BACK_SLASH_RE)); + }); + return parts; + } + + filterDir(entry) { + if (this.hasGlob) { + const entryParts = this.getDirParts(this.checkGlobSymlink(entry)); + let globstar = false; + this.unmatchedGlob = !this.dirParts.some((parts) => { + return parts.every((part, i) => { + if (part === GLOBSTAR) globstar = true; + return globstar || !entryParts[0][i] || anymatch(part, entryParts[0][i], ANYMATCH_OPTS); + }); + }); + } + return !this.unmatchedGlob && this.fsw._isntIgnored(this.entryPath(entry), entry.stats); + } +} + +/** + * Watches files & directories for changes. Emitted events: + * `add`, `addDir`, `change`, `unlink`, `unlinkDir`, `all`, `error` + * + * new FSWatcher() + * .add(directories) + * .on('add', path => log('File', path, 'was added')) + */ +class FSWatcher extends EventEmitter { +// Not indenting methods for history sake; for now. +constructor(_opts) { + super(); + + const opts = {}; + if (_opts) Object.assign(opts, _opts); // for frozen objects + + /** @type {Map} */ + this._watched = new Map(); + /** @type {Map} */ + this._closers = new Map(); + /** @type {Set} */ + this._ignoredPaths = new Set(); + + /** @type {Map} */ + this._throttled = new Map(); + + /** @type {Map} */ + this._symlinkPaths = new Map(); + + this._streams = new Set(); + this.closed = false; + + // Set up default options. + if (undef(opts, 'persistent')) opts.persistent = true; + if (undef(opts, 'ignoreInitial')) opts.ignoreInitial = false; + if (undef(opts, 'ignorePermissionErrors')) opts.ignorePermissionErrors = false; + if (undef(opts, 'interval')) opts.interval = 100; + if (undef(opts, 'binaryInterval')) opts.binaryInterval = 300; + if (undef(opts, 'disableGlobbing')) opts.disableGlobbing = false; + opts.enableBinaryInterval = opts.binaryInterval !== opts.interval; + + // Enable fsevents on OS X when polling isn't explicitly enabled. + if (undef(opts, 'useFsEvents')) opts.useFsEvents = !opts.usePolling; + + // If we can't use fsevents, ensure the options reflect it's disabled. + const canUseFsEvents = FsEventsHandler.canUse(); + if (!canUseFsEvents) opts.useFsEvents = false; + + // Use polling on Mac if not using fsevents. + // Other platforms use non-polling fs_watch. + if (undef(opts, 'usePolling') && !opts.useFsEvents) { + opts.usePolling = isMacos; + } + + // Always default to polling on IBM i because fs.watch() is not available on IBM i. + if(isIBMi) { + opts.usePolling = true; + } + + // Global override (useful for end-developers that need to force polling for all + // instances of chokidar, regardless of usage/dependency depth) + const envPoll = process.env.CHOKIDAR_USEPOLLING; + if (envPoll !== undefined) { + const envLower = envPoll.toLowerCase(); + + if (envLower === 'false' || envLower === '0') { + opts.usePolling = false; + } else if (envLower === 'true' || envLower === '1') { + opts.usePolling = true; + } else { + opts.usePolling = !!envLower; + } + } + const envInterval = process.env.CHOKIDAR_INTERVAL; + if (envInterval) { + opts.interval = Number.parseInt(envInterval, 10); + } + + // Editor atomic write normalization enabled by default with fs.watch + if (undef(opts, 'atomic')) opts.atomic = !opts.usePolling && !opts.useFsEvents; + if (opts.atomic) this._pendingUnlinks = new Map(); + + if (undef(opts, 'followSymlinks')) opts.followSymlinks = true; + + if (undef(opts, 'awaitWriteFinish')) opts.awaitWriteFinish = false; + if (opts.awaitWriteFinish === true) opts.awaitWriteFinish = {}; + const awf = opts.awaitWriteFinish; + if (awf) { + if (!awf.stabilityThreshold) awf.stabilityThreshold = 2000; + if (!awf.pollInterval) awf.pollInterval = 100; + this._pendingWrites = new Map(); + } + if (opts.ignored) opts.ignored = arrify(opts.ignored); + + let readyCalls = 0; + this._emitReady = () => { + readyCalls++; + if (readyCalls >= this._readyCount) { + this._emitReady = EMPTY_FN; + this._readyEmitted = true; + // use process.nextTick to allow time for listener to be bound + process.nextTick(() => this.emit(EV_READY)); + } + }; + this._emitRaw = (...args) => this.emit(EV_RAW, ...args); + this._readyEmitted = false; + this.options = opts; + + // Initialize with proper watcher. + if (opts.useFsEvents) { + this._fsEventsHandler = new FsEventsHandler(this); + } else { + this._nodeFsHandler = new NodeFsHandler(this); + } + + // You’re frozen when your heart’s not open. + Object.freeze(opts); +} + +// Public methods + +/** + * Adds paths to be watched on an existing FSWatcher instance + * @param {Path|Array} paths_ + * @param {String=} _origAdd private; for handling non-existent paths to be watched + * @param {Boolean=} _internal private; indicates a non-user add + * @returns {FSWatcher} for chaining + */ +add(paths_, _origAdd, _internal) { + const {cwd, disableGlobbing} = this.options; + this.closed = false; + let paths = unifyPaths(paths_); + if (cwd) { + paths = paths.map((path) => { + const absPath = getAbsolutePath(path, cwd); + + // Check `path` instead of `absPath` because the cwd portion can't be a glob + if (disableGlobbing || !isGlob(path)) { + return absPath; + } + return normalizePath(absPath); + }); + } + + // set aside negated glob strings + paths = paths.filter((path) => { + if (path.startsWith(BANG)) { + this._ignoredPaths.add(path.slice(1)); + return false; + } + + // if a path is being added that was previously ignored, stop ignoring it + this._ignoredPaths.delete(path); + this._ignoredPaths.delete(path + SLASH_GLOBSTAR); + + // reset the cached userIgnored anymatch fn + // to make ignoredPaths changes effective + this._userIgnored = undefined; + + return true; + }); + + if (this.options.useFsEvents && this._fsEventsHandler) { + if (!this._readyCount) this._readyCount = paths.length; + if (this.options.persistent) this._readyCount += paths.length; + paths.forEach((path) => this._fsEventsHandler._addToFsEvents(path)); + } else { + if (!this._readyCount) this._readyCount = 0; + this._readyCount += paths.length; + Promise.all( + paths.map(async path => { + const res = await this._nodeFsHandler._addToNodeFs(path, !_internal, 0, 0, _origAdd); + if (res) this._emitReady(); + return res; + }) + ).then(results => { + if (this.closed) return; + results.filter(item => item).forEach(item => { + this.add(sysPath.dirname(item), sysPath.basename(_origAdd || item)); + }); + }); + } + + return this; +} + +/** + * Close watchers or start ignoring events from specified paths. + * @param {Path|Array} paths_ - string or array of strings, file/directory paths and/or globs + * @returns {FSWatcher} for chaining +*/ +unwatch(paths_) { + if (this.closed) return this; + const paths = unifyPaths(paths_); + const {cwd} = this.options; + + paths.forEach((path) => { + // convert to absolute path unless relative path already matches + if (!sysPath.isAbsolute(path) && !this._closers.has(path)) { + if (cwd) path = sysPath.join(cwd, path); + path = sysPath.resolve(path); + } + + this._closePath(path); + + this._ignoredPaths.add(path); + if (this._watched.has(path)) { + this._ignoredPaths.add(path + SLASH_GLOBSTAR); + } + + // reset the cached userIgnored anymatch fn + // to make ignoredPaths changes effective + this._userIgnored = undefined; + }); + + return this; +} + +/** + * Close watchers and remove all listeners from watched paths. + * @returns {Promise}. +*/ +close() { + if (this.closed) return this._closePromise; + this.closed = true; + + // Memory management. + this.removeAllListeners(); + const closers = []; + this._closers.forEach(closerList => closerList.forEach(closer => { + const promise = closer(); + if (promise instanceof Promise) closers.push(promise); + })); + this._streams.forEach(stream => stream.destroy()); + this._userIgnored = undefined; + this._readyCount = 0; + this._readyEmitted = false; + this._watched.forEach(dirent => dirent.dispose()); + ['closers', 'watched', 'streams', 'symlinkPaths', 'throttled'].forEach(key => { + this[`_${key}`].clear(); + }); + + this._closePromise = closers.length ? Promise.all(closers).then(() => undefined) : Promise.resolve(); + return this._closePromise; +} + +/** + * Expose list of watched paths + * @returns {Object} for chaining +*/ +getWatched() { + const watchList = {}; + this._watched.forEach((entry, dir) => { + const key = this.options.cwd ? sysPath.relative(this.options.cwd, dir) : dir; + watchList[key || ONE_DOT] = entry.getChildren().sort(); + }); + return watchList; +} + +emitWithAll(event, args) { + this.emit(...args); + if (event !== EV_ERROR) this.emit(EV_ALL, ...args); +} + +// Common helpers +// -------------- + +/** + * Normalize and emit events. + * Calling _emit DOES NOT MEAN emit() would be called! + * @param {EventName} event Type of event + * @param {Path} path File or directory path + * @param {*=} val1 arguments to be passed with event + * @param {*=} val2 + * @param {*=} val3 + * @returns the error if defined, otherwise the value of the FSWatcher instance's `closed` flag + */ +async _emit(event, path, val1, val2, val3) { + if (this.closed) return; + + const opts = this.options; + if (isWindows) path = sysPath.normalize(path); + if (opts.cwd) path = sysPath.relative(opts.cwd, path); + /** @type Array */ + const args = [event, path]; + if (val3 !== undefined) args.push(val1, val2, val3); + else if (val2 !== undefined) args.push(val1, val2); + else if (val1 !== undefined) args.push(val1); + + const awf = opts.awaitWriteFinish; + let pw; + if (awf && (pw = this._pendingWrites.get(path))) { + pw.lastChange = new Date(); + return this; + } + + if (opts.atomic) { + if (event === EV_UNLINK) { + this._pendingUnlinks.set(path, args); + setTimeout(() => { + this._pendingUnlinks.forEach((entry, path) => { + this.emit(...entry); + this.emit(EV_ALL, ...entry); + this._pendingUnlinks.delete(path); + }); + }, typeof opts.atomic === 'number' ? opts.atomic : 100); + return this; + } + if (event === EV_ADD && this._pendingUnlinks.has(path)) { + event = args[0] = EV_CHANGE; + this._pendingUnlinks.delete(path); + } + } + + if (awf && (event === EV_ADD || event === EV_CHANGE) && this._readyEmitted) { + const awfEmit = (err, stats) => { + if (err) { + event = args[0] = EV_ERROR; + args[1] = err; + this.emitWithAll(event, args); + } else if (stats) { + // if stats doesn't exist the file must have been deleted + if (args.length > 2) { + args[2] = stats; + } else { + args.push(stats); + } + this.emitWithAll(event, args); + } + }; + + this._awaitWriteFinish(path, awf.stabilityThreshold, event, awfEmit); + return this; + } + + if (event === EV_CHANGE) { + const isThrottled = !this._throttle(EV_CHANGE, path, 50); + if (isThrottled) return this; + } + + if (opts.alwaysStat && val1 === undefined && + (event === EV_ADD || event === EV_ADD_DIR || event === EV_CHANGE) + ) { + const fullPath = opts.cwd ? sysPath.join(opts.cwd, path) : path; + let stats; + try { + stats = await stat(fullPath); + } catch (err) {} + // Suppress event when fs_stat fails, to avoid sending undefined 'stat' + if (!stats || this.closed) return; + args.push(stats); + } + this.emitWithAll(event, args); + + return this; +} + +/** + * Common handler for errors + * @param {Error} error + * @returns {Error|Boolean} The error if defined, otherwise the value of the FSWatcher instance's `closed` flag + */ +_handleError(error) { + const code = error && error.code; + if (error && code !== 'ENOENT' && code !== 'ENOTDIR' && + (!this.options.ignorePermissionErrors || (code !== 'EPERM' && code !== 'EACCES')) + ) { + this.emit(EV_ERROR, error); + } + return error || this.closed; +} + +/** + * Helper utility for throttling + * @param {ThrottleType} actionType type being throttled + * @param {Path} path being acted upon + * @param {Number} timeout duration of time to suppress duplicate actions + * @returns {Object|false} tracking object or false if action should be suppressed + */ +_throttle(actionType, path, timeout) { + if (!this._throttled.has(actionType)) { + this._throttled.set(actionType, new Map()); + } + + /** @type {Map} */ + const action = this._throttled.get(actionType); + /** @type {Object} */ + const actionPath = action.get(path); + + if (actionPath) { + actionPath.count++; + return false; + } + + let timeoutObject; + const clear = () => { + const item = action.get(path); + const count = item ? item.count : 0; + action.delete(path); + clearTimeout(timeoutObject); + if (item) clearTimeout(item.timeoutObject); + return count; + }; + timeoutObject = setTimeout(clear, timeout); + const thr = {timeoutObject, clear, count: 0}; + action.set(path, thr); + return thr; +} + +_incrReadyCount() { + return this._readyCount++; +} + +/** + * Awaits write operation to finish. + * Polls a newly created file for size variations. When files size does not change for 'threshold' milliseconds calls callback. + * @param {Path} path being acted upon + * @param {Number} threshold Time in milliseconds a file size must be fixed before acknowledging write OP is finished + * @param {EventName} event + * @param {Function} awfEmit Callback to be called when ready for event to be emitted. + */ +_awaitWriteFinish(path, threshold, event, awfEmit) { + let timeoutHandler; + + let fullPath = path; + if (this.options.cwd && !sysPath.isAbsolute(path)) { + fullPath = sysPath.join(this.options.cwd, path); + } + + const now = new Date(); + + const awaitWriteFinish = (prevStat) => { + fs.stat(fullPath, (err, curStat) => { + if (err || !this._pendingWrites.has(path)) { + if (err && err.code !== 'ENOENT') awfEmit(err); + return; + } + + const now = Number(new Date()); + + if (prevStat && curStat.size !== prevStat.size) { + this._pendingWrites.get(path).lastChange = now; + } + const pw = this._pendingWrites.get(path); + const df = now - pw.lastChange; + + if (df >= threshold) { + this._pendingWrites.delete(path); + awfEmit(undefined, curStat); + } else { + timeoutHandler = setTimeout( + awaitWriteFinish, + this.options.awaitWriteFinish.pollInterval, + curStat + ); + } + }); + }; + + if (!this._pendingWrites.has(path)) { + this._pendingWrites.set(path, { + lastChange: now, + cancelWait: () => { + this._pendingWrites.delete(path); + clearTimeout(timeoutHandler); + return event; + } + }); + timeoutHandler = setTimeout( + awaitWriteFinish, + this.options.awaitWriteFinish.pollInterval + ); + } +} + +_getGlobIgnored() { + return [...this._ignoredPaths.values()]; +} + +/** + * Determines whether user has asked to ignore this path. + * @param {Path} path filepath or dir + * @param {fs.Stats=} stats result of fs.stat + * @returns {Boolean} + */ +_isIgnored(path, stats) { + if (this.options.atomic && DOT_RE.test(path)) return true; + if (!this._userIgnored) { + const {cwd} = this.options; + const ign = this.options.ignored; + + const ignored = ign && ign.map(normalizeIgnored(cwd)); + const paths = arrify(ignored) + .filter((path) => typeof path === STRING_TYPE && !isGlob(path)) + .map((path) => path + SLASH_GLOBSTAR); + const list = this._getGlobIgnored().map(normalizeIgnored(cwd)).concat(ignored, paths); + this._userIgnored = anymatch(list, undefined, ANYMATCH_OPTS); + } + + return this._userIgnored([path, stats]); +} + +_isntIgnored(path, stat) { + return !this._isIgnored(path, stat); +} + +/** + * Provides a set of common helpers and properties relating to symlink and glob handling. + * @param {Path} path file, directory, or glob pattern being watched + * @param {Number=} depth at any depth > 0, this isn't a glob + * @returns {WatchHelper} object containing helpers for this path + */ +_getWatchHelpers(path, depth) { + const watchPath = depth || this.options.disableGlobbing || !isGlob(path) ? path : globParent(path); + const follow = this.options.followSymlinks; + + return new WatchHelper(path, watchPath, follow, this); +} + +// Directory helpers +// ----------------- + +/** + * Provides directory tracking objects + * @param {String} directory path of the directory + * @returns {DirEntry} the directory's tracking object + */ +_getWatchedDir(directory) { + if (!this._boundRemove) this._boundRemove = this._remove.bind(this); + const dir = sysPath.resolve(directory); + if (!this._watched.has(dir)) this._watched.set(dir, new DirEntry(dir, this._boundRemove)); + return this._watched.get(dir); +} + +// File helpers +// ------------ + +/** + * Check for read permissions. + * Based on this answer on SO: https://stackoverflow.com/a/11781404/1358405 + * @param {fs.Stats} stats - object, result of fs_stat + * @returns {Boolean} indicates whether the file can be read +*/ +_hasReadPermissions(stats) { + if (this.options.ignorePermissionErrors) return true; + + // stats.mode may be bigint + const md = stats && Number.parseInt(stats.mode, 10); + const st = md & 0o777; + const it = Number.parseInt(st.toString(8)[0], 10); + return Boolean(4 & it); +} + +/** + * Handles emitting unlink events for + * files and directories, and via recursion, for + * files and directories within directories that are unlinked + * @param {String} directory within which the following item is located + * @param {String} item base path of item/directory + * @returns {void} +*/ +_remove(directory, item, isDirectory) { + // if what is being deleted is a directory, get that directory's paths + // for recursive deleting and cleaning of watched object + // if it is not a directory, nestedDirectoryChildren will be empty array + const path = sysPath.join(directory, item); + const fullPath = sysPath.resolve(path); + isDirectory = isDirectory != null + ? isDirectory + : this._watched.has(path) || this._watched.has(fullPath); + + // prevent duplicate handling in case of arriving here nearly simultaneously + // via multiple paths (such as _handleFile and _handleDir) + if (!this._throttle('remove', path, 100)) return; + + // if the only watched file is removed, watch for its return + if (!isDirectory && !this.options.useFsEvents && this._watched.size === 1) { + this.add(directory, item, true); + } + + // This will create a new entry in the watched object in either case + // so we got to do the directory check beforehand + const wp = this._getWatchedDir(path); + const nestedDirectoryChildren = wp.getChildren(); + + // Recursively remove children directories / files. + nestedDirectoryChildren.forEach(nested => this._remove(path, nested)); + + // Check if item was on the watched list and remove it + const parent = this._getWatchedDir(directory); + const wasTracked = parent.has(item); + parent.remove(item); + + // Fixes issue #1042 -> Relative paths were detected and added as symlinks + // (https://github.com/paulmillr/chokidar/blob/e1753ddbc9571bdc33b4a4af172d52cb6e611c10/lib/nodefs-handler.js#L612), + // but never removed from the map in case the path was deleted. + // This leads to an incorrect state if the path was recreated: + // https://github.com/paulmillr/chokidar/blob/e1753ddbc9571bdc33b4a4af172d52cb6e611c10/lib/nodefs-handler.js#L553 + if (this._symlinkPaths.has(fullPath)) { + this._symlinkPaths.delete(fullPath); + } + + // If we wait for this file to be fully written, cancel the wait. + let relPath = path; + if (this.options.cwd) relPath = sysPath.relative(this.options.cwd, path); + if (this.options.awaitWriteFinish && this._pendingWrites.has(relPath)) { + const event = this._pendingWrites.get(relPath).cancelWait(); + if (event === EV_ADD) return; + } + + // The Entry will either be a directory that just got removed + // or a bogus entry to a file, in either case we have to remove it + this._watched.delete(path); + this._watched.delete(fullPath); + const eventName = isDirectory ? EV_UNLINK_DIR : EV_UNLINK; + if (wasTracked && !this._isIgnored(path)) this._emit(eventName, path); + + // Avoid conflicts if we later create another file with the same name + if (!this.options.useFsEvents) { + this._closePath(path); + } +} + +/** + * Closes all watchers for a path + * @param {Path} path + */ +_closePath(path) { + this._closeFile(path) + const dir = sysPath.dirname(path); + this._getWatchedDir(dir).remove(sysPath.basename(path)); +} + +/** + * Closes only file-specific watchers + * @param {Path} path + */ +_closeFile(path) { + const closers = this._closers.get(path); + if (!closers) return; + closers.forEach(closer => closer()); + this._closers.delete(path); +} + +/** + * + * @param {Path} path + * @param {Function} closer + */ +_addPathCloser(path, closer) { + if (!closer) return; + let list = this._closers.get(path); + if (!list) { + list = []; + this._closers.set(path, list); + } + list.push(closer); +} + +_readdirp(root, opts) { + if (this.closed) return; + const options = {type: EV_ALL, alwaysStat: true, lstat: true, ...opts}; + let stream = readdirp(root, options); + this._streams.add(stream); + stream.once(STR_CLOSE, () => { + stream = undefined; + }); + stream.once(STR_END, () => { + if (stream) { + this._streams.delete(stream); + stream = undefined; + } + }); + return stream; +} + +} + +// Export FSWatcher class +exports.FSWatcher = FSWatcher; + +/** + * Instantiates watcher with paths to be tracked. + * @param {String|Array} paths file/directory paths and/or globs + * @param {Object=} options chokidar opts + * @returns an instance of FSWatcher for chaining. + */ +const watch = (paths, options) => { + const watcher = new FSWatcher(options); + watcher.add(paths); + return watcher; +}; + +exports.watch = watch; diff --git a/backend/node_modules/chokidar/lib/constants.js b/backend/node_modules/chokidar/lib/constants.js new file mode 100644 index 0000000..4743865 --- /dev/null +++ b/backend/node_modules/chokidar/lib/constants.js @@ -0,0 +1,66 @@ +'use strict'; + +const {sep} = require('path'); +const {platform} = process; +const os = require('os'); + +exports.EV_ALL = 'all'; +exports.EV_READY = 'ready'; +exports.EV_ADD = 'add'; +exports.EV_CHANGE = 'change'; +exports.EV_ADD_DIR = 'addDir'; +exports.EV_UNLINK = 'unlink'; +exports.EV_UNLINK_DIR = 'unlinkDir'; +exports.EV_RAW = 'raw'; +exports.EV_ERROR = 'error'; + +exports.STR_DATA = 'data'; +exports.STR_END = 'end'; +exports.STR_CLOSE = 'close'; + +exports.FSEVENT_CREATED = 'created'; +exports.FSEVENT_MODIFIED = 'modified'; +exports.FSEVENT_DELETED = 'deleted'; +exports.FSEVENT_MOVED = 'moved'; +exports.FSEVENT_CLONED = 'cloned'; +exports.FSEVENT_UNKNOWN = 'unknown'; +exports.FSEVENT_FLAG_MUST_SCAN_SUBDIRS = 1; +exports.FSEVENT_TYPE_FILE = 'file'; +exports.FSEVENT_TYPE_DIRECTORY = 'directory'; +exports.FSEVENT_TYPE_SYMLINK = 'symlink'; + +exports.KEY_LISTENERS = 'listeners'; +exports.KEY_ERR = 'errHandlers'; +exports.KEY_RAW = 'rawEmitters'; +exports.HANDLER_KEYS = [exports.KEY_LISTENERS, exports.KEY_ERR, exports.KEY_RAW]; + +exports.DOT_SLASH = `.${sep}`; + +exports.BACK_SLASH_RE = /\\/g; +exports.DOUBLE_SLASH_RE = /\/\//; +exports.SLASH_OR_BACK_SLASH_RE = /[/\\]/; +exports.DOT_RE = /\..*\.(sw[px])$|~$|\.subl.*\.tmp/; +exports.REPLACER_RE = /^\.[/\\]/; + +exports.SLASH = '/'; +exports.SLASH_SLASH = '//'; +exports.BRACE_START = '{'; +exports.BANG = '!'; +exports.ONE_DOT = '.'; +exports.TWO_DOTS = '..'; +exports.STAR = '*'; +exports.GLOBSTAR = '**'; +exports.ROOT_GLOBSTAR = '/**/*'; +exports.SLASH_GLOBSTAR = '/**'; +exports.DIR_SUFFIX = 'Dir'; +exports.ANYMATCH_OPTS = {dot: true}; +exports.STRING_TYPE = 'string'; +exports.FUNCTION_TYPE = 'function'; +exports.EMPTY_STR = ''; +exports.EMPTY_FN = () => {}; +exports.IDENTITY_FN = val => val; + +exports.isWindows = platform === 'win32'; +exports.isMacos = platform === 'darwin'; +exports.isLinux = platform === 'linux'; +exports.isIBMi = os.type() === 'OS400'; diff --git a/backend/node_modules/chokidar/lib/fsevents-handler.js b/backend/node_modules/chokidar/lib/fsevents-handler.js new file mode 100644 index 0000000..fe29393 --- /dev/null +++ b/backend/node_modules/chokidar/lib/fsevents-handler.js @@ -0,0 +1,526 @@ +'use strict'; + +const fs = require('fs'); +const sysPath = require('path'); +const { promisify } = require('util'); + +let fsevents; +try { + fsevents = require('fsevents'); +} catch (error) { + if (process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR) console.error(error); +} + +if (fsevents) { + // TODO: real check + const mtch = process.version.match(/v(\d+)\.(\d+)/); + if (mtch && mtch[1] && mtch[2]) { + const maj = Number.parseInt(mtch[1], 10); + const min = Number.parseInt(mtch[2], 10); + if (maj === 8 && min < 16) { + fsevents = undefined; + } + } +} + +const { + EV_ADD, + EV_CHANGE, + EV_ADD_DIR, + EV_UNLINK, + EV_ERROR, + STR_DATA, + STR_END, + FSEVENT_CREATED, + FSEVENT_MODIFIED, + FSEVENT_DELETED, + FSEVENT_MOVED, + // FSEVENT_CLONED, + FSEVENT_UNKNOWN, + FSEVENT_FLAG_MUST_SCAN_SUBDIRS, + FSEVENT_TYPE_FILE, + FSEVENT_TYPE_DIRECTORY, + FSEVENT_TYPE_SYMLINK, + + ROOT_GLOBSTAR, + DIR_SUFFIX, + DOT_SLASH, + FUNCTION_TYPE, + EMPTY_FN, + IDENTITY_FN +} = require('./constants'); + +const Depth = (value) => isNaN(value) ? {} : {depth: value}; + +const stat = promisify(fs.stat); +const lstat = promisify(fs.lstat); +const realpath = promisify(fs.realpath); + +const statMethods = { stat, lstat }; + +/** + * @typedef {String} Path + */ + +/** + * @typedef {Object} FsEventsWatchContainer + * @property {Set} listeners + * @property {Function} rawEmitter + * @property {{stop: Function}} watcher + */ + +// fsevents instance helper functions +/** + * Object to hold per-process fsevents instances (may be shared across chokidar FSWatcher instances) + * @type {Map} + */ +const FSEventsWatchers = new Map(); + +// Threshold of duplicate path prefixes at which to start +// consolidating going forward +const consolidateThreshhold = 10; + +const wrongEventFlags = new Set([ + 69888, 70400, 71424, 72704, 73472, 131328, 131840, 262912 +]); + +/** + * Instantiates the fsevents interface + * @param {Path} path path to be watched + * @param {Function} callback called when fsevents is bound and ready + * @returns {{stop: Function}} new fsevents instance + */ +const createFSEventsInstance = (path, callback) => { + const stop = fsevents.watch(path, callback); + return {stop}; +}; + +/** + * Instantiates the fsevents interface or binds listeners to an existing one covering + * the same file tree. + * @param {Path} path - to be watched + * @param {Path} realPath - real path for symlinks + * @param {Function} listener - called when fsevents emits events + * @param {Function} rawEmitter - passes data to listeners of the 'raw' event + * @returns {Function} closer + */ +function setFSEventsListener(path, realPath, listener, rawEmitter) { + let watchPath = sysPath.extname(realPath) ? sysPath.dirname(realPath) : realPath; + + const parentPath = sysPath.dirname(watchPath); + let cont = FSEventsWatchers.get(watchPath); + + // If we've accumulated a substantial number of paths that + // could have been consolidated by watching one directory + // above the current one, create a watcher on the parent + // path instead, so that we do consolidate going forward. + if (couldConsolidate(parentPath)) { + watchPath = parentPath; + } + + const resolvedPath = sysPath.resolve(path); + const hasSymlink = resolvedPath !== realPath; + + const filteredListener = (fullPath, flags, info) => { + if (hasSymlink) fullPath = fullPath.replace(realPath, resolvedPath); + if ( + fullPath === resolvedPath || + !fullPath.indexOf(resolvedPath + sysPath.sep) + ) listener(fullPath, flags, info); + }; + + // check if there is already a watcher on a parent path + // modifies `watchPath` to the parent path when it finds a match + let watchedParent = false; + for (const watchedPath of FSEventsWatchers.keys()) { + if (realPath.indexOf(sysPath.resolve(watchedPath) + sysPath.sep) === 0) { + watchPath = watchedPath; + cont = FSEventsWatchers.get(watchPath); + watchedParent = true; + break; + } + } + + if (cont || watchedParent) { + cont.listeners.add(filteredListener); + } else { + cont = { + listeners: new Set([filteredListener]), + rawEmitter, + watcher: createFSEventsInstance(watchPath, (fullPath, flags) => { + if (!cont.listeners.size) return; + if (flags & FSEVENT_FLAG_MUST_SCAN_SUBDIRS) return; + const info = fsevents.getInfo(fullPath, flags); + cont.listeners.forEach(list => { + list(fullPath, flags, info); + }); + + cont.rawEmitter(info.event, fullPath, info); + }) + }; + FSEventsWatchers.set(watchPath, cont); + } + + // removes this instance's listeners and closes the underlying fsevents + // instance if there are no more listeners left + return () => { + const lst = cont.listeners; + + lst.delete(filteredListener); + if (!lst.size) { + FSEventsWatchers.delete(watchPath); + if (cont.watcher) return cont.watcher.stop().then(() => { + cont.rawEmitter = cont.watcher = undefined; + Object.freeze(cont); + }); + } + }; +} + +// Decide whether or not we should start a new higher-level +// parent watcher +const couldConsolidate = (path) => { + let count = 0; + for (const watchPath of FSEventsWatchers.keys()) { + if (watchPath.indexOf(path) === 0) { + count++; + if (count >= consolidateThreshhold) { + return true; + } + } + } + + return false; +}; + +// returns boolean indicating whether fsevents can be used +const canUse = () => fsevents && FSEventsWatchers.size < 128; + +// determines subdirectory traversal levels from root to path +const calcDepth = (path, root) => { + let i = 0; + while (!path.indexOf(root) && (path = sysPath.dirname(path)) !== root) i++; + return i; +}; + +// returns boolean indicating whether the fsevents' event info has the same type +// as the one returned by fs.stat +const sameTypes = (info, stats) => ( + info.type === FSEVENT_TYPE_DIRECTORY && stats.isDirectory() || + info.type === FSEVENT_TYPE_SYMLINK && stats.isSymbolicLink() || + info.type === FSEVENT_TYPE_FILE && stats.isFile() +) + +/** + * @mixin + */ +class FsEventsHandler { + +/** + * @param {import('../index').FSWatcher} fsw + */ +constructor(fsw) { + this.fsw = fsw; +} +checkIgnored(path, stats) { + const ipaths = this.fsw._ignoredPaths; + if (this.fsw._isIgnored(path, stats)) { + ipaths.add(path); + if (stats && stats.isDirectory()) { + ipaths.add(path + ROOT_GLOBSTAR); + } + return true; + } + + ipaths.delete(path); + ipaths.delete(path + ROOT_GLOBSTAR); +} + +addOrChange(path, fullPath, realPath, parent, watchedDir, item, info, opts) { + const event = watchedDir.has(item) ? EV_CHANGE : EV_ADD; + this.handleEvent(event, path, fullPath, realPath, parent, watchedDir, item, info, opts); +} + +async checkExists(path, fullPath, realPath, parent, watchedDir, item, info, opts) { + try { + const stats = await stat(path) + if (this.fsw.closed) return; + if (sameTypes(info, stats)) { + this.addOrChange(path, fullPath, realPath, parent, watchedDir, item, info, opts); + } else { + this.handleEvent(EV_UNLINK, path, fullPath, realPath, parent, watchedDir, item, info, opts); + } + } catch (error) { + if (error.code === 'EACCES') { + this.addOrChange(path, fullPath, realPath, parent, watchedDir, item, info, opts); + } else { + this.handleEvent(EV_UNLINK, path, fullPath, realPath, parent, watchedDir, item, info, opts); + } + } +} + +handleEvent(event, path, fullPath, realPath, parent, watchedDir, item, info, opts) { + if (this.fsw.closed || this.checkIgnored(path)) return; + + if (event === EV_UNLINK) { + const isDirectory = info.type === FSEVENT_TYPE_DIRECTORY + // suppress unlink events on never before seen files + if (isDirectory || watchedDir.has(item)) { + this.fsw._remove(parent, item, isDirectory); + } + } else { + if (event === EV_ADD) { + // track new directories + if (info.type === FSEVENT_TYPE_DIRECTORY) this.fsw._getWatchedDir(path); + + if (info.type === FSEVENT_TYPE_SYMLINK && opts.followSymlinks) { + // push symlinks back to the top of the stack to get handled + const curDepth = opts.depth === undefined ? + undefined : calcDepth(fullPath, realPath) + 1; + return this._addToFsEvents(path, false, true, curDepth); + } + + // track new paths + // (other than symlinks being followed, which will be tracked soon) + this.fsw._getWatchedDir(parent).add(item); + } + /** + * @type {'add'|'addDir'|'unlink'|'unlinkDir'} + */ + const eventName = info.type === FSEVENT_TYPE_DIRECTORY ? event + DIR_SUFFIX : event; + this.fsw._emit(eventName, path); + if (eventName === EV_ADD_DIR) this._addToFsEvents(path, false, true); + } +} + +/** + * Handle symlinks encountered during directory scan + * @param {String} watchPath - file/dir path to be watched with fsevents + * @param {String} realPath - real path (in case of symlinks) + * @param {Function} transform - path transformer + * @param {Function} globFilter - path filter in case a glob pattern was provided + * @returns {Function} closer for the watcher instance +*/ +_watchWithFsEvents(watchPath, realPath, transform, globFilter) { + if (this.fsw.closed || this.fsw._isIgnored(watchPath)) return; + const opts = this.fsw.options; + const watchCallback = async (fullPath, flags, info) => { + if (this.fsw.closed) return; + if ( + opts.depth !== undefined && + calcDepth(fullPath, realPath) > opts.depth + ) return; + const path = transform(sysPath.join( + watchPath, sysPath.relative(watchPath, fullPath) + )); + if (globFilter && !globFilter(path)) return; + // ensure directories are tracked + const parent = sysPath.dirname(path); + const item = sysPath.basename(path); + const watchedDir = this.fsw._getWatchedDir( + info.type === FSEVENT_TYPE_DIRECTORY ? path : parent + ); + + // correct for wrong events emitted + if (wrongEventFlags.has(flags) || info.event === FSEVENT_UNKNOWN) { + if (typeof opts.ignored === FUNCTION_TYPE) { + let stats; + try { + stats = await stat(path); + } catch (error) {} + if (this.fsw.closed) return; + if (this.checkIgnored(path, stats)) return; + if (sameTypes(info, stats)) { + this.addOrChange(path, fullPath, realPath, parent, watchedDir, item, info, opts); + } else { + this.handleEvent(EV_UNLINK, path, fullPath, realPath, parent, watchedDir, item, info, opts); + } + } else { + this.checkExists(path, fullPath, realPath, parent, watchedDir, item, info, opts); + } + } else { + switch (info.event) { + case FSEVENT_CREATED: + case FSEVENT_MODIFIED: + return this.addOrChange(path, fullPath, realPath, parent, watchedDir, item, info, opts); + case FSEVENT_DELETED: + case FSEVENT_MOVED: + return this.checkExists(path, fullPath, realPath, parent, watchedDir, item, info, opts); + } + } + }; + + const closer = setFSEventsListener( + watchPath, + realPath, + watchCallback, + this.fsw._emitRaw + ); + + this.fsw._emitReady(); + return closer; +} + +/** + * Handle symlinks encountered during directory scan + * @param {String} linkPath path to symlink + * @param {String} fullPath absolute path to the symlink + * @param {Function} transform pre-existing path transformer + * @param {Number} curDepth level of subdirectories traversed to where symlink is + * @returns {Promise} + */ +async _handleFsEventsSymlink(linkPath, fullPath, transform, curDepth) { + // don't follow the same symlink more than once + if (this.fsw.closed || this.fsw._symlinkPaths.has(fullPath)) return; + + this.fsw._symlinkPaths.set(fullPath, true); + this.fsw._incrReadyCount(); + + try { + const linkTarget = await realpath(linkPath); + if (this.fsw.closed) return; + if (this.fsw._isIgnored(linkTarget)) { + return this.fsw._emitReady(); + } + + this.fsw._incrReadyCount(); + + // add the linkTarget for watching with a wrapper for transform + // that causes emitted paths to incorporate the link's path + this._addToFsEvents(linkTarget || linkPath, (path) => { + let aliasedPath = linkPath; + if (linkTarget && linkTarget !== DOT_SLASH) { + aliasedPath = path.replace(linkTarget, linkPath); + } else if (path !== DOT_SLASH) { + aliasedPath = sysPath.join(linkPath, path); + } + return transform(aliasedPath); + }, false, curDepth); + } catch(error) { + if (this.fsw._handleError(error)) { + return this.fsw._emitReady(); + } + } +} + +/** + * + * @param {Path} newPath + * @param {fs.Stats} stats + */ +emitAdd(newPath, stats, processPath, opts, forceAdd) { + const pp = processPath(newPath); + const isDir = stats.isDirectory(); + const dirObj = this.fsw._getWatchedDir(sysPath.dirname(pp)); + const base = sysPath.basename(pp); + + // ensure empty dirs get tracked + if (isDir) this.fsw._getWatchedDir(pp); + if (dirObj.has(base)) return; + dirObj.add(base); + + if (!opts.ignoreInitial || forceAdd === true) { + this.fsw._emit(isDir ? EV_ADD_DIR : EV_ADD, pp, stats); + } +} + +initWatch(realPath, path, wh, processPath) { + if (this.fsw.closed) return; + const closer = this._watchWithFsEvents( + wh.watchPath, + sysPath.resolve(realPath || wh.watchPath), + processPath, + wh.globFilter + ); + this.fsw._addPathCloser(path, closer); +} + +/** + * Handle added path with fsevents + * @param {String} path file/dir path or glob pattern + * @param {Function|Boolean=} transform converts working path to what the user expects + * @param {Boolean=} forceAdd ensure add is emitted + * @param {Number=} priorDepth Level of subdirectories already traversed. + * @returns {Promise} + */ +async _addToFsEvents(path, transform, forceAdd, priorDepth) { + if (this.fsw.closed) { + return; + } + const opts = this.fsw.options; + const processPath = typeof transform === FUNCTION_TYPE ? transform : IDENTITY_FN; + + const wh = this.fsw._getWatchHelpers(path); + + // evaluate what is at the path we're being asked to watch + try { + const stats = await statMethods[wh.statMethod](wh.watchPath); + if (this.fsw.closed) return; + if (this.fsw._isIgnored(wh.watchPath, stats)) { + throw null; + } + if (stats.isDirectory()) { + // emit addDir unless this is a glob parent + if (!wh.globFilter) this.emitAdd(processPath(path), stats, processPath, opts, forceAdd); + + // don't recurse further if it would exceed depth setting + if (priorDepth && priorDepth > opts.depth) return; + + // scan the contents of the dir + this.fsw._readdirp(wh.watchPath, { + fileFilter: entry => wh.filterPath(entry), + directoryFilter: entry => wh.filterDir(entry), + ...Depth(opts.depth - (priorDepth || 0)) + }).on(STR_DATA, (entry) => { + // need to check filterPath on dirs b/c filterDir is less restrictive + if (this.fsw.closed) { + return; + } + if (entry.stats.isDirectory() && !wh.filterPath(entry)) return; + + const joinedPath = sysPath.join(wh.watchPath, entry.path); + const {fullPath} = entry; + + if (wh.followSymlinks && entry.stats.isSymbolicLink()) { + // preserve the current depth here since it can't be derived from + // real paths past the symlink + const curDepth = opts.depth === undefined ? + undefined : calcDepth(joinedPath, sysPath.resolve(wh.watchPath)) + 1; + + this._handleFsEventsSymlink(joinedPath, fullPath, processPath, curDepth); + } else { + this.emitAdd(joinedPath, entry.stats, processPath, opts, forceAdd); + } + }).on(EV_ERROR, EMPTY_FN).on(STR_END, () => { + this.fsw._emitReady(); + }); + } else { + this.emitAdd(wh.watchPath, stats, processPath, opts, forceAdd); + this.fsw._emitReady(); + } + } catch (error) { + if (!error || this.fsw._handleError(error)) { + // TODO: Strange thing: "should not choke on an ignored watch path" will be failed without 2 ready calls -__- + this.fsw._emitReady(); + this.fsw._emitReady(); + } + } + + if (opts.persistent && forceAdd !== true) { + if (typeof transform === FUNCTION_TYPE) { + // realpath has already been resolved + this.initWatch(undefined, path, wh, processPath); + } else { + let realPath; + try { + realPath = await realpath(wh.watchPath); + } catch (e) {} + this.initWatch(realPath, path, wh, processPath); + } + } +} + +} + +module.exports = FsEventsHandler; +module.exports.canUse = canUse; diff --git a/backend/node_modules/chokidar/lib/nodefs-handler.js b/backend/node_modules/chokidar/lib/nodefs-handler.js new file mode 100644 index 0000000..199cfe9 --- /dev/null +++ b/backend/node_modules/chokidar/lib/nodefs-handler.js @@ -0,0 +1,654 @@ +'use strict'; + +const fs = require('fs'); +const sysPath = require('path'); +const { promisify } = require('util'); +const isBinaryPath = require('is-binary-path'); +const { + isWindows, + isLinux, + EMPTY_FN, + EMPTY_STR, + KEY_LISTENERS, + KEY_ERR, + KEY_RAW, + HANDLER_KEYS, + EV_CHANGE, + EV_ADD, + EV_ADD_DIR, + EV_ERROR, + STR_DATA, + STR_END, + BRACE_START, + STAR +} = require('./constants'); + +const THROTTLE_MODE_WATCH = 'watch'; + +const open = promisify(fs.open); +const stat = promisify(fs.stat); +const lstat = promisify(fs.lstat); +const close = promisify(fs.close); +const fsrealpath = promisify(fs.realpath); + +const statMethods = { lstat, stat }; + +// TODO: emit errors properly. Example: EMFILE on Macos. +const foreach = (val, fn) => { + if (val instanceof Set) { + val.forEach(fn); + } else { + fn(val); + } +}; + +const addAndConvert = (main, prop, item) => { + let container = main[prop]; + if (!(container instanceof Set)) { + main[prop] = container = new Set([container]); + } + container.add(item); +}; + +const clearItem = cont => key => { + const set = cont[key]; + if (set instanceof Set) { + set.clear(); + } else { + delete cont[key]; + } +}; + +const delFromSet = (main, prop, item) => { + const container = main[prop]; + if (container instanceof Set) { + container.delete(item); + } else if (container === item) { + delete main[prop]; + } +}; + +const isEmptySet = (val) => val instanceof Set ? val.size === 0 : !val; + +/** + * @typedef {String} Path + */ + +// fs_watch helpers + +// object to hold per-process fs_watch instances +// (may be shared across chokidar FSWatcher instances) + +/** + * @typedef {Object} FsWatchContainer + * @property {Set} listeners + * @property {Set} errHandlers + * @property {Set} rawEmitters + * @property {fs.FSWatcher=} watcher + * @property {Boolean=} watcherUnusable + */ + +/** + * @type {Map} + */ +const FsWatchInstances = new Map(); + +/** + * Instantiates the fs_watch interface + * @param {String} path to be watched + * @param {Object} options to be passed to fs_watch + * @param {Function} listener main event handler + * @param {Function} errHandler emits info about errors + * @param {Function} emitRaw emits raw event data + * @returns {fs.FSWatcher} new fsevents instance + */ +function createFsWatchInstance(path, options, listener, errHandler, emitRaw) { + const handleEvent = (rawEvent, evPath) => { + listener(path); + emitRaw(rawEvent, evPath, {watchedPath: path}); + + // emit based on events occurring for files from a directory's watcher in + // case the file's watcher misses it (and rely on throttling to de-dupe) + if (evPath && path !== evPath) { + fsWatchBroadcast( + sysPath.resolve(path, evPath), KEY_LISTENERS, sysPath.join(path, evPath) + ); + } + }; + try { + return fs.watch(path, options, handleEvent); + } catch (error) { + errHandler(error); + } +} + +/** + * Helper for passing fs_watch event data to a collection of listeners + * @param {Path} fullPath absolute path bound to fs_watch instance + * @param {String} type listener type + * @param {*=} val1 arguments to be passed to listeners + * @param {*=} val2 + * @param {*=} val3 + */ +const fsWatchBroadcast = (fullPath, type, val1, val2, val3) => { + const cont = FsWatchInstances.get(fullPath); + if (!cont) return; + foreach(cont[type], (listener) => { + listener(val1, val2, val3); + }); +}; + +/** + * Instantiates the fs_watch interface or binds listeners + * to an existing one covering the same file system entry + * @param {String} path + * @param {String} fullPath absolute path + * @param {Object} options to be passed to fs_watch + * @param {Object} handlers container for event listener functions + */ +const setFsWatchListener = (path, fullPath, options, handlers) => { + const {listener, errHandler, rawEmitter} = handlers; + let cont = FsWatchInstances.get(fullPath); + + /** @type {fs.FSWatcher=} */ + let watcher; + if (!options.persistent) { + watcher = createFsWatchInstance( + path, options, listener, errHandler, rawEmitter + ); + return watcher.close.bind(watcher); + } + if (cont) { + addAndConvert(cont, KEY_LISTENERS, listener); + addAndConvert(cont, KEY_ERR, errHandler); + addAndConvert(cont, KEY_RAW, rawEmitter); + } else { + watcher = createFsWatchInstance( + path, + options, + fsWatchBroadcast.bind(null, fullPath, KEY_LISTENERS), + errHandler, // no need to use broadcast here + fsWatchBroadcast.bind(null, fullPath, KEY_RAW) + ); + if (!watcher) return; + watcher.on(EV_ERROR, async (error) => { + const broadcastErr = fsWatchBroadcast.bind(null, fullPath, KEY_ERR); + cont.watcherUnusable = true; // documented since Node 10.4.1 + // Workaround for https://github.com/joyent/node/issues/4337 + if (isWindows && error.code === 'EPERM') { + try { + const fd = await open(path, 'r'); + await close(fd); + broadcastErr(error); + } catch (err) {} + } else { + broadcastErr(error); + } + }); + cont = { + listeners: listener, + errHandlers: errHandler, + rawEmitters: rawEmitter, + watcher + }; + FsWatchInstances.set(fullPath, cont); + } + // const index = cont.listeners.indexOf(listener); + + // removes this instance's listeners and closes the underlying fs_watch + // instance if there are no more listeners left + return () => { + delFromSet(cont, KEY_LISTENERS, listener); + delFromSet(cont, KEY_ERR, errHandler); + delFromSet(cont, KEY_RAW, rawEmitter); + if (isEmptySet(cont.listeners)) { + // Check to protect against issue gh-730. + // if (cont.watcherUnusable) { + cont.watcher.close(); + // } + FsWatchInstances.delete(fullPath); + HANDLER_KEYS.forEach(clearItem(cont)); + cont.watcher = undefined; + Object.freeze(cont); + } + }; +}; + +// fs_watchFile helpers + +// object to hold per-process fs_watchFile instances +// (may be shared across chokidar FSWatcher instances) +const FsWatchFileInstances = new Map(); + +/** + * Instantiates the fs_watchFile interface or binds listeners + * to an existing one covering the same file system entry + * @param {String} path to be watched + * @param {String} fullPath absolute path + * @param {Object} options options to be passed to fs_watchFile + * @param {Object} handlers container for event listener functions + * @returns {Function} closer + */ +const setFsWatchFileListener = (path, fullPath, options, handlers) => { + const {listener, rawEmitter} = handlers; + let cont = FsWatchFileInstances.get(fullPath); + + /* eslint-disable no-unused-vars, prefer-destructuring */ + let listeners = new Set(); + let rawEmitters = new Set(); + + const copts = cont && cont.options; + if (copts && (copts.persistent < options.persistent || copts.interval > options.interval)) { + // "Upgrade" the watcher to persistence or a quicker interval. + // This creates some unlikely edge case issues if the user mixes + // settings in a very weird way, but solving for those cases + // doesn't seem worthwhile for the added complexity. + listeners = cont.listeners; + rawEmitters = cont.rawEmitters; + fs.unwatchFile(fullPath); + cont = undefined; + } + + /* eslint-enable no-unused-vars, prefer-destructuring */ + + if (cont) { + addAndConvert(cont, KEY_LISTENERS, listener); + addAndConvert(cont, KEY_RAW, rawEmitter); + } else { + // TODO + // listeners.add(listener); + // rawEmitters.add(rawEmitter); + cont = { + listeners: listener, + rawEmitters: rawEmitter, + options, + watcher: fs.watchFile(fullPath, options, (curr, prev) => { + foreach(cont.rawEmitters, (rawEmitter) => { + rawEmitter(EV_CHANGE, fullPath, {curr, prev}); + }); + const currmtime = curr.mtimeMs; + if (curr.size !== prev.size || currmtime > prev.mtimeMs || currmtime === 0) { + foreach(cont.listeners, (listener) => listener(path, curr)); + } + }) + }; + FsWatchFileInstances.set(fullPath, cont); + } + // const index = cont.listeners.indexOf(listener); + + // Removes this instance's listeners and closes the underlying fs_watchFile + // instance if there are no more listeners left. + return () => { + delFromSet(cont, KEY_LISTENERS, listener); + delFromSet(cont, KEY_RAW, rawEmitter); + if (isEmptySet(cont.listeners)) { + FsWatchFileInstances.delete(fullPath); + fs.unwatchFile(fullPath); + cont.options = cont.watcher = undefined; + Object.freeze(cont); + } + }; +}; + +/** + * @mixin + */ +class NodeFsHandler { + +/** + * @param {import("../index").FSWatcher} fsW + */ +constructor(fsW) { + this.fsw = fsW; + this._boundHandleError = (error) => fsW._handleError(error); +} + +/** + * Watch file for changes with fs_watchFile or fs_watch. + * @param {String} path to file or dir + * @param {Function} listener on fs change + * @returns {Function} closer for the watcher instance + */ +_watchWithNodeFs(path, listener) { + const opts = this.fsw.options; + const directory = sysPath.dirname(path); + const basename = sysPath.basename(path); + const parent = this.fsw._getWatchedDir(directory); + parent.add(basename); + const absolutePath = sysPath.resolve(path); + const options = {persistent: opts.persistent}; + if (!listener) listener = EMPTY_FN; + + let closer; + if (opts.usePolling) { + options.interval = opts.enableBinaryInterval && isBinaryPath(basename) ? + opts.binaryInterval : opts.interval; + closer = setFsWatchFileListener(path, absolutePath, options, { + listener, + rawEmitter: this.fsw._emitRaw + }); + } else { + closer = setFsWatchListener(path, absolutePath, options, { + listener, + errHandler: this._boundHandleError, + rawEmitter: this.fsw._emitRaw + }); + } + return closer; +} + +/** + * Watch a file and emit add event if warranted. + * @param {Path} file Path + * @param {fs.Stats} stats result of fs_stat + * @param {Boolean} initialAdd was the file added at watch instantiation? + * @returns {Function} closer for the watcher instance + */ +_handleFile(file, stats, initialAdd) { + if (this.fsw.closed) { + return; + } + const dirname = sysPath.dirname(file); + const basename = sysPath.basename(file); + const parent = this.fsw._getWatchedDir(dirname); + // stats is always present + let prevStats = stats; + + // if the file is already being watched, do nothing + if (parent.has(basename)) return; + + const listener = async (path, newStats) => { + if (!this.fsw._throttle(THROTTLE_MODE_WATCH, file, 5)) return; + if (!newStats || newStats.mtimeMs === 0) { + try { + const newStats = await stat(file); + if (this.fsw.closed) return; + // Check that change event was not fired because of changed only accessTime. + const at = newStats.atimeMs; + const mt = newStats.mtimeMs; + if (!at || at <= mt || mt !== prevStats.mtimeMs) { + this.fsw._emit(EV_CHANGE, file, newStats); + } + if (isLinux && prevStats.ino !== newStats.ino) { + this.fsw._closeFile(path) + prevStats = newStats; + this.fsw._addPathCloser(path, this._watchWithNodeFs(file, listener)); + } else { + prevStats = newStats; + } + } catch (error) { + // Fix issues where mtime is null but file is still present + this.fsw._remove(dirname, basename); + } + // add is about to be emitted if file not already tracked in parent + } else if (parent.has(basename)) { + // Check that change event was not fired because of changed only accessTime. + const at = newStats.atimeMs; + const mt = newStats.mtimeMs; + if (!at || at <= mt || mt !== prevStats.mtimeMs) { + this.fsw._emit(EV_CHANGE, file, newStats); + } + prevStats = newStats; + } + } + // kick off the watcher + const closer = this._watchWithNodeFs(file, listener); + + // emit an add event if we're supposed to + if (!(initialAdd && this.fsw.options.ignoreInitial) && this.fsw._isntIgnored(file)) { + if (!this.fsw._throttle(EV_ADD, file, 0)) return; + this.fsw._emit(EV_ADD, file, stats); + } + + return closer; +} + +/** + * Handle symlinks encountered while reading a dir. + * @param {Object} entry returned by readdirp + * @param {String} directory path of dir being read + * @param {String} path of this item + * @param {String} item basename of this item + * @returns {Promise} true if no more processing is needed for this entry. + */ +async _handleSymlink(entry, directory, path, item) { + if (this.fsw.closed) { + return; + } + const full = entry.fullPath; + const dir = this.fsw._getWatchedDir(directory); + + if (!this.fsw.options.followSymlinks) { + // watch symlink directly (don't follow) and detect changes + this.fsw._incrReadyCount(); + + let linkPath; + try { + linkPath = await fsrealpath(path); + } catch (e) { + this.fsw._emitReady(); + return true; + } + + if (this.fsw.closed) return; + if (dir.has(item)) { + if (this.fsw._symlinkPaths.get(full) !== linkPath) { + this.fsw._symlinkPaths.set(full, linkPath); + this.fsw._emit(EV_CHANGE, path, entry.stats); + } + } else { + dir.add(item); + this.fsw._symlinkPaths.set(full, linkPath); + this.fsw._emit(EV_ADD, path, entry.stats); + } + this.fsw._emitReady(); + return true; + } + + // don't follow the same symlink more than once + if (this.fsw._symlinkPaths.has(full)) { + return true; + } + + this.fsw._symlinkPaths.set(full, true); +} + +_handleRead(directory, initialAdd, wh, target, dir, depth, throttler) { + // Normalize the directory name on Windows + directory = sysPath.join(directory, EMPTY_STR); + + if (!wh.hasGlob) { + throttler = this.fsw._throttle('readdir', directory, 1000); + if (!throttler) return; + } + + const previous = this.fsw._getWatchedDir(wh.path); + const current = new Set(); + + let stream = this.fsw._readdirp(directory, { + fileFilter: entry => wh.filterPath(entry), + directoryFilter: entry => wh.filterDir(entry), + depth: 0 + }).on(STR_DATA, async (entry) => { + if (this.fsw.closed) { + stream = undefined; + return; + } + const item = entry.path; + let path = sysPath.join(directory, item); + current.add(item); + + if (entry.stats.isSymbolicLink() && await this._handleSymlink(entry, directory, path, item)) { + return; + } + + if (this.fsw.closed) { + stream = undefined; + return; + } + // Files that present in current directory snapshot + // but absent in previous are added to watch list and + // emit `add` event. + if (item === target || !target && !previous.has(item)) { + this.fsw._incrReadyCount(); + + // ensure relativeness of path is preserved in case of watcher reuse + path = sysPath.join(dir, sysPath.relative(dir, path)); + + this._addToNodeFs(path, initialAdd, wh, depth + 1); + } + }).on(EV_ERROR, this._boundHandleError); + + return new Promise(resolve => + stream.once(STR_END, () => { + if (this.fsw.closed) { + stream = undefined; + return; + } + const wasThrottled = throttler ? throttler.clear() : false; + + resolve(); + + // Files that absent in current directory snapshot + // but present in previous emit `remove` event + // and are removed from @watched[directory]. + previous.getChildren().filter((item) => { + return item !== directory && + !current.has(item) && + // in case of intersecting globs; + // a path may have been filtered out of this readdir, but + // shouldn't be removed because it matches a different glob + (!wh.hasGlob || wh.filterPath({ + fullPath: sysPath.resolve(directory, item) + })); + }).forEach((item) => { + this.fsw._remove(directory, item); + }); + + stream = undefined; + + // one more time for any missed in case changes came in extremely quickly + if (wasThrottled) this._handleRead(directory, false, wh, target, dir, depth, throttler); + }) + ); +} + +/** + * Read directory to add / remove files from `@watched` list and re-read it on change. + * @param {String} dir fs path + * @param {fs.Stats} stats + * @param {Boolean} initialAdd + * @param {Number} depth relative to user-supplied path + * @param {String} target child path targeted for watch + * @param {Object} wh Common watch helpers for this path + * @param {String} realpath + * @returns {Promise} closer for the watcher instance. + */ +async _handleDir(dir, stats, initialAdd, depth, target, wh, realpath) { + const parentDir = this.fsw._getWatchedDir(sysPath.dirname(dir)); + const tracked = parentDir.has(sysPath.basename(dir)); + if (!(initialAdd && this.fsw.options.ignoreInitial) && !target && !tracked) { + if (!wh.hasGlob || wh.globFilter(dir)) this.fsw._emit(EV_ADD_DIR, dir, stats); + } + + // ensure dir is tracked (harmless if redundant) + parentDir.add(sysPath.basename(dir)); + this.fsw._getWatchedDir(dir); + let throttler; + let closer; + + const oDepth = this.fsw.options.depth; + if ((oDepth == null || depth <= oDepth) && !this.fsw._symlinkPaths.has(realpath)) { + if (!target) { + await this._handleRead(dir, initialAdd, wh, target, dir, depth, throttler); + if (this.fsw.closed) return; + } + + closer = this._watchWithNodeFs(dir, (dirPath, stats) => { + // if current directory is removed, do nothing + if (stats && stats.mtimeMs === 0) return; + + this._handleRead(dirPath, false, wh, target, dir, depth, throttler); + }); + } + return closer; +} + +/** + * Handle added file, directory, or glob pattern. + * Delegates call to _handleFile / _handleDir after checks. + * @param {String} path to file or ir + * @param {Boolean} initialAdd was the file added at watch instantiation? + * @param {Object} priorWh depth relative to user-supplied path + * @param {Number} depth Child path actually targeted for watch + * @param {String=} target Child path actually targeted for watch + * @returns {Promise} + */ +async _addToNodeFs(path, initialAdd, priorWh, depth, target) { + const ready = this.fsw._emitReady; + if (this.fsw._isIgnored(path) || this.fsw.closed) { + ready(); + return false; + } + + const wh = this.fsw._getWatchHelpers(path, depth); + if (!wh.hasGlob && priorWh) { + wh.hasGlob = priorWh.hasGlob; + wh.globFilter = priorWh.globFilter; + wh.filterPath = entry => priorWh.filterPath(entry); + wh.filterDir = entry => priorWh.filterDir(entry); + } + + // evaluate what is at the path we're being asked to watch + try { + const stats = await statMethods[wh.statMethod](wh.watchPath); + if (this.fsw.closed) return; + if (this.fsw._isIgnored(wh.watchPath, stats)) { + ready(); + return false; + } + + const follow = this.fsw.options.followSymlinks && !path.includes(STAR) && !path.includes(BRACE_START); + let closer; + if (stats.isDirectory()) { + const absPath = sysPath.resolve(path); + const targetPath = follow ? await fsrealpath(path) : path; + if (this.fsw.closed) return; + closer = await this._handleDir(wh.watchPath, stats, initialAdd, depth, target, wh, targetPath); + if (this.fsw.closed) return; + // preserve this symlink's target path + if (absPath !== targetPath && targetPath !== undefined) { + this.fsw._symlinkPaths.set(absPath, targetPath); + } + } else if (stats.isSymbolicLink()) { + const targetPath = follow ? await fsrealpath(path) : path; + if (this.fsw.closed) return; + const parent = sysPath.dirname(wh.watchPath); + this.fsw._getWatchedDir(parent).add(wh.watchPath); + this.fsw._emit(EV_ADD, wh.watchPath, stats); + closer = await this._handleDir(parent, stats, initialAdd, depth, path, wh, targetPath); + if (this.fsw.closed) return; + + // preserve this symlink's target path + if (targetPath !== undefined) { + this.fsw._symlinkPaths.set(sysPath.resolve(path), targetPath); + } + } else { + closer = this._handleFile(wh.watchPath, stats, initialAdd); + } + ready(); + + this.fsw._addPathCloser(path, closer); + return false; + + } catch (error) { + if (this.fsw._handleError(error)) { + ready(); + return path; + } + } +} + +} + +module.exports = NodeFsHandler; diff --git a/backend/node_modules/chokidar/package.json b/backend/node_modules/chokidar/package.json new file mode 100644 index 0000000..e8f8b3d --- /dev/null +++ b/backend/node_modules/chokidar/package.json @@ -0,0 +1,70 @@ +{ + "name": "chokidar", + "description": "Minimal and efficient cross-platform file watching library", + "version": "3.6.0", + "homepage": "https://github.com/paulmillr/chokidar", + "author": "Paul Miller (https://paulmillr.com)", + "contributors": [ + "Paul Miller (https://paulmillr.com)", + "Elan Shanker" + ], + "engines": { + "node": ">= 8.10.0" + }, + "main": "index.js", + "types": "./types/index.d.ts", + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + }, + "devDependencies": { + "@types/node": "^14", + "chai": "^4.3", + "dtslint": "^3.3.0", + "eslint": "^7.0.0", + "mocha": "^7.0.0", + "rimraf": "^3.0.0", + "sinon": "^9.0.1", + "sinon-chai": "^3.3.0", + "typescript": "^4.4.3", + "upath": "^1.2.0" + }, + "files": [ + "index.js", + "lib/*.js", + "types/index.d.ts" + ], + "repository": { + "type": "git", + "url": "git+https://github.com/paulmillr/chokidar.git" + }, + "bugs": { + "url": "https://github.com/paulmillr/chokidar/issues" + }, + "license": "MIT", + "scripts": { + "dtslint": "dtslint types", + "lint": "eslint --report-unused-disable-directives --ignore-path .gitignore .", + "build": "npm ls", + "mocha": "mocha --exit --timeout 90000", + "test": "npm run lint && npm run mocha" + }, + "keywords": [ + "fs", + "watch", + "watchFile", + "watcher", + "watching", + "file", + "fsevents" + ], + "funding": "https://paulmillr.com/funding/" +} diff --git a/backend/node_modules/chokidar/types/index.d.ts b/backend/node_modules/chokidar/types/index.d.ts new file mode 100644 index 0000000..4558066 --- /dev/null +++ b/backend/node_modules/chokidar/types/index.d.ts @@ -0,0 +1,192 @@ +// TypeScript Version: 3.0 + +/// + +import * as fs from "fs"; +import { EventEmitter } from "events"; +import { Matcher } from 'anymatch'; + +export class FSWatcher extends EventEmitter implements fs.FSWatcher { + options: WatchOptions; + + /** + * Constructs a new FSWatcher instance with optional WatchOptions parameter. + */ + constructor(options?: WatchOptions); + + /** + * Add files, directories, or glob patterns for tracking. Takes an array of strings or just one + * string. + */ + add(paths: string | ReadonlyArray): this; + + /** + * Stop watching files, directories, or glob patterns. Takes an array of strings or just one + * string. + */ + unwatch(paths: string | ReadonlyArray): this; + + /** + * Returns an object representing all the paths on the file system being watched by this + * `FSWatcher` instance. The object's keys are all the directories (using absolute paths unless + * the `cwd` option was used), and the values are arrays of the names of the items contained in + * each directory. + */ + getWatched(): { + [directory: string]: string[]; + }; + + /** + * Removes all listeners from watched files. + */ + close(): Promise; + + on(event: 'add'|'addDir'|'change', listener: (path: string, stats?: fs.Stats) => void): this; + + on(event: 'all', listener: (eventName: 'add'|'addDir'|'change'|'unlink'|'unlinkDir', path: string, stats?: fs.Stats) => void): this; + + /** + * Error occurred + */ + on(event: 'error', listener: (error: Error) => void): this; + + /** + * Exposes the native Node `fs.FSWatcher events` + */ + on(event: 'raw', listener: (eventName: string, path: string, details: any) => void): this; + + /** + * Fires when the initial scan is complete + */ + on(event: 'ready', listener: () => void): this; + + on(event: 'unlink'|'unlinkDir', listener: (path: string) => void): this; + + on(event: string, listener: (...args: any[]) => void): this; + + ref(): this; + + unref(): this; +} + +export interface WatchOptions { + /** + * Indicates whether the process should continue to run as long as files are being watched. If + * set to `false` when using `fsevents` to watch, no more events will be emitted after `ready`, + * even if the process continues to run. + */ + persistent?: boolean; + + /** + * ([anymatch](https://github.com/micromatch/anymatch)-compatible definition) Defines files/paths to + * be ignored. The whole relative or absolute path is tested, not just filename. If a function + * with two arguments is provided, it gets called twice per path - once with a single argument + * (the path), second time with two arguments (the path and the + * [`fs.Stats`](https://nodejs.org/api/fs.html#fs_class_fs_stats) object of that path). + */ + ignored?: Matcher; + + /** + * If set to `false` then `add`/`addDir` events are also emitted for matching paths while + * instantiating the watching as chokidar discovers these file paths (before the `ready` event). + */ + ignoreInitial?: boolean; + + /** + * When `false`, only the symlinks themselves will be watched for changes instead of following + * the link references and bubbling events through the link's path. + */ + followSymlinks?: boolean; + + /** + * The base directory from which watch `paths` are to be derived. Paths emitted with events will + * be relative to this. + */ + cwd?: string; + + /** + * If set to true then the strings passed to .watch() and .add() are treated as literal path + * names, even if they look like globs. Default: false. + */ + disableGlobbing?: boolean; + + /** + * Whether to use fs.watchFile (backed by polling), or fs.watch. If polling leads to high CPU + * utilization, consider setting this to `false`. It is typically necessary to **set this to + * `true` to successfully watch files over a network**, and it may be necessary to successfully + * watch files in other non-standard situations. Setting to `true` explicitly on OS X overrides + * the `useFsEvents` default. + */ + usePolling?: boolean; + + /** + * Whether to use the `fsevents` watching interface if available. When set to `true` explicitly + * and `fsevents` is available this supercedes the `usePolling` setting. When set to `false` on + * OS X, `usePolling: true` becomes the default. + */ + useFsEvents?: boolean; + + /** + * If relying upon the [`fs.Stats`](https://nodejs.org/api/fs.html#fs_class_fs_stats) object that + * may get passed with `add`, `addDir`, and `change` events, set this to `true` to ensure it is + * provided even in cases where it wasn't already available from the underlying watch events. + */ + alwaysStat?: boolean; + + /** + * If set, limits how many levels of subdirectories will be traversed. + */ + depth?: number; + + /** + * Interval of file system polling. + */ + interval?: number; + + /** + * Interval of file system polling for binary files. ([see list of binary extensions](https://gi + * thub.com/sindresorhus/binary-extensions/blob/master/binary-extensions.json)) + */ + binaryInterval?: number; + + /** + * Indicates whether to watch files that don't have read permissions if possible. If watching + * fails due to `EPERM` or `EACCES` with this set to `true`, the errors will be suppressed + * silently. + */ + ignorePermissionErrors?: boolean; + + /** + * `true` if `useFsEvents` and `usePolling` are `false`). Automatically filters out artifacts + * that occur when using editors that use "atomic writes" instead of writing directly to the + * source file. If a file is re-added within 100 ms of being deleted, Chokidar emits a `change` + * event rather than `unlink` then `add`. If the default of 100 ms does not work well for you, + * you can override it by setting `atomic` to a custom value, in milliseconds. + */ + atomic?: boolean | number; + + /** + * can be set to an object in order to adjust timing params: + */ + awaitWriteFinish?: AwaitWriteFinishOptions | boolean; +} + +export interface AwaitWriteFinishOptions { + /** + * Amount of time in milliseconds for a file size to remain constant before emitting its event. + */ + stabilityThreshold?: number; + + /** + * File size polling interval. + */ + pollInterval?: number; +} + +/** + * produces an instance of `FSWatcher`. + */ +export function watch( + paths: string | ReadonlyArray, + options?: WatchOptions +): FSWatcher; diff --git a/backend/node_modules/concat-map/.travis.yml b/backend/node_modules/concat-map/.travis.yml new file mode 100644 index 0000000..f1d0f13 --- /dev/null +++ b/backend/node_modules/concat-map/.travis.yml @@ -0,0 +1,4 @@ +language: node_js +node_js: + - 0.4 + - 0.6 diff --git a/backend/node_modules/concat-map/LICENSE b/backend/node_modules/concat-map/LICENSE new file mode 100644 index 0000000..ee27ba4 --- /dev/null +++ b/backend/node_modules/concat-map/LICENSE @@ -0,0 +1,18 @@ +This software is released under the MIT license: + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/backend/node_modules/concat-map/README.markdown b/backend/node_modules/concat-map/README.markdown new file mode 100644 index 0000000..408f70a --- /dev/null +++ b/backend/node_modules/concat-map/README.markdown @@ -0,0 +1,62 @@ +concat-map +========== + +Concatenative mapdashery. + +[![browser support](http://ci.testling.com/substack/node-concat-map.png)](http://ci.testling.com/substack/node-concat-map) + +[![build status](https://secure.travis-ci.org/substack/node-concat-map.png)](http://travis-ci.org/substack/node-concat-map) + +example +======= + +``` js +var concatMap = require('concat-map'); +var xs = [ 1, 2, 3, 4, 5, 6 ]; +var ys = concatMap(xs, function (x) { + return x % 2 ? [ x - 0.1, x, x + 0.1 ] : []; +}); +console.dir(ys); +``` + +*** + +``` +[ 0.9, 1, 1.1, 2.9, 3, 3.1, 4.9, 5, 5.1 ] +``` + +methods +======= + +``` js +var concatMap = require('concat-map') +``` + +concatMap(xs, fn) +----------------- + +Return an array of concatenated elements by calling `fn(x, i)` for each element +`x` and each index `i` in the array `xs`. + +When `fn(x, i)` returns an array, its result will be concatenated with the +result array. If `fn(x, i)` returns anything else, that value will be pushed +onto the end of the result array. + +install +======= + +With [npm](http://npmjs.org) do: + +``` +npm install concat-map +``` + +license +======= + +MIT + +notes +===== + +This module was written while sitting high above the ground in a tree. diff --git a/backend/node_modules/concat-map/example/map.js b/backend/node_modules/concat-map/example/map.js new file mode 100644 index 0000000..3365621 --- /dev/null +++ b/backend/node_modules/concat-map/example/map.js @@ -0,0 +1,6 @@ +var concatMap = require('../'); +var xs = [ 1, 2, 3, 4, 5, 6 ]; +var ys = concatMap(xs, function (x) { + return x % 2 ? [ x - 0.1, x, x + 0.1 ] : []; +}); +console.dir(ys); diff --git a/backend/node_modules/concat-map/index.js b/backend/node_modules/concat-map/index.js new file mode 100644 index 0000000..b29a781 --- /dev/null +++ b/backend/node_modules/concat-map/index.js @@ -0,0 +1,13 @@ +module.exports = function (xs, fn) { + var res = []; + for (var i = 0; i < xs.length; i++) { + var x = fn(xs[i], i); + if (isArray(x)) res.push.apply(res, x); + else res.push(x); + } + return res; +}; + +var isArray = Array.isArray || function (xs) { + return Object.prototype.toString.call(xs) === '[object Array]'; +}; diff --git a/backend/node_modules/concat-map/package.json b/backend/node_modules/concat-map/package.json new file mode 100644 index 0000000..d3640e6 --- /dev/null +++ b/backend/node_modules/concat-map/package.json @@ -0,0 +1,43 @@ +{ + "name" : "concat-map", + "description" : "concatenative mapdashery", + "version" : "0.0.1", + "repository" : { + "type" : "git", + "url" : "git://github.com/substack/node-concat-map.git" + }, + "main" : "index.js", + "keywords" : [ + "concat", + "concatMap", + "map", + "functional", + "higher-order" + ], + "directories" : { + "example" : "example", + "test" : "test" + }, + "scripts" : { + "test" : "tape test/*.js" + }, + "devDependencies" : { + "tape" : "~2.4.0" + }, + "license" : "MIT", + "author" : { + "name" : "James Halliday", + "email" : "mail@substack.net", + "url" : "http://substack.net" + }, + "testling" : { + "files" : "test/*.js", + "browsers" : { + "ie" : [ 6, 7, 8, 9 ], + "ff" : [ 3.5, 10, 15.0 ], + "chrome" : [ 10, 22 ], + "safari" : [ 5.1 ], + "opera" : [ 12 ] + } + } +} diff --git a/backend/node_modules/concat-map/test/map.js b/backend/node_modules/concat-map/test/map.js new file mode 100644 index 0000000..fdbd702 --- /dev/null +++ b/backend/node_modules/concat-map/test/map.js @@ -0,0 +1,39 @@ +var concatMap = require('../'); +var test = require('tape'); + +test('empty or not', function (t) { + var xs = [ 1, 2, 3, 4, 5, 6 ]; + var ixes = []; + var ys = concatMap(xs, function (x, ix) { + ixes.push(ix); + return x % 2 ? [ x - 0.1, x, x + 0.1 ] : []; + }); + t.same(ys, [ 0.9, 1, 1.1, 2.9, 3, 3.1, 4.9, 5, 5.1 ]); + t.same(ixes, [ 0, 1, 2, 3, 4, 5 ]); + t.end(); +}); + +test('always something', function (t) { + var xs = [ 'a', 'b', 'c', 'd' ]; + var ys = concatMap(xs, function (x) { + return x === 'b' ? [ 'B', 'B', 'B' ] : [ x ]; + }); + t.same(ys, [ 'a', 'B', 'B', 'B', 'c', 'd' ]); + t.end(); +}); + +test('scalars', function (t) { + var xs = [ 'a', 'b', 'c', 'd' ]; + var ys = concatMap(xs, function (x) { + return x === 'b' ? [ 'B', 'B', 'B' ] : x; + }); + t.same(ys, [ 'a', 'B', 'B', 'B', 'c', 'd' ]); + t.end(); +}); + +test('undefs', function (t) { + var xs = [ 'a', 'b', 'c', 'd' ]; + var ys = concatMap(xs, function () {}); + t.same(ys, [ undefined, undefined, undefined, undefined ]); + t.end(); +}); diff --git a/backend/node_modules/fill-range/LICENSE b/backend/node_modules/fill-range/LICENSE new file mode 100644 index 0000000..9af4a67 --- /dev/null +++ b/backend/node_modules/fill-range/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2014-present, Jon Schlinkert. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/backend/node_modules/fill-range/README.md b/backend/node_modules/fill-range/README.md new file mode 100644 index 0000000..8d756fe --- /dev/null +++ b/backend/node_modules/fill-range/README.md @@ -0,0 +1,237 @@ +# fill-range [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=W8YFZ425KND68) [![NPM version](https://img.shields.io/npm/v/fill-range.svg?style=flat)](https://www.npmjs.com/package/fill-range) [![NPM monthly downloads](https://img.shields.io/npm/dm/fill-range.svg?style=flat)](https://npmjs.org/package/fill-range) [![NPM total downloads](https://img.shields.io/npm/dt/fill-range.svg?style=flat)](https://npmjs.org/package/fill-range) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/fill-range.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/fill-range) + +> Fill in a range of numbers or letters, optionally passing an increment or `step` to use, or create a regex-compatible range with `options.toRegex` + +Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support. + +## Install + +Install with [npm](https://www.npmjs.com/): + +```sh +$ npm install --save fill-range +``` + +## Usage + +Expands numbers and letters, optionally using a `step` as the last argument. _(Numbers may be defined as JavaScript numbers or strings)_. + +```js +const fill = require('fill-range'); +// fill(from, to[, step, options]); + +console.log(fill('1', '10')); //=> ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10'] +console.log(fill('1', '10', { toRegex: true })); //=> [1-9]|10 +``` + +**Params** + +* `from`: **{String|Number}** the number or letter to start with +* `to`: **{String|Number}** the number or letter to end with +* `step`: **{String|Number|Object|Function}** Optionally pass a [step](#optionsstep) to use. +* `options`: **{Object|Function}**: See all available [options](#options) + +## Examples + +By default, an array of values is returned. + +**Alphabetical ranges** + +```js +console.log(fill('a', 'e')); //=> ['a', 'b', 'c', 'd', 'e'] +console.log(fill('A', 'E')); //=> [ 'A', 'B', 'C', 'D', 'E' ] +``` + +**Numerical ranges** + +Numbers can be defined as actual numbers or strings. + +```js +console.log(fill(1, 5)); //=> [ 1, 2, 3, 4, 5 ] +console.log(fill('1', '5')); //=> [ 1, 2, 3, 4, 5 ] +``` + +**Negative ranges** + +Numbers can be defined as actual numbers or strings. + +```js +console.log(fill('-5', '-1')); //=> [ '-5', '-4', '-3', '-2', '-1' ] +console.log(fill('-5', '5')); //=> [ '-5', '-4', '-3', '-2', '-1', '0', '1', '2', '3', '4', '5' ] +``` + +**Steps (increments)** + +```js +// numerical ranges with increments +console.log(fill('0', '25', 4)); //=> [ '0', '4', '8', '12', '16', '20', '24' ] +console.log(fill('0', '25', 5)); //=> [ '0', '5', '10', '15', '20', '25' ] +console.log(fill('0', '25', 6)); //=> [ '0', '6', '12', '18', '24' ] + +// alphabetical ranges with increments +console.log(fill('a', 'z', 4)); //=> [ 'a', 'e', 'i', 'm', 'q', 'u', 'y' ] +console.log(fill('a', 'z', 5)); //=> [ 'a', 'f', 'k', 'p', 'u', 'z' ] +console.log(fill('a', 'z', 6)); //=> [ 'a', 'g', 'm', 's', 'y' ] +``` + +## Options + +### options.step + +**Type**: `number` (formatted as a string or number) + +**Default**: `undefined` + +**Description**: The increment to use for the range. Can be used with letters or numbers. + +**Example(s)** + +```js +// numbers +console.log(fill('1', '10', 2)); //=> [ '1', '3', '5', '7', '9' ] +console.log(fill('1', '10', 3)); //=> [ '1', '4', '7', '10' ] +console.log(fill('1', '10', 4)); //=> [ '1', '5', '9' ] + +// letters +console.log(fill('a', 'z', 5)); //=> [ 'a', 'f', 'k', 'p', 'u', 'z' ] +console.log(fill('a', 'z', 7)); //=> [ 'a', 'h', 'o', 'v' ] +console.log(fill('a', 'z', 9)); //=> [ 'a', 'j', 's' ] +``` + +### options.strictRanges + +**Type**: `boolean` + +**Default**: `false` + +**Description**: By default, `null` is returned when an invalid range is passed. Enable this option to throw a `RangeError` on invalid ranges. + +**Example(s)** + +The following are all invalid: + +```js +fill('1.1', '2'); // decimals not supported in ranges +fill('a', '2'); // incompatible range values +fill(1, 10, 'foo'); // invalid "step" argument +``` + +### options.stringify + +**Type**: `boolean` + +**Default**: `undefined` + +**Description**: Cast all returned values to strings. By default, integers are returned as numbers. + +**Example(s)** + +```js +console.log(fill(1, 5)); //=> [ 1, 2, 3, 4, 5 ] +console.log(fill(1, 5, { stringify: true })); //=> [ '1', '2', '3', '4', '5' ] +``` + +### options.toRegex + +**Type**: `boolean` + +**Default**: `undefined` + +**Description**: Create a regex-compatible source string, instead of expanding values to an array. + +**Example(s)** + +```js +// alphabetical range +console.log(fill('a', 'e', { toRegex: true })); //=> '[a-e]' +// alphabetical with step +console.log(fill('a', 'z', 3, { toRegex: true })); //=> 'a|d|g|j|m|p|s|v|y' +// numerical range +console.log(fill('1', '100', { toRegex: true })); //=> '[1-9]|[1-9][0-9]|100' +// numerical range with zero padding +console.log(fill('000001', '100000', { toRegex: true })); +//=> '0{5}[1-9]|0{4}[1-9][0-9]|0{3}[1-9][0-9]{2}|0{2}[1-9][0-9]{3}|0[1-9][0-9]{4}|100000' +``` + +### options.transform + +**Type**: `function` + +**Default**: `undefined` + +**Description**: Customize each value in the returned array (or [string](#optionstoRegex)). _(you can also pass this function as the last argument to `fill()`)_. + +**Example(s)** + +```js +// add zero padding +console.log(fill(1, 5, value => String(value).padStart(4, '0'))); +//=> ['0001', '0002', '0003', '0004', '0005'] +``` + +## About + +
+Contributing + +Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). + +
+ +
+Running Tests + +Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: + +```sh +$ npm install && npm test +``` + +
+ +
+Building docs + +_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_ + +To generate the readme, run the following command: + +```sh +$ npm install -g verbose/verb#dev verb-generate-readme && verb +``` + +
+ +### Contributors + +| **Commits** | **Contributor** | +| --- | --- | +| 116 | [jonschlinkert](https://github.com/jonschlinkert) | +| 4 | [paulmillr](https://github.com/paulmillr) | +| 2 | [realityking](https://github.com/realityking) | +| 2 | [bluelovers](https://github.com/bluelovers) | +| 1 | [edorivai](https://github.com/edorivai) | +| 1 | [wtgtybhertgeghgtwtg](https://github.com/wtgtybhertgeghgtwtg) | + +### Author + +**Jon Schlinkert** + +* [GitHub Profile](https://github.com/jonschlinkert) +* [Twitter Profile](https://twitter.com/jonschlinkert) +* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert) + +Please consider supporting me on Patreon, or [start your own Patreon page](https://patreon.com/invite/bxpbvm)! + + + + + +### License + +Copyright © 2019, [Jon Schlinkert](https://github.com/jonschlinkert). +Released under the [MIT License](LICENSE). + +*** + +_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on April 08, 2019._ \ No newline at end of file diff --git a/backend/node_modules/fill-range/index.js b/backend/node_modules/fill-range/index.js new file mode 100644 index 0000000..ddb212e --- /dev/null +++ b/backend/node_modules/fill-range/index.js @@ -0,0 +1,248 @@ +/*! + * fill-range + * + * Copyright (c) 2014-present, Jon Schlinkert. + * Licensed under the MIT License. + */ + +'use strict'; + +const util = require('util'); +const toRegexRange = require('to-regex-range'); + +const isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val); + +const transform = toNumber => { + return value => toNumber === true ? Number(value) : String(value); +}; + +const isValidValue = value => { + return typeof value === 'number' || (typeof value === 'string' && value !== ''); +}; + +const isNumber = num => Number.isInteger(+num); + +const zeros = input => { + let value = `${input}`; + let index = -1; + if (value[0] === '-') value = value.slice(1); + if (value === '0') return false; + while (value[++index] === '0'); + return index > 0; +}; + +const stringify = (start, end, options) => { + if (typeof start === 'string' || typeof end === 'string') { + return true; + } + return options.stringify === true; +}; + +const pad = (input, maxLength, toNumber) => { + if (maxLength > 0) { + let dash = input[0] === '-' ? '-' : ''; + if (dash) input = input.slice(1); + input = (dash + input.padStart(dash ? maxLength - 1 : maxLength, '0')); + } + if (toNumber === false) { + return String(input); + } + return input; +}; + +const toMaxLen = (input, maxLength) => { + let negative = input[0] === '-' ? '-' : ''; + if (negative) { + input = input.slice(1); + maxLength--; + } + while (input.length < maxLength) input = '0' + input; + return negative ? ('-' + input) : input; +}; + +const toSequence = (parts, options, maxLen) => { + parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0); + parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0); + + let prefix = options.capture ? '' : '?:'; + let positives = ''; + let negatives = ''; + let result; + + if (parts.positives.length) { + positives = parts.positives.map(v => toMaxLen(String(v), maxLen)).join('|'); + } + + if (parts.negatives.length) { + negatives = `-(${prefix}${parts.negatives.map(v => toMaxLen(String(v), maxLen)).join('|')})`; + } + + if (positives && negatives) { + result = `${positives}|${negatives}`; + } else { + result = positives || negatives; + } + + if (options.wrap) { + return `(${prefix}${result})`; + } + + return result; +}; + +const toRange = (a, b, isNumbers, options) => { + if (isNumbers) { + return toRegexRange(a, b, { wrap: false, ...options }); + } + + let start = String.fromCharCode(a); + if (a === b) return start; + + let stop = String.fromCharCode(b); + return `[${start}-${stop}]`; +}; + +const toRegex = (start, end, options) => { + if (Array.isArray(start)) { + let wrap = options.wrap === true; + let prefix = options.capture ? '' : '?:'; + return wrap ? `(${prefix}${start.join('|')})` : start.join('|'); + } + return toRegexRange(start, end, options); +}; + +const rangeError = (...args) => { + return new RangeError('Invalid range arguments: ' + util.inspect(...args)); +}; + +const invalidRange = (start, end, options) => { + if (options.strictRanges === true) throw rangeError([start, end]); + return []; +}; + +const invalidStep = (step, options) => { + if (options.strictRanges === true) { + throw new TypeError(`Expected step "${step}" to be a number`); + } + return []; +}; + +const fillNumbers = (start, end, step = 1, options = {}) => { + let a = Number(start); + let b = Number(end); + + if (!Number.isInteger(a) || !Number.isInteger(b)) { + if (options.strictRanges === true) throw rangeError([start, end]); + return []; + } + + // fix negative zero + if (a === 0) a = 0; + if (b === 0) b = 0; + + let descending = a > b; + let startString = String(start); + let endString = String(end); + let stepString = String(step); + step = Math.max(Math.abs(step), 1); + + let padded = zeros(startString) || zeros(endString) || zeros(stepString); + let maxLen = padded ? Math.max(startString.length, endString.length, stepString.length) : 0; + let toNumber = padded === false && stringify(start, end, options) === false; + let format = options.transform || transform(toNumber); + + if (options.toRegex && step === 1) { + return toRange(toMaxLen(start, maxLen), toMaxLen(end, maxLen), true, options); + } + + let parts = { negatives: [], positives: [] }; + let push = num => parts[num < 0 ? 'negatives' : 'positives'].push(Math.abs(num)); + let range = []; + let index = 0; + + while (descending ? a >= b : a <= b) { + if (options.toRegex === true && step > 1) { + push(a); + } else { + range.push(pad(format(a, index), maxLen, toNumber)); + } + a = descending ? a - step : a + step; + index++; + } + + if (options.toRegex === true) { + return step > 1 + ? toSequence(parts, options, maxLen) + : toRegex(range, null, { wrap: false, ...options }); + } + + return range; +}; + +const fillLetters = (start, end, step = 1, options = {}) => { + if ((!isNumber(start) && start.length > 1) || (!isNumber(end) && end.length > 1)) { + return invalidRange(start, end, options); + } + + let format = options.transform || (val => String.fromCharCode(val)); + let a = `${start}`.charCodeAt(0); + let b = `${end}`.charCodeAt(0); + + let descending = a > b; + let min = Math.min(a, b); + let max = Math.max(a, b); + + if (options.toRegex && step === 1) { + return toRange(min, max, false, options); + } + + let range = []; + let index = 0; + + while (descending ? a >= b : a <= b) { + range.push(format(a, index)); + a = descending ? a - step : a + step; + index++; + } + + if (options.toRegex === true) { + return toRegex(range, null, { wrap: false, options }); + } + + return range; +}; + +const fill = (start, end, step, options = {}) => { + if (end == null && isValidValue(start)) { + return [start]; + } + + if (!isValidValue(start) || !isValidValue(end)) { + return invalidRange(start, end, options); + } + + if (typeof step === 'function') { + return fill(start, end, 1, { transform: step }); + } + + if (isObject(step)) { + return fill(start, end, 0, step); + } + + let opts = { ...options }; + if (opts.capture === true) opts.wrap = true; + step = step || opts.step || 1; + + if (!isNumber(step)) { + if (step != null && !isObject(step)) return invalidStep(step, opts); + return fill(start, end, 1, step); + } + + if (isNumber(start) && isNumber(end)) { + return fillNumbers(start, end, step, opts); + } + + return fillLetters(start, end, Math.max(Math.abs(step), 1), opts); +}; + +module.exports = fill; diff --git a/backend/node_modules/fill-range/package.json b/backend/node_modules/fill-range/package.json new file mode 100644 index 0000000..582357f --- /dev/null +++ b/backend/node_modules/fill-range/package.json @@ -0,0 +1,74 @@ +{ + "name": "fill-range", + "description": "Fill in a range of numbers or letters, optionally passing an increment or `step` to use, or create a regex-compatible range with `options.toRegex`", + "version": "7.1.1", + "homepage": "https://github.com/jonschlinkert/fill-range", + "author": "Jon Schlinkert (https://github.com/jonschlinkert)", + "contributors": [ + "Edo Rivai (edo.rivai.nl)", + "Jon Schlinkert (http://twitter.com/jonschlinkert)", + "Paul Miller (paulmillr.com)", + "Rouven Weßling (www.rouvenwessling.de)", + "(https://github.com/wtgtybhertgeghgtwtg)" + ], + "repository": "jonschlinkert/fill-range", + "bugs": { + "url": "https://github.com/jonschlinkert/fill-range/issues" + }, + "license": "MIT", + "files": [ + "index.js" + ], + "main": "index.js", + "engines": { + "node": ">=8" + }, + "scripts": { + "lint": "eslint --cache --cache-location node_modules/.cache/.eslintcache --report-unused-disable-directives --ignore-path .gitignore .", + "mocha": "mocha --reporter dot", + "test": "npm run lint && npm run mocha", + "test:ci": "npm run test:cover", + "test:cover": "nyc npm run mocha" + }, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "devDependencies": { + "gulp-format-md": "^2.0.0", + "mocha": "^6.1.1", + "nyc": "^15.1.0" + }, + "keywords": [ + "alpha", + "alphabetical", + "array", + "bash", + "brace", + "expand", + "expansion", + "fill", + "glob", + "match", + "matches", + "matching", + "number", + "numerical", + "range", + "ranges", + "regex", + "sh" + ], + "verb": { + "toc": false, + "layout": "default", + "tasks": [ + "readme" + ], + "plugins": [ + "gulp-format-md" + ], + "lint": { + "reflinks": true + } + } +} diff --git a/backend/node_modules/glob-parent/CHANGELOG.md b/backend/node_modules/glob-parent/CHANGELOG.md new file mode 100644 index 0000000..fb9de96 --- /dev/null +++ b/backend/node_modules/glob-parent/CHANGELOG.md @@ -0,0 +1,110 @@ +### [5.1.2](https://github.com/gulpjs/glob-parent/compare/v5.1.1...v5.1.2) (2021-03-06) + + +### Bug Fixes + +* eliminate ReDoS ([#36](https://github.com/gulpjs/glob-parent/issues/36)) ([f923116](https://github.com/gulpjs/glob-parent/commit/f9231168b0041fea3f8f954b3cceb56269fc6366)) + +### [5.1.1](https://github.com/gulpjs/glob-parent/compare/v5.1.0...v5.1.1) (2021-01-27) + + +### Bug Fixes + +* unescape exclamation mark ([#26](https://github.com/gulpjs/glob-parent/issues/26)) ([a98874f](https://github.com/gulpjs/glob-parent/commit/a98874f1a59e407f4fb1beb0db4efa8392da60bb)) + +## [5.1.0](https://github.com/gulpjs/glob-parent/compare/v5.0.0...v5.1.0) (2021-01-27) + + +### Features + +* add `flipBackslashes` option to disable auto conversion of slashes (closes [#24](https://github.com/gulpjs/glob-parent/issues/24)) ([#25](https://github.com/gulpjs/glob-parent/issues/25)) ([eecf91d](https://github.com/gulpjs/glob-parent/commit/eecf91d5e3834ed78aee39c4eaaae654d76b87b3)) + +## [5.0.0](https://github.com/gulpjs/glob-parent/compare/v4.0.0...v5.0.0) (2021-01-27) + + +### ⚠ BREAKING CHANGES + +* Drop support for node <6 & bump dependencies + +### Miscellaneous Chores + +* Drop support for node <6 & bump dependencies ([896c0c0](https://github.com/gulpjs/glob-parent/commit/896c0c00b4e7362f60b96e7fc295ae929245255a)) + +## [4.0.0](https://github.com/gulpjs/glob-parent/compare/v3.1.0...v4.0.0) (2021-01-27) + + +### ⚠ BREAKING CHANGES + +* question marks are valid path characters on Windows so avoid flagging as a glob when alone +* Update is-glob dependency + +### Features + +* hoist regexps and strings for performance gains ([4a80667](https://github.com/gulpjs/glob-parent/commit/4a80667c69355c76a572a5892b0f133c8e1f457e)) +* question marks are valid path characters on Windows so avoid flagging as a glob when alone ([2a551dd](https://github.com/gulpjs/glob-parent/commit/2a551dd0dc3235e78bf3c94843d4107072d17841)) +* Update is-glob dependency ([e41fcd8](https://github.com/gulpjs/glob-parent/commit/e41fcd895d1f7bc617dba45c9d935a7949b9c281)) + +## [3.1.0](https://github.com/gulpjs/glob-parent/compare/v3.0.1...v3.1.0) (2021-01-27) + + +### Features + +* allow basic win32 backslash use ([272afa5](https://github.com/gulpjs/glob-parent/commit/272afa5fd070fc0f796386a5993d4ee4a846988b)) +* handle extglobs (parentheses) containing separators ([7db1bdb](https://github.com/gulpjs/glob-parent/commit/7db1bdb0756e55fd14619e8ce31aa31b17b117fd)) +* new approach to braces/brackets handling ([8269bd8](https://github.com/gulpjs/glob-parent/commit/8269bd89290d99fac9395a354fb56fdcdb80f0be)) +* pre-process braces/brackets sections ([9ef8a87](https://github.com/gulpjs/glob-parent/commit/9ef8a87f66b1a43d0591e7a8e4fc5a18415ee388)) +* preserve escaped brace/bracket at end of string ([8cfb0ba](https://github.com/gulpjs/glob-parent/commit/8cfb0ba84202d51571340dcbaf61b79d16a26c76)) + + +### Bug Fixes + +* trailing escaped square brackets ([99ec9fe](https://github.com/gulpjs/glob-parent/commit/99ec9fecc60ee488ded20a94dd4f18b4f55c4ccf)) + +### [3.0.1](https://github.com/gulpjs/glob-parent/compare/v3.0.0...v3.0.1) (2021-01-27) + + +### Features + +* use path-dirname ponyfill ([cdbea5f](https://github.com/gulpjs/glob-parent/commit/cdbea5f32a58a54e001a75ddd7c0fccd4776aacc)) + + +### Bug Fixes + +* unescape glob-escaped dirnames on output ([598c533](https://github.com/gulpjs/glob-parent/commit/598c533bdf49c1428bc063aa9b8db40c5a86b030)) + +## [3.0.0](https://github.com/gulpjs/glob-parent/compare/v2.0.0...v3.0.0) (2021-01-27) + + +### ⚠ BREAKING CHANGES + +* update is-glob dependency + +### Features + +* update is-glob dependency ([5c5f8ef](https://github.com/gulpjs/glob-parent/commit/5c5f8efcee362a8e7638cf8220666acd8784f6bd)) + +## [2.0.0](https://github.com/gulpjs/glob-parent/compare/v1.3.0...v2.0.0) (2021-01-27) + + +### Features + +* move up to dirname regardless of glob characters ([f97fb83](https://github.com/gulpjs/glob-parent/commit/f97fb83be2e0a9fc8d3b760e789d2ecadd6aa0c2)) + +## [1.3.0](https://github.com/gulpjs/glob-parent/compare/v1.2.0...v1.3.0) (2021-01-27) + +## [1.2.0](https://github.com/gulpjs/glob-parent/compare/v1.1.0...v1.2.0) (2021-01-27) + + +### Reverts + +* feat: make regex test strings smaller ([dc80fa9](https://github.com/gulpjs/glob-parent/commit/dc80fa9658dca20549cfeba44bbd37d5246fcce0)) + +## [1.1.0](https://github.com/gulpjs/glob-parent/compare/v1.0.0...v1.1.0) (2021-01-27) + + +### Features + +* make regex test strings smaller ([cd83220](https://github.com/gulpjs/glob-parent/commit/cd832208638f45169f986d80fcf66e401f35d233)) + +## 1.0.0 (2021-01-27) + diff --git a/backend/node_modules/glob-parent/LICENSE b/backend/node_modules/glob-parent/LICENSE new file mode 100644 index 0000000..63222d7 --- /dev/null +++ b/backend/node_modules/glob-parent/LICENSE @@ -0,0 +1,15 @@ +The ISC License + +Copyright (c) 2015, 2019 Elan Shanker + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/backend/node_modules/glob-parent/README.md b/backend/node_modules/glob-parent/README.md new file mode 100644 index 0000000..36a2793 --- /dev/null +++ b/backend/node_modules/glob-parent/README.md @@ -0,0 +1,137 @@ +

+ + + +

+ +# glob-parent + +[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Azure Pipelines Build Status][azure-pipelines-image]][azure-pipelines-url] [![Travis Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url] + +Extract the non-magic parent path from a glob string. + +## Usage + +```js +var globParent = require('glob-parent'); + +globParent('path/to/*.js'); // 'path/to' +globParent('/root/path/to/*.js'); // '/root/path/to' +globParent('/*.js'); // '/' +globParent('*.js'); // '.' +globParent('**/*.js'); // '.' +globParent('path/{to,from}'); // 'path' +globParent('path/!(to|from)'); // 'path' +globParent('path/?(to|from)'); // 'path' +globParent('path/+(to|from)'); // 'path' +globParent('path/*(to|from)'); // 'path' +globParent('path/@(to|from)'); // 'path' +globParent('path/**/*'); // 'path' + +// if provided a non-glob path, returns the nearest dir +globParent('path/foo/bar.js'); // 'path/foo' +globParent('path/foo/'); // 'path/foo' +globParent('path/foo'); // 'path' (see issue #3 for details) +``` + +## API + +### `globParent(maybeGlobString, [options])` + +Takes a string and returns the part of the path before the glob begins. Be aware of Escaping rules and Limitations below. + +#### options + +```js +{ + // Disables the automatic conversion of slashes for Windows + flipBackslashes: true +} +``` + +## Escaping + +The following characters have special significance in glob patterns and must be escaped if you want them to be treated as regular path characters: + +- `?` (question mark) unless used as a path segment alone +- `*` (asterisk) +- `|` (pipe) +- `(` (opening parenthesis) +- `)` (closing parenthesis) +- `{` (opening curly brace) +- `}` (closing curly brace) +- `[` (opening bracket) +- `]` (closing bracket) + +**Example** + +```js +globParent('foo/[bar]/') // 'foo' +globParent('foo/\\[bar]/') // 'foo/[bar]' +``` + +## Limitations + +### Braces & Brackets +This library attempts a quick and imperfect method of determining which path +parts have glob magic without fully parsing/lexing the pattern. There are some +advanced use cases that can trip it up, such as nested braces where the outer +pair is escaped and the inner one contains a path separator. If you find +yourself in the unlikely circumstance of being affected by this or need to +ensure higher-fidelity glob handling in your library, it is recommended that you +pre-process your input with [expand-braces] and/or [expand-brackets]. + +### Windows +Backslashes are not valid path separators for globs. If a path with backslashes +is provided anyway, for simple cases, glob-parent will replace the path +separator for you and return the non-glob parent path (now with +forward-slashes, which are still valid as Windows path separators). + +This cannot be used in conjunction with escape characters. + +```js +// BAD +globParent('C:\\Program Files \\(x86\\)\\*.ext') // 'C:/Program Files /(x86/)' + +// GOOD +globParent('C:/Program Files\\(x86\\)/*.ext') // 'C:/Program Files (x86)' +``` + +If you are using escape characters for a pattern without path parts (i.e. +relative to `cwd`), prefix with `./` to avoid confusing glob-parent. + +```js +// BAD +globParent('foo \\[bar]') // 'foo ' +globParent('foo \\[bar]*') // 'foo ' + +// GOOD +globParent('./foo \\[bar]') // 'foo [bar]' +globParent('./foo \\[bar]*') // '.' +``` + +## License + +ISC + +[expand-braces]: https://github.com/jonschlinkert/expand-braces +[expand-brackets]: https://github.com/jonschlinkert/expand-brackets + +[downloads-image]: https://img.shields.io/npm/dm/glob-parent.svg +[npm-url]: https://www.npmjs.com/package/glob-parent +[npm-image]: https://img.shields.io/npm/v/glob-parent.svg + +[azure-pipelines-url]: https://dev.azure.com/gulpjs/gulp/_build/latest?definitionId=2&branchName=master +[azure-pipelines-image]: https://dev.azure.com/gulpjs/gulp/_apis/build/status/glob-parent?branchName=master + +[travis-url]: https://travis-ci.org/gulpjs/glob-parent +[travis-image]: https://img.shields.io/travis/gulpjs/glob-parent.svg?label=travis-ci + +[appveyor-url]: https://ci.appveyor.com/project/gulpjs/glob-parent +[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/glob-parent.svg?label=appveyor + +[coveralls-url]: https://coveralls.io/r/gulpjs/glob-parent +[coveralls-image]: https://img.shields.io/coveralls/gulpjs/glob-parent/master.svg + +[gitter-url]: https://gitter.im/gulpjs/gulp +[gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg diff --git a/backend/node_modules/glob-parent/index.js b/backend/node_modules/glob-parent/index.js new file mode 100644 index 0000000..09e257e --- /dev/null +++ b/backend/node_modules/glob-parent/index.js @@ -0,0 +1,42 @@ +'use strict'; + +var isGlob = require('is-glob'); +var pathPosixDirname = require('path').posix.dirname; +var isWin32 = require('os').platform() === 'win32'; + +var slash = '/'; +var backslash = /\\/g; +var enclosure = /[\{\[].*[\}\]]$/; +var globby = /(^|[^\\])([\{\[]|\([^\)]+$)/; +var escaped = /\\([\!\*\?\|\[\]\(\)\{\}])/g; + +/** + * @param {string} str + * @param {Object} opts + * @param {boolean} [opts.flipBackslashes=true] + * @returns {string} + */ +module.exports = function globParent(str, opts) { + var options = Object.assign({ flipBackslashes: true }, opts); + + // flip windows path separators + if (options.flipBackslashes && isWin32 && str.indexOf(slash) < 0) { + str = str.replace(backslash, slash); + } + + // special case for strings ending in enclosure containing path separator + if (enclosure.test(str)) { + str += slash; + } + + // preserves full path in case of trailing path separator + str += 'a'; + + // remove path parts that are globby + do { + str = pathPosixDirname(str); + } while (isGlob(str) || globby.test(str)); + + // remove escape chars and return result + return str.replace(escaped, '$1'); +}; diff --git a/backend/node_modules/glob-parent/package.json b/backend/node_modules/glob-parent/package.json new file mode 100644 index 0000000..125c971 --- /dev/null +++ b/backend/node_modules/glob-parent/package.json @@ -0,0 +1,48 @@ +{ + "name": "glob-parent", + "version": "5.1.2", + "description": "Extract the non-magic parent path from a glob string.", + "author": "Gulp Team (https://gulpjs.com/)", + "contributors": [ + "Elan Shanker (https://github.com/es128)", + "Blaine Bublitz " + ], + "repository": "gulpjs/glob-parent", + "license": "ISC", + "engines": { + "node": ">= 6" + }, + "main": "index.js", + "files": [ + "LICENSE", + "index.js" + ], + "scripts": { + "lint": "eslint .", + "pretest": "npm run lint", + "test": "nyc mocha --async-only", + "azure-pipelines": "nyc mocha --async-only --reporter xunit -O output=test.xunit", + "coveralls": "nyc report --reporter=text-lcov | coveralls" + }, + "dependencies": { + "is-glob": "^4.0.1" + }, + "devDependencies": { + "coveralls": "^3.0.11", + "eslint": "^2.13.1", + "eslint-config-gulp": "^3.0.1", + "expect": "^1.20.2", + "mocha": "^6.0.2", + "nyc": "^13.3.0" + }, + "keywords": [ + "glob", + "parent", + "strip", + "path", + "dirname", + "directory", + "base", + "wildcard" + ] +} diff --git a/backend/node_modules/has-flag/index.js b/backend/node_modules/has-flag/index.js new file mode 100644 index 0000000..5139728 --- /dev/null +++ b/backend/node_modules/has-flag/index.js @@ -0,0 +1,8 @@ +'use strict'; +module.exports = (flag, argv) => { + argv = argv || process.argv; + const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--'); + const pos = argv.indexOf(prefix + flag); + const terminatorPos = argv.indexOf('--'); + return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos); +}; diff --git a/backend/node_modules/has-flag/license b/backend/node_modules/has-flag/license new file mode 100644 index 0000000..e7af2f7 --- /dev/null +++ b/backend/node_modules/has-flag/license @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/backend/node_modules/has-flag/package.json b/backend/node_modules/has-flag/package.json new file mode 100644 index 0000000..e1eb17a --- /dev/null +++ b/backend/node_modules/has-flag/package.json @@ -0,0 +1,44 @@ +{ + "name": "has-flag", + "version": "3.0.0", + "description": "Check if argv has a specific flag", + "license": "MIT", + "repository": "sindresorhus/has-flag", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=4" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js" + ], + "keywords": [ + "has", + "check", + "detect", + "contains", + "find", + "flag", + "cli", + "command-line", + "argv", + "process", + "arg", + "args", + "argument", + "arguments", + "getopt", + "minimist", + "optimist" + ], + "devDependencies": { + "ava": "*", + "xo": "*" + } +} diff --git a/backend/node_modules/has-flag/readme.md b/backend/node_modules/has-flag/readme.md new file mode 100644 index 0000000..677893c --- /dev/null +++ b/backend/node_modules/has-flag/readme.md @@ -0,0 +1,70 @@ +# has-flag [![Build Status](https://travis-ci.org/sindresorhus/has-flag.svg?branch=master)](https://travis-ci.org/sindresorhus/has-flag) + +> Check if [`argv`](https://nodejs.org/docs/latest/api/process.html#process_process_argv) has a specific flag + +Correctly stops looking after an `--` argument terminator. + + +## Install + +``` +$ npm install has-flag +``` + + +## Usage + +```js +// foo.js +const hasFlag = require('has-flag'); + +hasFlag('unicorn'); +//=> true + +hasFlag('--unicorn'); +//=> true + +hasFlag('f'); +//=> true + +hasFlag('-f'); +//=> true + +hasFlag('foo=bar'); +//=> true + +hasFlag('foo'); +//=> false + +hasFlag('rainbow'); +//=> false +``` + +``` +$ node foo.js -f --unicorn --foo=bar -- --rainbow +``` + + +## API + +### hasFlag(flag, [argv]) + +Returns a boolean for whether the flag exists. + +#### flag + +Type: `string` + +CLI flag to look for. The `--` prefix is optional. + +#### argv + +Type: `string[]`
+Default: `process.argv` + +CLI arguments. + + +## License + +MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/backend/node_modules/httpx/README.md b/backend/node_modules/httpx/README.md new file mode 100644 index 0000000..91c26d8 --- /dev/null +++ b/backend/node_modules/httpx/README.md @@ -0,0 +1,96 @@ +# httpx + +http(s) module with power. + +[![NPM version][npm-image]][npm-url] +[![Node.js CI](https://github.com/JacksonTian/httpx/actions/workflows/node.js.yml/badge.svg)](https://github.com/JacksonTian/httpx/actions/workflows/node.js.yml) +[![codecov][cov-image]][cov-url] +[![npm download][download-image]][download-url] + +[npm-image]: https://img.shields.io/npm/v/httpx.svg?style=flat-square +[npm-url]: https://npmjs.org/package/httpx +[cov-image]: https://codecov.io/gh/JacksonTian/httpx/branch/master/graph/badge.svg +[cov-url]: https://codecov.io/gh/JacksonTian/httpx +[download-image]: https://img.shields.io/npm/dm/httpx.svg?style=flat-square +[download-url]: https://npmjs.org/package/httpx + +## Installation + +```bash +npm install httpx --save +``` + +## Usage + +### Request URL + +```js +(async function () { + const response = await httpx.request('http://www.baidu.com/'); + const body = await httpx.read(response, 'utf-8'); + console.log(body); +})(); +``` + +### Request SSE URL + +```js +(async function () { + const response = await httpx.request('sse url'); + for await (const event of httpx.readAsSSE(response)) { + console.log(event); + } +})(); +``` + +## API + +### `httpx.request(url[, options])` + +It returns `Promise`. + +Requests the url with options, then return the response. + +- **url** String | Object - The URL to request, either a String or a Object that return by [url.parse](http://nodejs.org/api/url.html#url_url_parse_urlstr_parsequerystring_slashesdenotehost). +- ***options*** Object - Optional + - ***method*** String - Request method, defaults to `GET`. Could be `GET`, `POST`, `DELETE` or `PUT`. + - ***data*** String | [Buffer](http://nodejs.org/api/buffer.html) | Readable - Manually set the content of payload. + - ***headers*** Object - Request headers. + - ***timeout*** Number - Request timeout in milliseconds. Defaults to 3000. When timeout happen, will return `RequestTimeout`. + - ***agent*** [http.Agent](http://nodejs.org/api/http.html#http_class_http_agent) - HTTP/HTTPS Agent object. + Set `false` if you does not use agent. + - ***beforeRequest*** Function - Before request hook, you can change every thing here. + - ***compression*** Boolean - Enable compression support. Tell server side responses compressed data + +### `httpx.read(response[, encoding])` + +It returns `Promise`. + +Consume the response and read all data from the response. + +- **response** Response - the Client response. Don't setEncoding() for the response. +- **encoding** String - Optional. If specify the encoding, will return String. If not specify encoding, return the buffer. + +### `httpx.readAsSSE(response)` + +It returns `AsyncGenerator`. + +Consume the response data with async iterator. + +- **response** Response - the Client response. Don't setEncoding() for the response. + +## Using with http proxy + +```js +const { SocksProxyAgent } = require('socks-proxy-agent'); +const httpx = require('httpx'); + +httpx.request('http://www.baidu.com/', { + // pass a http proxy agent + agent: new SocksProxyAgent('socks://your_proxy_server:3001') +}); +``` + +## License + +The MIT license diff --git a/backend/node_modules/httpx/lib/index.d.ts b/backend/node_modules/httpx/lib/index.d.ts new file mode 100644 index 0000000..aa47305 --- /dev/null +++ b/backend/node_modules/httpx/lib/index.d.ts @@ -0,0 +1,31 @@ +import { IncomingMessage, Agent, OutgoingHttpHeaders } from "http"; +import { Readable } from "stream"; + +export interface Options { + 'method'?: string; + 'readTimeout'?: number; + 'connectTimeout'?: number; + 'timeout'?: number; + 'agent'?: Agent; + 'headers'?: OutgoingHttpHeaders; + 'rejectUnauthorized'?: boolean; + 'compression'?: boolean; + 'beforeRequest'?(options: Options): void; + 'data'?: string | Buffer | Readable | undefined; + 'key'?: string; + 'cert'?: string; + 'ca'?: string; +} + +export function request(url: string, options: Options): Promise; + +export function read(response: IncomingMessage, encoding: string): Promise; + +export interface Event { + 'data'?: string; + 'id'?: string; + 'event'?: string; + 'retry'?: number; +} + +export function readAsSSE(response: IncomingMessage): AsyncGenerator; diff --git a/backend/node_modules/httpx/lib/index.js b/backend/node_modules/httpx/lib/index.js new file mode 100644 index 0000000..f4f700e --- /dev/null +++ b/backend/node_modules/httpx/lib/index.js @@ -0,0 +1,396 @@ +'use strict'; + +const zlib = require('zlib'); +const http = require('http'); +const https = require('https'); +const parse = require('url').parse; +const format = require('url').format; + +const debugBody = require('debug')('httpx:body'); +const debugHeader = require('debug')('httpx:header'); + +const httpAgent = new http.Agent({ keepAlive: true }); +const httpsAgent = new https.Agent({ keepAlive: true }); + +const TIMEOUT = 3000; // 3s + +const READ_TIMER = Symbol('TIMER::READ_TIMER'); +const READ_TIME_OUT = Symbol('TIMER::READ_TIME_OUT'); +const READ_TIMER_START_AT = Symbol('TIMER::READ_TIMER_START_AT'); + +/** + * Check the content-encoding header, and auto decompress it. + * @param {Readable} response http response + * @returns Readable + */ +function decompress(response) { + switch (response.headers['content-encoding']) { + // or, just use zlib.createUnzip() to handle both cases + case 'gzip': + return response.pipe(zlib.createGunzip()); + case 'deflate': + return response.pipe(zlib.createInflate()); + default: + return response; + } +} + +var append = function (err, name, message) { + err.name = name + err.name; + err.message = `${message}. ${err.message}`; + return err; +}; + +const isNumber = function (num) { + return num !== null && !isNaN(num); +}; + +exports.request = function (url, opts) { + opts || (opts = {}); + + const parsed = typeof url === 'string' ? parse(url) : url; + + let readTimeout, connectTimeout; + if (isNumber(opts.readTimeout) || isNumber(opts.connectTimeout)) { + readTimeout = isNumber(opts.readTimeout) ? Number(opts.readTimeout) : TIMEOUT; + connectTimeout = isNumber(opts.connectTimeout) ? Number(opts.connectTimeout) : TIMEOUT; + } else if (isNumber(opts.timeout)) { + readTimeout = connectTimeout = Number(opts.timeout); + } else { + readTimeout = connectTimeout = TIMEOUT; + } + + const isHttps = parsed.protocol === 'https:'; + const method = (opts.method || 'GET').toUpperCase(); + const defaultAgent = isHttps ? httpsAgent : httpAgent; + const agent = opts.agent || defaultAgent; + + var options = { + host: parsed.hostname || 'localhost', + path: parsed.path || '/', + method: method, + port: parsed.port || (parsed.protocol === 'https:' ? 443 : 80), + agent: agent, + headers: opts.headers || {}, + // ssl config + key: opts.key || '', + cert: opts.cert || '', + ca: opts.ca || '', + // connect timerout + timeout: connectTimeout + }; + + if (isHttps && typeof opts.rejectUnauthorized !== 'undefined') { + options.rejectUnauthorized = opts.rejectUnauthorized; + } + + if (opts.compression) { + options.headers['accept-encoding'] = 'gzip,deflate'; + } + + const httplib = isHttps ? https : http; + + if (typeof opts.beforeRequest === 'function') { + options = opts.beforeRequest(options); + } + + return new Promise((resolve, reject) => { + const request = httplib.request(options); + const body = opts.data; + + var fulfilled = (response) => { + if (debugHeader.enabled) { + const requestHeaders = response.req._header; + requestHeaders.split('\r\n').forEach((line) => { + debugHeader('> %s', line); + }); + + debugHeader('< HTTP/%s %s %s', response.httpVersion, response.statusCode, response.statusMessage); + Object.keys(response.headers).forEach((key) => { + debugHeader('< %s: %s', key, response.headers[key]); + }); + } + resolve(response); + }; + + var rejected = (err) => { + err.message += `${method} ${format(parsed)} failed.`; + // clear response timer when error + if (request.socket && request.socket[READ_TIMER]) { + clearTimeout(request.socket[READ_TIMER]); + } + reject(err); + }; + + var abort = (err) => { + request.abort(); + rejected(err); + }; + + const startResponseTimer = function (socket) { + const timer = setTimeout(() => { + if (socket[READ_TIMER]) { + clearTimeout(socket[READ_TIMER]); + socket[READ_TIMER] = null; + } + var err = new Error(); + var message = `ReadTimeout(${readTimeout})`; + abort(append(err, 'RequestTimeout', message)); + }, readTimeout); + // start read-timer + socket[READ_TIME_OUT] = readTimeout; + socket[READ_TIMER] = timer; + socket[READ_TIMER_START_AT] = Date.now(); + // don't block the loop + timer.unref(); + }; + + // string + if (!body || 'string' === typeof body || body instanceof Buffer) { + if (debugBody.enabled) { + if (!body) { + debugBody(''); + } else if ('string' === typeof body) { + debugBody(body); + } else { + debugBody(`Buffer , Buffer length: ${body.length}`); + } + } + request.end(body); + } else if ('function' === typeof body.pipe) { // stream + body.pipe(request); + if (debugBody.enabled) { + debugBody(''); + } + body.once('error', (err) => { + abort(append(err, 'HttpX', 'Stream occor error')); + }); + } + + request.on('timeout', () => { + var err = new Error(); + err.name = 'RequestTimeoutError'; + err.message = `ConnectTimeout: Connect ${url} failed.`; + request.destroy(); + reject(err); + }); + + request.on('response', fulfilled); + request.on('error', rejected); + request.once('socket', function (socket) { + // reuse socket + if (socket.readyState === 'opening') { + socket.once('connect', function () { + startResponseTimer(socket); + }); + } else { + startResponseTimer(socket); + } + }); + }); +}; + +exports.read = function (response, encoding) { + const readable = decompress(response); + + return new Promise((resolve, reject) => { + // node.js 14 use response.client + const socket = response.socket || response.client; + + const makeReadTimeoutError = () => { + const req = response.req; + var err = new Error(); + err.name = 'RequestTimeoutError'; + err.message = `ReadTimeout: ${socket[READ_TIME_OUT]}. ${req.method} ${req.path} failed.`; + return err; + }; + // check read-timer + let readTimer; + const oldReadTimer = socket[READ_TIMER]; + if (!oldReadTimer) { + reject(makeReadTimeoutError()); + return; + } + const remainTime = socket[READ_TIME_OUT] - (Date.now() - socket[READ_TIMER_START_AT]); + clearTimeout(oldReadTimer); + if (remainTime <= 0) { + reject(makeReadTimeoutError()); + return; + } + readTimer = setTimeout(function () { + reject(makeReadTimeoutError()); + }, remainTime); + + // start reading data + var onError, onData, onEnd; + var cleanup = function () { + // cleanup + readable.removeListener('error', onError); + readable.removeListener('data', onData); + readable.removeListener('end', onEnd); + // clear read timer + if (readTimer) { + clearTimeout(readTimer); + } + }; + + const bufs = []; + var size = 0; + + onData = function (buf) { + bufs.push(buf); + size += buf.length; + }; + + onError = function (err) { + cleanup(); + reject(err); + }; + + onEnd = function () { + cleanup(); + var buff = Buffer.concat(bufs, size); + + debugBody(''); + if (encoding) { + const result = buff.toString(encoding); + debugBody(result); + return resolve(result); + } + + if (debugBody.enabled) { + debugBody(buff.toString()); + } + resolve(buff); + }; + + readable.on('error', onError); + readable.on('data', onData); + readable.on('end', onEnd); + }); +}; + +function readyToRead(readable) { + return new Promise((resolve, reject) => { + var onReadable, onEnd, onError; + var cleanup = function () { + // cleanup + readable.removeListener('error', onError); + readable.removeListener('end', onEnd); + readable.removeListener('readable', onReadable); + }; + + onReadable = function () { + cleanup(); + resolve(false); + }; + + onEnd = function () { + cleanup(); + resolve(true); + }; + + onError = function (err) { + cleanup(); + reject(err); + }; + + readable.once('readable', onReadable); + readable.once('end', onEnd); + readable.once('error', onError); + }); +} + +class Event { + constructor(id, event, data, retry) { + this.id = id; + this.event = event; + this.data = data; + this.retry = retry; + } +} + +exports.Event = Event; + +const DATA_PREFIX = 'data:'; +const EVENT_PREFIX = 'event:'; +const ID_PREFIX = 'id:'; +const RETRY_PREFIX = 'retry:'; + +function isDigitsOnly(str) { + for (let i = 0; i < str.length; i++) { + const c = str.charAt(i); + if (c < '0' || c > '9') { + return false; + } + } + return str.length > 0; +} + +function tryGetEvents(head, chunk) { + const all = head + chunk; + let start = 0; + const events = []; + for (let i = 0; i < all.length - 1; i++) { + const c = all[i]; + const c2 = all[i + 1]; + if (c === '\n' && c2 === '\n') { + const part = all.substring(start, i); + const lines = part.split('\n'); + const event = new Event(); + lines.forEach((line) => { + if (line.startsWith(DATA_PREFIX)) { + event.data = line.substring(DATA_PREFIX.length).trim(); + } else if (line.startsWith(EVENT_PREFIX)) { + event.event = line.substring(EVENT_PREFIX.length).trim(); + } else if (line.startsWith(ID_PREFIX)) { + event.id = line.substring(ID_PREFIX.length).trim(); + } else if (line.startsWith(RETRY_PREFIX)) { + const retry = line.substring(RETRY_PREFIX.length).trim(); + if (isDigitsOnly(retry)) { + event.retry = parseInt(retry, 10); + } + } else if (line.startsWith(':')) { + // ignore the line + } + }); + events.push(event); + start = i + 2; + } + } + + const rest = all.substring(start); + return [events, rest]; +} + +/** + * consume response and parse to event stream + * @param {ReadableStream} response + * @returns AsyncGenerator + */ +exports.readAsSSE = async function* (response) { + const readable = decompress(response); + + const socket = response.socket || response.client; + clearTimeout(socket[READ_TIMER]); + + let rest = ''; + + while (true) { + const ended = await readyToRead(readable); + if (ended) { + return; + } + + let chunk; + while (null !== (chunk = readable.read())) { + const [ events, remain ] = tryGetEvents(rest, chunk.toString()); + rest = remain; + if (events && events.length > 0) { + for (const event of events) { + yield event; + } + } + } + } +}; diff --git a/backend/node_modules/httpx/node_modules/@types/node/LICENSE b/backend/node_modules/httpx/node_modules/@types/node/LICENSE new file mode 100644 index 0000000..9e841e7 --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/LICENSE @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git a/backend/node_modules/httpx/node_modules/@types/node/README.md b/backend/node_modules/httpx/node_modules/@types/node/README.md new file mode 100644 index 0000000..27b9ad3 --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/README.md @@ -0,0 +1,15 @@ +# Installation +> `npm install --save @types/node` + +# Summary +This package contains type definitions for node (https://nodejs.org/). + +# Details +Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v20. + +### Additional Details + * Last updated: Thu, 15 Jan 2026 17:42:21 GMT + * Dependencies: [undici-types](https://npmjs.com/package/undici-types) + +# Credits +These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [Alberto Schiabel](https://github.com/jkomyno), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [David Junger](https://github.com/touffy), [Mohsen Azimi](https://github.com/mohsen1), [Nikita Galkin](https://github.com/galkin), [Sebastian Silbermann](https://github.com/eps1lon), [Wilco Bakker](https://github.com/WilcoBakker), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), [wafuwafu13](https://github.com/wafuwafu13), [Matteo Collina](https://github.com/mcollina), and [Dmitry Semigradsky](https://github.com/Semigradsky). diff --git a/backend/node_modules/httpx/node_modules/@types/node/assert.d.ts b/backend/node_modules/httpx/node_modules/@types/node/assert.d.ts new file mode 100644 index 0000000..c32c903 --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/assert.d.ts @@ -0,0 +1,1062 @@ +/** + * The `node:assert` module provides a set of assertion functions for verifying + * invariants. + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/assert.js) + */ +declare module "assert" { + /** + * An alias of {@link ok}. + * @since v0.5.9 + * @param value The input that is checked for being truthy. + */ + function assert(value: unknown, message?: string | Error): asserts value; + namespace assert { + type AssertMethodNames = + | "deepEqual" + | "deepStrictEqual" + | "doesNotMatch" + | "doesNotReject" + | "doesNotThrow" + | "equal" + | "fail" + | "ifError" + | "match" + | "notDeepEqual" + | "notDeepStrictEqual" + | "notEqual" + | "notStrictEqual" + | "ok" + | "rejects" + | "strictEqual" + | "throws"; + /** + * Indicates the failure of an assertion. All errors thrown by the `node:assert` module will be instances of the `AssertionError` class. + */ + class AssertionError extends Error { + /** + * Set to the `actual` argument for methods such as {@link assert.strictEqual()}. + */ + actual: unknown; + /** + * Set to the `expected` argument for methods such as {@link assert.strictEqual()}. + */ + expected: unknown; + /** + * Set to the passed in operator value. + */ + operator: string; + /** + * Indicates if the message was auto-generated (`true`) or not. + */ + generatedMessage: boolean; + /** + * Value is always `ERR_ASSERTION` to show that the error is an assertion error. + */ + code: "ERR_ASSERTION"; + constructor(options?: { + /** If provided, the error message is set to this value. */ + message?: string | undefined; + /** The `actual` property on the error instance. */ + actual?: unknown | undefined; + /** The `expected` property on the error instance. */ + expected?: unknown | undefined; + /** The `operator` property on the error instance. */ + operator?: string | undefined; + /** If provided, the generated stack trace omits frames before this function. */ + // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type + stackStartFn?: Function | undefined; + }); + } + /** + * This feature is deprecated and will be removed in a future version. + * Please consider using alternatives such as the `mock` helper function. + * @since v14.2.0, v12.19.0 + * @deprecated Deprecated + */ + class CallTracker { + /** + * The wrapper function is expected to be called exactly `exact` times. If the + * function has not been called exactly `exact` times when `tracker.verify()` is called, then `tracker.verify()` will throw an + * error. + * + * ```js + * import assert from 'node:assert'; + * + * // Creates call tracker. + * const tracker = new assert.CallTracker(); + * + * function func() {} + * + * // Returns a function that wraps func() that must be called exact times + * // before tracker.verify(). + * const callsfunc = tracker.calls(func); + * ``` + * @since v14.2.0, v12.19.0 + * @param [fn='A no-op function'] + * @param [exact=1] + * @return A function that wraps `fn`. + */ + calls(exact?: number): () => void; + calls(fn: undefined, exact?: number): () => void; + calls any>(fn: Func, exact?: number): Func; + calls any>(fn?: Func, exact?: number): Func | (() => void); + /** + * Example: + * + * ```js + * import assert from 'node:assert'; + * + * const tracker = new assert.CallTracker(); + * + * function func() {} + * const callsfunc = tracker.calls(func); + * callsfunc(1, 2, 3); + * + * assert.deepStrictEqual(tracker.getCalls(callsfunc), + * [{ thisArg: undefined, arguments: [1, 2, 3] }]); + * ``` + * @since v18.8.0, v16.18.0 + * @return An array with all the calls to a tracked function. + */ + getCalls(fn: Function): CallTrackerCall[]; + /** + * The arrays contains information about the expected and actual number of calls of + * the functions that have not been called the expected number of times. + * + * ```js + * import assert from 'node:assert'; + * + * // Creates call tracker. + * const tracker = new assert.CallTracker(); + * + * function func() {} + * + * // Returns a function that wraps func() that must be called exact times + * // before tracker.verify(). + * const callsfunc = tracker.calls(func, 2); + * + * // Returns an array containing information on callsfunc() + * console.log(tracker.report()); + * // [ + * // { + * // message: 'Expected the func function to be executed 2 time(s) but was + * // executed 0 time(s).', + * // actual: 0, + * // expected: 2, + * // operator: 'func', + * // stack: stack trace + * // } + * // ] + * ``` + * @since v14.2.0, v12.19.0 + * @return An array of objects containing information about the wrapper functions returned by {@link tracker.calls()}. + */ + report(): CallTrackerReportInformation[]; + /** + * Reset calls of the call tracker. If a tracked function is passed as an argument, the calls will be reset for it. + * If no arguments are passed, all tracked functions will be reset. + * + * ```js + * import assert from 'node:assert'; + * + * const tracker = new assert.CallTracker(); + * + * function func() {} + * const callsfunc = tracker.calls(func); + * + * callsfunc(); + * // Tracker was called once + * assert.strictEqual(tracker.getCalls(callsfunc).length, 1); + * + * tracker.reset(callsfunc); + * assert.strictEqual(tracker.getCalls(callsfunc).length, 0); + * ``` + * @since v18.8.0, v16.18.0 + * @param fn a tracked function to reset. + */ + reset(fn?: Function): void; + /** + * Iterates through the list of functions passed to {@link tracker.calls()} and will throw an error for functions that + * have not been called the expected number of times. + * + * ```js + * import assert from 'node:assert'; + * + * // Creates call tracker. + * const tracker = new assert.CallTracker(); + * + * function func() {} + * + * // Returns a function that wraps func() that must be called exact times + * // before tracker.verify(). + * const callsfunc = tracker.calls(func, 2); + * + * callsfunc(); + * + * // Will throw an error since callsfunc() was only called once. + * tracker.verify(); + * ``` + * @since v14.2.0, v12.19.0 + */ + verify(): void; + } + interface CallTrackerCall { + thisArg: object; + arguments: unknown[]; + } + interface CallTrackerReportInformation { + message: string; + /** The actual number of times the function was called. */ + actual: number; + /** The number of times the function was expected to be called. */ + expected: number; + /** The name of the function that is wrapped. */ + operator: string; + /** A stack trace of the function. */ + stack: object; + } + type AssertPredicate = RegExp | (new() => object) | ((thrown: unknown) => boolean) | object | Error; + /** + * Throws an `AssertionError` with the provided error message or a default + * error message. If the `message` parameter is an instance of an `Error` then + * it will be thrown instead of the `AssertionError`. + * + * ```js + * import assert from 'node:assert/strict'; + * + * assert.fail(); + * // AssertionError [ERR_ASSERTION]: Failed + * + * assert.fail('boom'); + * // AssertionError [ERR_ASSERTION]: boom + * + * assert.fail(new TypeError('need array')); + * // TypeError: need array + * ``` + * + * Using `assert.fail()` with more than two arguments is possible but deprecated. + * See below for further details. + * @since v0.1.21 + * @param [message='Failed'] + */ + function fail(message?: string | Error): never; + /** @deprecated since v10.0.0 - use fail([message]) or other assert functions instead. */ + function fail( + actual: unknown, + expected: unknown, + message?: string | Error, + operator?: string, + // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type + stackStartFn?: Function, + ): never; + /** + * Tests if `value` is truthy. It is equivalent to `assert.equal(!!value, true, message)`. + * + * If `value` is not truthy, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is `undefined`, a default + * error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`. + * If no arguments are passed in at all `message` will be set to the string:`` 'No value argument passed to `assert.ok()`' ``. + * + * Be aware that in the `repl` the error message will be different to the one + * thrown in a file! See below for further details. + * + * ```js + * import assert from 'node:assert/strict'; + * + * assert.ok(true); + * // OK + * assert.ok(1); + * // OK + * + * assert.ok(); + * // AssertionError: No value argument passed to `assert.ok()` + * + * assert.ok(false, 'it\'s false'); + * // AssertionError: it's false + * + * // In the repl: + * assert.ok(typeof 123 === 'string'); + * // AssertionError: false == true + * + * // In a file (e.g. test.js): + * assert.ok(typeof 123 === 'string'); + * // AssertionError: The expression evaluated to a falsy value: + * // + * // assert.ok(typeof 123 === 'string') + * + * assert.ok(false); + * // AssertionError: The expression evaluated to a falsy value: + * // + * // assert.ok(false) + * + * assert.ok(0); + * // AssertionError: The expression evaluated to a falsy value: + * // + * // assert.ok(0) + * ``` + * + * ```js + * import assert from 'node:assert/strict'; + * + * // Using `assert()` works the same: + * assert(0); + * // AssertionError: The expression evaluated to a falsy value: + * // + * // assert(0) + * ``` + * @since v0.1.21 + */ + function ok(value: unknown, message?: string | Error): asserts value; + /** + * **Strict assertion mode** + * + * An alias of {@link strictEqual}. + * + * **Legacy assertion mode** + * + * > Stability: 3 - Legacy: Use {@link strictEqual} instead. + * + * Tests shallow, coercive equality between the `actual` and `expected` parameters + * using the [`==` operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality). `NaN` is specially handled + * and treated as being identical if both sides are `NaN`. + * + * ```js + * import assert from 'node:assert'; + * + * assert.equal(1, 1); + * // OK, 1 == 1 + * assert.equal(1, '1'); + * // OK, 1 == '1' + * assert.equal(NaN, NaN); + * // OK + * + * assert.equal(1, 2); + * // AssertionError: 1 == 2 + * assert.equal({ a: { b: 1 } }, { a: { b: 1 } }); + * // AssertionError: { a: { b: 1 } } == { a: { b: 1 } } + * ``` + * + * If the values are not equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a default + * error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`. + * @since v0.1.21 + */ + function equal(actual: unknown, expected: unknown, message?: string | Error): void; + /** + * **Strict assertion mode** + * + * An alias of {@link notStrictEqual}. + * + * **Legacy assertion mode** + * + * > Stability: 3 - Legacy: Use {@link notStrictEqual} instead. + * + * Tests shallow, coercive inequality with the [`!=` operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Inequality). `NaN` is + * specially handled and treated as being identical if both sides are `NaN`. + * + * ```js + * import assert from 'node:assert'; + * + * assert.notEqual(1, 2); + * // OK + * + * assert.notEqual(1, 1); + * // AssertionError: 1 != 1 + * + * assert.notEqual(1, '1'); + * // AssertionError: 1 != '1' + * ``` + * + * If the values are equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a default error + * message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`. + * @since v0.1.21 + */ + function notEqual(actual: unknown, expected: unknown, message?: string | Error): void; + /** + * **Strict assertion mode** + * + * An alias of {@link deepStrictEqual}. + * + * **Legacy assertion mode** + * + * > Stability: 3 - Legacy: Use {@link deepStrictEqual} instead. + * + * Tests for deep equality between the `actual` and `expected` parameters. Consider + * using {@link deepStrictEqual} instead. {@link deepEqual} can have + * surprising results. + * + * _Deep equality_ means that the enumerable "own" properties of child objects + * are also recursively evaluated by the following rules. + * @since v0.1.21 + */ + function deepEqual(actual: unknown, expected: unknown, message?: string | Error): void; + /** + * **Strict assertion mode** + * + * An alias of {@link notDeepStrictEqual}. + * + * **Legacy assertion mode** + * + * > Stability: 3 - Legacy: Use {@link notDeepStrictEqual} instead. + * + * Tests for any deep inequality. Opposite of {@link deepEqual}. + * + * ```js + * import assert from 'node:assert'; + * + * const obj1 = { + * a: { + * b: 1, + * }, + * }; + * const obj2 = { + * a: { + * b: 2, + * }, + * }; + * const obj3 = { + * a: { + * b: 1, + * }, + * }; + * const obj4 = { __proto__: obj1 }; + * + * assert.notDeepEqual(obj1, obj1); + * // AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } } + * + * assert.notDeepEqual(obj1, obj2); + * // OK + * + * assert.notDeepEqual(obj1, obj3); + * // AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } } + * + * assert.notDeepEqual(obj1, obj4); + * // OK + * ``` + * + * If the values are deeply equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a default + * error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown + * instead of the `AssertionError`. + * @since v0.1.21 + */ + function notDeepEqual(actual: unknown, expected: unknown, message?: string | Error): void; + /** + * Tests strict equality between the `actual` and `expected` parameters as + * determined by [`Object.is()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is). + * + * ```js + * import assert from 'node:assert/strict'; + * + * assert.strictEqual(1, 2); + * // AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal: + * // + * // 1 !== 2 + * + * assert.strictEqual(1, 1); + * // OK + * + * assert.strictEqual('Hello foobar', 'Hello World!'); + * // AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal: + * // + actual - expected + * // + * // + 'Hello foobar' + * // - 'Hello World!' + * // ^ + * + * const apples = 1; + * const oranges = 2; + * assert.strictEqual(apples, oranges, `apples ${apples} !== oranges ${oranges}`); + * // AssertionError [ERR_ASSERTION]: apples 1 !== oranges 2 + * + * assert.strictEqual(1, '1', new TypeError('Inputs are not identical')); + * // TypeError: Inputs are not identical + * ``` + * + * If the values are not strictly equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a + * default error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown + * instead of the `AssertionError`. + * @since v0.1.21 + */ + function strictEqual(actual: unknown, expected: T, message?: string | Error): asserts actual is T; + /** + * Tests strict inequality between the `actual` and `expected` parameters as + * determined by [`Object.is()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is). + * + * ```js + * import assert from 'node:assert/strict'; + * + * assert.notStrictEqual(1, 2); + * // OK + * + * assert.notStrictEqual(1, 1); + * // AssertionError [ERR_ASSERTION]: Expected "actual" to be strictly unequal to: + * // + * // 1 + * + * assert.notStrictEqual(1, '1'); + * // OK + * ``` + * + * If the values are strictly equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a + * default error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown + * instead of the `AssertionError`. + * @since v0.1.21 + */ + function notStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void; + /** + * Tests for deep equality between the `actual` and `expected` parameters. + * "Deep" equality means that the enumerable "own" properties of child objects + * are recursively evaluated also by the following rules. + * @since v1.2.0 + */ + function deepStrictEqual(actual: unknown, expected: T, message?: string | Error): asserts actual is T; + /** + * Tests for deep strict inequality. Opposite of {@link deepStrictEqual}. + * + * ```js + * import assert from 'node:assert/strict'; + * + * assert.notDeepStrictEqual({ a: 1 }, { a: '1' }); + * // OK + * ``` + * + * If the values are deeply and strictly equal, an `AssertionError` is thrown + * with a `message` property set equal to the value of the `message` parameter. If + * the `message` parameter is undefined, a default error message is assigned. If + * the `message` parameter is an instance of an `Error` then it will be thrown + * instead of the `AssertionError`. + * @since v1.2.0 + */ + function notDeepStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void; + /** + * Expects the function `fn` to throw an error. + * + * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes), + * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), a validation function, + * a validation object where each property will be tested for strict deep equality, + * or an instance of error where each property will be tested for strict deep + * equality including the non-enumerable `message` and `name` properties. When + * using an object, it is also possible to use a regular expression, when + * validating against a string property. See below for examples. + * + * If specified, `message` will be appended to the message provided by the `AssertionError` if the `fn` call fails to throw or in case the error validation + * fails. + * + * Custom validation object/error instance: + * + * ```js + * import assert from 'node:assert/strict'; + * + * const err = new TypeError('Wrong value'); + * err.code = 404; + * err.foo = 'bar'; + * err.info = { + * nested: true, + * baz: 'text', + * }; + * err.reg = /abc/i; + * + * assert.throws( + * () => { + * throw err; + * }, + * { + * name: 'TypeError', + * message: 'Wrong value', + * info: { + * nested: true, + * baz: 'text', + * }, + * // Only properties on the validation object will be tested for. + * // Using nested objects requires all properties to be present. Otherwise + * // the validation is going to fail. + * }, + * ); + * + * // Using regular expressions to validate error properties: + * assert.throws( + * () => { + * throw err; + * }, + * { + * // The `name` and `message` properties are strings and using regular + * // expressions on those will match against the string. If they fail, an + * // error is thrown. + * name: /^TypeError$/, + * message: /Wrong/, + * foo: 'bar', + * info: { + * nested: true, + * // It is not possible to use regular expressions for nested properties! + * baz: 'text', + * }, + * // The `reg` property contains a regular expression and only if the + * // validation object contains an identical regular expression, it is going + * // to pass. + * reg: /abc/i, + * }, + * ); + * + * // Fails due to the different `message` and `name` properties: + * assert.throws( + * () => { + * const otherErr = new Error('Not found'); + * // Copy all enumerable properties from `err` to `otherErr`. + * for (const [key, value] of Object.entries(err)) { + * otherErr[key] = value; + * } + * throw otherErr; + * }, + * // The error's `message` and `name` properties will also be checked when using + * // an error as validation object. + * err, + * ); + * ``` + * + * Validate instanceof using constructor: + * + * ```js + * import assert from 'node:assert/strict'; + * + * assert.throws( + * () => { + * throw new Error('Wrong value'); + * }, + * Error, + * ); + * ``` + * + * Validate error message using [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions): + * + * Using a regular expression runs `.toString` on the error object, and will + * therefore also include the error name. + * + * ```js + * import assert from 'node:assert/strict'; + * + * assert.throws( + * () => { + * throw new Error('Wrong value'); + * }, + * /^Error: Wrong value$/, + * ); + * ``` + * + * Custom error validation: + * + * The function must return `true` to indicate all internal validations passed. + * It will otherwise fail with an `AssertionError`. + * + * ```js + * import assert from 'node:assert/strict'; + * + * assert.throws( + * () => { + * throw new Error('Wrong value'); + * }, + * (err) => { + * assert(err instanceof Error); + * assert(/value/.test(err)); + * // Avoid returning anything from validation functions besides `true`. + * // Otherwise, it's not clear what part of the validation failed. Instead, + * // throw an error about the specific validation that failed (as done in this + * // example) and add as much helpful debugging information to that error as + * // possible. + * return true; + * }, + * 'unexpected error', + * ); + * ``` + * + * `error` cannot be a string. If a string is provided as the second + * argument, then `error` is assumed to be omitted and the string will be used for `message` instead. This can lead to easy-to-miss mistakes. Using the same + * message as the thrown error message is going to result in an `ERR_AMBIGUOUS_ARGUMENT` error. Please read the example below carefully if using + * a string as the second argument gets considered: + * + * ```js + * import assert from 'node:assert/strict'; + * + * function throwingFirst() { + * throw new Error('First'); + * } + * + * function throwingSecond() { + * throw new Error('Second'); + * } + * + * function notThrowing() {} + * + * // The second argument is a string and the input function threw an Error. + * // The first case will not throw as it does not match for the error message + * // thrown by the input function! + * assert.throws(throwingFirst, 'Second'); + * // In the next example the message has no benefit over the message from the + * // error and since it is not clear if the user intended to actually match + * // against the error message, Node.js throws an `ERR_AMBIGUOUS_ARGUMENT` error. + * assert.throws(throwingSecond, 'Second'); + * // TypeError [ERR_AMBIGUOUS_ARGUMENT] + * + * // The string is only used (as message) in case the function does not throw: + * assert.throws(notThrowing, 'Second'); + * // AssertionError [ERR_ASSERTION]: Missing expected exception: Second + * + * // If it was intended to match for the error message do this instead: + * // It does not throw because the error messages match. + * assert.throws(throwingSecond, /Second$/); + * + * // If the error message does not match, an AssertionError is thrown. + * assert.throws(throwingFirst, /Second$/); + * // AssertionError [ERR_ASSERTION] + * ``` + * + * Due to the confusing error-prone notation, avoid a string as the second + * argument. + * @since v0.1.21 + */ + function throws(block: () => unknown, message?: string | Error): void; + function throws(block: () => unknown, error: AssertPredicate, message?: string | Error): void; + /** + * Asserts that the function `fn` does not throw an error. + * + * Using `assert.doesNotThrow()` is actually not useful because there + * is no benefit in catching an error and then rethrowing it. Instead, consider + * adding a comment next to the specific code path that should not throw and keep + * error messages as expressive as possible. + * + * When `assert.doesNotThrow()` is called, it will immediately call the `fn` function. + * + * If an error is thrown and it is the same type as that specified by the `error` parameter, then an `AssertionError` is thrown. If the error is of a + * different type, or if the `error` parameter is undefined, the error is + * propagated back to the caller. + * + * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes), + * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), or a validation + * function. See {@link throws} for more details. + * + * The following, for instance, will throw the `TypeError` because there is no + * matching error type in the assertion: + * + * ```js + * import assert from 'node:assert/strict'; + * + * assert.doesNotThrow( + * () => { + * throw new TypeError('Wrong value'); + * }, + * SyntaxError, + * ); + * ``` + * + * However, the following will result in an `AssertionError` with the message + * 'Got unwanted exception...': + * + * ```js + * import assert from 'node:assert/strict'; + * + * assert.doesNotThrow( + * () => { + * throw new TypeError('Wrong value'); + * }, + * TypeError, + * ); + * ``` + * + * If an `AssertionError` is thrown and a value is provided for the `message` parameter, the value of `message` will be appended to the `AssertionError` message: + * + * ```js + * import assert from 'node:assert/strict'; + * + * assert.doesNotThrow( + * () => { + * throw new TypeError('Wrong value'); + * }, + * /Wrong value/, + * 'Whoops', + * ); + * // Throws: AssertionError: Got unwanted exception: Whoops + * ``` + * @since v0.1.21 + */ + function doesNotThrow(block: () => unknown, message?: string | Error): void; + function doesNotThrow(block: () => unknown, error: AssertPredicate, message?: string | Error): void; + /** + * Throws `value` if `value` is not `undefined` or `null`. This is useful when + * testing the `error` argument in callbacks. The stack trace contains all frames + * from the error passed to `ifError()` including the potential new frames for `ifError()` itself. + * + * ```js + * import assert from 'node:assert/strict'; + * + * assert.ifError(null); + * // OK + * assert.ifError(0); + * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: 0 + * assert.ifError('error'); + * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: 'error' + * assert.ifError(new Error()); + * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: Error + * + * // Create some random error frames. + * let err; + * (function errorFrame() { + * err = new Error('test error'); + * })(); + * + * (function ifErrorFrame() { + * assert.ifError(err); + * })(); + * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: test error + * // at ifErrorFrame + * // at errorFrame + * ``` + * @since v0.1.97 + */ + function ifError(value: unknown): asserts value is null | undefined; + /** + * Awaits the `asyncFn` promise or, if `asyncFn` is a function, immediately + * calls the function and awaits the returned promise to complete. It will then + * check that the promise is rejected. + * + * If `asyncFn` is a function and it throws an error synchronously, `assert.rejects()` will return a rejected `Promise` with that error. If the + * function does not return a promise, `assert.rejects()` will return a rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v20.x/api/errors.html#err_invalid_return_value) + * error. In both cases the error handler is skipped. + * + * Besides the async nature to await the completion behaves identically to {@link throws}. + * + * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes), + * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), a validation function, + * an object where each property will be tested for, or an instance of error where + * each property will be tested for including the non-enumerable `message` and `name` properties. + * + * If specified, `message` will be the message provided by the `{@link AssertionError}` if the `asyncFn` fails to reject. + * + * ```js + * import assert from 'node:assert/strict'; + * + * await assert.rejects( + * async () => { + * throw new TypeError('Wrong value'); + * }, + * { + * name: 'TypeError', + * message: 'Wrong value', + * }, + * ); + * ``` + * + * ```js + * import assert from 'node:assert/strict'; + * + * await assert.rejects( + * async () => { + * throw new TypeError('Wrong value'); + * }, + * (err) => { + * assert.strictEqual(err.name, 'TypeError'); + * assert.strictEqual(err.message, 'Wrong value'); + * return true; + * }, + * ); + * ``` + * + * ```js + * import assert from 'node:assert/strict'; + * + * assert.rejects( + * Promise.reject(new Error('Wrong value')), + * Error, + * ).then(() => { + * // ... + * }); + * ``` + * + * `error` cannot be a string. If a string is provided as the second argument, then `error` is assumed to + * be omitted and the string will be used for `message` instead. This can lead to easy-to-miss mistakes. Please read the + * example in {@link throws} carefully if using a string as the second argument gets considered. + * @since v10.0.0 + */ + function rejects(block: (() => Promise) | Promise, message?: string | Error): Promise; + function rejects( + block: (() => Promise) | Promise, + error: AssertPredicate, + message?: string | Error, + ): Promise; + /** + * Awaits the `asyncFn` promise or, if `asyncFn` is a function, immediately + * calls the function and awaits the returned promise to complete. It will then + * check that the promise is not rejected. + * + * If `asyncFn` is a function and it throws an error synchronously, `assert.doesNotReject()` will return a rejected `Promise` with that error. If + * the function does not return a promise, `assert.doesNotReject()` will return a + * rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v20.x/api/errors.html#err_invalid_return_value) error. In both cases + * the error handler is skipped. + * + * Using `assert.doesNotReject()` is actually not useful because there is little + * benefit in catching a rejection and then rejecting it again. Instead, consider + * adding a comment next to the specific code path that should not reject and keep + * error messages as expressive as possible. + * + * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes), + * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), or a validation + * function. See {@link throws} for more details. + * + * Besides the async nature to await the completion behaves identically to {@link doesNotThrow}. + * + * ```js + * import assert from 'node:assert/strict'; + * + * await assert.doesNotReject( + * async () => { + * throw new TypeError('Wrong value'); + * }, + * SyntaxError, + * ); + * ``` + * + * ```js + * import assert from 'node:assert/strict'; + * + * assert.doesNotReject(Promise.reject(new TypeError('Wrong value'))) + * .then(() => { + * // ... + * }); + * ``` + * @since v10.0.0 + */ + function doesNotReject( + block: (() => Promise) | Promise, + message?: string | Error, + ): Promise; + function doesNotReject( + block: (() => Promise) | Promise, + error: AssertPredicate, + message?: string | Error, + ): Promise; + /** + * Expects the `string` input to match the regular expression. + * + * ```js + * import assert from 'node:assert/strict'; + * + * assert.match('I will fail', /pass/); + * // AssertionError [ERR_ASSERTION]: The input did not match the regular ... + * + * assert.match(123, /pass/); + * // AssertionError [ERR_ASSERTION]: The "string" argument must be of type string. + * + * assert.match('I will pass', /pass/); + * // OK + * ``` + * + * If the values do not match, or if the `string` argument is of another type than `string`, an `{@link AssertionError}` is thrown with a `message` property set equal + * to the value of the `message` parameter. If the `message` parameter is + * undefined, a default error message is assigned. If the `message` parameter is an + * instance of an [Error](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`. + * @since v13.6.0, v12.16.0 + */ + function match(value: string, regExp: RegExp, message?: string | Error): void; + /** + * Expects the `string` input not to match the regular expression. + * + * ```js + * import assert from 'node:assert/strict'; + * + * assert.doesNotMatch('I will fail', /fail/); + * // AssertionError [ERR_ASSERTION]: The input was expected to not match the ... + * + * assert.doesNotMatch(123, /pass/); + * // AssertionError [ERR_ASSERTION]: The "string" argument must be of type string. + * + * assert.doesNotMatch('I will pass', /different/); + * // OK + * ``` + * + * If the values do match, or if the `string` argument is of another type than `string`, an `{@link AssertionError}` is thrown with a `message` property set equal + * to the value of the `message` parameter. If the `message` parameter is + * undefined, a default error message is assigned. If the `message` parameter is an + * instance of an [Error](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`. + * @since v13.6.0, v12.16.0 + */ + function doesNotMatch(value: string, regExp: RegExp, message?: string | Error): void; + /** + * In strict assertion mode, non-strict methods behave like their corresponding strict methods. For example, + * {@link deepEqual} will behave like {@link deepStrictEqual}. + * + * In strict assertion mode, error messages for objects display a diff. In legacy assertion mode, error + * messages for objects display the objects, often truncated. + * + * To use strict assertion mode: + * + * ```js + * import { strict as assert } from 'node:assert';COPY + * import assert from 'node:assert/strict'; + * ``` + * + * Example error diff: + * + * ```js + * import { strict as assert } from 'node:assert'; + * + * assert.deepEqual([[[1, 2, 3]], 4, 5], [[[1, 2, '3']], 4, 5]); + * // AssertionError: Expected inputs to be strictly deep-equal: + * // + actual - expected ... Lines skipped + * // + * // [ + * // [ + * // ... + * // 2, + * // + 3 + * // - '3' + * // ], + * // ... + * // 5 + * // ] + * ``` + * + * To deactivate the colors, use the `NO_COLOR` or `NODE_DISABLE_COLORS` environment variables. This will also + * deactivate the colors in the REPL. For more on color support in terminal environments, read the tty + * `getColorDepth()` documentation. + * + * @since v15.0.0, v13.9.0, v12.16.2, v9.9.0 + */ + namespace strict { + type AssertionError = assert.AssertionError; + type AssertPredicate = assert.AssertPredicate; + type CallTrackerCall = assert.CallTrackerCall; + type CallTrackerReportInformation = assert.CallTrackerReportInformation; + } + const strict: + & Omit< + typeof assert, + | "equal" + | "notEqual" + | "deepEqual" + | "notDeepEqual" + | "ok" + | "strictEqual" + | "deepStrictEqual" + | "ifError" + | "strict" + | "AssertionError" + > + & { + (value: unknown, message?: string | Error): asserts value; + equal: typeof strictEqual; + notEqual: typeof notStrictEqual; + deepEqual: typeof deepStrictEqual; + notDeepEqual: typeof notDeepStrictEqual; + // Mapped types and assertion functions are incompatible? + // TS2775: Assertions require every name in the call target + // to be declared with an explicit type annotation. + ok: typeof ok; + strictEqual: typeof strictEqual; + deepStrictEqual: typeof deepStrictEqual; + ifError: typeof ifError; + strict: typeof strict; + AssertionError: typeof AssertionError; + }; + } + export = assert; +} +declare module "node:assert" { + import assert = require("assert"); + export = assert; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/assert/strict.d.ts b/backend/node_modules/httpx/node_modules/@types/node/assert/strict.d.ts new file mode 100644 index 0000000..f333913 --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/assert/strict.d.ts @@ -0,0 +1,8 @@ +declare module "assert/strict" { + import { strict } from "node:assert"; + export = strict; +} +declare module "node:assert/strict" { + import { strict } from "node:assert"; + export = strict; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/async_hooks.d.ts b/backend/node_modules/httpx/node_modules/@types/node/async_hooks.d.ts new file mode 100644 index 0000000..fd9d2aa --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/async_hooks.d.ts @@ -0,0 +1,605 @@ +/** + * We strongly discourage the use of the `async_hooks` API. + * Other APIs that can cover most of its use cases include: + * + * * [`AsyncLocalStorage`](https://nodejs.org/docs/latest-v20.x/api/async_context.html#class-asynclocalstorage) tracks async context + * * [`process.getActiveResourcesInfo()`](https://nodejs.org/docs/latest-v20.x/api/process.html#processgetactiveresourcesinfo) tracks active resources + * + * The `node:async_hooks` module provides an API to track asynchronous resources. + * It can be accessed using: + * + * ```js + * import async_hooks from 'node:async_hooks'; + * ``` + * @experimental + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/async_hooks.js) + */ +declare module "async_hooks" { + /** + * ```js + * import { executionAsyncId } from 'node:async_hooks'; + * import fs from 'node:fs'; + * + * console.log(executionAsyncId()); // 1 - bootstrap + * const path = '.'; + * fs.open(path, 'r', (err, fd) => { + * console.log(executionAsyncId()); // 6 - open() + * }); + * ``` + * + * The ID returned from `executionAsyncId()` is related to execution timing, not + * causality (which is covered by `triggerAsyncId()`): + * + * ```js + * const server = net.createServer((conn) => { + * // Returns the ID of the server, not of the new connection, because the + * // callback runs in the execution scope of the server's MakeCallback(). + * async_hooks.executionAsyncId(); + * + * }).listen(port, () => { + * // Returns the ID of a TickObject (process.nextTick()) because all + * // callbacks passed to .listen() are wrapped in a nextTick(). + * async_hooks.executionAsyncId(); + * }); + * ``` + * + * Promise contexts may not get precise `executionAsyncIds` by default. + * See the section on [promise execution tracking](https://nodejs.org/docs/latest-v20.x/api/async_hooks.html#promise-execution-tracking). + * @since v8.1.0 + * @return The `asyncId` of the current execution context. Useful to track when something calls. + */ + function executionAsyncId(): number; + /** + * Resource objects returned by `executionAsyncResource()` are most often internal + * Node.js handle objects with undocumented APIs. Using any functions or properties + * on the object is likely to crash your application and should be avoided. + * + * Using `executionAsyncResource()` in the top-level execution context will + * return an empty object as there is no handle or request object to use, + * but having an object representing the top-level can be helpful. + * + * ```js + * import { open } from 'node:fs'; + * import { executionAsyncId, executionAsyncResource } from 'node:async_hooks'; + * + * console.log(executionAsyncId(), executionAsyncResource()); // 1 {} + * open(new URL(import.meta.url), 'r', (err, fd) => { + * console.log(executionAsyncId(), executionAsyncResource()); // 7 FSReqWrap + * }); + * ``` + * + * This can be used to implement continuation local storage without the + * use of a tracking `Map` to store the metadata: + * + * ```js + * import { createServer } from 'node:http'; + * import { + * executionAsyncId, + * executionAsyncResource, + * createHook, + * } from 'async_hooks'; + * const sym = Symbol('state'); // Private symbol to avoid pollution + * + * createHook({ + * init(asyncId, type, triggerAsyncId, resource) { + * const cr = executionAsyncResource(); + * if (cr) { + * resource[sym] = cr[sym]; + * } + * }, + * }).enable(); + * + * const server = createServer((req, res) => { + * executionAsyncResource()[sym] = { state: req.url }; + * setTimeout(function() { + * res.end(JSON.stringify(executionAsyncResource()[sym])); + * }, 100); + * }).listen(3000); + * ``` + * @since v13.9.0, v12.17.0 + * @return The resource representing the current execution. Useful to store data within the resource. + */ + function executionAsyncResource(): object; + /** + * ```js + * const server = net.createServer((conn) => { + * // The resource that caused (or triggered) this callback to be called + * // was that of the new connection. Thus the return value of triggerAsyncId() + * // is the asyncId of "conn". + * async_hooks.triggerAsyncId(); + * + * }).listen(port, () => { + * // Even though all callbacks passed to .listen() are wrapped in a nextTick() + * // the callback itself exists because the call to the server's .listen() + * // was made. So the return value would be the ID of the server. + * async_hooks.triggerAsyncId(); + * }); + * ``` + * + * Promise contexts may not get valid `triggerAsyncId`s by default. See + * the section on [promise execution tracking](https://nodejs.org/docs/latest-v20.x/api/async_hooks.html#promise-execution-tracking). + * @return The ID of the resource responsible for calling the callback that is currently being executed. + */ + function triggerAsyncId(): number; + interface HookCallbacks { + /** + * Called when a class is constructed that has the possibility to emit an asynchronous event. + * @param asyncId A unique ID for the async resource + * @param type The type of the async resource + * @param triggerAsyncId The unique ID of the async resource in whose execution context this async resource was created + * @param resource Reference to the resource representing the async operation, needs to be released during destroy + */ + init?(asyncId: number, type: string, triggerAsyncId: number, resource: object): void; + /** + * When an asynchronous operation is initiated or completes a callback is called to notify the user. + * The before callback is called just before said callback is executed. + * @param asyncId the unique identifier assigned to the resource about to execute the callback. + */ + before?(asyncId: number): void; + /** + * Called immediately after the callback specified in `before` is completed. + * + * If an uncaught exception occurs during execution of the callback, then `after` will run after the `'uncaughtException'` event is emitted or a `domain`'s handler runs. + * @param asyncId the unique identifier assigned to the resource which has executed the callback. + */ + after?(asyncId: number): void; + /** + * Called when a promise has resolve() called. This may not be in the same execution id + * as the promise itself. + * @param asyncId the unique id for the promise that was resolve()d. + */ + promiseResolve?(asyncId: number): void; + /** + * Called after the resource corresponding to asyncId is destroyed + * @param asyncId a unique ID for the async resource + */ + destroy?(asyncId: number): void; + } + interface AsyncHook { + /** + * Enable the callbacks for a given AsyncHook instance. If no callbacks are provided enabling is a noop. + */ + enable(): this; + /** + * Disable the callbacks for a given AsyncHook instance from the global pool of AsyncHook callbacks to be executed. Once a hook has been disabled it will not be called again until enabled. + */ + disable(): this; + } + /** + * Registers functions to be called for different lifetime events of each async + * operation. + * + * The callbacks `init()`/`before()`/`after()`/`destroy()` are called for the + * respective asynchronous event during a resource's lifetime. + * + * All callbacks are optional. For example, if only resource cleanup needs to + * be tracked, then only the `destroy` callback needs to be passed. The + * specifics of all functions that can be passed to `callbacks` is in the `Hook Callbacks` section. + * + * ```js + * import { createHook } from 'node:async_hooks'; + * + * const asyncHook = createHook({ + * init(asyncId, type, triggerAsyncId, resource) { }, + * destroy(asyncId) { }, + * }); + * ``` + * + * The callbacks will be inherited via the prototype chain: + * + * ```js + * class MyAsyncCallbacks { + * init(asyncId, type, triggerAsyncId, resource) { } + * destroy(asyncId) {} + * } + * + * class MyAddedCallbacks extends MyAsyncCallbacks { + * before(asyncId) { } + * after(asyncId) { } + * } + * + * const asyncHook = async_hooks.createHook(new MyAddedCallbacks()); + * ``` + * + * Because promises are asynchronous resources whose lifecycle is tracked + * via the async hooks mechanism, the `init()`, `before()`, `after()`, and`destroy()` callbacks _must not_ be async functions that return promises. + * @since v8.1.0 + * @param callbacks The `Hook Callbacks` to register + * @return Instance used for disabling and enabling hooks + */ + function createHook(callbacks: HookCallbacks): AsyncHook; + interface AsyncResourceOptions { + /** + * The ID of the execution context that created this async event. + * @default executionAsyncId() + */ + triggerAsyncId?: number | undefined; + /** + * Disables automatic `emitDestroy` when the object is garbage collected. + * This usually does not need to be set (even if `emitDestroy` is called + * manually), unless the resource's `asyncId` is retrieved and the + * sensitive API's `emitDestroy` is called with it. + * @default false + */ + requireManualDestroy?: boolean | undefined; + } + /** + * The class `AsyncResource` is designed to be extended by the embedder's async + * resources. Using this, users can easily trigger the lifetime events of their + * own resources. + * + * The `init` hook will trigger when an `AsyncResource` is instantiated. + * + * The following is an overview of the `AsyncResource` API. + * + * ```js + * import { AsyncResource, executionAsyncId } from 'node:async_hooks'; + * + * // AsyncResource() is meant to be extended. Instantiating a + * // new AsyncResource() also triggers init. If triggerAsyncId is omitted then + * // async_hook.executionAsyncId() is used. + * const asyncResource = new AsyncResource( + * type, { triggerAsyncId: executionAsyncId(), requireManualDestroy: false }, + * ); + * + * // Run a function in the execution context of the resource. This will + * // * establish the context of the resource + * // * trigger the AsyncHooks before callbacks + * // * call the provided function `fn` with the supplied arguments + * // * trigger the AsyncHooks after callbacks + * // * restore the original execution context + * asyncResource.runInAsyncScope(fn, thisArg, ...args); + * + * // Call AsyncHooks destroy callbacks. + * asyncResource.emitDestroy(); + * + * // Return the unique ID assigned to the AsyncResource instance. + * asyncResource.asyncId(); + * + * // Return the trigger ID for the AsyncResource instance. + * asyncResource.triggerAsyncId(); + * ``` + */ + class AsyncResource { + /** + * AsyncResource() is meant to be extended. Instantiating a + * new AsyncResource() also triggers init. If triggerAsyncId is omitted then + * async_hook.executionAsyncId() is used. + * @param type The type of async event. + * @param triggerAsyncId The ID of the execution context that created + * this async event (default: `executionAsyncId()`), or an + * AsyncResourceOptions object (since v9.3.0) + */ + constructor(type: string, triggerAsyncId?: number | AsyncResourceOptions); + /** + * Binds the given function to the current execution context. + * @since v14.8.0, v12.19.0 + * @param fn The function to bind to the current execution context. + * @param type An optional name to associate with the underlying `AsyncResource`. + */ + static bind any, ThisArg>( + fn: Func, + type?: string, + thisArg?: ThisArg, + ): Func; + /** + * Binds the given function to execute to this `AsyncResource`'s scope. + * @since v14.8.0, v12.19.0 + * @param fn The function to bind to the current `AsyncResource`. + */ + bind any>(fn: Func): Func; + /** + * Call the provided function with the provided arguments in the execution context + * of the async resource. This will establish the context, trigger the AsyncHooks + * before callbacks, call the function, trigger the AsyncHooks after callbacks, and + * then restore the original execution context. + * @since v9.6.0 + * @param fn The function to call in the execution context of this async resource. + * @param thisArg The receiver to be used for the function call. + * @param args Optional arguments to pass to the function. + */ + runInAsyncScope( + fn: (this: This, ...args: any[]) => Result, + thisArg?: This, + ...args: any[] + ): Result; + /** + * Call all `destroy` hooks. This should only ever be called once. An error will + * be thrown if it is called more than once. This **must** be manually called. If + * the resource is left to be collected by the GC then the `destroy` hooks will + * never be called. + * @return A reference to `asyncResource`. + */ + emitDestroy(): this; + /** + * @return The unique `asyncId` assigned to the resource. + */ + asyncId(): number; + /** + * @return The same `triggerAsyncId` that is passed to the `AsyncResource` constructor. + */ + triggerAsyncId(): number; + } + /** + * This class creates stores that stay coherent through asynchronous operations. + * + * While you can create your own implementation on top of the `node:async_hooks` module, `AsyncLocalStorage` should be preferred as it is a performant and memory + * safe implementation that involves significant optimizations that are non-obvious + * to implement. + * + * The following example uses `AsyncLocalStorage` to build a simple logger + * that assigns IDs to incoming HTTP requests and includes them in messages + * logged within each request. + * + * ```js + * import http from 'node:http'; + * import { AsyncLocalStorage } from 'node:async_hooks'; + * + * const asyncLocalStorage = new AsyncLocalStorage(); + * + * function logWithId(msg) { + * const id = asyncLocalStorage.getStore(); + * console.log(`${id !== undefined ? id : '-'}:`, msg); + * } + * + * let idSeq = 0; + * http.createServer((req, res) => { + * asyncLocalStorage.run(idSeq++, () => { + * logWithId('start'); + * // Imagine any chain of async operations here + * setImmediate(() => { + * logWithId('finish'); + * res.end(); + * }); + * }); + * }).listen(8080); + * + * http.get('http://localhost:8080'); + * http.get('http://localhost:8080'); + * // Prints: + * // 0: start + * // 1: start + * // 0: finish + * // 1: finish + * ``` + * + * Each instance of `AsyncLocalStorage` maintains an independent storage context. + * Multiple instances can safely exist simultaneously without risk of interfering + * with each other's data. + * @since v13.10.0, v12.17.0 + */ + class AsyncLocalStorage { + /** + * Binds the given function to the current execution context. + * @since v19.8.0 + * @experimental + * @param fn The function to bind to the current execution context. + * @return A new function that calls `fn` within the captured execution context. + */ + static bind any>(fn: Func): Func; + /** + * Captures the current execution context and returns a function that accepts a + * function as an argument. Whenever the returned function is called, it + * calls the function passed to it within the captured context. + * + * ```js + * const asyncLocalStorage = new AsyncLocalStorage(); + * const runInAsyncScope = asyncLocalStorage.run(123, () => AsyncLocalStorage.snapshot()); + * const result = asyncLocalStorage.run(321, () => runInAsyncScope(() => asyncLocalStorage.getStore())); + * console.log(result); // returns 123 + * ``` + * + * AsyncLocalStorage.snapshot() can replace the use of AsyncResource for simple + * async context tracking purposes, for example: + * + * ```js + * class Foo { + * #runInAsyncScope = AsyncLocalStorage.snapshot(); + * + * get() { return this.#runInAsyncScope(() => asyncLocalStorage.getStore()); } + * } + * + * const foo = asyncLocalStorage.run(123, () => new Foo()); + * console.log(asyncLocalStorage.run(321, () => foo.get())); // returns 123 + * ``` + * @since v19.8.0 + * @experimental + * @return A new function with the signature `(fn: (...args) : R, ...args) : R`. + */ + static snapshot(): (fn: (...args: TArgs) => R, ...args: TArgs) => R; + /** + * Disables the instance of `AsyncLocalStorage`. All subsequent calls + * to `asyncLocalStorage.getStore()` will return `undefined` until `asyncLocalStorage.run()` or `asyncLocalStorage.enterWith()` is called again. + * + * When calling `asyncLocalStorage.disable()`, all current contexts linked to the + * instance will be exited. + * + * Calling `asyncLocalStorage.disable()` is required before the `asyncLocalStorage` can be garbage collected. This does not apply to stores + * provided by the `asyncLocalStorage`, as those objects are garbage collected + * along with the corresponding async resources. + * + * Use this method when the `asyncLocalStorage` is not in use anymore + * in the current process. + * @since v13.10.0, v12.17.0 + * @experimental + */ + disable(): void; + /** + * Returns the current store. + * If called outside of an asynchronous context initialized by + * calling `asyncLocalStorage.run()` or `asyncLocalStorage.enterWith()`, it + * returns `undefined`. + * @since v13.10.0, v12.17.0 + */ + getStore(): T | undefined; + /** + * Runs a function synchronously within a context and returns its + * return value. The store is not accessible outside of the callback function. + * The store is accessible to any asynchronous operations created within the + * callback. + * + * The optional `args` are passed to the callback function. + * + * If the callback function throws an error, the error is thrown by `run()` too. + * The stacktrace is not impacted by this call and the context is exited. + * + * Example: + * + * ```js + * const store = { id: 2 }; + * try { + * asyncLocalStorage.run(store, () => { + * asyncLocalStorage.getStore(); // Returns the store object + * setTimeout(() => { + * asyncLocalStorage.getStore(); // Returns the store object + * }, 200); + * throw new Error(); + * }); + * } catch (e) { + * asyncLocalStorage.getStore(); // Returns undefined + * // The error will be caught here + * } + * ``` + * @since v13.10.0, v12.17.0 + */ + run(store: T, callback: () => R): R; + run(store: T, callback: (...args: TArgs) => R, ...args: TArgs): R; + /** + * Runs a function synchronously outside of a context and returns its + * return value. The store is not accessible within the callback function or + * the asynchronous operations created within the callback. Any `getStore()` call done within the callback function will always return `undefined`. + * + * The optional `args` are passed to the callback function. + * + * If the callback function throws an error, the error is thrown by `exit()` too. + * The stacktrace is not impacted by this call and the context is re-entered. + * + * Example: + * + * ```js + * // Within a call to run + * try { + * asyncLocalStorage.getStore(); // Returns the store object or value + * asyncLocalStorage.exit(() => { + * asyncLocalStorage.getStore(); // Returns undefined + * throw new Error(); + * }); + * } catch (e) { + * asyncLocalStorage.getStore(); // Returns the same object or value + * // The error will be caught here + * } + * ``` + * @since v13.10.0, v12.17.0 + * @experimental + */ + exit(callback: (...args: TArgs) => R, ...args: TArgs): R; + /** + * Transitions into the context for the remainder of the current + * synchronous execution and then persists the store through any following + * asynchronous calls. + * + * Example: + * + * ```js + * const store = { id: 1 }; + * // Replaces previous store with the given store object + * asyncLocalStorage.enterWith(store); + * asyncLocalStorage.getStore(); // Returns the store object + * someAsyncOperation(() => { + * asyncLocalStorage.getStore(); // Returns the same object + * }); + * ``` + * + * This transition will continue for the _entire_ synchronous execution. + * This means that if, for example, the context is entered within an event + * handler subsequent event handlers will also run within that context unless + * specifically bound to another context with an `AsyncResource`. That is why `run()` should be preferred over `enterWith()` unless there are strong reasons + * to use the latter method. + * + * ```js + * const store = { id: 1 }; + * + * emitter.on('my-event', () => { + * asyncLocalStorage.enterWith(store); + * }); + * emitter.on('my-event', () => { + * asyncLocalStorage.getStore(); // Returns the same object + * }); + * + * asyncLocalStorage.getStore(); // Returns undefined + * emitter.emit('my-event'); + * asyncLocalStorage.getStore(); // Returns the same object + * ``` + * @since v13.11.0, v12.17.0 + * @experimental + */ + enterWith(store: T): void; + } + /** + * @since v17.2.0, v16.14.0 + * @return A map of provider types to the corresponding numeric id. + * This map contains all the event types that might be emitted by the `async_hooks.init()` event. + */ + namespace asyncWrapProviders { + const NONE: number; + const DIRHANDLE: number; + const DNSCHANNEL: number; + const ELDHISTOGRAM: number; + const FILEHANDLE: number; + const FILEHANDLECLOSEREQ: number; + const FIXEDSIZEBLOBCOPY: number; + const FSEVENTWRAP: number; + const FSREQCALLBACK: number; + const FSREQPROMISE: number; + const GETADDRINFOREQWRAP: number; + const GETNAMEINFOREQWRAP: number; + const HEAPSNAPSHOT: number; + const HTTP2SESSION: number; + const HTTP2STREAM: number; + const HTTP2PING: number; + const HTTP2SETTINGS: number; + const HTTPINCOMINGMESSAGE: number; + const HTTPCLIENTREQUEST: number; + const JSSTREAM: number; + const JSUDPWRAP: number; + const MESSAGEPORT: number; + const PIPECONNECTWRAP: number; + const PIPESERVERWRAP: number; + const PIPEWRAP: number; + const PROCESSWRAP: number; + const PROMISE: number; + const QUERYWRAP: number; + const SHUTDOWNWRAP: number; + const SIGNALWRAP: number; + const STATWATCHER: number; + const STREAMPIPE: number; + const TCPCONNECTWRAP: number; + const TCPSERVERWRAP: number; + const TCPWRAP: number; + const TTYWRAP: number; + const UDPSENDWRAP: number; + const UDPWRAP: number; + const SIGINTWATCHDOG: number; + const WORKER: number; + const WORKERHEAPSNAPSHOT: number; + const WRITEWRAP: number; + const ZLIB: number; + const CHECKPRIMEREQUEST: number; + const PBKDF2REQUEST: number; + const KEYPAIRGENREQUEST: number; + const KEYGENREQUEST: number; + const KEYEXPORTREQUEST: number; + const CIPHERREQUEST: number; + const DERIVEBITSREQUEST: number; + const HASHREQUEST: number; + const RANDOMBYTESREQUEST: number; + const RANDOMPRIMEREQUEST: number; + const SCRYPTREQUEST: number; + const SIGNREQUEST: number; + const TLSWRAP: number; + const VERIFYREQUEST: number; + } +} +declare module "node:async_hooks" { + export * from "async_hooks"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/buffer.buffer.d.ts b/backend/node_modules/httpx/node_modules/@types/node/buffer.buffer.d.ts new file mode 100644 index 0000000..023bb0f --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/buffer.buffer.d.ts @@ -0,0 +1,471 @@ +declare module "buffer" { + type ImplicitArrayBuffer> = T extends + { valueOf(): infer V extends ArrayBufferLike } ? V : T; + global { + interface BufferConstructor { + // see buffer.d.ts for implementation shared with all TypeScript versions + + /** + * Allocates a new buffer containing the given {str}. + * + * @param str String to store in buffer. + * @param encoding encoding to use, optional. Default is 'utf8' + * @deprecated since v10.0.0 - Use `Buffer.from(string[, encoding])` instead. + */ + new(str: string, encoding?: BufferEncoding): Buffer; + /** + * Allocates a new buffer of {size} octets. + * + * @param size count of octets to allocate. + * @deprecated since v10.0.0 - Use `Buffer.alloc()` instead (also see `Buffer.allocUnsafe()`). + */ + new(size: number): Buffer; + /** + * Allocates a new buffer containing the given {array} of octets. + * + * @param array The octets to store. + * @deprecated since v10.0.0 - Use `Buffer.from(array)` instead. + */ + new(array: ArrayLike): Buffer; + /** + * Produces a Buffer backed by the same allocated memory as + * the given {ArrayBuffer}/{SharedArrayBuffer}. + * + * @param arrayBuffer The ArrayBuffer with which to share memory. + * @deprecated since v10.0.0 - Use `Buffer.from(arrayBuffer[, byteOffset[, length]])` instead. + */ + new(arrayBuffer: TArrayBuffer): Buffer; + /** + * Allocates a new `Buffer` using an `array` of bytes in the range `0` – `255`. + * Array entries outside that range will be truncated to fit into it. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * // Creates a new Buffer containing the UTF-8 bytes of the string 'buffer'. + * const buf = Buffer.from([0x62, 0x75, 0x66, 0x66, 0x65, 0x72]); + * ``` + * + * If `array` is an `Array`-like object (that is, one with a `length` property of + * type `number`), it is treated as if it is an array, unless it is a `Buffer` or + * a `Uint8Array`. This means all other `TypedArray` variants get treated as an + * `Array`. To create a `Buffer` from the bytes backing a `TypedArray`, use + * `Buffer.copyBytesFrom()`. + * + * A `TypeError` will be thrown if `array` is not an `Array` or another type + * appropriate for `Buffer.from()` variants. + * + * `Buffer.from(array)` and `Buffer.from(string)` may also use the internal + * `Buffer` pool like `Buffer.allocUnsafe()` does. + * @since v5.10.0 + */ + from(array: WithImplicitCoercion>): Buffer; + /** + * This creates a view of the `ArrayBuffer` without copying the underlying + * memory. For example, when passed a reference to the `.buffer` property of a + * `TypedArray` instance, the newly created `Buffer` will share the same + * allocated memory as the `TypedArray`'s underlying `ArrayBuffer`. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const arr = new Uint16Array(2); + * + * arr[0] = 5000; + * arr[1] = 4000; + * + * // Shares memory with `arr`. + * const buf = Buffer.from(arr.buffer); + * + * console.log(buf); + * // Prints: + * + * // Changing the original Uint16Array changes the Buffer also. + * arr[1] = 6000; + * + * console.log(buf); + * // Prints: + * ``` + * + * The optional `byteOffset` and `length` arguments specify a memory range within + * the `arrayBuffer` that will be shared by the `Buffer`. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const ab = new ArrayBuffer(10); + * const buf = Buffer.from(ab, 0, 2); + * + * console.log(buf.length); + * // Prints: 2 + * ``` + * + * A `TypeError` will be thrown if `arrayBuffer` is not an `ArrayBuffer` or a + * `SharedArrayBuffer` or another type appropriate for `Buffer.from()` + * variants. + * + * It is important to remember that a backing `ArrayBuffer` can cover a range + * of memory that extends beyond the bounds of a `TypedArray` view. A new + * `Buffer` created using the `buffer` property of a `TypedArray` may extend + * beyond the range of the `TypedArray`: + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const arrA = Uint8Array.from([0x63, 0x64, 0x65, 0x66]); // 4 elements + * const arrB = new Uint8Array(arrA.buffer, 1, 2); // 2 elements + * console.log(arrA.buffer === arrB.buffer); // true + * + * const buf = Buffer.from(arrB.buffer); + * console.log(buf); + * // Prints: + * ``` + * @since v5.10.0 + * @param arrayBuffer An `ArrayBuffer`, `SharedArrayBuffer`, for example the + * `.buffer` property of a `TypedArray`. + * @param byteOffset Index of first byte to expose. **Default:** `0`. + * @param length Number of bytes to expose. **Default:** + * `arrayBuffer.byteLength - byteOffset`. + */ + from>( + arrayBuffer: TArrayBuffer, + byteOffset?: number, + length?: number, + ): Buffer>; + /** + * Creates a new `Buffer` containing `string`. The `encoding` parameter identifies + * the character encoding to be used when converting `string` into bytes. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf1 = Buffer.from('this is a tést'); + * const buf2 = Buffer.from('7468697320697320612074c3a97374', 'hex'); + * + * console.log(buf1.toString()); + * // Prints: this is a tést + * console.log(buf2.toString()); + * // Prints: this is a tést + * console.log(buf1.toString('latin1')); + * // Prints: this is a tést + * ``` + * + * A `TypeError` will be thrown if `string` is not a string or another type + * appropriate for `Buffer.from()` variants. + * + * `Buffer.from(string)` may also use the internal `Buffer` pool like + * `Buffer.allocUnsafe()` does. + * @since v5.10.0 + * @param string A string to encode. + * @param encoding The encoding of `string`. **Default:** `'utf8'`. + */ + from(string: WithImplicitCoercion, encoding?: BufferEncoding): Buffer; + from(arrayOrString: WithImplicitCoercion | string>): Buffer; + /** + * Creates a new Buffer using the passed {data} + * @param values to create a new Buffer + */ + of(...items: number[]): Buffer; + /** + * Returns a new `Buffer` which is the result of concatenating all the `Buffer` instances in the `list` together. + * + * If the list has no items, or if the `totalLength` is 0, then a new zero-length `Buffer` is returned. + * + * If `totalLength` is not provided, it is calculated from the `Buffer` instances + * in `list` by adding their lengths. + * + * If `totalLength` is provided, it is coerced to an unsigned integer. If the + * combined length of the `Buffer`s in `list` exceeds `totalLength`, the result is + * truncated to `totalLength`. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * // Create a single `Buffer` from a list of three `Buffer` instances. + * + * const buf1 = Buffer.alloc(10); + * const buf2 = Buffer.alloc(14); + * const buf3 = Buffer.alloc(18); + * const totalLength = buf1.length + buf2.length + buf3.length; + * + * console.log(totalLength); + * // Prints: 42 + * + * const bufA = Buffer.concat([buf1, buf2, buf3], totalLength); + * + * console.log(bufA); + * // Prints: + * console.log(bufA.length); + * // Prints: 42 + * ``` + * + * `Buffer.concat()` may also use the internal `Buffer` pool like `Buffer.allocUnsafe()` does. + * @since v0.7.11 + * @param list List of `Buffer` or {@link Uint8Array} instances to concatenate. + * @param totalLength Total length of the `Buffer` instances in `list` when concatenated. + */ + concat(list: readonly Uint8Array[], totalLength?: number): Buffer; + /** + * Copies the underlying memory of `view` into a new `Buffer`. + * + * ```js + * const u16 = new Uint16Array([0, 0xffff]); + * const buf = Buffer.copyBytesFrom(u16, 1, 1); + * u16[1] = 0; + * console.log(buf.length); // 2 + * console.log(buf[0]); // 255 + * console.log(buf[1]); // 255 + * ``` + * @since v19.8.0 + * @param view The {TypedArray} to copy. + * @param [offset=0] The starting offset within `view`. + * @param [length=view.length - offset] The number of elements from `view` to copy. + */ + copyBytesFrom(view: NodeJS.TypedArray, offset?: number, length?: number): Buffer; + /** + * Allocates a new `Buffer` of `size` bytes. If `fill` is `undefined`, the`Buffer` will be zero-filled. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.alloc(5); + * + * console.log(buf); + * // Prints: + * ``` + * + * If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown. + * + * If `fill` is specified, the allocated `Buffer` will be initialized by calling `buf.fill(fill)`. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.alloc(5, 'a'); + * + * console.log(buf); + * // Prints: + * ``` + * + * If both `fill` and `encoding` are specified, the allocated `Buffer` will be + * initialized by calling `buf.fill(fill, encoding)`. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.alloc(11, 'aGVsbG8gd29ybGQ=', 'base64'); + * + * console.log(buf); + * // Prints: + * ``` + * + * Calling `Buffer.alloc()` can be measurably slower than the alternative `Buffer.allocUnsafe()` but ensures that the newly created `Buffer` instance + * contents will never contain sensitive data from previous allocations, including + * data that might not have been allocated for `Buffer`s. + * + * A `TypeError` will be thrown if `size` is not a number. + * @since v5.10.0 + * @param size The desired length of the new `Buffer`. + * @param [fill=0] A value to pre-fill the new `Buffer` with. + * @param [encoding='utf8'] If `fill` is a string, this is its encoding. + */ + alloc(size: number, fill?: string | Uint8Array | number, encoding?: BufferEncoding): Buffer; + /** + * Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown. + * + * The underlying memory for `Buffer` instances created in this way is _not_ + * _initialized_. The contents of the newly created `Buffer` are unknown and _may contain sensitive data_. Use `Buffer.alloc()` instead to initialize`Buffer` instances with zeroes. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.allocUnsafe(10); + * + * console.log(buf); + * // Prints (contents may vary): + * + * buf.fill(0); + * + * console.log(buf); + * // Prints: + * ``` + * + * A `TypeError` will be thrown if `size` is not a number. + * + * The `Buffer` module pre-allocates an internal `Buffer` instance of + * size `Buffer.poolSize` that is used as a pool for the fast allocation of new `Buffer` instances created using `Buffer.allocUnsafe()`, `Buffer.from(array)`, + * and `Buffer.concat()` only when `size` is less than `Buffer.poolSize >>> 1` (floor of `Buffer.poolSize` divided by two). + * + * Use of this pre-allocated internal memory pool is a key difference between + * calling `Buffer.alloc(size, fill)` vs. `Buffer.allocUnsafe(size).fill(fill)`. + * Specifically, `Buffer.alloc(size, fill)` will _never_ use the internal `Buffer`pool, while `Buffer.allocUnsafe(size).fill(fill)`_will_ use the internal`Buffer` pool if `size` is less + * than or equal to half `Buffer.poolSize`. The + * difference is subtle but can be important when an application requires the + * additional performance that `Buffer.allocUnsafe()` provides. + * @since v5.10.0 + * @param size The desired length of the new `Buffer`. + */ + allocUnsafe(size: number): Buffer; + /** + * Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown. A zero-length `Buffer` is created if + * `size` is 0. + * + * The underlying memory for `Buffer` instances created in this way is _not_ + * _initialized_. The contents of the newly created `Buffer` are unknown and _may contain sensitive data_. Use `buf.fill(0)` to initialize + * such `Buffer` instances with zeroes. + * + * When using `Buffer.allocUnsafe()` to allocate new `Buffer` instances, + * allocations under 4 KiB are sliced from a single pre-allocated `Buffer`. This + * allows applications to avoid the garbage collection overhead of creating many + * individually allocated `Buffer` instances. This approach improves both + * performance and memory usage by eliminating the need to track and clean up as + * many individual `ArrayBuffer` objects. + * + * However, in the case where a developer may need to retain a small chunk of + * memory from a pool for an indeterminate amount of time, it may be appropriate + * to create an un-pooled `Buffer` instance using `Buffer.allocUnsafeSlow()` and + * then copying out the relevant bits. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * // Need to keep around a few small chunks of memory. + * const store = []; + * + * socket.on('readable', () => { + * let data; + * while (null !== (data = readable.read())) { + * // Allocate for retained data. + * const sb = Buffer.allocUnsafeSlow(10); + * + * // Copy the data into the new allocation. + * data.copy(sb, 0, 0, 10); + * + * store.push(sb); + * } + * }); + * ``` + * + * A `TypeError` will be thrown if `size` is not a number. + * @since v5.12.0 + * @param size The desired length of the new `Buffer`. + */ + allocUnsafeSlow(size: number): Buffer; + } + interface Buffer extends Uint8Array { + // see buffer.d.ts for implementation shared with all TypeScript versions + + /** + * Returns a new `Buffer` that references the same memory as the original, but + * offset and cropped by the `start` and `end` indices. + * + * This method is not compatible with the `Uint8Array.prototype.slice()`, + * which is a superclass of `Buffer`. To copy the slice, use`Uint8Array.prototype.slice()`. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.from('buffer'); + * + * const copiedBuf = Uint8Array.prototype.slice.call(buf); + * copiedBuf[0]++; + * console.log(copiedBuf.toString()); + * // Prints: cuffer + * + * console.log(buf.toString()); + * // Prints: buffer + * + * // With buf.slice(), the original buffer is modified. + * const notReallyCopiedBuf = buf.slice(); + * notReallyCopiedBuf[0]++; + * console.log(notReallyCopiedBuf.toString()); + * // Prints: cuffer + * console.log(buf.toString()); + * // Also prints: cuffer (!) + * ``` + * @since v0.3.0 + * @deprecated Use `subarray` instead. + * @param [start=0] Where the new `Buffer` will start. + * @param [end=buf.length] Where the new `Buffer` will end (not inclusive). + */ + slice(start?: number, end?: number): Buffer; + /** + * Returns a new `Buffer` that references the same memory as the original, but + * offset and cropped by the `start` and `end` indices. + * + * Specifying `end` greater than `buf.length` will return the same result as + * that of `end` equal to `buf.length`. + * + * This method is inherited from [`TypedArray.prototype.subarray()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/subarray). + * + * Modifying the new `Buffer` slice will modify the memory in the original `Buffer`because the allocated memory of the two objects overlap. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * // Create a `Buffer` with the ASCII alphabet, take a slice, and modify one byte + * // from the original `Buffer`. + * + * const buf1 = Buffer.allocUnsafe(26); + * + * for (let i = 0; i < 26; i++) { + * // 97 is the decimal ASCII value for 'a'. + * buf1[i] = i + 97; + * } + * + * const buf2 = buf1.subarray(0, 3); + * + * console.log(buf2.toString('ascii', 0, buf2.length)); + * // Prints: abc + * + * buf1[0] = 33; + * + * console.log(buf2.toString('ascii', 0, buf2.length)); + * // Prints: !bc + * ``` + * + * Specifying negative indexes causes the slice to be generated relative to the + * end of `buf` rather than the beginning. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.from('buffer'); + * + * console.log(buf.subarray(-6, -1).toString()); + * // Prints: buffe + * // (Equivalent to buf.subarray(0, 5).) + * + * console.log(buf.subarray(-6, -2).toString()); + * // Prints: buff + * // (Equivalent to buf.subarray(0, 4).) + * + * console.log(buf.subarray(-5, -2).toString()); + * // Prints: uff + * // (Equivalent to buf.subarray(1, 4).) + * ``` + * @since v3.0.0 + * @param [start=0] Where the new `Buffer` will start. + * @param [end=buf.length] Where the new `Buffer` will end (not inclusive). + */ + subarray(start?: number, end?: number): Buffer; + } + // TODO: remove globals in future version + /** + * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports + * TypeScript versions earlier than 5.7. + */ + type NonSharedBuffer = Buffer; + /** + * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports + * TypeScript versions earlier than 5.7. + */ + type AllowSharedBuffer = Buffer; + } + /** @deprecated Use `Buffer.allocUnsafeSlow()` instead. */ + var SlowBuffer: { + /** @deprecated Use `Buffer.allocUnsafeSlow()` instead. */ + new(size: number): Buffer; + prototype: Buffer; + }; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/buffer.d.ts b/backend/node_modules/httpx/node_modules/@types/node/buffer.d.ts new file mode 100644 index 0000000..7c2e873 --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/buffer.d.ts @@ -0,0 +1,1936 @@ +// If lib.dom.d.ts or lib.webworker.d.ts is loaded, then use the global types. +// Otherwise, use the types from node. +type _Blob = typeof globalThis extends { onmessage: any; Blob: any } ? {} : import("buffer").Blob; +type _File = typeof globalThis extends { onmessage: any; File: any } ? {} : import("buffer").File; + +/** + * `Buffer` objects are used to represent a fixed-length sequence of bytes. Many + * Node.js APIs support `Buffer`s. + * + * The `Buffer` class is a subclass of JavaScript's [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) class and + * extends it with methods that cover additional use cases. Node.js APIs accept + * plain [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) s wherever `Buffer`s are supported as well. + * + * While the `Buffer` class is available within the global scope, it is still + * recommended to explicitly reference it via an import or require statement. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * // Creates a zero-filled Buffer of length 10. + * const buf1 = Buffer.alloc(10); + * + * // Creates a Buffer of length 10, + * // filled with bytes which all have the value `1`. + * const buf2 = Buffer.alloc(10, 1); + * + * // Creates an uninitialized buffer of length 10. + * // This is faster than calling Buffer.alloc() but the returned + * // Buffer instance might contain old data that needs to be + * // overwritten using fill(), write(), or other functions that fill the Buffer's + * // contents. + * const buf3 = Buffer.allocUnsafe(10); + * + * // Creates a Buffer containing the bytes [1, 2, 3]. + * const buf4 = Buffer.from([1, 2, 3]); + * + * // Creates a Buffer containing the bytes [1, 1, 1, 1] – the entries + * // are all truncated using `(value & 255)` to fit into the range 0–255. + * const buf5 = Buffer.from([257, 257.5, -255, '1']); + * + * // Creates a Buffer containing the UTF-8-encoded bytes for the string 'tést': + * // [0x74, 0xc3, 0xa9, 0x73, 0x74] (in hexadecimal notation) + * // [116, 195, 169, 115, 116] (in decimal notation) + * const buf6 = Buffer.from('tést'); + * + * // Creates a Buffer containing the Latin-1 bytes [0x74, 0xe9, 0x73, 0x74]. + * const buf7 = Buffer.from('tést', 'latin1'); + * ``` + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/buffer.js) + */ +declare module "buffer" { + import { BinaryLike } from "node:crypto"; + import { ReadableStream as WebReadableStream } from "node:stream/web"; + /** + * This function returns `true` if `input` contains only valid UTF-8-encoded data, + * including the case in which `input` is empty. + * + * Throws if the `input` is a detached array buffer. + * @since v19.4.0, v18.14.0 + * @param input The input to validate. + */ + export function isUtf8(input: ArrayBuffer | NodeJS.TypedArray): boolean; + /** + * This function returns `true` if `input` contains only valid ASCII-encoded data, + * including the case in which `input` is empty. + * + * Throws if the `input` is a detached array buffer. + * @since v19.6.0, v18.15.0 + * @param input The input to validate. + */ + export function isAscii(input: ArrayBuffer | NodeJS.TypedArray): boolean; + export let INSPECT_MAX_BYTES: number; + export const kMaxLength: number; + export const kStringMaxLength: number; + export const constants: { + MAX_LENGTH: number; + MAX_STRING_LENGTH: number; + }; + export type TranscodeEncoding = + | "ascii" + | "utf8" + | "utf-8" + | "utf16le" + | "utf-16le" + | "ucs2" + | "ucs-2" + | "latin1" + | "binary"; + /** + * Re-encodes the given `Buffer` or `Uint8Array` instance from one character + * encoding to another. Returns a new `Buffer` instance. + * + * Throws if the `fromEnc` or `toEnc` specify invalid character encodings or if + * conversion from `fromEnc` to `toEnc` is not permitted. + * + * Encodings supported by `buffer.transcode()` are: `'ascii'`, `'utf8'`, `'utf16le'`, `'ucs2'`, `'latin1'`, and `'binary'`. + * + * The transcoding process will use substitution characters if a given byte + * sequence cannot be adequately represented in the target encoding. For instance: + * + * ```js + * import { Buffer, transcode } from 'node:buffer'; + * + * const newBuf = transcode(Buffer.from('€'), 'utf8', 'ascii'); + * console.log(newBuf.toString('ascii')); + * // Prints: '?' + * ``` + * + * Because the Euro (`€`) sign is not representable in US-ASCII, it is replaced + * with `?` in the transcoded `Buffer`. + * @since v7.1.0 + * @param source A `Buffer` or `Uint8Array` instance. + * @param fromEnc The current encoding. + * @param toEnc To target encoding. + */ + export function transcode( + source: Uint8Array, + fromEnc: TranscodeEncoding, + toEnc: TranscodeEncoding, + ): NonSharedBuffer; + /** + * Resolves a `'blob:nodedata:...'` an associated `Blob` object registered using + * a prior call to `URL.createObjectURL()`. + * @since v16.7.0 + * @experimental + * @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`. + */ + export function resolveObjectURL(id: string): Blob | undefined; + export { type AllowSharedBuffer, Buffer, type NonSharedBuffer }; + /** + * @experimental + */ + export interface BlobOptions { + /** + * One of either `'transparent'` or `'native'`. When set to `'native'`, line endings in string source parts + * will be converted to the platform native line-ending as specified by `import { EOL } from 'node:node:os'`. + */ + endings?: "transparent" | "native"; + /** + * The Blob content-type. The intent is for `type` to convey + * the MIME media type of the data, however no validation of the type format + * is performed. + */ + type?: string | undefined; + } + /** + * A [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) encapsulates immutable, raw data that can be safely shared across + * multiple worker threads. + * @since v15.7.0, v14.18.0 + */ + export class Blob { + /** + * The total size of the `Blob` in bytes. + * @since v15.7.0, v14.18.0 + */ + readonly size: number; + /** + * The content-type of the `Blob`. + * @since v15.7.0, v14.18.0 + */ + readonly type: string; + /** + * Creates a new `Blob` object containing a concatenation of the given sources. + * + * {ArrayBuffer}, {TypedArray}, {DataView}, and {Buffer} sources are copied into + * the 'Blob' and can therefore be safely modified after the 'Blob' is created. + * + * String sources are also copied into the `Blob`. + */ + constructor(sources: Array, options?: BlobOptions); + /** + * Returns a promise that fulfills with an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) containing a copy of + * the `Blob` data. + * @since v15.7.0, v14.18.0 + */ + arrayBuffer(): Promise; + /** + * The `blob.bytes()` method returns the byte of the `Blob` object as a `Promise`. + * + * ```js + * const blob = new Blob(['hello']); + * blob.bytes().then((bytes) => { + * console.log(bytes); // Outputs: Uint8Array(5) [ 104, 101, 108, 108, 111 ] + * }); + * ``` + * @since v20.16.0 + */ + bytes(): Promise; + /** + * Creates and returns a new `Blob` containing a subset of this `Blob` objects + * data. The original `Blob` is not altered. + * @since v15.7.0, v14.18.0 + * @param start The starting index. + * @param end The ending index. + * @param type The content-type for the new `Blob` + */ + slice(start?: number, end?: number, type?: string): Blob; + /** + * Returns a promise that fulfills with the contents of the `Blob` decoded as a + * UTF-8 string. + * @since v15.7.0, v14.18.0 + */ + text(): Promise; + /** + * Returns a new `ReadableStream` that allows the content of the `Blob` to be read. + * @since v16.7.0 + */ + stream(): WebReadableStream; + } + export interface FileOptions { + /** + * One of either `'transparent'` or `'native'`. When set to `'native'`, line endings in string source parts will be + * converted to the platform native line-ending as specified by `import { EOL } from 'node:node:os'`. + */ + endings?: "native" | "transparent"; + /** The File content-type. */ + type?: string; + /** The last modified date of the file. `Default`: Date.now(). */ + lastModified?: number; + } + /** + * A [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File) provides information about files. + * @since v19.2.0, v18.13.0 + */ + export class File extends Blob { + constructor(sources: Array, fileName: string, options?: FileOptions); + /** + * The name of the `File`. + * @since v19.2.0, v18.13.0 + */ + readonly name: string; + /** + * The last modified date of the `File`. + * @since v19.2.0, v18.13.0 + */ + readonly lastModified: number; + } + export import atob = globalThis.atob; + export import btoa = globalThis.btoa; + export type WithImplicitCoercion = + | T + | { valueOf(): T } + | (T extends string ? { [Symbol.toPrimitive](hint: "string"): T } : never); + global { + namespace NodeJS { + export { BufferEncoding }; + } + // Buffer class + type BufferEncoding = + | "ascii" + | "utf8" + | "utf-8" + | "utf16le" + | "utf-16le" + | "ucs2" + | "ucs-2" + | "base64" + | "base64url" + | "latin1" + | "binary" + | "hex"; + /** + * Raw data is stored in instances of the Buffer class. + * A Buffer is similar to an array of integers but corresponds to a raw memory allocation outside the V8 heap. A Buffer cannot be resized. + * Valid string encodings: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'base64url'|'binary'(deprecated)|'hex' + */ + interface BufferConstructor { + // see buffer.buffer.d.ts for implementation specific to TypeScript 5.7 and later + // see ts5.6/buffer.buffer.d.ts for implementation specific to TypeScript 5.6 and earlier + + /** + * Returns `true` if `obj` is a `Buffer`, `false` otherwise. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * Buffer.isBuffer(Buffer.alloc(10)); // true + * Buffer.isBuffer(Buffer.from('foo')); // true + * Buffer.isBuffer('a string'); // false + * Buffer.isBuffer([]); // false + * Buffer.isBuffer(new Uint8Array(1024)); // false + * ``` + * @since v0.1.101 + */ + isBuffer(obj: any): obj is Buffer; + /** + * Returns `true` if `encoding` is the name of a supported character encoding, + * or `false` otherwise. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * console.log(Buffer.isEncoding('utf8')); + * // Prints: true + * + * console.log(Buffer.isEncoding('hex')); + * // Prints: true + * + * console.log(Buffer.isEncoding('utf/8')); + * // Prints: false + * + * console.log(Buffer.isEncoding('')); + * // Prints: false + * ``` + * @since v0.9.1 + * @param encoding A character encoding name to check. + */ + isEncoding(encoding: string): encoding is BufferEncoding; + /** + * Returns the byte length of a string when encoded using `encoding`. + * This is not the same as [`String.prototype.length`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length), which does not account + * for the encoding that is used to convert the string into bytes. + * + * For `'base64'`, `'base64url'`, and `'hex'`, this function assumes valid input. + * For strings that contain non-base64/hex-encoded data (e.g. whitespace), the + * return value might be greater than the length of a `Buffer` created from the + * string. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const str = '\u00bd + \u00bc = \u00be'; + * + * console.log(`${str}: ${str.length} characters, ` + + * `${Buffer.byteLength(str, 'utf8')} bytes`); + * // Prints: ½ + ¼ = ¾: 9 characters, 12 bytes + * ``` + * + * When `string` is a + * `Buffer`/[`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView)/[`TypedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/- + * Reference/Global_Objects/TypedArray)/[`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer)/[`SharedArrayBuffer`](https://develop- + * er.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer), the byte length as reported by `.byteLength`is returned. + * @since v0.1.90 + * @param string A value to calculate the length of. + * @param [encoding='utf8'] If `string` is a string, this is its encoding. + * @return The number of bytes contained within `string`. + */ + byteLength( + string: string | NodeJS.ArrayBufferView | ArrayBufferLike, + encoding?: BufferEncoding, + ): number; + /** + * Compares `buf1` to `buf2`, typically for the purpose of sorting arrays of `Buffer` instances. This is equivalent to calling `buf1.compare(buf2)`. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf1 = Buffer.from('1234'); + * const buf2 = Buffer.from('0123'); + * const arr = [buf1, buf2]; + * + * console.log(arr.sort(Buffer.compare)); + * // Prints: [ , ] + * // (This result is equal to: [buf2, buf1].) + * ``` + * @since v0.11.13 + * @return Either `-1`, `0`, or `1`, depending on the result of the comparison. See `compare` for details. + */ + compare(buf1: Uint8Array, buf2: Uint8Array): -1 | 0 | 1; + /** + * This is the size (in bytes) of pre-allocated internal `Buffer` instances used + * for pooling. This value may be modified. + * @since v0.11.3 + */ + poolSize: number; + } + interface Buffer { + // see buffer.buffer.d.ts for implementation specific to TypeScript 5.7 and later + // see ts5.6/buffer.buffer.d.ts for implementation specific to TypeScript 5.6 and earlier + + /** + * Writes `string` to `buf` at `offset` according to the character encoding in`encoding`. The `length` parameter is the number of bytes to write. If `buf` did + * not contain enough space to fit the entire string, only part of `string` will be + * written. However, partially encoded characters will not be written. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.alloc(256); + * + * const len = buf.write('\u00bd + \u00bc = \u00be', 0); + * + * console.log(`${len} bytes: ${buf.toString('utf8', 0, len)}`); + * // Prints: 12 bytes: ½ + ¼ = ¾ + * + * const buffer = Buffer.alloc(10); + * + * const length = buffer.write('abcd', 8); + * + * console.log(`${length} bytes: ${buffer.toString('utf8', 8, 10)}`); + * // Prints: 2 bytes : ab + * ``` + * @since v0.1.90 + * @param string String to write to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write `string`. + * @param [length=buf.length - offset] Maximum number of bytes to write (written bytes will not exceed `buf.length - offset`). + * @param [encoding='utf8'] The character encoding of `string`. + * @return Number of bytes written. + */ + write(string: string, encoding?: BufferEncoding): number; + write(string: string, offset: number, encoding?: BufferEncoding): number; + write(string: string, offset: number, length: number, encoding?: BufferEncoding): number; + /** + * Decodes `buf` to a string according to the specified character encoding in`encoding`. `start` and `end` may be passed to decode only a subset of `buf`. + * + * If `encoding` is `'utf8'` and a byte sequence in the input is not valid UTF-8, + * then each invalid byte is replaced with the replacement character `U+FFFD`. + * + * The maximum length of a string instance (in UTF-16 code units) is available + * as {@link constants.MAX_STRING_LENGTH}. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf1 = Buffer.allocUnsafe(26); + * + * for (let i = 0; i < 26; i++) { + * // 97 is the decimal ASCII value for 'a'. + * buf1[i] = i + 97; + * } + * + * console.log(buf1.toString('utf8')); + * // Prints: abcdefghijklmnopqrstuvwxyz + * console.log(buf1.toString('utf8', 0, 5)); + * // Prints: abcde + * + * const buf2 = Buffer.from('tést'); + * + * console.log(buf2.toString('hex')); + * // Prints: 74c3a97374 + * console.log(buf2.toString('utf8', 0, 3)); + * // Prints: té + * console.log(buf2.toString(undefined, 0, 3)); + * // Prints: té + * ``` + * @since v0.1.90 + * @param [encoding='utf8'] The character encoding to use. + * @param [start=0] The byte offset to start decoding at. + * @param [end=buf.length] The byte offset to stop decoding at (not inclusive). + */ + toString(encoding?: BufferEncoding, start?: number, end?: number): string; + /** + * Returns a JSON representation of `buf`. [`JSON.stringify()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify) implicitly calls + * this function when stringifying a `Buffer` instance. + * + * `Buffer.from()` accepts objects in the format returned from this method. + * In particular, `Buffer.from(buf.toJSON())` works like `Buffer.from(buf)`. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5]); + * const json = JSON.stringify(buf); + * + * console.log(json); + * // Prints: {"type":"Buffer","data":[1,2,3,4,5]} + * + * const copy = JSON.parse(json, (key, value) => { + * return value && value.type === 'Buffer' ? + * Buffer.from(value) : + * value; + * }); + * + * console.log(copy); + * // Prints: + * ``` + * @since v0.9.2 + */ + toJSON(): { + type: "Buffer"; + data: number[]; + }; + /** + * Returns `true` if both `buf` and `otherBuffer` have exactly the same bytes,`false` otherwise. Equivalent to `buf.compare(otherBuffer) === 0`. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf1 = Buffer.from('ABC'); + * const buf2 = Buffer.from('414243', 'hex'); + * const buf3 = Buffer.from('ABCD'); + * + * console.log(buf1.equals(buf2)); + * // Prints: true + * console.log(buf1.equals(buf3)); + * // Prints: false + * ``` + * @since v0.11.13 + * @param otherBuffer A `Buffer` or {@link Uint8Array} with which to compare `buf`. + */ + equals(otherBuffer: Uint8Array): boolean; + /** + * Compares `buf` with `target` and returns a number indicating whether `buf`comes before, after, or is the same as `target` in sort order. + * Comparison is based on the actual sequence of bytes in each `Buffer`. + * + * * `0` is returned if `target` is the same as `buf` + * * `1` is returned if `target` should come _before_`buf` when sorted. + * * `-1` is returned if `target` should come _after_`buf` when sorted. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf1 = Buffer.from('ABC'); + * const buf2 = Buffer.from('BCD'); + * const buf3 = Buffer.from('ABCD'); + * + * console.log(buf1.compare(buf1)); + * // Prints: 0 + * console.log(buf1.compare(buf2)); + * // Prints: -1 + * console.log(buf1.compare(buf3)); + * // Prints: -1 + * console.log(buf2.compare(buf1)); + * // Prints: 1 + * console.log(buf2.compare(buf3)); + * // Prints: 1 + * console.log([buf1, buf2, buf3].sort(Buffer.compare)); + * // Prints: [ , , ] + * // (This result is equal to: [buf1, buf3, buf2].) + * ``` + * + * The optional `targetStart`, `targetEnd`, `sourceStart`, and `sourceEnd` arguments can be used to limit the comparison to specific ranges within `target` and `buf` respectively. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf1 = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8, 9]); + * const buf2 = Buffer.from([5, 6, 7, 8, 9, 1, 2, 3, 4]); + * + * console.log(buf1.compare(buf2, 5, 9, 0, 4)); + * // Prints: 0 + * console.log(buf1.compare(buf2, 0, 6, 4)); + * // Prints: -1 + * console.log(buf1.compare(buf2, 5, 6, 5)); + * // Prints: 1 + * ``` + * + * `ERR_OUT_OF_RANGE` is thrown if `targetStart < 0`, `sourceStart < 0`, `targetEnd > target.byteLength`, or `sourceEnd > source.byteLength`. + * @since v0.11.13 + * @param target A `Buffer` or {@link Uint8Array} with which to compare `buf`. + * @param [targetStart=0] The offset within `target` at which to begin comparison. + * @param [targetEnd=target.length] The offset within `target` at which to end comparison (not inclusive). + * @param [sourceStart=0] The offset within `buf` at which to begin comparison. + * @param [sourceEnd=buf.length] The offset within `buf` at which to end comparison (not inclusive). + */ + compare( + target: Uint8Array, + targetStart?: number, + targetEnd?: number, + sourceStart?: number, + sourceEnd?: number, + ): -1 | 0 | 1; + /** + * Copies data from a region of `buf` to a region in `target`, even if the `target`memory region overlaps with `buf`. + * + * [`TypedArray.prototype.set()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) performs the same operation, and is available + * for all TypedArrays, including Node.js `Buffer`s, although it takes + * different function arguments. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * // Create two `Buffer` instances. + * const buf1 = Buffer.allocUnsafe(26); + * const buf2 = Buffer.allocUnsafe(26).fill('!'); + * + * for (let i = 0; i < 26; i++) { + * // 97 is the decimal ASCII value for 'a'. + * buf1[i] = i + 97; + * } + * + * // Copy `buf1` bytes 16 through 19 into `buf2` starting at byte 8 of `buf2`. + * buf1.copy(buf2, 8, 16, 20); + * // This is equivalent to: + * // buf2.set(buf1.subarray(16, 20), 8); + * + * console.log(buf2.toString('ascii', 0, 25)); + * // Prints: !!!!!!!!qrst!!!!!!!!!!!!! + * ``` + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * // Create a `Buffer` and copy data from one region to an overlapping region + * // within the same `Buffer`. + * + * const buf = Buffer.allocUnsafe(26); + * + * for (let i = 0; i < 26; i++) { + * // 97 is the decimal ASCII value for 'a'. + * buf[i] = i + 97; + * } + * + * buf.copy(buf, 0, 4, 10); + * + * console.log(buf.toString()); + * // Prints: efghijghijklmnopqrstuvwxyz + * ``` + * @since v0.1.90 + * @param target A `Buffer` or {@link Uint8Array} to copy into. + * @param [targetStart=0] The offset within `target` at which to begin writing. + * @param [sourceStart=0] The offset within `buf` from which to begin copying. + * @param [sourceEnd=buf.length] The offset within `buf` at which to stop copying (not inclusive). + * @return The number of bytes copied. + */ + copy(target: Uint8Array, targetStart?: number, sourceStart?: number, sourceEnd?: number): number; + /** + * Writes `value` to `buf` at the specified `offset` as big-endian. + * + * `value` is interpreted and written as a two's complement signed integer. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.allocUnsafe(8); + * + * buf.writeBigInt64BE(0x0102030405060708n, 0); + * + * console.log(buf); + * // Prints: + * ``` + * @since v12.0.0, v10.20.0 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`. + * @return `offset` plus the number of bytes written. + */ + writeBigInt64BE(value: bigint, offset?: number): number; + /** + * Writes `value` to `buf` at the specified `offset` as little-endian. + * + * `value` is interpreted and written as a two's complement signed integer. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.allocUnsafe(8); + * + * buf.writeBigInt64LE(0x0102030405060708n, 0); + * + * console.log(buf); + * // Prints: + * ``` + * @since v12.0.0, v10.20.0 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`. + * @return `offset` plus the number of bytes written. + */ + writeBigInt64LE(value: bigint, offset?: number): number; + /** + * Writes `value` to `buf` at the specified `offset` as big-endian. + * + * This function is also available under the `writeBigUint64BE` alias. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.allocUnsafe(8); + * + * buf.writeBigUInt64BE(0xdecafafecacefaden, 0); + * + * console.log(buf); + * // Prints: + * ``` + * @since v12.0.0, v10.20.0 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`. + * @return `offset` plus the number of bytes written. + */ + writeBigUInt64BE(value: bigint, offset?: number): number; + /** + * @alias Buffer.writeBigUInt64BE + * @since v14.10.0, v12.19.0 + */ + writeBigUint64BE(value: bigint, offset?: number): number; + /** + * Writes `value` to `buf` at the specified `offset` as little-endian + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.allocUnsafe(8); + * + * buf.writeBigUInt64LE(0xdecafafecacefaden, 0); + * + * console.log(buf); + * // Prints: + * ``` + * + * This function is also available under the `writeBigUint64LE` alias. + * @since v12.0.0, v10.20.0 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`. + * @return `offset` plus the number of bytes written. + */ + writeBigUInt64LE(value: bigint, offset?: number): number; + /** + * @alias Buffer.writeBigUInt64LE + * @since v14.10.0, v12.19.0 + */ + writeBigUint64LE(value: bigint, offset?: number): number; + /** + * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as little-endian. Supports up to 48 bits of accuracy. Behavior is undefined + * when `value` is anything other than an unsigned integer. + * + * This function is also available under the `writeUintLE` alias. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.allocUnsafe(6); + * + * buf.writeUIntLE(0x1234567890ab, 0, 6); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.5.5 + * @param value Number to be written to `buf`. + * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`. + * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`. + * @return `offset` plus the number of bytes written. + */ + writeUIntLE(value: number, offset: number, byteLength: number): number; + /** + * @alias Buffer.writeUIntLE + * @since v14.9.0, v12.19.0 + */ + writeUintLE(value: number, offset: number, byteLength: number): number; + /** + * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as big-endian. Supports up to 48 bits of accuracy. Behavior is undefined + * when `value` is anything other than an unsigned integer. + * + * This function is also available under the `writeUintBE` alias. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.allocUnsafe(6); + * + * buf.writeUIntBE(0x1234567890ab, 0, 6); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.5.5 + * @param value Number to be written to `buf`. + * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`. + * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`. + * @return `offset` plus the number of bytes written. + */ + writeUIntBE(value: number, offset: number, byteLength: number): number; + /** + * @alias Buffer.writeUIntBE + * @since v14.9.0, v12.19.0 + */ + writeUintBE(value: number, offset: number, byteLength: number): number; + /** + * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as little-endian. Supports up to 48 bits of accuracy. Behavior is undefined + * when `value` is anything other than a signed integer. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.allocUnsafe(6); + * + * buf.writeIntLE(0x1234567890ab, 0, 6); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.11.15 + * @param value Number to be written to `buf`. + * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`. + * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`. + * @return `offset` plus the number of bytes written. + */ + writeIntLE(value: number, offset: number, byteLength: number): number; + /** + * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as big-endian. Supports up to 48 bits of accuracy. Behavior is undefined when`value` is anything other than a + * signed integer. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.allocUnsafe(6); + * + * buf.writeIntBE(0x1234567890ab, 0, 6); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.11.15 + * @param value Number to be written to `buf`. + * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`. + * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`. + * @return `offset` plus the number of bytes written. + */ + writeIntBE(value: number, offset: number, byteLength: number): number; + /** + * Reads an unsigned, big-endian 64-bit integer from `buf` at the specified`offset`. + * + * This function is also available under the `readBigUint64BE` alias. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.from([0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff]); + * + * console.log(buf.readBigUInt64BE(0)); + * // Prints: 4294967295n + * ``` + * @since v12.0.0, v10.20.0 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`. + */ + readBigUInt64BE(offset?: number): bigint; + /** + * @alias Buffer.readBigUInt64BE + * @since v14.10.0, v12.19.0 + */ + readBigUint64BE(offset?: number): bigint; + /** + * Reads an unsigned, little-endian 64-bit integer from `buf` at the specified`offset`. + * + * This function is also available under the `readBigUint64LE` alias. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.from([0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff]); + * + * console.log(buf.readBigUInt64LE(0)); + * // Prints: 18446744069414584320n + * ``` + * @since v12.0.0, v10.20.0 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`. + */ + readBigUInt64LE(offset?: number): bigint; + /** + * @alias Buffer.readBigUInt64LE + * @since v14.10.0, v12.19.0 + */ + readBigUint64LE(offset?: number): bigint; + /** + * Reads a signed, big-endian 64-bit integer from `buf` at the specified `offset`. + * + * Integers read from a `Buffer` are interpreted as two's complement signed + * values. + * @since v12.0.0, v10.20.0 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`. + */ + readBigInt64BE(offset?: number): bigint; + /** + * Reads a signed, little-endian 64-bit integer from `buf` at the specified`offset`. + * + * Integers read from a `Buffer` are interpreted as two's complement signed + * values. + * @since v12.0.0, v10.20.0 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`. + */ + readBigInt64LE(offset?: number): bigint; + /** + * Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as an unsigned, little-endian integer supporting + * up to 48 bits of accuracy. + * + * This function is also available under the `readUintLE` alias. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]); + * + * console.log(buf.readUIntLE(0, 6).toString(16)); + * // Prints: ab9078563412 + * ``` + * @since v0.11.15 + * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`. + * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`. + */ + readUIntLE(offset: number, byteLength: number): number; + /** + * @alias Buffer.readUIntLE + * @since v14.9.0, v12.19.0 + */ + readUintLE(offset: number, byteLength: number): number; + /** + * Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as an unsigned big-endian integer supporting + * up to 48 bits of accuracy. + * + * This function is also available under the `readUintBE` alias. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]); + * + * console.log(buf.readUIntBE(0, 6).toString(16)); + * // Prints: 1234567890ab + * console.log(buf.readUIntBE(1, 6).toString(16)); + * // Throws ERR_OUT_OF_RANGE. + * ``` + * @since v0.11.15 + * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`. + * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`. + */ + readUIntBE(offset: number, byteLength: number): number; + /** + * @alias Buffer.readUIntBE + * @since v14.9.0, v12.19.0 + */ + readUintBE(offset: number, byteLength: number): number; + /** + * Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as a little-endian, two's complement signed value + * supporting up to 48 bits of accuracy. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]); + * + * console.log(buf.readIntLE(0, 6).toString(16)); + * // Prints: -546f87a9cbee + * ``` + * @since v0.11.15 + * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`. + * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`. + */ + readIntLE(offset: number, byteLength: number): number; + /** + * Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as a big-endian, two's complement signed value + * supporting up to 48 bits of accuracy. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]); + * + * console.log(buf.readIntBE(0, 6).toString(16)); + * // Prints: 1234567890ab + * console.log(buf.readIntBE(1, 6).toString(16)); + * // Throws ERR_OUT_OF_RANGE. + * console.log(buf.readIntBE(1, 0).toString(16)); + * // Throws ERR_OUT_OF_RANGE. + * ``` + * @since v0.11.15 + * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`. + * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`. + */ + readIntBE(offset: number, byteLength: number): number; + /** + * Reads an unsigned 8-bit integer from `buf` at the specified `offset`. + * + * This function is also available under the `readUint8` alias. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.from([1, -2]); + * + * console.log(buf.readUInt8(0)); + * // Prints: 1 + * console.log(buf.readUInt8(1)); + * // Prints: 254 + * console.log(buf.readUInt8(2)); + * // Throws ERR_OUT_OF_RANGE. + * ``` + * @since v0.5.0 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 1`. + */ + readUInt8(offset?: number): number; + /** + * @alias Buffer.readUInt8 + * @since v14.9.0, v12.19.0 + */ + readUint8(offset?: number): number; + /** + * Reads an unsigned, little-endian 16-bit integer from `buf` at the specified `offset`. + * + * This function is also available under the `readUint16LE` alias. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.from([0x12, 0x34, 0x56]); + * + * console.log(buf.readUInt16LE(0).toString(16)); + * // Prints: 3412 + * console.log(buf.readUInt16LE(1).toString(16)); + * // Prints: 5634 + * console.log(buf.readUInt16LE(2).toString(16)); + * // Throws ERR_OUT_OF_RANGE. + * ``` + * @since v0.5.5 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`. + */ + readUInt16LE(offset?: number): number; + /** + * @alias Buffer.readUInt16LE + * @since v14.9.0, v12.19.0 + */ + readUint16LE(offset?: number): number; + /** + * Reads an unsigned, big-endian 16-bit integer from `buf` at the specified`offset`. + * + * This function is also available under the `readUint16BE` alias. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.from([0x12, 0x34, 0x56]); + * + * console.log(buf.readUInt16BE(0).toString(16)); + * // Prints: 1234 + * console.log(buf.readUInt16BE(1).toString(16)); + * // Prints: 3456 + * ``` + * @since v0.5.5 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`. + */ + readUInt16BE(offset?: number): number; + /** + * @alias Buffer.readUInt16BE + * @since v14.9.0, v12.19.0 + */ + readUint16BE(offset?: number): number; + /** + * Reads an unsigned, little-endian 32-bit integer from `buf` at the specified`offset`. + * + * This function is also available under the `readUint32LE` alias. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78]); + * + * console.log(buf.readUInt32LE(0).toString(16)); + * // Prints: 78563412 + * console.log(buf.readUInt32LE(1).toString(16)); + * // Throws ERR_OUT_OF_RANGE. + * ``` + * @since v0.5.5 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. + */ + readUInt32LE(offset?: number): number; + /** + * @alias Buffer.readUInt32LE + * @since v14.9.0, v12.19.0 + */ + readUint32LE(offset?: number): number; + /** + * Reads an unsigned, big-endian 32-bit integer from `buf` at the specified`offset`. + * + * This function is also available under the `readUint32BE` alias. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78]); + * + * console.log(buf.readUInt32BE(0).toString(16)); + * // Prints: 12345678 + * ``` + * @since v0.5.5 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. + */ + readUInt32BE(offset?: number): number; + /** + * @alias Buffer.readUInt32BE + * @since v14.9.0, v12.19.0 + */ + readUint32BE(offset?: number): number; + /** + * Reads a signed 8-bit integer from `buf` at the specified `offset`. + * + * Integers read from a `Buffer` are interpreted as two's complement signed values. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.from([-1, 5]); + * + * console.log(buf.readInt8(0)); + * // Prints: -1 + * console.log(buf.readInt8(1)); + * // Prints: 5 + * console.log(buf.readInt8(2)); + * // Throws ERR_OUT_OF_RANGE. + * ``` + * @since v0.5.0 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 1`. + */ + readInt8(offset?: number): number; + /** + * Reads a signed, little-endian 16-bit integer from `buf` at the specified`offset`. + * + * Integers read from a `Buffer` are interpreted as two's complement signed values. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.from([0, 5]); + * + * console.log(buf.readInt16LE(0)); + * // Prints: 1280 + * console.log(buf.readInt16LE(1)); + * // Throws ERR_OUT_OF_RANGE. + * ``` + * @since v0.5.5 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`. + */ + readInt16LE(offset?: number): number; + /** + * Reads a signed, big-endian 16-bit integer from `buf` at the specified `offset`. + * + * Integers read from a `Buffer` are interpreted as two's complement signed values. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.from([0, 5]); + * + * console.log(buf.readInt16BE(0)); + * // Prints: 5 + * ``` + * @since v0.5.5 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`. + */ + readInt16BE(offset?: number): number; + /** + * Reads a signed, little-endian 32-bit integer from `buf` at the specified`offset`. + * + * Integers read from a `Buffer` are interpreted as two's complement signed values. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.from([0, 0, 0, 5]); + * + * console.log(buf.readInt32LE(0)); + * // Prints: 83886080 + * console.log(buf.readInt32LE(1)); + * // Throws ERR_OUT_OF_RANGE. + * ``` + * @since v0.5.5 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. + */ + readInt32LE(offset?: number): number; + /** + * Reads a signed, big-endian 32-bit integer from `buf` at the specified `offset`. + * + * Integers read from a `Buffer` are interpreted as two's complement signed values. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.from([0, 0, 0, 5]); + * + * console.log(buf.readInt32BE(0)); + * // Prints: 5 + * ``` + * @since v0.5.5 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. + */ + readInt32BE(offset?: number): number; + /** + * Reads a 32-bit, little-endian float from `buf` at the specified `offset`. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.from([1, 2, 3, 4]); + * + * console.log(buf.readFloatLE(0)); + * // Prints: 1.539989614439558e-36 + * console.log(buf.readFloatLE(1)); + * // Throws ERR_OUT_OF_RANGE. + * ``` + * @since v0.11.15 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. + */ + readFloatLE(offset?: number): number; + /** + * Reads a 32-bit, big-endian float from `buf` at the specified `offset`. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.from([1, 2, 3, 4]); + * + * console.log(buf.readFloatBE(0)); + * // Prints: 2.387939260590663e-38 + * ``` + * @since v0.11.15 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. + */ + readFloatBE(offset?: number): number; + /** + * Reads a 64-bit, little-endian double from `buf` at the specified `offset`. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8]); + * + * console.log(buf.readDoubleLE(0)); + * // Prints: 5.447603722011605e-270 + * console.log(buf.readDoubleLE(1)); + * // Throws ERR_OUT_OF_RANGE. + * ``` + * @since v0.11.15 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 8`. + */ + readDoubleLE(offset?: number): number; + /** + * Reads a 64-bit, big-endian double from `buf` at the specified `offset`. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8]); + * + * console.log(buf.readDoubleBE(0)); + * // Prints: 8.20788039913184e-304 + * ``` + * @since v0.11.15 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 8`. + */ + readDoubleBE(offset?: number): number; + reverse(): this; + /** + * Interprets `buf` as an array of unsigned 16-bit integers and swaps the + * byte order _in-place_. Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 2. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]); + * + * console.log(buf1); + * // Prints: + * + * buf1.swap16(); + * + * console.log(buf1); + * // Prints: + * + * const buf2 = Buffer.from([0x1, 0x2, 0x3]); + * + * buf2.swap16(); + * // Throws ERR_INVALID_BUFFER_SIZE. + * ``` + * + * One convenient use of `buf.swap16()` is to perform a fast in-place conversion + * between UTF-16 little-endian and UTF-16 big-endian: + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.from('This is little-endian UTF-16', 'utf16le'); + * buf.swap16(); // Convert to big-endian UTF-16 text. + * ``` + * @since v5.10.0 + * @return A reference to `buf`. + */ + swap16(): this; + /** + * Interprets `buf` as an array of unsigned 32-bit integers and swaps the + * byte order _in-place_. Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 4. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]); + * + * console.log(buf1); + * // Prints: + * + * buf1.swap32(); + * + * console.log(buf1); + * // Prints: + * + * const buf2 = Buffer.from([0x1, 0x2, 0x3]); + * + * buf2.swap32(); + * // Throws ERR_INVALID_BUFFER_SIZE. + * ``` + * @since v5.10.0 + * @return A reference to `buf`. + */ + swap32(): this; + /** + * Interprets `buf` as an array of 64-bit numbers and swaps byte order _in-place_. + * Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 8. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]); + * + * console.log(buf1); + * // Prints: + * + * buf1.swap64(); + * + * console.log(buf1); + * // Prints: + * + * const buf2 = Buffer.from([0x1, 0x2, 0x3]); + * + * buf2.swap64(); + * // Throws ERR_INVALID_BUFFER_SIZE. + * ``` + * @since v6.3.0 + * @return A reference to `buf`. + */ + swap64(): this; + /** + * Writes `value` to `buf` at the specified `offset`. `value` must be a + * valid unsigned 8-bit integer. Behavior is undefined when `value` is anything + * other than an unsigned 8-bit integer. + * + * This function is also available under the `writeUint8` alias. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.allocUnsafe(4); + * + * buf.writeUInt8(0x3, 0); + * buf.writeUInt8(0x4, 1); + * buf.writeUInt8(0x23, 2); + * buf.writeUInt8(0x42, 3); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.5.0 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 1`. + * @return `offset` plus the number of bytes written. + */ + writeUInt8(value: number, offset?: number): number; + /** + * @alias Buffer.writeUInt8 + * @since v14.9.0, v12.19.0 + */ + writeUint8(value: number, offset?: number): number; + /** + * Writes `value` to `buf` at the specified `offset` as little-endian. The `value` must be a valid unsigned 16-bit integer. Behavior is undefined when `value` is + * anything other than an unsigned 16-bit integer. + * + * This function is also available under the `writeUint16LE` alias. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.allocUnsafe(4); + * + * buf.writeUInt16LE(0xdead, 0); + * buf.writeUInt16LE(0xbeef, 2); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.5.5 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`. + * @return `offset` plus the number of bytes written. + */ + writeUInt16LE(value: number, offset?: number): number; + /** + * @alias Buffer.writeUInt16LE + * @since v14.9.0, v12.19.0 + */ + writeUint16LE(value: number, offset?: number): number; + /** + * Writes `value` to `buf` at the specified `offset` as big-endian. The `value` must be a valid unsigned 16-bit integer. Behavior is undefined when `value`is anything other than an + * unsigned 16-bit integer. + * + * This function is also available under the `writeUint16BE` alias. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.allocUnsafe(4); + * + * buf.writeUInt16BE(0xdead, 0); + * buf.writeUInt16BE(0xbeef, 2); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.5.5 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`. + * @return `offset` plus the number of bytes written. + */ + writeUInt16BE(value: number, offset?: number): number; + /** + * @alias Buffer.writeUInt16BE + * @since v14.9.0, v12.19.0 + */ + writeUint16BE(value: number, offset?: number): number; + /** + * Writes `value` to `buf` at the specified `offset` as little-endian. The `value` must be a valid unsigned 32-bit integer. Behavior is undefined when `value` is + * anything other than an unsigned 32-bit integer. + * + * This function is also available under the `writeUint32LE` alias. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.allocUnsafe(4); + * + * buf.writeUInt32LE(0xfeedface, 0); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.5.5 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. + * @return `offset` plus the number of bytes written. + */ + writeUInt32LE(value: number, offset?: number): number; + /** + * @alias Buffer.writeUInt32LE + * @since v14.9.0, v12.19.0 + */ + writeUint32LE(value: number, offset?: number): number; + /** + * Writes `value` to `buf` at the specified `offset` as big-endian. The `value` must be a valid unsigned 32-bit integer. Behavior is undefined when `value`is anything other than an + * unsigned 32-bit integer. + * + * This function is also available under the `writeUint32BE` alias. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.allocUnsafe(4); + * + * buf.writeUInt32BE(0xfeedface, 0); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.5.5 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. + * @return `offset` plus the number of bytes written. + */ + writeUInt32BE(value: number, offset?: number): number; + /** + * @alias Buffer.writeUInt32BE + * @since v14.9.0, v12.19.0 + */ + writeUint32BE(value: number, offset?: number): number; + /** + * Writes `value` to `buf` at the specified `offset`. `value` must be a valid + * signed 8-bit integer. Behavior is undefined when `value` is anything other than + * a signed 8-bit integer. + * + * `value` is interpreted and written as a two's complement signed integer. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.allocUnsafe(2); + * + * buf.writeInt8(2, 0); + * buf.writeInt8(-2, 1); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.5.0 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 1`. + * @return `offset` plus the number of bytes written. + */ + writeInt8(value: number, offset?: number): number; + /** + * Writes `value` to `buf` at the specified `offset` as little-endian. The `value` must be a valid signed 16-bit integer. Behavior is undefined when `value` is + * anything other than a signed 16-bit integer. + * + * The `value` is interpreted and written as a two's complement signed integer. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.allocUnsafe(2); + * + * buf.writeInt16LE(0x0304, 0); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.5.5 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`. + * @return `offset` plus the number of bytes written. + */ + writeInt16LE(value: number, offset?: number): number; + /** + * Writes `value` to `buf` at the specified `offset` as big-endian. The `value` must be a valid signed 16-bit integer. Behavior is undefined when `value` is + * anything other than a signed 16-bit integer. + * + * The `value` is interpreted and written as a two's complement signed integer. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.allocUnsafe(2); + * + * buf.writeInt16BE(0x0102, 0); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.5.5 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`. + * @return `offset` plus the number of bytes written. + */ + writeInt16BE(value: number, offset?: number): number; + /** + * Writes `value` to `buf` at the specified `offset` as little-endian. The `value` must be a valid signed 32-bit integer. Behavior is undefined when `value` is + * anything other than a signed 32-bit integer. + * + * The `value` is interpreted and written as a two's complement signed integer. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.allocUnsafe(4); + * + * buf.writeInt32LE(0x05060708, 0); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.5.5 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. + * @return `offset` plus the number of bytes written. + */ + writeInt32LE(value: number, offset?: number): number; + /** + * Writes `value` to `buf` at the specified `offset` as big-endian. The `value` must be a valid signed 32-bit integer. Behavior is undefined when `value` is + * anything other than a signed 32-bit integer. + * + * The `value` is interpreted and written as a two's complement signed integer. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.allocUnsafe(4); + * + * buf.writeInt32BE(0x01020304, 0); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.5.5 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. + * @return `offset` plus the number of bytes written. + */ + writeInt32BE(value: number, offset?: number): number; + /** + * Writes `value` to `buf` at the specified `offset` as little-endian. Behavior is + * undefined when `value` is anything other than a JavaScript number. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.allocUnsafe(4); + * + * buf.writeFloatLE(0xcafebabe, 0); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.11.15 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. + * @return `offset` plus the number of bytes written. + */ + writeFloatLE(value: number, offset?: number): number; + /** + * Writes `value` to `buf` at the specified `offset` as big-endian. Behavior is + * undefined when `value` is anything other than a JavaScript number. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.allocUnsafe(4); + * + * buf.writeFloatBE(0xcafebabe, 0); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.11.15 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. + * @return `offset` plus the number of bytes written. + */ + writeFloatBE(value: number, offset?: number): number; + /** + * Writes `value` to `buf` at the specified `offset` as little-endian. The `value` must be a JavaScript number. Behavior is undefined when `value` is anything + * other than a JavaScript number. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.allocUnsafe(8); + * + * buf.writeDoubleLE(123.456, 0); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.11.15 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 8`. + * @return `offset` plus the number of bytes written. + */ + writeDoubleLE(value: number, offset?: number): number; + /** + * Writes `value` to `buf` at the specified `offset` as big-endian. The `value` must be a JavaScript number. Behavior is undefined when `value` is anything + * other than a JavaScript number. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.allocUnsafe(8); + * + * buf.writeDoubleBE(123.456, 0); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.11.15 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 8`. + * @return `offset` plus the number of bytes written. + */ + writeDoubleBE(value: number, offset?: number): number; + /** + * Fills `buf` with the specified `value`. If the `offset` and `end` are not given, + * the entire `buf` will be filled: + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * // Fill a `Buffer` with the ASCII character 'h'. + * + * const b = Buffer.allocUnsafe(50).fill('h'); + * + * console.log(b.toString()); + * // Prints: hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh + * + * // Fill a buffer with empty string + * const c = Buffer.allocUnsafe(5).fill(''); + * + * console.log(c.fill('')); + * // Prints: + * ``` + * + * `value` is coerced to a `uint32` value if it is not a string, `Buffer`, or + * integer. If the resulting integer is greater than `255` (decimal), `buf` will be + * filled with `value & 255`. + * + * If the final write of a `fill()` operation falls on a multi-byte character, + * then only the bytes of that character that fit into `buf` are written: + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * // Fill a `Buffer` with character that takes up two bytes in UTF-8. + * + * console.log(Buffer.allocUnsafe(5).fill('\u0222')); + * // Prints: + * ``` + * + * If `value` contains invalid characters, it is truncated; if no valid + * fill data remains, an exception is thrown: + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.allocUnsafe(5); + * + * console.log(buf.fill('a')); + * // Prints: + * console.log(buf.fill('aazz', 'hex')); + * // Prints: + * console.log(buf.fill('zz', 'hex')); + * // Throws an exception. + * ``` + * @since v0.5.0 + * @param value The value with which to fill `buf`. Empty value (string, Uint8Array, Buffer) is coerced to `0`. + * @param [offset=0] Number of bytes to skip before starting to fill `buf`. + * @param [end=buf.length] Where to stop filling `buf` (not inclusive). + * @param [encoding='utf8'] The encoding for `value` if `value` is a string. + * @return A reference to `buf`. + */ + fill(value: string | Uint8Array | number, offset?: number, end?: number, encoding?: BufferEncoding): this; + fill(value: string | Uint8Array | number, offset: number, encoding: BufferEncoding): this; + fill(value: string | Uint8Array | number, encoding: BufferEncoding): this; + /** + * If `value` is: + * + * * a string, `value` is interpreted according to the character encoding in `encoding`. + * * a `Buffer` or [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array), `value` will be used in its entirety. + * To compare a partial `Buffer`, use `buf.subarray`. + * * a number, `value` will be interpreted as an unsigned 8-bit integer + * value between `0` and `255`. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.from('this is a buffer'); + * + * console.log(buf.indexOf('this')); + * // Prints: 0 + * console.log(buf.indexOf('is')); + * // Prints: 2 + * console.log(buf.indexOf(Buffer.from('a buffer'))); + * // Prints: 8 + * console.log(buf.indexOf(97)); + * // Prints: 8 (97 is the decimal ASCII value for 'a') + * console.log(buf.indexOf(Buffer.from('a buffer example'))); + * // Prints: -1 + * console.log(buf.indexOf(Buffer.from('a buffer example').slice(0, 8))); + * // Prints: 8 + * + * const utf16Buffer = Buffer.from('\u039a\u0391\u03a3\u03a3\u0395', 'utf16le'); + * + * console.log(utf16Buffer.indexOf('\u03a3', 0, 'utf16le')); + * // Prints: 4 + * console.log(utf16Buffer.indexOf('\u03a3', -4, 'utf16le')); + * // Prints: 6 + * ``` + * + * If `value` is not a string, number, or `Buffer`, this method will throw a `TypeError`. If `value` is a number, it will be coerced to a valid byte value, + * an integer between 0 and 255. + * + * If `byteOffset` is not a number, it will be coerced to a number. If the result + * of coercion is `NaN` or `0`, then the entire buffer will be searched. This + * behavior matches [`String.prototype.indexOf()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf). + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const b = Buffer.from('abcdef'); + * + * // Passing a value that's a number, but not a valid byte. + * // Prints: 2, equivalent to searching for 99 or 'c'. + * console.log(b.indexOf(99.9)); + * console.log(b.indexOf(256 + 99)); + * + * // Passing a byteOffset that coerces to NaN or 0. + * // Prints: 1, searching the whole buffer. + * console.log(b.indexOf('b', undefined)); + * console.log(b.indexOf('b', {})); + * console.log(b.indexOf('b', null)); + * console.log(b.indexOf('b', [])); + * ``` + * + * If `value` is an empty string or empty `Buffer` and `byteOffset` is less + * than `buf.length`, `byteOffset` will be returned. If `value` is empty and`byteOffset` is at least `buf.length`, `buf.length` will be returned. + * @since v1.5.0 + * @param value What to search for. + * @param [byteOffset=0] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`. + * @param [encoding='utf8'] If `value` is a string, this is the encoding used to determine the binary representation of the string that will be searched for in `buf`. + * @return The index of the first occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`. + */ + indexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number; + indexOf(value: string | number | Uint8Array, encoding: BufferEncoding): number; + /** + * Identical to `buf.indexOf()`, except the last occurrence of `value` is found + * rather than the first occurrence. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.from('this buffer is a buffer'); + * + * console.log(buf.lastIndexOf('this')); + * // Prints: 0 + * console.log(buf.lastIndexOf('buffer')); + * // Prints: 17 + * console.log(buf.lastIndexOf(Buffer.from('buffer'))); + * // Prints: 17 + * console.log(buf.lastIndexOf(97)); + * // Prints: 15 (97 is the decimal ASCII value for 'a') + * console.log(buf.lastIndexOf(Buffer.from('yolo'))); + * // Prints: -1 + * console.log(buf.lastIndexOf('buffer', 5)); + * // Prints: 5 + * console.log(buf.lastIndexOf('buffer', 4)); + * // Prints: -1 + * + * const utf16Buffer = Buffer.from('\u039a\u0391\u03a3\u03a3\u0395', 'utf16le'); + * + * console.log(utf16Buffer.lastIndexOf('\u03a3', undefined, 'utf16le')); + * // Prints: 6 + * console.log(utf16Buffer.lastIndexOf('\u03a3', -5, 'utf16le')); + * // Prints: 4 + * ``` + * + * If `value` is not a string, number, or `Buffer`, this method will throw a `TypeError`. If `value` is a number, it will be coerced to a valid byte value, + * an integer between 0 and 255. + * + * If `byteOffset` is not a number, it will be coerced to a number. Any arguments + * that coerce to `NaN`, like `{}` or `undefined`, will search the whole buffer. + * This behavior matches [`String.prototype.lastIndexOf()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/lastIndexOf). + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const b = Buffer.from('abcdef'); + * + * // Passing a value that's a number, but not a valid byte. + * // Prints: 2, equivalent to searching for 99 or 'c'. + * console.log(b.lastIndexOf(99.9)); + * console.log(b.lastIndexOf(256 + 99)); + * + * // Passing a byteOffset that coerces to NaN. + * // Prints: 1, searching the whole buffer. + * console.log(b.lastIndexOf('b', undefined)); + * console.log(b.lastIndexOf('b', {})); + * + * // Passing a byteOffset that coerces to 0. + * // Prints: -1, equivalent to passing 0. + * console.log(b.lastIndexOf('b', null)); + * console.log(b.lastIndexOf('b', [])); + * ``` + * + * If `value` is an empty string or empty `Buffer`, `byteOffset` will be returned. + * @since v6.0.0 + * @param value What to search for. + * @param [byteOffset=buf.length - 1] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`. + * @param [encoding='utf8'] If `value` is a string, this is the encoding used to determine the binary representation of the string that will be searched for in `buf`. + * @return The index of the last occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`. + */ + lastIndexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number; + lastIndexOf(value: string | number | Uint8Array, encoding: BufferEncoding): number; + /** + * Equivalent to `buf.indexOf() !== -1`. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.from('this is a buffer'); + * + * console.log(buf.includes('this')); + * // Prints: true + * console.log(buf.includes('is')); + * // Prints: true + * console.log(buf.includes(Buffer.from('a buffer'))); + * // Prints: true + * console.log(buf.includes(97)); + * // Prints: true (97 is the decimal ASCII value for 'a') + * console.log(buf.includes(Buffer.from('a buffer example'))); + * // Prints: false + * console.log(buf.includes(Buffer.from('a buffer example').slice(0, 8))); + * // Prints: true + * console.log(buf.includes('this', 4)); + * // Prints: false + * ``` + * @since v5.3.0 + * @param value What to search for. + * @param [byteOffset=0] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`. + * @param [encoding='utf8'] If `value` is a string, this is its encoding. + * @return `true` if `value` was found in `buf`, `false` otherwise. + */ + includes(value: string | number | Buffer, byteOffset?: number, encoding?: BufferEncoding): boolean; + includes(value: string | number | Buffer, encoding: BufferEncoding): boolean; + } + var Buffer: BufferConstructor; + /** + * Decodes a string of Base64-encoded data into bytes, and encodes those bytes + * into a string using Latin-1 (ISO-8859-1). + * + * The `data` may be any JavaScript-value that can be coerced into a string. + * + * **This function is only provided for compatibility with legacy web platform APIs** + * **and should never be used in new code, because they use strings to represent** + * **binary data and predate the introduction of typed arrays in JavaScript.** + * **For code running using Node.js APIs, converting between base64-encoded strings** + * **and binary data should be performed using `Buffer.from(str, 'base64')` and `buf.toString('base64')`.** + * @since v15.13.0, v14.17.0 + * @legacy Use `Buffer.from(data, 'base64')` instead. + * @param data The Base64-encoded input string. + */ + function atob(data: string): string; + /** + * Decodes a string into bytes using Latin-1 (ISO-8859), and encodes those bytes + * into a string using Base64. + * + * The `data` may be any JavaScript-value that can be coerced into a string. + * + * **This function is only provided for compatibility with legacy web platform APIs** + * **and should never be used in new code, because they use strings to represent** + * **binary data and predate the introduction of typed arrays in JavaScript.** + * **For code running using Node.js APIs, converting between base64-encoded strings** + * **and binary data should be performed using `Buffer.from(str, 'base64')` and `buf.toString('base64')`.** + * @since v15.13.0, v14.17.0 + * @legacy Use `buf.toString('base64')` instead. + * @param data An ASCII (Latin1) string. + */ + function btoa(data: string): string; + interface Blob extends _Blob {} + /** + * `Blob` class is a global reference for `import { Blob } from 'node:node:buffer'` + * https://nodejs.org/api/buffer.html#class-blob + * @since v18.0.0 + */ + var Blob: typeof globalThis extends { onmessage: any; Blob: infer T } ? T + : typeof import("buffer").Blob; + interface File extends _File {} + /** + * `File` class is a global reference for `import { File } from 'node:node:buffer'` + * https://nodejs.org/api/buffer.html#class-file + * @since v20.0.0 + */ + var File: typeof globalThis extends { onmessage: any; File: infer T } ? T + : typeof import("buffer").File; + } +} +declare module "node:buffer" { + export * from "buffer"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/child_process.d.ts b/backend/node_modules/httpx/node_modules/@types/node/child_process.d.ts new file mode 100644 index 0000000..5089071 --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/child_process.d.ts @@ -0,0 +1,1475 @@ +/** + * The `node:child_process` module provides the ability to spawn subprocesses in + * a manner that is similar, but not identical, to [`popen(3)`](http://man7.org/linux/man-pages/man3/popen.3.html). This capability + * is primarily provided by the {@link spawn} function: + * + * ```js + * import { spawn } from 'node:child_process'; + * const ls = spawn('ls', ['-lh', '/usr']); + * + * ls.stdout.on('data', (data) => { + * console.log(`stdout: ${data}`); + * }); + * + * ls.stderr.on('data', (data) => { + * console.error(`stderr: ${data}`); + * }); + * + * ls.on('close', (code) => { + * console.log(`child process exited with code ${code}`); + * }); + * ``` + * + * By default, pipes for `stdin`, `stdout`, and `stderr` are established between + * the parent Node.js process and the spawned subprocess. These pipes have + * limited (and platform-specific) capacity. If the subprocess writes to + * stdout in excess of that limit without the output being captured, the + * subprocess blocks waiting for the pipe buffer to accept more data. This is + * identical to the behavior of pipes in the shell. Use the `{ stdio: 'ignore' }` option if the output will not be consumed. + * + * The command lookup is performed using the `options.env.PATH` environment + * variable if `env` is in the `options` object. Otherwise, `process.env.PATH` is + * used. If `options.env` is set without `PATH`, lookup on Unix is performed + * on a default search path search of `/usr/bin:/bin` (see your operating system's + * manual for execvpe/execvp), on Windows the current processes environment + * variable `PATH` is used. + * + * On Windows, environment variables are case-insensitive. Node.js + * lexicographically sorts the `env` keys and uses the first one that + * case-insensitively matches. Only first (in lexicographic order) entry will be + * passed to the subprocess. This might lead to issues on Windows when passing + * objects to the `env` option that have multiple variants of the same key, such as `PATH` and `Path`. + * + * The {@link spawn} method spawns the child process asynchronously, + * without blocking the Node.js event loop. The {@link spawnSync} function provides equivalent functionality in a synchronous manner that blocks + * the event loop until the spawned process either exits or is terminated. + * + * For convenience, the `node:child_process` module provides a handful of + * synchronous and asynchronous alternatives to {@link spawn} and {@link spawnSync}. Each of these alternatives are implemented on + * top of {@link spawn} or {@link spawnSync}. + * + * * {@link exec}: spawns a shell and runs a command within that + * shell, passing the `stdout` and `stderr` to a callback function when + * complete. + * * {@link execFile}: similar to {@link exec} except + * that it spawns the command directly without first spawning a shell by + * default. + * * {@link fork}: spawns a new Node.js process and invokes a + * specified module with an IPC communication channel established that allows + * sending messages between parent and child. + * * {@link execSync}: a synchronous version of {@link exec} that will block the Node.js event loop. + * * {@link execFileSync}: a synchronous version of {@link execFile} that will block the Node.js event loop. + * + * For certain use cases, such as automating shell scripts, the `synchronous counterparts` may be more convenient. In many cases, however, + * the synchronous methods can have significant impact on performance due to + * stalling the event loop while spawned processes complete. + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/child_process.js) + */ +declare module "child_process" { + import { NonSharedBuffer } from "node:buffer"; + import { Abortable, EventEmitter } from "node:events"; + import * as dgram from "node:dgram"; + import * as net from "node:net"; + import { Readable, Stream, Writable } from "node:stream"; + import { URL } from "node:url"; + type Serializable = string | object | number | boolean | bigint; + type SendHandle = net.Socket | net.Server | dgram.Socket | undefined; + /** + * Instances of the `ChildProcess` represent spawned child processes. + * + * Instances of `ChildProcess` are not intended to be created directly. Rather, + * use the {@link spawn}, {@link exec},{@link execFile}, or {@link fork} methods to create + * instances of `ChildProcess`. + * @since v2.2.0 + */ + class ChildProcess extends EventEmitter { + /** + * A `Writable Stream` that represents the child process's `stdin`. + * + * If a child process waits to read all of its input, the child will not continue + * until this stream has been closed via `end()`. + * + * If the child was spawned with `stdio[0]` set to anything other than `'pipe'`, + * then this will be `null`. + * + * `subprocess.stdin` is an alias for `subprocess.stdio[0]`. Both properties will + * refer to the same value. + * + * The `subprocess.stdin` property can be `null` or `undefined` if the child process could not be successfully spawned. + * @since v0.1.90 + */ + stdin: Writable | null; + /** + * A `Readable Stream` that represents the child process's `stdout`. + * + * If the child was spawned with `stdio[1]` set to anything other than `'pipe'`, + * then this will be `null`. + * + * `subprocess.stdout` is an alias for `subprocess.stdio[1]`. Both properties will + * refer to the same value. + * + * ```js + * import { spawn } from 'node:child_process'; + * + * const subprocess = spawn('ls'); + * + * subprocess.stdout.on('data', (data) => { + * console.log(`Received chunk ${data}`); + * }); + * ``` + * + * The `subprocess.stdout` property can be `null` or `undefined` if the child process could not be successfully spawned. + * @since v0.1.90 + */ + stdout: Readable | null; + /** + * A `Readable Stream` that represents the child process's `stderr`. + * + * If the child was spawned with `stdio[2]` set to anything other than `'pipe'`, + * then this will be `null`. + * + * `subprocess.stderr` is an alias for `subprocess.stdio[2]`. Both properties will + * refer to the same value. + * + * The `subprocess.stderr` property can be `null` or `undefined` if the child process could not be successfully spawned. + * @since v0.1.90 + */ + stderr: Readable | null; + /** + * The `subprocess.channel` property is a reference to the child's IPC channel. If + * no IPC channel exists, this property is `undefined`. + * @since v7.1.0 + */ + readonly channel?: Control | null; + /** + * A sparse array of pipes to the child process, corresponding with positions in + * the `stdio` option passed to {@link spawn} that have been set + * to the value `'pipe'`. `subprocess.stdio[0]`, `subprocess.stdio[1]`, and `subprocess.stdio[2]` are also available as `subprocess.stdin`, `subprocess.stdout`, and `subprocess.stderr`, + * respectively. + * + * In the following example, only the child's fd `1` (stdout) is configured as a + * pipe, so only the parent's `subprocess.stdio[1]` is a stream, all other values + * in the array are `null`. + * + * ```js + * import assert from 'node:assert'; + * import fs from 'node:fs'; + * import child_process from 'node:child_process'; + * + * const subprocess = child_process.spawn('ls', { + * stdio: [ + * 0, // Use parent's stdin for child. + * 'pipe', // Pipe child's stdout to parent. + * fs.openSync('err.out', 'w'), // Direct child's stderr to a file. + * ], + * }); + * + * assert.strictEqual(subprocess.stdio[0], null); + * assert.strictEqual(subprocess.stdio[0], subprocess.stdin); + * + * assert(subprocess.stdout); + * assert.strictEqual(subprocess.stdio[1], subprocess.stdout); + * + * assert.strictEqual(subprocess.stdio[2], null); + * assert.strictEqual(subprocess.stdio[2], subprocess.stderr); + * ``` + * + * The `subprocess.stdio` property can be `undefined` if the child process could + * not be successfully spawned. + * @since v0.7.10 + */ + readonly stdio: [ + Writable | null, + // stdin + Readable | null, + // stdout + Readable | null, + // stderr + Readable | Writable | null | undefined, + // extra + Readable | Writable | null | undefined, // extra + ]; + /** + * The `subprocess.killed` property indicates whether the child process + * successfully received a signal from `subprocess.kill()`. The `killed` property + * does not indicate that the child process has been terminated. + * @since v0.5.10 + */ + readonly killed: boolean; + /** + * Returns the process identifier (PID) of the child process. If the child process + * fails to spawn due to errors, then the value is `undefined` and `error` is + * emitted. + * + * ```js + * import { spawn } from 'node:child_process'; + * const grep = spawn('grep', ['ssh']); + * + * console.log(`Spawned child pid: ${grep.pid}`); + * grep.stdin.end(); + * ``` + * @since v0.1.90 + */ + readonly pid?: number | undefined; + /** + * The `subprocess.connected` property indicates whether it is still possible to + * send and receive messages from a child process. When `subprocess.connected` is `false`, it is no longer possible to send or receive messages. + * @since v0.7.2 + */ + readonly connected: boolean; + /** + * The `subprocess.exitCode` property indicates the exit code of the child process. + * If the child process is still running, the field will be `null`. + */ + readonly exitCode: number | null; + /** + * The `subprocess.signalCode` property indicates the signal received by + * the child process if any, else `null`. + */ + readonly signalCode: NodeJS.Signals | null; + /** + * The `subprocess.spawnargs` property represents the full list of command-line + * arguments the child process was launched with. + */ + readonly spawnargs: string[]; + /** + * The `subprocess.spawnfile` property indicates the executable file name of + * the child process that is launched. + * + * For {@link fork}, its value will be equal to `process.execPath`. + * For {@link spawn}, its value will be the name of + * the executable file. + * For {@link exec}, its value will be the name of the shell + * in which the child process is launched. + */ + readonly spawnfile: string; + /** + * The `subprocess.kill()` method sends a signal to the child process. If no + * argument is given, the process will be sent the `'SIGTERM'` signal. See [`signal(7)`](http://man7.org/linux/man-pages/man7/signal.7.html) for a list of available signals. This function + * returns `true` if [`kill(2)`](http://man7.org/linux/man-pages/man2/kill.2.html) succeeds, and `false` otherwise. + * + * ```js + * import { spawn } from 'node:child_process'; + * const grep = spawn('grep', ['ssh']); + * + * grep.on('close', (code, signal) => { + * console.log( + * `child process terminated due to receipt of signal ${signal}`); + * }); + * + * // Send SIGHUP to process. + * grep.kill('SIGHUP'); + * ``` + * + * The `ChildProcess` object may emit an `'error'` event if the signal + * cannot be delivered. Sending a signal to a child process that has already exited + * is not an error but may have unforeseen consequences. Specifically, if the + * process identifier (PID) has been reassigned to another process, the signal will + * be delivered to that process instead which can have unexpected results. + * + * While the function is called `kill`, the signal delivered to the child process + * may not actually terminate the process. + * + * See [`kill(2)`](http://man7.org/linux/man-pages/man2/kill.2.html) for reference. + * + * On Windows, where POSIX signals do not exist, the `signal` argument will be + * ignored, and the process will be killed forcefully and abruptly (similar to `'SIGKILL'`). + * See `Signal Events` for more details. + * + * On Linux, child processes of child processes will not be terminated + * when attempting to kill their parent. This is likely to happen when running a + * new process in a shell or with the use of the `shell` option of `ChildProcess`: + * + * ```js + * 'use strict'; + * import { spawn } from 'node:child_process'; + * + * const subprocess = spawn( + * 'sh', + * [ + * '-c', + * `node -e "setInterval(() => { + * console.log(process.pid, 'is alive') + * }, 500);"`, + * ], { + * stdio: ['inherit', 'inherit', 'inherit'], + * }, + * ); + * + * setTimeout(() => { + * subprocess.kill(); // Does not terminate the Node.js process in the shell. + * }, 2000); + * ``` + * @since v0.1.90 + */ + kill(signal?: NodeJS.Signals | number): boolean; + /** + * Calls {@link ChildProcess.kill} with `'SIGTERM'`. + * @since v20.5.0 + */ + [Symbol.dispose](): void; + /** + * When an IPC channel has been established between the parent and child ( + * i.e. when using {@link fork}), the `subprocess.send()` method can + * be used to send messages to the child process. When the child process is a + * Node.js instance, these messages can be received via the `'message'` event. + * + * The message goes through serialization and parsing. The resulting + * message might not be the same as what is originally sent. + * + * For example, in the parent script: + * + * ```js + * import cp from 'node:child_process'; + * const n = cp.fork(`${__dirname}/sub.js`); + * + * n.on('message', (m) => { + * console.log('PARENT got message:', m); + * }); + * + * // Causes the child to print: CHILD got message: { hello: 'world' } + * n.send({ hello: 'world' }); + * ``` + * + * And then the child script, `'sub.js'` might look like this: + * + * ```js + * process.on('message', (m) => { + * console.log('CHILD got message:', m); + * }); + * + * // Causes the parent to print: PARENT got message: { foo: 'bar', baz: null } + * process.send({ foo: 'bar', baz: NaN }); + * ``` + * + * Child Node.js processes will have a `process.send()` method of their own + * that allows the child to send messages back to the parent. + * + * There is a special case when sending a `{cmd: 'NODE_foo'}` message. Messages + * containing a `NODE_` prefix in the `cmd` property are reserved for use within + * Node.js core and will not be emitted in the child's `'message'` event. Rather, such messages are emitted using the `'internalMessage'` event and are consumed internally by Node.js. + * Applications should avoid using such messages or listening for `'internalMessage'` events as it is subject to change without notice. + * + * The optional `sendHandle` argument that may be passed to `subprocess.send()` is + * for passing a TCP server or socket object to the child process. The child will + * receive the object as the second argument passed to the callback function + * registered on the `'message'` event. Any data that is received and buffered in + * the socket will not be sent to the child. Sending IPC sockets is not supported on Windows. + * + * The optional `callback` is a function that is invoked after the message is + * sent but before the child may have received it. The function is called with a + * single argument: `null` on success, or an `Error` object on failure. + * + * If no `callback` function is provided and the message cannot be sent, an `'error'` event will be emitted by the `ChildProcess` object. This can + * happen, for instance, when the child process has already exited. + * + * `subprocess.send()` will return `false` if the channel has closed or when the + * backlog of unsent messages exceeds a threshold that makes it unwise to send + * more. Otherwise, the method returns `true`. The `callback` function can be + * used to implement flow control. + * + * #### Example: sending a server object + * + * The `sendHandle` argument can be used, for instance, to pass the handle of + * a TCP server object to the child process as illustrated in the example below: + * + * ```js + * import child_process from 'node:child_process'; + * const subprocess = child_process.fork('subprocess.js'); + * + * // Open up the server object and send the handle. + * import net from 'node:net'; + * const server = net.createServer(); + * server.on('connection', (socket) => { + * socket.end('handled by parent'); + * }); + * server.listen(1337, () => { + * subprocess.send('server', server); + * }); + * ``` + * + * The child would then receive the server object as: + * + * ```js + * process.on('message', (m, server) => { + * if (m === 'server') { + * server.on('connection', (socket) => { + * socket.end('handled by child'); + * }); + * } + * }); + * ``` + * + * Once the server is now shared between the parent and child, some connections + * can be handled by the parent and some by the child. + * + * While the example above uses a server created using the `node:net` module, `node:dgram` module servers use exactly the same workflow with the exceptions of + * listening on a `'message'` event instead of `'connection'` and using `server.bind()` instead of `server.listen()`. This is, however, only + * supported on Unix platforms. + * + * #### Example: sending a socket object + * + * Similarly, the `sendHandler` argument can be used to pass the handle of a + * socket to the child process. The example below spawns two children that each + * handle connections with "normal" or "special" priority: + * + * ```js + * import { fork } from 'node:child_process'; + * const normal = fork('subprocess.js', ['normal']); + * const special = fork('subprocess.js', ['special']); + * + * // Open up the server and send sockets to child. Use pauseOnConnect to prevent + * // the sockets from being read before they are sent to the child process. + * import net from 'node:net'; + * const server = net.createServer({ pauseOnConnect: true }); + * server.on('connection', (socket) => { + * + * // If this is special priority... + * if (socket.remoteAddress === '74.125.127.100') { + * special.send('socket', socket); + * return; + * } + * // This is normal priority. + * normal.send('socket', socket); + * }); + * server.listen(1337); + * ``` + * + * The `subprocess.js` would receive the socket handle as the second argument + * passed to the event callback function: + * + * ```js + * process.on('message', (m, socket) => { + * if (m === 'socket') { + * if (socket) { + * // Check that the client socket exists. + * // It is possible for the socket to be closed between the time it is + * // sent and the time it is received in the child process. + * socket.end(`Request handled with ${process.argv[2]} priority`); + * } + * } + * }); + * ``` + * + * Do not use `.maxConnections` on a socket that has been passed to a subprocess. + * The parent cannot track when the socket is destroyed. + * + * Any `'message'` handlers in the subprocess should verify that `socket` exists, + * as the connection may have been closed during the time it takes to send the + * connection to the child. + * @since v0.5.9 + * @param sendHandle `undefined`, or a [`net.Socket`](https://nodejs.org/docs/latest-v20.x/api/net.html#class-netsocket), [`net.Server`](https://nodejs.org/docs/latest-v20.x/api/net.html#class-netserver), or [`dgram.Socket`](https://nodejs.org/docs/latest-v20.x/api/dgram.html#class-dgramsocket) object. + * @param options The `options` argument, if present, is an object used to parameterize the sending of certain types of handles. `options` supports the following properties: + */ + send(message: Serializable, callback?: (error: Error | null) => void): boolean; + send(message: Serializable, sendHandle?: SendHandle, callback?: (error: Error | null) => void): boolean; + send( + message: Serializable, + sendHandle?: SendHandle, + options?: MessageOptions, + callback?: (error: Error | null) => void, + ): boolean; + /** + * Closes the IPC channel between parent and child, allowing the child to exit + * gracefully once there are no other connections keeping it alive. After calling + * this method the `subprocess.connected` and `process.connected` properties in + * both the parent and child (respectively) will be set to `false`, and it will be + * no longer possible to pass messages between the processes. + * + * The `'disconnect'` event will be emitted when there are no messages in the + * process of being received. This will most often be triggered immediately after + * calling `subprocess.disconnect()`. + * + * When the child process is a Node.js instance (e.g. spawned using {@link fork}), the `process.disconnect()` method can be invoked + * within the child process to close the IPC channel as well. + * @since v0.7.2 + */ + disconnect(): void; + /** + * By default, the parent will wait for the detached child to exit. To prevent the + * parent from waiting for a given `subprocess` to exit, use the `subprocess.unref()` method. Doing so will cause the parent's event loop to not + * include the child in its reference count, allowing the parent to exit + * independently of the child, unless there is an established IPC channel between + * the child and the parent. + * + * ```js + * import { spawn } from 'node:child_process'; + * + * const subprocess = spawn(process.argv[0], ['child_program.js'], { + * detached: true, + * stdio: 'ignore', + * }); + * + * subprocess.unref(); + * ``` + * @since v0.7.10 + */ + unref(): void; + /** + * Calling `subprocess.ref()` after making a call to `subprocess.unref()` will + * restore the removed reference count for the child process, forcing the parent + * to wait for the child to exit before exiting itself. + * + * ```js + * import { spawn } from 'node:child_process'; + * + * const subprocess = spawn(process.argv[0], ['child_program.js'], { + * detached: true, + * stdio: 'ignore', + * }); + * + * subprocess.unref(); + * subprocess.ref(); + * ``` + * @since v0.7.10 + */ + ref(): void; + /** + * events.EventEmitter + * 1. close + * 2. disconnect + * 3. error + * 4. exit + * 5. message + * 6. spawn + */ + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; + addListener(event: "disconnect", listener: () => void): this; + addListener(event: "error", listener: (err: Error) => void): this; + addListener(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; + addListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this; + addListener(event: "spawn", listener: () => void): this; + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: "close", code: number | null, signal: NodeJS.Signals | null): boolean; + emit(event: "disconnect"): boolean; + emit(event: "error", err: Error): boolean; + emit(event: "exit", code: number | null, signal: NodeJS.Signals | null): boolean; + emit(event: "message", message: Serializable, sendHandle: SendHandle): boolean; + emit(event: "spawn", listener: () => void): boolean; + on(event: string, listener: (...args: any[]) => void): this; + on(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; + on(event: "disconnect", listener: () => void): this; + on(event: "error", listener: (err: Error) => void): this; + on(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; + on(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this; + on(event: "spawn", listener: () => void): this; + once(event: string, listener: (...args: any[]) => void): this; + once(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; + once(event: "disconnect", listener: () => void): this; + once(event: "error", listener: (err: Error) => void): this; + once(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; + once(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this; + once(event: "spawn", listener: () => void): this; + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; + prependListener(event: "disconnect", listener: () => void): this; + prependListener(event: "error", listener: (err: Error) => void): this; + prependListener(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; + prependListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this; + prependListener(event: "spawn", listener: () => void): this; + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener( + event: "close", + listener: (code: number | null, signal: NodeJS.Signals | null) => void, + ): this; + prependOnceListener(event: "disconnect", listener: () => void): this; + prependOnceListener(event: "error", listener: (err: Error) => void): this; + prependOnceListener( + event: "exit", + listener: (code: number | null, signal: NodeJS.Signals | null) => void, + ): this; + prependOnceListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this; + prependOnceListener(event: "spawn", listener: () => void): this; + } + // return this object when stdio option is undefined or not specified + interface ChildProcessWithoutNullStreams extends ChildProcess { + stdin: Writable; + stdout: Readable; + stderr: Readable; + readonly stdio: [ + Writable, + Readable, + Readable, + // stderr + Readable | Writable | null | undefined, + // extra, no modification + Readable | Writable | null | undefined, // extra, no modification + ]; + } + // return this object when stdio option is a tuple of 3 + interface ChildProcessByStdio + extends ChildProcess + { + stdin: I; + stdout: O; + stderr: E; + readonly stdio: [ + I, + O, + E, + Readable | Writable | null | undefined, + // extra, no modification + Readable | Writable | null | undefined, // extra, no modification + ]; + } + interface Control extends EventEmitter { + ref(): void; + unref(): void; + } + interface MessageOptions { + keepOpen?: boolean | undefined; + } + type IOType = "overlapped" | "pipe" | "ignore" | "inherit"; + type StdioOptions = IOType | Array; + type SerializationType = "json" | "advanced"; + interface MessagingOptions extends Abortable { + /** + * Specify the kind of serialization used for sending messages between processes. + * @default 'json' + */ + serialization?: SerializationType | undefined; + /** + * The signal value to be used when the spawned process will be killed by the abort signal. + * @default 'SIGTERM' + */ + killSignal?: NodeJS.Signals | number | undefined; + /** + * In milliseconds the maximum amount of time the process is allowed to run. + */ + timeout?: number | undefined; + } + interface ProcessEnvOptions { + uid?: number | undefined; + gid?: number | undefined; + cwd?: string | URL | undefined; + env?: NodeJS.ProcessEnv | undefined; + } + interface CommonOptions extends ProcessEnvOptions { + /** + * @default false + */ + windowsHide?: boolean | undefined; + /** + * @default 0 + */ + timeout?: number | undefined; + } + interface CommonSpawnOptions extends CommonOptions, MessagingOptions, Abortable { + argv0?: string | undefined; + /** + * Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings. + * If passed as an array, the first element is used for `stdin`, the second for + * `stdout`, and the third for `stderr`. A fourth element can be used to + * specify the `stdio` behavior beyond the standard streams. See + * {@link ChildProcess.stdio} for more information. + * + * @default 'pipe' + */ + stdio?: StdioOptions | undefined; + shell?: boolean | string | undefined; + windowsVerbatimArguments?: boolean | undefined; + } + interface SpawnOptions extends CommonSpawnOptions { + detached?: boolean | undefined; + } + interface SpawnOptionsWithoutStdio extends SpawnOptions { + stdio?: StdioPipeNamed | StdioPipe[] | undefined; + } + type StdioNull = "inherit" | "ignore" | Stream; + type StdioPipeNamed = "pipe" | "overlapped"; + type StdioPipe = undefined | null | StdioPipeNamed; + interface SpawnOptionsWithStdioTuple< + Stdin extends StdioNull | StdioPipe, + Stdout extends StdioNull | StdioPipe, + Stderr extends StdioNull | StdioPipe, + > extends SpawnOptions { + stdio: [Stdin, Stdout, Stderr]; + } + /** + * The `child_process.spawn()` method spawns a new process using the given `command`, with command-line arguments in `args`. If omitted, `args` defaults + * to an empty array. + * + * **If the `shell` option is enabled, do not pass unsanitized user input to this** + * **function. Any input containing shell metacharacters may be used to trigger** + * **arbitrary command execution.** + * + * A third argument may be used to specify additional options, with these defaults: + * + * ```js + * const defaults = { + * cwd: undefined, + * env: process.env, + * }; + * ``` + * + * Use `cwd` to specify the working directory from which the process is spawned. + * If not given, the default is to inherit the current working directory. If given, + * but the path does not exist, the child process emits an `ENOENT` error + * and exits immediately. `ENOENT` is also emitted when the command + * does not exist. + * + * Use `env` to specify environment variables that will be visible to the new + * process, the default is `process.env`. + * + * `undefined` values in `env` will be ignored. + * + * Example of running `ls -lh /usr`, capturing `stdout`, `stderr`, and the + * exit code: + * + * ```js + * import { spawn } from 'node:child_process'; + * const ls = spawn('ls', ['-lh', '/usr']); + * + * ls.stdout.on('data', (data) => { + * console.log(`stdout: ${data}`); + * }); + * + * ls.stderr.on('data', (data) => { + * console.error(`stderr: ${data}`); + * }); + * + * ls.on('close', (code) => { + * console.log(`child process exited with code ${code}`); + * }); + * ``` + * + * Example: A very elaborate way to run `ps ax | grep ssh` + * + * ```js + * import { spawn } from 'node:child_process'; + * const ps = spawn('ps', ['ax']); + * const grep = spawn('grep', ['ssh']); + * + * ps.stdout.on('data', (data) => { + * grep.stdin.write(data); + * }); + * + * ps.stderr.on('data', (data) => { + * console.error(`ps stderr: ${data}`); + * }); + * + * ps.on('close', (code) => { + * if (code !== 0) { + * console.log(`ps process exited with code ${code}`); + * } + * grep.stdin.end(); + * }); + * + * grep.stdout.on('data', (data) => { + * console.log(data.toString()); + * }); + * + * grep.stderr.on('data', (data) => { + * console.error(`grep stderr: ${data}`); + * }); + * + * grep.on('close', (code) => { + * if (code !== 0) { + * console.log(`grep process exited with code ${code}`); + * } + * }); + * ``` + * + * Example of checking for failed `spawn`: + * + * ```js + * import { spawn } from 'node:child_process'; + * const subprocess = spawn('bad_command'); + * + * subprocess.on('error', (err) => { + * console.error('Failed to start subprocess.'); + * }); + * ``` + * + * Certain platforms (macOS, Linux) will use the value of `argv[0]` for the process + * title while others (Windows, SunOS) will use `command`. + * + * Node.js overwrites `argv[0]` with `process.execPath` on startup, so `process.argv[0]` in a Node.js child process will not match the `argv0` parameter passed to `spawn` from the parent. Retrieve + * it with the `process.argv0` property instead. + * + * If the `signal` option is enabled, calling `.abort()` on the corresponding `AbortController` is similar to calling `.kill()` on the child process except + * the error passed to the callback will be an `AbortError`: + * + * ```js + * import { spawn } from 'node:child_process'; + * const controller = new AbortController(); + * const { signal } = controller; + * const grep = spawn('grep', ['ssh'], { signal }); + * grep.on('error', (err) => { + * // This will be called with err being an AbortError if the controller aborts + * }); + * controller.abort(); // Stops the child process + * ``` + * @since v0.1.90 + * @param command The command to run. + * @param args List of string arguments. + */ + function spawn(command: string, options?: SpawnOptionsWithoutStdio): ChildProcessWithoutNullStreams; + function spawn( + command: string, + options: SpawnOptionsWithStdioTuple, + ): ChildProcessByStdio; + function spawn( + command: string, + options: SpawnOptionsWithStdioTuple, + ): ChildProcessByStdio; + function spawn( + command: string, + options: SpawnOptionsWithStdioTuple, + ): ChildProcessByStdio; + function spawn( + command: string, + options: SpawnOptionsWithStdioTuple, + ): ChildProcessByStdio; + function spawn( + command: string, + options: SpawnOptionsWithStdioTuple, + ): ChildProcessByStdio; + function spawn( + command: string, + options: SpawnOptionsWithStdioTuple, + ): ChildProcessByStdio; + function spawn( + command: string, + options: SpawnOptionsWithStdioTuple, + ): ChildProcessByStdio; + function spawn( + command: string, + options: SpawnOptionsWithStdioTuple, + ): ChildProcessByStdio; + function spawn(command: string, options: SpawnOptions): ChildProcess; + // overloads of spawn with 'args' + function spawn( + command: string, + args?: readonly string[], + options?: SpawnOptionsWithoutStdio, + ): ChildProcessWithoutNullStreams; + function spawn( + command: string, + args: readonly string[], + options: SpawnOptionsWithStdioTuple, + ): ChildProcessByStdio; + function spawn( + command: string, + args: readonly string[], + options: SpawnOptionsWithStdioTuple, + ): ChildProcessByStdio; + function spawn( + command: string, + args: readonly string[], + options: SpawnOptionsWithStdioTuple, + ): ChildProcessByStdio; + function spawn( + command: string, + args: readonly string[], + options: SpawnOptionsWithStdioTuple, + ): ChildProcessByStdio; + function spawn( + command: string, + args: readonly string[], + options: SpawnOptionsWithStdioTuple, + ): ChildProcessByStdio; + function spawn( + command: string, + args: readonly string[], + options: SpawnOptionsWithStdioTuple, + ): ChildProcessByStdio; + function spawn( + command: string, + args: readonly string[], + options: SpawnOptionsWithStdioTuple, + ): ChildProcessByStdio; + function spawn( + command: string, + args: readonly string[], + options: SpawnOptionsWithStdioTuple, + ): ChildProcessByStdio; + function spawn(command: string, args: readonly string[], options: SpawnOptions): ChildProcess; + interface ExecOptions extends CommonOptions { + shell?: string | undefined; + signal?: AbortSignal | undefined; + maxBuffer?: number | undefined; + killSignal?: NodeJS.Signals | number | undefined; + encoding?: string | null | undefined; + } + interface ExecOptionsWithStringEncoding extends ExecOptions { + encoding?: BufferEncoding | undefined; + } + interface ExecOptionsWithBufferEncoding extends ExecOptions { + encoding: "buffer" | null; // specify `null`. + } + // TODO: Just Plain Wrong™ (see also nodejs/node#57392) + interface ExecException extends Error { + cmd?: string; + killed?: boolean; + code?: number; + signal?: NodeJS.Signals; + stdout?: string; + stderr?: string; + } + /** + * Spawns a shell then executes the `command` within that shell, buffering any + * generated output. The `command` string passed to the exec function is processed + * directly by the shell and special characters (vary based on [shell](https://en.wikipedia.org/wiki/List_of_command-line_interpreters)) + * need to be dealt with accordingly: + * + * ```js + * import { exec } from 'node:child_process'; + * + * exec('"/path/to/test file/test.sh" arg1 arg2'); + * // Double quotes are used so that the space in the path is not interpreted as + * // a delimiter of multiple arguments. + * + * exec('echo "The \\$HOME variable is $HOME"'); + * // The $HOME variable is escaped in the first instance, but not in the second. + * ``` + * + * **Never pass unsanitized user input to this function. Any input containing shell** + * **metacharacters may be used to trigger arbitrary command execution.** + * + * If a `callback` function is provided, it is called with the arguments `(error, stdout, stderr)`. On success, `error` will be `null`. On error, `error` will be an instance of `Error`. The + * `error.code` property will be + * the exit code of the process. By convention, any exit code other than `0` indicates an error. `error.signal` will be the signal that terminated the + * process. + * + * The `stdout` and `stderr` arguments passed to the callback will contain the + * stdout and stderr output of the child process. By default, Node.js will decode + * the output as UTF-8 and pass strings to the callback. The `encoding` option + * can be used to specify the character encoding used to decode the stdout and + * stderr output. If `encoding` is `'buffer'`, or an unrecognized character + * encoding, `Buffer` objects will be passed to the callback instead. + * + * ```js + * import { exec } from 'node:child_process'; + * exec('cat *.js missing_file | wc -l', (error, stdout, stderr) => { + * if (error) { + * console.error(`exec error: ${error}`); + * return; + * } + * console.log(`stdout: ${stdout}`); + * console.error(`stderr: ${stderr}`); + * }); + * ``` + * + * If `timeout` is greater than `0`, the parent will send the signal + * identified by the `killSignal` property (the default is `'SIGTERM'`) if the + * child runs longer than `timeout` milliseconds. + * + * Unlike the [`exec(3)`](http://man7.org/linux/man-pages/man3/exec.3.html) POSIX system call, `child_process.exec()` does not replace + * the existing process and uses a shell to execute the command. + * + * If this method is invoked as its `util.promisify()` ed version, it returns + * a `Promise` for an `Object` with `stdout` and `stderr` properties. The returned `ChildProcess` instance is attached to the `Promise` as a `child` property. In + * case of an error (including any error resulting in an exit code other than 0), a + * rejected promise is returned, with the same `error` object given in the + * callback, but with two additional properties `stdout` and `stderr`. + * + * ```js + * import util from 'node:util'; + * import child_process from 'node:child_process'; + * const exec = util.promisify(child_process.exec); + * + * async function lsExample() { + * const { stdout, stderr } = await exec('ls'); + * console.log('stdout:', stdout); + * console.error('stderr:', stderr); + * } + * lsExample(); + * ``` + * + * If the `signal` option is enabled, calling `.abort()` on the corresponding `AbortController` is similar to calling `.kill()` on the child process except + * the error passed to the callback will be an `AbortError`: + * + * ```js + * import { exec } from 'node:child_process'; + * const controller = new AbortController(); + * const { signal } = controller; + * const child = exec('grep ssh', { signal }, (error) => { + * console.error(error); // an AbortError + * }); + * controller.abort(); + * ``` + * @since v0.1.90 + * @param command The command to run, with space-separated arguments. + * @param callback called with the output when process terminates. + */ + function exec( + command: string, + callback?: (error: ExecException | null, stdout: string, stderr: string) => void, + ): ChildProcess; + // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`. + function exec( + command: string, + options: ExecOptionsWithBufferEncoding, + callback?: (error: ExecException | null, stdout: NonSharedBuffer, stderr: NonSharedBuffer) => void, + ): ChildProcess; + // `options` with well-known or absent `encoding` means stdout/stderr are definitely `string`. + function exec( + command: string, + options: ExecOptionsWithStringEncoding, + callback?: (error: ExecException | null, stdout: string, stderr: string) => void, + ): ChildProcess; + // fallback if nothing else matches. Worst case is always `string | Buffer`. + function exec( + command: string, + options: ExecOptions | undefined | null, + callback?: ( + error: ExecException | null, + stdout: string | NonSharedBuffer, + stderr: string | NonSharedBuffer, + ) => void, + ): ChildProcess; + interface PromiseWithChild extends Promise { + child: ChildProcess; + } + namespace exec { + function __promisify__(command: string): PromiseWithChild<{ + stdout: string; + stderr: string; + }>; + function __promisify__( + command: string, + options: ExecOptionsWithBufferEncoding, + ): PromiseWithChild<{ + stdout: NonSharedBuffer; + stderr: NonSharedBuffer; + }>; + function __promisify__( + command: string, + options: ExecOptionsWithStringEncoding, + ): PromiseWithChild<{ + stdout: string; + stderr: string; + }>; + function __promisify__( + command: string, + options: ExecOptions | undefined | null, + ): PromiseWithChild<{ + stdout: string | NonSharedBuffer; + stderr: string | NonSharedBuffer; + }>; + } + interface ExecFileOptions extends CommonOptions, Abortable { + maxBuffer?: number | undefined; + killSignal?: NodeJS.Signals | number | undefined; + windowsVerbatimArguments?: boolean | undefined; + shell?: boolean | string | undefined; + signal?: AbortSignal | undefined; + encoding?: string | null | undefined; + } + interface ExecFileOptionsWithStringEncoding extends ExecFileOptions { + encoding?: BufferEncoding | undefined; + } + interface ExecFileOptionsWithBufferEncoding extends ExecFileOptions { + encoding: "buffer" | null; + } + /** @deprecated Use `ExecFileOptions` instead. */ + interface ExecFileOptionsWithOtherEncoding extends ExecFileOptions {} + // TODO: execFile exceptions can take many forms... this accurately describes none of them + type ExecFileException = + & Omit + & Omit + & { code?: string | number | null }; + /** + * The `child_process.execFile()` function is similar to {@link exec} except that it does not spawn a shell by default. Rather, the specified + * executable `file` is spawned directly as a new process making it slightly more + * efficient than {@link exec}. + * + * The same options as {@link exec} are supported. Since a shell is + * not spawned, behaviors such as I/O redirection and file globbing are not + * supported. + * + * ```js + * import { execFile } from 'node:child_process'; + * const child = execFile('node', ['--version'], (error, stdout, stderr) => { + * if (error) { + * throw error; + * } + * console.log(stdout); + * }); + * ``` + * + * The `stdout` and `stderr` arguments passed to the callback will contain the + * stdout and stderr output of the child process. By default, Node.js will decode + * the output as UTF-8 and pass strings to the callback. The `encoding` option + * can be used to specify the character encoding used to decode the stdout and + * stderr output. If `encoding` is `'buffer'`, or an unrecognized character + * encoding, `Buffer` objects will be passed to the callback instead. + * + * If this method is invoked as its `util.promisify()` ed version, it returns + * a `Promise` for an `Object` with `stdout` and `stderr` properties. The returned `ChildProcess` instance is attached to the `Promise` as a `child` property. In + * case of an error (including any error resulting in an exit code other than 0), a + * rejected promise is returned, with the same `error` object given in the + * callback, but with two additional properties `stdout` and `stderr`. + * + * ```js + * import util from 'node:util'; + * const execFile = util.promisify(require('node:child_process').execFile); + * async function getVersion() { + * const { stdout } = await execFile('node', ['--version']); + * console.log(stdout); + * } + * getVersion(); + * ``` + * + * **If the `shell` option is enabled, do not pass unsanitized user input to this** + * **function. Any input containing shell metacharacters may be used to trigger** + * **arbitrary command execution.** + * + * If the `signal` option is enabled, calling `.abort()` on the corresponding `AbortController` is similar to calling `.kill()` on the child process except + * the error passed to the callback will be an `AbortError`: + * + * ```js + * import { execFile } from 'node:child_process'; + * const controller = new AbortController(); + * const { signal } = controller; + * const child = execFile('node', ['--version'], { signal }, (error) => { + * console.error(error); // an AbortError + * }); + * controller.abort(); + * ``` + * @since v0.1.91 + * @param file The name or path of the executable file to run. + * @param args List of string arguments. + * @param callback Called with the output when process terminates. + */ + // no `options` definitely means stdout/stderr are `string`. + function execFile( + file: string, + callback?: (error: ExecFileException | null, stdout: string, stderr: string) => void, + ): ChildProcess; + function execFile( + file: string, + args: readonly string[] | undefined | null, + callback?: (error: ExecFileException | null, stdout: string, stderr: string) => void, + ): ChildProcess; + // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`. + function execFile( + file: string, + options: ExecFileOptionsWithBufferEncoding, + callback?: (error: ExecFileException | null, stdout: NonSharedBuffer, stderr: NonSharedBuffer) => void, + ): ChildProcess; + function execFile( + file: string, + args: readonly string[] | undefined | null, + options: ExecFileOptionsWithBufferEncoding, + callback?: (error: ExecFileException | null, stdout: NonSharedBuffer, stderr: NonSharedBuffer) => void, + ): ChildProcess; + // `options` with well-known or absent `encoding` means stdout/stderr are definitely `string`. + function execFile( + file: string, + options: ExecFileOptionsWithStringEncoding, + callback?: (error: ExecFileException | null, stdout: string, stderr: string) => void, + ): ChildProcess; + function execFile( + file: string, + args: readonly string[] | undefined | null, + options: ExecFileOptionsWithStringEncoding, + callback?: (error: ExecFileException | null, stdout: string, stderr: string) => void, + ): ChildProcess; + // fallback if nothing else matches. Worst case is always `string | Buffer`. + function execFile( + file: string, + options: ExecFileOptions | undefined | null, + callback: + | (( + error: ExecFileException | null, + stdout: string | NonSharedBuffer, + stderr: string | NonSharedBuffer, + ) => void) + | undefined + | null, + ): ChildProcess; + function execFile( + file: string, + args: readonly string[] | undefined | null, + options: ExecFileOptions | undefined | null, + callback: + | (( + error: ExecFileException | null, + stdout: string | NonSharedBuffer, + stderr: string | NonSharedBuffer, + ) => void) + | undefined + | null, + ): ChildProcess; + namespace execFile { + function __promisify__(file: string): PromiseWithChild<{ + stdout: string; + stderr: string; + }>; + function __promisify__( + file: string, + args: readonly string[] | undefined | null, + ): PromiseWithChild<{ + stdout: string; + stderr: string; + }>; + function __promisify__( + file: string, + options: ExecFileOptionsWithBufferEncoding, + ): PromiseWithChild<{ + stdout: NonSharedBuffer; + stderr: NonSharedBuffer; + }>; + function __promisify__( + file: string, + args: readonly string[] | undefined | null, + options: ExecFileOptionsWithBufferEncoding, + ): PromiseWithChild<{ + stdout: NonSharedBuffer; + stderr: NonSharedBuffer; + }>; + function __promisify__( + file: string, + options: ExecFileOptionsWithStringEncoding, + ): PromiseWithChild<{ + stdout: string; + stderr: string; + }>; + function __promisify__( + file: string, + args: readonly string[] | undefined | null, + options: ExecFileOptionsWithStringEncoding, + ): PromiseWithChild<{ + stdout: string; + stderr: string; + }>; + function __promisify__( + file: string, + options: ExecFileOptions | undefined | null, + ): PromiseWithChild<{ + stdout: string | NonSharedBuffer; + stderr: string | NonSharedBuffer; + }>; + function __promisify__( + file: string, + args: readonly string[] | undefined | null, + options: ExecFileOptions | undefined | null, + ): PromiseWithChild<{ + stdout: string | NonSharedBuffer; + stderr: string | NonSharedBuffer; + }>; + } + interface ForkOptions extends ProcessEnvOptions, MessagingOptions, Abortable { + execPath?: string | undefined; + execArgv?: string[] | undefined; + silent?: boolean | undefined; + /** + * Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings. + * If passed as an array, the first element is used for `stdin`, the second for + * `stdout`, and the third for `stderr`. A fourth element can be used to + * specify the `stdio` behavior beyond the standard streams. See + * {@link ChildProcess.stdio} for more information. + * + * @default 'pipe' + */ + stdio?: StdioOptions | undefined; + detached?: boolean | undefined; + windowsVerbatimArguments?: boolean | undefined; + } + /** + * The `child_process.fork()` method is a special case of {@link spawn} used specifically to spawn new Node.js processes. + * Like {@link spawn}, a `ChildProcess` object is returned. The + * returned `ChildProcess` will have an additional communication channel + * built-in that allows messages to be passed back and forth between the parent and + * child. See `subprocess.send()` for details. + * + * Keep in mind that spawned Node.js child processes are + * independent of the parent with exception of the IPC communication channel + * that is established between the two. Each process has its own memory, with + * their own V8 instances. Because of the additional resource allocations + * required, spawning a large number of child Node.js processes is not + * recommended. + * + * By default, `child_process.fork()` will spawn new Node.js instances using the `process.execPath` of the parent process. The `execPath` property in the `options` object allows for an alternative + * execution path to be used. + * + * Node.js processes launched with a custom `execPath` will communicate with the + * parent process using the file descriptor (fd) identified using the + * environment variable `NODE_CHANNEL_FD` on the child process. + * + * Unlike the [`fork(2)`](http://man7.org/linux/man-pages/man2/fork.2.html) POSIX system call, `child_process.fork()` does not clone the + * current process. + * + * The `shell` option available in {@link spawn} is not supported by `child_process.fork()` and will be ignored if set. + * + * If the `signal` option is enabled, calling `.abort()` on the corresponding `AbortController` is similar to calling `.kill()` on the child process except + * the error passed to the callback will be an `AbortError`: + * + * ```js + * if (process.argv[2] === 'child') { + * setTimeout(() => { + * console.log(`Hello from ${process.argv[2]}!`); + * }, 1_000); + * } else { + * import { fork } from 'node:child_process'; + * const controller = new AbortController(); + * const { signal } = controller; + * const child = fork(__filename, ['child'], { signal }); + * child.on('error', (err) => { + * // This will be called with err being an AbortError if the controller aborts + * }); + * controller.abort(); // Stops the child process + * } + * ``` + * @since v0.5.0 + * @param modulePath The module to run in the child. + * @param args List of string arguments. + */ + function fork(modulePath: string | URL, options?: ForkOptions): ChildProcess; + function fork(modulePath: string | URL, args?: readonly string[], options?: ForkOptions): ChildProcess; + interface SpawnSyncOptions extends CommonSpawnOptions { + input?: string | NodeJS.ArrayBufferView | undefined; + maxBuffer?: number | undefined; + encoding?: BufferEncoding | "buffer" | null | undefined; + } + interface SpawnSyncOptionsWithStringEncoding extends SpawnSyncOptions { + encoding: BufferEncoding; + } + interface SpawnSyncOptionsWithBufferEncoding extends SpawnSyncOptions { + encoding?: "buffer" | null | undefined; + } + interface SpawnSyncReturns { + pid: number; + output: Array; + stdout: T; + stderr: T; + status: number | null; + signal: NodeJS.Signals | null; + error?: Error; + } + /** + * The `child_process.spawnSync()` method is generally identical to {@link spawn} with the exception that the function will not return + * until the child process has fully closed. When a timeout has been encountered + * and `killSignal` is sent, the method won't return until the process has + * completely exited. If the process intercepts and handles the `SIGTERM` signal + * and doesn't exit, the parent process will wait until the child process has + * exited. + * + * **If the `shell` option is enabled, do not pass unsanitized user input to this** + * **function. Any input containing shell metacharacters may be used to trigger** + * **arbitrary command execution.** + * @since v0.11.12 + * @param command The command to run. + * @param args List of string arguments. + */ + function spawnSync(command: string): SpawnSyncReturns; + function spawnSync(command: string, options: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns; + function spawnSync(command: string, options: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns; + function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns; + function spawnSync(command: string, args: readonly string[]): SpawnSyncReturns; + function spawnSync( + command: string, + args: readonly string[], + options: SpawnSyncOptionsWithStringEncoding, + ): SpawnSyncReturns; + function spawnSync( + command: string, + args: readonly string[], + options: SpawnSyncOptionsWithBufferEncoding, + ): SpawnSyncReturns; + function spawnSync( + command: string, + args?: readonly string[], + options?: SpawnSyncOptions, + ): SpawnSyncReturns; + interface CommonExecOptions extends CommonOptions { + input?: string | NodeJS.ArrayBufferView | undefined; + /** + * Can be set to 'pipe', 'inherit, or 'ignore', or an array of these strings. + * If passed as an array, the first element is used for `stdin`, the second for + * `stdout`, and the third for `stderr`. A fourth element can be used to + * specify the `stdio` behavior beyond the standard streams. See + * {@link ChildProcess.stdio} for more information. + * + * @default 'pipe' + */ + stdio?: StdioOptions | undefined; + killSignal?: NodeJS.Signals | number | undefined; + maxBuffer?: number | undefined; + encoding?: BufferEncoding | "buffer" | null | undefined; + } + interface ExecSyncOptions extends CommonExecOptions { + shell?: string | undefined; + } + interface ExecSyncOptionsWithStringEncoding extends ExecSyncOptions { + encoding: BufferEncoding; + } + interface ExecSyncOptionsWithBufferEncoding extends ExecSyncOptions { + encoding?: "buffer" | null | undefined; + } + /** + * The `child_process.execSync()` method is generally identical to {@link exec} with the exception that the method will not return + * until the child process has fully closed. When a timeout has been encountered + * and `killSignal` is sent, the method won't return until the process has + * completely exited. If the child process intercepts and handles the `SIGTERM` signal and doesn't exit, the parent process will wait until the child process + * has exited. + * + * If the process times out or has a non-zero exit code, this method will throw. + * The `Error` object will contain the entire result from {@link spawnSync}. + * + * **Never pass unsanitized user input to this function. Any input containing shell** + * **metacharacters may be used to trigger arbitrary command execution.** + * @since v0.11.12 + * @param command The command to run. + * @return The stdout from the command. + */ + function execSync(command: string): NonSharedBuffer; + function execSync(command: string, options: ExecSyncOptionsWithStringEncoding): string; + function execSync(command: string, options: ExecSyncOptionsWithBufferEncoding): NonSharedBuffer; + function execSync(command: string, options?: ExecSyncOptions): string | NonSharedBuffer; + interface ExecFileSyncOptions extends CommonExecOptions { + shell?: boolean | string | undefined; + } + interface ExecFileSyncOptionsWithStringEncoding extends ExecFileSyncOptions { + encoding: BufferEncoding; + } + interface ExecFileSyncOptionsWithBufferEncoding extends ExecFileSyncOptions { + encoding?: "buffer" | null | undefined; // specify `null`. + } + /** + * The `child_process.execFileSync()` method is generally identical to {@link execFile} with the exception that the method will not + * return until the child process has fully closed. When a timeout has been + * encountered and `killSignal` is sent, the method won't return until the process + * has completely exited. + * + * If the child process intercepts and handles the `SIGTERM` signal and + * does not exit, the parent process will still wait until the child process has + * exited. + * + * If the process times out or has a non-zero exit code, this method will throw an `Error` that will include the full result of the underlying {@link spawnSync}. + * + * **If the `shell` option is enabled, do not pass unsanitized user input to this** + * **function. Any input containing shell metacharacters may be used to trigger** + * **arbitrary command execution.** + * @since v0.11.12 + * @param file The name or path of the executable file to run. + * @param args List of string arguments. + * @return The stdout from the command. + */ + function execFileSync(file: string): NonSharedBuffer; + function execFileSync(file: string, options: ExecFileSyncOptionsWithStringEncoding): string; + function execFileSync(file: string, options: ExecFileSyncOptionsWithBufferEncoding): NonSharedBuffer; + function execFileSync(file: string, options?: ExecFileSyncOptions): string | NonSharedBuffer; + function execFileSync(file: string, args: readonly string[]): NonSharedBuffer; + function execFileSync( + file: string, + args: readonly string[], + options: ExecFileSyncOptionsWithStringEncoding, + ): string; + function execFileSync( + file: string, + args: readonly string[], + options: ExecFileSyncOptionsWithBufferEncoding, + ): NonSharedBuffer; + function execFileSync( + file: string, + args?: readonly string[], + options?: ExecFileSyncOptions, + ): string | NonSharedBuffer; +} +declare module "node:child_process" { + export * from "child_process"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/cluster.d.ts b/backend/node_modules/httpx/node_modules/@types/node/cluster.d.ts new file mode 100644 index 0000000..42b21bf --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/cluster.d.ts @@ -0,0 +1,577 @@ +/** + * Clusters of Node.js processes can be used to run multiple instances of Node.js + * that can distribute workloads among their application threads. When process isolation + * is not needed, use the [`worker_threads`](https://nodejs.org/docs/latest-v20.x/api/worker_threads.html) + * module instead, which allows running multiple application threads within a single Node.js instance. + * + * The cluster module allows easy creation of child processes that all share + * server ports. + * + * ```js + * import cluster from 'node:cluster'; + * import http from 'node:http'; + * import { availableParallelism } from 'node:os'; + * import process from 'node:process'; + * + * const numCPUs = availableParallelism(); + * + * if (cluster.isPrimary) { + * console.log(`Primary ${process.pid} is running`); + * + * // Fork workers. + * for (let i = 0; i < numCPUs; i++) { + * cluster.fork(); + * } + * + * cluster.on('exit', (worker, code, signal) => { + * console.log(`worker ${worker.process.pid} died`); + * }); + * } else { + * // Workers can share any TCP connection + * // In this case it is an HTTP server + * http.createServer((req, res) => { + * res.writeHead(200); + * res.end('hello world\n'); + * }).listen(8000); + * + * console.log(`Worker ${process.pid} started`); + * } + * ``` + * + * Running Node.js will now share port 8000 between the workers: + * + * ```console + * $ node server.js + * Primary 3596 is running + * Worker 4324 started + * Worker 4520 started + * Worker 6056 started + * Worker 5644 started + * ``` + * + * On Windows, it is not yet possible to set up a named pipe server in a worker. + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/cluster.js) + */ +declare module "cluster" { + import * as child from "node:child_process"; + import EventEmitter = require("node:events"); + import * as net from "node:net"; + type SerializationType = "json" | "advanced"; + export interface ClusterSettings { + /** + * List of string arguments passed to the Node.js executable. + * @default process.execArgv + */ + execArgv?: string[] | undefined; + /** + * File path to worker file. + * @default process.argv[1] + */ + exec?: string | undefined; + /** + * String arguments passed to worker. + * @default process.argv.slice(2) + */ + args?: readonly string[] | undefined; + /** + * Whether or not to send output to parent's stdio. + * @default false + */ + silent?: boolean | undefined; + /** + * Configures the stdio of forked processes. Because the cluster module relies on IPC to function, this configuration must + * contain an `'ipc'` entry. When this option is provided, it overrides `silent`. See [`child_prcess.spawn()`](https://nodejs.org/docs/latest-v20.x/api/child_process.html#child_processspawncommand-args-options)'s + * [`stdio`](https://nodejs.org/docs/latest-v20.x/api/child_process.html#optionsstdio). + */ + stdio?: any[] | undefined; + /** + * Sets the user identity of the process. (See [`setuid(2)`](https://man7.org/linux/man-pages/man2/setuid.2.html).) + */ + uid?: number | undefined; + /** + * Sets the group identity of the process. (See [`setgid(2)`](https://man7.org/linux/man-pages/man2/setgid.2.html).) + */ + gid?: number | undefined; + /** + * Sets inspector port of worker. This can be a number, or a function that takes no arguments and returns a number. + * By default each worker gets its own port, incremented from the primary's `process.debugPort`. + */ + inspectPort?: number | (() => number) | undefined; + /** + * Specify the kind of serialization used for sending messages between processes. Possible values are `'json'` and `'advanced'`. + * See [Advanced serialization for `child_process`](https://nodejs.org/docs/latest-v20.x/api/child_process.html#advanced-serialization) for more details. + * @default false + */ + serialization?: SerializationType | undefined; + /** + * Current working directory of the worker process. + * @default undefined (inherits from parent process) + */ + cwd?: string | undefined; + /** + * Hide the forked processes console window that would normally be created on Windows systems. + * @default false + */ + windowsHide?: boolean | undefined; + } + export interface Address { + address: string; + port: number; + /** + * The `addressType` is one of: + * + * * `4` (TCPv4) + * * `6` (TCPv6) + * * `-1` (Unix domain socket) + * * `'udp4'` or `'udp6'` (UDPv4 or UDPv6) + */ + addressType: 4 | 6 | -1 | "udp4" | "udp6"; + } + /** + * A `Worker` object contains all public information and method about a worker. + * In the primary it can be obtained using `cluster.workers`. In a worker + * it can be obtained using `cluster.worker`. + * @since v0.7.0 + */ + export class Worker extends EventEmitter { + /** + * Each new worker is given its own unique id, this id is stored in the `id`. + * + * While a worker is alive, this is the key that indexes it in `cluster.workers`. + * @since v0.8.0 + */ + id: number; + /** + * All workers are created using [`child_process.fork()`](https://nodejs.org/docs/latest-v20.x/api/child_process.html#child_processforkmodulepath-args-options), the returned object + * from this function is stored as `.process`. In a worker, the global `process` is stored. + * + * See: [Child Process module](https://nodejs.org/docs/latest-v20.x/api/child_process.html#child_processforkmodulepath-args-options). + * + * Workers will call `process.exit(0)` if the `'disconnect'` event occurs + * on `process` and `.exitedAfterDisconnect` is not `true`. This protects against + * accidental disconnection. + * @since v0.7.0 + */ + process: child.ChildProcess; + /** + * Send a message to a worker or primary, optionally with a handle. + * + * In the primary, this sends a message to a specific worker. It is identical to [`ChildProcess.send()`](https://nodejs.org/docs/latest-v20.x/api/child_process.html#subprocesssendmessage-sendhandle-options-callback). + * + * In a worker, this sends a message to the primary. It is identical to `process.send()`. + * + * This example will echo back all messages from the primary: + * + * ```js + * if (cluster.isPrimary) { + * const worker = cluster.fork(); + * worker.send('hi there'); + * + * } else if (cluster.isWorker) { + * process.on('message', (msg) => { + * process.send(msg); + * }); + * } + * ``` + * @since v0.7.0 + * @param options The `options` argument, if present, is an object used to parameterize the sending of certain types of handles. + */ + send(message: child.Serializable, callback?: (error: Error | null) => void): boolean; + send( + message: child.Serializable, + sendHandle: child.SendHandle, + callback?: (error: Error | null) => void, + ): boolean; + send( + message: child.Serializable, + sendHandle: child.SendHandle, + options?: child.MessageOptions, + callback?: (error: Error | null) => void, + ): boolean; + /** + * This function will kill the worker. In the primary worker, it does this by + * disconnecting the `worker.process`, and once disconnected, killing with `signal`. In the worker, it does it by killing the process with `signal`. + * + * The `kill()` function kills the worker process without waiting for a graceful + * disconnect, it has the same behavior as `worker.process.kill()`. + * + * This method is aliased as `worker.destroy()` for backwards compatibility. + * + * In a worker, `process.kill()` exists, but it is not this function; + * it is [`kill()`](https://nodejs.org/docs/latest-v20.x/api/process.html#processkillpid-signal). + * @since v0.9.12 + * @param [signal='SIGTERM'] Name of the kill signal to send to the worker process. + */ + kill(signal?: string): void; + destroy(signal?: string): void; + /** + * In a worker, this function will close all servers, wait for the `'close'` event + * on those servers, and then disconnect the IPC channel. + * + * In the primary, an internal message is sent to the worker causing it to call `.disconnect()` on itself. + * + * Causes `.exitedAfterDisconnect` to be set. + * + * After a server is closed, it will no longer accept new connections, + * but connections may be accepted by any other listening worker. Existing + * connections will be allowed to close as usual. When no more connections exist, + * see `server.close()`, the IPC channel to the worker will close allowing it + * to die gracefully. + * + * The above applies _only_ to server connections, client connections are not + * automatically closed by workers, and disconnect does not wait for them to close + * before exiting. + * + * In a worker, `process.disconnect` exists, but it is not this function; + * it is `disconnect()`. + * + * Because long living server connections may block workers from disconnecting, it + * may be useful to send a message, so application specific actions may be taken to + * close them. It also may be useful to implement a timeout, killing a worker if + * the `'disconnect'` event has not been emitted after some time. + * + * ```js + * import net from 'node:net'; + * if (cluster.isPrimary) { + * const worker = cluster.fork(); + * let timeout; + * + * worker.on('listening', (address) => { + * worker.send('shutdown'); + * worker.disconnect(); + * timeout = setTimeout(() => { + * worker.kill(); + * }, 2000); + * }); + * + * worker.on('disconnect', () => { + * clearTimeout(timeout); + * }); + * + * } else if (cluster.isWorker) { + * const server = net.createServer((socket) => { + * // Connections never end + * }); + * + * server.listen(8000); + * + * process.on('message', (msg) => { + * if (msg === 'shutdown') { + * // Initiate graceful close of any connections to server + * } + * }); + * } + * ``` + * @since v0.7.7 + * @return A reference to `worker`. + */ + disconnect(): this; + /** + * This function returns `true` if the worker is connected to its primary via its + * IPC channel, `false` otherwise. A worker is connected to its primary after it + * has been created. It is disconnected after the `'disconnect'` event is emitted. + * @since v0.11.14 + */ + isConnected(): boolean; + /** + * This function returns `true` if the worker's process has terminated (either + * because of exiting or being signaled). Otherwise, it returns `false`. + * + * ```js + * import cluster from 'node:cluster'; + * import http from 'node:http'; + * import { availableParallelism } from 'node:os'; + * import process from 'node:process'; + * + * const numCPUs = availableParallelism(); + * + * if (cluster.isPrimary) { + * console.log(`Primary ${process.pid} is running`); + * + * // Fork workers. + * for (let i = 0; i < numCPUs; i++) { + * cluster.fork(); + * } + * + * cluster.on('fork', (worker) => { + * console.log('worker is dead:', worker.isDead()); + * }); + * + * cluster.on('exit', (worker, code, signal) => { + * console.log('worker is dead:', worker.isDead()); + * }); + * } else { + * // Workers can share any TCP connection. In this case, it is an HTTP server. + * http.createServer((req, res) => { + * res.writeHead(200); + * res.end(`Current process\n ${process.pid}`); + * process.kill(process.pid); + * }).listen(8000); + * } + * ``` + * @since v0.11.14 + */ + isDead(): boolean; + /** + * This property is `true` if the worker exited due to `.disconnect()`. + * If the worker exited any other way, it is `false`. If the + * worker has not exited, it is `undefined`. + * + * The boolean `worker.exitedAfterDisconnect` allows distinguishing between + * voluntary and accidental exit, the primary may choose not to respawn a worker + * based on this value. + * + * ```js + * cluster.on('exit', (worker, code, signal) => { + * if (worker.exitedAfterDisconnect === true) { + * console.log('Oh, it was just voluntary – no need to worry'); + * } + * }); + * + * // kill worker + * worker.kill(); + * ``` + * @since v6.0.0 + */ + exitedAfterDisconnect: boolean; + /** + * events.EventEmitter + * 1. disconnect + * 2. error + * 3. exit + * 4. listening + * 5. message + * 6. online + */ + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: "disconnect", listener: () => void): this; + addListener(event: "error", listener: (error: Error) => void): this; + addListener(event: "exit", listener: (code: number, signal: string) => void): this; + addListener(event: "listening", listener: (address: Address) => void): this; + addListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. + addListener(event: "online", listener: () => void): this; + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: "disconnect"): boolean; + emit(event: "error", error: Error): boolean; + emit(event: "exit", code: number, signal: string): boolean; + emit(event: "listening", address: Address): boolean; + emit(event: "message", message: any, handle: net.Socket | net.Server): boolean; + emit(event: "online"): boolean; + on(event: string, listener: (...args: any[]) => void): this; + on(event: "disconnect", listener: () => void): this; + on(event: "error", listener: (error: Error) => void): this; + on(event: "exit", listener: (code: number, signal: string) => void): this; + on(event: "listening", listener: (address: Address) => void): this; + on(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. + on(event: "online", listener: () => void): this; + once(event: string, listener: (...args: any[]) => void): this; + once(event: "disconnect", listener: () => void): this; + once(event: "error", listener: (error: Error) => void): this; + once(event: "exit", listener: (code: number, signal: string) => void): this; + once(event: "listening", listener: (address: Address) => void): this; + once(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. + once(event: "online", listener: () => void): this; + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: "disconnect", listener: () => void): this; + prependListener(event: "error", listener: (error: Error) => void): this; + prependListener(event: "exit", listener: (code: number, signal: string) => void): this; + prependListener(event: "listening", listener: (address: Address) => void): this; + prependListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. + prependListener(event: "online", listener: () => void): this; + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: "disconnect", listener: () => void): this; + prependOnceListener(event: "error", listener: (error: Error) => void): this; + prependOnceListener(event: "exit", listener: (code: number, signal: string) => void): this; + prependOnceListener(event: "listening", listener: (address: Address) => void): this; + prependOnceListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. + prependOnceListener(event: "online", listener: () => void): this; + } + export interface Cluster extends EventEmitter { + disconnect(callback?: () => void): void; + /** + * Spawn a new worker process. + * + * This can only be called from the primary process. + * @param env Key/value pairs to add to worker process environment. + * @since v0.6.0 + */ + fork(env?: any): Worker; + /** @deprecated since v16.0.0 - use isPrimary. */ + readonly isMaster: boolean; + /** + * True if the process is a primary. This is determined by the `process.env.NODE_UNIQUE_ID`. If `process.env.NODE_UNIQUE_ID` + * is undefined, then `isPrimary` is `true`. + * @since v16.0.0 + */ + readonly isPrimary: boolean; + /** + * True if the process is not a primary (it is the negation of `cluster.isPrimary`). + * @since v0.6.0 + */ + readonly isWorker: boolean; + /** + * The scheduling policy, either `cluster.SCHED_RR` for round-robin or `cluster.SCHED_NONE` to leave it to the operating system. This is a + * global setting and effectively frozen once either the first worker is spawned, or [`.setupPrimary()`](https://nodejs.org/docs/latest-v20.x/api/cluster.html#clustersetupprimarysettings) + * is called, whichever comes first. + * + * `SCHED_RR` is the default on all operating systems except Windows. Windows will change to `SCHED_RR` once libuv is able to effectively distribute + * IOCP handles without incurring a large performance hit. + * + * `cluster.schedulingPolicy` can also be set through the `NODE_CLUSTER_SCHED_POLICY` environment variable. Valid values are `'rr'` and `'none'`. + * @since v0.11.2 + */ + schedulingPolicy: number; + /** + * After calling [`.setupPrimary()`](https://nodejs.org/docs/latest-v20.x/api/cluster.html#clustersetupprimarysettings) + * (or [`.fork()`](https://nodejs.org/docs/latest-v20.x/api/cluster.html#clusterforkenv)) this settings object will contain + * the settings, including the default values. + * + * This object is not intended to be changed or set manually. + * @since v0.7.1 + */ + readonly settings: ClusterSettings; + /** @deprecated since v16.0.0 - use [`.setupPrimary()`](https://nodejs.org/docs/latest-v20.x/api/cluster.html#clustersetupprimarysettings) instead. */ + setupMaster(settings?: ClusterSettings): void; + /** + * `setupPrimary` is used to change the default 'fork' behavior. Once called, the settings will be present in `cluster.settings`. + * + * Any settings changes only affect future calls to [`.fork()`](https://nodejs.org/docs/latest-v20.x/api/cluster.html#clusterforkenv) + * and have no effect on workers that are already running. + * + * The only attribute of a worker that cannot be set via `.setupPrimary()` is the `env` passed to + * [`.fork()`](https://nodejs.org/docs/latest-v20.x/api/cluster.html#clusterforkenv). + * + * The defaults above apply to the first call only; the defaults for later calls are the current values at the time of + * `cluster.setupPrimary()` is called. + * + * ```js + * import cluster from 'node:cluster'; + * + * cluster.setupPrimary({ + * exec: 'worker.js', + * args: ['--use', 'https'], + * silent: true, + * }); + * cluster.fork(); // https worker + * cluster.setupPrimary({ + * exec: 'worker.js', + * args: ['--use', 'http'], + * }); + * cluster.fork(); // http worker + * ``` + * + * This can only be called from the primary process. + * @since v16.0.0 + */ + setupPrimary(settings?: ClusterSettings): void; + /** + * A reference to the current worker object. Not available in the primary process. + * + * ```js + * import cluster from 'node:cluster'; + * + * if (cluster.isPrimary) { + * console.log('I am primary'); + * cluster.fork(); + * cluster.fork(); + * } else if (cluster.isWorker) { + * console.log(`I am worker #${cluster.worker.id}`); + * } + * ``` + * @since v0.7.0 + */ + readonly worker?: Worker; + /** + * A hash that stores the active worker objects, keyed by `id` field. This makes it easy to loop through all the workers. It is only available in the primary process. + * + * A worker is removed from `cluster.workers` after the worker has disconnected _and_ exited. The order between these two events cannot be determined in advance. However, it + * is guaranteed that the removal from the `cluster.workers` list happens before the last `'disconnect'` or `'exit'` event is emitted. + * + * ```js + * import cluster from 'node:cluster'; + * + * for (const worker of Object.values(cluster.workers)) { + * worker.send('big announcement to all workers'); + * } + * ``` + * @since v0.7.0 + */ + readonly workers?: NodeJS.Dict; + readonly SCHED_NONE: number; + readonly SCHED_RR: number; + /** + * events.EventEmitter + * 1. disconnect + * 2. exit + * 3. fork + * 4. listening + * 5. message + * 6. online + * 7. setup + */ + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: "disconnect", listener: (worker: Worker) => void): this; + addListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this; + addListener(event: "fork", listener: (worker: Worker) => void): this; + addListener(event: "listening", listener: (worker: Worker, address: Address) => void): this; + addListener( + event: "message", + listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void, + ): this; // the handle is a net.Socket or net.Server object, or undefined. + addListener(event: "online", listener: (worker: Worker) => void): this; + addListener(event: "setup", listener: (settings: ClusterSettings) => void): this; + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: "disconnect", worker: Worker): boolean; + emit(event: "exit", worker: Worker, code: number, signal: string): boolean; + emit(event: "fork", worker: Worker): boolean; + emit(event: "listening", worker: Worker, address: Address): boolean; + emit(event: "message", worker: Worker, message: any, handle: net.Socket | net.Server): boolean; + emit(event: "online", worker: Worker): boolean; + emit(event: "setup", settings: ClusterSettings): boolean; + on(event: string, listener: (...args: any[]) => void): this; + on(event: "disconnect", listener: (worker: Worker) => void): this; + on(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this; + on(event: "fork", listener: (worker: Worker) => void): this; + on(event: "listening", listener: (worker: Worker, address: Address) => void): this; + on(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. + on(event: "online", listener: (worker: Worker) => void): this; + on(event: "setup", listener: (settings: ClusterSettings) => void): this; + once(event: string, listener: (...args: any[]) => void): this; + once(event: "disconnect", listener: (worker: Worker) => void): this; + once(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this; + once(event: "fork", listener: (worker: Worker) => void): this; + once(event: "listening", listener: (worker: Worker, address: Address) => void): this; + once(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. + once(event: "online", listener: (worker: Worker) => void): this; + once(event: "setup", listener: (settings: ClusterSettings) => void): this; + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: "disconnect", listener: (worker: Worker) => void): this; + prependListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this; + prependListener(event: "fork", listener: (worker: Worker) => void): this; + prependListener(event: "listening", listener: (worker: Worker, address: Address) => void): this; + prependListener( + event: "message", + listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void, + ): this; + prependListener(event: "online", listener: (worker: Worker) => void): this; + prependListener(event: "setup", listener: (settings: ClusterSettings) => void): this; + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: "disconnect", listener: (worker: Worker) => void): this; + prependOnceListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this; + prependOnceListener(event: "fork", listener: (worker: Worker) => void): this; + prependOnceListener(event: "listening", listener: (worker: Worker, address: Address) => void): this; + // the handle is a net.Socket or net.Server object, or undefined. + prependOnceListener( + event: "message", + listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void, + ): this; + prependOnceListener(event: "online", listener: (worker: Worker) => void): this; + prependOnceListener(event: "setup", listener: (settings: ClusterSettings) => void): this; + } + const cluster: Cluster; + export default cluster; +} +declare module "node:cluster" { + export * from "cluster"; + export { default as default } from "cluster"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/compatibility/disposable.d.ts b/backend/node_modules/httpx/node_modules/@types/node/compatibility/disposable.d.ts new file mode 100644 index 0000000..5fff612 --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/compatibility/disposable.d.ts @@ -0,0 +1,16 @@ +// Polyfills for the explicit resource management types added in TypeScript 5.2. +// TODO: remove once this package no longer supports TS 5.1, and replace with a +// to TypeScript's disposable library in index.d.ts. + +interface SymbolConstructor { + readonly dispose: unique symbol; + readonly asyncDispose: unique symbol; +} + +interface Disposable { + [Symbol.dispose](): void; +} + +interface AsyncDisposable { + [Symbol.asyncDispose](): PromiseLike; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/compatibility/index.d.ts b/backend/node_modules/httpx/node_modules/@types/node/compatibility/index.d.ts new file mode 100644 index 0000000..5c41e37 --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/compatibility/index.d.ts @@ -0,0 +1,9 @@ +// Declaration files in this directory contain types relating to TypeScript library features +// that are not included in all TypeScript versions supported by DefinitelyTyped, but +// which can be made backwards-compatible without needing `typesVersions`. +// If adding declarations to this directory, please specify which versions of TypeScript require them, +// so that they can be removed when no longer needed. + +/// +/// +/// diff --git a/backend/node_modules/httpx/node_modules/@types/node/compatibility/indexable.d.ts b/backend/node_modules/httpx/node_modules/@types/node/compatibility/indexable.d.ts new file mode 100644 index 0000000..262ba09 --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/compatibility/indexable.d.ts @@ -0,0 +1,20 @@ +// Polyfill for ES2022's .at() method on string/array prototypes, added to TypeScript in 4.6. + +interface RelativeIndexable { + at(index: number): T | undefined; +} + +interface String extends RelativeIndexable {} +interface Array extends RelativeIndexable {} +interface ReadonlyArray extends RelativeIndexable {} +interface Int8Array extends RelativeIndexable {} +interface Uint8Array extends RelativeIndexable {} +interface Uint8ClampedArray extends RelativeIndexable {} +interface Int16Array extends RelativeIndexable {} +interface Uint16Array extends RelativeIndexable {} +interface Int32Array extends RelativeIndexable {} +interface Uint32Array extends RelativeIndexable {} +interface Float32Array extends RelativeIndexable {} +interface Float64Array extends RelativeIndexable {} +interface BigInt64Array extends RelativeIndexable {} +interface BigUint64Array extends RelativeIndexable {} diff --git a/backend/node_modules/httpx/node_modules/@types/node/compatibility/iterators.d.ts b/backend/node_modules/httpx/node_modules/@types/node/compatibility/iterators.d.ts new file mode 100644 index 0000000..156e785 --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/compatibility/iterators.d.ts @@ -0,0 +1,21 @@ +// Backwards-compatible iterator interfaces, augmented with iterator helper methods by lib.esnext.iterator in TypeScript 5.6. +// The IterableIterator interface does not contain these methods, which creates assignability issues in places where IteratorObjects +// are expected (eg. DOM-compatible APIs) if lib.esnext.iterator is loaded. +// Also ensures that iterators returned by the Node API, which inherit from Iterator.prototype, correctly expose the iterator helper methods +// if lib.esnext.iterator is loaded. +// TODO: remove once this package no longer supports TS 5.5, and replace NodeJS.BuiltinIteratorReturn with BuiltinIteratorReturn. + +// Placeholders for TS <5.6 +interface IteratorObject {} +interface AsyncIteratorObject {} + +declare namespace NodeJS { + // Populate iterator methods for TS <5.6 + interface Iterator extends globalThis.Iterator {} + interface AsyncIterator extends globalThis.AsyncIterator {} + + // Polyfill for TS 5.6's instrinsic BuiltinIteratorReturn type, required for DOM-compatible iterators + type BuiltinIteratorReturn = ReturnType extends + globalThis.Iterator ? TReturn + : any; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/console.d.ts b/backend/node_modules/httpx/node_modules/@types/node/console.d.ts new file mode 100644 index 0000000..206e3fc --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/console.d.ts @@ -0,0 +1,452 @@ +/** + * The `node:console` module provides a simple debugging console that is similar to + * the JavaScript console mechanism provided by web browsers. + * + * The module exports two specific components: + * + * * A `Console` class with methods such as `console.log()`, `console.error()`, and `console.warn()` that can be used to write to any Node.js stream. + * * A global `console` instance configured to write to [`process.stdout`](https://nodejs.org/docs/latest-v20.x/api/process.html#processstdout) and + * [`process.stderr`](https://nodejs.org/docs/latest-v20.x/api/process.html#processstderr). The global `console` can be used without importing the `node:console` module. + * + * _**Warning**_: The global console object's methods are neither consistently + * synchronous like the browser APIs they resemble, nor are they consistently + * asynchronous like all other Node.js streams. See the [`note on process I/O`](https://nodejs.org/docs/latest-v20.x/api/process.html#a-note-on-process-io) for + * more information. + * + * Example using the global `console`: + * + * ```js + * console.log('hello world'); + * // Prints: hello world, to stdout + * console.log('hello %s', 'world'); + * // Prints: hello world, to stdout + * console.error(new Error('Whoops, something bad happened')); + * // Prints error message and stack trace to stderr: + * // Error: Whoops, something bad happened + * // at [eval]:5:15 + * // at Script.runInThisContext (node:vm:132:18) + * // at Object.runInThisContext (node:vm:309:38) + * // at node:internal/process/execution:77:19 + * // at [eval]-wrapper:6:22 + * // at evalScript (node:internal/process/execution:76:60) + * // at node:internal/main/eval_string:23:3 + * + * const name = 'Will Robinson'; + * console.warn(`Danger ${name}! Danger!`); + * // Prints: Danger Will Robinson! Danger!, to stderr + * ``` + * + * Example using the `Console` class: + * + * ```js + * const out = getStreamSomehow(); + * const err = getStreamSomehow(); + * const myConsole = new console.Console(out, err); + * + * myConsole.log('hello world'); + * // Prints: hello world, to out + * myConsole.log('hello %s', 'world'); + * // Prints: hello world, to out + * myConsole.error(new Error('Whoops, something bad happened')); + * // Prints: [Error: Whoops, something bad happened], to err + * + * const name = 'Will Robinson'; + * myConsole.warn(`Danger ${name}! Danger!`); + * // Prints: Danger Will Robinson! Danger!, to err + * ``` + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/console.js) + */ +declare module "console" { + import console = require("node:console"); + export = console; +} +declare module "node:console" { + import { InspectOptions } from "node:util"; + global { + // This needs to be global to avoid TS2403 in case lib.dom.d.ts is present in the same build + interface Console { + Console: console.ConsoleConstructor; + /** + * `console.assert()` writes a message if `value` is [falsy](https://developer.mozilla.org/en-US/docs/Glossary/Falsy) or omitted. It only + * writes a message and does not otherwise affect execution. The output always + * starts with `"Assertion failed"`. If provided, `message` is formatted using + * [`util.format()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilformatformat-args). + * + * If `value` is [truthy](https://developer.mozilla.org/en-US/docs/Glossary/Truthy), nothing happens. + * + * ```js + * console.assert(true, 'does nothing'); + * + * console.assert(false, 'Whoops %s work', 'didn\'t'); + * // Assertion failed: Whoops didn't work + * + * console.assert(); + * // Assertion failed + * ``` + * @since v0.1.101 + * @param value The value tested for being truthy. + * @param message All arguments besides `value` are used as error message. + */ + assert(value: any, message?: string, ...optionalParams: any[]): void; + /** + * When `stdout` is a TTY, calling `console.clear()` will attempt to clear the + * TTY. When `stdout` is not a TTY, this method does nothing. + * + * The specific operation of `console.clear()` can vary across operating systems + * and terminal types. For most Linux operating systems, `console.clear()` operates similarly to the `clear` shell command. On Windows, `console.clear()` will clear only the output in the + * current terminal viewport for the Node.js + * binary. + * @since v8.3.0 + */ + clear(): void; + /** + * Maintains an internal counter specific to `label` and outputs to `stdout` the + * number of times `console.count()` has been called with the given `label`. + * + * ```js + * > console.count() + * default: 1 + * undefined + * > console.count('default') + * default: 2 + * undefined + * > console.count('abc') + * abc: 1 + * undefined + * > console.count('xyz') + * xyz: 1 + * undefined + * > console.count('abc') + * abc: 2 + * undefined + * > console.count() + * default: 3 + * undefined + * > + * ``` + * @since v8.3.0 + * @param [label='default'] The display label for the counter. + */ + count(label?: string): void; + /** + * Resets the internal counter specific to `label`. + * + * ```js + * > console.count('abc'); + * abc: 1 + * undefined + * > console.countReset('abc'); + * undefined + * > console.count('abc'); + * abc: 1 + * undefined + * > + * ``` + * @since v8.3.0 + * @param [label='default'] The display label for the counter. + */ + countReset(label?: string): void; + /** + * The `console.debug()` function is an alias for {@link log}. + * @since v8.0.0 + */ + debug(message?: any, ...optionalParams: any[]): void; + /** + * Uses [`util.inspect()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilinspectobject-options) on `obj` and prints the resulting string to `stdout`. + * This function bypasses any custom `inspect()` function defined on `obj`. + * @since v0.1.101 + */ + dir(obj: any, options?: InspectOptions): void; + /** + * This method calls `console.log()` passing it the arguments received. + * This method does not produce any XML formatting. + * @since v8.0.0 + */ + dirxml(...data: any[]): void; + /** + * Prints to `stderr` with newline. Multiple arguments can be passed, with the + * first used as the primary message and all additional used as substitution + * values similar to [`printf(3)`](http://man7.org/linux/man-pages/man3/printf.3.html) + * (the arguments are all passed to [`util.format()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilformatformat-args)). + * + * ```js + * const code = 5; + * console.error('error #%d', code); + * // Prints: error #5, to stderr + * console.error('error', code); + * // Prints: error 5, to stderr + * ``` + * + * If formatting elements (e.g. `%d`) are not found in the first string then + * [`util.inspect()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilinspectobject-options) is called on each argument and the + * resulting string values are concatenated. See [`util.format()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilformatformat-args) + * for more information. + * @since v0.1.100 + */ + error(message?: any, ...optionalParams: any[]): void; + /** + * Increases indentation of subsequent lines by spaces for `groupIndentation` length. + * + * If one or more `label`s are provided, those are printed first without the + * additional indentation. + * @since v8.5.0 + */ + group(...label: any[]): void; + /** + * An alias for {@link group}. + * @since v8.5.0 + */ + groupCollapsed(...label: any[]): void; + /** + * Decreases indentation of subsequent lines by spaces for `groupIndentation` length. + * @since v8.5.0 + */ + groupEnd(): void; + /** + * The `console.info()` function is an alias for {@link log}. + * @since v0.1.100 + */ + info(message?: any, ...optionalParams: any[]): void; + /** + * Prints to `stdout` with newline. Multiple arguments can be passed, with the + * first used as the primary message and all additional used as substitution + * values similar to [`printf(3)`](http://man7.org/linux/man-pages/man3/printf.3.html) + * (the arguments are all passed to [`util.format()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilformatformat-args)). + * + * ```js + * const count = 5; + * console.log('count: %d', count); + * // Prints: count: 5, to stdout + * console.log('count:', count); + * // Prints: count: 5, to stdout + * ``` + * + * See [`util.format()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilformatformat-args) for more information. + * @since v0.1.100 + */ + log(message?: any, ...optionalParams: any[]): void; + /** + * Try to construct a table with the columns of the properties of `tabularData` (or use `properties`) and rows of `tabularData` and log it. Falls back to just + * logging the argument if it can't be parsed as tabular. + * + * ```js + * // These can't be parsed as tabular data + * console.table(Symbol()); + * // Symbol() + * + * console.table(undefined); + * // undefined + * + * console.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }]); + * // ┌─────────┬─────┬─────┐ + * // │ (index) │ a │ b │ + * // ├─────────┼─────┼─────┤ + * // │ 0 │ 1 │ 'Y' │ + * // │ 1 │ 'Z' │ 2 │ + * // └─────────┴─────┴─────┘ + * + * console.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }], ['a']); + * // ┌─────────┬─────┐ + * // │ (index) │ a │ + * // ├─────────┼─────┤ + * // │ 0 │ 1 │ + * // │ 1 │ 'Z' │ + * // └─────────┴─────┘ + * ``` + * @since v10.0.0 + * @param properties Alternate properties for constructing the table. + */ + table(tabularData: any, properties?: readonly string[]): void; + /** + * Starts a timer that can be used to compute the duration of an operation. Timers + * are identified by a unique `label`. Use the same `label` when calling {@link timeEnd} to stop the timer and output the elapsed time in + * suitable time units to `stdout`. For example, if the elapsed + * time is 3869ms, `console.timeEnd()` displays "3.869s". + * @since v0.1.104 + * @param [label='default'] + */ + time(label?: string): void; + /** + * Stops a timer that was previously started by calling {@link time} and + * prints the result to `stdout`: + * + * ```js + * console.time('bunch-of-stuff'); + * // Do a bunch of stuff. + * console.timeEnd('bunch-of-stuff'); + * // Prints: bunch-of-stuff: 225.438ms + * ``` + * @since v0.1.104 + * @param [label='default'] + */ + timeEnd(label?: string): void; + /** + * For a timer that was previously started by calling {@link time}, prints + * the elapsed time and other `data` arguments to `stdout`: + * + * ```js + * console.time('process'); + * const value = expensiveProcess1(); // Returns 42 + * console.timeLog('process', value); + * // Prints "process: 365.227ms 42". + * doExpensiveProcess2(value); + * console.timeEnd('process'); + * ``` + * @since v10.7.0 + * @param [label='default'] + */ + timeLog(label?: string, ...data: any[]): void; + /** + * Prints to `stderr` the string `'Trace: '`, followed by the [`util.format()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilformatformat-args) + * formatted message and stack trace to the current position in the code. + * + * ```js + * console.trace('Show me'); + * // Prints: (stack trace will vary based on where trace is called) + * // Trace: Show me + * // at repl:2:9 + * // at REPLServer.defaultEval (repl.js:248:27) + * // at bound (domain.js:287:14) + * // at REPLServer.runBound [as eval] (domain.js:300:12) + * // at REPLServer. (repl.js:412:12) + * // at emitOne (events.js:82:20) + * // at REPLServer.emit (events.js:169:7) + * // at REPLServer.Interface._onLine (readline.js:210:10) + * // at REPLServer.Interface._line (readline.js:549:8) + * // at REPLServer.Interface._ttyWrite (readline.js:826:14) + * ``` + * @since v0.1.104 + */ + trace(message?: any, ...optionalParams: any[]): void; + /** + * The `console.warn()` function is an alias for {@link error}. + * @since v0.1.100 + */ + warn(message?: any, ...optionalParams: any[]): void; + // --- Inspector mode only --- + /** + * This method does not display anything unless used in the inspector. The `console.profile()` + * method starts a JavaScript CPU profile with an optional label until {@link profileEnd} + * is called. The profile is then added to the Profile panel of the inspector. + * + * ```js + * console.profile('MyLabel'); + * // Some code + * console.profileEnd('MyLabel'); + * // Adds the profile 'MyLabel' to the Profiles panel of the inspector. + * ``` + * @since v8.0.0 + */ + profile(label?: string): void; + /** + * This method does not display anything unless used in the inspector. Stops the current + * JavaScript CPU profiling session if one has been started and prints the report to the + * Profiles panel of the inspector. See {@link profile} for an example. + * + * If this method is called without a label, the most recently started profile is stopped. + * @since v8.0.0 + */ + profileEnd(label?: string): void; + /** + * This method does not display anything unless used in the inspector. The `console.timeStamp()` + * method adds an event with the label `'label'` to the Timeline panel of the inspector. + * @since v8.0.0 + */ + timeStamp(label?: string): void; + } + /** + * The `console` module provides a simple debugging console that is similar to the + * JavaScript console mechanism provided by web browsers. + * + * The module exports two specific components: + * + * * A `Console` class with methods such as `console.log()`, `console.error()` and `console.warn()` that can be used to write to any Node.js stream. + * * A global `console` instance configured to write to [`process.stdout`](https://nodejs.org/docs/latest-v20.x/api/process.html#processstdout) and + * [`process.stderr`](https://nodejs.org/docs/latest-v20.x/api/process.html#processstderr). The global `console` can be used without importing the `node:console` module. + * + * _**Warning**_: The global console object's methods are neither consistently + * synchronous like the browser APIs they resemble, nor are they consistently + * asynchronous like all other Node.js streams. See the [`note on process I/O`](https://nodejs.org/docs/latest-v20.x/api/process.html#a-note-on-process-io) for + * more information. + * + * Example using the global `console`: + * + * ```js + * console.log('hello world'); + * // Prints: hello world, to stdout + * console.log('hello %s', 'world'); + * // Prints: hello world, to stdout + * console.error(new Error('Whoops, something bad happened')); + * // Prints error message and stack trace to stderr: + * // Error: Whoops, something bad happened + * // at [eval]:5:15 + * // at Script.runInThisContext (node:vm:132:18) + * // at Object.runInThisContext (node:vm:309:38) + * // at node:internal/process/execution:77:19 + * // at [eval]-wrapper:6:22 + * // at evalScript (node:internal/process/execution:76:60) + * // at node:internal/main/eval_string:23:3 + * + * const name = 'Will Robinson'; + * console.warn(`Danger ${name}! Danger!`); + * // Prints: Danger Will Robinson! Danger!, to stderr + * ``` + * + * Example using the `Console` class: + * + * ```js + * const out = getStreamSomehow(); + * const err = getStreamSomehow(); + * const myConsole = new console.Console(out, err); + * + * myConsole.log('hello world'); + * // Prints: hello world, to out + * myConsole.log('hello %s', 'world'); + * // Prints: hello world, to out + * myConsole.error(new Error('Whoops, something bad happened')); + * // Prints: [Error: Whoops, something bad happened], to err + * + * const name = 'Will Robinson'; + * myConsole.warn(`Danger ${name}! Danger!`); + * // Prints: Danger Will Robinson! Danger!, to err + * ``` + * @see [source](https://github.com/nodejs/node/blob/v20.11.1/lib/console.js) + */ + namespace console { + interface ConsoleConstructorOptions { + stdout: NodeJS.WritableStream; + stderr?: NodeJS.WritableStream | undefined; + /** + * Ignore errors when writing to the underlying streams. + * @default true + */ + ignoreErrors?: boolean | undefined; + /** + * Set color support for this `Console` instance. Setting to true enables coloring while inspecting + * values. Setting to `false` disables coloring while inspecting values. Setting to `'auto'` makes color + * support depend on the value of the `isTTY` property and the value returned by `getColorDepth()` on the + * respective stream. This option can not be used, if `inspectOptions.colors` is set as well. + * @default auto + */ + colorMode?: boolean | "auto" | undefined; + /** + * Specifies options that are passed along to + * [`util.inspect()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilinspectobject-options). + */ + inspectOptions?: InspectOptions | undefined; + /** + * Set group indentation. + * @default 2 + */ + groupIndentation?: number | undefined; + } + interface ConsoleConstructor { + prototype: Console; + new(stdout: NodeJS.WritableStream, stderr?: NodeJS.WritableStream, ignoreErrors?: boolean): Console; + new(options: ConsoleConstructorOptions): Console; + } + } + var console: Console; + } + export = globalThis.console; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/constants.d.ts b/backend/node_modules/httpx/node_modules/@types/node/constants.d.ts new file mode 100644 index 0000000..5685a9d --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/constants.d.ts @@ -0,0 +1,21 @@ +/** + * @deprecated The `node:constants` module is deprecated. When requiring access to constants + * relevant to specific Node.js builtin modules, developers should instead refer + * to the `constants` property exposed by the relevant module. For instance, + * `require('node:fs').constants` and `require('node:os').constants`. + */ +declare module "constants" { + const constants: + & typeof import("node:os").constants.dlopen + & typeof import("node:os").constants.errno + & typeof import("node:os").constants.priority + & typeof import("node:os").constants.signals + & typeof import("node:fs").constants + & typeof import("node:crypto").constants; + export = constants; +} + +declare module "node:constants" { + import constants = require("constants"); + export = constants; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/crypto.d.ts b/backend/node_modules/httpx/node_modules/@types/node/crypto.d.ts new file mode 100644 index 0000000..036cf8c --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/crypto.d.ts @@ -0,0 +1,4590 @@ +/** + * The `node:crypto` module provides cryptographic functionality that includes a + * set of wrappers for OpenSSL's hash, HMAC, cipher, decipher, sign, and verify + * functions. + * + * ```js + * const { createHmac } = await import('node:crypto'); + * + * const secret = 'abcdefg'; + * const hash = createHmac('sha256', secret) + * .update('I love cupcakes') + * .digest('hex'); + * console.log(hash); + * // Prints: + * // c0fa1bc00531bd78ef38c628449c5102aeabd49b5dc3a2a516ea6ea959d6658e + * ``` + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/crypto.js) + */ +declare module "crypto" { + import { NonSharedBuffer } from "node:buffer"; + import * as stream from "node:stream"; + import { PeerCertificate } from "node:tls"; + /** + * SPKAC is a Certificate Signing Request mechanism originally implemented by + * Netscape and was specified formally as part of HTML5's `keygen` element. + * + * `` is deprecated since [HTML 5.2](https://www.w3.org/TR/html52/changes.html#features-removed) and new projects + * should not use this element anymore. + * + * The `node:crypto` module provides the `Certificate` class for working with SPKAC + * data. The most common usage is handling output generated by the HTML5 `` element. Node.js uses [OpenSSL's SPKAC + * implementation](https://www.openssl.org/docs/man3.0/man1/openssl-spkac.html) internally. + * @since v0.11.8 + */ + class Certificate { + /** + * ```js + * const { Certificate } = await import('node:crypto'); + * const spkac = getSpkacSomehow(); + * const challenge = Certificate.exportChallenge(spkac); + * console.log(challenge.toString('utf8')); + * // Prints: the challenge as a UTF8 string + * ``` + * @since v9.0.0 + * @param encoding The `encoding` of the `spkac` string. + * @return The challenge component of the `spkac` data structure, which includes a public key and a challenge. + */ + static exportChallenge(spkac: BinaryLike): NonSharedBuffer; + /** + * ```js + * const { Certificate } = await import('node:crypto'); + * const spkac = getSpkacSomehow(); + * const publicKey = Certificate.exportPublicKey(spkac); + * console.log(publicKey); + * // Prints: the public key as + * ``` + * @since v9.0.0 + * @param encoding The `encoding` of the `spkac` string. + * @return The public key component of the `spkac` data structure, which includes a public key and a challenge. + */ + static exportPublicKey(spkac: BinaryLike, encoding?: string): NonSharedBuffer; + /** + * ```js + * import { Buffer } from 'node:buffer'; + * const { Certificate } = await import('node:crypto'); + * + * const spkac = getSpkacSomehow(); + * console.log(Certificate.verifySpkac(Buffer.from(spkac))); + * // Prints: true or false + * ``` + * @since v9.0.0 + * @param encoding The `encoding` of the `spkac` string. + * @return `true` if the given `spkac` data structure is valid, `false` otherwise. + */ + static verifySpkac(spkac: NodeJS.ArrayBufferView): boolean; + /** + * @deprecated + * @param spkac + * @returns The challenge component of the `spkac` data structure, + * which includes a public key and a challenge. + */ + exportChallenge(spkac: BinaryLike): NonSharedBuffer; + /** + * @deprecated + * @param spkac + * @param encoding The encoding of the spkac string. + * @returns The public key component of the `spkac` data structure, + * which includes a public key and a challenge. + */ + exportPublicKey(spkac: BinaryLike, encoding?: string): NonSharedBuffer; + /** + * @deprecated + * @param spkac + * @returns `true` if the given `spkac` data structure is valid, + * `false` otherwise. + */ + verifySpkac(spkac: NodeJS.ArrayBufferView): boolean; + } + namespace constants { + // https://nodejs.org/dist/latest-v20.x/docs/api/crypto.html#crypto-constants + const OPENSSL_VERSION_NUMBER: number; + /** Applies multiple bug workarounds within OpenSSL. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html for detail. */ + const SSL_OP_ALL: number; + /** Instructs OpenSSL to allow a non-[EC]DHE-based key exchange mode for TLS v1.3 */ + const SSL_OP_ALLOW_NO_DHE_KEX: number; + /** Allows legacy insecure renegotiation between OpenSSL and unpatched clients or servers. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */ + const SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION: number; + /** Attempts to use the server's preferences instead of the client's when selecting a cipher. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */ + const SSL_OP_CIPHER_SERVER_PREFERENCE: number; + /** Instructs OpenSSL to use Cisco's version identifier of DTLS_BAD_VER. */ + const SSL_OP_CISCO_ANYCONNECT: number; + /** Instructs OpenSSL to turn on cookie exchange. */ + const SSL_OP_COOKIE_EXCHANGE: number; + /** Instructs OpenSSL to add server-hello extension from an early version of the cryptopro draft. */ + const SSL_OP_CRYPTOPRO_TLSEXT_BUG: number; + /** Instructs OpenSSL to disable a SSL 3.0/TLS 1.0 vulnerability workaround added in OpenSSL 0.9.6d. */ + const SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS: number; + /** Allows initial connection to servers that do not support RI. */ + const SSL_OP_LEGACY_SERVER_CONNECT: number; + /** Instructs OpenSSL to disable support for SSL/TLS compression. */ + const SSL_OP_NO_COMPRESSION: number; + /** Instructs OpenSSL to disable encrypt-then-MAC. */ + const SSL_OP_NO_ENCRYPT_THEN_MAC: number; + const SSL_OP_NO_QUERY_MTU: number; + /** Instructs OpenSSL to disable renegotiation. */ + const SSL_OP_NO_RENEGOTIATION: number; + /** Instructs OpenSSL to always start a new session when performing renegotiation. */ + const SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION: number; + /** Instructs OpenSSL to turn off SSL v2 */ + const SSL_OP_NO_SSLv2: number; + /** Instructs OpenSSL to turn off SSL v3 */ + const SSL_OP_NO_SSLv3: number; + /** Instructs OpenSSL to disable use of RFC4507bis tickets. */ + const SSL_OP_NO_TICKET: number; + /** Instructs OpenSSL to turn off TLS v1 */ + const SSL_OP_NO_TLSv1: number; + /** Instructs OpenSSL to turn off TLS v1.1 */ + const SSL_OP_NO_TLSv1_1: number; + /** Instructs OpenSSL to turn off TLS v1.2 */ + const SSL_OP_NO_TLSv1_2: number; + /** Instructs OpenSSL to turn off TLS v1.3 */ + const SSL_OP_NO_TLSv1_3: number; + /** Instructs OpenSSL server to prioritize ChaCha20-Poly1305 when the client does. This option has no effect if `SSL_OP_CIPHER_SERVER_PREFERENCE` is not enabled. */ + const SSL_OP_PRIORITIZE_CHACHA: number; + /** Instructs OpenSSL to disable version rollback attack detection. */ + const SSL_OP_TLS_ROLLBACK_BUG: number; + const ENGINE_METHOD_RSA: number; + const ENGINE_METHOD_DSA: number; + const ENGINE_METHOD_DH: number; + const ENGINE_METHOD_RAND: number; + const ENGINE_METHOD_EC: number; + const ENGINE_METHOD_CIPHERS: number; + const ENGINE_METHOD_DIGESTS: number; + const ENGINE_METHOD_PKEY_METHS: number; + const ENGINE_METHOD_PKEY_ASN1_METHS: number; + const ENGINE_METHOD_ALL: number; + const ENGINE_METHOD_NONE: number; + const DH_CHECK_P_NOT_SAFE_PRIME: number; + const DH_CHECK_P_NOT_PRIME: number; + const DH_UNABLE_TO_CHECK_GENERATOR: number; + const DH_NOT_SUITABLE_GENERATOR: number; + const RSA_PKCS1_PADDING: number; + const RSA_SSLV23_PADDING: number; + const RSA_NO_PADDING: number; + const RSA_PKCS1_OAEP_PADDING: number; + const RSA_X931_PADDING: number; + const RSA_PKCS1_PSS_PADDING: number; + /** Sets the salt length for RSA_PKCS1_PSS_PADDING to the digest size when signing or verifying. */ + const RSA_PSS_SALTLEN_DIGEST: number; + /** Sets the salt length for RSA_PKCS1_PSS_PADDING to the maximum permissible value when signing data. */ + const RSA_PSS_SALTLEN_MAX_SIGN: number; + /** Causes the salt length for RSA_PKCS1_PSS_PADDING to be determined automatically when verifying a signature. */ + const RSA_PSS_SALTLEN_AUTO: number; + const POINT_CONVERSION_COMPRESSED: number; + const POINT_CONVERSION_UNCOMPRESSED: number; + const POINT_CONVERSION_HYBRID: number; + /** Specifies the built-in default cipher list used by Node.js (colon-separated values). */ + const defaultCoreCipherList: string; + /** Specifies the active default cipher list used by the current Node.js process (colon-separated values). */ + const defaultCipherList: string; + } + interface HashOptions extends stream.TransformOptions { + /** + * For XOF hash functions such as `shake256`, the + * outputLength option can be used to specify the desired output length in bytes. + */ + outputLength?: number | undefined; + } + /** @deprecated since v10.0.0 */ + const fips: boolean; + /** + * Creates and returns a `Hash` object that can be used to generate hash digests + * using the given `algorithm`. Optional `options` argument controls stream + * behavior. For XOF hash functions such as `'shake256'`, the `outputLength` option + * can be used to specify the desired output length in bytes. + * + * The `algorithm` is dependent on the available algorithms supported by the + * version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc. + * On recent releases of OpenSSL, `openssl list -digest-algorithms` will + * display the available digest algorithms. + * + * Example: generating the sha256 sum of a file + * + * ```js + * import { + * createReadStream, + * } from 'node:fs'; + * import { argv } from 'node:process'; + * const { + * createHash, + * } = await import('node:crypto'); + * + * const filename = argv[2]; + * + * const hash = createHash('sha256'); + * + * const input = createReadStream(filename); + * input.on('readable', () => { + * // Only one element is going to be produced by the + * // hash stream. + * const data = input.read(); + * if (data) + * hash.update(data); + * else { + * console.log(`${hash.digest('hex')} ${filename}`); + * } + * }); + * ``` + * @since v0.1.92 + * @param options `stream.transform` options + */ + function createHash(algorithm: string, options?: HashOptions): Hash; + /** + * Creates and returns an `Hmac` object that uses the given `algorithm` and `key`. + * Optional `options` argument controls stream behavior. + * + * The `algorithm` is dependent on the available algorithms supported by the + * version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc. + * On recent releases of OpenSSL, `openssl list -digest-algorithms` will + * display the available digest algorithms. + * + * The `key` is the HMAC key used to generate the cryptographic HMAC hash. If it is + * a `KeyObject`, its type must be `secret`. If it is a string, please consider `caveats when using strings as inputs to cryptographic APIs`. If it was + * obtained from a cryptographically secure source of entropy, such as {@link randomBytes} or {@link generateKey}, its length should not + * exceed the block size of `algorithm` (e.g., 512 bits for SHA-256). + * + * Example: generating the sha256 HMAC of a file + * + * ```js + * import { + * createReadStream, + * } from 'node:fs'; + * import { argv } from 'node:process'; + * const { + * createHmac, + * } = await import('node:crypto'); + * + * const filename = argv[2]; + * + * const hmac = createHmac('sha256', 'a secret'); + * + * const input = createReadStream(filename); + * input.on('readable', () => { + * // Only one element is going to be produced by the + * // hash stream. + * const data = input.read(); + * if (data) + * hmac.update(data); + * else { + * console.log(`${hmac.digest('hex')} ${filename}`); + * } + * }); + * ``` + * @since v0.1.94 + * @param options `stream.transform` options + */ + function createHmac(algorithm: string, key: BinaryLike | KeyObject, options?: stream.TransformOptions): Hmac; + // https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings + type BinaryToTextEncoding = "base64" | "base64url" | "hex" | "binary"; + type CharacterEncoding = "utf8" | "utf-8" | "utf16le" | "utf-16le" | "latin1"; + type LegacyCharacterEncoding = "ascii" | "binary" | "ucs2" | "ucs-2"; + type Encoding = BinaryToTextEncoding | CharacterEncoding | LegacyCharacterEncoding; + type ECDHKeyFormat = "compressed" | "uncompressed" | "hybrid"; + /** + * The `Hash` class is a utility for creating hash digests of data. It can be + * used in one of two ways: + * + * * As a `stream` that is both readable and writable, where data is written + * to produce a computed hash digest on the readable side, or + * * Using the `hash.update()` and `hash.digest()` methods to produce the + * computed hash. + * + * The {@link createHash} method is used to create `Hash` instances. `Hash`objects are not to be created directly using the `new` keyword. + * + * Example: Using `Hash` objects as streams: + * + * ```js + * const { + * createHash, + * } = await import('node:crypto'); + * + * const hash = createHash('sha256'); + * + * hash.on('readable', () => { + * // Only one element is going to be produced by the + * // hash stream. + * const data = hash.read(); + * if (data) { + * console.log(data.toString('hex')); + * // Prints: + * // 6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50 + * } + * }); + * + * hash.write('some data to hash'); + * hash.end(); + * ``` + * + * Example: Using `Hash` and piped streams: + * + * ```js + * import { createReadStream } from 'node:fs'; + * import { stdout } from 'node:process'; + * const { createHash } = await import('node:crypto'); + * + * const hash = createHash('sha256'); + * + * const input = createReadStream('test.js'); + * input.pipe(hash).setEncoding('hex').pipe(stdout); + * ``` + * + * Example: Using the `hash.update()` and `hash.digest()` methods: + * + * ```js + * const { + * createHash, + * } = await import('node:crypto'); + * + * const hash = createHash('sha256'); + * + * hash.update('some data to hash'); + * console.log(hash.digest('hex')); + * // Prints: + * // 6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50 + * ``` + * @since v0.1.92 + */ + class Hash extends stream.Transform { + private constructor(); + /** + * Creates a new `Hash` object that contains a deep copy of the internal state + * of the current `Hash` object. + * + * The optional `options` argument controls stream behavior. For XOF hash + * functions such as `'shake256'`, the `outputLength` option can be used to + * specify the desired output length in bytes. + * + * An error is thrown when an attempt is made to copy the `Hash` object after + * its `hash.digest()` method has been called. + * + * ```js + * // Calculate a rolling hash. + * const { + * createHash, + * } = await import('node:crypto'); + * + * const hash = createHash('sha256'); + * + * hash.update('one'); + * console.log(hash.copy().digest('hex')); + * + * hash.update('two'); + * console.log(hash.copy().digest('hex')); + * + * hash.update('three'); + * console.log(hash.copy().digest('hex')); + * + * // Etc. + * ``` + * @since v13.1.0 + * @param options `stream.transform` options + */ + copy(options?: HashOptions): Hash; + /** + * Updates the hash content with the given `data`, the encoding of which + * is given in `inputEncoding`. + * If `encoding` is not provided, and the `data` is a string, an + * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored. + * + * This can be called many times with new data as it is streamed. + * @since v0.1.92 + * @param inputEncoding The `encoding` of the `data` string. + */ + update(data: BinaryLike): Hash; + update(data: string, inputEncoding: Encoding): Hash; + /** + * Calculates the digest of all of the data passed to be hashed (using the `hash.update()` method). + * If `encoding` is provided a string will be returned; otherwise + * a `Buffer` is returned. + * + * The `Hash` object can not be used again after `hash.digest()` method has been + * called. Multiple calls will cause an error to be thrown. + * @since v0.1.92 + * @param encoding The `encoding` of the return value. + */ + digest(): NonSharedBuffer; + digest(encoding: BinaryToTextEncoding): string; + } + /** + * The `Hmac` class is a utility for creating cryptographic HMAC digests. It can + * be used in one of two ways: + * + * * As a `stream` that is both readable and writable, where data is written + * to produce a computed HMAC digest on the readable side, or + * * Using the `hmac.update()` and `hmac.digest()` methods to produce the + * computed HMAC digest. + * + * The {@link createHmac} method is used to create `Hmac` instances. `Hmac`objects are not to be created directly using the `new` keyword. + * + * Example: Using `Hmac` objects as streams: + * + * ```js + * const { + * createHmac, + * } = await import('node:crypto'); + * + * const hmac = createHmac('sha256', 'a secret'); + * + * hmac.on('readable', () => { + * // Only one element is going to be produced by the + * // hash stream. + * const data = hmac.read(); + * if (data) { + * console.log(data.toString('hex')); + * // Prints: + * // 7fd04df92f636fd450bc841c9418e5825c17f33ad9c87c518115a45971f7f77e + * } + * }); + * + * hmac.write('some data to hash'); + * hmac.end(); + * ``` + * + * Example: Using `Hmac` and piped streams: + * + * ```js + * import { createReadStream } from 'node:fs'; + * import { stdout } from 'node:process'; + * const { + * createHmac, + * } = await import('node:crypto'); + * + * const hmac = createHmac('sha256', 'a secret'); + * + * const input = createReadStream('test.js'); + * input.pipe(hmac).pipe(stdout); + * ``` + * + * Example: Using the `hmac.update()` and `hmac.digest()` methods: + * + * ```js + * const { + * createHmac, + * } = await import('node:crypto'); + * + * const hmac = createHmac('sha256', 'a secret'); + * + * hmac.update('some data to hash'); + * console.log(hmac.digest('hex')); + * // Prints: + * // 7fd04df92f636fd450bc841c9418e5825c17f33ad9c87c518115a45971f7f77e + * ``` + * @since v0.1.94 + * @deprecated Since v20.13.0 Calling `Hmac` class directly with `Hmac()` or `new Hmac()` is deprecated due to being internals, not intended for public use. Please use the {@link createHmac} method to create Hmac instances. + */ + class Hmac extends stream.Transform { + private constructor(); + /** + * Updates the `Hmac` content with the given `data`, the encoding of which + * is given in `inputEncoding`. + * If `encoding` is not provided, and the `data` is a string, an + * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored. + * + * This can be called many times with new data as it is streamed. + * @since v0.1.94 + * @param inputEncoding The `encoding` of the `data` string. + */ + update(data: BinaryLike): Hmac; + update(data: string, inputEncoding: Encoding): Hmac; + /** + * Calculates the HMAC digest of all of the data passed using `hmac.update()`. + * If `encoding` is + * provided a string is returned; otherwise a `Buffer` is returned; + * + * The `Hmac` object can not be used again after `hmac.digest()` has been + * called. Multiple calls to `hmac.digest()` will result in an error being thrown. + * @since v0.1.94 + * @param encoding The `encoding` of the return value. + */ + digest(): NonSharedBuffer; + digest(encoding: BinaryToTextEncoding): string; + } + type KeyObjectType = "secret" | "public" | "private"; + interface KeyExportOptions { + type: "pkcs1" | "spki" | "pkcs8" | "sec1"; + format: T; + cipher?: string | undefined; + passphrase?: string | Buffer | undefined; + } + interface JwkKeyExportOptions { + format: "jwk"; + } + interface JsonWebKey { + crv?: string; + d?: string; + dp?: string; + dq?: string; + e?: string; + k?: string; + kty?: string; + n?: string; + p?: string; + q?: string; + qi?: string; + x?: string; + y?: string; + [key: string]: unknown; + } + interface AsymmetricKeyDetails { + /** + * Key size in bits (RSA, DSA). + */ + modulusLength?: number; + /** + * Public exponent (RSA). + */ + publicExponent?: bigint; + /** + * Name of the message digest (RSA-PSS). + */ + hashAlgorithm?: string; + /** + * Name of the message digest used by MGF1 (RSA-PSS). + */ + mgf1HashAlgorithm?: string; + /** + * Minimal salt length in bytes (RSA-PSS). + */ + saltLength?: number; + /** + * Size of q in bits (DSA). + */ + divisorLength?: number; + /** + * Name of the curve (EC). + */ + namedCurve?: string; + } + /** + * Node.js uses a `KeyObject` class to represent a symmetric or asymmetric key, + * and each kind of key exposes different functions. The {@link createSecretKey}, {@link createPublicKey} and {@link createPrivateKey} methods are used to create `KeyObject`instances. `KeyObject` + * objects are not to be created directly using the `new`keyword. + * + * Most applications should consider using the new `KeyObject` API instead of + * passing keys as strings or `Buffer`s due to improved security features. + * + * `KeyObject` instances can be passed to other threads via `postMessage()`. + * The receiver obtains a cloned `KeyObject`, and the `KeyObject` does not need to + * be listed in the `transferList` argument. + * @since v11.6.0 + */ + class KeyObject { + private constructor(); + /** + * Example: Converting a `CryptoKey` instance to a `KeyObject`: + * + * ```js + * const { KeyObject } = await import('node:crypto'); + * const { subtle } = globalThis.crypto; + * + * const key = await subtle.generateKey({ + * name: 'HMAC', + * hash: 'SHA-256', + * length: 256, + * }, true, ['sign', 'verify']); + * + * const keyObject = KeyObject.from(key); + * console.log(keyObject.symmetricKeySize); + * // Prints: 32 (symmetric key size in bytes) + * ``` + * @since v15.0.0 + */ + static from(key: webcrypto.CryptoKey): KeyObject; + /** + * For asymmetric keys, this property represents the type of the key. Supported key + * types are: + * + * * `'rsa'` (OID 1.2.840.113549.1.1.1) + * * `'rsa-pss'` (OID 1.2.840.113549.1.1.10) + * * `'dsa'` (OID 1.2.840.10040.4.1) + * * `'ec'` (OID 1.2.840.10045.2.1) + * * `'x25519'` (OID 1.3.101.110) + * * `'x448'` (OID 1.3.101.111) + * * `'ed25519'` (OID 1.3.101.112) + * * `'ed448'` (OID 1.3.101.113) + * * `'dh'` (OID 1.2.840.113549.1.3.1) + * + * This property is `undefined` for unrecognized `KeyObject` types and symmetric + * keys. + * @since v11.6.0 + */ + asymmetricKeyType?: KeyType; + /** + * This property exists only on asymmetric keys. Depending on the type of the key, + * this object contains information about the key. None of the information obtained + * through this property can be used to uniquely identify a key or to compromise + * the security of the key. + * + * For RSA-PSS keys, if the key material contains a `RSASSA-PSS-params` sequence, + * the `hashAlgorithm`, `mgf1HashAlgorithm`, and `saltLength` properties will be + * set. + * + * Other key details might be exposed via this API using additional attributes. + * @since v15.7.0 + */ + asymmetricKeyDetails?: AsymmetricKeyDetails; + /** + * For symmetric keys, the following encoding options can be used: + * + * For public keys, the following encoding options can be used: + * + * For private keys, the following encoding options can be used: + * + * The result type depends on the selected encoding format, when PEM the + * result is a string, when DER it will be a buffer containing the data + * encoded as DER, when [JWK](https://tools.ietf.org/html/rfc7517) it will be an object. + * + * When [JWK](https://tools.ietf.org/html/rfc7517) encoding format was selected, all other encoding options are + * ignored. + * + * PKCS#1, SEC1, and PKCS#8 type keys can be encrypted by using a combination of + * the `cipher` and `format` options. The PKCS#8 `type` can be used with any`format` to encrypt any key algorithm (RSA, EC, or DH) by specifying a`cipher`. PKCS#1 and SEC1 can only be + * encrypted by specifying a `cipher`when the PEM `format` is used. For maximum compatibility, use PKCS#8 for + * encrypted private keys. Since PKCS#8 defines its own + * encryption mechanism, PEM-level encryption is not supported when encrypting + * a PKCS#8 key. See [RFC 5208](https://www.rfc-editor.org/rfc/rfc5208.txt) for PKCS#8 encryption and [RFC 1421](https://www.rfc-editor.org/rfc/rfc1421.txt) for + * PKCS#1 and SEC1 encryption. + * @since v11.6.0 + */ + export(options: KeyExportOptions<"pem">): string | NonSharedBuffer; + export(options?: KeyExportOptions<"der">): NonSharedBuffer; + export(options?: JwkKeyExportOptions): JsonWebKey; + /** + * Returns `true` or `false` depending on whether the keys have exactly the same + * type, value, and parameters. This method is not [constant time](https://en.wikipedia.org/wiki/Timing_attack). + * @since v17.7.0, v16.15.0 + * @param otherKeyObject A `KeyObject` with which to compare `keyObject`. + */ + equals(otherKeyObject: KeyObject): boolean; + /** + * For secret keys, this property represents the size of the key in bytes. This + * property is `undefined` for asymmetric keys. + * @since v11.6.0 + */ + symmetricKeySize?: number; + /** + * Depending on the type of this `KeyObject`, this property is either`'secret'` for secret (symmetric) keys, `'public'` for public (asymmetric) keys + * or `'private'` for private (asymmetric) keys. + * @since v11.6.0 + */ + type: KeyObjectType; + } + type CipherCCMTypes = "aes-128-ccm" | "aes-192-ccm" | "aes-256-ccm"; + type CipherGCMTypes = "aes-128-gcm" | "aes-192-gcm" | "aes-256-gcm"; + type CipherOCBTypes = "aes-128-ocb" | "aes-192-ocb" | "aes-256-ocb"; + type CipherChaCha20Poly1305Types = "chacha20-poly1305"; + type BinaryLike = string | NodeJS.ArrayBufferView; + type CipherKey = BinaryLike | KeyObject; + interface CipherCCMOptions extends stream.TransformOptions { + authTagLength: number; + } + interface CipherGCMOptions extends stream.TransformOptions { + authTagLength?: number | undefined; + } + interface CipherOCBOptions extends stream.TransformOptions { + authTagLength: number; + } + interface CipherChaCha20Poly1305Options extends stream.TransformOptions { + /** @default 16 */ + authTagLength?: number | undefined; + } + /** + * Creates and returns a `Cipher` object that uses the given `algorithm` and `password`. + * + * The `options` argument controls stream behavior and is optional except when a + * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the`authTagLength` option is required and specifies the length of the + * authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength`option is not required but can be used to set the length of the authentication + * tag that will be returned by `getAuthTag()` and defaults to 16 bytes. + * For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes. + * + * The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On + * recent OpenSSL releases, `openssl list -cipher-algorithms` will + * display the available cipher algorithms. + * + * The `password` is used to derive the cipher key and initialization vector (IV). + * The value must be either a `'latin1'` encoded string, a `Buffer`, a`TypedArray`, or a `DataView`. + * + * **This function is semantically insecure for all** + * **supported ciphers and fatally flawed for ciphers in counter mode (such as CTR,** + * **GCM, or CCM).** + * + * The implementation of `crypto.createCipher()` derives keys using the OpenSSL + * function [`EVP_BytesToKey`](https://www.openssl.org/docs/man3.0/man3/EVP_BytesToKey.html) with the digest algorithm set to MD5, one + * iteration, and no salt. The lack of salt allows dictionary attacks as the same + * password always creates the same key. The low iteration count and + * non-cryptographically secure hash algorithm allow passwords to be tested very + * rapidly. + * + * In line with OpenSSL's recommendation to use a more modern algorithm instead of [`EVP_BytesToKey`](https://www.openssl.org/docs/man3.0/man3/EVP_BytesToKey.html) it is recommended that + * developers derive a key and IV on + * their own using {@link scrypt} and to use {@link createCipheriv} to create the `Cipher` object. Users should not use ciphers with counter mode + * (e.g. CTR, GCM, or CCM) in `crypto.createCipher()`. A warning is emitted when + * they are used in order to avoid the risk of IV reuse that causes + * vulnerabilities. For the case when IV is reused in GCM, see [Nonce-Disrespecting Adversaries](https://github.com/nonce-disrespect/nonce-disrespect) for details. + * @since v0.1.94 + * @deprecated Since v10.0.0 - Use {@link createCipheriv} instead. + * @param options `stream.transform` options + */ + function createCipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): CipherCCM; + /** @deprecated since v10.0.0 use `createCipheriv()` */ + function createCipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): CipherGCM; + /** @deprecated since v10.0.0 use `createCipheriv()` */ + function createCipher(algorithm: CipherOCBTypes, password: BinaryLike, options: CipherOCBOptions): CipherOCB; + /** @deprecated since v10.0.0 use `createCipheriv()` */ + function createCipher( + algorithm: CipherChaCha20Poly1305Types, + password: BinaryLike, + options?: CipherChaCha20Poly1305Options, + ): CipherChaCha20Poly1305; + /** @deprecated since v10.0.0 use `createCipheriv()` */ + function createCipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Cipher; + /** + * Creates and returns a `Cipher` object, with the given `algorithm`, `key` and + * initialization vector (`iv`). + * + * The `options` argument controls stream behavior and is optional except when a + * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the`authTagLength` option is required and specifies the length of the + * authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength`option is not required but can be used to set the length of the authentication + * tag that will be returned by `getAuthTag()` and defaults to 16 bytes. + * For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes. + * + * The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On + * recent OpenSSL releases, `openssl list -cipher-algorithms` will + * display the available cipher algorithms. + * + * The `key` is the raw key used by the `algorithm` and `iv` is an [initialization vector](https://en.wikipedia.org/wiki/Initialization_vector). Both arguments must be `'utf8'` encoded + * strings,`Buffers`, `TypedArray`, or `DataView`s. The `key` may optionally be + * a `KeyObject` of type `secret`. If the cipher does not need + * an initialization vector, `iv` may be `null`. + * + * When passing strings for `key` or `iv`, please consider `caveats when using strings as inputs to cryptographic APIs`. + * + * Initialization vectors should be unpredictable and unique; ideally, they will be + * cryptographically random. They do not have to be secret: IVs are typically just + * added to ciphertext messages unencrypted. It may sound contradictory that + * something has to be unpredictable and unique, but does not have to be secret; + * remember that an attacker must not be able to predict ahead of time what a + * given IV will be. + * @since v0.1.94 + * @param options `stream.transform` options + */ + function createCipheriv( + algorithm: CipherCCMTypes, + key: CipherKey, + iv: BinaryLike, + options: CipherCCMOptions, + ): CipherCCM; + function createCipheriv( + algorithm: CipherOCBTypes, + key: CipherKey, + iv: BinaryLike, + options: CipherOCBOptions, + ): CipherOCB; + function createCipheriv( + algorithm: CipherGCMTypes, + key: CipherKey, + iv: BinaryLike, + options?: CipherGCMOptions, + ): CipherGCM; + function createCipheriv( + algorithm: CipherChaCha20Poly1305Types, + key: CipherKey, + iv: BinaryLike, + options?: CipherChaCha20Poly1305Options, + ): CipherChaCha20Poly1305; + function createCipheriv( + algorithm: string, + key: CipherKey, + iv: BinaryLike | null, + options?: stream.TransformOptions, + ): Cipher; + /** + * Instances of the `Cipher` class are used to encrypt data. The class can be + * used in one of two ways: + * + * * As a `stream` that is both readable and writable, where plain unencrypted + * data is written to produce encrypted data on the readable side, or + * * Using the `cipher.update()` and `cipher.final()` methods to produce + * the encrypted data. + * + * The {@link createCipher} or {@link createCipheriv} methods are + * used to create `Cipher` instances. `Cipher` objects are not to be created + * directly using the `new` keyword. + * + * Example: Using `Cipher` objects as streams: + * + * ```js + * const { + * scrypt, + * randomFill, + * createCipheriv, + * } = await import('node:crypto'); + * + * const algorithm = 'aes-192-cbc'; + * const password = 'Password used to generate key'; + * + * // First, we'll generate the key. The key length is dependent on the algorithm. + * // In this case for aes192, it is 24 bytes (192 bits). + * scrypt(password, 'salt', 24, (err, key) => { + * if (err) throw err; + * // Then, we'll generate a random initialization vector + * randomFill(new Uint8Array(16), (err, iv) => { + * if (err) throw err; + * + * // Once we have the key and iv, we can create and use the cipher... + * const cipher = createCipheriv(algorithm, key, iv); + * + * let encrypted = ''; + * cipher.setEncoding('hex'); + * + * cipher.on('data', (chunk) => encrypted += chunk); + * cipher.on('end', () => console.log(encrypted)); + * + * cipher.write('some clear text data'); + * cipher.end(); + * }); + * }); + * ``` + * + * Example: Using `Cipher` and piped streams: + * + * ```js + * import { + * createReadStream, + * createWriteStream, + * } from 'node:fs'; + * + * import { + * pipeline, + * } from 'node:stream'; + * + * const { + * scrypt, + * randomFill, + * createCipheriv, + * } = await import('node:crypto'); + * + * const algorithm = 'aes-192-cbc'; + * const password = 'Password used to generate key'; + * + * // First, we'll generate the key. The key length is dependent on the algorithm. + * // In this case for aes192, it is 24 bytes (192 bits). + * scrypt(password, 'salt', 24, (err, key) => { + * if (err) throw err; + * // Then, we'll generate a random initialization vector + * randomFill(new Uint8Array(16), (err, iv) => { + * if (err) throw err; + * + * const cipher = createCipheriv(algorithm, key, iv); + * + * const input = createReadStream('test.js'); + * const output = createWriteStream('test.enc'); + * + * pipeline(input, cipher, output, (err) => { + * if (err) throw err; + * }); + * }); + * }); + * ``` + * + * Example: Using the `cipher.update()` and `cipher.final()` methods: + * + * ```js + * const { + * scrypt, + * randomFill, + * createCipheriv, + * } = await import('node:crypto'); + * + * const algorithm = 'aes-192-cbc'; + * const password = 'Password used to generate key'; + * + * // First, we'll generate the key. The key length is dependent on the algorithm. + * // In this case for aes192, it is 24 bytes (192 bits). + * scrypt(password, 'salt', 24, (err, key) => { + * if (err) throw err; + * // Then, we'll generate a random initialization vector + * randomFill(new Uint8Array(16), (err, iv) => { + * if (err) throw err; + * + * const cipher = createCipheriv(algorithm, key, iv); + * + * let encrypted = cipher.update('some clear text data', 'utf8', 'hex'); + * encrypted += cipher.final('hex'); + * console.log(encrypted); + * }); + * }); + * ``` + * @since v0.1.94 + */ + class Cipher extends stream.Transform { + private constructor(); + /** + * Updates the cipher with `data`. If the `inputEncoding` argument is given, + * the `data`argument is a string using the specified encoding. If the `inputEncoding`argument is not given, `data` must be a `Buffer`, `TypedArray`, or `DataView`. If `data` is a `Buffer`, + * `TypedArray`, or `DataView`, then `inputEncoding` is ignored. + * + * The `outputEncoding` specifies the output format of the enciphered + * data. If the `outputEncoding`is specified, a string using the specified encoding is returned. If no`outputEncoding` is provided, a `Buffer` is returned. + * + * The `cipher.update()` method can be called multiple times with new data until `cipher.final()` is called. Calling `cipher.update()` after `cipher.final()` will result in an error being + * thrown. + * @since v0.1.94 + * @param inputEncoding The `encoding` of the data. + * @param outputEncoding The `encoding` of the return value. + */ + update(data: BinaryLike): NonSharedBuffer; + update(data: string, inputEncoding: Encoding): NonSharedBuffer; + update(data: NodeJS.ArrayBufferView, inputEncoding: undefined, outputEncoding: Encoding): string; + update(data: string, inputEncoding: Encoding | undefined, outputEncoding: Encoding): string; + /** + * Once the `cipher.final()` method has been called, the `Cipher` object can no + * longer be used to encrypt data. Attempts to call `cipher.final()` more than + * once will result in an error being thrown. + * @since v0.1.94 + * @param outputEncoding The `encoding` of the return value. + * @return Any remaining enciphered contents. If `outputEncoding` is specified, a string is returned. If an `outputEncoding` is not provided, a {@link Buffer} is returned. + */ + final(): NonSharedBuffer; + final(outputEncoding: BufferEncoding): string; + /** + * When using block encryption algorithms, the `Cipher` class will automatically + * add padding to the input data to the appropriate block size. To disable the + * default padding call `cipher.setAutoPadding(false)`. + * + * When `autoPadding` is `false`, the length of the entire input data must be a + * multiple of the cipher's block size or `cipher.final()` will throw an error. + * Disabling automatic padding is useful for non-standard padding, for instance + * using `0x0` instead of PKCS padding. + * + * The `cipher.setAutoPadding()` method must be called before `cipher.final()`. + * @since v0.7.1 + * @param [autoPadding=true] + * @return for method chaining. + */ + setAutoPadding(autoPadding?: boolean): this; + } + interface CipherCCM extends Cipher { + setAAD( + buffer: NodeJS.ArrayBufferView, + options: { + plaintextLength: number; + }, + ): this; + getAuthTag(): NonSharedBuffer; + } + interface CipherGCM extends Cipher { + setAAD( + buffer: NodeJS.ArrayBufferView, + options?: { + plaintextLength: number; + }, + ): this; + getAuthTag(): NonSharedBuffer; + } + interface CipherOCB extends Cipher { + setAAD( + buffer: NodeJS.ArrayBufferView, + options?: { + plaintextLength: number; + }, + ): this; + getAuthTag(): NonSharedBuffer; + } + interface CipherChaCha20Poly1305 extends Cipher { + setAAD( + buffer: NodeJS.ArrayBufferView, + options: { + plaintextLength: number; + }, + ): this; + getAuthTag(): NonSharedBuffer; + } + /** + * Creates and returns a `Decipher` object that uses the given `algorithm` and `password` (key). + * + * The `options` argument controls stream behavior and is optional except when a + * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the `authTagLength` option is required and specifies the length of the + * authentication tag in bytes, see `CCM mode`. + * For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes. + * + * **This function is semantically insecure for all** + * **supported ciphers and fatally flawed for ciphers in counter mode (such as CTR,** + * **GCM, or CCM).** + * + * The implementation of `crypto.createDecipher()` derives keys using the OpenSSL + * function [`EVP_BytesToKey`](https://www.openssl.org/docs/man3.0/man3/EVP_BytesToKey.html) with the digest algorithm set to MD5, one + * iteration, and no salt. The lack of salt allows dictionary attacks as the same + * password always creates the same key. The low iteration count and + * non-cryptographically secure hash algorithm allow passwords to be tested very + * rapidly. + * + * In line with OpenSSL's recommendation to use a more modern algorithm instead of [`EVP_BytesToKey`](https://www.openssl.org/docs/man3.0/man3/EVP_BytesToKey.html) it is recommended that + * developers derive a key and IV on + * their own using {@link scrypt} and to use {@link createDecipheriv} to create the `Decipher` object. + * @since v0.1.94 + * @deprecated Since v10.0.0 - Use {@link createDecipheriv} instead. + * @param options `stream.transform` options + */ + function createDecipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): DecipherCCM; + /** @deprecated since v10.0.0 use `createDecipheriv()` */ + function createDecipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): DecipherGCM; + /** @deprecated since v10.0.0 use `createDecipheriv()` */ + function createDecipher(algorithm: CipherOCBTypes, password: BinaryLike, options: CipherOCBOptions): DecipherOCB; + /** @deprecated since v10.0.0 use `createDecipheriv()` */ + function createDecipher( + algorithm: CipherChaCha20Poly1305Types, + password: BinaryLike, + options?: CipherChaCha20Poly1305Options, + ): DecipherChaCha20Poly1305; + /** @deprecated since v10.0.0 use `createDecipheriv()` */ + function createDecipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Decipher; + /** + * Creates and returns a `Decipher` object that uses the given `algorithm`, `key` and initialization vector (`iv`). + * + * The `options` argument controls stream behavior and is optional except when a + * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the `authTagLength` option is required and specifies the length of the + * authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength` option is not required but can be used to restrict accepted authentication tags + * to those with the specified length. + * For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes. + * + * The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On + * recent OpenSSL releases, `openssl list -cipher-algorithms` will + * display the available cipher algorithms. + * + * The `key` is the raw key used by the `algorithm` and `iv` is an [initialization vector](https://en.wikipedia.org/wiki/Initialization_vector). Both arguments must be `'utf8'` encoded + * strings,`Buffers`, `TypedArray`, or `DataView`s. The `key` may optionally be + * a `KeyObject` of type `secret`. If the cipher does not need + * an initialization vector, `iv` may be `null`. + * + * When passing strings for `key` or `iv`, please consider `caveats when using strings as inputs to cryptographic APIs`. + * + * Initialization vectors should be unpredictable and unique; ideally, they will be + * cryptographically random. They do not have to be secret: IVs are typically just + * added to ciphertext messages unencrypted. It may sound contradictory that + * something has to be unpredictable and unique, but does not have to be secret; + * remember that an attacker must not be able to predict ahead of time what a given + * IV will be. + * @since v0.1.94 + * @param options `stream.transform` options + */ + function createDecipheriv( + algorithm: CipherCCMTypes, + key: CipherKey, + iv: BinaryLike, + options: CipherCCMOptions, + ): DecipherCCM; + function createDecipheriv( + algorithm: CipherOCBTypes, + key: CipherKey, + iv: BinaryLike, + options: CipherOCBOptions, + ): DecipherOCB; + function createDecipheriv( + algorithm: CipherGCMTypes, + key: CipherKey, + iv: BinaryLike, + options?: CipherGCMOptions, + ): DecipherGCM; + function createDecipheriv( + algorithm: CipherChaCha20Poly1305Types, + key: CipherKey, + iv: BinaryLike, + options?: CipherChaCha20Poly1305Options, + ): DecipherChaCha20Poly1305; + function createDecipheriv( + algorithm: string, + key: CipherKey, + iv: BinaryLike | null, + options?: stream.TransformOptions, + ): Decipher; + /** + * Instances of the `Decipher` class are used to decrypt data. The class can be + * used in one of two ways: + * + * * As a `stream` that is both readable and writable, where plain encrypted + * data is written to produce unencrypted data on the readable side, or + * * Using the `decipher.update()` and `decipher.final()` methods to + * produce the unencrypted data. + * + * The {@link createDecipher} or {@link createDecipheriv} methods are + * used to create `Decipher` instances. `Decipher` objects are not to be created + * directly using the `new` keyword. + * + * Example: Using `Decipher` objects as streams: + * + * ```js + * import { Buffer } from 'node:buffer'; + * const { + * scryptSync, + * createDecipheriv, + * } = await import('node:crypto'); + * + * const algorithm = 'aes-192-cbc'; + * const password = 'Password used to generate key'; + * // Key length is dependent on the algorithm. In this case for aes192, it is + * // 24 bytes (192 bits). + * // Use the async `crypto.scrypt()` instead. + * const key = scryptSync(password, 'salt', 24); + * // The IV is usually passed along with the ciphertext. + * const iv = Buffer.alloc(16, 0); // Initialization vector. + * + * const decipher = createDecipheriv(algorithm, key, iv); + * + * let decrypted = ''; + * decipher.on('readable', () => { + * let chunk; + * while (null !== (chunk = decipher.read())) { + * decrypted += chunk.toString('utf8'); + * } + * }); + * decipher.on('end', () => { + * console.log(decrypted); + * // Prints: some clear text data + * }); + * + * // Encrypted with same algorithm, key and iv. + * const encrypted = + * 'e5f79c5915c02171eec6b212d5520d44480993d7d622a7c4c2da32f6efda0ffa'; + * decipher.write(encrypted, 'hex'); + * decipher.end(); + * ``` + * + * Example: Using `Decipher` and piped streams: + * + * ```js + * import { + * createReadStream, + * createWriteStream, + * } from 'node:fs'; + * import { Buffer } from 'node:buffer'; + * const { + * scryptSync, + * createDecipheriv, + * } = await import('node:crypto'); + * + * const algorithm = 'aes-192-cbc'; + * const password = 'Password used to generate key'; + * // Use the async `crypto.scrypt()` instead. + * const key = scryptSync(password, 'salt', 24); + * // The IV is usually passed along with the ciphertext. + * const iv = Buffer.alloc(16, 0); // Initialization vector. + * + * const decipher = createDecipheriv(algorithm, key, iv); + * + * const input = createReadStream('test.enc'); + * const output = createWriteStream('test.js'); + * + * input.pipe(decipher).pipe(output); + * ``` + * + * Example: Using the `decipher.update()` and `decipher.final()` methods: + * + * ```js + * import { Buffer } from 'node:buffer'; + * const { + * scryptSync, + * createDecipheriv, + * } = await import('node:crypto'); + * + * const algorithm = 'aes-192-cbc'; + * const password = 'Password used to generate key'; + * // Use the async `crypto.scrypt()` instead. + * const key = scryptSync(password, 'salt', 24); + * // The IV is usually passed along with the ciphertext. + * const iv = Buffer.alloc(16, 0); // Initialization vector. + * + * const decipher = createDecipheriv(algorithm, key, iv); + * + * // Encrypted using same algorithm, key and iv. + * const encrypted = + * 'e5f79c5915c02171eec6b212d5520d44480993d7d622a7c4c2da32f6efda0ffa'; + * let decrypted = decipher.update(encrypted, 'hex', 'utf8'); + * decrypted += decipher.final('utf8'); + * console.log(decrypted); + * // Prints: some clear text data + * ``` + * @since v0.1.94 + */ + class Decipher extends stream.Transform { + private constructor(); + /** + * Updates the decipher with `data`. If the `inputEncoding` argument is given, + * the `data` argument is a string using the specified encoding. If the `inputEncoding` argument is not given, `data` must be a `Buffer`. If `data` is a `Buffer` then `inputEncoding` is + * ignored. + * + * The `outputEncoding` specifies the output format of the enciphered + * data. If the `outputEncoding` is specified, a string using the specified encoding is returned. If no `outputEncoding` is provided, a `Buffer` is returned. + * + * The `decipher.update()` method can be called multiple times with new data until `decipher.final()` is called. Calling `decipher.update()` after `decipher.final()` will result in an error + * being thrown. + * @since v0.1.94 + * @param inputEncoding The `encoding` of the `data` string. + * @param outputEncoding The `encoding` of the return value. + */ + update(data: NodeJS.ArrayBufferView): NonSharedBuffer; + update(data: string, inputEncoding: Encoding): NonSharedBuffer; + update(data: NodeJS.ArrayBufferView, inputEncoding: undefined, outputEncoding: Encoding): string; + update(data: string, inputEncoding: Encoding | undefined, outputEncoding: Encoding): string; + /** + * Once the `decipher.final()` method has been called, the `Decipher` object can + * no longer be used to decrypt data. Attempts to call `decipher.final()` more + * than once will result in an error being thrown. + * @since v0.1.94 + * @param outputEncoding The `encoding` of the return value. + * @return Any remaining deciphered contents. If `outputEncoding` is specified, a string is returned. If an `outputEncoding` is not provided, a {@link Buffer} is returned. + */ + final(): NonSharedBuffer; + final(outputEncoding: BufferEncoding): string; + /** + * When data has been encrypted without standard block padding, calling `decipher.setAutoPadding(false)` will disable automatic padding to prevent `decipher.final()` from checking for and + * removing padding. + * + * Turning auto padding off will only work if the input data's length is a + * multiple of the ciphers block size. + * + * The `decipher.setAutoPadding()` method must be called before `decipher.final()`. + * @since v0.7.1 + * @param [autoPadding=true] + * @return for method chaining. + */ + setAutoPadding(auto_padding?: boolean): this; + } + interface DecipherCCM extends Decipher { + setAuthTag(buffer: NodeJS.ArrayBufferView): this; + setAAD( + buffer: NodeJS.ArrayBufferView, + options: { + plaintextLength: number; + }, + ): this; + } + interface DecipherGCM extends Decipher { + setAuthTag(buffer: NodeJS.ArrayBufferView): this; + setAAD( + buffer: NodeJS.ArrayBufferView, + options?: { + plaintextLength: number; + }, + ): this; + } + interface DecipherOCB extends Decipher { + setAuthTag(buffer: NodeJS.ArrayBufferView): this; + setAAD( + buffer: NodeJS.ArrayBufferView, + options?: { + plaintextLength: number; + }, + ): this; + } + interface DecipherChaCha20Poly1305 extends Decipher { + setAuthTag(buffer: NodeJS.ArrayBufferView): this; + setAAD( + buffer: NodeJS.ArrayBufferView, + options: { + plaintextLength: number; + }, + ): this; + } + interface PrivateKeyInput { + key: string | Buffer; + format?: KeyFormat | undefined; + type?: "pkcs1" | "pkcs8" | "sec1" | undefined; + passphrase?: string | Buffer | undefined; + encoding?: string | undefined; + } + interface PublicKeyInput { + key: string | Buffer; + format?: KeyFormat | undefined; + type?: "pkcs1" | "spki" | undefined; + encoding?: string | undefined; + } + /** + * Asynchronously generates a new random secret key of the given `length`. The `type` will determine which validations will be performed on the `length`. + * + * ```js + * const { + * generateKey, + * } = await import('node:crypto'); + * + * generateKey('hmac', { length: 512 }, (err, key) => { + * if (err) throw err; + * console.log(key.export().toString('hex')); // 46e..........620 + * }); + * ``` + * + * The size of a generated HMAC key should not exceed the block size of the + * underlying hash function. See {@link createHmac} for more information. + * @since v15.0.0 + * @param type The intended use of the generated secret key. Currently accepted values are `'hmac'` and `'aes'`. + */ + function generateKey( + type: "hmac" | "aes", + options: { + length: number; + }, + callback: (err: Error | null, key: KeyObject) => void, + ): void; + /** + * Synchronously generates a new random secret key of the given `length`. The `type` will determine which validations will be performed on the `length`. + * + * ```js + * const { + * generateKeySync, + * } = await import('node:crypto'); + * + * const key = generateKeySync('hmac', { length: 512 }); + * console.log(key.export().toString('hex')); // e89..........41e + * ``` + * + * The size of a generated HMAC key should not exceed the block size of the + * underlying hash function. See {@link createHmac} for more information. + * @since v15.0.0 + * @param type The intended use of the generated secret key. Currently accepted values are `'hmac'` and `'aes'`. + */ + function generateKeySync( + type: "hmac" | "aes", + options: { + length: number; + }, + ): KeyObject; + interface JsonWebKeyInput { + key: JsonWebKey; + format: "jwk"; + } + /** + * Creates and returns a new key object containing a private key. If `key` is a + * string or `Buffer`, `format` is assumed to be `'pem'`; otherwise, `key` must be an object with the properties described above. + * + * If the private key is encrypted, a `passphrase` must be specified. The length + * of the passphrase is limited to 1024 bytes. + * @since v11.6.0 + */ + function createPrivateKey(key: PrivateKeyInput | string | Buffer | JsonWebKeyInput): KeyObject; + /** + * Creates and returns a new key object containing a public key. If `key` is a + * string or `Buffer`, `format` is assumed to be `'pem'`; if `key` is a `KeyObject` with type `'private'`, the public key is derived from the given private key; + * otherwise, `key` must be an object with the properties described above. + * + * If the format is `'pem'`, the `'key'` may also be an X.509 certificate. + * + * Because public keys can be derived from private keys, a private key may be + * passed instead of a public key. In that case, this function behaves as if {@link createPrivateKey} had been called, except that the type of the + * returned `KeyObject` will be `'public'` and that the private key cannot be + * extracted from the returned `KeyObject`. Similarly, if a `KeyObject` with type `'private'` is given, a new `KeyObject` with type `'public'` will be returned + * and it will be impossible to extract the private key from the returned object. + * @since v11.6.0 + */ + function createPublicKey(key: PublicKeyInput | string | Buffer | KeyObject | JsonWebKeyInput): KeyObject; + /** + * Creates and returns a new key object containing a secret key for symmetric + * encryption or `Hmac`. + * @since v11.6.0 + * @param encoding The string encoding when `key` is a string. + */ + function createSecretKey(key: NodeJS.ArrayBufferView): KeyObject; + function createSecretKey(key: string, encoding: BufferEncoding): KeyObject; + /** + * Creates and returns a `Sign` object that uses the given `algorithm`. Use {@link getHashes} to obtain the names of the available digest algorithms. + * Optional `options` argument controls the `stream.Writable` behavior. + * + * In some cases, a `Sign` instance can be created using the name of a signature + * algorithm, such as `'RSA-SHA256'`, instead of a digest algorithm. This will use + * the corresponding digest algorithm. This does not work for all signature + * algorithms, such as `'ecdsa-with-SHA256'`, so it is best to always use digest + * algorithm names. + * @since v0.1.92 + * @param options `stream.Writable` options + */ + function createSign(algorithm: string, options?: stream.WritableOptions): Sign; + type DSAEncoding = "der" | "ieee-p1363"; + interface SigningOptions { + /** + * @see crypto.constants.RSA_PKCS1_PADDING + */ + padding?: number | undefined; + saltLength?: number | undefined; + dsaEncoding?: DSAEncoding | undefined; + } + interface SignPrivateKeyInput extends PrivateKeyInput, SigningOptions {} + interface SignKeyObjectInput extends SigningOptions { + key: KeyObject; + } + interface SignJsonWebKeyInput extends JsonWebKeyInput, SigningOptions {} + interface VerifyPublicKeyInput extends PublicKeyInput, SigningOptions {} + interface VerifyKeyObjectInput extends SigningOptions { + key: KeyObject; + } + interface VerifyJsonWebKeyInput extends JsonWebKeyInput, SigningOptions {} + type KeyLike = string | Buffer | KeyObject; + /** + * The `Sign` class is a utility for generating signatures. It can be used in one + * of two ways: + * + * * As a writable `stream`, where data to be signed is written and the `sign.sign()` method is used to generate and return the signature, or + * * Using the `sign.update()` and `sign.sign()` methods to produce the + * signature. + * + * The {@link createSign} method is used to create `Sign` instances. The + * argument is the string name of the hash function to use. `Sign` objects are not + * to be created directly using the `new` keyword. + * + * Example: Using `Sign` and `Verify` objects as streams: + * + * ```js + * const { + * generateKeyPairSync, + * createSign, + * createVerify, + * } = await import('node:crypto'); + * + * const { privateKey, publicKey } = generateKeyPairSync('ec', { + * namedCurve: 'sect239k1', + * }); + * + * const sign = createSign('SHA256'); + * sign.write('some data to sign'); + * sign.end(); + * const signature = sign.sign(privateKey, 'hex'); + * + * const verify = createVerify('SHA256'); + * verify.write('some data to sign'); + * verify.end(); + * console.log(verify.verify(publicKey, signature, 'hex')); + * // Prints: true + * ``` + * + * Example: Using the `sign.update()` and `verify.update()` methods: + * + * ```js + * const { + * generateKeyPairSync, + * createSign, + * createVerify, + * } = await import('node:crypto'); + * + * const { privateKey, publicKey } = generateKeyPairSync('rsa', { + * modulusLength: 2048, + * }); + * + * const sign = createSign('SHA256'); + * sign.update('some data to sign'); + * sign.end(); + * const signature = sign.sign(privateKey); + * + * const verify = createVerify('SHA256'); + * verify.update('some data to sign'); + * verify.end(); + * console.log(verify.verify(publicKey, signature)); + * // Prints: true + * ``` + * @since v0.1.92 + */ + class Sign extends stream.Writable { + private constructor(); + /** + * Updates the `Sign` content with the given `data`, the encoding of which + * is given in `inputEncoding`. + * If `encoding` is not provided, and the `data` is a string, an + * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored. + * + * This can be called many times with new data as it is streamed. + * @since v0.1.92 + * @param inputEncoding The `encoding` of the `data` string. + */ + update(data: BinaryLike): this; + update(data: string, inputEncoding: Encoding): this; + /** + * Calculates the signature on all the data passed through using either `sign.update()` or `sign.write()`. + * + * If `privateKey` is not a `KeyObject`, this function behaves as if `privateKey` had been passed to {@link createPrivateKey}. If it is an + * object, the following additional properties can be passed: + * + * If `outputEncoding` is provided a string is returned; otherwise a `Buffer` is returned. + * + * The `Sign` object can not be again used after `sign.sign()` method has been + * called. Multiple calls to `sign.sign()` will result in an error being thrown. + * @since v0.1.92 + */ + sign(privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput): NonSharedBuffer; + sign( + privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput, + outputFormat: BinaryToTextEncoding, + ): string; + } + /** + * Creates and returns a `Verify` object that uses the given algorithm. + * Use {@link getHashes} to obtain an array of names of the available + * signing algorithms. Optional `options` argument controls the `stream.Writable` behavior. + * + * In some cases, a `Verify` instance can be created using the name of a signature + * algorithm, such as `'RSA-SHA256'`, instead of a digest algorithm. This will use + * the corresponding digest algorithm. This does not work for all signature + * algorithms, such as `'ecdsa-with-SHA256'`, so it is best to always use digest + * algorithm names. + * @since v0.1.92 + * @param options `stream.Writable` options + */ + function createVerify(algorithm: string, options?: stream.WritableOptions): Verify; + /** + * The `Verify` class is a utility for verifying signatures. It can be used in one + * of two ways: + * + * * As a writable `stream` where written data is used to validate against the + * supplied signature, or + * * Using the `verify.update()` and `verify.verify()` methods to verify + * the signature. + * + * The {@link createVerify} method is used to create `Verify` instances. `Verify` objects are not to be created directly using the `new` keyword. + * + * See `Sign` for examples. + * @since v0.1.92 + */ + class Verify extends stream.Writable { + private constructor(); + /** + * Updates the `Verify` content with the given `data`, the encoding of which + * is given in `inputEncoding`. + * If `inputEncoding` is not provided, and the `data` is a string, an + * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or `DataView`, then `inputEncoding` is ignored. + * + * This can be called many times with new data as it is streamed. + * @since v0.1.92 + * @param inputEncoding The `encoding` of the `data` string. + */ + update(data: BinaryLike): Verify; + update(data: string, inputEncoding: Encoding): Verify; + /** + * Verifies the provided data using the given `object` and `signature`. + * + * If `object` is not a `KeyObject`, this function behaves as if `object` had been passed to {@link createPublicKey}. If it is an + * object, the following additional properties can be passed: + * + * The `signature` argument is the previously calculated signature for the data, in + * the `signatureEncoding`. + * If a `signatureEncoding` is specified, the `signature` is expected to be a + * string; otherwise `signature` is expected to be a `Buffer`, `TypedArray`, or `DataView`. + * + * The `verify` object can not be used again after `verify.verify()` has been + * called. Multiple calls to `verify.verify()` will result in an error being + * thrown. + * + * Because public keys can be derived from private keys, a private key may + * be passed instead of a public key. + * @since v0.1.92 + */ + verify( + object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput, + signature: NodeJS.ArrayBufferView, + ): boolean; + verify( + object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput, + signature: string, + signature_format?: BinaryToTextEncoding, + ): boolean; + } + /** + * Creates a `DiffieHellman` key exchange object using the supplied `prime` and an + * optional specific `generator`. + * + * The `generator` argument can be a number, string, or `Buffer`. If `generator` is not specified, the value `2` is used. + * + * If `primeEncoding` is specified, `prime` is expected to be a string; otherwise + * a `Buffer`, `TypedArray`, or `DataView` is expected. + * + * If `generatorEncoding` is specified, `generator` is expected to be a string; + * otherwise a number, `Buffer`, `TypedArray`, or `DataView` is expected. + * @since v0.11.12 + * @param primeEncoding The `encoding` of the `prime` string. + * @param [generator=2] + * @param generatorEncoding The `encoding` of the `generator` string. + */ + function createDiffieHellman(primeLength: number, generator?: number): DiffieHellman; + function createDiffieHellman( + prime: ArrayBuffer | NodeJS.ArrayBufferView, + generator?: number | ArrayBuffer | NodeJS.ArrayBufferView, + ): DiffieHellman; + function createDiffieHellman( + prime: ArrayBuffer | NodeJS.ArrayBufferView, + generator: string, + generatorEncoding: BinaryToTextEncoding, + ): DiffieHellman; + function createDiffieHellman( + prime: string, + primeEncoding: BinaryToTextEncoding, + generator?: number | ArrayBuffer | NodeJS.ArrayBufferView, + ): DiffieHellman; + function createDiffieHellman( + prime: string, + primeEncoding: BinaryToTextEncoding, + generator: string, + generatorEncoding: BinaryToTextEncoding, + ): DiffieHellman; + /** + * The `DiffieHellman` class is a utility for creating Diffie-Hellman key + * exchanges. + * + * Instances of the `DiffieHellman` class can be created using the {@link createDiffieHellman} function. + * + * ```js + * import assert from 'node:assert'; + * + * const { + * createDiffieHellman, + * } = await import('node:crypto'); + * + * // Generate Alice's keys... + * const alice = createDiffieHellman(2048); + * const aliceKey = alice.generateKeys(); + * + * // Generate Bob's keys... + * const bob = createDiffieHellman(alice.getPrime(), alice.getGenerator()); + * const bobKey = bob.generateKeys(); + * + * // Exchange and generate the secret... + * const aliceSecret = alice.computeSecret(bobKey); + * const bobSecret = bob.computeSecret(aliceKey); + * + * // OK + * assert.strictEqual(aliceSecret.toString('hex'), bobSecret.toString('hex')); + * ``` + * @since v0.5.0 + */ + class DiffieHellman { + private constructor(); + /** + * Generates private and public Diffie-Hellman key values unless they have been + * generated or computed already, and returns + * the public key in the specified `encoding`. This key should be + * transferred to the other party. + * If `encoding` is provided a string is returned; otherwise a `Buffer` is returned. + * + * This function is a thin wrapper around [`DH_generate_key()`](https://www.openssl.org/docs/man3.0/man3/DH_generate_key.html). In particular, + * once a private key has been generated or set, calling this function only updates + * the public key but does not generate a new private key. + * @since v0.5.0 + * @param encoding The `encoding` of the return value. + */ + generateKeys(): NonSharedBuffer; + generateKeys(encoding: BinaryToTextEncoding): string; + /** + * Computes the shared secret using `otherPublicKey` as the other + * party's public key and returns the computed shared secret. The supplied + * key is interpreted using the specified `inputEncoding`, and secret is + * encoded using specified `outputEncoding`. + * If the `inputEncoding` is not + * provided, `otherPublicKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`. + * + * If `outputEncoding` is given a string is returned; otherwise, a `Buffer` is returned. + * @since v0.5.0 + * @param inputEncoding The `encoding` of an `otherPublicKey` string. + * @param outputEncoding The `encoding` of the return value. + */ + computeSecret( + otherPublicKey: NodeJS.ArrayBufferView, + inputEncoding?: null, + outputEncoding?: null, + ): NonSharedBuffer; + computeSecret( + otherPublicKey: string, + inputEncoding: BinaryToTextEncoding, + outputEncoding?: null, + ): NonSharedBuffer; + computeSecret( + otherPublicKey: NodeJS.ArrayBufferView, + inputEncoding: null, + outputEncoding: BinaryToTextEncoding, + ): string; + computeSecret( + otherPublicKey: string, + inputEncoding: BinaryToTextEncoding, + outputEncoding: BinaryToTextEncoding, + ): string; + /** + * Returns the Diffie-Hellman prime in the specified `encoding`. + * If `encoding` is provided a string is + * returned; otherwise a `Buffer` is returned. + * @since v0.5.0 + * @param encoding The `encoding` of the return value. + */ + getPrime(): NonSharedBuffer; + getPrime(encoding: BinaryToTextEncoding): string; + /** + * Returns the Diffie-Hellman generator in the specified `encoding`. + * If `encoding` is provided a string is + * returned; otherwise a `Buffer` is returned. + * @since v0.5.0 + * @param encoding The `encoding` of the return value. + */ + getGenerator(): NonSharedBuffer; + getGenerator(encoding: BinaryToTextEncoding): string; + /** + * Returns the Diffie-Hellman public key in the specified `encoding`. + * If `encoding` is provided a + * string is returned; otherwise a `Buffer` is returned. + * @since v0.5.0 + * @param encoding The `encoding` of the return value. + */ + getPublicKey(): NonSharedBuffer; + getPublicKey(encoding: BinaryToTextEncoding): string; + /** + * Returns the Diffie-Hellman private key in the specified `encoding`. + * If `encoding` is provided a + * string is returned; otherwise a `Buffer` is returned. + * @since v0.5.0 + * @param encoding The `encoding` of the return value. + */ + getPrivateKey(): NonSharedBuffer; + getPrivateKey(encoding: BinaryToTextEncoding): string; + /** + * Sets the Diffie-Hellman public key. If the `encoding` argument is provided, `publicKey` is expected + * to be a string. If no `encoding` is provided, `publicKey` is expected + * to be a `Buffer`, `TypedArray`, or `DataView`. + * @since v0.5.0 + * @param encoding The `encoding` of the `publicKey` string. + */ + setPublicKey(publicKey: NodeJS.ArrayBufferView): void; + setPublicKey(publicKey: string, encoding: BufferEncoding): void; + /** + * Sets the Diffie-Hellman private key. If the `encoding` argument is provided,`privateKey` is expected + * to be a string. If no `encoding` is provided, `privateKey` is expected + * to be a `Buffer`, `TypedArray`, or `DataView`. + * + * This function does not automatically compute the associated public key. Either `diffieHellman.setPublicKey()` or `diffieHellman.generateKeys()` can be + * used to manually provide the public key or to automatically derive it. + * @since v0.5.0 + * @param encoding The `encoding` of the `privateKey` string. + */ + setPrivateKey(privateKey: NodeJS.ArrayBufferView): void; + setPrivateKey(privateKey: string, encoding: BufferEncoding): void; + /** + * A bit field containing any warnings and/or errors resulting from a check + * performed during initialization of the `DiffieHellman` object. + * + * The following values are valid for this property (as defined in `node:constants` module): + * + * * `DH_CHECK_P_NOT_SAFE_PRIME` + * * `DH_CHECK_P_NOT_PRIME` + * * `DH_UNABLE_TO_CHECK_GENERATOR` + * * `DH_NOT_SUITABLE_GENERATOR` + * @since v0.11.12 + */ + verifyError: number; + } + /** + * The `DiffieHellmanGroup` class takes a well-known modp group as its argument. + * It works the same as `DiffieHellman`, except that it does not allow changing its keys after creation. + * In other words, it does not implement `setPublicKey()` or `setPrivateKey()` methods. + * + * ```js + * const { createDiffieHellmanGroup } = await import('node:crypto'); + * const dh = createDiffieHellmanGroup('modp1'); + * ``` + * The name (e.g. `'modp1'`) is taken from [RFC 2412](https://www.rfc-editor.org/rfc/rfc2412.txt) (modp1 and 2) and [RFC 3526](https://www.rfc-editor.org/rfc/rfc3526.txt): + * ```bash + * $ perl -ne 'print "$1\n" if /"(modp\d+)"/' src/node_crypto_groups.h + * modp1 # 768 bits + * modp2 # 1024 bits + * modp5 # 1536 bits + * modp14 # 2048 bits + * modp15 # etc. + * modp16 + * modp17 + * modp18 + * ``` + * @since v0.7.5 + */ + const DiffieHellmanGroup: DiffieHellmanGroupConstructor; + interface DiffieHellmanGroupConstructor { + new(name: string): DiffieHellmanGroup; + (name: string): DiffieHellmanGroup; + readonly prototype: DiffieHellmanGroup; + } + type DiffieHellmanGroup = Omit; + /** + * Creates a predefined `DiffieHellmanGroup` key exchange object. The + * supported groups are listed in the documentation for `DiffieHellmanGroup`. + * + * The returned object mimics the interface of objects created by {@link createDiffieHellman}, but will not allow changing + * the keys (with `diffieHellman.setPublicKey()`, for example). The + * advantage of using this method is that the parties do not have to + * generate nor exchange a group modulus beforehand, saving both processor + * and communication time. + * + * Example (obtaining a shared secret): + * + * ```js + * const { + * getDiffieHellman, + * } = await import('node:crypto'); + * const alice = getDiffieHellman('modp14'); + * const bob = getDiffieHellman('modp14'); + * + * alice.generateKeys(); + * bob.generateKeys(); + * + * const aliceSecret = alice.computeSecret(bob.getPublicKey(), null, 'hex'); + * const bobSecret = bob.computeSecret(alice.getPublicKey(), null, 'hex'); + * + * // aliceSecret and bobSecret should be the same + * console.log(aliceSecret === bobSecret); + * ``` + * @since v0.7.5 + */ + function getDiffieHellman(groupName: string): DiffieHellmanGroup; + /** + * An alias for {@link getDiffieHellman} + * @since v0.9.3 + */ + function createDiffieHellmanGroup(name: string): DiffieHellmanGroup; + /** + * Provides an asynchronous Password-Based Key Derivation Function 2 (PBKDF2) + * implementation. A selected HMAC digest algorithm specified by `digest` is + * applied to derive a key of the requested byte length (`keylen`) from the `password`, `salt` and `iterations`. + * + * The supplied `callback` function is called with two arguments: `err` and `derivedKey`. If an error occurs while deriving the key, `err` will be set; + * otherwise `err` will be `null`. By default, the successfully generated `derivedKey` will be passed to the callback as a `Buffer`. An error will be + * thrown if any of the input arguments specify invalid values or types. + * + * The `iterations` argument must be a number set as high as possible. The + * higher the number of iterations, the more secure the derived key will be, + * but will take a longer amount of time to complete. + * + * The `salt` should be as unique as possible. It is recommended that a salt is + * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details. + * + * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`. + * + * ```js + * const { + * pbkdf2, + * } = await import('node:crypto'); + * + * pbkdf2('secret', 'salt', 100000, 64, 'sha512', (err, derivedKey) => { + * if (err) throw err; + * console.log(derivedKey.toString('hex')); // '3745e48...08d59ae' + * }); + * ``` + * + * An array of supported digest functions can be retrieved using {@link getHashes}. + * + * This API uses libuv's threadpool, which can have surprising and + * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information. + * @since v0.5.5 + */ + function pbkdf2( + password: BinaryLike, + salt: BinaryLike, + iterations: number, + keylen: number, + digest: string, + callback: (err: Error | null, derivedKey: NonSharedBuffer) => void, + ): void; + /** + * Provides a synchronous Password-Based Key Derivation Function 2 (PBKDF2) + * implementation. A selected HMAC digest algorithm specified by `digest` is + * applied to derive a key of the requested byte length (`keylen`) from the `password`, `salt` and `iterations`. + * + * If an error occurs an `Error` will be thrown, otherwise the derived key will be + * returned as a `Buffer`. + * + * The `iterations` argument must be a number set as high as possible. The + * higher the number of iterations, the more secure the derived key will be, + * but will take a longer amount of time to complete. + * + * The `salt` should be as unique as possible. It is recommended that a salt is + * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details. + * + * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`. + * + * ```js + * const { + * pbkdf2Sync, + * } = await import('node:crypto'); + * + * const key = pbkdf2Sync('secret', 'salt', 100000, 64, 'sha512'); + * console.log(key.toString('hex')); // '3745e48...08d59ae' + * ``` + * + * An array of supported digest functions can be retrieved using {@link getHashes}. + * @since v0.9.3 + */ + function pbkdf2Sync( + password: BinaryLike, + salt: BinaryLike, + iterations: number, + keylen: number, + digest: string, + ): NonSharedBuffer; + /** + * Generates cryptographically strong pseudorandom data. The `size` argument + * is a number indicating the number of bytes to generate. + * + * If a `callback` function is provided, the bytes are generated asynchronously + * and the `callback` function is invoked with two arguments: `err` and `buf`. + * If an error occurs, `err` will be an `Error` object; otherwise it is `null`. The `buf` argument is a `Buffer` containing the generated bytes. + * + * ```js + * // Asynchronous + * const { + * randomBytes, + * } = await import('node:crypto'); + * + * randomBytes(256, (err, buf) => { + * if (err) throw err; + * console.log(`${buf.length} bytes of random data: ${buf.toString('hex')}`); + * }); + * ``` + * + * If the `callback` function is not provided, the random bytes are generated + * synchronously and returned as a `Buffer`. An error will be thrown if + * there is a problem generating the bytes. + * + * ```js + * // Synchronous + * const { + * randomBytes, + * } = await import('node:crypto'); + * + * const buf = randomBytes(256); + * console.log( + * `${buf.length} bytes of random data: ${buf.toString('hex')}`); + * ``` + * + * The `crypto.randomBytes()` method will not complete until there is + * sufficient entropy available. + * This should normally never take longer than a few milliseconds. The only time + * when generating the random bytes may conceivably block for a longer period of + * time is right after boot, when the whole system is still low on entropy. + * + * This API uses libuv's threadpool, which can have surprising and + * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information. + * + * The asynchronous version of `crypto.randomBytes()` is carried out in a single + * threadpool request. To minimize threadpool task length variation, partition + * large `randomBytes` requests when doing so as part of fulfilling a client + * request. + * @since v0.5.8 + * @param size The number of bytes to generate. The `size` must not be larger than `2**31 - 1`. + * @return if the `callback` function is not provided. + */ + function randomBytes(size: number): NonSharedBuffer; + function randomBytes(size: number, callback: (err: Error | null, buf: NonSharedBuffer) => void): void; + function pseudoRandomBytes(size: number): NonSharedBuffer; + function pseudoRandomBytes(size: number, callback: (err: Error | null, buf: NonSharedBuffer) => void): void; + /** + * Return a random integer `n` such that `min <= n < max`. This + * implementation avoids [modulo bias](https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#Modulo_bias). + * + * The range (`max - min`) must be less than 2**48. `min` and `max` must + * be [safe integers](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger). + * + * If the `callback` function is not provided, the random integer is + * generated synchronously. + * + * ```js + * // Asynchronous + * const { + * randomInt, + * } = await import('node:crypto'); + * + * randomInt(3, (err, n) => { + * if (err) throw err; + * console.log(`Random number chosen from (0, 1, 2): ${n}`); + * }); + * ``` + * + * ```js + * // Synchronous + * const { + * randomInt, + * } = await import('node:crypto'); + * + * const n = randomInt(3); + * console.log(`Random number chosen from (0, 1, 2): ${n}`); + * ``` + * + * ```js + * // With `min` argument + * const { + * randomInt, + * } = await import('node:crypto'); + * + * const n = randomInt(1, 7); + * console.log(`The dice rolled: ${n}`); + * ``` + * @since v14.10.0, v12.19.0 + * @param [min=0] Start of random range (inclusive). + * @param max End of random range (exclusive). + * @param callback `function(err, n) {}`. + */ + function randomInt(max: number): number; + function randomInt(min: number, max: number): number; + function randomInt(max: number, callback: (err: Error | null, value: number) => void): void; + function randomInt(min: number, max: number, callback: (err: Error | null, value: number) => void): void; + /** + * Synchronous version of {@link randomFill}. + * + * ```js + * import { Buffer } from 'node:buffer'; + * const { randomFillSync } = await import('node:crypto'); + * + * const buf = Buffer.alloc(10); + * console.log(randomFillSync(buf).toString('hex')); + * + * randomFillSync(buf, 5); + * console.log(buf.toString('hex')); + * + * // The above is equivalent to the following: + * randomFillSync(buf, 5, 5); + * console.log(buf.toString('hex')); + * ``` + * + * Any `ArrayBuffer`, `TypedArray` or `DataView` instance may be passed as`buffer`. + * + * ```js + * import { Buffer } from 'node:buffer'; + * const { randomFillSync } = await import('node:crypto'); + * + * const a = new Uint32Array(10); + * console.log(Buffer.from(randomFillSync(a).buffer, + * a.byteOffset, a.byteLength).toString('hex')); + * + * const b = new DataView(new ArrayBuffer(10)); + * console.log(Buffer.from(randomFillSync(b).buffer, + * b.byteOffset, b.byteLength).toString('hex')); + * + * const c = new ArrayBuffer(10); + * console.log(Buffer.from(randomFillSync(c)).toString('hex')); + * ``` + * @since v7.10.0, v6.13.0 + * @param buffer Must be supplied. The size of the provided `buffer` must not be larger than `2**31 - 1`. + * @param [offset=0] + * @param [size=buffer.length - offset] + * @return The object passed as `buffer` argument. + */ + function randomFillSync(buffer: T, offset?: number, size?: number): T; + /** + * This function is similar to {@link randomBytes} but requires the first + * argument to be a `Buffer` that will be filled. It also + * requires that a callback is passed in. + * + * If the `callback` function is not provided, an error will be thrown. + * + * ```js + * import { Buffer } from 'node:buffer'; + * const { randomFill } = await import('node:crypto'); + * + * const buf = Buffer.alloc(10); + * randomFill(buf, (err, buf) => { + * if (err) throw err; + * console.log(buf.toString('hex')); + * }); + * + * randomFill(buf, 5, (err, buf) => { + * if (err) throw err; + * console.log(buf.toString('hex')); + * }); + * + * // The above is equivalent to the following: + * randomFill(buf, 5, 5, (err, buf) => { + * if (err) throw err; + * console.log(buf.toString('hex')); + * }); + * ``` + * + * Any `ArrayBuffer`, `TypedArray`, or `DataView` instance may be passed as `buffer`. + * + * While this includes instances of `Float32Array` and `Float64Array`, this + * function should not be used to generate random floating-point numbers. The + * result may contain `+Infinity`, `-Infinity`, and `NaN`, and even if the array + * contains finite numbers only, they are not drawn from a uniform random + * distribution and have no meaningful lower or upper bounds. + * + * ```js + * import { Buffer } from 'node:buffer'; + * const { randomFill } = await import('node:crypto'); + * + * const a = new Uint32Array(10); + * randomFill(a, (err, buf) => { + * if (err) throw err; + * console.log(Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength) + * .toString('hex')); + * }); + * + * const b = new DataView(new ArrayBuffer(10)); + * randomFill(b, (err, buf) => { + * if (err) throw err; + * console.log(Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength) + * .toString('hex')); + * }); + * + * const c = new ArrayBuffer(10); + * randomFill(c, (err, buf) => { + * if (err) throw err; + * console.log(Buffer.from(buf).toString('hex')); + * }); + * ``` + * + * This API uses libuv's threadpool, which can have surprising and + * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information. + * + * The asynchronous version of `crypto.randomFill()` is carried out in a single + * threadpool request. To minimize threadpool task length variation, partition + * large `randomFill` requests when doing so as part of fulfilling a client + * request. + * @since v7.10.0, v6.13.0 + * @param buffer Must be supplied. The size of the provided `buffer` must not be larger than `2**31 - 1`. + * @param [offset=0] + * @param [size=buffer.length - offset] + * @param callback `function(err, buf) {}`. + */ + function randomFill( + buffer: T, + callback: (err: Error | null, buf: T) => void, + ): void; + function randomFill( + buffer: T, + offset: number, + callback: (err: Error | null, buf: T) => void, + ): void; + function randomFill( + buffer: T, + offset: number, + size: number, + callback: (err: Error | null, buf: T) => void, + ): void; + interface ScryptOptions { + cost?: number | undefined; + blockSize?: number | undefined; + parallelization?: number | undefined; + N?: number | undefined; + r?: number | undefined; + p?: number | undefined; + maxmem?: number | undefined; + } + /** + * Provides an asynchronous [scrypt](https://en.wikipedia.org/wiki/Scrypt) implementation. Scrypt is a password-based + * key derivation function that is designed to be expensive computationally and + * memory-wise in order to make brute-force attacks unrewarding. + * + * The `salt` should be as unique as possible. It is recommended that a salt is + * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details. + * + * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`. + * + * The `callback` function is called with two arguments: `err` and `derivedKey`. `err` is an exception object when key derivation fails, otherwise `err` is `null`. `derivedKey` is passed to the + * callback as a `Buffer`. + * + * An exception is thrown when any of the input arguments specify invalid values + * or types. + * + * ```js + * const { + * scrypt, + * } = await import('node:crypto'); + * + * // Using the factory defaults. + * scrypt('password', 'salt', 64, (err, derivedKey) => { + * if (err) throw err; + * console.log(derivedKey.toString('hex')); // '3745e48...08d59ae' + * }); + * // Using a custom N parameter. Must be a power of two. + * scrypt('password', 'salt', 64, { N: 1024 }, (err, derivedKey) => { + * if (err) throw err; + * console.log(derivedKey.toString('hex')); // '3745e48...aa39b34' + * }); + * ``` + * @since v10.5.0 + */ + function scrypt( + password: BinaryLike, + salt: BinaryLike, + keylen: number, + callback: (err: Error | null, derivedKey: NonSharedBuffer) => void, + ): void; + function scrypt( + password: BinaryLike, + salt: BinaryLike, + keylen: number, + options: ScryptOptions, + callback: (err: Error | null, derivedKey: NonSharedBuffer) => void, + ): void; + /** + * Provides a synchronous [scrypt](https://en.wikipedia.org/wiki/Scrypt) implementation. Scrypt is a password-based + * key derivation function that is designed to be expensive computationally and + * memory-wise in order to make brute-force attacks unrewarding. + * + * The `salt` should be as unique as possible. It is recommended that a salt is + * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details. + * + * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`. + * + * An exception is thrown when key derivation fails, otherwise the derived key is + * returned as a `Buffer`. + * + * An exception is thrown when any of the input arguments specify invalid values + * or types. + * + * ```js + * const { + * scryptSync, + * } = await import('node:crypto'); + * // Using the factory defaults. + * + * const key1 = scryptSync('password', 'salt', 64); + * console.log(key1.toString('hex')); // '3745e48...08d59ae' + * // Using a custom N parameter. Must be a power of two. + * const key2 = scryptSync('password', 'salt', 64, { N: 1024 }); + * console.log(key2.toString('hex')); // '3745e48...aa39b34' + * ``` + * @since v10.5.0 + */ + function scryptSync( + password: BinaryLike, + salt: BinaryLike, + keylen: number, + options?: ScryptOptions, + ): NonSharedBuffer; + interface RsaPublicKey { + key: KeyLike; + padding?: number | undefined; + } + interface RsaPrivateKey { + key: KeyLike; + passphrase?: string | undefined; + /** + * @default 'sha1' + */ + oaepHash?: string | undefined; + oaepLabel?: NodeJS.TypedArray | undefined; + padding?: number | undefined; + } + /** + * Encrypts the content of `buffer` with `key` and returns a new `Buffer` with encrypted content. The returned data can be decrypted using + * the corresponding private key, for example using {@link privateDecrypt}. + * + * If `key` is not a `KeyObject`, this function behaves as if `key` had been passed to {@link createPublicKey}. If it is an + * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_OAEP_PADDING`. + * + * Because RSA public keys can be derived from private keys, a private key may + * be passed instead of a public key. + * @since v0.11.14 + */ + function publicEncrypt( + key: RsaPublicKey | RsaPrivateKey | KeyLike, + buffer: NodeJS.ArrayBufferView, + ): NonSharedBuffer; + /** + * Decrypts `buffer` with `key`.`buffer` was previously encrypted using + * the corresponding private key, for example using {@link privateEncrypt}. + * + * If `key` is not a `KeyObject`, this function behaves as if `key` had been passed to {@link createPublicKey}. If it is an + * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_PADDING`. + * + * Because RSA public keys can be derived from private keys, a private key may + * be passed instead of a public key. + * @since v1.1.0 + */ + function publicDecrypt( + key: RsaPublicKey | RsaPrivateKey | KeyLike, + buffer: NodeJS.ArrayBufferView, + ): NonSharedBuffer; + /** + * Decrypts `buffer` with `privateKey`. `buffer` was previously encrypted using + * the corresponding public key, for example using {@link publicEncrypt}. + * + * If `privateKey` is not a `KeyObject`, this function behaves as if `privateKey` had been passed to {@link createPrivateKey}. If it is an + * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_OAEP_PADDING`. + * @since v0.11.14 + */ + function privateDecrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): NonSharedBuffer; + /** + * Encrypts `buffer` with `privateKey`. The returned data can be decrypted using + * the corresponding public key, for example using {@link publicDecrypt}. + * + * If `privateKey` is not a `KeyObject`, this function behaves as if `privateKey` had been passed to {@link createPrivateKey}. If it is an + * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_PADDING`. + * @since v1.1.0 + */ + function privateEncrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): NonSharedBuffer; + /** + * ```js + * const { + * getCiphers, + * } = await import('node:crypto'); + * + * console.log(getCiphers()); // ['aes-128-cbc', 'aes-128-ccm', ...] + * ``` + * @since v0.9.3 + * @return An array with the names of the supported cipher algorithms. + */ + function getCiphers(): string[]; + /** + * ```js + * const { + * getCurves, + * } = await import('node:crypto'); + * + * console.log(getCurves()); // ['Oakley-EC2N-3', 'Oakley-EC2N-4', ...] + * ``` + * @since v2.3.0 + * @return An array with the names of the supported elliptic curves. + */ + function getCurves(): string[]; + /** + * @since v10.0.0 + * @return `1` if and only if a FIPS compliant crypto provider is currently in use, `0` otherwise. A future semver-major release may change the return type of this API to a {boolean}. + */ + function getFips(): 1 | 0; + /** + * Enables the FIPS compliant crypto provider in a FIPS-enabled Node.js build. + * Throws an error if FIPS mode is not available. + * @since v10.0.0 + * @param bool `true` to enable FIPS mode. + */ + function setFips(bool: boolean): void; + /** + * ```js + * const { + * getHashes, + * } = await import('node:crypto'); + * + * console.log(getHashes()); // ['DSA', 'DSA-SHA', 'DSA-SHA1', ...] + * ``` + * @since v0.9.3 + * @return An array of the names of the supported hash algorithms, such as `'RSA-SHA256'`. Hash algorithms are also called "digest" algorithms. + */ + function getHashes(): string[]; + /** + * The `ECDH` class is a utility for creating Elliptic Curve Diffie-Hellman (ECDH) + * key exchanges. + * + * Instances of the `ECDH` class can be created using the {@link createECDH} function. + * + * ```js + * import assert from 'node:assert'; + * + * const { + * createECDH, + * } = await import('node:crypto'); + * + * // Generate Alice's keys... + * const alice = createECDH('secp521r1'); + * const aliceKey = alice.generateKeys(); + * + * // Generate Bob's keys... + * const bob = createECDH('secp521r1'); + * const bobKey = bob.generateKeys(); + * + * // Exchange and generate the secret... + * const aliceSecret = alice.computeSecret(bobKey); + * const bobSecret = bob.computeSecret(aliceKey); + * + * assert.strictEqual(aliceSecret.toString('hex'), bobSecret.toString('hex')); + * // OK + * ``` + * @since v0.11.14 + */ + class ECDH { + private constructor(); + /** + * Converts the EC Diffie-Hellman public key specified by `key` and `curve` to the + * format specified by `format`. The `format` argument specifies point encoding + * and can be `'compressed'`, `'uncompressed'` or `'hybrid'`. The supplied key is + * interpreted using the specified `inputEncoding`, and the returned key is encoded + * using the specified `outputEncoding`. + * + * Use {@link getCurves} to obtain a list of available curve names. + * On recent OpenSSL releases, `openssl ecparam -list_curves` will also display + * the name and description of each available elliptic curve. + * + * If `format` is not specified the point will be returned in `'uncompressed'` format. + * + * If the `inputEncoding` is not provided, `key` is expected to be a `Buffer`, `TypedArray`, or `DataView`. + * + * Example (uncompressing a key): + * + * ```js + * const { + * createECDH, + * ECDH, + * } = await import('node:crypto'); + * + * const ecdh = createECDH('secp256k1'); + * ecdh.generateKeys(); + * + * const compressedKey = ecdh.getPublicKey('hex', 'compressed'); + * + * const uncompressedKey = ECDH.convertKey(compressedKey, + * 'secp256k1', + * 'hex', + * 'hex', + * 'uncompressed'); + * + * // The converted key and the uncompressed public key should be the same + * console.log(uncompressedKey === ecdh.getPublicKey('hex')); + * ``` + * @since v10.0.0 + * @param inputEncoding The `encoding` of the `key` string. + * @param outputEncoding The `encoding` of the return value. + * @param [format='uncompressed'] + */ + static convertKey( + key: BinaryLike, + curve: string, + inputEncoding?: BinaryToTextEncoding, + outputEncoding?: "latin1" | "hex" | "base64" | "base64url", + format?: "uncompressed" | "compressed" | "hybrid", + ): NonSharedBuffer | string; + /** + * Generates private and public EC Diffie-Hellman key values, and returns + * the public key in the specified `format` and `encoding`. This key should be + * transferred to the other party. + * + * The `format` argument specifies point encoding and can be `'compressed'` or `'uncompressed'`. If `format` is not specified, the point will be returned in`'uncompressed'` format. + * + * If `encoding` is provided a string is returned; otherwise a `Buffer` is returned. + * @since v0.11.14 + * @param encoding The `encoding` of the return value. + * @param [format='uncompressed'] + */ + generateKeys(): NonSharedBuffer; + generateKeys(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string; + /** + * Computes the shared secret using `otherPublicKey` as the other + * party's public key and returns the computed shared secret. The supplied + * key is interpreted using specified `inputEncoding`, and the returned secret + * is encoded using the specified `outputEncoding`. + * If the `inputEncoding` is not + * provided, `otherPublicKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`. + * + * If `outputEncoding` is given a string will be returned; otherwise a `Buffer` is returned. + * + * `ecdh.computeSecret` will throw an`ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY` error when `otherPublicKey` lies outside of the elliptic curve. Since `otherPublicKey` is + * usually supplied from a remote user over an insecure network, + * be sure to handle this exception accordingly. + * @since v0.11.14 + * @param inputEncoding The `encoding` of the `otherPublicKey` string. + * @param outputEncoding The `encoding` of the return value. + */ + computeSecret(otherPublicKey: NodeJS.ArrayBufferView): NonSharedBuffer; + computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding): NonSharedBuffer; + computeSecret(otherPublicKey: NodeJS.ArrayBufferView, outputEncoding: BinaryToTextEncoding): string; + computeSecret( + otherPublicKey: string, + inputEncoding: BinaryToTextEncoding, + outputEncoding: BinaryToTextEncoding, + ): string; + /** + * If `encoding` is specified, a string is returned; otherwise a `Buffer` is + * returned. + * @since v0.11.14 + * @param encoding The `encoding` of the return value. + * @return The EC Diffie-Hellman in the specified `encoding`. + */ + getPrivateKey(): NonSharedBuffer; + getPrivateKey(encoding: BinaryToTextEncoding): string; + /** + * The `format` argument specifies point encoding and can be `'compressed'` or `'uncompressed'`. If `format` is not specified the point will be returned in`'uncompressed'` format. + * + * If `encoding` is specified, a string is returned; otherwise a `Buffer` is + * returned. + * @since v0.11.14 + * @param encoding The `encoding` of the return value. + * @param [format='uncompressed'] + * @return The EC Diffie-Hellman public key in the specified `encoding` and `format`. + */ + getPublicKey(encoding?: null, format?: ECDHKeyFormat): NonSharedBuffer; + getPublicKey(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string; + /** + * Sets the EC Diffie-Hellman private key. + * If `encoding` is provided, `privateKey` is expected + * to be a string; otherwise `privateKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`. + * + * If `privateKey` is not valid for the curve specified when the `ECDH` object was + * created, an error is thrown. Upon setting the private key, the associated + * public point (key) is also generated and set in the `ECDH` object. + * @since v0.11.14 + * @param encoding The `encoding` of the `privateKey` string. + */ + setPrivateKey(privateKey: NodeJS.ArrayBufferView): void; + setPrivateKey(privateKey: string, encoding: BinaryToTextEncoding): void; + } + /** + * Creates an Elliptic Curve Diffie-Hellman (`ECDH`) key exchange object using a + * predefined curve specified by the `curveName` string. Use {@link getCurves} to obtain a list of available curve names. On recent + * OpenSSL releases, `openssl ecparam -list_curves` will also display the name + * and description of each available elliptic curve. + * @since v0.11.14 + */ + function createECDH(curveName: string): ECDH; + /** + * This function compares the underlying bytes that represent the given `ArrayBuffer`, `TypedArray`, or `DataView` instances using a constant-time + * algorithm. + * + * This function does not leak timing information that + * would allow an attacker to guess one of the values. This is suitable for + * comparing HMAC digests or secret values like authentication cookies or [capability urls](https://www.w3.org/TR/capability-urls/). + * + * `a` and `b` must both be `Buffer`s, `TypedArray`s, or `DataView`s, and they + * must have the same byte length. An error is thrown if `a` and `b` have + * different byte lengths. + * + * If at least one of `a` and `b` is a `TypedArray` with more than one byte per + * entry, such as `Uint16Array`, the result will be computed using the platform + * byte order. + * + * **When both of the inputs are `Float32Array`s or `Float64Array`s, this function might return unexpected results due to IEEE 754** + * **encoding of floating-point numbers. In particular, neither `x === y` nor `Object.is(x, y)` implies that the byte representations of two floating-point** + * **numbers `x` and `y` are equal.** + * + * Use of `crypto.timingSafeEqual` does not guarantee that the _surrounding_ code + * is timing-safe. Care should be taken to ensure that the surrounding code does + * not introduce timing vulnerabilities. + * @since v6.6.0 + */ + function timingSafeEqual(a: NodeJS.ArrayBufferView, b: NodeJS.ArrayBufferView): boolean; + type KeyType = "rsa" | "rsa-pss" | "dsa" | "ec" | "ed25519" | "ed448" | "x25519" | "x448"; + type KeyFormat = "pem" | "der" | "jwk"; + interface BasePrivateKeyEncodingOptions { + format: T; + cipher?: string | undefined; + passphrase?: string | undefined; + } + interface KeyPairKeyObjectResult { + publicKey: KeyObject; + privateKey: KeyObject; + } + interface ED25519KeyPairKeyObjectOptions {} + interface ED448KeyPairKeyObjectOptions {} + interface X25519KeyPairKeyObjectOptions {} + interface X448KeyPairKeyObjectOptions {} + interface ECKeyPairKeyObjectOptions { + /** + * Name of the curve to use + */ + namedCurve: string; + /** + * Must be `'named'` or `'explicit'`. Default: `'named'`. + */ + paramEncoding?: "explicit" | "named" | undefined; + } + interface RSAKeyPairKeyObjectOptions { + /** + * Key size in bits + */ + modulusLength: number; + /** + * Public exponent + * @default 0x10001 + */ + publicExponent?: number | undefined; + } + interface RSAPSSKeyPairKeyObjectOptions { + /** + * Key size in bits + */ + modulusLength: number; + /** + * Public exponent + * @default 0x10001 + */ + publicExponent?: number | undefined; + /** + * Name of the message digest + */ + hashAlgorithm?: string | undefined; + /** + * Name of the message digest used by MGF1 + */ + mgf1HashAlgorithm?: string | undefined; + /** + * Minimal salt length in bytes + */ + saltLength?: string | undefined; + } + interface DSAKeyPairKeyObjectOptions { + /** + * Key size in bits + */ + modulusLength: number; + /** + * Size of q in bits + */ + divisorLength: number; + } + interface RSAKeyPairOptions { + /** + * Key size in bits + */ + modulusLength: number; + /** + * Public exponent + * @default 0x10001 + */ + publicExponent?: number | undefined; + publicKeyEncoding: { + type: "pkcs1" | "spki"; + format: PubF; + }; + privateKeyEncoding: BasePrivateKeyEncodingOptions & { + type: "pkcs1" | "pkcs8"; + }; + } + interface RSAPSSKeyPairOptions { + /** + * Key size in bits + */ + modulusLength: number; + /** + * Public exponent + * @default 0x10001 + */ + publicExponent?: number | undefined; + /** + * Name of the message digest + */ + hashAlgorithm?: string | undefined; + /** + * Name of the message digest used by MGF1 + */ + mgf1HashAlgorithm?: string | undefined; + /** + * Minimal salt length in bytes + */ + saltLength?: string | undefined; + publicKeyEncoding: { + type: "spki"; + format: PubF; + }; + privateKeyEncoding: BasePrivateKeyEncodingOptions & { + type: "pkcs8"; + }; + } + interface DSAKeyPairOptions { + /** + * Key size in bits + */ + modulusLength: number; + /** + * Size of q in bits + */ + divisorLength: number; + publicKeyEncoding: { + type: "spki"; + format: PubF; + }; + privateKeyEncoding: BasePrivateKeyEncodingOptions & { + type: "pkcs8"; + }; + } + interface ECKeyPairOptions extends ECKeyPairKeyObjectOptions { + publicKeyEncoding: { + type: "pkcs1" | "spki"; + format: PubF; + }; + privateKeyEncoding: BasePrivateKeyEncodingOptions & { + type: "sec1" | "pkcs8"; + }; + } + interface ED25519KeyPairOptions { + publicKeyEncoding: { + type: "spki"; + format: PubF; + }; + privateKeyEncoding: BasePrivateKeyEncodingOptions & { + type: "pkcs8"; + }; + } + interface ED448KeyPairOptions { + publicKeyEncoding: { + type: "spki"; + format: PubF; + }; + privateKeyEncoding: BasePrivateKeyEncodingOptions & { + type: "pkcs8"; + }; + } + interface X25519KeyPairOptions { + publicKeyEncoding: { + type: "spki"; + format: PubF; + }; + privateKeyEncoding: BasePrivateKeyEncodingOptions & { + type: "pkcs8"; + }; + } + interface X448KeyPairOptions { + publicKeyEncoding: { + type: "spki"; + format: PubF; + }; + privateKeyEncoding: BasePrivateKeyEncodingOptions & { + type: "pkcs8"; + }; + } + interface KeyPairSyncResult { + publicKey: T1; + privateKey: T2; + } + /** + * Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC, + * Ed25519, Ed448, X25519, X448, and DH are currently supported. + * + * If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function + * behaves as if `keyObject.export()` had been called on its result. Otherwise, + * the respective part of the key is returned as a `KeyObject`. + * + * When encoding public keys, it is recommended to use `'spki'`. When encoding + * private keys, it is recommended to use `'pkcs8'` with a strong passphrase, + * and to keep the passphrase confidential. + * + * ```js + * const { + * generateKeyPairSync, + * } = await import('node:crypto'); + * + * const { + * publicKey, + * privateKey, + * } = generateKeyPairSync('rsa', { + * modulusLength: 4096, + * publicKeyEncoding: { + * type: 'spki', + * format: 'pem', + * }, + * privateKeyEncoding: { + * type: 'pkcs8', + * format: 'pem', + * cipher: 'aes-256-cbc', + * passphrase: 'top secret', + * }, + * }); + * ``` + * + * The return value `{ publicKey, privateKey }` represents the generated key pair. + * When PEM encoding was selected, the respective key will be a string, otherwise + * it will be a buffer containing the data encoded as DER. + * @since v10.12.0 + * @param type Must be `'rsa'`, `'rsa-pss'`, `'dsa'`, `'ec'`, `'ed25519'`, `'ed448'`, `'x25519'`, `'x448'`, or `'dh'`. + */ + function generateKeyPairSync( + type: "rsa", + options: RSAKeyPairOptions<"pem", "pem">, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: "rsa", + options: RSAKeyPairOptions<"pem", "der">, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: "rsa", + options: RSAKeyPairOptions<"der", "pem">, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: "rsa", + options: RSAKeyPairOptions<"der", "der">, + ): KeyPairSyncResult; + function generateKeyPairSync(type: "rsa", options: RSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult; + function generateKeyPairSync( + type: "rsa-pss", + options: RSAPSSKeyPairOptions<"pem", "pem">, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: "rsa-pss", + options: RSAPSSKeyPairOptions<"pem", "der">, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: "rsa-pss", + options: RSAPSSKeyPairOptions<"der", "pem">, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: "rsa-pss", + options: RSAPSSKeyPairOptions<"der", "der">, + ): KeyPairSyncResult; + function generateKeyPairSync(type: "rsa-pss", options: RSAPSSKeyPairKeyObjectOptions): KeyPairKeyObjectResult; + function generateKeyPairSync( + type: "dsa", + options: DSAKeyPairOptions<"pem", "pem">, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: "dsa", + options: DSAKeyPairOptions<"pem", "der">, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: "dsa", + options: DSAKeyPairOptions<"der", "pem">, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: "dsa", + options: DSAKeyPairOptions<"der", "der">, + ): KeyPairSyncResult; + function generateKeyPairSync(type: "dsa", options: DSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult; + function generateKeyPairSync( + type: "ec", + options: ECKeyPairOptions<"pem", "pem">, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: "ec", + options: ECKeyPairOptions<"pem", "der">, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: "ec", + options: ECKeyPairOptions<"der", "pem">, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: "ec", + options: ECKeyPairOptions<"der", "der">, + ): KeyPairSyncResult; + function generateKeyPairSync(type: "ec", options: ECKeyPairKeyObjectOptions): KeyPairKeyObjectResult; + function generateKeyPairSync( + type: "ed25519", + options: ED25519KeyPairOptions<"pem", "pem">, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: "ed25519", + options: ED25519KeyPairOptions<"pem", "der">, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: "ed25519", + options: ED25519KeyPairOptions<"der", "pem">, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: "ed25519", + options: ED25519KeyPairOptions<"der", "der">, + ): KeyPairSyncResult; + function generateKeyPairSync(type: "ed25519", options?: ED25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult; + function generateKeyPairSync( + type: "ed448", + options: ED448KeyPairOptions<"pem", "pem">, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: "ed448", + options: ED448KeyPairOptions<"pem", "der">, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: "ed448", + options: ED448KeyPairOptions<"der", "pem">, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: "ed448", + options: ED448KeyPairOptions<"der", "der">, + ): KeyPairSyncResult; + function generateKeyPairSync(type: "ed448", options?: ED448KeyPairKeyObjectOptions): KeyPairKeyObjectResult; + function generateKeyPairSync( + type: "x25519", + options: X25519KeyPairOptions<"pem", "pem">, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: "x25519", + options: X25519KeyPairOptions<"pem", "der">, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: "x25519", + options: X25519KeyPairOptions<"der", "pem">, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: "x25519", + options: X25519KeyPairOptions<"der", "der">, + ): KeyPairSyncResult; + function generateKeyPairSync(type: "x25519", options?: X25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult; + function generateKeyPairSync( + type: "x448", + options: X448KeyPairOptions<"pem", "pem">, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: "x448", + options: X448KeyPairOptions<"pem", "der">, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: "x448", + options: X448KeyPairOptions<"der", "pem">, + ): KeyPairSyncResult; + function generateKeyPairSync( + type: "x448", + options: X448KeyPairOptions<"der", "der">, + ): KeyPairSyncResult; + function generateKeyPairSync(type: "x448", options?: X448KeyPairKeyObjectOptions): KeyPairKeyObjectResult; + /** + * Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC, + * Ed25519, Ed448, X25519, X448, and DH are currently supported. + * + * If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function + * behaves as if `keyObject.export()` had been called on its result. Otherwise, + * the respective part of the key is returned as a `KeyObject`. + * + * It is recommended to encode public keys as `'spki'` and private keys as `'pkcs8'` with encryption for long-term storage: + * + * ```js + * const { + * generateKeyPair, + * } = await import('node:crypto'); + * + * generateKeyPair('rsa', { + * modulusLength: 4096, + * publicKeyEncoding: { + * type: 'spki', + * format: 'pem', + * }, + * privateKeyEncoding: { + * type: 'pkcs8', + * format: 'pem', + * cipher: 'aes-256-cbc', + * passphrase: 'top secret', + * }, + * }, (err, publicKey, privateKey) => { + * // Handle errors and use the generated key pair. + * }); + * ``` + * + * On completion, `callback` will be called with `err` set to `undefined` and `publicKey` / `privateKey` representing the generated key pair. + * + * If this method is invoked as its `util.promisify()` ed version, it returns + * a `Promise` for an `Object` with `publicKey` and `privateKey` properties. + * @since v10.12.0 + * @param type Must be `'rsa'`, `'rsa-pss'`, `'dsa'`, `'ec'`, `'ed25519'`, `'ed448'`, `'x25519'`, `'x448'`, or `'dh'`. + */ + function generateKeyPair( + type: "rsa", + options: RSAKeyPairOptions<"pem", "pem">, + callback: (err: Error | null, publicKey: string, privateKey: string) => void, + ): void; + function generateKeyPair( + type: "rsa", + options: RSAKeyPairOptions<"pem", "der">, + callback: (err: Error | null, publicKey: string, privateKey: NonSharedBuffer) => void, + ): void; + function generateKeyPair( + type: "rsa", + options: RSAKeyPairOptions<"der", "pem">, + callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: string) => void, + ): void; + function generateKeyPair( + type: "rsa", + options: RSAKeyPairOptions<"der", "der">, + callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: NonSharedBuffer) => void, + ): void; + function generateKeyPair( + type: "rsa", + options: RSAKeyPairKeyObjectOptions, + callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, + ): void; + function generateKeyPair( + type: "rsa-pss", + options: RSAPSSKeyPairOptions<"pem", "pem">, + callback: (err: Error | null, publicKey: string, privateKey: string) => void, + ): void; + function generateKeyPair( + type: "rsa-pss", + options: RSAPSSKeyPairOptions<"pem", "der">, + callback: (err: Error | null, publicKey: string, privateKey: NonSharedBuffer) => void, + ): void; + function generateKeyPair( + type: "rsa-pss", + options: RSAPSSKeyPairOptions<"der", "pem">, + callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: string) => void, + ): void; + function generateKeyPair( + type: "rsa-pss", + options: RSAPSSKeyPairOptions<"der", "der">, + callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: NonSharedBuffer) => void, + ): void; + function generateKeyPair( + type: "rsa-pss", + options: RSAPSSKeyPairKeyObjectOptions, + callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, + ): void; + function generateKeyPair( + type: "dsa", + options: DSAKeyPairOptions<"pem", "pem">, + callback: (err: Error | null, publicKey: string, privateKey: string) => void, + ): void; + function generateKeyPair( + type: "dsa", + options: DSAKeyPairOptions<"pem", "der">, + callback: (err: Error | null, publicKey: string, privateKey: NonSharedBuffer) => void, + ): void; + function generateKeyPair( + type: "dsa", + options: DSAKeyPairOptions<"der", "pem">, + callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: string) => void, + ): void; + function generateKeyPair( + type: "dsa", + options: DSAKeyPairOptions<"der", "der">, + callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: NonSharedBuffer) => void, + ): void; + function generateKeyPair( + type: "dsa", + options: DSAKeyPairKeyObjectOptions, + callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, + ): void; + function generateKeyPair( + type: "ec", + options: ECKeyPairOptions<"pem", "pem">, + callback: (err: Error | null, publicKey: string, privateKey: string) => void, + ): void; + function generateKeyPair( + type: "ec", + options: ECKeyPairOptions<"pem", "der">, + callback: (err: Error | null, publicKey: string, privateKey: NonSharedBuffer) => void, + ): void; + function generateKeyPair( + type: "ec", + options: ECKeyPairOptions<"der", "pem">, + callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: string) => void, + ): void; + function generateKeyPair( + type: "ec", + options: ECKeyPairOptions<"der", "der">, + callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: NonSharedBuffer) => void, + ): void; + function generateKeyPair( + type: "ec", + options: ECKeyPairKeyObjectOptions, + callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, + ): void; + function generateKeyPair( + type: "ed25519", + options: ED25519KeyPairOptions<"pem", "pem">, + callback: (err: Error | null, publicKey: string, privateKey: string) => void, + ): void; + function generateKeyPair( + type: "ed25519", + options: ED25519KeyPairOptions<"pem", "der">, + callback: (err: Error | null, publicKey: string, privateKey: NonSharedBuffer) => void, + ): void; + function generateKeyPair( + type: "ed25519", + options: ED25519KeyPairOptions<"der", "pem">, + callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: string) => void, + ): void; + function generateKeyPair( + type: "ed25519", + options: ED25519KeyPairOptions<"der", "der">, + callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: NonSharedBuffer) => void, + ): void; + function generateKeyPair( + type: "ed25519", + options: ED25519KeyPairKeyObjectOptions | undefined, + callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, + ): void; + function generateKeyPair( + type: "ed448", + options: ED448KeyPairOptions<"pem", "pem">, + callback: (err: Error | null, publicKey: string, privateKey: string) => void, + ): void; + function generateKeyPair( + type: "ed448", + options: ED448KeyPairOptions<"pem", "der">, + callback: (err: Error | null, publicKey: string, privateKey: NonSharedBuffer) => void, + ): void; + function generateKeyPair( + type: "ed448", + options: ED448KeyPairOptions<"der", "pem">, + callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: string) => void, + ): void; + function generateKeyPair( + type: "ed448", + options: ED448KeyPairOptions<"der", "der">, + callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: NonSharedBuffer) => void, + ): void; + function generateKeyPair( + type: "ed448", + options: ED448KeyPairKeyObjectOptions | undefined, + callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, + ): void; + function generateKeyPair( + type: "x25519", + options: X25519KeyPairOptions<"pem", "pem">, + callback: (err: Error | null, publicKey: string, privateKey: string) => void, + ): void; + function generateKeyPair( + type: "x25519", + options: X25519KeyPairOptions<"pem", "der">, + callback: (err: Error | null, publicKey: string, privateKey: NonSharedBuffer) => void, + ): void; + function generateKeyPair( + type: "x25519", + options: X25519KeyPairOptions<"der", "pem">, + callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: string) => void, + ): void; + function generateKeyPair( + type: "x25519", + options: X25519KeyPairOptions<"der", "der">, + callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: NonSharedBuffer) => void, + ): void; + function generateKeyPair( + type: "x25519", + options: X25519KeyPairKeyObjectOptions | undefined, + callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, + ): void; + function generateKeyPair( + type: "x448", + options: X448KeyPairOptions<"pem", "pem">, + callback: (err: Error | null, publicKey: string, privateKey: string) => void, + ): void; + function generateKeyPair( + type: "x448", + options: X448KeyPairOptions<"pem", "der">, + callback: (err: Error | null, publicKey: string, privateKey: NonSharedBuffer) => void, + ): void; + function generateKeyPair( + type: "x448", + options: X448KeyPairOptions<"der", "pem">, + callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: string) => void, + ): void; + function generateKeyPair( + type: "x448", + options: X448KeyPairOptions<"der", "der">, + callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: NonSharedBuffer) => void, + ): void; + function generateKeyPair( + type: "x448", + options: X448KeyPairKeyObjectOptions | undefined, + callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, + ): void; + namespace generateKeyPair { + function __promisify__( + type: "rsa", + options: RSAKeyPairOptions<"pem", "pem">, + ): Promise<{ + publicKey: string; + privateKey: string; + }>; + function __promisify__( + type: "rsa", + options: RSAKeyPairOptions<"pem", "der">, + ): Promise<{ + publicKey: string; + privateKey: NonSharedBuffer; + }>; + function __promisify__( + type: "rsa", + options: RSAKeyPairOptions<"der", "pem">, + ): Promise<{ + publicKey: NonSharedBuffer; + privateKey: string; + }>; + function __promisify__( + type: "rsa", + options: RSAKeyPairOptions<"der", "der">, + ): Promise<{ + publicKey: NonSharedBuffer; + privateKey: NonSharedBuffer; + }>; + function __promisify__(type: "rsa", options: RSAKeyPairKeyObjectOptions): Promise; + function __promisify__( + type: "rsa-pss", + options: RSAPSSKeyPairOptions<"pem", "pem">, + ): Promise<{ + publicKey: string; + privateKey: string; + }>; + function __promisify__( + type: "rsa-pss", + options: RSAPSSKeyPairOptions<"pem", "der">, + ): Promise<{ + publicKey: string; + privateKey: NonSharedBuffer; + }>; + function __promisify__( + type: "rsa-pss", + options: RSAPSSKeyPairOptions<"der", "pem">, + ): Promise<{ + publicKey: NonSharedBuffer; + privateKey: string; + }>; + function __promisify__( + type: "rsa-pss", + options: RSAPSSKeyPairOptions<"der", "der">, + ): Promise<{ + publicKey: NonSharedBuffer; + privateKey: NonSharedBuffer; + }>; + function __promisify__( + type: "rsa-pss", + options: RSAPSSKeyPairKeyObjectOptions, + ): Promise; + function __promisify__( + type: "dsa", + options: DSAKeyPairOptions<"pem", "pem">, + ): Promise<{ + publicKey: string; + privateKey: string; + }>; + function __promisify__( + type: "dsa", + options: DSAKeyPairOptions<"pem", "der">, + ): Promise<{ + publicKey: string; + privateKey: NonSharedBuffer; + }>; + function __promisify__( + type: "dsa", + options: DSAKeyPairOptions<"der", "pem">, + ): Promise<{ + publicKey: NonSharedBuffer; + privateKey: string; + }>; + function __promisify__( + type: "dsa", + options: DSAKeyPairOptions<"der", "der">, + ): Promise<{ + publicKey: NonSharedBuffer; + privateKey: NonSharedBuffer; + }>; + function __promisify__(type: "dsa", options: DSAKeyPairKeyObjectOptions): Promise; + function __promisify__( + type: "ec", + options: ECKeyPairOptions<"pem", "pem">, + ): Promise<{ + publicKey: string; + privateKey: string; + }>; + function __promisify__( + type: "ec", + options: ECKeyPairOptions<"pem", "der">, + ): Promise<{ + publicKey: string; + privateKey: NonSharedBuffer; + }>; + function __promisify__( + type: "ec", + options: ECKeyPairOptions<"der", "pem">, + ): Promise<{ + publicKey: NonSharedBuffer; + privateKey: string; + }>; + function __promisify__( + type: "ec", + options: ECKeyPairOptions<"der", "der">, + ): Promise<{ + publicKey: NonSharedBuffer; + privateKey: NonSharedBuffer; + }>; + function __promisify__(type: "ec", options: ECKeyPairKeyObjectOptions): Promise; + function __promisify__( + type: "ed25519", + options: ED25519KeyPairOptions<"pem", "pem">, + ): Promise<{ + publicKey: string; + privateKey: string; + }>; + function __promisify__( + type: "ed25519", + options: ED25519KeyPairOptions<"pem", "der">, + ): Promise<{ + publicKey: string; + privateKey: NonSharedBuffer; + }>; + function __promisify__( + type: "ed25519", + options: ED25519KeyPairOptions<"der", "pem">, + ): Promise<{ + publicKey: NonSharedBuffer; + privateKey: string; + }>; + function __promisify__( + type: "ed25519", + options: ED25519KeyPairOptions<"der", "der">, + ): Promise<{ + publicKey: NonSharedBuffer; + privateKey: NonSharedBuffer; + }>; + function __promisify__( + type: "ed25519", + options?: ED25519KeyPairKeyObjectOptions, + ): Promise; + function __promisify__( + type: "ed448", + options: ED448KeyPairOptions<"pem", "pem">, + ): Promise<{ + publicKey: string; + privateKey: string; + }>; + function __promisify__( + type: "ed448", + options: ED448KeyPairOptions<"pem", "der">, + ): Promise<{ + publicKey: string; + privateKey: NonSharedBuffer; + }>; + function __promisify__( + type: "ed448", + options: ED448KeyPairOptions<"der", "pem">, + ): Promise<{ + publicKey: NonSharedBuffer; + privateKey: string; + }>; + function __promisify__( + type: "ed448", + options: ED448KeyPairOptions<"der", "der">, + ): Promise<{ + publicKey: NonSharedBuffer; + privateKey: NonSharedBuffer; + }>; + function __promisify__(type: "ed448", options?: ED448KeyPairKeyObjectOptions): Promise; + function __promisify__( + type: "x25519", + options: X25519KeyPairOptions<"pem", "pem">, + ): Promise<{ + publicKey: string; + privateKey: string; + }>; + function __promisify__( + type: "x25519", + options: X25519KeyPairOptions<"pem", "der">, + ): Promise<{ + publicKey: string; + privateKey: NonSharedBuffer; + }>; + function __promisify__( + type: "x25519", + options: X25519KeyPairOptions<"der", "pem">, + ): Promise<{ + publicKey: NonSharedBuffer; + privateKey: string; + }>; + function __promisify__( + type: "x25519", + options: X25519KeyPairOptions<"der", "der">, + ): Promise<{ + publicKey: NonSharedBuffer; + privateKey: NonSharedBuffer; + }>; + function __promisify__( + type: "x25519", + options?: X25519KeyPairKeyObjectOptions, + ): Promise; + function __promisify__( + type: "x448", + options: X448KeyPairOptions<"pem", "pem">, + ): Promise<{ + publicKey: string; + privateKey: string; + }>; + function __promisify__( + type: "x448", + options: X448KeyPairOptions<"pem", "der">, + ): Promise<{ + publicKey: string; + privateKey: NonSharedBuffer; + }>; + function __promisify__( + type: "x448", + options: X448KeyPairOptions<"der", "pem">, + ): Promise<{ + publicKey: NonSharedBuffer; + privateKey: string; + }>; + function __promisify__( + type: "x448", + options: X448KeyPairOptions<"der", "der">, + ): Promise<{ + publicKey: NonSharedBuffer; + privateKey: NonSharedBuffer; + }>; + function __promisify__(type: "x448", options?: X448KeyPairKeyObjectOptions): Promise; + } + /** + * Calculates and returns the signature for `data` using the given private key and + * algorithm. If `algorithm` is `null` or `undefined`, then the algorithm is + * dependent upon the key type (especially Ed25519 and Ed448). + * + * If `key` is not a `KeyObject`, this function behaves as if `key` had been + * passed to {@link createPrivateKey}. If it is an object, the following + * additional properties can be passed: + * + * If the `callback` function is provided this function uses libuv's threadpool. + * @since v12.0.0 + */ + function sign( + algorithm: string | null | undefined, + data: NodeJS.ArrayBufferView, + key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput, + ): NonSharedBuffer; + function sign( + algorithm: string | null | undefined, + data: NodeJS.ArrayBufferView, + key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput, + callback: (error: Error | null, data: NonSharedBuffer) => void, + ): void; + /** + * Verifies the given signature for `data` using the given key and algorithm. If `algorithm` is `null` or `undefined`, then the algorithm is dependent upon the + * key type (especially Ed25519 and Ed448). + * + * If `key` is not a `KeyObject`, this function behaves as if `key` had been + * passed to {@link createPublicKey}. If it is an object, the following + * additional properties can be passed: + * + * The `signature` argument is the previously calculated signature for the `data`. + * + * Because public keys can be derived from private keys, a private key or a public + * key may be passed for `key`. + * + * If the `callback` function is provided this function uses libuv's threadpool. + * @since v12.0.0 + */ + function verify( + algorithm: string | null | undefined, + data: NodeJS.ArrayBufferView, + key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput, + signature: NodeJS.ArrayBufferView, + ): boolean; + function verify( + algorithm: string | null | undefined, + data: NodeJS.ArrayBufferView, + key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput, + signature: NodeJS.ArrayBufferView, + callback: (error: Error | null, result: boolean) => void, + ): void; + /** + * Computes the Diffie-Hellman secret based on a `privateKey` and a `publicKey`. + * Both keys must have the same `asymmetricKeyType`, which must be one of `'dh'` (for Diffie-Hellman), `'ec'` (for ECDH), `'x448'`, or `'x25519'` (for ECDH-ES). + * @since v13.9.0, v12.17.0 + */ + function diffieHellman(options: { privateKey: KeyObject; publicKey: KeyObject }): NonSharedBuffer; + /** + * A utility for creating one-shot hash digests of data. It can be faster than the object-based `crypto.createHash()` when hashing a smaller amount of data + * (<= 5MB) that's readily available. If the data can be big or if it is streamed, it's still recommended to use `crypto.createHash()` instead. The `algorithm` + * is dependent on the available algorithms supported by the version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc. On recent releases + * of OpenSSL, `openssl list -digest-algorithms` will display the available digest algorithms. + * + * Example: + * + * ```js + * import crypto from 'node:crypto'; + * import { Buffer } from 'node:buffer'; + * + * // Hashing a string and return the result as a hex-encoded string. + * const string = 'Node.js'; + * // 10b3493287f831e81a438811a1ffba01f8cec4b7 + * console.log(crypto.hash('sha1', string)); + * + * // Encode a base64-encoded string into a Buffer, hash it and return + * // the result as a buffer. + * const base64 = 'Tm9kZS5qcw=='; + * // + * console.log(crypto.hash('sha1', Buffer.from(base64, 'base64'), 'buffer')); + * ``` + * @since v21.7.0, v20.12.0 + * @param data When `data` is a string, it will be encoded as UTF-8 before being hashed. If a different input encoding is desired for a string input, user + * could encode the string into a `TypedArray` using either `TextEncoder` or `Buffer.from()` and passing the encoded `TypedArray` into this API instead. + * @param [outputEncoding='hex'] [Encoding](https://nodejs.org/docs/latest-v20.x/api/buffer.html#buffers-and-character-encodings) used to encode the returned digest. + */ + function hash(algorithm: string, data: BinaryLike, outputEncoding?: BinaryToTextEncoding): string; + function hash(algorithm: string, data: BinaryLike, outputEncoding: "buffer"): NonSharedBuffer; + function hash( + algorithm: string, + data: BinaryLike, + outputEncoding?: BinaryToTextEncoding | "buffer", + ): string | NonSharedBuffer; + type CipherMode = "cbc" | "ccm" | "cfb" | "ctr" | "ecb" | "gcm" | "ocb" | "ofb" | "stream" | "wrap" | "xts"; + interface CipherInfoOptions { + /** + * A test key length. + */ + keyLength?: number | undefined; + /** + * A test IV length. + */ + ivLength?: number | undefined; + } + interface CipherInfo { + /** + * The name of the cipher. + */ + name: string; + /** + * The nid of the cipher. + */ + nid: number; + /** + * The block size of the cipher in bytes. + * This property is omitted when mode is 'stream'. + */ + blockSize?: number | undefined; + /** + * The expected or default initialization vector length in bytes. + * This property is omitted if the cipher does not use an initialization vector. + */ + ivLength?: number | undefined; + /** + * The expected or default key length in bytes. + */ + keyLength: number; + /** + * The cipher mode. + */ + mode: CipherMode; + } + /** + * Returns information about a given cipher. + * + * Some ciphers accept variable length keys and initialization vectors. By default, + * the `crypto.getCipherInfo()` method will return the default values for these + * ciphers. To test if a given key length or iv length is acceptable for given + * cipher, use the `keyLength` and `ivLength` options. If the given values are + * unacceptable, `undefined` will be returned. + * @since v15.0.0 + * @param nameOrNid The name or nid of the cipher to query. + */ + function getCipherInfo(nameOrNid: string | number, options?: CipherInfoOptions): CipherInfo | undefined; + /** + * HKDF is a simple key derivation function defined in RFC 5869\. The given `ikm`, `salt` and `info` are used with the `digest` to derive a key of `keylen` bytes. + * + * The supplied `callback` function is called with two arguments: `err` and `derivedKey`. If an errors occurs while deriving the key, `err` will be set; + * otherwise `err` will be `null`. The successfully generated `derivedKey` will + * be passed to the callback as an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). An error will be thrown if any + * of the input arguments specify invalid values or types. + * + * ```js + * import { Buffer } from 'node:buffer'; + * const { + * hkdf, + * } = await import('node:crypto'); + * + * hkdf('sha512', 'key', 'salt', 'info', 64, (err, derivedKey) => { + * if (err) throw err; + * console.log(Buffer.from(derivedKey).toString('hex')); // '24156e2...5391653' + * }); + * ``` + * @since v15.0.0 + * @param digest The digest algorithm to use. + * @param ikm The input keying material. Must be provided but can be zero-length. + * @param salt The salt value. Must be provided but can be zero-length. + * @param info Additional info value. Must be provided but can be zero-length, and cannot be more than 1024 bytes. + * @param keylen The length of the key to generate. Must be greater than 0. The maximum allowable value is `255` times the number of bytes produced by the selected digest function (e.g. `sha512` + * generates 64-byte hashes, making the maximum HKDF output 16320 bytes). + */ + function hkdf( + digest: string, + irm: BinaryLike | KeyObject, + salt: BinaryLike, + info: BinaryLike, + keylen: number, + callback: (err: Error | null, derivedKey: ArrayBuffer) => void, + ): void; + /** + * Provides a synchronous HKDF key derivation function as defined in RFC 5869\. The + * given `ikm`, `salt` and `info` are used with the `digest` to derive a key of `keylen` bytes. + * + * The successfully generated `derivedKey` will be returned as an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). + * + * An error will be thrown if any of the input arguments specify invalid values or + * types, or if the derived key cannot be generated. + * + * ```js + * import { Buffer } from 'node:buffer'; + * const { + * hkdfSync, + * } = await import('node:crypto'); + * + * const derivedKey = hkdfSync('sha512', 'key', 'salt', 'info', 64); + * console.log(Buffer.from(derivedKey).toString('hex')); // '24156e2...5391653' + * ``` + * @since v15.0.0 + * @param digest The digest algorithm to use. + * @param ikm The input keying material. Must be provided but can be zero-length. + * @param salt The salt value. Must be provided but can be zero-length. + * @param info Additional info value. Must be provided but can be zero-length, and cannot be more than 1024 bytes. + * @param keylen The length of the key to generate. Must be greater than 0. The maximum allowable value is `255` times the number of bytes produced by the selected digest function (e.g. `sha512` + * generates 64-byte hashes, making the maximum HKDF output 16320 bytes). + */ + function hkdfSync( + digest: string, + ikm: BinaryLike | KeyObject, + salt: BinaryLike, + info: BinaryLike, + keylen: number, + ): ArrayBuffer; + interface SecureHeapUsage { + /** + * The total allocated secure heap size as specified using the `--secure-heap=n` command-line flag. + */ + total: number; + /** + * The minimum allocation from the secure heap as specified using the `--secure-heap-min` command-line flag. + */ + min: number; + /** + * The total number of bytes currently allocated from the secure heap. + */ + used: number; + /** + * The calculated ratio of `used` to `total` allocated bytes. + */ + utilization: number; + } + /** + * @since v15.6.0 + */ + function secureHeapUsed(): SecureHeapUsage; + interface RandomUUIDOptions { + /** + * By default, to improve performance, + * Node.js will pre-emptively generate and persistently cache enough + * random data to generate up to 128 random UUIDs. To generate a UUID + * without using the cache, set `disableEntropyCache` to `true`. + * + * @default `false` + */ + disableEntropyCache?: boolean | undefined; + } + type UUID = `${string}-${string}-${string}-${string}-${string}`; + /** + * Generates a random [RFC 4122](https://www.rfc-editor.org/rfc/rfc4122.txt) version 4 UUID. The UUID is generated using a + * cryptographic pseudorandom number generator. + * @since v15.6.0, v14.17.0 + */ + function randomUUID(options?: RandomUUIDOptions): UUID; + interface X509CheckOptions { + /** + * @default 'always' + */ + subject?: "always" | "default" | "never" | undefined; + /** + * @default true + */ + wildcards?: boolean | undefined; + /** + * @default true + */ + partialWildcards?: boolean | undefined; + /** + * @default false + */ + multiLabelWildcards?: boolean | undefined; + /** + * @default false + */ + singleLabelSubdomains?: boolean | undefined; + } + /** + * Encapsulates an X509 certificate and provides read-only access to + * its information. + * + * ```js + * const { X509Certificate } = await import('node:crypto'); + * + * const x509 = new X509Certificate('{... pem encoded cert ...}'); + * + * console.log(x509.subject); + * ``` + * @since v15.6.0 + */ + class X509Certificate { + /** + * Will be \`true\` if this is a Certificate Authority (CA) certificate. + * @since v15.6.0 + */ + readonly ca: boolean; + /** + * The SHA-1 fingerprint of this certificate. + * + * Because SHA-1 is cryptographically broken and because the security of SHA-1 is + * significantly worse than that of algorithms that are commonly used to sign + * certificates, consider using `x509.fingerprint256` instead. + * @since v15.6.0 + */ + readonly fingerprint: string; + /** + * The SHA-256 fingerprint of this certificate. + * @since v15.6.0 + */ + readonly fingerprint256: string; + /** + * The SHA-512 fingerprint of this certificate. + * + * Because computing the SHA-256 fingerprint is usually faster and because it is + * only half the size of the SHA-512 fingerprint, `x509.fingerprint256` may be + * a better choice. While SHA-512 presumably provides a higher level of security in + * general, the security of SHA-256 matches that of most algorithms that are + * commonly used to sign certificates. + * @since v17.2.0, v16.14.0 + */ + readonly fingerprint512: string; + /** + * The complete subject of this certificate. + * @since v15.6.0 + */ + readonly subject: string; + /** + * The subject alternative name specified for this certificate. + * + * This is a comma-separated list of subject alternative names. Each entry begins + * with a string identifying the kind of the subject alternative name followed by + * a colon and the value associated with the entry. + * + * Earlier versions of Node.js incorrectly assumed that it is safe to split this + * property at the two-character sequence `', '` (see [CVE-2021-44532](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44532)). However, + * both malicious and legitimate certificates can contain subject alternative names + * that include this sequence when represented as a string. + * + * After the prefix denoting the type of the entry, the remainder of each entry + * might be enclosed in quotes to indicate that the value is a JSON string literal. + * For backward compatibility, Node.js only uses JSON string literals within this + * property when necessary to avoid ambiguity. Third-party code should be prepared + * to handle both possible entry formats. + * @since v15.6.0 + */ + readonly subjectAltName: string | undefined; + /** + * A textual representation of the certificate's authority information access + * extension. + * + * This is a line feed separated list of access descriptions. Each line begins with + * the access method and the kind of the access location, followed by a colon and + * the value associated with the access location. + * + * After the prefix denoting the access method and the kind of the access location, + * the remainder of each line might be enclosed in quotes to indicate that the + * value is a JSON string literal. For backward compatibility, Node.js only uses + * JSON string literals within this property when necessary to avoid ambiguity. + * Third-party code should be prepared to handle both possible entry formats. + * @since v15.6.0 + */ + readonly infoAccess: string | undefined; + /** + * An array detailing the key usages for this certificate. + * @since v15.6.0 + */ + readonly keyUsage: string[]; + /** + * The issuer identification included in this certificate. + * @since v15.6.0 + */ + readonly issuer: string; + /** + * The issuer certificate or `undefined` if the issuer certificate is not + * available. + * @since v15.9.0 + */ + readonly issuerCertificate: X509Certificate | undefined; + /** + * The public key `KeyObject` for this certificate. + * @since v15.6.0 + */ + readonly publicKey: KeyObject; + /** + * A `Buffer` containing the DER encoding of this certificate. + * @since v15.6.0 + */ + readonly raw: NonSharedBuffer; + /** + * The serial number of this certificate. + * + * Serial numbers are assigned by certificate authorities and do not uniquely + * identify certificates. Consider using `x509.fingerprint256` as a unique + * identifier instead. + * @since v15.6.0 + */ + readonly serialNumber: string; + /** + * The date/time from which this certificate is considered valid. + * @since v15.6.0 + */ + readonly validFrom: string; + /** + * The date/time until which this certificate is considered valid. + * @since v15.6.0 + */ + readonly validTo: string; + constructor(buffer: BinaryLike); + /** + * Checks whether the certificate matches the given email address. + * + * If the `'subject'` option is undefined or set to `'default'`, the certificate + * subject is only considered if the subject alternative name extension either does + * not exist or does not contain any email addresses. + * + * If the `'subject'` option is set to `'always'` and if the subject alternative + * name extension either does not exist or does not contain a matching email + * address, the certificate subject is considered. + * + * If the `'subject'` option is set to `'never'`, the certificate subject is never + * considered, even if the certificate contains no subject alternative names. + * @since v15.6.0 + * @return Returns `email` if the certificate matches, `undefined` if it does not. + */ + checkEmail(email: string, options?: Pick): string | undefined; + /** + * Checks whether the certificate matches the given host name. + * + * If the certificate matches the given host name, the matching subject name is + * returned. The returned name might be an exact match (e.g., `foo.example.com`) + * or it might contain wildcards (e.g., `*.example.com`). Because host name + * comparisons are case-insensitive, the returned subject name might also differ + * from the given `name` in capitalization. + * + * If the `'subject'` option is undefined or set to `'default'`, the certificate + * subject is only considered if the subject alternative name extension either does + * not exist or does not contain any DNS names. This behavior is consistent with [RFC 2818](https://www.rfc-editor.org/rfc/rfc2818.txt) ("HTTP Over TLS"). + * + * If the `'subject'` option is set to `'always'` and if the subject alternative + * name extension either does not exist or does not contain a matching DNS name, + * the certificate subject is considered. + * + * If the `'subject'` option is set to `'never'`, the certificate subject is never + * considered, even if the certificate contains no subject alternative names. + * @since v15.6.0 + * @return Returns a subject name that matches `name`, or `undefined` if no subject name matches `name`. + */ + checkHost(name: string, options?: X509CheckOptions): string | undefined; + /** + * Checks whether the certificate matches the given IP address (IPv4 or IPv6). + * + * Only [RFC 5280](https://www.rfc-editor.org/rfc/rfc5280.txt) `iPAddress` subject alternative names are considered, and they + * must match the given `ip` address exactly. Other subject alternative names as + * well as the subject field of the certificate are ignored. + * @since v15.6.0 + * @return Returns `ip` if the certificate matches, `undefined` if it does not. + */ + checkIP(ip: string): string | undefined; + /** + * Checks whether this certificate was issued by the given `otherCert`. + * @since v15.6.0 + */ + checkIssued(otherCert: X509Certificate): boolean; + /** + * Checks whether the public key for this certificate is consistent with + * the given private key. + * @since v15.6.0 + * @param privateKey A private key. + */ + checkPrivateKey(privateKey: KeyObject): boolean; + /** + * There is no standard JSON encoding for X509 certificates. The`toJSON()` method returns a string containing the PEM encoded + * certificate. + * @since v15.6.0 + */ + toJSON(): string; + /** + * Returns information about this certificate using the legacy `certificate object` encoding. + * @since v15.6.0 + */ + toLegacyObject(): PeerCertificate; + /** + * Returns the PEM-encoded certificate. + * @since v15.6.0 + */ + toString(): string; + /** + * Verifies that this certificate was signed by the given public key. + * Does not perform any other validation checks on the certificate. + * @since v15.6.0 + * @param publicKey A public key. + */ + verify(publicKey: KeyObject): boolean; + } + type LargeNumberLike = NodeJS.ArrayBufferView | SharedArrayBuffer | ArrayBuffer | bigint; + interface GeneratePrimeOptions { + add?: LargeNumberLike | undefined; + rem?: LargeNumberLike | undefined; + /** + * @default false + */ + safe?: boolean | undefined; + bigint?: boolean | undefined; + } + interface GeneratePrimeOptionsBigInt extends GeneratePrimeOptions { + bigint: true; + } + interface GeneratePrimeOptionsArrayBuffer extends GeneratePrimeOptions { + bigint?: false | undefined; + } + /** + * Generates a pseudorandom prime of `size` bits. + * + * If `options.safe` is `true`, the prime will be a safe prime -- that is, `(prime - 1) / 2` will also be a prime. + * + * The `options.add` and `options.rem` parameters can be used to enforce additional + * requirements, e.g., for Diffie-Hellman: + * + * * If `options.add` and `options.rem` are both set, the prime will satisfy the + * condition that `prime % add = rem`. + * * If only `options.add` is set and `options.safe` is not `true`, the prime will + * satisfy the condition that `prime % add = 1`. + * * If only `options.add` is set and `options.safe` is set to `true`, the prime + * will instead satisfy the condition that `prime % add = 3`. This is necessary + * because `prime % add = 1` for `options.add > 2` would contradict the condition + * enforced by `options.safe`. + * * `options.rem` is ignored if `options.add` is not given. + * + * Both `options.add` and `options.rem` must be encoded as big-endian sequences + * if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or `DataView`. + * + * By default, the prime is encoded as a big-endian sequence of octets + * in an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). If the `bigint` option is `true`, then a + * [bigint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) is provided. + * @since v15.8.0 + * @param size The size (in bits) of the prime to generate. + */ + function generatePrime(size: number, callback: (err: Error | null, prime: ArrayBuffer) => void): void; + function generatePrime( + size: number, + options: GeneratePrimeOptionsBigInt, + callback: (err: Error | null, prime: bigint) => void, + ): void; + function generatePrime( + size: number, + options: GeneratePrimeOptionsArrayBuffer, + callback: (err: Error | null, prime: ArrayBuffer) => void, + ): void; + function generatePrime( + size: number, + options: GeneratePrimeOptions, + callback: (err: Error | null, prime: ArrayBuffer | bigint) => void, + ): void; + /** + * Generates a pseudorandom prime of `size` bits. + * + * If `options.safe` is `true`, the prime will be a safe prime -- that is, `(prime - 1) / 2` will also be a prime. + * + * The `options.add` and `options.rem` parameters can be used to enforce additional + * requirements, e.g., for Diffie-Hellman: + * + * * If `options.add` and `options.rem` are both set, the prime will satisfy the + * condition that `prime % add = rem`. + * * If only `options.add` is set and `options.safe` is not `true`, the prime will + * satisfy the condition that `prime % add = 1`. + * * If only `options.add` is set and `options.safe` is set to `true`, the prime + * will instead satisfy the condition that `prime % add = 3`. This is necessary + * because `prime % add = 1` for `options.add > 2` would contradict the condition + * enforced by `options.safe`. + * * `options.rem` is ignored if `options.add` is not given. + * + * Both `options.add` and `options.rem` must be encoded as big-endian sequences + * if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or `DataView`. + * + * By default, the prime is encoded as a big-endian sequence of octets + * in an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). If the `bigint` option is `true`, then a + * [bigint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) is provided. + * @since v15.8.0 + * @param size The size (in bits) of the prime to generate. + */ + function generatePrimeSync(size: number): ArrayBuffer; + function generatePrimeSync(size: number, options: GeneratePrimeOptionsBigInt): bigint; + function generatePrimeSync(size: number, options: GeneratePrimeOptionsArrayBuffer): ArrayBuffer; + function generatePrimeSync(size: number, options: GeneratePrimeOptions): ArrayBuffer | bigint; + interface CheckPrimeOptions { + /** + * The number of Miller-Rabin probabilistic primality iterations to perform. + * When the value is 0 (zero), a number of checks is used that yields a false positive rate of at most `2**-64` for random input. + * Care must be used when selecting a number of checks. + * Refer to the OpenSSL documentation for the BN_is_prime_ex function nchecks options for more details. + * + * @default 0 + */ + checks?: number | undefined; + } + /** + * Checks the primality of the `candidate`. + * @since v15.8.0 + * @param candidate A possible prime encoded as a sequence of big endian octets of arbitrary length. + */ + function checkPrime(value: LargeNumberLike, callback: (err: Error | null, result: boolean) => void): void; + function checkPrime( + value: LargeNumberLike, + options: CheckPrimeOptions, + callback: (err: Error | null, result: boolean) => void, + ): void; + /** + * Checks the primality of the `candidate`. + * @since v15.8.0 + * @param candidate A possible prime encoded as a sequence of big endian octets of arbitrary length. + * @return `true` if the candidate is a prime with an error probability less than `0.25 ** options.checks`. + */ + function checkPrimeSync(candidate: LargeNumberLike, options?: CheckPrimeOptions): boolean; + /** + * Load and set the `engine` for some or all OpenSSL functions (selected by flags). + * + * `engine` could be either an id or a path to the engine's shared library. + * + * The optional `flags` argument uses `ENGINE_METHOD_ALL` by default. The `flags` is a bit field taking one of or a mix of the following flags (defined in `crypto.constants`): + * + * * `crypto.constants.ENGINE_METHOD_RSA` + * * `crypto.constants.ENGINE_METHOD_DSA` + * * `crypto.constants.ENGINE_METHOD_DH` + * * `crypto.constants.ENGINE_METHOD_RAND` + * * `crypto.constants.ENGINE_METHOD_EC` + * * `crypto.constants.ENGINE_METHOD_CIPHERS` + * * `crypto.constants.ENGINE_METHOD_DIGESTS` + * * `crypto.constants.ENGINE_METHOD_PKEY_METHS` + * * `crypto.constants.ENGINE_METHOD_PKEY_ASN1_METHS` + * * `crypto.constants.ENGINE_METHOD_ALL` + * * `crypto.constants.ENGINE_METHOD_NONE` + * @since v0.11.11 + * @param flags + */ + function setEngine(engine: string, flags?: number): void; + /** + * A convenient alias for {@link webcrypto.getRandomValues}. This + * implementation is not compliant with the Web Crypto spec, to write + * web-compatible code use {@link webcrypto.getRandomValues} instead. + * @since v17.4.0 + * @return Returns `typedArray`. + */ + function getRandomValues(typedArray: T): T; + /** + * A convenient alias for `crypto.webcrypto.subtle`. + * @since v17.4.0 + */ + const subtle: webcrypto.SubtleCrypto; + /** + * An implementation of the Web Crypto API standard. + * + * See the {@link https://nodejs.org/docs/latest/api/webcrypto.html Web Crypto API documentation} for details. + * @since v15.0.0 + */ + const webcrypto: webcrypto.Crypto; + namespace webcrypto { + type BufferSource = ArrayBufferView | ArrayBuffer; + type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki"; + type KeyType = "private" | "public" | "secret"; + type KeyUsage = + | "decrypt" + | "deriveBits" + | "deriveKey" + | "encrypt" + | "sign" + | "unwrapKey" + | "verify" + | "wrapKey"; + type AlgorithmIdentifier = Algorithm | string; + type HashAlgorithmIdentifier = AlgorithmIdentifier; + type NamedCurve = string; + type BigInteger = Uint8Array; + interface AesCbcParams extends Algorithm { + iv: BufferSource; + } + interface AesCtrParams extends Algorithm { + counter: BufferSource; + length: number; + } + interface AesDerivedKeyParams extends Algorithm { + length: number; + } + interface AesGcmParams extends Algorithm { + additionalData?: BufferSource; + iv: BufferSource; + tagLength?: number; + } + interface AesKeyAlgorithm extends KeyAlgorithm { + length: number; + } + interface AesKeyGenParams extends Algorithm { + length: number; + } + interface Algorithm { + name: string; + } + interface EcKeyAlgorithm extends KeyAlgorithm { + namedCurve: NamedCurve; + } + interface EcKeyGenParams extends Algorithm { + namedCurve: NamedCurve; + } + interface EcKeyImportParams extends Algorithm { + namedCurve: NamedCurve; + } + interface EcdhKeyDeriveParams extends Algorithm { + public: CryptoKey; + } + interface EcdsaParams extends Algorithm { + hash: HashAlgorithmIdentifier; + } + interface Ed448Params extends Algorithm { + context?: BufferSource; + } + interface HkdfParams extends Algorithm { + hash: HashAlgorithmIdentifier; + info: BufferSource; + salt: BufferSource; + } + interface HmacImportParams extends Algorithm { + hash: HashAlgorithmIdentifier; + length?: number; + } + interface HmacKeyAlgorithm extends KeyAlgorithm { + hash: KeyAlgorithm; + length: number; + } + interface HmacKeyGenParams extends Algorithm { + hash: HashAlgorithmIdentifier; + length?: number; + } + interface JsonWebKey { + alg?: string; + crv?: string; + d?: string; + dp?: string; + dq?: string; + e?: string; + ext?: boolean; + k?: string; + key_ops?: string[]; + kty?: string; + n?: string; + oth?: RsaOtherPrimesInfo[]; + p?: string; + q?: string; + qi?: string; + use?: string; + x?: string; + y?: string; + } + interface KeyAlgorithm { + name: string; + } + interface Pbkdf2Params extends Algorithm { + hash: HashAlgorithmIdentifier; + iterations: number; + salt: BufferSource; + } + interface RsaHashedImportParams extends Algorithm { + hash: HashAlgorithmIdentifier; + } + interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm { + hash: KeyAlgorithm; + } + interface RsaHashedKeyGenParams extends RsaKeyGenParams { + hash: HashAlgorithmIdentifier; + } + interface RsaKeyAlgorithm extends KeyAlgorithm { + modulusLength: number; + publicExponent: BigInteger; + } + interface RsaKeyGenParams extends Algorithm { + modulusLength: number; + publicExponent: BigInteger; + } + interface RsaOaepParams extends Algorithm { + label?: BufferSource; + } + interface RsaOtherPrimesInfo { + d?: string; + r?: string; + t?: string; + } + interface RsaPssParams extends Algorithm { + saltLength: number; + } + /** + * Importing the `webcrypto` object (`import { webcrypto } from 'node:crypto'`) gives an instance of the `Crypto` class. + * `Crypto` is a singleton that provides access to the remainder of the crypto API. + * @since v15.0.0 + */ + interface Crypto { + /** + * Provides access to the `SubtleCrypto` API. + * @since v15.0.0 + */ + readonly subtle: SubtleCrypto; + /** + * Generates cryptographically strong random values. + * The given `typedArray` is filled with random values, and a reference to `typedArray` is returned. + * + * The given `typedArray` must be an integer-based instance of {@link NodeJS.TypedArray}, i.e. `Float32Array` and `Float64Array` are not accepted. + * + * An error will be thrown if the given `typedArray` is larger than 65,536 bytes. + * @since v15.0.0 + */ + getRandomValues>(typedArray: T): T; + /** + * Generates a random {@link https://www.rfc-editor.org/rfc/rfc4122.txt RFC 4122} version 4 UUID. + * The UUID is generated using a cryptographic pseudorandom number generator. + * @since v16.7.0 + */ + randomUUID(): UUID; + CryptoKey: CryptoKeyConstructor; + } + // This constructor throws ILLEGAL_CONSTRUCTOR so it should not be newable. + interface CryptoKeyConstructor { + /** Illegal constructor */ + (_: { readonly _: unique symbol }): never; // Allows instanceof to work but not be callable by the user. + readonly length: 0; + readonly name: "CryptoKey"; + readonly prototype: CryptoKey; + } + /** + * @since v15.0.0 + */ + interface CryptoKey { + /** + * An object detailing the algorithm for which the key can be used along with additional algorithm-specific parameters. + * @since v15.0.0 + */ + readonly algorithm: KeyAlgorithm; + /** + * When `true`, the {@link CryptoKey} can be extracted using either `subtleCrypto.exportKey()` or `subtleCrypto.wrapKey()`. + * @since v15.0.0 + */ + readonly extractable: boolean; + /** + * A string identifying whether the key is a symmetric (`'secret'`) or asymmetric (`'private'` or `'public'`) key. + * @since v15.0.0 + */ + readonly type: KeyType; + /** + * An array of strings identifying the operations for which the key may be used. + * + * The possible usages are: + * - `'encrypt'` - The key may be used to encrypt data. + * - `'decrypt'` - The key may be used to decrypt data. + * - `'sign'` - The key may be used to generate digital signatures. + * - `'verify'` - The key may be used to verify digital signatures. + * - `'deriveKey'` - The key may be used to derive a new key. + * - `'deriveBits'` - The key may be used to derive bits. + * - `'wrapKey'` - The key may be used to wrap another key. + * - `'unwrapKey'` - The key may be used to unwrap another key. + * + * Valid key usages depend on the key algorithm (identified by `cryptokey.algorithm.name`). + * @since v15.0.0 + */ + readonly usages: KeyUsage[]; + } + /** + * The `CryptoKeyPair` is a simple dictionary object with `publicKey` and `privateKey` properties, representing an asymmetric key pair. + * @since v15.0.0 + */ + interface CryptoKeyPair { + /** + * A {@link CryptoKey} whose type will be `'private'`. + * @since v15.0.0 + */ + privateKey: CryptoKey; + /** + * A {@link CryptoKey} whose type will be `'public'`. + * @since v15.0.0 + */ + publicKey: CryptoKey; + } + /** + * @since v15.0.0 + */ + interface SubtleCrypto { + /** + * Using the method and parameters specified in `algorithm` and the keying material provided by `key`, + * `subtle.decrypt()` attempts to decipher the provided `data`. If successful, + * the returned promise will be resolved with an `` containing the plaintext result. + * + * The algorithms currently supported include: + * + * - `'RSA-OAEP'` + * - `'AES-CTR'` + * - `'AES-CBC'` + * - `'AES-GCM'` + * @since v15.0.0 + */ + decrypt( + algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, + key: CryptoKey, + data: BufferSource, + ): Promise; + /** + * Using the method and parameters specified in `algorithm` and the keying material provided by `baseKey`, + * `subtle.deriveBits()` attempts to generate `length` bits. + * The Node.js implementation requires that when `length` is a number it must be multiple of `8`. + * When `length` is `null` the maximum number of bits for a given algorithm is generated. This is allowed + * for the `'ECDH'`, `'X25519'`, and `'X448'` algorithms. + * If successful, the returned promise will be resolved with an `` containing the generated data. + * + * The algorithms currently supported include: + * + * - `'ECDH'` + * - `'X25519'` + * - `'X448'` + * - `'HKDF'` + * - `'PBKDF2'` + * @since v15.0.0 + */ + deriveBits(algorithm: EcdhKeyDeriveParams, baseKey: CryptoKey, length: number | null): Promise; + deriveBits( + algorithm: AlgorithmIdentifier | HkdfParams | Pbkdf2Params, + baseKey: CryptoKey, + length: number, + ): Promise; + /** + * Using the method and parameters specified in `algorithm`, and the keying material provided by `baseKey`, + * `subtle.deriveKey()` attempts to generate a new ` based on the method and parameters in `derivedKeyAlgorithm`. + * + * Calling `subtle.deriveKey()` is equivalent to calling `subtle.deriveBits()` to generate raw keying material, + * then passing the result into the `subtle.importKey()` method using the `deriveKeyAlgorithm`, `extractable`, and `keyUsages` parameters as input. + * + * The algorithms currently supported include: + * + * - `'ECDH'` + * - `'X25519'` + * - `'X448'` + * - `'HKDF'` + * - `'PBKDF2'` + * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}. + * @since v15.0.0 + */ + deriveKey( + algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, + baseKey: CryptoKey, + derivedKeyAlgorithm: + | AlgorithmIdentifier + | AesDerivedKeyParams + | HmacImportParams + | HkdfParams + | Pbkdf2Params, + extractable: boolean, + keyUsages: readonly KeyUsage[], + ): Promise; + /** + * Using the method identified by `algorithm`, `subtle.digest()` attempts to generate a digest of `data`. + * If successful, the returned promise is resolved with an `` containing the computed digest. + * + * If `algorithm` is provided as a ``, it must be one of: + * + * - `'SHA-1'` + * - `'SHA-256'` + * - `'SHA-384'` + * - `'SHA-512'` + * + * If `algorithm` is provided as an ``, it must have a `name` property whose value is one of the above. + * @since v15.0.0 + */ + digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise; + /** + * Using the method and parameters specified by `algorithm` and the keying material provided by `key`, + * `subtle.encrypt()` attempts to encipher `data`. If successful, + * the returned promise is resolved with an `` containing the encrypted result. + * + * The algorithms currently supported include: + * + * - `'RSA-OAEP'` + * - `'AES-CTR'` + * - `'AES-CBC'` + * - `'AES-GCM'` + * @since v15.0.0 + */ + encrypt( + algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, + key: CryptoKey, + data: BufferSource, + ): Promise; + /** + * Exports the given key into the specified format, if supported. + * + * If the `` is not extractable, the returned promise will reject. + * + * When `format` is either `'pkcs8'` or `'spki'` and the export is successful, + * the returned promise will be resolved with an `` containing the exported key data. + * + * When `format` is `'jwk'` and the export is successful, the returned promise will be resolved with a + * JavaScript object conforming to the {@link https://tools.ietf.org/html/rfc7517 JSON Web Key} specification. + * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`. + * @returns `` containing ``. + * @since v15.0.0 + */ + exportKey(format: "jwk", key: CryptoKey): Promise; + exportKey(format: Exclude, key: CryptoKey): Promise; + /** + * Using the method and parameters provided in `algorithm`, + * `subtle.generateKey()` attempts to generate new keying material. + * Depending the method used, the method may generate either a single `` or a ``. + * + * The `` (public and private key) generating algorithms supported include: + * + * - `'RSASSA-PKCS1-v1_5'` + * - `'RSA-PSS'` + * - `'RSA-OAEP'` + * - `'ECDSA'` + * - `'Ed25519'` + * - `'Ed448'` + * - `'ECDH'` + * - `'X25519'` + * - `'X448'` + * The `` (secret key) generating algorithms supported include: + * + * - `'HMAC'` + * - `'AES-CTR'` + * - `'AES-CBC'` + * - `'AES-GCM'` + * - `'AES-KW'` + * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}. + * @since v15.0.0 + */ + generateKey( + algorithm: RsaHashedKeyGenParams | EcKeyGenParams, + extractable: boolean, + keyUsages: readonly KeyUsage[], + ): Promise; + generateKey( + algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, + extractable: boolean, + keyUsages: readonly KeyUsage[], + ): Promise; + generateKey( + algorithm: AlgorithmIdentifier, + extractable: boolean, + keyUsages: KeyUsage[], + ): Promise; + /** + * The `subtle.importKey()` method attempts to interpret the provided `keyData` as the given `format` + * to create a `` instance using the provided `algorithm`, `extractable`, and `keyUsages` arguments. + * If the import is successful, the returned promise will be resolved with the created ``. + * + * If importing a `'PBKDF2'` key, `extractable` must be `false`. + * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`. + * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}. + * @since v15.0.0 + */ + importKey( + format: "jwk", + keyData: JsonWebKey, + algorithm: + | AlgorithmIdentifier + | RsaHashedImportParams + | EcKeyImportParams + | HmacImportParams + | AesKeyAlgorithm, + extractable: boolean, + keyUsages: readonly KeyUsage[], + ): Promise; + importKey( + format: Exclude, + keyData: BufferSource, + algorithm: + | AlgorithmIdentifier + | RsaHashedImportParams + | EcKeyImportParams + | HmacImportParams + | AesKeyAlgorithm, + extractable: boolean, + keyUsages: KeyUsage[], + ): Promise; + /** + * Using the method and parameters given by `algorithm` and the keying material provided by `key`, + * `subtle.sign()` attempts to generate a cryptographic signature of `data`. If successful, + * the returned promise is resolved with an `` containing the generated signature. + * + * The algorithms currently supported include: + * + * - `'RSASSA-PKCS1-v1_5'` + * - `'RSA-PSS'` + * - `'ECDSA'` + * - `'Ed25519'` + * - `'Ed448'` + * - `'HMAC'` + * @since v15.0.0 + */ + sign( + algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams | Ed448Params, + key: CryptoKey, + data: BufferSource, + ): Promise; + /** + * In cryptography, "wrapping a key" refers to exporting and then encrypting the keying material. + * The `subtle.unwrapKey()` method attempts to decrypt a wrapped key and create a `` instance. + * It is equivalent to calling `subtle.decrypt()` first on the encrypted key data (using the `wrappedKey`, `unwrapAlgo`, and `unwrappingKey` arguments as input) + * then passing the results in to the `subtle.importKey()` method using the `unwrappedKeyAlgo`, `extractable`, and `keyUsages` arguments as inputs. + * If successful, the returned promise is resolved with a `` object. + * + * The wrapping algorithms currently supported include: + * + * - `'RSA-OAEP'` + * - `'AES-CTR'` + * - `'AES-CBC'` + * - `'AES-GCM'` + * - `'AES-KW'` + * + * The unwrapped key algorithms supported include: + * + * - `'RSASSA-PKCS1-v1_5'` + * - `'RSA-PSS'` + * - `'RSA-OAEP'` + * - `'ECDSA'` + * - `'Ed25519'` + * - `'Ed448'` + * - `'ECDH'` + * - `'X25519'` + * - `'X448'` + * - `'HMAC'` + * - `'AES-CTR'` + * - `'AES-CBC'` + * - `'AES-GCM'` + * - `'AES-KW'` + * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`. + * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}. + * @since v15.0.0 + */ + unwrapKey( + format: KeyFormat, + wrappedKey: BufferSource, + unwrappingKey: CryptoKey, + unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, + unwrappedKeyAlgorithm: + | AlgorithmIdentifier + | RsaHashedImportParams + | EcKeyImportParams + | HmacImportParams + | AesKeyAlgorithm, + extractable: boolean, + keyUsages: KeyUsage[], + ): Promise; + /** + * Using the method and parameters given in `algorithm` and the keying material provided by `key`, + * `subtle.verify()` attempts to verify that `signature` is a valid cryptographic signature of `data`. + * The returned promise is resolved with either `true` or `false`. + * + * The algorithms currently supported include: + * + * - `'RSASSA-PKCS1-v1_5'` + * - `'RSA-PSS'` + * - `'ECDSA'` + * - `'Ed25519'` + * - `'Ed448'` + * - `'HMAC'` + * @since v15.0.0 + */ + verify( + algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams | Ed448Params, + key: CryptoKey, + signature: BufferSource, + data: BufferSource, + ): Promise; + /** + * In cryptography, "wrapping a key" refers to exporting and then encrypting the keying material. + * The `subtle.wrapKey()` method exports the keying material into the format identified by `format`, + * then encrypts it using the method and parameters specified by `wrapAlgo` and the keying material provided by `wrappingKey`. + * It is the equivalent to calling `subtle.exportKey()` using `format` and `key` as the arguments, + * then passing the result to the `subtle.encrypt()` method using `wrappingKey` and `wrapAlgo` as inputs. + * If successful, the returned promise will be resolved with an `` containing the encrypted key data. + * + * The wrapping algorithms currently supported include: + * + * - `'RSA-OAEP'` + * - `'AES-CTR'` + * - `'AES-CBC'` + * - `'AES-GCM'` + * - `'AES-KW'` + * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`. + * @since v15.0.0 + */ + wrapKey( + format: KeyFormat, + key: CryptoKey, + wrappingKey: CryptoKey, + wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, + ): Promise; + } + } + + global { + var crypto: typeof globalThis extends { + crypto: infer T; + onmessage: any; + } ? T + : webcrypto.Crypto; + } +} +declare module "node:crypto" { + export * from "crypto"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/dgram.d.ts b/backend/node_modules/httpx/node_modules/@types/node/dgram.d.ts new file mode 100644 index 0000000..4c74367 --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/dgram.d.ts @@ -0,0 +1,597 @@ +/** + * The `node:dgram` module provides an implementation of UDP datagram sockets. + * + * ```js + * import dgram from 'node:dgram'; + * + * const server = dgram.createSocket('udp4'); + * + * server.on('error', (err) => { + * console.error(`server error:\n${err.stack}`); + * server.close(); + * }); + * + * server.on('message', (msg, rinfo) => { + * console.log(`server got: ${msg} from ${rinfo.address}:${rinfo.port}`); + * }); + * + * server.on('listening', () => { + * const address = server.address(); + * console.log(`server listening ${address.address}:${address.port}`); + * }); + * + * server.bind(41234); + * // Prints: server listening 0.0.0.0:41234 + * ``` + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/dgram.js) + */ +declare module "dgram" { + import { NonSharedBuffer } from "node:buffer"; + import { AddressInfo } from "node:net"; + import * as dns from "node:dns"; + import { Abortable, EventEmitter } from "node:events"; + interface RemoteInfo { + address: string; + family: "IPv4" | "IPv6"; + port: number; + size: number; + } + interface BindOptions { + port?: number | undefined; + address?: string | undefined; + exclusive?: boolean | undefined; + fd?: number | undefined; + } + type SocketType = "udp4" | "udp6"; + interface SocketOptions extends Abortable { + type: SocketType; + reuseAddr?: boolean | undefined; + /** + * @default false + */ + ipv6Only?: boolean | undefined; + recvBufferSize?: number | undefined; + sendBufferSize?: number | undefined; + lookup?: + | (( + hostname: string, + options: dns.LookupOneOptions, + callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void, + ) => void) + | undefined; + } + /** + * Creates a `dgram.Socket` object. Once the socket is created, calling `socket.bind()` will instruct the socket to begin listening for datagram + * messages. When `address` and `port` are not passed to `socket.bind()` the + * method will bind the socket to the "all interfaces" address on a random port + * (it does the right thing for both `udp4` and `udp6` sockets). The bound address + * and port can be retrieved using `socket.address().address` and `socket.address().port`. + * + * If the `signal` option is enabled, calling `.abort()` on the corresponding `AbortController` is similar to calling `.close()` on the socket: + * + * ```js + * const controller = new AbortController(); + * const { signal } = controller; + * const server = dgram.createSocket({ type: 'udp4', signal }); + * server.on('message', (msg, rinfo) => { + * console.log(`server got: ${msg} from ${rinfo.address}:${rinfo.port}`); + * }); + * // Later, when you want to close the server. + * controller.abort(); + * ``` + * @since v0.11.13 + * @param options Available options are: + * @param callback Attached as a listener for `'message'` events. Optional. + */ + function createSocket(type: SocketType, callback?: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): Socket; + function createSocket(options: SocketOptions, callback?: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): Socket; + /** + * Encapsulates the datagram functionality. + * + * New instances of `dgram.Socket` are created using {@link createSocket}. + * The `new` keyword is not to be used to create `dgram.Socket` instances. + * @since v0.1.99 + */ + class Socket extends EventEmitter { + /** + * Tells the kernel to join a multicast group at the given `multicastAddress` and `multicastInterface` using the `IP_ADD_MEMBERSHIP` socket option. If the `multicastInterface` argument is not + * specified, the operating system will choose + * one interface and will add membership to it. To add membership to every + * available interface, call `addMembership` multiple times, once per interface. + * + * When called on an unbound socket, this method will implicitly bind to a random + * port, listening on all interfaces. + * + * When sharing a UDP socket across multiple `cluster` workers, the`socket.addMembership()` function must be called only once or an`EADDRINUSE` error will occur: + * + * ```js + * import cluster from 'node:cluster'; + * import dgram from 'node:dgram'; + * + * if (cluster.isPrimary) { + * cluster.fork(); // Works ok. + * cluster.fork(); // Fails with EADDRINUSE. + * } else { + * const s = dgram.createSocket('udp4'); + * s.bind(1234, () => { + * s.addMembership('224.0.0.114'); + * }); + * } + * ``` + * @since v0.6.9 + */ + addMembership(multicastAddress: string, multicastInterface?: string): void; + /** + * Returns an object containing the address information for a socket. + * For UDP sockets, this object will contain `address`, `family`, and `port` properties. + * + * This method throws `EBADF` if called on an unbound socket. + * @since v0.1.99 + */ + address(): AddressInfo; + /** + * For UDP sockets, causes the `dgram.Socket` to listen for datagram + * messages on a named `port` and optional `address`. If `port` is not + * specified or is `0`, the operating system will attempt to bind to a + * random port. If `address` is not specified, the operating system will + * attempt to listen on all addresses. Once binding is complete, a `'listening'` event is emitted and the optional `callback` function is + * called. + * + * Specifying both a `'listening'` event listener and passing a `callback` to the `socket.bind()` method is not harmful but not very + * useful. + * + * A bound datagram socket keeps the Node.js process running to receive + * datagram messages. + * + * If binding fails, an `'error'` event is generated. In rare case (e.g. + * attempting to bind with a closed socket), an `Error` may be thrown. + * + * Example of a UDP server listening on port 41234: + * + * ```js + * import dgram from 'node:dgram'; + * + * const server = dgram.createSocket('udp4'); + * + * server.on('error', (err) => { + * console.error(`server error:\n${err.stack}`); + * server.close(); + * }); + * + * server.on('message', (msg, rinfo) => { + * console.log(`server got: ${msg} from ${rinfo.address}:${rinfo.port}`); + * }); + * + * server.on('listening', () => { + * const address = server.address(); + * console.log(`server listening ${address.address}:${address.port}`); + * }); + * + * server.bind(41234); + * // Prints: server listening 0.0.0.0:41234 + * ``` + * @since v0.1.99 + * @param callback with no parameters. Called when binding is complete. + */ + bind(port?: number, address?: string, callback?: () => void): this; + bind(port?: number, callback?: () => void): this; + bind(callback?: () => void): this; + bind(options: BindOptions, callback?: () => void): this; + /** + * Close the underlying socket and stop listening for data on it. If a callback is + * provided, it is added as a listener for the `'close'` event. + * @since v0.1.99 + * @param callback Called when the socket has been closed. + */ + close(callback?: () => void): this; + /** + * Associates the `dgram.Socket` to a remote address and port. Every + * message sent by this handle is automatically sent to that destination. Also, + * the socket will only receive messages from that remote peer. + * Trying to call `connect()` on an already connected socket will result + * in an `ERR_SOCKET_DGRAM_IS_CONNECTED` exception. If `address` is not + * provided, `'127.0.0.1'` (for `udp4` sockets) or `'::1'` (for `udp6` sockets) + * will be used by default. Once the connection is complete, a `'connect'` event + * is emitted and the optional `callback` function is called. In case of failure, + * the `callback` is called or, failing this, an `'error'` event is emitted. + * @since v12.0.0 + * @param callback Called when the connection is completed or on error. + */ + connect(port: number, address?: string, callback?: () => void): void; + connect(port: number, callback: () => void): void; + /** + * A synchronous function that disassociates a connected `dgram.Socket` from + * its remote address. Trying to call `disconnect()` on an unbound or already + * disconnected socket will result in an `ERR_SOCKET_DGRAM_NOT_CONNECTED` exception. + * @since v12.0.0 + */ + disconnect(): void; + /** + * Instructs the kernel to leave a multicast group at `multicastAddress` using the `IP_DROP_MEMBERSHIP` socket option. This method is automatically called by the + * kernel when the socket is closed or the process terminates, so most apps will + * never have reason to call this. + * + * If `multicastInterface` is not specified, the operating system will attempt to + * drop membership on all valid interfaces. + * @since v0.6.9 + */ + dropMembership(multicastAddress: string, multicastInterface?: string): void; + /** + * This method throws `ERR_SOCKET_BUFFER_SIZE` if called on an unbound socket. + * @since v8.7.0 + * @return the `SO_RCVBUF` socket receive buffer size in bytes. + */ + getRecvBufferSize(): number; + /** + * This method throws `ERR_SOCKET_BUFFER_SIZE` if called on an unbound socket. + * @since v8.7.0 + * @return the `SO_SNDBUF` socket send buffer size in bytes. + */ + getSendBufferSize(): number; + /** + * @since v18.8.0, v16.19.0 + * @return Number of bytes queued for sending. + */ + getSendQueueSize(): number; + /** + * @since v18.8.0, v16.19.0 + * @return Number of send requests currently in the queue awaiting to be processed. + */ + getSendQueueCount(): number; + /** + * By default, binding a socket will cause it to block the Node.js process from + * exiting as long as the socket is open. The `socket.unref()` method can be used + * to exclude the socket from the reference counting that keeps the Node.js + * process active. The `socket.ref()` method adds the socket back to the reference + * counting and restores the default behavior. + * + * Calling `socket.ref()` multiples times will have no additional effect. + * + * The `socket.ref()` method returns a reference to the socket so calls can be + * chained. + * @since v0.9.1 + */ + ref(): this; + /** + * Returns an object containing the `address`, `family`, and `port` of the remote + * endpoint. This method throws an `ERR_SOCKET_DGRAM_NOT_CONNECTED` exception + * if the socket is not connected. + * @since v12.0.0 + */ + remoteAddress(): AddressInfo; + /** + * Broadcasts a datagram on the socket. + * For connectionless sockets, the destination `port` and `address` must be + * specified. Connected sockets, on the other hand, will use their associated + * remote endpoint, so the `port` and `address` arguments must not be set. + * + * The `msg` argument contains the message to be sent. + * Depending on its type, different behavior can apply. If `msg` is a `Buffer`, + * any `TypedArray` or a `DataView`, + * the `offset` and `length` specify the offset within the `Buffer` where the + * message begins and the number of bytes in the message, respectively. + * If `msg` is a `String`, then it is automatically converted to a `Buffer` with `'utf8'` encoding. With messages that + * contain multi-byte characters, `offset` and `length` will be calculated with + * respect to `byte length` and not the character position. + * If `msg` is an array, `offset` and `length` must not be specified. + * + * The `address` argument is a string. If the value of `address` is a host name, + * DNS will be used to resolve the address of the host. If `address` is not + * provided or otherwise nullish, `'127.0.0.1'` (for `udp4` sockets) or `'::1'` (for `udp6` sockets) will be used by default. + * + * If the socket has not been previously bound with a call to `bind`, the socket + * is assigned a random port number and is bound to the "all interfaces" address + * (`'0.0.0.0'` for `udp4` sockets, `'::0'` for `udp6` sockets.) + * + * An optional `callback` function may be specified to as a way of reporting + * DNS errors or for determining when it is safe to reuse the `buf` object. + * DNS lookups delay the time to send for at least one tick of the + * Node.js event loop. + * + * The only way to know for sure that the datagram has been sent is by using a `callback`. If an error occurs and a `callback` is given, the error will be + * passed as the first argument to the `callback`. If a `callback` is not given, + * the error is emitted as an `'error'` event on the `socket` object. + * + * Offset and length are optional but both _must_ be set if either are used. + * They are supported only when the first argument is a `Buffer`, a `TypedArray`, + * or a `DataView`. + * + * This method throws `ERR_SOCKET_BAD_PORT` if called on an unbound socket. + * + * Example of sending a UDP packet to a port on `localhost`; + * + * ```js + * import dgram from 'node:dgram'; + * import { Buffer } from 'node:buffer'; + * + * const message = Buffer.from('Some bytes'); + * const client = dgram.createSocket('udp4'); + * client.send(message, 41234, 'localhost', (err) => { + * client.close(); + * }); + * ``` + * + * Example of sending a UDP packet composed of multiple buffers to a port on`127.0.0.1`; + * + * ```js + * import dgram from 'node:dgram'; + * import { Buffer } from 'node:buffer'; + * + * const buf1 = Buffer.from('Some '); + * const buf2 = Buffer.from('bytes'); + * const client = dgram.createSocket('udp4'); + * client.send([buf1, buf2], 41234, (err) => { + * client.close(); + * }); + * ``` + * + * Sending multiple buffers might be faster or slower depending on the + * application and operating system. Run benchmarks to + * determine the optimal strategy on a case-by-case basis. Generally speaking, + * however, sending multiple buffers is faster. + * + * Example of sending a UDP packet using a socket connected to a port on `localhost`: + * + * ```js + * import dgram from 'node:dgram'; + * import { Buffer } from 'node:buffer'; + * + * const message = Buffer.from('Some bytes'); + * const client = dgram.createSocket('udp4'); + * client.connect(41234, 'localhost', (err) => { + * client.send(message, (err) => { + * client.close(); + * }); + * }); + * ``` + * @since v0.1.99 + * @param msg Message to be sent. + * @param offset Offset in the buffer where the message starts. + * @param length Number of bytes in the message. + * @param port Destination port. + * @param address Destination host name or IP address. + * @param callback Called when the message has been sent. + */ + send( + msg: string | NodeJS.ArrayBufferView | readonly any[], + port?: number, + address?: string, + callback?: (error: Error | null, bytes: number) => void, + ): void; + send( + msg: string | NodeJS.ArrayBufferView | readonly any[], + port?: number, + callback?: (error: Error | null, bytes: number) => void, + ): void; + send( + msg: string | NodeJS.ArrayBufferView | readonly any[], + callback?: (error: Error | null, bytes: number) => void, + ): void; + send( + msg: string | NodeJS.ArrayBufferView, + offset: number, + length: number, + port?: number, + address?: string, + callback?: (error: Error | null, bytes: number) => void, + ): void; + send( + msg: string | NodeJS.ArrayBufferView, + offset: number, + length: number, + port?: number, + callback?: (error: Error | null, bytes: number) => void, + ): void; + send( + msg: string | NodeJS.ArrayBufferView, + offset: number, + length: number, + callback?: (error: Error | null, bytes: number) => void, + ): void; + /** + * Sets or clears the `SO_BROADCAST` socket option. When set to `true`, UDP + * packets may be sent to a local interface's broadcast address. + * + * This method throws `EBADF` if called on an unbound socket. + * @since v0.6.9 + */ + setBroadcast(flag: boolean): void; + /** + * _All references to scope in this section are referring to [IPv6 Zone Indices](https://en.wikipedia.org/wiki/IPv6_address#Scoped_literal_IPv6_addresses), which are defined by [RFC + * 4007](https://tools.ietf.org/html/rfc4007). In string form, an IP_ + * _with a scope index is written as `'IP%scope'` where scope is an interface name_ + * _or interface number._ + * + * Sets the default outgoing multicast interface of the socket to a chosen + * interface or back to system interface selection. The `multicastInterface` must + * be a valid string representation of an IP from the socket's family. + * + * For IPv4 sockets, this should be the IP configured for the desired physical + * interface. All packets sent to multicast on the socket will be sent on the + * interface determined by the most recent successful use of this call. + * + * For IPv6 sockets, `multicastInterface` should include a scope to indicate the + * interface as in the examples that follow. In IPv6, individual `send` calls can + * also use explicit scope in addresses, so only packets sent to a multicast + * address without specifying an explicit scope are affected by the most recent + * successful use of this call. + * + * This method throws `EBADF` if called on an unbound socket. + * + * #### Example: IPv6 outgoing multicast interface + * + * On most systems, where scope format uses the interface name: + * + * ```js + * const socket = dgram.createSocket('udp6'); + * + * socket.bind(1234, () => { + * socket.setMulticastInterface('::%eth1'); + * }); + * ``` + * + * On Windows, where scope format uses an interface number: + * + * ```js + * const socket = dgram.createSocket('udp6'); + * + * socket.bind(1234, () => { + * socket.setMulticastInterface('::%2'); + * }); + * ``` + * + * #### Example: IPv4 outgoing multicast interface + * + * All systems use an IP of the host on the desired physical interface: + * + * ```js + * const socket = dgram.createSocket('udp4'); + * + * socket.bind(1234, () => { + * socket.setMulticastInterface('10.0.0.2'); + * }); + * ``` + * @since v8.6.0 + */ + setMulticastInterface(multicastInterface: string): void; + /** + * Sets or clears the `IP_MULTICAST_LOOP` socket option. When set to `true`, + * multicast packets will also be received on the local interface. + * + * This method throws `EBADF` if called on an unbound socket. + * @since v0.3.8 + */ + setMulticastLoopback(flag: boolean): boolean; + /** + * Sets the `IP_MULTICAST_TTL` socket option. While TTL generally stands for + * "Time to Live", in this context it specifies the number of IP hops that a + * packet is allowed to travel through, specifically for multicast traffic. Each + * router or gateway that forwards a packet decrements the TTL. If the TTL is + * decremented to 0 by a router, it will not be forwarded. + * + * The `ttl` argument may be between 0 and 255\. The default on most systems is `1`. + * + * This method throws `EBADF` if called on an unbound socket. + * @since v0.3.8 + */ + setMulticastTTL(ttl: number): number; + /** + * Sets the `SO_RCVBUF` socket option. Sets the maximum socket receive buffer + * in bytes. + * + * This method throws `ERR_SOCKET_BUFFER_SIZE` if called on an unbound socket. + * @since v8.7.0 + */ + setRecvBufferSize(size: number): void; + /** + * Sets the `SO_SNDBUF` socket option. Sets the maximum socket send buffer + * in bytes. + * + * This method throws `ERR_SOCKET_BUFFER_SIZE` if called on an unbound socket. + * @since v8.7.0 + */ + setSendBufferSize(size: number): void; + /** + * Sets the `IP_TTL` socket option. While TTL generally stands for "Time to Live", + * in this context it specifies the number of IP hops that a packet is allowed to + * travel through. Each router or gateway that forwards a packet decrements the + * TTL. If the TTL is decremented to 0 by a router, it will not be forwarded. + * Changing TTL values is typically done for network probes or when multicasting. + * + * The `ttl` argument may be between 1 and 255\. The default on most systems + * is 64. + * + * This method throws `EBADF` if called on an unbound socket. + * @since v0.1.101 + */ + setTTL(ttl: number): number; + /** + * By default, binding a socket will cause it to block the Node.js process from + * exiting as long as the socket is open. The `socket.unref()` method can be used + * to exclude the socket from the reference counting that keeps the Node.js + * process active, allowing the process to exit even if the socket is still + * listening. + * + * Calling `socket.unref()` multiple times will have no additional effect. + * + * The `socket.unref()` method returns a reference to the socket so calls can be + * chained. + * @since v0.9.1 + */ + unref(): this; + /** + * Tells the kernel to join a source-specific multicast channel at the given `sourceAddress` and `groupAddress`, using the `multicastInterface` with the `IP_ADD_SOURCE_MEMBERSHIP` socket + * option. If the `multicastInterface` argument + * is not specified, the operating system will choose one interface and will add + * membership to it. To add membership to every available interface, call `socket.addSourceSpecificMembership()` multiple times, once per interface. + * + * When called on an unbound socket, this method will implicitly bind to a random + * port, listening on all interfaces. + * @since v13.1.0, v12.16.0 + */ + addSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string): void; + /** + * Instructs the kernel to leave a source-specific multicast channel at the given `sourceAddress` and `groupAddress` using the `IP_DROP_SOURCE_MEMBERSHIP` socket option. This method is + * automatically called by the kernel when the + * socket is closed or the process terminates, so most apps will never have + * reason to call this. + * + * If `multicastInterface` is not specified, the operating system will attempt to + * drop membership on all valid interfaces. + * @since v13.1.0, v12.16.0 + */ + dropSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string): void; + /** + * events.EventEmitter + * 1. close + * 2. connect + * 3. error + * 4. listening + * 5. message + */ + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: "close", listener: () => void): this; + addListener(event: "connect", listener: () => void): this; + addListener(event: "error", listener: (err: Error) => void): this; + addListener(event: "listening", listener: () => void): this; + addListener(event: "message", listener: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): this; + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: "close"): boolean; + emit(event: "connect"): boolean; + emit(event: "error", err: Error): boolean; + emit(event: "listening"): boolean; + emit(event: "message", msg: NonSharedBuffer, rinfo: RemoteInfo): boolean; + on(event: string, listener: (...args: any[]) => void): this; + on(event: "close", listener: () => void): this; + on(event: "connect", listener: () => void): this; + on(event: "error", listener: (err: Error) => void): this; + on(event: "listening", listener: () => void): this; + on(event: "message", listener: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): this; + once(event: string, listener: (...args: any[]) => void): this; + once(event: "close", listener: () => void): this; + once(event: "connect", listener: () => void): this; + once(event: "error", listener: (err: Error) => void): this; + once(event: "listening", listener: () => void): this; + once(event: "message", listener: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): this; + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: "close", listener: () => void): this; + prependListener(event: "connect", listener: () => void): this; + prependListener(event: "error", listener: (err: Error) => void): this; + prependListener(event: "listening", listener: () => void): this; + prependListener(event: "message", listener: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): this; + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: "close", listener: () => void): this; + prependOnceListener(event: "connect", listener: () => void): this; + prependOnceListener(event: "error", listener: (err: Error) => void): this; + prependOnceListener(event: "listening", listener: () => void): this; + prependOnceListener(event: "message", listener: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): this; + /** + * Calls `socket.close()` and returns a promise that fulfills when the socket has closed. + * @since v20.5.0 + */ + [Symbol.asyncDispose](): Promise; + } +} +declare module "node:dgram" { + export * from "dgram"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/diagnostics_channel.d.ts b/backend/node_modules/httpx/node_modules/@types/node/diagnostics_channel.d.ts new file mode 100644 index 0000000..f758aec --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/diagnostics_channel.d.ts @@ -0,0 +1,578 @@ +/** + * The `node:diagnostics_channel` module provides an API to create named channels + * to report arbitrary message data for diagnostics purposes. + * + * It can be accessed using: + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * ``` + * + * It is intended that a module writer wanting to report diagnostics messages + * will create one or many top-level channels to report messages through. + * Channels may also be acquired at runtime but it is not encouraged + * due to the additional overhead of doing so. Channels may be exported for + * convenience, but as long as the name is known it can be acquired anywhere. + * + * If you intend for your module to produce diagnostics data for others to + * consume it is recommended that you include documentation of what named + * channels are used along with the shape of the message data. Channel names + * should generally include the module name to avoid collisions with data from + * other modules. + * @since v15.1.0, v14.17.0 + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/diagnostics_channel.js) + */ +declare module "diagnostics_channel" { + import { AsyncLocalStorage } from "node:async_hooks"; + /** + * Check if there are active subscribers to the named channel. This is helpful if + * the message you want to send might be expensive to prepare. + * + * This API is optional but helpful when trying to publish messages from very + * performance-sensitive code. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * + * if (diagnostics_channel.hasSubscribers('my-channel')) { + * // There are subscribers, prepare and publish message + * } + * ``` + * @since v15.1.0, v14.17.0 + * @param name The channel name + * @return If there are active subscribers + */ + function hasSubscribers(name: string | symbol): boolean; + /** + * This is the primary entry-point for anyone wanting to publish to a named + * channel. It produces a channel object which is optimized to reduce overhead at + * publish time as much as possible. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * + * const channel = diagnostics_channel.channel('my-channel'); + * ``` + * @since v15.1.0, v14.17.0 + * @param name The channel name + * @return The named channel object + */ + function channel(name: string | symbol): Channel; + type ChannelListener = (message: unknown, name: string | symbol) => void; + /** + * Register a message handler to subscribe to this channel. This message handler + * will be run synchronously whenever a message is published to the channel. Any + * errors thrown in the message handler will trigger an `'uncaughtException'`. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * + * diagnostics_channel.subscribe('my-channel', (message, name) => { + * // Received data + * }); + * ``` + * @since v18.7.0, v16.17.0 + * @param name The channel name + * @param onMessage The handler to receive channel messages + */ + function subscribe(name: string | symbol, onMessage: ChannelListener): void; + /** + * Remove a message handler previously registered to this channel with {@link subscribe}. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * + * function onMessage(message, name) { + * // Received data + * } + * + * diagnostics_channel.subscribe('my-channel', onMessage); + * + * diagnostics_channel.unsubscribe('my-channel', onMessage); + * ``` + * @since v18.7.0, v16.17.0 + * @param name The channel name + * @param onMessage The previous subscribed handler to remove + * @return `true` if the handler was found, `false` otherwise. + */ + function unsubscribe(name: string | symbol, onMessage: ChannelListener): boolean; + /** + * Creates a `TracingChannel` wrapper for the given `TracingChannel Channels`. If a name is given, the corresponding tracing + * channels will be created in the form of `tracing:${name}:${eventType}` where `eventType` corresponds to the types of `TracingChannel Channels`. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * + * const channelsByName = diagnostics_channel.tracingChannel('my-channel'); + * + * // or... + * + * const channelsByCollection = diagnostics_channel.tracingChannel({ + * start: diagnostics_channel.channel('tracing:my-channel:start'), + * end: diagnostics_channel.channel('tracing:my-channel:end'), + * asyncStart: diagnostics_channel.channel('tracing:my-channel:asyncStart'), + * asyncEnd: diagnostics_channel.channel('tracing:my-channel:asyncEnd'), + * error: diagnostics_channel.channel('tracing:my-channel:error'), + * }); + * ``` + * @since v19.9.0 + * @experimental + * @param nameOrChannels Channel name or object containing all the `TracingChannel Channels` + * @return Collection of channels to trace with + */ + function tracingChannel< + StoreType = unknown, + ContextType extends object = StoreType extends object ? StoreType : object, + >( + nameOrChannels: string | TracingChannelCollection, + ): TracingChannel; + /** + * The class `Channel` represents an individual named channel within the data + * pipeline. It is used to track subscribers and to publish messages when there + * are subscribers present. It exists as a separate object to avoid channel + * lookups at publish time, enabling very fast publish speeds and allowing + * for heavy use while incurring very minimal cost. Channels are created with {@link channel}, constructing a channel directly + * with `new Channel(name)` is not supported. + * @since v15.1.0, v14.17.0 + */ + class Channel { + readonly name: string | symbol; + /** + * Check if there are active subscribers to this channel. This is helpful if + * the message you want to send might be expensive to prepare. + * + * This API is optional but helpful when trying to publish messages from very + * performance-sensitive code. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * + * const channel = diagnostics_channel.channel('my-channel'); + * + * if (channel.hasSubscribers) { + * // There are subscribers, prepare and publish message + * } + * ``` + * @since v15.1.0, v14.17.0 + */ + readonly hasSubscribers: boolean; + private constructor(name: string | symbol); + /** + * Publish a message to any subscribers to the channel. This will trigger + * message handlers synchronously so they will execute within the same context. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * + * const channel = diagnostics_channel.channel('my-channel'); + * + * channel.publish({ + * some: 'message', + * }); + * ``` + * @since v15.1.0, v14.17.0 + * @param message The message to send to the channel subscribers + */ + publish(message: unknown): void; + /** + * Register a message handler to subscribe to this channel. This message handler + * will be run synchronously whenever a message is published to the channel. Any + * errors thrown in the message handler will trigger an `'uncaughtException'`. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * + * const channel = diagnostics_channel.channel('my-channel'); + * + * channel.subscribe((message, name) => { + * // Received data + * }); + * ``` + * @since v15.1.0, v14.17.0 + * @deprecated Since v18.7.0,v16.17.0 - Use {@link subscribe(name, onMessage)} + * @param onMessage The handler to receive channel messages + */ + subscribe(onMessage: ChannelListener): void; + /** + * Remove a message handler previously registered to this channel with `channel.subscribe(onMessage)`. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * + * const channel = diagnostics_channel.channel('my-channel'); + * + * function onMessage(message, name) { + * // Received data + * } + * + * channel.subscribe(onMessage); + * + * channel.unsubscribe(onMessage); + * ``` + * @since v15.1.0, v14.17.0 + * @deprecated Since v18.7.0,v16.17.0 - Use {@link unsubscribe(name, onMessage)} + * @param onMessage The previous subscribed handler to remove + * @return `true` if the handler was found, `false` otherwise. + */ + unsubscribe(onMessage: ChannelListener): void; + /** + * When `channel.runStores(context, ...)` is called, the given context data + * will be applied to any store bound to the channel. If the store has already been + * bound the previous `transform` function will be replaced with the new one. + * The `transform` function may be omitted to set the given context data as the + * context directly. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * import { AsyncLocalStorage } from 'node:async_hooks'; + * + * const store = new AsyncLocalStorage(); + * + * const channel = diagnostics_channel.channel('my-channel'); + * + * channel.bindStore(store, (data) => { + * return { data }; + * }); + * ``` + * @since v19.9.0 + * @experimental + * @param store The store to which to bind the context data + * @param transform Transform context data before setting the store context + */ + bindStore(store: AsyncLocalStorage, transform?: (context: ContextType) => StoreType): void; + /** + * Remove a message handler previously registered to this channel with `channel.bindStore(store)`. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * import { AsyncLocalStorage } from 'node:async_hooks'; + * + * const store = new AsyncLocalStorage(); + * + * const channel = diagnostics_channel.channel('my-channel'); + * + * channel.bindStore(store); + * channel.unbindStore(store); + * ``` + * @since v19.9.0 + * @experimental + * @param store The store to unbind from the channel. + * @return `true` if the store was found, `false` otherwise. + */ + unbindStore(store: AsyncLocalStorage): boolean; + /** + * Applies the given data to any AsyncLocalStorage instances bound to the channel + * for the duration of the given function, then publishes to the channel within + * the scope of that data is applied to the stores. + * + * If a transform function was given to `channel.bindStore(store)` it will be + * applied to transform the message data before it becomes the context value for + * the store. The prior storage context is accessible from within the transform + * function in cases where context linking is required. + * + * The context applied to the store should be accessible in any async code which + * continues from execution which began during the given function, however + * there are some situations in which `context loss` may occur. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * import { AsyncLocalStorage } from 'node:async_hooks'; + * + * const store = new AsyncLocalStorage(); + * + * const channel = diagnostics_channel.channel('my-channel'); + * + * channel.bindStore(store, (message) => { + * const parent = store.getStore(); + * return new Span(message, parent); + * }); + * channel.runStores({ some: 'message' }, () => { + * store.getStore(); // Span({ some: 'message' }) + * }); + * ``` + * @since v19.9.0 + * @experimental + * @param context Message to send to subscribers and bind to stores + * @param fn Handler to run within the entered storage context + * @param thisArg The receiver to be used for the function call. + * @param args Optional arguments to pass to the function. + */ + runStores( + context: ContextType, + fn: (this: ThisArg, ...args: Args) => Result, + thisArg?: ThisArg, + ...args: Args + ): Result; + } + interface TracingChannelSubscribers { + start: (message: ContextType) => void; + end: ( + message: ContextType & { + error?: unknown; + result?: unknown; + }, + ) => void; + asyncStart: ( + message: ContextType & { + error?: unknown; + result?: unknown; + }, + ) => void; + asyncEnd: ( + message: ContextType & { + error?: unknown; + result?: unknown; + }, + ) => void; + error: ( + message: ContextType & { + error: unknown; + }, + ) => void; + } + interface TracingChannelCollection { + start: Channel; + end: Channel; + asyncStart: Channel; + asyncEnd: Channel; + error: Channel; + } + /** + * The class `TracingChannel` is a collection of `TracingChannel Channels` which + * together express a single traceable action. It is used to formalize and + * simplify the process of producing events for tracing application flow. {@link tracingChannel} is used to construct a `TracingChannel`. As with `Channel` it is recommended to create and reuse a + * single `TracingChannel` at the top-level of the file rather than creating them + * dynamically. + * @since v19.9.0 + * @experimental + */ + class TracingChannel implements TracingChannelCollection { + start: Channel; + end: Channel; + asyncStart: Channel; + asyncEnd: Channel; + error: Channel; + /** + * Helper to subscribe a collection of functions to the corresponding channels. + * This is the same as calling `channel.subscribe(onMessage)` on each channel + * individually. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * + * const channels = diagnostics_channel.tracingChannel('my-channel'); + * + * channels.subscribe({ + * start(message) { + * // Handle start message + * }, + * end(message) { + * // Handle end message + * }, + * asyncStart(message) { + * // Handle asyncStart message + * }, + * asyncEnd(message) { + * // Handle asyncEnd message + * }, + * error(message) { + * // Handle error message + * }, + * }); + * ``` + * @since v19.9.0 + * @experimental + * @param subscribers Set of `TracingChannel Channels` subscribers + */ + subscribe(subscribers: TracingChannelSubscribers): void; + /** + * Helper to unsubscribe a collection of functions from the corresponding channels. + * This is the same as calling `channel.unsubscribe(onMessage)` on each channel + * individually. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * + * const channels = diagnostics_channel.tracingChannel('my-channel'); + * + * channels.unsubscribe({ + * start(message) { + * // Handle start message + * }, + * end(message) { + * // Handle end message + * }, + * asyncStart(message) { + * // Handle asyncStart message + * }, + * asyncEnd(message) { + * // Handle asyncEnd message + * }, + * error(message) { + * // Handle error message + * }, + * }); + * ``` + * @since v19.9.0 + * @experimental + * @param subscribers Set of `TracingChannel Channels` subscribers + * @return `true` if all handlers were successfully unsubscribed, and `false` otherwise. + */ + unsubscribe(subscribers: TracingChannelSubscribers): void; + /** + * Trace a synchronous function call. This will always produce a `start event` and `end event` around the execution and may produce an `error event` if the given function throws an error. + * This will run the given function using `channel.runStores(context, ...)` on the `start` channel which ensures all + * events should have any bound stores set to match this trace context. + * + * To ensure only correct trace graphs are formed, events will only be published if subscribers are present prior to starting the trace. Subscriptions + * which are added after the trace begins will not receive future events from that trace, only future traces will be seen. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * + * const channels = diagnostics_channel.tracingChannel('my-channel'); + * + * channels.traceSync(() => { + * // Do something + * }, { + * some: 'thing', + * }); + * ``` + * @since v19.9.0 + * @experimental + * @param fn Function to wrap a trace around + * @param context Shared object to correlate events through + * @param thisArg The receiver to be used for the function call + * @param args Optional arguments to pass to the function + * @return The return value of the given function + */ + traceSync( + fn: (this: ThisArg, ...args: Args) => Result, + context?: ContextType, + thisArg?: ThisArg, + ...args: Args + ): Result; + /** + * Trace a promise-returning function call. This will always produce a `start event` and `end event` around the synchronous portion of the + * function execution, and will produce an `asyncStart event` and `asyncEnd event` when a promise continuation is reached. It may also + * produce an `error event` if the given function throws an error or the + * returned promise rejects. This will run the given function using `channel.runStores(context, ...)` on the `start` channel which ensures all + * events should have any bound stores set to match this trace context. + * + * To ensure only correct trace graphs are formed, events will only be published if subscribers are present prior to starting the trace. Subscriptions + * which are added after the trace begins will not receive future events from that trace, only future traces will be seen. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * + * const channels = diagnostics_channel.tracingChannel('my-channel'); + * + * channels.tracePromise(async () => { + * // Do something + * }, { + * some: 'thing', + * }); + * ``` + * @since v19.9.0 + * @experimental + * @param fn Promise-returning function to wrap a trace around + * @param context Shared object to correlate trace events through + * @param thisArg The receiver to be used for the function call + * @param args Optional arguments to pass to the function + * @return Chained from promise returned by the given function + */ + tracePromise( + fn: (this: ThisArg, ...args: Args) => Promise, + context?: ContextType, + thisArg?: ThisArg, + ...args: Args + ): Promise; + /** + * Trace a callback-receiving function call. This will always produce a `start event` and `end event` around the synchronous portion of the + * function execution, and will produce a `asyncStart event` and `asyncEnd event` around the callback execution. It may also produce an `error event` if the given function throws an error or + * the returned + * promise rejects. This will run the given function using `channel.runStores(context, ...)` on the `start` channel which ensures all + * events should have any bound stores set to match this trace context. + * + * The `position` will be -1 by default to indicate the final argument should + * be used as the callback. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * + * const channels = diagnostics_channel.tracingChannel('my-channel'); + * + * channels.traceCallback((arg1, callback) => { + * // Do something + * callback(null, 'result'); + * }, 1, { + * some: 'thing', + * }, thisArg, arg1, callback); + * ``` + * + * The callback will also be run with `channel.runStores(context, ...)` which + * enables context loss recovery in some cases. + * + * To ensure only correct trace graphs are formed, events will only be published if subscribers are present prior to starting the trace. Subscriptions + * which are added after the trace begins will not receive future events from that trace, only future traces will be seen. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * import { AsyncLocalStorage } from 'node:async_hooks'; + * + * const channels = diagnostics_channel.tracingChannel('my-channel'); + * const myStore = new AsyncLocalStorage(); + * + * // The start channel sets the initial store data to something + * // and stores that store data value on the trace context object + * channels.start.bindStore(myStore, (data) => { + * const span = new Span(data); + * data.span = span; + * return span; + * }); + * + * // Then asyncStart can restore from that data it stored previously + * channels.asyncStart.bindStore(myStore, (data) => { + * return data.span; + * }); + * ``` + * @since v19.9.0 + * @experimental + * @param fn callback using function to wrap a trace around + * @param position Zero-indexed argument position of expected callback + * @param context Shared object to correlate trace events through + * @param thisArg The receiver to be used for the function call + * @param args Optional arguments to pass to the function + * @return The return value of the given function + */ + traceCallback( + fn: (this: ThisArg, ...args: Args) => Result, + position?: number, + context?: ContextType, + thisArg?: ThisArg, + ...args: Args + ): Result; + /** + * `true` if any of the individual channels has a subscriber, `false` if not. + * + * This is a helper method available on a {@link TracingChannel} instance to check + * if any of the [TracingChannel Channels](https://nodejs.org/api/diagnostics_channel.html#tracingchannel-channels) have subscribers. + * A `true` is returned if any of them have at least one subscriber, a `false` is returned otherwise. + * + * ```js + * const diagnostics_channel = require('node:diagnostics_channel'); + * + * const channels = diagnostics_channel.tracingChannel('my-channel'); + * + * if (channels.hasSubscribers) { + * // Do something + * } + * ``` + * @since v22.0.0, v20.13.0 + */ + readonly hasSubscribers: boolean; + } +} +declare module "node:diagnostics_channel" { + export * from "diagnostics_channel"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/dns.d.ts b/backend/node_modules/httpx/node_modules/@types/node/dns.d.ts new file mode 100644 index 0000000..acb5264 --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/dns.d.ts @@ -0,0 +1,871 @@ +/** + * The `node:dns` module enables name resolution. For example, use it to look up IP + * addresses of host names. + * + * Although named for the [Domain Name System (DNS)](https://en.wikipedia.org/wiki/Domain_Name_System), it does not always use the + * DNS protocol for lookups. {@link lookup} uses the operating system + * facilities to perform name resolution. It may not need to perform any network + * communication. To perform name resolution the way other applications on the same + * system do, use {@link lookup}. + * + * ```js + * import dns from 'node:dns'; + * + * dns.lookup('example.org', (err, address, family) => { + * console.log('address: %j family: IPv%s', address, family); + * }); + * // address: "93.184.216.34" family: IPv4 + * ``` + * + * All other functions in the `node:dns` module connect to an actual DNS server to + * perform name resolution. They will always use the network to perform DNS + * queries. These functions do not use the same set of configuration files used by {@link lookup} (e.g. `/etc/hosts`). Use these functions to always perform + * DNS queries, bypassing other name-resolution facilities. + * + * ```js + * import dns from 'node:dns'; + * + * dns.resolve4('archive.org', (err, addresses) => { + * if (err) throw err; + * + * console.log(`addresses: ${JSON.stringify(addresses)}`); + * + * addresses.forEach((a) => { + * dns.reverse(a, (err, hostnames) => { + * if (err) { + * throw err; + * } + * console.log(`reverse for ${a}: ${JSON.stringify(hostnames)}`); + * }); + * }); + * }); + * ``` + * + * See the [Implementation considerations section](https://nodejs.org/docs/latest-v20.x/api/dns.html#implementation-considerations) for more information. + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/dns.js) + */ +declare module "dns" { + import * as dnsPromises from "node:dns/promises"; + // Supported getaddrinfo flags. + /** + * Limits returned address types to the types of non-loopback addresses configured on the system. For example, IPv4 addresses are + * only returned if the current system has at least one IPv4 address configured. + */ + export const ADDRCONFIG: number; + /** + * If the IPv6 family was specified, but no IPv6 addresses were found, then return IPv4 mapped IPv6 addresses. It is not supported + * on some operating systems (e.g. FreeBSD 10.1). + */ + export const V4MAPPED: number; + /** + * If `dns.V4MAPPED` is specified, return resolved IPv6 addresses as + * well as IPv4 mapped IPv6 addresses. + */ + export const ALL: number; + export interface LookupOptions { + /** + * The record family. Must be `4`, `6`, or `0`. For backward compatibility reasons, `'IPv4'` and `'IPv6'` are interpreted + * as `4` and `6` respectively. The value 0 indicates that either an IPv4 or IPv6 address is returned. If the value `0` is used + * with `{ all: true } (see below)`, both IPv4 and IPv6 addresses are returned. + * @default 0 + */ + family?: number | "IPv4" | "IPv6" | undefined; + /** + * One or more [supported `getaddrinfo`](https://nodejs.org/docs/latest-v20.x/api/dns.html#supported-getaddrinfo-flags) flags. Multiple flags may be + * passed by bitwise `OR`ing their values. + */ + hints?: number | undefined; + /** + * When `true`, the callback returns all resolved addresses in an array. Otherwise, returns a single address. + * @default false + */ + all?: boolean | undefined; + /** + * When `verbatim`, the resolved addresses are return unsorted. When `ipv4first`, the resolved addresses are sorted + * by placing IPv4 addresses before IPv6 addresses. When `ipv6first`, the resolved addresses are sorted by placing IPv6 + * addresses before IPv4 addresses. Default value is configurable using + * {@link setDefaultResultOrder} or [`--dns-result-order`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--dns-result-orderorder). + * @default `verbatim` (addresses are not reordered) + */ + order?: "ipv4first" | "ipv6first" | "verbatim" | undefined; + /** + * When `true`, the callback receives IPv4 and IPv6 addresses in the order the DNS resolver returned them. When `false`, IPv4 + * addresses are placed before IPv6 addresses. This option will be deprecated in favor of `order`. When both are specified, + * `order` has higher precedence. New code should only use `order`. Default value is configurable using {@link setDefaultResultOrder} + * or [`--dns-result-order`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--dns-result-orderorder). + * @default true (addresses are not reordered) + */ + verbatim?: boolean | undefined; + } + export interface LookupOneOptions extends LookupOptions { + all?: false | undefined; + } + export interface LookupAllOptions extends LookupOptions { + all: true; + } + export interface LookupAddress { + /** + * A string representation of an IPv4 or IPv6 address. + */ + address: string; + /** + * `4` or `6`, denoting the family of `address`, or `0` if the address is not an IPv4 or IPv6 address. `0` is a likely indicator of a + * bug in the name resolution service used by the operating system. + */ + family: number; + } + /** + * Resolves a host name (e.g. `'nodejs.org'`) into the first found A (IPv4) or + * AAAA (IPv6) record. All `option` properties are optional. If `options` is an + * integer, then it must be `4` or `6` – if `options` is `0` or not provided, then + * IPv4 and IPv6 addresses are both returned if found. + * + * With the `all` option set to `true`, the arguments for `callback` change to `(err, addresses)`, with `addresses` being an array of objects with the + * properties `address` and `family`. + * + * On error, `err` is an `Error` object, where `err.code` is the error code. + * Keep in mind that `err.code` will be set to `'ENOTFOUND'` not only when + * the host name does not exist but also when the lookup fails in other ways + * such as no available file descriptors. + * + * `dns.lookup()` does not necessarily have anything to do with the DNS protocol. + * The implementation uses an operating system facility that can associate names + * with addresses and vice versa. This implementation can have subtle but + * important consequences on the behavior of any Node.js program. Please take some + * time to consult the [Implementation considerations section](https://nodejs.org/docs/latest-v20.x/api/dns.html#implementation-considerations) + * before using `dns.lookup()`. + * + * Example usage: + * + * ```js + * import dns from 'node:dns'; + * const options = { + * family: 6, + * hints: dns.ADDRCONFIG | dns.V4MAPPED, + * }; + * dns.lookup('example.com', options, (err, address, family) => + * console.log('address: %j family: IPv%s', address, family)); + * // address: "2606:2800:220:1:248:1893:25c8:1946" family: IPv6 + * + * // When options.all is true, the result will be an Array. + * options.all = true; + * dns.lookup('example.com', options, (err, addresses) => + * console.log('addresses: %j', addresses)); + * // addresses: [{"address":"2606:2800:220:1:248:1893:25c8:1946","family":6}] + * ``` + * + * If this method is invoked as its [util.promisify()](https://nodejs.org/docs/latest-v20.x/api/util.html#utilpromisifyoriginal) ed + * version, and `all` is not set to `true`, it returns a `Promise` for an `Object` with `address` and `family` properties. + * @since v0.1.90 + */ + export function lookup( + hostname: string, + family: number, + callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void, + ): void; + export function lookup( + hostname: string, + options: LookupOneOptions, + callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void, + ): void; + export function lookup( + hostname: string, + options: LookupAllOptions, + callback: (err: NodeJS.ErrnoException | null, addresses: LookupAddress[]) => void, + ): void; + export function lookup( + hostname: string, + options: LookupOptions, + callback: (err: NodeJS.ErrnoException | null, address: string | LookupAddress[], family: number) => void, + ): void; + export function lookup( + hostname: string, + callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void, + ): void; + export namespace lookup { + function __promisify__(hostname: string, options: LookupAllOptions): Promise; + function __promisify__(hostname: string, options?: LookupOneOptions | number): Promise; + function __promisify__(hostname: string, options: LookupOptions): Promise; + } + /** + * Resolves the given `address` and `port` into a host name and service using + * the operating system's underlying `getnameinfo` implementation. + * + * If `address` is not a valid IP address, a `TypeError` will be thrown. + * The `port` will be coerced to a number. If it is not a legal port, a `TypeError` will be thrown. + * + * On an error, `err` is an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, + * where `err.code` is the error code. + * + * ```js + * import dns from 'node:dns'; + * dns.lookupService('127.0.0.1', 22, (err, hostname, service) => { + * console.log(hostname, service); + * // Prints: localhost ssh + * }); + * ``` + * + * If this method is invoked as its [util.promisify()](https://nodejs.org/docs/latest-v20.x/api/util.html#utilpromisifyoriginal) ed + * version, it returns a `Promise` for an `Object` with `hostname` and `service` properties. + * @since v0.11.14 + */ + export function lookupService( + address: string, + port: number, + callback: (err: NodeJS.ErrnoException | null, hostname: string, service: string) => void, + ): void; + export namespace lookupService { + function __promisify__( + address: string, + port: number, + ): Promise<{ + hostname: string; + service: string; + }>; + } + export interface ResolveOptions { + ttl: boolean; + } + export interface ResolveWithTtlOptions extends ResolveOptions { + ttl: true; + } + export interface RecordWithTtl { + address: string; + ttl: number; + } + /** @deprecated Use `AnyARecord` or `AnyAaaaRecord` instead. */ + export type AnyRecordWithTtl = AnyARecord | AnyAaaaRecord; + export interface AnyARecord extends RecordWithTtl { + type: "A"; + } + export interface AnyAaaaRecord extends RecordWithTtl { + type: "AAAA"; + } + export interface CaaRecord { + critical: number; + issue?: string | undefined; + issuewild?: string | undefined; + iodef?: string | undefined; + contactemail?: string | undefined; + contactphone?: string | undefined; + } + export interface AnyCaaRecord extends CaaRecord { + type: "CAA"; + } + export interface MxRecord { + priority: number; + exchange: string; + } + export interface AnyMxRecord extends MxRecord { + type: "MX"; + } + export interface NaptrRecord { + flags: string; + service: string; + regexp: string; + replacement: string; + order: number; + preference: number; + } + export interface AnyNaptrRecord extends NaptrRecord { + type: "NAPTR"; + } + export interface SoaRecord { + nsname: string; + hostmaster: string; + serial: number; + refresh: number; + retry: number; + expire: number; + minttl: number; + } + export interface AnySoaRecord extends SoaRecord { + type: "SOA"; + } + export interface SrvRecord { + priority: number; + weight: number; + port: number; + name: string; + } + export interface AnySrvRecord extends SrvRecord { + type: "SRV"; + } + export interface AnyTxtRecord { + type: "TXT"; + entries: string[]; + } + export interface AnyNsRecord { + type: "NS"; + value: string; + } + export interface AnyPtrRecord { + type: "PTR"; + value: string; + } + export interface AnyCnameRecord { + type: "CNAME"; + value: string; + } + export type AnyRecord = + | AnyARecord + | AnyAaaaRecord + | AnyCaaRecord + | AnyCnameRecord + | AnyMxRecord + | AnyNaptrRecord + | AnyNsRecord + | AnyPtrRecord + | AnySoaRecord + | AnySrvRecord + | AnyTxtRecord; + /** + * Uses the DNS protocol to resolve a host name (e.g. `'nodejs.org'`) into an array + * of the resource records. The `callback` function has arguments `(err, records)`. When successful, `records` will be an array of resource + * records. The type and structure of individual results varies based on `rrtype`: + * + * + * + * On error, `err` is an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, + * where `err.code` is one of the `DNS error codes`. + * @since v0.1.27 + * @param hostname Host name to resolve. + * @param [rrtype='A'] Resource record type. + */ + export function resolve( + hostname: string, + callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, + ): void; + export function resolve( + hostname: string, + rrtype: "A" | "AAAA" | "CNAME" | "NS" | "PTR", + callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, + ): void; + export function resolve( + hostname: string, + rrtype: "ANY", + callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void, + ): void; + export function resolve( + hostname: string, + rrtype: "CAA", + callback: (err: NodeJS.ErrnoException | null, address: CaaRecord[]) => void, + ): void; + export function resolve( + hostname: string, + rrtype: "MX", + callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void, + ): void; + export function resolve( + hostname: string, + rrtype: "NAPTR", + callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void, + ): void; + export function resolve( + hostname: string, + rrtype: "SOA", + callback: (err: NodeJS.ErrnoException | null, addresses: SoaRecord) => void, + ): void; + export function resolve( + hostname: string, + rrtype: "SRV", + callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void, + ): void; + export function resolve( + hostname: string, + rrtype: "TXT", + callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void, + ): void; + export function resolve( + hostname: string, + rrtype: string, + callback: ( + err: NodeJS.ErrnoException | null, + addresses: + | string[] + | CaaRecord[] + | MxRecord[] + | NaptrRecord[] + | SoaRecord + | SrvRecord[] + | string[][] + | AnyRecord[], + ) => void, + ): void; + export namespace resolve { + function __promisify__(hostname: string, rrtype?: "A" | "AAAA" | "CNAME" | "NS" | "PTR"): Promise; + function __promisify__(hostname: string, rrtype: "ANY"): Promise; + function __promisify__(hostname: string, rrtype: "CAA"): Promise; + function __promisify__(hostname: string, rrtype: "MX"): Promise; + function __promisify__(hostname: string, rrtype: "NAPTR"): Promise; + function __promisify__(hostname: string, rrtype: "SOA"): Promise; + function __promisify__(hostname: string, rrtype: "SRV"): Promise; + function __promisify__(hostname: string, rrtype: "TXT"): Promise; + function __promisify__( + hostname: string, + rrtype: string, + ): Promise< + | string[] + | CaaRecord[] + | MxRecord[] + | NaptrRecord[] + | SoaRecord + | SrvRecord[] + | string[][] + | AnyRecord[] + >; + } + /** + * Uses the DNS protocol to resolve a IPv4 addresses (`A` records) for the `hostname`. The `addresses` argument passed to the `callback` function + * will contain an array of IPv4 addresses (e.g.`['74.125.79.104', '74.125.79.105', '74.125.79.106']`). + * @since v0.1.16 + * @param hostname Host name to resolve. + */ + export function resolve4( + hostname: string, + callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, + ): void; + export function resolve4( + hostname: string, + options: ResolveWithTtlOptions, + callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void, + ): void; + export function resolve4( + hostname: string, + options: ResolveOptions, + callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void, + ): void; + export namespace resolve4 { + function __promisify__(hostname: string): Promise; + function __promisify__(hostname: string, options: ResolveWithTtlOptions): Promise; + function __promisify__(hostname: string, options?: ResolveOptions): Promise; + } + /** + * Uses the DNS protocol to resolve IPv6 addresses (`AAAA` records) for the `hostname`. The `addresses` argument passed to the `callback` function + * will contain an array of IPv6 addresses. + * @since v0.1.16 + * @param hostname Host name to resolve. + */ + export function resolve6( + hostname: string, + callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, + ): void; + export function resolve6( + hostname: string, + options: ResolveWithTtlOptions, + callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void, + ): void; + export function resolve6( + hostname: string, + options: ResolveOptions, + callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void, + ): void; + export namespace resolve6 { + function __promisify__(hostname: string): Promise; + function __promisify__(hostname: string, options: ResolveWithTtlOptions): Promise; + function __promisify__(hostname: string, options?: ResolveOptions): Promise; + } + /** + * Uses the DNS protocol to resolve `CNAME` records for the `hostname`. The `addresses` argument passed to the `callback` function + * will contain an array of canonical name records available for the `hostname` (e.g. `['bar.example.com']`). + * @since v0.3.2 + */ + export function resolveCname( + hostname: string, + callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, + ): void; + export namespace resolveCname { + function __promisify__(hostname: string): Promise; + } + /** + * Uses the DNS protocol to resolve `CAA` records for the `hostname`. The `addresses` argument passed to the `callback` function + * will contain an array of certification authority authorization records + * available for the `hostname` (e.g. `[{critical: 0, iodef: 'mailto:pki@example.com'}, {critical: 128, issue: 'pki.example.com'}]`). + * @since v15.0.0, v14.17.0 + */ + export function resolveCaa( + hostname: string, + callback: (err: NodeJS.ErrnoException | null, records: CaaRecord[]) => void, + ): void; + export namespace resolveCaa { + function __promisify__(hostname: string): Promise; + } + /** + * Uses the DNS protocol to resolve mail exchange records (`MX` records) for the `hostname`. The `addresses` argument passed to the `callback` function will + * contain an array of objects containing both a `priority` and `exchange` property (e.g. `[{priority: 10, exchange: 'mx.example.com'}, ...]`). + * @since v0.1.27 + */ + export function resolveMx( + hostname: string, + callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void, + ): void; + export namespace resolveMx { + function __promisify__(hostname: string): Promise; + } + /** + * Uses the DNS protocol to resolve regular expression-based records (`NAPTR` records) for the `hostname`. The `addresses` argument passed to the `callback` function will contain an array of + * objects with the following properties: + * + * * `flags` + * * `service` + * * `regexp` + * * `replacement` + * * `order` + * * `preference` + * + * ```js + * { + * flags: 's', + * service: 'SIP+D2U', + * regexp: '', + * replacement: '_sip._udp.example.com', + * order: 30, + * preference: 100 + * } + * ``` + * @since v0.9.12 + */ + export function resolveNaptr( + hostname: string, + callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void, + ): void; + export namespace resolveNaptr { + function __promisify__(hostname: string): Promise; + } + /** + * Uses the DNS protocol to resolve name server records (`NS` records) for the `hostname`. The `addresses` argument passed to the `callback` function will + * contain an array of name server records available for `hostname` (e.g. `['ns1.example.com', 'ns2.example.com']`). + * @since v0.1.90 + */ + export function resolveNs( + hostname: string, + callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, + ): void; + export namespace resolveNs { + function __promisify__(hostname: string): Promise; + } + /** + * Uses the DNS protocol to resolve pointer records (`PTR` records) for the `hostname`. The `addresses` argument passed to the `callback` function will + * be an array of strings containing the reply records. + * @since v6.0.0 + */ + export function resolvePtr( + hostname: string, + callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, + ): void; + export namespace resolvePtr { + function __promisify__(hostname: string): Promise; + } + /** + * Uses the DNS protocol to resolve a start of authority record (`SOA` record) for + * the `hostname`. The `address` argument passed to the `callback` function will + * be an object with the following properties: + * + * * `nsname` + * * `hostmaster` + * * `serial` + * * `refresh` + * * `retry` + * * `expire` + * * `minttl` + * + * ```js + * { + * nsname: 'ns.example.com', + * hostmaster: 'root.example.com', + * serial: 2013101809, + * refresh: 10000, + * retry: 2400, + * expire: 604800, + * minttl: 3600 + * } + * ``` + * @since v0.11.10 + */ + export function resolveSoa( + hostname: string, + callback: (err: NodeJS.ErrnoException | null, address: SoaRecord) => void, + ): void; + export namespace resolveSoa { + function __promisify__(hostname: string): Promise; + } + /** + * Uses the DNS protocol to resolve service records (`SRV` records) for the `hostname`. The `addresses` argument passed to the `callback` function will + * be an array of objects with the following properties: + * + * * `priority` + * * `weight` + * * `port` + * * `name` + * + * ```js + * { + * priority: 10, + * weight: 5, + * port: 21223, + * name: 'service.example.com' + * } + * ``` + * @since v0.1.27 + */ + export function resolveSrv( + hostname: string, + callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void, + ): void; + export namespace resolveSrv { + function __promisify__(hostname: string): Promise; + } + /** + * Uses the DNS protocol to resolve text queries (`TXT` records) for the `hostname`. The `records` argument passed to the `callback` function is a + * two-dimensional array of the text records available for `hostname` (e.g.`[ ['v=spf1 ip4:0.0.0.0 ', '~all' ] ]`). Each sub-array contains TXT chunks of + * one record. Depending on the use case, these could be either joined together or + * treated separately. + * @since v0.1.27 + */ + export function resolveTxt( + hostname: string, + callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void, + ): void; + export namespace resolveTxt { + function __promisify__(hostname: string): Promise; + } + /** + * Uses the DNS protocol to resolve all records (also known as `ANY` or `*` query). + * The `ret` argument passed to the `callback` function will be an array containing + * various types of records. Each object has a property `type` that indicates the + * type of the current record. And depending on the `type`, additional properties + * will be present on the object: + * + * + * + * Here is an example of the `ret` object passed to the callback: + * + * ```js + * [ { type: 'A', address: '127.0.0.1', ttl: 299 }, + * { type: 'CNAME', value: 'example.com' }, + * { type: 'MX', exchange: 'alt4.aspmx.l.example.com', priority: 50 }, + * { type: 'NS', value: 'ns1.example.com' }, + * { type: 'TXT', entries: [ 'v=spf1 include:_spf.example.com ~all' ] }, + * { type: 'SOA', + * nsname: 'ns1.example.com', + * hostmaster: 'admin.example.com', + * serial: 156696742, + * refresh: 900, + * retry: 900, + * expire: 1800, + * minttl: 60 } ] + * ``` + * + * DNS server operators may choose not to respond to `ANY` queries. It may be better to call individual methods like {@link resolve4}, {@link resolveMx}, and so on. For more details, see + * [RFC 8482](https://tools.ietf.org/html/rfc8482). + */ + export function resolveAny( + hostname: string, + callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void, + ): void; + export namespace resolveAny { + function __promisify__(hostname: string): Promise; + } + /** + * Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an + * array of host names. + * + * On error, `err` is an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code` is + * one of the [DNS error codes](https://nodejs.org/docs/latest-v20.x/api/dns.html#error-codes). + * @since v0.1.16 + */ + export function reverse( + ip: string, + callback: (err: NodeJS.ErrnoException | null, hostnames: string[]) => void, + ): void; + /** + * Get the default value for `order` in {@link lookup} and [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromiseslookuphostname-options). + * The value could be: + * + * * `ipv4first`: for `order` defaulting to `ipv4first`. + * * `ipv6first`: for `order` defaulting to `ipv6first`. + * * `verbatim`: for `order` defaulting to `verbatim`. + * @since v18.17.0 + */ + export function getDefaultResultOrder(): "ipv4first" | "ipv6first" | "verbatim"; + /** + * Sets the IP address and port of servers to be used when performing DNS + * resolution. The `servers` argument is an array of [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6) formatted + * addresses. If the port is the IANA default DNS port (53) it can be omitted. + * + * ```js + * dns.setServers([ + * '4.4.4.4', + * '[2001:4860:4860::8888]', + * '4.4.4.4:1053', + * '[2001:4860:4860::8888]:1053', + * ]); + * ``` + * + * An error will be thrown if an invalid address is provided. + * + * The `dns.setServers()` method must not be called while a DNS query is in + * progress. + * + * The {@link setServers} method affects only {@link resolve}, `dns.resolve*()` and {@link reverse} (and specifically _not_ {@link lookup}). + * + * This method works much like [resolve.conf](https://man7.org/linux/man-pages/man5/resolv.conf.5.html). + * That is, if attempting to resolve with the first server provided results in a `NOTFOUND` error, the `resolve()` method will _not_ attempt to resolve with + * subsequent servers provided. Fallback DNS servers will only be used if the + * earlier ones time out or result in some other error. + * @since v0.11.3 + * @param servers array of [RFC 5952](https://datatracker.ietf.org/doc/html/rfc5952#section-6) formatted addresses + */ + export function setServers(servers: readonly string[]): void; + /** + * Returns an array of IP address strings, formatted according to [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6), + * that are currently configured for DNS resolution. A string will include a port + * section if a custom port is used. + * + * ```js + * [ + * '4.4.4.4', + * '2001:4860:4860::8888', + * '4.4.4.4:1053', + * '[2001:4860:4860::8888]:1053', + * ] + * ``` + * @since v0.11.3 + */ + export function getServers(): string[]; + /** + * Set the default value of `order` in {@link lookup} and [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromiseslookuphostname-options). + * The value could be: + * + * * `ipv4first`: sets default `order` to `ipv4first`. + * * `ipv6first`: sets default `order` to `ipv6first`. + * * `verbatim`: sets default `order` to `verbatim`. + * + * The default is `verbatim` and {@link setDefaultResultOrder} have higher + * priority than [`--dns-result-order`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--dns-result-orderorder). When using + * [worker threads](https://nodejs.org/docs/latest-v20.x/api/worker_threads.html), {@link setDefaultResultOrder} from the main + * thread won't affect the default dns orders in workers. + * @since v16.4.0, v14.18.0 + * @param order must be `'ipv4first'`, `'ipv6first'` or `'verbatim'`. + */ + export function setDefaultResultOrder(order: "ipv4first" | "ipv6first" | "verbatim"): void; + // Error codes + export const NODATA: "ENODATA"; + export const FORMERR: "EFORMERR"; + export const SERVFAIL: "ESERVFAIL"; + export const NOTFOUND: "ENOTFOUND"; + export const NOTIMP: "ENOTIMP"; + export const REFUSED: "EREFUSED"; + export const BADQUERY: "EBADQUERY"; + export const BADNAME: "EBADNAME"; + export const BADFAMILY: "EBADFAMILY"; + export const BADRESP: "EBADRESP"; + export const CONNREFUSED: "ECONNREFUSED"; + export const TIMEOUT: "ETIMEOUT"; + export const EOF: "EOF"; + export const FILE: "EFILE"; + export const NOMEM: "ENOMEM"; + export const DESTRUCTION: "EDESTRUCTION"; + export const BADSTR: "EBADSTR"; + export const BADFLAGS: "EBADFLAGS"; + export const NONAME: "ENONAME"; + export const BADHINTS: "EBADHINTS"; + export const NOTINITIALIZED: "ENOTINITIALIZED"; + export const LOADIPHLPAPI: "ELOADIPHLPAPI"; + export const ADDRGETNETWORKPARAMS: "EADDRGETNETWORKPARAMS"; + export const CANCELLED: "ECANCELLED"; + export interface ResolverOptions { + /** + * Query timeout in milliseconds, or `-1` to use the default timeout. + */ + timeout?: number | undefined; + /** + * The number of tries the resolver will try contacting each name server before giving up. + * @default 4 + */ + tries?: number | undefined; + } + /** + * An independent resolver for DNS requests. + * + * Creating a new resolver uses the default server settings. Setting + * the servers used for a resolver using [`resolver.setServers()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnssetserversservers) does not affect + * other resolvers: + * + * ```js + * import { Resolver } from 'node:dns'; + * const resolver = new Resolver(); + * resolver.setServers(['4.4.4.4']); + * + * // This request will use the server at 4.4.4.4, independent of global settings. + * resolver.resolve4('example.org', (err, addresses) => { + * // ... + * }); + * ``` + * + * The following methods from the `node:dns` module are available: + * + * * `resolver.getServers()` + * * `resolver.resolve()` + * * `resolver.resolve4()` + * * `resolver.resolve6()` + * * `resolver.resolveAny()` + * * `resolver.resolveCaa()` + * * `resolver.resolveCname()` + * * `resolver.resolveMx()` + * * `resolver.resolveNaptr()` + * * `resolver.resolveNs()` + * * `resolver.resolvePtr()` + * * `resolver.resolveSoa()` + * * `resolver.resolveSrv()` + * * `resolver.resolveTxt()` + * * `resolver.reverse()` + * * `resolver.setServers()` + * @since v8.3.0 + */ + export class Resolver { + constructor(options?: ResolverOptions); + /** + * Cancel all outstanding DNS queries made by this resolver. The corresponding + * callbacks will be called with an error with code `ECANCELLED`. + * @since v8.3.0 + */ + cancel(): void; + getServers: typeof getServers; + resolve: typeof resolve; + resolve4: typeof resolve4; + resolve6: typeof resolve6; + resolveAny: typeof resolveAny; + resolveCaa: typeof resolveCaa; + resolveCname: typeof resolveCname; + resolveMx: typeof resolveMx; + resolveNaptr: typeof resolveNaptr; + resolveNs: typeof resolveNs; + resolvePtr: typeof resolvePtr; + resolveSoa: typeof resolveSoa; + resolveSrv: typeof resolveSrv; + resolveTxt: typeof resolveTxt; + reverse: typeof reverse; + /** + * The resolver instance will send its requests from the specified IP address. + * This allows programs to specify outbound interfaces when used on multi-homed + * systems. + * + * If a v4 or v6 address is not specified, it is set to the default and the + * operating system will choose a local address automatically. + * + * The resolver will use the v4 local address when making requests to IPv4 DNS + * servers, and the v6 local address when making requests to IPv6 DNS servers. + * The `rrtype` of resolution requests has no impact on the local address used. + * @since v15.1.0, v14.17.0 + * @param [ipv4='0.0.0.0'] A string representation of an IPv4 address. + * @param [ipv6='::0'] A string representation of an IPv6 address. + */ + setLocalAddress(ipv4?: string, ipv6?: string): void; + setServers: typeof setServers; + } + export { dnsPromises as promises }; +} +declare module "node:dns" { + export * from "dns"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/dns/promises.d.ts b/backend/node_modules/httpx/node_modules/@types/node/dns/promises.d.ts new file mode 100644 index 0000000..29ae2ba --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/dns/promises.d.ts @@ -0,0 +1,479 @@ +/** + * The `dns.promises` API provides an alternative set of asynchronous DNS methods + * that return `Promise` objects rather than using callbacks. The API is accessible + * via `import { promises } from 'node:dns'` or `import dnsPromises from 'node:dns/promises'`. + * @since v10.6.0 + */ +declare module "dns/promises" { + import { + AnyRecord, + CaaRecord, + LookupAddress, + LookupAllOptions, + LookupOneOptions, + LookupOptions, + MxRecord, + NaptrRecord, + RecordWithTtl, + ResolveOptions, + ResolverOptions, + ResolveWithTtlOptions, + SoaRecord, + SrvRecord, + } from "node:dns"; + /** + * Returns an array of IP address strings, formatted according to [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6), + * that are currently configured for DNS resolution. A string will include a port + * section if a custom port is used. + * + * ```js + * [ + * '4.4.4.4', + * '2001:4860:4860::8888', + * '4.4.4.4:1053', + * '[2001:4860:4860::8888]:1053', + * ] + * ``` + * @since v10.6.0 + */ + function getServers(): string[]; + /** + * Resolves a host name (e.g. `'nodejs.org'`) into the first found A (IPv4) or + * AAAA (IPv6) record. All `option` properties are optional. If `options` is an + * integer, then it must be `4` or `6` – if `options` is not provided, then IPv4 + * and IPv6 addresses are both returned if found. + * + * With the `all` option set to `true`, the `Promise` is resolved with `addresses` being an array of objects with the properties `address` and `family`. + * + * On error, the `Promise` is rejected with an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code` is the error code. + * Keep in mind that `err.code` will be set to `'ENOTFOUND'` not only when + * the host name does not exist but also when the lookup fails in other ways + * such as no available file descriptors. + * + * [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromiseslookuphostname-options) does not necessarily have anything to do with the DNS + * protocol. The implementation uses an operating system facility that can + * associate names with addresses and vice versa. This implementation can have + * subtle but important consequences on the behavior of any Node.js program. Please + * take some time to consult the [Implementation considerations section](https://nodejs.org/docs/latest-v20.x/api/dns.html#implementation-considerations) before + * using `dnsPromises.lookup()`. + * + * Example usage: + * + * ```js + * import dns from 'node:dns'; + * const dnsPromises = dns.promises; + * const options = { + * family: 6, + * hints: dns.ADDRCONFIG | dns.V4MAPPED, + * }; + * + * dnsPromises.lookup('example.com', options).then((result) => { + * console.log('address: %j family: IPv%s', result.address, result.family); + * // address: "2606:2800:220:1:248:1893:25c8:1946" family: IPv6 + * }); + * + * // When options.all is true, the result will be an Array. + * options.all = true; + * dnsPromises.lookup('example.com', options).then((result) => { + * console.log('addresses: %j', result); + * // addresses: [{"address":"2606:2800:220:1:248:1893:25c8:1946","family":6}] + * }); + * ``` + * @since v10.6.0 + */ + function lookup(hostname: string, family: number): Promise; + function lookup(hostname: string, options: LookupOneOptions): Promise; + function lookup(hostname: string, options: LookupAllOptions): Promise; + function lookup(hostname: string, options: LookupOptions): Promise; + function lookup(hostname: string): Promise; + /** + * Resolves the given `address` and `port` into a host name and service using + * the operating system's underlying `getnameinfo` implementation. + * + * If `address` is not a valid IP address, a `TypeError` will be thrown. + * The `port` will be coerced to a number. If it is not a legal port, a `TypeError` will be thrown. + * + * On error, the `Promise` is rejected with an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code` is the error code. + * + * ```js + * import dns from 'node:dns'; + * dns.promises.lookupService('127.0.0.1', 22).then((result) => { + * console.log(result.hostname, result.service); + * // Prints: localhost ssh + * }); + * ``` + * @since v10.6.0 + */ + function lookupService( + address: string, + port: number, + ): Promise<{ + hostname: string; + service: string; + }>; + /** + * Uses the DNS protocol to resolve a host name (e.g. `'nodejs.org'`) into an array + * of the resource records. When successful, the `Promise` is resolved with an + * array of resource records. The type and structure of individual results vary + * based on `rrtype`: + * + * + * + * On error, the `Promise` is rejected with an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code` + * is one of the [DNS error codes](https://nodejs.org/docs/latest-v20.x/api/dns.html#error-codes). + * @since v10.6.0 + * @param hostname Host name to resolve. + * @param [rrtype='A'] Resource record type. + */ + function resolve(hostname: string): Promise; + function resolve(hostname: string, rrtype: "A" | "AAAA" | "CNAME" | "NS" | "PTR"): Promise; + function resolve(hostname: string, rrtype: "ANY"): Promise; + function resolve(hostname: string, rrtype: "CAA"): Promise; + function resolve(hostname: string, rrtype: "MX"): Promise; + function resolve(hostname: string, rrtype: "NAPTR"): Promise; + function resolve(hostname: string, rrtype: "SOA"): Promise; + function resolve(hostname: string, rrtype: "SRV"): Promise; + function resolve(hostname: string, rrtype: "TXT"): Promise; + function resolve(hostname: string, rrtype: string): Promise< + | string[] + | CaaRecord[] + | MxRecord[] + | NaptrRecord[] + | SoaRecord + | SrvRecord[] + | string[][] + | AnyRecord[] + >; + /** + * Uses the DNS protocol to resolve IPv4 addresses (`A` records) for the `hostname`. On success, the `Promise` is resolved with an array of IPv4 + * addresses (e.g. `['74.125.79.104', '74.125.79.105', '74.125.79.106']`). + * @since v10.6.0 + * @param hostname Host name to resolve. + */ + function resolve4(hostname: string): Promise; + function resolve4(hostname: string, options: ResolveWithTtlOptions): Promise; + function resolve4(hostname: string, options: ResolveOptions): Promise; + /** + * Uses the DNS protocol to resolve IPv6 addresses (`AAAA` records) for the `hostname`. On success, the `Promise` is resolved with an array of IPv6 + * addresses. + * @since v10.6.0 + * @param hostname Host name to resolve. + */ + function resolve6(hostname: string): Promise; + function resolve6(hostname: string, options: ResolveWithTtlOptions): Promise; + function resolve6(hostname: string, options: ResolveOptions): Promise; + /** + * Uses the DNS protocol to resolve all records (also known as `ANY` or `*` query). + * On success, the `Promise` is resolved with an array containing various types of + * records. Each object has a property `type` that indicates the type of the + * current record. And depending on the `type`, additional properties will be + * present on the object: + * + * + * + * Here is an example of the result object: + * + * ```js + * [ { type: 'A', address: '127.0.0.1', ttl: 299 }, + * { type: 'CNAME', value: 'example.com' }, + * { type: 'MX', exchange: 'alt4.aspmx.l.example.com', priority: 50 }, + * { type: 'NS', value: 'ns1.example.com' }, + * { type: 'TXT', entries: [ 'v=spf1 include:_spf.example.com ~all' ] }, + * { type: 'SOA', + * nsname: 'ns1.example.com', + * hostmaster: 'admin.example.com', + * serial: 156696742, + * refresh: 900, + * retry: 900, + * expire: 1800, + * minttl: 60 } ] + * ``` + * @since v10.6.0 + */ + function resolveAny(hostname: string): Promise; + /** + * Uses the DNS protocol to resolve `CAA` records for the `hostname`. On success, + * the `Promise` is resolved with an array of objects containing available + * certification authority authorization records available for the `hostname` (e.g. `[{critical: 0, iodef: 'mailto:pki@example.com'},{critical: 128, issue: 'pki.example.com'}]`). + * @since v15.0.0, v14.17.0 + */ + function resolveCaa(hostname: string): Promise; + /** + * Uses the DNS protocol to resolve `CNAME` records for the `hostname`. On success, + * the `Promise` is resolved with an array of canonical name records available for + * the `hostname` (e.g. `['bar.example.com']`). + * @since v10.6.0 + */ + function resolveCname(hostname: string): Promise; + /** + * Uses the DNS protocol to resolve mail exchange records (`MX` records) for the `hostname`. On success, the `Promise` is resolved with an array of objects + * containing both a `priority` and `exchange` property (e.g.`[{priority: 10, exchange: 'mx.example.com'}, ...]`). + * @since v10.6.0 + */ + function resolveMx(hostname: string): Promise; + /** + * Uses the DNS protocol to resolve regular expression-based records (`NAPTR` records) for the `hostname`. On success, the `Promise` is resolved with an array + * of objects with the following properties: + * + * * `flags` + * * `service` + * * `regexp` + * * `replacement` + * * `order` + * * `preference` + * + * ```js + * { + * flags: 's', + * service: 'SIP+D2U', + * regexp: '', + * replacement: '_sip._udp.example.com', + * order: 30, + * preference: 100 + * } + * ``` + * @since v10.6.0 + */ + function resolveNaptr(hostname: string): Promise; + /** + * Uses the DNS protocol to resolve name server records (`NS` records) for the `hostname`. On success, the `Promise` is resolved with an array of name server + * records available for `hostname` (e.g.`['ns1.example.com', 'ns2.example.com']`). + * @since v10.6.0 + */ + function resolveNs(hostname: string): Promise; + /** + * Uses the DNS protocol to resolve pointer records (`PTR` records) for the `hostname`. On success, the `Promise` is resolved with an array of strings + * containing the reply records. + * @since v10.6.0 + */ + function resolvePtr(hostname: string): Promise; + /** + * Uses the DNS protocol to resolve a start of authority record (`SOA` record) for + * the `hostname`. On success, the `Promise` is resolved with an object with the + * following properties: + * + * * `nsname` + * * `hostmaster` + * * `serial` + * * `refresh` + * * `retry` + * * `expire` + * * `minttl` + * + * ```js + * { + * nsname: 'ns.example.com', + * hostmaster: 'root.example.com', + * serial: 2013101809, + * refresh: 10000, + * retry: 2400, + * expire: 604800, + * minttl: 3600 + * } + * ``` + * @since v10.6.0 + */ + function resolveSoa(hostname: string): Promise; + /** + * Uses the DNS protocol to resolve service records (`SRV` records) for the `hostname`. On success, the `Promise` is resolved with an array of objects with + * the following properties: + * + * * `priority` + * * `weight` + * * `port` + * * `name` + * + * ```js + * { + * priority: 10, + * weight: 5, + * port: 21223, + * name: 'service.example.com' + * } + * ``` + * @since v10.6.0 + */ + function resolveSrv(hostname: string): Promise; + /** + * Uses the DNS protocol to resolve text queries (`TXT` records) for the `hostname`. On success, the `Promise` is resolved with a two-dimensional array + * of the text records available for `hostname` (e.g.`[ ['v=spf1 ip4:0.0.0.0 ', '~all' ] ]`). Each sub-array contains TXT chunks of + * one record. Depending on the use case, these could be either joined together or + * treated separately. + * @since v10.6.0 + */ + function resolveTxt(hostname: string): Promise; + /** + * Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an + * array of host names. + * + * On error, the `Promise` is rejected with an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code` + * is one of the [DNS error codes](https://nodejs.org/docs/latest-v20.x/api/dns.html#error-codes). + * @since v10.6.0 + */ + function reverse(ip: string): Promise; + /** + * Get the default value for `verbatim` in {@link lookup} and [dnsPromises.lookup()](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromiseslookuphostname-options). + * The value could be: + * + * * `ipv4first`: for `verbatim` defaulting to `false`. + * * `verbatim`: for `verbatim` defaulting to `true`. + * @since v20.1.0 + */ + function getDefaultResultOrder(): "ipv4first" | "verbatim"; + /** + * Sets the IP address and port of servers to be used when performing DNS + * resolution. The `servers` argument is an array of [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6) formatted + * addresses. If the port is the IANA default DNS port (53) it can be omitted. + * + * ```js + * dnsPromises.setServers([ + * '4.4.4.4', + * '[2001:4860:4860::8888]', + * '4.4.4.4:1053', + * '[2001:4860:4860::8888]:1053', + * ]); + * ``` + * + * An error will be thrown if an invalid address is provided. + * + * The `dnsPromises.setServers()` method must not be called while a DNS query is in + * progress. + * + * This method works much like [resolve.conf](https://man7.org/linux/man-pages/man5/resolv.conf.5.html). + * That is, if attempting to resolve with the first server provided results in a `NOTFOUND` error, the `resolve()` method will _not_ attempt to resolve with + * subsequent servers provided. Fallback DNS servers will only be used if the + * earlier ones time out or result in some other error. + * @since v10.6.0 + * @param servers array of `RFC 5952` formatted addresses + */ + function setServers(servers: readonly string[]): void; + /** + * Set the default value of `order` in `dns.lookup()` and `{@link lookup}`. The value could be: + * + * * `ipv4first`: sets default `order` to `ipv4first`. + * * `ipv6first`: sets default `order` to `ipv6first`. + * * `verbatim`: sets default `order` to `verbatim`. + * + * The default is `verbatim` and [dnsPromises.setDefaultResultOrder()](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromisessetdefaultresultorderorder) + * have higher priority than [`--dns-result-order`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--dns-result-orderorder). + * When using [worker threads](https://nodejs.org/docs/latest-v20.x/api/worker_threads.html), [`dnsPromises.setDefaultResultOrder()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromisessetdefaultresultorderorder) + * from the main thread won't affect the default dns orders in workers. + * @since v16.4.0, v14.18.0 + * @param order must be `'ipv4first'`, `'ipv6first'` or `'verbatim'`. + */ + function setDefaultResultOrder(order: "ipv4first" | "ipv6first" | "verbatim"): void; + // Error codes + const NODATA: "ENODATA"; + const FORMERR: "EFORMERR"; + const SERVFAIL: "ESERVFAIL"; + const NOTFOUND: "ENOTFOUND"; + const NOTIMP: "ENOTIMP"; + const REFUSED: "EREFUSED"; + const BADQUERY: "EBADQUERY"; + const BADNAME: "EBADNAME"; + const BADFAMILY: "EBADFAMILY"; + const BADRESP: "EBADRESP"; + const CONNREFUSED: "ECONNREFUSED"; + const TIMEOUT: "ETIMEOUT"; + const EOF: "EOF"; + const FILE: "EFILE"; + const NOMEM: "ENOMEM"; + const DESTRUCTION: "EDESTRUCTION"; + const BADSTR: "EBADSTR"; + const BADFLAGS: "EBADFLAGS"; + const NONAME: "ENONAME"; + const BADHINTS: "EBADHINTS"; + const NOTINITIALIZED: "ENOTINITIALIZED"; + const LOADIPHLPAPI: "ELOADIPHLPAPI"; + const ADDRGETNETWORKPARAMS: "EADDRGETNETWORKPARAMS"; + const CANCELLED: "ECANCELLED"; + + /** + * An independent resolver for DNS requests. + * + * Creating a new resolver uses the default server settings. Setting + * the servers used for a resolver using [`resolver.setServers()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromisessetserversservers) does not affect + * other resolvers: + * + * ```js + * import dns from 'node:dns'; + * const { Resolver } = dns.promises; + * const resolver = new Resolver(); + * resolver.setServers(['4.4.4.4']); + * + * // This request will use the server at 4.4.4.4, independent of global settings. + * resolver.resolve4('example.org').then((addresses) => { + * // ... + * }); + * + * // Alternatively, the same code can be written using async-await style. + * (async function() { + * const addresses = await resolver.resolve4('example.org'); + * })(); + * ``` + * + * The following methods from the `dnsPromises` API are available: + * + * * `resolver.getServers()` + * * `resolver.resolve()` + * * `resolver.resolve4()` + * * `resolver.resolve6()` + * * `resolver.resolveAny()` + * * `resolver.resolveCaa()` + * * `resolver.resolveCname()` + * * `resolver.resolveMx()` + * * `resolver.resolveNaptr()` + * * `resolver.resolveNs()` + * * `resolver.resolvePtr()` + * * `resolver.resolveSoa()` + * * `resolver.resolveSrv()` + * * `resolver.resolveTxt()` + * * `resolver.reverse()` + * * `resolver.setServers()` + * @since v10.6.0 + */ + class Resolver { + constructor(options?: ResolverOptions); + /** + * Cancel all outstanding DNS queries made by this resolver. The corresponding + * callbacks will be called with an error with code `ECANCELLED`. + * @since v8.3.0 + */ + cancel(): void; + getServers: typeof getServers; + resolve: typeof resolve; + resolve4: typeof resolve4; + resolve6: typeof resolve6; + resolveAny: typeof resolveAny; + resolveCaa: typeof resolveCaa; + resolveCname: typeof resolveCname; + resolveMx: typeof resolveMx; + resolveNaptr: typeof resolveNaptr; + resolveNs: typeof resolveNs; + resolvePtr: typeof resolvePtr; + resolveSoa: typeof resolveSoa; + resolveSrv: typeof resolveSrv; + resolveTxt: typeof resolveTxt; + reverse: typeof reverse; + /** + * The resolver instance will send its requests from the specified IP address. + * This allows programs to specify outbound interfaces when used on multi-homed + * systems. + * + * If a v4 or v6 address is not specified, it is set to the default and the + * operating system will choose a local address automatically. + * + * The resolver will use the v4 local address when making requests to IPv4 DNS + * servers, and the v6 local address when making requests to IPv6 DNS servers. + * The `rrtype` of resolution requests has no impact on the local address used. + * @since v15.1.0, v14.17.0 + * @param [ipv4='0.0.0.0'] A string representation of an IPv4 address. + * @param [ipv6='::0'] A string representation of an IPv6 address. + */ + setLocalAddress(ipv4?: string, ipv6?: string): void; + setServers: typeof setServers; + } +} +declare module "node:dns/promises" { + export * from "dns/promises"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/domain.d.ts b/backend/node_modules/httpx/node_modules/@types/node/domain.d.ts new file mode 100644 index 0000000..d83b0f0 --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/domain.d.ts @@ -0,0 +1,170 @@ +/** + * **This module is pending deprecation.** Once a replacement API has been + * finalized, this module will be fully deprecated. Most developers should + * **not** have cause to use this module. Users who absolutely must have + * the functionality that domains provide may rely on it for the time being + * but should expect to have to migrate to a different solution + * in the future. + * + * Domains provide a way to handle multiple different IO operations as a + * single group. If any of the event emitters or callbacks registered to a + * domain emit an `'error'` event, or throw an error, then the domain object + * will be notified, rather than losing the context of the error in the `process.on('uncaughtException')` handler, or causing the program to + * exit immediately with an error code. + * @deprecated Since v1.4.2 - Deprecated + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/domain.js) + */ +declare module "domain" { + import EventEmitter = require("node:events"); + /** + * The `Domain` class encapsulates the functionality of routing errors and + * uncaught exceptions to the active `Domain` object. + * + * To handle the errors that it catches, listen to its `'error'` event. + */ + class Domain extends EventEmitter { + /** + * An array of timers and event emitters that have been explicitly added + * to the domain. + */ + members: Array; + /** + * The `enter()` method is plumbing used by the `run()`, `bind()`, and `intercept()` methods to set the active domain. It sets `domain.active` and `process.domain` to the domain, and implicitly + * pushes the domain onto the domain + * stack managed by the domain module (see {@link exit} for details on the + * domain stack). The call to `enter()` delimits the beginning of a chain of + * asynchronous calls and I/O operations bound to a domain. + * + * Calling `enter()` changes only the active domain, and does not alter the domain + * itself. `enter()` and `exit()` can be called an arbitrary number of times on a + * single domain. + */ + enter(): void; + /** + * The `exit()` method exits the current domain, popping it off the domain stack. + * Any time execution is going to switch to the context of a different chain of + * asynchronous calls, it's important to ensure that the current domain is exited. + * The call to `exit()` delimits either the end of or an interruption to the chain + * of asynchronous calls and I/O operations bound to a domain. + * + * If there are multiple, nested domains bound to the current execution context, `exit()` will exit any domains nested within this domain. + * + * Calling `exit()` changes only the active domain, and does not alter the domain + * itself. `enter()` and `exit()` can be called an arbitrary number of times on a + * single domain. + */ + exit(): void; + /** + * Run the supplied function in the context of the domain, implicitly + * binding all event emitters, timers, and low-level requests that are + * created in that context. Optionally, arguments can be passed to + * the function. + * + * This is the most basic way to use a domain. + * + * ```js + * import domain from 'node:domain'; + * import fs from 'node:fs'; + * const d = domain.create(); + * d.on('error', (er) => { + * console.error('Caught error!', er); + * }); + * d.run(() => { + * process.nextTick(() => { + * setTimeout(() => { // Simulating some various async stuff + * fs.open('non-existent file', 'r', (er, fd) => { + * if (er) throw er; + * // proceed... + * }); + * }, 100); + * }); + * }); + * ``` + * + * In this example, the `d.on('error')` handler will be triggered, rather + * than crashing the program. + */ + run(fn: (...args: any[]) => T, ...args: any[]): T; + /** + * Explicitly adds an emitter to the domain. If any event handlers called by + * the emitter throw an error, or if the emitter emits an `'error'` event, it + * will be routed to the domain's `'error'` event, just like with implicit + * binding. + * + * This also works with timers that are returned from `setInterval()` and `setTimeout()`. If their callback function throws, it will be caught by + * the domain `'error'` handler. + * + * If the Timer or `EventEmitter` was already bound to a domain, it is removed + * from that one, and bound to this one instead. + * @param emitter emitter or timer to be added to the domain + */ + add(emitter: EventEmitter | NodeJS.Timer): void; + /** + * The opposite of {@link add}. Removes domain handling from the + * specified emitter. + * @param emitter emitter or timer to be removed from the domain + */ + remove(emitter: EventEmitter | NodeJS.Timer): void; + /** + * The returned function will be a wrapper around the supplied callback + * function. When the returned function is called, any errors that are + * thrown will be routed to the domain's `'error'` event. + * + * ```js + * const d = domain.create(); + * + * function readSomeFile(filename, cb) { + * fs.readFile(filename, 'utf8', d.bind((er, data) => { + * // If this throws, it will also be passed to the domain. + * return cb(er, data ? JSON.parse(data) : null); + * })); + * } + * + * d.on('error', (er) => { + * // An error occurred somewhere. If we throw it now, it will crash the program + * // with the normal line number and stack message. + * }); + * ``` + * @param callback The callback function + * @return The bound function + */ + bind(callback: T): T; + /** + * This method is almost identical to {@link bind}. However, in + * addition to catching thrown errors, it will also intercept `Error` objects sent as the first argument to the function. + * + * In this way, the common `if (err) return callback(err);` pattern can be replaced + * with a single error handler in a single place. + * + * ```js + * const d = domain.create(); + * + * function readSomeFile(filename, cb) { + * fs.readFile(filename, 'utf8', d.intercept((data) => { + * // Note, the first argument is never passed to the + * // callback since it is assumed to be the 'Error' argument + * // and thus intercepted by the domain. + * + * // If this throws, it will also be passed to the domain + * // so the error-handling logic can be moved to the 'error' + * // event on the domain instead of being repeated throughout + * // the program. + * return cb(null, JSON.parse(data)); + * })); + * } + * + * d.on('error', (er) => { + * // An error occurred somewhere. If we throw it now, it will crash the program + * // with the normal line number and stack message. + * }); + * ``` + * @param callback The callback function + * @return The intercepted function + */ + intercept(callback: T): T; + } + function create(): Domain; +} +declare module "node:domain" { + export * from "domain"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/events.d.ts b/backend/node_modules/httpx/node_modules/@types/node/events.d.ts new file mode 100644 index 0000000..31ab3ca --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/events.d.ts @@ -0,0 +1,977 @@ +/** + * Much of the Node.js core API is built around an idiomatic asynchronous + * event-driven architecture in which certain kinds of objects (called "emitters") + * emit named events that cause `Function` objects ("listeners") to be called. + * + * For instance: a `net.Server` object emits an event each time a peer + * connects to it; a `fs.ReadStream` emits an event when the file is opened; + * a `stream` emits an event whenever data is available to be read. + * + * All objects that emit events are instances of the `EventEmitter` class. These + * objects expose an `eventEmitter.on()` function that allows one or more + * functions to be attached to named events emitted by the object. Typically, + * event names are camel-cased strings but any valid JavaScript property key + * can be used. + * + * When the `EventEmitter` object emits an event, all of the functions attached + * to that specific event are called _synchronously_. Any values returned by the + * called listeners are _ignored_ and discarded. + * + * The following example shows a simple `EventEmitter` instance with a single + * listener. The `eventEmitter.on()` method is used to register listeners, while + * the `eventEmitter.emit()` method is used to trigger the event. + * + * ```js + * import { EventEmitter } from 'node:events'; + * + * class MyEmitter extends EventEmitter {} + * + * const myEmitter = new MyEmitter(); + * myEmitter.on('event', () => { + * console.log('an event occurred!'); + * }); + * myEmitter.emit('event'); + * ``` + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/events.js) + */ +declare module "events" { + import { AsyncResource, AsyncResourceOptions } from "node:async_hooks"; + interface EventEmitterOptions { + /** + * Enables automatic capturing of promise rejection. + */ + captureRejections?: boolean | undefined; + } + interface StaticEventEmitterOptions { + /** + * Can be used to cancel awaiting events. + */ + signal?: AbortSignal | undefined; + } + interface StaticEventEmitterIteratorOptions extends StaticEventEmitterOptions { + /** + * Names of events that will end the iteration. + */ + close?: string[] | undefined; + /** + * The high watermark. The emitter is paused every time the size of events being buffered is higher than it. + * Supported only on emitters implementing `pause()` and `resume()` methods. + * @default Number.MAX_SAFE_INTEGER + */ + highWaterMark?: number | undefined; + /** + * The low watermark. The emitter is resumed every time the size of events being buffered is lower than it. + * Supported only on emitters implementing `pause()` and `resume()` methods. + * @default 1 + */ + lowWaterMark?: number | undefined; + } + interface EventEmitter = DefaultEventMap> extends NodeJS.EventEmitter {} + type EventMap = Record | DefaultEventMap; + type DefaultEventMap = [never]; + type AnyRest = [...args: any[]]; + type Args = T extends DefaultEventMap ? AnyRest : ( + K extends keyof T ? T[K] : never + ); + type Key = T extends DefaultEventMap ? string | symbol : K | keyof T; + type Key2 = T extends DefaultEventMap ? string | symbol : K & keyof T; + type Listener = T extends DefaultEventMap ? F : ( + K extends keyof T ? ( + T[K] extends unknown[] ? (...args: T[K]) => void : never + ) + : never + ); + type Listener1 = Listener void>; + type Listener2 = Listener; + + /** + * The `EventEmitter` class is defined and exposed by the `node:events` module: + * + * ```js + * import { EventEmitter } from 'node:events'; + * ``` + * + * All `EventEmitter`s emit the event `'newListener'` when new listeners are + * added and `'removeListener'` when existing listeners are removed. + * + * It supports the following option: + * @since v0.1.26 + */ + class EventEmitter = DefaultEventMap> { + constructor(options?: EventEmitterOptions); + + [EventEmitter.captureRejectionSymbol]?(error: Error, event: Key, ...args: Args): void; + + /** + * Creates a `Promise` that is fulfilled when the `EventEmitter` emits the given + * event or that is rejected if the `EventEmitter` emits `'error'` while waiting. + * The `Promise` will resolve with an array of all the arguments emitted to the + * given event. + * + * This method is intentionally generic and works with the web platform [EventTarget](https://dom.spec.whatwg.org/#interface-eventtarget) interface, which has no special`'error'` event + * semantics and does not listen to the `'error'` event. + * + * ```js + * import { once, EventEmitter } from 'node:events'; + * import process from 'node:process'; + * + * const ee = new EventEmitter(); + * + * process.nextTick(() => { + * ee.emit('myevent', 42); + * }); + * + * const [value] = await once(ee, 'myevent'); + * console.log(value); + * + * const err = new Error('kaboom'); + * process.nextTick(() => { + * ee.emit('error', err); + * }); + * + * try { + * await once(ee, 'myevent'); + * } catch (err) { + * console.error('error happened', err); + * } + * ``` + * + * The special handling of the `'error'` event is only used when `events.once()` is used to wait for another event. If `events.once()` is used to wait for the + * '`error'` event itself, then it is treated as any other kind of event without + * special handling: + * + * ```js + * import { EventEmitter, once } from 'node:events'; + * + * const ee = new EventEmitter(); + * + * once(ee, 'error') + * .then(([err]) => console.log('ok', err.message)) + * .catch((err) => console.error('error', err.message)); + * + * ee.emit('error', new Error('boom')); + * + * // Prints: ok boom + * ``` + * + * An `AbortSignal` can be used to cancel waiting for the event: + * + * ```js + * import { EventEmitter, once } from 'node:events'; + * + * const ee = new EventEmitter(); + * const ac = new AbortController(); + * + * async function foo(emitter, event, signal) { + * try { + * await once(emitter, event, { signal }); + * console.log('event emitted!'); + * } catch (error) { + * if (error.name === 'AbortError') { + * console.error('Waiting for the event was canceled!'); + * } else { + * console.error('There was an error', error.message); + * } + * } + * } + * + * foo(ee, 'foo', ac.signal); + * ac.abort(); // Abort waiting for the event + * ee.emit('foo'); // Prints: Waiting for the event was canceled! + * ``` + * @since v11.13.0, v10.16.0 + */ + static once( + emitter: NodeJS.EventEmitter, + eventName: string | symbol, + options?: StaticEventEmitterOptions, + ): Promise; + static once(emitter: EventTarget, eventName: string, options?: StaticEventEmitterOptions): Promise; + /** + * ```js + * import { on, EventEmitter } from 'node:events'; + * import process from 'node:process'; + * + * const ee = new EventEmitter(); + * + * // Emit later on + * process.nextTick(() => { + * ee.emit('foo', 'bar'); + * ee.emit('foo', 42); + * }); + * + * for await (const event of on(ee, 'foo')) { + * // The execution of this inner block is synchronous and it + * // processes one event at a time (even with await). Do not use + * // if concurrent execution is required. + * console.log(event); // prints ['bar'] [42] + * } + * // Unreachable here + * ``` + * + * Returns an `AsyncIterator` that iterates `eventName` events. It will throw + * if the `EventEmitter` emits `'error'`. It removes all listeners when + * exiting the loop. The `value` returned by each iteration is an array + * composed of the emitted event arguments. + * + * An `AbortSignal` can be used to cancel waiting on events: + * + * ```js + * import { on, EventEmitter } from 'node:events'; + * import process from 'node:process'; + * + * const ac = new AbortController(); + * + * (async () => { + * const ee = new EventEmitter(); + * + * // Emit later on + * process.nextTick(() => { + * ee.emit('foo', 'bar'); + * ee.emit('foo', 42); + * }); + * + * for await (const event of on(ee, 'foo', { signal: ac.signal })) { + * // The execution of this inner block is synchronous and it + * // processes one event at a time (even with await). Do not use + * // if concurrent execution is required. + * console.log(event); // prints ['bar'] [42] + * } + * // Unreachable here + * })(); + * + * process.nextTick(() => ac.abort()); + * ``` + * + * Use the `close` option to specify an array of event names that will end the iteration: + * + * ```js + * import { on, EventEmitter } from 'node:events'; + * import process from 'node:process'; + * + * const ee = new EventEmitter(); + * + * // Emit later on + * process.nextTick(() => { + * ee.emit('foo', 'bar'); + * ee.emit('foo', 42); + * ee.emit('close'); + * }); + * + * for await (const event of on(ee, 'foo', { close: ['close'] })) { + * console.log(event); // prints ['bar'] [42] + * } + * // the loop will exit after 'close' is emitted + * console.log('done'); // prints 'done' + * ``` + * @since v13.6.0, v12.16.0 + * @return An `AsyncIterator` that iterates `eventName` events emitted by the `emitter` + */ + static on( + emitter: NodeJS.EventEmitter, + eventName: string | symbol, + options?: StaticEventEmitterIteratorOptions, + ): NodeJS.AsyncIterator; + static on( + emitter: EventTarget, + eventName: string, + options?: StaticEventEmitterIteratorOptions, + ): NodeJS.AsyncIterator; + /** + * A class method that returns the number of listeners for the given `eventName` registered on the given `emitter`. + * + * ```js + * import { EventEmitter, listenerCount } from 'node:events'; + * + * const myEmitter = new EventEmitter(); + * myEmitter.on('event', () => {}); + * myEmitter.on('event', () => {}); + * console.log(listenerCount(myEmitter, 'event')); + * // Prints: 2 + * ``` + * @since v0.9.12 + * @deprecated Since v3.2.0 - Use `listenerCount` instead. + * @param emitter The emitter to query + * @param eventName The event name + */ + static listenerCount(emitter: NodeJS.EventEmitter, eventName: string | symbol): number; + /** + * Returns a copy of the array of listeners for the event named `eventName`. + * + * For `EventEmitter`s this behaves exactly the same as calling `.listeners` on + * the emitter. + * + * For `EventTarget`s this is the only way to get the event listeners for the + * event target. This is useful for debugging and diagnostic purposes. + * + * ```js + * import { getEventListeners, EventEmitter } from 'node:events'; + * + * { + * const ee = new EventEmitter(); + * const listener = () => console.log('Events are fun'); + * ee.on('foo', listener); + * console.log(getEventListeners(ee, 'foo')); // [ [Function: listener] ] + * } + * { + * const et = new EventTarget(); + * const listener = () => console.log('Events are fun'); + * et.addEventListener('foo', listener); + * console.log(getEventListeners(et, 'foo')); // [ [Function: listener] ] + * } + * ``` + * @since v15.2.0, v14.17.0 + */ + static getEventListeners(emitter: EventTarget | NodeJS.EventEmitter, name: string | symbol): Function[]; + /** + * Returns the currently set max amount of listeners. + * + * For `EventEmitter`s this behaves exactly the same as calling `.getMaxListeners` on + * the emitter. + * + * For `EventTarget`s this is the only way to get the max event listeners for the + * event target. If the number of event handlers on a single EventTarget exceeds + * the max set, the EventTarget will print a warning. + * + * ```js + * import { getMaxListeners, setMaxListeners, EventEmitter } from 'node:events'; + * + * { + * const ee = new EventEmitter(); + * console.log(getMaxListeners(ee)); // 10 + * setMaxListeners(11, ee); + * console.log(getMaxListeners(ee)); // 11 + * } + * { + * const et = new EventTarget(); + * console.log(getMaxListeners(et)); // 10 + * setMaxListeners(11, et); + * console.log(getMaxListeners(et)); // 11 + * } + * ``` + * @since v19.9.0 + */ + static getMaxListeners(emitter: EventTarget | NodeJS.EventEmitter): number; + /** + * ```js + * import { setMaxListeners, EventEmitter } from 'node:events'; + * + * const target = new EventTarget(); + * const emitter = new EventEmitter(); + * + * setMaxListeners(5, target, emitter); + * ``` + * @since v15.4.0 + * @param n A non-negative number. The maximum number of listeners per `EventTarget` event. + * @param eventTargets Zero or more {EventTarget} or {EventEmitter} instances. If none are specified, `n` is set as the default max for all newly created {EventTarget} and {EventEmitter} + * objects. + */ + static setMaxListeners(n?: number, ...eventTargets: Array): void; + /** + * Listens once to the `abort` event on the provided `signal`. + * + * Listening to the `abort` event on abort signals is unsafe and may + * lead to resource leaks since another third party with the signal can + * call `e.stopImmediatePropagation()`. Unfortunately Node.js cannot change + * this since it would violate the web standard. Additionally, the original + * API makes it easy to forget to remove listeners. + * + * This API allows safely using `AbortSignal`s in Node.js APIs by solving these + * two issues by listening to the event such that `stopImmediatePropagation` does + * not prevent the listener from running. + * + * Returns a disposable so that it may be unsubscribed from more easily. + * + * ```js + * import { addAbortListener } from 'node:events'; + * + * function example(signal) { + * let disposable; + * try { + * signal.addEventListener('abort', (e) => e.stopImmediatePropagation()); + * disposable = addAbortListener(signal, (e) => { + * // Do something when signal is aborted. + * }); + * } finally { + * disposable?.[Symbol.dispose](); + * } + * } + * ``` + * @since v20.5.0 + * @experimental + * @return Disposable that removes the `abort` listener. + */ + static addAbortListener(signal: AbortSignal, resource: (event: Event) => void): Disposable; + /** + * This symbol shall be used to install a listener for only monitoring `'error'` events. Listeners installed using this symbol are called before the regular `'error'` listeners are called. + * + * Installing a listener using this symbol does not change the behavior once an `'error'` event is emitted. Therefore, the process will still crash if no + * regular `'error'` listener is installed. + * @since v13.6.0, v12.17.0 + */ + static readonly errorMonitor: unique symbol; + /** + * Value: `Symbol.for('nodejs.rejection')` + * + * See how to write a custom `rejection handler`. + * @since v13.4.0, v12.16.0 + */ + static readonly captureRejectionSymbol: unique symbol; + /** + * Value: [boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type) + * + * Change the default `captureRejections` option on all new `EventEmitter` objects. + * @since v13.4.0, v12.16.0 + */ + static captureRejections: boolean; + /** + * By default, a maximum of `10` listeners can be registered for any single + * event. This limit can be changed for individual `EventEmitter` instances + * using the `emitter.setMaxListeners(n)` method. To change the default + * for _all_`EventEmitter` instances, the `events.defaultMaxListeners` property + * can be used. If this value is not a positive number, a `RangeError` is thrown. + * + * Take caution when setting the `events.defaultMaxListeners` because the + * change affects _all_ `EventEmitter` instances, including those created before + * the change is made. However, calling `emitter.setMaxListeners(n)` still has + * precedence over `events.defaultMaxListeners`. + * + * This is not a hard limit. The `EventEmitter` instance will allow + * more listeners to be added but will output a trace warning to stderr indicating + * that a "possible EventEmitter memory leak" has been detected. For any single + * `EventEmitter`, the `emitter.getMaxListeners()` and `emitter.setMaxListeners()` methods can be used to + * temporarily avoid this warning: + * + * ```js + * import { EventEmitter } from 'node:events'; + * const emitter = new EventEmitter(); + * emitter.setMaxListeners(emitter.getMaxListeners() + 1); + * emitter.once('event', () => { + * // do stuff + * emitter.setMaxListeners(Math.max(emitter.getMaxListeners() - 1, 0)); + * }); + * ``` + * + * The `--trace-warnings` command-line flag can be used to display the + * stack trace for such warnings. + * + * The emitted warning can be inspected with `process.on('warning')` and will + * have the additional `emitter`, `type`, and `count` properties, referring to + * the event emitter instance, the event's name and the number of attached + * listeners, respectively. + * Its `name` property is set to `'MaxListenersExceededWarning'`. + * @since v0.11.2 + */ + static defaultMaxListeners: number; + } + import internal = require("node:events"); + namespace EventEmitter { + // Should just be `export { EventEmitter }`, but that doesn't work in TypeScript 3.4 + export { internal as EventEmitter }; + export interface Abortable { + /** + * When provided the corresponding `AbortController` can be used to cancel an asynchronous action. + */ + signal?: AbortSignal | undefined; + } + + export interface EventEmitterReferencingAsyncResource extends AsyncResource { + readonly eventEmitter: EventEmitterAsyncResource; + } + + export interface EventEmitterAsyncResourceOptions extends AsyncResourceOptions, EventEmitterOptions { + /** + * The type of async event, this is required when instantiating `EventEmitterAsyncResource` + * directly rather than as a child class. + * @default new.target.name if instantiated as a child class. + */ + name?: string | undefined; + } + + /** + * Integrates `EventEmitter` with `AsyncResource` for `EventEmitter`s that + * require manual async tracking. Specifically, all events emitted by instances + * of `events.EventEmitterAsyncResource` will run within its `async context`. + * + * ```js + * import { EventEmitterAsyncResource, EventEmitter } from 'node:events'; + * import { notStrictEqual, strictEqual } from 'node:assert'; + * import { executionAsyncId, triggerAsyncId } from 'node:async_hooks'; + * + * // Async tracking tooling will identify this as 'Q'. + * const ee1 = new EventEmitterAsyncResource({ name: 'Q' }); + * + * // 'foo' listeners will run in the EventEmitters async context. + * ee1.on('foo', () => { + * strictEqual(executionAsyncId(), ee1.asyncId); + * strictEqual(triggerAsyncId(), ee1.triggerAsyncId); + * }); + * + * const ee2 = new EventEmitter(); + * + * // 'foo' listeners on ordinary EventEmitters that do not track async + * // context, however, run in the same async context as the emit(). + * ee2.on('foo', () => { + * notStrictEqual(executionAsyncId(), ee2.asyncId); + * notStrictEqual(triggerAsyncId(), ee2.triggerAsyncId); + * }); + * + * Promise.resolve().then(() => { + * ee1.emit('foo'); + * ee2.emit('foo'); + * }); + * ``` + * + * The `EventEmitterAsyncResource` class has the same methods and takes the + * same options as `EventEmitter` and `AsyncResource` themselves. + * @since v17.4.0, v16.14.0 + */ + export class EventEmitterAsyncResource extends EventEmitter { + /** + * @param options Only optional in child class. + */ + constructor(options?: EventEmitterAsyncResourceOptions); + /** + * Call all `destroy` hooks. This should only ever be called once. An error will + * be thrown if it is called more than once. This **must** be manually called. If + * the resource is left to be collected by the GC then the `destroy` hooks will + * never be called. + */ + emitDestroy(): void; + /** + * The unique `asyncId` assigned to the resource. + */ + readonly asyncId: number; + /** + * The same triggerAsyncId that is passed to the AsyncResource constructor. + */ + readonly triggerAsyncId: number; + /** + * The returned `AsyncResource` object has an additional `eventEmitter` property + * that provides a reference to this `EventEmitterAsyncResource`. + */ + readonly asyncResource: EventEmitterReferencingAsyncResource; + } + /** + * The `NodeEventTarget` is a Node.js-specific extension to `EventTarget` + * that emulates a subset of the `EventEmitter` API. + * @since v14.5.0 + */ + export interface NodeEventTarget extends EventTarget { + /** + * Node.js-specific extension to the `EventTarget` class that emulates the + * equivalent `EventEmitter` API. The only difference between `addListener()` and + * `addEventListener()` is that `addListener()` will return a reference to the + * `EventTarget`. + * @since v14.5.0 + */ + addListener(type: string, listener: (arg: any) => void): this; + /** + * Node.js-specific extension to the `EventTarget` class that dispatches the + * `arg` to the list of handlers for `type`. + * @since v15.2.0 + * @returns `true` if event listeners registered for the `type` exist, + * otherwise `false`. + */ + emit(type: string, arg: any): boolean; + /** + * Node.js-specific extension to the `EventTarget` class that returns an array + * of event `type` names for which event listeners are registered. + * @since 14.5.0 + */ + eventNames(): string[]; + /** + * Node.js-specific extension to the `EventTarget` class that returns the number + * of event listeners registered for the `type`. + * @since v14.5.0 + */ + listenerCount(type: string): number; + /** + * Node.js-specific extension to the `EventTarget` class that sets the number + * of max event listeners as `n`. + * @since v14.5.0 + */ + setMaxListeners(n: number): void; + /** + * Node.js-specific extension to the `EventTarget` class that returns the number + * of max event listeners. + * @since v14.5.0 + */ + getMaxListeners(): number; + /** + * Node.js-specific alias for `eventTarget.removeEventListener()`. + * @since v14.5.0 + */ + off(type: string, listener: (arg: any) => void, options?: EventListenerOptions): this; + /** + * Node.js-specific alias for `eventTarget.addEventListener()`. + * @since v14.5.0 + */ + on(type: string, listener: (arg: any) => void): this; + /** + * Node.js-specific extension to the `EventTarget` class that adds a `once` + * listener for the given event `type`. This is equivalent to calling `on` + * with the `once` option set to `true`. + * @since v14.5.0 + */ + once(type: string, listener: (arg: any) => void): this; + /** + * Node.js-specific extension to the `EventTarget` class. If `type` is specified, + * removes all registered listeners for `type`, otherwise removes all registered + * listeners. + * @since v14.5.0 + */ + removeAllListeners(type?: string): this; + /** + * Node.js-specific extension to the `EventTarget` class that removes the + * `listener` for the given `type`. The only difference between `removeListener()` + * and `removeEventListener()` is that `removeListener()` will return a reference + * to the `EventTarget`. + * @since v14.5.0 + */ + removeListener(type: string, listener: (arg: any) => void, options?: EventListenerOptions): this; + } + } + global { + namespace NodeJS { + interface EventEmitter = DefaultEventMap> { + [EventEmitter.captureRejectionSymbol]?(error: Error, event: Key, ...args: Args): void; + /** + * Alias for `emitter.on(eventName, listener)`. + * @since v0.1.26 + */ + addListener(eventName: Key, listener: Listener1): this; + /** + * Adds the `listener` function to the end of the listeners array for the event + * named `eventName`. No checks are made to see if the `listener` has already + * been added. Multiple calls passing the same combination of `eventName` and + * `listener` will result in the `listener` being added, and called, multiple times. + * + * ```js + * server.on('connection', (stream) => { + * console.log('someone connected!'); + * }); + * ``` + * + * Returns a reference to the `EventEmitter`, so that calls can be chained. + * + * By default, event listeners are invoked in the order they are added. The `emitter.prependListener()` method can be used as an alternative to add the + * event listener to the beginning of the listeners array. + * + * ```js + * import { EventEmitter } from 'node:events'; + * const myEE = new EventEmitter(); + * myEE.on('foo', () => console.log('a')); + * myEE.prependListener('foo', () => console.log('b')); + * myEE.emit('foo'); + * // Prints: + * // b + * // a + * ``` + * @since v0.1.101 + * @param eventName The name of the event. + * @param listener The callback function + */ + on(eventName: Key, listener: Listener1): this; + /** + * Adds a **one-time** `listener` function for the event named `eventName`. The + * next time `eventName` is triggered, this listener is removed and then invoked. + * + * ```js + * server.once('connection', (stream) => { + * console.log('Ah, we have our first user!'); + * }); + * ``` + * + * Returns a reference to the `EventEmitter`, so that calls can be chained. + * + * By default, event listeners are invoked in the order they are added. The `emitter.prependOnceListener()` method can be used as an alternative to add the + * event listener to the beginning of the listeners array. + * + * ```js + * import { EventEmitter } from 'node:events'; + * const myEE = new EventEmitter(); + * myEE.once('foo', () => console.log('a')); + * myEE.prependOnceListener('foo', () => console.log('b')); + * myEE.emit('foo'); + * // Prints: + * // b + * // a + * ``` + * @since v0.3.0 + * @param eventName The name of the event. + * @param listener The callback function + */ + once(eventName: Key, listener: Listener1): this; + /** + * Removes the specified `listener` from the listener array for the event named `eventName`. + * + * ```js + * const callback = (stream) => { + * console.log('someone connected!'); + * }; + * server.on('connection', callback); + * // ... + * server.removeListener('connection', callback); + * ``` + * + * `removeListener()` will remove, at most, one instance of a listener from the + * listener array. If any single listener has been added multiple times to the + * listener array for the specified `eventName`, then `removeListener()` must be + * called multiple times to remove each instance. + * + * Once an event is emitted, all listeners attached to it at the + * time of emitting are called in order. This implies that any `removeListener()` or `removeAllListeners()` calls _after_ emitting and _before_ the last listener finishes execution + * will not remove them from`emit()` in progress. Subsequent events behave as expected. + * + * ```js + * import { EventEmitter } from 'node:events'; + * class MyEmitter extends EventEmitter {} + * const myEmitter = new MyEmitter(); + * + * const callbackA = () => { + * console.log('A'); + * myEmitter.removeListener('event', callbackB); + * }; + * + * const callbackB = () => { + * console.log('B'); + * }; + * + * myEmitter.on('event', callbackA); + * + * myEmitter.on('event', callbackB); + * + * // callbackA removes listener callbackB but it will still be called. + * // Internal listener array at time of emit [callbackA, callbackB] + * myEmitter.emit('event'); + * // Prints: + * // A + * // B + * + * // callbackB is now removed. + * // Internal listener array [callbackA] + * myEmitter.emit('event'); + * // Prints: + * // A + * ``` + * + * Because listeners are managed using an internal array, calling this will + * change the position indices of any listener registered _after_ the listener + * being removed. This will not impact the order in which listeners are called, + * but it means that any copies of the listener array as returned by + * the `emitter.listeners()` method will need to be recreated. + * + * When a single function has been added as a handler multiple times for a single + * event (as in the example below), `removeListener()` will remove the most + * recently added instance. In the example the `once('ping')` listener is removed: + * + * ```js + * import { EventEmitter } from 'node:events'; + * const ee = new EventEmitter(); + * + * function pong() { + * console.log('pong'); + * } + * + * ee.on('ping', pong); + * ee.once('ping', pong); + * ee.removeListener('ping', pong); + * + * ee.emit('ping'); + * ee.emit('ping'); + * ``` + * + * Returns a reference to the `EventEmitter`, so that calls can be chained. + * @since v0.1.26 + */ + removeListener(eventName: Key, listener: Listener1): this; + /** + * Alias for `emitter.removeListener()`. + * @since v10.0.0 + */ + off(eventName: Key, listener: Listener1): this; + /** + * Removes all listeners, or those of the specified `eventName`. + * + * It is bad practice to remove listeners added elsewhere in the code, + * particularly when the `EventEmitter` instance was created by some other + * component or module (e.g. sockets or file streams). + * + * Returns a reference to the `EventEmitter`, so that calls can be chained. + * @since v0.1.26 + */ + removeAllListeners(eventName?: Key): this; + /** + * By default `EventEmitter`s will print a warning if more than `10` listeners are + * added for a particular event. This is a useful default that helps finding + * memory leaks. The `emitter.setMaxListeners()` method allows the limit to be + * modified for this specific `EventEmitter` instance. The value can be set to `Infinity` (or `0`) to indicate an unlimited number of listeners. + * + * Returns a reference to the `EventEmitter`, so that calls can be chained. + * @since v0.3.5 + */ + setMaxListeners(n: number): this; + /** + * Returns the current max listener value for the `EventEmitter` which is either + * set by `emitter.setMaxListeners(n)` or defaults to {@link EventEmitter.defaultMaxListeners}. + * @since v1.0.0 + */ + getMaxListeners(): number; + /** + * Returns a copy of the array of listeners for the event named `eventName`. + * + * ```js + * server.on('connection', (stream) => { + * console.log('someone connected!'); + * }); + * console.log(util.inspect(server.listeners('connection'))); + * // Prints: [ [Function] ] + * ``` + * @since v0.1.26 + */ + listeners(eventName: Key): Array>; + /** + * Returns a copy of the array of listeners for the event named `eventName`, + * including any wrappers (such as those created by `.once()`). + * + * ```js + * import { EventEmitter } from 'node:events'; + * const emitter = new EventEmitter(); + * emitter.once('log', () => console.log('log once')); + * + * // Returns a new Array with a function `onceWrapper` which has a property + * // `listener` which contains the original listener bound above + * const listeners = emitter.rawListeners('log'); + * const logFnWrapper = listeners[0]; + * + * // Logs "log once" to the console and does not unbind the `once` event + * logFnWrapper.listener(); + * + * // Logs "log once" to the console and removes the listener + * logFnWrapper(); + * + * emitter.on('log', () => console.log('log persistently')); + * // Will return a new Array with a single function bound by `.on()` above + * const newListeners = emitter.rawListeners('log'); + * + * // Logs "log persistently" twice + * newListeners[0](); + * emitter.emit('log'); + * ``` + * @since v9.4.0 + */ + rawListeners(eventName: Key): Array>; + /** + * Synchronously calls each of the listeners registered for the event named `eventName`, in the order they were registered, passing the supplied arguments + * to each. + * + * Returns `true` if the event had listeners, `false` otherwise. + * + * ```js + * import { EventEmitter } from 'node:events'; + * const myEmitter = new EventEmitter(); + * + * // First listener + * myEmitter.on('event', function firstListener() { + * console.log('Helloooo! first listener'); + * }); + * // Second listener + * myEmitter.on('event', function secondListener(arg1, arg2) { + * console.log(`event with parameters ${arg1}, ${arg2} in second listener`); + * }); + * // Third listener + * myEmitter.on('event', function thirdListener(...args) { + * const parameters = args.join(', '); + * console.log(`event with parameters ${parameters} in third listener`); + * }); + * + * console.log(myEmitter.listeners('event')); + * + * myEmitter.emit('event', 1, 2, 3, 4, 5); + * + * // Prints: + * // [ + * // [Function: firstListener], + * // [Function: secondListener], + * // [Function: thirdListener] + * // ] + * // Helloooo! first listener + * // event with parameters 1, 2 in second listener + * // event with parameters 1, 2, 3, 4, 5 in third listener + * ``` + * @since v0.1.26 + */ + emit(eventName: Key, ...args: Args): boolean; + /** + * Returns the number of listeners listening for the event named `eventName`. + * If `listener` is provided, it will return how many times the listener is found + * in the list of the listeners of the event. + * @since v3.2.0 + * @param eventName The name of the event being listened for + * @param listener The event handler function + */ + listenerCount(eventName: Key, listener?: Listener2): number; + /** + * Adds the `listener` function to the _beginning_ of the listeners array for the + * event named `eventName`. No checks are made to see if the `listener` has + * already been added. Multiple calls passing the same combination of `eventName` + * and `listener` will result in the `listener` being added, and called, multiple times. + * + * ```js + * server.prependListener('connection', (stream) => { + * console.log('someone connected!'); + * }); + * ``` + * + * Returns a reference to the `EventEmitter`, so that calls can be chained. + * @since v6.0.0 + * @param eventName The name of the event. + * @param listener The callback function + */ + prependListener(eventName: Key, listener: Listener1): this; + /** + * Adds a **one-time**`listener` function for the event named `eventName` to the _beginning_ of the listeners array. The next time `eventName` is triggered, this + * listener is removed, and then invoked. + * + * ```js + * server.prependOnceListener('connection', (stream) => { + * console.log('Ah, we have our first user!'); + * }); + * ``` + * + * Returns a reference to the `EventEmitter`, so that calls can be chained. + * @since v6.0.0 + * @param eventName The name of the event. + * @param listener The callback function + */ + prependOnceListener(eventName: Key, listener: Listener1): this; + /** + * Returns an array listing the events for which the emitter has registered + * listeners. The values in the array are strings or `Symbol`s. + * + * ```js + * import { EventEmitter } from 'node:events'; + * + * const myEE = new EventEmitter(); + * myEE.on('foo', () => {}); + * myEE.on('bar', () => {}); + * + * const sym = Symbol('symbol'); + * myEE.on(sym, () => {}); + * + * console.log(myEE.eventNames()); + * // Prints: [ 'foo', 'bar', Symbol(symbol) ] + * ``` + * @since v6.0.0 + */ + eventNames(): Array<(string | symbol) & Key2>; + } + } + } + export = EventEmitter; +} +declare module "node:events" { + import events = require("events"); + export = events; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/fs.d.ts b/backend/node_modules/httpx/node_modules/@types/node/fs.d.ts new file mode 100644 index 0000000..4115ffe --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/fs.d.ts @@ -0,0 +1,4375 @@ +/** + * The `node:fs` module enables interacting with the file system in a + * way modeled on standard POSIX functions. + * + * To use the promise-based APIs: + * + * ```js + * import * as fs from 'node:fs/promises'; + * ``` + * + * To use the callback and sync APIs: + * + * ```js + * import * as fs from 'node:fs'; + * ``` + * + * All file system operations have synchronous, callback, and promise-based + * forms, and are accessible using both CommonJS syntax and ES6 Modules (ESM). + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/fs.js) + */ +declare module "fs" { + import { NonSharedBuffer } from "node:buffer"; + import * as stream from "node:stream"; + import { Abortable, EventEmitter } from "node:events"; + import { URL } from "node:url"; + import * as promises from "node:fs/promises"; + export { promises }; + /** + * Valid types for path values in "fs". + */ + export type PathLike = string | Buffer | URL; + export type PathOrFileDescriptor = PathLike | number; + export type TimeLike = string | number | Date; + export type NoParamCallback = (err: NodeJS.ErrnoException | null) => void; + export type BufferEncodingOption = + | "buffer" + | { + encoding: "buffer"; + }; + export interface ObjectEncodingOptions { + encoding?: BufferEncoding | null | undefined; + } + export type EncodingOption = ObjectEncodingOptions | BufferEncoding | undefined | null; + export type OpenMode = number | string; + export type Mode = number | string; + export interface StatsBase { + isFile(): boolean; + isDirectory(): boolean; + isBlockDevice(): boolean; + isCharacterDevice(): boolean; + isSymbolicLink(): boolean; + isFIFO(): boolean; + isSocket(): boolean; + dev: T; + ino: T; + mode: T; + nlink: T; + uid: T; + gid: T; + rdev: T; + size: T; + blksize: T; + blocks: T; + atimeMs: T; + mtimeMs: T; + ctimeMs: T; + birthtimeMs: T; + atime: Date; + mtime: Date; + ctime: Date; + birthtime: Date; + } + export interface Stats extends StatsBase {} + /** + * A `fs.Stats` object provides information about a file. + * + * Objects returned from {@link stat}, {@link lstat}, {@link fstat}, and + * their synchronous counterparts are of this type. + * If `bigint` in the `options` passed to those methods is true, the numeric values + * will be `bigint` instead of `number`, and the object will contain additional + * nanosecond-precision properties suffixed with `Ns`. `Stat` objects are not to be created directly using the `new` keyword. + * + * ```console + * Stats { + * dev: 2114, + * ino: 48064969, + * mode: 33188, + * nlink: 1, + * uid: 85, + * gid: 100, + * rdev: 0, + * size: 527, + * blksize: 4096, + * blocks: 8, + * atimeMs: 1318289051000.1, + * mtimeMs: 1318289051000.1, + * ctimeMs: 1318289051000.1, + * birthtimeMs: 1318289051000.1, + * atime: Mon, 10 Oct 2011 23:24:11 GMT, + * mtime: Mon, 10 Oct 2011 23:24:11 GMT, + * ctime: Mon, 10 Oct 2011 23:24:11 GMT, + * birthtime: Mon, 10 Oct 2011 23:24:11 GMT } + * ``` + * + * `bigint` version: + * + * ```console + * BigIntStats { + * dev: 2114n, + * ino: 48064969n, + * mode: 33188n, + * nlink: 1n, + * uid: 85n, + * gid: 100n, + * rdev: 0n, + * size: 527n, + * blksize: 4096n, + * blocks: 8n, + * atimeMs: 1318289051000n, + * mtimeMs: 1318289051000n, + * ctimeMs: 1318289051000n, + * birthtimeMs: 1318289051000n, + * atimeNs: 1318289051000000000n, + * mtimeNs: 1318289051000000000n, + * ctimeNs: 1318289051000000000n, + * birthtimeNs: 1318289051000000000n, + * atime: Mon, 10 Oct 2011 23:24:11 GMT, + * mtime: Mon, 10 Oct 2011 23:24:11 GMT, + * ctime: Mon, 10 Oct 2011 23:24:11 GMT, + * birthtime: Mon, 10 Oct 2011 23:24:11 GMT } + * ``` + * @since v0.1.21 + */ + export class Stats {} + export interface StatsFsBase { + /** Type of file system. */ + type: T; + /** Optimal transfer block size. */ + bsize: T; + /** Total data blocks in file system. */ + blocks: T; + /** Free blocks in file system. */ + bfree: T; + /** Available blocks for unprivileged users */ + bavail: T; + /** Total file nodes in file system. */ + files: T; + /** Free file nodes in file system. */ + ffree: T; + } + export interface StatsFs extends StatsFsBase {} + /** + * Provides information about a mounted file system. + * + * Objects returned from {@link statfs} and its synchronous counterpart are of + * this type. If `bigint` in the `options` passed to those methods is `true`, the + * numeric values will be `bigint` instead of `number`. + * + * ```console + * StatFs { + * type: 1397114950, + * bsize: 4096, + * blocks: 121938943, + * bfree: 61058895, + * bavail: 61058895, + * files: 999, + * ffree: 1000000 + * } + * ``` + * + * `bigint` version: + * + * ```console + * StatFs { + * type: 1397114950n, + * bsize: 4096n, + * blocks: 121938943n, + * bfree: 61058895n, + * bavail: 61058895n, + * files: 999n, + * ffree: 1000000n + * } + * ``` + * @since v19.6.0, v18.15.0 + */ + export class StatsFs {} + export interface BigIntStatsFs extends StatsFsBase {} + export interface StatFsOptions { + bigint?: boolean | undefined; + } + /** + * A representation of a directory entry, which can be a file or a subdirectory + * within the directory, as returned by reading from an `fs.Dir`. The + * directory entry is a combination of the file name and file type pairs. + * + * Additionally, when {@link readdir} or {@link readdirSync} is called with + * the `withFileTypes` option set to `true`, the resulting array is filled with `fs.Dirent` objects, rather than strings or `Buffer` s. + * @since v10.10.0 + */ + export class Dirent { + /** + * Returns `true` if the `fs.Dirent` object describes a regular file. + * @since v10.10.0 + */ + isFile(): boolean; + /** + * Returns `true` if the `fs.Dirent` object describes a file system + * directory. + * @since v10.10.0 + */ + isDirectory(): boolean; + /** + * Returns `true` if the `fs.Dirent` object describes a block device. + * @since v10.10.0 + */ + isBlockDevice(): boolean; + /** + * Returns `true` if the `fs.Dirent` object describes a character device. + * @since v10.10.0 + */ + isCharacterDevice(): boolean; + /** + * Returns `true` if the `fs.Dirent` object describes a symbolic link. + * @since v10.10.0 + */ + isSymbolicLink(): boolean; + /** + * Returns `true` if the `fs.Dirent` object describes a first-in-first-out + * (FIFO) pipe. + * @since v10.10.0 + */ + isFIFO(): boolean; + /** + * Returns `true` if the `fs.Dirent` object describes a socket. + * @since v10.10.0 + */ + isSocket(): boolean; + /** + * The file name that this `fs.Dirent` object refers to. The type of this + * value is determined by the `options.encoding` passed to {@link readdir} or {@link readdirSync}. + * @since v10.10.0 + */ + name: Name; + /** + * The base path that this `fs.Dirent` object refers to. + * @since v20.12.0 + */ + parentPath: string; + /** + * Alias for `dirent.parentPath`. + * @since v20.1.0 + * @deprecated Since v20.12.0 + */ + path: string; + } + /** + * A class representing a directory stream. + * + * Created by {@link opendir}, {@link opendirSync}, or `fsPromises.opendir()`. + * + * ```js + * import { opendir } from 'node:fs/promises'; + * + * try { + * const dir = await opendir('./'); + * for await (const dirent of dir) + * console.log(dirent.name); + * } catch (err) { + * console.error(err); + * } + * ``` + * + * When using the async iterator, the `fs.Dir` object will be automatically + * closed after the iterator exits. + * @since v12.12.0 + */ + export class Dir implements AsyncIterable { + /** + * The read-only path of this directory as was provided to {@link opendir},{@link opendirSync}, or `fsPromises.opendir()`. + * @since v12.12.0 + */ + readonly path: string; + /** + * Asynchronously iterates over the directory via `readdir(3)` until all entries have been read. + */ + [Symbol.asyncIterator](): NodeJS.AsyncIterator; + /** + * Asynchronously close the directory's underlying resource handle. + * Subsequent reads will result in errors. + * + * A promise is returned that will be fulfilled after the resource has been + * closed. + * @since v12.12.0 + */ + close(): Promise; + close(cb: NoParamCallback): void; + /** + * Synchronously close the directory's underlying resource handle. + * Subsequent reads will result in errors. + * @since v12.12.0 + */ + closeSync(): void; + /** + * Asynchronously read the next directory entry via [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) as an `fs.Dirent`. + * + * A promise is returned that will be fulfilled with an `fs.Dirent`, or `null` if there are no more directory entries to read. + * + * Directory entries returned by this function are in no particular order as + * provided by the operating system's underlying directory mechanisms. + * Entries added or removed while iterating over the directory might not be + * included in the iteration results. + * @since v12.12.0 + * @return containing {fs.Dirent|null} + */ + read(): Promise; + read(cb: (err: NodeJS.ErrnoException | null, dirEnt: Dirent | null) => void): void; + /** + * Synchronously read the next directory entry as an `fs.Dirent`. See the + * POSIX [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) documentation for more detail. + * + * If there are no more directory entries to read, `null` will be returned. + * + * Directory entries returned by this function are in no particular order as + * provided by the operating system's underlying directory mechanisms. + * Entries added or removed while iterating over the directory might not be + * included in the iteration results. + * @since v12.12.0 + */ + readSync(): Dirent | null; + } + /** + * Class: fs.StatWatcher + * @since v14.3.0, v12.20.0 + * Extends `EventEmitter` + * A successful call to {@link watchFile} method will return a new fs.StatWatcher object. + */ + export interface StatWatcher extends EventEmitter { + /** + * When called, requests that the Node.js event loop _not_ exit so long as the `fs.StatWatcher` is active. Calling `watcher.ref()` multiple times will have + * no effect. + * + * By default, all `fs.StatWatcher` objects are "ref'ed", making it normally + * unnecessary to call `watcher.ref()` unless `watcher.unref()` had been + * called previously. + * @since v14.3.0, v12.20.0 + */ + ref(): this; + /** + * When called, the active `fs.StatWatcher` object will not require the Node.js + * event loop to remain active. If there is no other activity keeping the + * event loop running, the process may exit before the `fs.StatWatcher` object's + * callback is invoked. Calling `watcher.unref()` multiple times will have + * no effect. + * @since v14.3.0, v12.20.0 + */ + unref(): this; + } + export interface FSWatcher extends EventEmitter { + /** + * Stop watching for changes on the given `fs.FSWatcher`. Once stopped, the `fs.FSWatcher` object is no longer usable. + * @since v0.5.8 + */ + close(): void; + /** + * When called, requests that the Node.js event loop _not_ exit so long as the `fs.FSWatcher` is active. Calling `watcher.ref()` multiple times will have + * no effect. + * + * By default, all `fs.FSWatcher` objects are "ref'ed", making it normally + * unnecessary to call `watcher.ref()` unless `watcher.unref()` had been + * called previously. + * @since v14.3.0, v12.20.0 + */ + ref(): this; + /** + * When called, the active `fs.FSWatcher` object will not require the Node.js + * event loop to remain active. If there is no other activity keeping the + * event loop running, the process may exit before the `fs.FSWatcher` object's + * callback is invoked. Calling `watcher.unref()` multiple times will have + * no effect. + * @since v14.3.0, v12.20.0 + */ + unref(): this; + /** + * events.EventEmitter + * 1. change + * 2. close + * 3. error + */ + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: "change", listener: (eventType: string, filename: string | NonSharedBuffer) => void): this; + addListener(event: "close", listener: () => void): this; + addListener(event: "error", listener: (error: Error) => void): this; + on(event: string, listener: (...args: any[]) => void): this; + on(event: "change", listener: (eventType: string, filename: string | NonSharedBuffer) => void): this; + on(event: "close", listener: () => void): this; + on(event: "error", listener: (error: Error) => void): this; + once(event: string, listener: (...args: any[]) => void): this; + once(event: "change", listener: (eventType: string, filename: string | NonSharedBuffer) => void): this; + once(event: "close", listener: () => void): this; + once(event: "error", listener: (error: Error) => void): this; + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener( + event: "change", + listener: (eventType: string, filename: string | NonSharedBuffer) => void, + ): this; + prependListener(event: "close", listener: () => void): this; + prependListener(event: "error", listener: (error: Error) => void): this; + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener( + event: "change", + listener: (eventType: string, filename: string | NonSharedBuffer) => void, + ): this; + prependOnceListener(event: "close", listener: () => void): this; + prependOnceListener(event: "error", listener: (error: Error) => void): this; + } + /** + * Instances of `fs.ReadStream` are created and returned using the {@link createReadStream} function. + * @since v0.1.93 + */ + export class ReadStream extends stream.Readable { + close(callback?: (err?: NodeJS.ErrnoException | null) => void): void; + /** + * The number of bytes that have been read so far. + * @since v6.4.0 + */ + bytesRead: number; + /** + * The path to the file the stream is reading from as specified in the first + * argument to `fs.createReadStream()`. If `path` is passed as a string, then`readStream.path` will be a string. If `path` is passed as a `Buffer`, then`readStream.path` will be a + * `Buffer`. If `fd` is specified, then`readStream.path` will be `undefined`. + * @since v0.1.93 + */ + path: string | Buffer; + /** + * This property is `true` if the underlying file has not been opened yet, + * i.e. before the `'ready'` event is emitted. + * @since v11.2.0, v10.16.0 + */ + pending: boolean; + /** + * events.EventEmitter + * 1. open + * 2. close + * 3. ready + */ + addListener(event: K, listener: ReadStreamEvents[K]): this; + on(event: K, listener: ReadStreamEvents[K]): this; + once(event: K, listener: ReadStreamEvents[K]): this; + prependListener(event: K, listener: ReadStreamEvents[K]): this; + prependOnceListener(event: K, listener: ReadStreamEvents[K]): this; + } + + /** + * The Keys are events of the ReadStream and the values are the functions that are called when the event is emitted. + */ + type ReadStreamEvents = { + close: () => void; + data: (chunk: Buffer | string) => void; + end: () => void; + error: (err: Error) => void; + open: (fd: number) => void; + pause: () => void; + readable: () => void; + ready: () => void; + resume: () => void; + } & CustomEvents; + + /** + * string & {} allows to allow any kind of strings for the event + * but still allows to have auto completion for the normal events. + */ + type CustomEvents = { [Key in string & {} | symbol]: (...args: any[]) => void }; + + /** + * The Keys are events of the WriteStream and the values are the functions that are called when the event is emitted. + */ + type WriteStreamEvents = { + close: () => void; + drain: () => void; + error: (err: Error) => void; + finish: () => void; + open: (fd: number) => void; + pipe: (src: stream.Readable) => void; + ready: () => void; + unpipe: (src: stream.Readable) => void; + } & CustomEvents; + /** + * * Extends `stream.Writable` + * + * Instances of `fs.WriteStream` are created and returned using the {@link createWriteStream} function. + * @since v0.1.93 + */ + export class WriteStream extends stream.Writable { + /** + * Closes `writeStream`. Optionally accepts a + * callback that will be executed once the `writeStream`is closed. + * @since v0.9.4 + */ + close(callback?: (err?: NodeJS.ErrnoException | null) => void): void; + /** + * The number of bytes written so far. Does not include data that is still queued + * for writing. + * @since v0.4.7 + */ + bytesWritten: number; + /** + * The path to the file the stream is writing to as specified in the first + * argument to {@link createWriteStream}. If `path` is passed as a string, then`writeStream.path` will be a string. If `path` is passed as a `Buffer`, then`writeStream.path` will be a + * `Buffer`. + * @since v0.1.93 + */ + path: string | Buffer; + /** + * This property is `true` if the underlying file has not been opened yet, + * i.e. before the `'ready'` event is emitted. + * @since v11.2.0 + */ + pending: boolean; + /** + * events.EventEmitter + * 1. open + * 2. close + * 3. ready + */ + addListener(event: K, listener: WriteStreamEvents[K]): this; + on(event: K, listener: WriteStreamEvents[K]): this; + once(event: K, listener: WriteStreamEvents[K]): this; + prependListener(event: K, listener: WriteStreamEvents[K]): this; + prependOnceListener(event: K, listener: WriteStreamEvents[K]): this; + } + /** + * Asynchronously rename file at `oldPath` to the pathname provided + * as `newPath`. In the case that `newPath` already exists, it will + * be overwritten. If there is a directory at `newPath`, an error will + * be raised instead. No arguments other than a possible exception are + * given to the completion callback. + * + * See also: [`rename(2)`](http://man7.org/linux/man-pages/man2/rename.2.html). + * + * ```js + * import { rename } from 'node:fs'; + * + * rename('oldFile.txt', 'newFile.txt', (err) => { + * if (err) throw err; + * console.log('Rename complete!'); + * }); + * ``` + * @since v0.0.2 + */ + export function rename(oldPath: PathLike, newPath: PathLike, callback: NoParamCallback): void; + export namespace rename { + /** + * Asynchronous rename(2) - Change the name or location of a file or directory. + * @param oldPath A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + */ + function __promisify__(oldPath: PathLike, newPath: PathLike): Promise; + } + /** + * Renames the file from `oldPath` to `newPath`. Returns `undefined`. + * + * See the POSIX [`rename(2)`](http://man7.org/linux/man-pages/man2/rename.2.html) documentation for more details. + * @since v0.1.21 + */ + export function renameSync(oldPath: PathLike, newPath: PathLike): void; + /** + * Truncates the file. No arguments other than a possible exception are + * given to the completion callback. A file descriptor can also be passed as the + * first argument. In this case, `fs.ftruncate()` is called. + * + * ```js + * import { truncate } from 'node:fs'; + * // Assuming that 'path/file.txt' is a regular file. + * truncate('path/file.txt', (err) => { + * if (err) throw err; + * console.log('path/file.txt was truncated'); + * }); + * ``` + * + * Passing a file descriptor is deprecated and may result in an error being thrown + * in the future. + * + * See the POSIX [`truncate(2)`](http://man7.org/linux/man-pages/man2/truncate.2.html) documentation for more details. + * @since v0.8.6 + * @param [len=0] + */ + export function truncate(path: PathLike, len: number | undefined, callback: NoParamCallback): void; + /** + * Asynchronous truncate(2) - Truncate a file to a specified length. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + export function truncate(path: PathLike, callback: NoParamCallback): void; + export namespace truncate { + /** + * Asynchronous truncate(2) - Truncate a file to a specified length. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param len If not specified, defaults to `0`. + */ + function __promisify__(path: PathLike, len?: number): Promise; + } + /** + * Truncates the file. Returns `undefined`. A file descriptor can also be + * passed as the first argument. In this case, `fs.ftruncateSync()` is called. + * + * Passing a file descriptor is deprecated and may result in an error being thrown + * in the future. + * @since v0.8.6 + * @param [len=0] + */ + export function truncateSync(path: PathLike, len?: number): void; + /** + * Truncates the file descriptor. No arguments other than a possible exception are + * given to the completion callback. + * + * See the POSIX [`ftruncate(2)`](http://man7.org/linux/man-pages/man2/ftruncate.2.html) documentation for more detail. + * + * If the file referred to by the file descriptor was larger than `len` bytes, only + * the first `len` bytes will be retained in the file. + * + * For example, the following program retains only the first four bytes of the + * file: + * + * ```js + * import { open, close, ftruncate } from 'node:fs'; + * + * function closeFd(fd) { + * close(fd, (err) => { + * if (err) throw err; + * }); + * } + * + * open('temp.txt', 'r+', (err, fd) => { + * if (err) throw err; + * + * try { + * ftruncate(fd, 4, (err) => { + * closeFd(fd); + * if (err) throw err; + * }); + * } catch (err) { + * closeFd(fd); + * if (err) throw err; + * } + * }); + * ``` + * + * If the file previously was shorter than `len` bytes, it is extended, and the + * extended part is filled with null bytes (`'\0'`): + * + * If `len` is negative then `0` will be used. + * @since v0.8.6 + * @param [len=0] + */ + export function ftruncate(fd: number, len: number | undefined, callback: NoParamCallback): void; + /** + * Asynchronous ftruncate(2) - Truncate a file to a specified length. + * @param fd A file descriptor. + */ + export function ftruncate(fd: number, callback: NoParamCallback): void; + export namespace ftruncate { + /** + * Asynchronous ftruncate(2) - Truncate a file to a specified length. + * @param fd A file descriptor. + * @param len If not specified, defaults to `0`. + */ + function __promisify__(fd: number, len?: number): Promise; + } + /** + * Truncates the file descriptor. Returns `undefined`. + * + * For detailed information, see the documentation of the asynchronous version of + * this API: {@link ftruncate}. + * @since v0.8.6 + * @param [len=0] + */ + export function ftruncateSync(fd: number, len?: number): void; + /** + * Asynchronously changes owner and group of a file. No arguments other than a + * possible exception are given to the completion callback. + * + * See the POSIX [`chown(2)`](http://man7.org/linux/man-pages/man2/chown.2.html) documentation for more detail. + * @since v0.1.97 + */ + export function chown(path: PathLike, uid: number, gid: number, callback: NoParamCallback): void; + export namespace chown { + /** + * Asynchronous chown(2) - Change ownership of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function __promisify__(path: PathLike, uid: number, gid: number): Promise; + } + /** + * Synchronously changes owner and group of a file. Returns `undefined`. + * This is the synchronous version of {@link chown}. + * + * See the POSIX [`chown(2)`](http://man7.org/linux/man-pages/man2/chown.2.html) documentation for more detail. + * @since v0.1.97 + */ + export function chownSync(path: PathLike, uid: number, gid: number): void; + /** + * Sets the owner of the file. No arguments other than a possible exception are + * given to the completion callback. + * + * See the POSIX [`fchown(2)`](http://man7.org/linux/man-pages/man2/fchown.2.html) documentation for more detail. + * @since v0.4.7 + */ + export function fchown(fd: number, uid: number, gid: number, callback: NoParamCallback): void; + export namespace fchown { + /** + * Asynchronous fchown(2) - Change ownership of a file. + * @param fd A file descriptor. + */ + function __promisify__(fd: number, uid: number, gid: number): Promise; + } + /** + * Sets the owner of the file. Returns `undefined`. + * + * See the POSIX [`fchown(2)`](http://man7.org/linux/man-pages/man2/fchown.2.html) documentation for more detail. + * @since v0.4.7 + * @param uid The file's new owner's user id. + * @param gid The file's new group's group id. + */ + export function fchownSync(fd: number, uid: number, gid: number): void; + /** + * Set the owner of the symbolic link. No arguments other than a possible + * exception are given to the completion callback. + * + * See the POSIX [`lchown(2)`](http://man7.org/linux/man-pages/man2/lchown.2.html) documentation for more detail. + */ + export function lchown(path: PathLike, uid: number, gid: number, callback: NoParamCallback): void; + export namespace lchown { + /** + * Asynchronous lchown(2) - Change ownership of a file. Does not dereference symbolic links. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function __promisify__(path: PathLike, uid: number, gid: number): Promise; + } + /** + * Set the owner for the path. Returns `undefined`. + * + * See the POSIX [`lchown(2)`](http://man7.org/linux/man-pages/man2/lchown.2.html) documentation for more details. + * @param uid The file's new owner's user id. + * @param gid The file's new group's group id. + */ + export function lchownSync(path: PathLike, uid: number, gid: number): void; + /** + * Changes the access and modification times of a file in the same way as {@link utimes}, with the difference that if the path refers to a symbolic + * link, then the link is not dereferenced: instead, the timestamps of the + * symbolic link itself are changed. + * + * No arguments other than a possible exception are given to the completion + * callback. + * @since v14.5.0, v12.19.0 + */ + export function lutimes(path: PathLike, atime: TimeLike, mtime: TimeLike, callback: NoParamCallback): void; + export namespace lutimes { + /** + * Changes the access and modification times of a file in the same way as `fsPromises.utimes()`, + * with the difference that if the path refers to a symbolic link, then the link is not + * dereferenced: instead, the timestamps of the symbolic link itself are changed. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param atime The last access time. If a string is provided, it will be coerced to number. + * @param mtime The last modified time. If a string is provided, it will be coerced to number. + */ + function __promisify__(path: PathLike, atime: TimeLike, mtime: TimeLike): Promise; + } + /** + * Change the file system timestamps of the symbolic link referenced by `path`. + * Returns `undefined`, or throws an exception when parameters are incorrect or + * the operation fails. This is the synchronous version of {@link lutimes}. + * @since v14.5.0, v12.19.0 + */ + export function lutimesSync(path: PathLike, atime: TimeLike, mtime: TimeLike): void; + /** + * Asynchronously changes the permissions of a file. No arguments other than a + * possible exception are given to the completion callback. + * + * See the POSIX [`chmod(2)`](http://man7.org/linux/man-pages/man2/chmod.2.html) documentation for more detail. + * + * ```js + * import { chmod } from 'node:fs'; + * + * chmod('my_file.txt', 0o775, (err) => { + * if (err) throw err; + * console.log('The permissions for file "my_file.txt" have been changed!'); + * }); + * ``` + * @since v0.1.30 + */ + export function chmod(path: PathLike, mode: Mode, callback: NoParamCallback): void; + export namespace chmod { + /** + * Asynchronous chmod(2) - Change permissions of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param mode A file mode. If a string is passed, it is parsed as an octal integer. + */ + function __promisify__(path: PathLike, mode: Mode): Promise; + } + /** + * For detailed information, see the documentation of the asynchronous version of + * this API: {@link chmod}. + * + * See the POSIX [`chmod(2)`](http://man7.org/linux/man-pages/man2/chmod.2.html) documentation for more detail. + * @since v0.6.7 + */ + export function chmodSync(path: PathLike, mode: Mode): void; + /** + * Sets the permissions on the file. No arguments other than a possible exception + * are given to the completion callback. + * + * See the POSIX [`fchmod(2)`](http://man7.org/linux/man-pages/man2/fchmod.2.html) documentation for more detail. + * @since v0.4.7 + */ + export function fchmod(fd: number, mode: Mode, callback: NoParamCallback): void; + export namespace fchmod { + /** + * Asynchronous fchmod(2) - Change permissions of a file. + * @param fd A file descriptor. + * @param mode A file mode. If a string is passed, it is parsed as an octal integer. + */ + function __promisify__(fd: number, mode: Mode): Promise; + } + /** + * Sets the permissions on the file. Returns `undefined`. + * + * See the POSIX [`fchmod(2)`](http://man7.org/linux/man-pages/man2/fchmod.2.html) documentation for more detail. + * @since v0.4.7 + */ + export function fchmodSync(fd: number, mode: Mode): void; + /** + * Changes the permissions on a symbolic link. No arguments other than a possible + * exception are given to the completion callback. + * + * This method is only implemented on macOS. + * + * See the POSIX [`lchmod(2)`](https://www.freebsd.org/cgi/man.cgi?query=lchmod&sektion=2) documentation for more detail. + * @deprecated Since v0.4.7 + */ + export function lchmod(path: PathLike, mode: Mode, callback: NoParamCallback): void; + /** @deprecated */ + export namespace lchmod { + /** + * Asynchronous lchmod(2) - Change permissions of a file. Does not dereference symbolic links. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param mode A file mode. If a string is passed, it is parsed as an octal integer. + */ + function __promisify__(path: PathLike, mode: Mode): Promise; + } + /** + * Changes the permissions on a symbolic link. Returns `undefined`. + * + * This method is only implemented on macOS. + * + * See the POSIX [`lchmod(2)`](https://www.freebsd.org/cgi/man.cgi?query=lchmod&sektion=2) documentation for more detail. + * @deprecated Since v0.4.7 + */ + export function lchmodSync(path: PathLike, mode: Mode): void; + /** + * Asynchronous [`stat(2)`](http://man7.org/linux/man-pages/man2/stat.2.html). The callback gets two arguments `(err, stats)` where`stats` is an `fs.Stats` object. + * + * In case of an error, the `err.code` will be one of `Common System Errors`. + * + * {@link stat} follows symbolic links. Use {@link lstat} to look at the + * links themselves. + * + * Using `fs.stat()` to check for the existence of a file before calling`fs.open()`, `fs.readFile()`, or `fs.writeFile()` is not recommended. + * Instead, user code should open/read/write the file directly and handle the + * error raised if the file is not available. + * + * To check if a file exists without manipulating it afterwards, {@link access} is recommended. + * + * For example, given the following directory structure: + * + * ```text + * - txtDir + * -- file.txt + * - app.js + * ``` + * + * The next program will check for the stats of the given paths: + * + * ```js + * import { stat } from 'node:fs'; + * + * const pathsToCheck = ['./txtDir', './txtDir/file.txt']; + * + * for (let i = 0; i < pathsToCheck.length; i++) { + * stat(pathsToCheck[i], (err, stats) => { + * console.log(stats.isDirectory()); + * console.log(stats); + * }); + * } + * ``` + * + * The resulting output will resemble: + * + * ```console + * true + * Stats { + * dev: 16777220, + * mode: 16877, + * nlink: 3, + * uid: 501, + * gid: 20, + * rdev: 0, + * blksize: 4096, + * ino: 14214262, + * size: 96, + * blocks: 0, + * atimeMs: 1561174653071.963, + * mtimeMs: 1561174614583.3518, + * ctimeMs: 1561174626623.5366, + * birthtimeMs: 1561174126937.2893, + * atime: 2019-06-22T03:37:33.072Z, + * mtime: 2019-06-22T03:36:54.583Z, + * ctime: 2019-06-22T03:37:06.624Z, + * birthtime: 2019-06-22T03:28:46.937Z + * } + * false + * Stats { + * dev: 16777220, + * mode: 33188, + * nlink: 1, + * uid: 501, + * gid: 20, + * rdev: 0, + * blksize: 4096, + * ino: 14214074, + * size: 8, + * blocks: 8, + * atimeMs: 1561174616618.8555, + * mtimeMs: 1561174614584, + * ctimeMs: 1561174614583.8145, + * birthtimeMs: 1561174007710.7478, + * atime: 2019-06-22T03:36:56.619Z, + * mtime: 2019-06-22T03:36:54.584Z, + * ctime: 2019-06-22T03:36:54.584Z, + * birthtime: 2019-06-22T03:26:47.711Z + * } + * ``` + * @since v0.0.2 + */ + export function stat(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void; + export function stat( + path: PathLike, + options: + | (StatOptions & { + bigint?: false | undefined; + }) + | undefined, + callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void, + ): void; + export function stat( + path: PathLike, + options: StatOptions & { + bigint: true; + }, + callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void, + ): void; + export function stat( + path: PathLike, + options: StatOptions | undefined, + callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void, + ): void; + export namespace stat { + /** + * Asynchronous stat(2) - Get file status. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function __promisify__( + path: PathLike, + options?: StatOptions & { + bigint?: false | undefined; + }, + ): Promise; + function __promisify__( + path: PathLike, + options: StatOptions & { + bigint: true; + }, + ): Promise; + function __promisify__(path: PathLike, options?: StatOptions): Promise; + } + export interface StatSyncFn extends Function { + (path: PathLike, options?: undefined): Stats; + ( + path: PathLike, + options?: StatSyncOptions & { + bigint?: false | undefined; + throwIfNoEntry: false; + }, + ): Stats | undefined; + ( + path: PathLike, + options: StatSyncOptions & { + bigint: true; + throwIfNoEntry: false; + }, + ): BigIntStats | undefined; + ( + path: PathLike, + options?: StatSyncOptions & { + bigint?: false | undefined; + }, + ): Stats; + ( + path: PathLike, + options: StatSyncOptions & { + bigint: true; + }, + ): BigIntStats; + ( + path: PathLike, + options: StatSyncOptions & { + bigint: boolean; + throwIfNoEntry?: false | undefined; + }, + ): Stats | BigIntStats; + (path: PathLike, options?: StatSyncOptions): Stats | BigIntStats | undefined; + } + /** + * Synchronous stat(2) - Get file status. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + export const statSync: StatSyncFn; + /** + * Invokes the callback with the `fs.Stats` for the file descriptor. + * + * See the POSIX [`fstat(2)`](http://man7.org/linux/man-pages/man2/fstat.2.html) documentation for more detail. + * @since v0.1.95 + */ + export function fstat(fd: number, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void; + export function fstat( + fd: number, + options: + | (StatOptions & { + bigint?: false | undefined; + }) + | undefined, + callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void, + ): void; + export function fstat( + fd: number, + options: StatOptions & { + bigint: true; + }, + callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void, + ): void; + export function fstat( + fd: number, + options: StatOptions | undefined, + callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void, + ): void; + export namespace fstat { + /** + * Asynchronous fstat(2) - Get file status. + * @param fd A file descriptor. + */ + function __promisify__( + fd: number, + options?: StatOptions & { + bigint?: false | undefined; + }, + ): Promise; + function __promisify__( + fd: number, + options: StatOptions & { + bigint: true; + }, + ): Promise; + function __promisify__(fd: number, options?: StatOptions): Promise; + } + /** + * Retrieves the `fs.Stats` for the file descriptor. + * + * See the POSIX [`fstat(2)`](http://man7.org/linux/man-pages/man2/fstat.2.html) documentation for more detail. + * @since v0.1.95 + */ + export function fstatSync( + fd: number, + options?: StatOptions & { + bigint?: false | undefined; + }, + ): Stats; + export function fstatSync( + fd: number, + options: StatOptions & { + bigint: true; + }, + ): BigIntStats; + export function fstatSync(fd: number, options?: StatOptions): Stats | BigIntStats; + /** + * Retrieves the `fs.Stats` for the symbolic link referred to by the path. + * The callback gets two arguments `(err, stats)` where `stats` is a `fs.Stats` object. `lstat()` is identical to `stat()`, except that if `path` is a symbolic + * link, then the link itself is stat-ed, not the file that it refers to. + * + * See the POSIX [`lstat(2)`](http://man7.org/linux/man-pages/man2/lstat.2.html) documentation for more details. + * @since v0.1.30 + */ + export function lstat(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void; + export function lstat( + path: PathLike, + options: + | (StatOptions & { + bigint?: false | undefined; + }) + | undefined, + callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void, + ): void; + export function lstat( + path: PathLike, + options: StatOptions & { + bigint: true; + }, + callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void, + ): void; + export function lstat( + path: PathLike, + options: StatOptions | undefined, + callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void, + ): void; + export namespace lstat { + /** + * Asynchronous lstat(2) - Get file status. Does not dereference symbolic links. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function __promisify__( + path: PathLike, + options?: StatOptions & { + bigint?: false | undefined; + }, + ): Promise; + function __promisify__( + path: PathLike, + options: StatOptions & { + bigint: true; + }, + ): Promise; + function __promisify__(path: PathLike, options?: StatOptions): Promise; + } + /** + * Asynchronous [`statfs(2)`](http://man7.org/linux/man-pages/man2/statfs.2.html). Returns information about the mounted file system which + * contains `path`. The callback gets two arguments `(err, stats)` where `stats`is an `fs.StatFs` object. + * + * In case of an error, the `err.code` will be one of `Common System Errors`. + * @since v19.6.0, v18.15.0 + * @param path A path to an existing file or directory on the file system to be queried. + */ + export function statfs(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: StatsFs) => void): void; + export function statfs( + path: PathLike, + options: + | (StatFsOptions & { + bigint?: false | undefined; + }) + | undefined, + callback: (err: NodeJS.ErrnoException | null, stats: StatsFs) => void, + ): void; + export function statfs( + path: PathLike, + options: StatFsOptions & { + bigint: true; + }, + callback: (err: NodeJS.ErrnoException | null, stats: BigIntStatsFs) => void, + ): void; + export function statfs( + path: PathLike, + options: StatFsOptions | undefined, + callback: (err: NodeJS.ErrnoException | null, stats: StatsFs | BigIntStatsFs) => void, + ): void; + export namespace statfs { + /** + * Asynchronous statfs(2) - Returns information about the mounted file system which contains path. The callback gets two arguments (err, stats) where stats is an object. + * @param path A path to an existing file or directory on the file system to be queried. + */ + function __promisify__( + path: PathLike, + options?: StatFsOptions & { + bigint?: false | undefined; + }, + ): Promise; + function __promisify__( + path: PathLike, + options: StatFsOptions & { + bigint: true; + }, + ): Promise; + function __promisify__(path: PathLike, options?: StatFsOptions): Promise; + } + /** + * Synchronous [`statfs(2)`](http://man7.org/linux/man-pages/man2/statfs.2.html). Returns information about the mounted file system which + * contains `path`. + * + * In case of an error, the `err.code` will be one of `Common System Errors`. + * @since v19.6.0, v18.15.0 + * @param path A path to an existing file or directory on the file system to be queried. + */ + export function statfsSync( + path: PathLike, + options?: StatFsOptions & { + bigint?: false | undefined; + }, + ): StatsFs; + export function statfsSync( + path: PathLike, + options: StatFsOptions & { + bigint: true; + }, + ): BigIntStatsFs; + export function statfsSync(path: PathLike, options?: StatFsOptions): StatsFs | BigIntStatsFs; + /** + * Synchronous lstat(2) - Get file status. Does not dereference symbolic links. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + export const lstatSync: StatSyncFn; + /** + * Creates a new link from the `existingPath` to the `newPath`. See the POSIX [`link(2)`](http://man7.org/linux/man-pages/man2/link.2.html) documentation for more detail. No arguments other than + * a possible + * exception are given to the completion callback. + * @since v0.1.31 + */ + export function link(existingPath: PathLike, newPath: PathLike, callback: NoParamCallback): void; + export namespace link { + /** + * Asynchronous link(2) - Create a new link (also known as a hard link) to an existing file. + * @param existingPath A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function __promisify__(existingPath: PathLike, newPath: PathLike): Promise; + } + /** + * Creates a new link from the `existingPath` to the `newPath`. See the POSIX [`link(2)`](http://man7.org/linux/man-pages/man2/link.2.html) documentation for more detail. Returns `undefined`. + * @since v0.1.31 + */ + export function linkSync(existingPath: PathLike, newPath: PathLike): void; + /** + * Creates the link called `path` pointing to `target`. No arguments other than a + * possible exception are given to the completion callback. + * + * See the POSIX [`symlink(2)`](http://man7.org/linux/man-pages/man2/symlink.2.html) documentation for more details. + * + * The `type` argument is only available on Windows and ignored on other platforms. + * It can be set to `'dir'`, `'file'`, or `'junction'`. If the `type` argument is + * not a string, Node.js will autodetect `target` type and use `'file'` or `'dir'`. + * If the `target` does not exist, `'file'` will be used. Windows junction points + * require the destination path to be absolute. When using `'junction'`, the`target` argument will automatically be normalized to absolute path. Junction + * points on NTFS volumes can only point to directories. + * + * Relative targets are relative to the link's parent directory. + * + * ```js + * import { symlink } from 'node:fs'; + * + * symlink('./mew', './mewtwo', callback); + * ``` + * + * The above example creates a symbolic link `mewtwo` which points to `mew` in the + * same directory: + * + * ```bash + * $ tree . + * . + * ├── mew + * └── mewtwo -> ./mew + * ``` + * @since v0.1.31 + * @param [type='null'] + */ + export function symlink( + target: PathLike, + path: PathLike, + type: symlink.Type | undefined | null, + callback: NoParamCallback, + ): void; + /** + * Asynchronous symlink(2) - Create a new symbolic link to an existing file. + * @param target A path to an existing file. If a URL is provided, it must use the `file:` protocol. + * @param path A path to the new symlink. If a URL is provided, it must use the `file:` protocol. + */ + export function symlink(target: PathLike, path: PathLike, callback: NoParamCallback): void; + export namespace symlink { + /** + * Asynchronous symlink(2) - Create a new symbolic link to an existing file. + * @param target A path to an existing file. If a URL is provided, it must use the `file:` protocol. + * @param path A path to the new symlink. If a URL is provided, it must use the `file:` protocol. + * @param type May be set to `'dir'`, `'file'`, or `'junction'` (default is `'file'`) and is only available on Windows (ignored on other platforms). + * When using `'junction'`, the `target` argument will automatically be normalized to an absolute path. + */ + function __promisify__(target: PathLike, path: PathLike, type?: string | null): Promise; + type Type = "dir" | "file" | "junction"; + } + /** + * Returns `undefined`. + * + * For detailed information, see the documentation of the asynchronous version of + * this API: {@link symlink}. + * @since v0.1.31 + * @param [type='null'] + */ + export function symlinkSync(target: PathLike, path: PathLike, type?: symlink.Type | null): void; + /** + * Reads the contents of the symbolic link referred to by `path`. The callback gets + * two arguments `(err, linkString)`. + * + * See the POSIX [`readlink(2)`](http://man7.org/linux/man-pages/man2/readlink.2.html) documentation for more details. + * + * The optional `options` argument can be a string specifying an encoding, or an + * object with an `encoding` property specifying the character encoding to use for + * the link path passed to the callback. If the `encoding` is set to `'buffer'`, + * the link path returned will be passed as a `Buffer` object. + * @since v0.1.31 + */ + export function readlink( + path: PathLike, + options: EncodingOption, + callback: (err: NodeJS.ErrnoException | null, linkString: string) => void, + ): void; + /** + * Asynchronous readlink(2) - read value of a symbolic link. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + export function readlink( + path: PathLike, + options: BufferEncodingOption, + callback: (err: NodeJS.ErrnoException | null, linkString: NonSharedBuffer) => void, + ): void; + /** + * Asynchronous readlink(2) - read value of a symbolic link. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + export function readlink( + path: PathLike, + options: EncodingOption, + callback: (err: NodeJS.ErrnoException | null, linkString: string | NonSharedBuffer) => void, + ): void; + /** + * Asynchronous readlink(2) - read value of a symbolic link. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + export function readlink( + path: PathLike, + callback: (err: NodeJS.ErrnoException | null, linkString: string) => void, + ): void; + export namespace readlink { + /** + * Asynchronous readlink(2) - read value of a symbolic link. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__(path: PathLike, options?: EncodingOption): Promise; + /** + * Asynchronous readlink(2) - read value of a symbolic link. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__(path: PathLike, options: BufferEncodingOption): Promise; + /** + * Asynchronous readlink(2) - read value of a symbolic link. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__(path: PathLike, options?: EncodingOption): Promise; + } + /** + * Returns the symbolic link's string value. + * + * See the POSIX [`readlink(2)`](http://man7.org/linux/man-pages/man2/readlink.2.html) documentation for more details. + * + * The optional `options` argument can be a string specifying an encoding, or an + * object with an `encoding` property specifying the character encoding to use for + * the link path returned. If the `encoding` is set to `'buffer'`, + * the link path returned will be passed as a `Buffer` object. + * @since v0.1.31 + */ + export function readlinkSync(path: PathLike, options?: EncodingOption): string; + /** + * Synchronous readlink(2) - read value of a symbolic link. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + export function readlinkSync(path: PathLike, options: BufferEncodingOption): NonSharedBuffer; + /** + * Synchronous readlink(2) - read value of a symbolic link. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + export function readlinkSync(path: PathLike, options?: EncodingOption): string | NonSharedBuffer; + /** + * Asynchronously computes the canonical pathname by resolving `.`, `..`, and + * symbolic links. + * + * A canonical pathname is not necessarily unique. Hard links and bind mounts can + * expose a file system entity through many pathnames. + * + * This function behaves like [`realpath(3)`](http://man7.org/linux/man-pages/man3/realpath.3.html), with some exceptions: + * + * 1. No case conversion is performed on case-insensitive file systems. + * 2. The maximum number of symbolic links is platform-independent and generally + * (much) higher than what the native [`realpath(3)`](http://man7.org/linux/man-pages/man3/realpath.3.html) implementation supports. + * + * The `callback` gets two arguments `(err, resolvedPath)`. May use `process.cwd` to resolve relative paths. + * + * Only paths that can be converted to UTF8 strings are supported. + * + * The optional `options` argument can be a string specifying an encoding, or an + * object with an `encoding` property specifying the character encoding to use for + * the path passed to the callback. If the `encoding` is set to `'buffer'`, + * the path returned will be passed as a `Buffer` object. + * + * If `path` resolves to a socket or a pipe, the function will return a system + * dependent name for that object. + * @since v0.1.31 + */ + export function realpath( + path: PathLike, + options: EncodingOption, + callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void, + ): void; + /** + * Asynchronous realpath(3) - return the canonicalized absolute pathname. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + export function realpath( + path: PathLike, + options: BufferEncodingOption, + callback: (err: NodeJS.ErrnoException | null, resolvedPath: NonSharedBuffer) => void, + ): void; + /** + * Asynchronous realpath(3) - return the canonicalized absolute pathname. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + export function realpath( + path: PathLike, + options: EncodingOption, + callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | NonSharedBuffer) => void, + ): void; + /** + * Asynchronous realpath(3) - return the canonicalized absolute pathname. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + export function realpath( + path: PathLike, + callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void, + ): void; + export namespace realpath { + /** + * Asynchronous realpath(3) - return the canonicalized absolute pathname. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__(path: PathLike, options?: EncodingOption): Promise; + /** + * Asynchronous realpath(3) - return the canonicalized absolute pathname. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__(path: PathLike, options: BufferEncodingOption): Promise; + /** + * Asynchronous realpath(3) - return the canonicalized absolute pathname. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__(path: PathLike, options?: EncodingOption): Promise; + /** + * Asynchronous [`realpath(3)`](http://man7.org/linux/man-pages/man3/realpath.3.html). + * + * The `callback` gets two arguments `(err, resolvedPath)`. + * + * Only paths that can be converted to UTF8 strings are supported. + * + * The optional `options` argument can be a string specifying an encoding, or an + * object with an `encoding` property specifying the character encoding to use for + * the path passed to the callback. If the `encoding` is set to `'buffer'`, + * the path returned will be passed as a `Buffer` object. + * + * On Linux, when Node.js is linked against musl libc, the procfs file system must + * be mounted on `/proc` in order for this function to work. Glibc does not have + * this restriction. + * @since v9.2.0 + */ + function native( + path: PathLike, + options: EncodingOption, + callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void, + ): void; + function native( + path: PathLike, + options: BufferEncodingOption, + callback: (err: NodeJS.ErrnoException | null, resolvedPath: NonSharedBuffer) => void, + ): void; + function native( + path: PathLike, + options: EncodingOption, + callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | NonSharedBuffer) => void, + ): void; + function native( + path: PathLike, + callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void, + ): void; + } + /** + * Returns the resolved pathname. + * + * For detailed information, see the documentation of the asynchronous version of + * this API: {@link realpath}. + * @since v0.1.31 + */ + export function realpathSync(path: PathLike, options?: EncodingOption): string; + /** + * Synchronous realpath(3) - return the canonicalized absolute pathname. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + export function realpathSync(path: PathLike, options: BufferEncodingOption): NonSharedBuffer; + /** + * Synchronous realpath(3) - return the canonicalized absolute pathname. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + export function realpathSync(path: PathLike, options?: EncodingOption): string | NonSharedBuffer; + export namespace realpathSync { + function native(path: PathLike, options?: EncodingOption): string; + function native(path: PathLike, options: BufferEncodingOption): NonSharedBuffer; + function native(path: PathLike, options?: EncodingOption): string | NonSharedBuffer; + } + /** + * Asynchronously removes a file or symbolic link. No arguments other than a + * possible exception are given to the completion callback. + * + * ```js + * import { unlink } from 'node:fs'; + * // Assuming that 'path/file.txt' is a regular file. + * unlink('path/file.txt', (err) => { + * if (err) throw err; + * console.log('path/file.txt was deleted'); + * }); + * ``` + * + * `fs.unlink()` will not work on a directory, empty or otherwise. To remove a + * directory, use {@link rmdir}. + * + * See the POSIX [`unlink(2)`](http://man7.org/linux/man-pages/man2/unlink.2.html) documentation for more details. + * @since v0.0.2 + */ + export function unlink(path: PathLike, callback: NoParamCallback): void; + export namespace unlink { + /** + * Asynchronous unlink(2) - delete a name and possibly the file it refers to. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function __promisify__(path: PathLike): Promise; + } + /** + * Synchronous [`unlink(2)`](http://man7.org/linux/man-pages/man2/unlink.2.html). Returns `undefined`. + * @since v0.1.21 + */ + export function unlinkSync(path: PathLike): void; + export interface RmDirOptions { + /** + * If an `EBUSY`, `EMFILE`, `ENFILE`, `ENOTEMPTY`, or + * `EPERM` error is encountered, Node.js will retry the operation with a linear + * backoff wait of `retryDelay` ms longer on each try. This option represents the + * number of retries. This option is ignored if the `recursive` option is not + * `true`. + * @default 0 + */ + maxRetries?: number | undefined; + /** + * @deprecated since v14.14.0 In future versions of Node.js and will trigger a warning + * `fs.rmdir(path, { recursive: true })` will throw if `path` does not exist or is a file. + * Use `fs.rm(path, { recursive: true, force: true })` instead. + * + * If `true`, perform a recursive directory removal. In + * recursive mode, operations are retried on failure. + * @default false + */ + recursive?: boolean | undefined; + /** + * The amount of time in milliseconds to wait between retries. + * This option is ignored if the `recursive` option is not `true`. + * @default 100 + */ + retryDelay?: number | undefined; + } + /** + * Asynchronous [`rmdir(2)`](http://man7.org/linux/man-pages/man2/rmdir.2.html). No arguments other than a possible exception are given + * to the completion callback. + * + * Using `fs.rmdir()` on a file (not a directory) results in an `ENOENT` error on + * Windows and an `ENOTDIR` error on POSIX. + * + * To get a behavior similar to the `rm -rf` Unix command, use {@link rm} with options `{ recursive: true, force: true }`. + * @since v0.0.2 + */ + export function rmdir(path: PathLike, callback: NoParamCallback): void; + export function rmdir(path: PathLike, options: RmDirOptions, callback: NoParamCallback): void; + export namespace rmdir { + /** + * Asynchronous rmdir(2) - delete a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function __promisify__(path: PathLike, options?: RmDirOptions): Promise; + } + /** + * Synchronous [`rmdir(2)`](http://man7.org/linux/man-pages/man2/rmdir.2.html). Returns `undefined`. + * + * Using `fs.rmdirSync()` on a file (not a directory) results in an `ENOENT` error + * on Windows and an `ENOTDIR` error on POSIX. + * + * To get a behavior similar to the `rm -rf` Unix command, use {@link rmSync} with options `{ recursive: true, force: true }`. + * @since v0.1.21 + */ + export function rmdirSync(path: PathLike, options?: RmDirOptions): void; + export interface RmOptions { + /** + * When `true`, exceptions will be ignored if `path` does not exist. + * @default false + */ + force?: boolean | undefined; + /** + * If an `EBUSY`, `EMFILE`, `ENFILE`, `ENOTEMPTY`, or + * `EPERM` error is encountered, Node.js will retry the operation with a linear + * backoff wait of `retryDelay` ms longer on each try. This option represents the + * number of retries. This option is ignored if the `recursive` option is not + * `true`. + * @default 0 + */ + maxRetries?: number | undefined; + /** + * If `true`, perform a recursive directory removal. In + * recursive mode, operations are retried on failure. + * @default false + */ + recursive?: boolean | undefined; + /** + * The amount of time in milliseconds to wait between retries. + * This option is ignored if the `recursive` option is not `true`. + * @default 100 + */ + retryDelay?: number | undefined; + } + /** + * Asynchronously removes files and directories (modeled on the standard POSIX `rm` utility). No arguments other than a possible exception are given to the + * completion callback. + * @since v14.14.0 + */ + export function rm(path: PathLike, callback: NoParamCallback): void; + export function rm(path: PathLike, options: RmOptions, callback: NoParamCallback): void; + export namespace rm { + /** + * Asynchronously removes files and directories (modeled on the standard POSIX `rm` utility). + */ + function __promisify__(path: PathLike, options?: RmOptions): Promise; + } + /** + * Synchronously removes files and directories (modeled on the standard POSIX `rm` utility). Returns `undefined`. + * @since v14.14.0 + */ + export function rmSync(path: PathLike, options?: RmOptions): void; + export interface MakeDirectoryOptions { + /** + * Indicates whether parent folders should be created. + * If a folder was created, the path to the first created folder will be returned. + * @default false + */ + recursive?: boolean | undefined; + /** + * A file mode. If a string is passed, it is parsed as an octal integer. If not specified + * @default 0o777 + */ + mode?: Mode | undefined; + } + /** + * Asynchronously creates a directory. + * + * The callback is given a possible exception and, if `recursive` is `true`, the + * first directory path created, `(err[, path])`.`path` can still be `undefined` when `recursive` is `true`, if no directory was + * created (for instance, if it was previously created). + * + * The optional `options` argument can be an integer specifying `mode` (permission + * and sticky bits), or an object with a `mode` property and a `recursive` property indicating whether parent directories should be created. Calling `fs.mkdir()` when `path` is a directory that + * exists results in an error only + * when `recursive` is false. If `recursive` is false and the directory exists, + * an `EEXIST` error occurs. + * + * ```js + * import { mkdir } from 'node:fs'; + * + * // Create ./tmp/a/apple, regardless of whether ./tmp and ./tmp/a exist. + * mkdir('./tmp/a/apple', { recursive: true }, (err) => { + * if (err) throw err; + * }); + * ``` + * + * On Windows, using `fs.mkdir()` on the root directory even with recursion will + * result in an error: + * + * ```js + * import { mkdir } from 'node:fs'; + * + * mkdir('/', { recursive: true }, (err) => { + * // => [Error: EPERM: operation not permitted, mkdir 'C:\'] + * }); + * ``` + * + * See the POSIX [`mkdir(2)`](http://man7.org/linux/man-pages/man2/mkdir.2.html) documentation for more details. + * @since v0.1.8 + */ + export function mkdir( + path: PathLike, + options: MakeDirectoryOptions & { + recursive: true; + }, + callback: (err: NodeJS.ErrnoException | null, path?: string) => void, + ): void; + /** + * Asynchronous mkdir(2) - create a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders + * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. + */ + export function mkdir( + path: PathLike, + options: + | Mode + | (MakeDirectoryOptions & { + recursive?: false | undefined; + }) + | null + | undefined, + callback: NoParamCallback, + ): void; + /** + * Asynchronous mkdir(2) - create a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders + * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. + */ + export function mkdir( + path: PathLike, + options: Mode | MakeDirectoryOptions | null | undefined, + callback: (err: NodeJS.ErrnoException | null, path?: string) => void, + ): void; + /** + * Asynchronous mkdir(2) - create a directory with a mode of `0o777`. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + export function mkdir(path: PathLike, callback: NoParamCallback): void; + export namespace mkdir { + /** + * Asynchronous mkdir(2) - create a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders + * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. + */ + function __promisify__( + path: PathLike, + options: MakeDirectoryOptions & { + recursive: true; + }, + ): Promise; + /** + * Asynchronous mkdir(2) - create a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders + * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. + */ + function __promisify__( + path: PathLike, + options?: + | Mode + | (MakeDirectoryOptions & { + recursive?: false | undefined; + }) + | null, + ): Promise; + /** + * Asynchronous mkdir(2) - create a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders + * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. + */ + function __promisify__( + path: PathLike, + options?: Mode | MakeDirectoryOptions | null, + ): Promise; + } + /** + * Synchronously creates a directory. Returns `undefined`, or if `recursive` is `true`, the first directory path created. + * This is the synchronous version of {@link mkdir}. + * + * See the POSIX [`mkdir(2)`](http://man7.org/linux/man-pages/man2/mkdir.2.html) documentation for more details. + * @since v0.1.21 + */ + export function mkdirSync( + path: PathLike, + options: MakeDirectoryOptions & { + recursive: true; + }, + ): string | undefined; + /** + * Synchronous mkdir(2) - create a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders + * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. + */ + export function mkdirSync( + path: PathLike, + options?: + | Mode + | (MakeDirectoryOptions & { + recursive?: false | undefined; + }) + | null, + ): void; + /** + * Synchronous mkdir(2) - create a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders + * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. + */ + export function mkdirSync(path: PathLike, options?: Mode | MakeDirectoryOptions | null): string | undefined; + /** + * Creates a unique temporary directory. + * + * Generates six random characters to be appended behind a required `prefix` to create a unique temporary directory. Due to platform + * inconsistencies, avoid trailing `X` characters in `prefix`. Some platforms, + * notably the BSDs, can return more than six random characters, and replace + * trailing `X` characters in `prefix` with random characters. + * + * The created directory path is passed as a string to the callback's second + * parameter. + * + * The optional `options` argument can be a string specifying an encoding, or an + * object with an `encoding` property specifying the character encoding to use. + * + * ```js + * import { mkdtemp } from 'node:fs'; + * import { join } from 'node:path'; + * import { tmpdir } from 'node:os'; + * + * mkdtemp(join(tmpdir(), 'foo-'), (err, directory) => { + * if (err) throw err; + * console.log(directory); + * // Prints: /tmp/foo-itXde2 or C:\Users\...\AppData\Local\Temp\foo-itXde2 + * }); + * ``` + * + * The `fs.mkdtemp()` method will append the six randomly selected characters + * directly to the `prefix` string. For instance, given a directory `/tmp`, if the + * intention is to create a temporary directory _within_`/tmp`, the `prefix`must end with a trailing platform-specific path separator + * (`import { sep } from 'node:node:path'`). + * + * ```js + * import { tmpdir } from 'node:os'; + * import { mkdtemp } from 'node:fs'; + * + * // The parent directory for the new temporary directory + * const tmpDir = tmpdir(); + * + * // This method is *INCORRECT*: + * mkdtemp(tmpDir, (err, directory) => { + * if (err) throw err; + * console.log(directory); + * // Will print something similar to `/tmpabc123`. + * // A new temporary directory is created at the file system root + * // rather than *within* the /tmp directory. + * }); + * + * // This method is *CORRECT*: + * import { sep } from 'node:path'; + * mkdtemp(`${tmpDir}${sep}`, (err, directory) => { + * if (err) throw err; + * console.log(directory); + * // Will print something similar to `/tmp/abc123`. + * // A new temporary directory is created within + * // the /tmp directory. + * }); + * ``` + * @since v5.10.0 + */ + export function mkdtemp( + prefix: string, + options: EncodingOption, + callback: (err: NodeJS.ErrnoException | null, folder: string) => void, + ): void; + /** + * Asynchronously creates a unique temporary directory. + * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + export function mkdtemp( + prefix: string, + options: BufferEncodingOption, + callback: (err: NodeJS.ErrnoException | null, folder: NonSharedBuffer) => void, + ): void; + /** + * Asynchronously creates a unique temporary directory. + * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + export function mkdtemp( + prefix: string, + options: EncodingOption, + callback: (err: NodeJS.ErrnoException | null, folder: string | NonSharedBuffer) => void, + ): void; + /** + * Asynchronously creates a unique temporary directory. + * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. + */ + export function mkdtemp( + prefix: string, + callback: (err: NodeJS.ErrnoException | null, folder: string) => void, + ): void; + export namespace mkdtemp { + /** + * Asynchronously creates a unique temporary directory. + * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__(prefix: string, options?: EncodingOption): Promise; + /** + * Asynchronously creates a unique temporary directory. + * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__(prefix: string, options: BufferEncodingOption): Promise; + /** + * Asynchronously creates a unique temporary directory. + * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__(prefix: string, options?: EncodingOption): Promise; + } + /** + * Returns the created directory path. + * + * For detailed information, see the documentation of the asynchronous version of + * this API: {@link mkdtemp}. + * + * The optional `options` argument can be a string specifying an encoding, or an + * object with an `encoding` property specifying the character encoding to use. + * @since v5.10.0 + */ + export function mkdtempSync(prefix: string, options?: EncodingOption): string; + /** + * Synchronously creates a unique temporary directory. + * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + export function mkdtempSync(prefix: string, options: BufferEncodingOption): NonSharedBuffer; + /** + * Synchronously creates a unique temporary directory. + * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + export function mkdtempSync(prefix: string, options?: EncodingOption): string | NonSharedBuffer; + /** + * Reads the contents of a directory. The callback gets two arguments `(err, files)` where `files` is an array of the names of the files in the directory excluding `'.'` and `'..'`. + * + * See the POSIX [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) documentation for more details. + * + * The optional `options` argument can be a string specifying an encoding, or an + * object with an `encoding` property specifying the character encoding to use for + * the filenames passed to the callback. If the `encoding` is set to `'buffer'`, + * the filenames returned will be passed as `Buffer` objects. + * + * If `options.withFileTypes` is set to `true`, the `files` array will contain `fs.Dirent` objects. + * @since v0.1.8 + */ + export function readdir( + path: PathLike, + options: + | { + encoding: BufferEncoding | null; + withFileTypes?: false | undefined; + recursive?: boolean | undefined; + } + | BufferEncoding + | undefined + | null, + callback: (err: NodeJS.ErrnoException | null, files: string[]) => void, + ): void; + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + export function readdir( + path: PathLike, + options: + | { + encoding: "buffer"; + withFileTypes?: false | undefined; + recursive?: boolean | undefined; + } + | "buffer", + callback: (err: NodeJS.ErrnoException | null, files: NonSharedBuffer[]) => void, + ): void; + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + export function readdir( + path: PathLike, + options: + | (ObjectEncodingOptions & { + withFileTypes?: false | undefined; + recursive?: boolean | undefined; + }) + | BufferEncoding + | undefined + | null, + callback: (err: NodeJS.ErrnoException | null, files: string[] | NonSharedBuffer[]) => void, + ): void; + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + export function readdir( + path: PathLike, + callback: (err: NodeJS.ErrnoException | null, files: string[]) => void, + ): void; + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options If called with `withFileTypes: true` the result data will be an array of Dirent. + */ + export function readdir( + path: PathLike, + options: ObjectEncodingOptions & { + withFileTypes: true; + recursive?: boolean | undefined; + }, + callback: (err: NodeJS.ErrnoException | null, files: Dirent[]) => void, + ): void; + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options Must include `withFileTypes: true` and `encoding: 'buffer'`. + */ + export function readdir( + path: PathLike, + options: { + encoding: "buffer"; + withFileTypes: true; + recursive?: boolean | undefined; + }, + callback: (err: NodeJS.ErrnoException | null, files: Dirent[]) => void, + ): void; + export namespace readdir { + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__( + path: PathLike, + options?: + | { + encoding: BufferEncoding | null; + withFileTypes?: false | undefined; + recursive?: boolean | undefined; + } + | BufferEncoding + | null, + ): Promise; + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__( + path: PathLike, + options: + | "buffer" + | { + encoding: "buffer"; + withFileTypes?: false | undefined; + recursive?: boolean | undefined; + }, + ): Promise; + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__( + path: PathLike, + options?: + | (ObjectEncodingOptions & { + withFileTypes?: false | undefined; + recursive?: boolean | undefined; + }) + | BufferEncoding + | null, + ): Promise; + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options If called with `withFileTypes: true` the result data will be an array of Dirent + */ + function __promisify__( + path: PathLike, + options: ObjectEncodingOptions & { + withFileTypes: true; + recursive?: boolean | undefined; + }, + ): Promise; + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options Must include `withFileTypes: true` and `encoding: 'buffer'`. + */ + function __promisify__( + path: PathLike, + options: { + encoding: "buffer"; + withFileTypes: true; + recursive?: boolean | undefined; + }, + ): Promise[]>; + } + /** + * Reads the contents of the directory. + * + * See the POSIX [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) documentation for more details. + * + * The optional `options` argument can be a string specifying an encoding, or an + * object with an `encoding` property specifying the character encoding to use for + * the filenames returned. If the `encoding` is set to `'buffer'`, + * the filenames returned will be passed as `Buffer` objects. + * + * If `options.withFileTypes` is set to `true`, the result will contain `fs.Dirent` objects. + * @since v0.1.21 + */ + export function readdirSync( + path: PathLike, + options?: + | { + encoding: BufferEncoding | null; + withFileTypes?: false | undefined; + recursive?: boolean | undefined; + } + | BufferEncoding + | null, + ): string[]; + /** + * Synchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + export function readdirSync( + path: PathLike, + options: + | { + encoding: "buffer"; + withFileTypes?: false | undefined; + recursive?: boolean | undefined; + } + | "buffer", + ): NonSharedBuffer[]; + /** + * Synchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + export function readdirSync( + path: PathLike, + options?: + | (ObjectEncodingOptions & { + withFileTypes?: false | undefined; + recursive?: boolean | undefined; + }) + | BufferEncoding + | null, + ): string[] | NonSharedBuffer[]; + /** + * Synchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options If called with `withFileTypes: true` the result data will be an array of Dirent. + */ + export function readdirSync( + path: PathLike, + options: ObjectEncodingOptions & { + withFileTypes: true; + recursive?: boolean | undefined; + }, + ): Dirent[]; + /** + * Synchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options Must include `withFileTypes: true` and `encoding: 'buffer'`. + */ + export function readdirSync( + path: PathLike, + options: { + encoding: "buffer"; + withFileTypes: true; + recursive?: boolean | undefined; + }, + ): Dirent[]; + /** + * Closes the file descriptor. No arguments other than a possible exception are + * given to the completion callback. + * + * Calling `fs.close()` on any file descriptor (`fd`) that is currently in use + * through any other `fs` operation may lead to undefined behavior. + * + * See the POSIX [`close(2)`](http://man7.org/linux/man-pages/man2/close.2.html) documentation for more detail. + * @since v0.0.2 + */ + export function close(fd: number, callback?: NoParamCallback): void; + export namespace close { + /** + * Asynchronous close(2) - close a file descriptor. + * @param fd A file descriptor. + */ + function __promisify__(fd: number): Promise; + } + /** + * Closes the file descriptor. Returns `undefined`. + * + * Calling `fs.closeSync()` on any file descriptor (`fd`) that is currently in use + * through any other `fs` operation may lead to undefined behavior. + * + * See the POSIX [`close(2)`](http://man7.org/linux/man-pages/man2/close.2.html) documentation for more detail. + * @since v0.1.21 + */ + export function closeSync(fd: number): void; + /** + * Asynchronous file open. See the POSIX [`open(2)`](http://man7.org/linux/man-pages/man2/open.2.html) documentation for more details. + * + * `mode` sets the file mode (permission and sticky bits), but only if the file was + * created. On Windows, only the write permission can be manipulated; see {@link chmod}. + * + * The callback gets two arguments `(err, fd)`. + * + * Some characters (`< > : " / \ | ? *`) are reserved under Windows as documented + * by [Naming Files, Paths, and Namespaces](https://docs.microsoft.com/en-us/windows/desktop/FileIO/naming-a-file). Under NTFS, if the filename contains + * a colon, Node.js will open a file system stream, as described by [this MSDN page](https://docs.microsoft.com/en-us/windows/desktop/FileIO/using-streams). + * + * Functions based on `fs.open()` exhibit this behavior as well:`fs.writeFile()`, `fs.readFile()`, etc. + * @since v0.0.2 + * @param [flags='r'] See `support of file system `flags``. + * @param [mode=0o666] + */ + export function open( + path: PathLike, + flags: OpenMode | undefined, + mode: Mode | undefined | null, + callback: (err: NodeJS.ErrnoException | null, fd: number) => void, + ): void; + /** + * Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param [flags='r'] See `support of file system `flags``. + */ + export function open( + path: PathLike, + flags: OpenMode | undefined, + callback: (err: NodeJS.ErrnoException | null, fd: number) => void, + ): void; + /** + * Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + export function open(path: PathLike, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void; + export namespace open { + /** + * Asynchronous open(2) - open and possibly create a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param mode A file mode. If a string is passed, it is parsed as an octal integer. If not supplied, defaults to `0o666`. + */ + function __promisify__(path: PathLike, flags: OpenMode, mode?: Mode | null): Promise; + } + /** + * Returns an integer representing the file descriptor. + * + * For detailed information, see the documentation of the asynchronous version of + * this API: {@link open}. + * @since v0.1.21 + * @param [flags='r'] + * @param [mode=0o666] + */ + export function openSync(path: PathLike, flags: OpenMode, mode?: Mode | null): number; + /** + * Change the file system timestamps of the object referenced by `path`. + * + * The `atime` and `mtime` arguments follow these rules: + * + * * Values can be either numbers representing Unix epoch time in seconds, `Date`s, or a numeric string like `'123456789.0'`. + * * If the value can not be converted to a number, or is `NaN`, `Infinity`, or `-Infinity`, an `Error` will be thrown. + * @since v0.4.2 + */ + export function utimes(path: PathLike, atime: TimeLike, mtime: TimeLike, callback: NoParamCallback): void; + export namespace utimes { + /** + * Asynchronously change file timestamps of the file referenced by the supplied path. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param atime The last access time. If a string is provided, it will be coerced to number. + * @param mtime The last modified time. If a string is provided, it will be coerced to number. + */ + function __promisify__(path: PathLike, atime: TimeLike, mtime: TimeLike): Promise; + } + /** + * Returns `undefined`. + * + * For detailed information, see the documentation of the asynchronous version of + * this API: {@link utimes}. + * @since v0.4.2 + */ + export function utimesSync(path: PathLike, atime: TimeLike, mtime: TimeLike): void; + /** + * Change the file system timestamps of the object referenced by the supplied file + * descriptor. See {@link utimes}. + * @since v0.4.2 + */ + export function futimes(fd: number, atime: TimeLike, mtime: TimeLike, callback: NoParamCallback): void; + export namespace futimes { + /** + * Asynchronously change file timestamps of the file referenced by the supplied file descriptor. + * @param fd A file descriptor. + * @param atime The last access time. If a string is provided, it will be coerced to number. + * @param mtime The last modified time. If a string is provided, it will be coerced to number. + */ + function __promisify__(fd: number, atime: TimeLike, mtime: TimeLike): Promise; + } + /** + * Synchronous version of {@link futimes}. Returns `undefined`. + * @since v0.4.2 + */ + export function futimesSync(fd: number, atime: TimeLike, mtime: TimeLike): void; + /** + * Request that all data for the open file descriptor is flushed to the storage + * device. The specific implementation is operating system and device specific. + * Refer to the POSIX [`fsync(2)`](http://man7.org/linux/man-pages/man2/fsync.2.html) documentation for more detail. No arguments other + * than a possible exception are given to the completion callback. + * @since v0.1.96 + */ + export function fsync(fd: number, callback: NoParamCallback): void; + export namespace fsync { + /** + * Asynchronous fsync(2) - synchronize a file's in-core state with the underlying storage device. + * @param fd A file descriptor. + */ + function __promisify__(fd: number): Promise; + } + /** + * Request that all data for the open file descriptor is flushed to the storage + * device. The specific implementation is operating system and device specific. + * Refer to the POSIX [`fsync(2)`](http://man7.org/linux/man-pages/man2/fsync.2.html) documentation for more detail. Returns `undefined`. + * @since v0.1.96 + */ + export function fsyncSync(fd: number): void; + export interface WriteOptions { + /** + * @default 0 + */ + offset?: number | undefined; + /** + * @default `buffer.byteLength - offset` + */ + length?: number | undefined; + /** + * @default null + */ + position?: number | null | undefined; + } + /** + * Write `buffer` to the file specified by `fd`. + * + * `offset` determines the part of the buffer to be written, and `length` is + * an integer specifying the number of bytes to write. + * + * `position` refers to the offset from the beginning of the file where this data + * should be written. If `typeof position !== 'number'`, the data will be written + * at the current position. See [`pwrite(2)`](http://man7.org/linux/man-pages/man2/pwrite.2.html). + * + * The callback will be given three arguments `(err, bytesWritten, buffer)` where `bytesWritten` specifies how many _bytes_ were written from `buffer`. + * + * If this method is invoked as its `util.promisify()` ed version, it returns + * a promise for an `Object` with `bytesWritten` and `buffer` properties. + * + * It is unsafe to use `fs.write()` multiple times on the same file without waiting + * for the callback. For this scenario, {@link createWriteStream} is + * recommended. + * + * On Linux, positional writes don't work when the file is opened in append mode. + * The kernel ignores the position argument and always appends the data to + * the end of the file. + * @since v0.0.2 + * @param [offset=0] + * @param [length=buffer.byteLength - offset] + * @param [position='null'] + */ + export function write( + fd: number, + buffer: TBuffer, + offset: number | undefined | null, + length: number | undefined | null, + position: number | undefined | null, + callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void, + ): void; + /** + * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. + * @param fd A file descriptor. + * @param offset The part of the buffer to be written. If not supplied, defaults to `0`. + * @param length The number of bytes to write. If not supplied, defaults to `buffer.length - offset`. + */ + export function write( + fd: number, + buffer: TBuffer, + offset: number | undefined | null, + length: number | undefined | null, + callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void, + ): void; + /** + * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. + * @param fd A file descriptor. + * @param offset The part of the buffer to be written. If not supplied, defaults to `0`. + */ + export function write( + fd: number, + buffer: TBuffer, + offset: number | undefined | null, + callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void, + ): void; + /** + * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. + * @param fd A file descriptor. + */ + export function write( + fd: number, + buffer: TBuffer, + callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void, + ): void; + /** + * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. + * @param fd A file descriptor. + * @param options An object with the following properties: + * * `offset` The part of the buffer to be written. If not supplied, defaults to `0`. + * * `length` The number of bytes to write. If not supplied, defaults to `buffer.length - offset`. + * * `position` The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. + */ + export function write( + fd: number, + buffer: TBuffer, + options: WriteOptions, + callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void, + ): void; + /** + * Asynchronously writes `string` to the file referenced by the supplied file descriptor. + * @param fd A file descriptor. + * @param string A string to write. + * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. + * @param encoding The expected string encoding. + */ + export function write( + fd: number, + string: string, + position: number | undefined | null, + encoding: BufferEncoding | undefined | null, + callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void, + ): void; + /** + * Asynchronously writes `string` to the file referenced by the supplied file descriptor. + * @param fd A file descriptor. + * @param string A string to write. + * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. + */ + export function write( + fd: number, + string: string, + position: number | undefined | null, + callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void, + ): void; + /** + * Asynchronously writes `string` to the file referenced by the supplied file descriptor. + * @param fd A file descriptor. + * @param string A string to write. + */ + export function write( + fd: number, + string: string, + callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void, + ): void; + export namespace write { + /** + * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. + * @param fd A file descriptor. + * @param offset The part of the buffer to be written. If not supplied, defaults to `0`. + * @param length The number of bytes to write. If not supplied, defaults to `buffer.length - offset`. + * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. + */ + function __promisify__( + fd: number, + buffer?: TBuffer, + offset?: number, + length?: number, + position?: number | null, + ): Promise<{ + bytesWritten: number; + buffer: TBuffer; + }>; + /** + * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. + * @param fd A file descriptor. + * @param options An object with the following properties: + * * `offset` The part of the buffer to be written. If not supplied, defaults to `0`. + * * `length` The number of bytes to write. If not supplied, defaults to `buffer.length - offset`. + * * `position` The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. + */ + function __promisify__( + fd: number, + buffer?: TBuffer, + options?: WriteOptions, + ): Promise<{ + bytesWritten: number; + buffer: TBuffer; + }>; + /** + * Asynchronously writes `string` to the file referenced by the supplied file descriptor. + * @param fd A file descriptor. + * @param string A string to write. + * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. + * @param encoding The expected string encoding. + */ + function __promisify__( + fd: number, + string: string, + position?: number | null, + encoding?: BufferEncoding | null, + ): Promise<{ + bytesWritten: number; + buffer: string; + }>; + } + /** + * For detailed information, see the documentation of the asynchronous version of + * this API: {@link write}. + * @since v0.1.21 + * @param [offset=0] + * @param [length=buffer.byteLength - offset] + * @param [position='null'] + * @return The number of bytes written. + */ + export function writeSync( + fd: number, + buffer: NodeJS.ArrayBufferView, + offset?: number | null, + length?: number | null, + position?: number | null, + ): number; + /** + * Synchronously writes `string` to the file referenced by the supplied file descriptor, returning the number of bytes written. + * @param fd A file descriptor. + * @param string A string to write. + * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. + * @param encoding The expected string encoding. + */ + export function writeSync( + fd: number, + string: string, + position?: number | null, + encoding?: BufferEncoding | null, + ): number; + export type ReadPosition = number | bigint; + export interface ReadOptions { + /** + * @default 0 + */ + offset?: number | undefined; + /** + * @default `length of buffer` + */ + length?: number | undefined; + /** + * @default null + */ + position?: ReadPosition | null | undefined; + } + export interface ReadOptionsWithBuffer extends ReadOptions { + buffer?: T | undefined; + } + /** @deprecated Use `ReadOptions` instead. */ + // TODO: remove in future major + export interface ReadSyncOptions extends ReadOptions {} + /** @deprecated Use `ReadOptionsWithBuffer` instead. */ + // TODO: remove in future major + export interface ReadAsyncOptions extends ReadOptionsWithBuffer {} + /** + * Read data from the file specified by `fd`. + * + * The callback is given the three arguments, `(err, bytesRead, buffer)`. + * + * If the file is not modified concurrently, the end-of-file is reached when the + * number of bytes read is zero. + * + * If this method is invoked as its `util.promisify()` ed version, it returns + * a promise for an `Object` with `bytesRead` and `buffer` properties. + * @since v0.0.2 + * @param buffer The buffer that the data will be written to. + * @param offset The position in `buffer` to write the data to. + * @param length The number of bytes to read. + * @param position Specifies where to begin reading from in the file. If `position` is `null` or `-1 `, data will be read from the current file position, and the file position will be updated. If + * `position` is an integer, the file position will be unchanged. + */ + export function read( + fd: number, + buffer: TBuffer, + offset: number, + length: number, + position: ReadPosition | null, + callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void, + ): void; + /** + * Similar to the above `fs.read` function, this version takes an optional `options` object. + * If not otherwise specified in an `options` object, + * `buffer` defaults to `Buffer.alloc(16384)`, + * `offset` defaults to `0`, + * `length` defaults to `buffer.byteLength`, `- offset` as of Node 17.6.0 + * `position` defaults to `null` + * @since v12.17.0, 13.11.0 + */ + export function read( + fd: number, + options: ReadOptionsWithBuffer, + callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void, + ): void; + export function read( + fd: number, + buffer: TBuffer, + options: ReadOptions, + callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void, + ): void; + export function read( + fd: number, + buffer: TBuffer, + callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void, + ): void; + export function read( + fd: number, + callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: NonSharedBuffer) => void, + ): void; + export namespace read { + /** + * @param fd A file descriptor. + * @param buffer The buffer that the data will be written to. + * @param offset The offset in the buffer at which to start writing. + * @param length The number of bytes to read. + * @param position The offset from the beginning of the file from which data should be read. If `null`, data will be read from the current position. + */ + function __promisify__( + fd: number, + buffer: TBuffer, + offset: number, + length: number, + position: number | null, + ): Promise<{ + bytesRead: number; + buffer: TBuffer; + }>; + function __promisify__( + fd: number, + options: ReadOptionsWithBuffer, + ): Promise<{ + bytesRead: number; + buffer: TBuffer; + }>; + function __promisify__(fd: number): Promise<{ + bytesRead: number; + buffer: NonSharedBuffer; + }>; + } + /** + * Returns the number of `bytesRead`. + * + * For detailed information, see the documentation of the asynchronous version of + * this API: {@link read}. + * @since v0.1.21 + * @param [position='null'] + */ + export function readSync( + fd: number, + buffer: NodeJS.ArrayBufferView, + offset: number, + length: number, + position: ReadPosition | null, + ): number; + /** + * Similar to the above `fs.readSync` function, this version takes an optional `options` object. + * If no `options` object is specified, it will default with the above values. + */ + export function readSync(fd: number, buffer: NodeJS.ArrayBufferView, opts?: ReadOptions): number; + /** + * Asynchronously reads the entire contents of a file. + * + * ```js + * import { readFile } from 'node:fs'; + * + * readFile('/etc/passwd', (err, data) => { + * if (err) throw err; + * console.log(data); + * }); + * ``` + * + * The callback is passed two arguments `(err, data)`, where `data` is the + * contents of the file. + * + * If no encoding is specified, then the raw buffer is returned. + * + * If `options` is a string, then it specifies the encoding: + * + * ```js + * import { readFile } from 'node:fs'; + * + * readFile('/etc/passwd', 'utf8', callback); + * ``` + * + * When the path is a directory, the behavior of `fs.readFile()` and {@link readFileSync} is platform-specific. On macOS, Linux, and Windows, an + * error will be returned. On FreeBSD, a representation of the directory's contents + * will be returned. + * + * ```js + * import { readFile } from 'node:fs'; + * + * // macOS, Linux, and Windows + * readFile('', (err, data) => { + * // => [Error: EISDIR: illegal operation on a directory, read ] + * }); + * + * // FreeBSD + * readFile('', (err, data) => { + * // => null, + * }); + * ``` + * + * It is possible to abort an ongoing request using an `AbortSignal`. If a + * request is aborted the callback is called with an `AbortError`: + * + * ```js + * import { readFile } from 'node:fs'; + * + * const controller = new AbortController(); + * const signal = controller.signal; + * readFile(fileInfo[0].name, { signal }, (err, buf) => { + * // ... + * }); + * // When you want to abort the request + * controller.abort(); + * ``` + * + * The `fs.readFile()` function buffers the entire file. To minimize memory costs, + * when possible prefer streaming via `fs.createReadStream()`. + * + * Aborting an ongoing request does not abort individual operating + * system requests but rather the internal buffering `fs.readFile` performs. + * @since v0.1.29 + * @param path filename or file descriptor + */ + export function readFile( + path: PathOrFileDescriptor, + options: + | ({ + encoding?: null | undefined; + flag?: string | undefined; + } & Abortable) + | undefined + | null, + callback: (err: NodeJS.ErrnoException | null, data: NonSharedBuffer) => void, + ): void; + /** + * Asynchronously reads the entire contents of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. + * If a flag is not provided, it defaults to `'r'`. + */ + export function readFile( + path: PathOrFileDescriptor, + options: + | ({ + encoding: BufferEncoding; + flag?: string | undefined; + } & Abortable) + | BufferEncoding, + callback: (err: NodeJS.ErrnoException | null, data: string) => void, + ): void; + /** + * Asynchronously reads the entire contents of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. + * If a flag is not provided, it defaults to `'r'`. + */ + export function readFile( + path: PathOrFileDescriptor, + options: + | (ObjectEncodingOptions & { + flag?: string | undefined; + } & Abortable) + | BufferEncoding + | undefined + | null, + callback: (err: NodeJS.ErrnoException | null, data: string | NonSharedBuffer) => void, + ): void; + /** + * Asynchronously reads the entire contents of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + */ + export function readFile( + path: PathOrFileDescriptor, + callback: (err: NodeJS.ErrnoException | null, data: NonSharedBuffer) => void, + ): void; + export namespace readFile { + /** + * Asynchronously reads the entire contents of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param options An object that may contain an optional flag. + * If a flag is not provided, it defaults to `'r'`. + */ + function __promisify__( + path: PathOrFileDescriptor, + options?: { + encoding?: null | undefined; + flag?: string | undefined; + } | null, + ): Promise; + /** + * Asynchronously reads the entire contents of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. + * If a flag is not provided, it defaults to `'r'`. + */ + function __promisify__( + path: PathOrFileDescriptor, + options: + | { + encoding: BufferEncoding; + flag?: string | undefined; + } + | BufferEncoding, + ): Promise; + /** + * Asynchronously reads the entire contents of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. + * If a flag is not provided, it defaults to `'r'`. + */ + function __promisify__( + path: PathOrFileDescriptor, + options?: + | (ObjectEncodingOptions & { + flag?: string | undefined; + }) + | BufferEncoding + | null, + ): Promise; + } + /** + * Returns the contents of the `path`. + * + * For detailed information, see the documentation of the asynchronous version of + * this API: {@link readFile}. + * + * If the `encoding` option is specified then this function returns a + * string. Otherwise it returns a buffer. + * + * Similar to {@link readFile}, when the path is a directory, the behavior of `fs.readFileSync()` is platform-specific. + * + * ```js + * import { readFileSync } from 'node:fs'; + * + * // macOS, Linux, and Windows + * readFileSync(''); + * // => [Error: EISDIR: illegal operation on a directory, read ] + * + * // FreeBSD + * readFileSync(''); // => + * ``` + * @since v0.1.8 + * @param path filename or file descriptor + */ + export function readFileSync( + path: PathOrFileDescriptor, + options?: { + encoding?: null | undefined; + flag?: string | undefined; + } | null, + ): NonSharedBuffer; + /** + * Synchronously reads the entire contents of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. + * If a flag is not provided, it defaults to `'r'`. + */ + export function readFileSync( + path: PathOrFileDescriptor, + options: + | { + encoding: BufferEncoding; + flag?: string | undefined; + } + | BufferEncoding, + ): string; + /** + * Synchronously reads the entire contents of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. + * If a flag is not provided, it defaults to `'r'`. + */ + export function readFileSync( + path: PathOrFileDescriptor, + options?: + | (ObjectEncodingOptions & { + flag?: string | undefined; + }) + | BufferEncoding + | null, + ): string | NonSharedBuffer; + export type WriteFileOptions = + | ( + & ObjectEncodingOptions + & Abortable + & { + mode?: Mode | undefined; + flag?: string | undefined; + flush?: boolean | undefined; + } + ) + | BufferEncoding + | null; + /** + * When `file` is a filename, asynchronously writes data to the file, replacing the + * file if it already exists. `data` can be a string or a buffer. + * + * When `file` is a file descriptor, the behavior is similar to calling `fs.write()` directly (which is recommended). See the notes below on using + * a file descriptor. + * + * The `encoding` option is ignored if `data` is a buffer. + * + * The `mode` option only affects the newly created file. See {@link open} for more details. + * + * ```js + * import { writeFile } from 'node:fs'; + * import { Buffer } from 'node:buffer'; + * + * const data = new Uint8Array(Buffer.from('Hello Node.js')); + * writeFile('message.txt', data, (err) => { + * if (err) throw err; + * console.log('The file has been saved!'); + * }); + * ``` + * + * If `options` is a string, then it specifies the encoding: + * + * ```js + * import { writeFile } from 'node:fs'; + * + * writeFile('message.txt', 'Hello Node.js', 'utf8', callback); + * ``` + * + * It is unsafe to use `fs.writeFile()` multiple times on the same file without + * waiting for the callback. For this scenario, {@link createWriteStream} is + * recommended. + * + * Similarly to `fs.readFile` \- `fs.writeFile` is a convenience method that + * performs multiple `write` calls internally to write the buffer passed to it. + * For performance sensitive code consider using {@link createWriteStream}. + * + * It is possible to use an `AbortSignal` to cancel an `fs.writeFile()`. + * Cancelation is "best effort", and some amount of data is likely still + * to be written. + * + * ```js + * import { writeFile } from 'node:fs'; + * import { Buffer } from 'node:buffer'; + * + * const controller = new AbortController(); + * const { signal } = controller; + * const data = new Uint8Array(Buffer.from('Hello Node.js')); + * writeFile('message.txt', data, { signal }, (err) => { + * // When a request is aborted - the callback is called with an AbortError + * }); + * // When the request should be aborted + * controller.abort(); + * ``` + * + * Aborting an ongoing request does not abort individual operating + * system requests but rather the internal buffering `fs.writeFile` performs. + * @since v0.1.29 + * @param file filename or file descriptor + */ + export function writeFile( + file: PathOrFileDescriptor, + data: string | NodeJS.ArrayBufferView, + options: WriteFileOptions, + callback: NoParamCallback, + ): void; + /** + * Asynchronously writes data to a file, replacing the file if it already exists. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. + */ + export function writeFile( + path: PathOrFileDescriptor, + data: string | NodeJS.ArrayBufferView, + callback: NoParamCallback, + ): void; + export namespace writeFile { + /** + * Asynchronously writes data to a file, replacing the file if it already exists. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. + * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag. + * If `encoding` is not supplied, the default of `'utf8'` is used. + * If `mode` is not supplied, the default of `0o666` is used. + * If `mode` is a string, it is parsed as an octal integer. + * If `flag` is not supplied, the default of `'w'` is used. + */ + function __promisify__( + path: PathOrFileDescriptor, + data: string | NodeJS.ArrayBufferView, + options?: WriteFileOptions, + ): Promise; + } + /** + * Returns `undefined`. + * + * The `mode` option only affects the newly created file. See {@link open} for more details. + * + * For detailed information, see the documentation of the asynchronous version of + * this API: {@link writeFile}. + * @since v0.1.29 + * @param file filename or file descriptor + */ + export function writeFileSync( + file: PathOrFileDescriptor, + data: string | NodeJS.ArrayBufferView, + options?: WriteFileOptions, + ): void; + /** + * Asynchronously append data to a file, creating the file if it does not yet + * exist. `data` can be a string or a `Buffer`. + * + * The `mode` option only affects the newly created file. See {@link open} for more details. + * + * ```js + * import { appendFile } from 'node:fs'; + * + * appendFile('message.txt', 'data to append', (err) => { + * if (err) throw err; + * console.log('The "data to append" was appended to file!'); + * }); + * ``` + * + * If `options` is a string, then it specifies the encoding: + * + * ```js + * import { appendFile } from 'node:fs'; + * + * appendFile('message.txt', 'data to append', 'utf8', callback); + * ``` + * + * The `path` may be specified as a numeric file descriptor that has been opened + * for appending (using `fs.open()` or `fs.openSync()`). The file descriptor will + * not be closed automatically. + * + * ```js + * import { open, close, appendFile } from 'node:fs'; + * + * function closeFd(fd) { + * close(fd, (err) => { + * if (err) throw err; + * }); + * } + * + * open('message.txt', 'a', (err, fd) => { + * if (err) throw err; + * + * try { + * appendFile(fd, 'data to append', 'utf8', (err) => { + * closeFd(fd); + * if (err) throw err; + * }); + * } catch (err) { + * closeFd(fd); + * throw err; + * } + * }); + * ``` + * @since v0.6.7 + * @param path filename or file descriptor + */ + export function appendFile( + path: PathOrFileDescriptor, + data: string | Uint8Array, + options: WriteFileOptions, + callback: NoParamCallback, + ): void; + /** + * Asynchronously append data to a file, creating the file if it does not exist. + * @param file A path to a file. If a URL is provided, it must use the `file:` protocol. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. + */ + export function appendFile(file: PathOrFileDescriptor, data: string | Uint8Array, callback: NoParamCallback): void; + export namespace appendFile { + /** + * Asynchronously append data to a file, creating the file if it does not exist. + * @param file A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. + * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag. + * If `encoding` is not supplied, the default of `'utf8'` is used. + * If `mode` is not supplied, the default of `0o666` is used. + * If `mode` is a string, it is parsed as an octal integer. + * If `flag` is not supplied, the default of `'a'` is used. + */ + function __promisify__( + file: PathOrFileDescriptor, + data: string | Uint8Array, + options?: WriteFileOptions, + ): Promise; + } + /** + * Synchronously append data to a file, creating the file if it does not yet + * exist. `data` can be a string or a `Buffer`. + * + * The `mode` option only affects the newly created file. See {@link open} for more details. + * + * ```js + * import { appendFileSync } from 'node:fs'; + * + * try { + * appendFileSync('message.txt', 'data to append'); + * console.log('The "data to append" was appended to file!'); + * } catch (err) { + * // Handle the error + * } + * ``` + * + * If `options` is a string, then it specifies the encoding: + * + * ```js + * import { appendFileSync } from 'node:fs'; + * + * appendFileSync('message.txt', 'data to append', 'utf8'); + * ``` + * + * The `path` may be specified as a numeric file descriptor that has been opened + * for appending (using `fs.open()` or `fs.openSync()`). The file descriptor will + * not be closed automatically. + * + * ```js + * import { openSync, closeSync, appendFileSync } from 'node:fs'; + * + * let fd; + * + * try { + * fd = openSync('message.txt', 'a'); + * appendFileSync(fd, 'data to append', 'utf8'); + * } catch (err) { + * // Handle the error + * } finally { + * if (fd !== undefined) + * closeSync(fd); + * } + * ``` + * @since v0.6.7 + * @param path filename or file descriptor + */ + export function appendFileSync( + path: PathOrFileDescriptor, + data: string | Uint8Array, + options?: WriteFileOptions, + ): void; + /** + * Watch for changes on `filename`. The callback `listener` will be called each + * time the file is accessed. + * + * The `options` argument may be omitted. If provided, it should be an object. The `options` object may contain a boolean named `persistent` that indicates + * whether the process should continue to run as long as files are being watched. + * The `options` object may specify an `interval` property indicating how often the + * target should be polled in milliseconds. + * + * The `listener` gets two arguments the current stat object and the previous + * stat object: + * + * ```js + * import { watchFile } from 'fs'; + * + * watchFile('message.text', (curr, prev) => { + * console.log(`the current mtime is: ${curr.mtime}`); + * console.log(`the previous mtime was: ${prev.mtime}`); + * }); + * ``` + * + * These stat objects are instances of `fs.Stat`. If the `bigint` option is `true`, + * the numeric values in these objects are specified as `BigInt`s. + * + * To be notified when the file was modified, not just accessed, it is necessary + * to compare `curr.mtimeMs` and `prev.mtimeMs`. + * + * When an `fs.watchFile` operation results in an `ENOENT` error, it + * will invoke the listener once, with all the fields zeroed (or, for dates, the + * Unix Epoch). If the file is created later on, the listener will be called + * again, with the latest stat objects. This is a change in functionality since + * v0.10. + * + * Using {@link watch} is more efficient than `fs.watchFile` and `fs.unwatchFile`. `fs.watch` should be used instead of `fs.watchFile` and `fs.unwatchFile` when possible. + * + * When a file being watched by `fs.watchFile()` disappears and reappears, + * then the contents of `previous` in the second callback event (the file's + * reappearance) will be the same as the contents of `previous` in the first + * callback event (its disappearance). + * + * This happens when: + * + * * the file is deleted, followed by a restore + * * the file is renamed and then renamed a second time back to its original name + * @since v0.1.31 + */ + export interface WatchFileOptions { + bigint?: boolean | undefined; + persistent?: boolean | undefined; + interval?: number | undefined; + } + /** + * Watch for changes on `filename`. The callback `listener` will be called each + * time the file is accessed. + * + * The `options` argument may be omitted. If provided, it should be an object. The `options` object may contain a boolean named `persistent` that indicates + * whether the process should continue to run as long as files are being watched. + * The `options` object may specify an `interval` property indicating how often the + * target should be polled in milliseconds. + * + * The `listener` gets two arguments the current stat object and the previous + * stat object: + * + * ```js + * import { watchFile } from 'node:fs'; + * + * watchFile('message.text', (curr, prev) => { + * console.log(`the current mtime is: ${curr.mtime}`); + * console.log(`the previous mtime was: ${prev.mtime}`); + * }); + * ``` + * + * These stat objects are instances of `fs.Stat`. If the `bigint` option is `true`, + * the numeric values in these objects are specified as `BigInt`s. + * + * To be notified when the file was modified, not just accessed, it is necessary + * to compare `curr.mtimeMs` and `prev.mtimeMs`. + * + * When an `fs.watchFile` operation results in an `ENOENT` error, it + * will invoke the listener once, with all the fields zeroed (or, for dates, the + * Unix Epoch). If the file is created later on, the listener will be called + * again, with the latest stat objects. This is a change in functionality since + * v0.10. + * + * Using {@link watch} is more efficient than `fs.watchFile` and `fs.unwatchFile`. `fs.watch` should be used instead of `fs.watchFile` and `fs.unwatchFile` when possible. + * + * When a file being watched by `fs.watchFile()` disappears and reappears, + * then the contents of `previous` in the second callback event (the file's + * reappearance) will be the same as the contents of `previous` in the first + * callback event (its disappearance). + * + * This happens when: + * + * * the file is deleted, followed by a restore + * * the file is renamed and then renamed a second time back to its original name + * @since v0.1.31 + */ + export function watchFile( + filename: PathLike, + options: + | (WatchFileOptions & { + bigint?: false | undefined; + }) + | undefined, + listener: StatsListener, + ): StatWatcher; + export function watchFile( + filename: PathLike, + options: + | (WatchFileOptions & { + bigint: true; + }) + | undefined, + listener: BigIntStatsListener, + ): StatWatcher; + /** + * Watch for changes on `filename`. The callback `listener` will be called each time the file is accessed. + * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. + */ + export function watchFile(filename: PathLike, listener: StatsListener): StatWatcher; + /** + * Stop watching for changes on `filename`. If `listener` is specified, only that + * particular listener is removed. Otherwise, _all_ listeners are removed, + * effectively stopping watching of `filename`. + * + * Calling `fs.unwatchFile()` with a filename that is not being watched is a + * no-op, not an error. + * + * Using {@link watch} is more efficient than `fs.watchFile()` and `fs.unwatchFile()`. `fs.watch()` should be used instead of `fs.watchFile()` and `fs.unwatchFile()` when possible. + * @since v0.1.31 + * @param listener Optional, a listener previously attached using `fs.watchFile()` + */ + export function unwatchFile(filename: PathLike, listener?: StatsListener): void; + export function unwatchFile(filename: PathLike, listener?: BigIntStatsListener): void; + export interface WatchOptions extends Abortable { + encoding?: BufferEncoding | "buffer" | undefined; + persistent?: boolean | undefined; + recursive?: boolean | undefined; + } + export type WatchEventType = "rename" | "change"; + export type WatchListener = (event: WatchEventType, filename: T | null) => void; + export type StatsListener = (curr: Stats, prev: Stats) => void; + export type BigIntStatsListener = (curr: BigIntStats, prev: BigIntStats) => void; + /** + * Watch for changes on `filename`, where `filename` is either a file or a + * directory. + * + * The second argument is optional. If `options` is provided as a string, it + * specifies the `encoding`. Otherwise `options` should be passed as an object. + * + * The listener callback gets two arguments `(eventType, filename)`. `eventType`is either `'rename'` or `'change'`, and `filename` is the name of the file + * which triggered the event. + * + * On most platforms, `'rename'` is emitted whenever a filename appears or + * disappears in the directory. + * + * The listener callback is attached to the `'change'` event fired by `fs.FSWatcher`, but it is not the same thing as the `'change'` value of `eventType`. + * + * If a `signal` is passed, aborting the corresponding AbortController will close + * the returned `fs.FSWatcher`. + * @since v0.5.10 + * @param listener + */ + export function watch( + filename: PathLike, + options: + | (WatchOptions & { + encoding: "buffer"; + }) + | "buffer", + listener?: WatchListener, + ): FSWatcher; + /** + * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. + * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. + * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options. + * If `encoding` is not supplied, the default of `'utf8'` is used. + * If `persistent` is not supplied, the default of `true` is used. + * If `recursive` is not supplied, the default of `false` is used. + */ + export function watch( + filename: PathLike, + options?: WatchOptions | BufferEncoding | null, + listener?: WatchListener, + ): FSWatcher; + /** + * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. + * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. + * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options. + * If `encoding` is not supplied, the default of `'utf8'` is used. + * If `persistent` is not supplied, the default of `true` is used. + * If `recursive` is not supplied, the default of `false` is used. + */ + export function watch( + filename: PathLike, + options: WatchOptions | string, + listener?: WatchListener, + ): FSWatcher; + /** + * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. + * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. + */ + export function watch(filename: PathLike, listener?: WatchListener): FSWatcher; + /** + * Test whether or not the given path exists by checking with the file system. + * Then call the `callback` argument with either true or false: + * + * ```js + * import { exists } from 'node:fs'; + * + * exists('/etc/passwd', (e) => { + * console.log(e ? 'it exists' : 'no passwd!'); + * }); + * ``` + * + * **The parameters for this callback are not consistent with other Node.js** + * **callbacks.** Normally, the first parameter to a Node.js callback is an `err` parameter, optionally followed by other parameters. The `fs.exists()` callback + * has only one boolean parameter. This is one reason `fs.access()` is recommended + * instead of `fs.exists()`. + * + * Using `fs.exists()` to check for the existence of a file before calling `fs.open()`, `fs.readFile()`, or `fs.writeFile()` is not recommended. Doing + * so introduces a race condition, since other processes may change the file's + * state between the two calls. Instead, user code should open/read/write the + * file directly and handle the error raised if the file does not exist. + * + * **write (NOT RECOMMENDED)** + * + * ```js + * import { exists, open, close } from 'node:fs'; + * + * exists('myfile', (e) => { + * if (e) { + * console.error('myfile already exists'); + * } else { + * open('myfile', 'wx', (err, fd) => { + * if (err) throw err; + * + * try { + * writeMyData(fd); + * } finally { + * close(fd, (err) => { + * if (err) throw err; + * }); + * } + * }); + * } + * }); + * ``` + * + * **write (RECOMMENDED)** + * + * ```js + * import { open, close } from 'node:fs'; + * open('myfile', 'wx', (err, fd) => { + * if (err) { + * if (err.code === 'EEXIST') { + * console.error('myfile already exists'); + * return; + * } + * + * throw err; + * } + * + * try { + * writeMyData(fd); + * } finally { + * close(fd, (err) => { + * if (err) throw err; + * }); + * } + * }); + * ``` + * + * **read (NOT RECOMMENDED)** + * + * ```js + * import { open, close, exists } from 'node:fs'; + * + * exists('myfile', (e) => { + * if (e) { + * open('myfile', 'r', (err, fd) => { + * if (err) throw err; + * + * try { + * readMyData(fd); + * } finally { + * close(fd, (err) => { + * if (err) throw err; + * }); + * } + * }); + * } else { + * console.error('myfile does not exist'); + * } + * }); + * ``` + * + * **read (RECOMMENDED)** + * + * ```js + * import { open, close } from 'node:fs'; + * + * open('myfile', 'r', (err, fd) => { + * if (err) { + * if (err.code === 'ENOENT') { + * console.error('myfile does not exist'); + * return; + * } + * + * throw err; + * } + * + * try { + * readMyData(fd); + * } finally { + * close(fd, (err) => { + * if (err) throw err; + * }); + * } + * }); + * ``` + * + * The "not recommended" examples above check for existence and then use the + * file; the "recommended" examples are better because they use the file directly + * and handle the error, if any. + * + * In general, check for the existence of a file only if the file won't be + * used directly, for example when its existence is a signal from another + * process. + * @since v0.0.2 + * @deprecated Since v1.0.0 - Use {@link stat} or {@link access} instead. + */ + export function exists(path: PathLike, callback: (exists: boolean) => void): void; + /** @deprecated */ + export namespace exists { + /** + * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + */ + function __promisify__(path: PathLike): Promise; + } + /** + * Returns `true` if the path exists, `false` otherwise. + * + * For detailed information, see the documentation of the asynchronous version of + * this API: {@link exists}. + * + * `fs.exists()` is deprecated, but `fs.existsSync()` is not. The `callback` parameter to `fs.exists()` accepts parameters that are inconsistent with other + * Node.js callbacks. `fs.existsSync()` does not use a callback. + * + * ```js + * import { existsSync } from 'node:fs'; + * + * if (existsSync('/etc/passwd')) + * console.log('The path exists.'); + * ``` + * @since v0.1.21 + */ + export function existsSync(path: PathLike): boolean; + export namespace constants { + // File Access Constants + /** Constant for fs.access(). File is visible to the calling process. */ + const F_OK: number; + /** Constant for fs.access(). File can be read by the calling process. */ + const R_OK: number; + /** Constant for fs.access(). File can be written by the calling process. */ + const W_OK: number; + /** Constant for fs.access(). File can be executed by the calling process. */ + const X_OK: number; + // File Copy Constants + /** Constant for fs.copyFile. Flag indicating the destination file should not be overwritten if it already exists. */ + const COPYFILE_EXCL: number; + /** + * Constant for fs.copyFile. copy operation will attempt to create a copy-on-write reflink. + * If the underlying platform does not support copy-on-write, then a fallback copy mechanism is used. + */ + const COPYFILE_FICLONE: number; + /** + * Constant for fs.copyFile. Copy operation will attempt to create a copy-on-write reflink. + * If the underlying platform does not support copy-on-write, then the operation will fail with an error. + */ + const COPYFILE_FICLONE_FORCE: number; + // File Open Constants + /** Constant for fs.open(). Flag indicating to open a file for read-only access. */ + const O_RDONLY: number; + /** Constant for fs.open(). Flag indicating to open a file for write-only access. */ + const O_WRONLY: number; + /** Constant for fs.open(). Flag indicating to open a file for read-write access. */ + const O_RDWR: number; + /** Constant for fs.open(). Flag indicating to create the file if it does not already exist. */ + const O_CREAT: number; + /** Constant for fs.open(). Flag indicating that opening a file should fail if the O_CREAT flag is set and the file already exists. */ + const O_EXCL: number; + /** + * Constant for fs.open(). Flag indicating that if path identifies a terminal device, + * opening the path shall not cause that terminal to become the controlling terminal for the process + * (if the process does not already have one). + */ + const O_NOCTTY: number; + /** Constant for fs.open(). Flag indicating that if the file exists and is a regular file, and the file is opened successfully for write access, its length shall be truncated to zero. */ + const O_TRUNC: number; + /** Constant for fs.open(). Flag indicating that data will be appended to the end of the file. */ + const O_APPEND: number; + /** Constant for fs.open(). Flag indicating that the open should fail if the path is not a directory. */ + const O_DIRECTORY: number; + /** + * constant for fs.open(). + * Flag indicating reading accesses to the file system will no longer result in + * an update to the atime information associated with the file. + * This flag is available on Linux operating systems only. + */ + const O_NOATIME: number; + /** Constant for fs.open(). Flag indicating that the open should fail if the path is a symbolic link. */ + const O_NOFOLLOW: number; + /** Constant for fs.open(). Flag indicating that the file is opened for synchronous I/O. */ + const O_SYNC: number; + /** Constant for fs.open(). Flag indicating that the file is opened for synchronous I/O with write operations waiting for data integrity. */ + const O_DSYNC: number; + /** Constant for fs.open(). Flag indicating to open the symbolic link itself rather than the resource it is pointing to. */ + const O_SYMLINK: number; + /** Constant for fs.open(). When set, an attempt will be made to minimize caching effects of file I/O. */ + const O_DIRECT: number; + /** Constant for fs.open(). Flag indicating to open the file in nonblocking mode when possible. */ + const O_NONBLOCK: number; + // File Type Constants + /** Constant for fs.Stats mode property for determining a file's type. Bit mask used to extract the file type code. */ + const S_IFMT: number; + /** Constant for fs.Stats mode property for determining a file's type. File type constant for a regular file. */ + const S_IFREG: number; + /** Constant for fs.Stats mode property for determining a file's type. File type constant for a directory. */ + const S_IFDIR: number; + /** Constant for fs.Stats mode property for determining a file's type. File type constant for a character-oriented device file. */ + const S_IFCHR: number; + /** Constant for fs.Stats mode property for determining a file's type. File type constant for a block-oriented device file. */ + const S_IFBLK: number; + /** Constant for fs.Stats mode property for determining a file's type. File type constant for a FIFO/pipe. */ + const S_IFIFO: number; + /** Constant for fs.Stats mode property for determining a file's type. File type constant for a symbolic link. */ + const S_IFLNK: number; + /** Constant for fs.Stats mode property for determining a file's type. File type constant for a socket. */ + const S_IFSOCK: number; + // File Mode Constants + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by owner. */ + const S_IRWXU: number; + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by owner. */ + const S_IRUSR: number; + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by owner. */ + const S_IWUSR: number; + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by owner. */ + const S_IXUSR: number; + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by group. */ + const S_IRWXG: number; + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by group. */ + const S_IRGRP: number; + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by group. */ + const S_IWGRP: number; + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by group. */ + const S_IXGRP: number; + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by others. */ + const S_IRWXO: number; + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by others. */ + const S_IROTH: number; + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by others. */ + const S_IWOTH: number; + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by others. */ + const S_IXOTH: number; + /** + * When set, a memory file mapping is used to access the file. This flag + * is available on Windows operating systems only. On other operating systems, + * this flag is ignored. + */ + const UV_FS_O_FILEMAP: number; + } + /** + * Tests a user's permissions for the file or directory specified by `path`. + * The `mode` argument is an optional integer that specifies the accessibility + * checks to be performed. `mode` should be either the value `fs.constants.F_OK` or a mask consisting of the bitwise OR of any of `fs.constants.R_OK`, `fs.constants.W_OK`, and `fs.constants.X_OK` + * (e.g.`fs.constants.W_OK | fs.constants.R_OK`). Check `File access constants` for + * possible values of `mode`. + * + * The final argument, `callback`, is a callback function that is invoked with + * a possible error argument. If any of the accessibility checks fail, the error + * argument will be an `Error` object. The following examples check if `package.json` exists, and if it is readable or writable. + * + * ```js + * import { access, constants } from 'node:fs'; + * + * const file = 'package.json'; + * + * // Check if the file exists in the current directory. + * access(file, constants.F_OK, (err) => { + * console.log(`${file} ${err ? 'does not exist' : 'exists'}`); + * }); + * + * // Check if the file is readable. + * access(file, constants.R_OK, (err) => { + * console.log(`${file} ${err ? 'is not readable' : 'is readable'}`); + * }); + * + * // Check if the file is writable. + * access(file, constants.W_OK, (err) => { + * console.log(`${file} ${err ? 'is not writable' : 'is writable'}`); + * }); + * + * // Check if the file is readable and writable. + * access(file, constants.R_OK | constants.W_OK, (err) => { + * console.log(`${file} ${err ? 'is not' : 'is'} readable and writable`); + * }); + * ``` + * + * Do not use `fs.access()` to check for the accessibility of a file before calling `fs.open()`, `fs.readFile()`, or `fs.writeFile()`. Doing + * so introduces a race condition, since other processes may change the file's + * state between the two calls. Instead, user code should open/read/write the + * file directly and handle the error raised if the file is not accessible. + * + * **write (NOT RECOMMENDED)** + * + * ```js + * import { access, open, close } from 'node:fs'; + * + * access('myfile', (err) => { + * if (!err) { + * console.error('myfile already exists'); + * return; + * } + * + * open('myfile', 'wx', (err, fd) => { + * if (err) throw err; + * + * try { + * writeMyData(fd); + * } finally { + * close(fd, (err) => { + * if (err) throw err; + * }); + * } + * }); + * }); + * ``` + * + * **write (RECOMMENDED)** + * + * ```js + * import { open, close } from 'node:fs'; + * + * open('myfile', 'wx', (err, fd) => { + * if (err) { + * if (err.code === 'EEXIST') { + * console.error('myfile already exists'); + * return; + * } + * + * throw err; + * } + * + * try { + * writeMyData(fd); + * } finally { + * close(fd, (err) => { + * if (err) throw err; + * }); + * } + * }); + * ``` + * + * **read (NOT RECOMMENDED)** + * + * ```js + * import { access, open, close } from 'node:fs'; + * access('myfile', (err) => { + * if (err) { + * if (err.code === 'ENOENT') { + * console.error('myfile does not exist'); + * return; + * } + * + * throw err; + * } + * + * open('myfile', 'r', (err, fd) => { + * if (err) throw err; + * + * try { + * readMyData(fd); + * } finally { + * close(fd, (err) => { + * if (err) throw err; + * }); + * } + * }); + * }); + * ``` + * + * **read (RECOMMENDED)** + * + * ```js + * import { open, close } from 'node:fs'; + * + * open('myfile', 'r', (err, fd) => { + * if (err) { + * if (err.code === 'ENOENT') { + * console.error('myfile does not exist'); + * return; + * } + * + * throw err; + * } + * + * try { + * readMyData(fd); + * } finally { + * close(fd, (err) => { + * if (err) throw err; + * }); + * } + * }); + * ``` + * + * The "not recommended" examples above check for accessibility and then use the + * file; the "recommended" examples are better because they use the file directly + * and handle the error, if any. + * + * In general, check for the accessibility of a file only if the file will not be + * used directly, for example when its accessibility is a signal from another + * process. + * + * On Windows, access-control policies (ACLs) on a directory may limit access to + * a file or directory. The `fs.access()` function, however, does not check the + * ACL and therefore may report that a path is accessible even if the ACL restricts + * the user from reading or writing to it. + * @since v0.11.15 + * @param [mode=fs.constants.F_OK] + */ + export function access(path: PathLike, mode: number | undefined, callback: NoParamCallback): void; + /** + * Asynchronously tests a user's permissions for the file specified by path. + * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. + */ + export function access(path: PathLike, callback: NoParamCallback): void; + export namespace access { + /** + * Asynchronously tests a user's permissions for the file specified by path. + * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + */ + function __promisify__(path: PathLike, mode?: number): Promise; + } + /** + * Synchronously tests a user's permissions for the file or directory specified + * by `path`. The `mode` argument is an optional integer that specifies the + * accessibility checks to be performed. `mode` should be either the value `fs.constants.F_OK` or a mask consisting of the bitwise OR of any of `fs.constants.R_OK`, `fs.constants.W_OK`, and + * `fs.constants.X_OK` (e.g.`fs.constants.W_OK | fs.constants.R_OK`). Check `File access constants` for + * possible values of `mode`. + * + * If any of the accessibility checks fail, an `Error` will be thrown. Otherwise, + * the method will return `undefined`. + * + * ```js + * import { accessSync, constants } from 'node:fs'; + * + * try { + * accessSync('etc/passwd', constants.R_OK | constants.W_OK); + * console.log('can read/write'); + * } catch (err) { + * console.error('no access!'); + * } + * ``` + * @since v0.11.15 + * @param [mode=fs.constants.F_OK] + */ + export function accessSync(path: PathLike, mode?: number): void; + interface StreamOptions { + flags?: string | undefined; + encoding?: BufferEncoding | undefined; + fd?: number | promises.FileHandle | undefined; + mode?: number | undefined; + autoClose?: boolean | undefined; + emitClose?: boolean | undefined; + start?: number | undefined; + signal?: AbortSignal | null | undefined; + highWaterMark?: number | undefined; + } + interface FSImplementation { + open?: (...args: any[]) => any; + close?: (...args: any[]) => any; + } + interface CreateReadStreamFSImplementation extends FSImplementation { + read: (...args: any[]) => any; + } + interface CreateWriteStreamFSImplementation extends FSImplementation { + write: (...args: any[]) => any; + writev?: (...args: any[]) => any; + } + interface ReadStreamOptions extends StreamOptions { + fs?: CreateReadStreamFSImplementation | null | undefined; + end?: number | undefined; + } + interface WriteStreamOptions extends StreamOptions { + fs?: CreateWriteStreamFSImplementation | null | undefined; + flush?: boolean | undefined; + } + /** + * Unlike the 16 KiB default `highWaterMark` for a `stream.Readable`, the stream + * returned by this method has a default `highWaterMark` of 64 KiB. + * + * `options` can include `start` and `end` values to read a range of bytes from + * the file instead of the entire file. Both `start` and `end` are inclusive and + * start counting at 0, allowed values are in the + * \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. If `fd` is specified and `start` is + * omitted or `undefined`, `fs.createReadStream()` reads sequentially from the + * current file position. The `encoding` can be any one of those accepted by `Buffer`. + * + * If `fd` is specified, `ReadStream` will ignore the `path` argument and will use + * the specified file descriptor. This means that no `'open'` event will be + * emitted. `fd` should be blocking; non-blocking `fd`s should be passed to `net.Socket`. + * + * If `fd` points to a character device that only supports blocking reads + * (such as keyboard or sound card), read operations do not finish until data is + * available. This can prevent the process from exiting and the stream from + * closing naturally. + * + * By default, the stream will emit a `'close'` event after it has been + * destroyed. Set the `emitClose` option to `false` to change this behavior. + * + * By providing the `fs` option, it is possible to override the corresponding `fs` implementations for `open`, `read`, and `close`. When providing the `fs` option, + * an override for `read` is required. If no `fd` is provided, an override for `open` is also required. If `autoClose` is `true`, an override for `close` is + * also required. + * + * ```js + * import { createReadStream } from 'node:fs'; + * + * // Create a stream from some character device. + * const stream = createReadStream('/dev/input/event0'); + * setTimeout(() => { + * stream.close(); // This may not close the stream. + * // Artificially marking end-of-stream, as if the underlying resource had + * // indicated end-of-file by itself, allows the stream to close. + * // This does not cancel pending read operations, and if there is such an + * // operation, the process may still not be able to exit successfully + * // until it finishes. + * stream.push(null); + * stream.read(0); + * }, 100); + * ``` + * + * If `autoClose` is false, then the file descriptor won't be closed, even if + * there's an error. It is the application's responsibility to close it and make + * sure there's no file descriptor leak. If `autoClose` is set to true (default + * behavior), on `'error'` or `'end'` the file descriptor will be closed + * automatically. + * + * `mode` sets the file mode (permission and sticky bits), but only if the + * file was created. + * + * An example to read the last 10 bytes of a file which is 100 bytes long: + * + * ```js + * import { createReadStream } from 'node:fs'; + * + * createReadStream('sample.txt', { start: 90, end: 99 }); + * ``` + * + * If `options` is a string, then it specifies the encoding. + * @since v0.1.31 + */ + export function createReadStream(path: PathLike, options?: BufferEncoding | ReadStreamOptions): ReadStream; + /** + * `options` may also include a `start` option to allow writing data at some + * position past the beginning of the file, allowed values are in the + * \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. Modifying a file rather than + * replacing it may require the `flags` option to be set to `r+` rather than the + * default `w`. The `encoding` can be any one of those accepted by `Buffer`. + * + * If `autoClose` is set to true (default behavior) on `'error'` or `'finish'` the file descriptor will be closed automatically. If `autoClose` is false, + * then the file descriptor won't be closed, even if there's an error. + * It is the application's responsibility to close it and make sure there's no + * file descriptor leak. + * + * By default, the stream will emit a `'close'` event after it has been + * destroyed. Set the `emitClose` option to `false` to change this behavior. + * + * By providing the `fs` option it is possible to override the corresponding `fs` implementations for `open`, `write`, `writev`, and `close`. Overriding `write()` without `writev()` can reduce + * performance as some optimizations (`_writev()`) + * will be disabled. When providing the `fs` option, overrides for at least one of `write` and `writev` are required. If no `fd` option is supplied, an override + * for `open` is also required. If `autoClose` is `true`, an override for `close` is also required. + * + * Like `fs.ReadStream`, if `fd` is specified, `fs.WriteStream` will ignore the `path` argument and will use the specified file descriptor. This means that no `'open'` event will be + * emitted. `fd` should be blocking; non-blocking `fd`s + * should be passed to `net.Socket`. + * + * If `options` is a string, then it specifies the encoding. + * @since v0.1.31 + */ + export function createWriteStream(path: PathLike, options?: BufferEncoding | WriteStreamOptions): WriteStream; + /** + * Forces all currently queued I/O operations associated with the file to the + * operating system's synchronized I/O completion state. Refer to the POSIX [`fdatasync(2)`](http://man7.org/linux/man-pages/man2/fdatasync.2.html) documentation for details. No arguments other + * than a possible + * exception are given to the completion callback. + * @since v0.1.96 + */ + export function fdatasync(fd: number, callback: NoParamCallback): void; + export namespace fdatasync { + /** + * Asynchronous fdatasync(2) - synchronize a file's in-core state with storage device. + * @param fd A file descriptor. + */ + function __promisify__(fd: number): Promise; + } + /** + * Forces all currently queued I/O operations associated with the file to the + * operating system's synchronized I/O completion state. Refer to the POSIX [`fdatasync(2)`](http://man7.org/linux/man-pages/man2/fdatasync.2.html) documentation for details. Returns `undefined`. + * @since v0.1.96 + */ + export function fdatasyncSync(fd: number): void; + /** + * Asynchronously copies `src` to `dest`. By default, `dest` is overwritten if it + * already exists. No arguments other than a possible exception are given to the + * callback function. Node.js makes no guarantees about the atomicity of the copy + * operation. If an error occurs after the destination file has been opened for + * writing, Node.js will attempt to remove the destination. + * + * `mode` is an optional integer that specifies the behavior + * of the copy operation. It is possible to create a mask consisting of the bitwise + * OR of two or more values (e.g.`fs.constants.COPYFILE_EXCL | fs.constants.COPYFILE_FICLONE`). + * + * * `fs.constants.COPYFILE_EXCL`: The copy operation will fail if `dest` already + * exists. + * * `fs.constants.COPYFILE_FICLONE`: The copy operation will attempt to create a + * copy-on-write reflink. If the platform does not support copy-on-write, then a + * fallback copy mechanism is used. + * * `fs.constants.COPYFILE_FICLONE_FORCE`: The copy operation will attempt to + * create a copy-on-write reflink. If the platform does not support + * copy-on-write, then the operation will fail. + * + * ```js + * import { copyFile, constants } from 'node:fs'; + * + * function callback(err) { + * if (err) throw err; + * console.log('source.txt was copied to destination.txt'); + * } + * + * // destination.txt will be created or overwritten by default. + * copyFile('source.txt', 'destination.txt', callback); + * + * // By using COPYFILE_EXCL, the operation will fail if destination.txt exists. + * copyFile('source.txt', 'destination.txt', constants.COPYFILE_EXCL, callback); + * ``` + * @since v8.5.0 + * @param src source filename to copy + * @param dest destination filename of the copy operation + * @param [mode=0] modifiers for copy operation. + */ + export function copyFile(src: PathLike, dest: PathLike, callback: NoParamCallback): void; + export function copyFile(src: PathLike, dest: PathLike, mode: number, callback: NoParamCallback): void; + export namespace copyFile { + function __promisify__(src: PathLike, dst: PathLike, mode?: number): Promise; + } + /** + * Synchronously copies `src` to `dest`. By default, `dest` is overwritten if it + * already exists. Returns `undefined`. Node.js makes no guarantees about the + * atomicity of the copy operation. If an error occurs after the destination file + * has been opened for writing, Node.js will attempt to remove the destination. + * + * `mode` is an optional integer that specifies the behavior + * of the copy operation. It is possible to create a mask consisting of the bitwise + * OR of two or more values (e.g.`fs.constants.COPYFILE_EXCL | fs.constants.COPYFILE_FICLONE`). + * + * * `fs.constants.COPYFILE_EXCL`: The copy operation will fail if `dest` already + * exists. + * * `fs.constants.COPYFILE_FICLONE`: The copy operation will attempt to create a + * copy-on-write reflink. If the platform does not support copy-on-write, then a + * fallback copy mechanism is used. + * * `fs.constants.COPYFILE_FICLONE_FORCE`: The copy operation will attempt to + * create a copy-on-write reflink. If the platform does not support + * copy-on-write, then the operation will fail. + * + * ```js + * import { copyFileSync, constants } from 'node:fs'; + * + * // destination.txt will be created or overwritten by default. + * copyFileSync('source.txt', 'destination.txt'); + * console.log('source.txt was copied to destination.txt'); + * + * // By using COPYFILE_EXCL, the operation will fail if destination.txt exists. + * copyFileSync('source.txt', 'destination.txt', constants.COPYFILE_EXCL); + * ``` + * @since v8.5.0 + * @param src source filename to copy + * @param dest destination filename of the copy operation + * @param [mode=0] modifiers for copy operation. + */ + export function copyFileSync(src: PathLike, dest: PathLike, mode?: number): void; + /** + * Write an array of `ArrayBufferView`s to the file specified by `fd` using `writev()`. + * + * `position` is the offset from the beginning of the file where this data + * should be written. If `typeof position !== 'number'`, the data will be written + * at the current position. + * + * The callback will be given three arguments: `err`, `bytesWritten`, and `buffers`. `bytesWritten` is how many bytes were written from `buffers`. + * + * If this method is `util.promisify()` ed, it returns a promise for an `Object` with `bytesWritten` and `buffers` properties. + * + * It is unsafe to use `fs.writev()` multiple times on the same file without + * waiting for the callback. For this scenario, use {@link createWriteStream}. + * + * On Linux, positional writes don't work when the file is opened in append mode. + * The kernel ignores the position argument and always appends the data to + * the end of the file. + * @since v12.9.0 + * @param [position='null'] + */ + export function writev( + fd: number, + buffers: TBuffers, + cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: TBuffers) => void, + ): void; + export function writev( + fd: number, + buffers: TBuffers, + position: number | null, + cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: TBuffers) => void, + ): void; + // Providing a default type parameter doesn't provide true BC for userland consumers, but at least suppresses TS2314 + // TODO: remove default in future major version + export interface WriteVResult { + bytesWritten: number; + buffers: T; + } + export namespace writev { + function __promisify__( + fd: number, + buffers: TBuffers, + position?: number, + ): Promise>; + } + /** + * For detailed information, see the documentation of the asynchronous version of + * this API: {@link writev}. + * @since v12.9.0 + * @param [position='null'] + * @return The number of bytes written. + */ + export function writevSync(fd: number, buffers: readonly NodeJS.ArrayBufferView[], position?: number): number; + /** + * Read from a file specified by `fd` and write to an array of `ArrayBufferView`s + * using `readv()`. + * + * `position` is the offset from the beginning of the file from where data + * should be read. If `typeof position !== 'number'`, the data will be read + * from the current position. + * + * The callback will be given three arguments: `err`, `bytesRead`, and `buffers`. `bytesRead` is how many bytes were read from the file. + * + * If this method is invoked as its `util.promisify()` ed version, it returns + * a promise for an `Object` with `bytesRead` and `buffers` properties. + * @since v13.13.0, v12.17.0 + * @param [position='null'] + */ + export function readv( + fd: number, + buffers: TBuffers, + cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: TBuffers) => void, + ): void; + export function readv( + fd: number, + buffers: TBuffers, + position: number | null, + cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: TBuffers) => void, + ): void; + // Providing a default type parameter doesn't provide true BC for userland consumers, but at least suppresses TS2314 + // TODO: remove default in future major version + export interface ReadVResult { + bytesRead: number; + buffers: T; + } + export namespace readv { + function __promisify__( + fd: number, + buffers: TBuffers, + position?: number, + ): Promise>; + } + /** + * For detailed information, see the documentation of the asynchronous version of + * this API: {@link readv}. + * @since v13.13.0, v12.17.0 + * @param [position='null'] + * @return The number of bytes read. + */ + export function readvSync(fd: number, buffers: readonly NodeJS.ArrayBufferView[], position?: number): number; + + export interface OpenAsBlobOptions { + /** + * An optional mime type for the blob. + * + * @default 'undefined' + */ + type?: string | undefined; + } + + /** + * Returns a `Blob` whose data is backed by the given file. + * + * The file must not be modified after the `Blob` is created. Any modifications + * will cause reading the `Blob` data to fail with a `DOMException` error. + * Synchronous stat operations on the file when the `Blob` is created, and before + * each read in order to detect whether the file data has been modified on disk. + * + * ```js + * import { openAsBlob } from 'node:fs'; + * + * const blob = await openAsBlob('the.file.txt'); + * const ab = await blob.arrayBuffer(); + * blob.stream(); + * ``` + * @since v19.8.0 + * @experimental + */ + export function openAsBlob(path: PathLike, options?: OpenAsBlobOptions): Promise; + + export interface OpenDirOptions { + /** + * @default 'utf8' + */ + encoding?: BufferEncoding | undefined; + /** + * Number of directory entries that are buffered + * internally when reading from the directory. Higher values lead to better + * performance but higher memory usage. + * @default 32 + */ + bufferSize?: number | undefined; + /** + * @default false + */ + recursive?: boolean | undefined; + } + /** + * Synchronously open a directory. See [`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html). + * + * Creates an `fs.Dir`, which contains all further functions for reading from + * and cleaning up the directory. + * + * The `encoding` option sets the encoding for the `path` while opening the + * directory and subsequent read operations. + * @since v12.12.0 + */ + export function opendirSync(path: PathLike, options?: OpenDirOptions): Dir; + /** + * Asynchronously open a directory. See the POSIX [`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html) documentation for + * more details. + * + * Creates an `fs.Dir`, which contains all further functions for reading from + * and cleaning up the directory. + * + * The `encoding` option sets the encoding for the `path` while opening the + * directory and subsequent read operations. + * @since v12.12.0 + */ + export function opendir(path: PathLike, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void; + export function opendir( + path: PathLike, + options: OpenDirOptions, + cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void, + ): void; + export namespace opendir { + function __promisify__(path: PathLike, options?: OpenDirOptions): Promise; + } + export interface BigIntStats extends StatsBase { + atimeNs: bigint; + mtimeNs: bigint; + ctimeNs: bigint; + birthtimeNs: bigint; + } + export interface BigIntOptions { + bigint: true; + } + export interface StatOptions { + bigint?: boolean | undefined; + } + export interface StatSyncOptions extends StatOptions { + throwIfNoEntry?: boolean | undefined; + } + interface CopyOptionsBase { + /** + * Dereference symlinks + * @default false + */ + dereference?: boolean | undefined; + /** + * When `force` is `false`, and the destination + * exists, throw an error. + * @default false + */ + errorOnExist?: boolean | undefined; + /** + * Overwrite existing file or directory. _The copy + * operation will ignore errors if you set this to false and the destination + * exists. Use the `errorOnExist` option to change this behavior. + * @default true + */ + force?: boolean | undefined; + /** + * Modifiers for copy operation. See `mode` flag of {@link copyFileSync()} + */ + mode?: number | undefined; + /** + * When `true` timestamps from `src` will + * be preserved. + * @default false + */ + preserveTimestamps?: boolean | undefined; + /** + * Copy directories recursively. + * @default false + */ + recursive?: boolean | undefined; + /** + * When true, path resolution for symlinks will be skipped + * @default false + */ + verbatimSymlinks?: boolean | undefined; + } + export interface CopyOptions extends CopyOptionsBase { + /** + * Function to filter copied files/directories. Return + * `true` to copy the item, `false` to ignore it. + */ + filter?: ((source: string, destination: string) => boolean | Promise) | undefined; + } + export interface CopySyncOptions extends CopyOptionsBase { + /** + * Function to filter copied files/directories. Return + * `true` to copy the item, `false` to ignore it. + */ + filter?: ((source: string, destination: string) => boolean) | undefined; + } + /** + * Asynchronously copies the entire directory structure from `src` to `dest`, + * including subdirectories and files. + * + * When copying a directory to another directory, globs are not supported and + * behavior is similar to `cp dir1/ dir2/`. + * @since v16.7.0 + * @experimental + * @param src source path to copy. + * @param dest destination path to copy to. + */ + export function cp( + source: string | URL, + destination: string | URL, + callback: (err: NodeJS.ErrnoException | null) => void, + ): void; + export function cp( + source: string | URL, + destination: string | URL, + opts: CopyOptions, + callback: (err: NodeJS.ErrnoException | null) => void, + ): void; + /** + * Synchronously copies the entire directory structure from `src` to `dest`, + * including subdirectories and files. + * + * When copying a directory to another directory, globs are not supported and + * behavior is similar to `cp dir1/ dir2/`. + * @since v16.7.0 + * @experimental + * @param src source path to copy. + * @param dest destination path to copy to. + */ + export function cpSync(source: string | URL, destination: string | URL, opts?: CopySyncOptions): void; +} +declare module "node:fs" { + export * from "fs"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/fs/promises.d.ts b/backend/node_modules/httpx/node_modules/@types/node/fs/promises.d.ts new file mode 100644 index 0000000..7cc4dee --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/fs/promises.d.ts @@ -0,0 +1,1270 @@ +/** + * The `fs/promises` API provides asynchronous file system methods that return + * promises. + * + * The promise APIs use the underlying Node.js threadpool to perform file + * system operations off the event loop thread. These operations are not + * synchronized or threadsafe. Care must be taken when performing multiple + * concurrent modifications on the same file or data corruption may occur. + * @since v10.0.0 + */ +declare module "fs/promises" { + import { NonSharedBuffer } from "node:buffer"; + import { Abortable } from "node:events"; + import { Stream } from "node:stream"; + import { ReadableStream } from "node:stream/web"; + import { + BigIntStats, + BigIntStatsFs, + BufferEncodingOption, + constants as fsConstants, + CopyOptions, + Dir, + Dirent, + MakeDirectoryOptions, + Mode, + ObjectEncodingOptions, + OpenDirOptions, + OpenMode, + PathLike, + ReadOptions, + ReadOptionsWithBuffer, + ReadStream, + ReadVResult, + RmDirOptions, + RmOptions, + StatFsOptions, + StatOptions, + Stats, + StatsFs, + TimeLike, + WatchEventType, + WatchOptions, + WriteStream, + WriteVResult, + } from "node:fs"; + import { Interface as ReadlineInterface } from "node:readline"; + interface FileChangeInfo { + eventType: WatchEventType; + filename: T | null; + } + interface FlagAndOpenMode { + mode?: Mode | undefined; + flag?: OpenMode | undefined; + } + interface FileReadResult { + bytesRead: number; + buffer: T; + } + /** @deprecated This interface will be removed in a future version. Use `import { ReadOptionsWithBuffer } from "node:fs"` instead. */ + interface FileReadOptions { + /** + * @default `Buffer.alloc(0xffff)` + */ + buffer?: T; + /** + * @default 0 + */ + offset?: number | null; + /** + * @default `buffer.byteLength` + */ + length?: number | null; + position?: number | null; + } + interface CreateReadStreamOptions extends Abortable { + encoding?: BufferEncoding | null | undefined; + autoClose?: boolean | undefined; + emitClose?: boolean | undefined; + start?: number | undefined; + end?: number | undefined; + highWaterMark?: number | undefined; + } + interface CreateWriteStreamOptions { + encoding?: BufferEncoding | null | undefined; + autoClose?: boolean | undefined; + emitClose?: boolean | undefined; + start?: number | undefined; + highWaterMark?: number | undefined; + flush?: boolean | undefined; + } + interface ReadableWebStreamOptions { + /** + * Whether to open a normal or a `'bytes'` stream. + * @since v20.0.0 + */ + type?: "bytes" | undefined; + } + // TODO: Add `EventEmitter` close + interface FileHandle { + /** + * The numeric file descriptor managed by the {FileHandle} object. + * @since v10.0.0 + */ + readonly fd: number; + /** + * Alias of `filehandle.writeFile()`. + * + * When operating on file handles, the mode cannot be changed from what it was set + * to with `fsPromises.open()`. Therefore, this is equivalent to `filehandle.writeFile()`. + * @since v10.0.0 + * @return Fulfills with `undefined` upon success. + */ + appendFile( + data: string | Uint8Array, + options?: + | (ObjectEncodingOptions & Abortable) + | BufferEncoding + | null, + ): Promise; + /** + * Changes the ownership of the file. A wrapper for [`chown(2)`](http://man7.org/linux/man-pages/man2/chown.2.html). + * @since v10.0.0 + * @param uid The file's new owner's user id. + * @param gid The file's new group's group id. + * @return Fulfills with `undefined` upon success. + */ + chown(uid: number, gid: number): Promise; + /** + * Modifies the permissions on the file. See [`chmod(2)`](http://man7.org/linux/man-pages/man2/chmod.2.html). + * @since v10.0.0 + * @param mode the file mode bit mask. + * @return Fulfills with `undefined` upon success. + */ + chmod(mode: Mode): Promise; + /** + * Unlike the 16 KiB default `highWaterMark` for a `stream.Readable`, the stream + * returned by this method has a default `highWaterMark` of 64 KiB. + * + * `options` can include `start` and `end` values to read a range of bytes from + * the file instead of the entire file. Both `start` and `end` are inclusive and + * start counting at 0, allowed values are in the + * \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. If `start` is + * omitted or `undefined`, `filehandle.createReadStream()` reads sequentially from + * the current file position. The `encoding` can be any one of those accepted by `Buffer`. + * + * If the `FileHandle` points to a character device that only supports blocking + * reads (such as keyboard or sound card), read operations do not finish until data + * is available. This can prevent the process from exiting and the stream from + * closing naturally. + * + * By default, the stream will emit a `'close'` event after it has been + * destroyed. Set the `emitClose` option to `false` to change this behavior. + * + * ```js + * import { open } from 'node:fs/promises'; + * + * const fd = await open('/dev/input/event0'); + * // Create a stream from some character device. + * const stream = fd.createReadStream(); + * setTimeout(() => { + * stream.close(); // This may not close the stream. + * // Artificially marking end-of-stream, as if the underlying resource had + * // indicated end-of-file by itself, allows the stream to close. + * // This does not cancel pending read operations, and if there is such an + * // operation, the process may still not be able to exit successfully + * // until it finishes. + * stream.push(null); + * stream.read(0); + * }, 100); + * ``` + * + * If `autoClose` is false, then the file descriptor won't be closed, even if + * there's an error. It is the application's responsibility to close it and make + * sure there's no file descriptor leak. If `autoClose` is set to true (default + * behavior), on `'error'` or `'end'` the file descriptor will be closed + * automatically. + * + * An example to read the last 10 bytes of a file which is 100 bytes long: + * + * ```js + * import { open } from 'node:fs/promises'; + * + * const fd = await open('sample.txt'); + * fd.createReadStream({ start: 90, end: 99 }); + * ``` + * @since v16.11.0 + */ + createReadStream(options?: CreateReadStreamOptions): ReadStream; + /** + * `options` may also include a `start` option to allow writing data at some + * position past the beginning of the file, allowed values are in the + * \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. Modifying a file rather than + * replacing it may require the `flags` `open` option to be set to `r+` rather than + * the default `r`. The `encoding` can be any one of those accepted by `Buffer`. + * + * If `autoClose` is set to true (default behavior) on `'error'` or `'finish'` the file descriptor will be closed automatically. If `autoClose` is false, + * then the file descriptor won't be closed, even if there's an error. + * It is the application's responsibility to close it and make sure there's no + * file descriptor leak. + * + * By default, the stream will emit a `'close'` event after it has been + * destroyed. Set the `emitClose` option to `false` to change this behavior. + * @since v16.11.0 + */ + createWriteStream(options?: CreateWriteStreamOptions): WriteStream; + /** + * Forces all currently queued I/O operations associated with the file to the + * operating system's synchronized I/O completion state. Refer to the POSIX [`fdatasync(2)`](http://man7.org/linux/man-pages/man2/fdatasync.2.html) documentation for details. + * + * Unlike `filehandle.sync` this method does not flush modified metadata. + * @since v10.0.0 + * @return Fulfills with `undefined` upon success. + */ + datasync(): Promise; + /** + * Request that all data for the open file descriptor is flushed to the storage + * device. The specific implementation is operating system and device specific. + * Refer to the POSIX [`fsync(2)`](http://man7.org/linux/man-pages/man2/fsync.2.html) documentation for more detail. + * @since v10.0.0 + * @return Fulfills with `undefined` upon success. + */ + sync(): Promise; + /** + * Reads data from the file and stores that in the given buffer. + * + * If the file is not modified concurrently, the end-of-file is reached when the + * number of bytes read is zero. + * @since v10.0.0 + * @param buffer A buffer that will be filled with the file data read. + * @param offset The location in the buffer at which to start filling. + * @param length The number of bytes to read. + * @param position The location where to begin reading data from the file. If `null`, data will be read from the current file position, and the position will be updated. If `position` is an + * integer, the current file position will remain unchanged. + * @return Fulfills upon success with an object with two properties: + */ + read( + buffer: T, + offset?: number | null, + length?: number | null, + position?: number | null, + ): Promise>; + read( + buffer: T, + options?: ReadOptions, + ): Promise>; + read( + options?: ReadOptionsWithBuffer, + ): Promise>; + /** + * Returns a `ReadableStream` that may be used to read the files data. + * + * An error will be thrown if this method is called more than once or is called + * after the `FileHandle` is closed or closing. + * + * ```js + * import { + * open, + * } from 'node:fs/promises'; + * + * const file = await open('./some/file/to/read'); + * + * for await (const chunk of file.readableWebStream()) + * console.log(chunk); + * + * await file.close(); + * ``` + * + * While the `ReadableStream` will read the file to completion, it will not + * close the `FileHandle` automatically. User code must still call the`fileHandle.close()` method. + * @since v17.0.0 + * @experimental + */ + readableWebStream(options?: ReadableWebStreamOptions): ReadableStream; + /** + * Asynchronously reads the entire contents of a file. + * + * If `options` is a string, then it specifies the `encoding`. + * + * The `FileHandle` has to support reading. + * + * If one or more `filehandle.read()` calls are made on a file handle and then a `filehandle.readFile()` call is made, the data will be read from the current + * position till the end of the file. It doesn't always read from the beginning + * of the file. + * @since v10.0.0 + * @return Fulfills upon a successful read with the contents of the file. If no encoding is specified (using `options.encoding`), the data is returned as a {Buffer} object. Otherwise, the + * data will be a string. + */ + readFile( + options?: + | ({ encoding?: null | undefined } & Abortable) + | null, + ): Promise; + /** + * Asynchronously reads the entire contents of a file. The underlying file will _not_ be closed automatically. + * The `FileHandle` must have been opened for reading. + */ + readFile( + options: + | ({ encoding: BufferEncoding } & Abortable) + | BufferEncoding, + ): Promise; + /** + * Asynchronously reads the entire contents of a file. The underlying file will _not_ be closed automatically. + * The `FileHandle` must have been opened for reading. + */ + readFile( + options?: + | (ObjectEncodingOptions & Abortable) + | BufferEncoding + | null, + ): Promise; + /** + * Convenience method to create a `readline` interface and stream over the file. + * See `filehandle.createReadStream()` for the options. + * + * ```js + * import { open } from 'node:fs/promises'; + * + * const file = await open('./some/file/to/read'); + * + * for await (const line of file.readLines()) { + * console.log(line); + * } + * ``` + * @since v18.11.0 + */ + readLines(options?: CreateReadStreamOptions): ReadlineInterface; + /** + * @since v10.0.0 + * @return Fulfills with an {fs.Stats} for the file. + */ + stat( + opts?: StatOptions & { + bigint?: false | undefined; + }, + ): Promise; + stat( + opts: StatOptions & { + bigint: true; + }, + ): Promise; + stat(opts?: StatOptions): Promise; + /** + * Truncates the file. + * + * If the file was larger than `len` bytes, only the first `len` bytes will be + * retained in the file. + * + * The following example retains only the first four bytes of the file: + * + * ```js + * import { open } from 'node:fs/promises'; + * + * let filehandle = null; + * try { + * filehandle = await open('temp.txt', 'r+'); + * await filehandle.truncate(4); + * } finally { + * await filehandle?.close(); + * } + * ``` + * + * If the file previously was shorter than `len` bytes, it is extended, and the + * extended part is filled with null bytes (`'\0'`): + * + * If `len` is negative then `0` will be used. + * @since v10.0.0 + * @param [len=0] + * @return Fulfills with `undefined` upon success. + */ + truncate(len?: number): Promise; + /** + * Change the file system timestamps of the object referenced by the `FileHandle` then fulfills the promise with no arguments upon success. + * @since v10.0.0 + */ + utimes(atime: TimeLike, mtime: TimeLike): Promise; + /** + * Asynchronously writes data to a file, replacing the file if it already exists. `data` can be a string, a buffer, an + * [AsyncIterable](https://tc39.github.io/ecma262/#sec-asynciterable-interface), or an + * [Iterable](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#The_iterable_protocol) object. + * The promise is fulfilled with no arguments upon success. + * + * If `options` is a string, then it specifies the `encoding`. + * + * The `FileHandle` has to support writing. + * + * It is unsafe to use `filehandle.writeFile()` multiple times on the same file + * without waiting for the promise to be fulfilled (or rejected). + * + * If one or more `filehandle.write()` calls are made on a file handle and then a`filehandle.writeFile()` call is made, the data will be written from the + * current position till the end of the file. It doesn't always write from the + * beginning of the file. + * @since v10.0.0 + */ + writeFile( + data: string | Uint8Array, + options?: + | (ObjectEncodingOptions & Abortable) + | BufferEncoding + | null, + ): Promise; + /** + * Write `buffer` to the file. + * + * The promise is fulfilled with an object containing two properties: + * + * It is unsafe to use `filehandle.write()` multiple times on the same file + * without waiting for the promise to be fulfilled (or rejected). For this + * scenario, use `filehandle.createWriteStream()`. + * + * On Linux, positional writes do not work when the file is opened in append mode. + * The kernel ignores the position argument and always appends the data to + * the end of the file. + * @since v10.0.0 + * @param offset The start position from within `buffer` where the data to write begins. + * @param [length=buffer.byteLength - offset] The number of bytes from `buffer` to write. + * @param [position='null'] The offset from the beginning of the file where the data from `buffer` should be written. If `position` is not a `number`, the data will be written at the current + * position. See the POSIX pwrite(2) documentation for more detail. + */ + write( + buffer: TBuffer, + offset?: number | null, + length?: number | null, + position?: number | null, + ): Promise<{ + bytesWritten: number; + buffer: TBuffer; + }>; + write( + data: string, + position?: number | null, + encoding?: BufferEncoding | null, + ): Promise<{ + bytesWritten: number; + buffer: string; + }>; + /** + * Write an array of [ArrayBufferView](https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView) s to the file. + * + * The promise is fulfilled with an object containing a two properties: + * + * It is unsafe to call `writev()` multiple times on the same file without waiting + * for the promise to be fulfilled (or rejected). + * + * On Linux, positional writes don't work when the file is opened in append mode. + * The kernel ignores the position argument and always appends the data to + * the end of the file. + * @since v12.9.0 + * @param [position='null'] The offset from the beginning of the file where the data from `buffers` should be written. If `position` is not a `number`, the data will be written at the current + * position. + */ + writev( + buffers: TBuffers, + position?: number, + ): Promise>; + /** + * Read from a file and write to an array of [ArrayBufferView](https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView) s + * @since v13.13.0, v12.17.0 + * @param [position='null'] The offset from the beginning of the file where the data should be read from. If `position` is not a `number`, the data will be read from the current position. + * @return Fulfills upon success an object containing two properties: + */ + readv( + buffers: TBuffers, + position?: number, + ): Promise>; + /** + * Closes the file handle after waiting for any pending operation on the handle to + * complete. + * + * ```js + * import { open } from 'node:fs/promises'; + * + * let filehandle; + * try { + * filehandle = await open('thefile.txt', 'r'); + * } finally { + * await filehandle?.close(); + * } + * ``` + * @since v10.0.0 + * @return Fulfills with `undefined` upon success. + */ + close(): Promise; + /** + * An alias for {@link FileHandle.close()}. + * @since v20.4.0 + */ + [Symbol.asyncDispose](): Promise; + } + const constants: typeof fsConstants; + /** + * Tests a user's permissions for the file or directory specified by `path`. + * The `mode` argument is an optional integer that specifies the accessibility + * checks to be performed. `mode` should be either the value `fs.constants.F_OK` or a mask consisting of the bitwise OR of any of `fs.constants.R_OK`, `fs.constants.W_OK`, and `fs.constants.X_OK` + * (e.g.`fs.constants.W_OK | fs.constants.R_OK`). Check `File access constants` for + * possible values of `mode`. + * + * If the accessibility check is successful, the promise is fulfilled with no + * value. If any of the accessibility checks fail, the promise is rejected + * with an [Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) object. The following example checks if the file`/etc/passwd` can be read and + * written by the current process. + * + * ```js + * import { access, constants } from 'node:fs/promises'; + * + * try { + * await access('/etc/passwd', constants.R_OK | constants.W_OK); + * console.log('can access'); + * } catch { + * console.error('cannot access'); + * } + * ``` + * + * Using `fsPromises.access()` to check for the accessibility of a file before + * calling `fsPromises.open()` is not recommended. Doing so introduces a race + * condition, since other processes may change the file's state between the two + * calls. Instead, user code should open/read/write the file directly and handle + * the error raised if the file is not accessible. + * @since v10.0.0 + * @param [mode=fs.constants.F_OK] + * @return Fulfills with `undefined` upon success. + */ + function access(path: PathLike, mode?: number): Promise; + /** + * Asynchronously copies `src` to `dest`. By default, `dest` is overwritten if it + * already exists. + * + * No guarantees are made about the atomicity of the copy operation. If an + * error occurs after the destination file has been opened for writing, an attempt + * will be made to remove the destination. + * + * ```js + * import { copyFile, constants } from 'node:fs/promises'; + * + * try { + * await copyFile('source.txt', 'destination.txt'); + * console.log('source.txt was copied to destination.txt'); + * } catch { + * console.error('The file could not be copied'); + * } + * + * // By using COPYFILE_EXCL, the operation will fail if destination.txt exists. + * try { + * await copyFile('source.txt', 'destination.txt', constants.COPYFILE_EXCL); + * console.log('source.txt was copied to destination.txt'); + * } catch { + * console.error('The file could not be copied'); + * } + * ``` + * @since v10.0.0 + * @param src source filename to copy + * @param dest destination filename of the copy operation + * @param [mode=0] Optional modifiers that specify the behavior of the copy operation. It is possible to create a mask consisting of the bitwise OR of two or more values (e.g. + * `fs.constants.COPYFILE_EXCL | fs.constants.COPYFILE_FICLONE`) + * @return Fulfills with `undefined` upon success. + */ + function copyFile(src: PathLike, dest: PathLike, mode?: number): Promise; + /** + * Opens a `FileHandle`. + * + * Refer to the POSIX [`open(2)`](http://man7.org/linux/man-pages/man2/open.2.html) documentation for more detail. + * + * Some characters (`< > : " / \ | ? *`) are reserved under Windows as documented + * by [Naming Files, Paths, and Namespaces](https://docs.microsoft.com/en-us/windows/desktop/FileIO/naming-a-file). Under NTFS, if the filename contains + * a colon, Node.js will open a file system stream, as described by [this MSDN page](https://docs.microsoft.com/en-us/windows/desktop/FileIO/using-streams). + * @since v10.0.0 + * @param [flags='r'] See `support of file system `flags``. + * @param [mode=0o666] Sets the file mode (permission and sticky bits) if the file is created. + * @return Fulfills with a {FileHandle} object. + */ + function open(path: PathLike, flags?: string | number, mode?: Mode): Promise; + /** + * Renames `oldPath` to `newPath`. + * @since v10.0.0 + * @return Fulfills with `undefined` upon success. + */ + function rename(oldPath: PathLike, newPath: PathLike): Promise; + /** + * Truncates (shortens or extends the length) of the content at `path` to `len` bytes. + * @since v10.0.0 + * @param [len=0] + * @return Fulfills with `undefined` upon success. + */ + function truncate(path: PathLike, len?: number): Promise; + /** + * Removes the directory identified by `path`. + * + * Using `fsPromises.rmdir()` on a file (not a directory) results in the + * promise being rejected with an `ENOENT` error on Windows and an `ENOTDIR` error on POSIX. + * + * To get a behavior similar to the `rm -rf` Unix command, use `fsPromises.rm()` with options `{ recursive: true, force: true }`. + * @since v10.0.0 + * @return Fulfills with `undefined` upon success. + */ + function rmdir(path: PathLike, options?: RmDirOptions): Promise; + /** + * Removes files and directories (modeled on the standard POSIX `rm` utility). + * @since v14.14.0 + * @return Fulfills with `undefined` upon success. + */ + function rm(path: PathLike, options?: RmOptions): Promise; + /** + * Asynchronously creates a directory. + * + * The optional `options` argument can be an integer specifying `mode` (permission + * and sticky bits), or an object with a `mode` property and a `recursive` property indicating whether parent directories should be created. Calling `fsPromises.mkdir()` when `path` is a directory + * that exists results in a + * rejection only when `recursive` is false. + * + * ```js + * import { mkdir } from 'node:fs/promises'; + * + * try { + * const projectFolder = new URL('./test/project/', import.meta.url); + * const createDir = await mkdir(projectFolder, { recursive: true }); + * + * console.log(`created ${createDir}`); + * } catch (err) { + * console.error(err.message); + * } + * ``` + * @since v10.0.0 + * @return Upon success, fulfills with `undefined` if `recursive` is `false`, or the first directory path created if `recursive` is `true`. + */ + function mkdir( + path: PathLike, + options: MakeDirectoryOptions & { + recursive: true; + }, + ): Promise; + /** + * Asynchronous mkdir(2) - create a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders + * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. + */ + function mkdir( + path: PathLike, + options?: + | Mode + | (MakeDirectoryOptions & { + recursive?: false | undefined; + }) + | null, + ): Promise; + /** + * Asynchronous mkdir(2) - create a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders + * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. + */ + function mkdir(path: PathLike, options?: Mode | MakeDirectoryOptions | null): Promise; + /** + * Reads the contents of a directory. + * + * The optional `options` argument can be a string specifying an encoding, or an + * object with an `encoding` property specifying the character encoding to use for + * the filenames. If the `encoding` is set to `'buffer'`, the filenames returned + * will be passed as `Buffer` objects. + * + * If `options.withFileTypes` is set to `true`, the returned array will contain `fs.Dirent` objects. + * + * ```js + * import { readdir } from 'node:fs/promises'; + * + * try { + * const files = await readdir(path); + * for (const file of files) + * console.log(file); + * } catch (err) { + * console.error(err); + * } + * ``` + * @since v10.0.0 + * @return Fulfills with an array of the names of the files in the directory excluding `'.'` and `'..'`. + */ + function readdir( + path: PathLike, + options?: + | (ObjectEncodingOptions & { + withFileTypes?: false | undefined; + recursive?: boolean | undefined; + }) + | BufferEncoding + | null, + ): Promise; + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function readdir( + path: PathLike, + options: + | { + encoding: "buffer"; + withFileTypes?: false | undefined; + recursive?: boolean | undefined; + } + | "buffer", + ): Promise; + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function readdir( + path: PathLike, + options?: + | (ObjectEncodingOptions & { + withFileTypes?: false | undefined; + recursive?: boolean | undefined; + }) + | BufferEncoding + | null, + ): Promise; + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options If called with `withFileTypes: true` the result data will be an array of Dirent. + */ + function readdir( + path: PathLike, + options: ObjectEncodingOptions & { + withFileTypes: true; + recursive?: boolean | undefined; + }, + ): Promise; + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a directory. If a URL is provided, it must use the `file:` protocol. + * @param options Must include `withFileTypes: true` and `encoding: 'buffer'`. + */ + function readdir( + path: PathLike, + options: { + encoding: "buffer"; + withFileTypes: true; + recursive?: boolean | undefined; + }, + ): Promise[]>; + /** + * Reads the contents of the symbolic link referred to by `path`. See the POSIX [`readlink(2)`](http://man7.org/linux/man-pages/man2/readlink.2.html) documentation for more detail. The promise is + * fulfilled with the`linkString` upon success. + * + * The optional `options` argument can be a string specifying an encoding, or an + * object with an `encoding` property specifying the character encoding to use for + * the link path returned. If the `encoding` is set to `'buffer'`, the link path + * returned will be passed as a `Buffer` object. + * @since v10.0.0 + * @return Fulfills with the `linkString` upon success. + */ + function readlink(path: PathLike, options?: ObjectEncodingOptions | BufferEncoding | null): Promise; + /** + * Asynchronous readlink(2) - read value of a symbolic link. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function readlink(path: PathLike, options: BufferEncodingOption): Promise; + /** + * Asynchronous readlink(2) - read value of a symbolic link. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function readlink( + path: PathLike, + options?: ObjectEncodingOptions | string | null, + ): Promise; + /** + * Creates a symbolic link. + * + * The `type` argument is only used on Windows platforms and can be one of `'dir'`, `'file'`, or `'junction'`. If the `type` argument is not a string, Node.js will + * autodetect `target` type and use `'file'` or `'dir'`. If the `target` does not + * exist, `'file'` will be used. Windows junction points require the destination + * path to be absolute. When using `'junction'`, the `target` argument will + * automatically be normalized to absolute path. Junction points on NTFS volumes + * can only point to directories. + * @since v10.0.0 + * @param [type='null'] + * @return Fulfills with `undefined` upon success. + */ + function symlink(target: PathLike, path: PathLike, type?: string | null): Promise; + /** + * Equivalent to `fsPromises.stat()` unless `path` refers to a symbolic link, + * in which case the link itself is stat-ed, not the file that it refers to. + * Refer to the POSIX [`lstat(2)`](http://man7.org/linux/man-pages/man2/lstat.2.html) document for more detail. + * @since v10.0.0 + * @return Fulfills with the {fs.Stats} object for the given symbolic link `path`. + */ + function lstat( + path: PathLike, + opts?: StatOptions & { + bigint?: false | undefined; + }, + ): Promise; + function lstat( + path: PathLike, + opts: StatOptions & { + bigint: true; + }, + ): Promise; + function lstat(path: PathLike, opts?: StatOptions): Promise; + /** + * @since v10.0.0 + * @return Fulfills with the {fs.Stats} object for the given `path`. + */ + function stat( + path: PathLike, + opts?: StatOptions & { + bigint?: false | undefined; + }, + ): Promise; + function stat( + path: PathLike, + opts: StatOptions & { + bigint: true; + }, + ): Promise; + function stat(path: PathLike, opts?: StatOptions): Promise; + /** + * @since v19.6.0, v18.15.0 + * @return Fulfills with the {fs.StatFs} object for the given `path`. + */ + function statfs( + path: PathLike, + opts?: StatFsOptions & { + bigint?: false | undefined; + }, + ): Promise; + function statfs( + path: PathLike, + opts: StatFsOptions & { + bigint: true; + }, + ): Promise; + function statfs(path: PathLike, opts?: StatFsOptions): Promise; + /** + * Creates a new link from the `existingPath` to the `newPath`. See the POSIX [`link(2)`](http://man7.org/linux/man-pages/man2/link.2.html) documentation for more detail. + * @since v10.0.0 + * @return Fulfills with `undefined` upon success. + */ + function link(existingPath: PathLike, newPath: PathLike): Promise; + /** + * If `path` refers to a symbolic link, then the link is removed without affecting + * the file or directory to which that link refers. If the `path` refers to a file + * path that is not a symbolic link, the file is deleted. See the POSIX [`unlink(2)`](http://man7.org/linux/man-pages/man2/unlink.2.html) documentation for more detail. + * @since v10.0.0 + * @return Fulfills with `undefined` upon success. + */ + function unlink(path: PathLike): Promise; + /** + * Changes the permissions of a file. + * @since v10.0.0 + * @return Fulfills with `undefined` upon success. + */ + function chmod(path: PathLike, mode: Mode): Promise; + /** + * Changes the permissions on a symbolic link. + * + * This method is only implemented on macOS. + * @deprecated Since v10.0.0 + * @return Fulfills with `undefined` upon success. + */ + function lchmod(path: PathLike, mode: Mode): Promise; + /** + * Changes the ownership on a symbolic link. + * @since v10.0.0 + * @return Fulfills with `undefined` upon success. + */ + function lchown(path: PathLike, uid: number, gid: number): Promise; + /** + * Changes the access and modification times of a file in the same way as `fsPromises.utimes()`, with the difference that if the path refers to a + * symbolic link, then the link is not dereferenced: instead, the timestamps of + * the symbolic link itself are changed. + * @since v14.5.0, v12.19.0 + * @return Fulfills with `undefined` upon success. + */ + function lutimes(path: PathLike, atime: TimeLike, mtime: TimeLike): Promise; + /** + * Changes the ownership of a file. + * @since v10.0.0 + * @return Fulfills with `undefined` upon success. + */ + function chown(path: PathLike, uid: number, gid: number): Promise; + /** + * Change the file system timestamps of the object referenced by `path`. + * + * The `atime` and `mtime` arguments follow these rules: + * + * * Values can be either numbers representing Unix epoch time, `Date`s, or a + * numeric string like `'123456789.0'`. + * * If the value can not be converted to a number, or is `NaN`, `Infinity`, or `-Infinity`, an `Error` will be thrown. + * @since v10.0.0 + * @return Fulfills with `undefined` upon success. + */ + function utimes(path: PathLike, atime: TimeLike, mtime: TimeLike): Promise; + /** + * Determines the actual location of `path` using the same semantics as the `fs.realpath.native()` function. + * + * Only paths that can be converted to UTF8 strings are supported. + * + * The optional `options` argument can be a string specifying an encoding, or an + * object with an `encoding` property specifying the character encoding to use for + * the path. If the `encoding` is set to `'buffer'`, the path returned will be + * passed as a `Buffer` object. + * + * On Linux, when Node.js is linked against musl libc, the procfs file system must + * be mounted on `/proc` in order for this function to work. Glibc does not have + * this restriction. + * @since v10.0.0 + * @return Fulfills with the resolved path upon success. + */ + function realpath(path: PathLike, options?: ObjectEncodingOptions | BufferEncoding | null): Promise; + /** + * Asynchronous realpath(3) - return the canonicalized absolute pathname. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function realpath(path: PathLike, options: BufferEncodingOption): Promise; + /** + * Asynchronous realpath(3) - return the canonicalized absolute pathname. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function realpath( + path: PathLike, + options?: ObjectEncodingOptions | BufferEncoding | null, + ): Promise; + /** + * Creates a unique temporary directory. A unique directory name is generated by + * appending six random characters to the end of the provided `prefix`. Due to + * platform inconsistencies, avoid trailing `X` characters in `prefix`. Some + * platforms, notably the BSDs, can return more than six random characters, and + * replace trailing `X` characters in `prefix` with random characters. + * + * The optional `options` argument can be a string specifying an encoding, or an + * object with an `encoding` property specifying the character encoding to use. + * + * ```js + * import { mkdtemp } from 'node:fs/promises'; + * import { join } from 'node:path'; + * import { tmpdir } from 'node:os'; + * + * try { + * await mkdtemp(join(tmpdir(), 'foo-')); + * } catch (err) { + * console.error(err); + * } + * ``` + * + * The `fsPromises.mkdtemp()` method will append the six randomly selected + * characters directly to the `prefix` string. For instance, given a directory `/tmp`, if the intention is to create a temporary directory _within_ `/tmp`, the `prefix` must end with a trailing + * platform-specific path separator + * (`import { sep } from 'node:node:path'`). + * @since v10.0.0 + * @return Fulfills with a string containing the file system path of the newly created temporary directory. + */ + function mkdtemp(prefix: string, options?: ObjectEncodingOptions | BufferEncoding | null): Promise; + /** + * Asynchronously creates a unique temporary directory. + * Generates six random characters to be appended behind a required `prefix` to create a unique temporary directory. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function mkdtemp(prefix: string, options: BufferEncodingOption): Promise; + /** + * Asynchronously creates a unique temporary directory. + * Generates six random characters to be appended behind a required `prefix` to create a unique temporary directory. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function mkdtemp( + prefix: string, + options?: ObjectEncodingOptions | BufferEncoding | null, + ): Promise; + /** + * Asynchronously writes data to a file, replacing the file if it already exists. `data` can be a string, a buffer, an + * [AsyncIterable](https://tc39.github.io/ecma262/#sec-asynciterable-interface), or an + * [Iterable](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#The_iterable_protocol) object. + * + * The `encoding` option is ignored if `data` is a buffer. + * + * If `options` is a string, then it specifies the encoding. + * + * The `mode` option only affects the newly created file. See `fs.open()` for more details. + * + * Any specified `FileHandle` has to support writing. + * + * It is unsafe to use `fsPromises.writeFile()` multiple times on the same file + * without waiting for the promise to be settled. + * + * Similarly to `fsPromises.readFile` \- `fsPromises.writeFile` is a convenience + * method that performs multiple `write` calls internally to write the buffer + * passed to it. For performance sensitive code consider using `fs.createWriteStream()` or `filehandle.createWriteStream()`. + * + * It is possible to use an `AbortSignal` to cancel an `fsPromises.writeFile()`. + * Cancelation is "best effort", and some amount of data is likely still + * to be written. + * + * ```js + * import { writeFile } from 'node:fs/promises'; + * import { Buffer } from 'node:buffer'; + * + * try { + * const controller = new AbortController(); + * const { signal } = controller; + * const data = new Uint8Array(Buffer.from('Hello Node.js')); + * const promise = writeFile('message.txt', data, { signal }); + * + * // Abort the request before the promise settles. + * controller.abort(); + * + * await promise; + * } catch (err) { + * // When a request is aborted - err is an AbortError + * console.error(err); + * } + * ``` + * + * Aborting an ongoing request does not abort individual operating + * system requests but rather the internal buffering `fs.writeFile` performs. + * @since v10.0.0 + * @param file filename or `FileHandle` + * @return Fulfills with `undefined` upon success. + */ + function writeFile( + file: PathLike | FileHandle, + data: + | string + | NodeJS.ArrayBufferView + | Iterable + | AsyncIterable + | Stream, + options?: + | (ObjectEncodingOptions & { + mode?: Mode | undefined; + flag?: OpenMode | undefined; + /** + * If all data is successfully written to the file, and `flush` + * is `true`, `filehandle.sync()` is used to flush the data. + * @default false + */ + flush?: boolean | undefined; + } & Abortable) + | BufferEncoding + | null, + ): Promise; + /** + * Asynchronously append data to a file, creating the file if it does not yet + * exist. `data` can be a string or a `Buffer`. + * + * If `options` is a string, then it specifies the `encoding`. + * + * The `mode` option only affects the newly created file. See `fs.open()` for more details. + * + * The `path` may be specified as a `FileHandle` that has been opened + * for appending (using `fsPromises.open()`). + * @since v10.0.0 + * @param path filename or {FileHandle} + * @return Fulfills with `undefined` upon success. + */ + function appendFile( + path: PathLike | FileHandle, + data: string | Uint8Array, + options?: (ObjectEncodingOptions & FlagAndOpenMode & { flush?: boolean | undefined }) | BufferEncoding | null, + ): Promise; + /** + * Asynchronously reads the entire contents of a file. + * + * If no encoding is specified (using `options.encoding`), the data is returned + * as a `Buffer` object. Otherwise, the data will be a string. + * + * If `options` is a string, then it specifies the encoding. + * + * When the `path` is a directory, the behavior of `fsPromises.readFile()` is + * platform-specific. On macOS, Linux, and Windows, the promise will be rejected + * with an error. On FreeBSD, a representation of the directory's contents will be + * returned. + * + * An example of reading a `package.json` file located in the same directory of the + * running code: + * + * ```js + * import { readFile } from 'node:fs/promises'; + * try { + * const filePath = new URL('./package.json', import.meta.url); + * const contents = await readFile(filePath, { encoding: 'utf8' }); + * console.log(contents); + * } catch (err) { + * console.error(err.message); + * } + * ``` + * + * It is possible to abort an ongoing `readFile` using an `AbortSignal`. If a + * request is aborted the promise returned is rejected with an `AbortError`: + * + * ```js + * import { readFile } from 'node:fs/promises'; + * + * try { + * const controller = new AbortController(); + * const { signal } = controller; + * const promise = readFile(fileName, { signal }); + * + * // Abort the request before the promise settles. + * controller.abort(); + * + * await promise; + * } catch (err) { + * // When a request is aborted - err is an AbortError + * console.error(err); + * } + * ``` + * + * Aborting an ongoing request does not abort individual operating + * system requests but rather the internal buffering `fs.readFile` performs. + * + * Any specified `FileHandle` has to support reading. + * @since v10.0.0 + * @param path filename or `FileHandle` + * @return Fulfills with the contents of the file. + */ + function readFile( + path: PathLike | FileHandle, + options?: + | ({ + encoding?: null | undefined; + flag?: OpenMode | undefined; + } & Abortable) + | null, + ): Promise; + /** + * Asynchronously reads the entire contents of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * If a `FileHandle` is provided, the underlying file will _not_ be closed automatically. + * @param options An object that may contain an optional flag. + * If a flag is not provided, it defaults to `'r'`. + */ + function readFile( + path: PathLike | FileHandle, + options: + | ({ + encoding: BufferEncoding; + flag?: OpenMode | undefined; + } & Abortable) + | BufferEncoding, + ): Promise; + /** + * Asynchronously reads the entire contents of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * If a `FileHandle` is provided, the underlying file will _not_ be closed automatically. + * @param options An object that may contain an optional flag. + * If a flag is not provided, it defaults to `'r'`. + */ + function readFile( + path: PathLike | FileHandle, + options?: + | ( + & ObjectEncodingOptions + & Abortable + & { + flag?: OpenMode | undefined; + } + ) + | BufferEncoding + | null, + ): Promise; + /** + * Asynchronously open a directory for iterative scanning. See the POSIX [`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html) documentation for more detail. + * + * Creates an `fs.Dir`, which contains all further functions for reading from + * and cleaning up the directory. + * + * The `encoding` option sets the encoding for the `path` while opening the + * directory and subsequent read operations. + * + * Example using async iteration: + * + * ```js + * import { opendir } from 'node:fs/promises'; + * + * try { + * const dir = await opendir('./'); + * for await (const dirent of dir) + * console.log(dirent.name); + * } catch (err) { + * console.error(err); + * } + * ``` + * + * When using the async iterator, the `fs.Dir` object will be automatically + * closed after the iterator exits. + * @since v12.12.0 + * @return Fulfills with an {fs.Dir}. + */ + function opendir(path: PathLike, options?: OpenDirOptions): Promise; + /** + * Returns an async iterator that watches for changes on `filename`, where `filename`is either a file or a directory. + * + * ```js + * import { watch } from 'node:fs/promises'; + * + * const ac = new AbortController(); + * const { signal } = ac; + * setTimeout(() => ac.abort(), 10000); + * + * (async () => { + * try { + * const watcher = watch(__filename, { signal }); + * for await (const event of watcher) + * console.log(event); + * } catch (err) { + * if (err.name === 'AbortError') + * return; + * throw err; + * } + * })(); + * ``` + * + * On most platforms, `'rename'` is emitted whenever a filename appears or + * disappears in the directory. + * + * All the `caveats` for `fs.watch()` also apply to `fsPromises.watch()`. + * @since v15.9.0, v14.18.0 + * @return of objects with the properties: + */ + function watch( + filename: PathLike, + options: + | (WatchOptions & { + encoding: "buffer"; + }) + | "buffer", + ): AsyncIterable>; + /** + * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. + * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. + * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options. + * If `encoding` is not supplied, the default of `'utf8'` is used. + * If `persistent` is not supplied, the default of `true` is used. + * If `recursive` is not supplied, the default of `false` is used. + */ + function watch(filename: PathLike, options?: WatchOptions | BufferEncoding): AsyncIterable>; + /** + * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. + * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. + * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options. + * If `encoding` is not supplied, the default of `'utf8'` is used. + * If `persistent` is not supplied, the default of `true` is used. + * If `recursive` is not supplied, the default of `false` is used. + */ + function watch( + filename: PathLike, + options: WatchOptions | string, + ): AsyncIterable> | AsyncIterable>; + /** + * Asynchronously copies the entire directory structure from `src` to `dest`, + * including subdirectories and files. + * + * When copying a directory to another directory, globs are not supported and + * behavior is similar to `cp dir1/ dir2/`. + * @since v16.7.0 + * @experimental + * @param src source path to copy. + * @param dest destination path to copy to. + * @return Fulfills with `undefined` upon success. + */ + function cp(source: string | URL, destination: string | URL, opts?: CopyOptions): Promise; +} +declare module "node:fs/promises" { + export * from "fs/promises"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/globals.d.ts b/backend/node_modules/httpx/node_modules/@types/node/globals.d.ts new file mode 100644 index 0000000..3bff22a --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/globals.d.ts @@ -0,0 +1,172 @@ +declare var global: typeof globalThis; + +declare var process: NodeJS.Process; +declare var console: Console; + +interface ErrorConstructor { + /** + * Creates a `.stack` property on `targetObject`, which when accessed returns + * a string representing the location in the code at which + * `Error.captureStackTrace()` was called. + * + * ```js + * const myObject = {}; + * Error.captureStackTrace(myObject); + * myObject.stack; // Similar to `new Error().stack` + * ``` + * + * The first line of the trace will be prefixed with + * `${myObject.name}: ${myObject.message}`. + * + * The optional `constructorOpt` argument accepts a function. If given, all frames + * above `constructorOpt`, including `constructorOpt`, will be omitted from the + * generated stack trace. + * + * The `constructorOpt` argument is useful for hiding implementation + * details of error generation from the user. For instance: + * + * ```js + * function a() { + * b(); + * } + * + * function b() { + * c(); + * } + * + * function c() { + * // Create an error without stack trace to avoid calculating the stack trace twice. + * const { stackTraceLimit } = Error; + * Error.stackTraceLimit = 0; + * const error = new Error(); + * Error.stackTraceLimit = stackTraceLimit; + * + * // Capture the stack trace above function b + * Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace + * throw error; + * } + * + * a(); + * ``` + */ + captureStackTrace(targetObject: object, constructorOpt?: Function): void; + /** + * @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces + */ + prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any; + /** + * The `Error.stackTraceLimit` property specifies the number of stack frames + * collected by a stack trace (whether generated by `new Error().stack` or + * `Error.captureStackTrace(obj)`). + * + * The default value is `10` but may be set to any valid JavaScript number. Changes + * will affect any stack trace captured _after_ the value has been changed. + * + * If set to a non-number value, or set to a negative number, stack traces will + * not capture any frames. + */ + stackTraceLimit: number; +} + +/** + * Enable this API with the `--expose-gc` CLI flag. + */ +declare var gc: NodeJS.GCFunction | undefined; + +declare namespace NodeJS { + interface CallSite { + getColumnNumber(): number | null; + getEnclosingColumnNumber(): number | null; + getEnclosingLineNumber(): number | null; + getEvalOrigin(): string | undefined; + getFileName(): string | null; + getFunction(): Function | undefined; + getFunctionName(): string | null; + getLineNumber(): number | null; + getMethodName(): string | null; + getPosition(): number; + getPromiseIndex(): number | null; + getScriptHash(): string; + getScriptNameOrSourceURL(): string | null; + getThis(): unknown; + getTypeName(): string | null; + isAsync(): boolean; + isConstructor(): boolean; + isEval(): boolean; + isNative(): boolean; + isPromiseAll(): boolean; + isToplevel(): boolean; + } + + interface ErrnoException extends Error { + errno?: number | undefined; + code?: string | undefined; + path?: string | undefined; + syscall?: string | undefined; + } + + interface ReadableStream extends EventEmitter { + readable: boolean; + read(size?: number): string | Buffer; + setEncoding(encoding: BufferEncoding): this; + pause(): this; + resume(): this; + isPaused(): boolean; + pipe(destination: T, options?: { end?: boolean | undefined }): T; + unpipe(destination?: WritableStream): this; + unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void; + wrap(oldStream: ReadableStream): this; + [Symbol.asyncIterator](): AsyncIterableIterator; + } + + interface WritableStream extends EventEmitter { + writable: boolean; + write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean; + write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean; + end(cb?: () => void): this; + end(data: string | Uint8Array, cb?: () => void): this; + end(str: string, encoding?: BufferEncoding, cb?: () => void): this; + } + + interface ReadWriteStream extends ReadableStream, WritableStream {} + + interface RefCounted { + ref(): this; + unref(): this; + } + + interface Dict { + [key: string]: T | undefined; + } + + interface ReadOnlyDict { + readonly [key: string]: T | undefined; + } + + type PartialOptions = { [K in keyof T]?: T[K] | undefined }; + + interface GCFunction { + (minor?: boolean): void; + (options: NodeJS.GCOptions & { execution: "async" }): Promise; + (options: NodeJS.GCOptions): void; + } + + interface GCOptions { + execution?: "sync" | "async" | undefined; + flavor?: "regular" | "last-resort" | undefined; + type?: "major-snapshot" | "major" | "minor" | undefined; + filename?: string | undefined; + } + + /** An iterable iterator returned by the Node.js API. */ + // Default TReturn/TNext in v20 is `any`, for compatibility with the previously-used IterableIterator. + interface Iterator extends IteratorObject { + [Symbol.iterator](): NodeJS.Iterator; + } + + /** An async iterable iterator returned by the Node.js API. */ + // Default TReturn/TNext in v20 is `any`, for compatibility with the previously-used AsyncIterableIterator. + interface AsyncIterator extends AsyncIteratorObject { + [Symbol.asyncIterator](): NodeJS.AsyncIterator; + } +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/globals.typedarray.d.ts b/backend/node_modules/httpx/node_modules/@types/node/globals.typedarray.d.ts new file mode 100644 index 0000000..8eafc3b --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/globals.typedarray.d.ts @@ -0,0 +1,38 @@ +export {}; // Make this a module + +declare global { + namespace NodeJS { + type TypedArray = + | Uint8Array + | Uint8ClampedArray + | Uint16Array + | Uint32Array + | Int8Array + | Int16Array + | Int32Array + | BigUint64Array + | BigInt64Array + | Float32Array + | Float64Array; + type ArrayBufferView = + | TypedArray + | DataView; + + // The following aliases are required to allow use of non-shared ArrayBufferViews in @types/node + // while maintaining compatibility with TS <=5.6. + type NonSharedUint8Array = Uint8Array; + type NonSharedUint8ClampedArray = Uint8ClampedArray; + type NonSharedUint16Array = Uint16Array; + type NonSharedUint32Array = Uint32Array; + type NonSharedInt8Array = Int8Array; + type NonSharedInt16Array = Int16Array; + type NonSharedInt32Array = Int32Array; + type NonSharedBigUint64Array = BigUint64Array; + type NonSharedBigInt64Array = BigInt64Array; + type NonSharedFloat32Array = Float32Array; + type NonSharedFloat64Array = Float64Array; + type NonSharedDataView = DataView; + type NonSharedTypedArray = TypedArray; + type NonSharedArrayBufferView = ArrayBufferView; + } +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/http.d.ts b/backend/node_modules/httpx/node_modules/@types/node/http.d.ts new file mode 100644 index 0000000..168c549 --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/http.d.ts @@ -0,0 +1,2049 @@ +/** + * To use the HTTP server and client one must import the `node:http` module. + * + * The HTTP interfaces in Node.js are designed to support many features + * of the protocol which have been traditionally difficult to use. + * In particular, large, possibly chunk-encoded, messages. The interface is + * careful to never buffer entire requests or responses, so the + * user is able to stream data. + * + * HTTP message headers are represented by an object like this: + * + * ```json + * { "content-length": "123", + * "content-type": "text/plain", + * "connection": "keep-alive", + * "host": "example.com", + * "accept": "*" } + * ``` + * + * Keys are lowercased. Values are not modified. + * + * In order to support the full spectrum of possible HTTP applications, the Node.js + * HTTP API is very low-level. It deals with stream handling and message + * parsing only. It parses a message into headers and body but it does not + * parse the actual headers or the body. + * + * See `message.headers` for details on how duplicate headers are handled. + * + * The raw headers as they were received are retained in the `rawHeaders` property, which is an array of `[key, value, key2, value2, ...]`. For + * example, the previous message header object might have a `rawHeaders` list like the following: + * + * ```js + * [ 'ConTent-Length', '123456', + * 'content-LENGTH', '123', + * 'content-type', 'text/plain', + * 'CONNECTION', 'keep-alive', + * 'Host', 'example.com', + * 'accepT', '*' ] + * ``` + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/http.js) + */ +declare module "http" { + import { NonSharedBuffer } from "node:buffer"; + import * as stream from "node:stream"; + import { URL } from "node:url"; + import { LookupOptions } from "node:dns"; + import { EventEmitter } from "node:events"; + import { LookupFunction, Server as NetServer, Socket, TcpSocketConnectOpts } from "node:net"; + // incoming headers will never contain number + interface IncomingHttpHeaders extends NodeJS.Dict { + accept?: string | undefined; + "accept-encoding"?: string | undefined; + "accept-language"?: string | undefined; + "accept-patch"?: string | undefined; + "accept-ranges"?: string | undefined; + "access-control-allow-credentials"?: string | undefined; + "access-control-allow-headers"?: string | undefined; + "access-control-allow-methods"?: string | undefined; + "access-control-allow-origin"?: string | undefined; + "access-control-expose-headers"?: string | undefined; + "access-control-max-age"?: string | undefined; + "access-control-request-headers"?: string | undefined; + "access-control-request-method"?: string | undefined; + age?: string | undefined; + allow?: string | undefined; + "alt-svc"?: string | undefined; + authorization?: string | undefined; + "cache-control"?: string | undefined; + connection?: string | undefined; + "content-disposition"?: string | undefined; + "content-encoding"?: string | undefined; + "content-language"?: string | undefined; + "content-length"?: string | undefined; + "content-location"?: string | undefined; + "content-range"?: string | undefined; + "content-type"?: string | undefined; + cookie?: string | undefined; + date?: string | undefined; + etag?: string | undefined; + expect?: string | undefined; + expires?: string | undefined; + forwarded?: string | undefined; + from?: string | undefined; + host?: string | undefined; + "if-match"?: string | undefined; + "if-modified-since"?: string | undefined; + "if-none-match"?: string | undefined; + "if-unmodified-since"?: string | undefined; + "last-modified"?: string | undefined; + location?: string | undefined; + origin?: string | undefined; + pragma?: string | undefined; + "proxy-authenticate"?: string | undefined; + "proxy-authorization"?: string | undefined; + "public-key-pins"?: string | undefined; + range?: string | undefined; + referer?: string | undefined; + "retry-after"?: string | undefined; + "sec-fetch-site"?: string | undefined; + "sec-fetch-mode"?: string | undefined; + "sec-fetch-user"?: string | undefined; + "sec-fetch-dest"?: string | undefined; + "sec-websocket-accept"?: string | undefined; + "sec-websocket-extensions"?: string | undefined; + "sec-websocket-key"?: string | undefined; + "sec-websocket-protocol"?: string | undefined; + "sec-websocket-version"?: string | undefined; + "set-cookie"?: string[] | undefined; + "strict-transport-security"?: string | undefined; + tk?: string | undefined; + trailer?: string | undefined; + "transfer-encoding"?: string | undefined; + upgrade?: string | undefined; + "user-agent"?: string | undefined; + vary?: string | undefined; + via?: string | undefined; + warning?: string | undefined; + "www-authenticate"?: string | undefined; + } + // outgoing headers allows numbers (as they are converted internally to strings) + type OutgoingHttpHeader = number | string | string[]; + interface OutgoingHttpHeaders extends NodeJS.Dict { + accept?: string | string[] | undefined; + "accept-charset"?: string | string[] | undefined; + "accept-encoding"?: string | string[] | undefined; + "accept-language"?: string | string[] | undefined; + "accept-ranges"?: string | undefined; + "access-control-allow-credentials"?: string | undefined; + "access-control-allow-headers"?: string | undefined; + "access-control-allow-methods"?: string | undefined; + "access-control-allow-origin"?: string | undefined; + "access-control-expose-headers"?: string | undefined; + "access-control-max-age"?: string | undefined; + "access-control-request-headers"?: string | undefined; + "access-control-request-method"?: string | undefined; + age?: string | undefined; + allow?: string | undefined; + authorization?: string | undefined; + "cache-control"?: string | undefined; + "cdn-cache-control"?: string | undefined; + connection?: string | string[] | undefined; + "content-disposition"?: string | undefined; + "content-encoding"?: string | undefined; + "content-language"?: string | undefined; + "content-length"?: string | number | undefined; + "content-location"?: string | undefined; + "content-range"?: string | undefined; + "content-security-policy"?: string | undefined; + "content-security-policy-report-only"?: string | undefined; + cookie?: string | string[] | undefined; + dav?: string | string[] | undefined; + dnt?: string | undefined; + date?: string | undefined; + etag?: string | undefined; + expect?: string | undefined; + expires?: string | undefined; + forwarded?: string | undefined; + from?: string | undefined; + host?: string | undefined; + "if-match"?: string | undefined; + "if-modified-since"?: string | undefined; + "if-none-match"?: string | undefined; + "if-range"?: string | undefined; + "if-unmodified-since"?: string | undefined; + "last-modified"?: string | undefined; + link?: string | string[] | undefined; + location?: string | undefined; + "max-forwards"?: string | undefined; + origin?: string | undefined; + pragma?: string | string[] | undefined; + "proxy-authenticate"?: string | string[] | undefined; + "proxy-authorization"?: string | undefined; + "public-key-pins"?: string | undefined; + "public-key-pins-report-only"?: string | undefined; + range?: string | undefined; + referer?: string | undefined; + "referrer-policy"?: string | undefined; + refresh?: string | undefined; + "retry-after"?: string | undefined; + "sec-websocket-accept"?: string | undefined; + "sec-websocket-extensions"?: string | string[] | undefined; + "sec-websocket-key"?: string | undefined; + "sec-websocket-protocol"?: string | string[] | undefined; + "sec-websocket-version"?: string | undefined; + server?: string | undefined; + "set-cookie"?: string | string[] | undefined; + "strict-transport-security"?: string | undefined; + te?: string | undefined; + trailer?: string | undefined; + "transfer-encoding"?: string | undefined; + "user-agent"?: string | undefined; + upgrade?: string | undefined; + "upgrade-insecure-requests"?: string | undefined; + vary?: string | undefined; + via?: string | string[] | undefined; + warning?: string | undefined; + "www-authenticate"?: string | string[] | undefined; + "x-content-type-options"?: string | undefined; + "x-dns-prefetch-control"?: string | undefined; + "x-frame-options"?: string | undefined; + "x-xss-protection"?: string | undefined; + } + interface ClientRequestArgs extends Pick { + _defaultAgent?: Agent | undefined; + agent?: Agent | boolean | undefined; + auth?: string | null | undefined; + createConnection?: + | (( + options: ClientRequestArgs, + oncreate: (err: Error | null, socket: stream.Duplex) => void, + ) => stream.Duplex | null | undefined) + | undefined; + defaultPort?: number | string | undefined; + family?: number | undefined; + headers?: OutgoingHttpHeaders | readonly string[] | undefined; + host?: string | null | undefined; + hostname?: string | null | undefined; + insecureHTTPParser?: boolean | undefined; + localAddress?: string | undefined; + localPort?: number | undefined; + lookup?: LookupFunction | undefined; + /** + * @default 16384 + */ + maxHeaderSize?: number | undefined; + method?: string | undefined; + path?: string | null | undefined; + port?: number | string | null | undefined; + protocol?: string | null | undefined; + setHost?: boolean | undefined; + signal?: AbortSignal | undefined; + socketPath?: string | undefined; + timeout?: number | undefined; + uniqueHeaders?: Array | undefined; + joinDuplicateHeaders?: boolean | undefined; + } + interface ServerOptions< + Request extends typeof IncomingMessage = typeof IncomingMessage, + Response extends typeof ServerResponse> = typeof ServerResponse, + > { + /** + * Specifies the `IncomingMessage` class to be used. Useful for extending the original `IncomingMessage`. + */ + IncomingMessage?: Request | undefined; + /** + * Specifies the `ServerResponse` class to be used. Useful for extending the original `ServerResponse`. + */ + ServerResponse?: Response | undefined; + /** + * Sets the timeout value in milliseconds for receiving the entire request from the client. + * @see Server.requestTimeout for more information. + * @default 300000 + * @since v18.0.0 + */ + requestTimeout?: number | undefined; + /** + * It joins the field line values of multiple headers in a request with `, ` instead of discarding the duplicates. + * @default false + * @since v18.14.0 + */ + joinDuplicateHeaders?: boolean | undefined; + /** + * The number of milliseconds of inactivity a server needs to wait for additional incoming data, + * after it has finished writing the last response, before a socket will be destroyed. + * @see Server.keepAliveTimeout for more information. + * @default 5000 + * @since v18.0.0 + */ + keepAliveTimeout?: number | undefined; + /** + * Sets the interval value in milliseconds to check for request and headers timeout in incomplete requests. + * @default 30000 + */ + connectionsCheckingInterval?: number | undefined; + /** + * Sets the timeout value in milliseconds for receiving the complete HTTP headers from the client. + * See {@link Server.headersTimeout} for more information. + * @default 60000 + * @since 18.0.0 + */ + headersTimeout?: number | undefined; + /** + * Optionally overrides all `socket`s' `readableHighWaterMark` and `writableHighWaterMark`. + * This affects `highWaterMark` property of both `IncomingMessage` and `ServerResponse`. + * Default: @see stream.getDefaultHighWaterMark(). + * @since v20.1.0 + */ + highWaterMark?: number | undefined; + /** + * Use an insecure HTTP parser that accepts invalid HTTP headers when `true`. + * Using the insecure parser should be avoided. + * See --insecure-http-parser for more information. + * @default false + */ + insecureHTTPParser?: boolean | undefined; + /** + * Optionally overrides the value of `--max-http-header-size` for requests received by + * this server, i.e. the maximum length of request headers in bytes. + * @default 16384 + * @since v13.3.0 + */ + maxHeaderSize?: number | undefined; + /** + * If set to `true`, it disables the use of Nagle's algorithm immediately after a new incoming connection is received. + * @default true + * @since v16.5.0 + */ + noDelay?: boolean | undefined; + /** + * If set to `true`, it forces the server to respond with a 400 (Bad Request) status code + * to any HTTP/1.1 request message that lacks a Host header (as mandated by the specification). + * @default true + * @since 20.0.0 + */ + requireHostHeader?: boolean | undefined; + /** + * If set to `true`, it enables keep-alive functionality on the socket immediately after a new incoming connection is received, + * similarly on what is done in `socket.setKeepAlive([enable][, initialDelay])`. + * @default false + * @since v16.5.0 + */ + keepAlive?: boolean | undefined; + /** + * If set to a positive number, it sets the initial delay before the first keepalive probe is sent on an idle socket. + * @default 0 + * @since v16.5.0 + */ + keepAliveInitialDelay?: number | undefined; + /** + * A list of response headers that should be sent only once. + * If the header's value is an array, the items will be joined using `; `. + */ + uniqueHeaders?: Array | undefined; + /** + * If set to `true`, an error is thrown when writing to an HTTP response which does not have a body. + * @default false + * @since v18.17.0, v20.2.0 + */ + rejectNonStandardBodyWrites?: boolean | undefined; + } + type RequestListener< + Request extends typeof IncomingMessage = typeof IncomingMessage, + Response extends typeof ServerResponse> = typeof ServerResponse, + > = (req: InstanceType, res: InstanceType & { req: InstanceType }) => void; + /** + * @since v0.1.17 + */ + class Server< + Request extends typeof IncomingMessage = typeof IncomingMessage, + Response extends typeof ServerResponse> = typeof ServerResponse, + > extends NetServer { + constructor(requestListener?: RequestListener); + constructor(options: ServerOptions, requestListener?: RequestListener); + /** + * Sets the timeout value for sockets, and emits a `'timeout'` event on + * the Server object, passing the socket as an argument, if a timeout + * occurs. + * + * If there is a `'timeout'` event listener on the Server object, then it + * will be called with the timed-out socket as an argument. + * + * By default, the Server does not timeout sockets. However, if a callback + * is assigned to the Server's `'timeout'` event, timeouts must be handled + * explicitly. + * @since v0.9.12 + * @param [msecs=0 (no timeout)] + */ + setTimeout(msecs?: number, callback?: (socket: Socket) => void): this; + setTimeout(callback: (socket: Socket) => void): this; + /** + * Limits maximum incoming headers count. If set to 0, no limit will be applied. + * @since v0.7.0 + */ + maxHeadersCount: number | null; + /** + * The maximum number of requests socket can handle + * before closing keep alive connection. + * + * A value of `0` will disable the limit. + * + * When the limit is reached it will set the `Connection` header value to `close`, + * but will not actually close the connection, subsequent requests sent + * after the limit is reached will get `503 Service Unavailable` as a response. + * @since v16.10.0 + */ + maxRequestsPerSocket: number | null; + /** + * The number of milliseconds of inactivity before a socket is presumed + * to have timed out. + * + * A value of `0` will disable the timeout behavior on incoming connections. + * + * The socket timeout logic is set up on connection, so changing this + * value only affects new connections to the server, not any existing connections. + * @since v0.9.12 + */ + timeout: number; + /** + * Limit the amount of time the parser will wait to receive the complete HTTP + * headers. + * + * If the timeout expires, the server responds with status 408 without + * forwarding the request to the request listener and then closes the connection. + * + * It must be set to a non-zero value (e.g. 120 seconds) to protect against + * potential Denial-of-Service attacks in case the server is deployed without a + * reverse proxy in front. + * @since v11.3.0, v10.14.0 + */ + headersTimeout: number; + /** + * The number of milliseconds of inactivity a server needs to wait for additional + * incoming data, after it has finished writing the last response, before a socket + * will be destroyed. If the server receives new data before the keep-alive + * timeout has fired, it will reset the regular inactivity timeout, i.e., `server.timeout`. + * + * A value of `0` will disable the keep-alive timeout behavior on incoming + * connections. + * A value of `0` makes the http server behave similarly to Node.js versions prior + * to 8.0.0, which did not have a keep-alive timeout. + * + * The socket timeout logic is set up on connection, so changing this value only + * affects new connections to the server, not any existing connections. + * @since v8.0.0 + */ + keepAliveTimeout: number; + /** + * Sets the timeout value in milliseconds for receiving the entire request from + * the client. + * + * If the timeout expires, the server responds with status 408 without + * forwarding the request to the request listener and then closes the connection. + * + * It must be set to a non-zero value (e.g. 120 seconds) to protect against + * potential Denial-of-Service attacks in case the server is deployed without a + * reverse proxy in front. + * @since v14.11.0 + */ + requestTimeout: number; + /** + * Closes all connections connected to this server. + * @since v18.2.0 + */ + closeAllConnections(): void; + /** + * Closes all connections connected to this server which are not sending a request + * or waiting for a response. + * @since v18.2.0 + */ + closeIdleConnections(): void; + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: "close", listener: () => void): this; + addListener(event: "connection", listener: (socket: Socket) => void): this; + addListener(event: "error", listener: (err: Error) => void): this; + addListener(event: "listening", listener: () => void): this; + addListener(event: "checkContinue", listener: RequestListener): this; + addListener(event: "checkExpectation", listener: RequestListener): this; + addListener(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this; + addListener( + event: "connect", + listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, + ): this; + addListener(event: "dropRequest", listener: (req: InstanceType, socket: stream.Duplex) => void): this; + addListener(event: "request", listener: RequestListener): this; + addListener( + event: "upgrade", + listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, + ): this; + emit(event: string, ...args: any[]): boolean; + emit(event: "close"): boolean; + emit(event: "connection", socket: Socket): boolean; + emit(event: "error", err: Error): boolean; + emit(event: "listening"): boolean; + emit( + event: "checkContinue", + req: InstanceType, + res: InstanceType & { req: InstanceType }, + ): boolean; + emit( + event: "checkExpectation", + req: InstanceType, + res: InstanceType & { req: InstanceType }, + ): boolean; + emit(event: "clientError", err: Error, socket: stream.Duplex): boolean; + emit(event: "connect", req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer): boolean; + emit(event: "dropRequest", req: InstanceType, socket: stream.Duplex): boolean; + emit( + event: "request", + req: InstanceType, + res: InstanceType & { req: InstanceType }, + ): boolean; + emit(event: "upgrade", req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer): boolean; + on(event: string, listener: (...args: any[]) => void): this; + on(event: "close", listener: () => void): this; + on(event: "connection", listener: (socket: Socket) => void): this; + on(event: "error", listener: (err: Error) => void): this; + on(event: "listening", listener: () => void): this; + on(event: "checkContinue", listener: RequestListener): this; + on(event: "checkExpectation", listener: RequestListener): this; + on(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this; + on( + event: "connect", + listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, + ): this; + on(event: "dropRequest", listener: (req: InstanceType, socket: stream.Duplex) => void): this; + on(event: "request", listener: RequestListener): this; + on( + event: "upgrade", + listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, + ): this; + once(event: string, listener: (...args: any[]) => void): this; + once(event: "close", listener: () => void): this; + once(event: "connection", listener: (socket: Socket) => void): this; + once(event: "error", listener: (err: Error) => void): this; + once(event: "listening", listener: () => void): this; + once(event: "checkContinue", listener: RequestListener): this; + once(event: "checkExpectation", listener: RequestListener): this; + once(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this; + once( + event: "connect", + listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, + ): this; + once(event: "dropRequest", listener: (req: InstanceType, socket: stream.Duplex) => void): this; + once(event: "request", listener: RequestListener): this; + once( + event: "upgrade", + listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, + ): this; + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: "close", listener: () => void): this; + prependListener(event: "connection", listener: (socket: Socket) => void): this; + prependListener(event: "error", listener: (err: Error) => void): this; + prependListener(event: "listening", listener: () => void): this; + prependListener(event: "checkContinue", listener: RequestListener): this; + prependListener(event: "checkExpectation", listener: RequestListener): this; + prependListener(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this; + prependListener( + event: "connect", + listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, + ): this; + prependListener( + event: "dropRequest", + listener: (req: InstanceType, socket: stream.Duplex) => void, + ): this; + prependListener(event: "request", listener: RequestListener): this; + prependListener( + event: "upgrade", + listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, + ): this; + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: "close", listener: () => void): this; + prependOnceListener(event: "connection", listener: (socket: Socket) => void): this; + prependOnceListener(event: "error", listener: (err: Error) => void): this; + prependOnceListener(event: "listening", listener: () => void): this; + prependOnceListener(event: "checkContinue", listener: RequestListener): this; + prependOnceListener(event: "checkExpectation", listener: RequestListener): this; + prependOnceListener(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this; + prependOnceListener( + event: "connect", + listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, + ): this; + prependOnceListener( + event: "dropRequest", + listener: (req: InstanceType, socket: stream.Duplex) => void, + ): this; + prependOnceListener(event: "request", listener: RequestListener): this; + prependOnceListener( + event: "upgrade", + listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, + ): this; + } + /** + * This class serves as the parent class of {@link ClientRequest} and {@link ServerResponse}. It is an abstract outgoing message from + * the perspective of the participants of an HTTP transaction. + * @since v0.1.17 + */ + class OutgoingMessage extends stream.Writable { + readonly req: Request; + chunkedEncoding: boolean; + shouldKeepAlive: boolean; + useChunkedEncodingByDefault: boolean; + sendDate: boolean; + /** + * @deprecated Use `writableEnded` instead. + */ + finished: boolean; + /** + * Read-only. `true` if the headers were sent, otherwise `false`. + * @since v0.9.3 + */ + readonly headersSent: boolean; + /** + * Alias of `outgoingMessage.socket`. + * @since v0.3.0 + * @deprecated Since v15.12.0,v14.17.1 - Use `socket` instead. + */ + readonly connection: Socket | null; + /** + * Reference to the underlying socket. Usually, users will not want to access + * this property. + * + * After calling `outgoingMessage.end()`, this property will be nulled. + * @since v0.3.0 + */ + readonly socket: Socket | null; + constructor(); + /** + * Once a socket is associated with the message and is connected, `socket.setTimeout()` will be called with `msecs` as the first parameter. + * @since v0.9.12 + * @param callback Optional function to be called when a timeout occurs. Same as binding to the `timeout` event. + */ + setTimeout(msecs: number, callback?: () => void): this; + /** + * Sets a single header value. If the header already exists in the to-be-sent + * headers, its value will be replaced. Use an array of strings to send multiple + * headers with the same name. + * @since v0.4.0 + * @param name Header name + * @param value Header value + */ + setHeader(name: string, value: number | string | readonly string[]): this; + /** + * Sets multiple header values for implicit headers. headers must be an instance of + * `Headers` or `Map`, if a header already exists in the to-be-sent headers, its + * value will be replaced. + * + * ```js + * const headers = new Headers({ foo: 'bar' }); + * outgoingMessage.setHeaders(headers); + * ``` + * + * or + * + * ```js + * const headers = new Map([['foo', 'bar']]); + * outgoingMessage.setHeaders(headers); + * ``` + * + * When headers have been set with `outgoingMessage.setHeaders()`, they will be + * merged with any headers passed to `response.writeHead()`, with the headers passed + * to `response.writeHead()` given precedence. + * + * ```js + * // Returns content-type = text/plain + * const server = http.createServer((req, res) => { + * const headers = new Headers({ 'Content-Type': 'text/html' }); + * res.setHeaders(headers); + * res.writeHead(200, { 'Content-Type': 'text/plain' }); + * res.end('ok'); + * }); + * ``` + * + * @since v19.6.0, v18.15.0 + * @param name Header name + * @param value Header value + */ + setHeaders(headers: Headers | Map): this; + /** + * Append a single header value to the header object. + * + * If the value is an array, this is equivalent to calling this method multiple + * times. + * + * If there were no previous values for the header, this is equivalent to calling `outgoingMessage.setHeader(name, value)`. + * + * Depending of the value of `options.uniqueHeaders` when the client request or the + * server were created, this will end up in the header being sent multiple times or + * a single time with values joined using `; `. + * @since v18.3.0, v16.17.0 + * @param name Header name + * @param value Header value + */ + appendHeader(name: string, value: string | readonly string[]): this; + /** + * Gets the value of the HTTP header with the given name. If that header is not + * set, the returned value will be `undefined`. + * @since v0.4.0 + * @param name Name of header + */ + getHeader(name: string): number | string | string[] | undefined; + /** + * Returns a shallow copy of the current outgoing headers. Since a shallow + * copy is used, array values may be mutated without additional calls to + * various header-related HTTP module methods. The keys of the returned + * object are the header names and the values are the respective header + * values. All header names are lowercase. + * + * The object returned by the `outgoingMessage.getHeaders()` method does + * not prototypically inherit from the JavaScript `Object`. This means that + * typical `Object` methods such as `obj.toString()`, `obj.hasOwnProperty()`, + * and others are not defined and will not work. + * + * ```js + * outgoingMessage.setHeader('Foo', 'bar'); + * outgoingMessage.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']); + * + * const headers = outgoingMessage.getHeaders(); + * // headers === { foo: 'bar', 'set-cookie': ['foo=bar', 'bar=baz'] } + * ``` + * @since v7.7.0 + */ + getHeaders(): OutgoingHttpHeaders; + /** + * Returns an array containing the unique names of the current outgoing headers. + * All names are lowercase. + * @since v7.7.0 + */ + getHeaderNames(): string[]; + /** + * Returns `true` if the header identified by `name` is currently set in the + * outgoing headers. The header name is case-insensitive. + * + * ```js + * const hasContentType = outgoingMessage.hasHeader('content-type'); + * ``` + * @since v7.7.0 + */ + hasHeader(name: string): boolean; + /** + * Removes a header that is queued for implicit sending. + * + * ```js + * outgoingMessage.removeHeader('Content-Encoding'); + * ``` + * @since v0.4.0 + * @param name Header name + */ + removeHeader(name: string): void; + /** + * Adds HTTP trailers (headers but at the end of the message) to the message. + * + * Trailers will **only** be emitted if the message is chunked encoded. If not, + * the trailers will be silently discarded. + * + * HTTP requires the `Trailer` header to be sent to emit trailers, + * with a list of header field names in its value, e.g. + * + * ```js + * message.writeHead(200, { 'Content-Type': 'text/plain', + * 'Trailer': 'Content-MD5' }); + * message.write(fileData); + * message.addTrailers({ 'Content-MD5': '7895bf4b8828b55ceaf47747b4bca667' }); + * message.end(); + * ``` + * + * Attempting to set a header field name or value that contains invalid characters + * will result in a `TypeError` being thrown. + * @since v0.3.0 + */ + addTrailers(headers: OutgoingHttpHeaders | ReadonlyArray<[string, string]>): void; + /** + * Flushes the message headers. + * + * For efficiency reason, Node.js normally buffers the message headers + * until `outgoingMessage.end()` is called or the first chunk of message data + * is written. It then tries to pack the headers and data into a single TCP + * packet. + * + * It is usually desired (it saves a TCP round-trip), but not when the first + * data is not sent until possibly much later. `outgoingMessage.flushHeaders()` bypasses the optimization and kickstarts the message. + * @since v1.6.0 + */ + flushHeaders(): void; + } + /** + * This object is created internally by an HTTP server, not by the user. It is + * passed as the second parameter to the `'request'` event. + * @since v0.1.17 + */ + class ServerResponse extends OutgoingMessage { + /** + * When using implicit headers (not calling `response.writeHead()` explicitly), + * this property controls the status code that will be sent to the client when + * the headers get flushed. + * + * ```js + * response.statusCode = 404; + * ``` + * + * After response header was sent to the client, this property indicates the + * status code which was sent out. + * @since v0.4.0 + */ + statusCode: number; + /** + * When using implicit headers (not calling `response.writeHead()` explicitly), + * this property controls the status message that will be sent to the client when + * the headers get flushed. If this is left as `undefined` then the standard + * message for the status code will be used. + * + * ```js + * response.statusMessage = 'Not found'; + * ``` + * + * After response header was sent to the client, this property indicates the + * status message which was sent out. + * @since v0.11.8 + */ + statusMessage: string; + /** + * If set to `true`, Node.js will check whether the `Content-Length` header value and the size of the body, in bytes, are equal. + * Mismatching the `Content-Length` header value will result + * in an `Error` being thrown, identified by `code:``'ERR_HTTP_CONTENT_LENGTH_MISMATCH'`. + * @since v18.10.0, v16.18.0 + */ + strictContentLength: boolean; + constructor(req: Request); + assignSocket(socket: Socket): void; + detachSocket(socket: Socket): void; + /** + * Sends an HTTP/1.1 100 Continue message to the client, indicating that + * the request body should be sent. See the `'checkContinue'` event on `Server`. + * @since v0.3.0 + */ + writeContinue(callback?: () => void): void; + /** + * Sends an HTTP/1.1 103 Early Hints message to the client with a Link header, + * indicating that the user agent can preload/preconnect the linked resources. + * The `hints` is an object containing the values of headers to be sent with + * early hints message. The optional `callback` argument will be called when + * the response message has been written. + * + * **Example** + * + * ```js + * const earlyHintsLink = '; rel=preload; as=style'; + * response.writeEarlyHints({ + * 'link': earlyHintsLink, + * }); + * + * const earlyHintsLinks = [ + * '; rel=preload; as=style', + * '; rel=preload; as=script', + * ]; + * response.writeEarlyHints({ + * 'link': earlyHintsLinks, + * 'x-trace-id': 'id for diagnostics', + * }); + * + * const earlyHintsCallback = () => console.log('early hints message sent'); + * response.writeEarlyHints({ + * 'link': earlyHintsLinks, + * }, earlyHintsCallback); + * ``` + * @since v18.11.0 + * @param hints An object containing the values of headers + * @param callback Will be called when the response message has been written + */ + writeEarlyHints(hints: Record, callback?: () => void): void; + /** + * Sends a response header to the request. The status code is a 3-digit HTTP + * status code, like `404`. The last argument, `headers`, are the response headers. + * Optionally one can give a human-readable `statusMessage` as the second + * argument. + * + * `headers` may be an `Array` where the keys and values are in the same list. + * It is _not_ a list of tuples. So, the even-numbered offsets are key values, + * and the odd-numbered offsets are the associated values. The array is in the same + * format as `request.rawHeaders`. + * + * Returns a reference to the `ServerResponse`, so that calls can be chained. + * + * ```js + * const body = 'hello world'; + * response + * .writeHead(200, { + * 'Content-Length': Buffer.byteLength(body), + * 'Content-Type': 'text/plain', + * }) + * .end(body); + * ``` + * + * This method must only be called once on a message and it must + * be called before `response.end()` is called. + * + * If `response.write()` or `response.end()` are called before calling + * this, the implicit/mutable headers will be calculated and call this function. + * + * When headers have been set with `response.setHeader()`, they will be merged + * with any headers passed to `response.writeHead()`, with the headers passed + * to `response.writeHead()` given precedence. + * + * If this method is called and `response.setHeader()` has not been called, + * it will directly write the supplied header values onto the network channel + * without caching internally, and the `response.getHeader()` on the header + * will not yield the expected result. If progressive population of headers is + * desired with potential future retrieval and modification, use `response.setHeader()` instead. + * + * ```js + * // Returns content-type = text/plain + * const server = http.createServer((req, res) => { + * res.setHeader('Content-Type', 'text/html'); + * res.setHeader('X-Foo', 'bar'); + * res.writeHead(200, { 'Content-Type': 'text/plain' }); + * res.end('ok'); + * }); + * ``` + * + * `Content-Length` is read in bytes, not characters. Use `Buffer.byteLength()` to determine the length of the body in bytes. Node.js + * will check whether `Content-Length` and the length of the body which has + * been transmitted are equal or not. + * + * Attempting to set a header field name or value that contains invalid characters + * will result in a \[`Error`\]\[\] being thrown. + * @since v0.1.30 + */ + writeHead( + statusCode: number, + statusMessage?: string, + headers?: OutgoingHttpHeaders | OutgoingHttpHeader[], + ): this; + writeHead(statusCode: number, headers?: OutgoingHttpHeaders | OutgoingHttpHeader[]): this; + /** + * Sends a HTTP/1.1 102 Processing message to the client, indicating that + * the request body should be sent. + * @since v10.0.0 + */ + writeProcessing(callback?: () => void): void; + } + interface InformationEvent { + statusCode: number; + statusMessage: string; + httpVersion: string; + httpVersionMajor: number; + httpVersionMinor: number; + headers: IncomingHttpHeaders; + rawHeaders: string[]; + } + /** + * This object is created internally and returned from {@link request}. It + * represents an _in-progress_ request whose header has already been queued. The + * header is still mutable using the `setHeader(name, value)`, `getHeader(name)`, `removeHeader(name)` API. The actual header will + * be sent along with the first data chunk or when calling `request.end()`. + * + * To get the response, add a listener for `'response'` to the request object. `'response'` will be emitted from the request object when the response + * headers have been received. The `'response'` event is executed with one + * argument which is an instance of {@link IncomingMessage}. + * + * During the `'response'` event, one can add listeners to the + * response object; particularly to listen for the `'data'` event. + * + * If no `'response'` handler is added, then the response will be + * entirely discarded. However, if a `'response'` event handler is added, + * then the data from the response object **must** be consumed, either by + * calling `response.read()` whenever there is a `'readable'` event, or + * by adding a `'data'` handler, or by calling the `.resume()` method. + * Until the data is consumed, the `'end'` event will not fire. Also, until + * the data is read it will consume memory that can eventually lead to a + * 'process out of memory' error. + * + * For backward compatibility, `res` will only emit `'error'` if there is an `'error'` listener registered. + * + * Set `Content-Length` header to limit the response body size. + * If `response.strictContentLength` is set to `true`, mismatching the `Content-Length` header value will result in an `Error` being thrown, + * identified by `code:``'ERR_HTTP_CONTENT_LENGTH_MISMATCH'`. + * + * `Content-Length` value should be in bytes, not characters. Use `Buffer.byteLength()` to determine the length of the body in bytes. + * @since v0.1.17 + */ + class ClientRequest extends OutgoingMessage { + /** + * The `request.aborted` property will be `true` if the request has + * been aborted. + * @since v0.11.14 + * @deprecated Since v17.0.0, v16.12.0 - Check `destroyed` instead. + */ + aborted: boolean; + /** + * The request host. + * @since v14.5.0, v12.19.0 + */ + host: string; + /** + * The request protocol. + * @since v14.5.0, v12.19.0 + */ + protocol: string; + /** + * When sending request through a keep-alive enabled agent, the underlying socket + * might be reused. But if server closes connection at unfortunate time, client + * may run into a 'ECONNRESET' error. + * + * ```js + * import http from 'node:http'; + * + * // Server has a 5 seconds keep-alive timeout by default + * http + * .createServer((req, res) => { + * res.write('hello\n'); + * res.end(); + * }) + * .listen(3000); + * + * setInterval(() => { + * // Adapting a keep-alive agent + * http.get('http://localhost:3000', { agent }, (res) => { + * res.on('data', (data) => { + * // Do nothing + * }); + * }); + * }, 5000); // Sending request on 5s interval so it's easy to hit idle timeout + * ``` + * + * By marking a request whether it reused socket or not, we can do + * automatic error retry base on it. + * + * ```js + * import http from 'node:http'; + * const agent = new http.Agent({ keepAlive: true }); + * + * function retriableRequest() { + * const req = http + * .get('http://localhost:3000', { agent }, (res) => { + * // ... + * }) + * .on('error', (err) => { + * // Check if retry is needed + * if (req.reusedSocket && err.code === 'ECONNRESET') { + * retriableRequest(); + * } + * }); + * } + * + * retriableRequest(); + * ``` + * @since v13.0.0, v12.16.0 + */ + reusedSocket: boolean; + /** + * Limits maximum response headers count. If set to 0, no limit will be applied. + */ + maxHeadersCount: number; + constructor(url: string | URL | ClientRequestArgs, cb?: (res: IncomingMessage) => void); + /** + * The request method. + * @since v0.1.97 + */ + method: string; + /** + * The request path. + * @since v0.4.0 + */ + path: string; + /** + * Marks the request as aborting. Calling this will cause remaining data + * in the response to be dropped and the socket to be destroyed. + * @since v0.3.8 + * @deprecated Since v14.1.0,v13.14.0 - Use `destroy` instead. + */ + abort(): void; + onSocket(socket: Socket): void; + /** + * Once a socket is assigned to this request and is connected `socket.setTimeout()` will be called. + * @since v0.5.9 + * @param timeout Milliseconds before a request times out. + * @param callback Optional function to be called when a timeout occurs. Same as binding to the `'timeout'` event. + */ + setTimeout(timeout: number, callback?: () => void): this; + /** + * Once a socket is assigned to this request and is connected `socket.setNoDelay()` will be called. + * @since v0.5.9 + */ + setNoDelay(noDelay?: boolean): void; + /** + * Once a socket is assigned to this request and is connected `socket.setKeepAlive()` will be called. + * @since v0.5.9 + */ + setSocketKeepAlive(enable?: boolean, initialDelay?: number): void; + /** + * Returns an array containing the unique names of the current outgoing raw + * headers. Header names are returned with their exact casing being set. + * + * ```js + * request.setHeader('Foo', 'bar'); + * request.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']); + * + * const headerNames = request.getRawHeaderNames(); + * // headerNames === ['Foo', 'Set-Cookie'] + * ``` + * @since v15.13.0, v14.17.0 + */ + getRawHeaderNames(): string[]; + /** + * @deprecated + */ + addListener(event: "abort", listener: () => void): this; + addListener( + event: "connect", + listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, + ): this; + addListener(event: "continue", listener: () => void): this; + addListener(event: "information", listener: (info: InformationEvent) => void): this; + addListener(event: "response", listener: (response: IncomingMessage) => void): this; + addListener(event: "socket", listener: (socket: Socket) => void): this; + addListener(event: "timeout", listener: () => void): this; + addListener( + event: "upgrade", + listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, + ): this; + addListener(event: "close", listener: () => void): this; + addListener(event: "drain", listener: () => void): this; + addListener(event: "error", listener: (err: Error) => void): this; + addListener(event: "finish", listener: () => void): this; + addListener(event: "pipe", listener: (src: stream.Readable) => void): this; + addListener(event: "unpipe", listener: (src: stream.Readable) => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + /** + * @deprecated + */ + on(event: "abort", listener: () => void): this; + on( + event: "connect", + listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, + ): this; + on(event: "continue", listener: () => void): this; + on(event: "information", listener: (info: InformationEvent) => void): this; + on(event: "response", listener: (response: IncomingMessage) => void): this; + on(event: "socket", listener: (socket: Socket) => void): this; + on(event: "timeout", listener: () => void): this; + on( + event: "upgrade", + listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, + ): this; + on(event: "close", listener: () => void): this; + on(event: "drain", listener: () => void): this; + on(event: "error", listener: (err: Error) => void): this; + on(event: "finish", listener: () => void): this; + on(event: "pipe", listener: (src: stream.Readable) => void): this; + on(event: "unpipe", listener: (src: stream.Readable) => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + /** + * @deprecated + */ + once(event: "abort", listener: () => void): this; + once( + event: "connect", + listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, + ): this; + once(event: "continue", listener: () => void): this; + once(event: "information", listener: (info: InformationEvent) => void): this; + once(event: "response", listener: (response: IncomingMessage) => void): this; + once(event: "socket", listener: (socket: Socket) => void): this; + once(event: "timeout", listener: () => void): this; + once( + event: "upgrade", + listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, + ): this; + once(event: "close", listener: () => void): this; + once(event: "drain", listener: () => void): this; + once(event: "error", listener: (err: Error) => void): this; + once(event: "finish", listener: () => void): this; + once(event: "pipe", listener: (src: stream.Readable) => void): this; + once(event: "unpipe", listener: (src: stream.Readable) => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + /** + * @deprecated + */ + prependListener(event: "abort", listener: () => void): this; + prependListener( + event: "connect", + listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, + ): this; + prependListener(event: "continue", listener: () => void): this; + prependListener(event: "information", listener: (info: InformationEvent) => void): this; + prependListener(event: "response", listener: (response: IncomingMessage) => void): this; + prependListener(event: "socket", listener: (socket: Socket) => void): this; + prependListener(event: "timeout", listener: () => void): this; + prependListener( + event: "upgrade", + listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, + ): this; + prependListener(event: "close", listener: () => void): this; + prependListener(event: "drain", listener: () => void): this; + prependListener(event: "error", listener: (err: Error) => void): this; + prependListener(event: "finish", listener: () => void): this; + prependListener(event: "pipe", listener: (src: stream.Readable) => void): this; + prependListener(event: "unpipe", listener: (src: stream.Readable) => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + /** + * @deprecated + */ + prependOnceListener(event: "abort", listener: () => void): this; + prependOnceListener( + event: "connect", + listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, + ): this; + prependOnceListener(event: "continue", listener: () => void): this; + prependOnceListener(event: "information", listener: (info: InformationEvent) => void): this; + prependOnceListener(event: "response", listener: (response: IncomingMessage) => void): this; + prependOnceListener(event: "socket", listener: (socket: Socket) => void): this; + prependOnceListener(event: "timeout", listener: () => void): this; + prependOnceListener( + event: "upgrade", + listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, + ): this; + prependOnceListener(event: "close", listener: () => void): this; + prependOnceListener(event: "drain", listener: () => void): this; + prependOnceListener(event: "error", listener: (err: Error) => void): this; + prependOnceListener(event: "finish", listener: () => void): this; + prependOnceListener(event: "pipe", listener: (src: stream.Readable) => void): this; + prependOnceListener(event: "unpipe", listener: (src: stream.Readable) => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + } + /** + * An `IncomingMessage` object is created by {@link Server} or {@link ClientRequest} and passed as the first argument to the `'request'` and `'response'` event respectively. It may be used to + * access response + * status, headers, and data. + * + * Different from its `socket` value which is a subclass of `stream.Duplex`, the `IncomingMessage` itself extends `stream.Readable` and is created separately to + * parse and emit the incoming HTTP headers and payload, as the underlying socket + * may be reused multiple times in case of keep-alive. + * @since v0.1.17 + */ + class IncomingMessage extends stream.Readable { + constructor(socket: Socket); + /** + * The `message.aborted` property will be `true` if the request has + * been aborted. + * @since v10.1.0 + * @deprecated Since v17.0.0,v16.12.0 - Check `message.destroyed` from stream.Readable. + */ + aborted: boolean; + /** + * In case of server request, the HTTP version sent by the client. In the case of + * client response, the HTTP version of the connected-to server. + * Probably either `'1.1'` or `'1.0'`. + * + * Also `message.httpVersionMajor` is the first integer and `message.httpVersionMinor` is the second. + * @since v0.1.1 + */ + httpVersion: string; + httpVersionMajor: number; + httpVersionMinor: number; + /** + * The `message.complete` property will be `true` if a complete HTTP message has + * been received and successfully parsed. + * + * This property is particularly useful as a means of determining if a client or + * server fully transmitted a message before a connection was terminated: + * + * ```js + * const req = http.request({ + * host: '127.0.0.1', + * port: 8080, + * method: 'POST', + * }, (res) => { + * res.resume(); + * res.on('end', () => { + * if (!res.complete) + * console.error( + * 'The connection was terminated while the message was still being sent'); + * }); + * }); + * ``` + * @since v0.3.0 + */ + complete: boolean; + /** + * Alias for `message.socket`. + * @since v0.1.90 + * @deprecated Since v16.0.0 - Use `socket`. + */ + connection: Socket; + /** + * The `net.Socket` object associated with the connection. + * + * With HTTPS support, use `request.socket.getPeerCertificate()` to obtain the + * client's authentication details. + * + * This property is guaranteed to be an instance of the `net.Socket` class, + * a subclass of `stream.Duplex`, unless the user specified a socket + * type other than `net.Socket` or internally nulled. + * @since v0.3.0 + */ + socket: Socket; + /** + * The request/response headers object. + * + * Key-value pairs of header names and values. Header names are lower-cased. + * + * ```js + * // Prints something like: + * // + * // { 'user-agent': 'curl/7.22.0', + * // host: '127.0.0.1:8000', + * // accept: '*' } + * console.log(request.headers); + * ``` + * + * Duplicates in raw headers are handled in the following ways, depending on the + * header name: + * + * * Duplicates of `age`, `authorization`, `content-length`, `content-type`, `etag`, `expires`, `from`, `host`, `if-modified-since`, `if-unmodified-since`, `last-modified`, `location`, + * `max-forwards`, `proxy-authorization`, `referer`, `retry-after`, `server`, or `user-agent` are discarded. + * To allow duplicate values of the headers listed above to be joined, + * use the option `joinDuplicateHeaders` in {@link request} and {@link createServer}. See RFC 9110 Section 5.3 for more + * information. + * * `set-cookie` is always an array. Duplicates are added to the array. + * * For duplicate `cookie` headers, the values are joined together with `; `. + * * For all other headers, the values are joined together with `, `. + * @since v0.1.5 + */ + headers: IncomingHttpHeaders; + /** + * Similar to `message.headers`, but there is no join logic and the values are + * always arrays of strings, even for headers received just once. + * + * ```js + * // Prints something like: + * // + * // { 'user-agent': ['curl/7.22.0'], + * // host: ['127.0.0.1:8000'], + * // accept: ['*'] } + * console.log(request.headersDistinct); + * ``` + * @since v18.3.0, v16.17.0 + */ + headersDistinct: NodeJS.Dict; + /** + * The raw request/response headers list exactly as they were received. + * + * The keys and values are in the same list. It is _not_ a + * list of tuples. So, the even-numbered offsets are key values, and the + * odd-numbered offsets are the associated values. + * + * Header names are not lowercased, and duplicates are not merged. + * + * ```js + * // Prints something like: + * // + * // [ 'user-agent', + * // 'this is invalid because there can be only one', + * // 'User-Agent', + * // 'curl/7.22.0', + * // 'Host', + * // '127.0.0.1:8000', + * // 'ACCEPT', + * // '*' ] + * console.log(request.rawHeaders); + * ``` + * @since v0.11.6 + */ + rawHeaders: string[]; + /** + * The request/response trailers object. Only populated at the `'end'` event. + * @since v0.3.0 + */ + trailers: NodeJS.Dict; + /** + * Similar to `message.trailers`, but there is no join logic and the values are + * always arrays of strings, even for headers received just once. + * Only populated at the `'end'` event. + * @since v18.3.0, v16.17.0 + */ + trailersDistinct: NodeJS.Dict; + /** + * The raw request/response trailer keys and values exactly as they were + * received. Only populated at the `'end'` event. + * @since v0.11.6 + */ + rawTrailers: string[]; + /** + * Calls `message.socket.setTimeout(msecs, callback)`. + * @since v0.5.9 + */ + setTimeout(msecs: number, callback?: () => void): this; + /** + * **Only valid for request obtained from {@link Server}.** + * + * The request method as a string. Read only. Examples: `'GET'`, `'DELETE'`. + * @since v0.1.1 + */ + method?: string | undefined; + /** + * **Only valid for request obtained from {@link Server}.** + * + * Request URL string. This contains only the URL that is present in the actual + * HTTP request. Take the following request: + * + * ```http + * GET /status?name=ryan HTTP/1.1 + * Accept: text/plain + * ``` + * + * To parse the URL into its parts: + * + * ```js + * new URL(`http://${process.env.HOST ?? 'localhost'}${request.url}`); + * ``` + * + * When `request.url` is `'/status?name=ryan'` and `process.env.HOST` is undefined: + * + * ```console + * $ node + * > new URL(`http://${process.env.HOST ?? 'localhost'}${request.url}`); + * URL { + * href: 'http://localhost/status?name=ryan', + * origin: 'http://localhost', + * protocol: 'http:', + * username: '', + * password: '', + * host: 'localhost', + * hostname: 'localhost', + * port: '', + * pathname: '/status', + * search: '?name=ryan', + * searchParams: URLSearchParams { 'name' => 'ryan' }, + * hash: '' + * } + * ``` + * + * Ensure that you set `process.env.HOST` to the server's host name, or consider replacing this part entirely. If using `req.headers.host`, ensure proper + * validation is used, as clients may specify a custom `Host` header. + * @since v0.1.90 + */ + url?: string | undefined; + /** + * **Only valid for response obtained from {@link ClientRequest}.** + * + * The 3-digit HTTP response status code. E.G. `404`. + * @since v0.1.1 + */ + statusCode?: number | undefined; + /** + * **Only valid for response obtained from {@link ClientRequest}.** + * + * The HTTP response status message (reason phrase). E.G. `OK` or `Internal Server Error`. + * @since v0.11.10 + */ + statusMessage?: string | undefined; + /** + * Calls `destroy()` on the socket that received the `IncomingMessage`. If `error` is provided, an `'error'` event is emitted on the socket and `error` is passed + * as an argument to any listeners on the event. + * @since v0.3.0 + */ + destroy(error?: Error): this; + } + interface AgentOptions extends NodeJS.PartialOptions { + /** + * Keep sockets around in a pool to be used by other requests in the future. Default = false + */ + keepAlive?: boolean | undefined; + /** + * When using HTTP KeepAlive, how often to send TCP KeepAlive packets over sockets being kept alive. Default = 1000. + * Only relevant if keepAlive is set to true. + */ + keepAliveMsecs?: number | undefined; + /** + * Maximum number of sockets to allow per host. Default for Node 0.10 is 5, default for Node 0.12 is Infinity + */ + maxSockets?: number | undefined; + /** + * Maximum number of sockets allowed for all hosts in total. Each request will use a new socket until the maximum is reached. Default: Infinity. + */ + maxTotalSockets?: number | undefined; + /** + * Maximum number of sockets to leave open in a free state. Only relevant if keepAlive is set to true. Default = 256. + */ + maxFreeSockets?: number | undefined; + /** + * Socket timeout in milliseconds. This will set the timeout after the socket is connected. + */ + timeout?: number | undefined; + /** + * Scheduling strategy to apply when picking the next free socket to use. + * @default `lifo` + */ + scheduling?: "fifo" | "lifo" | undefined; + } + /** + * An `Agent` is responsible for managing connection persistence + * and reuse for HTTP clients. It maintains a queue of pending requests + * for a given host and port, reusing a single socket connection for each + * until the queue is empty, at which time the socket is either destroyed + * or put into a pool where it is kept to be used again for requests to the + * same host and port. Whether it is destroyed or pooled depends on the `keepAlive` `option`. + * + * Pooled connections have TCP Keep-Alive enabled for them, but servers may + * still close idle connections, in which case they will be removed from the + * pool and a new connection will be made when a new HTTP request is made for + * that host and port. Servers may also refuse to allow multiple requests + * over the same connection, in which case the connection will have to be + * remade for every request and cannot be pooled. The `Agent` will still make + * the requests to that server, but each one will occur over a new connection. + * + * When a connection is closed by the client or the server, it is removed + * from the pool. Any unused sockets in the pool will be unrefed so as not + * to keep the Node.js process running when there are no outstanding requests. + * (see `socket.unref()`). + * + * It is good practice, to `destroy()` an `Agent` instance when it is no + * longer in use, because unused sockets consume OS resources. + * + * Sockets are removed from an agent when the socket emits either + * a `'close'` event or an `'agentRemove'` event. When intending to keep one + * HTTP request open for a long time without keeping it in the agent, something + * like the following may be done: + * + * ```js + * http.get(options, (res) => { + * // Do stuff + * }).on('socket', (socket) => { + * socket.emit('agentRemove'); + * }); + * ``` + * + * An agent may also be used for an individual request. By providing `{agent: false}` as an option to the `http.get()` or `http.request()` functions, a one-time use `Agent` with default options + * will be used + * for the client connection. + * + * `agent:false`: + * + * ```js + * http.get({ + * hostname: 'localhost', + * port: 80, + * path: '/', + * agent: false, // Create a new agent just for this one request + * }, (res) => { + * // Do stuff with response + * }); + * ``` + * + * `options` in [`socket.connect()`](https://nodejs.org/docs/latest-v20.x/api/net.html#socketconnectoptions-connectlistener) are also supported. + * + * To configure any of them, a custom {@link Agent} instance must be created. + * + * ```js + * import http from 'node:http'; + * const keepAliveAgent = new http.Agent({ keepAlive: true }); + * options.agent = keepAliveAgent; + * http.request(options, onResponseCallback) + * ``` + * @since v0.3.4 + */ + class Agent extends EventEmitter { + /** + * By default set to 256. For agents with `keepAlive` enabled, this + * sets the maximum number of sockets that will be left open in the free + * state. + * @since v0.11.7 + */ + maxFreeSockets: number; + /** + * By default set to `Infinity`. Determines how many concurrent sockets the agent + * can have open per origin. Origin is the returned value of `agent.getName()`. + * @since v0.3.6 + */ + maxSockets: number; + /** + * By default set to `Infinity`. Determines how many concurrent sockets the agent + * can have open. Unlike `maxSockets`, this parameter applies across all origins. + * @since v14.5.0, v12.19.0 + */ + maxTotalSockets: number; + /** + * An object which contains arrays of sockets currently awaiting use by + * the agent when `keepAlive` is enabled. Do not modify. + * + * Sockets in the `freeSockets` list will be automatically destroyed and + * removed from the array on `'timeout'`. + * @since v0.11.4 + */ + readonly freeSockets: NodeJS.ReadOnlyDict; + /** + * An object which contains arrays of sockets currently in use by the + * agent. Do not modify. + * @since v0.3.6 + */ + readonly sockets: NodeJS.ReadOnlyDict; + /** + * An object which contains queues of requests that have not yet been assigned to + * sockets. Do not modify. + * @since v0.5.9 + */ + readonly requests: NodeJS.ReadOnlyDict; + constructor(opts?: AgentOptions); + /** + * Destroy any sockets that are currently in use by the agent. + * + * It is usually not necessary to do this. However, if using an + * agent with `keepAlive` enabled, then it is best to explicitly shut down + * the agent when it is no longer needed. Otherwise, + * sockets might stay open for quite a long time before the server + * terminates them. + * @since v0.11.4 + */ + destroy(): void; + /** + * Produces a socket/stream to be used for HTTP requests. + * + * By default, this function is the same as `net.createConnection()`. However, + * custom agents may override this method in case greater flexibility is desired. + * + * A socket/stream can be supplied in one of two ways: by returning the + * socket/stream from this function, or by passing the socket/stream to `callback`. + * + * This method is guaranteed to return an instance of the `net.Socket` class, + * a subclass of `stream.Duplex`, unless the user specifies a socket + * type other than `net.Socket`. + * + * `callback` has a signature of `(err, stream)`. + * @since v0.11.4 + * @param options Options containing connection details. Check `createConnection` for the format of the options + * @param callback Callback function that receives the created socket + */ + createConnection( + options: ClientRequestArgs, + callback?: (err: Error | null, stream: stream.Duplex) => void, + ): stream.Duplex | null | undefined; + /** + * Called when `socket` is detached from a request and could be persisted by the`Agent`. Default behavior is to: + * + * ```js + * socket.setKeepAlive(true, this.keepAliveMsecs); + * socket.unref(); + * return true; + * ``` + * + * This method can be overridden by a particular `Agent` subclass. If this + * method returns a falsy value, the socket will be destroyed instead of persisting + * it for use with the next request. + * + * The `socket` argument can be an instance of `net.Socket`, a subclass of `stream.Duplex`. + * @since v8.1.0 + */ + keepSocketAlive(socket: stream.Duplex): void; + /** + * Called when `socket` is attached to `request` after being persisted because of + * the keep-alive options. Default behavior is to: + * + * ```js + * socket.ref(); + * ``` + * + * This method can be overridden by a particular `Agent` subclass. + * + * The `socket` argument can be an instance of `net.Socket`, a subclass of `stream.Duplex`. + * @since v8.1.0 + */ + reuseSocket(socket: stream.Duplex, request: ClientRequest): void; + /** + * Get a unique name for a set of request options, to determine whether a + * connection can be reused. For an HTTP agent, this returns`host:port:localAddress` or `host:port:localAddress:family`. For an HTTPS agent, + * the name includes the CA, cert, ciphers, and other HTTPS/TLS-specific options + * that determine socket reusability. + * @since v0.11.4 + * @param options A set of options providing information for name generation + */ + getName(options?: ClientRequestArgs): string; + } + const METHODS: string[]; + const STATUS_CODES: { + [errorCode: number]: string | undefined; + [errorCode: string]: string | undefined; + }; + /** + * Returns a new instance of {@link Server}. + * + * The `requestListener` is a function which is automatically + * added to the `'request'` event. + * + * ```js + * import http from 'node:http'; + * + * // Create a local server to receive data from + * const server = http.createServer((req, res) => { + * res.writeHead(200, { 'Content-Type': 'application/json' }); + * res.end(JSON.stringify({ + * data: 'Hello World!', + * })); + * }); + * + * server.listen(8000); + * ``` + * + * ```js + * import http from 'node:http'; + * + * // Create a local server to receive data from + * const server = http.createServer(); + * + * // Listen to the request event + * server.on('request', (request, res) => { + * res.writeHead(200, { 'Content-Type': 'application/json' }); + * res.end(JSON.stringify({ + * data: 'Hello World!', + * })); + * }); + * + * server.listen(8000); + * ``` + * @since v0.1.13 + */ + function createServer< + Request extends typeof IncomingMessage = typeof IncomingMessage, + Response extends typeof ServerResponse> = typeof ServerResponse, + >(requestListener?: RequestListener): Server; + function createServer< + Request extends typeof IncomingMessage = typeof IncomingMessage, + Response extends typeof ServerResponse> = typeof ServerResponse, + >( + options: ServerOptions, + requestListener?: RequestListener, + ): Server; + // although RequestOptions are passed as ClientRequestArgs to ClientRequest directly, + // create interface RequestOptions would make the naming more clear to developers + interface RequestOptions extends ClientRequestArgs {} + /** + * `options` in `socket.connect()` are also supported. + * + * Node.js maintains several connections per server to make HTTP requests. + * This function allows one to transparently issue requests. + * + * `url` can be a string or a `URL` object. If `url` is a + * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object. + * + * If both `url` and `options` are specified, the objects are merged, with the `options` properties taking precedence. + * + * The optional `callback` parameter will be added as a one-time listener for + * the `'response'` event. + * + * `http.request()` returns an instance of the {@link ClientRequest} class. The `ClientRequest` instance is a writable stream. If one needs to + * upload a file with a POST request, then write to the `ClientRequest` object. + * + * ```js + * import http from 'node:http'; + * import { Buffer } from 'node:buffer'; + * + * const postData = JSON.stringify({ + * 'msg': 'Hello World!', + * }); + * + * const options = { + * hostname: 'www.google.com', + * port: 80, + * path: '/upload', + * method: 'POST', + * headers: { + * 'Content-Type': 'application/json', + * 'Content-Length': Buffer.byteLength(postData), + * }, + * }; + * + * const req = http.request(options, (res) => { + * console.log(`STATUS: ${res.statusCode}`); + * console.log(`HEADERS: ${JSON.stringify(res.headers)}`); + * res.setEncoding('utf8'); + * res.on('data', (chunk) => { + * console.log(`BODY: ${chunk}`); + * }); + * res.on('end', () => { + * console.log('No more data in response.'); + * }); + * }); + * + * req.on('error', (e) => { + * console.error(`problem with request: ${e.message}`); + * }); + * + * // Write data to request body + * req.write(postData); + * req.end(); + * ``` + * + * In the example `req.end()` was called. With `http.request()` one + * must always call `req.end()` to signify the end of the request - + * even if there is no data being written to the request body. + * + * If any error is encountered during the request (be that with DNS resolution, + * TCP level errors, or actual HTTP parse errors) an `'error'` event is emitted + * on the returned request object. As with all `'error'` events, if no listeners + * are registered the error will be thrown. + * + * There are a few special headers that should be noted. + * + * * Sending a 'Connection: keep-alive' will notify Node.js that the connection to + * the server should be persisted until the next request. + * * Sending a 'Content-Length' header will disable the default chunked encoding. + * * Sending an 'Expect' header will immediately send the request headers. + * Usually, when sending 'Expect: 100-continue', both a timeout and a listener + * for the `'continue'` event should be set. See RFC 2616 Section 8.2.3 for more + * information. + * * Sending an Authorization header will override using the `auth` option + * to compute basic authentication. + * + * Example using a `URL` as `options`: + * + * ```js + * const options = new URL('http://abc:xyz@example.com'); + * + * const req = http.request(options, (res) => { + * // ... + * }); + * ``` + * + * In a successful request, the following events will be emitted in the following + * order: + * + * * `'socket'` + * * `'response'` + * * `'data'` any number of times, on the `res` object + * (`'data'` will not be emitted at all if the response body is empty, for + * instance, in most redirects) + * * `'end'` on the `res` object + * * `'close'` + * + * In the case of a connection error, the following events will be emitted: + * + * * `'socket'` + * * `'error'` + * * `'close'` + * + * In the case of a premature connection close before the response is received, + * the following events will be emitted in the following order: + * + * * `'socket'` + * * `'error'` with an error with message `'Error: socket hang up'` and code `'ECONNRESET'` + * * `'close'` + * + * In the case of a premature connection close after the response is received, + * the following events will be emitted in the following order: + * + * * `'socket'` + * * `'response'` + * * `'data'` any number of times, on the `res` object + * * (connection closed here) + * * `'aborted'` on the `res` object + * * `'close'` + * * `'error'` on the `res` object with an error with message `'Error: aborted'` and code `'ECONNRESET'` + * * `'close'` on the `res` object + * + * If `req.destroy()` is called before a socket is assigned, the following + * events will be emitted in the following order: + * + * * (`req.destroy()` called here) + * * `'error'` with an error with message `'Error: socket hang up'` and code `'ECONNRESET'`, or the error with which `req.destroy()` was called + * * `'close'` + * + * If `req.destroy()` is called before the connection succeeds, the following + * events will be emitted in the following order: + * + * * `'socket'` + * * (`req.destroy()` called here) + * * `'error'` with an error with message `'Error: socket hang up'` and code `'ECONNRESET'`, or the error with which `req.destroy()` was called + * * `'close'` + * + * If `req.destroy()` is called after the response is received, the following + * events will be emitted in the following order: + * + * * `'socket'` + * * `'response'` + * * `'data'` any number of times, on the `res` object + * * (`req.destroy()` called here) + * * `'aborted'` on the `res` object + * * `'close'` + * * `'error'` on the `res` object with an error with message `'Error: aborted'` and code `'ECONNRESET'`, or the error with which `req.destroy()` was called + * * `'close'` on the `res` object + * + * If `req.abort()` is called before a socket is assigned, the following + * events will be emitted in the following order: + * + * * (`req.abort()` called here) + * * `'abort'` + * * `'close'` + * + * If `req.abort()` is called before the connection succeeds, the following + * events will be emitted in the following order: + * + * * `'socket'` + * * (`req.abort()` called here) + * * `'abort'` + * * `'error'` with an error with message `'Error: socket hang up'` and code `'ECONNRESET'` + * * `'close'` + * + * If `req.abort()` is called after the response is received, the following + * events will be emitted in the following order: + * + * * `'socket'` + * * `'response'` + * * `'data'` any number of times, on the `res` object + * * (`req.abort()` called here) + * * `'abort'` + * * `'aborted'` on the `res` object + * * `'error'` on the `res` object with an error with message `'Error: aborted'` and code `'ECONNRESET'`. + * * `'close'` + * * `'close'` on the `res` object + * + * Setting the `timeout` option or using the `setTimeout()` function will + * not abort the request or do anything besides add a `'timeout'` event. + * + * Passing an `AbortSignal` and then calling `abort()` on the corresponding `AbortController` will behave the same way as calling `.destroy()` on the + * request. Specifically, the `'error'` event will be emitted with an error with + * the message `'AbortError: The operation was aborted'`, the code `'ABORT_ERR'` and the `cause`, if one was provided. + * @since v0.3.6 + */ + function request(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest; + function request( + url: string | URL, + options: RequestOptions, + callback?: (res: IncomingMessage) => void, + ): ClientRequest; + /** + * Since most requests are GET requests without bodies, Node.js provides this + * convenience method. The only difference between this method and {@link request} is that it sets the method to GET by default and calls `req.end()` automatically. The callback must take care to + * consume the response + * data for reasons stated in {@link ClientRequest} section. + * + * The `callback` is invoked with a single argument that is an instance of {@link IncomingMessage}. + * + * JSON fetching example: + * + * ```js + * http.get('http://localhost:8000/', (res) => { + * const { statusCode } = res; + * const contentType = res.headers['content-type']; + * + * let error; + * // Any 2xx status code signals a successful response but + * // here we're only checking for 200. + * if (statusCode !== 200) { + * error = new Error('Request Failed.\n' + + * `Status Code: ${statusCode}`); + * } else if (!/^application\/json/.test(contentType)) { + * error = new Error('Invalid content-type.\n' + + * `Expected application/json but received ${contentType}`); + * } + * if (error) { + * console.error(error.message); + * // Consume response data to free up memory + * res.resume(); + * return; + * } + * + * res.setEncoding('utf8'); + * let rawData = ''; + * res.on('data', (chunk) => { rawData += chunk; }); + * res.on('end', () => { + * try { + * const parsedData = JSON.parse(rawData); + * console.log(parsedData); + * } catch (e) { + * console.error(e.message); + * } + * }); + * }).on('error', (e) => { + * console.error(`Got error: ${e.message}`); + * }); + * + * // Create a local server to receive data from + * const server = http.createServer((req, res) => { + * res.writeHead(200, { 'Content-Type': 'application/json' }); + * res.end(JSON.stringify({ + * data: 'Hello World!', + * })); + * }); + * + * server.listen(8000); + * ``` + * @since v0.3.6 + * @param options Accepts the same `options` as {@link request}, with the method set to GET by default. + */ + function get(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest; + function get(url: string | URL, options: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest; + /** + * Performs the low-level validations on the provided `name` that are done when `res.setHeader(name, value)` is called. + * + * Passing illegal value as `name` will result in a `TypeError` being thrown, + * identified by `code: 'ERR_INVALID_HTTP_TOKEN'`. + * + * It is not necessary to use this method before passing headers to an HTTP request + * or response. The HTTP module will automatically validate such headers. + * + * Example: + * + * ```js + * import { validateHeaderName } from 'node:http'; + * + * try { + * validateHeaderName(''); + * } catch (err) { + * console.error(err instanceof TypeError); // --> true + * console.error(err.code); // --> 'ERR_INVALID_HTTP_TOKEN' + * console.error(err.message); // --> 'Header name must be a valid HTTP token [""]' + * } + * ``` + * @since v14.3.0 + * @param [label='Header name'] Label for error message. + */ + function validateHeaderName(name: string): void; + /** + * Performs the low-level validations on the provided `value` that are done when `res.setHeader(name, value)` is called. + * + * Passing illegal value as `value` will result in a `TypeError` being thrown. + * + * * Undefined value error is identified by `code: 'ERR_HTTP_INVALID_HEADER_VALUE'`. + * * Invalid value character error is identified by `code: 'ERR_INVALID_CHAR'`. + * + * It is not necessary to use this method before passing headers to an HTTP request + * or response. The HTTP module will automatically validate such headers. + * + * Examples: + * + * ```js + * import { validateHeaderValue } from 'node:http'; + * + * try { + * validateHeaderValue('x-my-header', undefined); + * } catch (err) { + * console.error(err instanceof TypeError); // --> true + * console.error(err.code === 'ERR_HTTP_INVALID_HEADER_VALUE'); // --> true + * console.error(err.message); // --> 'Invalid value "undefined" for header "x-my-header"' + * } + * + * try { + * validateHeaderValue('x-my-header', 'oʊmɪɡə'); + * } catch (err) { + * console.error(err instanceof TypeError); // --> true + * console.error(err.code === 'ERR_INVALID_CHAR'); // --> true + * console.error(err.message); // --> 'Invalid character in header content ["x-my-header"]' + * } + * ``` + * @since v14.3.0 + * @param name Header name + * @param value Header value + */ + function validateHeaderValue(name: string, value: string): void; + /** + * Set the maximum number of idle HTTP parsers. + * @since v18.8.0, v16.18.0 + * @param [max=1000] + */ + function setMaxIdleHTTPParsers(max: number): void; + /** + * Global instance of `Agent` which is used as the default for all HTTP client + * requests. Diverges from a default `Agent` configuration by having `keepAlive` + * enabled and a `timeout` of 5 seconds. + * @since v0.5.9 + */ + let globalAgent: Agent; + /** + * Read-only property specifying the maximum allowed size of HTTP headers in bytes. + * Defaults to 16KB. Configurable using the `--max-http-header-size` CLI option. + */ + const maxHeaderSize: number; +} +declare module "node:http" { + export * from "http"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/http2.d.ts b/backend/node_modules/httpx/node_modules/@types/node/http2.d.ts new file mode 100644 index 0000000..9c69a19 --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/http2.d.ts @@ -0,0 +1,2631 @@ +/** + * The `node:http2` module provides an implementation of the [HTTP/2](https://tools.ietf.org/html/rfc7540) protocol. + * It can be accessed using: + * + * ```js + * import http2 from 'node:http2'; + * ``` + * @since v8.4.0 + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/http2.js) + */ +declare module "http2" { + import { NonSharedBuffer } from "node:buffer"; + import EventEmitter = require("node:events"); + import * as fs from "node:fs"; + import * as net from "node:net"; + import * as stream from "node:stream"; + import * as tls from "node:tls"; + import * as url from "node:url"; + import { + IncomingHttpHeaders as Http1IncomingHttpHeaders, + IncomingMessage, + OutgoingHttpHeaders, + ServerResponse, + } from "node:http"; + export { OutgoingHttpHeaders } from "node:http"; + export interface IncomingHttpStatusHeader { + ":status"?: number | undefined; + } + export interface IncomingHttpHeaders extends Http1IncomingHttpHeaders { + ":path"?: string | undefined; + ":method"?: string | undefined; + ":authority"?: string | undefined; + ":scheme"?: string | undefined; + } + // Http2Stream + export interface StreamPriorityOptions { + exclusive?: boolean | undefined; + parent?: number | undefined; + weight?: number | undefined; + silent?: boolean | undefined; + } + export interface StreamState { + localWindowSize?: number | undefined; + state?: number | undefined; + localClose?: number | undefined; + remoteClose?: number | undefined; + sumDependencyWeight?: number | undefined; + weight?: number | undefined; + } + export interface ServerStreamResponseOptions { + endStream?: boolean | undefined; + waitForTrailers?: boolean | undefined; + } + export interface StatOptions { + offset: number; + length: number; + } + export interface ServerStreamFileResponseOptions { + statCheck?: + | ((stats: fs.Stats, headers: OutgoingHttpHeaders, statOptions: StatOptions) => void) + | undefined; + waitForTrailers?: boolean | undefined; + offset?: number | undefined; + length?: number | undefined; + } + export interface ServerStreamFileResponseOptionsWithError extends ServerStreamFileResponseOptions { + onError?: ((err: NodeJS.ErrnoException) => void) | undefined; + } + export interface Http2Stream extends stream.Duplex { + /** + * Set to `true` if the `Http2Stream` instance was aborted abnormally. When set, + * the `'aborted'` event will have been emitted. + * @since v8.4.0 + */ + readonly aborted: boolean; + /** + * This property shows the number of characters currently buffered to be written. + * See `net.Socket.bufferSize` for details. + * @since v11.2.0, v10.16.0 + */ + readonly bufferSize: number; + /** + * Set to `true` if the `Http2Stream` instance has been closed. + * @since v9.4.0 + */ + readonly closed: boolean; + /** + * Set to `true` if the `Http2Stream` instance has been destroyed and is no longer + * usable. + * @since v8.4.0 + */ + readonly destroyed: boolean; + /** + * Set to `true` if the `END_STREAM` flag was set in the request or response + * HEADERS frame received, indicating that no additional data should be received + * and the readable side of the `Http2Stream` will be closed. + * @since v10.11.0 + */ + readonly endAfterHeaders: boolean; + /** + * The numeric stream identifier of this `Http2Stream` instance. Set to `undefined` if the stream identifier has not yet been assigned. + * @since v8.4.0 + */ + readonly id?: number | undefined; + /** + * Set to `true` if the `Http2Stream` instance has not yet been assigned a + * numeric stream identifier. + * @since v9.4.0 + */ + readonly pending: boolean; + /** + * Set to the `RST_STREAM` `error code` reported when the `Http2Stream` is + * destroyed after either receiving an `RST_STREAM` frame from the connected peer, + * calling `http2stream.close()`, or `http2stream.destroy()`. Will be `undefined` if the `Http2Stream` has not been closed. + * @since v8.4.0 + */ + readonly rstCode: number; + /** + * An object containing the outbound headers sent for this `Http2Stream`. + * @since v9.5.0 + */ + readonly sentHeaders: OutgoingHttpHeaders; + /** + * An array of objects containing the outbound informational (additional) headers + * sent for this `Http2Stream`. + * @since v9.5.0 + */ + readonly sentInfoHeaders?: OutgoingHttpHeaders[] | undefined; + /** + * An object containing the outbound trailers sent for this `HttpStream`. + * @since v9.5.0 + */ + readonly sentTrailers?: OutgoingHttpHeaders | undefined; + /** + * A reference to the `Http2Session` instance that owns this `Http2Stream`. The + * value will be `undefined` after the `Http2Stream` instance is destroyed. + * @since v8.4.0 + */ + readonly session: Http2Session | undefined; + /** + * Provides miscellaneous information about the current state of the `Http2Stream`. + * + * A current state of this `Http2Stream`. + * @since v8.4.0 + */ + readonly state: StreamState; + /** + * Closes the `Http2Stream` instance by sending an `RST_STREAM` frame to the + * connected HTTP/2 peer. + * @since v8.4.0 + * @param [code=http2.constants.NGHTTP2_NO_ERROR] Unsigned 32-bit integer identifying the error code. + * @param callback An optional function registered to listen for the `'close'` event. + */ + close(code?: number, callback?: () => void): void; + /** + * Updates the priority for this `Http2Stream` instance. + * @since v8.4.0 + */ + priority(options: StreamPriorityOptions): void; + /** + * ```js + * import http2 from 'node:http2'; + * const client = http2.connect('http://example.org:8000'); + * const { NGHTTP2_CANCEL } = http2.constants; + * const req = client.request({ ':path': '/' }); + * + * // Cancel the stream if there's no activity after 5 seconds + * req.setTimeout(5000, () => req.close(NGHTTP2_CANCEL)); + * ``` + * @since v8.4.0 + */ + setTimeout(msecs: number, callback?: () => void): void; + /** + * Sends a trailing `HEADERS` frame to the connected HTTP/2 peer. This method + * will cause the `Http2Stream` to be immediately closed and must only be + * called after the `'wantTrailers'` event has been emitted. When sending a + * request or sending a response, the `options.waitForTrailers` option must be set + * in order to keep the `Http2Stream` open after the final `DATA` frame so that + * trailers can be sent. + * + * ```js + * import http2 from 'node:http2'; + * const server = http2.createServer(); + * server.on('stream', (stream) => { + * stream.respond(undefined, { waitForTrailers: true }); + * stream.on('wantTrailers', () => { + * stream.sendTrailers({ xyz: 'abc' }); + * }); + * stream.end('Hello World'); + * }); + * ``` + * + * The HTTP/1 specification forbids trailers from containing HTTP/2 pseudo-header + * fields (e.g. `':method'`, `':path'`, etc). + * @since v10.0.0 + */ + sendTrailers(headers: OutgoingHttpHeaders): void; + addListener(event: "aborted", listener: () => void): this; + addListener(event: "close", listener: () => void): this; + addListener(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; + addListener(event: "drain", listener: () => void): this; + addListener(event: "end", listener: () => void): this; + addListener(event: "error", listener: (err: Error) => void): this; + addListener(event: "finish", listener: () => void): this; + addListener(event: "frameError", listener: (frameType: number, errorCode: number) => void): this; + addListener(event: "pipe", listener: (src: stream.Readable) => void): this; + addListener(event: "unpipe", listener: (src: stream.Readable) => void): this; + addListener(event: "streamClosed", listener: (code: number) => void): this; + addListener(event: "timeout", listener: () => void): this; + addListener(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; + addListener(event: "wantTrailers", listener: () => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + emit(event: "aborted"): boolean; + emit(event: "close"): boolean; + emit(event: "data", chunk: NonSharedBuffer | string): boolean; + emit(event: "drain"): boolean; + emit(event: "end"): boolean; + emit(event: "error", err: Error): boolean; + emit(event: "finish"): boolean; + emit(event: "frameError", frameType: number, errorCode: number): boolean; + emit(event: "pipe", src: stream.Readable): boolean; + emit(event: "unpipe", src: stream.Readable): boolean; + emit(event: "streamClosed", code: number): boolean; + emit(event: "timeout"): boolean; + emit(event: "trailers", trailers: IncomingHttpHeaders, flags: number): boolean; + emit(event: "wantTrailers"): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + on(event: "aborted", listener: () => void): this; + on(event: "close", listener: () => void): this; + on(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; + on(event: "drain", listener: () => void): this; + on(event: "end", listener: () => void): this; + on(event: "error", listener: (err: Error) => void): this; + on(event: "finish", listener: () => void): this; + on(event: "frameError", listener: (frameType: number, errorCode: number) => void): this; + on(event: "pipe", listener: (src: stream.Readable) => void): this; + on(event: "unpipe", listener: (src: stream.Readable) => void): this; + on(event: "streamClosed", listener: (code: number) => void): this; + on(event: "timeout", listener: () => void): this; + on(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; + on(event: "wantTrailers", listener: () => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + once(event: "aborted", listener: () => void): this; + once(event: "close", listener: () => void): this; + once(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; + once(event: "drain", listener: () => void): this; + once(event: "end", listener: () => void): this; + once(event: "error", listener: (err: Error) => void): this; + once(event: "finish", listener: () => void): this; + once(event: "frameError", listener: (frameType: number, errorCode: number) => void): this; + once(event: "pipe", listener: (src: stream.Readable) => void): this; + once(event: "unpipe", listener: (src: stream.Readable) => void): this; + once(event: "streamClosed", listener: (code: number) => void): this; + once(event: "timeout", listener: () => void): this; + once(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; + once(event: "wantTrailers", listener: () => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + prependListener(event: "aborted", listener: () => void): this; + prependListener(event: "close", listener: () => void): this; + prependListener(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; + prependListener(event: "drain", listener: () => void): this; + prependListener(event: "end", listener: () => void): this; + prependListener(event: "error", listener: (err: Error) => void): this; + prependListener(event: "finish", listener: () => void): this; + prependListener(event: "frameError", listener: (frameType: number, errorCode: number) => void): this; + prependListener(event: "pipe", listener: (src: stream.Readable) => void): this; + prependListener(event: "unpipe", listener: (src: stream.Readable) => void): this; + prependListener(event: "streamClosed", listener: (code: number) => void): this; + prependListener(event: "timeout", listener: () => void): this; + prependListener(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; + prependListener(event: "wantTrailers", listener: () => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + prependOnceListener(event: "aborted", listener: () => void): this; + prependOnceListener(event: "close", listener: () => void): this; + prependOnceListener(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; + prependOnceListener(event: "drain", listener: () => void): this; + prependOnceListener(event: "end", listener: () => void): this; + prependOnceListener(event: "error", listener: (err: Error) => void): this; + prependOnceListener(event: "finish", listener: () => void): this; + prependOnceListener(event: "frameError", listener: (frameType: number, errorCode: number) => void): this; + prependOnceListener(event: "pipe", listener: (src: stream.Readable) => void): this; + prependOnceListener(event: "unpipe", listener: (src: stream.Readable) => void): this; + prependOnceListener(event: "streamClosed", listener: (code: number) => void): this; + prependOnceListener(event: "timeout", listener: () => void): this; + prependOnceListener(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; + prependOnceListener(event: "wantTrailers", listener: () => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + } + export interface ClientHttp2Stream extends Http2Stream { + addListener(event: "continue", listener: () => {}): this; + addListener( + event: "headers", + listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void, + ): this; + addListener(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this; + addListener( + event: "response", + listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void, + ): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + emit(event: "continue"): boolean; + emit(event: "headers", headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number): boolean; + emit(event: "push", headers: IncomingHttpHeaders, flags: number): boolean; + emit(event: "response", headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + on(event: "continue", listener: () => {}): this; + on( + event: "headers", + listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void, + ): this; + on(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this; + on( + event: "response", + listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void, + ): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + once(event: "continue", listener: () => {}): this; + once( + event: "headers", + listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void, + ): this; + once(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this; + once( + event: "response", + listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void, + ): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + prependListener(event: "continue", listener: () => {}): this; + prependListener( + event: "headers", + listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void, + ): this; + prependListener(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this; + prependListener( + event: "response", + listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void, + ): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + prependOnceListener(event: "continue", listener: () => {}): this; + prependOnceListener( + event: "headers", + listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void, + ): this; + prependOnceListener(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this; + prependOnceListener( + event: "response", + listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void, + ): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + } + export interface ServerHttp2Stream extends Http2Stream { + /** + * True if headers were sent, false otherwise (read-only). + * @since v8.4.0 + */ + readonly headersSent: boolean; + /** + * Read-only property mapped to the `SETTINGS_ENABLE_PUSH` flag of the remote + * client's most recent `SETTINGS` frame. Will be `true` if the remote peer + * accepts push streams, `false` otherwise. Settings are the same for every `Http2Stream` in the same `Http2Session`. + * @since v8.4.0 + */ + readonly pushAllowed: boolean; + /** + * Sends an additional informational `HEADERS` frame to the connected HTTP/2 peer. + * @since v8.4.0 + */ + additionalHeaders(headers: OutgoingHttpHeaders): void; + /** + * Initiates a push stream. The callback is invoked with the new `Http2Stream` instance created for the push stream passed as the second argument, or an `Error` passed as the first argument. + * + * ```js + * import http2 from 'node:http2'; + * const server = http2.createServer(); + * server.on('stream', (stream) => { + * stream.respond({ ':status': 200 }); + * stream.pushStream({ ':path': '/' }, (err, pushStream, headers) => { + * if (err) throw err; + * pushStream.respond({ ':status': 200 }); + * pushStream.end('some pushed data'); + * }); + * stream.end('some data'); + * }); + * ``` + * + * Setting the weight of a push stream is not allowed in the `HEADERS` frame. Pass + * a `weight` value to `http2stream.priority` with the `silent` option set to `true` to enable server-side bandwidth balancing between concurrent streams. + * + * Calling `http2stream.pushStream()` from within a pushed stream is not permitted + * and will throw an error. + * @since v8.4.0 + * @param callback Callback that is called once the push stream has been initiated. + */ + pushStream( + headers: OutgoingHttpHeaders, + callback?: (err: Error | null, pushStream: ServerHttp2Stream, headers: OutgoingHttpHeaders) => void, + ): void; + pushStream( + headers: OutgoingHttpHeaders, + options?: StreamPriorityOptions, + callback?: (err: Error | null, pushStream: ServerHttp2Stream, headers: OutgoingHttpHeaders) => void, + ): void; + /** + * ```js + * import http2 from 'node:http2'; + * const server = http2.createServer(); + * server.on('stream', (stream) => { + * stream.respond({ ':status': 200 }); + * stream.end('some data'); + * }); + * ``` + * + * Initiates a response. When the `options.waitForTrailers` option is set, the `'wantTrailers'` event + * will be emitted immediately after queuing the last chunk of payload data to be sent. + * The `http2stream.sendTrailers()` method can then be used to send trailing header fields to the peer. + * + * When `options.waitForTrailers` is set, the `Http2Stream` will not automatically + * close when the final `DATA` frame is transmitted. User code must call either `http2stream.sendTrailers()` or `http2stream.close()` to close the `Http2Stream`. + * + * ```js + * import http2 from 'node:http2'; + * const server = http2.createServer(); + * server.on('stream', (stream) => { + * stream.respond({ ':status': 200 }, { waitForTrailers: true }); + * stream.on('wantTrailers', () => { + * stream.sendTrailers({ ABC: 'some value to send' }); + * }); + * stream.end('some data'); + * }); + * ``` + * @since v8.4.0 + */ + respond(headers?: OutgoingHttpHeaders, options?: ServerStreamResponseOptions): void; + /** + * Initiates a response whose data is read from the given file descriptor. No + * validation is performed on the given file descriptor. If an error occurs while + * attempting to read data using the file descriptor, the `Http2Stream` will be + * closed using an `RST_STREAM` frame using the standard `INTERNAL_ERROR` code. + * + * When used, the `Http2Stream` object's `Duplex` interface will be closed + * automatically. + * + * ```js + * import http2 from 'node:http2'; + * import fs from 'node:fs'; + * + * const server = http2.createServer(); + * server.on('stream', (stream) => { + * const fd = fs.openSync('/some/file', 'r'); + * + * const stat = fs.fstatSync(fd); + * const headers = { + * 'content-length': stat.size, + * 'last-modified': stat.mtime.toUTCString(), + * 'content-type': 'text/plain; charset=utf-8', + * }; + * stream.respondWithFD(fd, headers); + * stream.on('close', () => fs.closeSync(fd)); + * }); + * ``` + * + * The optional `options.statCheck` function may be specified to give user code + * an opportunity to set additional content headers based on the `fs.Stat` details + * of the given fd. If the `statCheck` function is provided, the `http2stream.respondWithFD()` method will + * perform an `fs.fstat()` call to collect details on the provided file descriptor. + * + * The `offset` and `length` options may be used to limit the response to a + * specific range subset. This can be used, for instance, to support HTTP Range + * requests. + * + * The file descriptor or `FileHandle` is not closed when the stream is closed, + * so it will need to be closed manually once it is no longer needed. + * Using the same file descriptor concurrently for multiple streams + * is not supported and may result in data loss. Re-using a file descriptor + * after a stream has finished is supported. + * + * When the `options.waitForTrailers` option is set, the `'wantTrailers'` event + * will be emitted immediately after queuing the last chunk of payload data to be + * sent. The `http2stream.sendTrailers()` method can then be used to sent trailing + * header fields to the peer. + * + * When `options.waitForTrailers` is set, the `Http2Stream` will not automatically + * close when the final `DATA` frame is transmitted. User code _must_ call either `http2stream.sendTrailers()` + * or `http2stream.close()` to close the `Http2Stream`. + * + * ```js + * import http2 from 'node:http2'; + * import fs from 'node:fs'; + * + * const server = http2.createServer(); + * server.on('stream', (stream) => { + * const fd = fs.openSync('/some/file', 'r'); + * + * const stat = fs.fstatSync(fd); + * const headers = { + * 'content-length': stat.size, + * 'last-modified': stat.mtime.toUTCString(), + * 'content-type': 'text/plain; charset=utf-8', + * }; + * stream.respondWithFD(fd, headers, { waitForTrailers: true }); + * stream.on('wantTrailers', () => { + * stream.sendTrailers({ ABC: 'some value to send' }); + * }); + * + * stream.on('close', () => fs.closeSync(fd)); + * }); + * ``` + * @since v8.4.0 + * @param fd A readable file descriptor. + */ + respondWithFD( + fd: number | fs.promises.FileHandle, + headers?: OutgoingHttpHeaders, + options?: ServerStreamFileResponseOptions, + ): void; + /** + * Sends a regular file as the response. The `path` must specify a regular file + * or an `'error'` event will be emitted on the `Http2Stream` object. + * + * When used, the `Http2Stream` object's `Duplex` interface will be closed + * automatically. + * + * The optional `options.statCheck` function may be specified to give user code + * an opportunity to set additional content headers based on the `fs.Stat` details + * of the given file: + * + * If an error occurs while attempting to read the file data, the `Http2Stream` will be closed using an + * `RST_STREAM` frame using the standard `INTERNAL_ERROR` code. + * If the `onError` callback is defined, then it will be called. Otherwise, the stream will be destroyed. + * + * Example using a file path: + * + * ```js + * import http2 from 'node:http2'; + * const server = http2.createServer(); + * server.on('stream', (stream) => { + * function statCheck(stat, headers) { + * headers['last-modified'] = stat.mtime.toUTCString(); + * } + * + * function onError(err) { + * // stream.respond() can throw if the stream has been destroyed by + * // the other side. + * try { + * if (err.code === 'ENOENT') { + * stream.respond({ ':status': 404 }); + * } else { + * stream.respond({ ':status': 500 }); + * } + * } catch (err) { + * // Perform actual error handling. + * console.error(err); + * } + * stream.end(); + * } + * + * stream.respondWithFile('/some/file', + * { 'content-type': 'text/plain; charset=utf-8' }, + * { statCheck, onError }); + * }); + * ``` + * + * The `options.statCheck` function may also be used to cancel the send operation + * by returning `false`. For instance, a conditional request may check the stat + * results to determine if the file has been modified to return an appropriate `304` response: + * + * ```js + * import http2 from 'node:http2'; + * const server = http2.createServer(); + * server.on('stream', (stream) => { + * function statCheck(stat, headers) { + * // Check the stat here... + * stream.respond({ ':status': 304 }); + * return false; // Cancel the send operation + * } + * stream.respondWithFile('/some/file', + * { 'content-type': 'text/plain; charset=utf-8' }, + * { statCheck }); + * }); + * ``` + * + * The `content-length` header field will be automatically set. + * + * The `offset` and `length` options may be used to limit the response to a + * specific range subset. This can be used, for instance, to support HTTP Range + * requests. + * + * The `options.onError` function may also be used to handle all the errors + * that could happen before the delivery of the file is initiated. The + * default behavior is to destroy the stream. + * + * When the `options.waitForTrailers` option is set, the `'wantTrailers'` event + * will be emitted immediately after queuing the last chunk of payload data to be + * sent. The `http2stream.sendTrailers()` method can then be used to sent trailing + * header fields to the peer. + * + * When `options.waitForTrailers` is set, the `Http2Stream` will not automatically + * close when the final `DATA` frame is transmitted. User code must call either`http2stream.sendTrailers()` or `http2stream.close()` to close the`Http2Stream`. + * + * ```js + * import http2 from 'node:http2'; + * const server = http2.createServer(); + * server.on('stream', (stream) => { + * stream.respondWithFile('/some/file', + * { 'content-type': 'text/plain; charset=utf-8' }, + * { waitForTrailers: true }); + * stream.on('wantTrailers', () => { + * stream.sendTrailers({ ABC: 'some value to send' }); + * }); + * }); + * ``` + * @since v8.4.0 + */ + respondWithFile( + path: string, + headers?: OutgoingHttpHeaders, + options?: ServerStreamFileResponseOptionsWithError, + ): void; + } + // Http2Session + export interface Settings { + headerTableSize?: number | undefined; + enablePush?: boolean | undefined; + initialWindowSize?: number | undefined; + maxFrameSize?: number | undefined; + maxConcurrentStreams?: number | undefined; + maxHeaderListSize?: number | undefined; + enableConnectProtocol?: boolean | undefined; + } + export interface ClientSessionRequestOptions { + endStream?: boolean | undefined; + exclusive?: boolean | undefined; + parent?: number | undefined; + weight?: number | undefined; + waitForTrailers?: boolean | undefined; + signal?: AbortSignal | undefined; + } + export interface SessionState { + effectiveLocalWindowSize?: number | undefined; + effectiveRecvDataLength?: number | undefined; + nextStreamID?: number | undefined; + localWindowSize?: number | undefined; + lastProcStreamID?: number | undefined; + remoteWindowSize?: number | undefined; + outboundQueueSize?: number | undefined; + deflateDynamicTableSize?: number | undefined; + inflateDynamicTableSize?: number | undefined; + } + export interface Http2Session extends EventEmitter { + /** + * Value will be `undefined` if the `Http2Session` is not yet connected to a + * socket, `h2c` if the `Http2Session` is not connected to a `TLSSocket`, or + * will return the value of the connected `TLSSocket`'s own `alpnProtocol` property. + * @since v9.4.0 + */ + readonly alpnProtocol?: string | undefined; + /** + * Will be `true` if this `Http2Session` instance has been closed, otherwise `false`. + * @since v9.4.0 + */ + readonly closed: boolean; + /** + * Will be `true` if this `Http2Session` instance is still connecting, will be set + * to `false` before emitting `connect` event and/or calling the `http2.connect` callback. + * @since v10.0.0 + */ + readonly connecting: boolean; + /** + * Will be `true` if this `Http2Session` instance has been destroyed and must no + * longer be used, otherwise `false`. + * @since v8.4.0 + */ + readonly destroyed: boolean; + /** + * Value is `undefined` if the `Http2Session` session socket has not yet been + * connected, `true` if the `Http2Session` is connected with a `TLSSocket`, + * and `false` if the `Http2Session` is connected to any other kind of socket + * or stream. + * @since v9.4.0 + */ + readonly encrypted?: boolean | undefined; + /** + * A prototype-less object describing the current local settings of this `Http2Session`. + * The local settings are local to _this_`Http2Session` instance. + * @since v8.4.0 + */ + readonly localSettings: Settings; + /** + * If the `Http2Session` is connected to a `TLSSocket`, the `originSet` property + * will return an `Array` of origins for which the `Http2Session` may be + * considered authoritative. + * + * The `originSet` property is only available when using a secure TLS connection. + * @since v9.4.0 + */ + readonly originSet?: string[] | undefined; + /** + * Indicates whether the `Http2Session` is currently waiting for acknowledgment of + * a sent `SETTINGS` frame. Will be `true` after calling the `http2session.settings()` method. + * Will be `false` once all sent `SETTINGS` frames have been acknowledged. + * @since v8.4.0 + */ + readonly pendingSettingsAck: boolean; + /** + * A prototype-less object describing the current remote settings of this`Http2Session`. + * The remote settings are set by the _connected_ HTTP/2 peer. + * @since v8.4.0 + */ + readonly remoteSettings: Settings; + /** + * Returns a `Proxy` object that acts as a `net.Socket` (or `tls.TLSSocket`) but + * limits available methods to ones safe to use with HTTP/2. + * + * `destroy`, `emit`, `end`, `pause`, `read`, `resume`, and `write` will throw + * an error with code `ERR_HTTP2_NO_SOCKET_MANIPULATION`. See `Http2Session and Sockets` for more information. + * + * `setTimeout` method will be called on this `Http2Session`. + * + * All other interactions will be routed directly to the socket. + * @since v8.4.0 + */ + readonly socket: net.Socket | tls.TLSSocket; + /** + * Provides miscellaneous information about the current state of the`Http2Session`. + * + * An object describing the current status of this `Http2Session`. + * @since v8.4.0 + */ + readonly state: SessionState; + /** + * The `http2session.type` will be equal to `http2.constants.NGHTTP2_SESSION_SERVER` if this `Http2Session` instance is a + * server, and `http2.constants.NGHTTP2_SESSION_CLIENT` if the instance is a + * client. + * @since v8.4.0 + */ + readonly type: number; + /** + * Gracefully closes the `Http2Session`, allowing any existing streams to + * complete on their own and preventing new `Http2Stream` instances from being + * created. Once closed, `http2session.destroy()`_might_ be called if there + * are no open `Http2Stream` instances. + * + * If specified, the `callback` function is registered as a handler for the`'close'` event. + * @since v9.4.0 + */ + close(callback?: () => void): void; + /** + * Immediately terminates the `Http2Session` and the associated `net.Socket` or `tls.TLSSocket`. + * + * Once destroyed, the `Http2Session` will emit the `'close'` event. If `error` is not undefined, an `'error'` event will be emitted immediately before the `'close'` event. + * + * If there are any remaining open `Http2Streams` associated with the `Http2Session`, those will also be destroyed. + * @since v8.4.0 + * @param error An `Error` object if the `Http2Session` is being destroyed due to an error. + * @param code The HTTP/2 error code to send in the final `GOAWAY` frame. If unspecified, and `error` is not undefined, the default is `INTERNAL_ERROR`, otherwise defaults to `NO_ERROR`. + */ + destroy(error?: Error, code?: number): void; + /** + * Transmits a `GOAWAY` frame to the connected peer _without_ shutting down the`Http2Session`. + * @since v9.4.0 + * @param code An HTTP/2 error code + * @param lastStreamID The numeric ID of the last processed `Http2Stream` + * @param opaqueData A `TypedArray` or `DataView` instance containing additional data to be carried within the `GOAWAY` frame. + */ + goaway(code?: number, lastStreamID?: number, opaqueData?: NodeJS.ArrayBufferView): void; + /** + * Sends a `PING` frame to the connected HTTP/2 peer. A `callback` function must + * be provided. The method will return `true` if the `PING` was sent, `false` otherwise. + * + * The maximum number of outstanding (unacknowledged) pings is determined by the `maxOutstandingPings` configuration option. The default maximum is 10. + * + * If provided, the `payload` must be a `Buffer`, `TypedArray`, or `DataView` containing 8 bytes of data that will be transmitted with the `PING` and + * returned with the ping acknowledgment. + * + * The callback will be invoked with three arguments: an error argument that will + * be `null` if the `PING` was successfully acknowledged, a `duration` argument + * that reports the number of milliseconds elapsed since the ping was sent and the + * acknowledgment was received, and a `Buffer` containing the 8-byte `PING` payload. + * + * ```js + * session.ping(Buffer.from('abcdefgh'), (err, duration, payload) => { + * if (!err) { + * console.log(`Ping acknowledged in ${duration} milliseconds`); + * console.log(`With payload '${payload.toString()}'`); + * } + * }); + * ``` + * + * If the `payload` argument is not specified, the default payload will be the + * 64-bit timestamp (little endian) marking the start of the `PING` duration. + * @since v8.9.3 + * @param payload Optional ping payload. + */ + ping(callback: (err: Error | null, duration: number, payload: NonSharedBuffer) => void): boolean; + ping( + payload: NodeJS.ArrayBufferView, + callback: (err: Error | null, duration: number, payload: NonSharedBuffer) => void, + ): boolean; + /** + * Calls `ref()` on this `Http2Session` instance's underlying `net.Socket`. + * @since v9.4.0 + */ + ref(): void; + /** + * Sets the local endpoint's window size. + * The `windowSize` is the total window size to set, not + * the delta. + * + * ```js + * import http2 from 'node:http2'; + * + * const server = http2.createServer(); + * const expectedWindowSize = 2 ** 20; + * server.on('connect', (session) => { + * + * // Set local window size to be 2 ** 20 + * session.setLocalWindowSize(expectedWindowSize); + * }); + * ``` + * @since v15.3.0, v14.18.0 + */ + setLocalWindowSize(windowSize: number): void; + /** + * Used to set a callback function that is called when there is no activity on + * the `Http2Session` after `msecs` milliseconds. The given `callback` is + * registered as a listener on the `'timeout'` event. + * @since v8.4.0 + */ + setTimeout(msecs: number, callback?: () => void): void; + /** + * Updates the current local settings for this `Http2Session` and sends a new `SETTINGS` frame to the connected HTTP/2 peer. + * + * Once called, the `http2session.pendingSettingsAck` property will be `true` while the session is waiting for the remote peer to acknowledge the new + * settings. + * + * The new settings will not become effective until the `SETTINGS` acknowledgment + * is received and the `'localSettings'` event is emitted. It is possible to send + * multiple `SETTINGS` frames while acknowledgment is still pending. + * @since v8.4.0 + * @param callback Callback that is called once the session is connected or right away if the session is already connected. + */ + settings( + settings: Settings, + callback?: (err: Error | null, settings: Settings, duration: number) => void, + ): void; + /** + * Calls `unref()` on this `Http2Session`instance's underlying `net.Socket`. + * @since v9.4.0 + */ + unref(): void; + addListener(event: "close", listener: () => void): this; + addListener(event: "error", listener: (err: Error) => void): this; + addListener( + event: "frameError", + listener: (frameType: number, errorCode: number, streamID: number) => void, + ): this; + addListener( + event: "goaway", + listener: (errorCode: number, lastStreamID: number, opaqueData?: NonSharedBuffer) => void, + ): this; + addListener(event: "localSettings", listener: (settings: Settings) => void): this; + addListener(event: "ping", listener: () => void): this; + addListener(event: "remoteSettings", listener: (settings: Settings) => void): this; + addListener(event: "timeout", listener: () => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + emit(event: "close"): boolean; + emit(event: "error", err: Error): boolean; + emit(event: "frameError", frameType: number, errorCode: number, streamID: number): boolean; + emit(event: "goaway", errorCode: number, lastStreamID: number, opaqueData?: NonSharedBuffer): boolean; + emit(event: "localSettings", settings: Settings): boolean; + emit(event: "ping"): boolean; + emit(event: "remoteSettings", settings: Settings): boolean; + emit(event: "timeout"): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + on(event: "close", listener: () => void): this; + on(event: "error", listener: (err: Error) => void): this; + on(event: "frameError", listener: (frameType: number, errorCode: number, streamID: number) => void): this; + on( + event: "goaway", + listener: (errorCode: number, lastStreamID: number, opaqueData?: NonSharedBuffer) => void, + ): this; + on(event: "localSettings", listener: (settings: Settings) => void): this; + on(event: "ping", listener: () => void): this; + on(event: "remoteSettings", listener: (settings: Settings) => void): this; + on(event: "timeout", listener: () => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + once(event: "close", listener: () => void): this; + once(event: "error", listener: (err: Error) => void): this; + once(event: "frameError", listener: (frameType: number, errorCode: number, streamID: number) => void): this; + once( + event: "goaway", + listener: (errorCode: number, lastStreamID: number, opaqueData?: NonSharedBuffer) => void, + ): this; + once(event: "localSettings", listener: (settings: Settings) => void): this; + once(event: "ping", listener: () => void): this; + once(event: "remoteSettings", listener: (settings: Settings) => void): this; + once(event: "timeout", listener: () => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + prependListener(event: "close", listener: () => void): this; + prependListener(event: "error", listener: (err: Error) => void): this; + prependListener( + event: "frameError", + listener: (frameType: number, errorCode: number, streamID: number) => void, + ): this; + prependListener( + event: "goaway", + listener: (errorCode: number, lastStreamID: number, opaqueData?: NonSharedBuffer) => void, + ): this; + prependListener(event: "localSettings", listener: (settings: Settings) => void): this; + prependListener(event: "ping", listener: () => void): this; + prependListener(event: "remoteSettings", listener: (settings: Settings) => void): this; + prependListener(event: "timeout", listener: () => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + prependOnceListener(event: "close", listener: () => void): this; + prependOnceListener(event: "error", listener: (err: Error) => void): this; + prependOnceListener( + event: "frameError", + listener: (frameType: number, errorCode: number, streamID: number) => void, + ): this; + prependOnceListener( + event: "goaway", + listener: (errorCode: number, lastStreamID: number, opaqueData?: NonSharedBuffer) => void, + ): this; + prependOnceListener(event: "localSettings", listener: (settings: Settings) => void): this; + prependOnceListener(event: "ping", listener: () => void): this; + prependOnceListener(event: "remoteSettings", listener: (settings: Settings) => void): this; + prependOnceListener(event: "timeout", listener: () => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + } + export interface ClientHttp2Session extends Http2Session { + /** + * For HTTP/2 Client `Http2Session` instances only, the `http2session.request()` creates and returns an `Http2Stream` instance that can be used to send an + * HTTP/2 request to the connected server. + * + * When a `ClientHttp2Session` is first created, the socket may not yet be + * connected. if `clienthttp2session.request()` is called during this time, the + * actual request will be deferred until the socket is ready to go. + * If the `session` is closed before the actual request be executed, an `ERR_HTTP2_GOAWAY_SESSION` is thrown. + * + * This method is only available if `http2session.type` is equal to `http2.constants.NGHTTP2_SESSION_CLIENT`. + * + * ```js + * import http2 from 'node:http2'; + * const clientSession = http2.connect('https://localhost:1234'); + * const { + * HTTP2_HEADER_PATH, + * HTTP2_HEADER_STATUS, + * } = http2.constants; + * + * const req = clientSession.request({ [HTTP2_HEADER_PATH]: '/' }); + * req.on('response', (headers) => { + * console.log(headers[HTTP2_HEADER_STATUS]); + * req.on('data', (chunk) => { // .. }); + * req.on('end', () => { // .. }); + * }); + * ``` + * + * When the `options.waitForTrailers` option is set, the `'wantTrailers'` event + * is emitted immediately after queuing the last chunk of payload data to be sent. + * The `http2stream.sendTrailers()` method can then be called to send trailing + * headers to the peer. + * + * When `options.waitForTrailers` is set, the `Http2Stream` will not automatically + * close when the final `DATA` frame is transmitted. User code must call either`http2stream.sendTrailers()` or `http2stream.close()` to close the`Http2Stream`. + * + * When `options.signal` is set with an `AbortSignal` and then `abort` on the + * corresponding `AbortController` is called, the request will emit an `'error'`event with an `AbortError` error. + * + * The `:method` and `:path` pseudo-headers are not specified within `headers`, + * they respectively default to: + * + * * `:method` \= `'GET'` + * * `:path` \= `/` + * @since v8.4.0 + */ + request(headers?: OutgoingHttpHeaders, options?: ClientSessionRequestOptions): ClientHttp2Stream; + addListener(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this; + addListener(event: "origin", listener: (origins: string[]) => void): this; + addListener( + event: "connect", + listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void, + ): this; + addListener( + event: "stream", + listener: ( + stream: ClientHttp2Stream, + headers: IncomingHttpHeaders & IncomingHttpStatusHeader, + flags: number, + ) => void, + ): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + emit(event: "altsvc", alt: string, origin: string, stream: number): boolean; + emit(event: "origin", origins: readonly string[]): boolean; + emit(event: "connect", session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket): boolean; + emit( + event: "stream", + stream: ClientHttp2Stream, + headers: IncomingHttpHeaders & IncomingHttpStatusHeader, + flags: number, + ): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + on(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this; + on(event: "origin", listener: (origins: string[]) => void): this; + on(event: "connect", listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this; + on( + event: "stream", + listener: ( + stream: ClientHttp2Stream, + headers: IncomingHttpHeaders & IncomingHttpStatusHeader, + flags: number, + ) => void, + ): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + once(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this; + once(event: "origin", listener: (origins: string[]) => void): this; + once( + event: "connect", + listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void, + ): this; + once( + event: "stream", + listener: ( + stream: ClientHttp2Stream, + headers: IncomingHttpHeaders & IncomingHttpStatusHeader, + flags: number, + ) => void, + ): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + prependListener(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this; + prependListener(event: "origin", listener: (origins: string[]) => void): this; + prependListener( + event: "connect", + listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void, + ): this; + prependListener( + event: "stream", + listener: ( + stream: ClientHttp2Stream, + headers: IncomingHttpHeaders & IncomingHttpStatusHeader, + flags: number, + ) => void, + ): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + prependOnceListener(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this; + prependOnceListener(event: "origin", listener: (origins: string[]) => void): this; + prependOnceListener( + event: "connect", + listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void, + ): this; + prependOnceListener( + event: "stream", + listener: ( + stream: ClientHttp2Stream, + headers: IncomingHttpHeaders & IncomingHttpStatusHeader, + flags: number, + ) => void, + ): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + } + export interface AlternativeServiceOptions { + origin: number | string | url.URL; + } + export interface ServerHttp2Session< + Http1Request extends typeof IncomingMessage = typeof IncomingMessage, + Http1Response extends typeof ServerResponse> = typeof ServerResponse, + Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, + Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, + > extends Http2Session { + readonly server: + | Http2Server + | Http2SecureServer; + /** + * Submits an `ALTSVC` frame (as defined by [RFC 7838](https://tools.ietf.org/html/rfc7838)) to the connected client. + * + * ```js + * import http2 from 'node:http2'; + * + * const server = http2.createServer(); + * server.on('session', (session) => { + * // Set altsvc for origin https://example.org:80 + * session.altsvc('h2=":8000"', 'https://example.org:80'); + * }); + * + * server.on('stream', (stream) => { + * // Set altsvc for a specific stream + * stream.session.altsvc('h2=":8000"', stream.id); + * }); + * ``` + * + * Sending an `ALTSVC` frame with a specific stream ID indicates that the alternate + * service is associated with the origin of the given `Http2Stream`. + * + * The `alt` and origin string _must_ contain only ASCII bytes and are + * strictly interpreted as a sequence of ASCII bytes. The special value `'clear'`may be passed to clear any previously set alternative service for a given + * domain. + * + * When a string is passed for the `originOrStream` argument, it will be parsed as + * a URL and the origin will be derived. For instance, the origin for the + * HTTP URL `'https://example.org/foo/bar'` is the ASCII string`'https://example.org'`. An error will be thrown if either the given string + * cannot be parsed as a URL or if a valid origin cannot be derived. + * + * A `URL` object, or any object with an `origin` property, may be passed as`originOrStream`, in which case the value of the `origin` property will be + * used. The value of the `origin` property _must_ be a properly serialized + * ASCII origin. + * @since v9.4.0 + * @param alt A description of the alternative service configuration as defined by `RFC 7838`. + * @param originOrStream Either a URL string specifying the origin (or an `Object` with an `origin` property) or the numeric identifier of an active `Http2Stream` as given by the + * `http2stream.id` property. + */ + altsvc(alt: string, originOrStream: number | string | url.URL | AlternativeServiceOptions): void; + /** + * Submits an `ORIGIN` frame (as defined by [RFC 8336](https://tools.ietf.org/html/rfc8336)) to the connected client + * to advertise the set of origins for which the server is capable of providing + * authoritative responses. + * + * ```js + * import http2 from 'node:http2'; + * const options = getSecureOptionsSomehow(); + * const server = http2.createSecureServer(options); + * server.on('stream', (stream) => { + * stream.respond(); + * stream.end('ok'); + * }); + * server.on('session', (session) => { + * session.origin('https://example.com', 'https://example.org'); + * }); + * ``` + * + * When a string is passed as an `origin`, it will be parsed as a URL and the + * origin will be derived. For instance, the origin for the HTTP URL `'https://example.org/foo/bar'` is the ASCII string` 'https://example.org'`. An error will be thrown if either the given + * string + * cannot be parsed as a URL or if a valid origin cannot be derived. + * + * A `URL` object, or any object with an `origin` property, may be passed as + * an `origin`, in which case the value of the `origin` property will be + * used. The value of the `origin` property _must_ be a properly serialized + * ASCII origin. + * + * Alternatively, the `origins` option may be used when creating a new HTTP/2 + * server using the `http2.createSecureServer()` method: + * + * ```js + * import http2 from 'node:http2'; + * const options = getSecureOptionsSomehow(); + * options.origins = ['https://example.com', 'https://example.org']; + * const server = http2.createSecureServer(options); + * server.on('stream', (stream) => { + * stream.respond(); + * stream.end('ok'); + * }); + * ``` + * @since v10.12.0 + * @param origins One or more URL Strings passed as separate arguments. + */ + origin( + ...origins: Array< + | string + | url.URL + | { + origin: string; + } + > + ): void; + addListener( + event: "connect", + listener: ( + session: ServerHttp2Session, + socket: net.Socket | tls.TLSSocket, + ) => void, + ): this; + addListener( + event: "stream", + listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, + ): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + emit( + event: "connect", + session: ServerHttp2Session, + socket: net.Socket | tls.TLSSocket, + ): boolean; + emit(event: "stream", stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + on( + event: "connect", + listener: ( + session: ServerHttp2Session, + socket: net.Socket | tls.TLSSocket, + ) => void, + ): this; + on( + event: "stream", + listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, + ): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + once( + event: "connect", + listener: ( + session: ServerHttp2Session, + socket: net.Socket | tls.TLSSocket, + ) => void, + ): this; + once( + event: "stream", + listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, + ): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + prependListener( + event: "connect", + listener: ( + session: ServerHttp2Session, + socket: net.Socket | tls.TLSSocket, + ) => void, + ): this; + prependListener( + event: "stream", + listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, + ): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + prependOnceListener( + event: "connect", + listener: ( + session: ServerHttp2Session, + socket: net.Socket | tls.TLSSocket, + ) => void, + ): this; + prependOnceListener( + event: "stream", + listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, + ): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + } + // Http2Server + export interface SessionOptions { + /** + * Sets the maximum dynamic table size for deflating header fields. + * @default 4Kib + */ + maxDeflateDynamicTableSize?: number | undefined; + /** + * Sets the maximum number of settings entries per `SETTINGS` frame. + * The minimum value allowed is `1`. + * @default 32 + */ + maxSettings?: number | undefined; + /** + * Sets the maximum memory that the `Http2Session` is permitted to use. + * The value is expressed in terms of number of megabytes, e.g. `1` equal 1 megabyte. + * The minimum value allowed is `1`. + * This is a credit based limit, existing `Http2Stream`s may cause this limit to be exceeded, + * but new `Http2Stream` instances will be rejected while this limit is exceeded. + * The current number of `Http2Stream` sessions, the current memory use of the header compression tables, + * current data queued to be sent, and unacknowledged `PING` and `SETTINGS` frames are all counted towards the current limit. + * @default 10 + */ + maxSessionMemory?: number | undefined; + /** + * Sets the maximum number of header entries. + * This is similar to `server.maxHeadersCount` or `request.maxHeadersCount` in the `node:http` module. + * The minimum value is `1`. + * @default 128 + */ + maxHeaderListPairs?: number | undefined; + /** + * Sets the maximum number of outstanding, unacknowledged pings. + * @default 10 + */ + maxOutstandingPings?: number | undefined; + /** + * Sets the maximum allowed size for a serialized, compressed block of headers. + * Attempts to send headers that exceed this limit will result in + * a `'frameError'` event being emitted and the stream being closed and destroyed. + */ + maxSendHeaderBlockLength?: number | undefined; + /** + * Strategy used for determining the amount of padding to use for `HEADERS` and `DATA` frames. + * @default http2.constants.PADDING_STRATEGY_NONE + */ + paddingStrategy?: number | undefined; + /** + * Sets the maximum number of concurrent streams for the remote peer as if a `SETTINGS` frame had been received. + * Will be overridden if the remote peer sets its own value for `maxConcurrentStreams`. + * @default 100 + */ + peerMaxConcurrentStreams?: number | undefined; + /** + * The initial settings to send to the remote peer upon connection. + */ + settings?: Settings | undefined; + /** + * The array of integer values determines the settings types, + * which are included in the `CustomSettings`-property of the received remoteSettings. + * Please see the `CustomSettings`-property of the `Http2Settings` object for more information, on the allowed setting types. + */ + remoteCustomSettings?: number[] | undefined; + /** + * Specifies a timeout in milliseconds that + * a server should wait when an [`'unknownProtocol'`][] is emitted. If the + * socket has not been destroyed by that time the server will destroy it. + * @default 100000 + */ + unknownProtocolTimeout?: number | undefined; + } + export interface ClientSessionOptions extends SessionOptions { + /** + * Sets the maximum number of reserved push streams the client will accept at any given time. + * Once the current number of currently reserved push streams exceeds reaches this limit, + * new push streams sent by the server will be automatically rejected. + * The minimum allowed value is 0. The maximum allowed value is 232-1. + * A negative value sets this option to the maximum allowed value. + * @default 200 + */ + maxReservedRemoteStreams?: number | undefined; + /** + * An optional callback that receives the `URL` instance passed to `connect` and the `options` object, + * and returns any `Duplex` stream that is to be used as the connection for this session. + */ + createConnection?: ((authority: url.URL, option: SessionOptions) => stream.Duplex) | undefined; + /** + * The protocol to connect with, if not set in the `authority`. + * Value may be either `'http:'` or `'https:'`. + * @default 'https:' + */ + protocol?: "http:" | "https:" | undefined; + } + export interface ServerSessionOptions< + Http1Request extends typeof IncomingMessage = typeof IncomingMessage, + Http1Response extends typeof ServerResponse> = typeof ServerResponse, + Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, + Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, + > extends SessionOptions { + Http1IncomingMessage?: Http1Request | undefined; + Http1ServerResponse?: Http1Response | undefined; + Http2ServerRequest?: Http2Request | undefined; + Http2ServerResponse?: Http2Response | undefined; + } + export interface SecureClientSessionOptions extends ClientSessionOptions, tls.ConnectionOptions {} + export interface SecureServerSessionOptions< + Http1Request extends typeof IncomingMessage = typeof IncomingMessage, + Http1Response extends typeof ServerResponse> = typeof ServerResponse, + Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, + Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, + > extends ServerSessionOptions, tls.TlsOptions {} + export interface ServerOptions< + Http1Request extends typeof IncomingMessage = typeof IncomingMessage, + Http1Response extends typeof ServerResponse> = typeof ServerResponse, + Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, + Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, + > extends ServerSessionOptions {} + export interface SecureServerOptions< + Http1Request extends typeof IncomingMessage = typeof IncomingMessage, + Http1Response extends typeof ServerResponse> = typeof ServerResponse, + Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, + Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, + > extends SecureServerSessionOptions { + allowHTTP1?: boolean | undefined; + origins?: string[] | undefined; + } + interface HTTP2ServerCommon { + setTimeout(msec?: number, callback?: () => void): this; + /** + * Throws ERR_HTTP2_INVALID_SETTING_VALUE for invalid settings values. + * Throws ERR_INVALID_ARG_TYPE for invalid settings argument. + */ + updateSettings(settings: Settings): void; + } + export interface Http2Server< + Http1Request extends typeof IncomingMessage = typeof IncomingMessage, + Http1Response extends typeof ServerResponse> = typeof ServerResponse, + Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, + Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, + > extends net.Server, HTTP2ServerCommon { + addListener( + event: "checkContinue", + listener: (request: InstanceType, response: InstanceType) => void, + ): this; + addListener( + event: "request", + listener: (request: InstanceType, response: InstanceType) => void, + ): this; + addListener( + event: "session", + listener: (session: ServerHttp2Session) => void, + ): this; + addListener(event: "sessionError", listener: (err: Error) => void): this; + addListener( + event: "stream", + listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, + ): this; + addListener(event: "timeout", listener: () => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + emit( + event: "checkContinue", + request: InstanceType, + response: InstanceType, + ): boolean; + emit(event: "request", request: InstanceType, response: InstanceType): boolean; + emit( + event: "session", + session: ServerHttp2Session, + ): boolean; + emit(event: "sessionError", err: Error): boolean; + emit(event: "stream", stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number): boolean; + emit(event: "timeout"): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + on( + event: "checkContinue", + listener: (request: InstanceType, response: InstanceType) => void, + ): this; + on( + event: "request", + listener: (request: InstanceType, response: InstanceType) => void, + ): this; + on( + event: "session", + listener: (session: ServerHttp2Session) => void, + ): this; + on(event: "sessionError", listener: (err: Error) => void): this; + on( + event: "stream", + listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, + ): this; + on(event: "timeout", listener: () => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + once( + event: "checkContinue", + listener: (request: InstanceType, response: InstanceType) => void, + ): this; + once( + event: "request", + listener: (request: InstanceType, response: InstanceType) => void, + ): this; + once( + event: "session", + listener: (session: ServerHttp2Session) => void, + ): this; + once(event: "sessionError", listener: (err: Error) => void): this; + once( + event: "stream", + listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, + ): this; + once(event: "timeout", listener: () => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + prependListener( + event: "checkContinue", + listener: (request: InstanceType, response: InstanceType) => void, + ): this; + prependListener( + event: "request", + listener: (request: InstanceType, response: InstanceType) => void, + ): this; + prependListener( + event: "session", + listener: (session: ServerHttp2Session) => void, + ): this; + prependListener(event: "sessionError", listener: (err: Error) => void): this; + prependListener( + event: "stream", + listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, + ): this; + prependListener(event: "timeout", listener: () => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + prependOnceListener( + event: "checkContinue", + listener: (request: InstanceType, response: InstanceType) => void, + ): this; + prependOnceListener( + event: "request", + listener: (request: InstanceType, response: InstanceType) => void, + ): this; + prependOnceListener( + event: "session", + listener: (session: ServerHttp2Session) => void, + ): this; + prependOnceListener(event: "sessionError", listener: (err: Error) => void): this; + prependOnceListener( + event: "stream", + listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, + ): this; + prependOnceListener(event: "timeout", listener: () => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + } + export interface Http2SecureServer< + Http1Request extends typeof IncomingMessage = typeof IncomingMessage, + Http1Response extends typeof ServerResponse> = typeof ServerResponse, + Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, + Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, + > extends tls.Server, HTTP2ServerCommon { + addListener( + event: "checkContinue", + listener: (request: InstanceType, response: InstanceType) => void, + ): this; + addListener( + event: "request", + listener: (request: InstanceType, response: InstanceType) => void, + ): this; + addListener( + event: "session", + listener: (session: ServerHttp2Session) => void, + ): this; + addListener(event: "sessionError", listener: (err: Error) => void): this; + addListener( + event: "stream", + listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, + ): this; + addListener(event: "timeout", listener: () => void): this; + addListener(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + emit( + event: "checkContinue", + request: InstanceType, + response: InstanceType, + ): boolean; + emit(event: "request", request: InstanceType, response: InstanceType): boolean; + emit( + event: "session", + session: ServerHttp2Session, + ): boolean; + emit(event: "sessionError", err: Error): boolean; + emit(event: "stream", stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number): boolean; + emit(event: "timeout"): boolean; + emit(event: "unknownProtocol", socket: tls.TLSSocket): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + on( + event: "checkContinue", + listener: (request: InstanceType, response: InstanceType) => void, + ): this; + on( + event: "request", + listener: (request: InstanceType, response: InstanceType) => void, + ): this; + on( + event: "session", + listener: (session: ServerHttp2Session) => void, + ): this; + on(event: "sessionError", listener: (err: Error) => void): this; + on( + event: "stream", + listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, + ): this; + on(event: "timeout", listener: () => void): this; + on(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + once( + event: "checkContinue", + listener: (request: InstanceType, response: InstanceType) => void, + ): this; + once( + event: "request", + listener: (request: InstanceType, response: InstanceType) => void, + ): this; + once( + event: "session", + listener: (session: ServerHttp2Session) => void, + ): this; + once(event: "sessionError", listener: (err: Error) => void): this; + once( + event: "stream", + listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, + ): this; + once(event: "timeout", listener: () => void): this; + once(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + prependListener( + event: "checkContinue", + listener: (request: InstanceType, response: InstanceType) => void, + ): this; + prependListener( + event: "request", + listener: (request: InstanceType, response: InstanceType) => void, + ): this; + prependListener( + event: "session", + listener: (session: ServerHttp2Session) => void, + ): this; + prependListener(event: "sessionError", listener: (err: Error) => void): this; + prependListener( + event: "stream", + listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, + ): this; + prependListener(event: "timeout", listener: () => void): this; + prependListener(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + prependOnceListener( + event: "checkContinue", + listener: (request: InstanceType, response: InstanceType) => void, + ): this; + prependOnceListener( + event: "request", + listener: (request: InstanceType, response: InstanceType) => void, + ): this; + prependOnceListener( + event: "session", + listener: (session: ServerHttp2Session) => void, + ): this; + prependOnceListener(event: "sessionError", listener: (err: Error) => void): this; + prependOnceListener( + event: "stream", + listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, + ): this; + prependOnceListener(event: "timeout", listener: () => void): this; + prependOnceListener(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + } + /** + * A `Http2ServerRequest` object is created by {@link Server} or {@link SecureServer} and passed as the first argument to the `'request'` event. It may be used to access a request status, + * headers, and + * data. + * @since v8.4.0 + */ + export class Http2ServerRequest extends stream.Readable { + constructor( + stream: ServerHttp2Stream, + headers: IncomingHttpHeaders, + options: stream.ReadableOptions, + rawHeaders: readonly string[], + ); + /** + * The `request.aborted` property will be `true` if the request has + * been aborted. + * @since v10.1.0 + */ + readonly aborted: boolean; + /** + * The request authority pseudo header field. Because HTTP/2 allows requests + * to set either `:authority` or `host`, this value is derived from `req.headers[':authority']` if present. Otherwise, it is derived from `req.headers['host']`. + * @since v8.4.0 + */ + readonly authority: string; + /** + * See `request.socket`. + * @since v8.4.0 + * @deprecated Since v13.0.0 - Use `socket`. + */ + readonly connection: net.Socket | tls.TLSSocket; + /** + * The `request.complete` property will be `true` if the request has + * been completed, aborted, or destroyed. + * @since v12.10.0 + */ + readonly complete: boolean; + /** + * The request/response headers object. + * + * Key-value pairs of header names and values. Header names are lower-cased. + * + * ```js + * // Prints something like: + * // + * // { 'user-agent': 'curl/7.22.0', + * // host: '127.0.0.1:8000', + * // accept: '*' } + * console.log(request.headers); + * ``` + * + * See `HTTP/2 Headers Object`. + * + * In HTTP/2, the request path, host name, protocol, and method are represented as + * special headers prefixed with the `:` character (e.g. `':path'`). These special + * headers will be included in the `request.headers` object. Care must be taken not + * to inadvertently modify these special headers or errors may occur. For instance, + * removing all headers from the request will cause errors to occur: + * + * ```js + * removeAllHeaders(request.headers); + * assert(request.url); // Fails because the :path header has been removed + * ``` + * @since v8.4.0 + */ + readonly headers: IncomingHttpHeaders; + /** + * In case of server request, the HTTP version sent by the client. In the case of + * client response, the HTTP version of the connected-to server. Returns `'2.0'`. + * + * Also `message.httpVersionMajor` is the first integer and `message.httpVersionMinor` is the second. + * @since v8.4.0 + */ + readonly httpVersion: string; + readonly httpVersionMinor: number; + readonly httpVersionMajor: number; + /** + * The request method as a string. Read-only. Examples: `'GET'`, `'DELETE'`. + * @since v8.4.0 + */ + readonly method: string; + /** + * The raw request/response headers list exactly as they were received. + * + * The keys and values are in the same list. It is _not_ a + * list of tuples. So, the even-numbered offsets are key values, and the + * odd-numbered offsets are the associated values. + * + * Header names are not lowercased, and duplicates are not merged. + * + * ```js + * // Prints something like: + * // + * // [ 'user-agent', + * // 'this is invalid because there can be only one', + * // 'User-Agent', + * // 'curl/7.22.0', + * // 'Host', + * // '127.0.0.1:8000', + * // 'ACCEPT', + * // '*' ] + * console.log(request.rawHeaders); + * ``` + * @since v8.4.0 + */ + readonly rawHeaders: string[]; + /** + * The raw request/response trailer keys and values exactly as they were + * received. Only populated at the `'end'` event. + * @since v8.4.0 + */ + readonly rawTrailers: string[]; + /** + * The request scheme pseudo header field indicating the scheme + * portion of the target URL. + * @since v8.4.0 + */ + readonly scheme: string; + /** + * Returns a `Proxy` object that acts as a `net.Socket` (or `tls.TLSSocket`) but + * applies getters, setters, and methods based on HTTP/2 logic. + * + * `destroyed`, `readable`, and `writable` properties will be retrieved from and + * set on `request.stream`. + * + * `destroy`, `emit`, `end`, `on` and `once` methods will be called on `request.stream`. + * + * `setTimeout` method will be called on `request.stream.session`. + * + * `pause`, `read`, `resume`, and `write` will throw an error with code `ERR_HTTP2_NO_SOCKET_MANIPULATION`. See `Http2Session and Sockets` for + * more information. + * + * All other interactions will be routed directly to the socket. With TLS support, + * use `request.socket.getPeerCertificate()` to obtain the client's + * authentication details. + * @since v8.4.0 + */ + readonly socket: net.Socket | tls.TLSSocket; + /** + * The `Http2Stream` object backing the request. + * @since v8.4.0 + */ + readonly stream: ServerHttp2Stream; + /** + * The request/response trailers object. Only populated at the `'end'` event. + * @since v8.4.0 + */ + readonly trailers: IncomingHttpHeaders; + /** + * Request URL string. This contains only the URL that is present in the actual + * HTTP request. If the request is: + * + * ```http + * GET /status?name=ryan HTTP/1.1 + * Accept: text/plain + * ``` + * + * Then `request.url` will be: + * + * ```js + * '/status?name=ryan' + * ``` + * + * To parse the url into its parts, `new URL()` can be used: + * + * ```console + * $ node + * > new URL('/status?name=ryan', 'http://example.com') + * URL { + * href: 'http://example.com/status?name=ryan', + * origin: 'http://example.com', + * protocol: 'http:', + * username: '', + * password: '', + * host: 'example.com', + * hostname: 'example.com', + * port: '', + * pathname: '/status', + * search: '?name=ryan', + * searchParams: URLSearchParams { 'name' => 'ryan' }, + * hash: '' + * } + * ``` + * @since v8.4.0 + */ + url: string; + /** + * Sets the `Http2Stream`'s timeout value to `msecs`. If a callback is + * provided, then it is added as a listener on the `'timeout'` event on + * the response object. + * + * If no `'timeout'` listener is added to the request, the response, or + * the server, then `Http2Stream`s are destroyed when they time out. If a + * handler is assigned to the request, the response, or the server's `'timeout'`events, timed out sockets must be handled explicitly. + * @since v8.4.0 + */ + setTimeout(msecs: number, callback?: () => void): void; + read(size?: number): NonSharedBuffer | string | null; + addListener(event: "aborted", listener: (hadError: boolean, code: number) => void): this; + addListener(event: "close", listener: () => void): this; + addListener(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; + addListener(event: "end", listener: () => void): this; + addListener(event: "readable", listener: () => void): this; + addListener(event: "error", listener: (err: Error) => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + emit(event: "aborted", hadError: boolean, code: number): boolean; + emit(event: "close"): boolean; + emit(event: "data", chunk: NonSharedBuffer | string): boolean; + emit(event: "end"): boolean; + emit(event: "readable"): boolean; + emit(event: "error", err: Error): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + on(event: "aborted", listener: (hadError: boolean, code: number) => void): this; + on(event: "close", listener: () => void): this; + on(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; + on(event: "end", listener: () => void): this; + on(event: "readable", listener: () => void): this; + on(event: "error", listener: (err: Error) => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + once(event: "aborted", listener: (hadError: boolean, code: number) => void): this; + once(event: "close", listener: () => void): this; + once(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; + once(event: "end", listener: () => void): this; + once(event: "readable", listener: () => void): this; + once(event: "error", listener: (err: Error) => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + prependListener(event: "aborted", listener: (hadError: boolean, code: number) => void): this; + prependListener(event: "close", listener: () => void): this; + prependListener(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; + prependListener(event: "end", listener: () => void): this; + prependListener(event: "readable", listener: () => void): this; + prependListener(event: "error", listener: (err: Error) => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + prependOnceListener(event: "aborted", listener: (hadError: boolean, code: number) => void): this; + prependOnceListener(event: "close", listener: () => void): this; + prependOnceListener(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; + prependOnceListener(event: "end", listener: () => void): this; + prependOnceListener(event: "readable", listener: () => void): this; + prependOnceListener(event: "error", listener: (err: Error) => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + } + /** + * This object is created internally by an HTTP server, not by the user. It is + * passed as the second parameter to the `'request'` event. + * @since v8.4.0 + */ + export class Http2ServerResponse extends stream.Writable { + constructor(stream: ServerHttp2Stream); + /** + * See `response.socket`. + * @since v8.4.0 + * @deprecated Since v13.0.0 - Use `socket`. + */ + readonly connection: net.Socket | tls.TLSSocket; + /** + * Append a single header value to the header object. + * + * If the value is an array, this is equivalent to calling this method multiple times. + * + * If there were no previous values for the header, this is equivalent to calling {@link setHeader}. + * + * Attempting to set a header field name or value that contains invalid characters will result in a + * [TypeError](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-typeerror) being thrown. + * + * ```js + * // Returns headers including "set-cookie: a" and "set-cookie: b" + * const server = http2.createServer((req, res) => { + * res.setHeader('set-cookie', 'a'); + * res.appendHeader('set-cookie', 'b'); + * res.writeHead(200); + * res.end('ok'); + * }); + * ``` + * @since v20.12.0 + */ + appendHeader(name: string, value: string | string[]): void; + /** + * Boolean value that indicates whether the response has completed. Starts + * as `false`. After `response.end()` executes, the value will be `true`. + * @since v8.4.0 + * @deprecated Since v13.4.0,v12.16.0 - Use `writableEnded`. + */ + readonly finished: boolean; + /** + * True if headers were sent, false otherwise (read-only). + * @since v8.4.0 + */ + readonly headersSent: boolean; + /** + * A reference to the original HTTP2 `request` object. + * @since v15.7.0 + */ + readonly req: Request; + /** + * Returns a `Proxy` object that acts as a `net.Socket` (or `tls.TLSSocket`) but + * applies getters, setters, and methods based on HTTP/2 logic. + * + * `destroyed`, `readable`, and `writable` properties will be retrieved from and + * set on `response.stream`. + * + * `destroy`, `emit`, `end`, `on` and `once` methods will be called on `response.stream`. + * + * `setTimeout` method will be called on `response.stream.session`. + * + * `pause`, `read`, `resume`, and `write` will throw an error with code `ERR_HTTP2_NO_SOCKET_MANIPULATION`. See `Http2Session and Sockets` for + * more information. + * + * All other interactions will be routed directly to the socket. + * + * ```js + * import http2 from 'node:http2'; + * const server = http2.createServer((req, res) => { + * const ip = req.socket.remoteAddress; + * const port = req.socket.remotePort; + * res.end(`Your IP address is ${ip} and your source port is ${port}.`); + * }).listen(3000); + * ``` + * @since v8.4.0 + */ + readonly socket: net.Socket | tls.TLSSocket; + /** + * The `Http2Stream` object backing the response. + * @since v8.4.0 + */ + readonly stream: ServerHttp2Stream; + /** + * When true, the Date header will be automatically generated and sent in + * the response if it is not already present in the headers. Defaults to true. + * + * This should only be disabled for testing; HTTP requires the Date header + * in responses. + * @since v8.4.0 + */ + sendDate: boolean; + /** + * When using implicit headers (not calling `response.writeHead()` explicitly), + * this property controls the status code that will be sent to the client when + * the headers get flushed. + * + * ```js + * response.statusCode = 404; + * ``` + * + * After response header was sent to the client, this property indicates the + * status code which was sent out. + * @since v8.4.0 + */ + statusCode: number; + /** + * Status message is not supported by HTTP/2 (RFC 7540 8.1.2.4). It returns + * an empty string. + * @since v8.4.0 + */ + statusMessage: ""; + /** + * This method adds HTTP trailing headers (a header but at the end of the + * message) to the response. + * + * Attempting to set a header field name or value that contains invalid characters + * will result in a `TypeError` being thrown. + * @since v8.4.0 + */ + addTrailers(trailers: OutgoingHttpHeaders): void; + /** + * This method signals to the server that all of the response headers and body + * have been sent; that server should consider this message complete. + * The method, `response.end()`, MUST be called on each response. + * + * If `data` is specified, it is equivalent to calling `response.write(data, encoding)` followed by `response.end(callback)`. + * + * If `callback` is specified, it will be called when the response stream + * is finished. + * @since v8.4.0 + */ + end(callback?: () => void): this; + end(data: string | Uint8Array, callback?: () => void): this; + end(data: string | Uint8Array, encoding: BufferEncoding, callback?: () => void): this; + /** + * Reads out a header that has already been queued but not sent to the client. + * The name is case-insensitive. + * + * ```js + * const contentType = response.getHeader('content-type'); + * ``` + * @since v8.4.0 + */ + getHeader(name: string): string; + /** + * Returns an array containing the unique names of the current outgoing headers. + * All header names are lowercase. + * + * ```js + * response.setHeader('Foo', 'bar'); + * response.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']); + * + * const headerNames = response.getHeaderNames(); + * // headerNames === ['foo', 'set-cookie'] + * ``` + * @since v8.4.0 + */ + getHeaderNames(): string[]; + /** + * Returns a shallow copy of the current outgoing headers. Since a shallow copy + * is used, array values may be mutated without additional calls to various + * header-related http module methods. The keys of the returned object are the + * header names and the values are the respective header values. All header names + * are lowercase. + * + * The object returned by the `response.getHeaders()` method _does not_ prototypically inherit from the JavaScript `Object`. This means that typical `Object` methods such as `obj.toString()`, + * `obj.hasOwnProperty()`, and others + * are not defined and _will not work_. + * + * ```js + * response.setHeader('Foo', 'bar'); + * response.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']); + * + * const headers = response.getHeaders(); + * // headers === { foo: 'bar', 'set-cookie': ['foo=bar', 'bar=baz'] } + * ``` + * @since v8.4.0 + */ + getHeaders(): OutgoingHttpHeaders; + /** + * Returns `true` if the header identified by `name` is currently set in the + * outgoing headers. The header name matching is case-insensitive. + * + * ```js + * const hasContentType = response.hasHeader('content-type'); + * ``` + * @since v8.4.0 + */ + hasHeader(name: string): boolean; + /** + * Removes a header that has been queued for implicit sending. + * + * ```js + * response.removeHeader('Content-Encoding'); + * ``` + * @since v8.4.0 + */ + removeHeader(name: string): void; + /** + * Sets a single header value for implicit headers. If this header already exists + * in the to-be-sent headers, its value will be replaced. Use an array of strings + * here to send multiple headers with the same name. + * + * ```js + * response.setHeader('Content-Type', 'text/html; charset=utf-8'); + * ``` + * + * or + * + * ```js + * response.setHeader('Set-Cookie', ['type=ninja', 'language=javascript']); + * ``` + * + * Attempting to set a header field name or value that contains invalid characters + * will result in a `TypeError` being thrown. + * + * When headers have been set with `response.setHeader()`, they will be merged + * with any headers passed to `response.writeHead()`, with the headers passed + * to `response.writeHead()` given precedence. + * + * ```js + * // Returns content-type = text/plain + * const server = http2.createServer((req, res) => { + * res.setHeader('Content-Type', 'text/html; charset=utf-8'); + * res.setHeader('X-Foo', 'bar'); + * res.writeHead(200, { 'Content-Type': 'text/plain; charset=utf-8' }); + * res.end('ok'); + * }); + * ``` + * @since v8.4.0 + */ + setHeader(name: string, value: number | string | readonly string[]): void; + /** + * Sets the `Http2Stream`'s timeout value to `msecs`. If a callback is + * provided, then it is added as a listener on the `'timeout'` event on + * the response object. + * + * If no `'timeout'` listener is added to the request, the response, or + * the server, then `Http2Stream` s are destroyed when they time out. If a + * handler is assigned to the request, the response, or the server's `'timeout'` events, timed out sockets must be handled explicitly. + * @since v8.4.0 + */ + setTimeout(msecs: number, callback?: () => void): void; + /** + * If this method is called and `response.writeHead()` has not been called, + * it will switch to implicit header mode and flush the implicit headers. + * + * This sends a chunk of the response body. This method may + * be called multiple times to provide successive parts of the body. + * + * In the `node:http` module, the response body is omitted when the + * request is a HEAD request. Similarly, the `204` and `304` responses _must not_ include a message body. + * + * `chunk` can be a string or a buffer. If `chunk` is a string, + * the second parameter specifies how to encode it into a byte stream. + * By default the `encoding` is `'utf8'`. `callback` will be called when this chunk + * of data is flushed. + * + * This is the raw HTTP body and has nothing to do with higher-level multi-part + * body encodings that may be used. + * + * The first time `response.write()` is called, it will send the buffered + * header information and the first chunk of the body to the client. The second + * time `response.write()` is called, Node.js assumes data will be streamed, + * and sends the new data separately. That is, the response is buffered up to the + * first chunk of the body. + * + * Returns `true` if the entire data was flushed successfully to the kernel + * buffer. Returns `false` if all or part of the data was queued in user memory.`'drain'` will be emitted when the buffer is free again. + * @since v8.4.0 + */ + write(chunk: string | Uint8Array, callback?: (err: Error) => void): boolean; + write(chunk: string | Uint8Array, encoding: BufferEncoding, callback?: (err: Error) => void): boolean; + /** + * Sends a status `100 Continue` to the client, indicating that the request body + * should be sent. See the `'checkContinue'` event on `Http2Server` and `Http2SecureServer`. + * @since v8.4.0 + */ + writeContinue(): void; + /** + * Sends a status `103 Early Hints` to the client with a Link header, + * indicating that the user agent can preload/preconnect the linked resources. + * The `hints` is an object containing the values of headers to be sent with + * early hints message. + * + * **Example** + * + * ```js + * const earlyHintsLink = '; rel=preload; as=style'; + * response.writeEarlyHints({ + * 'link': earlyHintsLink, + * }); + * + * const earlyHintsLinks = [ + * '; rel=preload; as=style', + * '; rel=preload; as=script', + * ]; + * response.writeEarlyHints({ + * 'link': earlyHintsLinks, + * }); + * ``` + * @since v18.11.0 + */ + writeEarlyHints(hints: Record): void; + /** + * Sends a response header to the request. The status code is a 3-digit HTTP + * status code, like `404`. The last argument, `headers`, are the response headers. + * + * Returns a reference to the `Http2ServerResponse`, so that calls can be chained. + * + * For compatibility with `HTTP/1`, a human-readable `statusMessage` may be + * passed as the second argument. However, because the `statusMessage` has no + * meaning within HTTP/2, the argument will have no effect and a process warning + * will be emitted. + * + * ```js + * const body = 'hello world'; + * response.writeHead(200, { + * 'Content-Length': Buffer.byteLength(body), + * 'Content-Type': 'text/plain; charset=utf-8', + * }); + * ``` + * + * `Content-Length` is given in bytes not characters. The`Buffer.byteLength()` API may be used to determine the number of bytes in a + * given encoding. On outbound messages, Node.js does not check if Content-Length + * and the length of the body being transmitted are equal or not. However, when + * receiving messages, Node.js will automatically reject messages when the `Content-Length` does not match the actual payload size. + * + * This method may be called at most one time on a message before `response.end()` is called. + * + * If `response.write()` or `response.end()` are called before calling + * this, the implicit/mutable headers will be calculated and call this function. + * + * When headers have been set with `response.setHeader()`, they will be merged + * with any headers passed to `response.writeHead()`, with the headers passed + * to `response.writeHead()` given precedence. + * + * ```js + * // Returns content-type = text/plain + * const server = http2.createServer((req, res) => { + * res.setHeader('Content-Type', 'text/html; charset=utf-8'); + * res.setHeader('X-Foo', 'bar'); + * res.writeHead(200, { 'Content-Type': 'text/plain; charset=utf-8' }); + * res.end('ok'); + * }); + * ``` + * + * Attempting to set a header field name or value that contains invalid characters + * will result in a `TypeError` being thrown. + * @since v8.4.0 + */ + writeHead(statusCode: number, headers?: OutgoingHttpHeaders): this; + writeHead(statusCode: number, statusMessage: string, headers?: OutgoingHttpHeaders): this; + /** + * Call `http2stream.pushStream()` with the given headers, and wrap the + * given `Http2Stream` on a newly created `Http2ServerResponse` as the callback + * parameter if successful. When `Http2ServerRequest` is closed, the callback is + * called with an error `ERR_HTTP2_INVALID_STREAM`. + * @since v8.4.0 + * @param headers An object describing the headers + * @param callback Called once `http2stream.pushStream()` is finished, or either when the attempt to create the pushed `Http2Stream` has failed or has been rejected, or the state of + * `Http2ServerRequest` is closed prior to calling the `http2stream.pushStream()` method + */ + createPushResponse( + headers: OutgoingHttpHeaders, + callback: (err: Error | null, res: Http2ServerResponse) => void, + ): void; + addListener(event: "close", listener: () => void): this; + addListener(event: "drain", listener: () => void): this; + addListener(event: "error", listener: (error: Error) => void): this; + addListener(event: "finish", listener: () => void): this; + addListener(event: "pipe", listener: (src: stream.Readable) => void): this; + addListener(event: "unpipe", listener: (src: stream.Readable) => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + emit(event: "close"): boolean; + emit(event: "drain"): boolean; + emit(event: "error", error: Error): boolean; + emit(event: "finish"): boolean; + emit(event: "pipe", src: stream.Readable): boolean; + emit(event: "unpipe", src: stream.Readable): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + on(event: "close", listener: () => void): this; + on(event: "drain", listener: () => void): this; + on(event: "error", listener: (error: Error) => void): this; + on(event: "finish", listener: () => void): this; + on(event: "pipe", listener: (src: stream.Readable) => void): this; + on(event: "unpipe", listener: (src: stream.Readable) => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + once(event: "close", listener: () => void): this; + once(event: "drain", listener: () => void): this; + once(event: "error", listener: (error: Error) => void): this; + once(event: "finish", listener: () => void): this; + once(event: "pipe", listener: (src: stream.Readable) => void): this; + once(event: "unpipe", listener: (src: stream.Readable) => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + prependListener(event: "close", listener: () => void): this; + prependListener(event: "drain", listener: () => void): this; + prependListener(event: "error", listener: (error: Error) => void): this; + prependListener(event: "finish", listener: () => void): this; + prependListener(event: "pipe", listener: (src: stream.Readable) => void): this; + prependListener(event: "unpipe", listener: (src: stream.Readable) => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + prependOnceListener(event: "close", listener: () => void): this; + prependOnceListener(event: "drain", listener: () => void): this; + prependOnceListener(event: "error", listener: (error: Error) => void): this; + prependOnceListener(event: "finish", listener: () => void): this; + prependOnceListener(event: "pipe", listener: (src: stream.Readable) => void): this; + prependOnceListener(event: "unpipe", listener: (src: stream.Readable) => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + } + export namespace constants { + const NGHTTP2_SESSION_SERVER: number; + const NGHTTP2_SESSION_CLIENT: number; + const NGHTTP2_STREAM_STATE_IDLE: number; + const NGHTTP2_STREAM_STATE_OPEN: number; + const NGHTTP2_STREAM_STATE_RESERVED_LOCAL: number; + const NGHTTP2_STREAM_STATE_RESERVED_REMOTE: number; + const NGHTTP2_STREAM_STATE_HALF_CLOSED_LOCAL: number; + const NGHTTP2_STREAM_STATE_HALF_CLOSED_REMOTE: number; + const NGHTTP2_STREAM_STATE_CLOSED: number; + const NGHTTP2_NO_ERROR: number; + const NGHTTP2_PROTOCOL_ERROR: number; + const NGHTTP2_INTERNAL_ERROR: number; + const NGHTTP2_FLOW_CONTROL_ERROR: number; + const NGHTTP2_SETTINGS_TIMEOUT: number; + const NGHTTP2_STREAM_CLOSED: number; + const NGHTTP2_FRAME_SIZE_ERROR: number; + const NGHTTP2_REFUSED_STREAM: number; + const NGHTTP2_CANCEL: number; + const NGHTTP2_COMPRESSION_ERROR: number; + const NGHTTP2_CONNECT_ERROR: number; + const NGHTTP2_ENHANCE_YOUR_CALM: number; + const NGHTTP2_INADEQUATE_SECURITY: number; + const NGHTTP2_HTTP_1_1_REQUIRED: number; + const NGHTTP2_ERR_FRAME_SIZE_ERROR: number; + const NGHTTP2_FLAG_NONE: number; + const NGHTTP2_FLAG_END_STREAM: number; + const NGHTTP2_FLAG_END_HEADERS: number; + const NGHTTP2_FLAG_ACK: number; + const NGHTTP2_FLAG_PADDED: number; + const NGHTTP2_FLAG_PRIORITY: number; + const DEFAULT_SETTINGS_HEADER_TABLE_SIZE: number; + const DEFAULT_SETTINGS_ENABLE_PUSH: number; + const DEFAULT_SETTINGS_INITIAL_WINDOW_SIZE: number; + const DEFAULT_SETTINGS_MAX_FRAME_SIZE: number; + const MAX_MAX_FRAME_SIZE: number; + const MIN_MAX_FRAME_SIZE: number; + const MAX_INITIAL_WINDOW_SIZE: number; + const NGHTTP2_DEFAULT_WEIGHT: number; + const NGHTTP2_SETTINGS_HEADER_TABLE_SIZE: number; + const NGHTTP2_SETTINGS_ENABLE_PUSH: number; + const NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS: number; + const NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE: number; + const NGHTTP2_SETTINGS_MAX_FRAME_SIZE: number; + const NGHTTP2_SETTINGS_MAX_HEADER_LIST_SIZE: number; + const PADDING_STRATEGY_NONE: number; + const PADDING_STRATEGY_MAX: number; + const PADDING_STRATEGY_CALLBACK: number; + const HTTP2_HEADER_STATUS: string; + const HTTP2_HEADER_METHOD: string; + const HTTP2_HEADER_AUTHORITY: string; + const HTTP2_HEADER_SCHEME: string; + const HTTP2_HEADER_PATH: string; + const HTTP2_HEADER_ACCEPT_CHARSET: string; + const HTTP2_HEADER_ACCEPT_ENCODING: string; + const HTTP2_HEADER_ACCEPT_LANGUAGE: string; + const HTTP2_HEADER_ACCEPT_RANGES: string; + const HTTP2_HEADER_ACCEPT: string; + const HTTP2_HEADER_ACCESS_CONTROL_ALLOW_CREDENTIALS: string; + const HTTP2_HEADER_ACCESS_CONTROL_ALLOW_HEADERS: string; + const HTTP2_HEADER_ACCESS_CONTROL_ALLOW_METHODS: string; + const HTTP2_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN: string; + const HTTP2_HEADER_ACCESS_CONTROL_EXPOSE_HEADERS: string; + const HTTP2_HEADER_ACCESS_CONTROL_REQUEST_HEADERS: string; + const HTTP2_HEADER_ACCESS_CONTROL_REQUEST_METHOD: string; + const HTTP2_HEADER_AGE: string; + const HTTP2_HEADER_ALLOW: string; + const HTTP2_HEADER_AUTHORIZATION: string; + const HTTP2_HEADER_CACHE_CONTROL: string; + const HTTP2_HEADER_CONNECTION: string; + const HTTP2_HEADER_CONTENT_DISPOSITION: string; + const HTTP2_HEADER_CONTENT_ENCODING: string; + const HTTP2_HEADER_CONTENT_LANGUAGE: string; + const HTTP2_HEADER_CONTENT_LENGTH: string; + const HTTP2_HEADER_CONTENT_LOCATION: string; + const HTTP2_HEADER_CONTENT_MD5: string; + const HTTP2_HEADER_CONTENT_RANGE: string; + const HTTP2_HEADER_CONTENT_TYPE: string; + const HTTP2_HEADER_COOKIE: string; + const HTTP2_HEADER_DATE: string; + const HTTP2_HEADER_ETAG: string; + const HTTP2_HEADER_EXPECT: string; + const HTTP2_HEADER_EXPIRES: string; + const HTTP2_HEADER_FROM: string; + const HTTP2_HEADER_HOST: string; + const HTTP2_HEADER_IF_MATCH: string; + const HTTP2_HEADER_IF_MODIFIED_SINCE: string; + const HTTP2_HEADER_IF_NONE_MATCH: string; + const HTTP2_HEADER_IF_RANGE: string; + const HTTP2_HEADER_IF_UNMODIFIED_SINCE: string; + const HTTP2_HEADER_LAST_MODIFIED: string; + const HTTP2_HEADER_LINK: string; + const HTTP2_HEADER_LOCATION: string; + const HTTP2_HEADER_MAX_FORWARDS: string; + const HTTP2_HEADER_PREFER: string; + const HTTP2_HEADER_PROXY_AUTHENTICATE: string; + const HTTP2_HEADER_PROXY_AUTHORIZATION: string; + const HTTP2_HEADER_RANGE: string; + const HTTP2_HEADER_REFERER: string; + const HTTP2_HEADER_REFRESH: string; + const HTTP2_HEADER_RETRY_AFTER: string; + const HTTP2_HEADER_SERVER: string; + const HTTP2_HEADER_SET_COOKIE: string; + const HTTP2_HEADER_STRICT_TRANSPORT_SECURITY: string; + const HTTP2_HEADER_TRANSFER_ENCODING: string; + const HTTP2_HEADER_TE: string; + const HTTP2_HEADER_UPGRADE: string; + const HTTP2_HEADER_USER_AGENT: string; + const HTTP2_HEADER_VARY: string; + const HTTP2_HEADER_VIA: string; + const HTTP2_HEADER_WWW_AUTHENTICATE: string; + const HTTP2_HEADER_HTTP2_SETTINGS: string; + const HTTP2_HEADER_KEEP_ALIVE: string; + const HTTP2_HEADER_PROXY_CONNECTION: string; + const HTTP2_METHOD_ACL: string; + const HTTP2_METHOD_BASELINE_CONTROL: string; + const HTTP2_METHOD_BIND: string; + const HTTP2_METHOD_CHECKIN: string; + const HTTP2_METHOD_CHECKOUT: string; + const HTTP2_METHOD_CONNECT: string; + const HTTP2_METHOD_COPY: string; + const HTTP2_METHOD_DELETE: string; + const HTTP2_METHOD_GET: string; + const HTTP2_METHOD_HEAD: string; + const HTTP2_METHOD_LABEL: string; + const HTTP2_METHOD_LINK: string; + const HTTP2_METHOD_LOCK: string; + const HTTP2_METHOD_MERGE: string; + const HTTP2_METHOD_MKACTIVITY: string; + const HTTP2_METHOD_MKCALENDAR: string; + const HTTP2_METHOD_MKCOL: string; + const HTTP2_METHOD_MKREDIRECTREF: string; + const HTTP2_METHOD_MKWORKSPACE: string; + const HTTP2_METHOD_MOVE: string; + const HTTP2_METHOD_OPTIONS: string; + const HTTP2_METHOD_ORDERPATCH: string; + const HTTP2_METHOD_PATCH: string; + const HTTP2_METHOD_POST: string; + const HTTP2_METHOD_PRI: string; + const HTTP2_METHOD_PROPFIND: string; + const HTTP2_METHOD_PROPPATCH: string; + const HTTP2_METHOD_PUT: string; + const HTTP2_METHOD_REBIND: string; + const HTTP2_METHOD_REPORT: string; + const HTTP2_METHOD_SEARCH: string; + const HTTP2_METHOD_TRACE: string; + const HTTP2_METHOD_UNBIND: string; + const HTTP2_METHOD_UNCHECKOUT: string; + const HTTP2_METHOD_UNLINK: string; + const HTTP2_METHOD_UNLOCK: string; + const HTTP2_METHOD_UPDATE: string; + const HTTP2_METHOD_UPDATEREDIRECTREF: string; + const HTTP2_METHOD_VERSION_CONTROL: string; + const HTTP_STATUS_CONTINUE: number; + const HTTP_STATUS_SWITCHING_PROTOCOLS: number; + const HTTP_STATUS_PROCESSING: number; + const HTTP_STATUS_OK: number; + const HTTP_STATUS_CREATED: number; + const HTTP_STATUS_ACCEPTED: number; + const HTTP_STATUS_NON_AUTHORITATIVE_INFORMATION: number; + const HTTP_STATUS_NO_CONTENT: number; + const HTTP_STATUS_RESET_CONTENT: number; + const HTTP_STATUS_PARTIAL_CONTENT: number; + const HTTP_STATUS_MULTI_STATUS: number; + const HTTP_STATUS_ALREADY_REPORTED: number; + const HTTP_STATUS_IM_USED: number; + const HTTP_STATUS_MULTIPLE_CHOICES: number; + const HTTP_STATUS_MOVED_PERMANENTLY: number; + const HTTP_STATUS_FOUND: number; + const HTTP_STATUS_SEE_OTHER: number; + const HTTP_STATUS_NOT_MODIFIED: number; + const HTTP_STATUS_USE_PROXY: number; + const HTTP_STATUS_TEMPORARY_REDIRECT: number; + const HTTP_STATUS_PERMANENT_REDIRECT: number; + const HTTP_STATUS_BAD_REQUEST: number; + const HTTP_STATUS_UNAUTHORIZED: number; + const HTTP_STATUS_PAYMENT_REQUIRED: number; + const HTTP_STATUS_FORBIDDEN: number; + const HTTP_STATUS_NOT_FOUND: number; + const HTTP_STATUS_METHOD_NOT_ALLOWED: number; + const HTTP_STATUS_NOT_ACCEPTABLE: number; + const HTTP_STATUS_PROXY_AUTHENTICATION_REQUIRED: number; + const HTTP_STATUS_REQUEST_TIMEOUT: number; + const HTTP_STATUS_CONFLICT: number; + const HTTP_STATUS_GONE: number; + const HTTP_STATUS_LENGTH_REQUIRED: number; + const HTTP_STATUS_PRECONDITION_FAILED: number; + const HTTP_STATUS_PAYLOAD_TOO_LARGE: number; + const HTTP_STATUS_URI_TOO_LONG: number; + const HTTP_STATUS_UNSUPPORTED_MEDIA_TYPE: number; + const HTTP_STATUS_RANGE_NOT_SATISFIABLE: number; + const HTTP_STATUS_EXPECTATION_FAILED: number; + const HTTP_STATUS_TEAPOT: number; + const HTTP_STATUS_MISDIRECTED_REQUEST: number; + const HTTP_STATUS_UNPROCESSABLE_ENTITY: number; + const HTTP_STATUS_LOCKED: number; + const HTTP_STATUS_FAILED_DEPENDENCY: number; + const HTTP_STATUS_UNORDERED_COLLECTION: number; + const HTTP_STATUS_UPGRADE_REQUIRED: number; + const HTTP_STATUS_PRECONDITION_REQUIRED: number; + const HTTP_STATUS_TOO_MANY_REQUESTS: number; + const HTTP_STATUS_REQUEST_HEADER_FIELDS_TOO_LARGE: number; + const HTTP_STATUS_UNAVAILABLE_FOR_LEGAL_REASONS: number; + const HTTP_STATUS_INTERNAL_SERVER_ERROR: number; + const HTTP_STATUS_NOT_IMPLEMENTED: number; + const HTTP_STATUS_BAD_GATEWAY: number; + const HTTP_STATUS_SERVICE_UNAVAILABLE: number; + const HTTP_STATUS_GATEWAY_TIMEOUT: number; + const HTTP_STATUS_HTTP_VERSION_NOT_SUPPORTED: number; + const HTTP_STATUS_VARIANT_ALSO_NEGOTIATES: number; + const HTTP_STATUS_INSUFFICIENT_STORAGE: number; + const HTTP_STATUS_LOOP_DETECTED: number; + const HTTP_STATUS_BANDWIDTH_LIMIT_EXCEEDED: number; + const HTTP_STATUS_NOT_EXTENDED: number; + const HTTP_STATUS_NETWORK_AUTHENTICATION_REQUIRED: number; + } + /** + * This symbol can be set as a property on the HTTP/2 headers object with + * an array value in order to provide a list of headers considered sensitive. + */ + export const sensitiveHeaders: symbol; + /** + * Returns an object containing the default settings for an `Http2Session` instance. This method returns a new object instance every time it is called + * so instances returned may be safely modified for use. + * @since v8.4.0 + */ + export function getDefaultSettings(): Settings; + /** + * Returns a `Buffer` instance containing serialized representation of the given + * HTTP/2 settings as specified in the [HTTP/2](https://tools.ietf.org/html/rfc7540) specification. This is intended + * for use with the `HTTP2-Settings` header field. + * + * ```js + * import http2 from 'node:http2'; + * + * const packed = http2.getPackedSettings({ enablePush: false }); + * + * console.log(packed.toString('base64')); + * // Prints: AAIAAAAA + * ``` + * @since v8.4.0 + */ + export function getPackedSettings(settings: Settings): NonSharedBuffer; + /** + * Returns a `HTTP/2 Settings Object` containing the deserialized settings from + * the given `Buffer` as generated by `http2.getPackedSettings()`. + * @since v8.4.0 + * @param buf The packed settings. + */ + export function getUnpackedSettings(buf: Uint8Array): Settings; + /** + * Returns a `net.Server` instance that creates and manages `Http2Session` instances. + * + * Since there are no browsers known that support [unencrypted HTTP/2](https://http2.github.io/faq/#does-http2-require-encryption), the use of {@link createSecureServer} is necessary when + * communicating + * with browser clients. + * + * ```js + * import http2 from 'node:http2'; + * + * // Create an unencrypted HTTP/2 server. + * // Since there are no browsers known that support + * // unencrypted HTTP/2, the use of `http2.createSecureServer()` + * // is necessary when communicating with browser clients. + * const server = http2.createServer(); + * + * server.on('stream', (stream, headers) => { + * stream.respond({ + * 'content-type': 'text/html; charset=utf-8', + * ':status': 200, + * }); + * stream.end('

Hello World

'); + * }); + * + * server.listen(8000); + * ``` + * @since v8.4.0 + * @param onRequestHandler See `Compatibility API` + */ + export function createServer( + onRequestHandler?: (request: Http2ServerRequest, response: Http2ServerResponse) => void, + ): Http2Server; + export function createServer< + Http1Request extends typeof IncomingMessage = typeof IncomingMessage, + Http1Response extends typeof ServerResponse> = typeof ServerResponse, + Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, + Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, + >( + options: ServerOptions, + onRequestHandler?: (request: InstanceType, response: InstanceType) => void, + ): Http2Server; + /** + * Returns a `tls.Server` instance that creates and manages `Http2Session` instances. + * + * ```js + * import http2 from 'node:http2'; + * import fs from 'node:fs'; + * + * const options = { + * key: fs.readFileSync('server-key.pem'), + * cert: fs.readFileSync('server-cert.pem'), + * }; + * + * // Create a secure HTTP/2 server + * const server = http2.createSecureServer(options); + * + * server.on('stream', (stream, headers) => { + * stream.respond({ + * 'content-type': 'text/html; charset=utf-8', + * ':status': 200, + * }); + * stream.end('

Hello World

'); + * }); + * + * server.listen(8443); + * ``` + * @since v8.4.0 + * @param onRequestHandler See `Compatibility API` + */ + export function createSecureServer( + onRequestHandler?: (request: Http2ServerRequest, response: Http2ServerResponse) => void, + ): Http2SecureServer; + export function createSecureServer< + Http1Request extends typeof IncomingMessage = typeof IncomingMessage, + Http1Response extends typeof ServerResponse> = typeof ServerResponse, + Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, + Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, + >( + options: SecureServerOptions, + onRequestHandler?: (request: InstanceType, response: InstanceType) => void, + ): Http2SecureServer; + /** + * Returns a `ClientHttp2Session` instance. + * + * ```js + * import http2 from 'node:http2'; + * const client = http2.connect('https://localhost:1234'); + * + * // Use the client + * + * client.close(); + * ``` + * @since v8.4.0 + * @param authority The remote HTTP/2 server to connect to. This must be in the form of a minimal, valid URL with the `http://` or `https://` prefix, host name, and IP port (if a non-default port + * is used). Userinfo (user ID and password), path, querystring, and fragment details in the URL will be ignored. + * @param listener Will be registered as a one-time listener of the {@link 'connect'} event. + */ + export function connect( + authority: string | url.URL, + listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void, + ): ClientHttp2Session; + export function connect( + authority: string | url.URL, + options?: ClientSessionOptions | SecureClientSessionOptions, + listener?: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void, + ): ClientHttp2Session; + /** + * Create an HTTP/2 server session from an existing socket. + * @param socket A Duplex Stream + * @param options Any `{@link createServer}` options can be provided. + * @since v20.12.0 + */ + export function performServerHandshake< + Http1Request extends typeof IncomingMessage = typeof IncomingMessage, + Http1Response extends typeof ServerResponse> = typeof ServerResponse, + Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, + Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, + >( + socket: stream.Duplex, + options?: ServerOptions, + ): ServerHttp2Session; +} +declare module "node:http2" { + export * from "http2"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/https.d.ts b/backend/node_modules/httpx/node_modules/@types/node/https.d.ts new file mode 100644 index 0000000..5ac4581 --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/https.d.ts @@ -0,0 +1,578 @@ +/** + * HTTPS is the HTTP protocol over TLS/SSL. In Node.js this is implemented as a + * separate module. + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/https.js) + */ +declare module "https" { + import { NonSharedBuffer } from "node:buffer"; + import { Duplex } from "node:stream"; + import * as tls from "node:tls"; + import * as http from "node:http"; + import { URL } from "node:url"; + interface ServerOptions< + Request extends typeof http.IncomingMessage = typeof http.IncomingMessage, + Response extends typeof http.ServerResponse> = typeof http.ServerResponse, + > extends http.ServerOptions, tls.TlsOptions {} + interface RequestOptions extends http.RequestOptions, tls.SecureContextOptions { + checkServerIdentity?: typeof tls.checkServerIdentity | undefined; + rejectUnauthorized?: boolean | undefined; // Defaults to true + servername?: string | undefined; // SNI TLS Extension + } + interface AgentOptions extends http.AgentOptions, tls.ConnectionOptions { + rejectUnauthorized?: boolean | undefined; + maxCachedSessions?: number | undefined; + } + /** + * An `Agent` object for HTTPS similar to `http.Agent`. See {@link request} for more information. + * @since v0.4.5 + */ + class Agent extends http.Agent { + constructor(options?: AgentOptions); + options: AgentOptions; + createConnection( + options: RequestOptions, + callback?: (err: Error | null, stream: Duplex) => void, + ): Duplex | null | undefined; + getName(options?: RequestOptions): string; + } + interface Server< + Request extends typeof http.IncomingMessage = typeof http.IncomingMessage, + Response extends typeof http.ServerResponse> = typeof http.ServerResponse, + > extends http.Server {} + /** + * See `http.Server` for more information. + * @since v0.3.4 + */ + class Server< + Request extends typeof http.IncomingMessage = typeof http.IncomingMessage, + Response extends typeof http.ServerResponse> = typeof http.ServerResponse, + > extends tls.Server { + constructor(requestListener?: http.RequestListener); + constructor( + options: ServerOptions, + requestListener?: http.RequestListener, + ); + /** + * Closes all connections connected to this server. + * @since v18.2.0 + */ + closeAllConnections(): void; + /** + * Closes all connections connected to this server which are not sending a request or waiting for a response. + * @since v18.2.0 + */ + closeIdleConnections(): void; + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this; + addListener( + event: "newSession", + listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, + ): this; + addListener( + event: "OCSPRequest", + listener: ( + certificate: NonSharedBuffer, + issuer: NonSharedBuffer, + callback: (err: Error | null, resp: Buffer | null) => void, + ) => void, + ): this; + addListener( + event: "resumeSession", + listener: ( + sessionId: NonSharedBuffer, + callback: (err: Error | null, sessionData: Buffer | null) => void, + ) => void, + ): this; + addListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this; + addListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; + addListener(event: "close", listener: () => void): this; + addListener(event: "connection", listener: (socket: Duplex) => void): this; + addListener(event: "error", listener: (err: Error) => void): this; + addListener(event: "listening", listener: () => void): this; + addListener(event: "checkContinue", listener: http.RequestListener): this; + addListener(event: "checkExpectation", listener: http.RequestListener): this; + addListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this; + addListener( + event: "connect", + listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, + ): this; + addListener(event: "request", listener: http.RequestListener): this; + addListener( + event: "upgrade", + listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, + ): this; + emit(event: string, ...args: any[]): boolean; + emit(event: "keylog", line: NonSharedBuffer, tlsSocket: tls.TLSSocket): boolean; + emit( + event: "newSession", + sessionId: NonSharedBuffer, + sessionData: NonSharedBuffer, + callback: () => void, + ): boolean; + emit( + event: "OCSPRequest", + certificate: NonSharedBuffer, + issuer: NonSharedBuffer, + callback: (err: Error | null, resp: Buffer | null) => void, + ): boolean; + emit( + event: "resumeSession", + sessionId: NonSharedBuffer, + callback: (err: Error | null, sessionData: Buffer | null) => void, + ): boolean; + emit(event: "secureConnection", tlsSocket: tls.TLSSocket): boolean; + emit(event: "tlsClientError", err: Error, tlsSocket: tls.TLSSocket): boolean; + emit(event: "close"): boolean; + emit(event: "connection", socket: Duplex): boolean; + emit(event: "error", err: Error): boolean; + emit(event: "listening"): boolean; + emit( + event: "checkContinue", + req: InstanceType, + res: InstanceType, + ): boolean; + emit( + event: "checkExpectation", + req: InstanceType, + res: InstanceType, + ): boolean; + emit(event: "clientError", err: Error, socket: Duplex): boolean; + emit(event: "connect", req: InstanceType, socket: Duplex, head: NonSharedBuffer): boolean; + emit( + event: "request", + req: InstanceType, + res: InstanceType, + ): boolean; + emit(event: "upgrade", req: InstanceType, socket: Duplex, head: NonSharedBuffer): boolean; + on(event: string, listener: (...args: any[]) => void): this; + on(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this; + on( + event: "newSession", + listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, + ): this; + on( + event: "OCSPRequest", + listener: ( + certificate: NonSharedBuffer, + issuer: NonSharedBuffer, + callback: (err: Error | null, resp: Buffer | null) => void, + ) => void, + ): this; + on( + event: "resumeSession", + listener: ( + sessionId: NonSharedBuffer, + callback: (err: Error | null, sessionData: Buffer | null) => void, + ) => void, + ): this; + on(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this; + on(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; + on(event: "close", listener: () => void): this; + on(event: "connection", listener: (socket: Duplex) => void): this; + on(event: "error", listener: (err: Error) => void): this; + on(event: "listening", listener: () => void): this; + on(event: "checkContinue", listener: http.RequestListener): this; + on(event: "checkExpectation", listener: http.RequestListener): this; + on(event: "clientError", listener: (err: Error, socket: Duplex) => void): this; + on( + event: "connect", + listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, + ): this; + on(event: "request", listener: http.RequestListener): this; + on( + event: "upgrade", + listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, + ): this; + once(event: string, listener: (...args: any[]) => void): this; + once(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this; + once( + event: "newSession", + listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, + ): this; + once( + event: "OCSPRequest", + listener: ( + certificate: NonSharedBuffer, + issuer: NonSharedBuffer, + callback: (err: Error | null, resp: Buffer | null) => void, + ) => void, + ): this; + once( + event: "resumeSession", + listener: ( + sessionId: NonSharedBuffer, + callback: (err: Error | null, sessionData: Buffer | null) => void, + ) => void, + ): this; + once(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this; + once(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; + once(event: "close", listener: () => void): this; + once(event: "connection", listener: (socket: Duplex) => void): this; + once(event: "error", listener: (err: Error) => void): this; + once(event: "listening", listener: () => void): this; + once(event: "checkContinue", listener: http.RequestListener): this; + once(event: "checkExpectation", listener: http.RequestListener): this; + once(event: "clientError", listener: (err: Error, socket: Duplex) => void): this; + once( + event: "connect", + listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, + ): this; + once(event: "request", listener: http.RequestListener): this; + once( + event: "upgrade", + listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, + ): this; + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this; + prependListener( + event: "newSession", + listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, + ): this; + prependListener( + event: "OCSPRequest", + listener: ( + certificate: NonSharedBuffer, + issuer: NonSharedBuffer, + callback: (err: Error | null, resp: Buffer | null) => void, + ) => void, + ): this; + prependListener( + event: "resumeSession", + listener: ( + sessionId: NonSharedBuffer, + callback: (err: Error | null, sessionData: Buffer | null) => void, + ) => void, + ): this; + prependListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this; + prependListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; + prependListener(event: "close", listener: () => void): this; + prependListener(event: "connection", listener: (socket: Duplex) => void): this; + prependListener(event: "error", listener: (err: Error) => void): this; + prependListener(event: "listening", listener: () => void): this; + prependListener(event: "checkContinue", listener: http.RequestListener): this; + prependListener(event: "checkExpectation", listener: http.RequestListener): this; + prependListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this; + prependListener( + event: "connect", + listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, + ): this; + prependListener(event: "request", listener: http.RequestListener): this; + prependListener( + event: "upgrade", + listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, + ): this; + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this; + prependOnceListener( + event: "newSession", + listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, + ): this; + prependOnceListener( + event: "OCSPRequest", + listener: ( + certificate: NonSharedBuffer, + issuer: NonSharedBuffer, + callback: (err: Error | null, resp: Buffer | null) => void, + ) => void, + ): this; + prependOnceListener( + event: "resumeSession", + listener: ( + sessionId: NonSharedBuffer, + callback: (err: Error | null, sessionData: Buffer | null) => void, + ) => void, + ): this; + prependOnceListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this; + prependOnceListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; + prependOnceListener(event: "close", listener: () => void): this; + prependOnceListener(event: "connection", listener: (socket: Duplex) => void): this; + prependOnceListener(event: "error", listener: (err: Error) => void): this; + prependOnceListener(event: "listening", listener: () => void): this; + prependOnceListener(event: "checkContinue", listener: http.RequestListener): this; + prependOnceListener(event: "checkExpectation", listener: http.RequestListener): this; + prependOnceListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this; + prependOnceListener( + event: "connect", + listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, + ): this; + prependOnceListener(event: "request", listener: http.RequestListener): this; + prependOnceListener( + event: "upgrade", + listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, + ): this; + } + /** + * ```js + * // curl -k https://localhost:8000/ + * import https from 'node:https'; + * import fs from 'node:fs'; + * + * const options = { + * key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'), + * cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'), + * }; + * + * https.createServer(options, (req, res) => { + * res.writeHead(200); + * res.end('hello world\n'); + * }).listen(8000); + * ``` + * + * Or + * + * ```js + * import https from 'node:https'; + * import fs from 'node:fs'; + * + * const options = { + * pfx: fs.readFileSync('test/fixtures/test_cert.pfx'), + * passphrase: 'sample', + * }; + * + * https.createServer(options, (req, res) => { + * res.writeHead(200); + * res.end('hello world\n'); + * }).listen(8000); + * ``` + * @since v0.3.4 + * @param options Accepts `options` from `createServer`, `createSecureContext` and `createServer`. + * @param requestListener A listener to be added to the `'request'` event. + */ + function createServer< + Request extends typeof http.IncomingMessage = typeof http.IncomingMessage, + Response extends typeof http.ServerResponse> = typeof http.ServerResponse, + >(requestListener?: http.RequestListener): Server; + function createServer< + Request extends typeof http.IncomingMessage = typeof http.IncomingMessage, + Response extends typeof http.ServerResponse> = typeof http.ServerResponse, + >( + options: ServerOptions, + requestListener?: http.RequestListener, + ): Server; + /** + * Makes a request to a secure web server. + * + * The following additional `options` from `tls.connect()` are also accepted: `ca`, `cert`, `ciphers`, `clientCertEngine`, `crl`, `dhparam`, `ecdhCurve`, `honorCipherOrder`, `key`, `passphrase`, + * `pfx`, `rejectUnauthorized`, `secureOptions`, `secureProtocol`, `servername`, `sessionIdContext`, `highWaterMark`. + * + * `options` can be an object, a string, or a `URL` object. If `options` is a + * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object. + * + * `https.request()` returns an instance of the `http.ClientRequest` class. The `ClientRequest` instance is a writable stream. If one needs to + * upload a file with a POST request, then write to the `ClientRequest` object. + * + * ```js + * import https from 'node:https'; + * + * const options = { + * hostname: 'encrypted.google.com', + * port: 443, + * path: '/', + * method: 'GET', + * }; + * + * const req = https.request(options, (res) => { + * console.log('statusCode:', res.statusCode); + * console.log('headers:', res.headers); + * + * res.on('data', (d) => { + * process.stdout.write(d); + * }); + * }); + * + * req.on('error', (e) => { + * console.error(e); + * }); + * req.end(); + * ``` + * + * Example using options from `tls.connect()`: + * + * ```js + * const options = { + * hostname: 'encrypted.google.com', + * port: 443, + * path: '/', + * method: 'GET', + * key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'), + * cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'), + * }; + * options.agent = new https.Agent(options); + * + * const req = https.request(options, (res) => { + * // ... + * }); + * ``` + * + * Alternatively, opt out of connection pooling by not using an `Agent`. + * + * ```js + * const options = { + * hostname: 'encrypted.google.com', + * port: 443, + * path: '/', + * method: 'GET', + * key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'), + * cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'), + * agent: false, + * }; + * + * const req = https.request(options, (res) => { + * // ... + * }); + * ``` + * + * Example using a `URL` as `options`: + * + * ```js + * const options = new URL('https://abc:xyz@example.com'); + * + * const req = https.request(options, (res) => { + * // ... + * }); + * ``` + * + * Example pinning on certificate fingerprint, or the public key (similar to`pin-sha256`): + * + * ```js + * import tls from 'node:tls'; + * import https from 'node:https'; + * import crypto from 'node:crypto'; + * + * function sha256(s) { + * return crypto.createHash('sha256').update(s).digest('base64'); + * } + * const options = { + * hostname: 'github.com', + * port: 443, + * path: '/', + * method: 'GET', + * checkServerIdentity: function(host, cert) { + * // Make sure the certificate is issued to the host we are connected to + * const err = tls.checkServerIdentity(host, cert); + * if (err) { + * return err; + * } + * + * // Pin the public key, similar to HPKP pin-sha256 pinning + * const pubkey256 = 'pL1+qb9HTMRZJmuC/bB/ZI9d302BYrrqiVuRyW+DGrU='; + * if (sha256(cert.pubkey) !== pubkey256) { + * const msg = 'Certificate verification error: ' + + * `The public key of '${cert.subject.CN}' ` + + * 'does not match our pinned fingerprint'; + * return new Error(msg); + * } + * + * // Pin the exact certificate, rather than the pub key + * const cert256 = '25:FE:39:32:D9:63:8C:8A:FC:A1:9A:29:87:' + + * 'D8:3E:4C:1D:98:DB:71:E4:1A:48:03:98:EA:22:6A:BD:8B:93:16'; + * if (cert.fingerprint256 !== cert256) { + * const msg = 'Certificate verification error: ' + + * `The certificate of '${cert.subject.CN}' ` + + * 'does not match our pinned fingerprint'; + * return new Error(msg); + * } + * + * // This loop is informational only. + * // Print the certificate and public key fingerprints of all certs in the + * // chain. Its common to pin the public key of the issuer on the public + * // internet, while pinning the public key of the service in sensitive + * // environments. + * do { + * console.log('Subject Common Name:', cert.subject.CN); + * console.log(' Certificate SHA256 fingerprint:', cert.fingerprint256); + * + * hash = crypto.createHash('sha256'); + * console.log(' Public key ping-sha256:', sha256(cert.pubkey)); + * + * lastprint256 = cert.fingerprint256; + * cert = cert.issuerCertificate; + * } while (cert.fingerprint256 !== lastprint256); + * + * }, + * }; + * + * options.agent = new https.Agent(options); + * const req = https.request(options, (res) => { + * console.log('All OK. Server matched our pinned cert or public key'); + * console.log('statusCode:', res.statusCode); + * // Print the HPKP values + * console.log('headers:', res.headers['public-key-pins']); + * + * res.on('data', (d) => {}); + * }); + * + * req.on('error', (e) => { + * console.error(e.message); + * }); + * req.end(); + * ``` + * + * Outputs for example: + * + * ```text + * Subject Common Name: github.com + * Certificate SHA256 fingerprint: 25:FE:39:32:D9:63:8C:8A:FC:A1:9A:29:87:D8:3E:4C:1D:98:DB:71:E4:1A:48:03:98:EA:22:6A:BD:8B:93:16 + * Public key ping-sha256: pL1+qb9HTMRZJmuC/bB/ZI9d302BYrrqiVuRyW+DGrU= + * Subject Common Name: DigiCert SHA2 Extended Validation Server CA + * Certificate SHA256 fingerprint: 40:3E:06:2A:26:53:05:91:13:28:5B:AF:80:A0:D4:AE:42:2C:84:8C:9F:78:FA:D0:1F:C9:4B:C5:B8:7F:EF:1A + * Public key ping-sha256: RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho= + * Subject Common Name: DigiCert High Assurance EV Root CA + * Certificate SHA256 fingerprint: 74:31:E5:F4:C3:C1:CE:46:90:77:4F:0B:61:E0:54:40:88:3B:A9:A0:1E:D0:0B:A6:AB:D7:80:6E:D3:B1:18:CF + * Public key ping-sha256: WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18= + * All OK. Server matched our pinned cert or public key + * statusCode: 200 + * headers: max-age=0; pin-sha256="WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18="; pin-sha256="RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho="; + * pin-sha256="k2v657xBsOVe1PQRwOsHsw3bsGT2VzIqz5K+59sNQws="; pin-sha256="K87oWBWM9UZfyddvDfoxL+8lpNyoUB2ptGtn0fv6G2Q="; pin-sha256="IQBnNBEiFuhj+8x6X8XLgh01V9Ic5/V3IRQLNFFc7v4="; + * pin-sha256="iie1VXtL7HzAMF+/PVPR9xzT80kQxdZeJ+zduCB3uj0="; pin-sha256="LvRiGEjRqfzurezaWuj8Wie2gyHMrW5Q06LspMnox7A="; includeSubDomains + * ``` + * @since v0.3.6 + * @param options Accepts all `options` from `request`, with some differences in default values: + */ + function request( + options: RequestOptions | string | URL, + callback?: (res: http.IncomingMessage) => void, + ): http.ClientRequest; + function request( + url: string | URL, + options: RequestOptions, + callback?: (res: http.IncomingMessage) => void, + ): http.ClientRequest; + /** + * Like `http.get()` but for HTTPS. + * + * `options` can be an object, a string, or a `URL` object. If `options` is a + * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object. + * + * ```js + * import https from 'node:https'; + * + * https.get('https://encrypted.google.com/', (res) => { + * console.log('statusCode:', res.statusCode); + * console.log('headers:', res.headers); + * + * res.on('data', (d) => { + * process.stdout.write(d); + * }); + * + * }).on('error', (e) => { + * console.error(e); + * }); + * ``` + * @since v0.3.6 + * @param options Accepts the same `options` as {@link request}, with the `method` always set to `GET`. + */ + function get( + options: RequestOptions | string | URL, + callback?: (res: http.IncomingMessage) => void, + ): http.ClientRequest; + function get( + url: string | URL, + options: RequestOptions, + callback?: (res: http.IncomingMessage) => void, + ): http.ClientRequest; + let globalAgent: Agent; +} +declare module "node:https" { + export * from "https"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/index.d.ts b/backend/node_modules/httpx/node_modules/@types/node/index.d.ts new file mode 100644 index 0000000..4676281 --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/index.d.ts @@ -0,0 +1,93 @@ +/** + * License for programmatically and manually incorporated + * documentation aka. `JSDoc` from https://github.com/nodejs/node/tree/master/doc + * + * Copyright Node.js contributors. All rights reserved. + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ + +// NOTE: These definitions support Node.js and TypeScript 5.7+. + +// Reference required TypeScript libs: +/// + +// TypeScript backwards-compatibility definitions: +/// + +// Definitions specific to TypeScript 5.7+: +/// +/// + +// Definitions for Node.js modules that are not specific to any version of TypeScript: +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// diff --git a/backend/node_modules/httpx/node_modules/@types/node/inspector.generated.d.ts b/backend/node_modules/httpx/node_modules/@types/node/inspector.generated.d.ts new file mode 100644 index 0000000..3303dba --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/inspector.generated.d.ts @@ -0,0 +1,3966 @@ +// These definitions are automatically generated by the generate-inspector script. +// Do not edit this file directly. +// See scripts/generate-inspector/README.md for information on how to update the protocol definitions. +// Changes to the module itself should be added to the generator template (scripts/generate-inspector/inspector.d.ts.template). + +/** + * The `node:inspector` module provides an API for interacting with the V8 + * inspector. + * @see [source](https://github.com/nodejs/node/blob/v20.x/lib/inspector.js) + */ +declare module 'inspector' { + import EventEmitter = require('node:events'); + + interface InspectorNotification { + method: string; + params: T; + } + + namespace Schema { + /** + * Description of the protocol domain. + */ + interface Domain { + /** + * Domain name. + */ + name: string; + /** + * Domain version. + */ + version: string; + } + interface GetDomainsReturnType { + /** + * List of supported domains. + */ + domains: Domain[]; + } + } + namespace Runtime { + /** + * Unique script identifier. + */ + type ScriptId = string; + /** + * Unique object identifier. + */ + type RemoteObjectId = string; + /** + * Primitive value which cannot be JSON-stringified. + */ + type UnserializableValue = string; + /** + * Mirror object referencing original JavaScript object. + */ + interface RemoteObject { + /** + * Object type. + */ + type: string; + /** + * Object subtype hint. Specified for object type values only. + */ + subtype?: string | undefined; + /** + * Object class (constructor) name. Specified for object type values only. + */ + className?: string | undefined; + /** + * Remote object value in case of primitive values or JSON values (if it was requested). + */ + value?: any; + /** + * Primitive value which can not be JSON-stringified does not have value, but gets this property. + */ + unserializableValue?: UnserializableValue | undefined; + /** + * String representation of the object. + */ + description?: string | undefined; + /** + * Unique object identifier (for non-primitive values). + */ + objectId?: RemoteObjectId | undefined; + /** + * Preview containing abbreviated property values. Specified for object type values only. + * @experimental + */ + preview?: ObjectPreview | undefined; + /** + * @experimental + */ + customPreview?: CustomPreview | undefined; + } + /** + * @experimental + */ + interface CustomPreview { + header: string; + hasBody: boolean; + formatterObjectId: RemoteObjectId; + bindRemoteObjectFunctionId: RemoteObjectId; + configObjectId?: RemoteObjectId | undefined; + } + /** + * Object containing abbreviated remote object value. + * @experimental + */ + interface ObjectPreview { + /** + * Object type. + */ + type: string; + /** + * Object subtype hint. Specified for object type values only. + */ + subtype?: string | undefined; + /** + * String representation of the object. + */ + description?: string | undefined; + /** + * True iff some of the properties or entries of the original object did not fit. + */ + overflow: boolean; + /** + * List of the properties. + */ + properties: PropertyPreview[]; + /** + * List of the entries. Specified for map and set subtype values only. + */ + entries?: EntryPreview[] | undefined; + } + /** + * @experimental + */ + interface PropertyPreview { + /** + * Property name. + */ + name: string; + /** + * Object type. Accessor means that the property itself is an accessor property. + */ + type: string; + /** + * User-friendly property value string. + */ + value?: string | undefined; + /** + * Nested value preview. + */ + valuePreview?: ObjectPreview | undefined; + /** + * Object subtype hint. Specified for object type values only. + */ + subtype?: string | undefined; + } + /** + * @experimental + */ + interface EntryPreview { + /** + * Preview of the key. Specified for map-like collection entries. + */ + key?: ObjectPreview | undefined; + /** + * Preview of the value. + */ + value: ObjectPreview; + } + /** + * Object property descriptor. + */ + interface PropertyDescriptor { + /** + * Property name or symbol description. + */ + name: string; + /** + * The value associated with the property. + */ + value?: RemoteObject | undefined; + /** + * True if the value associated with the property may be changed (data descriptors only). + */ + writable?: boolean | undefined; + /** + * A function which serves as a getter for the property, or undefined if there is no getter (accessor descriptors only). + */ + get?: RemoteObject | undefined; + /** + * A function which serves as a setter for the property, or undefined if there is no setter (accessor descriptors only). + */ + set?: RemoteObject | undefined; + /** + * True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object. + */ + configurable: boolean; + /** + * True if this property shows up during enumeration of the properties on the corresponding object. + */ + enumerable: boolean; + /** + * True if the result was thrown during the evaluation. + */ + wasThrown?: boolean | undefined; + /** + * True if the property is owned for the object. + */ + isOwn?: boolean | undefined; + /** + * Property symbol object, if the property is of the symbol type. + */ + symbol?: RemoteObject | undefined; + } + /** + * Object internal property descriptor. This property isn't normally visible in JavaScript code. + */ + interface InternalPropertyDescriptor { + /** + * Conventional property name. + */ + name: string; + /** + * The value associated with the property. + */ + value?: RemoteObject | undefined; + } + /** + * Represents function call argument. Either remote object id objectId, primitive value, unserializable primitive value or neither of (for undefined) them should be specified. + */ + interface CallArgument { + /** + * Primitive value or serializable javascript object. + */ + value?: any; + /** + * Primitive value which can not be JSON-stringified. + */ + unserializableValue?: UnserializableValue | undefined; + /** + * Remote object handle. + */ + objectId?: RemoteObjectId | undefined; + } + /** + * Id of an execution context. + */ + type ExecutionContextId = number; + /** + * Description of an isolated world. + */ + interface ExecutionContextDescription { + /** + * Unique id of the execution context. It can be used to specify in which execution context script evaluation should be performed. + */ + id: ExecutionContextId; + /** + * Execution context origin. + */ + origin: string; + /** + * Human readable name describing given context. + */ + name: string; + /** + * Embedder-specific auxiliary data. + */ + auxData?: {} | undefined; + } + /** + * Detailed information about exception (or error) that was thrown during script compilation or execution. + */ + interface ExceptionDetails { + /** + * Exception id. + */ + exceptionId: number; + /** + * Exception text, which should be used together with exception object when available. + */ + text: string; + /** + * Line number of the exception location (0-based). + */ + lineNumber: number; + /** + * Column number of the exception location (0-based). + */ + columnNumber: number; + /** + * Script ID of the exception location. + */ + scriptId?: ScriptId | undefined; + /** + * URL of the exception location, to be used when the script was not reported. + */ + url?: string | undefined; + /** + * JavaScript stack trace if available. + */ + stackTrace?: StackTrace | undefined; + /** + * Exception object if available. + */ + exception?: RemoteObject | undefined; + /** + * Identifier of the context where exception happened. + */ + executionContextId?: ExecutionContextId | undefined; + } + /** + * Number of milliseconds since epoch. + */ + type Timestamp = number; + /** + * Stack entry for runtime errors and assertions. + */ + interface CallFrame { + /** + * JavaScript function name. + */ + functionName: string; + /** + * JavaScript script id. + */ + scriptId: ScriptId; + /** + * JavaScript script name or url. + */ + url: string; + /** + * JavaScript script line number (0-based). + */ + lineNumber: number; + /** + * JavaScript script column number (0-based). + */ + columnNumber: number; + } + /** + * Call frames for assertions or error messages. + */ + interface StackTrace { + /** + * String label of this stack trace. For async traces this may be a name of the function that initiated the async call. + */ + description?: string | undefined; + /** + * JavaScript function name. + */ + callFrames: CallFrame[]; + /** + * Asynchronous JavaScript stack trace that preceded this stack, if available. + */ + parent?: StackTrace | undefined; + /** + * Asynchronous JavaScript stack trace that preceded this stack, if available. + * @experimental + */ + parentId?: StackTraceId | undefined; + } + /** + * Unique identifier of current debugger. + * @experimental + */ + type UniqueDebuggerId = string; + /** + * If debuggerId is set stack trace comes from another debugger and can be resolved there. This allows to track cross-debugger calls. See Runtime.StackTrace and Debugger.paused for usages. + * @experimental + */ + interface StackTraceId { + id: string; + debuggerId?: UniqueDebuggerId | undefined; + } + interface EvaluateParameterType { + /** + * Expression to evaluate. + */ + expression: string; + /** + * Symbolic group name that can be used to release multiple objects. + */ + objectGroup?: string | undefined; + /** + * Determines whether Command Line API should be available during the evaluation. + */ + includeCommandLineAPI?: boolean | undefined; + /** + * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state. + */ + silent?: boolean | undefined; + /** + * Specifies in which execution context to perform evaluation. If the parameter is omitted the evaluation will be performed in the context of the inspected page. + */ + contextId?: ExecutionContextId | undefined; + /** + * Whether the result is expected to be a JSON object that should be sent by value. + */ + returnByValue?: boolean | undefined; + /** + * Whether preview should be generated for the result. + * @experimental + */ + generatePreview?: boolean | undefined; + /** + * Whether execution should be treated as initiated by user in the UI. + */ + userGesture?: boolean | undefined; + /** + * Whether execution should await for resulting value and return once awaited promise is resolved. + */ + awaitPromise?: boolean | undefined; + } + interface AwaitPromiseParameterType { + /** + * Identifier of the promise. + */ + promiseObjectId: RemoteObjectId; + /** + * Whether the result is expected to be a JSON object that should be sent by value. + */ + returnByValue?: boolean | undefined; + /** + * Whether preview should be generated for the result. + */ + generatePreview?: boolean | undefined; + } + interface CallFunctionOnParameterType { + /** + * Declaration of the function to call. + */ + functionDeclaration: string; + /** + * Identifier of the object to call function on. Either objectId or executionContextId should be specified. + */ + objectId?: RemoteObjectId | undefined; + /** + * Call arguments. All call arguments must belong to the same JavaScript world as the target object. + */ + arguments?: CallArgument[] | undefined; + /** + * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state. + */ + silent?: boolean | undefined; + /** + * Whether the result is expected to be a JSON object which should be sent by value. + */ + returnByValue?: boolean | undefined; + /** + * Whether preview should be generated for the result. + * @experimental + */ + generatePreview?: boolean | undefined; + /** + * Whether execution should be treated as initiated by user in the UI. + */ + userGesture?: boolean | undefined; + /** + * Whether execution should await for resulting value and return once awaited promise is resolved. + */ + awaitPromise?: boolean | undefined; + /** + * Specifies execution context which global object will be used to call function on. Either executionContextId or objectId should be specified. + */ + executionContextId?: ExecutionContextId | undefined; + /** + * Symbolic group name that can be used to release multiple objects. If objectGroup is not specified and objectId is, objectGroup will be inherited from object. + */ + objectGroup?: string | undefined; + } + interface GetPropertiesParameterType { + /** + * Identifier of the object to return properties for. + */ + objectId: RemoteObjectId; + /** + * If true, returns properties belonging only to the element itself, not to its prototype chain. + */ + ownProperties?: boolean | undefined; + /** + * If true, returns accessor properties (with getter/setter) only; internal properties are not returned either. + * @experimental + */ + accessorPropertiesOnly?: boolean | undefined; + /** + * Whether preview should be generated for the results. + * @experimental + */ + generatePreview?: boolean | undefined; + } + interface ReleaseObjectParameterType { + /** + * Identifier of the object to release. + */ + objectId: RemoteObjectId; + } + interface ReleaseObjectGroupParameterType { + /** + * Symbolic object group name. + */ + objectGroup: string; + } + interface SetCustomObjectFormatterEnabledParameterType { + enabled: boolean; + } + interface CompileScriptParameterType { + /** + * Expression to compile. + */ + expression: string; + /** + * Source url to be set for the script. + */ + sourceURL: string; + /** + * Specifies whether the compiled script should be persisted. + */ + persistScript: boolean; + /** + * Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page. + */ + executionContextId?: ExecutionContextId | undefined; + } + interface RunScriptParameterType { + /** + * Id of the script to run. + */ + scriptId: ScriptId; + /** + * Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page. + */ + executionContextId?: ExecutionContextId | undefined; + /** + * Symbolic group name that can be used to release multiple objects. + */ + objectGroup?: string | undefined; + /** + * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state. + */ + silent?: boolean | undefined; + /** + * Determines whether Command Line API should be available during the evaluation. + */ + includeCommandLineAPI?: boolean | undefined; + /** + * Whether the result is expected to be a JSON object which should be sent by value. + */ + returnByValue?: boolean | undefined; + /** + * Whether preview should be generated for the result. + */ + generatePreview?: boolean | undefined; + /** + * Whether execution should await for resulting value and return once awaited promise is resolved. + */ + awaitPromise?: boolean | undefined; + } + interface QueryObjectsParameterType { + /** + * Identifier of the prototype to return objects for. + */ + prototypeObjectId: RemoteObjectId; + } + interface GlobalLexicalScopeNamesParameterType { + /** + * Specifies in which execution context to lookup global scope variables. + */ + executionContextId?: ExecutionContextId | undefined; + } + interface EvaluateReturnType { + /** + * Evaluation result. + */ + result: RemoteObject; + /** + * Exception details. + */ + exceptionDetails?: ExceptionDetails | undefined; + } + interface AwaitPromiseReturnType { + /** + * Promise result. Will contain rejected value if promise was rejected. + */ + result: RemoteObject; + /** + * Exception details if stack strace is available. + */ + exceptionDetails?: ExceptionDetails | undefined; + } + interface CallFunctionOnReturnType { + /** + * Call result. + */ + result: RemoteObject; + /** + * Exception details. + */ + exceptionDetails?: ExceptionDetails | undefined; + } + interface GetPropertiesReturnType { + /** + * Object properties. + */ + result: PropertyDescriptor[]; + /** + * Internal object properties (only of the element itself). + */ + internalProperties?: InternalPropertyDescriptor[] | undefined; + /** + * Exception details. + */ + exceptionDetails?: ExceptionDetails | undefined; + } + interface CompileScriptReturnType { + /** + * Id of the script. + */ + scriptId?: ScriptId | undefined; + /** + * Exception details. + */ + exceptionDetails?: ExceptionDetails | undefined; + } + interface RunScriptReturnType { + /** + * Run result. + */ + result: RemoteObject; + /** + * Exception details. + */ + exceptionDetails?: ExceptionDetails | undefined; + } + interface QueryObjectsReturnType { + /** + * Array with objects. + */ + objects: RemoteObject; + } + interface GlobalLexicalScopeNamesReturnType { + names: string[]; + } + interface ExecutionContextCreatedEventDataType { + /** + * A newly created execution context. + */ + context: ExecutionContextDescription; + } + interface ExecutionContextDestroyedEventDataType { + /** + * Id of the destroyed context + */ + executionContextId: ExecutionContextId; + } + interface ExceptionThrownEventDataType { + /** + * Timestamp of the exception. + */ + timestamp: Timestamp; + exceptionDetails: ExceptionDetails; + } + interface ExceptionRevokedEventDataType { + /** + * Reason describing why exception was revoked. + */ + reason: string; + /** + * The id of revoked exception, as reported in exceptionThrown. + */ + exceptionId: number; + } + interface ConsoleAPICalledEventDataType { + /** + * Type of the call. + */ + type: string; + /** + * Call arguments. + */ + args: RemoteObject[]; + /** + * Identifier of the context where the call was made. + */ + executionContextId: ExecutionContextId; + /** + * Call timestamp. + */ + timestamp: Timestamp; + /** + * Stack trace captured when the call was made. + */ + stackTrace?: StackTrace | undefined; + /** + * Console context descriptor for calls on non-default console context (not console.*): 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call on named context. + * @experimental + */ + context?: string | undefined; + } + interface InspectRequestedEventDataType { + object: RemoteObject; + hints: {}; + } + } + namespace Debugger { + /** + * Breakpoint identifier. + */ + type BreakpointId = string; + /** + * Call frame identifier. + */ + type CallFrameId = string; + /** + * Location in the source code. + */ + interface Location { + /** + * Script identifier as reported in the Debugger.scriptParsed. + */ + scriptId: Runtime.ScriptId; + /** + * Line number in the script (0-based). + */ + lineNumber: number; + /** + * Column number in the script (0-based). + */ + columnNumber?: number | undefined; + } + /** + * Location in the source code. + * @experimental + */ + interface ScriptPosition { + lineNumber: number; + columnNumber: number; + } + /** + * JavaScript call frame. Array of call frames form the call stack. + */ + interface CallFrame { + /** + * Call frame identifier. This identifier is only valid while the virtual machine is paused. + */ + callFrameId: CallFrameId; + /** + * Name of the JavaScript function called on this call frame. + */ + functionName: string; + /** + * Location in the source code. + */ + functionLocation?: Location | undefined; + /** + * Location in the source code. + */ + location: Location; + /** + * JavaScript script name or url. + */ + url: string; + /** + * Scope chain for this call frame. + */ + scopeChain: Scope[]; + /** + * this object for this call frame. + */ + this: Runtime.RemoteObject; + /** + * The value being returned, if the function is at return point. + */ + returnValue?: Runtime.RemoteObject | undefined; + } + /** + * Scope description. + */ + interface Scope { + /** + * Scope type. + */ + type: string; + /** + * Object representing the scope. For global and with scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties. + */ + object: Runtime.RemoteObject; + name?: string | undefined; + /** + * Location in the source code where scope starts + */ + startLocation?: Location | undefined; + /** + * Location in the source code where scope ends + */ + endLocation?: Location | undefined; + } + /** + * Search match for resource. + */ + interface SearchMatch { + /** + * Line number in resource content. + */ + lineNumber: number; + /** + * Line with match content. + */ + lineContent: string; + } + interface BreakLocation { + /** + * Script identifier as reported in the Debugger.scriptParsed. + */ + scriptId: Runtime.ScriptId; + /** + * Line number in the script (0-based). + */ + lineNumber: number; + /** + * Column number in the script (0-based). + */ + columnNumber?: number | undefined; + type?: string | undefined; + } + interface SetBreakpointsActiveParameterType { + /** + * New value for breakpoints active state. + */ + active: boolean; + } + interface SetSkipAllPausesParameterType { + /** + * New value for skip pauses state. + */ + skip: boolean; + } + interface SetBreakpointByUrlParameterType { + /** + * Line number to set breakpoint at. + */ + lineNumber: number; + /** + * URL of the resources to set breakpoint on. + */ + url?: string | undefined; + /** + * Regex pattern for the URLs of the resources to set breakpoints on. Either url or urlRegex must be specified. + */ + urlRegex?: string | undefined; + /** + * Script hash of the resources to set breakpoint on. + */ + scriptHash?: string | undefined; + /** + * Offset in the line to set breakpoint at. + */ + columnNumber?: number | undefined; + /** + * Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true. + */ + condition?: string | undefined; + } + interface SetBreakpointParameterType { + /** + * Location to set breakpoint in. + */ + location: Location; + /** + * Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true. + */ + condition?: string | undefined; + } + interface RemoveBreakpointParameterType { + breakpointId: BreakpointId; + } + interface GetPossibleBreakpointsParameterType { + /** + * Start of range to search possible breakpoint locations in. + */ + start: Location; + /** + * End of range to search possible breakpoint locations in (excluding). When not specified, end of scripts is used as end of range. + */ + end?: Location | undefined; + /** + * Only consider locations which are in the same (non-nested) function as start. + */ + restrictToFunction?: boolean | undefined; + } + interface ContinueToLocationParameterType { + /** + * Location to continue to. + */ + location: Location; + targetCallFrames?: string | undefined; + } + interface PauseOnAsyncCallParameterType { + /** + * Debugger will pause when async call with given stack trace is started. + */ + parentStackTraceId: Runtime.StackTraceId; + } + interface StepIntoParameterType { + /** + * Debugger will issue additional Debugger.paused notification if any async task is scheduled before next pause. + * @experimental + */ + breakOnAsyncCall?: boolean | undefined; + } + interface GetStackTraceParameterType { + stackTraceId: Runtime.StackTraceId; + } + interface SearchInContentParameterType { + /** + * Id of the script to search in. + */ + scriptId: Runtime.ScriptId; + /** + * String to search for. + */ + query: string; + /** + * If true, search is case sensitive. + */ + caseSensitive?: boolean | undefined; + /** + * If true, treats string parameter as regex. + */ + isRegex?: boolean | undefined; + } + interface SetScriptSourceParameterType { + /** + * Id of the script to edit. + */ + scriptId: Runtime.ScriptId; + /** + * New content of the script. + */ + scriptSource: string; + /** + * If true the change will not actually be applied. Dry run may be used to get result description without actually modifying the code. + */ + dryRun?: boolean | undefined; + } + interface RestartFrameParameterType { + /** + * Call frame identifier to evaluate on. + */ + callFrameId: CallFrameId; + } + interface GetScriptSourceParameterType { + /** + * Id of the script to get source for. + */ + scriptId: Runtime.ScriptId; + } + interface SetPauseOnExceptionsParameterType { + /** + * Pause on exceptions mode. + */ + state: string; + } + interface EvaluateOnCallFrameParameterType { + /** + * Call frame identifier to evaluate on. + */ + callFrameId: CallFrameId; + /** + * Expression to evaluate. + */ + expression: string; + /** + * String object group name to put result into (allows rapid releasing resulting object handles using releaseObjectGroup). + */ + objectGroup?: string | undefined; + /** + * Specifies whether command line API should be available to the evaluated expression, defaults to false. + */ + includeCommandLineAPI?: boolean | undefined; + /** + * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state. + */ + silent?: boolean | undefined; + /** + * Whether the result is expected to be a JSON object that should be sent by value. + */ + returnByValue?: boolean | undefined; + /** + * Whether preview should be generated for the result. + * @experimental + */ + generatePreview?: boolean | undefined; + /** + * Whether to throw an exception if side effect cannot be ruled out during evaluation. + */ + throwOnSideEffect?: boolean | undefined; + } + interface SetVariableValueParameterType { + /** + * 0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch' scope types are allowed. Other scopes could be manipulated manually. + */ + scopeNumber: number; + /** + * Variable name. + */ + variableName: string; + /** + * New variable value. + */ + newValue: Runtime.CallArgument; + /** + * Id of callframe that holds variable. + */ + callFrameId: CallFrameId; + } + interface SetReturnValueParameterType { + /** + * New return value. + */ + newValue: Runtime.CallArgument; + } + interface SetAsyncCallStackDepthParameterType { + /** + * Maximum depth of async call stacks. Setting to 0 will effectively disable collecting async call stacks (default). + */ + maxDepth: number; + } + interface SetBlackboxPatternsParameterType { + /** + * Array of regexps that will be used to check script url for blackbox state. + */ + patterns: string[]; + } + interface SetBlackboxedRangesParameterType { + /** + * Id of the script. + */ + scriptId: Runtime.ScriptId; + positions: ScriptPosition[]; + } + interface EnableReturnType { + /** + * Unique identifier of the debugger. + * @experimental + */ + debuggerId: Runtime.UniqueDebuggerId; + } + interface SetBreakpointByUrlReturnType { + /** + * Id of the created breakpoint for further reference. + */ + breakpointId: BreakpointId; + /** + * List of the locations this breakpoint resolved into upon addition. + */ + locations: Location[]; + } + interface SetBreakpointReturnType { + /** + * Id of the created breakpoint for further reference. + */ + breakpointId: BreakpointId; + /** + * Location this breakpoint resolved into. + */ + actualLocation: Location; + } + interface GetPossibleBreakpointsReturnType { + /** + * List of the possible breakpoint locations. + */ + locations: BreakLocation[]; + } + interface GetStackTraceReturnType { + stackTrace: Runtime.StackTrace; + } + interface SearchInContentReturnType { + /** + * List of search matches. + */ + result: SearchMatch[]; + } + interface SetScriptSourceReturnType { + /** + * New stack trace in case editing has happened while VM was stopped. + */ + callFrames?: CallFrame[] | undefined; + /** + * Whether current call stack was modified after applying the changes. + */ + stackChanged?: boolean | undefined; + /** + * Async stack trace, if any. + */ + asyncStackTrace?: Runtime.StackTrace | undefined; + /** + * Async stack trace, if any. + * @experimental + */ + asyncStackTraceId?: Runtime.StackTraceId | undefined; + /** + * Exception details if any. + */ + exceptionDetails?: Runtime.ExceptionDetails | undefined; + } + interface RestartFrameReturnType { + /** + * New stack trace. + */ + callFrames: CallFrame[]; + /** + * Async stack trace, if any. + */ + asyncStackTrace?: Runtime.StackTrace | undefined; + /** + * Async stack trace, if any. + * @experimental + */ + asyncStackTraceId?: Runtime.StackTraceId | undefined; + } + interface GetScriptSourceReturnType { + /** + * Script source. + */ + scriptSource: string; + } + interface EvaluateOnCallFrameReturnType { + /** + * Object wrapper for the evaluation result. + */ + result: Runtime.RemoteObject; + /** + * Exception details. + */ + exceptionDetails?: Runtime.ExceptionDetails | undefined; + } + interface ScriptParsedEventDataType { + /** + * Identifier of the script parsed. + */ + scriptId: Runtime.ScriptId; + /** + * URL or name of the script parsed (if any). + */ + url: string; + /** + * Line offset of the script within the resource with given URL (for script tags). + */ + startLine: number; + /** + * Column offset of the script within the resource with given URL. + */ + startColumn: number; + /** + * Last line of the script. + */ + endLine: number; + /** + * Length of the last line of the script. + */ + endColumn: number; + /** + * Specifies script creation context. + */ + executionContextId: Runtime.ExecutionContextId; + /** + * Content hash of the script. + */ + hash: string; + /** + * Embedder-specific auxiliary data. + */ + executionContextAuxData?: {} | undefined; + /** + * True, if this script is generated as a result of the live edit operation. + * @experimental + */ + isLiveEdit?: boolean | undefined; + /** + * URL of source map associated with script (if any). + */ + sourceMapURL?: string | undefined; + /** + * True, if this script has sourceURL. + */ + hasSourceURL?: boolean | undefined; + /** + * True, if this script is ES6 module. + */ + isModule?: boolean | undefined; + /** + * This script length. + */ + length?: number | undefined; + /** + * JavaScript top stack frame of where the script parsed event was triggered if available. + * @experimental + */ + stackTrace?: Runtime.StackTrace | undefined; + } + interface ScriptFailedToParseEventDataType { + /** + * Identifier of the script parsed. + */ + scriptId: Runtime.ScriptId; + /** + * URL or name of the script parsed (if any). + */ + url: string; + /** + * Line offset of the script within the resource with given URL (for script tags). + */ + startLine: number; + /** + * Column offset of the script within the resource with given URL. + */ + startColumn: number; + /** + * Last line of the script. + */ + endLine: number; + /** + * Length of the last line of the script. + */ + endColumn: number; + /** + * Specifies script creation context. + */ + executionContextId: Runtime.ExecutionContextId; + /** + * Content hash of the script. + */ + hash: string; + /** + * Embedder-specific auxiliary data. + */ + executionContextAuxData?: {} | undefined; + /** + * URL of source map associated with script (if any). + */ + sourceMapURL?: string | undefined; + /** + * True, if this script has sourceURL. + */ + hasSourceURL?: boolean | undefined; + /** + * True, if this script is ES6 module. + */ + isModule?: boolean | undefined; + /** + * This script length. + */ + length?: number | undefined; + /** + * JavaScript top stack frame of where the script parsed event was triggered if available. + * @experimental + */ + stackTrace?: Runtime.StackTrace | undefined; + } + interface BreakpointResolvedEventDataType { + /** + * Breakpoint unique identifier. + */ + breakpointId: BreakpointId; + /** + * Actual breakpoint location. + */ + location: Location; + } + interface PausedEventDataType { + /** + * Call stack the virtual machine stopped on. + */ + callFrames: CallFrame[]; + /** + * Pause reason. + */ + reason: string; + /** + * Object containing break-specific auxiliary properties. + */ + data?: {} | undefined; + /** + * Hit breakpoints IDs + */ + hitBreakpoints?: string[] | undefined; + /** + * Async stack trace, if any. + */ + asyncStackTrace?: Runtime.StackTrace | undefined; + /** + * Async stack trace, if any. + * @experimental + */ + asyncStackTraceId?: Runtime.StackTraceId | undefined; + /** + * Just scheduled async call will have this stack trace as parent stack during async execution. This field is available only after Debugger.stepInto call with breakOnAsynCall flag. + * @experimental + */ + asyncCallStackTraceId?: Runtime.StackTraceId | undefined; + } + } + namespace Console { + /** + * Console message. + */ + interface ConsoleMessage { + /** + * Message source. + */ + source: string; + /** + * Message severity. + */ + level: string; + /** + * Message text. + */ + text: string; + /** + * URL of the message origin. + */ + url?: string | undefined; + /** + * Line number in the resource that generated this message (1-based). + */ + line?: number | undefined; + /** + * Column number in the resource that generated this message (1-based). + */ + column?: number | undefined; + } + interface MessageAddedEventDataType { + /** + * Console message that has been added. + */ + message: ConsoleMessage; + } + } + namespace Profiler { + /** + * Profile node. Holds callsite information, execution statistics and child nodes. + */ + interface ProfileNode { + /** + * Unique id of the node. + */ + id: number; + /** + * Function location. + */ + callFrame: Runtime.CallFrame; + /** + * Number of samples where this node was on top of the call stack. + */ + hitCount?: number | undefined; + /** + * Child node ids. + */ + children?: number[] | undefined; + /** + * The reason of being not optimized. The function may be deoptimized or marked as don't optimize. + */ + deoptReason?: string | undefined; + /** + * An array of source position ticks. + */ + positionTicks?: PositionTickInfo[] | undefined; + } + /** + * Profile. + */ + interface Profile { + /** + * The list of profile nodes. First item is the root node. + */ + nodes: ProfileNode[]; + /** + * Profiling start timestamp in microseconds. + */ + startTime: number; + /** + * Profiling end timestamp in microseconds. + */ + endTime: number; + /** + * Ids of samples top nodes. + */ + samples?: number[] | undefined; + /** + * Time intervals between adjacent samples in microseconds. The first delta is relative to the profile startTime. + */ + timeDeltas?: number[] | undefined; + } + /** + * Specifies a number of samples attributed to a certain source position. + */ + interface PositionTickInfo { + /** + * Source line number (1-based). + */ + line: number; + /** + * Number of samples attributed to the source line. + */ + ticks: number; + } + /** + * Coverage data for a source range. + */ + interface CoverageRange { + /** + * JavaScript script source offset for the range start. + */ + startOffset: number; + /** + * JavaScript script source offset for the range end. + */ + endOffset: number; + /** + * Collected execution count of the source range. + */ + count: number; + } + /** + * Coverage data for a JavaScript function. + */ + interface FunctionCoverage { + /** + * JavaScript function name. + */ + functionName: string; + /** + * Source ranges inside the function with coverage data. + */ + ranges: CoverageRange[]; + /** + * Whether coverage data for this function has block granularity. + */ + isBlockCoverage: boolean; + } + /** + * Coverage data for a JavaScript script. + */ + interface ScriptCoverage { + /** + * JavaScript script id. + */ + scriptId: Runtime.ScriptId; + /** + * JavaScript script name or url. + */ + url: string; + /** + * Functions contained in the script that has coverage data. + */ + functions: FunctionCoverage[]; + } + interface SetSamplingIntervalParameterType { + /** + * New sampling interval in microseconds. + */ + interval: number; + } + interface StartPreciseCoverageParameterType { + /** + * Collect accurate call counts beyond simple 'covered' or 'not covered'. + */ + callCount?: boolean | undefined; + /** + * Collect block-based coverage. + */ + detailed?: boolean | undefined; + } + interface StopReturnType { + /** + * Recorded profile. + */ + profile: Profile; + } + interface TakePreciseCoverageReturnType { + /** + * Coverage data for the current isolate. + */ + result: ScriptCoverage[]; + } + interface GetBestEffortCoverageReturnType { + /** + * Coverage data for the current isolate. + */ + result: ScriptCoverage[]; + } + interface ConsoleProfileStartedEventDataType { + id: string; + /** + * Location of console.profile(). + */ + location: Debugger.Location; + /** + * Profile title passed as an argument to console.profile(). + */ + title?: string | undefined; + } + interface ConsoleProfileFinishedEventDataType { + id: string; + /** + * Location of console.profileEnd(). + */ + location: Debugger.Location; + profile: Profile; + /** + * Profile title passed as an argument to console.profile(). + */ + title?: string | undefined; + } + } + namespace HeapProfiler { + /** + * Heap snapshot object id. + */ + type HeapSnapshotObjectId = string; + /** + * Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes. + */ + interface SamplingHeapProfileNode { + /** + * Function location. + */ + callFrame: Runtime.CallFrame; + /** + * Allocations size in bytes for the node excluding children. + */ + selfSize: number; + /** + * Child nodes. + */ + children: SamplingHeapProfileNode[]; + } + /** + * Profile. + */ + interface SamplingHeapProfile { + head: SamplingHeapProfileNode; + } + interface StartTrackingHeapObjectsParameterType { + trackAllocations?: boolean | undefined; + } + interface StopTrackingHeapObjectsParameterType { + /** + * If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken when the tracking is stopped. + */ + reportProgress?: boolean | undefined; + } + interface TakeHeapSnapshotParameterType { + /** + * If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken. + */ + reportProgress?: boolean | undefined; + } + interface GetObjectByHeapObjectIdParameterType { + objectId: HeapSnapshotObjectId; + /** + * Symbolic group name that can be used to release multiple objects. + */ + objectGroup?: string | undefined; + } + interface AddInspectedHeapObjectParameterType { + /** + * Heap snapshot object id to be accessible by means of $x command line API. + */ + heapObjectId: HeapSnapshotObjectId; + } + interface GetHeapObjectIdParameterType { + /** + * Identifier of the object to get heap object id for. + */ + objectId: Runtime.RemoteObjectId; + } + interface StartSamplingParameterType { + /** + * Average sample interval in bytes. Poisson distribution is used for the intervals. The default value is 32768 bytes. + */ + samplingInterval?: number | undefined; + } + interface GetObjectByHeapObjectIdReturnType { + /** + * Evaluation result. + */ + result: Runtime.RemoteObject; + } + interface GetHeapObjectIdReturnType { + /** + * Id of the heap snapshot object corresponding to the passed remote object id. + */ + heapSnapshotObjectId: HeapSnapshotObjectId; + } + interface StopSamplingReturnType { + /** + * Recorded sampling heap profile. + */ + profile: SamplingHeapProfile; + } + interface GetSamplingProfileReturnType { + /** + * Return the sampling profile being collected. + */ + profile: SamplingHeapProfile; + } + interface AddHeapSnapshotChunkEventDataType { + chunk: string; + } + interface ReportHeapSnapshotProgressEventDataType { + done: number; + total: number; + finished?: boolean | undefined; + } + interface LastSeenObjectIdEventDataType { + lastSeenObjectId: number; + timestamp: number; + } + interface HeapStatsUpdateEventDataType { + /** + * An array of triplets. Each triplet describes a fragment. The first integer is the fragment index, the second integer is a total count of objects for the fragment, the third integer is a total size of the objects for the fragment. + */ + statsUpdate: number[]; + } + } + namespace NodeTracing { + interface TraceConfig { + /** + * Controls how the trace buffer stores data. + */ + recordMode?: string | undefined; + /** + * Included category filters. + */ + includedCategories: string[]; + } + interface StartParameterType { + traceConfig: TraceConfig; + } + interface GetCategoriesReturnType { + /** + * A list of supported tracing categories. + */ + categories: string[]; + } + interface DataCollectedEventDataType { + value: Array<{}>; + } + } + namespace NodeWorker { + type WorkerID = string; + /** + * Unique identifier of attached debugging session. + */ + type SessionID = string; + interface WorkerInfo { + workerId: WorkerID; + type: string; + title: string; + url: string; + } + interface SendMessageToWorkerParameterType { + message: string; + /** + * Identifier of the session. + */ + sessionId: SessionID; + } + interface EnableParameterType { + /** + * Whether to new workers should be paused until the frontend sends `Runtime.runIfWaitingForDebugger` + * message to run them. + */ + waitForDebuggerOnStart: boolean; + } + interface DetachParameterType { + sessionId: SessionID; + } + interface AttachedToWorkerEventDataType { + /** + * Identifier assigned to the session used to send/receive messages. + */ + sessionId: SessionID; + workerInfo: WorkerInfo; + waitingForDebugger: boolean; + } + interface DetachedFromWorkerEventDataType { + /** + * Detached session identifier. + */ + sessionId: SessionID; + } + interface ReceivedMessageFromWorkerEventDataType { + /** + * Identifier of a session which sends a message. + */ + sessionId: SessionID; + message: string; + } + } + namespace Network { + /** + * Resource type as it was perceived by the rendering engine. + */ + type ResourceType = string; + /** + * Unique request identifier. + */ + type RequestId = string; + /** + * UTC time in seconds, counted from January 1, 1970. + */ + type TimeSinceEpoch = number; + /** + * Monotonically increasing time in seconds since an arbitrary point in the past. + */ + type MonotonicTime = number; + /** + * HTTP request data. + */ + interface Request { + url: string; + method: string; + headers: Headers; + } + /** + * HTTP response data. + */ + interface Response { + url: string; + status: number; + statusText: string; + headers: Headers; + } + /** + * Request / response headers as keys / values of JSON object. + */ + interface Headers { + } + interface RequestWillBeSentEventDataType { + /** + * Request identifier. + */ + requestId: RequestId; + /** + * Request data. + */ + request: Request; + /** + * Timestamp. + */ + timestamp: MonotonicTime; + /** + * Timestamp. + */ + wallTime: TimeSinceEpoch; + } + interface ResponseReceivedEventDataType { + /** + * Request identifier. + */ + requestId: RequestId; + /** + * Timestamp. + */ + timestamp: MonotonicTime; + /** + * Resource type. + */ + type: ResourceType; + /** + * Response data. + */ + response: Response; + } + interface LoadingFailedEventDataType { + /** + * Request identifier. + */ + requestId: RequestId; + /** + * Timestamp. + */ + timestamp: MonotonicTime; + /** + * Resource type. + */ + type: ResourceType; + /** + * Error message. + */ + errorText: string; + } + interface LoadingFinishedEventDataType { + /** + * Request identifier. + */ + requestId: RequestId; + /** + * Timestamp. + */ + timestamp: MonotonicTime; + } + } + namespace NodeRuntime { + interface NotifyWhenWaitingForDisconnectParameterType { + enabled: boolean; + } + } + + /** + * The `inspector.Session` is used for dispatching messages to the V8 inspector + * back-end and receiving message responses and notifications. + */ + class Session extends EventEmitter { + /** + * Create a new instance of the inspector.Session class. + * The inspector session needs to be connected through `session.connect()` before the messages can be dispatched to the inspector backend. + */ + constructor(); + + /** + * Connects a session to the inspector back-end. + */ + connect(): void; + + /** + * Connects a session to the inspector back-end. + * An exception will be thrown if this API was not called on a Worker thread. + * @since v12.11.0 + */ + connectToMainThread(): void; + + /** + * Immediately close the session. All pending message callbacks will be called with an error. + * `session.connect()` will need to be called to be able to send messages again. + * Reconnected session will lose all inspector state, such as enabled agents or configured breakpoints. + */ + disconnect(): void; + + /** + * Posts a message to the inspector back-end. `callback` will be notified when + * a response is received. `callback` is a function that accepts two optional + * arguments: error and message-specific result. + * + * ```js + * session.post('Runtime.evaluate', { expression: '2 + 2' }, + * (error, { result }) => console.log(result)); + * // Output: { type: 'number', value: 4, description: '4' } + * ``` + * + * The latest version of the V8 inspector protocol is published on the + * [Chrome DevTools Protocol Viewer](https://chromedevtools.github.io/devtools-protocol/v8/). + * + * Node.js inspector supports all the Chrome DevTools Protocol domains declared + * by V8. Chrome DevTools Protocol domain provides an interface for interacting + * with one of the runtime agents used to inspect the application state and listen + * to the run-time events. + */ + post(method: string, callback?: (err: Error | null, params?: object) => void): void; + post(method: string, params?: object, callback?: (err: Error | null, params?: object) => void): void; + /** + * Returns supported domains. + */ + post(method: 'Schema.getDomains', callback?: (err: Error | null, params: Schema.GetDomainsReturnType) => void): void; + /** + * Evaluates expression on global object. + */ + post(method: 'Runtime.evaluate', params?: Runtime.EvaluateParameterType, callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void; + post(method: 'Runtime.evaluate', callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void; + /** + * Add handler to promise with given promise object id. + */ + post(method: 'Runtime.awaitPromise', params?: Runtime.AwaitPromiseParameterType, callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void; + post(method: 'Runtime.awaitPromise', callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void; + /** + * Calls function with given declaration on the given object. Object group of the result is inherited from the target object. + */ + post(method: 'Runtime.callFunctionOn', params?: Runtime.CallFunctionOnParameterType, callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void; + post(method: 'Runtime.callFunctionOn', callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void; + /** + * Returns properties of a given object. Object group of the result is inherited from the target object. + */ + post(method: 'Runtime.getProperties', params?: Runtime.GetPropertiesParameterType, callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void; + post(method: 'Runtime.getProperties', callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void; + /** + * Releases remote object with given id. + */ + post(method: 'Runtime.releaseObject', params?: Runtime.ReleaseObjectParameterType, callback?: (err: Error | null) => void): void; + post(method: 'Runtime.releaseObject', callback?: (err: Error | null) => void): void; + /** + * Releases all remote objects that belong to a given group. + */ + post(method: 'Runtime.releaseObjectGroup', params?: Runtime.ReleaseObjectGroupParameterType, callback?: (err: Error | null) => void): void; + post(method: 'Runtime.releaseObjectGroup', callback?: (err: Error | null) => void): void; + /** + * Tells inspected instance to run if it was waiting for debugger to attach. + */ + post(method: 'Runtime.runIfWaitingForDebugger', callback?: (err: Error | null) => void): void; + /** + * Enables reporting of execution contexts creation by means of executionContextCreated event. When the reporting gets enabled the event will be sent immediately for each existing execution context. + */ + post(method: 'Runtime.enable', callback?: (err: Error | null) => void): void; + /** + * Disables reporting of execution contexts creation. + */ + post(method: 'Runtime.disable', callback?: (err: Error | null) => void): void; + /** + * Discards collected exceptions and console API calls. + */ + post(method: 'Runtime.discardConsoleEntries', callback?: (err: Error | null) => void): void; + /** + * @experimental + */ + post(method: 'Runtime.setCustomObjectFormatterEnabled', params?: Runtime.SetCustomObjectFormatterEnabledParameterType, callback?: (err: Error | null) => void): void; + post(method: 'Runtime.setCustomObjectFormatterEnabled', callback?: (err: Error | null) => void): void; + /** + * Compiles expression. + */ + post(method: 'Runtime.compileScript', params?: Runtime.CompileScriptParameterType, callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void; + post(method: 'Runtime.compileScript', callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void; + /** + * Runs script with given id in a given context. + */ + post(method: 'Runtime.runScript', params?: Runtime.RunScriptParameterType, callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void; + post(method: 'Runtime.runScript', callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void; + post(method: 'Runtime.queryObjects', params?: Runtime.QueryObjectsParameterType, callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void; + post(method: 'Runtime.queryObjects', callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void; + /** + * Returns all let, const and class variables from global scope. + */ + post( + method: 'Runtime.globalLexicalScopeNames', + params?: Runtime.GlobalLexicalScopeNamesParameterType, + callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void + ): void; + post(method: 'Runtime.globalLexicalScopeNames', callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void): void; + /** + * Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received. + */ + post(method: 'Debugger.enable', callback?: (err: Error | null, params: Debugger.EnableReturnType) => void): void; + /** + * Disables debugger for given page. + */ + post(method: 'Debugger.disable', callback?: (err: Error | null) => void): void; + /** + * Activates / deactivates all breakpoints on the page. + */ + post(method: 'Debugger.setBreakpointsActive', params?: Debugger.SetBreakpointsActiveParameterType, callback?: (err: Error | null) => void): void; + post(method: 'Debugger.setBreakpointsActive', callback?: (err: Error | null) => void): void; + /** + * Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc). + */ + post(method: 'Debugger.setSkipAllPauses', params?: Debugger.SetSkipAllPausesParameterType, callback?: (err: Error | null) => void): void; + post(method: 'Debugger.setSkipAllPauses', callback?: (err: Error | null) => void): void; + /** + * Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in locations property. Further matching script parsing will result in subsequent breakpointResolved events issued. This logical breakpoint will survive page reloads. + */ + post(method: 'Debugger.setBreakpointByUrl', params?: Debugger.SetBreakpointByUrlParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void; + post(method: 'Debugger.setBreakpointByUrl', callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void; + /** + * Sets JavaScript breakpoint at a given location. + */ + post(method: 'Debugger.setBreakpoint', params?: Debugger.SetBreakpointParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void; + post(method: 'Debugger.setBreakpoint', callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void; + /** + * Removes JavaScript breakpoint. + */ + post(method: 'Debugger.removeBreakpoint', params?: Debugger.RemoveBreakpointParameterType, callback?: (err: Error | null) => void): void; + post(method: 'Debugger.removeBreakpoint', callback?: (err: Error | null) => void): void; + /** + * Returns possible locations for breakpoint. scriptId in start and end range locations should be the same. + */ + post( + method: 'Debugger.getPossibleBreakpoints', + params?: Debugger.GetPossibleBreakpointsParameterType, + callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void + ): void; + post(method: 'Debugger.getPossibleBreakpoints', callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void): void; + /** + * Continues execution until specific location is reached. + */ + post(method: 'Debugger.continueToLocation', params?: Debugger.ContinueToLocationParameterType, callback?: (err: Error | null) => void): void; + post(method: 'Debugger.continueToLocation', callback?: (err: Error | null) => void): void; + /** + * @experimental + */ + post(method: 'Debugger.pauseOnAsyncCall', params?: Debugger.PauseOnAsyncCallParameterType, callback?: (err: Error | null) => void): void; + post(method: 'Debugger.pauseOnAsyncCall', callback?: (err: Error | null) => void): void; + /** + * Steps over the statement. + */ + post(method: 'Debugger.stepOver', callback?: (err: Error | null) => void): void; + /** + * Steps into the function call. + */ + post(method: 'Debugger.stepInto', params?: Debugger.StepIntoParameterType, callback?: (err: Error | null) => void): void; + post(method: 'Debugger.stepInto', callback?: (err: Error | null) => void): void; + /** + * Steps out of the function call. + */ + post(method: 'Debugger.stepOut', callback?: (err: Error | null) => void): void; + /** + * Stops on the next JavaScript statement. + */ + post(method: 'Debugger.pause', callback?: (err: Error | null) => void): void; + /** + * This method is deprecated - use Debugger.stepInto with breakOnAsyncCall and Debugger.pauseOnAsyncTask instead. Steps into next scheduled async task if any is scheduled before next pause. Returns success when async task is actually scheduled, returns error if no task were scheduled or another scheduleStepIntoAsync was called. + * @experimental + */ + post(method: 'Debugger.scheduleStepIntoAsync', callback?: (err: Error | null) => void): void; + /** + * Resumes JavaScript execution. + */ + post(method: 'Debugger.resume', callback?: (err: Error | null) => void): void; + /** + * Returns stack trace with given stackTraceId. + * @experimental + */ + post(method: 'Debugger.getStackTrace', params?: Debugger.GetStackTraceParameterType, callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void; + post(method: 'Debugger.getStackTrace', callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void; + /** + * Searches for given string in script content. + */ + post(method: 'Debugger.searchInContent', params?: Debugger.SearchInContentParameterType, callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void; + post(method: 'Debugger.searchInContent', callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void; + /** + * Edits JavaScript source live. + */ + post(method: 'Debugger.setScriptSource', params?: Debugger.SetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void; + post(method: 'Debugger.setScriptSource', callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void; + /** + * Restarts particular call frame from the beginning. + */ + post(method: 'Debugger.restartFrame', params?: Debugger.RestartFrameParameterType, callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void; + post(method: 'Debugger.restartFrame', callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void; + /** + * Returns source for the script with given id. + */ + post(method: 'Debugger.getScriptSource', params?: Debugger.GetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void; + post(method: 'Debugger.getScriptSource', callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void; + /** + * Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is none. + */ + post(method: 'Debugger.setPauseOnExceptions', params?: Debugger.SetPauseOnExceptionsParameterType, callback?: (err: Error | null) => void): void; + post(method: 'Debugger.setPauseOnExceptions', callback?: (err: Error | null) => void): void; + /** + * Evaluates expression on a given call frame. + */ + post(method: 'Debugger.evaluateOnCallFrame', params?: Debugger.EvaluateOnCallFrameParameterType, callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void; + post(method: 'Debugger.evaluateOnCallFrame', callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void; + /** + * Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually. + */ + post(method: 'Debugger.setVariableValue', params?: Debugger.SetVariableValueParameterType, callback?: (err: Error | null) => void): void; + post(method: 'Debugger.setVariableValue', callback?: (err: Error | null) => void): void; + /** + * Changes return value in top frame. Available only at return break position. + * @experimental + */ + post(method: 'Debugger.setReturnValue', params?: Debugger.SetReturnValueParameterType, callback?: (err: Error | null) => void): void; + post(method: 'Debugger.setReturnValue', callback?: (err: Error | null) => void): void; + /** + * Enables or disables async call stacks tracking. + */ + post(method: 'Debugger.setAsyncCallStackDepth', params?: Debugger.SetAsyncCallStackDepthParameterType, callback?: (err: Error | null) => void): void; + post(method: 'Debugger.setAsyncCallStackDepth', callback?: (err: Error | null) => void): void; + /** + * Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in scripts with url matching one of the patterns. VM will try to leave blackboxed script by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. + * @experimental + */ + post(method: 'Debugger.setBlackboxPatterns', params?: Debugger.SetBlackboxPatternsParameterType, callback?: (err: Error | null) => void): void; + post(method: 'Debugger.setBlackboxPatterns', callback?: (err: Error | null) => void): void; + /** + * Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. Positions array contains positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted. + * @experimental + */ + post(method: 'Debugger.setBlackboxedRanges', params?: Debugger.SetBlackboxedRangesParameterType, callback?: (err: Error | null) => void): void; + post(method: 'Debugger.setBlackboxedRanges', callback?: (err: Error | null) => void): void; + /** + * Enables console domain, sends the messages collected so far to the client by means of the messageAdded notification. + */ + post(method: 'Console.enable', callback?: (err: Error | null) => void): void; + /** + * Disables console domain, prevents further console messages from being reported to the client. + */ + post(method: 'Console.disable', callback?: (err: Error | null) => void): void; + /** + * Does nothing. + */ + post(method: 'Console.clearMessages', callback?: (err: Error | null) => void): void; + post(method: 'Profiler.enable', callback?: (err: Error | null) => void): void; + post(method: 'Profiler.disable', callback?: (err: Error | null) => void): void; + /** + * Changes CPU profiler sampling interval. Must be called before CPU profiles recording started. + */ + post(method: 'Profiler.setSamplingInterval', params?: Profiler.SetSamplingIntervalParameterType, callback?: (err: Error | null) => void): void; + post(method: 'Profiler.setSamplingInterval', callback?: (err: Error | null) => void): void; + post(method: 'Profiler.start', callback?: (err: Error | null) => void): void; + post(method: 'Profiler.stop', callback?: (err: Error | null, params: Profiler.StopReturnType) => void): void; + /** + * Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code coverage may be incomplete. Enabling prevents running optimized code and resets execution counters. + */ + post(method: 'Profiler.startPreciseCoverage', params?: Profiler.StartPreciseCoverageParameterType, callback?: (err: Error | null) => void): void; + post(method: 'Profiler.startPreciseCoverage', callback?: (err: Error | null) => void): void; + /** + * Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code. + */ + post(method: 'Profiler.stopPreciseCoverage', callback?: (err: Error | null) => void): void; + /** + * Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started. + */ + post(method: 'Profiler.takePreciseCoverage', callback?: (err: Error | null, params: Profiler.TakePreciseCoverageReturnType) => void): void; + /** + * Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection. + */ + post(method: 'Profiler.getBestEffortCoverage', callback?: (err: Error | null, params: Profiler.GetBestEffortCoverageReturnType) => void): void; + post(method: 'HeapProfiler.enable', callback?: (err: Error | null) => void): void; + post(method: 'HeapProfiler.disable', callback?: (err: Error | null) => void): void; + post(method: 'HeapProfiler.startTrackingHeapObjects', params?: HeapProfiler.StartTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void; + post(method: 'HeapProfiler.startTrackingHeapObjects', callback?: (err: Error | null) => void): void; + post(method: 'HeapProfiler.stopTrackingHeapObjects', params?: HeapProfiler.StopTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void; + post(method: 'HeapProfiler.stopTrackingHeapObjects', callback?: (err: Error | null) => void): void; + post(method: 'HeapProfiler.takeHeapSnapshot', params?: HeapProfiler.TakeHeapSnapshotParameterType, callback?: (err: Error | null) => void): void; + post(method: 'HeapProfiler.takeHeapSnapshot', callback?: (err: Error | null) => void): void; + post(method: 'HeapProfiler.collectGarbage', callback?: (err: Error | null) => void): void; + post( + method: 'HeapProfiler.getObjectByHeapObjectId', + params?: HeapProfiler.GetObjectByHeapObjectIdParameterType, + callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void + ): void; + post(method: 'HeapProfiler.getObjectByHeapObjectId', callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void): void; + /** + * Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions). + */ + post(method: 'HeapProfiler.addInspectedHeapObject', params?: HeapProfiler.AddInspectedHeapObjectParameterType, callback?: (err: Error | null) => void): void; + post(method: 'HeapProfiler.addInspectedHeapObject', callback?: (err: Error | null) => void): void; + post(method: 'HeapProfiler.getHeapObjectId', params?: HeapProfiler.GetHeapObjectIdParameterType, callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void; + post(method: 'HeapProfiler.getHeapObjectId', callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void; + post(method: 'HeapProfiler.startSampling', params?: HeapProfiler.StartSamplingParameterType, callback?: (err: Error | null) => void): void; + post(method: 'HeapProfiler.startSampling', callback?: (err: Error | null) => void): void; + post(method: 'HeapProfiler.stopSampling', callback?: (err: Error | null, params: HeapProfiler.StopSamplingReturnType) => void): void; + post(method: 'HeapProfiler.getSamplingProfile', callback?: (err: Error | null, params: HeapProfiler.GetSamplingProfileReturnType) => void): void; + /** + * Gets supported tracing categories. + */ + post(method: 'NodeTracing.getCategories', callback?: (err: Error | null, params: NodeTracing.GetCategoriesReturnType) => void): void; + /** + * Start trace events collection. + */ + post(method: 'NodeTracing.start', params?: NodeTracing.StartParameterType, callback?: (err: Error | null) => void): void; + post(method: 'NodeTracing.start', callback?: (err: Error | null) => void): void; + /** + * Stop trace events collection. Remaining collected events will be sent as a sequence of + * dataCollected events followed by tracingComplete event. + */ + post(method: 'NodeTracing.stop', callback?: (err: Error | null) => void): void; + /** + * Sends protocol message over session with given id. + */ + post(method: 'NodeWorker.sendMessageToWorker', params?: NodeWorker.SendMessageToWorkerParameterType, callback?: (err: Error | null) => void): void; + post(method: 'NodeWorker.sendMessageToWorker', callback?: (err: Error | null) => void): void; + /** + * Instructs the inspector to attach to running workers. Will also attach to new workers + * as they start + */ + post(method: 'NodeWorker.enable', params?: NodeWorker.EnableParameterType, callback?: (err: Error | null) => void): void; + post(method: 'NodeWorker.enable', callback?: (err: Error | null) => void): void; + /** + * Detaches from all running workers and disables attaching to new workers as they are started. + */ + post(method: 'NodeWorker.disable', callback?: (err: Error | null) => void): void; + /** + * Detached from the worker with given sessionId. + */ + post(method: 'NodeWorker.detach', params?: NodeWorker.DetachParameterType, callback?: (err: Error | null) => void): void; + post(method: 'NodeWorker.detach', callback?: (err: Error | null) => void): void; + /** + * Disables network tracking, prevents network events from being sent to the client. + */ + post(method: 'Network.disable', callback?: (err: Error | null) => void): void; + /** + * Enables network tracking, network events will now be delivered to the client. + */ + post(method: 'Network.enable', callback?: (err: Error | null) => void): void; + /** + * Enable the NodeRuntime events except by `NodeRuntime.waitingForDisconnect`. + */ + post(method: 'NodeRuntime.enable', callback?: (err: Error | null) => void): void; + /** + * Disable NodeRuntime events + */ + post(method: 'NodeRuntime.disable', callback?: (err: Error | null) => void): void; + /** + * Enable the `NodeRuntime.waitingForDisconnect`. + */ + post(method: 'NodeRuntime.notifyWhenWaitingForDisconnect', params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType, callback?: (err: Error | null) => void): void; + post(method: 'NodeRuntime.notifyWhenWaitingForDisconnect', callback?: (err: Error | null) => void): void; + + addListener(event: string, listener: (...args: any[]) => void): this; + /** + * Emitted when any notification from the V8 Inspector is received. + */ + addListener(event: 'inspectorNotification', listener: (message: InspectorNotification) => void): this; + /** + * Issued when new execution context is created. + */ + addListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; + /** + * Issued when execution context is destroyed. + */ + addListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; + /** + * Issued when all executionContexts were cleared in browser + */ + addListener(event: 'Runtime.executionContextsCleared', listener: () => void): this; + /** + * Issued when exception was thrown and unhandled. + */ + addListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; + /** + * Issued when unhandled exception was revoked. + */ + addListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; + /** + * Issued when console API was called. + */ + addListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; + /** + * Issued when object should be inspected (for example, as a result of inspect() command line API call). + */ + addListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; + /** + * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. + */ + addListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; + /** + * Fired when virtual machine fails to parse the script. + */ + addListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; + /** + * Fired when breakpoint is resolved to an actual script and location. + */ + addListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; + /** + * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. + */ + addListener(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; + /** + * Fired when the virtual machine resumed execution. + */ + addListener(event: 'Debugger.resumed', listener: () => void): this; + /** + * Issued when new console message is added. + */ + addListener(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; + /** + * Sent when new profile recording is started using console.profile() call. + */ + addListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; + addListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; + addListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; + addListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this; + addListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; + /** + * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. + */ + addListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; + /** + * If heap objects tracking has been started then backend may send update for one or more fragments + */ + addListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; + /** + * Contains an bucket of collected trace events. + */ + addListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; + /** + * Signals that tracing is stopped and there is no trace buffers pending flush, all data were + * delivered via dataCollected events. + */ + addListener(event: 'NodeTracing.tracingComplete', listener: () => void): this; + /** + * Issued when attached to a worker. + */ + addListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; + /** + * Issued when detached from the worker. + */ + addListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; + /** + * Notifies about a new protocol message received from the session + * (session ID is provided in attachedToWorker notification). + */ + addListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; + /** + * Fired when page is about to send HTTP request. + */ + addListener(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification) => void): this; + /** + * Fired when HTTP response is available. + */ + addListener(event: 'Network.responseReceived', listener: (message: InspectorNotification) => void): this; + addListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification) => void): this; + addListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification) => void): this; + /** + * This event is fired instead of `Runtime.executionContextDestroyed` when + * enabled. + * It is fired when the Node process finished all code execution and is + * waiting for all frontends to disconnect. + */ + addListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; + /** + * This event is fired when the runtime is waiting for the debugger. For + * example, when inspector.waitingForDebugger is called + */ + addListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this; + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: 'inspectorNotification', message: InspectorNotification): boolean; + emit(event: 'Runtime.executionContextCreated', message: InspectorNotification): boolean; + emit(event: 'Runtime.executionContextDestroyed', message: InspectorNotification): boolean; + emit(event: 'Runtime.executionContextsCleared'): boolean; + emit(event: 'Runtime.exceptionThrown', message: InspectorNotification): boolean; + emit(event: 'Runtime.exceptionRevoked', message: InspectorNotification): boolean; + emit(event: 'Runtime.consoleAPICalled', message: InspectorNotification): boolean; + emit(event: 'Runtime.inspectRequested', message: InspectorNotification): boolean; + emit(event: 'Debugger.scriptParsed', message: InspectorNotification): boolean; + emit(event: 'Debugger.scriptFailedToParse', message: InspectorNotification): boolean; + emit(event: 'Debugger.breakpointResolved', message: InspectorNotification): boolean; + emit(event: 'Debugger.paused', message: InspectorNotification): boolean; + emit(event: 'Debugger.resumed'): boolean; + emit(event: 'Console.messageAdded', message: InspectorNotification): boolean; + emit(event: 'Profiler.consoleProfileStarted', message: InspectorNotification): boolean; + emit(event: 'Profiler.consoleProfileFinished', message: InspectorNotification): boolean; + emit(event: 'HeapProfiler.addHeapSnapshotChunk', message: InspectorNotification): boolean; + emit(event: 'HeapProfiler.resetProfiles'): boolean; + emit(event: 'HeapProfiler.reportHeapSnapshotProgress', message: InspectorNotification): boolean; + emit(event: 'HeapProfiler.lastSeenObjectId', message: InspectorNotification): boolean; + emit(event: 'HeapProfiler.heapStatsUpdate', message: InspectorNotification): boolean; + emit(event: 'NodeTracing.dataCollected', message: InspectorNotification): boolean; + emit(event: 'NodeTracing.tracingComplete'): boolean; + emit(event: 'NodeWorker.attachedToWorker', message: InspectorNotification): boolean; + emit(event: 'NodeWorker.detachedFromWorker', message: InspectorNotification): boolean; + emit(event: 'NodeWorker.receivedMessageFromWorker', message: InspectorNotification): boolean; + emit(event: 'Network.requestWillBeSent', message: InspectorNotification): boolean; + emit(event: 'Network.responseReceived', message: InspectorNotification): boolean; + emit(event: 'Network.loadingFailed', message: InspectorNotification): boolean; + emit(event: 'Network.loadingFinished', message: InspectorNotification): boolean; + emit(event: 'NodeRuntime.waitingForDisconnect'): boolean; + emit(event: 'NodeRuntime.waitingForDebugger'): boolean; + on(event: string, listener: (...args: any[]) => void): this; + /** + * Emitted when any notification from the V8 Inspector is received. + */ + on(event: 'inspectorNotification', listener: (message: InspectorNotification) => void): this; + /** + * Issued when new execution context is created. + */ + on(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; + /** + * Issued when execution context is destroyed. + */ + on(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; + /** + * Issued when all executionContexts were cleared in browser + */ + on(event: 'Runtime.executionContextsCleared', listener: () => void): this; + /** + * Issued when exception was thrown and unhandled. + */ + on(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; + /** + * Issued when unhandled exception was revoked. + */ + on(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; + /** + * Issued when console API was called. + */ + on(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; + /** + * Issued when object should be inspected (for example, as a result of inspect() command line API call). + */ + on(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; + /** + * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. + */ + on(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; + /** + * Fired when virtual machine fails to parse the script. + */ + on(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; + /** + * Fired when breakpoint is resolved to an actual script and location. + */ + on(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; + /** + * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. + */ + on(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; + /** + * Fired when the virtual machine resumed execution. + */ + on(event: 'Debugger.resumed', listener: () => void): this; + /** + * Issued when new console message is added. + */ + on(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; + /** + * Sent when new profile recording is started using console.profile() call. + */ + on(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; + on(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; + on(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; + on(event: 'HeapProfiler.resetProfiles', listener: () => void): this; + on(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; + /** + * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. + */ + on(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; + /** + * If heap objects tracking has been started then backend may send update for one or more fragments + */ + on(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; + /** + * Contains an bucket of collected trace events. + */ + on(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; + /** + * Signals that tracing is stopped and there is no trace buffers pending flush, all data were + * delivered via dataCollected events. + */ + on(event: 'NodeTracing.tracingComplete', listener: () => void): this; + /** + * Issued when attached to a worker. + */ + on(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; + /** + * Issued when detached from the worker. + */ + on(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; + /** + * Notifies about a new protocol message received from the session + * (session ID is provided in attachedToWorker notification). + */ + on(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; + /** + * Fired when page is about to send HTTP request. + */ + on(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification) => void): this; + /** + * Fired when HTTP response is available. + */ + on(event: 'Network.responseReceived', listener: (message: InspectorNotification) => void): this; + on(event: 'Network.loadingFailed', listener: (message: InspectorNotification) => void): this; + on(event: 'Network.loadingFinished', listener: (message: InspectorNotification) => void): this; + /** + * This event is fired instead of `Runtime.executionContextDestroyed` when + * enabled. + * It is fired when the Node process finished all code execution and is + * waiting for all frontends to disconnect. + */ + on(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; + /** + * This event is fired when the runtime is waiting for the debugger. For + * example, when inspector.waitingForDebugger is called + */ + on(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this; + once(event: string, listener: (...args: any[]) => void): this; + /** + * Emitted when any notification from the V8 Inspector is received. + */ + once(event: 'inspectorNotification', listener: (message: InspectorNotification) => void): this; + /** + * Issued when new execution context is created. + */ + once(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; + /** + * Issued when execution context is destroyed. + */ + once(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; + /** + * Issued when all executionContexts were cleared in browser + */ + once(event: 'Runtime.executionContextsCleared', listener: () => void): this; + /** + * Issued when exception was thrown and unhandled. + */ + once(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; + /** + * Issued when unhandled exception was revoked. + */ + once(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; + /** + * Issued when console API was called. + */ + once(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; + /** + * Issued when object should be inspected (for example, as a result of inspect() command line API call). + */ + once(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; + /** + * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. + */ + once(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; + /** + * Fired when virtual machine fails to parse the script. + */ + once(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; + /** + * Fired when breakpoint is resolved to an actual script and location. + */ + once(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; + /** + * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. + */ + once(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; + /** + * Fired when the virtual machine resumed execution. + */ + once(event: 'Debugger.resumed', listener: () => void): this; + /** + * Issued when new console message is added. + */ + once(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; + /** + * Sent when new profile recording is started using console.profile() call. + */ + once(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; + once(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; + once(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; + once(event: 'HeapProfiler.resetProfiles', listener: () => void): this; + once(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; + /** + * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. + */ + once(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; + /** + * If heap objects tracking has been started then backend may send update for one or more fragments + */ + once(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; + /** + * Contains an bucket of collected trace events. + */ + once(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; + /** + * Signals that tracing is stopped and there is no trace buffers pending flush, all data were + * delivered via dataCollected events. + */ + once(event: 'NodeTracing.tracingComplete', listener: () => void): this; + /** + * Issued when attached to a worker. + */ + once(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; + /** + * Issued when detached from the worker. + */ + once(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; + /** + * Notifies about a new protocol message received from the session + * (session ID is provided in attachedToWorker notification). + */ + once(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; + /** + * Fired when page is about to send HTTP request. + */ + once(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification) => void): this; + /** + * Fired when HTTP response is available. + */ + once(event: 'Network.responseReceived', listener: (message: InspectorNotification) => void): this; + once(event: 'Network.loadingFailed', listener: (message: InspectorNotification) => void): this; + once(event: 'Network.loadingFinished', listener: (message: InspectorNotification) => void): this; + /** + * This event is fired instead of `Runtime.executionContextDestroyed` when + * enabled. + * It is fired when the Node process finished all code execution and is + * waiting for all frontends to disconnect. + */ + once(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; + /** + * This event is fired when the runtime is waiting for the debugger. For + * example, when inspector.waitingForDebugger is called + */ + once(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this; + prependListener(event: string, listener: (...args: any[]) => void): this; + /** + * Emitted when any notification from the V8 Inspector is received. + */ + prependListener(event: 'inspectorNotification', listener: (message: InspectorNotification) => void): this; + /** + * Issued when new execution context is created. + */ + prependListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; + /** + * Issued when execution context is destroyed. + */ + prependListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; + /** + * Issued when all executionContexts were cleared in browser + */ + prependListener(event: 'Runtime.executionContextsCleared', listener: () => void): this; + /** + * Issued when exception was thrown and unhandled. + */ + prependListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; + /** + * Issued when unhandled exception was revoked. + */ + prependListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; + /** + * Issued when console API was called. + */ + prependListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; + /** + * Issued when object should be inspected (for example, as a result of inspect() command line API call). + */ + prependListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; + /** + * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. + */ + prependListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; + /** + * Fired when virtual machine fails to parse the script. + */ + prependListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; + /** + * Fired when breakpoint is resolved to an actual script and location. + */ + prependListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; + /** + * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. + */ + prependListener(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; + /** + * Fired when the virtual machine resumed execution. + */ + prependListener(event: 'Debugger.resumed', listener: () => void): this; + /** + * Issued when new console message is added. + */ + prependListener(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; + /** + * Sent when new profile recording is started using console.profile() call. + */ + prependListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; + prependListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; + prependListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; + prependListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this; + prependListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; + /** + * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. + */ + prependListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; + /** + * If heap objects tracking has been started then backend may send update for one or more fragments + */ + prependListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; + /** + * Contains an bucket of collected trace events. + */ + prependListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; + /** + * Signals that tracing is stopped and there is no trace buffers pending flush, all data were + * delivered via dataCollected events. + */ + prependListener(event: 'NodeTracing.tracingComplete', listener: () => void): this; + /** + * Issued when attached to a worker. + */ + prependListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; + /** + * Issued when detached from the worker. + */ + prependListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; + /** + * Notifies about a new protocol message received from the session + * (session ID is provided in attachedToWorker notification). + */ + prependListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; + /** + * Fired when page is about to send HTTP request. + */ + prependListener(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification) => void): this; + /** + * Fired when HTTP response is available. + */ + prependListener(event: 'Network.responseReceived', listener: (message: InspectorNotification) => void): this; + prependListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification) => void): this; + prependListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification) => void): this; + /** + * This event is fired instead of `Runtime.executionContextDestroyed` when + * enabled. + * It is fired when the Node process finished all code execution and is + * waiting for all frontends to disconnect. + */ + prependListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; + /** + * This event is fired when the runtime is waiting for the debugger. For + * example, when inspector.waitingForDebugger is called + */ + prependListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this; + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + /** + * Emitted when any notification from the V8 Inspector is received. + */ + prependOnceListener(event: 'inspectorNotification', listener: (message: InspectorNotification) => void): this; + /** + * Issued when new execution context is created. + */ + prependOnceListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; + /** + * Issued when execution context is destroyed. + */ + prependOnceListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; + /** + * Issued when all executionContexts were cleared in browser + */ + prependOnceListener(event: 'Runtime.executionContextsCleared', listener: () => void): this; + /** + * Issued when exception was thrown and unhandled. + */ + prependOnceListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; + /** + * Issued when unhandled exception was revoked. + */ + prependOnceListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; + /** + * Issued when console API was called. + */ + prependOnceListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; + /** + * Issued when object should be inspected (for example, as a result of inspect() command line API call). + */ + prependOnceListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; + /** + * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. + */ + prependOnceListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; + /** + * Fired when virtual machine fails to parse the script. + */ + prependOnceListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; + /** + * Fired when breakpoint is resolved to an actual script and location. + */ + prependOnceListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; + /** + * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. + */ + prependOnceListener(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; + /** + * Fired when the virtual machine resumed execution. + */ + prependOnceListener(event: 'Debugger.resumed', listener: () => void): this; + /** + * Issued when new console message is added. + */ + prependOnceListener(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; + /** + * Sent when new profile recording is started using console.profile() call. + */ + prependOnceListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; + prependOnceListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; + prependOnceListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; + prependOnceListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this; + prependOnceListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; + /** + * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. + */ + prependOnceListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; + /** + * If heap objects tracking has been started then backend may send update for one or more fragments + */ + prependOnceListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; + /** + * Contains an bucket of collected trace events. + */ + prependOnceListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; + /** + * Signals that tracing is stopped and there is no trace buffers pending flush, all data were + * delivered via dataCollected events. + */ + prependOnceListener(event: 'NodeTracing.tracingComplete', listener: () => void): this; + /** + * Issued when attached to a worker. + */ + prependOnceListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; + /** + * Issued when detached from the worker. + */ + prependOnceListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; + /** + * Notifies about a new protocol message received from the session + * (session ID is provided in attachedToWorker notification). + */ + prependOnceListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; + /** + * Fired when page is about to send HTTP request. + */ + prependOnceListener(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification) => void): this; + /** + * Fired when HTTP response is available. + */ + prependOnceListener(event: 'Network.responseReceived', listener: (message: InspectorNotification) => void): this; + prependOnceListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification) => void): this; + prependOnceListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification) => void): this; + /** + * This event is fired instead of `Runtime.executionContextDestroyed` when + * enabled. + * It is fired when the Node process finished all code execution and is + * waiting for all frontends to disconnect. + */ + prependOnceListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; + /** + * This event is fired when the runtime is waiting for the debugger. For + * example, when inspector.waitingForDebugger is called + */ + prependOnceListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this; + } + + /** + * Activate inspector on host and port. Equivalent to `node --inspect=[[host:]port]`, but can be done programmatically after node has + * started. + * + * If wait is `true`, will block until a client has connected to the inspect port + * and flow control has been passed to the debugger client. + * + * See the [security warning](https://nodejs.org/docs/latest-v20.x/api/cli.html#warning-binding-inspector-to-a-public-ipport-combination-is-insecure) + * regarding the `host` parameter usage. + * @param port Port to listen on for inspector connections. Defaults to what was specified on the CLI. + * @param host Host to listen on for inspector connections. Defaults to what was specified on the CLI. + * @param wait Block until a client has connected. Defaults to what was specified on the CLI. + * @returns Disposable that calls `inspector.close()`. + */ + function open(port?: number, host?: string, wait?: boolean): Disposable; + + /** + * Deactivate the inspector. Blocks until there are no active connections. + */ + function close(): void; + + /** + * Return the URL of the active inspector, or `undefined` if there is none. + * + * ```console + * $ node --inspect -p 'inspector.url()' + * Debugger listening on ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34 + * For help, see: https://nodejs.org/en/docs/inspector + * ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34 + * + * $ node --inspect=localhost:3000 -p 'inspector.url()' + * Debugger listening on ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a + * For help, see: https://nodejs.org/en/docs/inspector + * ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a + * + * $ node -p 'inspector.url()' + * undefined + * ``` + */ + function url(): string | undefined; + + /** + * Blocks until a client (existing or connected later) has sent `Runtime.runIfWaitingForDebugger` command. + * + * An exception will be thrown if there is no active inspector. + * @since v12.7.0 + */ + function waitForDebugger(): void; + + // These methods are exposed by the V8 inspector console API (inspector/v8-console.h). + // The method signatures differ from those of the Node.js console, and are deliberately + // typed permissively. + interface InspectorConsole { + debug(...data: any[]): void; + error(...data: any[]): void; + info(...data: any[]): void; + log(...data: any[]): void; + warn(...data: any[]): void; + dir(...data: any[]): void; + dirxml(...data: any[]): void; + table(...data: any[]): void; + trace(...data: any[]): void; + group(...data: any[]): void; + groupCollapsed(...data: any[]): void; + groupEnd(...data: any[]): void; + clear(...data: any[]): void; + count(label?: any): void; + countReset(label?: any): void; + assert(value?: any, ...data: any[]): void; + profile(label?: any): void; + profileEnd(label?: any): void; + time(label?: any): void; + timeLog(label?: any): void; + timeStamp(label?: any): void; + } + + /** + * An object to send messages to the remote inspector console. + * @since v11.0.0 + */ + const console: InspectorConsole; + + // DevTools protocol event broadcast methods + namespace Network { + /** + * This feature is only available with the `--experimental-network-inspection` flag enabled. + * + * Broadcasts the `Network.requestWillBeSent` event to connected frontends. This event indicates that + * the application is about to send an HTTP request. + * @since v22.6.0 + * @experimental + */ + function requestWillBeSent(params: RequestWillBeSentEventDataType): void; + /** + * This feature is only available with the `--experimental-network-inspection` flag enabled. + * + * Broadcasts the `Network.responseReceived` event to connected frontends. This event indicates that + * HTTP response is available. + * @since v22.6.0 + * @experimental + */ + function responseReceived(params: ResponseReceivedEventDataType): void; + /** + * This feature is only available with the `--experimental-network-inspection` flag enabled. + * + * Broadcasts the `Network.loadingFinished` event to connected frontends. This event indicates that + * HTTP request has finished loading. + * @since v22.6.0 + * @experimental + */ + function loadingFinished(params: LoadingFinishedEventDataType): void; + /** + * This feature is only available with the `--experimental-network-inspection` flag enabled. + * + * Broadcasts the `Network.loadingFailed` event to connected frontends. This event indicates that + * HTTP request has failed to load. + * @since v22.7.0 + * @experimental + */ + function loadingFailed(params: LoadingFailedEventDataType): void; + } +} + +/** + * The `node:inspector` module provides an API for interacting with the V8 + * inspector. + */ +declare module 'node:inspector' { + export * from 'inspector'; +} + +/** + * The `node:inspector/promises` module provides an API for interacting with the V8 + * inspector. + * @see [source](https://github.com/nodejs/node/blob/v20.x/lib/inspector/promises.js) + * @since v19.0.0 + */ +declare module 'inspector/promises' { + import EventEmitter = require('node:events'); + import { + open, + close, + url, + waitForDebugger, + console, + InspectorNotification, + Schema, + Runtime, + Debugger, + Console, + Profiler, + HeapProfiler, + NodeTracing, + NodeWorker, + Network, + NodeRuntime, + } from 'inspector'; + + /** + * The `inspector.Session` is used for dispatching messages to the V8 inspector + * back-end and receiving message responses and notifications. + * @since v19.0.0 + */ + class Session extends EventEmitter { + /** + * Create a new instance of the `inspector.Session` class. + * The inspector session needs to be connected through `session.connect()` before the messages can be dispatched to the inspector backend. + */ + constructor(); + + /** + * Connects a session to the inspector back-end. + */ + connect(): void; + + /** + * Connects a session to the inspector back-end. + * An exception will be thrown if this API was not called on a Worker thread. + */ + connectToMainThread(): void; + + /** + * Immediately close the session. All pending message callbacks will be called with an error. + * `session.connect()` will need to be called to be able to send messages again. + * Reconnected session will lose all inspector state, such as enabled agents or configured breakpoints. + */ + disconnect(): void; + + /** + * Posts a message to the inspector back-end. + * + * ```js + * import { Session } from 'node:inspector/promises'; + * try { + * const session = new Session(); + * session.connect(); + * const result = await session.post('Runtime.evaluate', { expression: '2 + 2' }); + * console.log(result); + * } catch (error) { + * console.error(error); + * } + * // Output: { result: { type: 'number', value: 4, description: '4' } } + * ``` + * + * The latest version of the V8 inspector protocol is published on the + * [Chrome DevTools Protocol Viewer](https://chromedevtools.github.io/devtools-protocol/v8/). + * + * Node.js inspector supports all the Chrome DevTools Protocol domains declared + * by V8. Chrome DevTools Protocol domain provides an interface for interacting + * with one of the runtime agents used to inspect the application state and listen + * to the run-time events. + */ + post(method: string, params?: object): Promise; + /** + * Returns supported domains. + */ + post(method: 'Schema.getDomains'): Promise; + /** + * Evaluates expression on global object. + */ + post(method: 'Runtime.evaluate', params?: Runtime.EvaluateParameterType): Promise; + /** + * Add handler to promise with given promise object id. + */ + post(method: 'Runtime.awaitPromise', params?: Runtime.AwaitPromiseParameterType): Promise; + /** + * Calls function with given declaration on the given object. Object group of the result is inherited from the target object. + */ + post(method: 'Runtime.callFunctionOn', params?: Runtime.CallFunctionOnParameterType): Promise; + /** + * Returns properties of a given object. Object group of the result is inherited from the target object. + */ + post(method: 'Runtime.getProperties', params?: Runtime.GetPropertiesParameterType): Promise; + /** + * Releases remote object with given id. + */ + post(method: 'Runtime.releaseObject', params?: Runtime.ReleaseObjectParameterType): Promise; + /** + * Releases all remote objects that belong to a given group. + */ + post(method: 'Runtime.releaseObjectGroup', params?: Runtime.ReleaseObjectGroupParameterType): Promise; + /** + * Tells inspected instance to run if it was waiting for debugger to attach. + */ + post(method: 'Runtime.runIfWaitingForDebugger'): Promise; + /** + * Enables reporting of execution contexts creation by means of executionContextCreated event. When the reporting gets enabled the event will be sent immediately for each existing execution context. + */ + post(method: 'Runtime.enable'): Promise; + /** + * Disables reporting of execution contexts creation. + */ + post(method: 'Runtime.disable'): Promise; + /** + * Discards collected exceptions and console API calls. + */ + post(method: 'Runtime.discardConsoleEntries'): Promise; + /** + * @experimental + */ + post(method: 'Runtime.setCustomObjectFormatterEnabled', params?: Runtime.SetCustomObjectFormatterEnabledParameterType): Promise; + /** + * Compiles expression. + */ + post(method: 'Runtime.compileScript', params?: Runtime.CompileScriptParameterType): Promise; + /** + * Runs script with given id in a given context. + */ + post(method: 'Runtime.runScript', params?: Runtime.RunScriptParameterType): Promise; + post(method: 'Runtime.queryObjects', params?: Runtime.QueryObjectsParameterType): Promise; + /** + * Returns all let, const and class variables from global scope. + */ + post(method: 'Runtime.globalLexicalScopeNames', params?: Runtime.GlobalLexicalScopeNamesParameterType): Promise; + /** + * Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received. + */ + post(method: 'Debugger.enable'): Promise; + /** + * Disables debugger for given page. + */ + post(method: 'Debugger.disable'): Promise; + /** + * Activates / deactivates all breakpoints on the page. + */ + post(method: 'Debugger.setBreakpointsActive', params?: Debugger.SetBreakpointsActiveParameterType): Promise; + /** + * Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc). + */ + post(method: 'Debugger.setSkipAllPauses', params?: Debugger.SetSkipAllPausesParameterType): Promise; + /** + * Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in locations property. Further matching script parsing will result in subsequent breakpointResolved events issued. This logical breakpoint will survive page reloads. + */ + post(method: 'Debugger.setBreakpointByUrl', params?: Debugger.SetBreakpointByUrlParameterType): Promise; + /** + * Sets JavaScript breakpoint at a given location. + */ + post(method: 'Debugger.setBreakpoint', params?: Debugger.SetBreakpointParameterType): Promise; + /** + * Removes JavaScript breakpoint. + */ + post(method: 'Debugger.removeBreakpoint', params?: Debugger.RemoveBreakpointParameterType): Promise; + /** + * Returns possible locations for breakpoint. scriptId in start and end range locations should be the same. + */ + post(method: 'Debugger.getPossibleBreakpoints', params?: Debugger.GetPossibleBreakpointsParameterType): Promise; + /** + * Continues execution until specific location is reached. + */ + post(method: 'Debugger.continueToLocation', params?: Debugger.ContinueToLocationParameterType): Promise; + /** + * @experimental + */ + post(method: 'Debugger.pauseOnAsyncCall', params?: Debugger.PauseOnAsyncCallParameterType): Promise; + /** + * Steps over the statement. + */ + post(method: 'Debugger.stepOver'): Promise; + /** + * Steps into the function call. + */ + post(method: 'Debugger.stepInto', params?: Debugger.StepIntoParameterType): Promise; + /** + * Steps out of the function call. + */ + post(method: 'Debugger.stepOut'): Promise; + /** + * Stops on the next JavaScript statement. + */ + post(method: 'Debugger.pause'): Promise; + /** + * This method is deprecated - use Debugger.stepInto with breakOnAsyncCall and Debugger.pauseOnAsyncTask instead. Steps into next scheduled async task if any is scheduled before next pause. Returns success when async task is actually scheduled, returns error if no task were scheduled or another scheduleStepIntoAsync was called. + * @experimental + */ + post(method: 'Debugger.scheduleStepIntoAsync'): Promise; + /** + * Resumes JavaScript execution. + */ + post(method: 'Debugger.resume'): Promise; + /** + * Returns stack trace with given stackTraceId. + * @experimental + */ + post(method: 'Debugger.getStackTrace', params?: Debugger.GetStackTraceParameterType): Promise; + /** + * Searches for given string in script content. + */ + post(method: 'Debugger.searchInContent', params?: Debugger.SearchInContentParameterType): Promise; + /** + * Edits JavaScript source live. + */ + post(method: 'Debugger.setScriptSource', params?: Debugger.SetScriptSourceParameterType): Promise; + /** + * Restarts particular call frame from the beginning. + */ + post(method: 'Debugger.restartFrame', params?: Debugger.RestartFrameParameterType): Promise; + /** + * Returns source for the script with given id. + */ + post(method: 'Debugger.getScriptSource', params?: Debugger.GetScriptSourceParameterType): Promise; + /** + * Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is none. + */ + post(method: 'Debugger.setPauseOnExceptions', params?: Debugger.SetPauseOnExceptionsParameterType): Promise; + /** + * Evaluates expression on a given call frame. + */ + post(method: 'Debugger.evaluateOnCallFrame', params?: Debugger.EvaluateOnCallFrameParameterType): Promise; + /** + * Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually. + */ + post(method: 'Debugger.setVariableValue', params?: Debugger.SetVariableValueParameterType): Promise; + /** + * Changes return value in top frame. Available only at return break position. + * @experimental + */ + post(method: 'Debugger.setReturnValue', params?: Debugger.SetReturnValueParameterType): Promise; + /** + * Enables or disables async call stacks tracking. + */ + post(method: 'Debugger.setAsyncCallStackDepth', params?: Debugger.SetAsyncCallStackDepthParameterType): Promise; + /** + * Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in scripts with url matching one of the patterns. VM will try to leave blackboxed script by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. + * @experimental + */ + post(method: 'Debugger.setBlackboxPatterns', params?: Debugger.SetBlackboxPatternsParameterType): Promise; + /** + * Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. Positions array contains positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted. + * @experimental + */ + post(method: 'Debugger.setBlackboxedRanges', params?: Debugger.SetBlackboxedRangesParameterType): Promise; + /** + * Enables console domain, sends the messages collected so far to the client by means of the messageAdded notification. + */ + post(method: 'Console.enable'): Promise; + /** + * Disables console domain, prevents further console messages from being reported to the client. + */ + post(method: 'Console.disable'): Promise; + /** + * Does nothing. + */ + post(method: 'Console.clearMessages'): Promise; + post(method: 'Profiler.enable'): Promise; + post(method: 'Profiler.disable'): Promise; + /** + * Changes CPU profiler sampling interval. Must be called before CPU profiles recording started. + */ + post(method: 'Profiler.setSamplingInterval', params?: Profiler.SetSamplingIntervalParameterType): Promise; + post(method: 'Profiler.start'): Promise; + post(method: 'Profiler.stop'): Promise; + /** + * Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code coverage may be incomplete. Enabling prevents running optimized code and resets execution counters. + */ + post(method: 'Profiler.startPreciseCoverage', params?: Profiler.StartPreciseCoverageParameterType): Promise; + /** + * Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code. + */ + post(method: 'Profiler.stopPreciseCoverage'): Promise; + /** + * Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started. + */ + post(method: 'Profiler.takePreciseCoverage'): Promise; + /** + * Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection. + */ + post(method: 'Profiler.getBestEffortCoverage'): Promise; + post(method: 'HeapProfiler.enable'): Promise; + post(method: 'HeapProfiler.disable'): Promise; + post(method: 'HeapProfiler.startTrackingHeapObjects', params?: HeapProfiler.StartTrackingHeapObjectsParameterType): Promise; + post(method: 'HeapProfiler.stopTrackingHeapObjects', params?: HeapProfiler.StopTrackingHeapObjectsParameterType): Promise; + post(method: 'HeapProfiler.takeHeapSnapshot', params?: HeapProfiler.TakeHeapSnapshotParameterType): Promise; + post(method: 'HeapProfiler.collectGarbage'): Promise; + post(method: 'HeapProfiler.getObjectByHeapObjectId', params?: HeapProfiler.GetObjectByHeapObjectIdParameterType): Promise; + /** + * Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions). + */ + post(method: 'HeapProfiler.addInspectedHeapObject', params?: HeapProfiler.AddInspectedHeapObjectParameterType): Promise; + post(method: 'HeapProfiler.getHeapObjectId', params?: HeapProfiler.GetHeapObjectIdParameterType): Promise; + post(method: 'HeapProfiler.startSampling', params?: HeapProfiler.StartSamplingParameterType): Promise; + post(method: 'HeapProfiler.stopSampling'): Promise; + post(method: 'HeapProfiler.getSamplingProfile'): Promise; + /** + * Gets supported tracing categories. + */ + post(method: 'NodeTracing.getCategories'): Promise; + /** + * Start trace events collection. + */ + post(method: 'NodeTracing.start', params?: NodeTracing.StartParameterType): Promise; + /** + * Stop trace events collection. Remaining collected events will be sent as a sequence of + * dataCollected events followed by tracingComplete event. + */ + post(method: 'NodeTracing.stop'): Promise; + /** + * Sends protocol message over session with given id. + */ + post(method: 'NodeWorker.sendMessageToWorker', params?: NodeWorker.SendMessageToWorkerParameterType): Promise; + /** + * Instructs the inspector to attach to running workers. Will also attach to new workers + * as they start + */ + post(method: 'NodeWorker.enable', params?: NodeWorker.EnableParameterType): Promise; + /** + * Detaches from all running workers and disables attaching to new workers as they are started. + */ + post(method: 'NodeWorker.disable'): Promise; + /** + * Detached from the worker with given sessionId. + */ + post(method: 'NodeWorker.detach', params?: NodeWorker.DetachParameterType): Promise; + /** + * Disables network tracking, prevents network events from being sent to the client. + */ + post(method: 'Network.disable'): Promise; + /** + * Enables network tracking, network events will now be delivered to the client. + */ + post(method: 'Network.enable'): Promise; + /** + * Enable the NodeRuntime events except by `NodeRuntime.waitingForDisconnect`. + */ + post(method: 'NodeRuntime.enable'): Promise; + /** + * Disable NodeRuntime events + */ + post(method: 'NodeRuntime.disable'): Promise; + /** + * Enable the `NodeRuntime.waitingForDisconnect`. + */ + post(method: 'NodeRuntime.notifyWhenWaitingForDisconnect', params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType): Promise; + + addListener(event: string, listener: (...args: any[]) => void): this; + /** + * Emitted when any notification from the V8 Inspector is received. + */ + addListener(event: 'inspectorNotification', listener: (message: InspectorNotification) => void): this; + /** + * Issued when new execution context is created. + */ + addListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; + /** + * Issued when execution context is destroyed. + */ + addListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; + /** + * Issued when all executionContexts were cleared in browser + */ + addListener(event: 'Runtime.executionContextsCleared', listener: () => void): this; + /** + * Issued when exception was thrown and unhandled. + */ + addListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; + /** + * Issued when unhandled exception was revoked. + */ + addListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; + /** + * Issued when console API was called. + */ + addListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; + /** + * Issued when object should be inspected (for example, as a result of inspect() command line API call). + */ + addListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; + /** + * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. + */ + addListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; + /** + * Fired when virtual machine fails to parse the script. + */ + addListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; + /** + * Fired when breakpoint is resolved to an actual script and location. + */ + addListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; + /** + * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. + */ + addListener(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; + /** + * Fired when the virtual machine resumed execution. + */ + addListener(event: 'Debugger.resumed', listener: () => void): this; + /** + * Issued when new console message is added. + */ + addListener(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; + /** + * Sent when new profile recording is started using console.profile() call. + */ + addListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; + addListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; + addListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; + addListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this; + addListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; + /** + * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. + */ + addListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; + /** + * If heap objects tracking has been started then backend may send update for one or more fragments + */ + addListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; + /** + * Contains an bucket of collected trace events. + */ + addListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; + /** + * Signals that tracing is stopped and there is no trace buffers pending flush, all data were + * delivered via dataCollected events. + */ + addListener(event: 'NodeTracing.tracingComplete', listener: () => void): this; + /** + * Issued when attached to a worker. + */ + addListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; + /** + * Issued when detached from the worker. + */ + addListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; + /** + * Notifies about a new protocol message received from the session + * (session ID is provided in attachedToWorker notification). + */ + addListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; + /** + * Fired when page is about to send HTTP request. + */ + addListener(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification) => void): this; + /** + * Fired when HTTP response is available. + */ + addListener(event: 'Network.responseReceived', listener: (message: InspectorNotification) => void): this; + addListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification) => void): this; + addListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification) => void): this; + /** + * This event is fired instead of `Runtime.executionContextDestroyed` when + * enabled. + * It is fired when the Node process finished all code execution and is + * waiting for all frontends to disconnect. + */ + addListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; + /** + * This event is fired when the runtime is waiting for the debugger. For + * example, when inspector.waitingForDebugger is called + */ + addListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this; + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: 'inspectorNotification', message: InspectorNotification): boolean; + emit(event: 'Runtime.executionContextCreated', message: InspectorNotification): boolean; + emit(event: 'Runtime.executionContextDestroyed', message: InspectorNotification): boolean; + emit(event: 'Runtime.executionContextsCleared'): boolean; + emit(event: 'Runtime.exceptionThrown', message: InspectorNotification): boolean; + emit(event: 'Runtime.exceptionRevoked', message: InspectorNotification): boolean; + emit(event: 'Runtime.consoleAPICalled', message: InspectorNotification): boolean; + emit(event: 'Runtime.inspectRequested', message: InspectorNotification): boolean; + emit(event: 'Debugger.scriptParsed', message: InspectorNotification): boolean; + emit(event: 'Debugger.scriptFailedToParse', message: InspectorNotification): boolean; + emit(event: 'Debugger.breakpointResolved', message: InspectorNotification): boolean; + emit(event: 'Debugger.paused', message: InspectorNotification): boolean; + emit(event: 'Debugger.resumed'): boolean; + emit(event: 'Console.messageAdded', message: InspectorNotification): boolean; + emit(event: 'Profiler.consoleProfileStarted', message: InspectorNotification): boolean; + emit(event: 'Profiler.consoleProfileFinished', message: InspectorNotification): boolean; + emit(event: 'HeapProfiler.addHeapSnapshotChunk', message: InspectorNotification): boolean; + emit(event: 'HeapProfiler.resetProfiles'): boolean; + emit(event: 'HeapProfiler.reportHeapSnapshotProgress', message: InspectorNotification): boolean; + emit(event: 'HeapProfiler.lastSeenObjectId', message: InspectorNotification): boolean; + emit(event: 'HeapProfiler.heapStatsUpdate', message: InspectorNotification): boolean; + emit(event: 'NodeTracing.dataCollected', message: InspectorNotification): boolean; + emit(event: 'NodeTracing.tracingComplete'): boolean; + emit(event: 'NodeWorker.attachedToWorker', message: InspectorNotification): boolean; + emit(event: 'NodeWorker.detachedFromWorker', message: InspectorNotification): boolean; + emit(event: 'NodeWorker.receivedMessageFromWorker', message: InspectorNotification): boolean; + emit(event: 'Network.requestWillBeSent', message: InspectorNotification): boolean; + emit(event: 'Network.responseReceived', message: InspectorNotification): boolean; + emit(event: 'Network.loadingFailed', message: InspectorNotification): boolean; + emit(event: 'Network.loadingFinished', message: InspectorNotification): boolean; + emit(event: 'NodeRuntime.waitingForDisconnect'): boolean; + emit(event: 'NodeRuntime.waitingForDebugger'): boolean; + on(event: string, listener: (...args: any[]) => void): this; + /** + * Emitted when any notification from the V8 Inspector is received. + */ + on(event: 'inspectorNotification', listener: (message: InspectorNotification) => void): this; + /** + * Issued when new execution context is created. + */ + on(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; + /** + * Issued when execution context is destroyed. + */ + on(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; + /** + * Issued when all executionContexts were cleared in browser + */ + on(event: 'Runtime.executionContextsCleared', listener: () => void): this; + /** + * Issued when exception was thrown and unhandled. + */ + on(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; + /** + * Issued when unhandled exception was revoked. + */ + on(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; + /** + * Issued when console API was called. + */ + on(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; + /** + * Issued when object should be inspected (for example, as a result of inspect() command line API call). + */ + on(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; + /** + * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. + */ + on(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; + /** + * Fired when virtual machine fails to parse the script. + */ + on(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; + /** + * Fired when breakpoint is resolved to an actual script and location. + */ + on(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; + /** + * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. + */ + on(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; + /** + * Fired when the virtual machine resumed execution. + */ + on(event: 'Debugger.resumed', listener: () => void): this; + /** + * Issued when new console message is added. + */ + on(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; + /** + * Sent when new profile recording is started using console.profile() call. + */ + on(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; + on(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; + on(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; + on(event: 'HeapProfiler.resetProfiles', listener: () => void): this; + on(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; + /** + * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. + */ + on(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; + /** + * If heap objects tracking has been started then backend may send update for one or more fragments + */ + on(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; + /** + * Contains an bucket of collected trace events. + */ + on(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; + /** + * Signals that tracing is stopped and there is no trace buffers pending flush, all data were + * delivered via dataCollected events. + */ + on(event: 'NodeTracing.tracingComplete', listener: () => void): this; + /** + * Issued when attached to a worker. + */ + on(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; + /** + * Issued when detached from the worker. + */ + on(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; + /** + * Notifies about a new protocol message received from the session + * (session ID is provided in attachedToWorker notification). + */ + on(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; + /** + * Fired when page is about to send HTTP request. + */ + on(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification) => void): this; + /** + * Fired when HTTP response is available. + */ + on(event: 'Network.responseReceived', listener: (message: InspectorNotification) => void): this; + on(event: 'Network.loadingFailed', listener: (message: InspectorNotification) => void): this; + on(event: 'Network.loadingFinished', listener: (message: InspectorNotification) => void): this; + /** + * This event is fired instead of `Runtime.executionContextDestroyed` when + * enabled. + * It is fired when the Node process finished all code execution and is + * waiting for all frontends to disconnect. + */ + on(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; + /** + * This event is fired when the runtime is waiting for the debugger. For + * example, when inspector.waitingForDebugger is called + */ + on(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this; + once(event: string, listener: (...args: any[]) => void): this; + /** + * Emitted when any notification from the V8 Inspector is received. + */ + once(event: 'inspectorNotification', listener: (message: InspectorNotification) => void): this; + /** + * Issued when new execution context is created. + */ + once(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; + /** + * Issued when execution context is destroyed. + */ + once(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; + /** + * Issued when all executionContexts were cleared in browser + */ + once(event: 'Runtime.executionContextsCleared', listener: () => void): this; + /** + * Issued when exception was thrown and unhandled. + */ + once(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; + /** + * Issued when unhandled exception was revoked. + */ + once(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; + /** + * Issued when console API was called. + */ + once(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; + /** + * Issued when object should be inspected (for example, as a result of inspect() command line API call). + */ + once(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; + /** + * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. + */ + once(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; + /** + * Fired when virtual machine fails to parse the script. + */ + once(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; + /** + * Fired when breakpoint is resolved to an actual script and location. + */ + once(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; + /** + * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. + */ + once(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; + /** + * Fired when the virtual machine resumed execution. + */ + once(event: 'Debugger.resumed', listener: () => void): this; + /** + * Issued when new console message is added. + */ + once(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; + /** + * Sent when new profile recording is started using console.profile() call. + */ + once(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; + once(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; + once(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; + once(event: 'HeapProfiler.resetProfiles', listener: () => void): this; + once(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; + /** + * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. + */ + once(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; + /** + * If heap objects tracking has been started then backend may send update for one or more fragments + */ + once(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; + /** + * Contains an bucket of collected trace events. + */ + once(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; + /** + * Signals that tracing is stopped and there is no trace buffers pending flush, all data were + * delivered via dataCollected events. + */ + once(event: 'NodeTracing.tracingComplete', listener: () => void): this; + /** + * Issued when attached to a worker. + */ + once(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; + /** + * Issued when detached from the worker. + */ + once(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; + /** + * Notifies about a new protocol message received from the session + * (session ID is provided in attachedToWorker notification). + */ + once(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; + /** + * Fired when page is about to send HTTP request. + */ + once(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification) => void): this; + /** + * Fired when HTTP response is available. + */ + once(event: 'Network.responseReceived', listener: (message: InspectorNotification) => void): this; + once(event: 'Network.loadingFailed', listener: (message: InspectorNotification) => void): this; + once(event: 'Network.loadingFinished', listener: (message: InspectorNotification) => void): this; + /** + * This event is fired instead of `Runtime.executionContextDestroyed` when + * enabled. + * It is fired when the Node process finished all code execution and is + * waiting for all frontends to disconnect. + */ + once(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; + /** + * This event is fired when the runtime is waiting for the debugger. For + * example, when inspector.waitingForDebugger is called + */ + once(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this; + prependListener(event: string, listener: (...args: any[]) => void): this; + /** + * Emitted when any notification from the V8 Inspector is received. + */ + prependListener(event: 'inspectorNotification', listener: (message: InspectorNotification) => void): this; + /** + * Issued when new execution context is created. + */ + prependListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; + /** + * Issued when execution context is destroyed. + */ + prependListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; + /** + * Issued when all executionContexts were cleared in browser + */ + prependListener(event: 'Runtime.executionContextsCleared', listener: () => void): this; + /** + * Issued when exception was thrown and unhandled. + */ + prependListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; + /** + * Issued when unhandled exception was revoked. + */ + prependListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; + /** + * Issued when console API was called. + */ + prependListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; + /** + * Issued when object should be inspected (for example, as a result of inspect() command line API call). + */ + prependListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; + /** + * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. + */ + prependListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; + /** + * Fired when virtual machine fails to parse the script. + */ + prependListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; + /** + * Fired when breakpoint is resolved to an actual script and location. + */ + prependListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; + /** + * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. + */ + prependListener(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; + /** + * Fired when the virtual machine resumed execution. + */ + prependListener(event: 'Debugger.resumed', listener: () => void): this; + /** + * Issued when new console message is added. + */ + prependListener(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; + /** + * Sent when new profile recording is started using console.profile() call. + */ + prependListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; + prependListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; + prependListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; + prependListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this; + prependListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; + /** + * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. + */ + prependListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; + /** + * If heap objects tracking has been started then backend may send update for one or more fragments + */ + prependListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; + /** + * Contains an bucket of collected trace events. + */ + prependListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; + /** + * Signals that tracing is stopped and there is no trace buffers pending flush, all data were + * delivered via dataCollected events. + */ + prependListener(event: 'NodeTracing.tracingComplete', listener: () => void): this; + /** + * Issued when attached to a worker. + */ + prependListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; + /** + * Issued when detached from the worker. + */ + prependListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; + /** + * Notifies about a new protocol message received from the session + * (session ID is provided in attachedToWorker notification). + */ + prependListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; + /** + * Fired when page is about to send HTTP request. + */ + prependListener(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification) => void): this; + /** + * Fired when HTTP response is available. + */ + prependListener(event: 'Network.responseReceived', listener: (message: InspectorNotification) => void): this; + prependListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification) => void): this; + prependListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification) => void): this; + /** + * This event is fired instead of `Runtime.executionContextDestroyed` when + * enabled. + * It is fired when the Node process finished all code execution and is + * waiting for all frontends to disconnect. + */ + prependListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; + /** + * This event is fired when the runtime is waiting for the debugger. For + * example, when inspector.waitingForDebugger is called + */ + prependListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this; + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + /** + * Emitted when any notification from the V8 Inspector is received. + */ + prependOnceListener(event: 'inspectorNotification', listener: (message: InspectorNotification) => void): this; + /** + * Issued when new execution context is created. + */ + prependOnceListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; + /** + * Issued when execution context is destroyed. + */ + prependOnceListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; + /** + * Issued when all executionContexts were cleared in browser + */ + prependOnceListener(event: 'Runtime.executionContextsCleared', listener: () => void): this; + /** + * Issued when exception was thrown and unhandled. + */ + prependOnceListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; + /** + * Issued when unhandled exception was revoked. + */ + prependOnceListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; + /** + * Issued when console API was called. + */ + prependOnceListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; + /** + * Issued when object should be inspected (for example, as a result of inspect() command line API call). + */ + prependOnceListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; + /** + * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. + */ + prependOnceListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; + /** + * Fired when virtual machine fails to parse the script. + */ + prependOnceListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; + /** + * Fired when breakpoint is resolved to an actual script and location. + */ + prependOnceListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; + /** + * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. + */ + prependOnceListener(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; + /** + * Fired when the virtual machine resumed execution. + */ + prependOnceListener(event: 'Debugger.resumed', listener: () => void): this; + /** + * Issued when new console message is added. + */ + prependOnceListener(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; + /** + * Sent when new profile recording is started using console.profile() call. + */ + prependOnceListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; + prependOnceListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; + prependOnceListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; + prependOnceListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this; + prependOnceListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; + /** + * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. + */ + prependOnceListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; + /** + * If heap objects tracking has been started then backend may send update for one or more fragments + */ + prependOnceListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; + /** + * Contains an bucket of collected trace events. + */ + prependOnceListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; + /** + * Signals that tracing is stopped and there is no trace buffers pending flush, all data were + * delivered via dataCollected events. + */ + prependOnceListener(event: 'NodeTracing.tracingComplete', listener: () => void): this; + /** + * Issued when attached to a worker. + */ + prependOnceListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; + /** + * Issued when detached from the worker. + */ + prependOnceListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; + /** + * Notifies about a new protocol message received from the session + * (session ID is provided in attachedToWorker notification). + */ + prependOnceListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; + /** + * Fired when page is about to send HTTP request. + */ + prependOnceListener(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification) => void): this; + /** + * Fired when HTTP response is available. + */ + prependOnceListener(event: 'Network.responseReceived', listener: (message: InspectorNotification) => void): this; + prependOnceListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification) => void): this; + prependOnceListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification) => void): this; + /** + * This event is fired instead of `Runtime.executionContextDestroyed` when + * enabled. + * It is fired when the Node process finished all code execution and is + * waiting for all frontends to disconnect. + */ + prependOnceListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; + /** + * This event is fired when the runtime is waiting for the debugger. For + * example, when inspector.waitingForDebugger is called + */ + prependOnceListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this; + } + + export { + Session, + open, + close, + url, + waitForDebugger, + console, + InspectorNotification, + Schema, + Runtime, + Debugger, + Console, + Profiler, + HeapProfiler, + NodeTracing, + NodeWorker, + Network, + NodeRuntime, + }; +} + +/** + * The `node:inspector/promises` module provides an API for interacting with the V8 + * inspector. + * @since v19.0.0 + */ +declare module 'node:inspector/promises' { + export * from 'inspector/promises'; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/module.d.ts b/backend/node_modules/httpx/node_modules/@types/node/module.d.ts new file mode 100644 index 0000000..36b86ff --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/module.d.ts @@ -0,0 +1,539 @@ +/** + * @since v0.3.7 + */ +declare module "module" { + import { URL } from "node:url"; + import { MessagePort } from "node:worker_threads"; + class Module { + constructor(id: string, parent?: Module); + } + interface Module extends NodeJS.Module {} + namespace Module { + export { Module }; + } + namespace Module { + /** + * A list of the names of all modules provided by Node.js. Can be used to verify + * if a module is maintained by a third party or not. + * + * Note: the list doesn't contain prefix-only modules like `node:test`. + * @since v9.3.0, v8.10.0, v6.13.0 + */ + const builtinModules: readonly string[]; + /** + * @since v12.2.0 + * @param path Filename to be used to construct the require + * function. Must be a file URL object, file URL string, or absolute path + * string. + */ + function createRequire(path: string | URL): NodeJS.Require; + /** + * @since v18.6.0, v16.17.0 + */ + function isBuiltin(moduleName: string): boolean; + interface RegisterOptions { + /** + * If you want to resolve `specifier` relative to a + * base URL, such as `import.meta.url`, you can pass that URL here. This + * property is ignored if the `parentURL` is supplied as the second argument. + * @default 'data:' + */ + parentURL?: string | URL | undefined; + /** + * Any arbitrary, cloneable JavaScript value to pass into the + * {@link initialize} hook. + */ + data?: Data | undefined; + /** + * [Transferable objects](https://nodejs.org/docs/latest-v20.x/api/worker_threads.html#portpostmessagevalue-transferlist) + * to be passed into the `initialize` hook. + */ + transferList?: any[] | undefined; + } + /* eslint-disable @definitelytyped/no-unnecessary-generics */ + /** + * Register a module that exports hooks that customize Node.js module + * resolution and loading behavior. See + * [Customization hooks](https://nodejs.org/docs/latest-v20.x/api/module.html#customization-hooks). + * @since v20.6.0, v18.19.0 + * @param specifier Customization hooks to be registered; this should be + * the same string that would be passed to `import()`, except that if it is + * relative, it is resolved relative to `parentURL`. + * @param parentURL f you want to resolve `specifier` relative to a base + * URL, such as `import.meta.url`, you can pass that URL here. + */ + function register( + specifier: string | URL, + parentURL?: string | URL, + options?: RegisterOptions, + ): void; + function register(specifier: string | URL, options?: RegisterOptions): void; + /* eslint-enable @definitelytyped/no-unnecessary-generics */ + /** + * The `module.syncBuiltinESMExports()` method updates all the live bindings for + * builtin `ES Modules` to match the properties of the `CommonJS` exports. It + * does not add or remove exported names from the `ES Modules`. + * + * ```js + * import fs from 'node:fs'; + * import assert from 'node:assert'; + * import { syncBuiltinESMExports } from 'node:module'; + * + * fs.readFile = newAPI; + * + * delete fs.readFileSync; + * + * function newAPI() { + * // ... + * } + * + * fs.newAPI = newAPI; + * + * syncBuiltinESMExports(); + * + * import('node:fs').then((esmFS) => { + * // It syncs the existing readFile property with the new value + * assert.strictEqual(esmFS.readFile, newAPI); + * // readFileSync has been deleted from the required fs + * assert.strictEqual('readFileSync' in fs, false); + * // syncBuiltinESMExports() does not remove readFileSync from esmFS + * assert.strictEqual('readFileSync' in esmFS, true); + * // syncBuiltinESMExports() does not add names + * assert.strictEqual(esmFS.newAPI, undefined); + * }); + * ``` + * @since v12.12.0 + */ + function syncBuiltinESMExports(): void; + /** @deprecated Use `ImportAttributes` instead */ + interface ImportAssertions extends ImportAttributes {} + interface ImportAttributes extends NodeJS.Dict { + type?: string | undefined; + } + type ModuleFormat = "builtin" | "commonjs" | "json" | "module" | "wasm"; + type ModuleSource = string | ArrayBuffer | NodeJS.TypedArray; + /** + * The `initialize` hook provides a way to define a custom function that runs in + * the hooks thread when the hooks module is initialized. Initialization happens + * when the hooks module is registered via {@link register}. + * + * This hook can receive data from a {@link register} invocation, including + * ports and other transferable objects. The return value of `initialize` can be a + * `Promise`, in which case it will be awaited before the main application thread + * execution resumes. + */ + type InitializeHook = (data: Data) => void | Promise; + interface ResolveHookContext { + /** + * Export conditions of the relevant `package.json` + */ + conditions: string[]; + /** + * @deprecated Use `importAttributes` instead + */ + importAssertions: ImportAttributes; + /** + * An object whose key-value pairs represent the assertions for the module to import + */ + importAttributes: ImportAttributes; + /** + * The module importing this one, or undefined if this is the Node.js entry point + */ + parentURL: string | undefined; + } + interface ResolveFnOutput { + /** + * A hint to the load hook (it might be ignored) + */ + format?: ModuleFormat | null | undefined; + /** + * @deprecated Use `importAttributes` instead + */ + importAssertions?: ImportAttributes | undefined; + /** + * The import attributes to use when caching the module (optional; if excluded the input will be used) + */ + importAttributes?: ImportAttributes | undefined; + /** + * A signal that this hook intends to terminate the chain of `resolve` hooks. + * @default false + */ + shortCircuit?: boolean | undefined; + /** + * The absolute URL to which this input resolves + */ + url: string; + } + /** + * The `resolve` hook chain is responsible for telling Node.js where to find and + * how to cache a given `import` statement or expression, or `require` call. It can + * optionally return a format (such as `'module'`) as a hint to the `load` hook. If + * a format is specified, the `load` hook is ultimately responsible for providing + * the final `format` value (and it is free to ignore the hint provided by + * `resolve`); if `resolve` provides a `format`, a custom `load` hook is required + * even if only to pass the value to the Node.js default `load` hook. + */ + type ResolveHook = ( + specifier: string, + context: ResolveHookContext, + nextResolve: ( + specifier: string, + context?: Partial, + ) => ResolveFnOutput | Promise, + ) => ResolveFnOutput | Promise; + interface LoadHookContext { + /** + * Export conditions of the relevant `package.json` + */ + conditions: string[]; + /** + * The format optionally supplied by the `resolve` hook chain + */ + format: ModuleFormat | null | undefined; + /** + * @deprecated Use `importAttributes` instead + */ + importAssertions: ImportAttributes; + /** + * An object whose key-value pairs represent the assertions for the module to import + */ + importAttributes: ImportAttributes; + } + interface LoadFnOutput { + format: string | null | undefined; + /** + * A signal that this hook intends to terminate the chain of `resolve` hooks. + * @default false + */ + shortCircuit?: boolean | undefined; + /** + * The source for Node.js to evaluate + */ + source?: ModuleSource | undefined; + } + /** + * The `load` hook provides a way to define a custom method of determining how a + * URL should be interpreted, retrieved, and parsed. It is also in charge of + * validating the import attributes. + */ + type LoadHook = ( + url: string, + context: LoadHookContext, + nextLoad: ( + url: string, + context?: Partial, + ) => LoadFnOutput | Promise, + ) => LoadFnOutput | Promise; + interface GlobalPreloadContext { + port: MessagePort; + } + /** + * Sometimes it might be necessary to run some code inside of the same global + * scope that the application runs in. This hook allows the return of a string + * that is run as a sloppy-mode script on startup. + * @deprecated This hook will be removed in a future version. Use + * `initialize` instead. When a hooks module has an `initialize` export, + * `globalPreload` will be ignored. + */ + type GlobalPreloadHook = (context: GlobalPreloadContext) => string; + /** + * `path` is the resolved path for the file for which a corresponding source map + * should be fetched. + * @since v13.7.0, v12.17.0 + * @return Returns `module.SourceMap` if a source map is found, `undefined` otherwise. + */ + function findSourceMap(path: string): SourceMap | undefined; + interface SourceMapConstructorOptions { + /** + * @since v20.5.0 + */ + lineLengths?: readonly number[] | undefined; + } + interface SourceMapPayload { + file: string; + version: number; + sources: string[]; + sourcesContent: string[]; + names: string[]; + mappings: string; + sourceRoot: string; + } + interface SourceMapping { + generatedLine: number; + generatedColumn: number; + originalSource: string; + originalLine: number; + originalColumn: number; + } + interface SourceOrigin { + /** + * The name of the range in the source map, if one was provided + */ + name: string | undefined; + /** + * The file name of the original source, as reported in the SourceMap + */ + fileName: string; + /** + * The 1-indexed lineNumber of the corresponding call site in the original source + */ + lineNumber: number; + /** + * The 1-indexed columnNumber of the corresponding call site in the original source + */ + columnNumber: number; + } + /** + * @since v13.7.0, v12.17.0 + */ + class SourceMap { + constructor(payload: SourceMapPayload, options?: SourceMapConstructorOptions); + /** + * Getter for the payload used to construct the `SourceMap` instance. + */ + readonly payload: SourceMapPayload; + /** + * Given a line offset and column offset in the generated source + * file, returns an object representing the SourceMap range in the + * original file if found, or an empty object if not. + * + * The object returned contains the following keys: + * + * The returned value represents the raw range as it appears in the + * SourceMap, based on zero-indexed offsets, _not_ 1-indexed line and + * column numbers as they appear in Error messages and CallSite + * objects. + * + * To get the corresponding 1-indexed line and column numbers from a + * lineNumber and columnNumber as they are reported by Error stacks + * and CallSite objects, use `sourceMap.findOrigin(lineNumber, columnNumber)` + * @param lineOffset The zero-indexed line number offset in the generated source + * @param columnOffset The zero-indexed column number offset in the generated source + */ + findEntry(lineOffset: number, columnOffset: number): SourceMapping | {}; + /** + * Given a 1-indexed `lineNumber` and `columnNumber` from a call site in the generated source, + * find the corresponding call site location in the original source. + * + * If the `lineNumber` and `columnNumber` provided are not found in any source map, + * then an empty object is returned. + * @param lineNumber The 1-indexed line number of the call site in the generated source + * @param columnNumber The 1-indexed column number of the call site in the generated source + */ + findOrigin(lineNumber: number, columnNumber: number): SourceOrigin | {}; + } + function runMain(main?: string): void; + function wrap(script: string): string; + } + global { + interface ImportMeta { + /** + * The directory name of the current module. This is the same as the `path.dirname()` of the `import.meta.filename`. + * **Caveat:** only present on `file:` modules. + */ + dirname: string; + /** + * The full absolute path and filename of the current module, with symlinks resolved. + * This is the same as the `url.fileURLToPath()` of the `import.meta.url`. + * **Caveat:** only local modules support this property. Modules not using the `file:` protocol will not provide it. + */ + filename: string; + /** + * The absolute `file:` URL of the module. + */ + url: string; + /** + * Provides a module-relative resolution function scoped to each module, returning + * the URL string. + * + * Second `parent` parameter is only used when the `--experimental-import-meta-resolve` + * command flag enabled. + * + * @since v20.6.0 + * + * @param specifier The module specifier to resolve relative to `parent`. + * @param parent The absolute parent module URL to resolve from. + * @returns The absolute (`file:`) URL string for the resolved module. + */ + resolve(specifier: string, parent?: string | URL | undefined): string; + } + namespace NodeJS { + interface Module { + /** + * The module objects required for the first time by this one. + * @since v0.1.16 + */ + children: Module[]; + /** + * The `module.exports` object is created by the `Module` system. Sometimes this is + * not acceptable; many want their module to be an instance of some class. To do + * this, assign the desired export object to `module.exports`. + * @since v0.1.16 + */ + exports: any; + /** + * The fully resolved filename of the module. + * @since v0.1.16 + */ + filename: string; + /** + * The identifier for the module. Typically this is the fully resolved + * filename. + * @since v0.1.16 + */ + id: string; + /** + * `true` if the module is running during the Node.js preload + * phase. + * @since v15.4.0, v14.17.0 + */ + isPreloading: boolean; + /** + * Whether or not the module is done loading, or is in the process of + * loading. + * @since v0.1.16 + */ + loaded: boolean; + /** + * The module that first required this one, or `null` if the current module is the + * entry point of the current process, or `undefined` if the module was loaded by + * something that is not a CommonJS module (e.g. REPL or `import`). + * @since v0.1.16 + * @deprecated Please use `require.main` and `module.children` instead. + */ + parent: Module | null | undefined; + /** + * The directory name of the module. This is usually the same as the + * `path.dirname()` of the `module.id`. + * @since v11.14.0 + */ + path: string; + /** + * The search paths for the module. + * @since v0.4.0 + */ + paths: string[]; + /** + * The `module.require()` method provides a way to load a module as if + * `require()` was called from the original module. + * @since v0.5.1 + */ + require(id: string): any; + } + interface Require { + /** + * Used to import modules, `JSON`, and local files. + * @since v0.1.13 + */ + (id: string): any; + /** + * Modules are cached in this object when they are required. By deleting a key + * value from this object, the next `require` will reload the module. + * This does not apply to + * [native addons](https://nodejs.org/docs/latest-v20.x/api/addons.html), + * for which reloading will result in an error. + * @since v0.3.0 + */ + cache: Dict; + /** + * Instruct `require` on how to handle certain file extensions. + * @since v0.3.0 + * @deprecated + */ + extensions: RequireExtensions; + /** + * The `Module` object representing the entry script loaded when the Node.js + * process launched, or `undefined` if the entry point of the program is not a + * CommonJS module. + * @since v0.1.17 + */ + main: Module | undefined; + /** + * @since v0.3.0 + */ + resolve: RequireResolve; + } + /** @deprecated */ + interface RequireExtensions extends Dict<(module: Module, filename: string) => any> { + ".js": (module: Module, filename: string) => any; + ".json": (module: Module, filename: string) => any; + ".node": (module: Module, filename: string) => any; + } + interface RequireResolveOptions { + /** + * Paths to resolve module location from. If present, these + * paths are used instead of the default resolution paths, with the exception + * of + * [GLOBAL\_FOLDERS](https://nodejs.org/docs/latest-v20.x/api/modules.html#loading-from-the-global-folders) + * like `$HOME/.node_modules`, which are + * always included. Each of these paths is used as a starting point for + * the module resolution algorithm, meaning that the `node_modules` hierarchy + * is checked from this location. + * @since v8.9.0 + */ + paths?: string[] | undefined; + } + interface RequireResolve { + /** + * Use the internal `require()` machinery to look up the location of a module, + * but rather than loading the module, just return the resolved filename. + * + * If the module can not be found, a `MODULE_NOT_FOUND` error is thrown. + * @since v0.3.0 + * @param request The module path to resolve. + */ + (id: string, options?: RequireResolveOptions): string; + /** + * Returns an array containing the paths searched during resolution of `request` or + * `null` if the `request` string references a core module, for example `http` or + * `fs`. + * @since v8.9.0 + * @param request The module path whose lookup paths are being retrieved. + */ + paths(request: string): string[] | null; + } + } + /** + * The directory name of the current module. This is the same as the + * `path.dirname()` of the `__filename`. + * @since v0.1.27 + */ + var __dirname: string; + /** + * The file name of the current module. This is the current module file's absolute + * path with symlinks resolved. + * + * For a main program this is not necessarily the same as the file name used in the + * command line. + * @since v0.0.1 + */ + var __filename: string; + /** + * The `exports` variable is available within a module's file-level scope, and is + * assigned the value of `module.exports` before the module is evaluated. + * @since v0.1.16 + */ + var exports: NodeJS.Module["exports"]; + /** + * A reference to the current module. + * @since v0.1.16 + */ + var module: NodeJS.Module; + /** + * @since v0.1.13 + */ + var require: NodeJS.Require; + // Global-scope aliases for backwards compatibility with @types/node <13.0.x + /** @deprecated Use `NodeJS.Module` instead. */ + interface NodeModule extends NodeJS.Module {} + /** @deprecated Use `NodeJS.Require` instead. */ + interface NodeRequire extends NodeJS.Require {} + /** @deprecated Use `NodeJS.RequireResolve` instead. */ + interface RequireResolve extends NodeJS.RequireResolve {} + } + export = Module; +} +declare module "node:module" { + import module = require("module"); + export = module; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/net.d.ts b/backend/node_modules/httpx/node_modules/@types/node/net.d.ts new file mode 100644 index 0000000..0689472 --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/net.d.ts @@ -0,0 +1,1012 @@ +/** + * > Stability: 2 - Stable + * + * The `node:net` module provides an asynchronous network API for creating stream-based + * TCP or `IPC` servers ({@link createServer}) and clients + * ({@link createConnection}). + * + * It can be accessed using: + * + * ```js + * import net from 'node:net'; + * ``` + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/net.js) + */ +declare module "net" { + import { NonSharedBuffer } from "node:buffer"; + import * as stream from "node:stream"; + import { Abortable, EventEmitter } from "node:events"; + import * as dns from "node:dns"; + type LookupFunction = ( + hostname: string, + options: dns.LookupOptions, + callback: (err: NodeJS.ErrnoException | null, address: string | dns.LookupAddress[], family?: number) => void, + ) => void; + interface AddressInfo { + address: string; + family: string; + port: number; + } + interface SocketConstructorOpts { + fd?: number | undefined; + allowHalfOpen?: boolean | undefined; + readable?: boolean | undefined; + writable?: boolean | undefined; + signal?: AbortSignal | undefined; + } + interface OnReadOpts { + buffer: Uint8Array | (() => Uint8Array); + /** + * This function is called for every chunk of incoming data. + * Two arguments are passed to it: the number of bytes written to buffer and a reference to buffer. + * Return false from this function to implicitly pause() the socket. + */ + callback(bytesWritten: number, buf: Uint8Array): boolean; + } + interface ConnectOpts { + /** + * If specified, incoming data is stored in a single buffer and passed to the supplied callback when data arrives on the socket. + * Note: this will cause the streaming functionality to not provide any data, however events like 'error', 'end', and 'close' will + * still be emitted as normal and methods like pause() and resume() will also behave as expected. + */ + onread?: OnReadOpts | undefined; + } + interface TcpSocketConnectOpts extends ConnectOpts { + port: number; + host?: string | undefined; + localAddress?: string | undefined; + localPort?: number | undefined; + hints?: number | undefined; + family?: number | undefined; + lookup?: LookupFunction | undefined; + noDelay?: boolean | undefined; + keepAlive?: boolean | undefined; + keepAliveInitialDelay?: number | undefined; + /** + * @since v18.13.0 + */ + autoSelectFamily?: boolean | undefined; + /** + * @since v18.13.0 + */ + autoSelectFamilyAttemptTimeout?: number | undefined; + } + interface IpcSocketConnectOpts extends ConnectOpts { + path: string; + } + type SocketConnectOpts = TcpSocketConnectOpts | IpcSocketConnectOpts; + type SocketReadyState = "opening" | "open" | "readOnly" | "writeOnly" | "closed"; + /** + * This class is an abstraction of a TCP socket or a streaming `IPC` endpoint + * (uses named pipes on Windows, and Unix domain sockets otherwise). It is also + * an `EventEmitter`. + * + * A `net.Socket` can be created by the user and used directly to interact with + * a server. For example, it is returned by {@link createConnection}, + * so the user can use it to talk to the server. + * + * It can also be created by Node.js and passed to the user when a connection + * is received. For example, it is passed to the listeners of a `'connection'` event emitted on a {@link Server}, so the user can use + * it to interact with the client. + * @since v0.3.4 + */ + class Socket extends stream.Duplex { + constructor(options?: SocketConstructorOpts); + /** + * Destroys the socket after all data is written. If the `finish` event was already emitted the socket is destroyed immediately. + * If the socket is still writable it implicitly calls `socket.end()`. + * @since v0.3.4 + */ + destroySoon(): void; + /** + * Sends data on the socket. The second parameter specifies the encoding in the + * case of a string. It defaults to UTF8 encoding. + * + * Returns `true` if the entire data was flushed successfully to the kernel + * buffer. Returns `false` if all or part of the data was queued in user memory.`'drain'` will be emitted when the buffer is again free. + * + * The optional `callback` parameter will be executed when the data is finally + * written out, which may not be immediately. + * + * See `Writable` stream `write()` method for more + * information. + * @since v0.1.90 + * @param [encoding='utf8'] Only used when data is `string`. + */ + write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean; + write(str: Uint8Array | string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean; + /** + * Initiate a connection on a given socket. + * + * Possible signatures: + * + * * `socket.connect(options[, connectListener])` + * * `socket.connect(path[, connectListener])` for `IPC` connections. + * * `socket.connect(port[, host][, connectListener])` for TCP connections. + * * Returns: `net.Socket` The socket itself. + * + * This function is asynchronous. When the connection is established, the `'connect'` event will be emitted. If there is a problem connecting, + * instead of a `'connect'` event, an `'error'` event will be emitted with + * the error passed to the `'error'` listener. + * The last parameter `connectListener`, if supplied, will be added as a listener + * for the `'connect'` event **once**. + * + * This function should only be used for reconnecting a socket after`'close'` has been emitted or otherwise it may lead to undefined + * behavior. + */ + connect(options: SocketConnectOpts, connectionListener?: () => void): this; + connect(port: number, host: string, connectionListener?: () => void): this; + connect(port: number, connectionListener?: () => void): this; + connect(path: string, connectionListener?: () => void): this; + /** + * Set the encoding for the socket as a `Readable Stream`. See `readable.setEncoding()` for more information. + * @since v0.1.90 + * @return The socket itself. + */ + setEncoding(encoding?: BufferEncoding): this; + /** + * Pauses the reading of data. That is, `'data'` events will not be emitted. + * Useful to throttle back an upload. + * @return The socket itself. + */ + pause(): this; + /** + * Close the TCP connection by sending an RST packet and destroy the stream. + * If this TCP socket is in connecting status, it will send an RST packet and destroy this TCP socket once it is connected. + * Otherwise, it will call `socket.destroy` with an `ERR_SOCKET_CLOSED` Error. + * If this is not a TCP socket (for example, a pipe), calling this method will immediately throw an `ERR_INVALID_HANDLE_TYPE` Error. + * @since v18.3.0, v16.17.0 + */ + resetAndDestroy(): this; + /** + * Resumes reading after a call to `socket.pause()`. + * @return The socket itself. + */ + resume(): this; + /** + * Sets the socket to timeout after `timeout` milliseconds of inactivity on + * the socket. By default `net.Socket` do not have a timeout. + * + * When an idle timeout is triggered the socket will receive a `'timeout'` event but the connection will not be severed. The user must manually call `socket.end()` or `socket.destroy()` to + * end the connection. + * + * ```js + * socket.setTimeout(3000); + * socket.on('timeout', () => { + * console.log('socket timeout'); + * socket.end(); + * }); + * ``` + * + * If `timeout` is 0, then the existing idle timeout is disabled. + * + * The optional `callback` parameter will be added as a one-time listener for the `'timeout'` event. + * @since v0.1.90 + * @return The socket itself. + */ + setTimeout(timeout: number, callback?: () => void): this; + /** + * Enable/disable the use of Nagle's algorithm. + * + * When a TCP connection is created, it will have Nagle's algorithm enabled. + * + * Nagle's algorithm delays data before it is sent via the network. It attempts + * to optimize throughput at the expense of latency. + * + * Passing `true` for `noDelay` or not passing an argument will disable Nagle's + * algorithm for the socket. Passing `false` for `noDelay` will enable Nagle's + * algorithm. + * @since v0.1.90 + * @param [noDelay=true] + * @return The socket itself. + */ + setNoDelay(noDelay?: boolean): this; + /** + * Enable/disable keep-alive functionality, and optionally set the initial + * delay before the first keepalive probe is sent on an idle socket. + * + * Set `initialDelay` (in milliseconds) to set the delay between the last + * data packet received and the first keepalive probe. Setting `0` for`initialDelay` will leave the value unchanged from the default + * (or previous) setting. + * + * Enabling the keep-alive functionality will set the following socket options: + * + * * `SO_KEEPALIVE=1` + * * `TCP_KEEPIDLE=initialDelay` + * * `TCP_KEEPCNT=10` + * * `TCP_KEEPINTVL=1` + * @since v0.1.92 + * @param [enable=false] + * @param [initialDelay=0] + * @return The socket itself. + */ + setKeepAlive(enable?: boolean, initialDelay?: number): this; + /** + * Returns the bound `address`, the address `family` name and `port` of the + * socket as reported by the operating system:`{ port: 12346, family: 'IPv4', address: '127.0.0.1' }` + * @since v0.1.90 + */ + address(): AddressInfo | {}; + /** + * Calling `unref()` on a socket will allow the program to exit if this is the only + * active socket in the event system. If the socket is already `unref`ed calling`unref()` again will have no effect. + * @since v0.9.1 + * @return The socket itself. + */ + unref(): this; + /** + * Opposite of `unref()`, calling `ref()` on a previously `unref`ed socket will _not_ let the program exit if it's the only socket left (the default behavior). + * If the socket is `ref`ed calling `ref` again will have no effect. + * @since v0.9.1 + * @return The socket itself. + */ + ref(): this; + /** + * This property is only present if the family autoselection algorithm is enabled in `socket.connect(options)` + * and it is an array of the addresses that have been attempted. + * + * Each address is a string in the form of `$IP:$PORT`. + * If the connection was successful, then the last address is the one that the socket is currently connected to. + * @since v19.4.0 + */ + readonly autoSelectFamilyAttemptedAddresses: string[]; + /** + * This property shows the number of characters buffered for writing. The buffer + * may contain strings whose length after encoding is not yet known. So this number + * is only an approximation of the number of bytes in the buffer. + * + * `net.Socket` has the property that `socket.write()` always works. This is to + * help users get up and running quickly. The computer cannot always keep up + * with the amount of data that is written to a socket. The network connection + * simply might be too slow. Node.js will internally queue up the data written to a + * socket and send it out over the wire when it is possible. + * + * The consequence of this internal buffering is that memory may grow. + * Users who experience large or growing `bufferSize` should attempt to + * "throttle" the data flows in their program with `socket.pause()` and `socket.resume()`. + * @since v0.3.8 + * @deprecated Since v14.6.0 - Use `writableLength` instead. + */ + readonly bufferSize: number; + /** + * The amount of received bytes. + * @since v0.5.3 + */ + readonly bytesRead: number; + /** + * The amount of bytes sent. + * @since v0.5.3 + */ + readonly bytesWritten: number; + /** + * If `true`, `socket.connect(options[, connectListener])` was + * called and has not yet finished. It will stay `true` until the socket becomes + * connected, then it is set to `false` and the `'connect'` event is emitted. Note + * that the `socket.connect(options[, connectListener])` callback is a listener for the `'connect'` event. + * @since v6.1.0 + */ + readonly connecting: boolean; + /** + * This is `true` if the socket is not connected yet, either because `.connect()`has not yet been called or because it is still in the process of connecting + * (see `socket.connecting`). + * @since v11.2.0, v10.16.0 + */ + readonly pending: boolean; + /** + * See `writable.destroyed` for further details. + */ + readonly destroyed: boolean; + /** + * The string representation of the local IP address the remote client is + * connecting on. For example, in a server listening on `'0.0.0.0'`, if a client + * connects on `'192.168.1.1'`, the value of `socket.localAddress` would be`'192.168.1.1'`. + * @since v0.9.6 + */ + readonly localAddress?: string; + /** + * The numeric representation of the local port. For example, `80` or `21`. + * @since v0.9.6 + */ + readonly localPort?: number; + /** + * The string representation of the local IP family. `'IPv4'` or `'IPv6'`. + * @since v18.8.0, v16.18.0 + */ + readonly localFamily?: string; + /** + * This property represents the state of the connection as a string. + * + * * If the stream is connecting `socket.readyState` is `opening`. + * * If the stream is readable and writable, it is `open`. + * * If the stream is readable and not writable, it is `readOnly`. + * * If the stream is not readable and writable, it is `writeOnly`. + * @since v0.5.0 + */ + readonly readyState: SocketReadyState; + /** + * The string representation of the remote IP address. For example,`'74.125.127.100'` or `'2001:4860:a005::68'`. Value may be `undefined` if + * the socket is destroyed (for example, if the client disconnected). + * @since v0.5.10 + */ + readonly remoteAddress: string | undefined; + /** + * The string representation of the remote IP family. `'IPv4'` or `'IPv6'`. Value may be `undefined` if + * the socket is destroyed (for example, if the client disconnected). + * @since v0.11.14 + */ + readonly remoteFamily: string | undefined; + /** + * The numeric representation of the remote port. For example, `80` or `21`. Value may be `undefined` if + * the socket is destroyed (for example, if the client disconnected). + * @since v0.5.10 + */ + readonly remotePort: number | undefined; + /** + * The socket timeout in milliseconds as set by `socket.setTimeout()`. + * It is `undefined` if a timeout has not been set. + * @since v10.7.0 + */ + readonly timeout?: number; + /** + * Half-closes the socket. i.e., it sends a FIN packet. It is possible the + * server will still send some data. + * + * See `writable.end()` for further details. + * @since v0.1.90 + * @param [encoding='utf8'] Only used when data is `string`. + * @param callback Optional callback for when the socket is finished. + * @return The socket itself. + */ + end(callback?: () => void): this; + end(buffer: Uint8Array | string, callback?: () => void): this; + end(str: Uint8Array | string, encoding?: BufferEncoding, callback?: () => void): this; + /** + * events.EventEmitter + * 1. close + * 2. connect + * 3. connectionAttempt + * 4. connectionAttemptFailed + * 5. connectionAttemptTimeout + * 6. data + * 7. drain + * 8. end + * 9. error + * 10. lookup + * 11. ready + * 12. timeout + */ + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: "close", listener: (hadError: boolean) => void): this; + addListener(event: "connect", listener: () => void): this; + addListener(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this; + addListener( + event: "connectionAttemptFailed", + listener: (ip: string, port: number, family: number, error: Error) => void, + ): this; + addListener( + event: "connectionAttemptTimeout", + listener: (ip: string, port: number, family: number) => void, + ): this; + addListener(event: "data", listener: (data: NonSharedBuffer) => void): this; + addListener(event: "drain", listener: () => void): this; + addListener(event: "end", listener: () => void): this; + addListener(event: "error", listener: (err: Error) => void): this; + addListener( + event: "lookup", + listener: (err: Error, address: string, family: string | number, host: string) => void, + ): this; + addListener(event: "ready", listener: () => void): this; + addListener(event: "timeout", listener: () => void): this; + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: "close", hadError: boolean): boolean; + emit(event: "connect"): boolean; + emit(event: "connectionAttempt", ip: string, port: number, family: number): boolean; + emit(event: "connectionAttemptFailed", ip: string, port: number, family: number, error: Error): boolean; + emit(event: "connectionAttemptTimeout", ip: string, port: number, family: number): boolean; + emit(event: "data", data: NonSharedBuffer): boolean; + emit(event: "drain"): boolean; + emit(event: "end"): boolean; + emit(event: "error", err: Error): boolean; + emit(event: "lookup", err: Error, address: string, family: string | number, host: string): boolean; + emit(event: "ready"): boolean; + emit(event: "timeout"): boolean; + on(event: string, listener: (...args: any[]) => void): this; + on(event: "close", listener: (hadError: boolean) => void): this; + on(event: "connect", listener: () => void): this; + on(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this; + on( + event: "connectionAttemptFailed", + listener: (ip: string, port: number, family: number, error: Error) => void, + ): this; + on(event: "connectionAttemptTimeout", listener: (ip: string, port: number, family: number) => void): this; + on(event: "data", listener: (data: NonSharedBuffer) => void): this; + on(event: "drain", listener: () => void): this; + on(event: "end", listener: () => void): this; + on(event: "error", listener: (err: Error) => void): this; + on( + event: "lookup", + listener: (err: Error, address: string, family: string | number, host: string) => void, + ): this; + on(event: "ready", listener: () => void): this; + on(event: "timeout", listener: () => void): this; + once(event: string, listener: (...args: any[]) => void): this; + once(event: "close", listener: (hadError: boolean) => void): this; + once(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this; + once( + event: "connectionAttemptFailed", + listener: (ip: string, port: number, family: number, error: Error) => void, + ): this; + once(event: "connectionAttemptTimeout", listener: (ip: string, port: number, family: number) => void): this; + once(event: "connect", listener: () => void): this; + once(event: "data", listener: (data: NonSharedBuffer) => void): this; + once(event: "drain", listener: () => void): this; + once(event: "end", listener: () => void): this; + once(event: "error", listener: (err: Error) => void): this; + once( + event: "lookup", + listener: (err: Error, address: string, family: string | number, host: string) => void, + ): this; + once(event: "ready", listener: () => void): this; + once(event: "timeout", listener: () => void): this; + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: "close", listener: (hadError: boolean) => void): this; + prependListener(event: "connect", listener: () => void): this; + prependListener(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this; + prependListener( + event: "connectionAttemptFailed", + listener: (ip: string, port: number, family: number, error: Error) => void, + ): this; + prependListener( + event: "connectionAttemptTimeout", + listener: (ip: string, port: number, family: number) => void, + ): this; + prependListener(event: "data", listener: (data: NonSharedBuffer) => void): this; + prependListener(event: "drain", listener: () => void): this; + prependListener(event: "end", listener: () => void): this; + prependListener(event: "error", listener: (err: Error) => void): this; + prependListener( + event: "lookup", + listener: (err: Error, address: string, family: string | number, host: string) => void, + ): this; + prependListener(event: "ready", listener: () => void): this; + prependListener(event: "timeout", listener: () => void): this; + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: "close", listener: (hadError: boolean) => void): this; + prependOnceListener(event: "connect", listener: () => void): this; + prependOnceListener( + event: "connectionAttempt", + listener: (ip: string, port: number, family: number) => void, + ): this; + prependOnceListener( + event: "connectionAttemptFailed", + listener: (ip: string, port: number, family: number, error: Error) => void, + ): this; + prependOnceListener( + event: "connectionAttemptTimeout", + listener: (ip: string, port: number, family: number) => void, + ): this; + prependOnceListener(event: "data", listener: (data: NonSharedBuffer) => void): this; + prependOnceListener(event: "drain", listener: () => void): this; + prependOnceListener(event: "end", listener: () => void): this; + prependOnceListener(event: "error", listener: (err: Error) => void): this; + prependOnceListener( + event: "lookup", + listener: (err: Error, address: string, family: string | number, host: string) => void, + ): this; + prependOnceListener(event: "ready", listener: () => void): this; + prependOnceListener(event: "timeout", listener: () => void): this; + } + interface ListenOptions extends Abortable { + port?: number | undefined; + host?: string | undefined; + backlog?: number | undefined; + path?: string | undefined; + exclusive?: boolean | undefined; + readableAll?: boolean | undefined; + writableAll?: boolean | undefined; + /** + * @default false + */ + ipv6Only?: boolean | undefined; + } + interface ServerOpts { + /** + * Indicates whether half-opened TCP connections are allowed. + * @default false + */ + allowHalfOpen?: boolean | undefined; + /** + * Indicates whether the socket should be paused on incoming connections. + * @default false + */ + pauseOnConnect?: boolean | undefined; + /** + * If set to `true`, it disables the use of Nagle's algorithm immediately after a new incoming connection is received. + * @default false + * @since v16.5.0 + */ + noDelay?: boolean | undefined; + /** + * If set to `true`, it enables keep-alive functionality on the socket immediately after a new incoming connection is received, + * similarly on what is done in `socket.setKeepAlive([enable][, initialDelay])`. + * @default false + * @since v16.5.0 + */ + keepAlive?: boolean | undefined; + /** + * If set to a positive number, it sets the initial delay before the first keepalive probe is sent on an idle socket. + * @default 0 + * @since v16.5.0 + */ + keepAliveInitialDelay?: number | undefined; + /** + * Optionally overrides all `net.Socket`s' `readableHighWaterMark` and `writableHighWaterMark`. + * @default See [stream.getDefaultHighWaterMark()](https://nodejs.org/docs/latest-v20.x/api/stream.html#streamgetdefaulthighwatermarkobjectmode). + * @since v18.17.0, v20.1.0 + */ + highWaterMark?: number | undefined; + } + interface DropArgument { + localAddress?: string; + localPort?: number; + localFamily?: string; + remoteAddress?: string; + remotePort?: number; + remoteFamily?: string; + } + /** + * This class is used to create a TCP or `IPC` server. + * @since v0.1.90 + */ + class Server extends EventEmitter { + constructor(connectionListener?: (socket: Socket) => void); + constructor(options?: ServerOpts, connectionListener?: (socket: Socket) => void); + /** + * Start a server listening for connections. A `net.Server` can be a TCP or + * an `IPC` server depending on what it listens to. + * + * Possible signatures: + * + * * `server.listen(handle[, backlog][, callback])` + * * `server.listen(options[, callback])` + * * `server.listen(path[, backlog][, callback])` for `IPC` servers + * * `server.listen([port[, host[, backlog]]][, callback])` for TCP servers + * + * This function is asynchronous. When the server starts listening, the `'listening'` event will be emitted. The last parameter `callback`will be added as a listener for the `'listening'` + * event. + * + * All `listen()` methods can take a `backlog` parameter to specify the maximum + * length of the queue of pending connections. The actual length will be determined + * by the OS through sysctl settings such as `tcp_max_syn_backlog` and `somaxconn` on Linux. The default value of this parameter is 511 (not 512). + * + * All {@link Socket} are set to `SO_REUSEADDR` (see [`socket(7)`](https://man7.org/linux/man-pages/man7/socket.7.html) for + * details). + * + * The `server.listen()` method can be called again if and only if there was an + * error during the first `server.listen()` call or `server.close()` has been + * called. Otherwise, an `ERR_SERVER_ALREADY_LISTEN` error will be thrown. + * + * One of the most common errors raised when listening is `EADDRINUSE`. + * This happens when another server is already listening on the requested`port`/`path`/`handle`. One way to handle this would be to retry + * after a certain amount of time: + * + * ```js + * server.on('error', (e) => { + * if (e.code === 'EADDRINUSE') { + * console.error('Address in use, retrying...'); + * setTimeout(() => { + * server.close(); + * server.listen(PORT, HOST); + * }, 1000); + * } + * }); + * ``` + */ + listen(port?: number, hostname?: string, backlog?: number, listeningListener?: () => void): this; + listen(port?: number, hostname?: string, listeningListener?: () => void): this; + listen(port?: number, backlog?: number, listeningListener?: () => void): this; + listen(port?: number, listeningListener?: () => void): this; + listen(path: string, backlog?: number, listeningListener?: () => void): this; + listen(path: string, listeningListener?: () => void): this; + listen(options: ListenOptions, listeningListener?: () => void): this; + listen(handle: any, backlog?: number, listeningListener?: () => void): this; + listen(handle: any, listeningListener?: () => void): this; + /** + * Stops the server from accepting new connections and keeps existing + * connections. This function is asynchronous, the server is finally closed + * when all connections are ended and the server emits a `'close'` event. + * The optional `callback` will be called once the `'close'` event occurs. Unlike + * that event, it will be called with an `Error` as its only argument if the server + * was not open when it was closed. + * @since v0.1.90 + * @param callback Called when the server is closed. + */ + close(callback?: (err?: Error) => void): this; + /** + * Returns the bound `address`, the address `family` name, and `port` of the server + * as reported by the operating system if listening on an IP socket + * (useful to find which port was assigned when getting an OS-assigned address):`{ port: 12346, family: 'IPv4', address: '127.0.0.1' }`. + * + * For a server listening on a pipe or Unix domain socket, the name is returned + * as a string. + * + * ```js + * const server = net.createServer((socket) => { + * socket.end('goodbye\n'); + * }).on('error', (err) => { + * // Handle errors here. + * throw err; + * }); + * + * // Grab an arbitrary unused port. + * server.listen(() => { + * console.log('opened server on', server.address()); + * }); + * ``` + * + * `server.address()` returns `null` before the `'listening'` event has been + * emitted or after calling `server.close()`. + * @since v0.1.90 + */ + address(): AddressInfo | string | null; + /** + * Asynchronously get the number of concurrent connections on the server. Works + * when sockets were sent to forks. + * + * Callback should take two arguments `err` and `count`. + * @since v0.9.7 + */ + getConnections(cb: (error: Error | null, count: number) => void): this; + /** + * Opposite of `unref()`, calling `ref()` on a previously `unref`ed server will _not_ let the program exit if it's the only server left (the default behavior). + * If the server is `ref`ed calling `ref()` again will have no effect. + * @since v0.9.1 + */ + ref(): this; + /** + * Calling `unref()` on a server will allow the program to exit if this is the only + * active server in the event system. If the server is already `unref`ed calling`unref()` again will have no effect. + * @since v0.9.1 + */ + unref(): this; + /** + * Set this property to reject connections when the server's connection count gets + * high. + * + * It is not recommended to use this option once a socket has been sent to a child + * with `child_process.fork()`. + * @since v0.2.0 + */ + maxConnections: number; + connections: number; + /** + * Indicates whether or not the server is listening for connections. + * @since v5.7.0 + */ + readonly listening: boolean; + /** + * events.EventEmitter + * 1. close + * 2. connection + * 3. error + * 4. listening + * 5. drop + */ + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: "close", listener: () => void): this; + addListener(event: "connection", listener: (socket: Socket) => void): this; + addListener(event: "error", listener: (err: Error) => void): this; + addListener(event: "listening", listener: () => void): this; + addListener(event: "drop", listener: (data?: DropArgument) => void): this; + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: "close"): boolean; + emit(event: "connection", socket: Socket): boolean; + emit(event: "error", err: Error): boolean; + emit(event: "listening"): boolean; + emit(event: "drop", data?: DropArgument): boolean; + on(event: string, listener: (...args: any[]) => void): this; + on(event: "close", listener: () => void): this; + on(event: "connection", listener: (socket: Socket) => void): this; + on(event: "error", listener: (err: Error) => void): this; + on(event: "listening", listener: () => void): this; + on(event: "drop", listener: (data?: DropArgument) => void): this; + once(event: string, listener: (...args: any[]) => void): this; + once(event: "close", listener: () => void): this; + once(event: "connection", listener: (socket: Socket) => void): this; + once(event: "error", listener: (err: Error) => void): this; + once(event: "listening", listener: () => void): this; + once(event: "drop", listener: (data?: DropArgument) => void): this; + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: "close", listener: () => void): this; + prependListener(event: "connection", listener: (socket: Socket) => void): this; + prependListener(event: "error", listener: (err: Error) => void): this; + prependListener(event: "listening", listener: () => void): this; + prependListener(event: "drop", listener: (data?: DropArgument) => void): this; + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: "close", listener: () => void): this; + prependOnceListener(event: "connection", listener: (socket: Socket) => void): this; + prependOnceListener(event: "error", listener: (err: Error) => void): this; + prependOnceListener(event: "listening", listener: () => void): this; + prependOnceListener(event: "drop", listener: (data?: DropArgument) => void): this; + /** + * Calls {@link Server.close()} and returns a promise that fulfills when the server has closed. + * @since v20.5.0 + */ + [Symbol.asyncDispose](): Promise; + } + type IPVersion = "ipv4" | "ipv6"; + /** + * The `BlockList` object can be used with some network APIs to specify rules for + * disabling inbound or outbound access to specific IP addresses, IP ranges, or + * IP subnets. + * @since v15.0.0, v14.18.0 + */ + class BlockList { + /** + * Adds a rule to block the given IP address. + * @since v15.0.0, v14.18.0 + * @param address An IPv4 or IPv6 address. + * @param [type='ipv4'] Either `'ipv4'` or `'ipv6'`. + */ + addAddress(address: string, type?: IPVersion): void; + addAddress(address: SocketAddress): void; + /** + * Adds a rule to block a range of IP addresses from `start` (inclusive) to`end` (inclusive). + * @since v15.0.0, v14.18.0 + * @param start The starting IPv4 or IPv6 address in the range. + * @param end The ending IPv4 or IPv6 address in the range. + * @param [type='ipv4'] Either `'ipv4'` or `'ipv6'`. + */ + addRange(start: string, end: string, type?: IPVersion): void; + addRange(start: SocketAddress, end: SocketAddress): void; + /** + * Adds a rule to block a range of IP addresses specified as a subnet mask. + * @since v15.0.0, v14.18.0 + * @param net The network IPv4 or IPv6 address. + * @param prefix The number of CIDR prefix bits. For IPv4, this must be a value between `0` and `32`. For IPv6, this must be between `0` and `128`. + * @param [type='ipv4'] Either `'ipv4'` or `'ipv6'`. + */ + addSubnet(net: SocketAddress, prefix: number): void; + addSubnet(net: string, prefix: number, type?: IPVersion): void; + /** + * Returns `true` if the given IP address matches any of the rules added to the`BlockList`. + * + * ```js + * const blockList = new net.BlockList(); + * blockList.addAddress('123.123.123.123'); + * blockList.addRange('10.0.0.1', '10.0.0.10'); + * blockList.addSubnet('8592:757c:efae:4e45::', 64, 'ipv6'); + * + * console.log(blockList.check('123.123.123.123')); // Prints: true + * console.log(blockList.check('10.0.0.3')); // Prints: true + * console.log(blockList.check('222.111.111.222')); // Prints: false + * + * // IPv6 notation for IPv4 addresses works: + * console.log(blockList.check('::ffff:7b7b:7b7b', 'ipv6')); // Prints: true + * console.log(blockList.check('::ffff:123.123.123.123', 'ipv6')); // Prints: true + * ``` + * @since v15.0.0, v14.18.0 + * @param address The IP address to check + * @param [type='ipv4'] Either `'ipv4'` or `'ipv6'`. + */ + check(address: SocketAddress): boolean; + check(address: string, type?: IPVersion): boolean; + /** + * The list of rules added to the blocklist. + * @since v15.0.0, v14.18.0 + */ + rules: readonly string[]; + } + interface TcpNetConnectOpts extends TcpSocketConnectOpts, SocketConstructorOpts { + timeout?: number | undefined; + } + interface IpcNetConnectOpts extends IpcSocketConnectOpts, SocketConstructorOpts { + timeout?: number | undefined; + } + type NetConnectOpts = TcpNetConnectOpts | IpcNetConnectOpts; + /** + * Creates a new TCP or `IPC` server. + * + * If `allowHalfOpen` is set to `true`, when the other end of the socket + * signals the end of transmission, the server will only send back the end of + * transmission when `socket.end()` is explicitly called. For example, in the + * context of TCP, when a FIN packed is received, a FIN packed is sent + * back only when `socket.end()` is explicitly called. Until then the + * connection is half-closed (non-readable but still writable). See `'end'` event and [RFC 1122](https://tools.ietf.org/html/rfc1122) (section 4.2.2.13) for more information. + * + * If `pauseOnConnect` is set to `true`, then the socket associated with each + * incoming connection will be paused, and no data will be read from its handle. + * This allows connections to be passed between processes without any data being + * read by the original process. To begin reading data from a paused socket, call `socket.resume()`. + * + * The server can be a TCP server or an `IPC` server, depending on what it `listen()` to. + * + * Here is an example of a TCP echo server which listens for connections + * on port 8124: + * + * ```js + * import net from 'node:net'; + * const server = net.createServer((c) => { + * // 'connection' listener. + * console.log('client connected'); + * c.on('end', () => { + * console.log('client disconnected'); + * }); + * c.write('hello\r\n'); + * c.pipe(c); + * }); + * server.on('error', (err) => { + * throw err; + * }); + * server.listen(8124, () => { + * console.log('server bound'); + * }); + * ``` + * + * Test this by using `telnet`: + * + * ```bash + * telnet localhost 8124 + * ``` + * + * To listen on the socket `/tmp/echo.sock`: + * + * ```js + * server.listen('/tmp/echo.sock', () => { + * console.log('server bound'); + * }); + * ``` + * + * Use `nc` to connect to a Unix domain socket server: + * + * ```bash + * nc -U /tmp/echo.sock + * ``` + * @since v0.5.0 + * @param connectionListener Automatically set as a listener for the {@link 'connection'} event. + */ + function createServer(connectionListener?: (socket: Socket) => void): Server; + function createServer(options?: ServerOpts, connectionListener?: (socket: Socket) => void): Server; + /** + * Aliases to {@link createConnection}. + * + * Possible signatures: + * + * * {@link connect} + * * {@link connect} for `IPC` connections. + * * {@link connect} for TCP connections. + */ + function connect(options: NetConnectOpts, connectionListener?: () => void): Socket; + function connect(port: number, host?: string, connectionListener?: () => void): Socket; + function connect(path: string, connectionListener?: () => void): Socket; + /** + * A factory function, which creates a new {@link Socket}, + * immediately initiates connection with `socket.connect()`, + * then returns the `net.Socket` that starts the connection. + * + * When the connection is established, a `'connect'` event will be emitted + * on the returned socket. The last parameter `connectListener`, if supplied, + * will be added as a listener for the `'connect'` event **once**. + * + * Possible signatures: + * + * * {@link createConnection} + * * {@link createConnection} for `IPC` connections. + * * {@link createConnection} for TCP connections. + * + * The {@link connect} function is an alias to this function. + */ + function createConnection(options: NetConnectOpts, connectionListener?: () => void): Socket; + function createConnection(port: number, host?: string, connectionListener?: () => void): Socket; + function createConnection(path: string, connectionListener?: () => void): Socket; + /** + * Gets the current default value of the `autoSelectFamily` option of `socket.connect(options)`. + * The initial default value is `true`, unless the command line option`--no-network-family-autoselection` is provided. + * @since v19.4.0 + */ + function getDefaultAutoSelectFamily(): boolean; + /** + * Sets the default value of the `autoSelectFamily` option of `socket.connect(options)`. + * @since v19.4.0 + */ + function setDefaultAutoSelectFamily(value: boolean): void; + /** + * Gets the current default value of the `autoSelectFamilyAttemptTimeout` option of `socket.connect(options)`. + * The initial default value is `250` or the value specified via the command line option `--network-family-autoselection-attempt-timeout`. + * @returns The current default value of the `autoSelectFamilyAttemptTimeout` option. + * @since v19.8.0, v18.8.0 + */ + function getDefaultAutoSelectFamilyAttemptTimeout(): number; + /** + * Sets the default value of the `autoSelectFamilyAttemptTimeout` option of `socket.connect(options)`. + * @param value The new default value, which must be a positive number. If the number is less than `10`, the value `10` is used instead. The initial default value is `250` or the value specified via the command line + * option `--network-family-autoselection-attempt-timeout`. + * @since v19.8.0, v18.8.0 + */ + function setDefaultAutoSelectFamilyAttemptTimeout(value: number): void; + /** + * Returns `6` if `input` is an IPv6 address. Returns `4` if `input` is an IPv4 + * address in [dot-decimal notation](https://en.wikipedia.org/wiki/Dot-decimal_notation) with no leading zeroes. Otherwise, returns`0`. + * + * ```js + * net.isIP('::1'); // returns 6 + * net.isIP('127.0.0.1'); // returns 4 + * net.isIP('127.000.000.001'); // returns 0 + * net.isIP('127.0.0.1/24'); // returns 0 + * net.isIP('fhqwhgads'); // returns 0 + * ``` + * @since v0.3.0 + */ + function isIP(input: string): number; + /** + * Returns `true` if `input` is an IPv4 address in [dot-decimal notation](https://en.wikipedia.org/wiki/Dot-decimal_notation) with no + * leading zeroes. Otherwise, returns `false`. + * + * ```js + * net.isIPv4('127.0.0.1'); // returns true + * net.isIPv4('127.000.000.001'); // returns false + * net.isIPv4('127.0.0.1/24'); // returns false + * net.isIPv4('fhqwhgads'); // returns false + * ``` + * @since v0.3.0 + */ + function isIPv4(input: string): boolean; + /** + * Returns `true` if `input` is an IPv6 address. Otherwise, returns `false`. + * + * ```js + * net.isIPv6('::1'); // returns true + * net.isIPv6('fhqwhgads'); // returns false + * ``` + * @since v0.3.0 + */ + function isIPv6(input: string): boolean; + interface SocketAddressInitOptions { + /** + * The network address as either an IPv4 or IPv6 string. + * @default 127.0.0.1 + */ + address?: string | undefined; + /** + * @default `'ipv4'` + */ + family?: IPVersion | undefined; + /** + * An IPv6 flow-label used only if `family` is `'ipv6'`. + * @default 0 + */ + flowlabel?: number | undefined; + /** + * An IP port. + * @default 0 + */ + port?: number | undefined; + } + /** + * @since v15.14.0, v14.18.0 + */ + class SocketAddress { + constructor(options: SocketAddressInitOptions); + /** + * Either \`'ipv4'\` or \`'ipv6'\`. + * @since v15.14.0, v14.18.0 + */ + readonly address: string; + /** + * Either \`'ipv4'\` or \`'ipv6'\`. + * @since v15.14.0, v14.18.0 + */ + readonly family: IPVersion; + /** + * @since v15.14.0, v14.18.0 + */ + readonly port: number; + /** + * @since v15.14.0, v14.18.0 + */ + readonly flowlabel: number; + } +} +declare module "node:net" { + export * from "net"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/os.d.ts b/backend/node_modules/httpx/node_modules/@types/node/os.d.ts new file mode 100644 index 0000000..331df6e --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/os.d.ts @@ -0,0 +1,506 @@ +/** + * The `node:os` module provides operating system-related utility methods and + * properties. It can be accessed using: + * + * ```js + * import os from 'node:os'; + * ``` + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/os.js) + */ +declare module "os" { + import { NonSharedBuffer } from "buffer"; + interface CpuInfo { + model: string; + speed: number; + times: { + /** The number of milliseconds the CPU has spent in user mode. */ + user: number; + /** The number of milliseconds the CPU has spent in nice mode. */ + nice: number; + /** The number of milliseconds the CPU has spent in sys mode. */ + sys: number; + /** The number of milliseconds the CPU has spent in idle mode. */ + idle: number; + /** The number of milliseconds the CPU has spent in irq mode. */ + irq: number; + }; + } + interface NetworkInterfaceBase { + address: string; + netmask: string; + mac: string; + internal: boolean; + cidr: string | null; + scopeid?: number; + } + interface NetworkInterfaceInfoIPv4 extends NetworkInterfaceBase { + family: "IPv4"; + } + interface NetworkInterfaceInfoIPv6 extends NetworkInterfaceBase { + family: "IPv6"; + scopeid: number; + } + interface UserInfo { + username: T; + uid: number; + gid: number; + shell: T | null; + homedir: T; + } + type NetworkInterfaceInfo = NetworkInterfaceInfoIPv4 | NetworkInterfaceInfoIPv6; + /** + * Returns the host name of the operating system as a string. + * @since v0.3.3 + */ + function hostname(): string; + /** + * Returns an array containing the 1, 5, and 15 minute load averages. + * + * The load average is a measure of system activity calculated by the operating + * system and expressed as a fractional number. + * + * The load average is a Unix-specific concept. On Windows, the return value is + * always `[0, 0, 0]`. + * @since v0.3.3 + */ + function loadavg(): number[]; + /** + * Returns the system uptime in number of seconds. + * @since v0.3.3 + */ + function uptime(): number; + /** + * Returns the amount of free system memory in bytes as an integer. + * @since v0.3.3 + */ + function freemem(): number; + /** + * Returns the total amount of system memory in bytes as an integer. + * @since v0.3.3 + */ + function totalmem(): number; + /** + * Returns an array of objects containing information about each logical CPU core. + * The array will be empty if no CPU information is available, such as if the `/proc` file system is unavailable. + * + * The properties included on each object include: + * + * ```js + * [ + * { + * model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz', + * speed: 2926, + * times: { + * user: 252020, + * nice: 0, + * sys: 30340, + * idle: 1070356870, + * irq: 0, + * }, + * }, + * { + * model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz', + * speed: 2926, + * times: { + * user: 306960, + * nice: 0, + * sys: 26980, + * idle: 1071569080, + * irq: 0, + * }, + * }, + * { + * model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz', + * speed: 2926, + * times: { + * user: 248450, + * nice: 0, + * sys: 21750, + * idle: 1070919370, + * irq: 0, + * }, + * }, + * { + * model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz', + * speed: 2926, + * times: { + * user: 256880, + * nice: 0, + * sys: 19430, + * idle: 1070905480, + * irq: 20, + * }, + * }, + * ] + * ``` + * + * `nice` values are POSIX-only. On Windows, the `nice` values of all processors + * are always 0. + * + * `os.cpus().length` should not be used to calculate the amount of parallelism + * available to an application. Use {@link availableParallelism} for this purpose. + * @since v0.3.3 + */ + function cpus(): CpuInfo[]; + /** + * Returns an estimate of the default amount of parallelism a program should use. + * Always returns a value greater than zero. + * + * This function is a small wrapper about libuv's [`uv_available_parallelism()`](https://docs.libuv.org/en/v1.x/misc.html#c.uv_available_parallelism). + * @since v19.4.0, v18.14.0 + */ + function availableParallelism(): number; + /** + * Returns the operating system name as returned by [`uname(3)`](https://linux.die.net/man/3/uname). For example, it + * returns `'Linux'` on Linux, `'Darwin'` on macOS, and `'Windows_NT'` on Windows. + * + * See [https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for additional information + * about the output of running [`uname(3)`](https://linux.die.net/man/3/uname) on various operating systems. + * @since v0.3.3 + */ + function type(): string; + /** + * Returns the operating system as a string. + * + * On POSIX systems, the operating system release is determined by calling [`uname(3)`](https://linux.die.net/man/3/uname). On Windows, `GetVersionExW()` is used. See + * [https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for more information. + * @since v0.3.3 + */ + function release(): string; + /** + * Returns an object containing network interfaces that have been assigned a + * network address. + * + * Each key on the returned object identifies a network interface. The associated + * value is an array of objects that each describe an assigned network address. + * + * The properties available on the assigned network address object include: + * + * ```js + * { + * lo: [ + * { + * address: '127.0.0.1', + * netmask: '255.0.0.0', + * family: 'IPv4', + * mac: '00:00:00:00:00:00', + * internal: true, + * cidr: '127.0.0.1/8' + * }, + * { + * address: '::1', + * netmask: 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff', + * family: 'IPv6', + * mac: '00:00:00:00:00:00', + * scopeid: 0, + * internal: true, + * cidr: '::1/128' + * } + * ], + * eth0: [ + * { + * address: '192.168.1.108', + * netmask: '255.255.255.0', + * family: 'IPv4', + * mac: '01:02:03:0a:0b:0c', + * internal: false, + * cidr: '192.168.1.108/24' + * }, + * { + * address: 'fe80::a00:27ff:fe4e:66a1', + * netmask: 'ffff:ffff:ffff:ffff::', + * family: 'IPv6', + * mac: '01:02:03:0a:0b:0c', + * scopeid: 1, + * internal: false, + * cidr: 'fe80::a00:27ff:fe4e:66a1/64' + * } + * ] + * } + * ``` + * @since v0.6.0 + */ + function networkInterfaces(): NodeJS.Dict; + /** + * Returns the string path of the current user's home directory. + * + * On POSIX, it uses the `$HOME` environment variable if defined. Otherwise it + * uses the [effective UID](https://en.wikipedia.org/wiki/User_identifier#Effective_user_ID) to look up the user's home directory. + * + * On Windows, it uses the `USERPROFILE` environment variable if defined. + * Otherwise it uses the path to the profile directory of the current user. + * @since v2.3.0 + */ + function homedir(): string; + interface UserInfoOptions { + encoding?: BufferEncoding | "buffer" | undefined; + } + interface UserInfoOptionsWithBufferEncoding extends UserInfoOptions { + encoding: "buffer"; + } + interface UserInfoOptionsWithStringEncoding extends UserInfoOptions { + encoding?: BufferEncoding | undefined; + } + /** + * Returns information about the currently effective user. On POSIX platforms, + * this is typically a subset of the password file. The returned object includes + * the `username`, `uid`, `gid`, `shell`, and `homedir`. On Windows, the `uid` and `gid` fields are `-1`, and `shell` is `null`. + * + * The value of `homedir` returned by `os.userInfo()` is provided by the operating + * system. This differs from the result of `os.homedir()`, which queries + * environment variables for the home directory before falling back to the + * operating system response. + * + * Throws a [`SystemError`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-systemerror) if a user has no `username` or `homedir`. + * @since v6.0.0 + */ + function userInfo(options?: UserInfoOptionsWithStringEncoding): UserInfo; + function userInfo(options: UserInfoOptionsWithBufferEncoding): UserInfo; + function userInfo(options: UserInfoOptions): UserInfo; + type SignalConstants = { + [key in NodeJS.Signals]: number; + }; + namespace constants { + const UV_UDP_REUSEADDR: number; + namespace signals {} + const signals: SignalConstants; + namespace errno { + const E2BIG: number; + const EACCES: number; + const EADDRINUSE: number; + const EADDRNOTAVAIL: number; + const EAFNOSUPPORT: number; + const EAGAIN: number; + const EALREADY: number; + const EBADF: number; + const EBADMSG: number; + const EBUSY: number; + const ECANCELED: number; + const ECHILD: number; + const ECONNABORTED: number; + const ECONNREFUSED: number; + const ECONNRESET: number; + const EDEADLK: number; + const EDESTADDRREQ: number; + const EDOM: number; + const EDQUOT: number; + const EEXIST: number; + const EFAULT: number; + const EFBIG: number; + const EHOSTUNREACH: number; + const EIDRM: number; + const EILSEQ: number; + const EINPROGRESS: number; + const EINTR: number; + const EINVAL: number; + const EIO: number; + const EISCONN: number; + const EISDIR: number; + const ELOOP: number; + const EMFILE: number; + const EMLINK: number; + const EMSGSIZE: number; + const EMULTIHOP: number; + const ENAMETOOLONG: number; + const ENETDOWN: number; + const ENETRESET: number; + const ENETUNREACH: number; + const ENFILE: number; + const ENOBUFS: number; + const ENODATA: number; + const ENODEV: number; + const ENOENT: number; + const ENOEXEC: number; + const ENOLCK: number; + const ENOLINK: number; + const ENOMEM: number; + const ENOMSG: number; + const ENOPROTOOPT: number; + const ENOSPC: number; + const ENOSR: number; + const ENOSTR: number; + const ENOSYS: number; + const ENOTCONN: number; + const ENOTDIR: number; + const ENOTEMPTY: number; + const ENOTSOCK: number; + const ENOTSUP: number; + const ENOTTY: number; + const ENXIO: number; + const EOPNOTSUPP: number; + const EOVERFLOW: number; + const EPERM: number; + const EPIPE: number; + const EPROTO: number; + const EPROTONOSUPPORT: number; + const EPROTOTYPE: number; + const ERANGE: number; + const EROFS: number; + const ESPIPE: number; + const ESRCH: number; + const ESTALE: number; + const ETIME: number; + const ETIMEDOUT: number; + const ETXTBSY: number; + const EWOULDBLOCK: number; + const EXDEV: number; + const WSAEINTR: number; + const WSAEBADF: number; + const WSAEACCES: number; + const WSAEFAULT: number; + const WSAEINVAL: number; + const WSAEMFILE: number; + const WSAEWOULDBLOCK: number; + const WSAEINPROGRESS: number; + const WSAEALREADY: number; + const WSAENOTSOCK: number; + const WSAEDESTADDRREQ: number; + const WSAEMSGSIZE: number; + const WSAEPROTOTYPE: number; + const WSAENOPROTOOPT: number; + const WSAEPROTONOSUPPORT: number; + const WSAESOCKTNOSUPPORT: number; + const WSAEOPNOTSUPP: number; + const WSAEPFNOSUPPORT: number; + const WSAEAFNOSUPPORT: number; + const WSAEADDRINUSE: number; + const WSAEADDRNOTAVAIL: number; + const WSAENETDOWN: number; + const WSAENETUNREACH: number; + const WSAENETRESET: number; + const WSAECONNABORTED: number; + const WSAECONNRESET: number; + const WSAENOBUFS: number; + const WSAEISCONN: number; + const WSAENOTCONN: number; + const WSAESHUTDOWN: number; + const WSAETOOMANYREFS: number; + const WSAETIMEDOUT: number; + const WSAECONNREFUSED: number; + const WSAELOOP: number; + const WSAENAMETOOLONG: number; + const WSAEHOSTDOWN: number; + const WSAEHOSTUNREACH: number; + const WSAENOTEMPTY: number; + const WSAEPROCLIM: number; + const WSAEUSERS: number; + const WSAEDQUOT: number; + const WSAESTALE: number; + const WSAEREMOTE: number; + const WSASYSNOTREADY: number; + const WSAVERNOTSUPPORTED: number; + const WSANOTINITIALISED: number; + const WSAEDISCON: number; + const WSAENOMORE: number; + const WSAECANCELLED: number; + const WSAEINVALIDPROCTABLE: number; + const WSAEINVALIDPROVIDER: number; + const WSAEPROVIDERFAILEDINIT: number; + const WSASYSCALLFAILURE: number; + const WSASERVICE_NOT_FOUND: number; + const WSATYPE_NOT_FOUND: number; + const WSA_E_NO_MORE: number; + const WSA_E_CANCELLED: number; + const WSAEREFUSED: number; + } + namespace dlopen { + const RTLD_LAZY: number; + const RTLD_NOW: number; + const RTLD_GLOBAL: number; + const RTLD_LOCAL: number; + const RTLD_DEEPBIND: number; + } + namespace priority { + const PRIORITY_LOW: number; + const PRIORITY_BELOW_NORMAL: number; + const PRIORITY_NORMAL: number; + const PRIORITY_ABOVE_NORMAL: number; + const PRIORITY_HIGH: number; + const PRIORITY_HIGHEST: number; + } + } + const devNull: string; + /** + * The operating system-specific end-of-line marker. + * * `\n` on POSIX + * * `\r\n` on Windows + */ + const EOL: string; + /** + * Returns the operating system CPU architecture for which the Node.js binary was + * compiled. Possible values are `'arm'`, `'arm64'`, `'ia32'`, `'loong64'`, `'mips'`, `'mipsel'`, `'ppc'`, `'ppc64'`, `'riscv64'`, `'s390'`, `'s390x'`, + * and `'x64'`. + * + * The return value is equivalent to [process.arch](https://nodejs.org/docs/latest-v20.x/api/process.html#processarch). + * @since v0.5.0 + */ + function arch(): string; + /** + * Returns a string identifying the kernel version. + * + * On POSIX systems, the operating system release is determined by calling [`uname(3)`](https://linux.die.net/man/3/uname). On Windows, `RtlGetVersion()` is used, and if it is not + * available, `GetVersionExW()` will be used. See [https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for more information. + * @since v13.11.0, v12.17.0 + */ + function version(): string; + /** + * Returns a string identifying the operating system platform for which + * the Node.js binary was compiled. The value is set at compile time. + * Possible values are `'aix'`, `'darwin'`, `'freebsd'`, `'linux'`, `'openbsd'`, `'sunos'`, and `'win32'`. + * + * The return value is equivalent to `process.platform`. + * + * The value `'android'` may also be returned if Node.js is built on the Android + * operating system. [Android support is experimental](https://github.com/nodejs/node/blob/HEAD/BUILDING.md#androidandroid-based-devices-eg-firefox-os). + * @since v0.5.0 + */ + function platform(): NodeJS.Platform; + /** + * Returns the machine type as a string, such as `arm`, `arm64`, `aarch64`, `mips`, `mips64`, `ppc64`, `ppc64le`, `s390`, `s390x`, `i386`, `i686`, `x86_64`. + * + * On POSIX systems, the machine type is determined by calling [`uname(3)`](https://linux.die.net/man/3/uname). On Windows, `RtlGetVersion()` is used, and if it is not + * available, `GetVersionExW()` will be used. See [https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for more information. + * @since v18.9.0, v16.18.0 + */ + function machine(): string; + /** + * Returns the operating system's default directory for temporary files as a + * string. + * @since v0.9.9 + */ + function tmpdir(): string; + /** + * Returns a string identifying the endianness of the CPU for which the Node.js + * binary was compiled. + * + * Possible values are `'BE'` for big endian and `'LE'` for little endian. + * @since v0.9.4 + */ + function endianness(): "BE" | "LE"; + /** + * Returns the scheduling priority for the process specified by `pid`. If `pid` is + * not provided or is `0`, the priority of the current process is returned. + * @since v10.10.0 + * @param [pid=0] The process ID to retrieve scheduling priority for. + */ + function getPriority(pid?: number): number; + /** + * Attempts to set the scheduling priority for the process specified by `pid`. If `pid` is not provided or is `0`, the process ID of the current process is used. + * + * The `priority` input must be an integer between `-20` (high priority) and `19` (low priority). Due to differences between Unix priority levels and Windows + * priority classes, `priority` is mapped to one of six priority constants in `os.constants.priority`. When retrieving a process priority level, this range + * mapping may cause the return value to be slightly different on Windows. To avoid + * confusion, set `priority` to one of the priority constants. + * + * On Windows, setting priority to `PRIORITY_HIGHEST` requires elevated user + * privileges. Otherwise the set priority will be silently reduced to `PRIORITY_HIGH`. + * @since v10.10.0 + * @param [pid=0] The process ID to set scheduling priority for. + * @param priority The scheduling priority to assign to the process. + */ + function setPriority(priority: number): void; + function setPriority(pid: number, priority: number): void; +} +declare module "node:os" { + export * from "os"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/package.json b/backend/node_modules/httpx/node_modules/@types/node/package.json new file mode 100644 index 0000000..f1945d2 --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/package.json @@ -0,0 +1,140 @@ +{ + "name": "@types/node", + "version": "20.19.30", + "description": "TypeScript definitions for node", + "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node", + "license": "MIT", + "contributors": [ + { + "name": "Microsoft TypeScript", + "githubUsername": "Microsoft", + "url": "https://github.com/Microsoft" + }, + { + "name": "Alberto Schiabel", + "githubUsername": "jkomyno", + "url": "https://github.com/jkomyno" + }, + { + "name": "Andrew Makarov", + "githubUsername": "r3nya", + "url": "https://github.com/r3nya" + }, + { + "name": "Benjamin Toueg", + "githubUsername": "btoueg", + "url": "https://github.com/btoueg" + }, + { + "name": "David Junger", + "githubUsername": "touffy", + "url": "https://github.com/touffy" + }, + { + "name": "Mohsen Azimi", + "githubUsername": "mohsen1", + "url": "https://github.com/mohsen1" + }, + { + "name": "Nikita Galkin", + "githubUsername": "galkin", + "url": "https://github.com/galkin" + }, + { + "name": "Sebastian Silbermann", + "githubUsername": "eps1lon", + "url": "https://github.com/eps1lon" + }, + { + "name": "Wilco Bakker", + "githubUsername": "WilcoBakker", + "url": "https://github.com/WilcoBakker" + }, + { + "name": "Marcin Kopacz", + "githubUsername": "chyzwar", + "url": "https://github.com/chyzwar" + }, + { + "name": "Trivikram Kamat", + "githubUsername": "trivikr", + "url": "https://github.com/trivikr" + }, + { + "name": "Junxiao Shi", + "githubUsername": "yoursunny", + "url": "https://github.com/yoursunny" + }, + { + "name": "Ilia Baryshnikov", + "githubUsername": "qwelias", + "url": "https://github.com/qwelias" + }, + { + "name": "ExE Boss", + "githubUsername": "ExE-Boss", + "url": "https://github.com/ExE-Boss" + }, + { + "name": "Piotr Błażejewicz", + "githubUsername": "peterblazejewicz", + "url": "https://github.com/peterblazejewicz" + }, + { + "name": "Anna Henningsen", + "githubUsername": "addaleax", + "url": "https://github.com/addaleax" + }, + { + "name": "Victor Perin", + "githubUsername": "victorperin", + "url": "https://github.com/victorperin" + }, + { + "name": "NodeJS Contributors", + "githubUsername": "NodeJS", + "url": "https://github.com/NodeJS" + }, + { + "name": "Linus Unnebäck", + "githubUsername": "LinusU", + "url": "https://github.com/LinusU" + }, + { + "name": "wafuwafu13", + "githubUsername": "wafuwafu13", + "url": "https://github.com/wafuwafu13" + }, + { + "name": "Matteo Collina", + "githubUsername": "mcollina", + "url": "https://github.com/mcollina" + }, + { + "name": "Dmitry Semigradsky", + "githubUsername": "Semigradsky", + "url": "https://github.com/Semigradsky" + } + ], + "main": "", + "types": "index.d.ts", + "typesVersions": { + "<=5.6": { + "*": [ + "ts5.6/*" + ] + } + }, + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/node" + }, + "scripts": {}, + "dependencies": { + "undici-types": "~6.21.0" + }, + "peerDependencies": {}, + "typesPublisherContentHash": "093a3c4b27603df5de19da8bd5fb6058917597fac6113ad8fb802154ae733638", + "typeScriptVersion": "5.2" +} \ No newline at end of file diff --git a/backend/node_modules/httpx/node_modules/@types/node/path.d.ts b/backend/node_modules/httpx/node_modules/@types/node/path.d.ts new file mode 100644 index 0000000..dd69692 --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/path.d.ts @@ -0,0 +1,200 @@ +declare module "path/posix" { + import path = require("path"); + export = path; +} +declare module "path/win32" { + import path = require("path"); + export = path; +} +/** + * The `node:path` module provides utilities for working with file and directory + * paths. It can be accessed using: + * + * ```js + * import path from 'node:path'; + * ``` + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/path.js) + */ +declare module "path" { + namespace path { + /** + * A parsed path object generated by path.parse() or consumed by path.format(). + */ + interface ParsedPath { + /** + * The root of the path such as '/' or 'c:\' + */ + root: string; + /** + * The full directory path such as '/home/user/dir' or 'c:\path\dir' + */ + dir: string; + /** + * The file name including extension (if any) such as 'index.html' + */ + base: string; + /** + * The file extension (if any) such as '.html' + */ + ext: string; + /** + * The file name without extension (if any) such as 'index' + */ + name: string; + } + interface FormatInputPathObject { + /** + * The root of the path such as '/' or 'c:\' + */ + root?: string | undefined; + /** + * The full directory path such as '/home/user/dir' or 'c:\path\dir' + */ + dir?: string | undefined; + /** + * The file name including extension (if any) such as 'index.html' + */ + base?: string | undefined; + /** + * The file extension (if any) such as '.html' + */ + ext?: string | undefined; + /** + * The file name without extension (if any) such as 'index' + */ + name?: string | undefined; + } + interface PlatformPath { + /** + * Normalize a string path, reducing '..' and '.' parts. + * When multiple slashes are found, they're replaced by a single one; when the path contains a trailing slash, it is preserved. On Windows backslashes are used. If the path is a zero-length string, '.' is returned, representing the current working directory. + * + * @param path string path to normalize. + * @throws {TypeError} if `path` is not a string. + */ + normalize(path: string): string; + /** + * Join all arguments together and normalize the resulting path. + * + * @param paths paths to join. + * @throws {TypeError} if any of the path segments is not a string. + */ + join(...paths: string[]): string; + /** + * The right-most parameter is considered {to}. Other parameters are considered an array of {from}. + * + * Starting from leftmost {from} parameter, resolves {to} to an absolute path. + * + * If {to} isn't already absolute, {from} arguments are prepended in right to left order, + * until an absolute path is found. If after using all {from} paths still no absolute path is found, + * the current working directory is used as well. The resulting path is normalized, + * and trailing slashes are removed unless the path gets resolved to the root directory. + * + * @param paths A sequence of paths or path segments. + * @throws {TypeError} if any of the arguments is not a string. + */ + resolve(...paths: string[]): string; + /** + * The `path.matchesGlob()` method determines if `path` matches the `pattern`. + * @param path The path to glob-match against. + * @param pattern The glob to check the path against. + * @returns Whether or not the `path` matched the `pattern`. + * @throws {TypeError} if `path` or `pattern` are not strings. + * @since v20.17.0 + */ + matchesGlob(path: string, pattern: string): boolean; + /** + * Determines whether {path} is an absolute path. An absolute path will always resolve to the same location, regardless of the working directory. + * + * If the given {path} is a zero-length string, `false` will be returned. + * + * @param path path to test. + * @throws {TypeError} if `path` is not a string. + */ + isAbsolute(path: string): boolean; + /** + * Solve the relative path from {from} to {to} based on the current working directory. + * At times we have two absolute paths, and we need to derive the relative path from one to the other. This is actually the reverse transform of path.resolve. + * + * @throws {TypeError} if either `from` or `to` is not a string. + */ + relative(from: string, to: string): string; + /** + * Return the directory name of a path. Similar to the Unix dirname command. + * + * @param path the path to evaluate. + * @throws {TypeError} if `path` is not a string. + */ + dirname(path: string): string; + /** + * Return the last portion of a path. Similar to the Unix basename command. + * Often used to extract the file name from a fully qualified path. + * + * @param path the path to evaluate. + * @param suffix optionally, an extension to remove from the result. + * @throws {TypeError} if `path` is not a string or if `ext` is given and is not a string. + */ + basename(path: string, suffix?: string): string; + /** + * Return the extension of the path, from the last '.' to end of string in the last portion of the path. + * If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string. + * + * @param path the path to evaluate. + * @throws {TypeError} if `path` is not a string. + */ + extname(path: string): string; + /** + * The platform-specific file separator. '\\' or '/'. + */ + readonly sep: "\\" | "/"; + /** + * The platform-specific file delimiter. ';' or ':'. + */ + readonly delimiter: ";" | ":"; + /** + * Returns an object from a path string - the opposite of format(). + * + * @param path path to evaluate. + * @throws {TypeError} if `path` is not a string. + */ + parse(path: string): ParsedPath; + /** + * Returns a path string from an object - the opposite of parse(). + * + * @param pathObject path to evaluate. + */ + format(pathObject: FormatInputPathObject): string; + /** + * On Windows systems only, returns an equivalent namespace-prefixed path for the given path. + * If path is not a string, path will be returned without modifications. + * This method is meaningful only on Windows system. + * On POSIX systems, the method is non-operational and always returns path without modifications. + */ + toNamespacedPath(path: string): string; + /** + * Posix specific pathing. + * Same as parent object on posix. + */ + readonly posix: PlatformPath; + /** + * Windows specific pathing. + * Same as parent object on windows + */ + readonly win32: PlatformPath; + } + } + const path: path.PlatformPath; + export = path; +} +declare module "node:path" { + import path = require("path"); + export = path; +} +declare module "node:path/posix" { + import path = require("path/posix"); + export = path; +} +declare module "node:path/win32" { + import path = require("path/win32"); + export = path; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/perf_hooks.d.ts b/backend/node_modules/httpx/node_modules/@types/node/perf_hooks.d.ts new file mode 100644 index 0000000..730af9b --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/perf_hooks.d.ts @@ -0,0 +1,961 @@ +/** + * This module provides an implementation of a subset of the W3C [Web Performance APIs](https://w3c.github.io/perf-timing-primer/) as well as additional APIs for + * Node.js-specific performance measurements. + * + * Node.js supports the following [Web Performance APIs](https://w3c.github.io/perf-timing-primer/): + * + * * [High Resolution Time](https://www.w3.org/TR/hr-time-2) + * * [Performance Timeline](https://w3c.github.io/performance-timeline/) + * * [User Timing](https://www.w3.org/TR/user-timing/) + * * [Resource Timing](https://www.w3.org/TR/resource-timing-2/) + * + * ```js + * import { PerformanceObserver, performance } from 'node:perf_hooks'; + * + * const obs = new PerformanceObserver((items) => { + * console.log(items.getEntries()[0].duration); + * performance.clearMarks(); + * }); + * obs.observe({ type: 'measure' }); + * performance.measure('Start to Now'); + * + * performance.mark('A'); + * doSomeLongRunningProcess(() => { + * performance.measure('A to Now', 'A'); + * + * performance.mark('B'); + * performance.measure('A to B', 'A', 'B'); + * }); + * ``` + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/perf_hooks.js) + */ +declare module "perf_hooks" { + import { AsyncResource } from "node:async_hooks"; + type EntryType = + | "dns" // Node.js only + | "function" // Node.js only + | "gc" // Node.js only + | "http2" // Node.js only + | "http" // Node.js only + | "mark" // available on the Web + | "measure" // available on the Web + | "net" // Node.js only + | "node" // Node.js only + | "resource"; // available on the Web + interface NodeGCPerformanceDetail { + /** + * When `performanceEntry.entryType` is equal to 'gc', the `performance.kind` property identifies + * the type of garbage collection operation that occurred. + * See perf_hooks.constants for valid values. + */ + readonly kind: number; + /** + * When `performanceEntry.entryType` is equal to 'gc', the `performance.flags` + * property contains additional information about garbage collection operation. + * See perf_hooks.constants for valid values. + */ + readonly flags: number; + } + /** + * The constructor of this class is not exposed to users directly. + * @since v8.5.0 + */ + class PerformanceEntry { + protected constructor(); + /** + * The total number of milliseconds elapsed for this entry. This value will not + * be meaningful for all Performance Entry types. + * @since v8.5.0 + */ + readonly duration: number; + /** + * The name of the performance entry. + * @since v8.5.0 + */ + readonly name: string; + /** + * The high resolution millisecond timestamp marking the starting time of the + * Performance Entry. + * @since v8.5.0 + */ + readonly startTime: number; + /** + * The type of the performance entry. It may be one of: + * + * * `'node'` (Node.js only) + * * `'mark'` (available on the Web) + * * `'measure'` (available on the Web) + * * `'gc'` (Node.js only) + * * `'function'` (Node.js only) + * * `'http2'` (Node.js only) + * * `'http'` (Node.js only) + * @since v8.5.0 + */ + readonly entryType: EntryType; + toJSON(): any; + } + /** + * Exposes marks created via the `Performance.mark()` method. + * @since v18.2.0, v16.17.0 + */ + class PerformanceMark extends PerformanceEntry { + readonly detail: any; + readonly duration: 0; + readonly entryType: "mark"; + } + /** + * Exposes measures created via the `Performance.measure()` method. + * + * The constructor of this class is not exposed to users directly. + * @since v18.2.0, v16.17.0 + */ + class PerformanceMeasure extends PerformanceEntry { + readonly detail: any; + readonly entryType: "measure"; + } + interface UVMetrics { + /** + * Number of event loop iterations. + */ + readonly loopCount: number; + /** + * Number of events that have been processed by the event handler. + */ + readonly events: number; + /** + * Number of events that were waiting to be processed when the event provider was called. + */ + readonly eventsWaiting: number; + } + // TODO: PerformanceNodeEntry is missing + /** + * _This property is an extension by Node.js. It is not available in Web browsers._ + * + * Provides timing details for Node.js itself. The constructor of this class + * is not exposed to users. + * @since v8.5.0 + */ + class PerformanceNodeTiming extends PerformanceEntry { + /** + * The high resolution millisecond timestamp at which the Node.js process + * completed bootstrapping. If bootstrapping has not yet finished, the property + * has the value of -1. + * @since v8.5.0 + */ + readonly bootstrapComplete: number; + /** + * The high resolution millisecond timestamp at which the Node.js environment was + * initialized. + * @since v8.5.0 + */ + readonly environment: number; + /** + * The high resolution millisecond timestamp of the amount of time the event loop + * has been idle within the event loop's event provider (e.g. `epoll_wait`). This + * does not take CPU usage into consideration. If the event loop has not yet + * started (e.g., in the first tick of the main script), the property has the + * value of 0. + * @since v14.10.0, v12.19.0 + */ + readonly idleTime: number; + /** + * The high resolution millisecond timestamp at which the Node.js event loop + * exited. If the event loop has not yet exited, the property has the value of -1\. + * It can only have a value of not -1 in a handler of the `'exit'` event. + * @since v8.5.0 + */ + readonly loopExit: number; + /** + * The high resolution millisecond timestamp at which the Node.js event loop + * started. If the event loop has not yet started (e.g., in the first tick of the + * main script), the property has the value of -1. + * @since v8.5.0 + */ + readonly loopStart: number; + /** + * The high resolution millisecond timestamp at which the Node.js process was initialized. + * @since v8.5.0 + */ + readonly nodeStart: number; + /** + * This is a wrapper to the `uv_metrics_info` function. + * It returns the current set of event loop metrics. + * + * It is recommended to use this property inside a function whose execution was + * scheduled using `setImmediate` to avoid collecting metrics before finishing all + * operations scheduled during the current loop iteration. + * @since v20.18.0 + */ + readonly uvMetricsInfo: UVMetrics; + /** + * The high resolution millisecond timestamp at which the V8 platform was + * initialized. + * @since v8.5.0 + */ + readonly v8Start: number; + } + interface EventLoopUtilization { + idle: number; + active: number; + utilization: number; + } + /** + * @param utilization1 The result of a previous call to `eventLoopUtilization()`. + * @param utilization2 The result of a previous call to `eventLoopUtilization()` prior to `utilization1`. + */ + type EventLoopUtilityFunction = ( + utilization1?: EventLoopUtilization, + utilization2?: EventLoopUtilization, + ) => EventLoopUtilization; + interface MarkOptions { + /** + * Additional optional detail to include with the mark. + */ + detail?: unknown | undefined; + /** + * An optional timestamp to be used as the mark time. + * @default `performance.now()` + */ + startTime?: number | undefined; + } + interface MeasureOptions { + /** + * Additional optional detail to include with the mark. + */ + detail?: unknown; + /** + * Duration between start and end times. + */ + duration?: number | undefined; + /** + * Timestamp to be used as the end time, or a string identifying a previously recorded mark. + */ + end?: number | string | undefined; + /** + * Timestamp to be used as the start time, or a string identifying a previously recorded mark. + */ + start?: number | string | undefined; + } + interface TimerifyOptions { + /** + * A histogram object created using `perf_hooks.createHistogram()` that will record runtime + * durations in nanoseconds. + */ + histogram?: RecordableHistogram | undefined; + } + interface Performance { + /** + * If `name` is not provided, removes all `PerformanceMark` objects from the Performance Timeline. + * If `name` is provided, removes only the named mark. + * @since v8.5.0 + */ + clearMarks(name?: string): void; + /** + * If `name` is not provided, removes all `PerformanceMeasure` objects from the Performance Timeline. + * If `name` is provided, removes only the named measure. + * @since v16.7.0 + */ + clearMeasures(name?: string): void; + /** + * If `name` is not provided, removes all `PerformanceResourceTiming` objects from the Resource Timeline. + * If `name` is provided, removes only the named resource. + * @since v18.2.0, v16.17.0 + */ + clearResourceTimings(name?: string): void; + /** + * eventLoopUtilization is similar to CPU utilization except that it is calculated using high precision wall-clock time. + * It represents the percentage of time the event loop has spent outside the event loop's event provider (e.g. epoll_wait). + * No other CPU idle time is taken into consideration. + */ + eventLoopUtilization: EventLoopUtilityFunction; + /** + * Returns a list of `PerformanceEntry` objects in chronological order with respect to `performanceEntry.startTime`. + * If you are only interested in performance entries of certain types or that have certain names, see + * `performance.getEntriesByType()` and `performance.getEntriesByName()`. + * @since v16.7.0 + */ + getEntries(): PerformanceEntry[]; + /** + * Returns a list of `PerformanceEntry` objects in chronological order with respect to `performanceEntry.startTime` + * whose `performanceEntry.name` is equal to `name`, and optionally, whose `performanceEntry.entryType` is equal to `type`. + * @param name + * @param type + * @since v16.7.0 + */ + getEntriesByName(name: string, type?: EntryType): PerformanceEntry[]; + /** + * Returns a list of `PerformanceEntry` objects in chronological order with respect to `performanceEntry.startTime` + * whose `performanceEntry.entryType` is equal to `type`. + * @param type + * @since v16.7.0 + */ + getEntriesByType(type: EntryType): PerformanceEntry[]; + /** + * Creates a new `PerformanceMark` entry in the Performance Timeline. + * A `PerformanceMark` is a subclass of `PerformanceEntry` whose `performanceEntry.entryType` is always `'mark'`, + * and whose `performanceEntry.duration` is always `0`. + * Performance marks are used to mark specific significant moments in the Performance Timeline. + * + * The created `PerformanceMark` entry is put in the global Performance Timeline and can be queried with + * `performance.getEntries`, `performance.getEntriesByName`, and `performance.getEntriesByType`. When the observation is + * performed, the entries should be cleared from the global Performance Timeline manually with `performance.clearMarks`. + * @param name + */ + mark(name: string, options?: MarkOptions): PerformanceMark; + /** + * Creates a new `PerformanceResourceTiming` entry in the Resource Timeline. + * A `PerformanceResourceTiming` is a subclass of `PerformanceEntry` whose `performanceEntry.entryType` is always `'resource'`. + * Performance resources are used to mark moments in the Resource Timeline. + * @param timingInfo [Fetch Timing Info](https://fetch.spec.whatwg.org/#fetch-timing-info) + * @param requestedUrl The resource url + * @param initiatorType The initiator name, e.g: 'fetch' + * @param global + * @param cacheMode The cache mode must be an empty string ('') or 'local' + * @since v18.2.0, v16.17.0 + */ + markResourceTiming( + timingInfo: object, + requestedUrl: string, + initiatorType: string, + global: object, + cacheMode: "" | "local", + ): PerformanceResourceTiming; + /** + * Creates a new PerformanceMeasure entry in the Performance Timeline. + * A PerformanceMeasure is a subclass of PerformanceEntry whose performanceEntry.entryType is always 'measure', + * and whose performanceEntry.duration measures the number of milliseconds elapsed since startMark and endMark. + * + * The startMark argument may identify any existing PerformanceMark in the the Performance Timeline, or may identify + * any of the timestamp properties provided by the PerformanceNodeTiming class. If the named startMark does not exist, + * then startMark is set to timeOrigin by default. + * + * The endMark argument must identify any existing PerformanceMark in the the Performance Timeline or any of the timestamp + * properties provided by the PerformanceNodeTiming class. If the named endMark does not exist, an error will be thrown. + * @param name + * @param startMark + * @param endMark + * @return The PerformanceMeasure entry that was created + */ + measure(name: string, startMark?: string, endMark?: string): PerformanceMeasure; + measure(name: string, options: MeasureOptions): PerformanceMeasure; + /** + * _This property is an extension by Node.js. It is not available in Web browsers._ + * + * An instance of the `PerformanceNodeTiming` class that provides performance metrics for specific Node.js operational milestones. + * @since v8.5.0 + */ + readonly nodeTiming: PerformanceNodeTiming; + /** + * Returns the current high resolution millisecond timestamp, where 0 represents the start of the current `node` process. + * @since v8.5.0 + */ + now(): number; + /** + * Sets the global performance resource timing buffer size to the specified number of "resource" type performance entry objects. + * + * By default the max buffer size is set to 250. + * @since v18.8.0 + */ + setResourceTimingBufferSize(maxSize: number): void; + /** + * The [`timeOrigin`](https://w3c.github.io/hr-time/#dom-performance-timeorigin) specifies the high resolution millisecond timestamp + * at which the current `node` process began, measured in Unix time. + * @since v8.5.0 + */ + readonly timeOrigin: number; + /** + * _This property is an extension by Node.js. It is not available in Web browsers._ + * + * Wraps a function within a new function that measures the running time of the wrapped function. + * A `PerformanceObserver` must be subscribed to the `'function'` event type in order for the timing details to be accessed. + * + * ```js + * import { + * performance, + * PerformanceObserver, + * } from 'node:perf_hooks'; + * + * function someFunction() { + * console.log('hello world'); + * } + * + * const wrapped = performance.timerify(someFunction); + * + * const obs = new PerformanceObserver((list) => { + * console.log(list.getEntries()[0].duration); + * + * performance.clearMarks(); + * performance.clearMeasures(); + * obs.disconnect(); + * }); + * obs.observe({ entryTypes: ['function'] }); + * + * // A performance timeline entry will be created + * wrapped(); + * ``` + * + * If the wrapped function returns a promise, a finally handler will be attached to the promise and the duration will be reported + * once the finally handler is invoked. + * @param fn + */ + timerify any>(fn: T, options?: TimerifyOptions): T; + /** + * An object which is JSON representation of the performance object. It is similar to + * [`window.performance.toJSON`](https://developer.mozilla.org/en-US/docs/Web/API/Performance/toJSON) in browsers. + * @since v16.1.0 + */ + toJSON(): any; + } + class PerformanceObserverEntryList { + /** + * Returns a list of `PerformanceEntry` objects in chronological order + * with respect to `performanceEntry.startTime`. + * + * ```js + * import { + * performance, + * PerformanceObserver, + * } from 'node:perf_hooks'; + * + * const obs = new PerformanceObserver((perfObserverList, observer) => { + * console.log(perfObserverList.getEntries()); + * + * * [ + * * PerformanceEntry { + * * name: 'test', + * * entryType: 'mark', + * * startTime: 81.465639, + * * duration: 0, + * * detail: null + * * }, + * * PerformanceEntry { + * * name: 'meow', + * * entryType: 'mark', + * * startTime: 81.860064, + * * duration: 0, + * * detail: null + * * } + * * ] + * + * performance.clearMarks(); + * performance.clearMeasures(); + * observer.disconnect(); + * }); + * obs.observe({ type: 'mark' }); + * + * performance.mark('test'); + * performance.mark('meow'); + * ``` + * @since v8.5.0 + */ + getEntries(): PerformanceEntry[]; + /** + * Returns a list of `PerformanceEntry` objects in chronological order + * with respect to `performanceEntry.startTime` whose `performanceEntry.name` is + * equal to `name`, and optionally, whose `performanceEntry.entryType` is equal to`type`. + * + * ```js + * import { + * performance, + * PerformanceObserver, + * } from 'node:perf_hooks'; + * + * const obs = new PerformanceObserver((perfObserverList, observer) => { + * console.log(perfObserverList.getEntriesByName('meow')); + * + * * [ + * * PerformanceEntry { + * * name: 'meow', + * * entryType: 'mark', + * * startTime: 98.545991, + * * duration: 0, + * * detail: null + * * } + * * ] + * + * console.log(perfObserverList.getEntriesByName('nope')); // [] + * + * console.log(perfObserverList.getEntriesByName('test', 'mark')); + * + * * [ + * * PerformanceEntry { + * * name: 'test', + * * entryType: 'mark', + * * startTime: 63.518931, + * * duration: 0, + * * detail: null + * * } + * * ] + * + * console.log(perfObserverList.getEntriesByName('test', 'measure')); // [] + * + * performance.clearMarks(); + * performance.clearMeasures(); + * observer.disconnect(); + * }); + * obs.observe({ entryTypes: ['mark', 'measure'] }); + * + * performance.mark('test'); + * performance.mark('meow'); + * ``` + * @since v8.5.0 + */ + getEntriesByName(name: string, type?: EntryType): PerformanceEntry[]; + /** + * Returns a list of `PerformanceEntry` objects in chronological order + * with respect to `performanceEntry.startTime` whose `performanceEntry.entryType` is equal to `type`. + * + * ```js + * import { + * performance, + * PerformanceObserver, + * } from 'node:perf_hooks'; + * + * const obs = new PerformanceObserver((perfObserverList, observer) => { + * console.log(perfObserverList.getEntriesByType('mark')); + * + * * [ + * * PerformanceEntry { + * * name: 'test', + * * entryType: 'mark', + * * startTime: 55.897834, + * * duration: 0, + * * detail: null + * * }, + * * PerformanceEntry { + * * name: 'meow', + * * entryType: 'mark', + * * startTime: 56.350146, + * * duration: 0, + * * detail: null + * * } + * * ] + * + * performance.clearMarks(); + * performance.clearMeasures(); + * observer.disconnect(); + * }); + * obs.observe({ type: 'mark' }); + * + * performance.mark('test'); + * performance.mark('meow'); + * ``` + * @since v8.5.0 + */ + getEntriesByType(type: EntryType): PerformanceEntry[]; + } + type PerformanceObserverCallback = (list: PerformanceObserverEntryList, observer: PerformanceObserver) => void; + /** + * @since v8.5.0 + */ + class PerformanceObserver extends AsyncResource { + constructor(callback: PerformanceObserverCallback); + /** + * Disconnects the `PerformanceObserver` instance from all notifications. + * @since v8.5.0 + */ + disconnect(): void; + /** + * Subscribes the `PerformanceObserver` instance to notifications of new `PerformanceEntry` instances identified either by `options.entryTypes` or `options.type`: + * + * ```js + * import { + * performance, + * PerformanceObserver, + * } from 'node:perf_hooks'; + * + * const obs = new PerformanceObserver((list, observer) => { + * // Called once asynchronously. `list` contains three items. + * }); + * obs.observe({ type: 'mark' }); + * + * for (let n = 0; n < 3; n++) + * performance.mark(`test${n}`); + * ``` + * @since v8.5.0 + */ + observe( + options: + | { + entryTypes: readonly EntryType[]; + buffered?: boolean | undefined; + } + | { + type: EntryType; + buffered?: boolean | undefined; + }, + ): void; + /** + * @since v16.0.0 + * @returns Current list of entries stored in the performance observer, emptying it out. + */ + takeRecords(): PerformanceEntry[]; + } + /** + * Provides detailed network timing data regarding the loading of an application's resources. + * + * The constructor of this class is not exposed to users directly. + * @since v18.2.0, v16.17.0 + */ + class PerformanceResourceTiming extends PerformanceEntry { + readonly entryType: "resource"; + protected constructor(); + /** + * The high resolution millisecond timestamp at immediately before dispatching the `fetch` + * request. If the resource is not intercepted by a worker the property will always return 0. + * @since v18.2.0, v16.17.0 + */ + readonly workerStart: number; + /** + * The high resolution millisecond timestamp that represents the start time of the fetch which + * initiates the redirect. + * @since v18.2.0, v16.17.0 + */ + readonly redirectStart: number; + /** + * The high resolution millisecond timestamp that will be created immediately after receiving + * the last byte of the response of the last redirect. + * @since v18.2.0, v16.17.0 + */ + readonly redirectEnd: number; + /** + * The high resolution millisecond timestamp immediately before the Node.js starts to fetch the resource. + * @since v18.2.0, v16.17.0 + */ + readonly fetchStart: number; + /** + * The high resolution millisecond timestamp immediately before the Node.js starts the domain name lookup + * for the resource. + * @since v18.2.0, v16.17.0 + */ + readonly domainLookupStart: number; + /** + * The high resolution millisecond timestamp representing the time immediately after the Node.js finished + * the domain name lookup for the resource. + * @since v18.2.0, v16.17.0 + */ + readonly domainLookupEnd: number; + /** + * The high resolution millisecond timestamp representing the time immediately before Node.js starts to + * establish the connection to the server to retrieve the resource. + * @since v18.2.0, v16.17.0 + */ + readonly connectStart: number; + /** + * The high resolution millisecond timestamp representing the time immediately after Node.js finishes + * establishing the connection to the server to retrieve the resource. + * @since v18.2.0, v16.17.0 + */ + readonly connectEnd: number; + /** + * The high resolution millisecond timestamp representing the time immediately before Node.js starts the + * handshake process to secure the current connection. + * @since v18.2.0, v16.17.0 + */ + readonly secureConnectionStart: number; + /** + * The high resolution millisecond timestamp representing the time immediately before Node.js receives the + * first byte of the response from the server. + * @since v18.2.0, v16.17.0 + */ + readonly requestStart: number; + /** + * The high resolution millisecond timestamp representing the time immediately after Node.js receives the + * last byte of the resource or immediately before the transport connection is closed, whichever comes first. + * @since v18.2.0, v16.17.0 + */ + readonly responseEnd: number; + /** + * A number representing the size (in octets) of the fetched resource. The size includes the response header + * fields plus the response payload body. + * @since v18.2.0, v16.17.0 + */ + readonly transferSize: number; + /** + * A number representing the size (in octets) received from the fetch (HTTP or cache), of the payload body, before + * removing any applied content-codings. + * @since v18.2.0, v16.17.0 + */ + readonly encodedBodySize: number; + /** + * A number representing the size (in octets) received from the fetch (HTTP or cache), of the message body, after + * removing any applied content-codings. + * @since v18.2.0, v16.17.0 + */ + readonly decodedBodySize: number; + /** + * Returns a `object` that is the JSON representation of the `PerformanceResourceTiming` object + * @since v18.2.0, v16.17.0 + */ + toJSON(): any; + } + namespace constants { + const NODE_PERFORMANCE_GC_MAJOR: number; + const NODE_PERFORMANCE_GC_MINOR: number; + const NODE_PERFORMANCE_GC_INCREMENTAL: number; + const NODE_PERFORMANCE_GC_WEAKCB: number; + const NODE_PERFORMANCE_GC_FLAGS_NO: number; + const NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED: number; + const NODE_PERFORMANCE_GC_FLAGS_FORCED: number; + const NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING: number; + const NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE: number; + const NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY: number; + const NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE: number; + } + const performance: Performance; + interface EventLoopMonitorOptions { + /** + * The sampling rate in milliseconds. + * Must be greater than zero. + * @default 10 + */ + resolution?: number | undefined; + } + interface Histogram { + /** + * The number of samples recorded by the histogram. + * @since v17.4.0, v16.14.0 + */ + readonly count: number; + /** + * The number of samples recorded by the histogram. + * v17.4.0, v16.14.0 + */ + readonly countBigInt: bigint; + /** + * The number of times the event loop delay exceeded the maximum 1 hour event + * loop delay threshold. + * @since v11.10.0 + */ + readonly exceeds: number; + /** + * The number of times the event loop delay exceeded the maximum 1 hour event loop delay threshold. + * @since v17.4.0, v16.14.0 + */ + readonly exceedsBigInt: bigint; + /** + * The maximum recorded event loop delay. + * @since v11.10.0 + */ + readonly max: number; + /** + * The maximum recorded event loop delay. + * v17.4.0, v16.14.0 + */ + readonly maxBigInt: number; + /** + * The mean of the recorded event loop delays. + * @since v11.10.0 + */ + readonly mean: number; + /** + * The minimum recorded event loop delay. + * @since v11.10.0 + */ + readonly min: number; + /** + * The minimum recorded event loop delay. + * v17.4.0, v16.14.0 + */ + readonly minBigInt: bigint; + /** + * Returns the value at the given percentile. + * @since v11.10.0 + * @param percentile A percentile value in the range (0, 100]. + */ + percentile(percentile: number): number; + /** + * Returns the value at the given percentile. + * @since v17.4.0, v16.14.0 + * @param percentile A percentile value in the range (0, 100]. + */ + percentileBigInt(percentile: number): bigint; + /** + * Returns a `Map` object detailing the accumulated percentile distribution. + * @since v11.10.0 + */ + readonly percentiles: Map; + /** + * Returns a `Map` object detailing the accumulated percentile distribution. + * @since v17.4.0, v16.14.0 + */ + readonly percentilesBigInt: Map; + /** + * Resets the collected histogram data. + * @since v11.10.0 + */ + reset(): void; + /** + * The standard deviation of the recorded event loop delays. + * @since v11.10.0 + */ + readonly stddev: number; + } + interface IntervalHistogram extends Histogram { + /** + * Enables the update interval timer. Returns `true` if the timer was + * started, `false` if it was already started. + * @since v11.10.0 + */ + enable(): boolean; + /** + * Disables the update interval timer. Returns `true` if the timer was + * stopped, `false` if it was already stopped. + * @since v11.10.0 + */ + disable(): boolean; + } + interface RecordableHistogram extends Histogram { + /** + * @since v15.9.0, v14.18.0 + * @param val The amount to record in the histogram. + */ + record(val: number | bigint): void; + /** + * Calculates the amount of time (in nanoseconds) that has passed since the + * previous call to `recordDelta()` and records that amount in the histogram. + * @since v15.9.0, v14.18.0 + */ + recordDelta(): void; + /** + * Adds the values from `other` to this histogram. + * @since v17.4.0, v16.14.0 + */ + add(other: RecordableHistogram): void; + } + /** + * _This property is an extension by Node.js. It is not available in Web browsers._ + * + * Creates an `IntervalHistogram` object that samples and reports the event loop + * delay over time. The delays will be reported in nanoseconds. + * + * Using a timer to detect approximate event loop delay works because the + * execution of timers is tied specifically to the lifecycle of the libuv + * event loop. That is, a delay in the loop will cause a delay in the execution + * of the timer, and those delays are specifically what this API is intended to + * detect. + * + * ```js + * import { monitorEventLoopDelay } from 'node:perf_hooks'; + * const h = monitorEventLoopDelay({ resolution: 20 }); + * h.enable(); + * // Do something. + * h.disable(); + * console.log(h.min); + * console.log(h.max); + * console.log(h.mean); + * console.log(h.stddev); + * console.log(h.percentiles); + * console.log(h.percentile(50)); + * console.log(h.percentile(99)); + * ``` + * @since v11.10.0 + */ + function monitorEventLoopDelay(options?: EventLoopMonitorOptions): IntervalHistogram; + interface CreateHistogramOptions { + /** + * The minimum recordable value. Must be an integer value greater than 0. + * @default 1 + */ + lowest?: number | bigint | undefined; + /** + * The maximum recordable value. Must be an integer value greater than min. + * @default Number.MAX_SAFE_INTEGER + */ + highest?: number | bigint | undefined; + /** + * The number of accuracy digits. Must be a number between 1 and 5. + * @default 3 + */ + figures?: number | undefined; + } + /** + * Returns a `RecordableHistogram`. + * @since v15.9.0, v14.18.0 + */ + function createHistogram(options?: CreateHistogramOptions): RecordableHistogram; + import { + performance as _performance, + PerformanceEntry as _PerformanceEntry, + PerformanceMark as _PerformanceMark, + PerformanceMeasure as _PerformanceMeasure, + PerformanceObserver as _PerformanceObserver, + PerformanceObserverEntryList as _PerformanceObserverEntryList, + PerformanceResourceTiming as _PerformanceResourceTiming, + } from "perf_hooks"; + global { + /** + * `PerformanceEntry` is a global reference for `import { PerformanceEntry } from 'node:node:perf_hooks'` + * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performanceentry + * @since v19.0.0 + */ + var PerformanceEntry: typeof globalThis extends { + onmessage: any; + PerformanceEntry: infer T; + } ? T + : typeof _PerformanceEntry; + /** + * `PerformanceMark` is a global reference for `import { PerformanceMark } from 'node:node:perf_hooks'` + * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performancemark + * @since v19.0.0 + */ + var PerformanceMark: typeof globalThis extends { + onmessage: any; + PerformanceMark: infer T; + } ? T + : typeof _PerformanceMark; + /** + * `PerformanceMeasure` is a global reference for `import { PerformanceMeasure } from 'node:node:perf_hooks'` + * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performancemeasure + * @since v19.0.0 + */ + var PerformanceMeasure: typeof globalThis extends { + onmessage: any; + PerformanceMeasure: infer T; + } ? T + : typeof _PerformanceMeasure; + /** + * `PerformanceObserver` is a global reference for `import { PerformanceObserver } from 'node:node:perf_hooks'` + * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performanceobserver + * @since v19.0.0 + */ + var PerformanceObserver: typeof globalThis extends { + onmessage: any; + PerformanceObserver: infer T; + } ? T + : typeof _PerformanceObserver; + /** + * `PerformanceObserverEntryList` is a global reference for `import { PerformanceObserverEntryList } from 'node:node:perf_hooks'` + * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performanceobserverentrylist + * @since v19.0.0 + */ + var PerformanceObserverEntryList: typeof globalThis extends { + onmessage: any; + PerformanceObserverEntryList: infer T; + } ? T + : typeof _PerformanceObserverEntryList; + /** + * `PerformanceResourceTiming` is a global reference for `import { PerformanceResourceTiming } from 'node:node:perf_hooks'` + * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performanceresourcetiming + * @since v19.0.0 + */ + var PerformanceResourceTiming: typeof globalThis extends { + onmessage: any; + PerformanceResourceTiming: infer T; + } ? T + : typeof _PerformanceResourceTiming; + /** + * `performance` is a global reference for `import { performance } from 'node:node:perf_hooks'` + * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performance + * @since v16.0.0 + */ + var performance: typeof globalThis extends { + onmessage: any; + performance: infer T; + } ? T + : typeof _performance; + } +} +declare module "node:perf_hooks" { + export * from "perf_hooks"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/process.d.ts b/backend/node_modules/httpx/node_modules/@types/node/process.d.ts new file mode 100644 index 0000000..a120b0e --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/process.d.ts @@ -0,0 +1,1966 @@ +declare module "process" { + import { Control, MessageOptions, SendHandle } from "node:child_process"; + import { PathLike } from "node:fs"; + import * as tty from "node:tty"; + import { Worker } from "node:worker_threads"; + + interface BuiltInModule { + "assert": typeof import("assert"); + "node:assert": typeof import("node:assert"); + "assert/strict": typeof import("assert/strict"); + "node:assert/strict": typeof import("node:assert/strict"); + "async_hooks": typeof import("async_hooks"); + "node:async_hooks": typeof import("node:async_hooks"); + "buffer": typeof import("buffer"); + "node:buffer": typeof import("node:buffer"); + "child_process": typeof import("child_process"); + "node:child_process": typeof import("node:child_process"); + "cluster": typeof import("cluster"); + "node:cluster": typeof import("node:cluster"); + "console": typeof import("console"); + "node:console": typeof import("node:console"); + "constants": typeof import("constants"); + "node:constants": typeof import("node:constants"); + "crypto": typeof import("crypto"); + "node:crypto": typeof import("node:crypto"); + "dgram": typeof import("dgram"); + "node:dgram": typeof import("node:dgram"); + "diagnostics_channel": typeof import("diagnostics_channel"); + "node:diagnostics_channel": typeof import("node:diagnostics_channel"); + "dns": typeof import("dns"); + "node:dns": typeof import("node:dns"); + "dns/promises": typeof import("dns/promises"); + "node:dns/promises": typeof import("node:dns/promises"); + "domain": typeof import("domain"); + "node:domain": typeof import("node:domain"); + "events": typeof import("events"); + "node:events": typeof import("node:events"); + "fs": typeof import("fs"); + "node:fs": typeof import("node:fs"); + "fs/promises": typeof import("fs/promises"); + "node:fs/promises": typeof import("node:fs/promises"); + "http": typeof import("http"); + "node:http": typeof import("node:http"); + "http2": typeof import("http2"); + "node:http2": typeof import("node:http2"); + "https": typeof import("https"); + "node:https": typeof import("node:https"); + "inspector": typeof import("inspector"); + "node:inspector": typeof import("node:inspector"); + "inspector/promises": typeof import("inspector/promises"); + "node:inspector/promises": typeof import("node:inspector/promises"); + "module": typeof import("module"); + "node:module": typeof import("node:module"); + "net": typeof import("net"); + "node:net": typeof import("node:net"); + "os": typeof import("os"); + "node:os": typeof import("node:os"); + "path": typeof import("path"); + "node:path": typeof import("node:path"); + "path/posix": typeof import("path/posix"); + "node:path/posix": typeof import("node:path/posix"); + "path/win32": typeof import("path/win32"); + "node:path/win32": typeof import("node:path/win32"); + "perf_hooks": typeof import("perf_hooks"); + "node:perf_hooks": typeof import("node:perf_hooks"); + "process": typeof import("process"); + "node:process": typeof import("node:process"); + "punycode": typeof import("punycode"); + "node:punycode": typeof import("node:punycode"); + "querystring": typeof import("querystring"); + "node:querystring": typeof import("node:querystring"); + "readline": typeof import("readline"); + "node:readline": typeof import("node:readline"); + "readline/promises": typeof import("readline/promises"); + "node:readline/promises": typeof import("node:readline/promises"); + "repl": typeof import("repl"); + "node:repl": typeof import("node:repl"); + "node:sea": typeof import("node:sea"); + "stream": typeof import("stream"); + "node:stream": typeof import("node:stream"); + "stream/consumers": typeof import("stream/consumers"); + "node:stream/consumers": typeof import("node:stream/consumers"); + "stream/promises": typeof import("stream/promises"); + "node:stream/promises": typeof import("node:stream/promises"); + "stream/web": typeof import("stream/web"); + "node:stream/web": typeof import("node:stream/web"); + "string_decoder": typeof import("string_decoder"); + "node:string_decoder": typeof import("node:string_decoder"); + "node:test": typeof import("node:test"); + "node:test/reporters": typeof import("node:test/reporters"); + "timers": typeof import("timers"); + "node:timers": typeof import("node:timers"); + "timers/promises": typeof import("timers/promises"); + "node:timers/promises": typeof import("node:timers/promises"); + "tls": typeof import("tls"); + "node:tls": typeof import("node:tls"); + "trace_events": typeof import("trace_events"); + "node:trace_events": typeof import("node:trace_events"); + "tty": typeof import("tty"); + "node:tty": typeof import("node:tty"); + "url": typeof import("url"); + "node:url": typeof import("node:url"); + "util": typeof import("util"); + "node:util": typeof import("node:util"); + "sys": typeof import("util"); + "node:sys": typeof import("node:util"); + "util/types": typeof import("util/types"); + "node:util/types": typeof import("node:util/types"); + "v8": typeof import("v8"); + "node:v8": typeof import("node:v8"); + "vm": typeof import("vm"); + "node:vm": typeof import("node:vm"); + "wasi": typeof import("wasi"); + "node:wasi": typeof import("node:wasi"); + "worker_threads": typeof import("worker_threads"); + "node:worker_threads": typeof import("node:worker_threads"); + "zlib": typeof import("zlib"); + "node:zlib": typeof import("node:zlib"); + } + + global { + var process: NodeJS.Process; + namespace NodeJS { + // this namespace merge is here because these are specifically used + // as the type for process.stdin, process.stdout, and process.stderr. + // they can't live in tty.d.ts because we need to disambiguate the imported name. + interface ReadStream extends tty.ReadStream {} + interface WriteStream extends tty.WriteStream {} + interface MemoryUsageFn { + /** + * The `process.memoryUsage()` method iterate over each page to gather informations about memory + * usage which can be slow depending on the program memory allocations. + */ + (): MemoryUsage; + /** + * method returns an integer representing the Resident Set Size (RSS) in bytes. + */ + rss(): number; + } + interface MemoryUsage { + /** + * Resident Set Size, is the amount of space occupied in the main memory device (that is a subset of the total allocated memory) for the + * process, including all C++ and JavaScript objects and code. + */ + rss: number; + /** + * Refers to V8's memory usage. + */ + heapTotal: number; + /** + * Refers to V8's memory usage. + */ + heapUsed: number; + external: number; + /** + * Refers to memory allocated for `ArrayBuffer`s and `SharedArrayBuffer`s, including all Node.js Buffers. This is also included + * in the external value. When Node.js is used as an embedded library, this value may be `0` because allocations for `ArrayBuffer`s + * may not be tracked in that case. + */ + arrayBuffers: number; + } + interface CpuUsage { + user: number; + system: number; + } + interface ProcessRelease { + name: string; + sourceUrl?: string | undefined; + headersUrl?: string | undefined; + libUrl?: string | undefined; + lts?: string | undefined; + } + interface ProcessFeatures { + /** + * A boolean value that is `true` if the current Node.js build is caching builtin modules. + * @since v12.0.0 + */ + readonly cached_builtins: boolean; + /** + * A boolean value that is `true` if the current Node.js build is a debug build. + * @since v0.5.5 + */ + readonly debug: boolean; + /** + * A boolean value that is `true` if the current Node.js build includes the inspector. + * @since v11.10.0 + */ + readonly inspector: boolean; + /** + * A boolean value that is `true` if the current Node.js build includes support for IPv6. + * @since v0.5.3 + */ + readonly ipv6: boolean; + /** + * A boolean value that is `true` if the current Node.js build supports + * [loading ECMAScript modules using `require()`](https://nodejs.org/docs/latest-v20.x/api/modules.html#loading-ecmascript-modules-using-require). + * @since v20.19.0 + */ + readonly require_module: boolean; + /** + * A boolean value that is `true` if the current Node.js build includes support for TLS. + * @since v0.5.3 + */ + readonly tls: boolean; + /** + * A boolean value that is `true` if the current Node.js build includes support for ALPN in TLS. + * @since v4.8.0 + */ + readonly tls_alpn: boolean; + /** + * A boolean value that is `true` if the current Node.js build includes support for OCSP in TLS. + * @since v0.11.13 + */ + readonly tls_ocsp: boolean; + /** + * A boolean value that is `true` if the current Node.js build includes support for SNI in TLS. + * @since v0.5.3 + */ + readonly tls_sni: boolean; + /** + * A boolean value that is `true` if the current Node.js build includes support for libuv. + * @since v0.5.3 + */ + readonly uv: boolean; + } + interface ProcessVersions extends Dict { + http_parser: string; + node: string; + v8: string; + ares: string; + uv: string; + zlib: string; + modules: string; + openssl: string; + } + type Platform = + | "aix" + | "android" + | "darwin" + | "freebsd" + | "haiku" + | "linux" + | "openbsd" + | "sunos" + | "win32" + | "cygwin" + | "netbsd"; + type Architecture = + | "arm" + | "arm64" + | "ia32" + | "loong64" + | "mips" + | "mipsel" + | "ppc" + | "ppc64" + | "riscv64" + | "s390" + | "s390x" + | "x64"; + type Signals = + | "SIGABRT" + | "SIGALRM" + | "SIGBUS" + | "SIGCHLD" + | "SIGCONT" + | "SIGFPE" + | "SIGHUP" + | "SIGILL" + | "SIGINT" + | "SIGIO" + | "SIGIOT" + | "SIGKILL" + | "SIGPIPE" + | "SIGPOLL" + | "SIGPROF" + | "SIGPWR" + | "SIGQUIT" + | "SIGSEGV" + | "SIGSTKFLT" + | "SIGSTOP" + | "SIGSYS" + | "SIGTERM" + | "SIGTRAP" + | "SIGTSTP" + | "SIGTTIN" + | "SIGTTOU" + | "SIGUNUSED" + | "SIGURG" + | "SIGUSR1" + | "SIGUSR2" + | "SIGVTALRM" + | "SIGWINCH" + | "SIGXCPU" + | "SIGXFSZ" + | "SIGBREAK" + | "SIGLOST" + | "SIGINFO"; + type UncaughtExceptionOrigin = "uncaughtException" | "unhandledRejection"; + type MultipleResolveType = "resolve" | "reject"; + type BeforeExitListener = (code: number) => void; + type DisconnectListener = () => void; + type ExitListener = (code: number) => void; + type RejectionHandledListener = (promise: Promise) => void; + type UncaughtExceptionListener = (error: Error, origin: UncaughtExceptionOrigin) => void; + /** + * Most of the time the unhandledRejection will be an Error, but this should not be relied upon + * as *anything* can be thrown/rejected, it is therefore unsafe to assume that the value is an Error. + */ + type UnhandledRejectionListener = (reason: unknown, promise: Promise) => void; + type WarningListener = (warning: Error) => void; + type MessageListener = (message: unknown, sendHandle: SendHandle) => void; + type SignalsListener = (signal: Signals) => void; + type MultipleResolveListener = ( + type: MultipleResolveType, + promise: Promise, + value: unknown, + ) => void; + type WorkerListener = (worker: Worker) => void; + interface Socket extends ReadWriteStream { + isTTY?: true | undefined; + } + // Alias for compatibility + interface ProcessEnv extends Dict { + /** + * Can be used to change the default timezone at runtime + */ + TZ?: string | undefined; + } + interface HRTime { + /** + * This is the legacy version of {@link process.hrtime.bigint()} + * before bigint was introduced in JavaScript. + * + * The `process.hrtime()` method returns the current high-resolution real time in a `[seconds, nanoseconds]` tuple `Array`, + * where `nanoseconds` is the remaining part of the real time that can't be represented in second precision. + * + * `time` is an optional parameter that must be the result of a previous `process.hrtime()` call to diff with the current time. + * If the parameter passed in is not a tuple `Array`, a TypeError will be thrown. + * Passing in a user-defined array instead of the result of a previous call to `process.hrtime()` will lead to undefined behavior. + * + * These times are relative to an arbitrary time in the past, + * and not related to the time of day and therefore not subject to clock drift. + * The primary use is for measuring performance between intervals: + * ```js + * const { hrtime } = require('node:process'); + * const NS_PER_SEC = 1e9; + * const time = hrtime(); + * // [ 1800216, 25 ] + * + * setTimeout(() => { + * const diff = hrtime(time); + * // [ 1, 552 ] + * + * console.log(`Benchmark took ${diff[0] * NS_PER_SEC + diff[1]} nanoseconds`); + * // Benchmark took 1000000552 nanoseconds + * }, 1000); + * ``` + * @since 0.7.6 + * @legacy Use {@link process.hrtime.bigint()} instead. + * @param time The result of a previous call to `process.hrtime()` + */ + (time?: [number, number]): [number, number]; + /** + * The `bigint` version of the {@link process.hrtime()} method returning the current high-resolution real time in nanoseconds as a `bigint`. + * + * Unlike {@link process.hrtime()}, it does not support an additional time argument since the difference can just be computed directly by subtraction of the two `bigint`s. + * ```js + * import { hrtime } from 'node:process'; + * + * const start = hrtime.bigint(); + * // 191051479007711n + * + * setTimeout(() => { + * const end = hrtime.bigint(); + * // 191052633396993n + * + * console.log(`Benchmark took ${end - start} nanoseconds`); + * // Benchmark took 1154389282 nanoseconds + * }, 1000); + * ``` + * @since v10.7.0 + */ + bigint(): bigint; + } + interface ProcessPermission { + /** + * Verifies that the process is able to access the given scope and reference. + * If no reference is provided, a global scope is assumed, for instance, `process.permission.has('fs.read')` + * will check if the process has ALL file system read permissions. + * + * The reference has a meaning based on the provided scope. For example, the reference when the scope is File System means files and folders. + * + * The available scopes are: + * + * * `fs` - All File System + * * `fs.read` - File System read operations + * * `fs.write` - File System write operations + * * `child` - Child process spawning operations + * * `worker` - Worker thread spawning operation + * + * ```js + * // Check if the process has permission to read the README file + * process.permission.has('fs.read', './README.md'); + * // Check if the process has read permission operations + * process.permission.has('fs.read'); + * ``` + * @since v20.0.0 + */ + has(scope: string, reference?: string): boolean; + } + interface ProcessReport { + /** + * Write reports in a compact format, single-line JSON, more easily consumable by log processing systems + * than the default multi-line format designed for human consumption. + * @since v13.12.0, v12.17.0 + */ + compact: boolean; + /** + * Directory where the report is written. + * The default value is the empty string, indicating that reports are written to the current + * working directory of the Node.js process. + */ + directory: string; + /** + * Filename where the report is written. If set to the empty string, the output filename will be comprised + * of a timestamp, PID, and sequence number. The default value is the empty string. + */ + filename: string; + /** + * Returns a JavaScript Object representation of a diagnostic report for the running process. + * The report's JavaScript stack trace is taken from `err`, if present. + */ + getReport(err?: Error): object; + /** + * If true, a diagnostic report is generated on fatal errors, + * such as out of memory errors or failed C++ assertions. + * @default false + */ + reportOnFatalError: boolean; + /** + * If true, a diagnostic report is generated when the process + * receives the signal specified by process.report.signal. + * @default false + */ + reportOnSignal: boolean; + /** + * If true, a diagnostic report is generated on uncaught exception. + * @default false + */ + reportOnUncaughtException: boolean; + /** + * The signal used to trigger the creation of a diagnostic report. + * @default 'SIGUSR2' + */ + signal: Signals; + /** + * Writes a diagnostic report to a file. If filename is not provided, the default filename + * includes the date, time, PID, and a sequence number. + * The report's JavaScript stack trace is taken from `err`, if present. + * + * If the value of filename is set to `'stdout'` or `'stderr'`, the report is written + * to the stdout or stderr of the process respectively. + * @param fileName Name of the file where the report is written. + * This should be a relative path, that will be appended to the directory specified in + * `process.report.directory`, or the current working directory of the Node.js process, + * if unspecified. + * @param err A custom error used for reporting the JavaScript stack. + * @return Filename of the generated report. + */ + writeReport(fileName?: string, err?: Error): string; + writeReport(err?: Error): string; + } + interface ResourceUsage { + fsRead: number; + fsWrite: number; + involuntaryContextSwitches: number; + ipcReceived: number; + ipcSent: number; + majorPageFault: number; + maxRSS: number; + minorPageFault: number; + sharedMemorySize: number; + signalsCount: number; + swappedOut: number; + systemCPUTime: number; + unsharedDataSize: number; + unsharedStackSize: number; + userCPUTime: number; + voluntaryContextSwitches: number; + } + interface EmitWarningOptions { + /** + * When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted. + * + * @default 'Warning' + */ + type?: string | undefined; + /** + * A unique identifier for the warning instance being emitted. + */ + code?: string | undefined; + /** + * When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace. + * + * @default process.emitWarning + */ + ctor?: Function | undefined; + /** + * Additional text to include with the error. + */ + detail?: string | undefined; + } + interface ProcessConfig { + readonly target_defaults: { + readonly cflags: any[]; + readonly default_configuration: string; + readonly defines: string[]; + readonly include_dirs: string[]; + readonly libraries: string[]; + }; + readonly variables: { + readonly clang: number; + readonly host_arch: string; + readonly node_install_npm: boolean; + readonly node_install_waf: boolean; + readonly node_prefix: string; + readonly node_shared_openssl: boolean; + readonly node_shared_v8: boolean; + readonly node_shared_zlib: boolean; + readonly node_use_dtrace: boolean; + readonly node_use_etw: boolean; + readonly node_use_openssl: boolean; + readonly target_arch: string; + readonly v8_no_strict_aliasing: number; + readonly v8_use_snapshot: boolean; + readonly visibility: string; + }; + } + interface Process extends EventEmitter { + /** + * The `process.stdout` property returns a stream connected to`stdout` (fd `1`). It is a `net.Socket` (which is a `Duplex` stream) unless fd `1` refers to a file, in which case it is + * a `Writable` stream. + * + * For example, to copy `process.stdin` to `process.stdout`: + * + * ```js + * import { stdin, stdout } from 'node:process'; + * + * stdin.pipe(stdout); + * ``` + * + * `process.stdout` differs from other Node.js streams in important ways. See `note on process I/O` for more information. + */ + stdout: WriteStream & { + fd: 1; + }; + /** + * The `process.stderr` property returns a stream connected to`stderr` (fd `2`). It is a `net.Socket` (which is a `Duplex` stream) unless fd `2` refers to a file, in which case it is + * a `Writable` stream. + * + * `process.stderr` differs from other Node.js streams in important ways. See `note on process I/O` for more information. + */ + stderr: WriteStream & { + fd: 2; + }; + /** + * The `process.stdin` property returns a stream connected to`stdin` (fd `0`). It is a `net.Socket` (which is a `Duplex` stream) unless fd `0` refers to a file, in which case it is + * a `Readable` stream. + * + * For details of how to read from `stdin` see `readable.read()`. + * + * As a `Duplex` stream, `process.stdin` can also be used in "old" mode that + * is compatible with scripts written for Node.js prior to v0.10\. + * For more information see `Stream compatibility`. + * + * In "old" streams mode the `stdin` stream is paused by default, so one + * must call `process.stdin.resume()` to read from it. Note also that calling `process.stdin.resume()` itself would switch stream to "old" mode. + */ + stdin: ReadStream & { + fd: 0; + }; + /** + * The `process.argv` property returns an array containing the command-line + * arguments passed when the Node.js process was launched. The first element will + * be {@link execPath}. See `process.argv0` if access to the original value + * of `argv[0]` is needed. The second element will be the path to the JavaScript + * file being executed. The remaining elements will be any additional command-line + * arguments. + * + * For example, assuming the following script for `process-args.js`: + * + * ```js + * import { argv } from 'node:process'; + * + * // print process.argv + * argv.forEach((val, index) => { + * console.log(`${index}: ${val}`); + * }); + * ``` + * + * Launching the Node.js process as: + * + * ```bash + * node process-args.js one two=three four + * ``` + * + * Would generate the output: + * + * ```text + * 0: /usr/local/bin/node + * 1: /Users/mjr/work/node/process-args.js + * 2: one + * 3: two=three + * 4: four + * ``` + * @since v0.1.27 + */ + argv: string[]; + /** + * The `process.argv0` property stores a read-only copy of the original value of`argv[0]` passed when Node.js starts. + * + * ```console + * $ bash -c 'exec -a customArgv0 ./node' + * > process.argv[0] + * '/Volumes/code/external/node/out/Release/node' + * > process.argv0 + * 'customArgv0' + * ``` + * @since v6.4.0 + */ + argv0: string; + /** + * The `process.execArgv` property returns the set of Node.js-specific command-line + * options passed when the Node.js process was launched. These options do not + * appear in the array returned by the {@link argv} property, and do not + * include the Node.js executable, the name of the script, or any options following + * the script name. These options are useful in order to spawn child processes with + * the same execution environment as the parent. + * + * ```bash + * node --icu-data-dir=./foo --require ./bar.js script.js --version + * ``` + * + * Results in `process.execArgv`: + * + * ```js + * ["--icu-data-dir=./foo", "--require", "./bar.js"] + * ``` + * + * And `process.argv`: + * + * ```js + * ['/usr/local/bin/node', 'script.js', '--version'] + * ``` + * + * Refer to `Worker constructor` for the detailed behavior of worker + * threads with this property. + * @since v0.7.7 + */ + execArgv: string[]; + /** + * The `process.execPath` property returns the absolute pathname of the executable + * that started the Node.js process. Symbolic links, if any, are resolved. + * + * ```js + * '/usr/local/bin/node' + * ``` + * @since v0.1.100 + */ + execPath: string; + /** + * The `process.abort()` method causes the Node.js process to exit immediately and + * generate a core file. + * + * This feature is not available in `Worker` threads. + * @since v0.7.0 + */ + abort(): never; + /** + * The `process.chdir()` method changes the current working directory of the + * Node.js process or throws an exception if doing so fails (for instance, if + * the specified `directory` does not exist). + * + * ```js + * import { chdir, cwd } from 'node:process'; + * + * console.log(`Starting directory: ${cwd()}`); + * try { + * chdir('/tmp'); + * console.log(`New directory: ${cwd()}`); + * } catch (err) { + * console.error(`chdir: ${err}`); + * } + * ``` + * + * This feature is not available in `Worker` threads. + * @since v0.1.17 + */ + chdir(directory: string): void; + /** + * The `process.cwd()` method returns the current working directory of the Node.js + * process. + * + * ```js + * import { cwd } from 'node:process'; + * + * console.log(`Current directory: ${cwd()}`); + * ``` + * @since v0.1.8 + */ + cwd(): string; + /** + * The port used by the Node.js debugger when enabled. + * + * ```js + * import process from 'node:process'; + * + * process.debugPort = 5858; + * ``` + * @since v0.7.2 + */ + debugPort: number; + /** + * The `process.dlopen()` method allows dynamically loading shared objects. It is primarily used by `require()` to load C++ Addons, and + * should not be used directly, except in special cases. In other words, `require()` should be preferred over `process.dlopen()` + * unless there are specific reasons such as custom dlopen flags or loading from ES modules. + * + * The `flags` argument is an integer that allows to specify dlopen behavior. See the `[os.constants.dlopen](https://nodejs.org/docs/latest-v20.x/api/os.html#dlopen-constants)` + * documentation for details. + * + * An important requirement when calling `process.dlopen()` is that the `module` instance must be passed. Functions exported by the C++ Addon + * are then accessible via `module.exports`. + * + * The example below shows how to load a C++ Addon, named `local.node`, that exports a `foo` function. All the symbols are loaded before the call returns, by passing the `RTLD_NOW` constant. + * In this example the constant is assumed to be available. + * + * ```js + * import { dlopen } from 'node:process'; + * import { constants } from 'node:os'; + * import { fileURLToPath } from 'node:url'; + * + * const module = { exports: {} }; + * dlopen(module, fileURLToPath(new URL('local.node', import.meta.url)), + * constants.dlopen.RTLD_NOW); + * module.exports.foo(); + * ``` + */ + dlopen(module: object, filename: string, flags?: number): void; + /** + * The `process.emitWarning()` method can be used to emit custom or application + * specific process warnings. These can be listened for by adding a handler to the `'warning'` event. + * + * ```js + * import { emitWarning } from 'node:process'; + * + * // Emit a warning using a string. + * emitWarning('Something happened!'); + * // Emits: (node: 56338) Warning: Something happened! + * ``` + * + * ```js + * import { emitWarning } from 'node:process'; + * + * // Emit a warning using a string and a type. + * emitWarning('Something Happened!', 'CustomWarning'); + * // Emits: (node:56338) CustomWarning: Something Happened! + * ``` + * + * ```js + * import { emitWarning } from 'node:process'; + * + * emitWarning('Something happened!', 'CustomWarning', 'WARN001'); + * // Emits: (node:56338) [WARN001] CustomWarning: Something happened! + * ```js + * + * In each of the previous examples, an `Error` object is generated internally by `process.emitWarning()` and passed through to the `'warning'` handler. + * + * ```js + * import process from 'node:process'; + * + * process.on('warning', (warning) => { + * console.warn(warning.name); // 'Warning' + * console.warn(warning.message); // 'Something happened!' + * console.warn(warning.code); // 'MY_WARNING' + * console.warn(warning.stack); // Stack trace + * console.warn(warning.detail); // 'This is some additional information' + * }); + * ``` + * + * If `warning` is passed as an `Error` object, it will be passed through to the `'warning'` event handler + * unmodified (and the optional `type`, `code` and `ctor` arguments will be ignored): + * + * ```js + * import { emitWarning } from 'node:process'; + * + * // Emit a warning using an Error object. + * const myWarning = new Error('Something happened!'); + * // Use the Error name property to specify the type name + * myWarning.name = 'CustomWarning'; + * myWarning.code = 'WARN001'; + * + * emitWarning(myWarning); + * // Emits: (node:56338) [WARN001] CustomWarning: Something happened! + * ``` + * + * A `TypeError` is thrown if `warning` is anything other than a string or `Error` object. + * + * While process warnings use `Error` objects, the process warning mechanism is not a replacement for normal error handling mechanisms. + * + * The following additional handling is implemented if the warning `type` is `'DeprecationWarning'`: + * * If the `--throw-deprecation` command-line flag is used, the deprecation warning is thrown as an exception rather than being emitted as an event. + * * If the `--no-deprecation` command-line flag is used, the deprecation warning is suppressed. + * * If the `--trace-deprecation` command-line flag is used, the deprecation warning is printed to `stderr` along with the full stack trace. + * @since v8.0.0 + * @param warning The warning to emit. + */ + emitWarning(warning: string | Error, ctor?: Function): void; + emitWarning(warning: string | Error, type?: string, ctor?: Function): void; + emitWarning(warning: string | Error, type?: string, code?: string, ctor?: Function): void; + emitWarning(warning: string | Error, options?: EmitWarningOptions): void; + /** + * The `process.env` property returns an object containing the user environment. + * See [`environ(7)`](http://man7.org/linux/man-pages/man7/environ.7.html). + * + * An example of this object looks like: + * + * ```js + * { + * TERM: 'xterm-256color', + * SHELL: '/usr/local/bin/bash', + * USER: 'maciej', + * PATH: '~/.bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin', + * PWD: '/Users/maciej', + * EDITOR: 'vim', + * SHLVL: '1', + * HOME: '/Users/maciej', + * LOGNAME: 'maciej', + * _: '/usr/local/bin/node' + * } + * ``` + * + * It is possible to modify this object, but such modifications will not be + * reflected outside the Node.js process, or (unless explicitly requested) + * to other `Worker` threads. + * In other words, the following example would not work: + * + * ```bash + * node -e 'process.env.foo = "bar"' && echo $foo + * ``` + * + * While the following will: + * + * ```js + * import { env } from 'node:process'; + * + * env.foo = 'bar'; + * console.log(env.foo); + * ``` + * + * Assigning a property on `process.env` will implicitly convert the value + * to a string. **This behavior is deprecated.** Future versions of Node.js may + * throw an error when the value is not a string, number, or boolean. + * + * ```js + * import { env } from 'node:process'; + * + * env.test = null; + * console.log(env.test); + * // => 'null' + * env.test = undefined; + * console.log(env.test); + * // => 'undefined' + * ``` + * + * Use `delete` to delete a property from `process.env`. + * + * ```js + * import { env } from 'node:process'; + * + * env.TEST = 1; + * delete env.TEST; + * console.log(env.TEST); + * // => undefined + * ``` + * + * On Windows operating systems, environment variables are case-insensitive. + * + * ```js + * import { env } from 'node:process'; + * + * env.TEST = 1; + * console.log(env.test); + * // => 1 + * ``` + * + * Unless explicitly specified when creating a `Worker` instance, + * each `Worker` thread has its own copy of `process.env`, based on its + * parent thread's `process.env`, or whatever was specified as the `env` option + * to the `Worker` constructor. Changes to `process.env` will not be visible + * across `Worker` threads, and only the main thread can make changes that + * are visible to the operating system or to native add-ons. On Windows, a copy of `process.env` on a `Worker` instance operates in a case-sensitive manner + * unlike the main thread. + * @since v0.1.27 + */ + env: ProcessEnv; + /** + * The `process.exit()` method instructs Node.js to terminate the process + * synchronously with an exit status of `code`. If `code` is omitted, exit uses + * either the 'success' code `0` or the value of `process.exitCode` if it has been + * set. Node.js will not terminate until all the `'exit'` event listeners are + * called. + * + * To exit with a 'failure' code: + * + * ```js + * import { exit } from 'node:process'; + * + * exit(1); + * ``` + * + * The shell that executed Node.js should see the exit code as `1`. + * + * Calling `process.exit()` will force the process to exit as quickly as possible + * even if there are still asynchronous operations pending that have not yet + * completed fully, including I/O operations to `process.stdout` and `process.stderr`. + * + * In most situations, it is not actually necessary to call `process.exit()` explicitly. The Node.js process will exit on its own _if there is no additional_ + * _work pending_ in the event loop. The `process.exitCode` property can be set to + * tell the process which exit code to use when the process exits gracefully. + * + * For instance, the following example illustrates a _misuse_ of the `process.exit()` method that could lead to data printed to stdout being + * truncated and lost: + * + * ```js + * import { exit } from 'node:process'; + * + * // This is an example of what *not* to do: + * if (someConditionNotMet()) { + * printUsageToStdout(); + * exit(1); + * } + * ``` + * + * The reason this is problematic is because writes to `process.stdout` in Node.js + * are sometimes _asynchronous_ and may occur over multiple ticks of the Node.js + * event loop. Calling `process.exit()`, however, forces the process to exit _before_ those additional writes to `stdout` can be performed. + * + * Rather than calling `process.exit()` directly, the code _should_ set the `process.exitCode` and allow the process to exit naturally by avoiding + * scheduling any additional work for the event loop: + * + * ```js + * import process from 'node:process'; + * + * // How to properly set the exit code while letting + * // the process exit gracefully. + * if (someConditionNotMet()) { + * printUsageToStdout(); + * process.exitCode = 1; + * } + * ``` + * + * If it is necessary to terminate the Node.js process due to an error condition, + * throwing an _uncaught_ error and allowing the process to terminate accordingly + * is safer than calling `process.exit()`. + * + * In `Worker` threads, this function stops the current thread rather + * than the current process. + * @since v0.1.13 + * @param [code=0] The exit code. For string type, only integer strings (e.g.,'1') are allowed. + */ + exit(code?: number | string | null): never; + /** + * A number which will be the process exit code, when the process either + * exits gracefully, or is exited via {@link exit} without specifying + * a code. + * + * Specifying a code to {@link exit} will override any + * previous setting of `process.exitCode`. + * @default undefined + * @since v0.11.8 + */ + exitCode: number | string | number | undefined; + /** + * The `process.getActiveResourcesInfo()` method returns an array of strings containing + * the types of the active resources that are currently keeping the event loop alive. + * + * ```js + * import { getActiveResourcesInfo } from 'node:process'; + * import { setTimeout } from 'node:timers'; + + * console.log('Before:', getActiveResourcesInfo()); + * setTimeout(() => {}, 1000); + * console.log('After:', getActiveResourcesInfo()); + * // Prints: + * // Before: [ 'TTYWrap', 'TTYWrap', 'TTYWrap' ] + * // After: [ 'TTYWrap', 'TTYWrap', 'TTYWrap', 'Timeout' ] + * ``` + * @since v17.3.0, v16.14.0 + */ + getActiveResourcesInfo(): string[]; + /** + * Provides a way to load built-in modules in a globally available function. + * @param id ID of the built-in module being requested. + * @since v20.16.0 + */ + getBuiltinModule(id: ID): BuiltInModule[ID]; + getBuiltinModule(id: string): object | undefined; + /** + * The `process.getgid()` method returns the numerical group identity of the + * process. (See [`getgid(2)`](http://man7.org/linux/man-pages/man2/getgid.2.html).) + * + * ```js + * import process from 'node:process'; + * + * if (process.getgid) { + * console.log(`Current gid: ${process.getgid()}`); + * } + * ``` + * + * This function is only available on POSIX platforms (i.e. not Windows or + * Android). + * @since v0.1.31 + */ + getgid?: () => number; + /** + * The `process.setgid()` method sets the group identity of the process. (See [`setgid(2)`](http://man7.org/linux/man-pages/man2/setgid.2.html).) The `id` can be passed as either a + * numeric ID or a group name + * string. If a group name is specified, this method blocks while resolving the + * associated numeric ID. + * + * ```js + * import process from 'node:process'; + * + * if (process.getgid && process.setgid) { + * console.log(`Current gid: ${process.getgid()}`); + * try { + * process.setgid(501); + * console.log(`New gid: ${process.getgid()}`); + * } catch (err) { + * console.log(`Failed to set gid: ${err}`); + * } + * } + * ``` + * + * This function is only available on POSIX platforms (i.e. not Windows or + * Android). + * This feature is not available in `Worker` threads. + * @since v0.1.31 + * @param id The group name or ID + */ + setgid?: (id: number | string) => void; + /** + * The `process.getuid()` method returns the numeric user identity of the process. + * (See [`getuid(2)`](http://man7.org/linux/man-pages/man2/getuid.2.html).) + * + * ```js + * import process from 'node:process'; + * + * if (process.getuid) { + * console.log(`Current uid: ${process.getuid()}`); + * } + * ``` + * + * This function is only available on POSIX platforms (i.e. not Windows or + * Android). + * @since v0.1.28 + */ + getuid?: () => number; + /** + * The `process.setuid(id)` method sets the user identity of the process. (See [`setuid(2)`](http://man7.org/linux/man-pages/man2/setuid.2.html).) The `id` can be passed as either a + * numeric ID or a username string. + * If a username is specified, the method blocks while resolving the associated + * numeric ID. + * + * ```js + * import process from 'node:process'; + * + * if (process.getuid && process.setuid) { + * console.log(`Current uid: ${process.getuid()}`); + * try { + * process.setuid(501); + * console.log(`New uid: ${process.getuid()}`); + * } catch (err) { + * console.log(`Failed to set uid: ${err}`); + * } + * } + * ``` + * + * This function is only available on POSIX platforms (i.e. not Windows or + * Android). + * This feature is not available in `Worker` threads. + * @since v0.1.28 + */ + setuid?: (id: number | string) => void; + /** + * The `process.geteuid()` method returns the numerical effective user identity of + * the process. (See [`geteuid(2)`](http://man7.org/linux/man-pages/man2/geteuid.2.html).) + * + * ```js + * import process from 'node:process'; + * + * if (process.geteuid) { + * console.log(`Current uid: ${process.geteuid()}`); + * } + * ``` + * + * This function is only available on POSIX platforms (i.e. not Windows or + * Android). + * @since v2.0.0 + */ + geteuid?: () => number; + /** + * The `process.seteuid()` method sets the effective user identity of the process. + * (See [`seteuid(2)`](http://man7.org/linux/man-pages/man2/seteuid.2.html).) The `id` can be passed as either a numeric ID or a username + * string. If a username is specified, the method blocks while resolving the + * associated numeric ID. + * + * ```js + * import process from 'node:process'; + * + * if (process.geteuid && process.seteuid) { + * console.log(`Current uid: ${process.geteuid()}`); + * try { + * process.seteuid(501); + * console.log(`New uid: ${process.geteuid()}`); + * } catch (err) { + * console.log(`Failed to set uid: ${err}`); + * } + * } + * ``` + * + * This function is only available on POSIX platforms (i.e. not Windows or + * Android). + * This feature is not available in `Worker` threads. + * @since v2.0.0 + * @param id A user name or ID + */ + seteuid?: (id: number | string) => void; + /** + * The `process.getegid()` method returns the numerical effective group identity + * of the Node.js process. (See [`getegid(2)`](http://man7.org/linux/man-pages/man2/getegid.2.html).) + * + * ```js + * import process from 'node:process'; + * + * if (process.getegid) { + * console.log(`Current gid: ${process.getegid()}`); + * } + * ``` + * + * This function is only available on POSIX platforms (i.e. not Windows or + * Android). + * @since v2.0.0 + */ + getegid?: () => number; + /** + * The `process.setegid()` method sets the effective group identity of the process. + * (See [`setegid(2)`](http://man7.org/linux/man-pages/man2/setegid.2.html).) The `id` can be passed as either a numeric ID or a group + * name string. If a group name is specified, this method blocks while resolving + * the associated a numeric ID. + * + * ```js + * import process from 'node:process'; + * + * if (process.getegid && process.setegid) { + * console.log(`Current gid: ${process.getegid()}`); + * try { + * process.setegid(501); + * console.log(`New gid: ${process.getegid()}`); + * } catch (err) { + * console.log(`Failed to set gid: ${err}`); + * } + * } + * ``` + * + * This function is only available on POSIX platforms (i.e. not Windows or + * Android). + * This feature is not available in `Worker` threads. + * @since v2.0.0 + * @param id A group name or ID + */ + setegid?: (id: number | string) => void; + /** + * The `process.getgroups()` method returns an array with the supplementary group + * IDs. POSIX leaves it unspecified if the effective group ID is included but + * Node.js ensures it always is. + * + * ```js + * import process from 'node:process'; + * + * if (process.getgroups) { + * console.log(process.getgroups()); // [ 16, 21, 297 ] + * } + * ``` + * + * This function is only available on POSIX platforms (i.e. not Windows or + * Android). + * @since v0.9.4 + */ + getgroups?: () => number[]; + /** + * The `process.setgroups()` method sets the supplementary group IDs for the + * Node.js process. This is a privileged operation that requires the Node.js + * process to have `root` or the `CAP_SETGID` capability. + * + * The `groups` array can contain numeric group IDs, group names, or both. + * + * ```js + * import process from 'node:process'; + * + * if (process.getgroups && process.setgroups) { + * try { + * process.setgroups([501]); + * console.log(process.getgroups()); // new groups + * } catch (err) { + * console.log(`Failed to set groups: ${err}`); + * } + * } + * ``` + * + * This function is only available on POSIX platforms (i.e. not Windows or + * Android). + * This feature is not available in `Worker` threads. + * @since v0.9.4 + */ + setgroups?: (groups: ReadonlyArray) => void; + /** + * The `process.setUncaughtExceptionCaptureCallback()` function sets a function + * that will be invoked when an uncaught exception occurs, which will receive the + * exception value itself as its first argument. + * + * If such a function is set, the `'uncaughtException'` event will + * not be emitted. If `--abort-on-uncaught-exception` was passed from the + * command line or set through `v8.setFlagsFromString()`, the process will + * not abort. Actions configured to take place on exceptions such as report + * generations will be affected too + * + * To unset the capture function, `process.setUncaughtExceptionCaptureCallback(null)` may be used. Calling this + * method with a non-`null` argument while another capture function is set will + * throw an error. + * + * Using this function is mutually exclusive with using the deprecated `domain` built-in module. + * @since v9.3.0 + */ + setUncaughtExceptionCaptureCallback(cb: ((err: Error) => void) | null): void; + /** + * Indicates whether a callback has been set using {@link setUncaughtExceptionCaptureCallback}. + * @since v9.3.0 + */ + hasUncaughtExceptionCaptureCallback(): boolean; + /** + * The `process.sourceMapsEnabled` property returns whether the [Source Map v3](https://sourcemaps.info/spec.html) support for stack traces is enabled. + * @since v20.7.0 + * @experimental + */ + readonly sourceMapsEnabled: boolean; + /** + * This function enables or disables the [Source Map v3](https://sourcemaps.info/spec.html) support for + * stack traces. + * + * It provides same features as launching Node.js process with commandline options `--enable-source-maps`. + * + * Only source maps in JavaScript files that are loaded after source maps has been + * enabled will be parsed and loaded. + * @since v16.6.0, v14.18.0 + * @experimental + */ + setSourceMapsEnabled(value: boolean): void; + /** + * The `process.version` property contains the Node.js version string. + * + * ```js + * import { version } from 'node:process'; + * + * console.log(`Version: ${version}`); + * // Version: v14.8.0 + * ``` + * + * To get the version string without the prepended _v_, use`process.versions.node`. + * @since v0.1.3 + */ + readonly version: string; + /** + * The `process.versions` property returns an object listing the version strings of + * Node.js and its dependencies. `process.versions.modules` indicates the current + * ABI version, which is increased whenever a C++ API changes. Node.js will refuse + * to load modules that were compiled against a different module ABI version. + * + * ```js + * import { versions } from 'node:process'; + * + * console.log(versions); + * ``` + * + * Will generate an object similar to: + * + * ```console + * { node: '20.2.0', + * acorn: '8.8.2', + * ada: '2.4.0', + * ares: '1.19.0', + * base64: '0.5.0', + * brotli: '1.0.9', + * cjs_module_lexer: '1.2.2', + * cldr: '43.0', + * icu: '73.1', + * llhttp: '8.1.0', + * modules: '115', + * napi: '8', + * nghttp2: '1.52.0', + * nghttp3: '0.7.0', + * ngtcp2: '0.8.1', + * openssl: '3.0.8+quic', + * simdutf: '3.2.9', + * tz: '2023c', + * undici: '5.22.0', + * unicode: '15.0', + * uv: '1.44.2', + * uvwasi: '0.0.16', + * v8: '11.3.244.8-node.9', + * zlib: '1.2.13' } + * ``` + * @since v0.2.0 + */ + readonly versions: ProcessVersions; + /** + * The `process.config` property returns a frozen `Object` containing the + * JavaScript representation of the configure options used to compile the current + * Node.js executable. This is the same as the `config.gypi` file that was produced + * when running the `./configure` script. + * + * An example of the possible output looks like: + * + * ```js + * { + * target_defaults: + * { cflags: [], + * default_configuration: 'Release', + * defines: [], + * include_dirs: [], + * libraries: [] }, + * variables: + * { + * host_arch: 'x64', + * napi_build_version: 5, + * node_install_npm: 'true', + * node_prefix: '', + * node_shared_cares: 'false', + * node_shared_http_parser: 'false', + * node_shared_libuv: 'false', + * node_shared_zlib: 'false', + * node_use_openssl: 'true', + * node_shared_openssl: 'false', + * strict_aliasing: 'true', + * target_arch: 'x64', + * v8_use_snapshot: 1 + * } + * } + * ``` + * @since v0.7.7 + */ + readonly config: ProcessConfig; + /** + * The `process.kill()` method sends the `signal` to the process identified by`pid`. + * + * Signal names are strings such as `'SIGINT'` or `'SIGHUP'`. See `Signal Events` and [`kill(2)`](http://man7.org/linux/man-pages/man2/kill.2.html) for more information. + * + * This method will throw an error if the target `pid` does not exist. As a special + * case, a signal of `0` can be used to test for the existence of a process. + * Windows platforms will throw an error if the `pid` is used to kill a process + * group. + * + * Even though the name of this function is `process.kill()`, it is really just a + * signal sender, like the `kill` system call. The signal sent may do something + * other than kill the target process. + * + * ```js + * import process, { kill } from 'node:process'; + * + * process.on('SIGHUP', () => { + * console.log('Got SIGHUP signal.'); + * }); + * + * setTimeout(() => { + * console.log('Exiting.'); + * process.exit(0); + * }, 100); + * + * kill(process.pid, 'SIGHUP'); + * ``` + * + * When `SIGUSR1` is received by a Node.js process, Node.js will start the + * debugger. See `Signal Events`. + * @since v0.0.6 + * @param pid A process ID + * @param [signal='SIGTERM'] The signal to send, either as a string or number. + */ + kill(pid: number, signal?: string | number): true; + /** + * Loads the environment configuration from a `.env` file into `process.env`. If + * the file is not found, error will be thrown. + * + * To load a specific .env file by specifying its path, use the following code: + * + * ```js + * import { loadEnvFile } from 'node:process'; + * + * loadEnvFile('./development.env') + * ``` + * @since v20.12.0 + * @param path The path to the .env file + */ + loadEnvFile(path?: PathLike): void; + /** + * The `process.pid` property returns the PID of the process. + * + * ```js + * import { pid } from 'node:process'; + * + * console.log(`This process is pid ${pid}`); + * ``` + * @since v0.1.15 + */ + readonly pid: number; + /** + * The `process.ppid` property returns the PID of the parent of the + * current process. + * + * ```js + * import { ppid } from 'node:process'; + * + * console.log(`The parent process is pid ${ppid}`); + * ``` + * @since v9.2.0, v8.10.0, v6.13.0 + */ + readonly ppid: number; + /** + * The `process.title` property returns the current process title (i.e. returns + * the current value of `ps`). Assigning a new value to `process.title` modifies + * the current value of `ps`. + * + * When a new value is assigned, different platforms will impose different maximum + * length restrictions on the title. Usually such restrictions are quite limited. + * For instance, on Linux and macOS, `process.title` is limited to the size of the + * binary name plus the length of the command-line arguments because setting the `process.title` overwrites the `argv` memory of the process. Node.js v0.8 + * allowed for longer process title strings by also overwriting the `environ` memory but that was potentially insecure and confusing in some (rather obscure) + * cases. + * + * Assigning a value to `process.title` might not result in an accurate label + * within process manager applications such as macOS Activity Monitor or Windows + * Services Manager. + * @since v0.1.104 + */ + title: string; + /** + * The operating system CPU architecture for which the Node.js binary was compiled. + * Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'loong64'`, `'mips'`, `'mipsel'`, `'ppc'`, `'ppc64'`, `'riscv64'`, `'s390'`, `'s390x'`, and `'x64'`. + * + * ```js + * import { arch } from 'node:process'; + * + * console.log(`This processor architecture is ${arch}`); + * ``` + * @since v0.5.0 + */ + readonly arch: Architecture; + /** + * The `process.platform` property returns a string identifying the operating + * system platform for which the Node.js binary was compiled. + * + * Currently possible values are: + * + * * `'aix'` + * * `'darwin'` + * * `'freebsd'` + * * `'linux'` + * * `'openbsd'` + * * `'sunos'` + * * `'win32'` + * + * ```js + * import { platform } from 'node:process'; + * + * console.log(`This platform is ${platform}`); + * ``` + * + * The value `'android'` may also be returned if the Node.js is built on the + * Android operating system. However, Android support in Node.js [is experimental](https://github.com/nodejs/node/blob/HEAD/BUILDING.md#androidandroid-based-devices-eg-firefox-os). + * @since v0.1.16 + */ + readonly platform: Platform; + /** + * The `process.mainModule` property provides an alternative way of retrieving `require.main`. The difference is that if the main module changes at + * runtime, `require.main` may still refer to the original main module in + * modules that were required before the change occurred. Generally, it's + * safe to assume that the two refer to the same module. + * + * As with `require.main`, `process.mainModule` will be `undefined` if there + * is no entry script. + * @since v0.1.17 + * @deprecated Since v14.0.0 - Use `main` instead. + */ + mainModule?: Module; + memoryUsage: MemoryUsageFn; + /** + * Gets the amount of memory available to the process (in bytes) based on + * limits imposed by the OS. If there is no such constraint, or the constraint + * is unknown, `0` is returned. + * + * See [`uv_get_constrained_memory`](https://docs.libuv.org/en/v1.x/misc.html#c.uv_get_constrained_memory) for more + * information. + * @since v19.6.0, v18.15.0 + * @experimental + */ + constrainedMemory(): number; + /** + * Gets the amount of free memory that is still available to the process (in bytes). + * See [`uv_get_available_memory`](https://nodejs.org/docs/latest-v20.x/api/process.html#processavailablememory) for more information. + * @experimental + * @since v20.13.0 + */ + availableMemory(): number; + /** + * The `process.cpuUsage()` method returns the user and system CPU time usage of + * the current process, in an object with properties `user` and `system`, whose + * values are microsecond values (millionth of a second). These values measure time + * spent in user and system code respectively, and may end up being greater than + * actual elapsed time if multiple CPU cores are performing work for this process. + * + * The result of a previous call to `process.cpuUsage()` can be passed as the + * argument to the function, to get a diff reading. + * + * ```js + * import { cpuUsage } from 'node:process'; + * + * const startUsage = cpuUsage(); + * // { user: 38579, system: 6986 } + * + * // spin the CPU for 500 milliseconds + * const now = Date.now(); + * while (Date.now() - now < 500); + * + * console.log(cpuUsage(startUsage)); + * // { user: 514883, system: 11226 } + * ``` + * @since v6.1.0 + * @param previousValue A previous return value from calling `process.cpuUsage()` + */ + cpuUsage(previousValue?: CpuUsage): CpuUsage; + /** + * `process.nextTick()` adds `callback` to the "next tick queue". This queue is + * fully drained after the current operation on the JavaScript stack runs to + * completion and before the event loop is allowed to continue. It's possible to + * create an infinite loop if one were to recursively call `process.nextTick()`. + * See the [Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#process-nexttick) guide for more background. + * + * ```js + * import { nextTick } from 'node:process'; + * + * console.log('start'); + * nextTick(() => { + * console.log('nextTick callback'); + * }); + * console.log('scheduled'); + * // Output: + * // start + * // scheduled + * // nextTick callback + * ``` + * + * This is important when developing APIs in order to give users the opportunity + * to assign event handlers _after_ an object has been constructed but before any + * I/O has occurred: + * + * ```js + * import { nextTick } from 'node:process'; + * + * function MyThing(options) { + * this.setupOptions(options); + * + * nextTick(() => { + * this.startDoingStuff(); + * }); + * } + * + * const thing = new MyThing(); + * thing.getReadyForStuff(); + * + * // thing.startDoingStuff() gets called now, not before. + * ``` + * + * It is very important for APIs to be either 100% synchronous or 100% + * asynchronous. Consider this example: + * + * ```js + * // WARNING! DO NOT USE! BAD UNSAFE HAZARD! + * function maybeSync(arg, cb) { + * if (arg) { + * cb(); + * return; + * } + * + * fs.stat('file', cb); + * } + * ``` + * + * This API is hazardous because in the following case: + * + * ```js + * const maybeTrue = Math.random() > 0.5; + * + * maybeSync(maybeTrue, () => { + * foo(); + * }); + * + * bar(); + * ``` + * + * It is not clear whether `foo()` or `bar()` will be called first. + * + * The following approach is much better: + * + * ```js + * import { nextTick } from 'node:process'; + * + * function definitelyAsync(arg, cb) { + * if (arg) { + * nextTick(cb); + * return; + * } + * + * fs.stat('file', cb); + * } + * ``` + * @since v0.1.26 + * @param args Additional arguments to pass when invoking the `callback` + */ + nextTick(callback: Function, ...args: any[]): void; + /** + * The process.noDeprecation property indicates whether the --no-deprecation flag is set on the current Node.js process. + * See the documentation for the ['warning' event](https://nodejs.org/docs/latest/api/process.html#event-warning) and the [emitWarning()](https://nodejs.org/docs/latest/api/process.html#processemitwarningwarning-type-code-ctor) method for more information about this flag's behavior. + */ + noDeprecation?: boolean; + /** + * This API is available through the [--experimental-permission](https://nodejs.org/api/cli.html#--experimental-permission) flag. + * + * `process.permission` is an object whose methods are used to manage permissions for the current process. + * Additional documentation is available in the [Permission Model](https://nodejs.org/api/permissions.html#permission-model). + * @since v20.0.0 + */ + permission: ProcessPermission; + /** + * The `process.release` property returns an `Object` containing metadata related + * to the current release, including URLs for the source tarball and headers-only + * tarball. + * + * `process.release` contains the following properties: + * + * ```js + * { + * name: 'node', + * lts: 'Hydrogen', + * sourceUrl: 'https://nodejs.org/download/release/v18.12.0/node-v18.12.0.tar.gz', + * headersUrl: 'https://nodejs.org/download/release/v18.12.0/node-v18.12.0-headers.tar.gz', + * libUrl: 'https://nodejs.org/download/release/v18.12.0/win-x64/node.lib' + * } + * ``` + * + * In custom builds from non-release versions of the source tree, only the `name` property may be present. The additional properties should not be + * relied upon to exist. + * @since v3.0.0 + */ + readonly release: ProcessRelease; + readonly features: ProcessFeatures; + /** + * `process.umask()` returns the Node.js process's file mode creation mask. Child + * processes inherit the mask from the parent process. + * @since v0.1.19 + * @deprecated Calling `process.umask()` with no argument causes the process-wide umask to be written twice. This introduces a race condition between threads, and is a potential + * security vulnerability. There is no safe, cross-platform alternative API. + */ + umask(): number; + /** + * Can only be set if not in worker thread. + */ + umask(mask: string | number): number; + /** + * The `process.uptime()` method returns the number of seconds the current Node.js + * process has been running. + * + * The return value includes fractions of a second. Use `Math.floor()` to get whole + * seconds. + * @since v0.5.0 + */ + uptime(): number; + hrtime: HRTime; + /** + * If the Node.js process was spawned with an IPC channel, the process.channel property is a reference to the IPC channel. + * If no IPC channel exists, this property is undefined. + * @since v7.1.0 + */ + channel?: Control; + /** + * If Node.js is spawned with an IPC channel, the `process.send()` method can be + * used to send messages to the parent process. Messages will be received as a `'message'` event on the parent's `ChildProcess` object. + * + * If Node.js was not spawned with an IPC channel, `process.send` will be `undefined`. + * + * The message goes through serialization and parsing. The resulting message might + * not be the same as what is originally sent. + * @since v0.5.9 + * @param options used to parameterize the sending of certain types of handles. `options` supports the following properties: + */ + send?( + message: any, + sendHandle?: SendHandle, + options?: MessageOptions, + callback?: (error: Error | null) => void, + ): boolean; + send?( + message: any, + sendHandle: SendHandle, + callback?: (error: Error | null) => void, + ): boolean; + send?( + message: any, + callback: (error: Error | null) => void, + ): boolean; + /** + * If the Node.js process is spawned with an IPC channel (see the `Child Process` and `Cluster` documentation), the `process.disconnect()` method will close the + * IPC channel to the parent process, allowing the child process to exit gracefully + * once there are no other connections keeping it alive. + * + * The effect of calling `process.disconnect()` is the same as calling `ChildProcess.disconnect()` from the parent process. + * + * If the Node.js process was not spawned with an IPC channel, `process.disconnect()` will be `undefined`. + * @since v0.7.2 + */ + disconnect(): void; + /** + * If the Node.js process is spawned with an IPC channel (see the `Child Process` and `Cluster` documentation), the `process.connected` property will return `true` so long as the IPC + * channel is connected and will return `false` after `process.disconnect()` is called. + * + * Once `process.connected` is `false`, it is no longer possible to send messages + * over the IPC channel using `process.send()`. + * @since v0.7.2 + */ + connected: boolean; + /** + * The `process.allowedNodeEnvironmentFlags` property is a special, + * read-only `Set` of flags allowable within the `NODE_OPTIONS` environment variable. + * + * `process.allowedNodeEnvironmentFlags` extends `Set`, but overrides `Set.prototype.has` to recognize several different possible flag + * representations. `process.allowedNodeEnvironmentFlags.has()` will + * return `true` in the following cases: + * + * * Flags may omit leading single (`-`) or double (`--`) dashes; e.g., `inspect-brk` for `--inspect-brk`, or `r` for `-r`. + * * Flags passed through to V8 (as listed in `--v8-options`) may replace + * one or more _non-leading_ dashes for an underscore, or vice-versa; + * e.g., `--perf_basic_prof`, `--perf-basic-prof`, `--perf_basic-prof`, + * etc. + * * Flags may contain one or more equals (`=`) characters; all + * characters after and including the first equals will be ignored; + * e.g., `--stack-trace-limit=100`. + * * Flags _must_ be allowable within `NODE_OPTIONS`. + * + * When iterating over `process.allowedNodeEnvironmentFlags`, flags will + * appear only _once_; each will begin with one or more dashes. Flags + * passed through to V8 will contain underscores instead of non-leading + * dashes: + * + * ```js + * import { allowedNodeEnvironmentFlags } from 'node:process'; + * + * allowedNodeEnvironmentFlags.forEach((flag) => { + * // -r + * // --inspect-brk + * // --abort_on_uncaught_exception + * // ... + * }); + * ``` + * + * The methods `add()`, `clear()`, and `delete()` of`process.allowedNodeEnvironmentFlags` do nothing, and will fail + * silently. + * + * If Node.js was compiled _without_ `NODE_OPTIONS` support (shown in {@link config}), `process.allowedNodeEnvironmentFlags` will + * contain what _would have_ been allowable. + * @since v10.10.0 + */ + allowedNodeEnvironmentFlags: ReadonlySet; + /** + * `process.report` is an object whose methods are used to generate diagnostic reports for the current process. + * Additional documentation is available in the [report documentation](https://nodejs.org/docs/latest-v20.x/api/report.html). + * @since v11.8.0 + */ + report: ProcessReport; + /** + * ```js + * import { resourceUsage } from 'node:process'; + * + * console.log(resourceUsage()); + * /* + * Will output: + * { + * userCPUTime: 82872, + * systemCPUTime: 4143, + * maxRSS: 33164, + * sharedMemorySize: 0, + * unsharedDataSize: 0, + * unsharedStackSize: 0, + * minorPageFault: 2469, + * majorPageFault: 0, + * swappedOut: 0, + * fsRead: 0, + * fsWrite: 8, + * ipcSent: 0, + * ipcReceived: 0, + * signalsCount: 0, + * voluntaryContextSwitches: 79, + * involuntaryContextSwitches: 1 + * } + * + * ``` + * @since v12.6.0 + * @return the resource usage for the current process. All of these values come from the `uv_getrusage` call which returns a [`uv_rusage_t` struct][uv_rusage_t]. + */ + resourceUsage(): ResourceUsage; + /** + * The initial value of `process.throwDeprecation` indicates whether the `--throw-deprecation` flag is set on the current Node.js process. `process.throwDeprecation` + * is mutable, so whether or not deprecation warnings result in errors may be altered at runtime. See the documentation for the 'warning' event and the emitWarning() + * method for more information. + * + * ```bash + * $ node --throw-deprecation -p "process.throwDeprecation" + * true + * $ node -p "process.throwDeprecation" + * undefined + * $ node + * > process.emitWarning('test', 'DeprecationWarning'); + * undefined + * > (node:26598) DeprecationWarning: test + * > process.throwDeprecation = true; + * true + * > process.emitWarning('test', 'DeprecationWarning'); + * Thrown: + * [DeprecationWarning: test] { name: 'DeprecationWarning' } + * ``` + * @since v0.9.12 + */ + throwDeprecation: boolean; + /** + * The `process.traceDeprecation` property indicates whether the `--trace-deprecation` flag is set on the current Node.js process. See the + * documentation for the `'warning' event` and the `emitWarning() method` for more information about this + * flag's behavior. + * @since v0.8.0 + */ + traceDeprecation: boolean; + /* EventEmitter */ + addListener(event: "beforeExit", listener: BeforeExitListener): this; + addListener(event: "disconnect", listener: DisconnectListener): this; + addListener(event: "exit", listener: ExitListener): this; + addListener(event: "rejectionHandled", listener: RejectionHandledListener): this; + addListener(event: "uncaughtException", listener: UncaughtExceptionListener): this; + addListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this; + addListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this; + addListener(event: "warning", listener: WarningListener): this; + addListener(event: "message", listener: MessageListener): this; + addListener(event: "workerMessage", listener: (value: any, source: number) => void): this; + addListener(event: Signals, listener: SignalsListener): this; + addListener(event: "multipleResolves", listener: MultipleResolveListener): this; + addListener(event: "worker", listener: WorkerListener): this; + emit(event: "beforeExit", code: number): boolean; + emit(event: "disconnect"): boolean; + emit(event: "exit", code: number): boolean; + emit(event: "rejectionHandled", promise: Promise): boolean; + emit(event: "uncaughtException", error: Error): boolean; + emit(event: "uncaughtExceptionMonitor", error: Error): boolean; + emit(event: "unhandledRejection", reason: unknown, promise: Promise): boolean; + emit(event: "warning", warning: Error): boolean; + emit(event: "message", message: unknown, sendHandle: SendHandle): this; + emit(event: "workerMessage", value: any, source: number): this; + emit(event: Signals, signal?: Signals): boolean; + emit( + event: "multipleResolves", + type: MultipleResolveType, + promise: Promise, + value: unknown, + ): this; + emit(event: "worker", listener: WorkerListener): this; + on(event: "beforeExit", listener: BeforeExitListener): this; + on(event: "disconnect", listener: DisconnectListener): this; + on(event: "exit", listener: ExitListener): this; + on(event: "rejectionHandled", listener: RejectionHandledListener): this; + on(event: "uncaughtException", listener: UncaughtExceptionListener): this; + on(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this; + on(event: "unhandledRejection", listener: UnhandledRejectionListener): this; + on(event: "warning", listener: WarningListener): this; + on(event: "message", listener: MessageListener): this; + on(event: "workerMessage", listener: (value: any, source: number) => void): this; + on(event: Signals, listener: SignalsListener): this; + on(event: "multipleResolves", listener: MultipleResolveListener): this; + on(event: "worker", listener: WorkerListener): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + once(event: "beforeExit", listener: BeforeExitListener): this; + once(event: "disconnect", listener: DisconnectListener): this; + once(event: "exit", listener: ExitListener): this; + once(event: "rejectionHandled", listener: RejectionHandledListener): this; + once(event: "uncaughtException", listener: UncaughtExceptionListener): this; + once(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this; + once(event: "unhandledRejection", listener: UnhandledRejectionListener): this; + once(event: "warning", listener: WarningListener): this; + once(event: "message", listener: MessageListener): this; + once(event: "workerMessage", listener: (value: any, source: number) => void): this; + once(event: Signals, listener: SignalsListener): this; + once(event: "multipleResolves", listener: MultipleResolveListener): this; + once(event: "worker", listener: WorkerListener): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + prependListener(event: "beforeExit", listener: BeforeExitListener): this; + prependListener(event: "disconnect", listener: DisconnectListener): this; + prependListener(event: "exit", listener: ExitListener): this; + prependListener(event: "rejectionHandled", listener: RejectionHandledListener): this; + prependListener(event: "uncaughtException", listener: UncaughtExceptionListener): this; + prependListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this; + prependListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this; + prependListener(event: "warning", listener: WarningListener): this; + prependListener(event: "message", listener: MessageListener): this; + prependListener(event: "workerMessage", listener: (value: any, source: number) => void): this; + prependListener(event: Signals, listener: SignalsListener): this; + prependListener(event: "multipleResolves", listener: MultipleResolveListener): this; + prependListener(event: "worker", listener: WorkerListener): this; + prependOnceListener(event: "beforeExit", listener: BeforeExitListener): this; + prependOnceListener(event: "disconnect", listener: DisconnectListener): this; + prependOnceListener(event: "exit", listener: ExitListener): this; + prependOnceListener(event: "rejectionHandled", listener: RejectionHandledListener): this; + prependOnceListener(event: "uncaughtException", listener: UncaughtExceptionListener): this; + prependOnceListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this; + prependOnceListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this; + prependOnceListener(event: "warning", listener: WarningListener): this; + prependOnceListener(event: "message", listener: MessageListener): this; + prependOnceListener(event: "workerMessage", listener: (value: any, source: number) => void): this; + prependOnceListener(event: Signals, listener: SignalsListener): this; + prependOnceListener(event: "multipleResolves", listener: MultipleResolveListener): this; + prependOnceListener(event: "worker", listener: WorkerListener): this; + listeners(event: "beforeExit"): BeforeExitListener[]; + listeners(event: "disconnect"): DisconnectListener[]; + listeners(event: "exit"): ExitListener[]; + listeners(event: "rejectionHandled"): RejectionHandledListener[]; + listeners(event: "uncaughtException"): UncaughtExceptionListener[]; + listeners(event: "uncaughtExceptionMonitor"): UncaughtExceptionListener[]; + listeners(event: "unhandledRejection"): UnhandledRejectionListener[]; + listeners(event: "warning"): WarningListener[]; + listeners(event: "message"): MessageListener[]; + listeners(event: "workerMessage"): ((value: any, source: number) => void)[]; + listeners(event: Signals): SignalsListener[]; + listeners(event: "multipleResolves"): MultipleResolveListener[]; + listeners(event: "worker"): WorkerListener[]; + } + } + } + export = process; +} +declare module "node:process" { + import process = require("process"); + export = process; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/punycode.d.ts b/backend/node_modules/httpx/node_modules/@types/node/punycode.d.ts new file mode 100644 index 0000000..394d611 --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/punycode.d.ts @@ -0,0 +1,117 @@ +/** + * **The version of the punycode module bundled in Node.js is being deprecated. **In a future major version of Node.js this module will be removed. Users + * currently depending on the `punycode` module should switch to using the + * userland-provided [Punycode.js](https://github.com/bestiejs/punycode.js) module instead. For punycode-based URL + * encoding, see `url.domainToASCII` or, more generally, the `WHATWG URL API`. + * + * The `punycode` module is a bundled version of the [Punycode.js](https://github.com/bestiejs/punycode.js) module. It + * can be accessed using: + * + * ```js + * import punycode from 'node:punycode'; + * ``` + * + * [Punycode](https://tools.ietf.org/html/rfc3492) is a character encoding scheme defined by RFC 3492 that is + * primarily intended for use in Internationalized Domain Names. Because host + * names in URLs are limited to ASCII characters only, Domain Names that contain + * non-ASCII characters must be converted into ASCII using the Punycode scheme. + * For instance, the Japanese character that translates into the English word, `'example'` is `'例'`. The Internationalized Domain Name, `'例.com'` (equivalent + * to `'example.com'`) is represented by Punycode as the ASCII string `'xn--fsq.com'`. + * + * The `punycode` module provides a simple implementation of the Punycode standard. + * + * The `punycode` module is a third-party dependency used by Node.js and + * made available to developers as a convenience. Fixes or other modifications to + * the module must be directed to the [Punycode.js](https://github.com/bestiejs/punycode.js) project. + * @deprecated Since v7.0.0 - Deprecated + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/punycode.js) + */ +declare module "punycode" { + /** + * The `punycode.decode()` method converts a [Punycode](https://tools.ietf.org/html/rfc3492) string of ASCII-only + * characters to the equivalent string of Unicode codepoints. + * + * ```js + * punycode.decode('maana-pta'); // 'mañana' + * punycode.decode('--dqo34k'); // '☃-⌘' + * ``` + * @since v0.5.1 + */ + function decode(string: string): string; + /** + * The `punycode.encode()` method converts a string of Unicode codepoints to a [Punycode](https://tools.ietf.org/html/rfc3492) string of ASCII-only characters. + * + * ```js + * punycode.encode('mañana'); // 'maana-pta' + * punycode.encode('☃-⌘'); // '--dqo34k' + * ``` + * @since v0.5.1 + */ + function encode(string: string): string; + /** + * The `punycode.toUnicode()` method converts a string representing a domain name + * containing [Punycode](https://tools.ietf.org/html/rfc3492) encoded characters into Unicode. Only the [Punycode](https://tools.ietf.org/html/rfc3492) encoded parts of the domain name are be + * converted. + * + * ```js + * // decode domain names + * punycode.toUnicode('xn--maana-pta.com'); // 'mañana.com' + * punycode.toUnicode('xn----dqo34k.com'); // '☃-⌘.com' + * punycode.toUnicode('example.com'); // 'example.com' + * ``` + * @since v0.6.1 + */ + function toUnicode(domain: string): string; + /** + * The `punycode.toASCII()` method converts a Unicode string representing an + * Internationalized Domain Name to [Punycode](https://tools.ietf.org/html/rfc3492). Only the non-ASCII parts of the + * domain name will be converted. Calling `punycode.toASCII()` on a string that + * already only contains ASCII characters will have no effect. + * + * ```js + * // encode domain names + * punycode.toASCII('mañana.com'); // 'xn--maana-pta.com' + * punycode.toASCII('☃-⌘.com'); // 'xn----dqo34k.com' + * punycode.toASCII('example.com'); // 'example.com' + * ``` + * @since v0.6.1 + */ + function toASCII(domain: string): string; + /** + * @deprecated since v7.0.0 + * The version of the punycode module bundled in Node.js is being deprecated. + * In a future major version of Node.js this module will be removed. + * Users currently depending on the punycode module should switch to using + * the userland-provided Punycode.js module instead. + */ + const ucs2: ucs2; + interface ucs2 { + /** + * @deprecated since v7.0.0 + * The version of the punycode module bundled in Node.js is being deprecated. + * In a future major version of Node.js this module will be removed. + * Users currently depending on the punycode module should switch to using + * the userland-provided Punycode.js module instead. + */ + decode(string: string): number[]; + /** + * @deprecated since v7.0.0 + * The version of the punycode module bundled in Node.js is being deprecated. + * In a future major version of Node.js this module will be removed. + * Users currently depending on the punycode module should switch to using + * the userland-provided Punycode.js module instead. + */ + encode(codePoints: readonly number[]): string; + } + /** + * @deprecated since v7.0.0 + * The version of the punycode module bundled in Node.js is being deprecated. + * In a future major version of Node.js this module will be removed. + * Users currently depending on the punycode module should switch to using + * the userland-provided Punycode.js module instead. + */ + const version: string; +} +declare module "node:punycode" { + export * from "punycode"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/querystring.d.ts b/backend/node_modules/httpx/node_modules/@types/node/querystring.d.ts new file mode 100644 index 0000000..27eaed2 --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/querystring.d.ts @@ -0,0 +1,152 @@ +/** + * The `node:querystring` module provides utilities for parsing and formatting URL + * query strings. It can be accessed using: + * + * ```js + * import querystring from 'node:querystring'; + * ``` + * + * `querystring` is more performant than `URLSearchParams` but is not a + * standardized API. Use `URLSearchParams` when performance is not critical or + * when compatibility with browser code is desirable. + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/querystring.js) + */ +declare module "querystring" { + interface StringifyOptions { + /** + * The function to use when converting URL-unsafe characters to percent-encoding in the query string. + * @default `querystring.escape()` + */ + encodeURIComponent?: ((str: string) => string) | undefined; + } + interface ParseOptions { + /** + * Specifies the maximum number of keys to parse. Specify `0` to remove key counting limitations. + * @default 1000 + */ + maxKeys?: number | undefined; + /** + * The function to use when decoding percent-encoded characters in the query string. + * @default `querystring.unescape()` + */ + decodeURIComponent?: ((str: string) => string) | undefined; + } + interface ParsedUrlQuery extends NodeJS.Dict {} + interface ParsedUrlQueryInput extends + NodeJS.Dict< + | string + | number + | boolean + | bigint + | ReadonlyArray + | null + > + {} + /** + * The `querystring.stringify()` method produces a URL query string from a + * given `obj` by iterating through the object's "own properties". + * + * It serializes the following types of values passed in `obj`: [string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type) | + * [number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type) | + * [bigint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) | + * [boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type) | + * [string\[\]](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type) | + * [number\[\]](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type) | + * [bigint\[\]](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) | + * [boolean\[\]](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type) The numeric values must be finite. Any other input values will be coerced to + * empty strings. + * + * ```js + * querystring.stringify({ foo: 'bar', baz: ['qux', 'quux'], corge: '' }); + * // Returns 'foo=bar&baz=qux&baz=quux&corge=' + * + * querystring.stringify({ foo: 'bar', baz: 'qux' }, ';', ':'); + * // Returns 'foo:bar;baz:qux' + * ``` + * + * By default, characters requiring percent-encoding within the query string will + * be encoded as UTF-8\. If an alternative encoding is required, then an alternative `encodeURIComponent` option will need to be specified: + * + * ```js + * // Assuming gbkEncodeURIComponent function already exists, + * + * querystring.stringify({ w: '中文', foo: 'bar' }, null, null, + * { encodeURIComponent: gbkEncodeURIComponent }); + * ``` + * @since v0.1.25 + * @param obj The object to serialize into a URL query string + * @param [sep='&'] The substring used to delimit key and value pairs in the query string. + * @param [eq='='] . The substring used to delimit keys and values in the query string. + */ + function stringify(obj?: ParsedUrlQueryInput, sep?: string, eq?: string, options?: StringifyOptions): string; + /** + * The `querystring.parse()` method parses a URL query string (`str`) into a + * collection of key and value pairs. + * + * For example, the query string `'foo=bar&abc=xyz&abc=123'` is parsed into: + * + * ```json + * { + * "foo": "bar", + * "abc": ["xyz", "123"] + * } + * ``` + * + * The object returned by the `querystring.parse()` method _does not_ prototypically inherit from the JavaScript `Object`. This means that typical `Object` methods such as `obj.toString()`, + * `obj.hasOwnProperty()`, and others + * are not defined and _will not work_. + * + * By default, percent-encoded characters within the query string will be assumed + * to use UTF-8 encoding. If an alternative character encoding is used, then an + * alternative `decodeURIComponent` option will need to be specified: + * + * ```js + * // Assuming gbkDecodeURIComponent function already exists... + * + * querystring.parse('w=%D6%D0%CE%C4&foo=bar', null, null, + * { decodeURIComponent: gbkDecodeURIComponent }); + * ``` + * @since v0.1.25 + * @param str The URL query string to parse + * @param [sep='&'] The substring used to delimit key and value pairs in the query string. + * @param [eq='='] The substring used to delimit keys and values in the query string. + */ + function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): ParsedUrlQuery; + /** + * The querystring.encode() function is an alias for querystring.stringify(). + */ + const encode: typeof stringify; + /** + * The querystring.decode() function is an alias for querystring.parse(). + */ + const decode: typeof parse; + /** + * The `querystring.escape()` method performs URL percent-encoding on the given `str` in a manner that is optimized for the specific requirements of URL + * query strings. + * + * The `querystring.escape()` method is used by `querystring.stringify()` and is + * generally not expected to be used directly. It is exported primarily to allow + * application code to provide a replacement percent-encoding implementation if + * necessary by assigning `querystring.escape` to an alternative function. + * @since v0.1.25 + */ + function escape(str: string): string; + /** + * The `querystring.unescape()` method performs decoding of URL percent-encoded + * characters on the given `str`. + * + * The `querystring.unescape()` method is used by `querystring.parse()` and is + * generally not expected to be used directly. It is exported primarily to allow + * application code to provide a replacement decoding implementation if + * necessary by assigning `querystring.unescape` to an alternative function. + * + * By default, the `querystring.unescape()` method will attempt to use the + * JavaScript built-in `decodeURIComponent()` method to decode. If that fails, + * a safer equivalent that does not throw on malformed URLs will be used. + * @since v0.1.25 + */ + function unescape(str: string): string; +} +declare module "node:querystring" { + export * from "querystring"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/readline.d.ts b/backend/node_modules/httpx/node_modules/@types/node/readline.d.ts new file mode 100644 index 0000000..1504c26 --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/readline.d.ts @@ -0,0 +1,589 @@ +/** + * The `node:readline` module provides an interface for reading data from a [Readable](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/stream.html#readable-streams) stream + * (such as [`process.stdin`](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/process.html#processstdin)) one line at a time. + * + * To use the promise-based APIs: + * + * ```js + * import * as readline from 'node:readline/promises'; + * ``` + * + * To use the callback and sync APIs: + * + * ```js + * import * as readline from 'node:readline'; + * ``` + * + * The following simple example illustrates the basic use of the `node:readline` module. + * + * ```js + * import * as readline from 'node:readline/promises'; + * import { stdin as input, stdout as output } from 'node:process'; + * + * const rl = readline.createInterface({ input, output }); + * + * const answer = await rl.question('What do you think of Node.js? '); + * + * console.log(`Thank you for your valuable feedback: ${answer}`); + * + * rl.close(); + * ``` + * + * Once this code is invoked, the Node.js application will not terminate until the `readline.Interface` is closed because the interface waits for data to be + * received on the `input` stream. + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/readline.js) + */ +declare module "readline" { + import { Abortable, EventEmitter } from "node:events"; + import * as promises from "node:readline/promises"; + export { promises }; + export interface Key { + sequence?: string | undefined; + name?: string | undefined; + ctrl?: boolean | undefined; + meta?: boolean | undefined; + shift?: boolean | undefined; + } + /** + * Instances of the `readline.Interface` class are constructed using the `readline.createInterface()` method. Every instance is associated with a + * single `input` [Readable](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/stream.html#readable-streams) stream and a single `output` [Writable](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/stream.html#writable-streams) stream. + * The `output` stream is used to print prompts for user input that arrives on, + * and is read from, the `input` stream. + * @since v0.1.104 + */ + export class Interface extends EventEmitter { + readonly terminal: boolean; + /** + * The current input data being processed by node. + * + * This can be used when collecting input from a TTY stream to retrieve the + * current value that has been processed thus far, prior to the `line` event + * being emitted. Once the `line` event has been emitted, this property will + * be an empty string. + * + * Be aware that modifying the value during the instance runtime may have + * unintended consequences if `rl.cursor` is not also controlled. + * + * **If not using a TTY stream for input, use the `'line'` event.** + * + * One possible use case would be as follows: + * + * ```js + * const values = ['lorem ipsum', 'dolor sit amet']; + * const rl = readline.createInterface(process.stdin); + * const showResults = debounce(() => { + * console.log( + * '\n', + * values.filter((val) => val.startsWith(rl.line)).join(' '), + * ); + * }, 300); + * process.stdin.on('keypress', (c, k) => { + * showResults(); + * }); + * ``` + * @since v0.1.98 + */ + readonly line: string; + /** + * The cursor position relative to `rl.line`. + * + * This will track where the current cursor lands in the input string, when + * reading input from a TTY stream. The position of cursor determines the + * portion of the input string that will be modified as input is processed, + * as well as the column where the terminal caret will be rendered. + * @since v0.1.98 + */ + readonly cursor: number; + /** + * NOTE: According to the documentation: + * + * > Instances of the `readline.Interface` class are constructed using the + * > `readline.createInterface()` method. + * + * @see https://nodejs.org/docs/latest-v20.x/api/readline.html#class-interfaceconstructor + */ + protected constructor( + input: NodeJS.ReadableStream, + output?: NodeJS.WritableStream, + completer?: Completer | AsyncCompleter, + terminal?: boolean, + ); + /** + * NOTE: According to the documentation: + * + * > Instances of the `readline.Interface` class are constructed using the + * > `readline.createInterface()` method. + * + * @see https://nodejs.org/docs/latest-v20.x/api/readline.html#class-interfaceconstructor + */ + protected constructor(options: ReadLineOptions); + /** + * The `rl.getPrompt()` method returns the current prompt used by `rl.prompt()`. + * @since v15.3.0, v14.17.0 + * @return the current prompt string + */ + getPrompt(): string; + /** + * The `rl.setPrompt()` method sets the prompt that will be written to `output` whenever `rl.prompt()` is called. + * @since v0.1.98 + */ + setPrompt(prompt: string): void; + /** + * The `rl.prompt()` method writes the `Interface` instances configured`prompt` to a new line in `output` in order to provide a user with a new + * location at which to provide input. + * + * When called, `rl.prompt()` will resume the `input` stream if it has been + * paused. + * + * If the `Interface` was created with `output` set to `null` or `undefined` the prompt is not written. + * @since v0.1.98 + * @param preserveCursor If `true`, prevents the cursor placement from being reset to `0`. + */ + prompt(preserveCursor?: boolean): void; + /** + * The `rl.question()` method displays the `query` by writing it to the `output`, + * waits for user input to be provided on `input`, then invokes the `callback` function passing the provided input as the first argument. + * + * When called, `rl.question()` will resume the `input` stream if it has been + * paused. + * + * If the `Interface` was created with `output` set to `null` or `undefined` the `query` is not written. + * + * The `callback` function passed to `rl.question()` does not follow the typical + * pattern of accepting an `Error` object or `null` as the first argument. + * The `callback` is called with the provided answer as the only argument. + * + * An error will be thrown if calling `rl.question()` after `rl.close()`. + * + * Example usage: + * + * ```js + * rl.question('What is your favorite food? ', (answer) => { + * console.log(`Oh, so your favorite food is ${answer}`); + * }); + * ``` + * + * Using an `AbortController` to cancel a question. + * + * ```js + * const ac = new AbortController(); + * const signal = ac.signal; + * + * rl.question('What is your favorite food? ', { signal }, (answer) => { + * console.log(`Oh, so your favorite food is ${answer}`); + * }); + * + * signal.addEventListener('abort', () => { + * console.log('The food question timed out'); + * }, { once: true }); + * + * setTimeout(() => ac.abort(), 10000); + * ``` + * @since v0.3.3 + * @param query A statement or query to write to `output`, prepended to the prompt. + * @param callback A callback function that is invoked with the user's input in response to the `query`. + */ + question(query: string, callback: (answer: string) => void): void; + question(query: string, options: Abortable, callback: (answer: string) => void): void; + /** + * The `rl.pause()` method pauses the `input` stream, allowing it to be resumed + * later if necessary. + * + * Calling `rl.pause()` does not immediately pause other events (including `'line'`) from being emitted by the `Interface` instance. + * @since v0.3.4 + */ + pause(): this; + /** + * The `rl.resume()` method resumes the `input` stream if it has been paused. + * @since v0.3.4 + */ + resume(): this; + /** + * The `rl.close()` method closes the `Interface` instance and + * relinquishes control over the `input` and `output` streams. When called, + * the `'close'` event will be emitted. + * + * Calling `rl.close()` does not immediately stop other events (including `'line'`) + * from being emitted by the `Interface` instance. + * @since v0.1.98 + */ + close(): void; + /** + * The `rl.write()` method will write either `data` or a key sequence identified + * by `key` to the `output`. The `key` argument is supported only if `output` is + * a `TTY` text terminal. See `TTY keybindings` for a list of key + * combinations. + * + * If `key` is specified, `data` is ignored. + * + * When called, `rl.write()` will resume the `input` stream if it has been + * paused. + * + * If the `Interface` was created with `output` set to `null` or `undefined` the `data` and `key` are not written. + * + * ```js + * rl.write('Delete this!'); + * // Simulate Ctrl+U to delete the line written previously + * rl.write(null, { ctrl: true, name: 'u' }); + * ``` + * + * The `rl.write()` method will write the data to the `readline` `Interface`'s `input` _as if it were provided by the user_. + * @since v0.1.98 + */ + write(data: string | Buffer, key?: Key): void; + write(data: undefined | null | string | Buffer, key: Key): void; + /** + * Returns the real position of the cursor in relation to the input + * prompt + string. Long input (wrapping) strings, as well as multiple + * line prompts are included in the calculations. + * @since v13.5.0, v12.16.0 + */ + getCursorPos(): CursorPos; + /** + * events.EventEmitter + * 1. close + * 2. line + * 3. pause + * 4. resume + * 5. SIGCONT + * 6. SIGINT + * 7. SIGTSTP + * 8. history + */ + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: "close", listener: () => void): this; + addListener(event: "line", listener: (input: string) => void): this; + addListener(event: "pause", listener: () => void): this; + addListener(event: "resume", listener: () => void): this; + addListener(event: "SIGCONT", listener: () => void): this; + addListener(event: "SIGINT", listener: () => void): this; + addListener(event: "SIGTSTP", listener: () => void): this; + addListener(event: "history", listener: (history: string[]) => void): this; + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: "close"): boolean; + emit(event: "line", input: string): boolean; + emit(event: "pause"): boolean; + emit(event: "resume"): boolean; + emit(event: "SIGCONT"): boolean; + emit(event: "SIGINT"): boolean; + emit(event: "SIGTSTP"): boolean; + emit(event: "history", history: string[]): boolean; + on(event: string, listener: (...args: any[]) => void): this; + on(event: "close", listener: () => void): this; + on(event: "line", listener: (input: string) => void): this; + on(event: "pause", listener: () => void): this; + on(event: "resume", listener: () => void): this; + on(event: "SIGCONT", listener: () => void): this; + on(event: "SIGINT", listener: () => void): this; + on(event: "SIGTSTP", listener: () => void): this; + on(event: "history", listener: (history: string[]) => void): this; + once(event: string, listener: (...args: any[]) => void): this; + once(event: "close", listener: () => void): this; + once(event: "line", listener: (input: string) => void): this; + once(event: "pause", listener: () => void): this; + once(event: "resume", listener: () => void): this; + once(event: "SIGCONT", listener: () => void): this; + once(event: "SIGINT", listener: () => void): this; + once(event: "SIGTSTP", listener: () => void): this; + once(event: "history", listener: (history: string[]) => void): this; + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: "close", listener: () => void): this; + prependListener(event: "line", listener: (input: string) => void): this; + prependListener(event: "pause", listener: () => void): this; + prependListener(event: "resume", listener: () => void): this; + prependListener(event: "SIGCONT", listener: () => void): this; + prependListener(event: "SIGINT", listener: () => void): this; + prependListener(event: "SIGTSTP", listener: () => void): this; + prependListener(event: "history", listener: (history: string[]) => void): this; + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: "close", listener: () => void): this; + prependOnceListener(event: "line", listener: (input: string) => void): this; + prependOnceListener(event: "pause", listener: () => void): this; + prependOnceListener(event: "resume", listener: () => void): this; + prependOnceListener(event: "SIGCONT", listener: () => void): this; + prependOnceListener(event: "SIGINT", listener: () => void): this; + prependOnceListener(event: "SIGTSTP", listener: () => void): this; + prependOnceListener(event: "history", listener: (history: string[]) => void): this; + [Symbol.asyncIterator](): NodeJS.AsyncIterator; + } + export type ReadLine = Interface; // type forwarded for backwards compatibility + export type Completer = (line: string) => CompleterResult; + export type AsyncCompleter = ( + line: string, + callback: (err?: null | Error, result?: CompleterResult) => void, + ) => void; + export type CompleterResult = [string[], string]; + export interface ReadLineOptions { + /** + * The [`Readable`](https://nodejs.org/docs/latest-v20.x/api/stream.html#readable-streams) stream to listen to + */ + input: NodeJS.ReadableStream; + /** + * The [`Writable`](https://nodejs.org/docs/latest-v20.x/api/stream.html#writable-streams) stream to write readline data to. + */ + output?: NodeJS.WritableStream | undefined; + /** + * An optional function used for Tab autocompletion. + */ + completer?: Completer | AsyncCompleter | undefined; + /** + * `true` if the `input` and `output` streams should be treated like a TTY, + * and have ANSI/VT100 escape codes written to it. + * Default: checking `isTTY` on the `output` stream upon instantiation. + */ + terminal?: boolean | undefined; + /** + * Initial list of history lines. + * This option makes sense only if `terminal` is set to `true` by the user or by an internal `output` check, + * otherwise the history caching mechanism is not initialized at all. + * @default [] + */ + history?: string[] | undefined; + /** + * Maximum number of history lines retained. + * To disable the history set this value to `0`. + * This option makes sense only if `terminal` is set to `true` by the user or by an internal `output` check, + * otherwise the history caching mechanism is not initialized at all. + * @default 30 + */ + historySize?: number | undefined; + /** + * If `true`, when a new input line added to the history list duplicates an older one, + * this removes the older line from the list. + * @default false + */ + removeHistoryDuplicates?: boolean | undefined; + /** + * The prompt string to use. + * @default "> " + */ + prompt?: string | undefined; + /** + * If the delay between `\r` and `\n` exceeds `crlfDelay` milliseconds, + * both `\r` and `\n` will be treated as separate end-of-line input. + * `crlfDelay` will be coerced to a number no less than `100`. + * It can be set to `Infinity`, in which case + * `\r` followed by `\n` will always be considered a single newline + * (which may be reasonable for [reading files](https://nodejs.org/docs/latest-v20.x/api/readline.html#example-read-file-stream-line-by-line) with `\r\n` line delimiter). + * @default 100 + */ + crlfDelay?: number | undefined; + /** + * The duration `readline` will wait for a character + * (when reading an ambiguous key sequence in milliseconds + * one that can both form a complete key sequence using the input read so far + * and can take additional input to complete a longer key sequence). + * @default 500 + */ + escapeCodeTimeout?: number | undefined; + /** + * The number of spaces a tab is equal to (minimum 1). + * @default 8 + */ + tabSize?: number | undefined; + /** + * Allows closing the interface using an AbortSignal. + * Aborting the signal will internally call `close` on the interface. + */ + signal?: AbortSignal | undefined; + } + /** + * The `readline.createInterface()` method creates a new `readline.Interface` instance. + * + * ```js + * import readline from 'node:readline'; + * const rl = readline.createInterface({ + * input: process.stdin, + * output: process.stdout, + * }); + * ``` + * + * Once the `readline.Interface` instance is created, the most common case is to + * listen for the `'line'` event: + * + * ```js + * rl.on('line', (line) => { + * console.log(`Received: ${line}`); + * }); + * ``` + * + * If `terminal` is `true` for this instance then the `output` stream will get + * the best compatibility if it defines an `output.columns` property and emits + * a `'resize'` event on the `output` if or when the columns ever change + * (`process.stdout` does this automatically when it is a TTY). + * + * When creating a `readline.Interface` using `stdin` as input, the program + * will not terminate until it receives an [EOF character](https://en.wikipedia.org/wiki/End-of-file#EOF_character). To exit without + * waiting for user input, call `process.stdin.unref()`. + * @since v0.1.98 + */ + export function createInterface( + input: NodeJS.ReadableStream, + output?: NodeJS.WritableStream, + completer?: Completer | AsyncCompleter, + terminal?: boolean, + ): Interface; + export function createInterface(options: ReadLineOptions): Interface; + /** + * The `readline.emitKeypressEvents()` method causes the given `Readable` stream to begin emitting `'keypress'` events corresponding to received input. + * + * Optionally, `interface` specifies a `readline.Interface` instance for which + * autocompletion is disabled when copy-pasted input is detected. + * + * If the `stream` is a `TTY`, then it must be in raw mode. + * + * This is automatically called by any readline instance on its `input` if the `input` is a terminal. Closing the `readline` instance does not stop + * the `input` from emitting `'keypress'` events. + * + * ```js + * readline.emitKeypressEvents(process.stdin); + * if (process.stdin.isTTY) + * process.stdin.setRawMode(true); + * ``` + * + * ## Example: Tiny CLI + * + * The following example illustrates the use of `readline.Interface` class to + * implement a small command-line interface: + * + * ```js + * import readline from 'node:readline'; + * const rl = readline.createInterface({ + * input: process.stdin, + * output: process.stdout, + * prompt: 'OHAI> ', + * }); + * + * rl.prompt(); + * + * rl.on('line', (line) => { + * switch (line.trim()) { + * case 'hello': + * console.log('world!'); + * break; + * default: + * console.log(`Say what? I might have heard '${line.trim()}'`); + * break; + * } + * rl.prompt(); + * }).on('close', () => { + * console.log('Have a great day!'); + * process.exit(0); + * }); + * ``` + * + * ## Example: Read file stream line-by-Line + * + * A common use case for `readline` is to consume an input file one line at a + * time. The easiest way to do so is leveraging the `fs.ReadStream` API as + * well as a `for await...of` loop: + * + * ```js + * import fs from 'node:fs'; + * import readline from 'node:readline'; + * + * async function processLineByLine() { + * const fileStream = fs.createReadStream('input.txt'); + * + * const rl = readline.createInterface({ + * input: fileStream, + * crlfDelay: Infinity, + * }); + * // Note: we use the crlfDelay option to recognize all instances of CR LF + * // ('\r\n') in input.txt as a single line break. + * + * for await (const line of rl) { + * // Each line in input.txt will be successively available here as `line`. + * console.log(`Line from file: ${line}`); + * } + * } + * + * processLineByLine(); + * ``` + * + * Alternatively, one could use the `'line'` event: + * + * ```js + * import fs from 'node:fs'; + * import readline from 'node:readline'; + * + * const rl = readline.createInterface({ + * input: fs.createReadStream('sample.txt'), + * crlfDelay: Infinity, + * }); + * + * rl.on('line', (line) => { + * console.log(`Line from file: ${line}`); + * }); + * ``` + * + * Currently, `for await...of` loop can be a bit slower. If `async` / `await` flow and speed are both essential, a mixed approach can be applied: + * + * ```js + * import { once } from 'node:events'; + * import { createReadStream } from 'node:fs'; + * import { createInterface } from 'node:readline'; + * + * (async function processLineByLine() { + * try { + * const rl = createInterface({ + * input: createReadStream('big-file.txt'), + * crlfDelay: Infinity, + * }); + * + * rl.on('line', (line) => { + * // Process the line. + * }); + * + * await once(rl, 'close'); + * + * console.log('File processed.'); + * } catch (err) { + * console.error(err); + * } + * })(); + * ``` + * @since v0.7.7 + */ + export function emitKeypressEvents(stream: NodeJS.ReadableStream, readlineInterface?: Interface): void; + export type Direction = -1 | 0 | 1; + export interface CursorPos { + rows: number; + cols: number; + } + /** + * The `readline.clearLine()` method clears current line of given [TTY](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/tty.html) stream + * in a specified direction identified by `dir`. + * @since v0.7.7 + * @param callback Invoked once the operation completes. + * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. + */ + export function clearLine(stream: NodeJS.WritableStream, dir: Direction, callback?: () => void): boolean; + /** + * The `readline.clearScreenDown()` method clears the given [TTY](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/tty.html) stream from + * the current position of the cursor down. + * @since v0.7.7 + * @param callback Invoked once the operation completes. + * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. + */ + export function clearScreenDown(stream: NodeJS.WritableStream, callback?: () => void): boolean; + /** + * The `readline.cursorTo()` method moves cursor to the specified position in a + * given [TTY](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/tty.html) `stream`. + * @since v0.7.7 + * @param callback Invoked once the operation completes. + * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. + */ + export function cursorTo(stream: NodeJS.WritableStream, x: number, y?: number, callback?: () => void): boolean; + /** + * The `readline.moveCursor()` method moves the cursor _relative_ to its current + * position in a given [TTY](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/tty.html) `stream`. + * @since v0.7.7 + * @param callback Invoked once the operation completes. + * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. + */ + export function moveCursor(stream: NodeJS.WritableStream, dx: number, dy: number, callback?: () => void): boolean; +} +declare module "node:readline" { + export * from "readline"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/readline/promises.d.ts b/backend/node_modules/httpx/node_modules/@types/node/readline/promises.d.ts new file mode 100644 index 0000000..f6cdf66 --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/readline/promises.d.ts @@ -0,0 +1,162 @@ +/** + * @since v17.0.0 + * @experimental + */ +declare module "readline/promises" { + import { Abortable } from "node:events"; + import { + CompleterResult, + Direction, + Interface as _Interface, + ReadLineOptions as _ReadLineOptions, + } from "node:readline"; + /** + * Instances of the `readlinePromises.Interface` class are constructed using the `readlinePromises.createInterface()` method. Every instance is associated with a + * single `input` `Readable` stream and a single `output` `Writable` stream. + * The `output` stream is used to print prompts for user input that arrives on, + * and is read from, the `input` stream. + * @since v17.0.0 + */ + class Interface extends _Interface { + /** + * The `rl.question()` method displays the `query` by writing it to the `output`, + * waits for user input to be provided on `input`, then invokes the `callback` function passing the provided input as the first argument. + * + * When called, `rl.question()` will resume the `input` stream if it has been + * paused. + * + * If the `Interface` was created with `output` set to `null` or `undefined` the `query` is not written. + * + * If the question is called after `rl.close()`, it returns a rejected promise. + * + * Example usage: + * + * ```js + * const answer = await rl.question('What is your favorite food? '); + * console.log(`Oh, so your favorite food is ${answer}`); + * ``` + * + * Using an `AbortSignal` to cancel a question. + * + * ```js + * const signal = AbortSignal.timeout(10_000); + * + * signal.addEventListener('abort', () => { + * console.log('The food question timed out'); + * }, { once: true }); + * + * const answer = await rl.question('What is your favorite food? ', { signal }); + * console.log(`Oh, so your favorite food is ${answer}`); + * ``` + * @since v17.0.0 + * @param query A statement or query to write to `output`, prepended to the prompt. + * @return A promise that is fulfilled with the user's input in response to the `query`. + */ + question(query: string): Promise; + question(query: string, options: Abortable): Promise; + } + /** + * @since v17.0.0 + */ + class Readline { + /** + * @param stream A TTY stream. + */ + constructor( + stream: NodeJS.WritableStream, + options?: { + autoCommit?: boolean | undefined; + }, + ); + /** + * The `rl.clearLine()` method adds to the internal list of pending action an + * action that clears current line of the associated `stream` in a specified + * direction identified by `dir`. + * Call `rl.commit()` to see the effect of this method, unless `autoCommit: true` was passed to the constructor. + * @since v17.0.0 + * @return this + */ + clearLine(dir: Direction): this; + /** + * The `rl.clearScreenDown()` method adds to the internal list of pending action an + * action that clears the associated stream from the current position of the + * cursor down. + * Call `rl.commit()` to see the effect of this method, unless `autoCommit: true` was passed to the constructor. + * @since v17.0.0 + * @return this + */ + clearScreenDown(): this; + /** + * The `rl.commit()` method sends all the pending actions to the associated `stream` and clears the internal list of pending actions. + * @since v17.0.0 + */ + commit(): Promise; + /** + * The `rl.cursorTo()` method adds to the internal list of pending action an action + * that moves cursor to the specified position in the associated `stream`. + * Call `rl.commit()` to see the effect of this method, unless `autoCommit: true` was passed to the constructor. + * @since v17.0.0 + * @return this + */ + cursorTo(x: number, y?: number): this; + /** + * The `rl.moveCursor()` method adds to the internal list of pending action an + * action that moves the cursor _relative_ to its current position in the + * associated `stream`. + * Call `rl.commit()` to see the effect of this method, unless `autoCommit: true` was passed to the constructor. + * @since v17.0.0 + * @return this + */ + moveCursor(dx: number, dy: number): this; + /** + * The `rl.rollback` methods clears the internal list of pending actions without + * sending it to the associated `stream`. + * @since v17.0.0 + * @return this + */ + rollback(): this; + } + type Completer = (line: string) => CompleterResult | Promise; + interface ReadLineOptions extends Omit<_ReadLineOptions, "completer"> { + /** + * An optional function used for Tab autocompletion. + */ + completer?: Completer | undefined; + } + /** + * The `readlinePromises.createInterface()` method creates a new `readlinePromises.Interface` instance. + * + * ```js + * import readlinePromises from 'node:readline/promises'; + * const rl = readlinePromises.createInterface({ + * input: process.stdin, + * output: process.stdout, + * }); + * ``` + * + * Once the `readlinePromises.Interface` instance is created, the most common case + * is to listen for the `'line'` event: + * + * ```js + * rl.on('line', (line) => { + * console.log(`Received: ${line}`); + * }); + * ``` + * + * If `terminal` is `true` for this instance then the `output` stream will get + * the best compatibility if it defines an `output.columns` property and emits + * a `'resize'` event on the `output` if or when the columns ever change + * (`process.stdout` does this automatically when it is a TTY). + * @since v17.0.0 + */ + function createInterface( + input: NodeJS.ReadableStream, + output?: NodeJS.WritableStream, + completer?: Completer, + terminal?: boolean, + ): Interface; + function createInterface(options: ReadLineOptions): Interface; +} +declare module "node:readline/promises" { + export * from "readline/promises"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/repl.d.ts b/backend/node_modules/httpx/node_modules/@types/node/repl.d.ts new file mode 100644 index 0000000..8b1bb6b --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/repl.d.ts @@ -0,0 +1,430 @@ +/** + * The `node:repl` module provides a Read-Eval-Print-Loop (REPL) implementation + * that is available both as a standalone program or includible in other + * applications. It can be accessed using: + * + * ```js + * import repl from 'node:repl'; + * ``` + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/repl.js) + */ +declare module "repl" { + import { AsyncCompleter, Completer, Interface } from "node:readline"; + import { Context } from "node:vm"; + import { InspectOptions } from "node:util"; + interface ReplOptions { + /** + * The input prompt to display. + * @default "> " + */ + prompt?: string | undefined; + /** + * The `Readable` stream from which REPL input will be read. + * @default process.stdin + */ + input?: NodeJS.ReadableStream | undefined; + /** + * The `Writable` stream to which REPL output will be written. + * @default process.stdout + */ + output?: NodeJS.WritableStream | undefined; + /** + * If `true`, specifies that the output should be treated as a TTY terminal, and have + * ANSI/VT100 escape codes written to it. + * Default: checking the value of the `isTTY` property on the output stream upon + * instantiation. + */ + terminal?: boolean | undefined; + /** + * The function to be used when evaluating each given line of input. + * Default: an async wrapper for the JavaScript `eval()` function. An `eval` function can + * error with `repl.Recoverable` to indicate the input was incomplete and prompt for + * additional lines. + * + * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_default_evaluation + * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_custom_evaluation_functions + */ + eval?: REPLEval | undefined; + /** + * Defines if the repl prints output previews or not. + * @default `true` Always `false` in case `terminal` is falsy. + */ + preview?: boolean | undefined; + /** + * If `true`, specifies that the default `writer` function should include ANSI color + * styling to REPL output. If a custom `writer` function is provided then this has no + * effect. + * @default the REPL instance's `terminal` value + */ + useColors?: boolean | undefined; + /** + * If `true`, specifies that the default evaluation function will use the JavaScript + * `global` as the context as opposed to creating a new separate context for the REPL + * instance. The node CLI REPL sets this value to `true`. + * @default false + */ + useGlobal?: boolean | undefined; + /** + * If `true`, specifies that the default writer will not output the return value of a + * command if it evaluates to `undefined`. + * @default false + */ + ignoreUndefined?: boolean | undefined; + /** + * The function to invoke to format the output of each command before writing to `output`. + * @default a wrapper for `util.inspect` + * + * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_customizing_repl_output + */ + writer?: REPLWriter | undefined; + /** + * An optional function used for custom Tab auto completion. + * + * @see https://nodejs.org/dist/latest-v20.x/docs/api/readline.html#readline_use_of_the_completer_function + */ + completer?: Completer | AsyncCompleter | undefined; + /** + * A flag that specifies whether the default evaluator executes all JavaScript commands in + * strict mode or default (sloppy) mode. + * Accepted values are: + * - `repl.REPL_MODE_SLOPPY` - evaluates expressions in sloppy mode. + * - `repl.REPL_MODE_STRICT` - evaluates expressions in strict mode. This is equivalent to + * prefacing every repl statement with `'use strict'`. + */ + replMode?: typeof REPL_MODE_SLOPPY | typeof REPL_MODE_STRICT | undefined; + /** + * Stop evaluating the current piece of code when `SIGINT` is received, i.e. `Ctrl+C` is + * pressed. This cannot be used together with a custom `eval` function. + * @default false + */ + breakEvalOnSigint?: boolean | undefined; + } + type REPLEval = ( + this: REPLServer, + evalCmd: string, + context: Context, + file: string, + cb: (err: Error | null, result: any) => void, + ) => void; + type REPLWriter = (this: REPLServer, obj: any) => string; + /** + * This is the default "writer" value, if none is passed in the REPL options, + * and it can be overridden by custom print functions. + */ + const writer: REPLWriter & { + options: InspectOptions; + }; + type REPLCommandAction = (this: REPLServer, text: string) => void; + interface REPLCommand { + /** + * Help text to be displayed when `.help` is entered. + */ + help?: string | undefined; + /** + * The function to execute, optionally accepting a single string argument. + */ + action: REPLCommandAction; + } + /** + * Instances of `repl.REPLServer` are created using the {@link start} method + * or directly using the JavaScript `new` keyword. + * + * ```js + * import repl from 'node:repl'; + * + * const options = { useColors: true }; + * + * const firstInstance = repl.start(options); + * const secondInstance = new repl.REPLServer(options); + * ``` + * @since v0.1.91 + */ + class REPLServer extends Interface { + /** + * The `vm.Context` provided to the `eval` function to be used for JavaScript + * evaluation. + */ + readonly context: Context; + /** + * @deprecated since v14.3.0 - Use `input` instead. + */ + readonly inputStream: NodeJS.ReadableStream; + /** + * @deprecated since v14.3.0 - Use `output` instead. + */ + readonly outputStream: NodeJS.WritableStream; + /** + * The `Readable` stream from which REPL input will be read. + */ + readonly input: NodeJS.ReadableStream; + /** + * The `Writable` stream to which REPL output will be written. + */ + readonly output: NodeJS.WritableStream; + /** + * The commands registered via `replServer.defineCommand()`. + */ + readonly commands: NodeJS.ReadOnlyDict; + /** + * A value indicating whether the REPL is currently in "editor mode". + * + * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_commands_and_special_keys + */ + readonly editorMode: boolean; + /** + * A value indicating whether the `_` variable has been assigned. + * + * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable + */ + readonly underscoreAssigned: boolean; + /** + * The last evaluation result from the REPL (assigned to the `_` variable inside of the REPL). + * + * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable + */ + readonly last: any; + /** + * A value indicating whether the `_error` variable has been assigned. + * + * @since v9.8.0 + * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable + */ + readonly underscoreErrAssigned: boolean; + /** + * The last error raised inside the REPL (assigned to the `_error` variable inside of the REPL). + * + * @since v9.8.0 + * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable + */ + readonly lastError: any; + /** + * Specified in the REPL options, this is the function to be used when evaluating each + * given line of input. If not specified in the REPL options, this is an async wrapper + * for the JavaScript `eval()` function. + */ + readonly eval: REPLEval; + /** + * Specified in the REPL options, this is a value indicating whether the default + * `writer` function should include ANSI color styling to REPL output. + */ + readonly useColors: boolean; + /** + * Specified in the REPL options, this is a value indicating whether the default `eval` + * function will use the JavaScript `global` as the context as opposed to creating a new + * separate context for the REPL instance. + */ + readonly useGlobal: boolean; + /** + * Specified in the REPL options, this is a value indicating whether the default `writer` + * function should output the result of a command if it evaluates to `undefined`. + */ + readonly ignoreUndefined: boolean; + /** + * Specified in the REPL options, this is the function to invoke to format the output of + * each command before writing to `outputStream`. If not specified in the REPL options, + * this will be a wrapper for `util.inspect`. + */ + readonly writer: REPLWriter; + /** + * Specified in the REPL options, this is the function to use for custom Tab auto-completion. + */ + readonly completer: Completer | AsyncCompleter; + /** + * Specified in the REPL options, this is a flag that specifies whether the default `eval` + * function should execute all JavaScript commands in strict mode or default (sloppy) mode. + * Possible values are: + * - `repl.REPL_MODE_SLOPPY` - evaluates expressions in sloppy mode. + * - `repl.REPL_MODE_STRICT` - evaluates expressions in strict mode. This is equivalent to + * prefacing every repl statement with `'use strict'`. + */ + readonly replMode: typeof REPL_MODE_SLOPPY | typeof REPL_MODE_STRICT; + /** + * NOTE: According to the documentation: + * + * > Instances of `repl.REPLServer` are created using the `repl.start()` method and + * > _should not_ be created directly using the JavaScript `new` keyword. + * + * `REPLServer` cannot be subclassed due to implementation specifics in NodeJS. + * + * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_class_replserver + */ + private constructor(); + /** + * The `replServer.defineCommand()` method is used to add new `.`\-prefixed commands + * to the REPL instance. Such commands are invoked by typing a `.` followed by the `keyword`. The `cmd` is either a `Function` or an `Object` with the following + * properties: + * + * The following example shows two new commands added to the REPL instance: + * + * ```js + * import repl from 'node:repl'; + * + * const replServer = repl.start({ prompt: '> ' }); + * replServer.defineCommand('sayhello', { + * help: 'Say hello', + * action(name) { + * this.clearBufferedCommand(); + * console.log(`Hello, ${name}!`); + * this.displayPrompt(); + * }, + * }); + * replServer.defineCommand('saybye', function saybye() { + * console.log('Goodbye!'); + * this.close(); + * }); + * ``` + * + * The new commands can then be used from within the REPL instance: + * + * ```console + * > .sayhello Node.js User + * Hello, Node.js User! + * > .saybye + * Goodbye! + * ``` + * @since v0.3.0 + * @param keyword The command keyword (_without_ a leading `.` character). + * @param cmd The function to invoke when the command is processed. + */ + defineCommand(keyword: string, cmd: REPLCommandAction | REPLCommand): void; + /** + * The `replServer.displayPrompt()` method readies the REPL instance for input + * from the user, printing the configured `prompt` to a new line in the `output` and resuming the `input` to accept new input. + * + * When multi-line input is being entered, an ellipsis is printed rather than the + * 'prompt'. + * + * When `preserveCursor` is `true`, the cursor placement will not be reset to `0`. + * + * The `replServer.displayPrompt` method is primarily intended to be called from + * within the action function for commands registered using the `replServer.defineCommand()` method. + * @since v0.1.91 + */ + displayPrompt(preserveCursor?: boolean): void; + /** + * The `replServer.clearBufferedCommand()` method clears any command that has been + * buffered but not yet executed. This method is primarily intended to be + * called from within the action function for commands registered using the `replServer.defineCommand()` method. + * @since v9.0.0 + */ + clearBufferedCommand(): void; + /** + * Initializes a history log file for the REPL instance. When executing the + * Node.js binary and using the command-line REPL, a history file is initialized + * by default. However, this is not the case when creating a REPL + * programmatically. Use this method to initialize a history log file when working + * with REPL instances programmatically. + * @since v11.10.0 + * @param historyPath the path to the history file + * @param callback called when history writes are ready or upon error + */ + setupHistory(path: string, callback: (err: Error | null, repl: this) => void): void; + /** + * events.EventEmitter + * 1. close - inherited from `readline.Interface` + * 2. line - inherited from `readline.Interface` + * 3. pause - inherited from `readline.Interface` + * 4. resume - inherited from `readline.Interface` + * 5. SIGCONT - inherited from `readline.Interface` + * 6. SIGINT - inherited from `readline.Interface` + * 7. SIGTSTP - inherited from `readline.Interface` + * 8. exit + * 9. reset + */ + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: "close", listener: () => void): this; + addListener(event: "line", listener: (input: string) => void): this; + addListener(event: "pause", listener: () => void): this; + addListener(event: "resume", listener: () => void): this; + addListener(event: "SIGCONT", listener: () => void): this; + addListener(event: "SIGINT", listener: () => void): this; + addListener(event: "SIGTSTP", listener: () => void): this; + addListener(event: "exit", listener: () => void): this; + addListener(event: "reset", listener: (context: Context) => void): this; + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: "close"): boolean; + emit(event: "line", input: string): boolean; + emit(event: "pause"): boolean; + emit(event: "resume"): boolean; + emit(event: "SIGCONT"): boolean; + emit(event: "SIGINT"): boolean; + emit(event: "SIGTSTP"): boolean; + emit(event: "exit"): boolean; + emit(event: "reset", context: Context): boolean; + on(event: string, listener: (...args: any[]) => void): this; + on(event: "close", listener: () => void): this; + on(event: "line", listener: (input: string) => void): this; + on(event: "pause", listener: () => void): this; + on(event: "resume", listener: () => void): this; + on(event: "SIGCONT", listener: () => void): this; + on(event: "SIGINT", listener: () => void): this; + on(event: "SIGTSTP", listener: () => void): this; + on(event: "exit", listener: () => void): this; + on(event: "reset", listener: (context: Context) => void): this; + once(event: string, listener: (...args: any[]) => void): this; + once(event: "close", listener: () => void): this; + once(event: "line", listener: (input: string) => void): this; + once(event: "pause", listener: () => void): this; + once(event: "resume", listener: () => void): this; + once(event: "SIGCONT", listener: () => void): this; + once(event: "SIGINT", listener: () => void): this; + once(event: "SIGTSTP", listener: () => void): this; + once(event: "exit", listener: () => void): this; + once(event: "reset", listener: (context: Context) => void): this; + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: "close", listener: () => void): this; + prependListener(event: "line", listener: (input: string) => void): this; + prependListener(event: "pause", listener: () => void): this; + prependListener(event: "resume", listener: () => void): this; + prependListener(event: "SIGCONT", listener: () => void): this; + prependListener(event: "SIGINT", listener: () => void): this; + prependListener(event: "SIGTSTP", listener: () => void): this; + prependListener(event: "exit", listener: () => void): this; + prependListener(event: "reset", listener: (context: Context) => void): this; + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: "close", listener: () => void): this; + prependOnceListener(event: "line", listener: (input: string) => void): this; + prependOnceListener(event: "pause", listener: () => void): this; + prependOnceListener(event: "resume", listener: () => void): this; + prependOnceListener(event: "SIGCONT", listener: () => void): this; + prependOnceListener(event: "SIGINT", listener: () => void): this; + prependOnceListener(event: "SIGTSTP", listener: () => void): this; + prependOnceListener(event: "exit", listener: () => void): this; + prependOnceListener(event: "reset", listener: (context: Context) => void): this; + } + /** + * A flag passed in the REPL options. Evaluates expressions in sloppy mode. + */ + const REPL_MODE_SLOPPY: unique symbol; + /** + * A flag passed in the REPL options. Evaluates expressions in strict mode. + * This is equivalent to prefacing every repl statement with `'use strict'`. + */ + const REPL_MODE_STRICT: unique symbol; + /** + * The `repl.start()` method creates and starts a {@link REPLServer} instance. + * + * If `options` is a string, then it specifies the input prompt: + * + * ```js + * import repl from 'node:repl'; + * + * // a Unix style prompt + * repl.start('$ '); + * ``` + * @since v0.1.91 + */ + function start(options?: string | ReplOptions): REPLServer; + /** + * Indicates a recoverable error that a `REPLServer` can use to support multi-line input. + * + * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_recoverable_errors + */ + class Recoverable extends SyntaxError { + err: Error; + constructor(err: Error); + } +} +declare module "node:repl" { + export * from "repl"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/sea.d.ts b/backend/node_modules/httpx/node_modules/@types/node/sea.d.ts new file mode 100644 index 0000000..6f1d1ea --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/sea.d.ts @@ -0,0 +1,153 @@ +/** + * This feature allows the distribution of a Node.js application conveniently to a + * system that does not have Node.js installed. + * + * Node.js supports the creation of [single executable applications](https://github.com/nodejs/single-executable) by allowing + * the injection of a blob prepared by Node.js, which can contain a bundled script, + * into the `node` binary. During start up, the program checks if anything has been + * injected. If the blob is found, it executes the script in the blob. Otherwise + * Node.js operates as it normally does. + * + * The single executable application feature currently only supports running a + * single embedded script using the `CommonJS` module system. + * + * Users can create a single executable application from their bundled script + * with the `node` binary itself and any tool which can inject resources into the + * binary. + * + * Here are the steps for creating a single executable application using one such + * tool, [postject](https://github.com/nodejs/postject): + * + * 1. Create a JavaScript file: + * ```bash + * echo 'console.log(`Hello, ${process.argv[2]}!`);' > hello.js + * ``` + * 2. Create a configuration file building a blob that can be injected into the + * single executable application (see `Generating single executable preparation blobs` for details): + * ```bash + * echo '{ "main": "hello.js", "output": "sea-prep.blob" }' > sea-config.json + * ``` + * 3. Generate the blob to be injected: + * ```bash + * node --experimental-sea-config sea-config.json + * ``` + * 4. Create a copy of the `node` executable and name it according to your needs: + * * On systems other than Windows: + * ```bash + * cp $(command -v node) hello + * ``` + * * On Windows: + * ```text + * node -e "require('fs').copyFileSync(process.execPath, 'hello.exe')" + * ``` + * The `.exe` extension is necessary. + * 5. Remove the signature of the binary (macOS and Windows only): + * * On macOS: + * ```bash + * codesign --remove-signature hello + * ``` + * * On Windows (optional): + * [signtool](https://learn.microsoft.com/en-us/windows/win32/seccrypto/signtool) can be used from the installed [Windows SDK](https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/). + * If this step is + * skipped, ignore any signature-related warning from postject. + * ```powershell + * signtool remove /s hello.exe + * ``` + * 6. Inject the blob into the copied binary by running `postject` with + * the following options: + * * `hello` / `hello.exe` \- The name of the copy of the `node` executable + * created in step 4. + * * `NODE_SEA_BLOB` \- The name of the resource / note / section in the binary + * where the contents of the blob will be stored. + * * `sea-prep.blob` \- The name of the blob created in step 1. + * * `--sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2` \- The [fuse](https://www.electronjs.org/docs/latest/tutorial/fuses) used by the Node.js project to detect if a file has been + * injected. + * * `--macho-segment-name NODE_SEA` (only needed on macOS) - The name of the + * segment in the binary where the contents of the blob will be + * stored. + * To summarize, here is the required command for each platform: + * * On Linux: + * ```bash + * npx postject hello NODE_SEA_BLOB sea-prep.blob \ + * --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 + * ``` + * * On Windows - PowerShell: + * ```powershell + * npx postject hello.exe NODE_SEA_BLOB sea-prep.blob ` + * --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 + * ``` + * * On Windows - Command Prompt: + * ```text + * npx postject hello.exe NODE_SEA_BLOB sea-prep.blob ^ + * --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 + * ``` + * * On macOS: + * ```bash + * npx postject hello NODE_SEA_BLOB sea-prep.blob \ + * --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 \ + * --macho-segment-name NODE_SEA + * ``` + * 7. Sign the binary (macOS and Windows only): + * * On macOS: + * ```bash + * codesign --sign - hello + * ``` + * * On Windows (optional): + * A certificate needs to be present for this to work. However, the unsigned + * binary would still be runnable. + * ```powershell + * signtool sign /fd SHA256 hello.exe + * ``` + * 8. Run the binary: + * * On systems other than Windows + * ```console + * $ ./hello world + * Hello, world! + * ``` + * * On Windows + * ```console + * $ .\hello.exe world + * Hello, world! + * ``` + * @since v19.7.0, v18.16.0 + * @experimental + * @see [source](https://github.com/nodejs/node/blob/v20.12.0/src/node_sea.cc) + */ +declare module "node:sea" { + type AssetKey = string; + /** + * @since v20.12.0 + * @return Whether this script is running inside a single-executable application. + */ + function isSea(): boolean; + /** + * This method can be used to retrieve the assets configured to be bundled into the + * single-executable application at build time. + * An error is thrown when no matching asset can be found. + * @since v20.12.0 + */ + function getAsset(key: AssetKey): ArrayBuffer; + function getAsset(key: AssetKey, encoding: string): string; + /** + * Similar to `sea.getAsset()`, but returns the result in a [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob). + * An error is thrown when no matching asset can be found. + * @since v20.12.0 + */ + function getAssetAsBlob(key: AssetKey, options?: { + type: string; + }): Blob; + /** + * This method can be used to retrieve the assets configured to be bundled into the + * single-executable application at build time. + * An error is thrown when no matching asset can be found. + * + * Unlike `sea.getRawAsset()` or `sea.getAssetAsBlob()`, this method does not + * return a copy. Instead, it returns the raw asset bundled inside the executable. + * + * For now, users should avoid writing to the returned array buffer. If the + * injected section is not marked as writable or not aligned properly, + * writes to the returned array buffer is likely to result in a crash. + * @since v20.12.0 + */ + function getRawAsset(key: AssetKey): string | ArrayBuffer; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/stream.d.ts b/backend/node_modules/httpx/node_modules/@types/node/stream.d.ts new file mode 100644 index 0000000..9d13d1b --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/stream.d.ts @@ -0,0 +1,1675 @@ +/** + * A stream is an abstract interface for working with streaming data in Node.js. + * The `node:stream` module provides an API for implementing the stream interface. + * + * There are many stream objects provided by Node.js. For instance, a [request to an HTTP server](https://nodejs.org/docs/latest-v20.x/api/http.html#class-httpincomingmessage) + * and [`process.stdout`](https://nodejs.org/docs/latest-v20.x/api/process.html#processstdout) are both stream instances. + * + * Streams can be readable, writable, or both. All streams are instances of [`EventEmitter`](https://nodejs.org/docs/latest-v20.x/api/events.html#class-eventemitter). + * + * To access the `node:stream` module: + * + * ```js + * import stream from 'node:stream'; + * ``` + * + * The `node:stream` module is useful for creating new types of stream instances. + * It is usually not necessary to use the `node:stream` module to consume streams. + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/stream.js) + */ +declare module "stream" { + import { Abortable, EventEmitter } from "node:events"; + import { Blob as NodeBlob } from "node:buffer"; + import * as streamPromises from "node:stream/promises"; + import * as streamWeb from "node:stream/web"; + + type ComposeFnParam = (source: any) => void; + + class Stream extends EventEmitter { + pipe( + destination: T, + options?: { + end?: boolean | undefined; + }, + ): T; + compose( + stream: T | ComposeFnParam | Iterable | AsyncIterable, + options?: { signal: AbortSignal }, + ): T; + } + namespace Stream { + export { Stream, streamPromises as promises }; + } + namespace Stream { + interface StreamOptions extends Abortable { + emitClose?: boolean | undefined; + highWaterMark?: number | undefined; + objectMode?: boolean | undefined; + construct?: ((this: T, callback: (error?: Error | null) => void) => void) | undefined; + destroy?: ((this: T, error: Error | null, callback: (error?: Error | null) => void) => void) | undefined; + autoDestroy?: boolean | undefined; + } + interface ReadableOptions extends StreamOptions { + encoding?: BufferEncoding | undefined; + read?: ((this: T, size: number) => void) | undefined; + } + interface ArrayOptions { + /** + * The maximum concurrent invocations of `fn` to call on the stream at once. + * @default 1 + */ + concurrency?: number | undefined; + /** Allows destroying the stream if the signal is aborted. */ + signal?: AbortSignal | undefined; + } + /** + * @since v0.9.4 + */ + class Readable extends Stream implements NodeJS.ReadableStream { + /** + * A utility method for creating Readable Streams out of iterators. + * @since v12.3.0, v10.17.0 + * @param iterable Object implementing the `Symbol.asyncIterator` or `Symbol.iterator` iterable protocol. Emits an 'error' event if a null value is passed. + * @param options Options provided to `new stream.Readable([options])`. By default, `Readable.from()` will set `options.objectMode` to `true`, unless this is explicitly opted out by setting `options.objectMode` to `false`. + */ + static from(iterable: Iterable | AsyncIterable, options?: ReadableOptions): Readable; + /** + * A utility method for creating a `Readable` from a web `ReadableStream`. + * @since v17.0.0 + * @experimental + */ + static fromWeb( + readableStream: streamWeb.ReadableStream, + options?: Pick, + ): Readable; + /** + * A utility method for creating a web `ReadableStream` from a `Readable`. + * @since v17.0.0 + * @experimental + */ + static toWeb( + streamReadable: Readable, + options?: { + strategy?: streamWeb.QueuingStrategy | undefined; + }, + ): streamWeb.ReadableStream; + /** + * Returns whether the stream has been read from or cancelled. + * @since v16.8.0 + */ + static isDisturbed(stream: Readable | NodeJS.ReadableStream): boolean; + /** + * Returns whether the stream was destroyed or errored before emitting `'end'`. + * @since v16.8.0 + * @experimental + */ + readonly readableAborted: boolean; + /** + * Is `true` if it is safe to call {@link read}, which means + * the stream has not been destroyed or emitted `'error'` or `'end'`. + * @since v11.4.0 + */ + readable: boolean; + /** + * Returns whether `'data'` has been emitted. + * @since v16.7.0, v14.18.0 + * @experimental + */ + readonly readableDidRead: boolean; + /** + * Getter for the property `encoding` of a given `Readable` stream. The `encoding` property can be set using the {@link setEncoding} method. + * @since v12.7.0 + */ + readonly readableEncoding: BufferEncoding | null; + /** + * Becomes `true` when [`'end'`](https://nodejs.org/docs/latest-v20.x/api/stream.html#event-end) event is emitted. + * @since v12.9.0 + */ + readonly readableEnded: boolean; + /** + * This property reflects the current state of a `Readable` stream as described + * in the [Three states](https://nodejs.org/docs/latest-v20.x/api/stream.html#three-states) section. + * @since v9.4.0 + */ + readonly readableFlowing: boolean | null; + /** + * Returns the value of `highWaterMark` passed when creating this `Readable`. + * @since v9.3.0 + */ + readonly readableHighWaterMark: number; + /** + * This property contains the number of bytes (or objects) in the queue + * ready to be read. The value provides introspection data regarding + * the status of the `highWaterMark`. + * @since v9.4.0 + */ + readonly readableLength: number; + /** + * Getter for the property `objectMode` of a given `Readable` stream. + * @since v12.3.0 + */ + readonly readableObjectMode: boolean; + /** + * Is `true` after `readable.destroy()` has been called. + * @since v8.0.0 + */ + destroyed: boolean; + /** + * Is `true` after `'close'` has been emitted. + * @since v18.0.0 + */ + readonly closed: boolean; + /** + * Returns error if the stream has been destroyed with an error. + * @since v18.0.0 + */ + readonly errored: Error | null; + constructor(opts?: ReadableOptions); + _construct?(callback: (error?: Error | null) => void): void; + _read(size: number): void; + /** + * The `readable.read()` method reads data out of the internal buffer and + * returns it. If no data is available to be read, `null` is returned. By default, + * the data is returned as a `Buffer` object unless an encoding has been + * specified using the `readable.setEncoding()` method or the stream is operating + * in object mode. + * + * The optional `size` argument specifies a specific number of bytes to read. If + * `size` bytes are not available to be read, `null` will be returned _unless_ the + * stream has ended, in which case all of the data remaining in the internal buffer + * will be returned. + * + * If the `size` argument is not specified, all of the data contained in the + * internal buffer will be returned. + * + * The `size` argument must be less than or equal to 1 GiB. + * + * The `readable.read()` method should only be called on `Readable` streams + * operating in paused mode. In flowing mode, `readable.read()` is called + * automatically until the internal buffer is fully drained. + * + * ```js + * const readable = getReadableStreamSomehow(); + * + * // 'readable' may be triggered multiple times as data is buffered in + * readable.on('readable', () => { + * let chunk; + * console.log('Stream is readable (new data received in buffer)'); + * // Use a loop to make sure we read all currently available data + * while (null !== (chunk = readable.read())) { + * console.log(`Read ${chunk.length} bytes of data...`); + * } + * }); + * + * // 'end' will be triggered once when there is no more data available + * readable.on('end', () => { + * console.log('Reached end of stream.'); + * }); + * ``` + * + * Each call to `readable.read()` returns a chunk of data, or `null`. The chunks + * are not concatenated. A `while` loop is necessary to consume all data + * currently in the buffer. When reading a large file `.read()` may return `null`, + * having consumed all buffered content so far, but there is still more data to + * come not yet buffered. In this case a new `'readable'` event will be emitted + * when there is more data in the buffer. Finally the `'end'` event will be + * emitted when there is no more data to come. + * + * Therefore to read a file's whole contents from a `readable`, it is necessary + * to collect chunks across multiple `'readable'` events: + * + * ```js + * const chunks = []; + * + * readable.on('readable', () => { + * let chunk; + * while (null !== (chunk = readable.read())) { + * chunks.push(chunk); + * } + * }); + * + * readable.on('end', () => { + * const content = chunks.join(''); + * }); + * ``` + * + * A `Readable` stream in object mode will always return a single item from + * a call to `readable.read(size)`, regardless of the value of the `size` argument. + * + * If the `readable.read()` method returns a chunk of data, a `'data'` event will + * also be emitted. + * + * Calling {@link read} after the `'end'` event has + * been emitted will return `null`. No runtime error will be raised. + * @since v0.9.4 + * @param size Optional argument to specify how much data to read. + */ + read(size?: number): any; + /** + * The `readable.setEncoding()` method sets the character encoding for + * data read from the `Readable` stream. + * + * By default, no encoding is assigned and stream data will be returned as `Buffer` objects. Setting an encoding causes the stream data + * to be returned as strings of the specified encoding rather than as `Buffer` objects. For instance, calling `readable.setEncoding('utf8')` will cause the + * output data to be interpreted as UTF-8 data, and passed as strings. Calling `readable.setEncoding('hex')` will cause the data to be encoded in hexadecimal + * string format. + * + * The `Readable` stream will properly handle multi-byte characters delivered + * through the stream that would otherwise become improperly decoded if simply + * pulled from the stream as `Buffer` objects. + * + * ```js + * const readable = getReadableStreamSomehow(); + * readable.setEncoding('utf8'); + * readable.on('data', (chunk) => { + * assert.equal(typeof chunk, 'string'); + * console.log('Got %d characters of string data:', chunk.length); + * }); + * ``` + * @since v0.9.4 + * @param encoding The encoding to use. + */ + setEncoding(encoding: BufferEncoding): this; + /** + * The `readable.pause()` method will cause a stream in flowing mode to stop + * emitting `'data'` events, switching out of flowing mode. Any data that + * becomes available will remain in the internal buffer. + * + * ```js + * const readable = getReadableStreamSomehow(); + * readable.on('data', (chunk) => { + * console.log(`Received ${chunk.length} bytes of data.`); + * readable.pause(); + * console.log('There will be no additional data for 1 second.'); + * setTimeout(() => { + * console.log('Now data will start flowing again.'); + * readable.resume(); + * }, 1000); + * }); + * ``` + * + * The `readable.pause()` method has no effect if there is a `'readable'` event listener. + * @since v0.9.4 + */ + pause(): this; + /** + * The `readable.resume()` method causes an explicitly paused `Readable` stream to + * resume emitting `'data'` events, switching the stream into flowing mode. + * + * The `readable.resume()` method can be used to fully consume the data from a + * stream without actually processing any of that data: + * + * ```js + * getReadableStreamSomehow() + * .resume() + * .on('end', () => { + * console.log('Reached the end, but did not read anything.'); + * }); + * ``` + * + * The `readable.resume()` method has no effect if there is a `'readable'` event listener. + * @since v0.9.4 + */ + resume(): this; + /** + * The `readable.isPaused()` method returns the current operating state of the `Readable`. + * This is used primarily by the mechanism that underlies the `readable.pipe()` method. + * In most typical cases, there will be no reason to use this method directly. + * + * ```js + * const readable = new stream.Readable(); + * + * readable.isPaused(); // === false + * readable.pause(); + * readable.isPaused(); // === true + * readable.resume(); + * readable.isPaused(); // === false + * ``` + * @since v0.11.14 + */ + isPaused(): boolean; + /** + * The `readable.unpipe()` method detaches a `Writable` stream previously attached + * using the {@link pipe} method. + * + * If the `destination` is not specified, then _all_ pipes are detached. + * + * If the `destination` is specified, but no pipe is set up for it, then + * the method does nothing. + * + * ```js + * import fs from 'node:fs'; + * const readable = getReadableStreamSomehow(); + * const writable = fs.createWriteStream('file.txt'); + * // All the data from readable goes into 'file.txt', + * // but only for the first second. + * readable.pipe(writable); + * setTimeout(() => { + * console.log('Stop writing to file.txt.'); + * readable.unpipe(writable); + * console.log('Manually close the file stream.'); + * writable.end(); + * }, 1000); + * ``` + * @since v0.9.4 + * @param destination Optional specific stream to unpipe + */ + unpipe(destination?: NodeJS.WritableStream): this; + /** + * Passing `chunk` as `null` signals the end of the stream (EOF) and behaves the + * same as `readable.push(null)`, after which no more data can be written. The EOF + * signal is put at the end of the buffer and any buffered data will still be + * flushed. + * + * The `readable.unshift()` method pushes a chunk of data back into the internal + * buffer. This is useful in certain situations where a stream is being consumed by + * code that needs to "un-consume" some amount of data that it has optimistically + * pulled out of the source, so that the data can be passed on to some other party. + * + * The `stream.unshift(chunk)` method cannot be called after the `'end'` event + * has been emitted or a runtime error will be thrown. + * + * Developers using `stream.unshift()` often should consider switching to + * use of a `Transform` stream instead. See the `API for stream implementers` section for more information. + * + * ```js + * // Pull off a header delimited by \n\n. + * // Use unshift() if we get too much. + * // Call the callback with (error, header, stream). + * import { StringDecoder } from 'node:string_decoder'; + * function parseHeader(stream, callback) { + * stream.on('error', callback); + * stream.on('readable', onReadable); + * const decoder = new StringDecoder('utf8'); + * let header = ''; + * function onReadable() { + * let chunk; + * while (null !== (chunk = stream.read())) { + * const str = decoder.write(chunk); + * if (str.includes('\n\n')) { + * // Found the header boundary. + * const split = str.split(/\n\n/); + * header += split.shift(); + * const remaining = split.join('\n\n'); + * const buf = Buffer.from(remaining, 'utf8'); + * stream.removeListener('error', callback); + * // Remove the 'readable' listener before unshifting. + * stream.removeListener('readable', onReadable); + * if (buf.length) + * stream.unshift(buf); + * // Now the body of the message can be read from the stream. + * callback(null, header, stream); + * return; + * } + * // Still reading the header. + * header += str; + * } + * } + * } + * ``` + * + * Unlike {@link push}, `stream.unshift(chunk)` will not + * end the reading process by resetting the internal reading state of the stream. + * This can cause unexpected results if `readable.unshift()` is called during a + * read (i.e. from within a {@link _read} implementation on a + * custom stream). Following the call to `readable.unshift()` with an immediate {@link push} will reset the reading state appropriately, + * however it is best to simply avoid calling `readable.unshift()` while in the + * process of performing a read. + * @since v0.9.11 + * @param chunk Chunk of data to unshift onto the read queue. For streams not operating in object mode, `chunk` must + * be a {string}, {Buffer}, {TypedArray}, {DataView} or `null`. For object mode streams, `chunk` may be any JavaScript value. + * @param encoding Encoding of string chunks. Must be a valid `Buffer` encoding, such as `'utf8'` or `'ascii'`. + */ + unshift(chunk: any, encoding?: BufferEncoding): void; + /** + * Prior to Node.js 0.10, streams did not implement the entire `node:stream` module API as it is currently defined. (See `Compatibility` for more + * information.) + * + * When using an older Node.js library that emits `'data'` events and has a {@link pause} method that is advisory only, the `readable.wrap()` method can be used to create a `Readable` + * stream that uses + * the old stream as its data source. + * + * It will rarely be necessary to use `readable.wrap()` but the method has been + * provided as a convenience for interacting with older Node.js applications and + * libraries. + * + * ```js + * import { OldReader } from './old-api-module.js'; + * import { Readable } from 'node:stream'; + * const oreader = new OldReader(); + * const myReader = new Readable().wrap(oreader); + * + * myReader.on('readable', () => { + * myReader.read(); // etc. + * }); + * ``` + * @since v0.9.4 + * @param stream An "old style" readable stream + */ + wrap(stream: NodeJS.ReadableStream): this; + push(chunk: any, encoding?: BufferEncoding): boolean; + /** + * The iterator created by this method gives users the option to cancel the destruction + * of the stream if the `for await...of` loop is exited by `return`, `break`, or `throw`, + * or if the iterator should destroy the stream if the stream emitted an error during iteration. + * @since v16.3.0 + * @param options.destroyOnReturn When set to `false`, calling `return` on the async iterator, + * or exiting a `for await...of` iteration using a `break`, `return`, or `throw` will not destroy the stream. + * **Default: `true`**. + */ + iterator(options?: { destroyOnReturn?: boolean }): NodeJS.AsyncIterator; + /** + * This method allows mapping over the stream. The *fn* function will be called for every chunk in the stream. + * If the *fn* function returns a promise - that promise will be `await`ed before being passed to the result stream. + * @since v17.4.0, v16.14.0 + * @param fn a function to map over every chunk in the stream. Async or not. + * @returns a stream mapped with the function *fn*. + */ + map(fn: (data: any, options?: Pick) => any, options?: ArrayOptions): Readable; + /** + * This method allows filtering the stream. For each chunk in the stream the *fn* function will be called + * and if it returns a truthy value, the chunk will be passed to the result stream. + * If the *fn* function returns a promise - that promise will be `await`ed. + * @since v17.4.0, v16.14.0 + * @param fn a function to filter chunks from the stream. Async or not. + * @returns a stream filtered with the predicate *fn*. + */ + filter( + fn: (data: any, options?: Pick) => boolean | Promise, + options?: ArrayOptions, + ): Readable; + /** + * This method allows iterating a stream. For each chunk in the stream the *fn* function will be called. + * If the *fn* function returns a promise - that promise will be `await`ed. + * + * This method is different from `for await...of` loops in that it can optionally process chunks concurrently. + * In addition, a `forEach` iteration can only be stopped by having passed a `signal` option + * and aborting the related AbortController while `for await...of` can be stopped with `break` or `return`. + * In either case the stream will be destroyed. + * + * This method is different from listening to the `'data'` event in that it uses the `readable` event + * in the underlying machinary and can limit the number of concurrent *fn* calls. + * @since v17.5.0 + * @param fn a function to call on each chunk of the stream. Async or not. + * @returns a promise for when the stream has finished. + */ + forEach( + fn: (data: any, options?: Pick) => void | Promise, + options?: ArrayOptions, + ): Promise; + /** + * This method allows easily obtaining the contents of a stream. + * + * As this method reads the entire stream into memory, it negates the benefits of streams. It's intended + * for interoperability and convenience, not as the primary way to consume streams. + * @since v17.5.0 + * @returns a promise containing an array with the contents of the stream. + */ + toArray(options?: Pick): Promise; + /** + * This method is similar to `Array.prototype.some` and calls *fn* on each chunk in the stream + * until the awaited return value is `true` (or any truthy value). Once an *fn* call on a chunk + * `await`ed return value is truthy, the stream is destroyed and the promise is fulfilled with `true`. + * If none of the *fn* calls on the chunks return a truthy value, the promise is fulfilled with `false`. + * @since v17.5.0 + * @param fn a function to call on each chunk of the stream. Async or not. + * @returns a promise evaluating to `true` if *fn* returned a truthy value for at least one of the chunks. + */ + some( + fn: (data: any, options?: Pick) => boolean | Promise, + options?: ArrayOptions, + ): Promise; + /** + * This method is similar to `Array.prototype.find` and calls *fn* on each chunk in the stream + * to find a chunk with a truthy value for *fn*. Once an *fn* call's awaited return value is truthy, + * the stream is destroyed and the promise is fulfilled with value for which *fn* returned a truthy value. + * If all of the *fn* calls on the chunks return a falsy value, the promise is fulfilled with `undefined`. + * @since v17.5.0 + * @param fn a function to call on each chunk of the stream. Async or not. + * @returns a promise evaluating to the first chunk for which *fn* evaluated with a truthy value, + * or `undefined` if no element was found. + */ + find( + fn: (data: any, options?: Pick) => data is T, + options?: ArrayOptions, + ): Promise; + find( + fn: (data: any, options?: Pick) => boolean | Promise, + options?: ArrayOptions, + ): Promise; + /** + * This method is similar to `Array.prototype.every` and calls *fn* on each chunk in the stream + * to check if all awaited return values are truthy value for *fn*. Once an *fn* call on a chunk + * `await`ed return value is falsy, the stream is destroyed and the promise is fulfilled with `false`. + * If all of the *fn* calls on the chunks return a truthy value, the promise is fulfilled with `true`. + * @since v17.5.0 + * @param fn a function to call on each chunk of the stream. Async or not. + * @returns a promise evaluating to `true` if *fn* returned a truthy value for every one of the chunks. + */ + every( + fn: (data: any, options?: Pick) => boolean | Promise, + options?: ArrayOptions, + ): Promise; + /** + * This method returns a new stream by applying the given callback to each chunk of the stream + * and then flattening the result. + * + * It is possible to return a stream or another iterable or async iterable from *fn* and the result streams + * will be merged (flattened) into the returned stream. + * @since v17.5.0 + * @param fn a function to map over every chunk in the stream. May be async. May be a stream or generator. + * @returns a stream flat-mapped with the function *fn*. + */ + flatMap(fn: (data: any, options?: Pick) => any, options?: ArrayOptions): Readable; + /** + * This method returns a new stream with the first *limit* chunks dropped from the start. + * @since v17.5.0 + * @param limit the number of chunks to drop from the readable. + * @returns a stream with *limit* chunks dropped from the start. + */ + drop(limit: number, options?: Pick): Readable; + /** + * This method returns a new stream with the first *limit* chunks. + * @since v17.5.0 + * @param limit the number of chunks to take from the readable. + * @returns a stream with *limit* chunks taken. + */ + take(limit: number, options?: Pick): Readable; + /** + * This method returns a new stream with chunks of the underlying stream paired with a counter + * in the form `[index, chunk]`. The first index value is `0` and it increases by 1 for each chunk produced. + * @since v17.5.0 + * @returns a stream of indexed pairs. + */ + asIndexedPairs(options?: Pick): Readable; + /** + * This method calls *fn* on each chunk of the stream in order, passing it the result from the calculation + * on the previous element. It returns a promise for the final value of the reduction. + * + * If no *initial* value is supplied the first chunk of the stream is used as the initial value. + * If the stream is empty, the promise is rejected with a `TypeError` with the `ERR_INVALID_ARGS` code property. + * + * The reducer function iterates the stream element-by-element which means that there is no *concurrency* parameter + * or parallelism. To perform a reduce concurrently, you can extract the async function to `readable.map` method. + * @since v17.5.0 + * @param fn a reducer function to call over every chunk in the stream. Async or not. + * @param initial the initial value to use in the reduction. + * @returns a promise for the final value of the reduction. + */ + reduce( + fn: (previous: any, data: any, options?: Pick) => T, + initial?: undefined, + options?: Pick, + ): Promise; + reduce( + fn: (previous: T, data: any, options?: Pick) => T, + initial: T, + options?: Pick, + ): Promise; + _destroy(error: Error | null, callback: (error?: Error | null) => void): void; + /** + * Destroy the stream. Optionally emit an `'error'` event, and emit a `'close'` event (unless `emitClose` is set to `false`). After this call, the readable + * stream will release any internal resources and subsequent calls to `push()` will be ignored. + * + * Once `destroy()` has been called any further calls will be a no-op and no + * further errors except from `_destroy()` may be emitted as `'error'`. + * + * Implementors should not override this method, but instead implement `readable._destroy()`. + * @since v8.0.0 + * @param error Error which will be passed as payload in `'error'` event + */ + destroy(error?: Error): this; + /** + * Event emitter + * The defined events on documents including: + * 1. close + * 2. data + * 3. end + * 4. error + * 5. pause + * 6. readable + * 7. resume + */ + addListener(event: "close", listener: () => void): this; + addListener(event: "data", listener: (chunk: any) => void): this; + addListener(event: "end", listener: () => void): this; + addListener(event: "error", listener: (err: Error) => void): this; + addListener(event: "pause", listener: () => void): this; + addListener(event: "readable", listener: () => void): this; + addListener(event: "resume", listener: () => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + emit(event: "close"): boolean; + emit(event: "data", chunk: any): boolean; + emit(event: "end"): boolean; + emit(event: "error", err: Error): boolean; + emit(event: "pause"): boolean; + emit(event: "readable"): boolean; + emit(event: "resume"): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + on(event: "close", listener: () => void): this; + on(event: "data", listener: (chunk: any) => void): this; + on(event: "end", listener: () => void): this; + on(event: "error", listener: (err: Error) => void): this; + on(event: "pause", listener: () => void): this; + on(event: "readable", listener: () => void): this; + on(event: "resume", listener: () => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + once(event: "close", listener: () => void): this; + once(event: "data", listener: (chunk: any) => void): this; + once(event: "end", listener: () => void): this; + once(event: "error", listener: (err: Error) => void): this; + once(event: "pause", listener: () => void): this; + once(event: "readable", listener: () => void): this; + once(event: "resume", listener: () => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + prependListener(event: "close", listener: () => void): this; + prependListener(event: "data", listener: (chunk: any) => void): this; + prependListener(event: "end", listener: () => void): this; + prependListener(event: "error", listener: (err: Error) => void): this; + prependListener(event: "pause", listener: () => void): this; + prependListener(event: "readable", listener: () => void): this; + prependListener(event: "resume", listener: () => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + prependOnceListener(event: "close", listener: () => void): this; + prependOnceListener(event: "data", listener: (chunk: any) => void): this; + prependOnceListener(event: "end", listener: () => void): this; + prependOnceListener(event: "error", listener: (err: Error) => void): this; + prependOnceListener(event: "pause", listener: () => void): this; + prependOnceListener(event: "readable", listener: () => void): this; + prependOnceListener(event: "resume", listener: () => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + removeListener(event: "close", listener: () => void): this; + removeListener(event: "data", listener: (chunk: any) => void): this; + removeListener(event: "end", listener: () => void): this; + removeListener(event: "error", listener: (err: Error) => void): this; + removeListener(event: "pause", listener: () => void): this; + removeListener(event: "readable", listener: () => void): this; + removeListener(event: "resume", listener: () => void): this; + removeListener(event: string | symbol, listener: (...args: any[]) => void): this; + [Symbol.asyncIterator](): NodeJS.AsyncIterator; + /** + * Calls `readable.destroy()` with an `AbortError` and returns a promise that fulfills when the stream is finished. + * @since v20.4.0 + */ + [Symbol.asyncDispose](): Promise; + } + interface WritableOptions extends StreamOptions { + decodeStrings?: boolean | undefined; + defaultEncoding?: BufferEncoding | undefined; + write?: + | (( + this: T, + chunk: any, + encoding: BufferEncoding, + callback: (error?: Error | null) => void, + ) => void) + | undefined; + writev?: + | (( + this: T, + chunks: Array<{ + chunk: any; + encoding: BufferEncoding; + }>, + callback: (error?: Error | null) => void, + ) => void) + | undefined; + final?: ((this: T, callback: (error?: Error | null) => void) => void) | undefined; + } + /** + * @since v0.9.4 + */ + class Writable extends Stream implements NodeJS.WritableStream { + /** + * A utility method for creating a `Writable` from a web `WritableStream`. + * @since v17.0.0 + * @experimental + */ + static fromWeb( + writableStream: streamWeb.WritableStream, + options?: Pick, + ): Writable; + /** + * A utility method for creating a web `WritableStream` from a `Writable`. + * @since v17.0.0 + * @experimental + */ + static toWeb(streamWritable: Writable): streamWeb.WritableStream; + /** + * Is `true` if it is safe to call `writable.write()`, which means + * the stream has not been destroyed, errored, or ended. + * @since v11.4.0 + */ + readonly writable: boolean; + /** + * Returns whether the stream was destroyed or errored before emitting `'finish'`. + * @since v18.0.0, v16.17.0 + * @experimental + */ + readonly writableAborted: boolean; + /** + * Is `true` after `writable.end()` has been called. This property + * does not indicate whether the data has been flushed, for this use `writable.writableFinished` instead. + * @since v12.9.0 + */ + readonly writableEnded: boolean; + /** + * Is set to `true` immediately before the `'finish'` event is emitted. + * @since v12.6.0 + */ + readonly writableFinished: boolean; + /** + * Return the value of `highWaterMark` passed when creating this `Writable`. + * @since v9.3.0 + */ + readonly writableHighWaterMark: number; + /** + * This property contains the number of bytes (or objects) in the queue + * ready to be written. The value provides introspection data regarding + * the status of the `highWaterMark`. + * @since v9.4.0 + */ + readonly writableLength: number; + /** + * Getter for the property `objectMode` of a given `Writable` stream. + * @since v12.3.0 + */ + readonly writableObjectMode: boolean; + /** + * Number of times `writable.uncork()` needs to be + * called in order to fully uncork the stream. + * @since v13.2.0, v12.16.0 + */ + readonly writableCorked: number; + /** + * Is `true` after `writable.destroy()` has been called. + * @since v8.0.0 + */ + destroyed: boolean; + /** + * Is `true` after `'close'` has been emitted. + * @since v18.0.0 + */ + readonly closed: boolean; + /** + * Returns error if the stream has been destroyed with an error. + * @since v18.0.0 + */ + readonly errored: Error | null; + /** + * Is `true` if the stream's buffer has been full and stream will emit `'drain'`. + * @since v15.2.0, v14.17.0 + */ + readonly writableNeedDrain: boolean; + constructor(opts?: WritableOptions); + _write(chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void; + _writev?( + chunks: Array<{ + chunk: any; + encoding: BufferEncoding; + }>, + callback: (error?: Error | null) => void, + ): void; + _construct?(callback: (error?: Error | null) => void): void; + _destroy(error: Error | null, callback: (error?: Error | null) => void): void; + _final(callback: (error?: Error | null) => void): void; + /** + * The `writable.write()` method writes some data to the stream, and calls the + * supplied `callback` once the data has been fully handled. If an error + * occurs, the `callback` will be called with the error as its + * first argument. The `callback` is called asynchronously and before `'error'` is + * emitted. + * + * The return value is `true` if the internal buffer is less than the `highWaterMark` configured when the stream was created after admitting `chunk`. + * If `false` is returned, further attempts to write data to the stream should + * stop until the `'drain'` event is emitted. + * + * While a stream is not draining, calls to `write()` will buffer `chunk`, and + * return false. Once all currently buffered chunks are drained (accepted for + * delivery by the operating system), the `'drain'` event will be emitted. + * Once `write()` returns false, do not write more chunks + * until the `'drain'` event is emitted. While calling `write()` on a stream that + * is not draining is allowed, Node.js will buffer all written chunks until + * maximum memory usage occurs, at which point it will abort unconditionally. + * Even before it aborts, high memory usage will cause poor garbage collector + * performance and high RSS (which is not typically released back to the system, + * even after the memory is no longer required). Since TCP sockets may never + * drain if the remote peer does not read the data, writing a socket that is + * not draining may lead to a remotely exploitable vulnerability. + * + * Writing data while the stream is not draining is particularly + * problematic for a `Transform`, because the `Transform` streams are paused + * by default until they are piped or a `'data'` or `'readable'` event handler + * is added. + * + * If the data to be written can be generated or fetched on demand, it is + * recommended to encapsulate the logic into a `Readable` and use {@link pipe}. However, if calling `write()` is preferred, it is + * possible to respect backpressure and avoid memory issues using the `'drain'` event: + * + * ```js + * function write(data, cb) { + * if (!stream.write(data)) { + * stream.once('drain', cb); + * } else { + * process.nextTick(cb); + * } + * } + * + * // Wait for cb to be called before doing any other write. + * write('hello', () => { + * console.log('Write completed, do more writes now.'); + * }); + * ``` + * + * A `Writable` stream in object mode will always ignore the `encoding` argument. + * @since v0.9.4 + * @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a {string}, {Buffer}, + * {TypedArray} or {DataView}. For object mode streams, `chunk` may be any JavaScript value other than `null`. + * @param [encoding='utf8'] The encoding, if `chunk` is a string. + * @param callback Callback for when this chunk of data is flushed. + * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. + */ + write(chunk: any, callback?: (error: Error | null | undefined) => void): boolean; + write(chunk: any, encoding: BufferEncoding, callback?: (error: Error | null | undefined) => void): boolean; + /** + * The `writable.setDefaultEncoding()` method sets the default `encoding` for a `Writable` stream. + * @since v0.11.15 + * @param encoding The new default encoding + */ + setDefaultEncoding(encoding: BufferEncoding): this; + /** + * Calling the `writable.end()` method signals that no more data will be written + * to the `Writable`. The optional `chunk` and `encoding` arguments allow one + * final additional chunk of data to be written immediately before closing the + * stream. + * + * Calling the {@link write} method after calling {@link end} will raise an error. + * + * ```js + * // Write 'hello, ' and then end with 'world!'. + * import fs from 'node:fs'; + * const file = fs.createWriteStream('example.txt'); + * file.write('hello, '); + * file.end('world!'); + * // Writing more now is not allowed! + * ``` + * @since v0.9.4 + * @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a {string}, {Buffer}, + * {TypedArray} or {DataView}. For object mode streams, `chunk` may be any JavaScript value other than `null`. + * @param encoding The encoding if `chunk` is a string + * @param callback Callback for when the stream is finished. + */ + end(cb?: () => void): this; + end(chunk: any, cb?: () => void): this; + end(chunk: any, encoding: BufferEncoding, cb?: () => void): this; + /** + * The `writable.cork()` method forces all written data to be buffered in memory. + * The buffered data will be flushed when either the {@link uncork} or {@link end} methods are called. + * + * The primary intent of `writable.cork()` is to accommodate a situation in which + * several small chunks are written to the stream in rapid succession. Instead of + * immediately forwarding them to the underlying destination, `writable.cork()` buffers all the chunks until `writable.uncork()` is called, which will pass them + * all to `writable._writev()`, if present. This prevents a head-of-line blocking + * situation where data is being buffered while waiting for the first small chunk + * to be processed. However, use of `writable.cork()` without implementing `writable._writev()` may have an adverse effect on throughput. + * + * See also: `writable.uncork()`, `writable._writev()`. + * @since v0.11.2 + */ + cork(): void; + /** + * The `writable.uncork()` method flushes all data buffered since {@link cork} was called. + * + * When using `writable.cork()` and `writable.uncork()` to manage the buffering + * of writes to a stream, defer calls to `writable.uncork()` using `process.nextTick()`. Doing so allows batching of all `writable.write()` calls that occur within a given Node.js event + * loop phase. + * + * ```js + * stream.cork(); + * stream.write('some '); + * stream.write('data '); + * process.nextTick(() => stream.uncork()); + * ``` + * + * If the `writable.cork()` method is called multiple times on a stream, the + * same number of calls to `writable.uncork()` must be called to flush the buffered + * data. + * + * ```js + * stream.cork(); + * stream.write('some '); + * stream.cork(); + * stream.write('data '); + * process.nextTick(() => { + * stream.uncork(); + * // The data will not be flushed until uncork() is called a second time. + * stream.uncork(); + * }); + * ``` + * + * See also: `writable.cork()`. + * @since v0.11.2 + */ + uncork(): void; + /** + * Destroy the stream. Optionally emit an `'error'` event, and emit a `'close'` event (unless `emitClose` is set to `false`). After this call, the writable + * stream has ended and subsequent calls to `write()` or `end()` will result in + * an `ERR_STREAM_DESTROYED` error. + * This is a destructive and immediate way to destroy a stream. Previous calls to `write()` may not have drained, and may trigger an `ERR_STREAM_DESTROYED` error. + * Use `end()` instead of destroy if data should flush before close, or wait for + * the `'drain'` event before destroying the stream. + * + * Once `destroy()` has been called any further calls will be a no-op and no + * further errors except from `_destroy()` may be emitted as `'error'`. + * + * Implementors should not override this method, + * but instead implement `writable._destroy()`. + * @since v8.0.0 + * @param error Optional, an error to emit with `'error'` event. + */ + destroy(error?: Error): this; + /** + * Event emitter + * The defined events on documents including: + * 1. close + * 2. drain + * 3. error + * 4. finish + * 5. pipe + * 6. unpipe + */ + addListener(event: "close", listener: () => void): this; + addListener(event: "drain", listener: () => void): this; + addListener(event: "error", listener: (err: Error) => void): this; + addListener(event: "finish", listener: () => void): this; + addListener(event: "pipe", listener: (src: Readable) => void): this; + addListener(event: "unpipe", listener: (src: Readable) => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + emit(event: "close"): boolean; + emit(event: "drain"): boolean; + emit(event: "error", err: Error): boolean; + emit(event: "finish"): boolean; + emit(event: "pipe", src: Readable): boolean; + emit(event: "unpipe", src: Readable): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + on(event: "close", listener: () => void): this; + on(event: "drain", listener: () => void): this; + on(event: "error", listener: (err: Error) => void): this; + on(event: "finish", listener: () => void): this; + on(event: "pipe", listener: (src: Readable) => void): this; + on(event: "unpipe", listener: (src: Readable) => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + once(event: "close", listener: () => void): this; + once(event: "drain", listener: () => void): this; + once(event: "error", listener: (err: Error) => void): this; + once(event: "finish", listener: () => void): this; + once(event: "pipe", listener: (src: Readable) => void): this; + once(event: "unpipe", listener: (src: Readable) => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + prependListener(event: "close", listener: () => void): this; + prependListener(event: "drain", listener: () => void): this; + prependListener(event: "error", listener: (err: Error) => void): this; + prependListener(event: "finish", listener: () => void): this; + prependListener(event: "pipe", listener: (src: Readable) => void): this; + prependListener(event: "unpipe", listener: (src: Readable) => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + prependOnceListener(event: "close", listener: () => void): this; + prependOnceListener(event: "drain", listener: () => void): this; + prependOnceListener(event: "error", listener: (err: Error) => void): this; + prependOnceListener(event: "finish", listener: () => void): this; + prependOnceListener(event: "pipe", listener: (src: Readable) => void): this; + prependOnceListener(event: "unpipe", listener: (src: Readable) => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + removeListener(event: "close", listener: () => void): this; + removeListener(event: "drain", listener: () => void): this; + removeListener(event: "error", listener: (err: Error) => void): this; + removeListener(event: "finish", listener: () => void): this; + removeListener(event: "pipe", listener: (src: Readable) => void): this; + removeListener(event: "unpipe", listener: (src: Readable) => void): this; + removeListener(event: string | symbol, listener: (...args: any[]) => void): this; + } + interface DuplexOptions extends ReadableOptions, WritableOptions { + allowHalfOpen?: boolean | undefined; + readableObjectMode?: boolean | undefined; + writableObjectMode?: boolean | undefined; + readableHighWaterMark?: number | undefined; + writableHighWaterMark?: number | undefined; + writableCorked?: number | undefined; + } + /** + * Duplex streams are streams that implement both the `Readable` and `Writable` interfaces. + * + * Examples of `Duplex` streams include: + * + * * `TCP sockets` + * * `zlib streams` + * * `crypto streams` + * @since v0.9.4 + */ + class Duplex extends Stream implements NodeJS.ReadWriteStream { + /** + * If `false` then the stream will automatically end the writable side when the + * readable side ends. Set initially by the `allowHalfOpen` constructor option, + * which defaults to `true`. + * + * This can be changed manually to change the half-open behavior of an existing + * `Duplex` stream instance, but must be changed before the `'end'` event is emitted. + * @since v0.9.4 + */ + allowHalfOpen: boolean; + constructor(opts?: DuplexOptions); + /** + * A utility method for creating duplex streams. + * + * - `Stream` converts writable stream into writable `Duplex` and readable stream + * to `Duplex`. + * - `Blob` converts into readable `Duplex`. + * - `string` converts into readable `Duplex`. + * - `ArrayBuffer` converts into readable `Duplex`. + * - `AsyncIterable` converts into a readable `Duplex`. Cannot yield `null`. + * - `AsyncGeneratorFunction` converts into a readable/writable transform + * `Duplex`. Must take a source `AsyncIterable` as first parameter. Cannot yield + * `null`. + * - `AsyncFunction` converts into a writable `Duplex`. Must return + * either `null` or `undefined` + * - `Object ({ writable, readable })` converts `readable` and + * `writable` into `Stream` and then combines them into `Duplex` where the + * `Duplex` will write to the `writable` and read from the `readable`. + * - `Promise` converts into readable `Duplex`. Value `null` is ignored. + * + * @since v16.8.0 + */ + static from( + src: + | Stream + | NodeBlob + | ArrayBuffer + | string + | Iterable + | AsyncIterable + | AsyncGeneratorFunction + | Promise + | Object, + ): Duplex; + /** + * A utility method for creating a web `ReadableStream` and `WritableStream` from a `Duplex`. + * @since v17.0.0 + * @experimental + */ + static toWeb(streamDuplex: Duplex): { + readable: streamWeb.ReadableStream; + writable: streamWeb.WritableStream; + }; + /** + * A utility method for creating a `Duplex` from a web `ReadableStream` and `WritableStream`. + * @since v17.0.0 + * @experimental + */ + static fromWeb( + duplexStream: { + readable: streamWeb.ReadableStream; + writable: streamWeb.WritableStream; + }, + options?: Pick< + DuplexOptions, + "allowHalfOpen" | "decodeStrings" | "encoding" | "highWaterMark" | "objectMode" | "signal" + >, + ): Duplex; + /** + * Event emitter + * The defined events on documents including: + * 1. close + * 2. data + * 3. drain + * 4. end + * 5. error + * 6. finish + * 7. pause + * 8. pipe + * 9. readable + * 10. resume + * 11. unpipe + */ + addListener(event: "close", listener: () => void): this; + addListener(event: "data", listener: (chunk: any) => void): this; + addListener(event: "drain", listener: () => void): this; + addListener(event: "end", listener: () => void): this; + addListener(event: "error", listener: (err: Error) => void): this; + addListener(event: "finish", listener: () => void): this; + addListener(event: "pause", listener: () => void): this; + addListener(event: "pipe", listener: (src: Readable) => void): this; + addListener(event: "readable", listener: () => void): this; + addListener(event: "resume", listener: () => void): this; + addListener(event: "unpipe", listener: (src: Readable) => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + emit(event: "close"): boolean; + emit(event: "data", chunk: any): boolean; + emit(event: "drain"): boolean; + emit(event: "end"): boolean; + emit(event: "error", err: Error): boolean; + emit(event: "finish"): boolean; + emit(event: "pause"): boolean; + emit(event: "pipe", src: Readable): boolean; + emit(event: "readable"): boolean; + emit(event: "resume"): boolean; + emit(event: "unpipe", src: Readable): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + on(event: "close", listener: () => void): this; + on(event: "data", listener: (chunk: any) => void): this; + on(event: "drain", listener: () => void): this; + on(event: "end", listener: () => void): this; + on(event: "error", listener: (err: Error) => void): this; + on(event: "finish", listener: () => void): this; + on(event: "pause", listener: () => void): this; + on(event: "pipe", listener: (src: Readable) => void): this; + on(event: "readable", listener: () => void): this; + on(event: "resume", listener: () => void): this; + on(event: "unpipe", listener: (src: Readable) => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + once(event: "close", listener: () => void): this; + once(event: "data", listener: (chunk: any) => void): this; + once(event: "drain", listener: () => void): this; + once(event: "end", listener: () => void): this; + once(event: "error", listener: (err: Error) => void): this; + once(event: "finish", listener: () => void): this; + once(event: "pause", listener: () => void): this; + once(event: "pipe", listener: (src: Readable) => void): this; + once(event: "readable", listener: () => void): this; + once(event: "resume", listener: () => void): this; + once(event: "unpipe", listener: (src: Readable) => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + prependListener(event: "close", listener: () => void): this; + prependListener(event: "data", listener: (chunk: any) => void): this; + prependListener(event: "drain", listener: () => void): this; + prependListener(event: "end", listener: () => void): this; + prependListener(event: "error", listener: (err: Error) => void): this; + prependListener(event: "finish", listener: () => void): this; + prependListener(event: "pause", listener: () => void): this; + prependListener(event: "pipe", listener: (src: Readable) => void): this; + prependListener(event: "readable", listener: () => void): this; + prependListener(event: "resume", listener: () => void): this; + prependListener(event: "unpipe", listener: (src: Readable) => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + prependOnceListener(event: "close", listener: () => void): this; + prependOnceListener(event: "data", listener: (chunk: any) => void): this; + prependOnceListener(event: "drain", listener: () => void): this; + prependOnceListener(event: "end", listener: () => void): this; + prependOnceListener(event: "error", listener: (err: Error) => void): this; + prependOnceListener(event: "finish", listener: () => void): this; + prependOnceListener(event: "pause", listener: () => void): this; + prependOnceListener(event: "pipe", listener: (src: Readable) => void): this; + prependOnceListener(event: "readable", listener: () => void): this; + prependOnceListener(event: "resume", listener: () => void): this; + prependOnceListener(event: "unpipe", listener: (src: Readable) => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + removeListener(event: "close", listener: () => void): this; + removeListener(event: "data", listener: (chunk: any) => void): this; + removeListener(event: "drain", listener: () => void): this; + removeListener(event: "end", listener: () => void): this; + removeListener(event: "error", listener: (err: Error) => void): this; + removeListener(event: "finish", listener: () => void): this; + removeListener(event: "pause", listener: () => void): this; + removeListener(event: "pipe", listener: (src: Readable) => void): this; + removeListener(event: "readable", listener: () => void): this; + removeListener(event: "resume", listener: () => void): this; + removeListener(event: "unpipe", listener: (src: Readable) => void): this; + removeListener(event: string | symbol, listener: (...args: any[]) => void): this; + } + interface Duplex extends Readable, Writable {} + /** + * The utility function `duplexPair` returns an Array with two items, + * each being a `Duplex` stream connected to the other side: + * + * ```js + * const [ sideA, sideB ] = duplexPair(); + * ``` + * + * Whatever is written to one stream is made readable on the other. It provides + * behavior analogous to a network connection, where the data written by the client + * becomes readable by the server, and vice-versa. + * + * The Duplex streams are symmetrical; one or the other may be used without any + * difference in behavior. + * @param options A value to pass to both {@link Duplex} constructors, + * to set options such as buffering. + * @since v20.17.0 + */ + function duplexPair(options?: DuplexOptions): [Duplex, Duplex]; + type TransformCallback = (error?: Error | null, data?: any) => void; + interface TransformOptions extends DuplexOptions { + transform?: + | ((this: T, chunk: any, encoding: BufferEncoding, callback: TransformCallback) => void) + | undefined; + flush?: ((this: T, callback: TransformCallback) => void) | undefined; + } + /** + * Transform streams are `Duplex` streams where the output is in some way + * related to the input. Like all `Duplex` streams, `Transform` streams + * implement both the `Readable` and `Writable` interfaces. + * + * Examples of `Transform` streams include: + * + * * `zlib streams` + * * `crypto streams` + * @since v0.9.4 + */ + class Transform extends Duplex { + constructor(opts?: TransformOptions); + _transform(chunk: any, encoding: BufferEncoding, callback: TransformCallback): void; + _flush(callback: TransformCallback): void; + } + /** + * The `stream.PassThrough` class is a trivial implementation of a `Transform` stream that simply passes the input bytes across to the output. Its purpose is + * primarily for examples and testing, but there are some use cases where `stream.PassThrough` is useful as a building block for novel sorts of streams. + */ + class PassThrough extends Transform {} + /** + * A stream to attach a signal to. + * + * Attaches an AbortSignal to a readable or writeable stream. This lets code + * control stream destruction using an `AbortController`. + * + * Calling `abort` on the `AbortController` corresponding to the passed `AbortSignal` will behave the same way as calling `.destroy(new AbortError())` on the + * stream, and `controller.error(new AbortError())` for webstreams. + * + * ```js + * import fs from 'node:fs'; + * + * const controller = new AbortController(); + * const read = addAbortSignal( + * controller.signal, + * fs.createReadStream(('object.json')), + * ); + * // Later, abort the operation closing the stream + * controller.abort(); + * ``` + * + * Or using an `AbortSignal` with a readable stream as an async iterable: + * + * ```js + * const controller = new AbortController(); + * setTimeout(() => controller.abort(), 10_000); // set a timeout + * const stream = addAbortSignal( + * controller.signal, + * fs.createReadStream(('object.json')), + * ); + * (async () => { + * try { + * for await (const chunk of stream) { + * await process(chunk); + * } + * } catch (e) { + * if (e.name === 'AbortError') { + * // The operation was cancelled + * } else { + * throw e; + * } + * } + * })(); + * ``` + * + * Or using an `AbortSignal` with a ReadableStream: + * + * ```js + * const controller = new AbortController(); + * const rs = new ReadableStream({ + * start(controller) { + * controller.enqueue('hello'); + * controller.enqueue('world'); + * controller.close(); + * }, + * }); + * + * addAbortSignal(controller.signal, rs); + * + * finished(rs, (err) => { + * if (err) { + * if (err.name === 'AbortError') { + * // The operation was cancelled + * } + * } + * }); + * + * const reader = rs.getReader(); + * + * reader.read().then(({ value, done }) => { + * console.log(value); // hello + * console.log(done); // false + * controller.abort(); + * }); + * ``` + * @since v15.4.0 + * @param signal A signal representing possible cancellation + * @param stream A stream to attach a signal to. + */ + function addAbortSignal(signal: AbortSignal, stream: T): T; + /** + * Returns the default highWaterMark used by streams. + * Defaults to `16384` (16 KiB), or `16` for `objectMode`. + * @since v19.9.0 + */ + function getDefaultHighWaterMark(objectMode: boolean): number; + /** + * Sets the default highWaterMark used by streams. + * @since v19.9.0 + * @param value highWaterMark value + */ + function setDefaultHighWaterMark(objectMode: boolean, value: number): void; + interface FinishedOptions extends Abortable { + error?: boolean | undefined; + readable?: boolean | undefined; + writable?: boolean | undefined; + } + /** + * A readable and/or writable stream/webstream. + * + * A function to get notified when a stream is no longer readable, writable + * or has experienced an error or a premature close event. + * + * ```js + * import { finished } from 'node:stream'; + * import fs from 'node:fs'; + * + * const rs = fs.createReadStream('archive.tar'); + * + * finished(rs, (err) => { + * if (err) { + * console.error('Stream failed.', err); + * } else { + * console.log('Stream is done reading.'); + * } + * }); + * + * rs.resume(); // Drain the stream. + * ``` + * + * Especially useful in error handling scenarios where a stream is destroyed + * prematurely (like an aborted HTTP request), and will not emit `'end'` or `'finish'`. + * + * The `finished` API provides [`promise version`](https://nodejs.org/docs/latest-v20.x/api/stream.html#streamfinishedstream-options). + * + * `stream.finished()` leaves dangling event listeners (in particular `'error'`, `'end'`, `'finish'` and `'close'`) after `callback` has been + * invoked. The reason for this is so that unexpected `'error'` events (due to + * incorrect stream implementations) do not cause unexpected crashes. + * If this is unwanted behavior then the returned cleanup function needs to be + * invoked in the callback: + * + * ```js + * const cleanup = finished(rs, (err) => { + * cleanup(); + * // ... + * }); + * ``` + * @since v10.0.0 + * @param stream A readable and/or writable stream. + * @param callback A callback function that takes an optional error argument. + * @returns A cleanup function which removes all registered listeners. + */ + function finished( + stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, + options: FinishedOptions, + callback: (err?: NodeJS.ErrnoException | null) => void, + ): () => void; + function finished( + stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, + callback: (err?: NodeJS.ErrnoException | null) => void, + ): () => void; + namespace finished { + function __promisify__( + stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, + options?: FinishedOptions, + ): Promise; + } + type PipelineSourceFunction = () => Iterable | AsyncIterable; + type PipelineSource = Iterable | AsyncIterable | NodeJS.ReadableStream | PipelineSourceFunction; + type PipelineTransform, U> = + | NodeJS.ReadWriteStream + | (( + source: S extends (...args: any[]) => Iterable | AsyncIterable ? AsyncIterable + : S, + ) => AsyncIterable); + type PipelineTransformSource = PipelineSource | PipelineTransform; + type PipelineDestinationIterableFunction = (source: AsyncIterable) => AsyncIterable; + type PipelineDestinationPromiseFunction = (source: AsyncIterable) => Promise

; + type PipelineDestination, P> = S extends + PipelineTransformSource ? + | NodeJS.WritableStream + | PipelineDestinationIterableFunction + | PipelineDestinationPromiseFunction + : never; + type PipelineCallback> = S extends + PipelineDestinationPromiseFunction ? (err: NodeJS.ErrnoException | null, value: P) => void + : (err: NodeJS.ErrnoException | null) => void; + type PipelinePromise> = S extends + PipelineDestinationPromiseFunction ? Promise

: Promise; + interface PipelineOptions { + signal?: AbortSignal | undefined; + end?: boolean | undefined; + } + /** + * A module method to pipe between streams and generators forwarding errors and + * properly cleaning up and provide a callback when the pipeline is complete. + * + * ```js + * import { pipeline } from 'node:stream'; + * import fs from 'node:fs'; + * import zlib from 'node:zlib'; + * + * // Use the pipeline API to easily pipe a series of streams + * // together and get notified when the pipeline is fully done. + * + * // A pipeline to gzip a potentially huge tar file efficiently: + * + * pipeline( + * fs.createReadStream('archive.tar'), + * zlib.createGzip(), + * fs.createWriteStream('archive.tar.gz'), + * (err) => { + * if (err) { + * console.error('Pipeline failed.', err); + * } else { + * console.log('Pipeline succeeded.'); + * } + * }, + * ); + * ``` + * + * The `pipeline` API provides a [`promise version`](https://nodejs.org/docs/latest-v20.x/api/stream.html#streampipelinesource-transforms-destination-options). + * + * `stream.pipeline()` will call `stream.destroy(err)` on all streams except: + * + * * `Readable` streams which have emitted `'end'` or `'close'`. + * * `Writable` streams which have emitted `'finish'` or `'close'`. + * + * `stream.pipeline()` leaves dangling event listeners on the streams + * after the `callback` has been invoked. In the case of reuse of streams after + * failure, this can cause event listener leaks and swallowed errors. If the last + * stream is readable, dangling event listeners will be removed so that the last + * stream can be consumed later. + * + * `stream.pipeline()` closes all the streams when an error is raised. + * The `IncomingRequest` usage with `pipeline` could lead to an unexpected behavior + * once it would destroy the socket without sending the expected response. + * See the example below: + * + * ```js + * import fs from 'node:fs'; + * import http from 'node:http'; + * import { pipeline } from 'node:stream'; + * + * const server = http.createServer((req, res) => { + * const fileStream = fs.createReadStream('./fileNotExist.txt'); + * pipeline(fileStream, res, (err) => { + * if (err) { + * console.log(err); // No such file + * // this message can't be sent once `pipeline` already destroyed the socket + * return res.end('error!!!'); + * } + * }); + * }); + * ``` + * @since v10.0.0 + * @param callback Called when the pipeline is fully done. + */ + function pipeline, B extends PipelineDestination>( + source: A, + destination: B, + callback: PipelineCallback, + ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream; + function pipeline< + A extends PipelineSource, + T1 extends PipelineTransform, + B extends PipelineDestination, + >( + source: A, + transform1: T1, + destination: B, + callback: PipelineCallback, + ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream; + function pipeline< + A extends PipelineSource, + T1 extends PipelineTransform, + T2 extends PipelineTransform, + B extends PipelineDestination, + >( + source: A, + transform1: T1, + transform2: T2, + destination: B, + callback: PipelineCallback, + ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream; + function pipeline< + A extends PipelineSource, + T1 extends PipelineTransform, + T2 extends PipelineTransform, + T3 extends PipelineTransform, + B extends PipelineDestination, + >( + source: A, + transform1: T1, + transform2: T2, + transform3: T3, + destination: B, + callback: PipelineCallback, + ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream; + function pipeline< + A extends PipelineSource, + T1 extends PipelineTransform, + T2 extends PipelineTransform, + T3 extends PipelineTransform, + T4 extends PipelineTransform, + B extends PipelineDestination, + >( + source: A, + transform1: T1, + transform2: T2, + transform3: T3, + transform4: T4, + destination: B, + callback: PipelineCallback, + ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream; + function pipeline( + streams: ReadonlyArray, + callback: (err: NodeJS.ErrnoException | null) => void, + ): NodeJS.WritableStream; + function pipeline( + stream1: NodeJS.ReadableStream, + stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream, + ...streams: Array< + NodeJS.ReadWriteStream | NodeJS.WritableStream | ((err: NodeJS.ErrnoException | null) => void) + > + ): NodeJS.WritableStream; + namespace pipeline { + function __promisify__, B extends PipelineDestination>( + source: A, + destination: B, + options?: PipelineOptions, + ): PipelinePromise; + function __promisify__< + A extends PipelineSource, + T1 extends PipelineTransform, + B extends PipelineDestination, + >( + source: A, + transform1: T1, + destination: B, + options?: PipelineOptions, + ): PipelinePromise; + function __promisify__< + A extends PipelineSource, + T1 extends PipelineTransform, + T2 extends PipelineTransform, + B extends PipelineDestination, + >( + source: A, + transform1: T1, + transform2: T2, + destination: B, + options?: PipelineOptions, + ): PipelinePromise; + function __promisify__< + A extends PipelineSource, + T1 extends PipelineTransform, + T2 extends PipelineTransform, + T3 extends PipelineTransform, + B extends PipelineDestination, + >( + source: A, + transform1: T1, + transform2: T2, + transform3: T3, + destination: B, + options?: PipelineOptions, + ): PipelinePromise; + function __promisify__< + A extends PipelineSource, + T1 extends PipelineTransform, + T2 extends PipelineTransform, + T3 extends PipelineTransform, + T4 extends PipelineTransform, + B extends PipelineDestination, + >( + source: A, + transform1: T1, + transform2: T2, + transform3: T3, + transform4: T4, + destination: B, + options?: PipelineOptions, + ): PipelinePromise; + function __promisify__( + streams: ReadonlyArray, + options?: PipelineOptions, + ): Promise; + function __promisify__( + stream1: NodeJS.ReadableStream, + stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream, + ...streams: Array + ): Promise; + } + // TODO: this interface never existed; remove in next major + interface Pipe { + close(): void; + hasRef(): boolean; + ref(): void; + unref(): void; + } + /** + * Returns whether the stream has encountered an error. + * @since v17.3.0, v16.14.0 + * @experimental + */ + function isErrored(stream: Readable | Writable | NodeJS.ReadableStream | NodeJS.WritableStream): boolean; + /** + * Returns whether the stream is readable. + * @since v17.4.0, v16.14.0 + * @experimental + */ + function isReadable(stream: Readable | NodeJS.ReadableStream): boolean; + } + export = Stream; +} +declare module "node:stream" { + import stream = require("stream"); + export = stream; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/stream/consumers.d.ts b/backend/node_modules/httpx/node_modules/@types/node/stream/consumers.d.ts new file mode 100644 index 0000000..05db025 --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/stream/consumers.d.ts @@ -0,0 +1,38 @@ +/** + * The utility consumer functions provide common options for consuming + * streams. + * @since v16.7.0 + */ +declare module "stream/consumers" { + import { Blob as NodeBlob, NonSharedBuffer } from "node:buffer"; + import { ReadableStream as WebReadableStream } from "node:stream/web"; + /** + * @since v16.7.0 + * @returns Fulfills with an `ArrayBuffer` containing the full contents of the stream. + */ + function arrayBuffer(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable): Promise; + /** + * @since v16.7.0 + * @returns Fulfills with a `Blob` containing the full contents of the stream. + */ + function blob(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable): Promise; + /** + * @since v16.7.0 + * @returns Fulfills with a `Buffer` containing the full contents of the stream. + */ + function buffer(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable): Promise; + /** + * @since v16.7.0 + * @returns Fulfills with the contents of the stream parsed as a + * UTF-8 encoded string that is then passed through `JSON.parse()`. + */ + function json(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable): Promise; + /** + * @since v16.7.0 + * @returns Fulfills with the contents of the stream parsed as a UTF-8 encoded string. + */ + function text(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable): Promise; +} +declare module "node:stream/consumers" { + export * from "stream/consumers"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/stream/promises.d.ts b/backend/node_modules/httpx/node_modules/@types/node/stream/promises.d.ts new file mode 100644 index 0000000..d54c14c --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/stream/promises.d.ts @@ -0,0 +1,90 @@ +declare module "stream/promises" { + import { + FinishedOptions as _FinishedOptions, + PipelineDestination, + PipelineOptions, + PipelinePromise, + PipelineSource, + PipelineTransform, + } from "node:stream"; + interface FinishedOptions extends _FinishedOptions { + /** + * If true, removes the listeners registered by this function before the promise is fulfilled. + * @default false + */ + cleanup?: boolean | undefined; + } + function finished( + stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, + options?: FinishedOptions, + ): Promise; + function pipeline, B extends PipelineDestination>( + source: A, + destination: B, + options?: PipelineOptions, + ): PipelinePromise; + function pipeline< + A extends PipelineSource, + T1 extends PipelineTransform, + B extends PipelineDestination, + >( + source: A, + transform1: T1, + destination: B, + options?: PipelineOptions, + ): PipelinePromise; + function pipeline< + A extends PipelineSource, + T1 extends PipelineTransform, + T2 extends PipelineTransform, + B extends PipelineDestination, + >( + source: A, + transform1: T1, + transform2: T2, + destination: B, + options?: PipelineOptions, + ): PipelinePromise; + function pipeline< + A extends PipelineSource, + T1 extends PipelineTransform, + T2 extends PipelineTransform, + T3 extends PipelineTransform, + B extends PipelineDestination, + >( + source: A, + transform1: T1, + transform2: T2, + transform3: T3, + destination: B, + options?: PipelineOptions, + ): PipelinePromise; + function pipeline< + A extends PipelineSource, + T1 extends PipelineTransform, + T2 extends PipelineTransform, + T3 extends PipelineTransform, + T4 extends PipelineTransform, + B extends PipelineDestination, + >( + source: A, + transform1: T1, + transform2: T2, + transform3: T3, + transform4: T4, + destination: B, + options?: PipelineOptions, + ): PipelinePromise; + function pipeline( + streams: ReadonlyArray, + options?: PipelineOptions, + ): Promise; + function pipeline( + stream1: NodeJS.ReadableStream, + stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream, + ...streams: Array + ): Promise; +} +declare module "node:stream/promises" { + export * from "stream/promises"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/stream/web.d.ts b/backend/node_modules/httpx/node_modules/@types/node/stream/web.d.ts new file mode 100644 index 0000000..1b713a9 --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/stream/web.d.ts @@ -0,0 +1,533 @@ +type _ByteLengthQueuingStrategy = typeof globalThis extends { onmessage: any } ? {} + : import("stream/web").ByteLengthQueuingStrategy; +type _CompressionStream = typeof globalThis extends { onmessage: any; ReportingObserver: any } ? {} + : import("stream/web").CompressionStream; +type _CountQueuingStrategy = typeof globalThis extends { onmessage: any } ? {} + : import("stream/web").CountQueuingStrategy; +type _DecompressionStream = typeof globalThis extends { onmessage: any; ReportingObserver: any } ? {} + : import("stream/web").DecompressionStream; +type _QueuingStrategy = typeof globalThis extends { onmessage: any } ? {} + : import("stream/web").QueuingStrategy; +type _ReadableByteStreamController = typeof globalThis extends { onmessage: any } ? {} + : import("stream/web").ReadableByteStreamController; +type _ReadableStream = typeof globalThis extends { onmessage: any } ? {} + : import("stream/web").ReadableStream; +type _ReadableStreamBYOBReader = typeof globalThis extends { onmessage: any } ? {} + : import("stream/web").ReadableStreamBYOBReader; +type _ReadableStreamBYOBRequest = typeof globalThis extends { onmessage: any } ? {} + : import("stream/web").ReadableStreamBYOBRequest; +type _ReadableStreamDefaultController = typeof globalThis extends { onmessage: any } ? {} + : import("stream/web").ReadableStreamDefaultController; +type _ReadableStreamDefaultReader = typeof globalThis extends { onmessage: any } ? {} + : import("stream/web").ReadableStreamDefaultReader; +type _TextDecoderStream = typeof globalThis extends { onmessage: any } ? {} + : import("stream/web").TextDecoderStream; +type _TextEncoderStream = typeof globalThis extends { onmessage: any } ? {} + : import("stream/web").TextEncoderStream; +type _TransformStream = typeof globalThis extends { onmessage: any } ? {} + : import("stream/web").TransformStream; +type _TransformStreamDefaultController = typeof globalThis extends { onmessage: any } ? {} + : import("stream/web").TransformStreamDefaultController; +type _WritableStream = typeof globalThis extends { onmessage: any } ? {} + : import("stream/web").WritableStream; +type _WritableStreamDefaultController = typeof globalThis extends { onmessage: any } ? {} + : import("stream/web").WritableStreamDefaultController; +type _WritableStreamDefaultWriter = typeof globalThis extends { onmessage: any } ? {} + : import("stream/web").WritableStreamDefaultWriter; + +declare module "stream/web" { + // stub module, pending copy&paste from .d.ts or manual impl + // copy from lib.dom.d.ts + interface ReadableWritablePair { + readable: ReadableStream; + /** + * Provides a convenient, chainable way of piping this readable stream + * through a transform stream (or any other { writable, readable } + * pair). It simply pipes the stream into the writable side of the + * supplied pair, and returns the readable side for further use. + * + * Piping a stream will lock it for the duration of the pipe, preventing + * any other consumer from acquiring a reader. + */ + writable: WritableStream; + } + interface StreamPipeOptions { + preventAbort?: boolean; + preventCancel?: boolean; + /** + * Pipes this readable stream to a given writable stream destination. + * The way in which the piping process behaves under various error + * conditions can be customized with a number of passed options. It + * returns a promise that fulfills when the piping process completes + * successfully, or rejects if any errors were encountered. + * + * Piping a stream will lock it for the duration of the pipe, preventing + * any other consumer from acquiring a reader. + * + * Errors and closures of the source and destination streams propagate + * as follows: + * + * An error in this source readable stream will abort destination, + * unless preventAbort is truthy. The returned promise will be rejected + * with the source's error, or with any error that occurs during + * aborting the destination. + * + * An error in destination will cancel this source readable stream, + * unless preventCancel is truthy. The returned promise will be rejected + * with the destination's error, or with any error that occurs during + * canceling the source. + * + * When this source readable stream closes, destination will be closed, + * unless preventClose is truthy. The returned promise will be fulfilled + * once this process completes, unless an error is encountered while + * closing the destination, in which case it will be rejected with that + * error. + * + * If destination starts out closed or closing, this source readable + * stream will be canceled, unless preventCancel is true. The returned + * promise will be rejected with an error indicating piping to a closed + * stream failed, or with any error that occurs during canceling the + * source. + * + * The signal option can be set to an AbortSignal to allow aborting an + * ongoing pipe operation via the corresponding AbortController. In this + * case, this source readable stream will be canceled, and destination + * aborted, unless the respective options preventCancel or preventAbort + * are set. + */ + preventClose?: boolean; + signal?: AbortSignal; + } + interface ReadableStreamGenericReader { + readonly closed: Promise; + cancel(reason?: any): Promise; + } + type ReadableStreamController = ReadableStreamDefaultController; + interface ReadableStreamReadValueResult { + done: false; + value: T; + } + interface ReadableStreamReadDoneResult { + done: true; + value?: T; + } + type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableStreamReadDoneResult; + interface ReadableByteStreamControllerCallback { + (controller: ReadableByteStreamController): void | PromiseLike; + } + interface UnderlyingSinkAbortCallback { + (reason?: any): void | PromiseLike; + } + interface UnderlyingSinkCloseCallback { + (): void | PromiseLike; + } + interface UnderlyingSinkStartCallback { + (controller: WritableStreamDefaultController): any; + } + interface UnderlyingSinkWriteCallback { + (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike; + } + interface UnderlyingSourceCancelCallback { + (reason?: any): void | PromiseLike; + } + interface UnderlyingSourcePullCallback { + (controller: ReadableStreamController): void | PromiseLike; + } + interface UnderlyingSourceStartCallback { + (controller: ReadableStreamController): any; + } + interface TransformerFlushCallback { + (controller: TransformStreamDefaultController): void | PromiseLike; + } + interface TransformerStartCallback { + (controller: TransformStreamDefaultController): any; + } + interface TransformerTransformCallback { + (chunk: I, controller: TransformStreamDefaultController): void | PromiseLike; + } + interface UnderlyingByteSource { + autoAllocateChunkSize?: number; + cancel?: ReadableStreamErrorCallback; + pull?: ReadableByteStreamControllerCallback; + start?: ReadableByteStreamControllerCallback; + type: "bytes"; + } + interface UnderlyingSource { + cancel?: UnderlyingSourceCancelCallback; + pull?: UnderlyingSourcePullCallback; + start?: UnderlyingSourceStartCallback; + type?: undefined; + } + interface UnderlyingSink { + abort?: UnderlyingSinkAbortCallback; + close?: UnderlyingSinkCloseCallback; + start?: UnderlyingSinkStartCallback; + type?: undefined; + write?: UnderlyingSinkWriteCallback; + } + interface ReadableStreamErrorCallback { + (reason: any): void | PromiseLike; + } + interface ReadableStreamAsyncIterator extends NodeJS.AsyncIterator { + [Symbol.asyncIterator](): ReadableStreamAsyncIterator; + } + /** This Streams API interface represents a readable stream of byte data. */ + interface ReadableStream { + readonly locked: boolean; + cancel(reason?: any): Promise; + getReader(options: { mode: "byob" }): ReadableStreamBYOBReader; + getReader(): ReadableStreamDefaultReader; + getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader; + pipeThrough(transform: ReadableWritablePair, options?: StreamPipeOptions): ReadableStream; + pipeTo(destination: WritableStream, options?: StreamPipeOptions): Promise; + tee(): [ReadableStream, ReadableStream]; + values(options?: { preventCancel?: boolean }): ReadableStreamAsyncIterator; + [Symbol.asyncIterator](): ReadableStreamAsyncIterator; + } + const ReadableStream: { + prototype: ReadableStream; + from(iterable: Iterable | AsyncIterable): ReadableStream; + new(underlyingSource: UnderlyingByteSource, strategy?: QueuingStrategy): ReadableStream; + new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + }; + type ReadableStreamReaderMode = "byob"; + interface ReadableStreamGetReaderOptions { + /** + * Creates a ReadableStreamBYOBReader and locks the stream to the new reader. + * + * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation. + */ + mode?: ReadableStreamReaderMode; + } + type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; + interface ReadableStreamDefaultReader extends ReadableStreamGenericReader { + read(): Promise>; + releaseLock(): void; + } + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) */ + interface ReadableStreamBYOBReader extends ReadableStreamGenericReader { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) */ + read( + view: T, + options?: { + min?: number; + }, + ): Promise>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) */ + releaseLock(): void; + } + const ReadableStreamDefaultReader: { + prototype: ReadableStreamDefaultReader; + new(stream: ReadableStream): ReadableStreamDefaultReader; + }; + const ReadableStreamBYOBReader: { + prototype: ReadableStreamBYOBReader; + new(stream: ReadableStream): ReadableStreamBYOBReader; + }; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) */ + interface ReadableStreamBYOBRequest { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view) */ + readonly view: ArrayBufferView | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond) */ + respond(bytesWritten: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView) */ + respondWithNewView(view: ArrayBufferView): void; + } + const ReadableStreamBYOBRequest: { + prototype: ReadableStreamBYOBRequest; + new(): ReadableStreamBYOBRequest; + }; + interface ReadableByteStreamController { + readonly byobRequest: undefined; + readonly desiredSize: number | null; + close(): void; + enqueue(chunk: ArrayBufferView): void; + error(error?: any): void; + } + const ReadableByteStreamController: { + prototype: ReadableByteStreamController; + new(): ReadableByteStreamController; + }; + interface ReadableStreamDefaultController { + readonly desiredSize: number | null; + close(): void; + enqueue(chunk?: R): void; + error(e?: any): void; + } + const ReadableStreamDefaultController: { + prototype: ReadableStreamDefaultController; + new(): ReadableStreamDefaultController; + }; + interface Transformer { + flush?: TransformerFlushCallback; + readableType?: undefined; + start?: TransformerStartCallback; + transform?: TransformerTransformCallback; + writableType?: undefined; + } + interface TransformStream { + readonly readable: ReadableStream; + readonly writable: WritableStream; + } + const TransformStream: { + prototype: TransformStream; + new( + transformer?: Transformer, + writableStrategy?: QueuingStrategy, + readableStrategy?: QueuingStrategy, + ): TransformStream; + }; + interface TransformStreamDefaultController { + readonly desiredSize: number | null; + enqueue(chunk?: O): void; + error(reason?: any): void; + terminate(): void; + } + const TransformStreamDefaultController: { + prototype: TransformStreamDefaultController; + new(): TransformStreamDefaultController; + }; + /** + * This Streams API interface provides a standard abstraction for writing + * streaming data to a destination, known as a sink. This object comes with + * built-in back pressure and queuing. + */ + interface WritableStream { + readonly locked: boolean; + abort(reason?: any): Promise; + close(): Promise; + getWriter(): WritableStreamDefaultWriter; + } + const WritableStream: { + prototype: WritableStream; + new(underlyingSink?: UnderlyingSink, strategy?: QueuingStrategy): WritableStream; + }; + /** + * This Streams API interface is the object returned by + * WritableStream.getWriter() and once created locks the < writer to the + * WritableStream ensuring that no other streams can write to the underlying + * sink. + */ + interface WritableStreamDefaultWriter { + readonly closed: Promise; + readonly desiredSize: number | null; + readonly ready: Promise; + abort(reason?: any): Promise; + close(): Promise; + releaseLock(): void; + write(chunk?: W): Promise; + } + const WritableStreamDefaultWriter: { + prototype: WritableStreamDefaultWriter; + new(stream: WritableStream): WritableStreamDefaultWriter; + }; + /** + * This Streams API interface represents a controller allowing control of a + * WritableStream's state. When constructing a WritableStream, the + * underlying sink is given a corresponding WritableStreamDefaultController + * instance to manipulate. + */ + interface WritableStreamDefaultController { + error(e?: any): void; + } + const WritableStreamDefaultController: { + prototype: WritableStreamDefaultController; + new(): WritableStreamDefaultController; + }; + interface QueuingStrategy { + highWaterMark?: number; + size?: QueuingStrategySize; + } + interface QueuingStrategySize { + (chunk?: T): number; + } + interface QueuingStrategyInit { + /** + * Creates a new ByteLengthQueuingStrategy with the provided high water + * mark. + * + * Note that the provided high water mark will not be validated ahead of + * time. Instead, if it is negative, NaN, or not a number, the resulting + * ByteLengthQueuingStrategy will cause the corresponding stream + * constructor to throw. + */ + highWaterMark: number; + } + /** + * This Streams API interface provides a built-in byte length queuing + * strategy that can be used when constructing streams. + */ + interface ByteLengthQueuingStrategy extends QueuingStrategy { + readonly highWaterMark: number; + readonly size: QueuingStrategySize; + } + const ByteLengthQueuingStrategy: { + prototype: ByteLengthQueuingStrategy; + new(init: QueuingStrategyInit): ByteLengthQueuingStrategy; + }; + /** + * This Streams API interface provides a built-in byte length queuing + * strategy that can be used when constructing streams. + */ + interface CountQueuingStrategy extends QueuingStrategy { + readonly highWaterMark: number; + readonly size: QueuingStrategySize; + } + const CountQueuingStrategy: { + prototype: CountQueuingStrategy; + new(init: QueuingStrategyInit): CountQueuingStrategy; + }; + interface TextEncoderStream { + /** Returns "utf-8". */ + readonly encoding: "utf-8"; + readonly readable: ReadableStream; + readonly writable: WritableStream; + readonly [Symbol.toStringTag]: string; + } + const TextEncoderStream: { + prototype: TextEncoderStream; + new(): TextEncoderStream; + }; + interface TextDecoderOptions { + fatal?: boolean; + ignoreBOM?: boolean; + } + type BufferSource = ArrayBufferView | ArrayBuffer; + interface TextDecoderStream { + /** Returns encoding's name, lower cased. */ + readonly encoding: string; + /** Returns `true` if error mode is "fatal", and `false` otherwise. */ + readonly fatal: boolean; + /** Returns `true` if ignore BOM flag is set, and `false` otherwise. */ + readonly ignoreBOM: boolean; + readonly readable: ReadableStream; + readonly writable: WritableStream; + readonly [Symbol.toStringTag]: string; + } + const TextDecoderStream: { + prototype: TextDecoderStream; + new(encoding?: string, options?: TextDecoderOptions): TextDecoderStream; + }; + interface CompressionStream { + readonly readable: ReadableStream; + readonly writable: WritableStream; + } + const CompressionStream: { + prototype: CompressionStream; + new(format: "deflate" | "deflate-raw" | "gzip"): CompressionStream; + }; + interface DecompressionStream { + readonly writable: WritableStream; + readonly readable: ReadableStream; + } + const DecompressionStream: { + prototype: DecompressionStream; + new(format: "deflate" | "deflate-raw" | "gzip"): DecompressionStream; + }; + + global { + interface ByteLengthQueuingStrategy extends _ByteLengthQueuingStrategy {} + var ByteLengthQueuingStrategy: typeof globalThis extends { onmessage: any; ByteLengthQueuingStrategy: infer T } + ? T + : typeof import("stream/web").ByteLengthQueuingStrategy; + + interface CompressionStream extends _CompressionStream {} + var CompressionStream: typeof globalThis extends { + onmessage: any; + // CompressionStream, DecompressionStream and ReportingObserver was introduced in the same commit. + // If ReportingObserver check is removed, the type here will form a circular reference in TS5.0+lib.dom.d.ts + ReportingObserver: any; + CompressionStream: infer T; + } ? T + // TS 4.8, 4.9, 5.0 + : typeof globalThis extends { onmessage: any; TransformStream: { prototype: infer T } } ? { + prototype: T; + new(format: "deflate" | "deflate-raw" | "gzip"): T; + } + : typeof import("stream/web").CompressionStream; + + interface CountQueuingStrategy extends _CountQueuingStrategy {} + var CountQueuingStrategy: typeof globalThis extends { onmessage: any; CountQueuingStrategy: infer T } ? T + : typeof import("stream/web").CountQueuingStrategy; + + interface DecompressionStream extends _DecompressionStream {} + var DecompressionStream: typeof globalThis extends { + onmessage: any; + // CompressionStream, DecompressionStream and ReportingObserver was introduced in the same commit. + // If ReportingObserver check is removed, the type here will form a circular reference in TS5.0+lib.dom.d.ts + ReportingObserver: any; + DecompressionStream: infer T; + } ? T + // TS 4.8, 4.9, 5.0 + : typeof globalThis extends { onmessage: any; TransformStream: { prototype: infer T } } ? { + prototype: T; + new(format: "deflate" | "deflate-raw" | "gzip"): T; + } + : typeof import("stream/web").DecompressionStream; + + interface QueuingStrategy extends _QueuingStrategy {} + + interface ReadableByteStreamController extends _ReadableByteStreamController {} + var ReadableByteStreamController: typeof globalThis extends + { onmessage: any; ReadableByteStreamController: infer T } ? T + : typeof import("stream/web").ReadableByteStreamController; + + interface ReadableStream extends _ReadableStream {} + var ReadableStream: typeof globalThis extends { onmessage: any; ReadableStream: infer T } ? T + : typeof import("stream/web").ReadableStream; + + interface ReadableStreamBYOBReader extends _ReadableStreamBYOBReader {} + var ReadableStreamBYOBReader: typeof globalThis extends { onmessage: any; ReadableStreamBYOBReader: infer T } + ? T + : typeof import("stream/web").ReadableStreamBYOBReader; + + interface ReadableStreamBYOBRequest extends _ReadableStreamBYOBRequest {} + var ReadableStreamBYOBRequest: typeof globalThis extends { onmessage: any; ReadableStreamBYOBRequest: infer T } + ? T + : typeof import("stream/web").ReadableStreamBYOBRequest; + + interface ReadableStreamDefaultController extends _ReadableStreamDefaultController {} + var ReadableStreamDefaultController: typeof globalThis extends + { onmessage: any; ReadableStreamDefaultController: infer T } ? T + : typeof import("stream/web").ReadableStreamDefaultController; + + interface ReadableStreamDefaultReader extends _ReadableStreamDefaultReader {} + var ReadableStreamDefaultReader: typeof globalThis extends + { onmessage: any; ReadableStreamDefaultReader: infer T } ? T + : typeof import("stream/web").ReadableStreamDefaultReader; + + interface TextDecoderStream extends _TextDecoderStream {} + var TextDecoderStream: typeof globalThis extends { onmessage: any; TextDecoderStream: infer T } ? T + : typeof import("stream/web").TextDecoderStream; + + interface TextEncoderStream extends _TextEncoderStream {} + var TextEncoderStream: typeof globalThis extends { onmessage: any; TextEncoderStream: infer T } ? T + : typeof import("stream/web").TextEncoderStream; + + interface TransformStream extends _TransformStream {} + var TransformStream: typeof globalThis extends { onmessage: any; TransformStream: infer T } ? T + : typeof import("stream/web").TransformStream; + + interface TransformStreamDefaultController extends _TransformStreamDefaultController {} + var TransformStreamDefaultController: typeof globalThis extends + { onmessage: any; TransformStreamDefaultController: infer T } ? T + : typeof import("stream/web").TransformStreamDefaultController; + + interface WritableStream extends _WritableStream {} + var WritableStream: typeof globalThis extends { onmessage: any; WritableStream: infer T } ? T + : typeof import("stream/web").WritableStream; + + interface WritableStreamDefaultController extends _WritableStreamDefaultController {} + var WritableStreamDefaultController: typeof globalThis extends + { onmessage: any; WritableStreamDefaultController: infer T } ? T + : typeof import("stream/web").WritableStreamDefaultController; + + interface WritableStreamDefaultWriter extends _WritableStreamDefaultWriter {} + var WritableStreamDefaultWriter: typeof globalThis extends + { onmessage: any; WritableStreamDefaultWriter: infer T } ? T + : typeof import("stream/web").WritableStreamDefaultWriter; + } +} +declare module "node:stream/web" { + export * from "stream/web"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/string_decoder.d.ts b/backend/node_modules/httpx/node_modules/@types/node/string_decoder.d.ts new file mode 100644 index 0000000..d08cbf6 --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/string_decoder.d.ts @@ -0,0 +1,67 @@ +/** + * The `node:string_decoder` module provides an API for decoding `Buffer` objects + * into strings in a manner that preserves encoded multi-byte UTF-8 and UTF-16 + * characters. It can be accessed using: + * + * ```js + * import { StringDecoder } from 'node:string_decoder'; + * ``` + * + * The following example shows the basic use of the `StringDecoder` class. + * + * ```js + * import { StringDecoder } from 'node:string_decoder'; + * const decoder = new StringDecoder('utf8'); + * + * const cent = Buffer.from([0xC2, 0xA2]); + * console.log(decoder.write(cent)); // Prints: ¢ + * + * const euro = Buffer.from([0xE2, 0x82, 0xAC]); + * console.log(decoder.write(euro)); // Prints: € + * ``` + * + * When a `Buffer` instance is written to the `StringDecoder` instance, an + * internal buffer is used to ensure that the decoded string does not contain + * any incomplete multibyte characters. These are held in the buffer until the + * next call to `stringDecoder.write()` or until `stringDecoder.end()` is called. + * + * In the following example, the three UTF-8 encoded bytes of the European Euro + * symbol (`€`) are written over three separate operations: + * + * ```js + * import { StringDecoder } from 'node:string_decoder'; + * const decoder = new StringDecoder('utf8'); + * + * decoder.write(Buffer.from([0xE2])); + * decoder.write(Buffer.from([0x82])); + * console.log(decoder.end(Buffer.from([0xAC]))); // Prints: € + * ``` + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/string_decoder.js) + */ +declare module "string_decoder" { + class StringDecoder { + constructor(encoding?: BufferEncoding); + /** + * Returns a decoded string, ensuring that any incomplete multibyte characters at + * the end of the `Buffer`, or `TypedArray`, or `DataView` are omitted from the + * returned string and stored in an internal buffer for the next call to `stringDecoder.write()` or `stringDecoder.end()`. + * @since v0.1.99 + * @param buffer The bytes to decode. + */ + write(buffer: string | NodeJS.ArrayBufferView): string; + /** + * Returns any remaining input stored in the internal buffer as a string. Bytes + * representing incomplete UTF-8 and UTF-16 characters will be replaced with + * substitution characters appropriate for the character encoding. + * + * If the `buffer` argument is provided, one final call to `stringDecoder.write()` is performed before returning the remaining input. + * After `end()` is called, the `stringDecoder` object can be reused for new input. + * @since v0.9.3 + * @param buffer The bytes to decode. + */ + end(buffer?: string | NodeJS.ArrayBufferView): string; + } +} +declare module "node:string_decoder" { + export * from "string_decoder"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/test.d.ts b/backend/node_modules/httpx/node_modules/@types/node/test.d.ts new file mode 100644 index 0000000..ec17fdf --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/test.d.ts @@ -0,0 +1,1787 @@ +/** + * The `node:test` module facilitates the creation of JavaScript tests. + * To access it: + * + * ```js + * import test from 'node:test'; + * ``` + * + * This module is only available under the `node:` scheme. The following will not + * work: + * + * ```js + * import test from 'test'; + * ``` + * + * Tests created via the `test` module consist of a single function that is + * processed in one of three ways: + * + * 1. A synchronous function that is considered failing if it throws an exception, + * and is considered passing otherwise. + * 2. A function that returns a `Promise` that is considered failing if the `Promise` rejects, and is considered passing if the `Promise` fulfills. + * 3. A function that receives a callback function. If the callback receives any + * truthy value as its first argument, the test is considered failing. If a + * falsy value is passed as the first argument to the callback, the test is + * considered passing. If the test function receives a callback function and + * also returns a `Promise`, the test will fail. + * + * The following example illustrates how tests are written using the `test` module. + * + * ```js + * test('synchronous passing test', (t) => { + * // This test passes because it does not throw an exception. + * assert.strictEqual(1, 1); + * }); + * + * test('synchronous failing test', (t) => { + * // This test fails because it throws an exception. + * assert.strictEqual(1, 2); + * }); + * + * test('asynchronous passing test', async (t) => { + * // This test passes because the Promise returned by the async + * // function is settled and not rejected. + * assert.strictEqual(1, 1); + * }); + * + * test('asynchronous failing test', async (t) => { + * // This test fails because the Promise returned by the async + * // function is rejected. + * assert.strictEqual(1, 2); + * }); + * + * test('failing test using Promises', (t) => { + * // Promises can be used directly as well. + * return new Promise((resolve, reject) => { + * setImmediate(() => { + * reject(new Error('this will cause the test to fail')); + * }); + * }); + * }); + * + * test('callback passing test', (t, done) => { + * // done() is the callback function. When the setImmediate() runs, it invokes + * // done() with no arguments. + * setImmediate(done); + * }); + * + * test('callback failing test', (t, done) => { + * // When the setImmediate() runs, done() is invoked with an Error object and + * // the test fails. + * setImmediate(() => { + * done(new Error('callback failure')); + * }); + * }); + * ``` + * + * If any tests fail, the process exit code is set to `1`. + * @since v18.0.0, v16.17.0 + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/test.js) + */ +declare module "node:test" { + import { AssertMethodNames } from "node:assert"; + import { Readable } from "node:stream"; + import TestFn = test.TestFn; + import TestOptions = test.TestOptions; + /** + * The `test()` function is the value imported from the `test` module. Each + * invocation of this function results in reporting the test to the `TestsStream`. + * + * The `TestContext` object passed to the `fn` argument can be used to perform + * actions related to the current test. Examples include skipping the test, adding + * additional diagnostic information, or creating subtests. + * + * `test()` returns a `Promise` that fulfills once the test completes. + * if `test()` is called within a suite, it fulfills immediately. + * The return value can usually be discarded for top level tests. + * However, the return value from subtests should be used to prevent the parent + * test from finishing first and cancelling the subtest + * as shown in the following example. + * + * ```js + * test('top level test', async (t) => { + * // The setTimeout() in the following subtest would cause it to outlive its + * // parent test if 'await' is removed on the next line. Once the parent test + * // completes, it will cancel any outstanding subtests. + * await t.test('longer running subtest', async (t) => { + * return new Promise((resolve, reject) => { + * setTimeout(resolve, 1000); + * }); + * }); + * }); + * ``` + * + * The `timeout` option can be used to fail the test if it takes longer than `timeout` milliseconds to complete. However, it is not a reliable mechanism for + * canceling tests because a running test might block the application thread and + * thus prevent the scheduled cancellation. + * @since v18.0.0, v16.17.0 + * @param name The name of the test, which is displayed when reporting test results. + * Defaults to the `name` property of `fn`, or `''` if `fn` does not have a name. + * @param options Configuration options for the test. + * @param fn The function under test. The first argument to this function is a {@link TestContext} object. + * If the test uses callbacks, the callback function is passed as the second argument. + * @return Fulfilled with `undefined` once the test completes, or immediately if the test runs within a suite. + */ + function test(name?: string, fn?: TestFn): Promise; + function test(name?: string, options?: TestOptions, fn?: TestFn): Promise; + function test(options?: TestOptions, fn?: TestFn): Promise; + function test(fn?: TestFn): Promise; + namespace test { + export { test }; + export { suite as describe, test as it }; + } + namespace test { + /** + * **Note:** `shard` is used to horizontally parallelize test running across + * machines or processes, ideal for large-scale executions across varied + * environments. It's incompatible with `watch` mode, tailored for rapid + * code iteration by automatically rerunning tests on file changes. + * + * ```js + * import { tap } from 'node:test/reporters'; + * import { run } from 'node:test'; + * import process from 'node:process'; + * import path from 'node:path'; + * + * run({ files: [path.resolve('./tests/test.js')] }) + * .compose(tap) + * .pipe(process.stdout); + * ``` + * @since v18.9.0, v16.19.0 + * @param options Configuration options for running tests. + */ + function run(options?: RunOptions): TestsStream; + /** + * The `suite()` function is imported from the `node:test` module. + * @param name The name of the suite, which is displayed when reporting test results. + * Defaults to the `name` property of `fn`, or `''` if `fn` does not have a name. + * @param options Configuration options for the suite. This supports the same options as {@link test}. + * @param fn The suite function declaring nested tests and suites. The first argument to this function is a {@link SuiteContext} object. + * @return Immediately fulfilled with `undefined`. + * @since v20.13.0 + */ + function suite(name?: string, options?: TestOptions, fn?: SuiteFn): Promise; + function suite(name?: string, fn?: SuiteFn): Promise; + function suite(options?: TestOptions, fn?: SuiteFn): Promise; + function suite(fn?: SuiteFn): Promise; + namespace suite { + /** + * Shorthand for skipping a suite. This is the same as calling {@link suite} with `options.skip` set to `true`. + * @since v20.13.0 + */ + function skip(name?: string, options?: TestOptions, fn?: SuiteFn): Promise; + function skip(name?: string, fn?: SuiteFn): Promise; + function skip(options?: TestOptions, fn?: SuiteFn): Promise; + function skip(fn?: SuiteFn): Promise; + /** + * Shorthand for marking a suite as `TODO`. This is the same as calling {@link suite} with `options.todo` set to `true`. + * @since v20.13.0 + */ + function todo(name?: string, options?: TestOptions, fn?: SuiteFn): Promise; + function todo(name?: string, fn?: SuiteFn): Promise; + function todo(options?: TestOptions, fn?: SuiteFn): Promise; + function todo(fn?: SuiteFn): Promise; + /** + * Shorthand for marking a suite as `only`. This is the same as calling {@link suite} with `options.only` set to `true`. + * @since v20.13.0 + */ + function only(name?: string, options?: TestOptions, fn?: SuiteFn): Promise; + function only(name?: string, fn?: SuiteFn): Promise; + function only(options?: TestOptions, fn?: SuiteFn): Promise; + function only(fn?: SuiteFn): Promise; + } + /** + * Shorthand for skipping a test. This is the same as calling {@link test} with `options.skip` set to `true`. + * @since v20.2.0 + */ + function skip(name?: string, options?: TestOptions, fn?: TestFn): Promise; + function skip(name?: string, fn?: TestFn): Promise; + function skip(options?: TestOptions, fn?: TestFn): Promise; + function skip(fn?: TestFn): Promise; + /** + * Shorthand for marking a test as `TODO`. This is the same as calling {@link test} with `options.todo` set to `true`. + * @since v20.2.0 + */ + function todo(name?: string, options?: TestOptions, fn?: TestFn): Promise; + function todo(name?: string, fn?: TestFn): Promise; + function todo(options?: TestOptions, fn?: TestFn): Promise; + function todo(fn?: TestFn): Promise; + /** + * Shorthand for marking a test as `only`. This is the same as calling {@link test} with `options.only` set to `true`. + * @since v20.2.0 + */ + function only(name?: string, options?: TestOptions, fn?: TestFn): Promise; + function only(name?: string, fn?: TestFn): Promise; + function only(options?: TestOptions, fn?: TestFn): Promise; + function only(fn?: TestFn): Promise; + /** + * The type of a function passed to {@link test}. The first argument to this function is a {@link TestContext} object. + * If the test uses callbacks, the callback function is passed as the second argument. + */ + type TestFn = (t: TestContext, done: (result?: any) => void) => void | Promise; + /** + * The type of a suite test function. The argument to this function is a {@link SuiteContext} object. + */ + type SuiteFn = (s: SuiteContext) => void | Promise; + interface TestShard { + /** + * A positive integer between 1 and `total` that specifies the index of the shard to run. + */ + index: number; + /** + * A positive integer that specifies the total number of shards to split the test files to. + */ + total: number; + } + interface RunOptions { + /** + * If a number is provided, then that many test processes would run in parallel, where each process corresponds to one test file. + * If `true`, it would run `os.availableParallelism() - 1` test files in parallel. If `false`, it would only run one test file at a time. + * @default false + */ + concurrency?: number | boolean | undefined; + /** + * An array containing the list of files to run. If omitted, files are run according to the + * [test runner execution model](https://nodejs.org/docs/latest-v20.x/api/test.html#test-runner-execution-model). + */ + files?: readonly string[] | undefined; + /** + * Configures the test runner to exit the process once all known + * tests have finished executing even if the event loop would + * otherwise remain active. + * @default false + */ + forceExit?: boolean | undefined; + /** + * Sets inspector port of test child process. + * If a nullish value is provided, each process gets its own port, + * incremented from the primary's `process.debugPort`. + * @default undefined + */ + inspectPort?: number | (() => number) | undefined; + /** + * If truthy, the test context will only run tests that have the `only` option set + */ + only?: boolean | undefined; + /** + * A function that accepts the `TestsStream` instance and can be used to setup listeners before any tests are run. + * @default undefined + */ + setup?: ((reporter: TestsStream) => void | Promise) | undefined; + /** + * Allows aborting an in-progress test execution. + */ + signal?: AbortSignal | undefined; + /** + * If provided, only run tests whose name matches the provided pattern. + * Strings are interpreted as JavaScript regular expressions. + * @default undefined + */ + testNamePatterns?: string | RegExp | ReadonlyArray | undefined; + /** + * The number of milliseconds after which the test execution will fail. + * If unspecified, subtests inherit this value from their parent. + * @default Infinity + */ + timeout?: number | undefined; + /** + * Whether to run in watch mode or not. + * @default false + */ + watch?: boolean | undefined; + /** + * Running tests in a specific shard. + * @default undefined + */ + shard?: TestShard | undefined; + } + /** + * A successful call to `run()` will return a new `TestsStream` object, streaming a series of events representing the execution of the tests. + * + * Some of the events are guaranteed to be emitted in the same order as the tests are defined, while others are emitted in the order that the tests execute. + * @since v18.9.0, v16.19.0 + */ + interface TestsStream extends Readable { + addListener(event: "test:coverage", listener: (data: EventData.TestCoverage) => void): this; + addListener(event: "test:complete", listener: (data: EventData.TestComplete) => void): this; + addListener(event: "test:dequeue", listener: (data: EventData.TestDequeue) => void): this; + addListener(event: "test:diagnostic", listener: (data: EventData.TestDiagnostic) => void): this; + addListener(event: "test:enqueue", listener: (data: EventData.TestEnqueue) => void): this; + addListener(event: "test:fail", listener: (data: EventData.TestFail) => void): this; + addListener(event: "test:pass", listener: (data: EventData.TestPass) => void): this; + addListener(event: "test:plan", listener: (data: EventData.TestPlan) => void): this; + addListener(event: "test:start", listener: (data: EventData.TestStart) => void): this; + addListener(event: "test:stderr", listener: (data: EventData.TestStderr) => void): this; + addListener(event: "test:stdout", listener: (data: EventData.TestStdout) => void): this; + addListener(event: "test:watch:drained", listener: () => void): this; + addListener(event: string, listener: (...args: any[]) => void): this; + emit(event: "test:coverage", data: EventData.TestCoverage): boolean; + emit(event: "test:complete", data: EventData.TestComplete): boolean; + emit(event: "test:dequeue", data: EventData.TestDequeue): boolean; + emit(event: "test:diagnostic", data: EventData.TestDiagnostic): boolean; + emit(event: "test:enqueue", data: EventData.TestEnqueue): boolean; + emit(event: "test:fail", data: EventData.TestFail): boolean; + emit(event: "test:pass", data: EventData.TestPass): boolean; + emit(event: "test:plan", data: EventData.TestPlan): boolean; + emit(event: "test:start", data: EventData.TestStart): boolean; + emit(event: "test:stderr", data: EventData.TestStderr): boolean; + emit(event: "test:stdout", data: EventData.TestStdout): boolean; + emit(event: "test:watch:drained"): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + on(event: "test:coverage", listener: (data: EventData.TestCoverage) => void): this; + on(event: "test:complete", listener: (data: EventData.TestComplete) => void): this; + on(event: "test:dequeue", listener: (data: EventData.TestDequeue) => void): this; + on(event: "test:diagnostic", listener: (data: EventData.TestDiagnostic) => void): this; + on(event: "test:enqueue", listener: (data: EventData.TestEnqueue) => void): this; + on(event: "test:fail", listener: (data: EventData.TestFail) => void): this; + on(event: "test:pass", listener: (data: EventData.TestPass) => void): this; + on(event: "test:plan", listener: (data: EventData.TestPlan) => void): this; + on(event: "test:start", listener: (data: EventData.TestStart) => void): this; + on(event: "test:stderr", listener: (data: EventData.TestStderr) => void): this; + on(event: "test:stdout", listener: (data: EventData.TestStdout) => void): this; + on(event: "test:watch:drained", listener: () => void): this; + on(event: string, listener: (...args: any[]) => void): this; + once(event: "test:coverage", listener: (data: EventData.TestCoverage) => void): this; + once(event: "test:complete", listener: (data: EventData.TestComplete) => void): this; + once(event: "test:dequeue", listener: (data: EventData.TestDequeue) => void): this; + once(event: "test:diagnostic", listener: (data: EventData.TestDiagnostic) => void): this; + once(event: "test:enqueue", listener: (data: EventData.TestEnqueue) => void): this; + once(event: "test:fail", listener: (data: EventData.TestFail) => void): this; + once(event: "test:pass", listener: (data: EventData.TestPass) => void): this; + once(event: "test:plan", listener: (data: EventData.TestPlan) => void): this; + once(event: "test:start", listener: (data: EventData.TestStart) => void): this; + once(event: "test:stderr", listener: (data: EventData.TestStderr) => void): this; + once(event: "test:stdout", listener: (data: EventData.TestStdout) => void): this; + once(event: "test:watch:drained", listener: () => void): this; + once(event: string, listener: (...args: any[]) => void): this; + prependListener(event: "test:coverage", listener: (data: EventData.TestCoverage) => void): this; + prependListener(event: "test:complete", listener: (data: EventData.TestComplete) => void): this; + prependListener(event: "test:dequeue", listener: (data: EventData.TestDequeue) => void): this; + prependListener(event: "test:diagnostic", listener: (data: EventData.TestDiagnostic) => void): this; + prependListener(event: "test:enqueue", listener: (data: EventData.TestEnqueue) => void): this; + prependListener(event: "test:fail", listener: (data: EventData.TestFail) => void): this; + prependListener(event: "test:pass", listener: (data: EventData.TestPass) => void): this; + prependListener(event: "test:plan", listener: (data: EventData.TestPlan) => void): this; + prependListener(event: "test:start", listener: (data: EventData.TestStart) => void): this; + prependListener(event: "test:stderr", listener: (data: EventData.TestStderr) => void): this; + prependListener(event: "test:stdout", listener: (data: EventData.TestStdout) => void): this; + prependListener(event: "test:watch:drained", listener: () => void): this; + prependListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: "test:coverage", listener: (data: EventData.TestCoverage) => void): this; + prependOnceListener(event: "test:complete", listener: (data: EventData.TestComplete) => void): this; + prependOnceListener(event: "test:dequeue", listener: (data: EventData.TestDequeue) => void): this; + prependOnceListener(event: "test:diagnostic", listener: (data: EventData.TestDiagnostic) => void): this; + prependOnceListener(event: "test:enqueue", listener: (data: EventData.TestEnqueue) => void): this; + prependOnceListener(event: "test:fail", listener: (data: EventData.TestFail) => void): this; + prependOnceListener(event: "test:pass", listener: (data: EventData.TestPass) => void): this; + prependOnceListener(event: "test:plan", listener: (data: EventData.TestPlan) => void): this; + prependOnceListener(event: "test:start", listener: (data: EventData.TestStart) => void): this; + prependOnceListener(event: "test:stderr", listener: (data: EventData.TestStderr) => void): this; + prependOnceListener(event: "test:stdout", listener: (data: EventData.TestStdout) => void): this; + prependOnceListener(event: "test:watch:drained", listener: () => void): this; + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + } + namespace EventData { + interface Error extends globalThis.Error { + cause: globalThis.Error; + } + interface LocationInfo { + /** + * The column number where the test is defined, or + * `undefined` if the test was run through the REPL. + */ + column?: number; + /** + * The path of the test file, `undefined` if test was run through the REPL. + */ + file?: string; + /** + * The line number where the test is defined, or `undefined` if the test was run through the REPL. + */ + line?: number; + } + interface TestDiagnostic extends LocationInfo { + /** + * The diagnostic message. + */ + message: string; + /** + * The nesting level of the test. + */ + nesting: number; + } + interface TestCoverage { + /** + * An object containing the coverage report. + */ + summary: { + /** + * An array of coverage reports for individual files. + */ + files: Array<{ + /** + * The absolute path of the file. + */ + path: string; + /** + * The total number of lines. + */ + totalLineCount: number; + /** + * The total number of branches. + */ + totalBranchCount: number; + /** + * The total number of functions. + */ + totalFunctionCount: number; + /** + * The number of covered lines. + */ + coveredLineCount: number; + /** + * The number of covered branches. + */ + coveredBranchCount: number; + /** + * The number of covered functions. + */ + coveredFunctionCount: number; + /** + * The percentage of lines covered. + */ + coveredLinePercent: number; + /** + * The percentage of branches covered. + */ + coveredBranchPercent: number; + /** + * The percentage of functions covered. + */ + coveredFunctionPercent: number; + /** + * An array of functions representing function coverage. + */ + functions: Array<{ + /** + * The name of the function. + */ + name: string; + /** + * The line number where the function is defined. + */ + line: number; + /** + * The number of times the function was called. + */ + count: number; + }>; + /** + * An array of branches representing branch coverage. + */ + branches: Array<{ + /** + * The line number where the branch is defined. + */ + line: number; + /** + * The number of times the branch was taken. + */ + count: number; + }>; + /** + * An array of lines representing line numbers and the number of times they were covered. + */ + lines: Array<{ + /** + * The line number. + */ + line: number; + /** + * The number of times the line was covered. + */ + count: number; + }>; + }>; + /** + * An object containing a summary of coverage for all files. + */ + totals: { + /** + * The total number of lines. + */ + totalLineCount: number; + /** + * The total number of branches. + */ + totalBranchCount: number; + /** + * The total number of functions. + */ + totalFunctionCount: number; + /** + * The number of covered lines. + */ + coveredLineCount: number; + /** + * The number of covered branches. + */ + coveredBranchCount: number; + /** + * The number of covered functions. + */ + coveredFunctionCount: number; + /** + * The percentage of lines covered. + */ + coveredLinePercent: number; + /** + * The percentage of branches covered. + */ + coveredBranchPercent: number; + /** + * The percentage of functions covered. + */ + coveredFunctionPercent: number; + }; + /** + * The working directory when code coverage began. This + * is useful for displaying relative path names in case + * the tests changed the working directory of the Node.js process. + */ + workingDirectory: string; + }; + /** + * The nesting level of the test. + */ + nesting: number; + } + interface TestComplete extends LocationInfo { + /** + * Additional execution metadata. + */ + details: { + /** + * Whether the test passed or not. + */ + passed: boolean; + /** + * The duration of the test in milliseconds. + */ + duration_ms: number; + /** + * An error wrapping the error thrown by the test if it did not pass. + */ + error?: Error; + /** + * The type of the test, used to denote whether this is a suite. + */ + type?: "suite"; + }; + /** + * The test name. + */ + name: string; + /** + * The nesting level of the test. + */ + nesting: number; + /** + * The ordinal number of the test. + */ + testNumber: number; + /** + * Present if `context.todo` is called. + */ + todo?: string | boolean; + /** + * Present if `context.skip` is called. + */ + skip?: string | boolean; + } + interface TestDequeue extends LocationInfo { + /** + * The test name. + */ + name: string; + /** + * The nesting level of the test. + */ + nesting: number; + } + interface TestEnqueue extends LocationInfo { + /** + * The test name. + */ + name: string; + /** + * The nesting level of the test. + */ + nesting: number; + } + interface TestFail extends LocationInfo { + /** + * Additional execution metadata. + */ + details: { + /** + * The duration of the test in milliseconds. + */ + duration_ms: number; + /** + * An error wrapping the error thrown by the test. + */ + error: Error; + /** + * The type of the test, used to denote whether this is a suite. + * @since v20.0.0, v19.9.0, v18.17.0 + */ + type?: "suite"; + }; + /** + * The test name. + */ + name: string; + /** + * The nesting level of the test. + */ + nesting: number; + /** + * The ordinal number of the test. + */ + testNumber: number; + /** + * Present if `context.todo` is called. + */ + todo?: string | boolean; + /** + * Present if `context.skip` is called. + */ + skip?: string | boolean; + } + interface TestPass extends LocationInfo { + /** + * Additional execution metadata. + */ + details: { + /** + * The duration of the test in milliseconds. + */ + duration_ms: number; + /** + * The type of the test, used to denote whether this is a suite. + * @since 20.0.0, 19.9.0, 18.17.0 + */ + type?: "suite"; + }; + /** + * The test name. + */ + name: string; + /** + * The nesting level of the test. + */ + nesting: number; + /** + * The ordinal number of the test. + */ + testNumber: number; + /** + * Present if `context.todo` is called. + */ + todo?: string | boolean; + /** + * Present if `context.skip` is called. + */ + skip?: string | boolean; + } + interface TestPlan extends LocationInfo { + /** + * The nesting level of the test. + */ + nesting: number; + /** + * The number of subtests that have ran. + */ + count: number; + } + interface TestStart extends LocationInfo { + /** + * The test name. + */ + name: string; + /** + * The nesting level of the test. + */ + nesting: number; + } + interface TestStderr { + /** + * The path of the test file. + */ + file: string; + /** + * The message written to `stderr`. + */ + message: string; + } + interface TestStdout { + /** + * The path of the test file. + */ + file: string; + /** + * The message written to `stdout`. + */ + message: string; + } + } + /** + * An instance of `TestContext` is passed to each test function in order to + * interact with the test runner. However, the `TestContext` constructor is not + * exposed as part of the API. + * @since v18.0.0, v16.17.0 + */ + interface TestContext { + /** + * An object containing assertion methods bound to the test context. + * The top-level functions from the `node:assert` module are exposed here for the purpose of creating test plans. + * + * **Note:** Some of the functions from `node:assert` contain type assertions. If these are called via the + * TestContext `assert` object, then the context parameter in the test's function signature **must be explicitly typed** + * (ie. the parameter must have a type annotation), otherwise an error will be raised by the TypeScript compiler: + * ```ts + * import { test, type TestContext } from 'node:test'; + * + * // The test function's context parameter must have a type annotation. + * test('example', (t: TestContext) => { + * t.assert.deepStrictEqual(actual, expected); + * }); + * + * // Omitting the type annotation will result in a compilation error. + * test('example', t => { + * t.assert.deepStrictEqual(actual, expected); // Error: 't' needs an explicit type annotation. + * }); + * ``` + * @since v20.15.0 + */ + readonly assert: TestContextAssert; + /** + * This function is used to create a hook running before subtest of the current test. + * @param fn The hook function. The first argument to this function is a `TestContext` object. + * If the hook uses callbacks, the callback function is passed as the second argument. + * @param options Configuration options for the hook. + * @since v20.1.0, v18.17.0 + */ + before(fn?: TestContextHookFn, options?: HookOptions): void; + /** + * This function is used to create a hook running before each subtest of the current test. + * @param fn The hook function. The first argument to this function is a `TestContext` object. + * If the hook uses callbacks, the callback function is passed as the second argument. + * @param options Configuration options for the hook. + * @since v18.8.0 + */ + beforeEach(fn?: TestContextHookFn, options?: HookOptions): void; + /** + * This function is used to create a hook that runs after the current test finishes. + * @param fn The hook function. The first argument to this function is a `TestContext` object. + * If the hook uses callbacks, the callback function is passed as the second argument. + * @param options Configuration options for the hook. + * @since v18.13.0 + */ + after(fn?: TestContextHookFn, options?: HookOptions): void; + /** + * This function is used to create a hook running after each subtest of the current test. + * @param fn The hook function. The first argument to this function is a `TestContext` object. + * If the hook uses callbacks, the callback function is passed as the second argument. + * @param options Configuration options for the hook. + * @since v18.8.0 + */ + afterEach(fn?: TestContextHookFn, options?: HookOptions): void; + /** + * This function is used to write diagnostics to the output. Any diagnostic + * information is included at the end of the test's results. This function does + * not return a value. + * + * ```js + * test('top level test', (t) => { + * t.diagnostic('A diagnostic message'); + * }); + * ``` + * @since v18.0.0, v16.17.0 + * @param message Message to be reported. + */ + diagnostic(message: string): void; + /** + * The name of the test and each of its ancestors, separated by `>`. + * @since v20.16.0 + */ + readonly fullName: string; + /** + * The name of the test. + * @since v18.8.0, v16.18.0 + */ + readonly name: string; + /** + * Used to set the number of assertions and subtests that are expected to run within the test. + * If the number of assertions and subtests that run does not match the expected count, the test will fail. + * + * To make sure assertions are tracked, the assert functions on `context.assert` must be used, + * instead of importing from the `node:assert` module. + * ```js + * test('top level test', (t) => { + * t.plan(2); + * t.assert.ok('some relevant assertion here'); + * t.test('subtest', () => {}); + * }); + * ``` + * + * When working with asynchronous code, the `plan` function can be used to ensure that the correct number of assertions are run: + * ```js + * test('planning with streams', (t, done) => { + * function* generate() { + * yield 'a'; + * yield 'b'; + * yield 'c'; + * } + * const expected = ['a', 'b', 'c']; + * t.plan(expected.length); + * const stream = Readable.from(generate()); + * stream.on('data', (chunk) => { + * t.assert.strictEqual(chunk, expected.shift()); + * }); + * stream.on('end', () => { + * done(); + * }); + * }); + * ``` + * @since v20.15.0 + */ + plan(count: number): void; + /** + * If `shouldRunOnlyTests` is truthy, the test context will only run tests that + * have the `only` option set. Otherwise, all tests are run. If Node.js was not + * started with the `--test-only` command-line option, this function is a + * no-op. + * + * ```js + * test('top level test', (t) => { + * // The test context can be set to run subtests with the 'only' option. + * t.runOnly(true); + * return Promise.all([ + * t.test('this subtest is now skipped'), + * t.test('this subtest is run', { only: true }), + * ]); + * }); + * ``` + * @since v18.0.0, v16.17.0 + * @param shouldRunOnlyTests Whether or not to run `only` tests. + */ + runOnly(shouldRunOnlyTests: boolean): void; + /** + * ```js + * test('top level test', async (t) => { + * await fetch('some/uri', { signal: t.signal }); + * }); + * ``` + * @since v18.7.0, v16.17.0 + */ + readonly signal: AbortSignal; + /** + * This function causes the test's output to indicate the test as skipped. If `message` is provided, it is included in the output. Calling `skip()` does + * not terminate execution of the test function. This function does not return a + * value. + * + * ```js + * test('top level test', (t) => { + * // Make sure to return here as well if the test contains additional logic. + * t.skip('this is skipped'); + * }); + * ``` + * @since v18.0.0, v16.17.0 + * @param message Optional skip message. + */ + skip(message?: string): void; + /** + * This function adds a `TODO` directive to the test's output. If `message` is + * provided, it is included in the output. Calling `todo()` does not terminate + * execution of the test function. This function does not return a value. + * + * ```js + * test('top level test', (t) => { + * // This test is marked as `TODO` + * t.todo('this is a todo'); + * }); + * ``` + * @since v18.0.0, v16.17.0 + * @param message Optional `TODO` message. + */ + todo(message?: string): void; + /** + * This function is used to create subtests under the current test. This function behaves in + * the same fashion as the top level {@link test} function. + * @since v18.0.0 + * @param name The name of the test, which is displayed when reporting test results. + * Defaults to the `name` property of `fn`, or `''` if `fn` does not have a name. + * @param options Configuration options for the test. + * @param fn The function under test. This first argument to this function is a {@link TestContext} object. + * If the test uses callbacks, the callback function is passed as the second argument. + * @returns A {@link Promise} resolved with `undefined` once the test completes. + */ + test: typeof test; + /** + * Each test provides its own MockTracker instance. + */ + readonly mock: MockTracker; + } + interface TestContextAssert extends Pick {} + /** + * An instance of `SuiteContext` is passed to each suite function in order to + * interact with the test runner. However, the `SuiteContext` constructor is not + * exposed as part of the API. + * @since v18.7.0, v16.17.0 + */ + interface SuiteContext { + /** + * The name of the suite. + * @since v18.8.0, v16.18.0 + */ + readonly name: string; + /** + * Can be used to abort test subtasks when the test has been aborted. + * @since v18.7.0, v16.17.0 + */ + readonly signal: AbortSignal; + } + interface TestOptions { + /** + * If a number is provided, then that many tests would run in parallel. + * If truthy, it would run (number of cpu cores - 1) tests in parallel. + * For subtests, it will be `Infinity` tests in parallel. + * If falsy, it would only run one test at a time. + * If unspecified, subtests inherit this value from their parent. + * @default false + */ + concurrency?: number | boolean | undefined; + /** + * If truthy, and the test context is configured to run `only` tests, then this test will be + * run. Otherwise, the test is skipped. + * @default false + */ + only?: boolean | undefined; + /** + * Allows aborting an in-progress test. + * @since v18.8.0 + */ + signal?: AbortSignal | undefined; + /** + * If truthy, the test is skipped. If a string is provided, that string is displayed in the + * test results as the reason for skipping the test. + * @default false + */ + skip?: boolean | string | undefined; + /** + * A number of milliseconds the test will fail after. If unspecified, subtests inherit this + * value from their parent. + * @default Infinity + * @since v18.7.0 + */ + timeout?: number | undefined; + /** + * If truthy, the test marked as `TODO`. If a string is provided, that string is displayed in + * the test results as the reason why the test is `TODO`. + * @default false + */ + todo?: boolean | string | undefined; + /** + * The number of assertions and subtests expected to be run in the test. + * If the number of assertions run in the test does not match the number + * specified in the plan, the test will fail. + * @default undefined + * @since v20.15.0 + */ + plan?: number | undefined; + } + /** + * This function creates a hook that runs before executing a suite. + * + * ```js + * describe('tests', async () => { + * before(() => console.log('about to run some test')); + * it('is a subtest', () => { + * assert.ok('some relevant assertion here'); + * }); + * }); + * ``` + * @since v18.8.0, v16.18.0 + * @param fn The hook function. If the hook uses callbacks, the callback function is passed as the second argument. + * @param options Configuration options for the hook. + */ + function before(fn?: HookFn, options?: HookOptions): void; + /** + * This function creates a hook that runs after executing a suite. + * + * ```js + * describe('tests', async () => { + * after(() => console.log('finished running tests')); + * it('is a subtest', () => { + * assert.ok('some relevant assertion here'); + * }); + * }); + * ``` + * @since v18.8.0, v16.18.0 + * @param fn The hook function. If the hook uses callbacks, the callback function is passed as the second argument. + * @param options Configuration options for the hook. + */ + function after(fn?: HookFn, options?: HookOptions): void; + /** + * This function creates a hook that runs before each test in the current suite. + * + * ```js + * describe('tests', async () => { + * beforeEach(() => console.log('about to run a test')); + * it('is a subtest', () => { + * assert.ok('some relevant assertion here'); + * }); + * }); + * ``` + * @since v18.8.0, v16.18.0 + * @param fn The hook function. If the hook uses callbacks, the callback function is passed as the second argument. + * @param options Configuration options for the hook. + */ + function beforeEach(fn?: HookFn, options?: HookOptions): void; + /** + * This function creates a hook that runs after each test in the current suite. + * The `afterEach()` hook is run even if the test fails. + * + * ```js + * describe('tests', async () => { + * afterEach(() => console.log('finished running a test')); + * it('is a subtest', () => { + * assert.ok('some relevant assertion here'); + * }); + * }); + * ``` + * @since v18.8.0, v16.18.0 + * @param fn The hook function. If the hook uses callbacks, the callback function is passed as the second argument. + * @param options Configuration options for the hook. + */ + function afterEach(fn?: HookFn, options?: HookOptions): void; + /** + * The hook function. The first argument is the context in which the hook is called. + * If the hook uses callbacks, the callback function is passed as the second argument. + */ + type HookFn = (c: TestContext | SuiteContext, done: (result?: any) => void) => any; + /** + * The hook function. The first argument is a `TestContext` object. + * If the hook uses callbacks, the callback function is passed as the second argument. + */ + type TestContextHookFn = (t: TestContext, done: (result?: any) => void) => any; + /** + * Configuration options for hooks. + * @since v18.8.0 + */ + interface HookOptions { + /** + * Allows aborting an in-progress hook. + */ + signal?: AbortSignal | undefined; + /** + * A number of milliseconds the hook will fail after. If unspecified, subtests inherit this + * value from their parent. + * @default Infinity + */ + timeout?: number | undefined; + } + interface MockFunctionOptions { + /** + * The number of times that the mock will use the behavior of `implementation`. + * Once the mock function has been called `times` times, + * it will automatically restore the behavior of `original`. + * This value must be an integer greater than zero. + * @default Infinity + */ + times?: number | undefined; + } + interface MockMethodOptions extends MockFunctionOptions { + /** + * If `true`, `object[methodName]` is treated as a getter. + * This option cannot be used with the `setter` option. + */ + getter?: boolean | undefined; + /** + * If `true`, `object[methodName]` is treated as a setter. + * This option cannot be used with the `getter` option. + */ + setter?: boolean | undefined; + } + type Mock = F & { + mock: MockFunctionContext; + }; + interface MockModuleOptions { + /** + * If false, each call to `require()` or `import()` generates a new mock module. + * If true, subsequent calls will return the same module mock, and the mock module is inserted into the CommonJS cache. + * @default false + */ + cache?: boolean | undefined; + /** + * The value to use as the mocked module's default export. + * + * If this value is not provided, ESM mocks do not include a default export. + * If the mock is a CommonJS or builtin module, this setting is used as the value of `module.exports`. + * If this value is not provided, CJS and builtin mocks use an empty object as the value of `module.exports`. + */ + defaultExport?: any; + /** + * An object whose keys and values are used to create the named exports of the mock module. + * + * If the mock is a CommonJS or builtin module, these values are copied onto `module.exports`. + * Therefore, if a mock is created with both named exports and a non-object default export, + * the mock will throw an exception when used as a CJS or builtin module. + */ + namedExports?: object | undefined; + } + /** + * The `MockTracker` class is used to manage mocking functionality. The test runner + * module provides a top level `mock` export which is a `MockTracker` instance. + * Each test also provides its own `MockTracker` instance via the test context's `mock` property. + * @since v19.1.0, v18.13.0 + */ + interface MockTracker { + /** + * This function is used to create a mock function. + * + * The following example creates a mock function that increments a counter by one + * on each invocation. The `times` option is used to modify the mock behavior such + * that the first two invocations add two to the counter instead of one. + * + * ```js + * test('mocks a counting function', (t) => { + * let cnt = 0; + * + * function addOne() { + * cnt++; + * return cnt; + * } + * + * function addTwo() { + * cnt += 2; + * return cnt; + * } + * + * const fn = t.mock.fn(addOne, addTwo, { times: 2 }); + * + * assert.strictEqual(fn(), 2); + * assert.strictEqual(fn(), 4); + * assert.strictEqual(fn(), 5); + * assert.strictEqual(fn(), 6); + * }); + * ``` + * @since v19.1.0, v18.13.0 + * @param original An optional function to create a mock on. + * @param implementation An optional function used as the mock implementation for `original`. This is useful for creating mocks that exhibit one behavior for a specified number of calls and + * then restore the behavior of `original`. + * @param options Optional configuration options for the mock function. + * @return The mocked function. The mocked function contains a special `mock` property, which is an instance of {@link MockFunctionContext}, and can be used for inspecting and changing the + * behavior of the mocked function. + */ + fn undefined>( + original?: F, + options?: MockFunctionOptions, + ): Mock; + fn undefined, Implementation extends Function = F>( + original?: F, + implementation?: Implementation, + options?: MockFunctionOptions, + ): Mock; + /** + * This function is used to create a mock on an existing object method. The + * following example demonstrates how a mock is created on an existing object + * method. + * + * ```js + * test('spies on an object method', (t) => { + * const number = { + * value: 5, + * subtract(a) { + * return this.value - a; + * }, + * }; + * + * t.mock.method(number, 'subtract'); + * assert.strictEqual(number.subtract.mock.calls.length, 0); + * assert.strictEqual(number.subtract(3), 2); + * assert.strictEqual(number.subtract.mock.calls.length, 1); + * + * const call = number.subtract.mock.calls[0]; + * + * assert.deepStrictEqual(call.arguments, [3]); + * assert.strictEqual(call.result, 2); + * assert.strictEqual(call.error, undefined); + * assert.strictEqual(call.target, undefined); + * assert.strictEqual(call.this, number); + * }); + * ``` + * @since v19.1.0, v18.13.0 + * @param object The object whose method is being mocked. + * @param methodName The identifier of the method on `object` to mock. If `object[methodName]` is not a function, an error is thrown. + * @param implementation An optional function used as the mock implementation for `object[methodName]`. + * @param options Optional configuration options for the mock method. + * @return The mocked method. The mocked method contains a special `mock` property, which is an instance of {@link MockFunctionContext}, and can be used for inspecting and changing the + * behavior of the mocked method. + */ + method< + MockedObject extends object, + MethodName extends FunctionPropertyNames, + >( + object: MockedObject, + methodName: MethodName, + options?: MockFunctionOptions, + ): MockedObject[MethodName] extends Function ? Mock + : never; + method< + MockedObject extends object, + MethodName extends FunctionPropertyNames, + Implementation extends Function, + >( + object: MockedObject, + methodName: MethodName, + implementation: Implementation, + options?: MockFunctionOptions, + ): MockedObject[MethodName] extends Function ? Mock + : never; + method( + object: MockedObject, + methodName: keyof MockedObject, + options: MockMethodOptions, + ): Mock; + method( + object: MockedObject, + methodName: keyof MockedObject, + implementation: Function, + options: MockMethodOptions, + ): Mock; + /** + * This function is syntax sugar for `MockTracker.method` with `options.getter` set to `true`. + * @since v19.3.0, v18.13.0 + */ + getter< + MockedObject extends object, + MethodName extends keyof MockedObject, + >( + object: MockedObject, + methodName: MethodName, + options?: MockFunctionOptions, + ): Mock<() => MockedObject[MethodName]>; + getter< + MockedObject extends object, + MethodName extends keyof MockedObject, + Implementation extends Function, + >( + object: MockedObject, + methodName: MethodName, + implementation?: Implementation, + options?: MockFunctionOptions, + ): Mock<(() => MockedObject[MethodName]) | Implementation>; + /** + * This function is syntax sugar for `MockTracker.method` with `options.setter` set to `true`. + * @since v19.3.0, v18.13.0 + */ + setter< + MockedObject extends object, + MethodName extends keyof MockedObject, + >( + object: MockedObject, + methodName: MethodName, + options?: MockFunctionOptions, + ): Mock<(value: MockedObject[MethodName]) => void>; + setter< + MockedObject extends object, + MethodName extends keyof MockedObject, + Implementation extends Function, + >( + object: MockedObject, + methodName: MethodName, + implementation?: Implementation, + options?: MockFunctionOptions, + ): Mock<((value: MockedObject[MethodName]) => void) | Implementation>; + /** + * This function is used to mock the exports of ECMAScript modules, CommonJS modules, and Node.js builtin modules. + * Any references to the original module prior to mocking are not impacted. + * + * Only available through the [--experimental-test-module-mocks](https://nodejs.org/api/cli.html#--experimental-test-module-mocks) flag. + * @since v20.18.0 + * @experimental + * @param specifier A string identifying the module to mock. + * @param options Optional configuration options for the mock module. + */ + module(specifier: string, options?: MockModuleOptions): MockModuleContext; + /** + * This function restores the default behavior of all mocks that were previously + * created by this `MockTracker` and disassociates the mocks from the `MockTracker` instance. Once disassociated, the mocks can still be used, but the `MockTracker` instance can no longer be + * used to reset their behavior or + * otherwise interact with them. + * + * After each test completes, this function is called on the test context's `MockTracker`. If the global `MockTracker` is used extensively, calling this + * function manually is recommended. + * @since v19.1.0, v18.13.0 + */ + reset(): void; + /** + * This function restores the default behavior of all mocks that were previously + * created by this `MockTracker`. Unlike `mock.reset()`, `mock.restoreAll()` does + * not disassociate the mocks from the `MockTracker` instance. + * @since v19.1.0, v18.13.0 + */ + restoreAll(): void; + readonly timers: MockTimers; + } + const mock: MockTracker; + interface MockFunctionCall< + F extends Function, + ReturnType = F extends (...args: any) => infer T ? T + : F extends abstract new(...args: any) => infer T ? T + : unknown, + Args = F extends (...args: infer Y) => any ? Y + : F extends abstract new(...args: infer Y) => any ? Y + : unknown[], + > { + /** + * An array of the arguments passed to the mock function. + */ + arguments: Args; + /** + * If the mocked function threw then this property contains the thrown value. + */ + error: unknown | undefined; + /** + * The value returned by the mocked function. + * + * If the mocked function threw, it will be `undefined`. + */ + result: ReturnType | undefined; + /** + * An `Error` object whose stack can be used to determine the callsite of the mocked function invocation. + */ + stack: Error; + /** + * If the mocked function is a constructor, this field contains the class being constructed. + * Otherwise this will be `undefined`. + */ + target: F extends abstract new(...args: any) => any ? F : undefined; + /** + * The mocked function's `this` value. + */ + this: unknown; + } + /** + * The `MockFunctionContext` class is used to inspect or manipulate the behavior of + * mocks created via the `MockTracker` APIs. + * @since v19.1.0, v18.13.0 + */ + interface MockFunctionContext { + /** + * A getter that returns a copy of the internal array used to track calls to the + * mock. Each entry in the array is an object with the following properties. + * @since v19.1.0, v18.13.0 + */ + readonly calls: MockFunctionCall[]; + /** + * This function returns the number of times that this mock has been invoked. This + * function is more efficient than checking `ctx.calls.length` because `ctx.calls` is a getter that creates a copy of the internal call tracking array. + * @since v19.1.0, v18.13.0 + * @return The number of times that this mock has been invoked. + */ + callCount(): number; + /** + * This function is used to change the behavior of an existing mock. + * + * The following example creates a mock function using `t.mock.fn()`, calls the + * mock function, and then changes the mock implementation to a different function. + * + * ```js + * test('changes a mock behavior', (t) => { + * let cnt = 0; + * + * function addOne() { + * cnt++; + * return cnt; + * } + * + * function addTwo() { + * cnt += 2; + * return cnt; + * } + * + * const fn = t.mock.fn(addOne); + * + * assert.strictEqual(fn(), 1); + * fn.mock.mockImplementation(addTwo); + * assert.strictEqual(fn(), 3); + * assert.strictEqual(fn(), 5); + * }); + * ``` + * @since v19.1.0, v18.13.0 + * @param implementation The function to be used as the mock's new implementation. + */ + mockImplementation(implementation: F): void; + /** + * This function is used to change the behavior of an existing mock for a single + * invocation. Once invocation `onCall` has occurred, the mock will revert to + * whatever behavior it would have used had `mockImplementationOnce()` not been + * called. + * + * The following example creates a mock function using `t.mock.fn()`, calls the + * mock function, changes the mock implementation to a different function for the + * next invocation, and then resumes its previous behavior. + * + * ```js + * test('changes a mock behavior once', (t) => { + * let cnt = 0; + * + * function addOne() { + * cnt++; + * return cnt; + * } + * + * function addTwo() { + * cnt += 2; + * return cnt; + * } + * + * const fn = t.mock.fn(addOne); + * + * assert.strictEqual(fn(), 1); + * fn.mock.mockImplementationOnce(addTwo); + * assert.strictEqual(fn(), 3); + * assert.strictEqual(fn(), 4); + * }); + * ``` + * @since v19.1.0, v18.13.0 + * @param implementation The function to be used as the mock's implementation for the invocation number specified by `onCall`. + * @param onCall The invocation number that will use `implementation`. If the specified invocation has already occurred then an exception is thrown. + */ + mockImplementationOnce(implementation: F, onCall?: number): void; + /** + * Resets the call history of the mock function. + * @since v19.3.0, v18.13.0 + */ + resetCalls(): void; + /** + * Resets the implementation of the mock function to its original behavior. The + * mock can still be used after calling this function. + * @since v19.1.0, v18.13.0 + */ + restore(): void; + } + /** + * @since v20.18.0 + * @experimental + */ + interface MockModuleContext { + /** + * Resets the implementation of the mock module. + * @since v20.18.0 + */ + restore(): void; + } + interface MockTimersOptions { + apis: ReadonlyArray<"setInterval" | "setTimeout" | "setImmediate" | "Date">; + now?: number | Date | undefined; + } + /** + * Mocking timers is a technique commonly used in software testing to simulate and + * control the behavior of timers, such as `setInterval` and `setTimeout`, + * without actually waiting for the specified time intervals. + * + * The MockTimers API also allows for mocking of the `Date` constructor and + * `setImmediate`/`clearImmediate` functions. + * + * The `MockTracker` provides a top-level `timers` export + * which is a `MockTimers` instance. + * @since v20.4.0 + * @experimental + */ + interface MockTimers { + /** + * Enables timer mocking for the specified timers. + * + * **Note:** When you enable mocking for a specific timer, its associated + * clear function will also be implicitly mocked. + * + * **Note:** Mocking `Date` will affect the behavior of the mocked timers + * as they use the same internal clock. + * + * Example usage without setting initial time: + * + * ```js + * import { mock } from 'node:test'; + * mock.timers.enable({ apis: ['setInterval', 'Date'], now: 1234 }); + * ``` + * + * The above example enables mocking for the `Date` constructor, `setInterval` timer and + * implicitly mocks the `clearInterval` function. Only the `Date` constructor from `globalThis`, + * `setInterval` and `clearInterval` functions from `node:timers`, `node:timers/promises`, and `globalThis` will be mocked. + * + * Example usage with initial time set + * + * ```js + * import { mock } from 'node:test'; + * mock.timers.enable({ apis: ['Date'], now: 1000 }); + * ``` + * + * Example usage with initial Date object as time set + * + * ```js + * import { mock } from 'node:test'; + * mock.timers.enable({ apis: ['Date'], now: new Date() }); + * ``` + * + * Alternatively, if you call `mock.timers.enable()` without any parameters: + * + * All timers (`'setInterval'`, `'clearInterval'`, `'Date'`, `'setImmediate'`, `'clearImmediate'`, `'setTimeout'`, and `'clearTimeout'`) + * will be mocked. + * + * The `setInterval`, `clearInterval`, `setTimeout`, and `clearTimeout` functions from `node:timers`, `node:timers/promises`, + * and `globalThis` will be mocked. + * The `Date` constructor from `globalThis` will be mocked. + * + * If there is no initial epoch set, the initial date will be based on 0 in the Unix epoch. This is `January 1st, 1970, 00:00:00 UTC`. You can + * set an initial date by passing a now property to the `.enable()` method. This value will be used as the initial date for the mocked Date + * object. It can either be a positive integer, or another Date object. + * @since v20.4.0 + */ + enable(options?: MockTimersOptions): void; + /** + * You can use the `.setTime()` method to manually move the mocked date to another time. This method only accepts a positive integer. + * Note: This method will execute any mocked timers that are in the past from the new time. + * In the below example we are setting a new time for the mocked date. + * ```js + * import assert from 'node:assert'; + * import { test } from 'node:test'; + * test('sets the time of a date object', (context) => { + * // Optionally choose what to mock + * context.mock.timers.enable({ apis: ['Date'], now: 100 }); + * assert.strictEqual(Date.now(), 100); + * // Advance in time will also advance the date + * context.mock.timers.setTime(1000); + * context.mock.timers.tick(200); + * assert.strictEqual(Date.now(), 1200); + * }); + * ``` + */ + setTime(time: number): void; + /** + * This function restores the default behavior of all mocks that were previously + * created by this `MockTimers` instance and disassociates the mocks + * from the `MockTracker` instance. + * + * **Note:** After each test completes, this function is called on + * the test context's `MockTracker`. + * + * ```js + * import { mock } from 'node:test'; + * mock.timers.reset(); + * ``` + * @since v20.4.0 + */ + reset(): void; + /** + * Advances time for all mocked timers. + * + * **Note:** This diverges from how `setTimeout` in Node.js behaves and accepts + * only positive numbers. In Node.js, `setTimeout` with negative numbers is + * only supported for web compatibility reasons. + * + * The following example mocks a `setTimeout` function and + * by using `.tick` advances in + * time triggering all pending timers. + * + * ```js + * import assert from 'node:assert'; + * import { test } from 'node:test'; + * + * test('mocks setTimeout to be executed synchronously without having to actually wait for it', (context) => { + * const fn = context.mock.fn(); + * + * context.mock.timers.enable({ apis: ['setTimeout'] }); + * + * setTimeout(fn, 9999); + * + * assert.strictEqual(fn.mock.callCount(), 0); + * + * // Advance in time + * context.mock.timers.tick(9999); + * + * assert.strictEqual(fn.mock.callCount(), 1); + * }); + * ``` + * + * Alternativelly, the `.tick` function can be called many times + * + * ```js + * import assert from 'node:assert'; + * import { test } from 'node:test'; + * + * test('mocks setTimeout to be executed synchronously without having to actually wait for it', (context) => { + * const fn = context.mock.fn(); + * context.mock.timers.enable({ apis: ['setTimeout'] }); + * const nineSecs = 9000; + * setTimeout(fn, nineSecs); + * + * const twoSeconds = 3000; + * context.mock.timers.tick(twoSeconds); + * context.mock.timers.tick(twoSeconds); + * context.mock.timers.tick(twoSeconds); + * + * assert.strictEqual(fn.mock.callCount(), 1); + * }); + * ``` + * + * Advancing time using `.tick` will also advance the time for any `Date` object + * created after the mock was enabled (if `Date` was also set to be mocked). + * + * ```js + * import assert from 'node:assert'; + * import { test } from 'node:test'; + * + * test('mocks setTimeout to be executed synchronously without having to actually wait for it', (context) => { + * const fn = context.mock.fn(); + * + * context.mock.timers.enable({ apis: ['setTimeout', 'Date'] }); + * setTimeout(fn, 9999); + * + * assert.strictEqual(fn.mock.callCount(), 0); + * assert.strictEqual(Date.now(), 0); + * + * // Advance in time + * context.mock.timers.tick(9999); + * assert.strictEqual(fn.mock.callCount(), 1); + * assert.strictEqual(Date.now(), 9999); + * }); + * ``` + * @since v20.4.0 + */ + tick(milliseconds: number): void; + /** + * Triggers all pending mocked timers immediately. If the `Date` object is also + * mocked, it will also advance the `Date` object to the furthest timer's time. + * + * The example below triggers all pending timers immediately, + * causing them to execute without any delay. + * + * ```js + * import assert from 'node:assert'; + * import { test } from 'node:test'; + * + * test('runAll functions following the given order', (context) => { + * context.mock.timers.enable({ apis: ['setTimeout', 'Date'] }); + * const results = []; + * setTimeout(() => results.push(1), 9999); + * + * // Notice that if both timers have the same timeout, + * // the order of execution is guaranteed + * setTimeout(() => results.push(3), 8888); + * setTimeout(() => results.push(2), 8888); + * + * assert.deepStrictEqual(results, []); + * + * context.mock.timers.runAll(); + * assert.deepStrictEqual(results, [3, 2, 1]); + * // The Date object is also advanced to the furthest timer's time + * assert.strictEqual(Date.now(), 9999); + * }); + * ``` + * + * **Note:** The `runAll()` function is specifically designed for + * triggering timers in the context of timer mocking. + * It does not have any effect on real-time system + * clocks or actual timers outside of the mocking environment. + * @since v20.4.0 + */ + runAll(): void; + /** + * Calls {@link MockTimers.reset()}. + */ + [Symbol.dispose](): void; + } + } + type FunctionPropertyNames = { + [K in keyof T]: T[K] extends Function ? K : never; + }[keyof T]; + export = test; +} + +/** + * The `node:test/reporters` module exposes the builtin-reporters for `node:test`. + * To access it: + * + * ```js + * import test from 'node:test/reporters'; + * ``` + * + * This module is only available under the `node:` scheme. The following will not + * work: + * + * ```js + * import test from 'test/reporters'; + * ``` + * @since v19.9.0 + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/test/reporters.js) + */ +declare module "node:test/reporters" { + import { Transform, TransformOptions } from "node:stream"; + import { EventData } from "node:test"; + + type TestEvent = + | { type: "test:coverage"; data: EventData.TestCoverage } + | { type: "test:complete"; data: EventData.TestComplete } + | { type: "test:dequeue"; data: EventData.TestDequeue } + | { type: "test:diagnostic"; data: EventData.TestDiagnostic } + | { type: "test:enqueue"; data: EventData.TestEnqueue } + | { type: "test:fail"; data: EventData.TestFail } + | { type: "test:pass"; data: EventData.TestPass } + | { type: "test:plan"; data: EventData.TestPlan } + | { type: "test:start"; data: EventData.TestStart } + | { type: "test:stderr"; data: EventData.TestStderr } + | { type: "test:stdout"; data: EventData.TestStdout } + | { type: "test:watch:drained"; data: undefined }; + type TestEventGenerator = AsyncGenerator; + + /** + * The `dot` reporter outputs the test results in a compact format, + * where each passing test is represented by a `.`, + * and each failing test is represented by a `X`. + * @since v20.0.0 + */ + function dot(source: TestEventGenerator): AsyncGenerator<"\n" | "." | "X", void>; + /** + * The `tap` reporter outputs the test results in the [TAP](https://testanything.org/) format. + * @since v20.0.0 + */ + function tap(source: TestEventGenerator): AsyncGenerator; + /** + * The `spec` reporter outputs the test results in a human-readable format. + * @since v20.0.0 + */ + class SpecReporter extends Transform { + constructor(); + } + /** + * The `junit` reporter outputs test results in a jUnit XML format. + * @since v21.0.0 + */ + function junit(source: TestEventGenerator): AsyncGenerator; + class LcovReporter extends Transform { + constructor(opts?: Omit); + } + /** + * The `lcov` reporter outputs test coverage when used with the + * [`--experimental-test-coverage`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--experimental-test-coverage) flag. + * @since v22.0.0 + */ + const lcov: LcovReporter; + + export { dot, junit, lcov, SpecReporter as spec, tap, TestEvent }; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/timers.d.ts b/backend/node_modules/httpx/node_modules/@types/node/timers.d.ts new file mode 100644 index 0000000..57a8d9f --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/timers.d.ts @@ -0,0 +1,286 @@ +/** + * The `timer` module exposes a global API for scheduling functions to + * be called at some future period of time. Because the timer functions are + * globals, there is no need to import `node:timers` to use the API. + * + * The timer functions within Node.js implement a similar API as the timers API + * provided by Web Browsers but use a different internal implementation that is + * built around the Node.js [Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#setimmediate-vs-settimeout). + * @see [source](https://github.com/nodejs/node/blob/v20.x/lib/timers.js) + */ +declare module "timers" { + import { Abortable } from "node:events"; + import * as promises from "node:timers/promises"; + export interface TimerOptions extends Abortable { + /** + * Set to `false` to indicate that the scheduled `Timeout` + * should not require the Node.js event loop to remain active. + * @default true + */ + ref?: boolean | undefined; + } + global { + namespace NodeJS { + /** + * This object is created internally and is returned from `setImmediate()`. It + * can be passed to `clearImmediate()` in order to cancel the scheduled + * actions. + * + * By default, when an immediate is scheduled, the Node.js event loop will continue + * running as long as the immediate is active. The `Immediate` object returned by + * `setImmediate()` exports both `immediate.ref()` and `immediate.unref()` + * functions that can be used to control this default behavior. + */ + interface Immediate extends RefCounted, Disposable { + /** + * If true, the `Immediate` object will keep the Node.js event loop active. + * @since v11.0.0 + */ + hasRef(): boolean; + /** + * When called, requests that the Node.js event loop _not_ exit so long as the + * `Immediate` is active. Calling `immediate.ref()` multiple times will have no + * effect. + * + * By default, all `Immediate` objects are "ref'ed", making it normally unnecessary + * to call `immediate.ref()` unless `immediate.unref()` had been called previously. + * @since v9.7.0 + * @returns a reference to `immediate` + */ + ref(): this; + /** + * When called, the active `Immediate` object will not require the Node.js event + * loop to remain active. If there is no other activity keeping the event loop + * running, the process may exit before the `Immediate` object's callback is + * invoked. Calling `immediate.unref()` multiple times will have no effect. + * @since v9.7.0 + * @returns a reference to `immediate` + */ + unref(): this; + /** + * Cancels the immediate. This is similar to calling `clearImmediate()`. + * @since v20.5.0, v18.18.0 + * @experimental + */ + [Symbol.dispose](): void; + _onImmediate(...args: any[]): void; + } + // Legacy interface used in Node.js v9 and prior + /** @deprecated Use `NodeJS.Timeout` instead. */ + interface Timer extends RefCounted { + hasRef(): boolean; + refresh(): this; + [Symbol.toPrimitive](): number; + } + /** + * This object is created internally and is returned from `setTimeout()` and + * `setInterval()`. It can be passed to either `clearTimeout()` or + * `clearInterval()` in order to cancel the scheduled actions. + * + * By default, when a timer is scheduled using either `setTimeout()` or + * `setInterval()`, the Node.js event loop will continue running as long as the + * timer is active. Each of the `Timeout` objects returned by these functions + * export both `timeout.ref()` and `timeout.unref()` functions that can be used to + * control this default behavior. + */ + interface Timeout extends RefCounted, Disposable, Timer { + /** + * Cancels the timeout. + * @since v0.9.1 + * @legacy Use `clearTimeout()` instead. + * @returns a reference to `timeout` + */ + close(): this; + /** + * If true, the `Timeout` object will keep the Node.js event loop active. + * @since v11.0.0 + */ + hasRef(): boolean; + /** + * When called, requests that the Node.js event loop _not_ exit so long as the + * `Timeout` is active. Calling `timeout.ref()` multiple times will have no effect. + * + * By default, all `Timeout` objects are "ref'ed", making it normally unnecessary + * to call `timeout.ref()` unless `timeout.unref()` had been called previously. + * @since v0.9.1 + * @returns a reference to `timeout` + */ + ref(): this; + /** + * Sets the timer's start time to the current time, and reschedules the timer to + * call its callback at the previously specified duration adjusted to the current + * time. This is useful for refreshing a timer without allocating a new + * JavaScript object. + * + * Using this on a timer that has already called its callback will reactivate the + * timer. + * @since v10.2.0 + * @returns a reference to `timeout` + */ + refresh(): this; + /** + * When called, the active `Timeout` object will not require the Node.js event loop + * to remain active. If there is no other activity keeping the event loop running, + * the process may exit before the `Timeout` object's callback is invoked. Calling + * `timeout.unref()` multiple times will have no effect. + * @since v0.9.1 + * @returns a reference to `timeout` + */ + unref(): this; + /** + * Coerce a `Timeout` to a primitive. The primitive can be used to + * clear the `Timeout`. The primitive can only be used in the + * same thread where the timeout was created. Therefore, to use it + * across `worker_threads` it must first be passed to the correct + * thread. This allows enhanced compatibility with browser + * `setTimeout()` and `setInterval()` implementations. + * @since v14.9.0, v12.19.0 + */ + [Symbol.toPrimitive](): number; + /** + * Cancels the timeout. + * @since v20.5.0, v18.18.0 + * @experimental + */ + [Symbol.dispose](): void; + _onTimeout(...args: any[]): void; + } + } + /** + * Schedules the "immediate" execution of the `callback` after I/O events' + * callbacks. + * + * When multiple calls to `setImmediate()` are made, the `callback` functions are + * queued for execution in the order in which they are created. The entire callback + * queue is processed every event loop iteration. If an immediate timer is queued + * from inside an executing callback, that timer will not be triggered until the + * next event loop iteration. + * + * If `callback` is not a function, a `TypeError` will be thrown. + * + * This method has a custom variant for promises that is available using + * `timersPromises.setImmediate()`. + * @since v0.9.1 + * @param callback The function to call at the end of this turn of + * the Node.js [Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#setimmediate-vs-settimeout) + * @param args Optional arguments to pass when the `callback` is called. + * @returns for use with `clearImmediate()` + */ + function setImmediate( + callback: (...args: TArgs) => void, + ...args: TArgs + ): NodeJS.Immediate; + // Allow a single void-accepting argument to be optional in arguments lists. + // Allows usage such as `new Promise(resolve => setTimeout(resolve, ms))` (#54258) + // eslint-disable-next-line @typescript-eslint/no-invalid-void-type + function setImmediate(callback: (_: void) => void): NodeJS.Immediate; + namespace setImmediate { + import __promisify__ = promises.setImmediate; + export { __promisify__ }; + } + /** + * Schedules repeated execution of `callback` every `delay` milliseconds. + * + * When `delay` is larger than `2147483647` or less than `1`, the `delay` will be + * set to `1`. Non-integer delays are truncated to an integer. + * + * If `callback` is not a function, a `TypeError` will be thrown. + * + * This method has a custom variant for promises that is available using + * `timersPromises.setInterval()`. + * @since v0.0.1 + * @param callback The function to call when the timer elapses. + * @param delay The number of milliseconds to wait before calling the + * `callback`. **Default:** `1`. + * @param args Optional arguments to pass when the `callback` is called. + * @returns for use with `clearInterval()` + */ + function setInterval( + callback: (...args: TArgs) => void, + delay?: number, + ...args: TArgs + ): NodeJS.Timeout; + // Allow a single void-accepting argument to be optional in arguments lists. + // Allows usage such as `new Promise(resolve => setTimeout(resolve, ms))` (#54258) + // eslint-disable-next-line @typescript-eslint/no-invalid-void-type + function setInterval(callback: (_: void) => void, delay?: number): NodeJS.Timeout; + /** + * Schedules execution of a one-time `callback` after `delay` milliseconds. + * + * The `callback` will likely not be invoked in precisely `delay` milliseconds. + * Node.js makes no guarantees about the exact timing of when callbacks will fire, + * nor of their ordering. The callback will be called as close as possible to the + * time specified. + * + * When `delay` is larger than `2147483647` or less than `1` or `NaN`, the `delay` + * will be set to `1`. Non-integer delays are truncated to an integer. + * + * If `callback` is not a function, a `TypeError` will be thrown. + * + * This method has a custom variant for promises that is available using + * `timersPromises.setTimeout()`. + * @since v0.0.1 + * @param callback The function to call when the timer elapses. + * @param delay The number of milliseconds to wait before calling the + * `callback`. **Default:** `1`. + * @param args Optional arguments to pass when the `callback` is called. + * @returns for use with `clearTimeout()` + */ + function setTimeout( + callback: (...args: TArgs) => void, + delay?: number, + ...args: TArgs + ): NodeJS.Timeout; + // Allow a single void-accepting argument to be optional in arguments lists. + // Allows usage such as `new Promise(resolve => setTimeout(resolve, ms))` (#54258) + // eslint-disable-next-line @typescript-eslint/no-invalid-void-type + function setTimeout(callback: (_: void) => void, delay?: number): NodeJS.Timeout; + namespace setTimeout { + import __promisify__ = promises.setTimeout; + export { __promisify__ }; + } + /** + * Cancels an `Immediate` object created by `setImmediate()`. + * @since v0.9.1 + * @param immediate An `Immediate` object as returned by `setImmediate()`. + */ + function clearImmediate(immediate: NodeJS.Immediate | undefined): void; + /** + * Cancels a `Timeout` object created by `setInterval()`. + * @since v0.0.1 + * @param timeout A `Timeout` object as returned by `setInterval()` + * or the primitive of the `Timeout` object as a string or a number. + */ + function clearInterval(timeout: NodeJS.Timeout | string | number | undefined): void; + /** + * Cancels a `Timeout` object created by `setTimeout()`. + * @since v0.0.1 + * @param timeout A `Timeout` object as returned by `setTimeout()` + * or the primitive of the `Timeout` object as a string or a number. + */ + function clearTimeout(timeout: NodeJS.Timeout | string | number | undefined): void; + /** + * The `queueMicrotask()` method queues a microtask to invoke `callback`. If + * `callback` throws an exception, the `process` object `'uncaughtException'` + * event will be emitted. + * + * The microtask queue is managed by V8 and may be used in a similar manner to + * the `process.nextTick()` queue, which is managed by Node.js. The + * `process.nextTick()` queue is always processed before the microtask queue + * within each turn of the Node.js event loop. + * @since v11.0.0 + * @param callback Function to be queued. + */ + function queueMicrotask(callback: () => void): void; + } + import clearImmediate = globalThis.clearImmediate; + import clearInterval = globalThis.clearInterval; + import clearTimeout = globalThis.clearTimeout; + import setImmediate = globalThis.setImmediate; + import setInterval = globalThis.setInterval; + import setTimeout = globalThis.setTimeout; + export { clearImmediate, clearInterval, clearTimeout, promises, setImmediate, setInterval, setTimeout }; +} +declare module "node:timers" { + export * from "timers"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/timers/promises.d.ts b/backend/node_modules/httpx/node_modules/@types/node/timers/promises.d.ts new file mode 100644 index 0000000..29d7ff0 --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/timers/promises.d.ts @@ -0,0 +1,108 @@ +/** + * The `timers/promises` API provides an alternative set of timer functions + * that return `Promise` objects. The API is accessible via + * `require('node:timers/promises')`. + * + * ```js + * import { + * setTimeout, + * setImmediate, + * setInterval, + * } from 'node:timers/promises'; + * ``` + * @since v15.0.0 + * @see [source](https://github.com/nodejs/node/blob/v20.x/lib/timers/promises.js) + */ +declare module "timers/promises" { + import { TimerOptions } from "node:timers"; + /** + * ```js + * import { + * setTimeout, + * } from 'node:timers/promises'; + * + * const res = await setTimeout(100, 'result'); + * + * console.log(res); // Prints 'result' + * ``` + * @since v15.0.0 + * @param delay The number of milliseconds to wait before fulfilling the + * promise. **Default:** `1`. + * @param value A value with which the promise is fulfilled. + */ + function setTimeout(delay?: number, value?: T, options?: TimerOptions): Promise; + /** + * ```js + * import { + * setImmediate, + * } from 'node:timers/promises'; + * + * const res = await setImmediate('result'); + * + * console.log(res); // Prints 'result' + * ``` + * @since v15.0.0 + * @param value A value with which the promise is fulfilled. + */ + function setImmediate(value?: T, options?: TimerOptions): Promise; + /** + * Returns an async iterator that generates values in an interval of `delay` ms. + * If `ref` is `true`, you need to call `next()` of async iterator explicitly + * or implicitly to keep the event loop alive. + * + * ```js + * import { + * setInterval, + * } from 'node:timers/promises'; + * + * const interval = 100; + * for await (const startTime of setInterval(interval, Date.now())) { + * const now = Date.now(); + * console.log(now); + * if ((now - startTime) > 1000) + * break; + * } + * console.log(Date.now()); + * ``` + * @since v15.9.0 + * @param delay The number of milliseconds to wait between iterations. + * **Default:** `1`. + * @param value A value with which the iterator returns. + */ + function setInterval(delay?: number, value?: T, options?: TimerOptions): NodeJS.AsyncIterator; + interface Scheduler { + /** + * An experimental API defined by the [Scheduling APIs](https://github.com/WICG/scheduling-apis) draft specification + * being developed as a standard Web Platform API. + * + * Calling `timersPromises.scheduler.wait(delay, options)` is roughly equivalent + * to calling `timersPromises.setTimeout(delay, undefined, options)` except that + * the `ref` option is not supported. + * + * ```js + * import { scheduler } from 'node:timers/promises'; + * + * await scheduler.wait(1000); // Wait one second before continuing + * ``` + * @since v17.3.0, v16.14.0 + * @experimental + * @param delay The number of milliseconds to wait before resolving the + * promise. + */ + wait(delay: number, options?: { signal?: AbortSignal }): Promise; + /** + * An experimental API defined by the [Scheduling APIs](https://github.com/WICG/scheduling-apis) draft specification + * being developed as a standard Web Platform API. + * + * Calling `timersPromises.scheduler.yield()` is equivalent to calling + * `timersPromises.setImmediate()` with no arguments. + * @since v17.3.0, v16.14.0 + * @experimental + */ + yield(): Promise; + } + const scheduler: Scheduler; +} +declare module "node:timers/promises" { + export * from "timers/promises"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/tls.d.ts b/backend/node_modules/httpx/node_modules/@types/node/tls.d.ts new file mode 100644 index 0000000..0b819a1 --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/tls.d.ts @@ -0,0 +1,1259 @@ +/** + * The `node:tls` module provides an implementation of the Transport Layer Security + * (TLS) and Secure Socket Layer (SSL) protocols that is built on top of OpenSSL. + * The module can be accessed using: + * + * ```js + * import tls from 'node:tls'; + * ``` + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/tls.js) + */ +declare module "tls" { + import { NonSharedBuffer } from "node:buffer"; + import { X509Certificate } from "node:crypto"; + import * as net from "node:net"; + import * as stream from "stream"; + const CLIENT_RENEG_LIMIT: number; + const CLIENT_RENEG_WINDOW: number; + interface Certificate { + /** + * Country code. + */ + C: string; + /** + * Street. + */ + ST: string; + /** + * Locality. + */ + L: string; + /** + * Organization. + */ + O: string; + /** + * Organizational unit. + */ + OU: string; + /** + * Common name. + */ + CN: string; + } + interface PeerCertificate { + /** + * `true` if a Certificate Authority (CA), `false` otherwise. + * @since v18.13.0 + */ + ca: boolean; + /** + * The DER encoded X.509 certificate data. + */ + raw: NonSharedBuffer; + /** + * The certificate subject. + */ + subject: Certificate; + /** + * The certificate issuer, described in the same terms as the `subject`. + */ + issuer: Certificate; + /** + * The date-time the certificate is valid from. + */ + valid_from: string; + /** + * The date-time the certificate is valid to. + */ + valid_to: string; + /** + * The certificate serial number, as a hex string. + */ + serialNumber: string; + /** + * The SHA-1 digest of the DER encoded certificate. + * It is returned as a `:` separated hexadecimal string. + */ + fingerprint: string; + /** + * The SHA-256 digest of the DER encoded certificate. + * It is returned as a `:` separated hexadecimal string. + */ + fingerprint256: string; + /** + * The SHA-512 digest of the DER encoded certificate. + * It is returned as a `:` separated hexadecimal string. + */ + fingerprint512: string; + /** + * The extended key usage, a set of OIDs. + */ + ext_key_usage?: string[]; + /** + * A string containing concatenated names for the subject, + * an alternative to the `subject` names. + */ + subjectaltname?: string; + /** + * An array describing the AuthorityInfoAccess, used with OCSP. + */ + infoAccess?: NodeJS.Dict; + /** + * For RSA keys: The RSA bit size. + * + * For EC keys: The key size in bits. + */ + bits?: number; + /** + * The RSA exponent, as a string in hexadecimal number notation. + */ + exponent?: string; + /** + * The RSA modulus, as a hexadecimal string. + */ + modulus?: string; + /** + * The public key. + */ + pubkey?: NonSharedBuffer; + /** + * The ASN.1 name of the OID of the elliptic curve. + * Well-known curves are identified by an OID. + * While it is unusual, it is possible that the curve + * is identified by its mathematical properties, + * in which case it will not have an OID. + */ + asn1Curve?: string; + /** + * The NIST name for the elliptic curve, if it has one + * (not all well-known curves have been assigned names by NIST). + */ + nistCurve?: string; + } + interface DetailedPeerCertificate extends PeerCertificate { + /** + * The issuer certificate object. + * For self-signed certificates, this may be a circular reference. + */ + issuerCertificate: DetailedPeerCertificate; + } + interface CipherNameAndProtocol { + /** + * The cipher name. + */ + name: string; + /** + * SSL/TLS protocol version. + */ + version: string; + /** + * IETF name for the cipher suite. + */ + standardName: string; + } + interface EphemeralKeyInfo { + /** + * The supported types are 'DH' and 'ECDH'. + */ + type: string; + /** + * The name property is available only when type is 'ECDH'. + */ + name?: string | undefined; + /** + * The size of parameter of an ephemeral key exchange. + */ + size: number; + } + interface KeyObject { + /** + * Private keys in PEM format. + */ + pem: string | Buffer; + /** + * Optional passphrase. + */ + passphrase?: string | undefined; + } + interface PxfObject { + /** + * PFX or PKCS12 encoded private key and certificate chain. + */ + buf: string | Buffer; + /** + * Optional passphrase. + */ + passphrase?: string | undefined; + } + interface TLSSocketOptions extends SecureContextOptions, CommonConnectionOptions { + /** + * If true the TLS socket will be instantiated in server-mode. + * Defaults to false. + */ + isServer?: boolean | undefined; + /** + * An optional net.Server instance. + */ + server?: net.Server | undefined; + /** + * An optional Buffer instance containing a TLS session. + */ + session?: Buffer | undefined; + /** + * If true, specifies that the OCSP status request extension will be + * added to the client hello and an 'OCSPResponse' event will be + * emitted on the socket before establishing a secure communication + */ + requestOCSP?: boolean | undefined; + } + /** + * Performs transparent encryption of written data and all required TLS + * negotiation. + * + * Instances of `tls.TLSSocket` implement the duplex `Stream` interface. + * + * Methods that return TLS connection metadata (e.g.{@link TLSSocket.getPeerCertificate}) will only return data while the + * connection is open. + * @since v0.11.4 + */ + class TLSSocket extends net.Socket { + /** + * Construct a new tls.TLSSocket object from an existing TCP socket. + */ + constructor(socket: net.Socket | stream.Duplex, options?: TLSSocketOptions); + /** + * This property is `true` if the peer certificate was signed by one of the CAs + * specified when creating the `tls.TLSSocket` instance, otherwise `false`. + * @since v0.11.4 + */ + authorized: boolean; + /** + * Returns the reason why the peer's certificate was not been verified. This + * property is set only when `tlsSocket.authorized === false`. + * @since v0.11.4 + */ + authorizationError: Error; + /** + * Always returns `true`. This may be used to distinguish TLS sockets from regular`net.Socket` instances. + * @since v0.11.4 + */ + encrypted: true; + /** + * String containing the selected ALPN protocol. + * Before a handshake has completed, this value is always null. + * When a handshake is completed but not ALPN protocol was selected, tlsSocket.alpnProtocol equals false. + */ + alpnProtocol: string | false | null; + /** + * String containing the server name requested via SNI (Server Name Indication) TLS extension. + */ + servername: string | false | null; + /** + * Returns an object representing the local certificate. The returned object has + * some properties corresponding to the fields of the certificate. + * + * See {@link TLSSocket.getPeerCertificate} for an example of the certificate + * structure. + * + * If there is no local certificate, an empty object will be returned. If the + * socket has been destroyed, `null` will be returned. + * @since v11.2.0 + */ + getCertificate(): PeerCertificate | object | null; + /** + * Returns an object containing information on the negotiated cipher suite. + * + * For example, a TLSv1.2 protocol with AES256-SHA cipher: + * + * ```json + * { + * "name": "AES256-SHA", + * "standardName": "TLS_RSA_WITH_AES_256_CBC_SHA", + * "version": "SSLv3" + * } + * ``` + * + * See [SSL\_CIPHER\_get\_name](https://www.openssl.org/docs/man1.1.1/man3/SSL_CIPHER_get_name.html) for more information. + * @since v0.11.4 + */ + getCipher(): CipherNameAndProtocol; + /** + * Returns an object representing the type, name, and size of parameter of + * an ephemeral key exchange in `perfect forward secrecy` on a client + * connection. It returns an empty object when the key exchange is not + * ephemeral. As this is only supported on a client socket; `null` is returned + * if called on a server socket. The supported types are `'DH'` and `'ECDH'`. The `name` property is available only when type is `'ECDH'`. + * + * For example: `{ type: 'ECDH', name: 'prime256v1', size: 256 }`. + * @since v5.0.0 + */ + getEphemeralKeyInfo(): EphemeralKeyInfo | object | null; + /** + * As the `Finished` messages are message digests of the complete handshake + * (with a total of 192 bits for TLS 1.0 and more for SSL 3.0), they can + * be used for external authentication procedures when the authentication + * provided by SSL/TLS is not desired or is not enough. + * + * Corresponds to the `SSL_get_finished` routine in OpenSSL and may be used + * to implement the `tls-unique` channel binding from [RFC 5929](https://tools.ietf.org/html/rfc5929). + * @since v9.9.0 + * @return The latest `Finished` message that has been sent to the socket as part of a SSL/TLS handshake, or `undefined` if no `Finished` message has been sent yet. + */ + getFinished(): NonSharedBuffer | undefined; + /** + * Returns an object representing the peer's certificate. If the peer does not + * provide a certificate, an empty object will be returned. If the socket has been + * destroyed, `null` will be returned. + * + * If the full certificate chain was requested, each certificate will include an`issuerCertificate` property containing an object representing its issuer's + * certificate. + * @since v0.11.4 + * @param detailed Include the full certificate chain if `true`, otherwise include just the peer's certificate. + * @return A certificate object. + */ + getPeerCertificate(detailed: true): DetailedPeerCertificate; + getPeerCertificate(detailed?: false): PeerCertificate; + getPeerCertificate(detailed?: boolean): PeerCertificate | DetailedPeerCertificate; + /** + * As the `Finished` messages are message digests of the complete handshake + * (with a total of 192 bits for TLS 1.0 and more for SSL 3.0), they can + * be used for external authentication procedures when the authentication + * provided by SSL/TLS is not desired or is not enough. + * + * Corresponds to the `SSL_get_peer_finished` routine in OpenSSL and may be used + * to implement the `tls-unique` channel binding from [RFC 5929](https://tools.ietf.org/html/rfc5929). + * @since v9.9.0 + * @return The latest `Finished` message that is expected or has actually been received from the socket as part of a SSL/TLS handshake, or `undefined` if there is no `Finished` message so + * far. + */ + getPeerFinished(): NonSharedBuffer | undefined; + /** + * Returns a string containing the negotiated SSL/TLS protocol version of the + * current connection. The value `'unknown'` will be returned for connected + * sockets that have not completed the handshaking process. The value `null` will + * be returned for server sockets or disconnected client sockets. + * + * Protocol versions are: + * + * * `'SSLv3'` + * * `'TLSv1'` + * * `'TLSv1.1'` + * * `'TLSv1.2'` + * * `'TLSv1.3'` + * + * See the OpenSSL [`SSL_get_version`](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html) documentation for more information. + * @since v5.7.0 + */ + getProtocol(): string | null; + /** + * Returns the TLS session data or `undefined` if no session was + * negotiated. On the client, the data can be provided to the `session` option of {@link connect} to resume the connection. On the server, it may be useful + * for debugging. + * + * See `Session Resumption` for more information. + * + * Note: `getSession()` works only for TLSv1.2 and below. For TLSv1.3, applications + * must use the `'session'` event (it also works for TLSv1.2 and below). + * @since v0.11.4 + */ + getSession(): NonSharedBuffer | undefined; + /** + * See [SSL\_get\_shared\_sigalgs](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_shared_sigalgs.html) for more information. + * @since v12.11.0 + * @return List of signature algorithms shared between the server and the client in the order of decreasing preference. + */ + getSharedSigalgs(): string[]; + /** + * For a client, returns the TLS session ticket if one is available, or`undefined`. For a server, always returns `undefined`. + * + * It may be useful for debugging. + * + * See `Session Resumption` for more information. + * @since v0.11.4 + */ + getTLSTicket(): NonSharedBuffer | undefined; + /** + * See `Session Resumption` for more information. + * @since v0.5.6 + * @return `true` if the session was reused, `false` otherwise. + */ + isSessionReused(): boolean; + /** + * The `tlsSocket.renegotiate()` method initiates a TLS renegotiation process. + * Upon completion, the `callback` function will be passed a single argument + * that is either an `Error` (if the request failed) or `null`. + * + * This method can be used to request a peer's certificate after the secure + * connection has been established. + * + * When running as the server, the socket will be destroyed with an error after `handshakeTimeout` timeout. + * + * For TLSv1.3, renegotiation cannot be initiated, it is not supported by the + * protocol. + * @since v0.11.8 + * @param callback If `renegotiate()` returned `true`, callback is attached once to the `'secure'` event. If `renegotiate()` returned `false`, `callback` will be called in the next tick with + * an error, unless the `tlsSocket` has been destroyed, in which case `callback` will not be called at all. + * @return `true` if renegotiation was initiated, `false` otherwise. + */ + renegotiate( + options: { + rejectUnauthorized?: boolean | undefined; + requestCert?: boolean | undefined; + }, + callback: (err: Error | null) => void, + ): undefined | boolean; + /** + * The `tlsSocket.setKeyCert()` method sets the private key and certificate to use for the socket. + * This is mainly useful if you wish to select a server certificate from a TLS server's `ALPNCallback`. + * @since v22.5.0, v20.17.0 + * @param context An object containing at least `key` and `cert` properties from the {@link createSecureContext()} `options`, + * or a TLS context object created with {@link createSecureContext()} itself. + */ + setKeyCert(context: SecureContextOptions | SecureContext): void; + /** + * The `tlsSocket.setMaxSendFragment()` method sets the maximum TLS fragment size. + * Returns `true` if setting the limit succeeded; `false` otherwise. + * + * Smaller fragment sizes decrease the buffering latency on the client: larger + * fragments are buffered by the TLS layer until the entire fragment is received + * and its integrity is verified; large fragments can span multiple roundtrips + * and their processing can be delayed due to packet loss or reordering. However, + * smaller fragments add extra TLS framing bytes and CPU overhead, which may + * decrease overall server throughput. + * @since v0.11.11 + * @param [size=16384] The maximum TLS fragment size. The maximum value is `16384`. + */ + setMaxSendFragment(size: number): boolean; + /** + * Disables TLS renegotiation for this `TLSSocket` instance. Once called, attempts + * to renegotiate will trigger an `'error'` event on the `TLSSocket`. + * @since v8.4.0 + */ + disableRenegotiation(): void; + /** + * When enabled, TLS packet trace information is written to `stderr`. This can be + * used to debug TLS connection problems. + * + * The format of the output is identical to the output of`openssl s_client -trace` or `openssl s_server -trace`. While it is produced by + * OpenSSL's `SSL_trace()` function, the format is undocumented, can change + * without notice, and should not be relied on. + * @since v12.2.0 + */ + enableTrace(): void; + /** + * Returns the peer certificate as an `X509Certificate` object. + * + * If there is no peer certificate, or the socket has been destroyed,`undefined` will be returned. + * @since v15.9.0 + */ + getPeerX509Certificate(): X509Certificate | undefined; + /** + * Returns the local certificate as an `X509Certificate` object. + * + * If there is no local certificate, or the socket has been destroyed,`undefined` will be returned. + * @since v15.9.0 + */ + getX509Certificate(): X509Certificate | undefined; + /** + * Keying material is used for validations to prevent different kind of attacks in + * network protocols, for example in the specifications of IEEE 802.1X. + * + * Example + * + * ```js + * const keyingMaterial = tlsSocket.exportKeyingMaterial( + * 128, + * 'client finished'); + * + * /* + * Example return value of keyingMaterial: + * + * + * ``` + * + * See the OpenSSL [`SSL_export_keying_material`](https://www.openssl.org/docs/man1.1.1/man3/SSL_export_keying_material.html) documentation for more + * information. + * @since v13.10.0, v12.17.0 + * @param length number of bytes to retrieve from keying material + * @param label an application specific label, typically this will be a value from the [IANA Exporter Label + * Registry](https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#exporter-labels). + * @param context Optionally provide a context. + * @return requested bytes of the keying material + */ + exportKeyingMaterial(length: number, label: string, context: Buffer): NonSharedBuffer; + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: "OCSPResponse", listener: (response: NonSharedBuffer) => void): this; + addListener(event: "secureConnect", listener: () => void): this; + addListener(event: "session", listener: (session: NonSharedBuffer) => void): this; + addListener(event: "keylog", listener: (line: NonSharedBuffer) => void): this; + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: "OCSPResponse", response: NonSharedBuffer): boolean; + emit(event: "secureConnect"): boolean; + emit(event: "session", session: NonSharedBuffer): boolean; + emit(event: "keylog", line: NonSharedBuffer): boolean; + on(event: string, listener: (...args: any[]) => void): this; + on(event: "OCSPResponse", listener: (response: NonSharedBuffer) => void): this; + on(event: "secureConnect", listener: () => void): this; + on(event: "session", listener: (session: NonSharedBuffer) => void): this; + on(event: "keylog", listener: (line: NonSharedBuffer) => void): this; + once(event: string, listener: (...args: any[]) => void): this; + once(event: "OCSPResponse", listener: (response: NonSharedBuffer) => void): this; + once(event: "secureConnect", listener: () => void): this; + once(event: "session", listener: (session: NonSharedBuffer) => void): this; + once(event: "keylog", listener: (line: NonSharedBuffer) => void): this; + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: "OCSPResponse", listener: (response: NonSharedBuffer) => void): this; + prependListener(event: "secureConnect", listener: () => void): this; + prependListener(event: "session", listener: (session: NonSharedBuffer) => void): this; + prependListener(event: "keylog", listener: (line: NonSharedBuffer) => void): this; + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: "OCSPResponse", listener: (response: NonSharedBuffer) => void): this; + prependOnceListener(event: "secureConnect", listener: () => void): this; + prependOnceListener(event: "session", listener: (session: NonSharedBuffer) => void): this; + prependOnceListener(event: "keylog", listener: (line: NonSharedBuffer) => void): this; + } + interface CommonConnectionOptions { + /** + * An optional TLS context object from tls.createSecureContext() + */ + secureContext?: SecureContext | undefined; + /** + * When enabled, TLS packet trace information is written to `stderr`. This can be + * used to debug TLS connection problems. + * @default false + */ + enableTrace?: boolean | undefined; + /** + * If true the server will request a certificate from clients that + * connect and attempt to verify that certificate. Defaults to + * false. + */ + requestCert?: boolean | undefined; + /** + * An array of strings or a Buffer naming possible ALPN protocols. + * (Protocols should be ordered by their priority.) + */ + ALPNProtocols?: readonly string[] | NodeJS.ArrayBufferView | undefined; + /** + * SNICallback(servername, cb) A function that will be + * called if the client supports SNI TLS extension. Two arguments + * will be passed when called: servername and cb. SNICallback should + * invoke cb(null, ctx), where ctx is a SecureContext instance. + * (tls.createSecureContext(...) can be used to get a proper + * SecureContext.) If SNICallback wasn't provided the default callback + * with high-level API will be used (see below). + */ + SNICallback?: ((servername: string, cb: (err: Error | null, ctx?: SecureContext) => void) => void) | undefined; + /** + * If true the server will reject any connection which is not + * authorized with the list of supplied CAs. This option only has an + * effect if requestCert is true. + * @default true + */ + rejectUnauthorized?: boolean | undefined; + } + interface TlsOptions extends SecureContextOptions, CommonConnectionOptions, net.ServerOpts { + /** + * Abort the connection if the SSL/TLS handshake does not finish in the + * specified number of milliseconds. A 'tlsClientError' is emitted on + * the tls.Server object whenever a handshake times out. Default: + * 120000 (120 seconds). + */ + handshakeTimeout?: number | undefined; + /** + * The number of seconds after which a TLS session created by the + * server will no longer be resumable. See Session Resumption for more + * information. Default: 300. + */ + sessionTimeout?: number | undefined; + /** + * 48-bytes of cryptographically strong pseudo-random data. + */ + ticketKeys?: Buffer | undefined; + /** + * @param socket + * @param identity identity parameter sent from the client. + * @return pre-shared key that must either be + * a buffer or `null` to stop the negotiation process. Returned PSK must be + * compatible with the selected cipher's digest. + * + * When negotiating TLS-PSK (pre-shared keys), this function is called + * with the identity provided by the client. + * If the return value is `null` the negotiation process will stop and an + * "unknown_psk_identity" alert message will be sent to the other party. + * If the server wishes to hide the fact that the PSK identity was not known, + * the callback must provide some random data as `psk` to make the connection + * fail with "decrypt_error" before negotiation is finished. + * PSK ciphers are disabled by default, and using TLS-PSK thus + * requires explicitly specifying a cipher suite with the `ciphers` option. + * More information can be found in the RFC 4279. + */ + pskCallback?: ((socket: TLSSocket, identity: string) => NodeJS.ArrayBufferView | null) | undefined; + /** + * hint to send to a client to help + * with selecting the identity during TLS-PSK negotiation. Will be ignored + * in TLS 1.3. Upon failing to set pskIdentityHint `tlsClientError` will be + * emitted with `ERR_TLS_PSK_SET_IDENTIY_HINT_FAILED` code. + */ + pskIdentityHint?: string | undefined; + } + interface PSKCallbackNegotation { + psk: NodeJS.ArrayBufferView; + identity: string; + } + interface ConnectionOptions extends SecureContextOptions, CommonConnectionOptions { + host?: string | undefined; + port?: number | undefined; + path?: string | undefined; // Creates unix socket connection to path. If this option is specified, `host` and `port` are ignored. + socket?: stream.Duplex | undefined; // Establish secure connection on a given socket rather than creating a new socket + checkServerIdentity?: typeof checkServerIdentity | undefined; + servername?: string | undefined; // SNI TLS Extension + session?: Buffer | undefined; + minDHSize?: number | undefined; + lookup?: net.LookupFunction | undefined; + timeout?: number | undefined; + /** + * When negotiating TLS-PSK (pre-shared keys), this function is called + * with optional identity `hint` provided by the server or `null` + * in case of TLS 1.3 where `hint` was removed. + * It will be necessary to provide a custom `tls.checkServerIdentity()` + * for the connection as the default one will try to check hostname/IP + * of the server against the certificate but that's not applicable for PSK + * because there won't be a certificate present. + * More information can be found in the RFC 4279. + * + * @param hint message sent from the server to help client + * decide which identity to use during negotiation. + * Always `null` if TLS 1.3 is used. + * @returns Return `null` to stop the negotiation process. `psk` must be + * compatible with the selected cipher's digest. + * `identity` must use UTF-8 encoding. + */ + pskCallback?: ((hint: string | null) => PSKCallbackNegotation | null) | undefined; + } + /** + * Accepts encrypted connections using TLS or SSL. + * @since v0.3.2 + */ + class Server extends net.Server { + constructor(secureConnectionListener?: (socket: TLSSocket) => void); + constructor(options: TlsOptions, secureConnectionListener?: (socket: TLSSocket) => void); + /** + * The `server.addContext()` method adds a secure context that will be used if + * the client request's SNI name matches the supplied `hostname` (or wildcard). + * + * When there are multiple matching contexts, the most recently added one is + * used. + * @since v0.5.3 + * @param hostname A SNI host name or wildcard (e.g. `'*'`) + * @param context An object containing any of the possible properties from the {@link createSecureContext} `options` arguments (e.g. `key`, `cert`, `ca`, etc), or a TLS context object created + * with {@link createSecureContext} itself. + */ + addContext(hostname: string, context: SecureContextOptions | SecureContext): void; + /** + * Returns the session ticket keys. + * + * See `Session Resumption` for more information. + * @since v3.0.0 + * @return A 48-byte buffer containing the session ticket keys. + */ + getTicketKeys(): NonSharedBuffer; + /** + * The `server.setSecureContext()` method replaces the secure context of an + * existing server. Existing connections to the server are not interrupted. + * @since v11.0.0 + * @param options An object containing any of the possible properties from the {@link createSecureContext} `options` arguments (e.g. `key`, `cert`, `ca`, etc). + */ + setSecureContext(options: SecureContextOptions): void; + /** + * Sets the session ticket keys. + * + * Changes to the ticket keys are effective only for future server connections. + * Existing or currently pending server connections will use the previous keys. + * + * See `Session Resumption` for more information. + * @since v3.0.0 + * @param keys A 48-byte buffer containing the session ticket keys. + */ + setTicketKeys(keys: Buffer): void; + /** + * events.EventEmitter + * 1. tlsClientError + * 2. newSession + * 3. OCSPRequest + * 4. resumeSession + * 5. secureConnection + * 6. keylog + */ + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this; + addListener( + event: "newSession", + listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, + ): this; + addListener( + event: "OCSPRequest", + listener: ( + certificate: NonSharedBuffer, + issuer: NonSharedBuffer, + callback: (err: Error | null, resp: Buffer | null) => void, + ) => void, + ): this; + addListener( + event: "resumeSession", + listener: ( + sessionId: NonSharedBuffer, + callback: (err: Error | null, sessionData: Buffer | null) => void, + ) => void, + ): this; + addListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this; + addListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: TLSSocket) => void): this; + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: "tlsClientError", err: Error, tlsSocket: TLSSocket): boolean; + emit( + event: "newSession", + sessionId: NonSharedBuffer, + sessionData: NonSharedBuffer, + callback: () => void, + ): boolean; + emit( + event: "OCSPRequest", + certificate: NonSharedBuffer, + issuer: NonSharedBuffer, + callback: (err: Error | null, resp: Buffer | null) => void, + ): boolean; + emit( + event: "resumeSession", + sessionId: NonSharedBuffer, + callback: (err: Error | null, sessionData: Buffer | null) => void, + ): boolean; + emit(event: "secureConnection", tlsSocket: TLSSocket): boolean; + emit(event: "keylog", line: NonSharedBuffer, tlsSocket: TLSSocket): boolean; + on(event: string, listener: (...args: any[]) => void): this; + on(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this; + on( + event: "newSession", + listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, + ): this; + on( + event: "OCSPRequest", + listener: ( + certificate: NonSharedBuffer, + issuer: NonSharedBuffer, + callback: (err: Error | null, resp: Buffer | null) => void, + ) => void, + ): this; + on( + event: "resumeSession", + listener: ( + sessionId: NonSharedBuffer, + callback: (err: Error | null, sessionData: Buffer | null) => void, + ) => void, + ): this; + on(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this; + on(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: TLSSocket) => void): this; + once(event: string, listener: (...args: any[]) => void): this; + once(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this; + once( + event: "newSession", + listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, + ): this; + once( + event: "OCSPRequest", + listener: ( + certificate: NonSharedBuffer, + issuer: NonSharedBuffer, + callback: (err: Error | null, resp: Buffer | null) => void, + ) => void, + ): this; + once( + event: "resumeSession", + listener: ( + sessionId: NonSharedBuffer, + callback: (err: Error | null, sessionData: Buffer | null) => void, + ) => void, + ): this; + once(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this; + once(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: TLSSocket) => void): this; + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this; + prependListener( + event: "newSession", + listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, + ): this; + prependListener( + event: "OCSPRequest", + listener: ( + certificate: NonSharedBuffer, + issuer: NonSharedBuffer, + callback: (err: Error | null, resp: Buffer | null) => void, + ) => void, + ): this; + prependListener( + event: "resumeSession", + listener: ( + sessionId: NonSharedBuffer, + callback: (err: Error | null, sessionData: Buffer | null) => void, + ) => void, + ): this; + prependListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this; + prependListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: TLSSocket) => void): this; + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this; + prependOnceListener( + event: "newSession", + listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, + ): this; + prependOnceListener( + event: "OCSPRequest", + listener: ( + certificate: NonSharedBuffer, + issuer: NonSharedBuffer, + callback: (err: Error | null, resp: Buffer | null) => void, + ) => void, + ): this; + prependOnceListener( + event: "resumeSession", + listener: ( + sessionId: NonSharedBuffer, + callback: (err: Error | null, sessionData: Buffer | null) => void, + ) => void, + ): this; + prependOnceListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this; + prependOnceListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: TLSSocket) => void): this; + } + /** + * @deprecated since v0.11.3 Use `tls.TLSSocket` instead. + */ + interface SecurePair { + encrypted: TLSSocket; + cleartext: TLSSocket; + } + type SecureVersion = "TLSv1.3" | "TLSv1.2" | "TLSv1.1" | "TLSv1"; + interface SecureContextOptions { + /** + * If set, this will be called when a client opens a connection using the ALPN extension. + * One argument will be passed to the callback: an object containing `servername` and `protocols` fields, + * respectively containing the server name from the SNI extension (if any) and an array of + * ALPN protocol name strings. The callback must return either one of the strings listed in `protocols`, + * which will be returned to the client as the selected ALPN protocol, or `undefined`, + * to reject the connection with a fatal alert. If a string is returned that does not match one of + * the client's ALPN protocols, an error will be thrown. + * This option cannot be used with the `ALPNProtocols` option, and setting both options will throw an error. + */ + ALPNCallback?: ((arg: { servername: string; protocols: string[] }) => string | undefined) | undefined; + /** + * Treat intermediate (non-self-signed) + * certificates in the trust CA certificate list as trusted. + * @since v22.9.0, v20.18.0 + */ + allowPartialTrustChain?: boolean | undefined; + /** + * Optionally override the trusted CA certificates. Default is to trust + * the well-known CAs curated by Mozilla. Mozilla's CAs are completely + * replaced when CAs are explicitly specified using this option. + */ + ca?: string | Buffer | Array | undefined; + /** + * Cert chains in PEM format. One cert chain should be provided per + * private key. Each cert chain should consist of the PEM formatted + * certificate for a provided private key, followed by the PEM + * formatted intermediate certificates (if any), in order, and not + * including the root CA (the root CA must be pre-known to the peer, + * see ca). When providing multiple cert chains, they do not have to + * be in the same order as their private keys in key. If the + * intermediate certificates are not provided, the peer will not be + * able to validate the certificate, and the handshake will fail. + */ + cert?: string | Buffer | Array | undefined; + /** + * Colon-separated list of supported signature algorithms. The list + * can contain digest algorithms (SHA256, MD5 etc.), public key + * algorithms (RSA-PSS, ECDSA etc.), combination of both (e.g + * 'RSA+SHA384') or TLS v1.3 scheme names (e.g. rsa_pss_pss_sha512). + */ + sigalgs?: string | undefined; + /** + * Cipher suite specification, replacing the default. For more + * information, see modifying the default cipher suite. Permitted + * ciphers can be obtained via tls.getCiphers(). Cipher names must be + * uppercased in order for OpenSSL to accept them. + */ + ciphers?: string | undefined; + /** + * Name of an OpenSSL engine which can provide the client certificate. + */ + clientCertEngine?: string | undefined; + /** + * PEM formatted CRLs (Certificate Revocation Lists). + */ + crl?: string | Buffer | Array | undefined; + /** + * `'auto'` or custom Diffie-Hellman parameters, required for non-ECDHE perfect forward secrecy. + * If omitted or invalid, the parameters are silently discarded and DHE ciphers will not be available. + * ECDHE-based perfect forward secrecy will still be available. + */ + dhparam?: string | Buffer | undefined; + /** + * A string describing a named curve or a colon separated list of curve + * NIDs or names, for example P-521:P-384:P-256, to use for ECDH key + * agreement. Set to auto to select the curve automatically. Use + * crypto.getCurves() to obtain a list of available curve names. On + * recent releases, openssl ecparam -list_curves will also display the + * name and description of each available elliptic curve. Default: + * tls.DEFAULT_ECDH_CURVE. + */ + ecdhCurve?: string | undefined; + /** + * Attempt to use the server's cipher suite preferences instead of the + * client's. When true, causes SSL_OP_CIPHER_SERVER_PREFERENCE to be + * set in secureOptions + */ + honorCipherOrder?: boolean | undefined; + /** + * Private keys in PEM format. PEM allows the option of private keys + * being encrypted. Encrypted keys will be decrypted with + * options.passphrase. Multiple keys using different algorithms can be + * provided either as an array of unencrypted key strings or buffers, + * or an array of objects in the form {pem: [, + * passphrase: ]}. The object form can only occur in an array. + * object.passphrase is optional. Encrypted keys will be decrypted with + * object.passphrase if provided, or options.passphrase if it is not. + */ + key?: string | Buffer | Array | undefined; + /** + * Name of an OpenSSL engine to get private key from. Should be used + * together with privateKeyIdentifier. + */ + privateKeyEngine?: string | undefined; + /** + * Identifier of a private key managed by an OpenSSL engine. Should be + * used together with privateKeyEngine. Should not be set together with + * key, because both options define a private key in different ways. + */ + privateKeyIdentifier?: string | undefined; + /** + * Optionally set the maximum TLS version to allow. One + * of `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. Cannot be specified along with the + * `secureProtocol` option, use one or the other. + * **Default:** `'TLSv1.3'`, unless changed using CLI options. Using + * `--tls-max-v1.2` sets the default to `'TLSv1.2'`. Using `--tls-max-v1.3` sets the default to + * `'TLSv1.3'`. If multiple of the options are provided, the highest maximum is used. + */ + maxVersion?: SecureVersion | undefined; + /** + * Optionally set the minimum TLS version to allow. One + * of `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. Cannot be specified along with the + * `secureProtocol` option, use one or the other. It is not recommended to use + * less than TLSv1.2, but it may be required for interoperability. + * **Default:** `'TLSv1.2'`, unless changed using CLI options. Using + * `--tls-v1.0` sets the default to `'TLSv1'`. Using `--tls-v1.1` sets the default to + * `'TLSv1.1'`. Using `--tls-min-v1.3` sets the default to + * 'TLSv1.3'. If multiple of the options are provided, the lowest minimum is used. + */ + minVersion?: SecureVersion | undefined; + /** + * Shared passphrase used for a single private key and/or a PFX. + */ + passphrase?: string | undefined; + /** + * PFX or PKCS12 encoded private key and certificate chain. pfx is an + * alternative to providing key and cert individually. PFX is usually + * encrypted, if it is, passphrase will be used to decrypt it. Multiple + * PFX can be provided either as an array of unencrypted PFX buffers, + * or an array of objects in the form {buf: [, + * passphrase: ]}. The object form can only occur in an array. + * object.passphrase is optional. Encrypted PFX will be decrypted with + * object.passphrase if provided, or options.passphrase if it is not. + */ + pfx?: string | Buffer | Array | undefined; + /** + * Optionally affect the OpenSSL protocol behavior, which is not + * usually necessary. This should be used carefully if at all! Value is + * a numeric bitmask of the SSL_OP_* options from OpenSSL Options + */ + secureOptions?: number | undefined; // Value is a numeric bitmask of the `SSL_OP_*` options + /** + * Legacy mechanism to select the TLS protocol version to use, it does + * not support independent control of the minimum and maximum version, + * and does not support limiting the protocol to TLSv1.3. Use + * minVersion and maxVersion instead. The possible values are listed as + * SSL_METHODS, use the function names as strings. For example, use + * 'TLSv1_1_method' to force TLS version 1.1, or 'TLS_method' to allow + * any TLS protocol version up to TLSv1.3. It is not recommended to use + * TLS versions less than 1.2, but it may be required for + * interoperability. Default: none, see minVersion. + */ + secureProtocol?: string | undefined; + /** + * Opaque identifier used by servers to ensure session state is not + * shared between applications. Unused by clients. + */ + sessionIdContext?: string | undefined; + /** + * 48-bytes of cryptographically strong pseudo-random data. + * See Session Resumption for more information. + */ + ticketKeys?: Buffer | undefined; + /** + * The number of seconds after which a TLS session created by the + * server will no longer be resumable. See Session Resumption for more + * information. Default: 300. + */ + sessionTimeout?: number | undefined; + } + interface SecureContext { + context: any; + } + /** + * Verifies the certificate `cert` is issued to `hostname`. + * + * Returns [Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) object, populating it with `reason`, `host`, and `cert` on + * failure. On success, returns [undefined](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Undefined_type). + * + * This function is intended to be used in combination with the`checkServerIdentity` option that can be passed to {@link connect} and as + * such operates on a `certificate object`. For other purposes, consider using `x509.checkHost()` instead. + * + * This function can be overwritten by providing an alternative function as the `options.checkServerIdentity` option that is passed to `tls.connect()`. The + * overwriting function can call `tls.checkServerIdentity()` of course, to augment + * the checks done with additional verification. + * + * This function is only called if the certificate passed all other checks, such as + * being issued by trusted CA (`options.ca`). + * + * Earlier versions of Node.js incorrectly accepted certificates for a given`hostname` if a matching `uniformResourceIdentifier` subject alternative name + * was present (see [CVE-2021-44531](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44531)). Applications that wish to accept`uniformResourceIdentifier` subject alternative names can use + * a custom `options.checkServerIdentity` function that implements the desired behavior. + * @since v0.8.4 + * @param hostname The host name or IP address to verify the certificate against. + * @param cert A `certificate object` representing the peer's certificate. + */ + function checkServerIdentity(hostname: string, cert: PeerCertificate): Error | undefined; + /** + * Creates a new {@link Server}. The `secureConnectionListener`, if provided, is + * automatically set as a listener for the `'secureConnection'` event. + * + * The `ticketKeys` options is automatically shared between `node:cluster` module + * workers. + * + * The following illustrates a simple echo server: + * + * ```js + * import tls from 'node:tls'; + * import fs from 'node:fs'; + * + * const options = { + * key: fs.readFileSync('server-key.pem'), + * cert: fs.readFileSync('server-cert.pem'), + * + * // This is necessary only if using client certificate authentication. + * requestCert: true, + * + * // This is necessary only if the client uses a self-signed certificate. + * ca: [ fs.readFileSync('client-cert.pem') ], + * }; + * + * const server = tls.createServer(options, (socket) => { + * console.log('server connected', + * socket.authorized ? 'authorized' : 'unauthorized'); + * socket.write('welcome!\n'); + * socket.setEncoding('utf8'); + * socket.pipe(socket); + * }); + * server.listen(8000, () => { + * console.log('server bound'); + * }); + * ``` + * + * The server can be tested by connecting to it using the example client from {@link connect}. + * @since v0.3.2 + */ + function createServer(secureConnectionListener?: (socket: TLSSocket) => void): Server; + function createServer(options: TlsOptions, secureConnectionListener?: (socket: TLSSocket) => void): Server; + /** + * The `callback` function, if specified, will be added as a listener for the `'secureConnect'` event. + * + * `tls.connect()` returns a {@link TLSSocket} object. + * + * Unlike the `https` API, `tls.connect()` does not enable the + * SNI (Server Name Indication) extension by default, which may cause some + * servers to return an incorrect certificate or reject the connection + * altogether. To enable SNI, set the `servername` option in addition + * to `host`. + * + * The following illustrates a client for the echo server example from {@link createServer}: + * + * ```js + * // Assumes an echo server that is listening on port 8000. + * import tls from 'node:tls'; + * import fs from 'node:fs'; + * + * const options = { + * // Necessary only if the server requires client certificate authentication. + * key: fs.readFileSync('client-key.pem'), + * cert: fs.readFileSync('client-cert.pem'), + * + * // Necessary only if the server uses a self-signed certificate. + * ca: [ fs.readFileSync('server-cert.pem') ], + * + * // Necessary only if the server's cert isn't for "localhost". + * checkServerIdentity: () => { return null; }, + * }; + * + * const socket = tls.connect(8000, options, () => { + * console.log('client connected', + * socket.authorized ? 'authorized' : 'unauthorized'); + * process.stdin.pipe(socket); + * process.stdin.resume(); + * }); + * socket.setEncoding('utf8'); + * socket.on('data', (data) => { + * console.log(data); + * }); + * socket.on('end', () => { + * console.log('server ends connection'); + * }); + * ``` + * @since v0.11.3 + */ + function connect(options: ConnectionOptions, secureConnectListener?: () => void): TLSSocket; + function connect( + port: number, + host?: string, + options?: ConnectionOptions, + secureConnectListener?: () => void, + ): TLSSocket; + function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket; + /** + * Creates a new secure pair object with two streams, one of which reads and writes + * the encrypted data and the other of which reads and writes the cleartext data. + * Generally, the encrypted stream is piped to/from an incoming encrypted data + * stream and the cleartext one is used as a replacement for the initial encrypted + * stream. + * + * `tls.createSecurePair()` returns a `tls.SecurePair` object with `cleartext` and `encrypted` stream properties. + * + * Using `cleartext` has the same API as {@link TLSSocket}. + * + * The `tls.createSecurePair()` method is now deprecated in favor of`tls.TLSSocket()`. For example, the code: + * + * ```js + * pair = tls.createSecurePair(// ... ); + * pair.encrypted.pipe(socket); + * socket.pipe(pair.encrypted); + * ``` + * + * can be replaced by: + * + * ```js + * secureSocket = tls.TLSSocket(socket, options); + * ``` + * + * where `secureSocket` has the same API as `pair.cleartext`. + * @since v0.3.2 + * @deprecated Since v0.11.3 - Use {@link TLSSocket} instead. + * @param context A secure context object as returned by `tls.createSecureContext()` + * @param isServer `true` to specify that this TLS connection should be opened as a server. + * @param requestCert `true` to specify whether a server should request a certificate from a connecting client. Only applies when `isServer` is `true`. + * @param rejectUnauthorized If not `false` a server automatically reject clients with invalid certificates. Only applies when `isServer` is `true`. + */ + function createSecurePair( + context?: SecureContext, + isServer?: boolean, + requestCert?: boolean, + rejectUnauthorized?: boolean, + ): SecurePair; + /** + * `{@link createServer}` sets the default value of the `honorCipherOrder` option + * to `true`, other APIs that create secure contexts leave it unset. + * + * `{@link createServer}` uses a 128 bit truncated SHA1 hash value generated + * from `process.argv` as the default value of the `sessionIdContext` option, other + * APIs that create secure contexts have no default value. + * + * The `tls.createSecureContext()` method creates a `SecureContext` object. It is + * usable as an argument to several `tls` APIs, such as `server.addContext()`, + * but has no public methods. The {@link Server} constructor and the {@link createServer} method do not support the `secureContext` option. + * + * A key is _required_ for ciphers that use certificates. Either `key` or `pfx` can be used to provide it. + * + * If the `ca` option is not given, then Node.js will default to using [Mozilla's publicly trusted list of + * CAs](https://hg.mozilla.org/mozilla-central/raw-file/tip/security/nss/lib/ckfw/builtins/certdata.txt). + * + * Custom DHE parameters are discouraged in favor of the new `dhparam: 'auto' `option. When set to `'auto'`, well-known DHE parameters of sufficient strength + * will be selected automatically. Otherwise, if necessary, `openssl dhparam` can + * be used to create custom parameters. The key length must be greater than or + * equal to 1024 bits or else an error will be thrown. Although 1024 bits is + * permissible, use 2048 bits or larger for stronger security. + * @since v0.11.13 + */ + function createSecureContext(options?: SecureContextOptions): SecureContext; + /** + * Returns an array with the names of the supported TLS ciphers. The names are + * lower-case for historical reasons, but must be uppercased to be used in + * the `ciphers` option of `{@link createSecureContext}`. + * + * Not all supported ciphers are enabled by default. See + * [Modifying the default TLS cipher suite](https://nodejs.org/docs/latest-v20.x/api/tls.html#modifying-the-default-tls-cipher-suite). + * + * Cipher names that start with `'tls_'` are for TLSv1.3, all the others are for + * TLSv1.2 and below. + * + * ```js + * console.log(tls.getCiphers()); // ['aes128-gcm-sha256', 'aes128-sha', ...] + * ``` + * @since v0.10.2 + */ + function getCiphers(): string[]; + /** + * The default curve name to use for ECDH key agreement in a tls server. + * The default value is `'auto'`. See `{@link createSecureContext()}` for further + * information. + * @since v0.11.13 + */ + let DEFAULT_ECDH_CURVE: string; + /** + * The default value of the `maxVersion` option of `{@link createSecureContext()}`. + * It can be assigned any of the supported TLS protocol versions, + * `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. **Default:** `'TLSv1.3'`, unless + * changed using CLI options. Using `--tls-max-v1.2` sets the default to `'TLSv1.2'`. Using + * `--tls-max-v1.3` sets the default to `'TLSv1.3'`. If multiple of the options + * are provided, the highest maximum is used. + * @since v11.4.0 + */ + let DEFAULT_MAX_VERSION: SecureVersion; + /** + * The default value of the `minVersion` option of `{@link createSecureContext()}`. + * It can be assigned any of the supported TLS protocol versions, + * `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. **Default:** `'TLSv1.2'`, unless + * changed using CLI options. Using `--tls-min-v1.0` sets the default to + * `'TLSv1'`. Using `--tls-min-v1.1` sets the default to `'TLSv1.1'`. Using + * `--tls-min-v1.3` sets the default to `'TLSv1.3'`. If multiple of the options + * are provided, the lowest minimum is used. + * @since v11.4.0 + */ + let DEFAULT_MIN_VERSION: SecureVersion; + /** + * The default value of the `ciphers` option of `{@link createSecureContext()}`. + * It can be assigned any of the supported OpenSSL ciphers. + * Defaults to the content of `crypto.constants.defaultCoreCipherList`, unless + * changed using CLI options using `--tls-default-ciphers`. + * @since v19.8.0 + */ + let DEFAULT_CIPHERS: string; + /** + * An immutable array of strings representing the root certificates (in PEM format) + * from the bundled Mozilla CA store as supplied by the current Node.js version. + * + * The bundled CA store, as supplied by Node.js, is a snapshot of Mozilla CA store + * that is fixed at release time. It is identical on all supported platforms. + * @since v12.3.0 + */ + const rootCertificates: readonly string[]; +} +declare module "node:tls" { + export * from "tls"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/trace_events.d.ts b/backend/node_modules/httpx/node_modules/@types/node/trace_events.d.ts new file mode 100644 index 0000000..6d4aece --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/trace_events.d.ts @@ -0,0 +1,197 @@ +/** + * The `node:trace_events` module provides a mechanism to centralize tracing information + * generated by V8, Node.js core, and userspace code. + * + * Tracing can be enabled with the `--trace-event-categories` command-line flag + * or by using the `trace_events` module. The `--trace-event-categories` flag + * accepts a list of comma-separated category names. + * + * The available categories are: + * + * * `node`: An empty placeholder. + * * `node.async_hooks`: Enables capture of detailed [`async_hooks`](https://nodejs.org/docs/latest-v20.x/api/async_hooks.html) trace data. + * The [`async_hooks`](https://nodejs.org/docs/latest-v20.x/api/async_hooks.html) events have a unique `asyncId` and a special `triggerId` `triggerAsyncId` property. + * * `node.bootstrap`: Enables capture of Node.js bootstrap milestones. + * * `node.console`: Enables capture of `console.time()` and `console.count()` output. + * * `node.threadpoolwork.sync`: Enables capture of trace data for threadpool synchronous operations, such as `blob`, `zlib`, `crypto` and `node_api`. + * * `node.threadpoolwork.async`: Enables capture of trace data for threadpool asynchronous operations, such as `blob`, `zlib`, `crypto` and `node_api`. + * * `node.dns.native`: Enables capture of trace data for DNS queries. + * * `node.net.native`: Enables capture of trace data for network. + * * `node.environment`: Enables capture of Node.js Environment milestones. + * * `node.fs.sync`: Enables capture of trace data for file system sync methods. + * * `node.fs_dir.sync`: Enables capture of trace data for file system sync directory methods. + * * `node.fs.async`: Enables capture of trace data for file system async methods. + * * `node.fs_dir.async`: Enables capture of trace data for file system async directory methods. + * * `node.perf`: Enables capture of [Performance API](https://nodejs.org/docs/latest-v20.x/api/perf_hooks.html) measurements. + * * `node.perf.usertiming`: Enables capture of only Performance API User Timing + * measures and marks. + * * `node.perf.timerify`: Enables capture of only Performance API timerify + * measurements. + * * `node.promises.rejections`: Enables capture of trace data tracking the number + * of unhandled Promise rejections and handled-after-rejections. + * * `node.vm.script`: Enables capture of trace data for the `node:vm` module's `runInNewContext()`, `runInContext()`, and `runInThisContext()` methods. + * * `v8`: The [V8](https://nodejs.org/docs/latest-v20.x/api/v8.html) events are GC, compiling, and execution related. + * * `node.http`: Enables capture of trace data for http request / response. + * + * By default the `node`, `node.async_hooks`, and `v8` categories are enabled. + * + * ```bash + * node --trace-event-categories v8,node,node.async_hooks server.js + * ``` + * + * Prior versions of Node.js required the use of the `--trace-events-enabled` flag to enable trace events. This requirement has been removed. However, the `--trace-events-enabled` flag _may_ still be + * used and will enable the `node`, `node.async_hooks`, and `v8` trace event categories by default. + * + * ```bash + * node --trace-events-enabled + * + * # is equivalent to + * + * node --trace-event-categories v8,node,node.async_hooks + * ``` + * + * Alternatively, trace events may be enabled using the `node:trace_events` module: + * + * ```js + * import trace_events from 'node:trace_events'; + * const tracing = trace_events.createTracing({ categories: ['node.perf'] }); + * tracing.enable(); // Enable trace event capture for the 'node.perf' category + * + * // do work + * + * tracing.disable(); // Disable trace event capture for the 'node.perf' category + * ``` + * + * Running Node.js with tracing enabled will produce log files that can be opened + * in the [`chrome://tracing`](https://www.chromium.org/developers/how-tos/trace-event-profiling-tool) tab of Chrome. + * + * The logging file is by default called `node_trace.${rotation}.log`, where `${rotation}` is an incrementing log-rotation id. The filepath pattern can + * be specified with `--trace-event-file-pattern` that accepts a template + * string that supports `${rotation}` and `${pid}`: + * + * ```bash + * node --trace-event-categories v8 --trace-event-file-pattern '${pid}-${rotation}.log' server.js + * ``` + * + * To guarantee that the log file is properly generated after signal events like `SIGINT`, `SIGTERM`, or `SIGBREAK`, make sure to have the appropriate handlers + * in your code, such as: + * + * ```js + * process.on('SIGINT', function onSigint() { + * console.info('Received SIGINT.'); + * process.exit(130); // Or applicable exit code depending on OS and signal + * }); + * ``` + * + * The tracing system uses the same time source + * as the one used by `process.hrtime()`. + * However the trace-event timestamps are expressed in microseconds, + * unlike `process.hrtime()` which returns nanoseconds. + * + * The features from this module are not available in [`Worker`](https://nodejs.org/docs/latest-v20.x/api/worker_threads.html#class-worker) threads. + * @experimental + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/trace_events.js) + */ +declare module "trace_events" { + /** + * The `Tracing` object is used to enable or disable tracing for sets of + * categories. Instances are created using the + * `trace_events.createTracing()` method. + * + * When created, the `Tracing` object is disabled. Calling the + * `tracing.enable()` method adds the categories to the set of enabled trace + * event categories. Calling `tracing.disable()` will remove the categories + * from the set of enabled trace event categories. + */ + interface Tracing { + /** + * A comma-separated list of the trace event categories covered by this + * `Tracing` object. + * @since v10.0.0 + */ + readonly categories: string; + /** + * Disables this `Tracing` object. + * + * Only trace event categories _not_ covered by other enabled `Tracing` + * objects and _not_ specified by the `--trace-event-categories` flag + * will be disabled. + * + * ```js + * import trace_events from 'node:trace_events'; + * const t1 = trace_events.createTracing({ categories: ['node', 'v8'] }); + * const t2 = trace_events.createTracing({ categories: ['node.perf', 'node'] }); + * t1.enable(); + * t2.enable(); + * + * // Prints 'node,node.perf,v8' + * console.log(trace_events.getEnabledCategories()); + * + * t2.disable(); // Will only disable emission of the 'node.perf' category + * + * // Prints 'node,v8' + * console.log(trace_events.getEnabledCategories()); + * ``` + * @since v10.0.0 + */ + disable(): void; + /** + * Enables this `Tracing` object for the set of categories covered by + * the `Tracing` object. + * @since v10.0.0 + */ + enable(): void; + /** + * `true` only if the `Tracing` object has been enabled. + * @since v10.0.0 + */ + readonly enabled: boolean; + } + interface CreateTracingOptions { + /** + * An array of trace category names. Values included in the array are + * coerced to a string when possible. An error will be thrown if the + * value cannot be coerced. + */ + categories: string[]; + } + /** + * Creates and returns a `Tracing` object for the given set of `categories`. + * + * ```js + * import trace_events from 'node:trace_events'; + * const categories = ['node.perf', 'node.async_hooks']; + * const tracing = trace_events.createTracing({ categories }); + * tracing.enable(); + * // do stuff + * tracing.disable(); + * ``` + * @since v10.0.0 + */ + function createTracing(options: CreateTracingOptions): Tracing; + /** + * Returns a comma-separated list of all currently-enabled trace event + * categories. The current set of enabled trace event categories is determined + * by the _union_ of all currently-enabled `Tracing` objects and any categories + * enabled using the `--trace-event-categories` flag. + * + * Given the file `test.js` below, the command `node --trace-event-categories node.perf test.js` will print `'node.async_hooks,node.perf'` to the console. + * + * ```js + * import trace_events from 'node:trace_events'; + * const t1 = trace_events.createTracing({ categories: ['node.async_hooks'] }); + * const t2 = trace_events.createTracing({ categories: ['node.perf'] }); + * const t3 = trace_events.createTracing({ categories: ['v8'] }); + * + * t1.enable(); + * t2.enable(); + * + * console.log(trace_events.getEnabledCategories()); + * ``` + * @since v10.0.0 + */ + function getEnabledCategories(): string | undefined; +} +declare module "node:trace_events" { + export * from "trace_events"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/ts5.6/buffer.buffer.d.ts b/backend/node_modules/httpx/node_modules/@types/node/ts5.6/buffer.buffer.d.ts new file mode 100644 index 0000000..a5f67d7 --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/ts5.6/buffer.buffer.d.ts @@ -0,0 +1,468 @@ +declare module "buffer" { + global { + interface BufferConstructor { + // see ../buffer.d.ts for implementation shared with all TypeScript versions + + /** + * Allocates a new buffer containing the given {str}. + * + * @param str String to store in buffer. + * @param encoding encoding to use, optional. Default is 'utf8' + * @deprecated since v10.0.0 - Use `Buffer.from(string[, encoding])` instead. + */ + new(str: string, encoding?: BufferEncoding): Buffer; + /** + * Allocates a new buffer of {size} octets. + * + * @param size count of octets to allocate. + * @deprecated since v10.0.0 - Use `Buffer.alloc()` instead (also see `Buffer.allocUnsafe()`). + */ + new(size: number): Buffer; + /** + * Allocates a new buffer containing the given {array} of octets. + * + * @param array The octets to store. + * @deprecated since v10.0.0 - Use `Buffer.from(array)` instead. + */ + new(array: ArrayLike): Buffer; + /** + * Produces a Buffer backed by the same allocated memory as + * the given {ArrayBuffer}/{SharedArrayBuffer}. + * + * @param arrayBuffer The ArrayBuffer with which to share memory. + * @deprecated since v10.0.0 - Use `Buffer.from(arrayBuffer[, byteOffset[, length]])` instead. + */ + new(arrayBuffer: ArrayBufferLike): Buffer; + /** + * Allocates a new `Buffer` using an `array` of bytes in the range `0` – `255`. + * Array entries outside that range will be truncated to fit into it. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * // Creates a new Buffer containing the UTF-8 bytes of the string 'buffer'. + * const buf = Buffer.from([0x62, 0x75, 0x66, 0x66, 0x65, 0x72]); + * ``` + * + * If `array` is an `Array`-like object (that is, one with a `length` property of + * type `number`), it is treated as if it is an array, unless it is a `Buffer` or + * a `Uint8Array`. This means all other `TypedArray` variants get treated as an + * `Array`. To create a `Buffer` from the bytes backing a `TypedArray`, use + * `Buffer.copyBytesFrom()`. + * + * A `TypeError` will be thrown if `array` is not an `Array` or another type + * appropriate for `Buffer.from()` variants. + * + * `Buffer.from(array)` and `Buffer.from(string)` may also use the internal + * `Buffer` pool like `Buffer.allocUnsafe()` does. + * @since v5.10.0 + */ + from(array: WithImplicitCoercion>): Buffer; + /** + * This creates a view of the `ArrayBuffer` without copying the underlying + * memory. For example, when passed a reference to the `.buffer` property of a + * `TypedArray` instance, the newly created `Buffer` will share the same + * allocated memory as the `TypedArray`'s underlying `ArrayBuffer`. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const arr = new Uint16Array(2); + * + * arr[0] = 5000; + * arr[1] = 4000; + * + * // Shares memory with `arr`. + * const buf = Buffer.from(arr.buffer); + * + * console.log(buf); + * // Prints: + * + * // Changing the original Uint16Array changes the Buffer also. + * arr[1] = 6000; + * + * console.log(buf); + * // Prints: + * ``` + * + * The optional `byteOffset` and `length` arguments specify a memory range within + * the `arrayBuffer` that will be shared by the `Buffer`. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const ab = new ArrayBuffer(10); + * const buf = Buffer.from(ab, 0, 2); + * + * console.log(buf.length); + * // Prints: 2 + * ``` + * + * A `TypeError` will be thrown if `arrayBuffer` is not an `ArrayBuffer` or a + * `SharedArrayBuffer` or another type appropriate for `Buffer.from()` + * variants. + * + * It is important to remember that a backing `ArrayBuffer` can cover a range + * of memory that extends beyond the bounds of a `TypedArray` view. A new + * `Buffer` created using the `buffer` property of a `TypedArray` may extend + * beyond the range of the `TypedArray`: + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const arrA = Uint8Array.from([0x63, 0x64, 0x65, 0x66]); // 4 elements + * const arrB = new Uint8Array(arrA.buffer, 1, 2); // 2 elements + * console.log(arrA.buffer === arrB.buffer); // true + * + * const buf = Buffer.from(arrB.buffer); + * console.log(buf); + * // Prints: + * ``` + * @since v5.10.0 + * @param arrayBuffer An `ArrayBuffer`, `SharedArrayBuffer`, for example the + * `.buffer` property of a `TypedArray`. + * @param byteOffset Index of first byte to expose. **Default:** `0`. + * @param length Number of bytes to expose. **Default:** + * `arrayBuffer.byteLength - byteOffset`. + */ + from( + arrayBuffer: WithImplicitCoercion, + byteOffset?: number, + length?: number, + ): Buffer; + /** + * Creates a new `Buffer` containing `string`. The `encoding` parameter identifies + * the character encoding to be used when converting `string` into bytes. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf1 = Buffer.from('this is a tést'); + * const buf2 = Buffer.from('7468697320697320612074c3a97374', 'hex'); + * + * console.log(buf1.toString()); + * // Prints: this is a tést + * console.log(buf2.toString()); + * // Prints: this is a tést + * console.log(buf1.toString('latin1')); + * // Prints: this is a tést + * ``` + * + * A `TypeError` will be thrown if `string` is not a string or another type + * appropriate for `Buffer.from()` variants. + * + * `Buffer.from(string)` may also use the internal `Buffer` pool like + * `Buffer.allocUnsafe()` does. + * @since v5.10.0 + * @param string A string to encode. + * @param encoding The encoding of `string`. **Default:** `'utf8'`. + */ + from(string: WithImplicitCoercion, encoding?: BufferEncoding): Buffer; + from(arrayOrString: WithImplicitCoercion | string>): Buffer; + /** + * Creates a new Buffer using the passed {data} + * @param values to create a new Buffer + */ + of(...items: number[]): Buffer; + /** + * Returns a new `Buffer` which is the result of concatenating all the `Buffer` instances in the `list` together. + * + * If the list has no items, or if the `totalLength` is 0, then a new zero-length `Buffer` is returned. + * + * If `totalLength` is not provided, it is calculated from the `Buffer` instances + * in `list` by adding their lengths. + * + * If `totalLength` is provided, it is coerced to an unsigned integer. If the + * combined length of the `Buffer`s in `list` exceeds `totalLength`, the result is + * truncated to `totalLength`. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * // Create a single `Buffer` from a list of three `Buffer` instances. + * + * const buf1 = Buffer.alloc(10); + * const buf2 = Buffer.alloc(14); + * const buf3 = Buffer.alloc(18); + * const totalLength = buf1.length + buf2.length + buf3.length; + * + * console.log(totalLength); + * // Prints: 42 + * + * const bufA = Buffer.concat([buf1, buf2, buf3], totalLength); + * + * console.log(bufA); + * // Prints: + * console.log(bufA.length); + * // Prints: 42 + * ``` + * + * `Buffer.concat()` may also use the internal `Buffer` pool like `Buffer.allocUnsafe()` does. + * @since v0.7.11 + * @param list List of `Buffer` or {@link Uint8Array} instances to concatenate. + * @param totalLength Total length of the `Buffer` instances in `list` when concatenated. + */ + concat(list: readonly Uint8Array[], totalLength?: number): Buffer; + /** + * Copies the underlying memory of `view` into a new `Buffer`. + * + * ```js + * const u16 = new Uint16Array([0, 0xffff]); + * const buf = Buffer.copyBytesFrom(u16, 1, 1); + * u16[1] = 0; + * console.log(buf.length); // 2 + * console.log(buf[0]); // 255 + * console.log(buf[1]); // 255 + * ``` + * @since v19.8.0 + * @param view The {TypedArray} to copy. + * @param [offset=0] The starting offset within `view`. + * @param [length=view.length - offset] The number of elements from `view` to copy. + */ + copyBytesFrom(view: NodeJS.TypedArray, offset?: number, length?: number): Buffer; + /** + * Allocates a new `Buffer` of `size` bytes. If `fill` is `undefined`, the`Buffer` will be zero-filled. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.alloc(5); + * + * console.log(buf); + * // Prints: + * ``` + * + * If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown. + * + * If `fill` is specified, the allocated `Buffer` will be initialized by calling `buf.fill(fill)`. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.alloc(5, 'a'); + * + * console.log(buf); + * // Prints: + * ``` + * + * If both `fill` and `encoding` are specified, the allocated `Buffer` will be + * initialized by calling `buf.fill(fill, encoding)`. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.alloc(11, 'aGVsbG8gd29ybGQ=', 'base64'); + * + * console.log(buf); + * // Prints: + * ``` + * + * Calling `Buffer.alloc()` can be measurably slower than the alternative `Buffer.allocUnsafe()` but ensures that the newly created `Buffer` instance + * contents will never contain sensitive data from previous allocations, including + * data that might not have been allocated for `Buffer`s. + * + * A `TypeError` will be thrown if `size` is not a number. + * @since v5.10.0 + * @param size The desired length of the new `Buffer`. + * @param [fill=0] A value to pre-fill the new `Buffer` with. + * @param [encoding='utf8'] If `fill` is a string, this is its encoding. + */ + alloc(size: number, fill?: string | Uint8Array | number, encoding?: BufferEncoding): Buffer; + /** + * Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown. + * + * The underlying memory for `Buffer` instances created in this way is _not_ + * _initialized_. The contents of the newly created `Buffer` are unknown and _may contain sensitive data_. Use `Buffer.alloc()` instead to initialize`Buffer` instances with zeroes. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.allocUnsafe(10); + * + * console.log(buf); + * // Prints (contents may vary): + * + * buf.fill(0); + * + * console.log(buf); + * // Prints: + * ``` + * + * A `TypeError` will be thrown if `size` is not a number. + * + * The `Buffer` module pre-allocates an internal `Buffer` instance of + * size `Buffer.poolSize` that is used as a pool for the fast allocation of new `Buffer` instances created using `Buffer.allocUnsafe()`, `Buffer.from(array)`, + * and `Buffer.concat()` only when `size` is less than `Buffer.poolSize >>> 1` (floor of `Buffer.poolSize` divided by two). + * + * Use of this pre-allocated internal memory pool is a key difference between + * calling `Buffer.alloc(size, fill)` vs. `Buffer.allocUnsafe(size).fill(fill)`. + * Specifically, `Buffer.alloc(size, fill)` will _never_ use the internal `Buffer`pool, while `Buffer.allocUnsafe(size).fill(fill)`_will_ use the internal`Buffer` pool if `size` is less + * than or equal to half `Buffer.poolSize`. The + * difference is subtle but can be important when an application requires the + * additional performance that `Buffer.allocUnsafe()` provides. + * @since v5.10.0 + * @param size The desired length of the new `Buffer`. + */ + allocUnsafe(size: number): Buffer; + /** + * Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown. A zero-length `Buffer` is created if + * `size` is 0. + * + * The underlying memory for `Buffer` instances created in this way is _not_ + * _initialized_. The contents of the newly created `Buffer` are unknown and _may contain sensitive data_. Use `buf.fill(0)` to initialize + * such `Buffer` instances with zeroes. + * + * When using `Buffer.allocUnsafe()` to allocate new `Buffer` instances, + * allocations under 4 KiB are sliced from a single pre-allocated `Buffer`. This + * allows applications to avoid the garbage collection overhead of creating many + * individually allocated `Buffer` instances. This approach improves both + * performance and memory usage by eliminating the need to track and clean up as + * many individual `ArrayBuffer` objects. + * + * However, in the case where a developer may need to retain a small chunk of + * memory from a pool for an indeterminate amount of time, it may be appropriate + * to create an un-pooled `Buffer` instance using `Buffer.allocUnsafeSlow()` and + * then copying out the relevant bits. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * // Need to keep around a few small chunks of memory. + * const store = []; + * + * socket.on('readable', () => { + * let data; + * while (null !== (data = readable.read())) { + * // Allocate for retained data. + * const sb = Buffer.allocUnsafeSlow(10); + * + * // Copy the data into the new allocation. + * data.copy(sb, 0, 0, 10); + * + * store.push(sb); + * } + * }); + * ``` + * + * A `TypeError` will be thrown if `size` is not a number. + * @since v5.12.0 + * @param size The desired length of the new `Buffer`. + */ + allocUnsafeSlow(size: number): Buffer; + } + interface Buffer extends Uint8Array { + // see ../buffer.d.ts for implementation shared with all TypeScript versions + + /** + * Returns a new `Buffer` that references the same memory as the original, but + * offset and cropped by the `start` and `end` indices. + * + * This method is not compatible with the `Uint8Array.prototype.slice()`, + * which is a superclass of `Buffer`. To copy the slice, use`Uint8Array.prototype.slice()`. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.from('buffer'); + * + * const copiedBuf = Uint8Array.prototype.slice.call(buf); + * copiedBuf[0]++; + * console.log(copiedBuf.toString()); + * // Prints: cuffer + * + * console.log(buf.toString()); + * // Prints: buffer + * + * // With buf.slice(), the original buffer is modified. + * const notReallyCopiedBuf = buf.slice(); + * notReallyCopiedBuf[0]++; + * console.log(notReallyCopiedBuf.toString()); + * // Prints: cuffer + * console.log(buf.toString()); + * // Also prints: cuffer (!) + * ``` + * @since v0.3.0 + * @deprecated Use `subarray` instead. + * @param [start=0] Where the new `Buffer` will start. + * @param [end=buf.length] Where the new `Buffer` will end (not inclusive). + */ + slice(start?: number, end?: number): Buffer; + /** + * Returns a new `Buffer` that references the same memory as the original, but + * offset and cropped by the `start` and `end` indices. + * + * Specifying `end` greater than `buf.length` will return the same result as + * that of `end` equal to `buf.length`. + * + * This method is inherited from [`TypedArray.prototype.subarray()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/subarray). + * + * Modifying the new `Buffer` slice will modify the memory in the original `Buffer`because the allocated memory of the two objects overlap. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * // Create a `Buffer` with the ASCII alphabet, take a slice, and modify one byte + * // from the original `Buffer`. + * + * const buf1 = Buffer.allocUnsafe(26); + * + * for (let i = 0; i < 26; i++) { + * // 97 is the decimal ASCII value for 'a'. + * buf1[i] = i + 97; + * } + * + * const buf2 = buf1.subarray(0, 3); + * + * console.log(buf2.toString('ascii', 0, buf2.length)); + * // Prints: abc + * + * buf1[0] = 33; + * + * console.log(buf2.toString('ascii', 0, buf2.length)); + * // Prints: !bc + * ``` + * + * Specifying negative indexes causes the slice to be generated relative to the + * end of `buf` rather than the beginning. + * + * ```js + * import { Buffer } from 'node:buffer'; + * + * const buf = Buffer.from('buffer'); + * + * console.log(buf.subarray(-6, -1).toString()); + * // Prints: buffe + * // (Equivalent to buf.subarray(0, 5).) + * + * console.log(buf.subarray(-6, -2).toString()); + * // Prints: buff + * // (Equivalent to buf.subarray(0, 4).) + * + * console.log(buf.subarray(-5, -2).toString()); + * // Prints: uff + * // (Equivalent to buf.subarray(1, 4).) + * ``` + * @since v3.0.0 + * @param [start=0] Where the new `Buffer` will start. + * @param [end=buf.length] Where the new `Buffer` will end (not inclusive). + */ + subarray(start?: number, end?: number): Buffer; + } + /** + * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports + * TypeScript versions earlier than 5.7. + */ + type NonSharedBuffer = Buffer; + /** + * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports + * TypeScript versions earlier than 5.7. + */ + type AllowSharedBuffer = Buffer; + } + /** @deprecated Use `Buffer.allocUnsafeSlow()` instead. */ + var SlowBuffer: { + /** @deprecated Use `Buffer.allocUnsafeSlow()` instead. */ + new(size: number): Buffer; + prototype: Buffer; + }; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/ts5.6/globals.typedarray.d.ts b/backend/node_modules/httpx/node_modules/@types/node/ts5.6/globals.typedarray.d.ts new file mode 100644 index 0000000..f1c444d --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/ts5.6/globals.typedarray.d.ts @@ -0,0 +1,34 @@ +export {}; // Make this a module + +declare global { + namespace NodeJS { + type TypedArray = + | Uint8Array + | Uint8ClampedArray + | Uint16Array + | Uint32Array + | Int8Array + | Int16Array + | Int32Array + | BigUint64Array + | BigInt64Array + | Float32Array + | Float64Array; + type ArrayBufferView = TypedArray | DataView; + + type NonSharedUint8Array = Uint8Array; + type NonSharedUint8ClampedArray = Uint8ClampedArray; + type NonSharedUint16Array = Uint16Array; + type NonSharedUint32Array = Uint32Array; + type NonSharedInt8Array = Int8Array; + type NonSharedInt16Array = Int16Array; + type NonSharedInt32Array = Int32Array; + type NonSharedBigUint64Array = BigUint64Array; + type NonSharedBigInt64Array = BigInt64Array; + type NonSharedFloat32Array = Float32Array; + type NonSharedFloat64Array = Float64Array; + type NonSharedDataView = DataView; + type NonSharedTypedArray = TypedArray; + type NonSharedArrayBufferView = ArrayBufferView; + } +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/ts5.6/index.d.ts b/backend/node_modules/httpx/node_modules/@types/node/ts5.6/index.d.ts new file mode 100644 index 0000000..291308f --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/ts5.6/index.d.ts @@ -0,0 +1,93 @@ +/** + * License for programmatically and manually incorporated + * documentation aka. `JSDoc` from https://github.com/nodejs/node/tree/master/doc + * + * Copyright Node.js contributors. All rights reserved. + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ + +// NOTE: These definitions support Node.js and TypeScript 4.9 through 5.6. + +// Reference required TypeScript libs: +/// + +// TypeScript backwards-compatibility definitions: +/// + +// Definitions specific to TypeScript 4.9 through 5.6: +/// +/// + +// Definitions for Node.js modules that are not specific to any version of TypeScript: +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// diff --git a/backend/node_modules/httpx/node_modules/@types/node/tty.d.ts b/backend/node_modules/httpx/node_modules/@types/node/tty.d.ts new file mode 100644 index 0000000..d4b9313 --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/tty.d.ts @@ -0,0 +1,208 @@ +/** + * The `node:tty` module provides the `tty.ReadStream` and `tty.WriteStream` classes. In most cases, it will not be necessary or possible to use this module + * directly. However, it can be accessed using: + * + * ```js + * import tty from 'node:tty'; + * ``` + * + * When Node.js detects that it is being run with a text terminal ("TTY") + * attached, `process.stdin` will, by default, be initialized as an instance of `tty.ReadStream` and both `process.stdout` and `process.stderr` will, by + * default, be instances of `tty.WriteStream`. The preferred method of determining + * whether Node.js is being run within a TTY context is to check that the value of + * the `process.stdout.isTTY` property is `true`: + * + * ```console + * $ node -p -e "Boolean(process.stdout.isTTY)" + * true + * $ node -p -e "Boolean(process.stdout.isTTY)" | cat + * false + * ``` + * + * In most cases, there should be little to no reason for an application to + * manually create instances of the `tty.ReadStream` and `tty.WriteStream` classes. + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/tty.js) + */ +declare module "tty" { + import * as net from "node:net"; + /** + * The `tty.isatty()` method returns `true` if the given `fd` is associated with + * a TTY and `false` if it is not, including whenever `fd` is not a non-negative + * integer. + * @since v0.5.8 + * @param fd A numeric file descriptor + */ + function isatty(fd: number): boolean; + /** + * Represents the readable side of a TTY. In normal circumstances `process.stdin` will be the only `tty.ReadStream` instance in a Node.js + * process and there should be no reason to create additional instances. + * @since v0.5.8 + */ + class ReadStream extends net.Socket { + constructor(fd: number, options?: net.SocketConstructorOpts); + /** + * A `boolean` that is `true` if the TTY is currently configured to operate as a + * raw device. + * + * This flag is always `false` when a process starts, even if the terminal is + * operating in raw mode. Its value will change with subsequent calls to `setRawMode`. + * @since v0.7.7 + */ + isRaw: boolean; + /** + * Allows configuration of `tty.ReadStream` so that it operates as a raw device. + * + * When in raw mode, input is always available character-by-character, not + * including modifiers. Additionally, all special processing of characters by the + * terminal is disabled, including echoing input + * characters. Ctrl+C will no longer cause a `SIGINT` when + * in this mode. + * @since v0.7.7 + * @param mode If `true`, configures the `tty.ReadStream` to operate as a raw device. If `false`, configures the `tty.ReadStream` to operate in its default mode. The `readStream.isRaw` + * property will be set to the resulting mode. + * @return The read stream instance. + */ + setRawMode(mode: boolean): this; + /** + * A `boolean` that is always `true` for `tty.ReadStream` instances. + * @since v0.5.8 + */ + isTTY: boolean; + } + /** + * -1 - to the left from cursor + * 0 - the entire line + * 1 - to the right from cursor + */ + type Direction = -1 | 0 | 1; + /** + * Represents the writable side of a TTY. In normal circumstances, `process.stdout` and `process.stderr` will be the only`tty.WriteStream` instances created for a Node.js process and there + * should be no reason to create additional instances. + * @since v0.5.8 + */ + class WriteStream extends net.Socket { + constructor(fd: number); + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: "resize", listener: () => void): this; + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: "resize"): boolean; + on(event: string, listener: (...args: any[]) => void): this; + on(event: "resize", listener: () => void): this; + once(event: string, listener: (...args: any[]) => void): this; + once(event: "resize", listener: () => void): this; + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: "resize", listener: () => void): this; + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: "resize", listener: () => void): this; + /** + * `writeStream.clearLine()` clears the current line of this `WriteStream` in a + * direction identified by `dir`. + * @since v0.7.7 + * @param callback Invoked once the operation completes. + * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. + */ + clearLine(dir: Direction, callback?: () => void): boolean; + /** + * `writeStream.clearScreenDown()` clears this `WriteStream` from the current + * cursor down. + * @since v0.7.7 + * @param callback Invoked once the operation completes. + * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. + */ + clearScreenDown(callback?: () => void): boolean; + /** + * `writeStream.cursorTo()` moves this `WriteStream`'s cursor to the specified + * position. + * @since v0.7.7 + * @param callback Invoked once the operation completes. + * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. + */ + cursorTo(x: number, y?: number, callback?: () => void): boolean; + cursorTo(x: number, callback: () => void): boolean; + /** + * `writeStream.moveCursor()` moves this `WriteStream`'s cursor _relative_ to its + * current position. + * @since v0.7.7 + * @param callback Invoked once the operation completes. + * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. + */ + moveCursor(dx: number, dy: number, callback?: () => void): boolean; + /** + * Returns: + * + * * `1` for 2, + * * `4` for 16, + * * `8` for 256, + * * `24` for 16,777,216 colors supported. + * + * Use this to determine what colors the terminal supports. Due to the nature of + * colors in terminals it is possible to either have false positives or false + * negatives. It depends on process information and the environment variables that + * may lie about what terminal is used. + * It is possible to pass in an `env` object to simulate the usage of a specific + * terminal. This can be useful to check how specific environment settings behave. + * + * To enforce a specific color support, use one of the below environment settings. + * + * * 2 colors: `FORCE_COLOR = 0` (Disables colors) + * * 16 colors: `FORCE_COLOR = 1` + * * 256 colors: `FORCE_COLOR = 2` + * * 16,777,216 colors: `FORCE_COLOR = 3` + * + * Disabling color support is also possible by using the `NO_COLOR` and `NODE_DISABLE_COLORS` environment variables. + * @since v9.9.0 + * @param [env=process.env] An object containing the environment variables to check. This enables simulating the usage of a specific terminal. + */ + getColorDepth(env?: object): number; + /** + * Returns `true` if the `writeStream` supports at least as many colors as provided + * in `count`. Minimum support is 2 (black and white). + * + * This has the same false positives and negatives as described in `writeStream.getColorDepth()`. + * + * ```js + * process.stdout.hasColors(); + * // Returns true or false depending on if `stdout` supports at least 16 colors. + * process.stdout.hasColors(256); + * // Returns true or false depending on if `stdout` supports at least 256 colors. + * process.stdout.hasColors({ TMUX: '1' }); + * // Returns true. + * process.stdout.hasColors(2 ** 24, { TMUX: '1' }); + * // Returns false (the environment setting pretends to support 2 ** 8 colors). + * ``` + * @since v11.13.0, v10.16.0 + * @param [count=16] The number of colors that are requested (minimum 2). + * @param [env=process.env] An object containing the environment variables to check. This enables simulating the usage of a specific terminal. + */ + hasColors(count?: number): boolean; + hasColors(env?: object): boolean; + hasColors(count: number, env?: object): boolean; + /** + * `writeStream.getWindowSize()` returns the size of the TTY + * corresponding to this `WriteStream`. The array is of the type `[numColumns, numRows]` where `numColumns` and `numRows` represent the number + * of columns and rows in the corresponding TTY. + * @since v0.7.7 + */ + getWindowSize(): [number, number]; + /** + * A `number` specifying the number of columns the TTY currently has. This property + * is updated whenever the `'resize'` event is emitted. + * @since v0.7.7 + */ + columns: number; + /** + * A `number` specifying the number of rows the TTY currently has. This property + * is updated whenever the `'resize'` event is emitted. + * @since v0.7.7 + */ + rows: number; + /** + * A `boolean` that is always `true`. + * @since v0.5.8 + */ + isTTY: boolean; + } +} +declare module "node:tty" { + export * from "tty"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/url.d.ts b/backend/node_modules/httpx/node_modules/@types/node/url.d.ts new file mode 100644 index 0000000..4d83629 --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/url.d.ts @@ -0,0 +1,964 @@ +/** + * The `node:url` module provides utilities for URL resolution and parsing. It can + * be accessed using: + * + * ```js + * import url from 'node:url'; + * ``` + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/url.js) + */ +declare module "url" { + import { Blob as NodeBlob, NonSharedBuffer } from "node:buffer"; + import { ClientRequestArgs } from "node:http"; + import { ParsedUrlQuery, ParsedUrlQueryInput } from "node:querystring"; + // Input to `url.format` + interface UrlObject { + auth?: string | null | undefined; + hash?: string | null | undefined; + host?: string | null | undefined; + hostname?: string | null | undefined; + href?: string | null | undefined; + pathname?: string | null | undefined; + protocol?: string | null | undefined; + search?: string | null | undefined; + slashes?: boolean | null | undefined; + port?: string | number | null | undefined; + query?: string | null | ParsedUrlQueryInput | undefined; + } + // Output of `url.parse` + interface Url { + auth: string | null; + hash: string | null; + host: string | null; + hostname: string | null; + href: string; + path: string | null; + pathname: string | null; + protocol: string | null; + search: string | null; + slashes: boolean | null; + port: string | null; + query: string | null | ParsedUrlQuery; + } + interface UrlWithParsedQuery extends Url { + query: ParsedUrlQuery; + } + interface UrlWithStringQuery extends Url { + query: string | null; + } + interface FileUrlToPathOptions { + /** + * `true` if the `path` should be return as a windows filepath, `false` for posix, and `undefined` for the system default. + * @default undefined + */ + windows?: boolean | undefined; + } + interface PathToFileUrlOptions extends FileUrlToPathOptions {} + /** + * The `url.parse()` method takes a URL string, parses it, and returns a URL + * object. + * + * A `TypeError` is thrown if `urlString` is not a string. + * + * A `URIError` is thrown if the `auth` property is present but cannot be decoded. + * + * `url.parse()` uses a lenient, non-standard algorithm for parsing URL + * strings. It is prone to security issues such as [host name spoofing](https://hackerone.com/reports/678487) and incorrect handling of usernames and passwords. Do not use with untrusted + * input. CVEs are not issued for `url.parse()` vulnerabilities. Use the `WHATWG URL` API instead. + * @since v0.1.25 + * @deprecated Use the WHATWG URL API instead. + * @param urlString The URL string to parse. + * @param [parseQueryString=false] If `true`, the `query` property will always be set to an object returned by the {@link querystring} module's `parse()` method. If `false`, the `query` property + * on the returned URL object will be an unparsed, undecoded string. + * @param [slashesDenoteHost=false] If `true`, the first token after the literal string `//` and preceding the next `/` will be interpreted as the `host`. For instance, given `//foo/bar`, the + * result would be `{host: 'foo', pathname: '/bar'}` rather than `{pathname: '//foo/bar'}`. + */ + function parse(urlString: string): UrlWithStringQuery; + function parse( + urlString: string, + parseQueryString: false | undefined, + slashesDenoteHost?: boolean, + ): UrlWithStringQuery; + function parse(urlString: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery; + function parse(urlString: string, parseQueryString: boolean, slashesDenoteHost?: boolean): Url; + /** + * The `url.format()` method returns a formatted URL string derived from `urlObject`. + * + * ```js + * import url from 'node:url'; + * url.format({ + * protocol: 'https', + * hostname: 'example.com', + * pathname: '/some/path', + * query: { + * page: 1, + * format: 'json', + * }, + * }); + * + * // => 'https://example.com/some/path?page=1&format=json' + * ``` + * + * If `urlObject` is not an object or a string, `url.format()` will throw a `TypeError`. + * + * The formatting process operates as follows: + * + * * A new empty string `result` is created. + * * If `urlObject.protocol` is a string, it is appended as-is to `result`. + * * Otherwise, if `urlObject.protocol` is not `undefined` and is not a string, an `Error` is thrown. + * * For all string values of `urlObject.protocol` that _do not end_ with an ASCII + * colon (`:`) character, the literal string `:` will be appended to `result`. + * * If either of the following conditions is true, then the literal string `//` will be appended to `result`: + * * `urlObject.slashes` property is true; + * * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or `file`; + * * If the value of the `urlObject.auth` property is truthy, and either `urlObject.host` or `urlObject.hostname` are not `undefined`, the value of `urlObject.auth` will be coerced into a string + * and appended to `result` followed by the literal string `@`. + * * If the `urlObject.host` property is `undefined` then: + * * If the `urlObject.hostname` is a string, it is appended to `result`. + * * Otherwise, if `urlObject.hostname` is not `undefined` and is not a string, + * an `Error` is thrown. + * * If the `urlObject.port` property value is truthy, and `urlObject.hostname` is not `undefined`: + * * The literal string `:` is appended to `result`, and + * * The value of `urlObject.port` is coerced to a string and appended to `result`. + * * Otherwise, if the `urlObject.host` property value is truthy, the value of `urlObject.host` is coerced to a string and appended to `result`. + * * If the `urlObject.pathname` property is a string that is not an empty string: + * * If the `urlObject.pathname` _does not start_ with an ASCII forward slash + * (`/`), then the literal string `'/'` is appended to `result`. + * * The value of `urlObject.pathname` is appended to `result`. + * * Otherwise, if `urlObject.pathname` is not `undefined` and is not a string, an `Error` is thrown. + * * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result` followed by the output of calling the + * `querystring` module's `stringify()` method passing the value of `urlObject.query`. + * * Otherwise, if `urlObject.search` is a string: + * * If the value of `urlObject.search` _does not start_ with the ASCII question + * mark (`?`) character, the literal string `?` is appended to `result`. + * * The value of `urlObject.search` is appended to `result`. + * * Otherwise, if `urlObject.search` is not `undefined` and is not a string, an `Error` is thrown. + * * If the `urlObject.hash` property is a string: + * * If the value of `urlObject.hash` _does not start_ with the ASCII hash (`#`) + * character, the literal string `#` is appended to `result`. + * * The value of `urlObject.hash` is appended to `result`. + * * Otherwise, if the `urlObject.hash` property is not `undefined` and is not a + * string, an `Error` is thrown. + * * `result` is returned. + * @since v0.1.25 + * @legacy Use the WHATWG URL API instead. + * @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`. + */ + function format(urlObject: URL, options?: URLFormatOptions): string; + /** + * The `url.format()` method returns a formatted URL string derived from `urlObject`. + * + * ```js + * import url from 'node:url'; + * url.format({ + * protocol: 'https', + * hostname: 'example.com', + * pathname: '/some/path', + * query: { + * page: 1, + * format: 'json', + * }, + * }); + * + * // => 'https://example.com/some/path?page=1&format=json' + * ``` + * + * If `urlObject` is not an object or a string, `url.format()` will throw a `TypeError`. + * + * The formatting process operates as follows: + * + * * A new empty string `result` is created. + * * If `urlObject.protocol` is a string, it is appended as-is to `result`. + * * Otherwise, if `urlObject.protocol` is not `undefined` and is not a string, an `Error` is thrown. + * * For all string values of `urlObject.protocol` that _do not end_ with an ASCII + * colon (`:`) character, the literal string `:` will be appended to `result`. + * * If either of the following conditions is true, then the literal string `//` will be appended to `result`: + * * `urlObject.slashes` property is true; + * * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or `file`; + * * If the value of the `urlObject.auth` property is truthy, and either `urlObject.host` or `urlObject.hostname` are not `undefined`, the value of `urlObject.auth` will be coerced into a string + * and appended to `result` followed by the literal string `@`. + * * If the `urlObject.host` property is `undefined` then: + * * If the `urlObject.hostname` is a string, it is appended to `result`. + * * Otherwise, if `urlObject.hostname` is not `undefined` and is not a string, + * an `Error` is thrown. + * * If the `urlObject.port` property value is truthy, and `urlObject.hostname` is not `undefined`: + * * The literal string `:` is appended to `result`, and + * * The value of `urlObject.port` is coerced to a string and appended to `result`. + * * Otherwise, if the `urlObject.host` property value is truthy, the value of `urlObject.host` is coerced to a string and appended to `result`. + * * If the `urlObject.pathname` property is a string that is not an empty string: + * * If the `urlObject.pathname` _does not start_ with an ASCII forward slash + * (`/`), then the literal string `'/'` is appended to `result`. + * * The value of `urlObject.pathname` is appended to `result`. + * * Otherwise, if `urlObject.pathname` is not `undefined` and is not a string, an `Error` is thrown. + * * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result` followed by the output of calling the + * `querystring` module's `stringify()` method passing the value of `urlObject.query`. + * * Otherwise, if `urlObject.search` is a string: + * * If the value of `urlObject.search` _does not start_ with the ASCII question + * mark (`?`) character, the literal string `?` is appended to `result`. + * * The value of `urlObject.search` is appended to `result`. + * * Otherwise, if `urlObject.search` is not `undefined` and is not a string, an `Error` is thrown. + * * If the `urlObject.hash` property is a string: + * * If the value of `urlObject.hash` _does not start_ with the ASCII hash (`#`) + * character, the literal string `#` is appended to `result`. + * * The value of `urlObject.hash` is appended to `result`. + * * Otherwise, if the `urlObject.hash` property is not `undefined` and is not a + * string, an `Error` is thrown. + * * `result` is returned. + * @since v0.1.25 + * @legacy Use the WHATWG URL API instead. + * @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`. + */ + function format(urlObject: UrlObject | string): string; + /** + * The `url.resolve()` method resolves a target URL relative to a base URL in a + * manner similar to that of a web browser resolving an anchor tag. + * + * ```js + * import url from 'node:url'; + * url.resolve('/one/two/three', 'four'); // '/one/two/four' + * url.resolve('http://example.com/', '/one'); // 'http://example.com/one' + * url.resolve('http://example.com/one', '/two'); // 'http://example.com/two' + * ``` + * + * To achieve the same result using the WHATWG URL API: + * + * ```js + * function resolve(from, to) { + * const resolvedUrl = new URL(to, new URL(from, 'resolve://')); + * if (resolvedUrl.protocol === 'resolve:') { + * // `from` is a relative URL. + * const { pathname, search, hash } = resolvedUrl; + * return pathname + search + hash; + * } + * return resolvedUrl.toString(); + * } + * + * resolve('/one/two/three', 'four'); // '/one/two/four' + * resolve('http://example.com/', '/one'); // 'http://example.com/one' + * resolve('http://example.com/one', '/two'); // 'http://example.com/two' + * ``` + * @since v0.1.25 + * @legacy Use the WHATWG URL API instead. + * @param from The base URL to use if `to` is a relative URL. + * @param to The target URL to resolve. + */ + function resolve(from: string, to: string): string; + /** + * Returns the [Punycode](https://tools.ietf.org/html/rfc5891#section-4.4) ASCII serialization of the `domain`. If `domain` is an + * invalid domain, the empty string is returned. + * + * It performs the inverse operation to {@link domainToUnicode}. + * + * ```js + * import url from 'node:url'; + * + * console.log(url.domainToASCII('español.com')); + * // Prints xn--espaol-zwa.com + * console.log(url.domainToASCII('中文.com')); + * // Prints xn--fiq228c.com + * console.log(url.domainToASCII('xn--iñvalid.com')); + * // Prints an empty string + * ``` + * @since v7.4.0, v6.13.0 + */ + function domainToASCII(domain: string): string; + /** + * Returns the Unicode serialization of the `domain`. If `domain` is an invalid + * domain, the empty string is returned. + * + * It performs the inverse operation to {@link domainToASCII}. + * + * ```js + * import url from 'node:url'; + * + * console.log(url.domainToUnicode('xn--espaol-zwa.com')); + * // Prints español.com + * console.log(url.domainToUnicode('xn--fiq228c.com')); + * // Prints 中文.com + * console.log(url.domainToUnicode('xn--iñvalid.com')); + * // Prints an empty string + * ``` + * @since v7.4.0, v6.13.0 + */ + function domainToUnicode(domain: string): string; + /** + * This function ensures the correct decodings of percent-encoded characters as + * well as ensuring a cross-platform valid absolute path string. + * + * ```js + * import { fileURLToPath } from 'node:url'; + * + * const __filename = fileURLToPath(import.meta.url); + * + * new URL('file:///C:/path/').pathname; // Incorrect: /C:/path/ + * fileURLToPath('file:///C:/path/'); // Correct: C:\path\ (Windows) + * + * new URL('file://nas/foo.txt').pathname; // Incorrect: /foo.txt + * fileURLToPath('file://nas/foo.txt'); // Correct: \\nas\foo.txt (Windows) + * + * new URL('file:///你好.txt').pathname; // Incorrect: /%E4%BD%A0%E5%A5%BD.txt + * fileURLToPath('file:///你好.txt'); // Correct: /你好.txt (POSIX) + * + * new URL('file:///hello world').pathname; // Incorrect: /hello%20world + * fileURLToPath('file:///hello world'); // Correct: /hello world (POSIX) + * ``` + * @since v10.12.0 + * @param url The file URL string or URL object to convert to a path. + * @return The fully-resolved platform-specific Node.js file path. + */ + function fileURLToPath(url: string | URL, options?: FileUrlToPathOptions): string; + /** + * This function ensures that `path` is resolved absolutely, and that the URL + * control characters are correctly encoded when converting into a File URL. + * + * ```js + * import { pathToFileURL } from 'node:url'; + * + * new URL('/foo#1', 'file:'); // Incorrect: file:///foo#1 + * pathToFileURL('/foo#1'); // Correct: file:///foo%231 (POSIX) + * + * new URL('/some/path%.c', 'file:'); // Incorrect: file:///some/path%.c + * pathToFileURL('/some/path%.c'); // Correct: file:///some/path%25.c (POSIX) + * ``` + * @since v10.12.0 + * @param path The path to convert to a File URL. + * @return The file URL object. + */ + function pathToFileURL(path: string, options?: PathToFileUrlOptions): URL; + /** + * This utility function converts a URL object into an ordinary options object as + * expected by the `http.request()` and `https.request()` APIs. + * + * ```js + * import { urlToHttpOptions } from 'node:url'; + * const myURL = new URL('https://a:b@測試?abc#foo'); + * + * console.log(urlToHttpOptions(myURL)); + * /* + * { + * protocol: 'https:', + * hostname: 'xn--g6w251d', + * hash: '#foo', + * search: '?abc', + * pathname: '/', + * path: '/?abc', + * href: 'https://a:b@xn--g6w251d/?abc#foo', + * auth: 'a:b' + * } + * + * ``` + * @since v15.7.0, v14.18.0 + * @param url The `WHATWG URL` object to convert to an options object. + * @return Options object + */ + function urlToHttpOptions(url: URL): ClientRequestArgs; + interface URLFormatOptions { + /** + * `true` if the serialized URL string should include the username and password, `false` otherwise. + * @default true + */ + auth?: boolean | undefined; + /** + * `true` if the serialized URL string should include the fragment, `false` otherwise. + * @default true + */ + fragment?: boolean | undefined; + /** + * `true` if the serialized URL string should include the search query, `false` otherwise. + * @default true + */ + search?: boolean | undefined; + /** + * `true` if Unicode characters appearing in the host component of the URL string should be encoded directly as opposed to + * being Punycode encoded. + * @default false + */ + unicode?: boolean | undefined; + } + /** + * Browser-compatible `URL` class, implemented by following the WHATWG URL + * Standard. [Examples of parsed URLs](https://url.spec.whatwg.org/#example-url-parsing) may be found in the Standard itself. + * The `URL` class is also available on the global object. + * + * In accordance with browser conventions, all properties of `URL` objects + * are implemented as getters and setters on the class prototype, rather than as + * data properties on the object itself. Thus, unlike `legacy urlObject`s, + * using the `delete` keyword on any properties of `URL` objects (e.g. `delete myURL.protocol`, `delete myURL.pathname`, etc) has no effect but will still + * return `true`. + * @since v7.0.0, v6.13.0 + */ + class URL { + /** + * Creates a `'blob:nodedata:...'` URL string that represents the given `Blob` object and can be used to retrieve the `Blob` later. + * + * ```js + * import { + * Blob, + * resolveObjectURL, + * } from 'node:buffer'; + * + * const blob = new Blob(['hello']); + * const id = URL.createObjectURL(blob); + * + * // later... + * + * const otherBlob = resolveObjectURL(id); + * console.log(otherBlob.size); + * ``` + * + * The data stored by the registered `Blob` will be retained in memory until `URL.revokeObjectURL()` is called to remove it. + * + * `Blob` objects are registered within the current thread. If using Worker + * Threads, `Blob` objects registered within one Worker will not be available + * to other workers or the main thread. + * @since v16.7.0 + * @experimental + */ + static createObjectURL(blob: NodeBlob): string; + /** + * Removes the stored `Blob` identified by the given ID. Attempting to revoke a + * ID that isn't registered will silently fail. + * @since v16.7.0 + * @experimental + * @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`. + */ + static revokeObjectURL(id: string): void; + /** + * Checks if an `input` relative to the `base` can be parsed to a `URL`. + * + * ```js + * const isValid = URL.canParse('/foo', 'https://example.org/'); // true + * + * const isNotValid = URL.canParse('/foo'); // false + * ``` + * @since v19.9.0 + * @param input The absolute or relative input URL to parse. If `input` is relative, then `base` is required. If `input` is absolute, the `base` is ignored. If `input` is not a string, it is + * `converted to a string` first. + * @param base The base URL to resolve against if the `input` is not absolute. If `base` is not a string, it is `converted to a string` first. + */ + static canParse(input: string, base?: string): boolean; + /** + * Parses a string as a URL. If `base` is provided, it will be used as the base URL for the purpose of resolving non-absolute `input` URLs. + * Returns `null` if `input` is not a valid. + * @param input The absolute or relative input URL to parse. If `input` is relative, then `base` is required. If `input` is absolute, the `base` is ignored. If `input` is not a string, it is + * `converted to a string` first. + * @param base The base URL to resolve against if the `input` is not absolute. If `base` is not a string, it is `converted to a string` first. + * @since v20.18.0 + */ + static parse(input: string, base?: string): URL | null; + constructor(input: string | { toString: () => string }, base?: string | URL); + /** + * Gets and sets the fragment portion of the URL. + * + * ```js + * const myURL = new URL('https://example.org/foo#bar'); + * console.log(myURL.hash); + * // Prints #bar + * + * myURL.hash = 'baz'; + * console.log(myURL.href); + * // Prints https://example.org/foo#baz + * ``` + * + * Invalid URL characters included in the value assigned to the `hash` property + * are `percent-encoded`. The selection of which characters to + * percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce. + */ + hash: string; + /** + * Gets and sets the host portion of the URL. + * + * ```js + * const myURL = new URL('https://example.org:81/foo'); + * console.log(myURL.host); + * // Prints example.org:81 + * + * myURL.host = 'example.com:82'; + * console.log(myURL.href); + * // Prints https://example.com:82/foo + * ``` + * + * Invalid host values assigned to the `host` property are ignored. + */ + host: string; + /** + * Gets and sets the host name portion of the URL. The key difference between`url.host` and `url.hostname` is that `url.hostname` does _not_ include the + * port. + * + * ```js + * const myURL = new URL('https://example.org:81/foo'); + * console.log(myURL.hostname); + * // Prints example.org + * + * // Setting the hostname does not change the port + * myURL.hostname = 'example.com'; + * console.log(myURL.href); + * // Prints https://example.com:81/foo + * + * // Use myURL.host to change the hostname and port + * myURL.host = 'example.org:82'; + * console.log(myURL.href); + * // Prints https://example.org:82/foo + * ``` + * + * Invalid host name values assigned to the `hostname` property are ignored. + */ + hostname: string; + /** + * Gets and sets the serialized URL. + * + * ```js + * const myURL = new URL('https://example.org/foo'); + * console.log(myURL.href); + * // Prints https://example.org/foo + * + * myURL.href = 'https://example.com/bar'; + * console.log(myURL.href); + * // Prints https://example.com/bar + * ``` + * + * Getting the value of the `href` property is equivalent to calling {@link toString}. + * + * Setting the value of this property to a new value is equivalent to creating a + * new `URL` object using `new URL(value)`. Each of the `URL` object's properties will be modified. + * + * If the value assigned to the `href` property is not a valid URL, a `TypeError` will be thrown. + */ + href: string; + /** + * Gets the read-only serialization of the URL's origin. + * + * ```js + * const myURL = new URL('https://example.org/foo/bar?baz'); + * console.log(myURL.origin); + * // Prints https://example.org + * ``` + * + * ```js + * const idnURL = new URL('https://測試'); + * console.log(idnURL.origin); + * // Prints https://xn--g6w251d + * + * console.log(idnURL.hostname); + * // Prints xn--g6w251d + * ``` + */ + readonly origin: string; + /** + * Gets and sets the password portion of the URL. + * + * ```js + * const myURL = new URL('https://abc:xyz@example.com'); + * console.log(myURL.password); + * // Prints xyz + * + * myURL.password = '123'; + * console.log(myURL.href); + * // Prints https://abc:123@example.com/ + * ``` + * + * Invalid URL characters included in the value assigned to the `password` property + * are `percent-encoded`. The selection of which characters to + * percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce. + */ + password: string; + /** + * Gets and sets the path portion of the URL. + * + * ```js + * const myURL = new URL('https://example.org/abc/xyz?123'); + * console.log(myURL.pathname); + * // Prints /abc/xyz + * + * myURL.pathname = '/abcdef'; + * console.log(myURL.href); + * // Prints https://example.org/abcdef?123 + * ``` + * + * Invalid URL characters included in the value assigned to the `pathname` property are `percent-encoded`. The selection of which characters + * to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce. + */ + pathname: string; + /** + * Gets and sets the port portion of the URL. + * + * The port value may be a number or a string containing a number in the range `0` to `65535` (inclusive). Setting the value to the default port of the `URL` objects given `protocol` will + * result in the `port` value becoming + * the empty string (`''`). + * + * The port value can be an empty string in which case the port depends on + * the protocol/scheme: + * + * + * + * Upon assigning a value to the port, the value will first be converted to a + * string using `.toString()`. + * + * If that string is invalid but it begins with a number, the leading number is + * assigned to `port`. + * If the number lies outside the range denoted above, it is ignored. + * + * ```js + * const myURL = new URL('https://example.org:8888'); + * console.log(myURL.port); + * // Prints 8888 + * + * // Default ports are automatically transformed to the empty string + * // (HTTPS protocol's default port is 443) + * myURL.port = '443'; + * console.log(myURL.port); + * // Prints the empty string + * console.log(myURL.href); + * // Prints https://example.org/ + * + * myURL.port = 1234; + * console.log(myURL.port); + * // Prints 1234 + * console.log(myURL.href); + * // Prints https://example.org:1234/ + * + * // Completely invalid port strings are ignored + * myURL.port = 'abcd'; + * console.log(myURL.port); + * // Prints 1234 + * + * // Leading numbers are treated as a port number + * myURL.port = '5678abcd'; + * console.log(myURL.port); + * // Prints 5678 + * + * // Non-integers are truncated + * myURL.port = 1234.5678; + * console.log(myURL.port); + * // Prints 1234 + * + * // Out-of-range numbers which are not represented in scientific notation + * // will be ignored. + * myURL.port = 1e10; // 10000000000, will be range-checked as described below + * console.log(myURL.port); + * // Prints 1234 + * ``` + * + * Numbers which contain a decimal point, + * such as floating-point numbers or numbers in scientific notation, + * are not an exception to this rule. + * Leading numbers up to the decimal point will be set as the URL's port, + * assuming they are valid: + * + * ```js + * myURL.port = 4.567e21; + * console.log(myURL.port); + * // Prints 4 (because it is the leading number in the string '4.567e21') + * ``` + */ + port: string; + /** + * Gets and sets the protocol portion of the URL. + * + * ```js + * const myURL = new URL('https://example.org'); + * console.log(myURL.protocol); + * // Prints https: + * + * myURL.protocol = 'ftp'; + * console.log(myURL.href); + * // Prints ftp://example.org/ + * ``` + * + * Invalid URL protocol values assigned to the `protocol` property are ignored. + */ + protocol: string; + /** + * Gets and sets the serialized query portion of the URL. + * + * ```js + * const myURL = new URL('https://example.org/abc?123'); + * console.log(myURL.search); + * // Prints ?123 + * + * myURL.search = 'abc=xyz'; + * console.log(myURL.href); + * // Prints https://example.org/abc?abc=xyz + * ``` + * + * Any invalid URL characters appearing in the value assigned the `search` property will be `percent-encoded`. The selection of which + * characters to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce. + */ + search: string; + /** + * Gets the `URLSearchParams` object representing the query parameters of the + * URL. This property is read-only but the `URLSearchParams` object it provides + * can be used to mutate the URL instance; to replace the entirety of query + * parameters of the URL, use the {@link search} setter. See `URLSearchParams` documentation for details. + * + * Use care when using `.searchParams` to modify the `URL` because, + * per the WHATWG specification, the `URLSearchParams` object uses + * different rules to determine which characters to percent-encode. For + * instance, the `URL` object will not percent encode the ASCII tilde (`~`) + * character, while `URLSearchParams` will always encode it: + * + * ```js + * const myURL = new URL('https://example.org/abc?foo=~bar'); + * + * console.log(myURL.search); // prints ?foo=~bar + * + * // Modify the URL via searchParams... + * myURL.searchParams.sort(); + * + * console.log(myURL.search); // prints ?foo=%7Ebar + * ``` + */ + readonly searchParams: URLSearchParams; + /** + * Gets and sets the username portion of the URL. + * + * ```js + * const myURL = new URL('https://abc:xyz@example.com'); + * console.log(myURL.username); + * // Prints abc + * + * myURL.username = '123'; + * console.log(myURL.href); + * // Prints https://123:xyz@example.com/ + * ``` + * + * Any invalid URL characters appearing in the value assigned the `username` property will be `percent-encoded`. The selection of which + * characters to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce. + */ + username: string; + /** + * The `toString()` method on the `URL` object returns the serialized URL. The + * value returned is equivalent to that of {@link href} and {@link toJSON}. + */ + toString(): string; + /** + * The `toJSON()` method on the `URL` object returns the serialized URL. The + * value returned is equivalent to that of {@link href} and {@link toString}. + * + * This method is automatically called when an `URL` object is serialized + * with [`JSON.stringify()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify). + * + * ```js + * const myURLs = [ + * new URL('https://www.example.com'), + * new URL('https://test.example.org'), + * ]; + * console.log(JSON.stringify(myURLs)); + * // Prints ["https://www.example.com/","https://test.example.org/"] + * ``` + */ + toJSON(): string; + } + interface URLSearchParamsIterator extends NodeJS.Iterator { + [Symbol.iterator](): URLSearchParamsIterator; + } + /** + * The `URLSearchParams` API provides read and write access to the query of a `URL`. The `URLSearchParams` class can also be used standalone with one of the + * four following constructors. + * The `URLSearchParams` class is also available on the global object. + * + * The WHATWG `URLSearchParams` interface and the `querystring` module have + * similar purpose, but the purpose of the `querystring` module is more + * general, as it allows the customization of delimiter characters (`&` and `=`). + * On the other hand, this API is designed purely for URL query strings. + * + * ```js + * const myURL = new URL('https://example.org/?abc=123'); + * console.log(myURL.searchParams.get('abc')); + * // Prints 123 + * + * myURL.searchParams.append('abc', 'xyz'); + * console.log(myURL.href); + * // Prints https://example.org/?abc=123&abc=xyz + * + * myURL.searchParams.delete('abc'); + * myURL.searchParams.set('a', 'b'); + * console.log(myURL.href); + * // Prints https://example.org/?a=b + * + * const newSearchParams = new URLSearchParams(myURL.searchParams); + * // The above is equivalent to + * // const newSearchParams = new URLSearchParams(myURL.search); + * + * newSearchParams.append('a', 'c'); + * console.log(myURL.href); + * // Prints https://example.org/?a=b + * console.log(newSearchParams.toString()); + * // Prints a=b&a=c + * + * // newSearchParams.toString() is implicitly called + * myURL.search = newSearchParams; + * console.log(myURL.href); + * // Prints https://example.org/?a=b&a=c + * newSearchParams.delete('a'); + * console.log(myURL.href); + * // Prints https://example.org/?a=b&a=c + * ``` + * @since v7.5.0, v6.13.0 + */ + class URLSearchParams implements Iterable<[string, string]> { + constructor( + init?: + | URLSearchParams + | string + | Record + | Iterable<[string, string]> + | ReadonlyArray<[string, string]>, + ); + /** + * Append a new name-value pair to the query string. + */ + append(name: string, value: string): void; + /** + * If `value` is provided, removes all name-value pairs + * where name is `name` and value is `value`. + * + * If `value` is not provided, removes all name-value pairs whose name is `name`. + */ + delete(name: string, value?: string): void; + /** + * Returns an ES6 `Iterator` over each of the name-value pairs in the query. + * Each item of the iterator is a JavaScript `Array`. The first item of the `Array` is the `name`, the second item of the `Array` is the `value`. + * + * Alias for `urlSearchParams[@@iterator]()`. + */ + entries(): URLSearchParamsIterator<[string, string]>; + /** + * Iterates over each name-value pair in the query and invokes the given function. + * + * ```js + * const myURL = new URL('https://example.org/?a=b&c=d'); + * myURL.searchParams.forEach((value, name, searchParams) => { + * console.log(name, value, myURL.searchParams === searchParams); + * }); + * // Prints: + * // a b true + * // c d true + * ``` + * @param fn Invoked for each name-value pair in the query + * @param thisArg To be used as `this` value for when `fn` is called + */ + forEach( + fn: (this: TThis, value: string, name: string, searchParams: URLSearchParams) => void, + thisArg?: TThis, + ): void; + /** + * Returns the value of the first name-value pair whose name is `name`. If there + * are no such pairs, `null` is returned. + * @return or `null` if there is no name-value pair with the given `name`. + */ + get(name: string): string | null; + /** + * Returns the values of all name-value pairs whose name is `name`. If there are + * no such pairs, an empty array is returned. + */ + getAll(name: string): string[]; + /** + * Checks if the `URLSearchParams` object contains key-value pair(s) based on `name` and an optional `value` argument. + * + * If `value` is provided, returns `true` when name-value pair with + * same `name` and `value` exists. + * + * If `value` is not provided, returns `true` if there is at least one name-value + * pair whose name is `name`. + */ + has(name: string, value?: string): boolean; + /** + * Returns an ES6 `Iterator` over the names of each name-value pair. + * + * ```js + * const params = new URLSearchParams('foo=bar&foo=baz'); + * for (const name of params.keys()) { + * console.log(name); + * } + * // Prints: + * // foo + * // foo + * ``` + */ + keys(): URLSearchParamsIterator; + /** + * Sets the value in the `URLSearchParams` object associated with `name` to `value`. If there are any pre-existing name-value pairs whose names are `name`, + * set the first such pair's value to `value` and remove all others. If not, + * append the name-value pair to the query string. + * + * ```js + * const params = new URLSearchParams(); + * params.append('foo', 'bar'); + * params.append('foo', 'baz'); + * params.append('abc', 'def'); + * console.log(params.toString()); + * // Prints foo=bar&foo=baz&abc=def + * + * params.set('foo', 'def'); + * params.set('xyz', 'opq'); + * console.log(params.toString()); + * // Prints foo=def&abc=def&xyz=opq + * ``` + */ + set(name: string, value: string): void; + /** + * The total number of parameter entries. + * @since v19.8.0 + */ + readonly size: number; + /** + * Sort all existing name-value pairs in-place by their names. Sorting is done + * with a [stable sorting algorithm](https://en.wikipedia.org/wiki/Sorting_algorithm#Stability), so relative order between name-value pairs + * with the same name is preserved. + * + * This method can be used, in particular, to increase cache hits. + * + * ```js + * const params = new URLSearchParams('query[]=abc&type=search&query[]=123'); + * params.sort(); + * console.log(params.toString()); + * // Prints query%5B%5D=abc&query%5B%5D=123&type=search + * ``` + * @since v7.7.0, v6.13.0 + */ + sort(): void; + /** + * Returns the search parameters serialized as a string, with characters + * percent-encoded where necessary. + */ + toString(): string; + /** + * Returns an ES6 `Iterator` over the values of each name-value pair. + */ + values(): URLSearchParamsIterator; + [Symbol.iterator](): URLSearchParamsIterator<[string, string]>; + } + import { URL as _URL, URLSearchParams as _URLSearchParams } from "url"; + global { + interface URLSearchParams extends _URLSearchParams {} + interface URL extends _URL {} + interface Global { + URL: typeof _URL; + URLSearchParams: typeof _URLSearchParams; + } + /** + * `URL` class is a global reference for `import { URL } from 'node:url'` + * https://nodejs.org/api/url.html#the-whatwg-url-api + * @since v10.0.0 + */ + var URL: typeof globalThis extends { + onmessage: any; + URL: infer T; + } ? T + : typeof _URL; + /** + * `URLSearchParams` class is a global reference for `import { URLSearchParams } from 'node:url'` + * https://nodejs.org/api/url.html#class-urlsearchparams + * @since v10.0.0 + */ + var URLSearchParams: typeof globalThis extends { + onmessage: any; + URLSearchParams: infer T; + } ? T + : typeof _URLSearchParams; + } +} +declare module "node:url" { + export * from "url"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/util.d.ts b/backend/node_modules/httpx/node_modules/@types/node/util.d.ts new file mode 100644 index 0000000..e5e2cb6 --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/util.d.ts @@ -0,0 +1,2331 @@ +/** + * The `node:util` module supports the needs of Node.js internal APIs. Many of the + * utilities are useful for application and module developers as well. To access + * it: + * + * ```js + * import util from 'node:util'; + * ``` + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/util.js) + */ +declare module "util" { + import * as types from "node:util/types"; + export interface InspectOptions { + /** + * If `true`, object's non-enumerable symbols and properties are included in the formatted result. + * `WeakMap` and `WeakSet` entries are also included as well as user defined prototype properties (excluding method properties). + * @default false + */ + showHidden?: boolean | undefined; + /** + * Specifies the number of times to recurse while formatting object. + * This is useful for inspecting large objects. + * To recurse up to the maximum call stack size pass `Infinity` or `null`. + * @default 2 + */ + depth?: number | null | undefined; + /** + * If `true`, the output is styled with ANSI color codes. Colors are customizable. + */ + colors?: boolean | undefined; + /** + * If `false`, `[util.inspect.custom](depth, opts, inspect)` functions are not invoked. + * @default true + */ + customInspect?: boolean | undefined; + /** + * If `true`, `Proxy` inspection includes the target and handler objects. + * @default false + */ + showProxy?: boolean | undefined; + /** + * Specifies the maximum number of `Array`, `TypedArray`, `WeakMap`, and `WeakSet` elements + * to include when formatting. Set to `null` or `Infinity` to show all elements. + * Set to `0` or negative to show no elements. + * @default 100 + */ + maxArrayLength?: number | null | undefined; + /** + * Specifies the maximum number of characters to + * include when formatting. Set to `null` or `Infinity` to show all elements. + * Set to `0` or negative to show no characters. + * @default 10000 + */ + maxStringLength?: number | null | undefined; + /** + * The length at which input values are split across multiple lines. + * Set to `Infinity` to format the input as a single line + * (in combination with `compact` set to `true` or any number >= `1`). + * @default 80 + */ + breakLength?: number | undefined; + /** + * Setting this to `false` causes each object key + * to be displayed on a new line. It will also add new lines to text that is + * longer than `breakLength`. If set to a number, the most `n` inner elements + * are united on a single line as long as all properties fit into + * `breakLength`. Short array elements are also grouped together. Note that no + * text will be reduced below 16 characters, no matter the `breakLength` size. + * For more information, see the example below. + * @default true + */ + compact?: boolean | number | undefined; + /** + * If set to `true` or a function, all properties of an object, and `Set` and `Map` + * entries are sorted in the resulting string. + * If set to `true` the default sort is used. + * If set to a function, it is used as a compare function. + */ + sorted?: boolean | ((a: string, b: string) => number) | undefined; + /** + * If set to `true`, getters are going to be + * inspected as well. If set to `'get'` only getters without setter are going + * to be inspected. If set to `'set'` only getters having a corresponding + * setter are going to be inspected. This might cause side effects depending on + * the getter function. + * @default false + */ + getters?: "get" | "set" | boolean | undefined; + /** + * If set to `true`, an underscore is used to separate every three digits in all bigints and numbers. + * @default false + */ + numericSeparator?: boolean | undefined; + } + export type Style = + | "special" + | "number" + | "bigint" + | "boolean" + | "undefined" + | "null" + | "string" + | "symbol" + | "date" + | "regexp" + | "module"; + export type CustomInspectFunction = (depth: number, options: InspectOptionsStylized) => any; // TODO: , inspect: inspect + export interface InspectOptionsStylized extends InspectOptions { + stylize(text: string, styleType: Style): string; + } + /** + * The `util.format()` method returns a formatted string using the first argument + * as a `printf`-like format string which can contain zero or more format + * specifiers. Each specifier is replaced with the converted value from the + * corresponding argument. Supported specifiers are: + * + * If a specifier does not have a corresponding argument, it is not replaced: + * + * ```js + * util.format('%s:%s', 'foo'); + * // Returns: 'foo:%s' + * ``` + * + * Values that are not part of the format string are formatted using `util.inspect()` if their type is not `string`. + * + * If there are more arguments passed to the `util.format()` method than the + * number of specifiers, the extra arguments are concatenated to the returned + * string, separated by spaces: + * + * ```js + * util.format('%s:%s', 'foo', 'bar', 'baz'); + * // Returns: 'foo:bar baz' + * ``` + * + * If the first argument does not contain a valid format specifier, `util.format()` returns a string that is the concatenation of all arguments separated by spaces: + * + * ```js + * util.format(1, 2, 3); + * // Returns: '1 2 3' + * ``` + * + * If only one argument is passed to `util.format()`, it is returned as it is + * without any formatting: + * + * ```js + * util.format('%% %s'); + * // Returns: '%% %s' + * ``` + * + * `util.format()` is a synchronous method that is intended as a debugging tool. + * Some input values can have a significant performance overhead that can block the + * event loop. Use this function with care and never in a hot code path. + * @since v0.5.3 + * @param format A `printf`-like format string. + */ + export function format(format?: any, ...param: any[]): string; + /** + * This function is identical to {@link format}, except in that it takes + * an `inspectOptions` argument which specifies options that are passed along to {@link inspect}. + * + * ```js + * util.formatWithOptions({ colors: true }, 'See object %O', { foo: 42 }); + * // Returns 'See object { foo: 42 }', where `42` is colored as a number + * // when printed to a terminal. + * ``` + * @since v10.0.0 + */ + export function formatWithOptions(inspectOptions: InspectOptions, format?: any, ...param: any[]): string; + /** + * Returns the string name for a numeric error code that comes from a Node.js API. + * The mapping between error codes and error names is platform-dependent. + * See `Common System Errors` for the names of common errors. + * + * ```js + * fs.access('file/that/does/not/exist', (err) => { + * const name = util.getSystemErrorName(err.errno); + * console.error(name); // ENOENT + * }); + * ``` + * @since v9.7.0 + */ + export function getSystemErrorName(err: number): string; + /** + * Returns a Map of all system error codes available from the Node.js API. + * The mapping between error codes and error names is platform-dependent. + * See `Common System Errors` for the names of common errors. + * + * ```js + * fs.access('file/that/does/not/exist', (err) => { + * const errorMap = util.getSystemErrorMap(); + * const name = errorMap.get(err.errno); + * console.error(name); // ENOENT + * }); + * ``` + * @since v16.0.0, v14.17.0 + */ + export function getSystemErrorMap(): Map; + /** + * The `util.log()` method prints the given `string` to `stdout` with an included + * timestamp. + * + * ```js + * import util from 'node:util'; + * + * util.log('Timestamped message.'); + * ``` + * @since v0.3.0 + * @deprecated Since v6.0.0 - Use a third party module instead. + */ + export function log(string: string): void; + /** + * Returns the `string` after replacing any surrogate code points + * (or equivalently, any unpaired surrogate code units) with the + * Unicode "replacement character" U+FFFD. + * @since v16.8.0, v14.18.0 + */ + export function toUSVString(string: string): string; + /** + * Creates and returns an `AbortController` instance whose `AbortSignal` is marked + * as transferable and can be used with `structuredClone()` or `postMessage()`. + * @since v18.11.0 + * @experimental + * @returns A transferable AbortController + */ + export function transferableAbortController(): AbortController; + /** + * Marks the given `AbortSignal` as transferable so that it can be used with`structuredClone()` and `postMessage()`. + * + * ```js + * const signal = transferableAbortSignal(AbortSignal.timeout(100)); + * const channel = new MessageChannel(); + * channel.port2.postMessage(signal, [signal]); + * ``` + * @since v18.11.0 + * @experimental + * @param signal The AbortSignal + * @returns The same AbortSignal + */ + export function transferableAbortSignal(signal: AbortSignal): AbortSignal; + /** + * Listens to abort event on the provided `signal` and + * returns a promise that is fulfilled when the `signal` is + * aborted. If the passed `resource` is garbage collected before the `signal` is + * aborted, the returned promise shall remain pending indefinitely. + * + * ```js + * import { aborted } from 'node:util'; + * + * const dependent = obtainSomethingAbortable(); + * + * aborted(dependent.signal, dependent).then(() => { + * // Do something when dependent is aborted. + * }); + * + * dependent.on('event', () => { + * dependent.abort(); + * }); + * ``` + * @since v19.7.0 + * @experimental + * @param resource Any non-null entity, reference to which is held weakly. + */ + export function aborted(signal: AbortSignal, resource: any): Promise; + /** + * The `util.inspect()` method returns a string representation of `object` that is + * intended for debugging. The output of `util.inspect` may change at any time + * and should not be depended upon programmatically. Additional `options` may be + * passed that alter the result. `util.inspect()` will use the constructor's name and/or `@@toStringTag` to make + * an identifiable tag for an inspected value. + * + * ```js + * class Foo { + * get [Symbol.toStringTag]() { + * return 'bar'; + * } + * } + * + * class Bar {} + * + * const baz = Object.create(null, { [Symbol.toStringTag]: { value: 'foo' } }); + * + * util.inspect(new Foo()); // 'Foo [bar] {}' + * util.inspect(new Bar()); // 'Bar {}' + * util.inspect(baz); // '[foo] {}' + * ``` + * + * Circular references point to their anchor by using a reference index: + * + * ```js + * import { inspect } from 'node:util'; + * + * const obj = {}; + * obj.a = [obj]; + * obj.b = {}; + * obj.b.inner = obj.b; + * obj.b.obj = obj; + * + * console.log(inspect(obj)); + * // { + * // a: [ [Circular *1] ], + * // b: { inner: [Circular *2], obj: [Circular *1] } + * // } + * ``` + * + * The following example inspects all properties of the `util` object: + * + * ```js + * import util from 'node:util'; + * + * console.log(util.inspect(util, { showHidden: true, depth: null })); + * ``` + * + * The following example highlights the effect of the `compact` option: + * + * ```js + * import util from 'node:util'; + * + * const o = { + * a: [1, 2, [[ + * 'Lorem ipsum dolor sit amet,\nconsectetur adipiscing elit, sed do ' + + * 'eiusmod \ntempor incididunt ut labore et dolore magna aliqua.', + * 'test', + * 'foo']], 4], + * b: new Map([['za', 1], ['zb', 'test']]), + * }; + * console.log(util.inspect(o, { compact: true, depth: 5, breakLength: 80 })); + * + * // { a: + * // [ 1, + * // 2, + * // [ [ 'Lorem ipsum dolor sit amet,\nconsectetur [...]', // A long line + * // 'test', + * // 'foo' ] ], + * // 4 ], + * // b: Map(2) { 'za' => 1, 'zb' => 'test' } } + * + * // Setting `compact` to false or an integer creates more reader friendly output. + * console.log(util.inspect(o, { compact: false, depth: 5, breakLength: 80 })); + * + * // { + * // a: [ + * // 1, + * // 2, + * // [ + * // [ + * // 'Lorem ipsum dolor sit amet,\n' + + * // 'consectetur adipiscing elit, sed do eiusmod \n' + + * // 'tempor incididunt ut labore et dolore magna aliqua.', + * // 'test', + * // 'foo' + * // ] + * // ], + * // 4 + * // ], + * // b: Map(2) { + * // 'za' => 1, + * // 'zb' => 'test' + * // } + * // } + * + * // Setting `breakLength` to e.g. 150 will print the "Lorem ipsum" text in a + * // single line. + * ``` + * + * The `showHidden` option allows [`WeakMap`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap) and + * [`WeakSet`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet) entries to be + * inspected. If there are more entries than `maxArrayLength`, there is no + * guarantee which entries are displayed. That means retrieving the same [`WeakSet`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet) entries twice may + * result in different output. Furthermore, entries + * with no remaining strong references may be garbage collected at any time. + * + * ```js + * import { inspect } from 'node:util'; + * + * const obj = { a: 1 }; + * const obj2 = { b: 2 }; + * const weakSet = new WeakSet([obj, obj2]); + * + * console.log(inspect(weakSet, { showHidden: true })); + * // WeakSet { { a: 1 }, { b: 2 } } + * ``` + * + * The `sorted` option ensures that an object's property insertion order does not + * impact the result of `util.inspect()`. + * + * ```js + * import { inspect } from 'node:util'; + * import assert from 'node:assert'; + * + * const o1 = { + * b: [2, 3, 1], + * a: '`a` comes before `b`', + * c: new Set([2, 3, 1]), + * }; + * console.log(inspect(o1, { sorted: true })); + * // { a: '`a` comes before `b`', b: [ 2, 3, 1 ], c: Set(3) { 1, 2, 3 } } + * console.log(inspect(o1, { sorted: (a, b) => b.localeCompare(a) })); + * // { c: Set(3) { 3, 2, 1 }, b: [ 2, 3, 1 ], a: '`a` comes before `b`' } + * + * const o2 = { + * c: new Set([2, 1, 3]), + * a: '`a` comes before `b`', + * b: [2, 3, 1], + * }; + * assert.strict.equal( + * inspect(o1, { sorted: true }), + * inspect(o2, { sorted: true }), + * ); + * ``` + * + * The `numericSeparator` option adds an underscore every three digits to all + * numbers. + * + * ```js + * import { inspect } from 'node:util'; + * + * const thousand = 1_000; + * const million = 1_000_000; + * const bigNumber = 123_456_789n; + * const bigDecimal = 1_234.123_45; + * + * console.log(inspect(thousand, { numericSeparator: true })); + * // 1_000 + * console.log(inspect(million, { numericSeparator: true })); + * // 1_000_000 + * console.log(inspect(bigNumber, { numericSeparator: true })); + * // 123_456_789n + * console.log(inspect(bigDecimal, { numericSeparator: true })); + * // 1_234.123_45 + * ``` + * + * `util.inspect()` is a synchronous method intended for debugging. Its maximum + * output length is approximately 128 MiB. Inputs that result in longer output will + * be truncated. + * @since v0.3.0 + * @param object Any JavaScript primitive or `Object`. + * @return The representation of `object`. + */ + export function inspect(object: any, showHidden?: boolean, depth?: number | null, color?: boolean): string; + export function inspect(object: any, options?: InspectOptions): string; + export namespace inspect { + let colors: NodeJS.Dict<[number, number]>; + let styles: { + [K in Style]: string; + }; + let defaultOptions: InspectOptions; + /** + * Allows changing inspect settings from the repl. + */ + let replDefaults: InspectOptions; + /** + * That can be used to declare custom inspect functions. + */ + const custom: unique symbol; + } + /** + * Alias for [`Array.isArray()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray). + * + * Returns `true` if the given `object` is an `Array`. Otherwise, returns `false`. + * + * ```js + * import util from 'node:util'; + * + * util.isArray([]); + * // Returns: true + * util.isArray(new Array()); + * // Returns: true + * util.isArray({}); + * // Returns: false + * ``` + * @since v0.6.0 + * @deprecated Since v4.0.0 - Use `isArray` instead. + */ + export function isArray(object: unknown): object is unknown[]; + /** + * Returns `true` if the given `object` is a `RegExp`. Otherwise, returns `false`. + * + * ```js + * import util from 'node:util'; + * + * util.isRegExp(/some regexp/); + * // Returns: true + * util.isRegExp(new RegExp('another regexp')); + * // Returns: true + * util.isRegExp({}); + * // Returns: false + * ``` + * @since v0.6.0 + * @deprecated Since v4.0.0 - Deprecated + */ + export function isRegExp(object: unknown): object is RegExp; + /** + * Returns `true` if the given `object` is a `Date`. Otherwise, returns `false`. + * + * ```js + * import util from 'node:util'; + * + * util.isDate(new Date()); + * // Returns: true + * util.isDate(Date()); + * // false (without 'new' returns a String) + * util.isDate({}); + * // Returns: false + * ``` + * @since v0.6.0 + * @deprecated Since v4.0.0 - Use {@link types.isDate} instead. + */ + export function isDate(object: unknown): object is Date; + /** + * Returns `true` if the given `object` is an `Error`. Otherwise, returns `false`. + * + * ```js + * import util from 'node:util'; + * + * util.isError(new Error()); + * // Returns: true + * util.isError(new TypeError()); + * // Returns: true + * util.isError({ name: 'Error', message: 'an error occurred' }); + * // Returns: false + * ``` + * + * This method relies on `Object.prototype.toString()` behavior. It is + * possible to obtain an incorrect result when the `object` argument manipulates `@@toStringTag`. + * + * ```js + * import util from 'node:util'; + * const obj = { name: 'Error', message: 'an error occurred' }; + * + * util.isError(obj); + * // Returns: false + * obj[Symbol.toStringTag] = 'Error'; + * util.isError(obj); + * // Returns: true + * ``` + * @since v0.6.0 + * @deprecated Since v4.0.0 - Use {@link types.isNativeError} instead. + */ + export function isError(object: unknown): object is Error; + /** + * Usage of `util.inherits()` is discouraged. Please use the ES6 `class` and `extends` keywords to get language level inheritance support. Also note + * that the two styles are [semantically incompatible](https://github.com/nodejs/node/issues/4179). + * + * Inherit the prototype methods from one [constructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/constructor) into another. The + * prototype of `constructor` will be set to a new object created from `superConstructor`. + * + * This mainly adds some input validation on top of`Object.setPrototypeOf(constructor.prototype, superConstructor.prototype)`. + * As an additional convenience, `superConstructor` will be accessible + * through the `constructor.super_` property. + * + * ```js + * import util from 'node:util'; + * import EventEmitter from 'node:events'; + * + * function MyStream() { + * EventEmitter.call(this); + * } + * + * util.inherits(MyStream, EventEmitter); + * + * MyStream.prototype.write = function(data) { + * this.emit('data', data); + * }; + * + * const stream = new MyStream(); + * + * console.log(stream instanceof EventEmitter); // true + * console.log(MyStream.super_ === EventEmitter); // true + * + * stream.on('data', (data) => { + * console.log(`Received data: "${data}"`); + * }); + * stream.write('It works!'); // Received data: "It works!" + * ``` + * + * ES6 example using `class` and `extends`: + * + * ```js + * import EventEmitter from 'node:events'; + * + * class MyStream extends EventEmitter { + * write(data) { + * this.emit('data', data); + * } + * } + * + * const stream = new MyStream(); + * + * stream.on('data', (data) => { + * console.log(`Received data: "${data}"`); + * }); + * stream.write('With ES6'); + * ``` + * @since v0.3.0 + * @legacy Use ES2015 class syntax and `extends` keyword instead. + */ + export function inherits(constructor: unknown, superConstructor: unknown): void; + export type DebugLoggerFunction = (msg: string, ...param: unknown[]) => void; + export interface DebugLogger extends DebugLoggerFunction { + enabled: boolean; + } + /** + * The `util.debuglog()` method is used to create a function that conditionally + * writes debug messages to `stderr` based on the existence of the `NODE_DEBUG`environment variable. If the `section` name appears within the value of that + * environment variable, then the returned function operates similar to `console.error()`. If not, then the returned function is a no-op. + * + * ```js + * import util from 'node:util'; + * const debuglog = util.debuglog('foo'); + * + * debuglog('hello from foo [%d]', 123); + * ``` + * + * If this program is run with `NODE_DEBUG=foo` in the environment, then + * it will output something like: + * + * ```console + * FOO 3245: hello from foo [123] + * ``` + * + * where `3245` is the process id. If it is not run with that + * environment variable set, then it will not print anything. + * + * The `section` supports wildcard also: + * + * ```js + * import util from 'node:util'; + * const debuglog = util.debuglog('foo-bar'); + * + * debuglog('hi there, it\'s foo-bar [%d]', 2333); + * ``` + * + * if it is run with `NODE_DEBUG=foo*` in the environment, then it will output + * something like: + * + * ```console + * FOO-BAR 3257: hi there, it's foo-bar [2333] + * ``` + * + * Multiple comma-separated `section` names may be specified in the `NODE_DEBUG`environment variable: `NODE_DEBUG=fs,net,tls`. + * + * The optional `callback` argument can be used to replace the logging function + * with a different function that doesn't have any initialization or + * unnecessary wrapping. + * + * ```js + * import util from 'node:util'; + * let debuglog = util.debuglog('internals', (debug) => { + * // Replace with a logging function that optimizes out + * // testing if the section is enabled + * debuglog = debug; + * }); + * ``` + * @since v0.11.3 + * @param section A string identifying the portion of the application for which the `debuglog` function is being created. + * @param callback A callback invoked the first time the logging function is called with a function argument that is a more optimized logging function. + * @return The logging function + */ + export function debuglog(section: string, callback?: (fn: DebugLoggerFunction) => void): DebugLogger; + export const debug: typeof debuglog; + /** + * Returns `true` if the given `object` is a `Boolean`. Otherwise, returns `false`. + * + * ```js + * import util from 'node:util'; + * + * util.isBoolean(1); + * // Returns: false + * util.isBoolean(0); + * // Returns: false + * util.isBoolean(false); + * // Returns: true + * ``` + * @since v0.11.5 + * @deprecated Since v4.0.0 - Use `typeof value === 'boolean'` instead. + */ + export function isBoolean(object: unknown): object is boolean; + /** + * Returns `true` if the given `object` is a `Buffer`. Otherwise, returns `false`. + * + * ```js + * import util from 'node:util'; + * + * util.isBuffer({ length: 0 }); + * // Returns: false + * util.isBuffer([]); + * // Returns: false + * util.isBuffer(Buffer.from('hello world')); + * // Returns: true + * ``` + * @since v0.11.5 + * @deprecated Since v4.0.0 - Use `isBuffer` instead. + */ + export function isBuffer(object: unknown): object is Buffer; + /** + * Returns `true` if the given `object` is a `Function`. Otherwise, returns `false`. + * + * ```js + * import util from 'node:util'; + * + * function Foo() {} + * const Bar = () => {}; + * + * util.isFunction({}); + * // Returns: false + * util.isFunction(Foo); + * // Returns: true + * util.isFunction(Bar); + * // Returns: true + * ``` + * @since v0.11.5 + * @deprecated Since v4.0.0 - Use `typeof value === 'function'` instead. + */ + export function isFunction(object: unknown): boolean; + /** + * Returns `true` if the given `object` is strictly `null`. Otherwise, returns`false`. + * + * ```js + * import util from 'node:util'; + * + * util.isNull(0); + * // Returns: false + * util.isNull(undefined); + * // Returns: false + * util.isNull(null); + * // Returns: true + * ``` + * @since v0.11.5 + * @deprecated Since v4.0.0 - Use `value === null` instead. + */ + export function isNull(object: unknown): object is null; + /** + * Returns `true` if the given `object` is `null` or `undefined`. Otherwise, + * returns `false`. + * + * ```js + * import util from 'node:util'; + * + * util.isNullOrUndefined(0); + * // Returns: false + * util.isNullOrUndefined(undefined); + * // Returns: true + * util.isNullOrUndefined(null); + * // Returns: true + * ``` + * @since v0.11.5 + * @deprecated Since v4.0.0 - Use `value === undefined || value === null` instead. + */ + export function isNullOrUndefined(object: unknown): object is null | undefined; + /** + * Returns `true` if the given `object` is a `Number`. Otherwise, returns `false`. + * + * ```js + * import util from 'node:util'; + * + * util.isNumber(false); + * // Returns: false + * util.isNumber(Infinity); + * // Returns: true + * util.isNumber(0); + * // Returns: true + * util.isNumber(NaN); + * // Returns: true + * ``` + * @since v0.11.5 + * @deprecated Since v4.0.0 - Use `typeof value === 'number'` instead. + */ + export function isNumber(object: unknown): object is number; + /** + * Returns `true` if the given `object` is strictly an `Object`**and** not a`Function` (even though functions are objects in JavaScript). + * Otherwise, returns `false`. + * + * ```js + * import util from 'node:util'; + * + * util.isObject(5); + * // Returns: false + * util.isObject(null); + * // Returns: false + * util.isObject({}); + * // Returns: true + * util.isObject(() => {}); + * // Returns: false + * ``` + * @since v0.11.5 + * @deprecated Since v4.0.0 - Use `value !== null && typeof value === 'object'` instead. + */ + export function isObject(object: unknown): boolean; + /** + * Returns `true` if the given `object` is a primitive type. Otherwise, returns`false`. + * + * ```js + * import util from 'node:util'; + * + * util.isPrimitive(5); + * // Returns: true + * util.isPrimitive('foo'); + * // Returns: true + * util.isPrimitive(false); + * // Returns: true + * util.isPrimitive(null); + * // Returns: true + * util.isPrimitive(undefined); + * // Returns: true + * util.isPrimitive({}); + * // Returns: false + * util.isPrimitive(() => {}); + * // Returns: false + * util.isPrimitive(/^$/); + * // Returns: false + * util.isPrimitive(new Date()); + * // Returns: false + * ``` + * @since v0.11.5 + * @deprecated Since v4.0.0 - Use `(typeof value !== 'object' && typeof value !== 'function') || value === null` instead. + */ + export function isPrimitive(object: unknown): boolean; + /** + * Returns `true` if the given `object` is a `string`. Otherwise, returns `false`. + * + * ```js + * import util from 'node:util'; + * + * util.isString(''); + * // Returns: true + * util.isString('foo'); + * // Returns: true + * util.isString(String('foo')); + * // Returns: true + * util.isString(5); + * // Returns: false + * ``` + * @since v0.11.5 + * @deprecated Since v4.0.0 - Use `typeof value === 'string'` instead. + */ + export function isString(object: unknown): object is string; + /** + * Returns `true` if the given `object` is a `Symbol`. Otherwise, returns `false`. + * + * ```js + * import util from 'node:util'; + * + * util.isSymbol(5); + * // Returns: false + * util.isSymbol('foo'); + * // Returns: false + * util.isSymbol(Symbol('foo')); + * // Returns: true + * ``` + * @since v0.11.5 + * @deprecated Since v4.0.0 - Use `typeof value === 'symbol'` instead. + */ + export function isSymbol(object: unknown): object is symbol; + /** + * Returns `true` if the given `object` is `undefined`. Otherwise, returns `false`. + * + * ```js + * import util from 'node:util'; + * + * const foo = undefined; + * util.isUndefined(5); + * // Returns: false + * util.isUndefined(foo); + * // Returns: true + * util.isUndefined(null); + * // Returns: false + * ``` + * @since v0.11.5 + * @deprecated Since v4.0.0 - Use `value === undefined` instead. + */ + export function isUndefined(object: unknown): object is undefined; + /** + * The `util.deprecate()` method wraps `fn` (which may be a function or class) in + * such a way that it is marked as deprecated. + * + * ```js + * import util from 'node:util'; + * + * exports.obsoleteFunction = util.deprecate(() => { + * // Do something here. + * }, 'obsoleteFunction() is deprecated. Use newShinyFunction() instead.'); + * ``` + * + * When called, `util.deprecate()` will return a function that will emit a `DeprecationWarning` using the `'warning'` event. The warning will + * be emitted and printed to `stderr` the first time the returned function is + * called. After the warning is emitted, the wrapped function is called without + * emitting a warning. + * + * If the same optional `code` is supplied in multiple calls to `util.deprecate()`, + * the warning will be emitted only once for that `code`. + * + * ```js + * import util from 'node:util'; + * + * const fn1 = util.deprecate(someFunction, someMessage, 'DEP0001'); + * const fn2 = util.deprecate(someOtherFunction, someOtherMessage, 'DEP0001'); + * fn1(); // Emits a deprecation warning with code DEP0001 + * fn2(); // Does not emit a deprecation warning because it has the same code + * ``` + * + * If either the `--no-deprecation` or `--no-warnings` command-line flags are + * used, or if the `process.noDeprecation` property is set to `true`_prior_ to + * the first deprecation warning, the `util.deprecate()` method does nothing. + * + * If the `--trace-deprecation` or `--trace-warnings` command-line flags are set, + * or the `process.traceDeprecation` property is set to `true`, a warning and a + * stack trace are printed to `stderr` the first time the deprecated function is + * called. + * + * If the `--throw-deprecation` command-line flag is set, or the `process.throwDeprecation` property is set to `true`, then an exception will be + * thrown when the deprecated function is called. + * + * The `--throw-deprecation` command-line flag and `process.throwDeprecation` property take precedence over `--trace-deprecation` and `process.traceDeprecation`. + * @since v0.8.0 + * @param fn The function that is being deprecated. + * @param msg A warning message to display when the deprecated function is invoked. + * @param code A deprecation code. See the `list of deprecated APIs` for a list of codes. + * @return The deprecated function wrapped to emit a warning. + */ + export function deprecate(fn: T, msg: string, code?: string): T; + /** + * Returns `true` if there is deep strict equality between `val1` and `val2`. + * Otherwise, returns `false`. + * + * See `assert.deepStrictEqual()` for more information about deep strict + * equality. + * @since v9.0.0 + */ + export function isDeepStrictEqual(val1: unknown, val2: unknown): boolean; + /** + * Returns `str` with any ANSI escape codes removed. + * + * ```js + * console.log(util.stripVTControlCharacters('\u001B[4mvalue\u001B[0m')); + * // Prints "value" + * ``` + * @since v16.11.0 + */ + export function stripVTControlCharacters(str: string): string; + /** + * Takes an `async` function (or a function that returns a `Promise`) and returns a + * function following the error-first callback style, i.e. taking + * an `(err, value) => ...` callback as the last argument. In the callback, the + * first argument will be the rejection reason (or `null` if the `Promise` resolved), and the second argument will be the resolved value. + * + * ```js + * import util from 'node:util'; + * + * async function fn() { + * return 'hello world'; + * } + * const callbackFunction = util.callbackify(fn); + * + * callbackFunction((err, ret) => { + * if (err) throw err; + * console.log(ret); + * }); + * ``` + * + * Will print: + * + * ```text + * hello world + * ``` + * + * The callback is executed asynchronously, and will have a limited stack trace. + * If the callback throws, the process will emit an `'uncaughtException'` event, and if not handled will exit. + * + * Since `null` has a special meaning as the first argument to a callback, if a + * wrapped function rejects a `Promise` with a falsy value as a reason, the value + * is wrapped in an `Error` with the original value stored in a field named `reason`. + * + * ```js + * function fn() { + * return Promise.reject(null); + * } + * const callbackFunction = util.callbackify(fn); + * + * callbackFunction((err, ret) => { + * // When the Promise was rejected with `null` it is wrapped with an Error and + * // the original value is stored in `reason`. + * err && Object.hasOwn(err, 'reason') && err.reason === null; // true + * }); + * ``` + * @since v8.2.0 + * @param fn An `async` function + * @return a callback style function + */ + export function callbackify(fn: () => Promise): (callback: (err: NodeJS.ErrnoException) => void) => void; + export function callbackify( + fn: () => Promise, + ): (callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void; + export function callbackify( + fn: (arg1: T1) => Promise, + ): (arg1: T1, callback: (err: NodeJS.ErrnoException) => void) => void; + export function callbackify( + fn: (arg1: T1) => Promise, + ): (arg1: T1, callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void; + export function callbackify( + fn: (arg1: T1, arg2: T2) => Promise, + ): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException) => void) => void; + export function callbackify( + fn: (arg1: T1, arg2: T2) => Promise, + ): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void; + export function callbackify( + fn: (arg1: T1, arg2: T2, arg3: T3) => Promise, + ): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException) => void) => void; + export function callbackify( + fn: (arg1: T1, arg2: T2, arg3: T3) => Promise, + ): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void; + export function callbackify( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise, + ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: NodeJS.ErrnoException) => void) => void; + export function callbackify( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise, + ): ( + arg1: T1, + arg2: T2, + arg3: T3, + arg4: T4, + callback: (err: NodeJS.ErrnoException | null, result: TResult) => void, + ) => void; + export function callbackify( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise, + ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: NodeJS.ErrnoException) => void) => void; + export function callbackify( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise, + ): ( + arg1: T1, + arg2: T2, + arg3: T3, + arg4: T4, + arg5: T5, + callback: (err: NodeJS.ErrnoException | null, result: TResult) => void, + ) => void; + export function callbackify( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise, + ): ( + arg1: T1, + arg2: T2, + arg3: T3, + arg4: T4, + arg5: T5, + arg6: T6, + callback: (err: NodeJS.ErrnoException) => void, + ) => void; + export function callbackify( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise, + ): ( + arg1: T1, + arg2: T2, + arg3: T3, + arg4: T4, + arg5: T5, + arg6: T6, + callback: (err: NodeJS.ErrnoException | null, result: TResult) => void, + ) => void; + export interface CustomPromisifyLegacy extends Function { + __promisify__: TCustom; + } + export interface CustomPromisifySymbol extends Function { + [promisify.custom]: TCustom; + } + export type CustomPromisify = + | CustomPromisifySymbol + | CustomPromisifyLegacy; + /** + * Takes a function following the common error-first callback style, i.e. taking + * an `(err, value) => ...` callback as the last argument, and returns a version + * that returns promises. + * + * ```js + * import util from 'node:util'; + * import fs from 'node:fs'; + * + * const stat = util.promisify(fs.stat); + * stat('.').then((stats) => { + * // Do something with `stats` + * }).catch((error) => { + * // Handle the error. + * }); + * ``` + * + * Or, equivalently using `async function`s: + * + * ```js + * import util from 'node:util'; + * import fs from 'node:fs'; + * + * const stat = util.promisify(fs.stat); + * + * async function callStat() { + * const stats = await stat('.'); + * console.log(`This directory is owned by ${stats.uid}`); + * } + * + * callStat(); + * ``` + * + * If there is an `original[util.promisify.custom]` property present, `promisify` will return its value, see `Custom promisified functions`. + * + * `promisify()` assumes that `original` is a function taking a callback as its + * final argument in all cases. If `original` is not a function, `promisify()` will throw an error. If `original` is a function but its last argument is not + * an error-first callback, it will still be passed an error-first + * callback as its last argument. + * + * Using `promisify()` on class methods or other methods that use `this` may not + * work as expected unless handled specially: + * + * ```js + * import util from 'node:util'; + * + * class Foo { + * constructor() { + * this.a = 42; + * } + * + * bar(callback) { + * callback(null, this.a); + * } + * } + * + * const foo = new Foo(); + * + * const naiveBar = util.promisify(foo.bar); + * // TypeError: Cannot read property 'a' of undefined + * // naiveBar().then(a => console.log(a)); + * + * naiveBar.call(foo).then((a) => console.log(a)); // '42' + * + * const bindBar = naiveBar.bind(foo); + * bindBar().then((a) => console.log(a)); // '42' + * ``` + * @since v8.0.0 + */ + export function promisify(fn: CustomPromisify): TCustom; + export function promisify( + fn: (callback: (err: any, result: TResult) => void) => void, + ): () => Promise; + export function promisify(fn: (callback: (err?: any) => void) => void): () => Promise; + export function promisify( + fn: (arg1: T1, callback: (err: any, result: TResult) => void) => void, + ): (arg1: T1) => Promise; + export function promisify(fn: (arg1: T1, callback: (err?: any) => void) => void): (arg1: T1) => Promise; + export function promisify( + fn: (arg1: T1, arg2: T2, callback: (err: any, result: TResult) => void) => void, + ): (arg1: T1, arg2: T2) => Promise; + export function promisify( + fn: (arg1: T1, arg2: T2, callback: (err?: any) => void) => void, + ): (arg1: T1, arg2: T2) => Promise; + export function promisify( + fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err: any, result: TResult) => void) => void, + ): (arg1: T1, arg2: T2, arg3: T3) => Promise; + export function promisify( + fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err?: any) => void) => void, + ): (arg1: T1, arg2: T2, arg3: T3) => Promise; + export function promisify( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: any, result: TResult) => void) => void, + ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise; + export function promisify( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err?: any) => void) => void, + ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise; + export function promisify( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: any, result: TResult) => void) => void, + ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise; + export function promisify( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err?: any) => void) => void, + ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise; + export function promisify(fn: Function): Function; + export namespace promisify { + /** + * That can be used to declare custom promisified variants of functions. + */ + const custom: unique symbol; + } + /** + * Stability: 1.1 - Active development + * Given an example `.env` file: + * + * ```js + * import { parseEnv } from 'node:util'; + * + * parseEnv('HELLO=world\nHELLO=oh my\n'); + * // Returns: { HELLO: 'oh my' } + * ``` + * @param content The raw contents of a `.env` file. + * @since v20.12.0 + */ + export function parseEnv(content: string): NodeJS.Dict; + // https://nodejs.org/docs/latest/api/util.html#foreground-colors + type ForegroundColors = + | "black" + | "blackBright" + | "blue" + | "blueBright" + | "cyan" + | "cyanBright" + | "gray" + | "green" + | "greenBright" + | "grey" + | "magenta" + | "magentaBright" + | "red" + | "redBright" + | "white" + | "whiteBright" + | "yellow" + | "yellowBright"; + // https://nodejs.org/docs/latest/api/util.html#background-colors + type BackgroundColors = + | "bgBlack" + | "bgBlackBright" + | "bgBlue" + | "bgBlueBright" + | "bgCyan" + | "bgCyanBright" + | "bgGray" + | "bgGreen" + | "bgGreenBright" + | "bgGrey" + | "bgMagenta" + | "bgMagentaBright" + | "bgRed" + | "bgRedBright" + | "bgWhite" + | "bgWhiteBright" + | "bgYellow" + | "bgYellowBright"; + // https://nodejs.org/docs/latest/api/util.html#modifiers + type Modifiers = + | "blink" + | "bold" + | "dim" + | "doubleunderline" + | "framed" + | "hidden" + | "inverse" + | "italic" + | "overlined" + | "reset" + | "strikethrough" + | "underline"; + export interface StyleTextOptions { + /** + * When true, `stream` is checked to see if it can handle colors. + * @default true + */ + validateStream?: boolean | undefined; + /** + * A stream that will be validated if it can be colored. + * @default process.stdout + */ + stream?: NodeJS.WritableStream | undefined; + } + /** + * Stability: 1.1 - Active development + * + * This function returns a formatted text considering the `format` passed. + * + * ```js + * import { styleText } from 'node:util'; + * const errorMessage = styleText('red', 'Error! Error!'); + * console.log(errorMessage); + * ``` + * + * `util.inspect.colors` also provides text formats such as `italic`, and `underline` and you can combine both: + * + * ```js + * console.log( + * util.styleText(['underline', 'italic'], 'My italic underlined message'), + * ); + * ``` + * + * When passing an array of formats, the order of the format applied is left to right so the following style + * might overwrite the previous one. + * + * ```js + * console.log( + * util.styleText(['red', 'green'], 'text'), // green + * ); + * ``` + * + * The full list of formats can be found in [modifiers](https://nodejs.org/docs/latest-v20.x/api/util.html#modifiers). + * @param format A text format or an Array of text formats defined in `util.inspect.colors`. + * @param text The text to to be formatted. + * @since v20.12.0 + */ + export function styleText( + format: + | ForegroundColors + | BackgroundColors + | Modifiers + | Array, + text: string, + options?: StyleTextOptions, + ): string; + /** + * An implementation of the [WHATWG Encoding Standard](https://encoding.spec.whatwg.org/) `TextDecoder` API. + * + * ```js + * const decoder = new TextDecoder(); + * const u8arr = new Uint8Array([72, 101, 108, 108, 111]); + * console.log(decoder.decode(u8arr)); // Hello + * ``` + * @since v8.3.0 + */ + export class TextDecoder { + /** + * The encoding supported by the `TextDecoder` instance. + */ + readonly encoding: string; + /** + * The value will be `true` if decoding errors result in a `TypeError` being + * thrown. + */ + readonly fatal: boolean; + /** + * The value will be `true` if the decoding result will include the byte order + * mark. + */ + readonly ignoreBOM: boolean; + constructor( + encoding?: string, + options?: { + fatal?: boolean | undefined; + ignoreBOM?: boolean | undefined; + }, + ); + /** + * Decodes the `input` and returns a string. If `options.stream` is `true`, any + * incomplete byte sequences occurring at the end of the `input` are buffered + * internally and emitted after the next call to `textDecoder.decode()`. + * + * If `textDecoder.fatal` is `true`, decoding errors that occur will result in a `TypeError` being thrown. + * @param input An `ArrayBuffer`, `DataView`, or `TypedArray` instance containing the encoded data. + */ + decode( + input?: NodeJS.ArrayBufferView | ArrayBuffer | null, + options?: { + stream?: boolean | undefined; + }, + ): string; + } + export interface EncodeIntoResult { + /** + * The read Unicode code units of input. + */ + read: number; + /** + * The written UTF-8 bytes of output. + */ + written: number; + } + export { types }; + + //// TextEncoder/Decoder + /** + * An implementation of the [WHATWG Encoding Standard](https://encoding.spec.whatwg.org/) `TextEncoder` API. All + * instances of `TextEncoder` only support UTF-8 encoding. + * + * ```js + * const encoder = new TextEncoder(); + * const uint8array = encoder.encode('this is some data'); + * ``` + * + * The `TextEncoder` class is also available on the global object. + * @since v8.3.0 + */ + export class TextEncoder { + /** + * The encoding supported by the `TextEncoder` instance. Always set to `'utf-8'`. + */ + readonly encoding: string; + /** + * UTF-8 encodes the `input` string and returns a `Uint8Array` containing the + * encoded bytes. + * @param [input='an empty string'] The text to encode. + */ + encode(input?: string): NodeJS.NonSharedUint8Array; + /** + * UTF-8 encodes the `src` string to the `dest` Uint8Array and returns an object + * containing the read Unicode code units and written UTF-8 bytes. + * + * ```js + * const encoder = new TextEncoder(); + * const src = 'this is some data'; + * const dest = new Uint8Array(10); + * const { read, written } = encoder.encodeInto(src, dest); + * ``` + * @param src The text to encode. + * @param dest The array to hold the encode result. + */ + encodeInto(src: string, dest: Uint8Array): EncodeIntoResult; + } + import { TextDecoder as _TextDecoder, TextEncoder as _TextEncoder } from "util"; + global { + /** + * `TextDecoder` class is a global reference for `import { TextDecoder } from 'node:util'` + * https://nodejs.org/api/globals.html#textdecoder + * @since v11.0.0 + */ + var TextDecoder: typeof globalThis extends { + onmessage: any; + TextDecoder: infer TextDecoder; + } ? TextDecoder + : typeof _TextDecoder; + /** + * `TextEncoder` class is a global reference for `import { TextEncoder } from 'node:util'` + * https://nodejs.org/api/globals.html#textencoder + * @since v11.0.0 + */ + var TextEncoder: typeof globalThis extends { + onmessage: any; + TextEncoder: infer TextEncoder; + } ? TextEncoder + : typeof _TextEncoder; + } + + //// parseArgs + /** + * Provides a higher level API for command-line argument parsing than interacting + * with `process.argv` directly. Takes a specification for the expected arguments + * and returns a structured object with the parsed options and positionals. + * + * ```js + * import { parseArgs } from 'node:util'; + * const args = ['-f', '--bar', 'b']; + * const options = { + * foo: { + * type: 'boolean', + * short: 'f', + * }, + * bar: { + * type: 'string', + * }, + * }; + * const { + * values, + * positionals, + * } = parseArgs({ args, options }); + * console.log(values, positionals); + * // Prints: [Object: null prototype] { foo: true, bar: 'b' } [] + * ``` + * @since v18.3.0, v16.17.0 + * @param config Used to provide arguments for parsing and to configure the parser. `config` supports the following properties: + * @return The parsed command line arguments: + */ + export function parseArgs(config?: T): ParsedResults; + interface ParseArgsOptionConfig { + /** + * Type of argument. + */ + type: "string" | "boolean"; + /** + * Whether this option can be provided multiple times. + * If `true`, all values will be collected in an array. + * If `false`, values for the option are last-wins. + * @default false. + */ + multiple?: boolean | undefined; + /** + * A single character alias for the option. + */ + short?: string | undefined; + /** + * The default option value when it is not set by args. + * It must be of the same type as the the `type` property. + * When `multiple` is `true`, it must be an array. + * @since v18.11.0 + */ + default?: string | boolean | string[] | boolean[] | undefined; + } + interface ParseArgsOptionsConfig { + [longOption: string]: ParseArgsOptionConfig; + } + export interface ParseArgsConfig { + /** + * Array of argument strings. + */ + args?: readonly string[] | undefined; + /** + * Used to describe arguments known to the parser. + */ + options?: ParseArgsOptionsConfig | undefined; + /** + * Should an error be thrown when unknown arguments are encountered, + * or when arguments are passed that do not match the `type` configured in `options`. + * @default true + */ + strict?: boolean | undefined; + /** + * Whether this command accepts positional arguments. + */ + allowPositionals?: boolean | undefined; + /** + * If `true`, allows explicitly setting boolean options to `false` by prefixing the option name with `--no-`. + * @default false + * @since v20.16.0 + */ + allowNegative?: boolean | undefined; + /** + * Return the parsed tokens. This is useful for extending the built-in behavior, + * from adding additional checks through to reprocessing the tokens in different ways. + * @default false + */ + tokens?: boolean | undefined; + } + /* + IfDefaultsTrue and IfDefaultsFalse are helpers to handle default values for missing boolean properties. + TypeScript does not have exact types for objects: https://github.com/microsoft/TypeScript/issues/12936 + This means it is impossible to distinguish between "field X is definitely not present" and "field X may or may not be present". + But we expect users to generally provide their config inline or `as const`, which means TS will always know whether a given field is present. + So this helper treats "not definitely present" (i.e., not `extends boolean`) as being "definitely not present", i.e. it should have its default value. + This is technically incorrect but is a much nicer UX for the common case. + The IfDefaultsTrue version is for things which default to true; the IfDefaultsFalse version is for things which default to false. + */ + type IfDefaultsTrue = T extends true ? IfTrue + : T extends false ? IfFalse + : IfTrue; + + // we put the `extends false` condition first here because `undefined` compares like `any` when `strictNullChecks: false` + type IfDefaultsFalse = T extends false ? IfFalse + : T extends true ? IfTrue + : IfFalse; + + type ExtractOptionValue = IfDefaultsTrue< + T["strict"], + O["type"] extends "string" ? string : O["type"] extends "boolean" ? boolean : string | boolean, + string | boolean + >; + + type ApplyOptionalModifiers> = ( + & { -readonly [LongOption in keyof O]?: V[LongOption] } + & { [LongOption in keyof O as O[LongOption]["default"] extends {} ? LongOption : never]: V[LongOption] } + ) extends infer P ? { [K in keyof P]: P[K] } : never; // resolve intersection to object + + type ParsedValues = + & IfDefaultsTrue + & (T["options"] extends ParseArgsOptionsConfig ? ApplyOptionalModifiers< + T["options"], + { + [LongOption in keyof T["options"]]: IfDefaultsFalse< + T["options"][LongOption]["multiple"], + Array>, + ExtractOptionValue + >; + } + > + : {}); + + type ParsedPositionals = IfDefaultsTrue< + T["strict"], + IfDefaultsFalse, + IfDefaultsTrue + >; + + type PreciseTokenForOptions< + K extends string, + O extends ParseArgsOptionConfig, + > = O["type"] extends "string" ? { + kind: "option"; + index: number; + name: K; + rawName: string; + value: string; + inlineValue: boolean; + } + : O["type"] extends "boolean" ? { + kind: "option"; + index: number; + name: K; + rawName: string; + value: undefined; + inlineValue: undefined; + } + : OptionToken & { name: K }; + + type TokenForOptions< + T extends ParseArgsConfig, + K extends keyof T["options"] = keyof T["options"], + > = K extends unknown + ? T["options"] extends ParseArgsOptionsConfig ? PreciseTokenForOptions + : OptionToken + : never; + + type ParsedOptionToken = IfDefaultsTrue, OptionToken>; + + type ParsedPositionalToken = IfDefaultsTrue< + T["strict"], + IfDefaultsFalse, + IfDefaultsTrue + >; + + type ParsedTokens = Array< + ParsedOptionToken | ParsedPositionalToken | { kind: "option-terminator"; index: number } + >; + + type PreciseParsedResults = IfDefaultsFalse< + T["tokens"], + { + values: ParsedValues; + positionals: ParsedPositionals; + tokens: ParsedTokens; + }, + { + values: ParsedValues; + positionals: ParsedPositionals; + } + >; + + type OptionToken = + | { kind: "option"; index: number; name: string; rawName: string; value: string; inlineValue: boolean } + | { + kind: "option"; + index: number; + name: string; + rawName: string; + value: undefined; + inlineValue: undefined; + }; + + type Token = + | OptionToken + | { kind: "positional"; index: number; value: string } + | { kind: "option-terminator"; index: number }; + + // If ParseArgsConfig extends T, then the user passed config constructed elsewhere. + // So we can't rely on the `"not definitely present" implies "definitely not present"` assumption mentioned above. + type ParsedResults = ParseArgsConfig extends T ? { + values: { + [longOption: string]: undefined | string | boolean | Array; + }; + positionals: string[]; + tokens?: Token[]; + } + : PreciseParsedResults; + + /** + * An implementation of [the MIMEType class](https://bmeck.github.io/node-proposal-mime-api/). + * + * In accordance with browser conventions, all properties of `MIMEType` objects + * are implemented as getters and setters on the class prototype, rather than as + * data properties on the object itself. + * + * A MIME string is a structured string containing multiple meaningful + * components. When parsed, a `MIMEType` object is returned containing + * properties for each of these components. + * @since v19.1.0, v18.13.0 + * @experimental + */ + export class MIMEType { + /** + * Creates a new MIMEType object by parsing the input. + * + * A `TypeError` will be thrown if the `input` is not a valid MIME. + * Note that an effort will be made to coerce the given values into strings. + * @param input The input MIME to parse. + */ + constructor(input: string | { toString: () => string }); + + /** + * Gets and sets the type portion of the MIME. + * + * ```js + * import { MIMEType } from 'node:util'; + * + * const myMIME = new MIMEType('text/javascript'); + * console.log(myMIME.type); + * // Prints: text + * myMIME.type = 'application'; + * console.log(myMIME.type); + * // Prints: application + * console.log(String(myMIME)); + * // Prints: application/javascript + * ``` + */ + type: string; + /** + * Gets and sets the subtype portion of the MIME. + * + * ```js + * import { MIMEType } from 'node:util'; + * + * const myMIME = new MIMEType('text/ecmascript'); + * console.log(myMIME.subtype); + * // Prints: ecmascript + * myMIME.subtype = 'javascript'; + * console.log(myMIME.subtype); + * // Prints: javascript + * console.log(String(myMIME)); + * // Prints: text/javascript + * ``` + */ + subtype: string; + /** + * Gets the essence of the MIME. This property is read only. + * Use `mime.type` or `mime.subtype` to alter the MIME. + * + * ```js + * import { MIMEType } from 'node:util'; + * + * const myMIME = new MIMEType('text/javascript;key=value'); + * console.log(myMIME.essence); + * // Prints: text/javascript + * myMIME.type = 'application'; + * console.log(myMIME.essence); + * // Prints: application/javascript + * console.log(String(myMIME)); + * // Prints: application/javascript;key=value + * ``` + */ + readonly essence: string; + /** + * Gets the `MIMEParams` object representing the + * parameters of the MIME. This property is read-only. See `MIMEParams` documentation for details. + */ + readonly params: MIMEParams; + /** + * The `toString()` method on the `MIMEType` object returns the serialized MIME. + * + * Because of the need for standard compliance, this method does not allow users + * to customize the serialization process of the MIME. + */ + toString(): string; + } + /** + * The `MIMEParams` API provides read and write access to the parameters of a `MIMEType`. + * @since v19.1.0, v18.13.0 + */ + export class MIMEParams { + /** + * Remove all name-value pairs whose name is `name`. + */ + delete(name: string): void; + /** + * Returns an iterator over each of the name-value pairs in the parameters. + * Each item of the iterator is a JavaScript `Array`. The first item of the array + * is the `name`, the second item of the array is the `value`. + */ + entries(): NodeJS.Iterator<[name: string, value: string]>; + /** + * Returns the value of the first name-value pair whose name is `name`. If there + * are no such pairs, `null` is returned. + * @return or `null` if there is no name-value pair with the given `name`. + */ + get(name: string): string | null; + /** + * Returns `true` if there is at least one name-value pair whose name is `name`. + */ + has(name: string): boolean; + /** + * Returns an iterator over the names of each name-value pair. + * + * ```js + * import { MIMEType } from 'node:util'; + * + * const { params } = new MIMEType('text/plain;foo=0;bar=1'); + * for (const name of params.keys()) { + * console.log(name); + * } + * // Prints: + * // foo + * // bar + * ``` + */ + keys(): NodeJS.Iterator; + /** + * Sets the value in the `MIMEParams` object associated with `name` to `value`. If there are any pre-existing name-value pairs whose names are `name`, + * set the first such pair's value to `value`. + * + * ```js + * import { MIMEType } from 'node:util'; + * + * const { params } = new MIMEType('text/plain;foo=0;bar=1'); + * params.set('foo', 'def'); + * params.set('baz', 'xyz'); + * console.log(params.toString()); + * // Prints: foo=def;bar=1;baz=xyz + * ``` + */ + set(name: string, value: string): void; + /** + * Returns an iterator over the values of each name-value pair. + */ + values(): NodeJS.Iterator; + /** + * Returns an iterator over each of the name-value pairs in the parameters. + */ + [Symbol.iterator](): NodeJS.Iterator<[name: string, value: string]>; + } +} +declare module "util/types" { + import { KeyObject, webcrypto } from "node:crypto"; + /** + * Returns `true` if the value is a built-in [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) or + * [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instance. + * + * See also `util.types.isArrayBuffer()` and `util.types.isSharedArrayBuffer()`. + * + * ```js + * util.types.isAnyArrayBuffer(new ArrayBuffer()); // Returns true + * util.types.isAnyArrayBuffer(new SharedArrayBuffer()); // Returns true + * ``` + * @since v10.0.0 + */ + function isAnyArrayBuffer(object: unknown): object is ArrayBufferLike; + /** + * Returns `true` if the value is an `arguments` object. + * + * ```js + * function foo() { + * util.types.isArgumentsObject(arguments); // Returns true + * } + * ``` + * @since v10.0.0 + */ + function isArgumentsObject(object: unknown): object is IArguments; + /** + * Returns `true` if the value is a built-in [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) instance. + * This does _not_ include [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instances. Usually, it is + * desirable to test for both; See `util.types.isAnyArrayBuffer()` for that. + * + * ```js + * util.types.isArrayBuffer(new ArrayBuffer()); // Returns true + * util.types.isArrayBuffer(new SharedArrayBuffer()); // Returns false + * ``` + * @since v10.0.0 + */ + function isArrayBuffer(object: unknown): object is ArrayBuffer; + /** + * Returns `true` if the value is an instance of one of the [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) views, such as typed + * array objects or [`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView). Equivalent to + * [`ArrayBuffer.isView()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView). + * + * ```js + * util.types.isArrayBufferView(new Int8Array()); // true + * util.types.isArrayBufferView(Buffer.from('hello world')); // true + * util.types.isArrayBufferView(new DataView(new ArrayBuffer(16))); // true + * util.types.isArrayBufferView(new ArrayBuffer()); // false + * ``` + * @since v10.0.0 + */ + function isArrayBufferView(object: unknown): object is NodeJS.ArrayBufferView; + /** + * Returns `true` if the value is an [async function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function). + * This only reports back what the JavaScript engine is seeing; + * in particular, the return value may not match the original source code if + * a transpilation tool was used. + * + * ```js + * util.types.isAsyncFunction(function foo() {}); // Returns false + * util.types.isAsyncFunction(async function foo() {}); // Returns true + * ``` + * @since v10.0.0 + */ + function isAsyncFunction(object: unknown): boolean; + /** + * Returns `true` if the value is a `BigInt64Array` instance. + * + * ```js + * util.types.isBigInt64Array(new BigInt64Array()); // Returns true + * util.types.isBigInt64Array(new BigUint64Array()); // Returns false + * ``` + * @since v10.0.0 + */ + function isBigInt64Array(value: unknown): value is BigInt64Array; + /** + * Returns `true` if the value is a BigInt object, e.g. created + * by `Object(BigInt(123))`. + * + * ```js + * util.types.isBigIntObject(Object(BigInt(123))); // Returns true + * util.types.isBigIntObject(BigInt(123)); // Returns false + * util.types.isBigIntObject(123); // Returns false + * ``` + * @since v10.4.0 + */ + function isBigIntObject(object: unknown): object is BigInt; + /** + * Returns `true` if the value is a `BigUint64Array` instance. + * + * ```js + * util.types.isBigUint64Array(new BigInt64Array()); // Returns false + * util.types.isBigUint64Array(new BigUint64Array()); // Returns true + * ``` + * @since v10.0.0 + */ + function isBigUint64Array(value: unknown): value is BigUint64Array; + /** + * Returns `true` if the value is a boolean object, e.g. created + * by `new Boolean()`. + * + * ```js + * util.types.isBooleanObject(false); // Returns false + * util.types.isBooleanObject(true); // Returns false + * util.types.isBooleanObject(new Boolean(false)); // Returns true + * util.types.isBooleanObject(new Boolean(true)); // Returns true + * util.types.isBooleanObject(Boolean(false)); // Returns false + * util.types.isBooleanObject(Boolean(true)); // Returns false + * ``` + * @since v10.0.0 + */ + function isBooleanObject(object: unknown): object is Boolean; + /** + * Returns `true` if the value is any boxed primitive object, e.g. created + * by `new Boolean()`, `new String()` or `Object(Symbol())`. + * + * For example: + * + * ```js + * util.types.isBoxedPrimitive(false); // Returns false + * util.types.isBoxedPrimitive(new Boolean(false)); // Returns true + * util.types.isBoxedPrimitive(Symbol('foo')); // Returns false + * util.types.isBoxedPrimitive(Object(Symbol('foo'))); // Returns true + * util.types.isBoxedPrimitive(Object(BigInt(5))); // Returns true + * ``` + * @since v10.11.0 + */ + function isBoxedPrimitive(object: unknown): object is String | Number | BigInt | Boolean | Symbol; + /** + * Returns `true` if the value is a built-in [`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView) instance. + * + * ```js + * const ab = new ArrayBuffer(20); + * util.types.isDataView(new DataView(ab)); // Returns true + * util.types.isDataView(new Float64Array()); // Returns false + * ``` + * + * See also [`ArrayBuffer.isView()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView). + * @since v10.0.0 + */ + function isDataView(object: unknown): object is DataView; + /** + * Returns `true` if the value is a built-in [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) instance. + * + * ```js + * util.types.isDate(new Date()); // Returns true + * ``` + * @since v10.0.0 + */ + function isDate(object: unknown): object is Date; + /** + * Returns `true` if the value is a native `External` value. + * + * A native `External` value is a special type of object that contains a + * raw C++ pointer (`void*`) for access from native code, and has no other + * properties. Such objects are created either by Node.js internals or native + * addons. In JavaScript, they are [frozen](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze) objects with a`null` prototype. + * + * ```c + * #include + * #include + * napi_value result; + * static napi_value MyNapi(napi_env env, napi_callback_info info) { + * int* raw = (int*) malloc(1024); + * napi_status status = napi_create_external(env, (void*) raw, NULL, NULL, &result); + * if (status != napi_ok) { + * napi_throw_error(env, NULL, "napi_create_external failed"); + * return NULL; + * } + * return result; + * } + * ... + * DECLARE_NAPI_PROPERTY("myNapi", MyNapi) + * ... + * ``` + * + * ```js + * const native =require('napi_addon.node'); + * const data = native.myNapi(); + * util.types.isExternal(data); // returns true + * util.types.isExternal(0); // returns false + * util.types.isExternal(new String('foo')); // returns false + * ``` + * + * For further information on `napi_create_external`, refer to `napi_create_external()`. + * @since v10.0.0 + */ + function isExternal(object: unknown): boolean; + /** + * Returns `true` if the value is a built-in [`Float32Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array) instance. + * + * ```js + * util.types.isFloat32Array(new ArrayBuffer()); // Returns false + * util.types.isFloat32Array(new Float32Array()); // Returns true + * util.types.isFloat32Array(new Float64Array()); // Returns false + * ``` + * @since v10.0.0 + */ + function isFloat32Array(object: unknown): object is Float32Array; + /** + * Returns `true` if the value is a built-in [`Float64Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array) instance. + * + * ```js + * util.types.isFloat64Array(new ArrayBuffer()); // Returns false + * util.types.isFloat64Array(new Uint8Array()); // Returns false + * util.types.isFloat64Array(new Float64Array()); // Returns true + * ``` + * @since v10.0.0 + */ + function isFloat64Array(object: unknown): object is Float64Array; + /** + * Returns `true` if the value is a generator function. + * This only reports back what the JavaScript engine is seeing; + * in particular, the return value may not match the original source code if + * a transpilation tool was used. + * + * ```js + * util.types.isGeneratorFunction(function foo() {}); // Returns false + * util.types.isGeneratorFunction(function* foo() {}); // Returns true + * ``` + * @since v10.0.0 + */ + function isGeneratorFunction(object: unknown): object is GeneratorFunction; + /** + * Returns `true` if the value is a generator object as returned from a + * built-in generator function. + * This only reports back what the JavaScript engine is seeing; + * in particular, the return value may not match the original source code if + * a transpilation tool was used. + * + * ```js + * function* foo() {} + * const generator = foo(); + * util.types.isGeneratorObject(generator); // Returns true + * ``` + * @since v10.0.0 + */ + function isGeneratorObject(object: unknown): object is Generator; + /** + * Returns `true` if the value is a built-in [`Int8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array) instance. + * + * ```js + * util.types.isInt8Array(new ArrayBuffer()); // Returns false + * util.types.isInt8Array(new Int8Array()); // Returns true + * util.types.isInt8Array(new Float64Array()); // Returns false + * ``` + * @since v10.0.0 + */ + function isInt8Array(object: unknown): object is Int8Array; + /** + * Returns `true` if the value is a built-in [`Int16Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array) instance. + * + * ```js + * util.types.isInt16Array(new ArrayBuffer()); // Returns false + * util.types.isInt16Array(new Int16Array()); // Returns true + * util.types.isInt16Array(new Float64Array()); // Returns false + * ``` + * @since v10.0.0 + */ + function isInt16Array(object: unknown): object is Int16Array; + /** + * Returns `true` if the value is a built-in [`Int32Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array) instance. + * + * ```js + * util.types.isInt32Array(new ArrayBuffer()); // Returns false + * util.types.isInt32Array(new Int32Array()); // Returns true + * util.types.isInt32Array(new Float64Array()); // Returns false + * ``` + * @since v10.0.0 + */ + function isInt32Array(object: unknown): object is Int32Array; + /** + * Returns `true` if the value is a built-in [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) instance. + * + * ```js + * util.types.isMap(new Map()); // Returns true + * ``` + * @since v10.0.0 + */ + function isMap( + object: T | {}, + ): object is T extends ReadonlyMap ? (unknown extends T ? never : ReadonlyMap) + : Map; + /** + * Returns `true` if the value is an iterator returned for a built-in [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) instance. + * + * ```js + * const map = new Map(); + * util.types.isMapIterator(map.keys()); // Returns true + * util.types.isMapIterator(map.values()); // Returns true + * util.types.isMapIterator(map.entries()); // Returns true + * util.types.isMapIterator(map[Symbol.iterator]()); // Returns true + * ``` + * @since v10.0.0 + */ + function isMapIterator(object: unknown): boolean; + /** + * Returns `true` if the value is an instance of a [Module Namespace Object](https://tc39.github.io/ecma262/#sec-module-namespace-exotic-objects). + * + * ```js + * import * as ns from './a.js'; + * + * util.types.isModuleNamespaceObject(ns); // Returns true + * ``` + * @since v10.0.0 + */ + function isModuleNamespaceObject(value: unknown): boolean; + /** + * Returns `true` if the value was returned by the constructor of a [built-in `Error` type](https://tc39.es/ecma262/#sec-error-objects). + * + * ```js + * console.log(util.types.isNativeError(new Error())); // true + * console.log(util.types.isNativeError(new TypeError())); // true + * console.log(util.types.isNativeError(new RangeError())); // true + * ``` + * + * Subclasses of the native error types are also native errors: + * + * ```js + * class MyError extends Error {} + * console.log(util.types.isNativeError(new MyError())); // true + * ``` + * + * A value being `instanceof` a native error class is not equivalent to `isNativeError()` returning `true` for that value. `isNativeError()` returns `true` for errors + * which come from a different [realm](https://tc39.es/ecma262/#realm) while `instanceof Error` returns `false` for these errors: + * + * ```js + * import vm from 'node:vm'; + * const context = vm.createContext({}); + * const myError = vm.runInContext('new Error()', context); + * console.log(util.types.isNativeError(myError)); // true + * console.log(myError instanceof Error); // false + * ``` + * + * Conversely, `isNativeError()` returns `false` for all objects which were not + * returned by the constructor of a native error. That includes values + * which are `instanceof` native errors: + * + * ```js + * const myError = { __proto__: Error.prototype }; + * console.log(util.types.isNativeError(myError)); // false + * console.log(myError instanceof Error); // true + * ``` + * @since v10.0.0 + */ + function isNativeError(object: unknown): object is Error; + /** + * Returns `true` if the value is a number object, e.g. created + * by `new Number()`. + * + * ```js + * util.types.isNumberObject(0); // Returns false + * util.types.isNumberObject(new Number(0)); // Returns true + * ``` + * @since v10.0.0 + */ + function isNumberObject(object: unknown): object is Number; + /** + * Returns `true` if the value is a built-in [`Promise`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise). + * + * ```js + * util.types.isPromise(Promise.resolve(42)); // Returns true + * ``` + * @since v10.0.0 + */ + function isPromise(object: unknown): object is Promise; + /** + * Returns `true` if the value is a [`Proxy`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy) instance. + * + * ```js + * const target = {}; + * const proxy = new Proxy(target, {}); + * util.types.isProxy(target); // Returns false + * util.types.isProxy(proxy); // Returns true + * ``` + * @since v10.0.0 + */ + function isProxy(object: unknown): boolean; + /** + * Returns `true` if the value is a regular expression object. + * + * ```js + * util.types.isRegExp(/abc/); // Returns true + * util.types.isRegExp(new RegExp('abc')); // Returns true + * ``` + * @since v10.0.0 + */ + function isRegExp(object: unknown): object is RegExp; + /** + * Returns `true` if the value is a built-in [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) instance. + * + * ```js + * util.types.isSet(new Set()); // Returns true + * ``` + * @since v10.0.0 + */ + function isSet( + object: T | {}, + ): object is T extends ReadonlySet ? (unknown extends T ? never : ReadonlySet) : Set; + /** + * Returns `true` if the value is an iterator returned for a built-in [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) instance. + * + * ```js + * const set = new Set(); + * util.types.isSetIterator(set.keys()); // Returns true + * util.types.isSetIterator(set.values()); // Returns true + * util.types.isSetIterator(set.entries()); // Returns true + * util.types.isSetIterator(set[Symbol.iterator]()); // Returns true + * ``` + * @since v10.0.0 + */ + function isSetIterator(object: unknown): boolean; + /** + * Returns `true` if the value is a built-in [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instance. + * This does _not_ include [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) instances. Usually, it is + * desirable to test for both; See `util.types.isAnyArrayBuffer()` for that. + * + * ```js + * util.types.isSharedArrayBuffer(new ArrayBuffer()); // Returns false + * util.types.isSharedArrayBuffer(new SharedArrayBuffer()); // Returns true + * ``` + * @since v10.0.0 + */ + function isSharedArrayBuffer(object: unknown): object is SharedArrayBuffer; + /** + * Returns `true` if the value is a string object, e.g. created + * by `new String()`. + * + * ```js + * util.types.isStringObject('foo'); // Returns false + * util.types.isStringObject(new String('foo')); // Returns true + * ``` + * @since v10.0.0 + */ + function isStringObject(object: unknown): object is String; + /** + * Returns `true` if the value is a symbol object, created + * by calling `Object()` on a `Symbol` primitive. + * + * ```js + * const symbol = Symbol('foo'); + * util.types.isSymbolObject(symbol); // Returns false + * util.types.isSymbolObject(Object(symbol)); // Returns true + * ``` + * @since v10.0.0 + */ + function isSymbolObject(object: unknown): object is Symbol; + /** + * Returns `true` if the value is a built-in [`TypedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray) instance. + * + * ```js + * util.types.isTypedArray(new ArrayBuffer()); // Returns false + * util.types.isTypedArray(new Uint8Array()); // Returns true + * util.types.isTypedArray(new Float64Array()); // Returns true + * ``` + * + * See also [`ArrayBuffer.isView()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView). + * @since v10.0.0 + */ + function isTypedArray(object: unknown): object is NodeJS.TypedArray; + /** + * Returns `true` if the value is a built-in [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) instance. + * + * ```js + * util.types.isUint8Array(new ArrayBuffer()); // Returns false + * util.types.isUint8Array(new Uint8Array()); // Returns true + * util.types.isUint8Array(new Float64Array()); // Returns false + * ``` + * @since v10.0.0 + */ + function isUint8Array(object: unknown): object is Uint8Array; + /** + * Returns `true` if the value is a built-in [`Uint8ClampedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray) instance. + * + * ```js + * util.types.isUint8ClampedArray(new ArrayBuffer()); // Returns false + * util.types.isUint8ClampedArray(new Uint8ClampedArray()); // Returns true + * util.types.isUint8ClampedArray(new Float64Array()); // Returns false + * ``` + * @since v10.0.0 + */ + function isUint8ClampedArray(object: unknown): object is Uint8ClampedArray; + /** + * Returns `true` if the value is a built-in [`Uint16Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array) instance. + * + * ```js + * util.types.isUint16Array(new ArrayBuffer()); // Returns false + * util.types.isUint16Array(new Uint16Array()); // Returns true + * util.types.isUint16Array(new Float64Array()); // Returns false + * ``` + * @since v10.0.0 + */ + function isUint16Array(object: unknown): object is Uint16Array; + /** + * Returns `true` if the value is a built-in [`Uint32Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array) instance. + * + * ```js + * util.types.isUint32Array(new ArrayBuffer()); // Returns false + * util.types.isUint32Array(new Uint32Array()); // Returns true + * util.types.isUint32Array(new Float64Array()); // Returns false + * ``` + * @since v10.0.0 + */ + function isUint32Array(object: unknown): object is Uint32Array; + /** + * Returns `true` if the value is a built-in [`WeakMap`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap) instance. + * + * ```js + * util.types.isWeakMap(new WeakMap()); // Returns true + * ``` + * @since v10.0.0 + */ + function isWeakMap(object: unknown): object is WeakMap; + /** + * Returns `true` if the value is a built-in [`WeakSet`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet) instance. + * + * ```js + * util.types.isWeakSet(new WeakSet()); // Returns true + * ``` + * @since v10.0.0 + */ + function isWeakSet(object: unknown): object is WeakSet; + /** + * Returns `true` if `value` is a `KeyObject`, `false` otherwise. + * @since v16.2.0 + */ + function isKeyObject(object: unknown): object is KeyObject; + /** + * Returns `true` if `value` is a `CryptoKey`, `false` otherwise. + * @since v16.2.0 + */ + function isCryptoKey(object: unknown): object is webcrypto.CryptoKey; +} +declare module "node:util" { + export * from "util"; +} +declare module "node:util/types" { + export * from "util/types"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/v8.d.ts b/backend/node_modules/httpx/node_modules/@types/node/v8.d.ts new file mode 100644 index 0000000..8b0e965 --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/v8.d.ts @@ -0,0 +1,809 @@ +/** + * The `node:v8` module exposes APIs that are specific to the version of [V8](https://developers.google.com/v8/) built into the Node.js binary. It can be accessed using: + * + * ```js + * import v8 from 'node:v8'; + * ``` + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/v8.js) + */ +declare module "v8" { + import { NonSharedBuffer } from "node:buffer"; + import { Readable } from "node:stream"; + interface HeapSpaceInfo { + space_name: string; + space_size: number; + space_used_size: number; + space_available_size: number; + physical_space_size: number; + } + // ** Signifies if the --zap_code_space option is enabled or not. 1 == enabled, 0 == disabled. */ + type DoesZapCodeSpaceFlag = 0 | 1; + interface HeapInfo { + total_heap_size: number; + total_heap_size_executable: number; + total_physical_size: number; + total_available_size: number; + used_heap_size: number; + heap_size_limit: number; + malloced_memory: number; + peak_malloced_memory: number; + does_zap_garbage: DoesZapCodeSpaceFlag; + number_of_native_contexts: number; + number_of_detached_contexts: number; + total_global_handles_size: number; + used_global_handles_size: number; + external_memory: number; + } + interface HeapCodeStatistics { + code_and_metadata_size: number; + bytecode_and_metadata_size: number; + external_script_source_size: number; + } + interface HeapSnapshotOptions { + /** + * If true, expose internals in the heap snapshot. + * @default false + */ + exposeInternals?: boolean | undefined; + /** + * If true, expose numeric values in artificial fields. + * @default false + */ + exposeNumericValues?: boolean | undefined; + } + /** + * Returns an integer representing a version tag derived from the V8 version, + * command-line flags, and detected CPU features. This is useful for determining + * whether a `vm.Script` `cachedData` buffer is compatible with this instance + * of V8. + * + * ```js + * console.log(v8.cachedDataVersionTag()); // 3947234607 + * // The value returned by v8.cachedDataVersionTag() is derived from the V8 + * // version, command-line flags, and detected CPU features. Test that the value + * // does indeed update when flags are toggled. + * v8.setFlagsFromString('--allow_natives_syntax'); + * console.log(v8.cachedDataVersionTag()); // 183726201 + * ``` + * @since v8.0.0 + */ + function cachedDataVersionTag(): number; + /** + * Returns an object with the following properties: + * + * `does_zap_garbage` is a 0/1 boolean, which signifies whether the `--zap_code_space` option is enabled or not. This makes V8 overwrite heap + * garbage with a bit pattern. The RSS footprint (resident set size) gets bigger + * because it continuously touches all heap pages and that makes them less likely + * to get swapped out by the operating system. + * + * `number_of_native_contexts` The value of native\_context is the number of the + * top-level contexts currently active. Increase of this number over time indicates + * a memory leak. + * + * `number_of_detached_contexts` The value of detached\_context is the number + * of contexts that were detached and not yet garbage collected. This number + * being non-zero indicates a potential memory leak. + * + * `total_global_handles_size` The value of total\_global\_handles\_size is the + * total memory size of V8 global handles. + * + * `used_global_handles_size` The value of used\_global\_handles\_size is the + * used memory size of V8 global handles. + * + * `external_memory` The value of external\_memory is the memory size of array + * buffers and external strings. + * + * ```js + * { + * total_heap_size: 7326976, + * total_heap_size_executable: 4194304, + * total_physical_size: 7326976, + * total_available_size: 1152656, + * used_heap_size: 3476208, + * heap_size_limit: 1535115264, + * malloced_memory: 16384, + * peak_malloced_memory: 1127496, + * does_zap_garbage: 0, + * number_of_native_contexts: 1, + * number_of_detached_contexts: 0, + * total_global_handles_size: 8192, + * used_global_handles_size: 3296, + * external_memory: 318824 + * } + * ``` + * @since v1.0.0 + */ + function getHeapStatistics(): HeapInfo; + /** + * Returns statistics about the V8 heap spaces, i.e. the segments which make up + * the V8 heap. Neither the ordering of heap spaces, nor the availability of a + * heap space can be guaranteed as the statistics are provided via the + * V8 [`GetHeapSpaceStatistics`](https://v8docs.nodesource.com/node-13.2/d5/dda/classv8_1_1_isolate.html#ac673576f24fdc7a33378f8f57e1d13a4) function and may change from one V8 version to the + * next. + * + * The value returned is an array of objects containing the following properties: + * + * ```json + * [ + * { + * "space_name": "new_space", + * "space_size": 2063872, + * "space_used_size": 951112, + * "space_available_size": 80824, + * "physical_space_size": 2063872 + * }, + * { + * "space_name": "old_space", + * "space_size": 3090560, + * "space_used_size": 2493792, + * "space_available_size": 0, + * "physical_space_size": 3090560 + * }, + * { + * "space_name": "code_space", + * "space_size": 1260160, + * "space_used_size": 644256, + * "space_available_size": 960, + * "physical_space_size": 1260160 + * }, + * { + * "space_name": "map_space", + * "space_size": 1094160, + * "space_used_size": 201608, + * "space_available_size": 0, + * "physical_space_size": 1094160 + * }, + * { + * "space_name": "large_object_space", + * "space_size": 0, + * "space_used_size": 0, + * "space_available_size": 1490980608, + * "physical_space_size": 0 + * } + * ] + * ``` + * @since v6.0.0 + */ + function getHeapSpaceStatistics(): HeapSpaceInfo[]; + /** + * The `v8.setFlagsFromString()` method can be used to programmatically set + * V8 command-line flags. This method should be used with care. Changing settings + * after the VM has started may result in unpredictable behavior, including + * crashes and data loss; or it may simply do nothing. + * + * The V8 options available for a version of Node.js may be determined by running `node --v8-options`. + * + * Usage: + * + * ```js + * // Print GC events to stdout for one minute. + * import v8 from 'node:v8'; + * v8.setFlagsFromString('--trace_gc'); + * setTimeout(() => { v8.setFlagsFromString('--notrace_gc'); }, 60e3); + * ``` + * @since v1.0.0 + */ + function setFlagsFromString(flags: string): void; + /** + * This is similar to the [`queryObjects()` console API](https://developer.chrome.com/docs/devtools/console/utilities#queryObjects-function) + * provided by the Chromium DevTools console. It can be used to search for objects that have the matching constructor on its prototype chain + * in the heap after a full garbage collection, which can be useful for memory leak regression tests. To avoid surprising results, users should + * avoid using this API on constructors whose implementation they don't control, or on constructors that can be invoked by other parties in the + * application. + * + * To avoid accidental leaks, this API does not return raw references to the objects found. By default, it returns the count of the objects + * found. If `options.format` is `'summary'`, it returns an array containing brief string representations for each object. The visibility provided + * in this API is similar to what the heap snapshot provides, while users can save the cost of serialization and parsing and directly filter the + * target objects during the search. + * + * Only objects created in the current execution context are included in the results. + * + * ```js + * import { queryObjects } from 'node:v8'; + * class A { foo = 'bar'; } + * console.log(queryObjects(A)); // 0 + * const a = new A(); + * console.log(queryObjects(A)); // 1 + * // [ "A { foo: 'bar' }" ] + * console.log(queryObjects(A, { format: 'summary' })); + * + * class B extends A { bar = 'qux'; } + * const b = new B(); + * console.log(queryObjects(B)); // 1 + * // [ "B { foo: 'bar', bar: 'qux' }" ] + * console.log(queryObjects(B, { format: 'summary' })); + * + * // Note that, when there are child classes inheriting from a constructor, + * // the constructor also shows up in the prototype chain of the child + * // classes's prototoype, so the child classes's prototoype would also be + * // included in the result. + * console.log(queryObjects(A)); // 3 + * // [ "B { foo: 'bar', bar: 'qux' }", 'A {}', "A { foo: 'bar' }" ] + * console.log(queryObjects(A, { format: 'summary' })); + * ``` + * @param ctor The constructor that can be used to search on the prototype chain in order to filter target objects in the heap. + * @since v20.13.0 + * @experimental + */ + function queryObjects(ctor: Function): number | string[]; + function queryObjects(ctor: Function, options: { format: "count" }): number; + function queryObjects(ctor: Function, options: { format: "summary" }): string[]; + /** + * Generates a snapshot of the current V8 heap and returns a Readable + * Stream that may be used to read the JSON serialized representation. + * This JSON stream format is intended to be used with tools such as + * Chrome DevTools. The JSON schema is undocumented and specific to the + * V8 engine. Therefore, the schema may change from one version of V8 to the next. + * + * Creating a heap snapshot requires memory about twice the size of the heap at + * the time the snapshot is created. This results in the risk of OOM killers + * terminating the process. + * + * Generating a snapshot is a synchronous operation which blocks the event loop + * for a duration depending on the heap size. + * + * ```js + * // Print heap snapshot to the console + * import v8 from 'node:v8'; + * const stream = v8.getHeapSnapshot(); + * stream.pipe(process.stdout); + * ``` + * @since v11.13.0 + * @return A Readable containing the V8 heap snapshot. + */ + function getHeapSnapshot(options?: HeapSnapshotOptions): Readable; + /** + * Generates a snapshot of the current V8 heap and writes it to a JSON + * file. This file is intended to be used with tools such as Chrome + * DevTools. The JSON schema is undocumented and specific to the V8 + * engine, and may change from one version of V8 to the next. + * + * A heap snapshot is specific to a single V8 isolate. When using `worker threads`, a heap snapshot generated from the main thread will + * not contain any information about the workers, and vice versa. + * + * Creating a heap snapshot requires memory about twice the size of the heap at + * the time the snapshot is created. This results in the risk of OOM killers + * terminating the process. + * + * Generating a snapshot is a synchronous operation which blocks the event loop + * for a duration depending on the heap size. + * + * ```js + * import { writeHeapSnapshot } from 'node:v8'; + * import { + * Worker, + * isMainThread, + * parentPort, + * } from 'node:worker_threads'; + * + * if (isMainThread) { + * const worker = new Worker(__filename); + * + * worker.once('message', (filename) => { + * console.log(`worker heapdump: ${filename}`); + * // Now get a heapdump for the main thread. + * console.log(`main thread heapdump: ${writeHeapSnapshot()}`); + * }); + * + * // Tell the worker to create a heapdump. + * worker.postMessage('heapdump'); + * } else { + * parentPort.once('message', (message) => { + * if (message === 'heapdump') { + * // Generate a heapdump for the worker + * // and return the filename to the parent. + * parentPort.postMessage(writeHeapSnapshot()); + * } + * }); + * } + * ``` + * @since v11.13.0 + * @param filename The file path where the V8 heap snapshot is to be saved. If not specified, a file name with the pattern `'Heap-${yyyymmdd}-${hhmmss}-${pid}-${thread_id}.heapsnapshot'` will be + * generated, where `{pid}` will be the PID of the Node.js process, `{thread_id}` will be `0` when `writeHeapSnapshot()` is called from the main Node.js thread or the id of a + * worker thread. + * @return The filename where the snapshot was saved. + */ + function writeHeapSnapshot(filename?: string, options?: HeapSnapshotOptions): string; + /** + * Get statistics about code and its metadata in the heap, see + * V8 [`GetHeapCodeAndMetadataStatistics`](https://v8docs.nodesource.com/node-13.2/d5/dda/classv8_1_1_isolate.html#a6079122af17612ef54ef3348ce170866) API. Returns an object with the + * following properties: + * + * ```js + * { + * code_and_metadata_size: 212208, + * bytecode_and_metadata_size: 161368, + * external_script_source_size: 1410794, + * cpu_profiler_metadata_size: 0, + * } + * ``` + * @since v12.8.0 + */ + function getHeapCodeStatistics(): HeapCodeStatistics; + /** + * @since v8.0.0 + */ + class Serializer { + /** + * Writes out a header, which includes the serialization format version. + */ + writeHeader(): void; + /** + * Serializes a JavaScript value and adds the serialized representation to the + * internal buffer. + * + * This throws an error if `value` cannot be serialized. + */ + writeValue(val: any): boolean; + /** + * Returns the stored internal buffer. This serializer should not be used once + * the buffer is released. Calling this method results in undefined behavior + * if a previous write has failed. + */ + releaseBuffer(): NonSharedBuffer; + /** + * Marks an `ArrayBuffer` as having its contents transferred out of band. + * Pass the corresponding `ArrayBuffer` in the deserializing context to `deserializer.transferArrayBuffer()`. + * @param id A 32-bit unsigned integer. + * @param arrayBuffer An `ArrayBuffer` instance. + */ + transferArrayBuffer(id: number, arrayBuffer: ArrayBuffer): void; + /** + * Write a raw 32-bit unsigned integer. + * For use inside of a custom `serializer._writeHostObject()`. + */ + writeUint32(value: number): void; + /** + * Write a raw 64-bit unsigned integer, split into high and low 32-bit parts. + * For use inside of a custom `serializer._writeHostObject()`. + */ + writeUint64(hi: number, lo: number): void; + /** + * Write a JS `number` value. + * For use inside of a custom `serializer._writeHostObject()`. + */ + writeDouble(value: number): void; + /** + * Write raw bytes into the serializer's internal buffer. The deserializer + * will require a way to compute the length of the buffer. + * For use inside of a custom `serializer._writeHostObject()`. + */ + writeRawBytes(buffer: NodeJS.ArrayBufferView): void; + } + /** + * A subclass of `Serializer` that serializes `TypedArray`(in particular `Buffer`) and `DataView` objects as host objects, and only + * stores the part of their underlying `ArrayBuffer`s that they are referring to. + * @since v8.0.0 + */ + class DefaultSerializer extends Serializer {} + /** + * @since v8.0.0 + */ + class Deserializer { + constructor(data: NodeJS.TypedArray); + /** + * Reads and validates a header (including the format version). + * May, for example, reject an invalid or unsupported wire format. In that case, + * an `Error` is thrown. + */ + readHeader(): boolean; + /** + * Deserializes a JavaScript value from the buffer and returns it. + */ + readValue(): any; + /** + * Marks an `ArrayBuffer` as having its contents transferred out of band. + * Pass the corresponding `ArrayBuffer` in the serializing context to `serializer.transferArrayBuffer()` (or return the `id` from `serializer._getSharedArrayBufferId()` in the case of + * `SharedArrayBuffer`s). + * @param id A 32-bit unsigned integer. + * @param arrayBuffer An `ArrayBuffer` instance. + */ + transferArrayBuffer(id: number, arrayBuffer: ArrayBuffer): void; + /** + * Reads the underlying wire format version. Likely mostly to be useful to + * legacy code reading old wire format versions. May not be called before `.readHeader()`. + */ + getWireFormatVersion(): number; + /** + * Read a raw 32-bit unsigned integer and return it. + * For use inside of a custom `deserializer._readHostObject()`. + */ + readUint32(): number; + /** + * Read a raw 64-bit unsigned integer and return it as an array `[hi, lo]` with two 32-bit unsigned integer entries. + * For use inside of a custom `deserializer._readHostObject()`. + */ + readUint64(): [number, number]; + /** + * Read a JS `number` value. + * For use inside of a custom `deserializer._readHostObject()`. + */ + readDouble(): number; + /** + * Read raw bytes from the deserializer's internal buffer. The `length` parameter + * must correspond to the length of the buffer that was passed to `serializer.writeRawBytes()`. + * For use inside of a custom `deserializer._readHostObject()`. + */ + readRawBytes(length: number): Buffer; + } + /** + * A subclass of `Deserializer` corresponding to the format written by `DefaultSerializer`. + * @since v8.0.0 + */ + class DefaultDeserializer extends Deserializer {} + /** + * Uses a `DefaultSerializer` to serialize `value` into a buffer. + * + * `ERR_BUFFER_TOO_LARGE` will be thrown when trying to + * serialize a huge object which requires buffer + * larger than `buffer.constants.MAX_LENGTH`. + * @since v8.0.0 + */ + function serialize(value: any): NonSharedBuffer; + /** + * Uses a `DefaultDeserializer` with default options to read a JS value + * from a buffer. + * @since v8.0.0 + * @param buffer A buffer returned by {@link serialize}. + */ + function deserialize(buffer: NodeJS.ArrayBufferView): any; + /** + * The `v8.takeCoverage()` method allows the user to write the coverage started by `NODE_V8_COVERAGE` to disk on demand. This method can be invoked multiple + * times during the lifetime of the process. Each time the execution counter will + * be reset and a new coverage report will be written to the directory specified + * by `NODE_V8_COVERAGE`. + * + * When the process is about to exit, one last coverage will still be written to + * disk unless {@link stopCoverage} is invoked before the process exits. + * @since v15.1.0, v14.18.0, v12.22.0 + */ + function takeCoverage(): void; + /** + * The `v8.stopCoverage()` method allows the user to stop the coverage collection + * started by `NODE_V8_COVERAGE`, so that V8 can release the execution count + * records and optimize code. This can be used in conjunction with {@link takeCoverage} if the user wants to collect the coverage on demand. + * @since v15.1.0, v14.18.0, v12.22.0 + */ + function stopCoverage(): void; + /** + * The API is a no-op if `--heapsnapshot-near-heap-limit` is already set from the command line or the API is called more than once. + * `limit` must be a positive integer. See [`--heapsnapshot-near-heap-limit`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--heapsnapshot-near-heap-limitmax_count) for more information. + * @experimental + * @since v18.10.0, v16.18.0 + */ + function setHeapSnapshotNearHeapLimit(limit: number): void; + /** + * This API collects GC data in current thread. + * @since v19.6.0, v18.15.0 + */ + class GCProfiler { + /** + * Start collecting GC data. + * @since v19.6.0, v18.15.0 + */ + start(): void; + /** + * Stop collecting GC data and return an object. The content of object + * is as follows. + * + * ```json + * { + * "version": 1, + * "startTime": 1674059033862, + * "statistics": [ + * { + * "gcType": "Scavenge", + * "beforeGC": { + * "heapStatistics": { + * "totalHeapSize": 5005312, + * "totalHeapSizeExecutable": 524288, + * "totalPhysicalSize": 5226496, + * "totalAvailableSize": 4341325216, + * "totalGlobalHandlesSize": 8192, + * "usedGlobalHandlesSize": 2112, + * "usedHeapSize": 4883840, + * "heapSizeLimit": 4345298944, + * "mallocedMemory": 254128, + * "externalMemory": 225138, + * "peakMallocedMemory": 181760 + * }, + * "heapSpaceStatistics": [ + * { + * "spaceName": "read_only_space", + * "spaceSize": 0, + * "spaceUsedSize": 0, + * "spaceAvailableSize": 0, + * "physicalSpaceSize": 0 + * } + * ] + * }, + * "cost": 1574.14, + * "afterGC": { + * "heapStatistics": { + * "totalHeapSize": 6053888, + * "totalHeapSizeExecutable": 524288, + * "totalPhysicalSize": 5500928, + * "totalAvailableSize": 4341101384, + * "totalGlobalHandlesSize": 8192, + * "usedGlobalHandlesSize": 2112, + * "usedHeapSize": 4059096, + * "heapSizeLimit": 4345298944, + * "mallocedMemory": 254128, + * "externalMemory": 225138, + * "peakMallocedMemory": 181760 + * }, + * "heapSpaceStatistics": [ + * { + * "spaceName": "read_only_space", + * "spaceSize": 0, + * "spaceUsedSize": 0, + * "spaceAvailableSize": 0, + * "physicalSpaceSize": 0 + * } + * ] + * } + * } + * ], + * "endTime": 1674059036865 + * } + * ``` + * + * Here's an example. + * + * ```js + * import { GCProfiler } from 'node:v8'; + * const profiler = new GCProfiler(); + * profiler.start(); + * setTimeout(() => { + * console.log(profiler.stop()); + * }, 1000); + * ``` + * @since v19.6.0, v18.15.0 + */ + stop(): GCProfilerResult; + } + interface GCProfilerResult { + version: number; + startTime: number; + endTime: number; + statistics: Array<{ + gcType: string; + cost: number; + beforeGC: { + heapStatistics: HeapStatistics; + heapSpaceStatistics: HeapSpaceStatistics[]; + }; + afterGC: { + heapStatistics: HeapStatistics; + heapSpaceStatistics: HeapSpaceStatistics[]; + }; + }>; + } + interface HeapStatistics { + totalHeapSize: number; + totalHeapSizeExecutable: number; + totalPhysicalSize: number; + totalAvailableSize: number; + totalGlobalHandlesSize: number; + usedGlobalHandlesSize: number; + usedHeapSize: number; + heapSizeLimit: number; + mallocedMemory: number; + externalMemory: number; + peakMallocedMemory: number; + } + interface HeapSpaceStatistics { + spaceName: string; + spaceSize: number; + spaceUsedSize: number; + spaceAvailableSize: number; + physicalSpaceSize: number; + } + /** + * Called when a promise is constructed. This does not mean that corresponding before/after events will occur, only that the possibility exists. This will + * happen if a promise is created without ever getting a continuation. + * @since v17.1.0, v16.14.0 + * @param promise The promise being created. + * @param parent The promise continued from, if applicable. + */ + interface Init { + (promise: Promise, parent: Promise): void; + } + /** + * Called before a promise continuation executes. This can be in the form of `then()`, `catch()`, or `finally()` handlers or an await resuming. + * + * The before callback will be called 0 to N times. The before callback will typically be called 0 times if no continuation was ever made for the promise. + * The before callback may be called many times in the case where many continuations have been made from the same promise. + * @since v17.1.0, v16.14.0 + */ + interface Before { + (promise: Promise): void; + } + /** + * Called immediately after a promise continuation executes. This may be after a `then()`, `catch()`, or `finally()` handler or before an await after another await. + * @since v17.1.0, v16.14.0 + */ + interface After { + (promise: Promise): void; + } + /** + * Called when the promise receives a resolution or rejection value. This may occur synchronously in the case of {@link Promise.resolve()} or + * {@link Promise.reject()}. + * @since v17.1.0, v16.14.0 + */ + interface Settled { + (promise: Promise): void; + } + /** + * Key events in the lifetime of a promise have been categorized into four areas: creation of a promise, before/after a continuation handler is called or + * around an await, and when the promise resolves or rejects. + * + * Because promises are asynchronous resources whose lifecycle is tracked via the promise hooks mechanism, the `init()`, `before()`, `after()`, and + * `settled()` callbacks must not be async functions as they create more promises which would produce an infinite loop. + * @since v17.1.0, v16.14.0 + */ + interface HookCallbacks { + init?: Init; + before?: Before; + after?: After; + settled?: Settled; + } + interface PromiseHooks { + /** + * The `init` hook must be a plain function. Providing an async function will throw as it would produce an infinite microtask loop. + * @since v17.1.0, v16.14.0 + * @param init The {@link Init | `init` callback} to call when a promise is created. + * @return Call to stop the hook. + */ + onInit: (init: Init) => Function; + /** + * The `settled` hook must be a plain function. Providing an async function will throw as it would produce an infinite microtask loop. + * @since v17.1.0, v16.14.0 + * @param settled The {@link Settled | `settled` callback} to call when a promise is created. + * @return Call to stop the hook. + */ + onSettled: (settled: Settled) => Function; + /** + * The `before` hook must be a plain function. Providing an async function will throw as it would produce an infinite microtask loop. + * @since v17.1.0, v16.14.0 + * @param before The {@link Before | `before` callback} to call before a promise continuation executes. + * @return Call to stop the hook. + */ + onBefore: (before: Before) => Function; + /** + * The `after` hook must be a plain function. Providing an async function will throw as it would produce an infinite microtask loop. + * @since v17.1.0, v16.14.0 + * @param after The {@link After | `after` callback} to call after a promise continuation executes. + * @return Call to stop the hook. + */ + onAfter: (after: After) => Function; + /** + * Registers functions to be called for different lifetime events of each promise. + * The callbacks `init()`/`before()`/`after()`/`settled()` are called for the respective events during a promise's lifetime. + * All callbacks are optional. For example, if only promise creation needs to be tracked, then only the init callback needs to be passed. + * The hook callbacks must be plain functions. Providing async functions will throw as it would produce an infinite microtask loop. + * @since v17.1.0, v16.14.0 + * @param callbacks The {@link HookCallbacks | Hook Callbacks} to register + * @return Used for disabling hooks + */ + createHook: (callbacks: HookCallbacks) => Function; + } + /** + * The `promiseHooks` interface can be used to track promise lifecycle events. + * @since v17.1.0, v16.14.0 + */ + const promiseHooks: PromiseHooks; + type StartupSnapshotCallbackFn = (args: any) => any; + interface StartupSnapshot { + /** + * Add a callback that will be called when the Node.js instance is about to get serialized into a snapshot and exit. + * This can be used to release resources that should not or cannot be serialized or to convert user data into a form more suitable for serialization. + * @since v18.6.0, v16.17.0 + */ + addSerializeCallback(callback: StartupSnapshotCallbackFn, data?: any): void; + /** + * Add a callback that will be called when the Node.js instance is deserialized from a snapshot. + * The `callback` and the `data` (if provided) will be serialized into the snapshot, they can be used to re-initialize the state of the application or + * to re-acquire resources that the application needs when the application is restarted from the snapshot. + * @since v18.6.0, v16.17.0 + */ + addDeserializeCallback(callback: StartupSnapshotCallbackFn, data?: any): void; + /** + * This sets the entry point of the Node.js application when it is deserialized from a snapshot. This can be called only once in the snapshot building script. + * If called, the deserialized application no longer needs an additional entry point script to start up and will simply invoke the callback along with the deserialized + * data (if provided), otherwise an entry point script still needs to be provided to the deserialized application. + * @since v18.6.0, v16.17.0 + */ + setDeserializeMainFunction(callback: StartupSnapshotCallbackFn, data?: any): void; + /** + * Returns true if the Node.js instance is run to build a snapshot. + * @since v18.6.0, v16.17.0 + */ + isBuildingSnapshot(): boolean; + } + /** + * The `v8.startupSnapshot` interface can be used to add serialization and deserialization hooks for custom startup snapshots. + * + * ```bash + * $ node --snapshot-blob snapshot.blob --build-snapshot entry.js + * # This launches a process with the snapshot + * $ node --snapshot-blob snapshot.blob + * ``` + * + * In the example above, `entry.js` can use methods from the `v8.startupSnapshot` interface to specify how to save information for custom objects + * in the snapshot during serialization and how the information can be used to synchronize these objects during deserialization of the snapshot. + * For example, if the `entry.js` contains the following script: + * + * ```js + * 'use strict'; + * + * import fs from 'node:fs'; + * import zlib from 'node:zlib'; + * import path from 'node:path'; + * import assert from 'node:assert'; + * + * import v8 from 'node:v8'; + * + * class BookShelf { + * storage = new Map(); + * + * // Reading a series of files from directory and store them into storage. + * constructor(directory, books) { + * for (const book of books) { + * this.storage.set(book, fs.readFileSync(path.join(directory, book))); + * } + * } + * + * static compressAll(shelf) { + * for (const [ book, content ] of shelf.storage) { + * shelf.storage.set(book, zlib.gzipSync(content)); + * } + * } + * + * static decompressAll(shelf) { + * for (const [ book, content ] of shelf.storage) { + * shelf.storage.set(book, zlib.gunzipSync(content)); + * } + * } + * } + * + * // __dirname here is where the snapshot script is placed + * // during snapshot building time. + * const shelf = new BookShelf(__dirname, [ + * 'book1.en_US.txt', + * 'book1.es_ES.txt', + * 'book2.zh_CN.txt', + * ]); + * + * assert(v8.startupSnapshot.isBuildingSnapshot()); + * // On snapshot serialization, compress the books to reduce size. + * v8.startupSnapshot.addSerializeCallback(BookShelf.compressAll, shelf); + * // On snapshot deserialization, decompress the books. + * v8.startupSnapshot.addDeserializeCallback(BookShelf.decompressAll, shelf); + * v8.startupSnapshot.setDeserializeMainFunction((shelf) => { + * // process.env and process.argv are refreshed during snapshot + * // deserialization. + * const lang = process.env.BOOK_LANG || 'en_US'; + * const book = process.argv[1]; + * const name = `${book}.${lang}.txt`; + * console.log(shelf.storage.get(name)); + * }, shelf); + * ``` + * + * The resulted binary will get print the data deserialized from the snapshot during start up, using the refreshed `process.env` and `process.argv` of the launched process: + * + * ```bash + * $ BOOK_LANG=es_ES node --snapshot-blob snapshot.blob book1 + * # Prints content of book1.es_ES.txt deserialized from the snapshot. + * ``` + * + * Currently the application deserialized from a user-land snapshot cannot be snapshotted again, so these APIs are only available to applications that are not deserialized from a user-land snapshot. + * + * @experimental + * @since v18.6.0, v16.17.0 + */ + const startupSnapshot: StartupSnapshot; +} +declare module "node:v8" { + export * from "v8"; +} diff --git a/backend/node_modules/httpx/node_modules/@types/node/vm.d.ts b/backend/node_modules/httpx/node_modules/@types/node/vm.d.ts new file mode 100644 index 0000000..313240a --- /dev/null +++ b/backend/node_modules/httpx/node_modules/@types/node/vm.d.ts @@ -0,0 +1,1001 @@ +/** + * The `node:vm` module enables compiling and running code within V8 Virtual + * Machine contexts. + * + * **The `node:vm` module is not a security** + * **mechanism. Do not use it to run untrusted code.** + * + * JavaScript code can be compiled and run immediately or + * compiled, saved, and run later. + * + * A common use case is to run the code in a different V8 Context. This means + * invoked code has a different global object than the invoking code. + * + * One can provide the context by `contextifying` an + * object. The invoked code treats any property in the context like a + * global variable. Any changes to global variables caused by the invoked + * code are reflected in the context object. + * + * ```js + * import vm from 'node:vm'; + * + * const x = 1; + * + * const context = { x: 2 }; + * vm.createContext(context); // Contextify the object. + * + * const code = 'x += 40; var y = 17;'; + * // `x` and `y` are global variables in the context. + * // Initially, x has the value 2 because that is the value of context.x. + * vm.runInContext(code, context); + * + * console.log(context.x); // 42 + * console.log(context.y); // 17 + * + * console.log(x); // 1; y is not defined. + * ``` + * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/vm.js) + */ +declare module "vm" { + import { NonSharedBuffer } from "node:buffer"; + import { ImportAttributes } from "node:module"; + interface Context extends NodeJS.Dict {} + interface BaseOptions { + /** + * Specifies the filename used in stack traces produced by this script. + * @default '' + */ + filename?: string | undefined; + /** + * Specifies the line number offset that is displayed in stack traces produced by this script. + * @default 0 + */ + lineOffset?: number | undefined; + /** + * Specifies the column number offset that is displayed in stack traces produced by this script. + * @default 0 + */ + columnOffset?: number | undefined; + } + type DynamicModuleLoader = ( + specifier: string, + referrer: T, + importAttributes: ImportAttributes, + ) => Module | Promise; + interface ScriptOptions extends BaseOptions { + /** + * Provides an optional data with V8's code cache data for the supplied source. + */ + cachedData?: NodeJS.ArrayBufferView | undefined; + /** @deprecated in favor of `script.createCachedData()` */ + produceCachedData?: boolean | undefined; + /** + * Used to specify how the modules should be loaded during the evaluation of this script when `import()` is called. This option is + * part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see + * [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v20.x/api/vm.html#support-of-dynamic-import-in-compilation-apis). + */ + importModuleDynamically?: + | DynamicModuleLoader + diff --git a/frontend/app.js b/frontend/app.js index 3acd9bf..dc9c7b5 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -300,6 +300,8 @@ createApp({ ossUsage: null, // { totalSize, totalSizeFormatted, fileCount, dirCount } ossUsageLoading: false, ossUsageError: null, + ossTraffic: null, // 当日流量统计 + ossTrafficLoading: false, // 主题设置 currentTheme: 'dark', // 当前生效的主题: 'dark' 或 'light' @@ -683,13 +685,17 @@ handleDragLeave(e) { else { // 如果用户可以使用本地存储,直接进入文件页面 if (this.storagePermission === 'local_only' || this.storagePermission === 'user_choice') { - this.currentView = 'files'; + this.currentView = "files"; + this.loadOssUsage(); + this.loadOssTraffic(); // 加载当日流量 // 加载OSS使用情况 this.loadFiles('/'); } // 如果仅OSS模式,需要检查是否配置了OSS(包括系统级统一配置) else if (this.storagePermission === 'oss_only') { if (this.user?.oss_config_source !== 'none') { - this.currentView = 'files'; + this.currentView = "files"; + this.loadOssUsage(); + this.loadOssTraffic(); // 加载当日流量 // 加载OSS使用情况 this.loadFiles('/'); } else { this.currentView = 'settings'; @@ -698,7 +704,9 @@ handleDragLeave(e) { } } else { // 默认行为:跳转到文件页面 - this.currentView = 'files'; + this.currentView = "files"; + this.loadOssUsage(); + this.loadOssTraffic(); // 加载当日流量 // 加载OSS使用情况 this.loadFiles('/'); } } @@ -2487,11 +2495,30 @@ handleDragLeave(e) { } }, + // 加载 OSS 当日流量统计 + async loadOssTraffic() { + if (this.ossTrafficLoading) return; + if (!this.user || this.user?.oss_config_source === "none") return; + this.ossTrafficLoading = true; + try { + const response = await axios.get(`${this.apiBase}/api/oss/traffic`); + if (response.data.success) { + this.ossTraffic = response.data.traffic; + } + } catch (error) { + console.error("[OSS流量] 加载失败:", error); + this.ossTraffic = null; + } finally { + this.ossTrafficLoading = false; + } + }, + // 刷新存储空间使用统计(根据当前存储类型) async refreshStorageUsage() { if (this.storageType === 'oss' && this.user?.oss_config_source !== 'none') { // 刷新 OSS 空间统计 await this.loadOssUsage(); + this.loadOssTraffic(); // 加载当日流量 } else if (this.storageType === 'local') { // 刷新本地存储统计(通过重新获取用户信息) await this.loadUserProfile(); @@ -2622,6 +2649,11 @@ handleDragLeave(e) { // 根据视图类型自动加载对应数据 switch (view) { case 'files': + // 如果是 OSS 存储,加载使用情况 + if (this.storageType === 'oss') { + this.loadOssUsage(); + this.loadOssTraffic(); // 加载当日流量 + } // 切换到文件视图时,重新加载文件列表 this.loadFiles(this.currentPath); break; @@ -3222,3 +3254,4 @@ handleDragLeave(e) { } } }).mount('#app'); + diff --git a/frontend/share.html b/frontend/share.html index 920a5ac..68e0d9f 100644 --- a/frontend/share.html +++ b/frontend/share.html @@ -4,9 +4,9 @@ 文件分享 - 玩玩云 - - - + + +